You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
1.3 MiB
2 lines
1.3 MiB
/*! For license information please see 13.48d42d2c.chunk.js.LICENSE.txt */ |
|
(this["webpackJsonpsimpro-web"]=this["webpackJsonpsimpro-web"]||[]).push([[13,7],{1003:function(t,e,n){"use strict";var r=n(2301);n.d(e,"Annotation",(function(){return r}));var i=n(2303);n.d(e,"Axis",(function(){return i}));var o=n(2304);n.d(e,"Crosshair",(function(){return o}));var a=n(2322);n.d(e,"Grid",(function(){return a}));var c=n(2323);n.d(e,"Legend",(function(){return c}));var s=n(2324);n.d(e,"Tooltip",(function(){return s}));n(1709),n(913),n(1676);var l=n(2305);n.d(e,"Slider",(function(){return l.a}));var u=n(2328);n.d(e,"Scrollbar",(function(){return u.a}));n(2252),n(2253);var f=n(2189);n.d(e,"propagationDelegate",(function(){return f.a}));var h=n(1710);n.d(e,"TOOLTIP_CSS_CONST",(function(){return h}))},1004:function(t,e,n){"use strict";e.a={fontFamily:'\n BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4,descriptionIconStroke:"#fff",descriptionIconFill:"rgba(58, 73, 101, .25)"}},1005:function(t,e,n){"use strict";n.d(e,"e",(function(){return m})),n.d(e,"b",(function(){return C})),n.d(e,"a",(function(){return I})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return B})),n.d(e,"f",(function(){return r}));var r={};function i(t){return Math.min.apply(null,t)}function o(t){return Math.max.apply(null,t)}function a(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function c(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=i(t),r=i(e);return{x:n,y:r,width:o(t)-n,height:o(e)-r}}function l(t,e,n,r){return{minX:i([t,n]),maxX:o([t,n]),minY:i([e,r]),maxY:o([e,r])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(r),n.d(r,"distance",(function(){return a})),n.d(r,"isNumberEqual",(function(){return c})),n.d(r,"getBBoxByArray",(function(){return s})),n.d(r,"getBBoxRange",(function(){return l})),n.d(r,"piMod",(function(){return u}));var f=n(2185),h={box:function(t,e,n,r){return s([t,n],[e,r])},length:function(t,e,n,r){return a(t,e,n,r)},pointAt:function(t,e,n,r,i){return{x:(1-i)*t+i*n,y:(1-i)*e+i*r}},pointDistance:function(t,e,n,r,i,o){var c=(n-t)*(i-t)+(r-e)*(o-e);return c<0?a(t,e,i,o):c>(n-t)*(n-t)+(r-e)*(r-e)?a(n,r,i,o):this.pointToLine(t,e,n,r,i,o)},pointToLine:function(t,e,n,r,i,o){var a=[n-t,r-e];if(f.exactEquals(a,[0,0]))return Math.sqrt((i-t)*(i-t)+(o-e)*(o-e));var c=[-a[1],a[0]];f.normalize(c,c);var s=[i-t,o-e];return Math.abs(f.dot(s,c))},tangentAngle:function(t,e,n,r){return Math.atan2(r-e,n-t)}};function d(t,e,n,r,i,o){var c,s=1/0,l=[n,r],u=20;o&&o>200&&(u=o/10);for(var f=1/u,h=f/10,d=0;d<=u;d++){var p=d*f,g=[i.apply(null,t.concat([p])),i.apply(null,e.concat([p]))];(b=a(l[0],l[1],g[0],g[1]))<s&&(c=p,s=b)}if(0===c)return{x:t[0],y:e[0]};if(1===c){var v=t.length;return{x:t[v-1],y:e[v-1]}}s=1/0;for(d=0;d<32&&!(h<1e-4);d++){var y=c-h,m=c+h,b=(g=[i.apply(null,t.concat([y])),i.apply(null,e.concat([y]))],a(l[0],l[1],g[0],g[1]));if(y>=0&&b<s)c=y,s=b;else{var x=[i.apply(null,t.concat([m])),i.apply(null,e.concat([m]))],O=a(l[0],l[1],x[0],x[1]);m<=1&&O<s?(c=m,s=O):h*=.5}}return{x:i.apply(null,t.concat([c])),y:i.apply(null,e.concat([c]))}}function p(t,e,n,r){var i=1-r;return i*i*t+2*r*i*e+r*r*n}function g(t,e,n){var r=t+n-2*e;if(c(r,0))return[.5];var i=(t-e)/r;return i<=1&&i>=0?[i]:[]}function v(t,e,n,r){return 2*(1-r)*(e-t)+2*r*(n-e)}function y(t,e,n,r,i,o,a){var c=p(t,n,i,a),s=p(e,r,o,a),l=h.pointAt(t,e,n,r,a),u=h.pointAt(n,r,i,o,a);return[[t,e,l.x,l.y,c,s],[c,s,u.x,u.y,i,o]]}var m={box:function(t,e,n,r,i,o){var a=g(t,n,i)[0],c=g(e,r,o)[0],l=[t,i],u=[e,o];return void 0!==a&&l.push(p(t,n,i,a)),void 0!==c&&u.push(p(e,r,o,c)),s(l,u)},length:function(t,e,n,r,i,o){return function t(e,n,r,i,o,c,s){if(0===s)return(a(e,n,r,i)+a(r,i,o,c)+a(e,n,o,c))/2;var l=y(e,n,r,i,o,c,.5),u=l[0],f=l[1];return u.push(s-1),f.push(s-1),t.apply(null,u)+t.apply(null,f)}(t,e,n,r,i,o,3)},nearestPoint:function(t,e,n,r,i,o,a,c){return d([t,n,i],[e,r,o],a,c,p)},pointDistance:function(t,e,n,r,i,o,c,s){var l=this.nearestPoint(t,e,n,r,i,o,c,s);return a(l.x,l.y,c,s)},interpolationAt:p,pointAt:function(t,e,n,r,i,o,a){return{x:p(t,n,i,a),y:p(e,r,o,a)}},divide:function(t,e,n,r,i,o,a){return y(t,e,n,r,i,o,a)},tangentAngle:function(t,e,n,r,i,o,a){var c=v(t,n,i,a),s=v(e,r,o,a);return u(Math.atan2(s,c))}};function b(t,e,n,r,i){var o=1-i;return o*o*o*t+3*e*i*o*o+3*n*i*i*o+r*i*i*i}function x(t,e,n,r,i){var o=1-i;return 3*(o*o*(e-t)+2*o*i*(n-e)+i*i*(r-n))}function O(t,e,n,r){var i,o,a,s=-3*t+9*e-9*n+3*r,l=6*t-12*e+6*n,u=3*e-3*t,f=[];if(c(s,0))c(l,0)||(i=-u/l)>=0&&i<=1&&f.push(i);else{var h=l*l-4*s*u;c(h,0)?f.push(-l/(2*s)):h>0&&(o=(-l-(a=Math.sqrt(h)))/(2*s),(i=(-l+a)/(2*s))>=0&&i<=1&&f.push(i),o>=0&&o<=1&&f.push(o))}return f}function j(t,e,n,r,i,o,a,c,s){var l=b(t,n,i,a,s),u=b(e,r,o,c,s),f=h.pointAt(t,e,n,r,s),d=h.pointAt(n,r,i,o,s),p=h.pointAt(i,o,a,c,s),g=h.pointAt(f.x,f.y,d.x,d.y,s),v=h.pointAt(d.x,d.y,p.x,p.y,s);return[[t,e,f.x,f.y,g.x,g.y,l,u],[l,u,v.x,v.y,p.x,p.y,a,c]]}function w(t,e,n,r,i,o,c,s,l){if(0===l)return function(t,e){for(var n=0,r=t.length,i=0;i<r;i++){n+=a(t[i],e[i],t[(i+1)%r],e[(i+1)%r])}return n/2}([t,n,i,c],[e,r,o,s]);var u=j(t,e,n,r,i,o,c,s,.5),f=u[0],h=u[1];return f.push(l-1),h.push(l-1),w.apply(null,f)+w.apply(null,h)}var C={extrema:O,box:function(t,e,n,r,i,o,a,c){for(var l=[t,a],u=[e,c],f=O(t,n,i,a),h=O(e,r,o,c),d=0;d<f.length;d++)l.push(b(t,n,i,a,f[d]));for(d=0;d<h.length;d++)u.push(b(e,r,o,c,h[d]));return s(l,u)},length:function(t,e,n,r,i,o,a,c){return w(t,e,n,r,i,o,a,c,3)},nearestPoint:function(t,e,n,r,i,o,a,c,s,l,u){return d([t,n,i,a],[e,r,o,c],s,l,b,u)},pointDistance:function(t,e,n,r,i,o,c,s,l,u,f){var h=this.nearestPoint(t,e,n,r,i,o,c,s,l,u,f);return a(h.x,h.y,l,u)},interpolationAt:b,pointAt:function(t,e,n,r,i,o,a,c,s){return{x:b(t,n,i,a,s),y:b(e,r,o,c,s)}},divide:function(t,e,n,r,i,o,a,c,s){return j(t,e,n,r,i,o,a,c,s)},tangentAngle:function(t,e,n,r,i,o,a,c,s){var l=x(t,n,i,a,s),f=x(e,r,o,c,s);return u(Math.atan2(f,l))}};function S(t,e){var n=Math.abs(t);return e>0?n:-1*n}var E=function(t,e,n,r,i,o){var a=n,c=r;if(0===a||0===c)return{x:t,y:e};for(var s,l,u=i-t,f=o-e,h=Math.abs(u),d=Math.abs(f),p=a*a,g=c*c,v=Math.PI/4,y=0;y<4;y++){s=a*Math.cos(v),l=c*Math.sin(v);var m=(p-g)*Math.pow(Math.cos(v),3)/a,b=(g-p)*Math.pow(Math.sin(v),3)/c,x=s-m,O=l-b,j=h-m,w=d-b,C=Math.hypot(O,x),E=Math.hypot(w,j);v+=C*Math.asin((x*w-O*j)/(C*E))/Math.sqrt(p+g-s*s-l*l),v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+S(s,u),y:e+S(l,f)}};function M(t,e,n,r,i,o){return n*Math.cos(i)*Math.cos(o)-r*Math.sin(i)*Math.sin(o)+t}function k(t,e,n,r,i,o){return n*Math.sin(i)*Math.cos(o)+r*Math.cos(i)*Math.sin(o)+e}function P(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function A(t,e,n){var r=Math.cos(n),i=Math.sin(n);return[t*r-e*i,t*i+e*r]}var I={box:function(t,e,n,r,i,o,a){for(var c=function(t,e,n){return Math.atan(-e/t*Math.tan(n))}(n,r,i),s=1/0,l=-1/0,u=[o,a],f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var h=c+f;o<a?o<h&&h<a&&u.push(h):a<h&&h<o&&u.push(h)}for(f=0;f<u.length;f++){var d=M(t,0,n,r,i,u[f]);d<s&&(s=d),d>l&&(l=d)}var p=function(t,e,n){return Math.atan(e/(t*Math.tan(n)))}(n,r,i),g=1/0,v=-1/0,y=[o,a];for(f=2*-Math.PI;f<=2*Math.PI;f+=Math.PI){var m=p+f;o<a?o<m&&m<a&&y.push(m):a<m&&m<o&&y.push(m)}for(f=0;f<y.length;f++){var b=k(0,e,n,r,i,y[f]);b<g&&(g=b),b>v&&(v=b)}return{x:s,y:g,width:l-s,height:v-g}},length:function(t,e,n,r,i,o,a){},nearestPoint:function(t,e,n,r,i,o,a,c,s){var l=A(c-t,s-e,-i),u=l[0],f=l[1],h=E(0,0,n,r,u,f),d=function(t,e,n,r){return(Math.atan2(r*t,n*e)+2*Math.PI)%(2*Math.PI)}(n,r,h.x,h.y);d<o?h=P(n,r,o):d>a&&(h=P(n,r,a));var p=A(h.x,h.y,i);return{x:p[0]+t,y:p[1]+e}},pointDistance:function(t,e,n,r,i,o,c,s,l){var u=this.nearestPoint(t,e,n,r,s,l);return a(u.x,u.y,s,l)},pointAt:function(t,e,n,r,i,o,a,c){var s=(a-o)*c+o;return{x:M(t,0,n,r,i,s),y:k(0,e,n,r,i,s)}},tangentAngle:function(t,e,n,r,i,o,a,c){var s=(a-o)*c+o,l=function(t,e,n,r,i,o,a,c){return-1*n*Math.cos(i)*Math.sin(c)-r*Math.sin(i)*Math.cos(c)}(0,0,n,r,i,0,0,s),f=function(t,e,n,r,i,o,a,c){return-1*n*Math.sin(i)*Math.sin(c)+r*Math.cos(i)*Math.cos(c)}(0,0,n,r,i,0,0,s);return u(Math.atan2(f,l))}};function F(t){for(var e=0,n=[],r=0;r<t.length-1;r++){var i=t[r],o=t[r+1],c=a(i[0],i[1],o[0],o[1]),s={from:i,to:o,length:c};n.push(s),e+=c}return{segments:n,totalLength:e}}function T(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var r=t[n],i=t[n+1];e+=a(r[0],r[1],i[0],i[1])}return e}function L(t,e){if(e>1||e<0||t.length<2)return null;var n=F(t),r=n.segments,i=n.totalLength;if(0===i)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,c=0;c<r.length;c++){var s=r[c],l=s.from,u=s.to,f=s.length/i;if(e>=o&&e<=o+f){var d=(e-o)/f;a=h.pointAt(l[0],l[1],u[0],u[1],d);break}o+=f}return a}function N(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=F(t),r=n.segments,i=n.totalLength,o=0,a=0,c=0;c<r.length;c++){var s=r[c],l=s.from,u=s.to,f=s.length/i;if(e>=o&&e<=o+f){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=f}return a}function D(t,e,n){for(var r=1/0,i=0;i<t.length-1;i++){var o=t[i],a=t[i+1],c=h.pointDistance(o[0],o[1],a[0],a[1],e,n);c<r&&(r=c)}return r}var B={box:function(t){for(var e=[],n=[],r=0;r<t.length;r++){var i=t[r];e.push(i[0]),n.push(i[1])}return s(e,n)},length:function(t){return T(t)},pointAt:function(t,e){return L(t,e)},pointDistance:function(t,e,n){return D(t,e,n)},tangentAngle:function(t,e){return N(t,e)}}},1015:function(t,e,n){"use strict";var r=n(561),i=n(23),o=n(566),a=n(560),c=n.n(a),s=n(2),l=n(775),u=n(968),f=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};var h=["xs","sm","md","lg","xl","xxl"],d=s.forwardRef((function(t,e){var n,a=s.useContext(l.b),d=a.getPrefixCls,p=a.direction,g=s.useContext(u.a),v=g.gutter,y=g.wrap,m=g.supportFlexGap,b=t.prefixCls,x=t.span,O=t.order,j=t.offset,w=t.push,C=t.pull,S=t.className,E=t.children,M=t.flex,k=t.style,P=f(t,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),A=d("col",b),I={};h.forEach((function(e){var n,a={},c=t[e];"number"===typeof c?a.span=c:"object"===Object(o.a)(c)&&(a=c||{}),delete P[e],I=Object(i.a)(Object(i.a)({},I),(n={},Object(r.a)(n,"".concat(A,"-").concat(e,"-").concat(a.span),void 0!==a.span),Object(r.a)(n,"".concat(A,"-").concat(e,"-order-").concat(a.order),a.order||0===a.order),Object(r.a)(n,"".concat(A,"-").concat(e,"-offset-").concat(a.offset),a.offset||0===a.offset),Object(r.a)(n,"".concat(A,"-").concat(e,"-push-").concat(a.push),a.push||0===a.push),Object(r.a)(n,"".concat(A,"-").concat(e,"-pull-").concat(a.pull),a.pull||0===a.pull),Object(r.a)(n,"".concat(A,"-rtl"),"rtl"===p),n))}));var F=c()(A,(n={},Object(r.a)(n,"".concat(A,"-").concat(x),void 0!==x),Object(r.a)(n,"".concat(A,"-order-").concat(O),O),Object(r.a)(n,"".concat(A,"-offset-").concat(j),j),Object(r.a)(n,"".concat(A,"-push-").concat(w),w),Object(r.a)(n,"".concat(A,"-pull-").concat(C),C),n),S,I),T={};if(v&&v[0]>0){var L=v[0]/2;T.paddingLeft=L,T.paddingRight=L}if(v&&v[1]>0&&!m){var N=v[1]/2;T.paddingTop=N,T.paddingBottom=N}return M&&(T.flex=function(t){return"number"===typeof t?"".concat(t," ").concat(t," auto"):/^\d+(\.\d+)?(px|em|rem|%)$/.test(t)?"0 0 ".concat(t):t}(M),!1!==y||T.minWidth||(T.minWidth=0)),s.createElement("div",Object(i.a)({},P,{style:Object(i.a)(Object(i.a)({},T),k),className:F,ref:e}),E)}));e.a=d},1016:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(579);function i(t,e){if(!1===t)return{fields:!1};var n=Object(r.s)(t,"fields"),i=Object(r.s)(t,"formatter");return i&&!n&&(n=e),{fields:n,formatter:i}}},1060:function(t,e,n){"use strict";var r=n(563),i=n(2),o=n(967);e.a=function(){var t=i.useState(!1),e=Object(r.a)(t,2),n=e[0],a=e[1];return i.useEffect((function(){a(Object(o.b)())}),[]),n}},1079:function(t,e,n){"use strict";var r=n(23),i=n(561),o=n(566),a=n(563),c=n(560),s=n.n(c),l=n(2),u=n(775),f=n(1060),h=n(663),d=n(586),p=n(968),g=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},v=(Object(d.a)("top","middle","bottom","stretch"),Object(d.a)("start","end","center","space-around","space-between","space-evenly"),l.forwardRef((function(t,e){var n,c=t.prefixCls,d=t.justify,v=t.align,y=t.className,m=t.style,b=t.children,x=t.gutter,O=void 0===x?0:x,j=t.wrap,w=g(t,["prefixCls","justify","align","className","style","children","gutter","wrap"]),C=l.useContext(u.b),S=C.getPrefixCls,E=C.direction,M=l.useState({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),k=Object(a.a)(M,2),P=k[0],A=k[1],I=Object(f.a)(),F=l.useRef(O);l.useEffect((function(){var t=h.a.subscribe((function(t){var e=F.current||0;(!Array.isArray(e)&&"object"===Object(o.a)(e)||Array.isArray(e)&&("object"===Object(o.a)(e[0])||"object"===Object(o.a)(e[1])))&&A(t)}));return function(){return h.a.unsubscribe(t)}}),[]);var T=S("row",c),L=function(){var t=[void 0,void 0];return(Array.isArray(O)?O:[O,void 0]).forEach((function(e,n){if("object"===Object(o.a)(e))for(var r=0;r<h.b.length;r++){var i=h.b[r];if(P[i]&&void 0!==e[i]){t[n]=e[i];break}}else t[n]=e})),t}(),N=s()(T,(n={},Object(i.a)(n,"".concat(T,"-no-wrap"),!1===j),Object(i.a)(n,"".concat(T,"-").concat(d),d),Object(i.a)(n,"".concat(T,"-").concat(v),v),Object(i.a)(n,"".concat(T,"-rtl"),"rtl"===E),n),y),D={},B=null!=L[0]&&L[0]>0?L[0]/-2:void 0,R=null!=L[1]&&L[1]>0?L[1]/-2:void 0;if(B&&(D.marginLeft=B,D.marginRight=B),I){var _=Object(a.a)(L,2);D.rowGap=_[1]}else R&&(D.marginTop=R,D.marginBottom=R);var z=Object(a.a)(L,2),V=z[0],H=z[1],K=l.useMemo((function(){return{gutter:[V,H],wrap:j,supportFlexGap:I}}),[V,H,j,I]);return l.createElement(p.a.Provider,{value:K},l.createElement("div",Object(r.a)({},w,{className:N,style:Object(r.a)(Object(r.a)({},D),m),ref:e}),b))})));e.a=v},1080:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return B})),n.d(e,"c",(function(){return R}));var r={};n.r(r),n.d(r,"create",(function(){return o})),n.d(r,"fromMat4",(function(){return a})),n.d(r,"clone",(function(){return c})),n.d(r,"copy",(function(){return s})),n.d(r,"fromValues",(function(){return l})),n.d(r,"set",(function(){return u})),n.d(r,"identity",(function(){return f})),n.d(r,"transpose",(function(){return h})),n.d(r,"invert",(function(){return d})),n.d(r,"adjoint",(function(){return p})),n.d(r,"determinant",(function(){return g})),n.d(r,"multiply",(function(){return v})),n.d(r,"translate",(function(){return y})),n.d(r,"rotate",(function(){return m})),n.d(r,"scale",(function(){return b})),n.d(r,"fromTranslation",(function(){return x})),n.d(r,"fromRotation",(function(){return O})),n.d(r,"fromScaling",(function(){return j})),n.d(r,"fromMat2d",(function(){return w})),n.d(r,"fromQuat",(function(){return C})),n.d(r,"normalFromMat4",(function(){return S})),n.d(r,"projection",(function(){return E})),n.d(r,"str",(function(){return M})),n.d(r,"frob",(function(){return k})),n.d(r,"add",(function(){return P})),n.d(r,"subtract",(function(){return A})),n.d(r,"multiplyScalar",(function(){return I})),n.d(r,"multiplyScalarAndAdd",(function(){return F})),n.d(r,"exactEquals",(function(){return T})),n.d(r,"equals",(function(){return L})),n.d(r,"mul",(function(){return N})),n.d(r,"sub",(function(){return D}));var i=n(1673);function o(){var t=new i.a(9);return i.a!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function a(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function c(t){var e=new i.a(9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function l(t,e,n,r,o,a,c,s,l){var u=new i.a(9);return u[0]=t,u[1]=e,u[2]=n,u[3]=r,u[4]=o,u[5]=a,u[6]=c,u[7]=s,u[8]=l,u}function u(t,e,n,r,i,o,a,c,s,l){return t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=o,t[5]=a,t[6]=c,t[7]=s,t[8]=l,t}function f(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function h(t,e){if(t===e){var n=e[1],r=e[2],i=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=i}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function d(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8],f=u*a-c*l,h=-u*o+c*s,d=l*o-a*s,p=n*f+r*h+i*d;return p?(p=1/p,t[0]=f*p,t[1]=(-u*r+i*l)*p,t[2]=(c*r-i*a)*p,t[3]=h*p,t[4]=(u*n-i*s)*p,t[5]=(-c*n+i*o)*p,t[6]=d*p,t[7]=(-l*n+r*s)*p,t[8]=(a*n-r*o)*p,t):null}function p(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8];return t[0]=a*u-c*l,t[1]=i*l-r*u,t[2]=r*c-i*a,t[3]=c*s-o*u,t[4]=n*u-i*s,t[5]=i*o-n*c,t[6]=o*l-a*s,t[7]=r*s-n*l,t[8]=n*a-r*o,t}function g(t){var e=t[0],n=t[1],r=t[2],i=t[3],o=t[4],a=t[5],c=t[6],s=t[7],l=t[8];return e*(l*o-a*s)+n*(-l*i+a*c)+r*(s*i-o*c)}function v(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],f=e[8],h=n[0],d=n[1],p=n[2],g=n[3],v=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=h*r+d*a+p*l,t[1]=h*i+d*c+p*u,t[2]=h*o+d*s+p*f,t[3]=g*r+v*a+y*l,t[4]=g*i+v*c+y*u,t[5]=g*o+v*s+y*f,t[6]=m*r+b*a+x*l,t[7]=m*i+b*c+x*u,t[8]=m*o+b*s+x*f,t}function y(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],f=e[8],h=n[0],d=n[1];return t[0]=r,t[1]=i,t[2]=o,t[3]=a,t[4]=c,t[5]=s,t[6]=h*r+d*a+l,t[7]=h*i+d*c+u,t[8]=h*o+d*s+f,t}function m(t,e,n){var r=e[0],i=e[1],o=e[2],a=e[3],c=e[4],s=e[5],l=e[6],u=e[7],f=e[8],h=Math.sin(n),d=Math.cos(n);return t[0]=d*r+h*a,t[1]=d*i+h*c,t[2]=d*o+h*s,t[3]=d*a-h*r,t[4]=d*c-h*i,t[5]=d*s-h*o,t[6]=l,t[7]=u,t[8]=f,t}function b(t,e,n){var r=n[0],i=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=i*e[3],t[4]=i*e[4],t[5]=i*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function x(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function O(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function j(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function C(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=n+n,c=r+r,s=i+i,l=n*a,u=r*a,f=r*c,h=i*a,d=i*c,p=i*s,g=o*a,v=o*c,y=o*s;return t[0]=1-f-p,t[3]=u-y,t[6]=h+v,t[1]=u+y,t[4]=1-l-p,t[7]=d-g,t[2]=h-v,t[5]=d+g,t[8]=1-l-f,t}function S(t,e){var n=e[0],r=e[1],i=e[2],o=e[3],a=e[4],c=e[5],s=e[6],l=e[7],u=e[8],f=e[9],h=e[10],d=e[11],p=e[12],g=e[13],v=e[14],y=e[15],m=n*c-r*a,b=n*s-i*a,x=n*l-o*a,O=r*s-i*c,j=r*l-o*c,w=i*l-o*s,C=u*g-f*p,S=u*v-h*p,E=u*y-d*p,M=f*v-h*g,k=f*y-d*g,P=h*y-d*v,A=m*P-b*k+x*M+O*E-j*S+w*C;return A?(A=1/A,t[0]=(c*P-s*k+l*M)*A,t[1]=(s*E-a*P-l*S)*A,t[2]=(a*k-c*E+l*C)*A,t[3]=(i*k-r*P-o*M)*A,t[4]=(n*P-i*E+o*S)*A,t[5]=(r*E-n*k-o*C)*A,t[6]=(g*w-v*j+y*O)*A,t[7]=(v*x-p*w-y*b)*A,t[8]=(p*j-g*x+y*m)*A,t):null}function E(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function M(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function k(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function P(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}function A(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}function I(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[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function F(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[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t}function T(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function L(t,e){var n=t[0],r=t[1],o=t[2],a=t[3],c=t[4],s=t[5],l=t[6],u=t[7],f=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-h)<=i.b*Math.max(1,Math.abs(n),Math.abs(h))&&Math.abs(r-d)<=i.b*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(o-p)<=i.b*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-g)<=i.b*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(c-v)<=i.b*Math.max(1,Math.abs(c),Math.abs(v))&&Math.abs(s-y)<=i.b*Math.max(1,Math.abs(s),Math.abs(y))&&Math.abs(l-m)<=i.b*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=i.b*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(f-x)<=i.b*Math.max(1,Math.abs(f),Math.abs(x))}var N=v,D=A,B=n(2185),R=n(2186)},1139:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"f",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return f}));var r=n(916),i=[1,0,0,0,1,0,0,0,1];function o(t,e,n){return void 0===n&&(n=i),e?r.a.transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]):null}function a(t,e){return t.x||t.y?r.a.transform(e||i,[["t",t.x,t.y]]):null}function c(t){var e=[0,0,0];return r.d.transformMat3(e,[1,0,0],t),Math.atan2(e[1],e[0])}function s(t,e){var n=[0,0];return r.c.transformMat3(n,e,t),n}function l(t,e){var n=s(t,[e.minX,e.minY]),r=s(t,[e.maxX,e.minY]),i=s(t,[e.minX,e.maxY]),o=s(t,[e.maxX,e.maxY]),a=Math.min(n[0],r[0],i[0],o[0]),c=Math.max(n[0],r[0],i[0],o[0]),l=Math.min(n[1],r[1],i[1],o[1]),u=Math.max(n[1],r[1],i[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:c,maxY:u,width:c-a,height:u-l}}function u(t,e,n,r){if(e){var i=o({x:n,y:r},e,t.getMatrix());t.setMatrix(i)}}function f(t,e,n){var r=a({x:e,y:n});t.attr("matrix",r)}},1173:function(t,e,n){"use strict";var r=n(1015);e.a=r.a},1174:function(t,e,n){"use strict";var r=n(1079);e.a=r.a},1183:function(t,e,n){"use strict";var r=n(579),i=n(2188),o=function(){function t(t){var e=t.xField,n=t.yField,r=t.adjustNames,i=void 0===r?["x","y"]:r,o=t.dimValuesMap;this.adjustNames=i,this.xField=e,this.yField=n,this.dimValuesMap=o}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var r,i,o=this.yField,a=n.indexOf(e),c=n.length;return!o&&this.isAdjust("y")?(r=0,i=1):c>1?(r=n[0===a?0:a-1],i=n[a===c-1?c-1:a+1],0!==a?r+=(e-r)/2:r-=(i-e)/2,a!==c-1?i-=(i-e)/2:i+=(e-n[c-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,i=this.getDimValues(e);r.j(t,(function(t,e){r.j(i,(function(r,i){n.adjustDim(i,r,t,e)}))}))},t.prototype.groupData=function(t,e){return r.j(t,(function(t){void 0===t[e]&&(t[e]=i.a)})),r.w(t,e)},t.prototype.adjustDim=function(t,e,n,r){},t.prototype.getDimValues=function(t){var e=this.xField,n=this.yField,o=r.b({},this.dimValuesMap),a=[];if(e&&this.isAdjust("x")&&a.push(e),n&&this.isAdjust("y")&&a.push(n),a.forEach((function(e){o&&o[e]||(o[e]=r.yb(t,e).sort((function(t,e){return t-e})))})),!n&&this.isAdjust("y")){o.y=[i.a,1]}return o},t}();e.a=o},1184:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r=["type","alias","tickCount","tickInterval","min","max","nice","minLimit","maxLimit","range","tickMethod","base","exponent","mask","sync"]},1185:function(t,e,n){"use strict";function r(t,e,n){if(t){if("function"===typeof t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if("function"===typeof t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}}var i,o,a,c;function s(t){i||(i=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,c={tr:document.createElement("tbody"),tbody:i,thead:i,tfoot:i,td:o,th:o,"*":document.createElement("div")});var e=a.test(t)&&RegExp.$1;e&&e in c||(e="*");var n=c[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var r=n.childNodes[0];return r&&n.contains(r)&&n.removeChild(r),r}function l(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 u(t,e){var n=function(t,e){var n=l(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}(t,e),r=parseFloat(l(t,"borderTopWidth"))||0,i=parseFloat(l(t,"paddingTop"))||0,o=parseFloat(l(t,"paddingBottom"))||0;return n+r+(parseFloat(l(t,"borderBottomWidth"))||0)+i+o+(parseFloat(l(t,"marginTop"))||0)+(parseFloat(l(t,"marginBottom"))||0)}function f(t,e){var n=function(t,e){var n=l(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}(t,e),r=parseFloat(l(t,"borderLeftWidth"))||0,i=parseFloat(l(t,"paddingLeft"))||0,o=parseFloat(l(t,"paddingRight"))||0,a=parseFloat(l(t,"borderRightWidth"))||0,c=parseFloat(l(t,"marginRight"))||0;return n+r+a+i+o+(parseFloat(l(t,"marginLeft"))||0)+c}function h(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return h}))},1407:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a}));var r=n(579);function i(t){if(Object(r.M)(t))return[t,t,t,t];if(Object(r.C)(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 o(t,e,n){void 0===e&&(e="bottom"),void 0===n&&(n=25);var r=i(t),o=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[r[0]+o[0],r[1]+o[1],r[2]+o[2],r[3]+o[3]]}function a(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}},1408:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(613),i=n(761),o=n(579),a=n(2216),c=n(618);function s(t){var e=this;return function(n){var s,l=n.options,u=n.chart,f=l.pattern;if(!f)return n;return Object(c.c)({},n,{options:(s={},s[t]=function(n){for(var s,h,d,p=[],g=1;g<arguments.length;g++)p[g-1]=arguments[g];var v=u.getTheme().defaultColor,y=v,m=null===(h=null===(s=u.geometries)||void 0===s?void 0:s[0])||void 0===h?void 0:h.getAttribute("color");if(m){var b=m.getFields()[0],x=Object(o.s)(n,b);y=i.h.getMappingValue(m,x,(null===(d=m.values)||void 0===d?void 0:d[0])||v)}var O=f;"function"===typeof f&&(O=f.call(e,n,y)),O instanceof CanvasPattern===!1&&(O=Object(a.a)(Object(c.c)({},{cfg:{backgroundColor:y}},O)));var j=l[t];return Object(r.a)(Object(r.a)({},"function"===typeof j?j.call.apply(j,Object(r.d)([e,n],p)):j||{}),{fill:O||y})},s)})}}},1409:function(t,e,n){"use strict";var r;n.d(e,"d",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"f",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"a",(function(){return u}));var i="$$percentage$$",o="$$mappingValue$$",a="$$conversion$$",c="$$totalPercentage$$",s="$$x$$",l="$$y$$",u={appendPadding:[0,80],minSize:0,maxSize:1,meta:(r={},r[o]={min:0,max:1,nice:!1},r),label:{style:{fill:"#fff",fontSize:12}},tooltip:{showTitle:!1,showMarkers:!1,shared:!1},conversionTag:{offsetX:10,offsetY:0,style:{fontSize:12,fill:"rgba(0,0,0,0.45)"}}}},1410:function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return q})),n.d(e,"c",(function(){return it}));var r={};n.r(r),n.d(r,"default",(function(){return R})),n.d(r,"assign",(function(){return m})),n.d(r,"format",(function(){return D})),n.d(r,"parse",(function(){return B})),n.d(r,"defaultI18n",(function(){return j})),n.d(r,"setGlobalDateI18n",(function(){return C})),n.d(r,"setGlobalDateMasks",(function(){return N}));var i=n(579),o={};function a(t,e){o[t]=e}var c=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){Object(i.b)(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(i.W)(this.ticks,(function(e,n){return Object(i.O)(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,r=n?n(t,e):t;return Object(i.K)(r)||!Object(i.I)(r.toString)?"":r.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(i.b)(this,this.__cfg__),this.setDomain(),Object(i.G)(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(Object(i.Q)(t)){var n=o[t];if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(i.I)(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 Object(i.M)(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),s=function(t,e){return(s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function l(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}s(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var u=function(){return(u=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.create;function f(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,c=o.length;a<c;a++,i++)r[i]=o[a];return r}Object.create;var h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e}return l(e,t),e.prototype.buildIndexMap=function(){if(!this.translateIndexMap){this.translateIndexMap=new Map;for(var t=0;t<this.values.length;t++)this.translateIndexMap.set(this.values[t],t)}},e.prototype.translate=function(t){this.buildIndexMap();var e=this.translateIndexMap.get(t);return void 0===e&&(e=Object(i.M)(t)?t:NaN),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),r=Math.round(e*n)+this.min;return r<this.min||r>this.max?NaN:this.values[r]},e.prototype.getText=function(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=e;return Object(i.M)(e)&&!this.values.includes(e)&&(o=this.values[o]),t.prototype.getText.apply(this,f([o],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(i.K)(this.getConfig("min"))&&(this.min=0),Object(i.K)(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(c),d=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,p="[^\\s]+",g=/\[([^]*?)\]/gm;function v(t,e){for(var n=[],r=0,i=t.length;r<i;r++)n.push(t[r].substr(0,e));return n}var y=function(t){return function(e,n){var r=n[t].map((function(t){return t.toLowerCase()})).indexOf(e.toLowerCase());return r>-1?r:null}};function m(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0,i=e;r<i.length;r++){var o=i[r];for(var a in o)t[a]=o[a]}return t}var b=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],x=["January","February","March","April","May","June","July","August","September","October","November","December"],O=v(x,3),j={dayNamesShort:v(b,3),dayNames:b,monthNamesShort:O,monthNames:x,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},w=m({},j),C=function(t){return w=m(w,t)},S=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},E=function(t,e){for(void 0===e&&(e=2),t=String(t);t.length<e;)t="0"+t;return t},M={D:function(t){return String(t.getDate())},DD:function(t){return E(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return E(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return E(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return E(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return E(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return E(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return E(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return E(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return E(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return E(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return E(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+E(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+E(Math.floor(Math.abs(e)/60),2)+":"+E(Math.abs(e)%60,2)}},k=function(t){return+t-1},P=[null,"\\d\\d?"],A=[null,p],I=["isPm",p,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],F=["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}],T={D:["day","\\d\\d?"],DD:["day","\\d\\d"],Do:["day","\\d\\d?"+p,function(t){return parseInt(t,10)}],M:["month","\\d\\d?",k],MM:["month","\\d\\d",k],YY:["year","\\d\\d",function(t){var e=+(""+(new Date).getFullYear()).substr(0,2);return+(""+(+t>68?e-1:e)+t)}],h:["hour","\\d\\d?",void 0,"isPm"],hh:["hour","\\d\\d",void 0,"isPm"],H:["hour","\\d\\d?"],HH:["hour","\\d\\d"],m:["minute","\\d\\d?"],mm:["minute","\\d\\d"],s:["second","\\d\\d?"],ss:["second","\\d\\d"],YYYY:["year","\\d{4}"],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond","\\d\\d",function(t){return 10*+t}],SSS:["millisecond","\\d{3}"],d:P,dd:P,ddd:A,dddd:A,MMM:["month",p,y("monthNamesShort")],MMMM:["month",p,y("monthNames")],a:I,A:I,ZZ:F,Z:F},L={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"},N=function(t){return m(L,t)},D=function(t,e,n){if(void 0===e&&(e=L.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");var r=[];e=(e=L[e]||e).replace(g,(function(t,e){return r.push(e),"@@@"}));var i=m(m({},w),n);return(e=e.replace(d,(function(e){return M[e](t,i)}))).replace(/@@@/g,(function(){return r.shift()}))};function B(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=L[e]||e,t.length>1e3)return null;var r={year:(new Date).getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},i=[],o=[],a=e.replace(g,(function(t,e){return o.push(S(e)),"@@@"})),c={},s={};a=S(a).replace(d,(function(t){var e=T[t],n=e[0],r=e[1],o=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,o&&(s[o]=!0),i.push(e),"("+r+")"})),Object.keys(s).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),a=a.replace(/@@@/g,(function(){return o.shift()}));var l=t.match(new RegExp(a,"i"));if(!l)return null;for(var u,f=m(m({},w),n),h=1;h<l.length;h++){var p=i[h-1],v=p[0],y=p[2],b=y?y(l[h],f):+l[h];if(null==b)return null;r[v]=b}if(1===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:0===r.isPm&&12===+r.hour&&(r.hour=0),null==r.timezoneOffset){u=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond);for(var x=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],O=(h=0,x.length);h<O;h++)if(c[x[h][0]]&&r[x[h][0]]!==u[x[h][1]]())return null}else if(u=new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond)),r.month>11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return u}var R={format:D,parse:B,defaultI18n:j,setGlobalDateI18n:C,setGlobalDateMasks:N};function _(t,e){return(r.format||R.format)(t,e)}function z(t){return Object(i.Q)(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(i.E)(t)&&(t=t.getTime()),t}var V=36e5,H=24*V,K=31*H,Y=[["HH:mm:ss",1e3],["HH:mm:ss",1e4],["HH:mm:ss",3e4],["HH:mm",6e4],["HH:mm",6e5],["HH:mm",18e5],["HH",V],["HH",6*V],["HH",12*V],["YYYY-MM-DD",H],["YYYY-MM-DD",4*H],["YYYY-WW",7*H],["YYYY-MM",K],["YYYY-MM",4*K],["YYYY-MM",6*K],["YYYY",380*H]];function G(t,e,n){var r,o=(r=function(t){return t[1]},function(t,e,n,o){for(var a=Object(i.K)(n)?0:n,c=Object(i.K)(o)?t.length:o;a<c;){var s=a+c>>>1;r(t[s])>e?c=s:a=s+1}return a})(Y,(e-t)/n)-1,a=Y[o];return o<0?a=Y[0]:o>=Y.length&&(a=Object(i.U)(Y)),a}var W=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return l(e,t),e.prototype.translate=function(t){t=z(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(i.M)(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var r=this.values[n],i=this.formatter;return r=i?i(r,e):_(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;Object(i.j)(e,(function(t,n){e[n]=z(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(h),X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return l(e,t),e.prototype.scale=function(t){if(Object(i.K)(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=Object(i.z)(e),r=Object(i.U)(e);n<this.min&&(this.min=n),r>this.max&&(this.max=r),Object(i.K)(this.minLimit)||(this.min=n),Object(i.K)(this.maxLimit)||(this.max=r)},e.prototype.setDomain=function(){var t=Object(i.u)(this.values),e=t.min,n=t.max;Object(i.K)(this.min)&&(this.min=e),Object(i.K)(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=Object(i.l)(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}(c),q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return l(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}(X);function U(t,e){var n=Math.E;return e>=0?Math.pow(n,Math.log(e)/t):-1*Math.pow(n,Math.log(-e)/t)}function $(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function Z(t,e,n){Object(i.K)(n)&&(n=Math.max.apply(null,t));var r=n;return Object(i.j)(t,(function(t){t>0&&t<r&&(r=t)})),r===n&&(r=n/e),r>1&&(r=1),r}var Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return l(e,t),e.prototype.invert=function(t){var e,n=this.base,r=$(n,this.max),i=this.rangeMin(),o=this.rangeMax()-i,a=this.positiveMin;if(a){if(0===t)return 0;var c=1/(r-(e=$(n,a/n)))*o;if(t<c)return t/c*a}else e=$(n,this.min);var s=(t-i)/o*(r-e)+e;return Math.pow(n,s)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=Z(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var r=this.base,i=this.positiveMin;return i&&(n=1*i/r),t<i?t/i/($(r,e)-$(r,n)):($(r,t)-$(r,n))/($(r,e)-$(r,n))},e}(X),J=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return l(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,r=U(n,this.max),i=U(n,this.min),o=e*(r-i)+i,a=o>=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var r=this.exponent;return(U(r,t)-U(r,n))/(U(r,e)-U(r,n))},e}(X),tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return l(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),r=this.formatter;return r?r(n,e):_(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(i.Q)(n)||Object(i.E)(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return z(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(Object(i.K)(e)&&Object(i.M)(e)||(this.min=this.translate(this.min)),Object(i.K)(n)&&Object(i.M)(n)||(this.max=this.translate(this.max)),t&&t.length){var r=[],o=1/0,a=o,c=0;Object(i.j)(t,(function(t){var e=z(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");o>e?(a=o,o=e):a>e&&(a=e),c<e&&(c=e),r.push(e)})),t.length>1&&(this.minTickInterval=a-o),Object(i.K)(e)&&(this.min=o),Object(i.K)(n)&&(this.max=c)}},e}(q),et=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return l(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,r=this.getInvertPercent(t),o=Math.floor(r*(n-1));if(o>=n-1)return Object(i.U)(e);if(o<0)return Object(i.z)(e);var a=e[o],c=o/(n-1);return a+(r-c)/((o+1)/(n-1)-c)*(e[o+1]-a)},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||(Object(i.U)(e)!==this.max&&e.push(this.max),Object(i.z)(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(i.z)(e))return 0;if(t>Object(i.U)(e))return 1;var n=0;return Object(i.j)(e,(function(e,r){if(!(t>=e))return!1;n=r})),n/(e.length-1)},e}(X),nt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return l(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(et),rt={};function it(t){return rt[t]}function ot(t,e){if(it(t))throw new Error("type '"+t+"' existed.");rt[t]=e}var at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return l(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(i.M)(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(c);function ct(t){var e=t.values,n=t.tickInterval,r=t.tickCount,o=t.showLast;if(Object(i.M)(n)){var a=Object(i.l)(e,(function(t,e){return e%n===0})),c=Object(i.U)(e);return o&&Object(i.U)(a)!==c&&a.push(c),a}var s=e.length,l=t.min,u=t.max;if(Object(i.K)(l)&&(l=0),Object(i.K)(u)&&(u=e.length-1),!Object(i.M)(r)||r>=s)return e.slice(l,u+1);if(r<=0||u<=0)return[];for(var f=1===r?s:Math.floor(s/(r-1)),h=[],d=l,p=0;p<r&&!(d>=u);p++)d=Math.min(l+p*f,u),p===r-1&&o?h.push(e[u]):h.push(e[d]);return h}var st=Math.sqrt(50),lt=Math.sqrt(10),ut=Math.sqrt(2),ft=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(),o=0,a=this._domain.length-1,c=this._domain[o],s=this._domain[a];return s<c&&(c=(e=[s,c])[0],s=e[1],o=(n=[a,o])[0],a=n[1]),(r=ht(c,s,t))>0?r=ht(c=Math.floor(c/r)*r,s=Math.ceil(s/r)*r,t):r<0&&(r=ht(c=Math.ceil(c*r)/r,s=Math.floor(s*r)/r,t)),r>0?(i[o]=Math.floor(c/r)*r,i[a]=Math.ceil(s/r)*r,this.domain(i)):r<0&&(i[o]=Math.ceil(c*r)/r,i[a]=Math.floor(s*r)/r,this.domain(i)),this},t.prototype.ticks=function(t){return void 0===t&&(t=5),function(t,e,n){var r,i,o,a,c=-1;if(n=+n,(t=+t)===(e=+e)&&n>0)return[t];(r=e<t)&&(i=t,t=e,e=i);if(0===(a=ht(t,e,n))||!isFinite(a))return[];if(a>0)for(t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(i=Math.ceil(e-t+1));++c<i;)o[c]=(t+c)*a;else for(t=Math.floor(t*a),e=Math.ceil(e*a),o=new Array(i=Math.ceil(t-e+1));++c<i;)o[c]=(t-c)/a;r&&o.reverse();return o}(this._domain[0],this._domain[this._domain.length-1],t||5)},t}();function ht(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=st?10:o>=lt?5:o>=ut?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=st?10:o>=lt?5:o>=ut?2:1)}function dt(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e}function pt(t,e,n){var r=dt(t,n,"floor"),o=dt(e,n,"ceil");r=Object(i.p)(r,n),o=Object(i.p)(o,n);for(var a=[],c=Math.max((o-r)/(Math.pow(2,12)-1),n),s=r;s<=o;s+=c){var l=Object(i.p)(s,c);a.push(l)}return{min:r,max:o,ticks:a}}function gt(t,e,n){var r,o=t.minLimit,a=t.maxLimit,c=t.min,s=t.max,l=t.tickCount,u=void 0===l?5:l,f=Object(i.K)(o)?Object(i.K)(e)?c:e:o,h=Object(i.K)(a)?Object(i.K)(n)?s:n:a;if(f>h&&(h=(r=[f,h])[0],f=r[1]),u<=2)return[f,h];for(var d=(h-f)/(u-1),p=[],g=0;g<u;g++)p.push(f+d*g);return p}function vt(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var yt=[1,5,2,2.5,4,3],mt=100*Number.EPSILON;function bt(t,e,n,r,o,a){var c=Object(i.mb)(e),s=Object(i.B)(e,t),l=0,u=function(t,e){return(t%e+e)%e}(r,a);return(u<mt||a-u<mt)&&r<=0&&o>=0&&(l=1),1-s/(c-1)-n+l}function xt(t,e,n){var r=Object(i.mb)(e);return 1-Object(i.B)(e,t)/(r-1)-n+1}function Ot(t,e,n,r,i,o){var a=(t-1)/(o-i),c=(e-1)/(Math.max(o,r)-Math.min(n,i));return 2-Math.max(a/c,c/a)}function jt(t,e){return t>=e?2-(t-1)/(e-1):1}function wt(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 Ct(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 St(t,e,n,r,o,a){void 0===n&&(n=5),void 0===r&&(r=!0),void 0===o&&(o=yt),void 0===a&&(a=[.25,.2,.5,.05]);var c=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!c)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===c)return{min:t,max:e,ticks:[t]};if(e-t>1e148){var s=(e-t)/(j=n||5);return{min:t,max:e,ticks:Array(j).fill(null).map((function(e,n){return vt(t+s*n)}))}}for(var l={score:-2,lmin:0,lmax:0,lstep:0},u=1;u<1/0;){for(var f=0;f<o.length;f+=1){var h=o[f],d=xt(h,o,u);if(a[0]*d+a[1]+a[2]+a[3]<l.score){u=1/0;break}for(var p=2;p<1/0;){var g=jt(p,c);if(a[0]*d+a[1]+a[2]*g+a[3]<l.score)break;for(var v=(e-t)/(p+1)/u/h,y=Math.ceil(Math.log10(v));y<1/0;){var m=u*h*Math.pow(10,y),b=Ct(t,e,m*(p-1));if(a[0]*d+a[1]*b+a[2]*g+a[3]<l.score)break;var x=Math.floor(e/m)*u-(p-1)*u,O=Math.ceil(t/m)*u;if(x<=O)for(var j=O-x,w=0;w<=j;w+=1){var C=(x+w)*(m/u),S=C+m*(p-1),E=m,M=bt(h,o,u,C,S,E),k=wt(t,e,C,S),P=Ot(p,c,t,e,C,S),A=a[0]*M+a[1]*k+a[2]*P+1*a[3];A>l.score&&(!r||C<=t&&S>=e)&&(l.lmin=C,l.lmax=S,l.lstep=E,l.score=A)}y+=1}p+=1}}u+=1}var I=vt(l.lmax),F=vt(l.lmin),T=vt(l.lstep),L=Math.floor(function(t){return Math.round(1e12*t)/1e12}((I-F)/T))+1,N=new Array(L);N[0]=vt(F);for(f=1;f<L;f++)N[f]=vt(N[f-1]+T);return{min:Math.min(t,Object(i.z)(N)),max:Math.max(e,Object(i.U)(N)),ticks:N}}function Et(t,e,n){if(void 0===n&&(n=5),t===e)return{max:e,min:t,ticks:[t]};var r=n<0?0:Math.round(n);if(0===r)return{max:e,min:t,ticks:[]};var i=(e-t)/r,o=Math.pow(10,Math.floor(Math.log10(i))),a=o;2*o-i<1.5*(i-a)&&5*o-i<2.75*(i-(a=2*o))&&10*o-i<1.5*(i-(a=5*o))&&(a=10*o);for(var c=Math.ceil(e/a),s=Math.floor(t/a),l=Math.max(c*a,e),u=Math.min(s*a,t),f=Math.floor((l-u)/a)+1,h=new Array(f),d=0;d<f;d++)h[d]=vt(u+d*a);return{min:u,max:l,ticks:h}}function Mt(t,e){var n=t.length*e;return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function kt(t){return new Date(t).getFullYear()}function Pt(t){return new Date(t,0,1).getTime()}function At(t){return new Date(t).getMonth()}function It(t,e){return new Date(t,e,1).getTime()}a("cat",ct),a("time-cat",(function(t){return ct(u({showLast:!0},t))})),a("wilkinson-extended",(function(t){var e=t.min,n=t.max,r=t.tickCount,o=t.nice,a=t.tickInterval,c=t.minLimit,s=t.maxLimit,l=St(e,n,r,o).ticks;return Object(i.K)(c)&&Object(i.K)(s)?a?pt(e,n,a).ticks:l:gt(t,Object(i.z)(l),Object(i.U)(l))})),a("r-pretty",(function(t){var e=t.min,n=t.max,r=t.tickCount,o=t.tickInterval,a=t.minLimit,c=t.maxLimit,s=Et(e,n,r).ticks;return Object(i.K)(a)&&Object(i.K)(c)?o?pt(e,n,o).ticks:s:gt(t,Object(i.z)(s),Object(i.U)(s))})),a("time",(function(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickInterval,o=t.tickCount;if(i)o=Math.ceil((n-e)/i);else{var a=(n-e)/(i=G(e,n,o)[1])/o;a>1&&(i*=Math.ceil(a)),r&&i<r&&(i=r)}i=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),i);for(var c=[],s=e;s<n+i;s+=i)c.push(s);return c})),a("time-pretty",(function(t){var e=t.min,n=t.max,r=t.minTickInterval,i=t.tickCount,o=t.tickInterval,a=[];o||(o=(n-e)/i,r&&o<r&&(o=r)),o=Math.max(Math.floor((n-e)/(Math.pow(2,12)-1)),o);var c=kt(e);if(o>31536e6)for(var s=kt(n),l=Math.ceil(o/31536e6),u=c;u<=s+l;u+=l)a.push(Pt(u));else if(o>K){var f=Math.ceil(o/K),h=At(e),d=function(t,e){var n=kt(t),r=kt(e),i=At(t);return 12*(r-n)+(At(e)-i)%12}(e,n);for(u=0;u<=d+f;u+=f)a.push(It(c,u+h))}else if(o>H){var p=(b=new Date(e)).getFullYear(),g=b.getMonth(),v=b.getDate(),y=Math.ceil(o/H),m=function(t,e){return Math.ceil((e-t)/H)}(e,n);for(u=0;u<m+y;u+=y)a.push(new Date(p,g,v+u).getTime())}else if(o>V){p=(b=new Date(e)).getFullYear(),g=b.getMonth(),y=b.getDate();var b,x=b.getHours(),O=Math.ceil(o/V),j=function(t,e){return Math.ceil((e-t)/V)}(e,n);for(u=0;u<=j+O;u+=O)a.push(new Date(p,g,y,x+u).getTime())}else if(o>6e4){var w=function(t,e){return Math.ceil((e-t)/6e4)}(e,n),C=Math.ceil(o/6e4);for(u=0;u<=w+C;u+=C)a.push(e+6e4*u)}else{var S=o;S<1e3&&(S=1e3);var E=1e3*Math.floor(e/1e3),M=Math.ceil((n-e)/1e3),k=Math.ceil(S/1e3);for(u=0;u<M+k;u+=k)a.push(E+1e3*u)}return a.length>=512&&console.warn("Notice: current ticks length("+a.length+') >= 512, may cause performance issues, even out of memory. Because of the configure "tickInterval"(in milliseconds, current is '+o+") is too small, increase the value to solve the problem!"),a})),a("log",(function(t){var e,n=t.base,r=t.tickCount,i=t.min,o=t.max,a=t.values,c=$(n,o);if(i>0)e=Math.floor($(n,i));else{var s=Z(a,n,o);e=Math.floor($(n,s))}for(var l=c-e,u=Math.ceil(l/r),f=[],h=e;h<c+u;h+=u)f.push(Math.pow(n,h));return i<=0&&f.unshift(0),f})),a("pow",(function(t){var e=t.exponent,n=t.tickCount,r=Math.ceil(U(e,t.max));return Et(Math.floor(U(e,t.min)),r,n).ticks.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))})),a("quantile",(function(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var r=n.slice().sort((function(t,e){return t-e})),i=[],o=0;o<e;o++){var a=o/(e-1);i.push(Mt(r,a))}return i})),a("d3-linear",(function(t){var e=t.min,n=t.max,r=t.tickInterval,o=t.minLimit,a=t.maxLimit,c=function(t){var e=t.min,n=t.max,r=t.nice,i=t.tickCount,o=new ft;return o.domain([e,n]),r&&o.nice(i),o.ticks(i)}(t);return Object(i.K)(o)&&Object(i.K)(a)?r?pt(e,n,r).ticks:c:gt(t,Object(i.z)(c),Object(i.U)(c))})),ot("cat",h),ot("category",h),ot("identity",at),ot("linear",q),ot("log",Q),ot("pow",J),ot("time",tt),ot("timeCat",W),ot("quantize",et),ot("quantile",nt)},1411:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return j})),n.d(e,"b",(function(){return A}));var r=n(579),i=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,o=/[^\s\,]+/gi;var a=function(t){var e=t||[];return Object(r.C)(e)?e:Object(r.Q)(e)?(e=e.match(i),Object(r.j)(e,(function(t,n){if((t=t.match(o))[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(r.j)(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0},c=n(1080);var s=function(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=[[0,0],[1,1]]);for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var s,l,u,f=function(t,e,n,r){var i,o,a,s,l,u,f,h=[],d=!!r;if(d){a=r[0],s=r[1];for(var p=0,g=t.length;p<g;p+=1){var v=t[p];a=c.b.min([0,0],a,v),s=c.b.max([0,0],s,v)}}p=0;for(var y=t.length;p<y;p+=1){v=t[p];if(0!==p||n)if(p!==y-1||n){i=t[[p?p-1:y-1,p-1][n?0:1]],o=t[n?(p+1)%y:p+1];var m=[0,0];m=c.b.sub(m,o,i),m=c.b.scale(m,m,e);var b=c.b.distance(v,i),x=c.b.distance(v,o),O=b+x;0!==O&&(b/=O,x/=O);var j=c.b.scale([0,0],m,-b),w=c.b.scale([0,0],m,x);u=c.b.add([0,0],v,j),l=c.b.add([0,0],v,w),l=c.b.min([0,0],l,c.b.max([0,0],o,v)),l=c.b.max([0,0],l,c.b.min([0,0],o,v)),j=c.b.sub([0,0],l,v),j=c.b.scale([0,0],j,-b/x),u=c.b.add([0,0],v,j),u=c.b.min([0,0],u,c.b.max([0,0],i,v)),u=c.b.max([0,0],u,c.b.min([0,0],i,v)),w=c.b.sub([0,0],v,u),w=c.b.scale([0,0],w,x/b),l=c.b.add([0,0],v,w),d&&(u=c.b.max([0,0],u,a),u=c.b.min([0,0],u,s),l=c.b.max([0,0],l,a),l=c.b.min([0,0],l,s)),h.push(f),h.push(u),f=l}else u=v,h.push(f),h.push(u);else f=v}return n&&h.push(h.shift()),h}(i,.4,r,n),h=i.length,d=[];for(o=0;o<h-1;o+=1)s=f[2*o],l=f[2*o+1],u=i[o+1],d.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]]);return r&&(s=f[h],l=f[h+1],u=i[0],d.push(["C",s[0],s[1],l[0],l[1],u[0],u[1]])),d};var l="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",u=new RegExp("([a-z])["+l+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+l+"]*,?["+l+"]*)+)","ig"),f=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+l+"]*,?["+l+"]*","ig");function h(t){if(!t)return null;if(Object(r.C)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(u,(function(t,r,i){var o=[],a=r.toLowerCase();if(i.replace(f,(function(t,e){e&&o.push(+e)})),"m"===a&&o.length>2&&(n.push([r].concat(o.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===o.length&&n.push([r,o[0]]),"r"===a)n.push([r].concat(o));else for(;o.length>=e[a]&&(n.push([r].concat(o.splice(0,e[a]))),e[a]););return""})),n}var d=/[a-z]/;function p(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function g(t){var e=h(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,r=0;r<e.length;r++){var i=e[r][0];if(d.test(i)||["V","H","T","S"].indexOf(i)>=0){n=!0;break}}if(!n)return e;var o=[],a=0,c=0,s=0,l=0,u=0,f=e[0];"M"!==f[0]&&"m"!==f[0]||(s=a=+f[1],l=c=+f[2],u++,o[0]=["M",a,c]);r=u;for(var g=e.length;r<g;r++){var v=e[r],y=o[r-1],m=[],b=(i=v[0]).toUpperCase();if(i!==b)switch(m[0]=b,b){case"A":m[1]=v[1],m[2]=v[2],m[3]=v[3],m[4]=v[4],m[5]=v[5],m[6]=+v[6]+a,m[7]=+v[7]+c;break;case"V":m[1]=+v[1]+c;break;case"H":m[1]=+v[1]+a;break;case"M":s=+v[1]+a,l=+v[2]+c,m[1]=s,m[2]=l;break;default:for(var x=1,O=v.length;x<O;x++)m[x]=+v[x]+(x%2?a:c)}else m=e[r];switch(b){case"Z":a=+s,c=+l;break;case"H":m=["L",a=m[1],c];break;case"V":m=["L",a,c=m[1]];break;case"T":a=m[1],c=m[2];var j=p([y[1],y[2]],[y[3],y[4]]);m=["Q",j[0],j[1],a,c];break;case"S":a=m[m.length-2],c=m[m.length-1];var w=y.length,C=p([y[w-4],y[w-3]],[y[w-2],y[w-1]]);m=["C",C[0],C[1],m[1],m[2],a,c];break;case"M":s=m[m.length-2],l=m[m.length-1];break;default:a=m[m.length-2],c=m[m.length-1]}o.push(m)}return o}Math.PI;function v(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function y(t,e){return v(t)*v(e)?(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e)):1}function m(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(y(t,e))}function b(t,e){return t[0]===e[0]&&t[1]===e[1]}function x(t,e){var n=e[1],i=e[2],o=Object(r.eb)(Object(r.sb)(e[3]),2*Math.PI),a=e[4],c=e[5],s=t[0],l=t[1],u=e[6],f=e[7],h=Math.cos(o)*(s-u)/2+Math.sin(o)*(l-f)/2,d=-1*Math.sin(o)*(s-u)/2+Math.cos(o)*(l-f)/2,p=h*h/(n*n)+d*d/(i*i);p>1&&(n*=Math.sqrt(p),i*=Math.sqrt(p));var g=n*n*(d*d)+i*i*(h*h),v=g?Math.sqrt((n*n*(i*i)-g)/g):1;a===c&&(v*=-1),isNaN(v)&&(v=0);var x=i?v*n*d/i:0,O=n?v*-i*h/n:0,j=(s+u)/2+Math.cos(o)*x-Math.sin(o)*O,w=(l+f)/2+Math.sin(o)*x+Math.cos(o)*O,C=[(h-x)/n,(d-O)/i],S=[(-1*h-x)/n,(-1*d-O)/i],E=m([1,0],C),M=m(C,S);return y(C,S)<=-1&&(M=Math.PI),y(C,S)>=1&&(M=0),0===c&&M>0&&(M-=2*Math.PI),1===c&&M<0&&(M+=2*Math.PI),{cx:j,cy:w,rx:b(t,[u,f])?0:n,ry:b(t,[u,f])?0:i,startAngle:E,endAngle:E+M,xRotation:o,arcFlag:a,sweepFlag:c}}function O(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function j(t){for(var e=[],n=null,r=null,i=null,o=0,c=(t=a(t)).length,s=0;s<c;s++){var l=t[s];r=t[s+1];var u=l[0],f={command:u,prePoint:n,params:l,startTangent:null,endTangent:null};switch(u){case"M":i=[l[1],l[2]],o=s;break;case"A":var h=x(n,l);f.arcParams=h}if("Z"===u)n=i,r=t[o+1];else{var d=l.length;n=[l[d-2],l[d-1]]}r&&"Z"===r[0]&&(r=t[o],e[o]&&(e[o].prePoint=n)),f.currentPoint=n,e[o]&&b(n,e[o].currentPoint)&&(e[o].prePoint=f.prePoint);var p=r?[r[r.length-2],r[r.length-1]]:null;f.nextPoint=p;var g=f.prePoint;if(["L","H","V"].includes(u))f.startTangent=[g[0]-n[0],g[1]-n[1]],f.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===u){var v=[l[1],l[2]];f.startTangent=[g[0]-v[0],g[1]-v[1]],f.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===u){v=O((j=e[s-1]).currentPoint,g);"Q"===j.command?(f.command="Q",f.startTangent=[g[0]-v[0],g[1]-v[1]],f.endTangent=[n[0]-v[0],n[1]-v[1]]):(f.command="TL",f.startTangent=[g[0]-n[0],g[1]-n[1]],f.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===u){var y=[l[1],l[2]],m=[l[3],l[4]];f.startTangent=[g[0]-y[0],g[1]-y[1]],f.endTangent=[n[0]-m[0],n[1]-m[1]],0===f.startTangent[0]&&0===f.startTangent[1]&&(f.startTangent=[y[0]-m[0],y[1]-m[1]]),0===f.endTangent[0]&&0===f.endTangent[1]&&(f.endTangent=[m[0]-y[0],m[1]-y[1]])}else if("S"===u){var j;y=O((j=e[s-1]).currentPoint,g),m=[l[1],l[2]];"C"===j.command?(f.command="C",f.startTangent=[g[0]-y[0],g[1]-y[1]],f.endTangent=[n[0]-m[0],n[1]-m[1]]):(f.command="SQ",f.startTangent=[g[0]-m[0],g[1]-m[1]],f.endTangent=[n[0]-m[0],n[1]-m[1]])}else if("A"===u){var w=.001,C=f.arcParams||{},S=C.cx,E=void 0===S?0:S,M=C.cy,k=void 0===M?0:M,P=C.rx,A=void 0===P?0:P,I=C.ry,F=void 0===I?0:I,T=C.sweepFlag,L=void 0===T?0:T,N=C.startAngle,D=void 0===N?0:N,B=C.endAngle,R=void 0===B?0:B;0===L&&(w*=-1);var _=A*Math.cos(D-w)+E,z=F*Math.sin(D-w)+k;f.startTangent=[_-i[0],z-i[1]];var V=A*Math.cos(D+R+w)+E,H=F*Math.sin(D+R-w)+k;f.endTangent=[g[0]-V,g[1]-H]}e.push(f)}return e}var w=function(t,e,n){return t>=e&&t<=n};function C(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function S(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function E(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],c=t[(o+1)%i];if(S(a,c,[e,n]))return!0;C(a[1]-n)>0!==C(c[1]-n)>0&&C(e-(n-a[1])*(a[0]-c[0])/(a[1]-c[1])-a[0])<0&&(r=!r)}return r}function M(t){for(var e=[],n=t.length,r=0;r<n-1;r++){var i=t[r],o=t[r+1];e.push({from:{x:i[0],y:i[1]},to:{x:o[0],y:o[1]}})}if(e.length>1){var a=t[0],c=t[n-1];e.push({from:{x:c[0],y:c[1]},to:{x:a[0],y:a[1]}})}return e}function k(t,e){var n=!1;return Object(r.j)(t,(function(t){if(function(t,e,n,r){var i=n.x-t.x,o=n.y-t.y,a=e.x-t.x,c=e.y-t.y,s=r.x-n.x,l=r.y-n.y,u=a*l-c*s,f=null;if(u*u>.001*(a*a+c*c)*(s*s+l*l)){var h=(i*l-o*s)/u,d=(i*c-o*a)/u;w(h,0,1)&&w(d,0,1)&&(f={x:t.x+h*a,y:t.y+h*c})}return f}(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function P(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 A(t,e){if(t.length<2||e.length<2)return!1;var n,i,o=P(t),a=P(e);if(n=o,(i=a).minX>n.maxX||i.maxX<n.minX||i.minY>n.maxY||i.maxY<n.minY)return!1;var c=!1;if(Object(r.j)(e,(function(e){if(E(t,e[0],e[1]))return c=!0,!1})),c)return!0;if(Object(r.j)(t,(function(t){if(E(e,t[0],t[1]))return c=!0,!1})),c)return!0;var s=M(t),l=M(e),u=!1;return Object(r.j)(l,(function(t){if(k(s,t))return u=!0,!1})),u}},1442:function(t,e,n){var r,i;void 0===(i="function"===typeof(r=function(){var t,e,n={},r={},i={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},o={currentLocale:i.currentLocale,zeroFormat:i.zeroFormat,nullFormat:i.nullFormat,defaultFormat:i.defaultFormat,scalePercentBy100:i.scalePercentBy100};function a(t,e){this._input=t,this._value=e}return(t=function(r){var i,c,s,l;if(t.isNumeral(r))i=r.value();else if(0===r||"undefined"===typeof r)i=0;else if(null===r||e.isNaN(r))i=null;else if("string"===typeof r)if(o.zeroFormat&&r===o.zeroFormat)i=0;else if(o.nullFormat&&r===o.nullFormat||!r.replace(/[^0-9]+/g,"").length)i=null;else{for(c in n)if((l="function"===typeof n[c].regexps.unformat?n[c].regexps.unformat():n[c].regexps.unformat)&&r.match(l)){s=n[c].unformat;break}i=(s=s||t._.stringToNumber)(r)}else i=Number(r)||null;return new a(r,i)}).version="2.0.6",t.isNumeral=function(t){return t instanceof a},t._=e={numberToFormat:function(e,n,i){var o,a,c,s,l,u,f,h,d=r[t.options.currentLocale],p=!1,g=!1,v="",y="",m=!1;if(e=e||0,c=Math.abs(e),t._.includes(n,"(")?(p=!0,n=n.replace(/[\(|\)]/g,"")):(t._.includes(n,"+")||t._.includes(n,"-"))&&(u=t._.includes(n,"+")?n.indexOf("+"):e<0?n.indexOf("-"):-1,n=n.replace(/[\+|\-]/g,"")),t._.includes(n,"a")&&(a=!!(a=n.match(/a(k|m|b|t)?/))&&a[1],t._.includes(n," a")&&(v=" "),n=n.replace(new RegExp(v+"a[kmbt]?"),""),c>=1e12&&!a||"t"===a?(v+=d.abbreviations.trillion,e/=1e12):c<1e12&&c>=1e9&&!a||"b"===a?(v+=d.abbreviations.billion,e/=1e9):c<1e9&&c>=1e6&&!a||"m"===a?(v+=d.abbreviations.million,e/=1e6):(c<1e6&&c>=1e3&&!a||"k"===a)&&(v+=d.abbreviations.thousand,e/=1e3)),t._.includes(n,"[.]")&&(g=!0,n=n.replace("[.]",".")),s=e.toString().split(".")[0],l=n.split(".")[1],f=n.indexOf(","),o=(n.split(".")[0].split(",")[0].match(/0/g)||[]).length,l?(t._.includes(l,"[")?(l=(l=l.replace("]","")).split("["),y=t._.toFixed(e,l[0].length+l[1].length,i,l[1].length)):y=t._.toFixed(e,l.length,i),s=y.split(".")[0],y=t._.includes(y,".")?d.delimiters.decimal+y.split(".")[1]:"",g&&0===Number(y.slice(1))&&(y="")):s=t._.toFixed(e,0,i),v&&!a&&Number(s)>=1e3&&v!==d.abbreviations.trillion)switch(s=String(Number(s)/1e3),v){case d.abbreviations.thousand:v=d.abbreviations.million;break;case d.abbreviations.million:v=d.abbreviations.billion;break;case d.abbreviations.billion:v=d.abbreviations.trillion}if(t._.includes(s,"-")&&(s=s.slice(1),m=!0),s.length<o)for(var b=o-s.length;b>0;b--)s="0"+s;return f>-1&&(s=s.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+d.delimiters.thousands)),0===n.indexOf(".")&&(s=""),h=s+y+(v||""),p?h=(p&&m?"(":"")+h+(p&&m?")":""):u>=0?h=0===u?(m?"-":"+")+h:h+(m?"-":"+"):m&&(h="-"+h),h},stringToNumber:function(t){var e,n,i,a=r[o.currentLocale],c=t,s={thousand:3,million:6,billion:9,trillion:12};if(o.zeroFormat&&t===o.zeroFormat)n=0;else if(o.nullFormat&&t===o.nullFormat||!t.replace(/[^0-9]+/g,"").length)n=null;else{for(e in n=1,"."!==a.delimiters.decimal&&(t=t.replace(/\./g,"").replace(a.delimiters.decimal,".")),s)if(i=new RegExp("[^a-zA-Z]"+a.abbreviations[e]+"(?:\\)|(\\"+a.currency.symbol+")?(?:\\))?)?$"),c.match(i)){n*=Math.pow(10,s[e]);break}n*=(t.split("-").length+Math.min(t.split("(").length-1,t.split(")").length-1))%2?1:-1,t=t.replace(/[^0-9\.]+/g,""),n*=Number(t)}return n},isNaN:function(t){function e(e){return t.apply(this,arguments)}return e.toString=function(){return t.toString()},e}((function(t){return"number"===typeof t&&isNaN(t)})),includes:function(t,e){return-1!==t.indexOf(e)},insert:function(t,e,n){return t.slice(0,n)+e+t.slice(n)},reduce:function(t,e){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!==typeof e)throw new TypeError(e+" is not a function");var n,r=Object(t),i=r.length>>>0,o=0;if(3===arguments.length)n=arguments[2];else{for(;o<i&&!(o in r);)o++;if(o>=i)throw new TypeError("Reduce of empty array with no initial value");n=r[o++]}for(;o<i;o++)o in r&&(n=e(n,r[o],o,r));return n},multiplier:function(t){var e=t.toString().split(".");return e.length<2?1:Math.pow(10,e[1].length)},correctionFactor:function(){var t=Array.prototype.slice.call(arguments);return t.reduce((function(t,n){var r=e.multiplier(n);return t>r?t:r}),1)},toFixed:function(t,e,n,r){var i,o,a,c,s=t.toString().split("."),l=e-(r||0);return i=2===s.length?Math.min(Math.max(s[1].length,l),e):l,a=Math.pow(10,i),c=(n(t+"e+"+i)/a).toFixed(i),r>e-i&&(o=new RegExp("\\.?0{1,"+(r-(e-i))+"}$"),c=c.replace(o,"")),c}},t.options=o,t.formats=n,t.locales=r,t.locale=function(t){return t&&(o.currentLocale=t.toLowerCase()),o.currentLocale},t.localeData=function(t){if(!t)return r[o.currentLocale];if(t=t.toLowerCase(),!r[t])throw new Error("Unknown locale : "+t);return r[t]},t.reset=function(){for(var t in i)o[t]=i[t]},t.zeroFormat=function(t){o.zeroFormat="string"===typeof t?t:null},t.nullFormat=function(t){o.nullFormat="string"===typeof t?t:null},t.defaultFormat=function(t){o.defaultFormat="string"===typeof t?t:"0.0"},t.register=function(t,e,n){if(e=e.toLowerCase(),this[t+"s"][e])throw new TypeError(e+" "+t+" already registered.");return this[t+"s"][e]=n,n},t.validate=function(e,n){var r,i,o,a,c,s,l,u;if("string"!==typeof e&&(e+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",e)),(e=e.trim()).match(/^\d+$/))return!0;if(""===e)return!1;try{l=t.localeData(n)}catch(f){l=t.localeData(t.locale())}return o=l.currency.symbol,c=l.abbreviations,r=l.delimiters.decimal,i="."===l.delimiters.thousands?"\\.":l.delimiters.thousands,(null===(u=e.match(/^[^\d]+/))||(e=e.substr(1),u[0]===o))&&(null===(u=e.match(/[^\d]+$/))||(e=e.slice(0,-1),u[0]===c.thousand||u[0]===c.million||u[0]===c.billion||u[0]===c.trillion))&&(s=new RegExp(i+"{2}"),!e.match(/[^\d.,]/g)&&!((a=e.split(r)).length>2)&&(a.length<2?!!a[0].match(/^\d+.*\d$/)&&!a[0].match(s):1===a[0].length?!!a[0].match(/^\d+$/)&&!a[0].match(s)&&!!a[1].match(/^\d+$/):!!a[0].match(/^\d+.*\d$/)&&!a[0].match(s)&&!!a[1].match(/^\d+$/)))},t.fn=a.prototype={clone:function(){return t(this)},format:function(e,r){var i,a,c,s=this._value,l=e||o.defaultFormat;if(r=r||Math.round,0===s&&null!==o.zeroFormat)a=o.zeroFormat;else if(null===s&&null!==o.nullFormat)a=o.nullFormat;else{for(i in n)if(l.match(n[i].regexps.format)){c=n[i].format;break}a=(c=c||t._.numberToFormat)(s,l,r)}return a},value:function(){return this._value},input:function(){return this._input},set:function(t){return this._value=Number(t),this},add:function(t){var n=e.correctionFactor.call(null,this._value,t);return this._value=e.reduce([this._value,t],(function(t,e,r,i){return t+Math.round(n*e)}),0)/n,this},subtract:function(t){var n=e.correctionFactor.call(null,this._value,t);return this._value=e.reduce([t],(function(t,e,r,i){return t-Math.round(n*e)}),Math.round(this._value*n))/n,this},multiply:function(t){return this._value=e.reduce([this._value,t],(function(t,n,r,i){var o=e.correctionFactor(t,n);return Math.round(t*o)*Math.round(n*o)/Math.round(o*o)}),1),this},divide:function(t){return this._value=e.reduce([this._value,t],(function(t,n,r,i){var o=e.correctionFactor(t,n);return Math.round(t*o)/Math.round(n*o)})),this},difference:function(e){return Math.abs(t(this._value).subtract(e).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(t){var e=t%10;return 1===~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th"},currency:{symbol:"$"}}),t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(e,n,r){var i,o=t._.includes(n," BPS")?" ":"";return e*=1e4,n=n.replace(/\s?BPS/,""),i=t._.numberToFormat(e,n,r),t._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"BPS"),i=i.join("")):i=i+o+"BPS",i},unformat:function(e){return+(1e-4*t._.stringToNumber(e)).toFixed(15)}}),function(){var e={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},n={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},r=e.suffixes.concat(n.suffixes.filter((function(t){return e.suffixes.indexOf(t)<0}))).join("|");r="("+r.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(r)},format:function(r,i,o){var a,c,s,l=t._.includes(i,"ib")?n:e,u=t._.includes(i," b")||t._.includes(i," ib")?" ":"";for(i=i.replace(/\s?i?b/,""),a=0;a<=l.suffixes.length;a++)if(c=Math.pow(l.base,a),s=Math.pow(l.base,a+1),null===r||0===r||r>=c&&r<s){u+=l.suffixes[a],c>0&&(r/=c);break}return t._.numberToFormat(r,i,o)+u},unformat:function(r){var i,o,a=t._.stringToNumber(r);if(a){for(i=e.suffixes.length-1;i>=0;i--){if(t._.includes(r,e.suffixes[i])){o=Math.pow(e.base,i);break}if(t._.includes(r,n.suffixes[i])){o=Math.pow(n.base,i);break}}a*=o||1}return a}})}(),t.register("format","currency",{regexps:{format:/(\$)/},format:function(e,n,r){var i,o,a=t.locales[t.options.currentLocale],c={before:n.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:n.match(/([\+|\-|\)|\s|\$]*)$/)[0]};for(n=n.replace(/\s?\$\s?/,""),i=t._.numberToFormat(e,n,r),e>=0?(c.before=c.before.replace(/[\-\(]/,""),c.after=c.after.replace(/[\-\)]/,"")):e<0&&!t._.includes(c.before,"-")&&!t._.includes(c.before,"(")&&(c.before="-"+c.before),o=0;o<c.before.length;o++)switch(c.before[o]){case"$":i=t._.insert(i,a.currency.symbol,o);break;case" ":i=t._.insert(i," ",o+a.currency.symbol.length-1)}for(o=c.after.length-1;o>=0;o--)switch(c.after[o]){case"$":i=o===c.after.length-1?i+a.currency.symbol:t._.insert(i,a.currency.symbol,-(c.after.length-(1+o)));break;case" ":i=o===c.after.length-1?i+" ":t._.insert(i," ",-(c.after.length-(1+o)+a.currency.symbol.length-1))}return i}}),t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(e,n,r){var i=("number"!==typeof e||t._.isNaN(e)?"0e+0":e.toExponential()).split("e");return n=n.replace(/e[\+|\-]{1}0/,""),t._.numberToFormat(Number(i[0]),n,r)+"e"+i[1]},unformat:function(e){var n=t._.includes(e,"e+")?e.split("e+"):e.split("e-"),r=Number(n[0]),i=Number(n[1]);return i=t._.includes(e,"e-")?i*=-1:i,t._.reduce([r,Math.pow(10,i)],(function(e,n,r,i){var o=t._.correctionFactor(e,n);return e*o*(n*o)/(o*o)}),1)}}),t.register("format","ordinal",{regexps:{format:/(o)/},format:function(e,n,r){var i=t.locales[t.options.currentLocale],o=t._.includes(n," o")?" ":"";return n=n.replace(/\s?o/,""),o+=i.ordinal(e),t._.numberToFormat(e,n,r)+o}}),t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(e,n,r){var i,o=t._.includes(n," %")?" ":"";return t.options.scalePercentBy100&&(e*=100),n=n.replace(/\s?\%/,""),i=t._.numberToFormat(e,n,r),t._.includes(i,")")?((i=i.split("")).splice(-1,0,o+"%"),i=i.join("")):i=i+o+"%",i},unformat:function(e){var n=t._.stringToNumber(e);return t.options.scalePercentBy100?.01*n:n}}),t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(t,e,n){var r=Math.floor(t/60/60),i=Math.floor((t-60*r*60)/60),o=Math.round(t-60*r*60-60*i);return r+":"+(i<10?"0"+i:i)+":"+(o<10?"0"+o:o)},unformat:function(t){var e=t.split(":"),n=0;return 3===e.length?(n+=60*Number(e[0])*60,n+=60*Number(e[1]),n+=Number(e[2])):2===e.length&&(n+=60*Number(e[0]),n+=Number(e[1])),Number(n)}}),t})?r.call(e,n,e,t):r)||(t.exports=i)},1444:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(613),i=n(579),o=n(1680);function a(t,e,n,a){var c=Object(i.ib)(t,(function(t,r){var i=r[n],a=t.has(i)?t.get(i):0,c=r[e];return a=Object(o.b)(c)?a+c:a,t.set(i,a),t}),new Map);return Object(i.W)(t,(function(t){var i,s=t[e],l=t[n],u=Object(o.b)(s)&&0!==c.get(l)?s/c.get(l):0;return Object(r.a)(Object(r.a)({},t),((i={})[a]=u,i))}))}function c(t,e,n,a){var c=Object(i.ib)(t,(function(t,r){var a=Object(i.ib)(n,(function(t,e){return""+t+r[e]}),""),c=t.has(a)?t.get(a):0,s=r[e];return c=Object(o.b)(s)?c+s:c,t.set(a,c),t}),new Map);return Object(i.W)(t,(function(t){var s,l=t[e],u=Object(i.ib)(n,(function(e,n){return""+e+t[n]}),""),f=Object(o.b)(l)&&0!==c.get(u)?l/c.get(u):0;return Object(r.a)(Object(r.a)({},t),((s={})[a]=f,s))}))}function s(t,e,n,r,i){return i?a(t,e,n,r):t}},1445:function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return f}));var r=n(800),i=n(618),o=n(818),a=n(1682),c=n(1446),s=n(1681);function l(t){var e=t.chart,n=t.options,r=n.data,s=n.color,l=n.areaStyle,u=n.point,f=n.line,h=null===u||void 0===u?void 0:u.state,d=Object(c.a)(r);e.data(d);var p=Object(i.c)({},t,{options:{xField:a.c,yField:a.d,area:{color:s,style:l},line:f,point:u}}),g=Object(i.c)({},p,{options:{tooltip:!1}}),v=Object(i.c)({},p,{options:{tooltip:!1,state:h}});return Object(o.a)(p),Object(o.d)(g),Object(o.e)(v),e.axis(!1),e.legend(!1),t}function u(t){var e,n,o=t.options,l=o.xAxis,u=o.yAxis,f=o.data,h=Object(c.a)(f);return Object(i.f)(Object(r.g)(((e={})[a.c]=l,e[a.d]=u,e),((n={})[a.c]={type:"cat"},n[a.d]=Object(s.a)(h,a.d),n)))(t)}function f(t){return Object(i.f)(Object(r.f)("areaStyle"),l,u,r.l,r.k,r.a,Object(r.b)())(t)}},1446:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(579);function i(t){return Object(r.W)(t||[],(function(t,e){return{x:""+e,y:t}}))}},1447:function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var o,a=t.children,c=-1,s=a.length,l=t.value&&(r-e)/t.value;++c<s;)(o=a[c]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l}},1450:function(t,e,n){"use strict";n.d(e,"b",(function(){return x})),n.d(e,"a",(function(){return S}));var r=n(613),i=n(579),o=n(800),a=n(761),c=n(618),s=n(2269);function l(t,e){return Object(c.c)({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.a}},t)}function u(t,e){return Object(i.W)(e.getModel().points,(function(e){return t.convertPoint(e)}))}function f(t,e,n){!function(t,e,n){var i=t.view,o=t.geometry,a=t.group,c=t.options,s=t.horizontal,l=c.offset,f=c.size,h=c.arrow,d=i.getCoordinate(),p=u(d,e)[3],g=u(d,n)[0],v=g.y-p.y,y=g.x-p.x;if("boolean"!==typeof h){var m,b=h.headSize,x=c.spacing;s?(y-b)/2<x?(x=Math.max(1,(y-b)/2),m=[[p.x+x,p.y-l],[p.x+x,p.y-l-f],[g.x-x,g.y-l-f/2]]):m=[[p.x+x,p.y-l],[p.x+x,p.y-l-f],[g.x-x-b,g.y-l-f],[g.x-x,g.y-l-f/2],[g.x-x-b,g.y-l]]:(v-b)/2<x?(x=Math.max(1,(v-b)/2),m=[[p.x+l,p.y+x],[p.x+l+f,p.y+x],[g.x+l+f/2,g.y-x]]):m=[[p.x+l,p.y+x],[p.x+l+f,p.y+x],[g.x+l+f,g.y-x-b],[g.x+l+f/2,g.y-x],[g.x+l,g.y-x-b]],a.addShape("polygon",{id:i.id+"-conversion-tag-arrow-"+o.getElementId(e.getModel().mappingData),name:"conversion-tag-arrow",origin:{element:e,nextElement:n},attrs:Object(r.a)(Object(r.a)({},h.style||{}),{points:m})})}}(t,e,n),function(t,e,n){var i,o,a,c=t.view,s=t.geometry,l=t.group,f=t.options,h=t.field,d=t.horizontal,p=f.offset,g=f.size;if("boolean"!==typeof f.text){var v=c.getCoordinate(),y=(null===(i=f.text)||void 0===i?void 0:i.formatter)&&(null===(o=f.text)||void 0===o?void 0:o.formatter(e.getData()[h],n.getData()[h])),m=u(v,e)[d?3:0],b=u(v,n)[d?0:3],x=l.addShape("text",{id:c.id+"-conversion-tag-text-"+s.getElementId(e.getModel().mappingData),name:"conversion-tag-text",origin:{element:e,nextElement:n},attrs:Object(r.a)(Object(r.a)({},(null===(a=f.text)||void 0===a?void 0:a.style)||{}),{text:y,x:d?(m.x+b.x)/2:m.x+p+g/2,y:d?m.y-p-g/2:(m.y+b.y)/2})});if(d){var O=b.x-m.x,j=x.getBBox().width;if(j>O){var w=j/y.length,C=Math.max(1,Math.ceil(O/w)-1),S=y.slice(0,C)+"...";x.attr("text",S)}}}}(t,e,n)}var h={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},d=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}]}]};Object(a.o)(h.hover,{start:d(h.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(a.o)(h.click,{start:d(h.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var p=n(818),g=n(1408),v=n(2326),y=n(1444);function m(t){var e=t.options,n=e.legend,i=e.seriesField,o=e.isStack;return i?!1!==n&&(n=Object(r.a)({position:o?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function b(t){var e=t.chart,n=t.options,i=n.data,o=n.columnStyle,a=n.color,s=n.columnWidthRatio,l=n.isPercent,u=n.isGroup,f=n.isStack,h=n.xField,d=n.yField,g=n.seriesField,v=n.groupField,m=n.tooltip,b=n.shape,x=l&&u&&f?Object(y.b)(i,d,[h,v],d):Object(y.a)(i,d,h,d,l),O=[];f&&g&&!u?x.forEach((function(t){var e=O.find((function(e){return e[h]===t[h]&&e[g]===t[g]}));e?e[d]+=t[d]||0:O.push(Object(r.a)({},t))})):O=x,e.data(O);var j=l?Object(r.a)({formatter:function(t){return{name:u&&f?t[g]+" - "+t[v]:t[g]||t[h],value:(100*Number(t[d])).toFixed(2)+"%"}}},m):m,w=Object(c.c)({},t,{options:{data:O,widthRatio:s,tooltip:j,interval:{shape:b,style:o,color:a}}});return Object(p.c)(w),w}function x(t){var e,n,i=t.options,a=i.xAxis,s=i.yAxis,l=i.xField,u=i.yField,f=i.data,h=i.isPercent?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(c.f)(Object(o.g)(((e={})[l]=a,e[u]=s,e),((n={})[l]={type:"cat"},n[u]=Object(r.a)(Object(r.a)({},Object(c.b)(f,u)),h),n)))(t)}function O(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function j(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 w(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,a=n.isRange,s=Object(c.d)(e,"interval");if(i){var l=i.callback,u=Object(r.c)(i,["callback"]);s.label({fields:[o],callback:l,cfg:Object(r.a)({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"}}]},Object(c.A)(a?Object(r.a)({content:function(t){var e;return null===(e=t[o])||void 0===e?void 0:e.join("-")}},u):u))})}else s.label(!1);return t}function C(t){var e=t.chart,n=t.options,o=n.tooltip,a=n.isGroup,s=n.isStack,l=n.groupField,u=n.data,f=n.xField,h=n.yField,d=n.seriesField;if(!1===o)e.tooltip(!1);else{var p=o;if(a&&s){var g=(null===p||void 0===p?void 0:p.formatter)||function(t){return{name:t[d]+" - "+t[l],value:t[h]}};p=Object(r.a)(Object(r.a)({},p),{customItems:function(t){var e=[];return Object(i.j)(t,(function(t){Object(i.l)(u,(function(e){return Object(i.J)(e,Object(c.t)(t.data,[f,d]))})).forEach((function(n){e.push(Object(r.a)(Object(r.a)(Object(r.a)({},t),{value:n[h],data:n,mappingData:{_origin:n}}),g(n)))}))})),e}})}e.tooltip(p)}return t}function S(t,e){void 0===e&&(e=!1);var n,r,s,u,p=t.options,y=p.seriesField;return Object(c.f)(m,o.k,Object(g.a)("columnStyle"),o.j,Object(o.m)("rect"),b,x,O,j,C,o.i,o.h,w,v.a,o.c,o.a,Object(o.b)(),(r=p.yField,void 0===(s=!e)&&(s=!0),void 0===(u=!!y)&&(u=!1),function(t){var e=t.options,n=t.chart,o=e.conversionTag,h=e.theme;return o&&!u&&(n.theme(Object(c.c)({},Object(i.O)(h)?h:Object(a.k)(h),{columnWidthRatio:1/3})),n.annotation().shape({render:function(t,e){var a=t.addGroup({id:n.id+"-conversion-tag-group",name:"conversion-tag-group"}),c=Object(i.m)(n.geometries,(function(t){return"interval"===t.type})),u={view:e,geometry:c,group:a,field:r,horizontal:s,options:l(o,s)},h=c.elements;Object(i.j)(h,(function(t,e){e>0&&f(u,h[e-1],t)}))}})),t}),(void 0===(n=!p.isStack)&&(n=!1),function(t){var e=t.chart,r=t.options.connectedArea,i=function(){e.removeInteraction(h.hover),e.removeInteraction(h.click)};if(!n&&r){var o=r.trigger||"hover";i(),e.interaction(h[o],{start:d(o,r.style)})}else i();return t}),o.e)(t)}},1673:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o}));var r=1e-6,i="undefined"!==typeof Float32Array?Float32Array:Array,o=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){for(var t=0,e=arguments.length;e--;)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},1674:function(t,e,n){"use strict";var r=n(2187);n.d(e,"getAdjust",(function(){return r.getAdjust}));n(1183);var i=n(2451),o=n(2452),a=n(2453),c=n(2454);n(1708);Object(r.registerAdjust)("Dodge",i.a),Object(r.registerAdjust)("Jitter",o.a),Object(r.registerAdjust)("Stack",a.a),Object(r.registerAdjust)("Symmetric",c.a)},1675:function(t,e,n){"use strict";var r=n(579),i=/rgba?\(([\s.,0-9]+)\)/,o=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,c=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,s=function(t,e,n,r){return t[r]+(e[r]-t[r])*n};function l(t){return"#"+h(t[0])+h(t[1])+h(t[2])}var u,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},h=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},d=function(t){if("#"===t[0]&&7===t.length)return t;u||(u=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t}()),u.style.color=t;var e=document.defaultView.getComputedStyle(u,"").getPropertyValue("color");return e=l(i.exec(e)[1].split(/\s*,\s*/).map((function(t){return Number(t)})))};e.a={rgb2arr:f,gradient:function(t){var e=Object(r.Q)(t)?t.split("-"):t,n=Object(r.W)(e,(function(t){return f(-1===t.indexOf("#")?d(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),o=r*n-i,a=t[i],c=i===r?a:t[i+1];return l([s(a,c,o,0),s(a,c,o,1),s(a,c,o,2)])}(n,t)}},toRGB:Object(r.ab)(d),toCSSGradient:function(t){if(/^[r,R,L,l]{1}[\s]*\(/.test(t)){var e,n=void 0;if("l"===t[0]){var i=+(s=o.exec(t))[1]+90;n=s[2],e="linear-gradient("+i+"deg, "}else if("r"===t[0]){var s;e="radial-gradient(",n=(s=a.exec(t))[4]}var l=n.match(c);return Object(r.j)(l,(function(t,n){var r=t.split(":");e+=r[1]+" "+100*r[0]+"%",n!==l.length-1&&(e+=", ")})),e+=")"}return t}}},1676:function(t,e,n){"use strict";var r=n(825),i=n(1185),o=n(579),a=n(918),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{container:null,containerTpl:"<div></div>",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 Object(a.b)(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(a.a)(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(Object(o.K)(t)){t=this.createDom();var e=this.get("parent");Object(o.Q)(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 Object(o.Q)(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?Object(o.h)({},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&&Object(a.h)(e,n)){var r=t[n];Object(i.e)(e,r)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o.j)(e,(function(e,n){var r=t.getElementsByClassName(n);Object(o.j)(r,(function(t){Object(i.e)(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(i.e)(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(i.b)(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){Object(o.y)(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(n(1709).a);e.a=c},1677:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(579),i=n(618),o=n(2192),a={};function c(t,e){a[t]=e}function s(t){return{get:function(e,n){return Object(i.y)(Object(r.s)(a[t],e)||Object(r.s)(a[o.a.locale],e)||Object(r.s)(a["en-US"],e)||e,n)}}}},1678:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return c}));var r,i=n(613);!function(t){t.ERROR="error",t.WARN="warn",t.INFO="log"}(r||(r={}));var o="AntV/G2Plot";function a(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=0;return o+": "+t.replace(/%s/g,(function(){return""+e[r++]}))}function c(t,e,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];e||console[t](a.apply(void 0,Object(i.d)([n],r)))}},1679:function(t,e,n){"use strict";function r(t,e){return t.views.find((function(t){return t.id===e}))}function i(t){var e=t.parent;return e?e.views:[]}function o(t){return i(t).filter((function(e){return e!==t}))}n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return o}))},1680:function(t,e,n){"use strict";function r(t){return"number"===typeof t&&!isNaN(t)}function i(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},1681:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return l}));var r=n(613),i=n(579),o=n(1678),a=n(2190);function c(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(i.s)(t,[e]);return Object(i.M)(n)&&!isNaN(n)})),r=n.every((function(t){return Object(i.s)(t,[e])>=0})),o=n.every((function(t){return Object(i.s)(t,[e])<=0}));return r?{min:0}:o?{max:0}:{}}function s(t,e,n,i,o){if(void 0===o&&(o=[]),!Array.isArray(t))return{nodes:[],links:[]};var c=[],s={},l=-1;return t.forEach((function(t){var u=t[e],f=t[n],h=t[i],d=Object(a.a)(t,o);s[u]||(s[u]=Object(r.a)({id:++l,name:u},d)),s[f]||(s[f]=Object(r.a)({id:++l,name:f},d)),c.push(Object(r.a)({source:s[u].id,target:s[f].id,value:h},d))})),{nodes:Object.values(s).sort((function(t,e){return t.id-e.id})),links:c}}function l(t,e){var n=Object(i.l)(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return Object(o.b)(o.a.WARN,n.length===t.length,"illegal data existed in chart data."),n}},1682:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(613),i=n(579),o="x",a="y",c={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(i.s)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},s={appendPadding:2,tooltip:Object(r.a)({},c),animation:{}}},1683:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return s}));var r=n(579),i="nodeIndex",o="childNodeCount",a="nodeAncestor";function c(t,e){var n=t.field,i=t.fields;if(Object(r.Q)(n))return n;if(Object(r.C)(n))return console.warn("Invalid field: it must be a string!"),n[0];if(console.warn("Invalid field: it must be a string! will try to get fields instead."),Object(r.Q)(i))return i;if(Object(r.C)(i)&&i.length)return i[0];if(e)return e;throw new TypeError("Invalid field: it must be a string!")}function s(t){var e,n,c=[];t&&t.each?t.each((function(t){var s,l;t.parent!==e?(e=t.parent,n=0):n+=1;var u=Object(r.l)(((null===(s=t.ancestors)||void 0===s?void 0:s.call(t))||[]).map((function(t){return c.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n<t.depth}));t[a]=u,t[o]=(null===(l=t.children)||void 0===l?void 0:l.length)||0,t[i]=n,c.push(t)})):t&&t.eachNode&&t.eachNode((function(t){c.push(t)}));return c}},1684:function(t,e,n){"use strict";e.a=function(t,e,n,r,i){for(var o,a=t.children,c=-1,s=a.length,l=t.value&&(i-n)/t.value;++c<s;)(o=a[c]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l}},1688:function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(613),i=n(732),o=n(579),a=n(964),c=n(800),s=n(1184),l=n(618),u=n(2296);function f(t){var e=t.chart,n=t.options,i=n.views,c=n.legend;return Object(o.j)(i,(function(t){var n=t.region,i=t.data,c=t.meta,u=t.axes,f=t.coordinate,h=t.interactions,d=t.annotations,p=t.tooltip,g=t.geometries,v=e.createView({region:n});v.data(i);var y={};u&&Object(o.j)(u,(function(t,e){y[e]=Object(l.t)(t,s.a)})),y=Object(l.c)({},c,y),v.scale(y),u?Object(o.j)(u,(function(t,e){v.axis(e,t)})):v.axis(!1),v.coordinate(f),Object(o.j)(g,(function(t){var e=Object(a.a)({chart:v,options:t}).ext,n=t.adjust;n&&e.geometry.adjust(n)})),Object(o.j)(h,(function(t){!1===t.enable?v.removeInteraction(t.type):v.interaction(t.type,t.cfg)})),Object(o.j)(d,(function(t){v.annotation()[t.type](Object(r.a)({},t))})),"boolean"===typeof t.animation?v.animate(!1):(v.animate(!0),Object(o.j)(v.geometries,(function(e){e.animate(t.animation)}))),p&&(v.interaction("tooltip"),v.tooltip(p))})),c?Object(o.j)(c,(function(t,n){e.legend(n,t)})):e.legend(!1),e.tooltip(n.tooltip),t}function h(t){var e=t.chart,n=t.options,a=n.plots,c=n.data,s=void 0===c?[]:c;return Object(o.j)(a,(function(t){var n=t.type,o=t.region,a=t.options,c=void 0===a?{}:a,f=t.top,h=c.tooltip;if(f)Object(u.a)(n,e,Object(r.a)(Object(r.a)({},c),{data:s}));else{var d=e.createView(Object(r.a)({region:o},Object(l.t)(c,i.a)));h&&d.interaction("tooltip"),Object(u.a)(n,d,Object(r.a)({data:s},c))}})),t}function d(t){var e=t.chart,n=t.options;return e.option("slider",n.slider),t}function p(t){return Object(l.f)(c.a,f,h,c.c,c.a,c.k,c.l,d,Object(c.b)())(t)}var g=n(761);var v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getAssociationItems=function(t,e){var n,r=this.context.event,i=e||{},a=i.linkField,c=i.dim,s=[];if(null===(n=r.data)||void 0===n?void 0:n.data){var u=r.data.data;Object(o.j)(t,(function(t){var e,n,r=a;if("x"===c?r=t.getXScale().field:"y"===c?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 i=Object(o.W)(Object(l.h)(t),(function(e){var n=!1,i=!1,a=Object(o.C)(u)?Object(o.s)(u[0],r):Object(o.s)(u,r);return function(t,e){var n=t.getModel().data;return Object(o.C)(n)?n[0][e]:n[e]}(e,r)===a?n=!0:i=!0,{element:e,view:t,active:n,inactive:i}}));s.push.apply(s,i)}}))}return s},e.prototype.showTooltip=function(t){var e=Object(l.l)(this.context.view),n=this.getAssociationItems(e,t);Object(o.j)(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=Object(l.l)(this.context.view);Object(o.j)(t,(function(t){t.hideTooltip()}))},e.prototype.active=function(t){var e=Object(l.n)(this.context.view),n=this.getAssociationItems(e,t);Object(o.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("active",!0)}))},e.prototype.selected=function(t){var e=Object(l.n)(this.context.view),n=this.getAssociationItems(e,t);Object(o.j)(n,(function(t){var e=t.active,n=t.element;e&&n.setState("selected",!0)}))},e.prototype.highlight=function(t){var e=Object(l.n)(this.context.view),n=this.getAssociationItems(e,t);Object(o.j)(n,(function(t){var e=t.inactive,n=t.element;e&&n.setState("inactive",!0)}))},e.prototype.reset=function(){var t=Object(l.n)(this.context.view);Object(o.j)(t,(function(t){!function(t){var e=Object(l.h)(t);Object(o.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("selected")&&t.setState("selected",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}(t)}))},e}(g.a);Object(g.l)("association",v),Object(g.o)("association-active",{start:[{trigger:"element:mouseenter",action:"association:active"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(g.o)("association-selected",{start:[{trigger:"element:mouseenter",action:"association:selected"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(g.o)("association-highlight",{start:[{trigger:"element:mouseenter",action:"association:highlight"}],end:[{trigger:"element:mouseleave",action:"association:reset"}]}),Object(g.o)("association-tooltip",{start:[{trigger:"element:mousemove",action:"association:showTooltip"}],end:[{trigger:"element:mouseleave",action:"association:hideTooltip"}]});var y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="mix",e}return Object(r.b)(e,t),e.prototype.getSchemaAdaptor=function(){return p},e}(i.b)},1698:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(579);function i(t,e){return t.charCodeAt(e)>0&&t.charCodeAt(e)<128?1:2}function o(t){if(t.length>400)return function(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(r.K)(e)?"":""+e})),n=0,i=0,o=0;o<e.length;o+=1){for(var a=0,c=0;c<=e[o].length;c+=1){var s=e[o].charCodeAt(c);a+=s>=19968&&s<=40869?2:1}a>n&&(n=a,i=o)}return t[i].getBBox().width}(t);var e=0;return Object(r.j)(t,(function(t){var n=t.getBBox().width;e<n&&(e=n)})),e}function a(t,e,n,o){var a;void 0===o&&(o="tail");var c=null!==(a=e.attr("text"))&&void 0!==a?a:"";if("tail"===o){var s=Object(r.hb)(e.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),l=Object(r.t)(c,n,s,"\u2026");return c!==l?(e.attr("text",l),e.set("tip",c),!0):(e.set("tip",null),!1)}var u=function(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}(t,e),f=function(t){for(var e=0,n=0;n<t.length;n++)e+=i(t,n);return e}(c),h=!1;if(n<u){var d=Math.floor(n/u*f)-2,p=void 0;(p=d>=0?function(t,e,n){void 0===n&&(n="tail");var r=t.length,o="";if("tail"===n){for(var a=0,c=0;a<e;){if(!(a+i(t,c)<=e))break;o+=t[c],a+=i(t,c),c++}o+="\u2026"}else if("head"===n){for(a=0,c=r-1;a<e;){if(!(a+i(t,c)<=e))break;o+=t[c],a+=i(t,c),c--}o="\u2026"+o}else{for(var s="",l="",u=(a=0,0),f=r-1;a<e;){var h=i(t,u),d=!1;h+a<=e&&(s+=t[u],u++,a+=h,d=!0);var p=i(t,f);if(p+a<=e&&(l=t[f]+l,a+=p,f--,d=!0),!d)break}o=s+"\u2026"+l}return o}(c,d,o):"\u2026")&&(e.attr("text",p),h=!0)}return h?e.set("tip",c):e.set("tip",null),h}},1708:function(t,e){},1709:function(t,e,n){"use strict";var r=n(825),i=n(875),o=n(579),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},c=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(r.b)(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")||{};Object(o.j)(t,(function(t,r){var i=t;e.get(r)!==t&&(Object(o.O)(t)&&n[r]&&(i=Object(o.h)({},n[r],t)),e.set(r,i))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(o.y)(t,"visible")&&(t.visible?this.show():this.hide()),Object(o.y)(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=Object(r.a)({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),r=a[n];return Object(o.j)(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");Object(o.j)(e,(function(e,n){var r=t.get(n);if(Object(o.O)(r)){var i=Object(o.h)({},e,r);t.set(n,i)}}))},e}(i.d);e.a=c},1710:function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return r})),n.d(e,"TITLE_CLASS",(function(){return i})),n.d(e,"LIST_CLASS",(function(){return o})),n.d(e,"LIST_ITEM_CLASS",(function(){return a})),n.d(e,"MARKER_CLASS",(function(){return c})),n.d(e,"VALUE_CLASS",(function(){return s})),n.d(e,"NAME_CLASS",(function(){return l})),n.d(e,"CROSSHAIR_X",(function(){return u})),n.d(e,"CROSSHAIR_Y",(function(){return f}));var r="g2-tooltip",i="g2-tooltip-title",o="g2-tooltip-list",a="g2-tooltip-list-item",c="g2-tooltip-marker",s="g2-tooltip-value",l="g2-tooltip-name",u="g2-tooltip-crosshair-x",f="g2-tooltip-crosshair-y"},1711:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(613),i=n(579),o=n(618);function a(t){var e={overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis",display:"flex",justifyContent:"center",alignItems:"center"},n=["stroke","lineWidth","shadowColor","strokeOpacity","shadowBlur","shadowOffsetX","shadowOffsetY","fill"];Object(i.s)(t,"fill")&&(e.color=t.fill);var r=Object(o.t)(t,n),a=r.shadowColor,c=r.shadowBlur,s=void 0===c?0:c,l=r.shadowOffsetX,u=void 0===l?0:l,f=r.shadowOffsetY,h=void 0===f?0:f;e["text-shadow"]=""+[a,u+"px",h+"px",s+"px"].join(" ");var d=Object(o.t)(t,n),p=d.stroke,g=d.lineWidth,v=void 0===g?0:g;return e["-webkit-text-stroke"]=""+[v+"px",p].join(" "),Object(i.j)(t,(function(t,r){["fontSize"].includes(r)&&Object(i.M)(t)?e[Object(o.q)(r)]=t+"px":r&&!n.includes(r)&&(e[Object(o.q)(r)]=""+t)})),e}function c(t,e){t.style["pointer-events"]="none",Object(i.j)(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var s=function(t,e,n){var s=e.statistic,l=e.plotType,u=s.title,f=s.content;[u,f].forEach((function(e,s){if(e){var h="";h=0===s?f?"translate(-50%, -100%)":"translate(-50%, -50%)":u?"translate(-50%, 0)":"translate(-50%, -50%)";var d=Object(i.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.a)({position:["50%","50%"],html:function(t,o){var s=o.getCoordinate(),u=0;if("pie"===l||"ring-progress"===l)u=s.getRadius()*s.innerRadius*2;else if("liquid"===l){var f=Object(i.s)(o.geometries,[0,"elements",0,"shape"]);if(f)u=f.find((function(t){return"wrap"===t.get("name")})).getCanvasBBox().width}else u||(u=s.getWidth());c(t,Object(r.a)({width:u+"px",transform:h},a(d)));var p=o.getData();if(e.customHtml)return e.customHtml(t,o,n,p);var g=e.content;return e.formatter&&(g=e.formatter(n,p)),g?Object(i.Q)(g)?g:""+g:"<div></div>"},key:(0===s?"top":"bottom")+"-statistic"},Object(o.t)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},l=function(t,e,n){var s=e.statistic;[s.title,s.content].forEach((function(e){if(e){var s=Object(i.I)(e.style)?e.style(n):e.style;t.annotation().html(Object(r.a)({position:["50%","100%"],html:function(t,o){var l=o.getCoordinate(),u=o.views[0].getCoordinate(),f=u.getCenter(),h=u.getRadius(),d=Math.max(Math.sin(u.startAngle),Math.sin(u.endAngle))*h,p=f.y+d-l.y.start-parseFloat(Object(i.s)(s,"fontSize",0)),g=l.getRadius()*l.innerRadius*2;c(t,Object(r.a)({width:g+"px",transform:"translate(-50%, "+p+"px)"},a(s)));var v=o.getData();if(e.customHtml)return e.customHtml(t,o,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?Object(i.Q)(y)?y:""+y:"<div></div>"}},Object(o.t)(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},1712:function(t,e,n){"use strict";n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"a",(function(){return v}));var r=n(613),i=n(579),o=n(800),a=n(618),c=n(818),s=n(1681);function l(t){var e=t.chart,n=t.options,i=n.data,o=n.color,s=n.lineStyle,l=n.lineShape,u=n.point,f=n.area,h=n.seriesField,d=null===u||void 0===u?void 0:u.state,p=null===f||void 0===f?void 0:f.state;e.data(i);var g=Object(a.c)({},t,{options:{shapeField:h,line:{color:o,style:s,shape:l},point:u&&Object(r.a)({color:o,shape:"circle"},u),area:f&&Object(r.a)({color:o},f),label:void 0}}),v=Object(a.c)({},g,{options:{tooltip:!1,state:d}}),y=Object(a.c)({},g,{options:{tooltip:!1,state:p}});return Object(c.d)(g),Object(c.e)(v),Object(c.a)(y),t}function u(t){var e,n,r=t.options,i=r.xAxis,c=r.yAxis,l=r.xField,u=r.yField,f=r.data;return Object(a.f)(Object(o.g)(((e={})[l]=i,e[u]=c,e),((n={})[l]={type:"cat"},n[u]=Object(s.a)(f,u),n)))(t)}function f(t){var e=t.chart,n=t.options.reflect;if(n){var r=n;Object(i.C)(r)||(r=[r]);var o=r.map((function(t){return["reflect",t]}));e.coordinate({type:"rect",actions:o})}return t}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function d(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 p(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,c=Object(a.d)(e,"line");if(i){var s=i.callback,l=Object(r.c)(i,["callback"]);c.label({fields:[o],callback:s,cfg:Object(r.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a.A)(l))})}else c.label(!1);return t}function g(t){var e=t.chart;return t.options.isStack&&Object(i.j)(e.geometries,(function(t){t.adjust("stack")})),t}function v(t){return Object(a.f)(l,u,g,o.k,f,h,d,o.l,p,o.i,o.h,o.c,o.a,Object(o.b)(),o.e)(t)}},1713:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(579),o=n(732),a=n(618),c=n(2309),s=n(1409),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="funnel",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s.a},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return c.a},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(a.i)(this.chart);Object(i.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(a.i)(this.chart),e=[];return Object(i.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(i.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.CONVERSATION_FIELD=s.b,e.PERCENT_FIELD=s.d,e.TOTAL_PERCENT_FIELD=s.e,e}(o.b)},1714:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(613),i=n(761),o=n(579),a=n(2191),c={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},s="hierarchy-data-transform-params",l=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=c,e}return Object(r.b)(e,t),e.prototype.click=function(){var t=Object(o.s)(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,o={x:t.start.x,y:t.end.y-(n.height+10)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===r&&(o={x:t.start.x,y:t.start.y});var a=i.h.transform(null,[["t",o.x+0,o.y+n.height+5]]);e.setMatrix(a)}},e.prototype.back=function(){Object(o.mb)(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=Object(o.s)(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),i=n(Object(r.a)({data:t.data},t[s]));e.changeData(i);for(var a=[],c=t;c;){var l=c.data;a.unshift({id:l.name+"_"+c.height+"_"+c.depth,name:l.name,children:n(Object(r.a)({data:l},t[s]))}),c=c.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(a)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(o.U)(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=Object(o.s)(t,["interactions","drill-down","cfg","drillDownConfig"]);return Object(a.a)(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:"drilldown-bread-crumb"});var i=0;n.forEach((function(a,c){var s=t.breadCrumbGroup.addShape({type:"text",id:a.id,name:"drilldown-bread-crumb_"+a.name+"_text",attrs:Object(r.a)(Object(r.a)({text:0!==c||Object(o.K)(e.rootText)?a.name:e.rootText},e.textStyle),{x:i,y:0})}),l=s.getBBox();if(i+=l.width+4,s.on("click",(function(e){var r,i=e.target.get("id");if(i!==(null===(r=Object(o.U)(n))||void 0===r?void 0:r.id)){var a=n.slice(0,n.findIndex((function(t){return t.id===i}))+1);t.backTo(a)}})),s.on("mouseenter",(function(t){var r;t.target.get("id")!==(null===(r=Object(o.U)(n))||void 0===r?void 0:r.id)?s.attr(e.activeTextStyle):s.attr({cursor:"default"})})),s.on("mouseleave",(function(){s.attr(e.textStyle)})),c<n.length-1){var u=t.breadCrumbGroup.addShape({type:"text",name:e.name+"_"+a.name+"_divider",attrs:Object(r.a)(Object(r.a)({text:e.dividerText},e.textStyle),{x:i,y:0})}).getBBox();i+=u.width+4}}))},e.prototype.hideCrumbGroup=function(){this.breadCrumbGroup&&this.breadCrumbGroup.hide()},e.prototype.destroy=function(){this.breadCrumbGroup&&this.breadCrumbGroup.remove(),t.prototype.destroy.call(this)},e}(i.a)},1715:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(656);function i(t){if("undefined"===typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(t=Object(r.a)(t))){var e=0,n=function(){};return{s:n,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:n}}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 i,o,a=!0,c=!1;return{s:function(){i=t[Symbol.iterator]()},n:function(){var t=i.next();return a=t.done,t},e:function(t){c=!0,o=t},f:function(){try{a||null==i.return||i.return()}finally{if(c)throw o}}}}},1716:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var r=n(1447),i=n(1684),o=(1+Math.sqrt(5))/2;function a(t,e,n,o,a,c){for(var s,l,u,f,h,d,p,g,v,y,m,b=[],x=e.children,O=0,j=0,w=x.length,C=e.value;O<w;){u=a-n,f=c-o;do{h=x[j++].value}while(!h&&j<w);for(d=p=h,m=h*h*(y=Math.max(f/u,u/f)/(C*t)),v=Math.max(p/m,m/d);j<w;++j){if(h+=l=x[j].value,l<d&&(d=l),l>p&&(p=l),m=h*h*y,(g=Math.max(p/m,m/d))>v){h-=l;break}v=g}b.push(s={value:h,dice:u<f,children:x.slice(O,j)}),s.dice?Object(r.a)(s,n,o,a,C?o+=f*h/C:c):Object(i.a)(s,n,o,C?n+=u*h/C:a,c),C-=h,O=j}return b}e.a=function t(e){function n(t,n,r,i,o){a(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(o)},1717:function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return p}));var r=n(723);function i(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}var o=n(1715);function a(){a=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",c=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(M){s=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=O(a,n);if(c){if(c===f)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=u(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===f)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(M){return{type:"throw",arg:M}}}t.wrap=l;var f={};function h(){}function d(){}function p(){}var g={};s(g,i,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(S([])));y&&y!==e&&n.call(y,i)&&(g=y);var m=p.prototype=h.prototype=Object.create(g);function b(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,c){var s=u(t[i],t,o);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function O(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=u(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function j(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function C(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(j,this),this.reset(!0)}function S(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:E}}function E(){return{value:void 0,done:!0}}return d.prototype=p,s(m,"constructor",p),s(p,"constructor",d),d.displayName=s(p,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===d||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,s(t,c,"GeneratorFunction")),t.prototype=Object.create(m),t},t.awrap=function(t){return{__await:t}},b(x.prototype),s(x.prototype,o,(function(){return this})),t.AsyncIterator=x,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new x(l(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},b(m),s(m,c,"Generator"),s(m,i,(function(){return this})),s(m,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=S,C.prototype={constructor:C,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(w),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,f):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),f},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),f}},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;w(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:S(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},t}var c=a().mark(s);function s(){var t,e,n,r,i,o;return a().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:n=[t=this];case 1:e=n.reverse(),n=[];case 2:if(!(t=e.pop())){a.next=8;break}return a.next=5,t;case 5:if(r=t.children)for(i=0,o=r.length;i<o;++i)n.push(r[i]);a.next=2;break;case 8:if(n.length){a.next=1;break}case 9:case"end":return a.stop()}}),c,this)}function l(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=f)):void 0===e&&(e=u);for(var n,r,i,o,a,c=new p(t),s=[c];n=s.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new p(i[o])),r.parent=n,r.depth=n.depth+1;return c.eachBefore(d)}function u(t){return t.children}function f(t){return Array.isArray(t)?t[1]:null}function h(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function d(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=l.prototype=Object(r.a)({constructor:p,count:function(){return this.eachAfter(i)},each:function(t,e){var n,r=-1,i=Object(o.a)(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;t.call(e,a,++r,this)}}catch(c){i.e(c)}finally{i.f()}return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],c=[],s=-1;o=a.pop();)if(c.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=c.pop();)t.call(e,o,++s,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){var n,r=-1,i=Object(o.a)(this);try{for(i.s();!(n=i.n()).done;){var a=n.value;if(t.call(e,a,++r,this))return a}}catch(c){i.e(c)}finally{i.f()}},sum: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}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;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},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return l(this).eachBefore(h)}},Symbol.iterator,s)},2182:function(t,e,n){},2183:function(t,e,n){},2184:function(t,e,n){"use strict";var r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0)},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var i=this._events[t]||[],o=this._events["*"]||[],a=function(r){for(var i=r.length,o=0;o<i;o++)if(r[o]){var a=r[o],c=a.callback;a.once&&(r.splice(o,1),0===r.length&&delete e._events[t],i--,o--),c.apply(e,n)}};a(i),a(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],r=n.length,i=0;i<r;i++)n[i].callback===e&&(n.splice(i,1),r--,i--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e.a=r},2185:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"fromValues",(function(){return a})),n.d(e,"copy",(function(){return c})),n.d(e,"set",(function(){return s})),n.d(e,"add",(function(){return l})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return f})),n.d(e,"divide",(function(){return h})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return p})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return m})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return O})),n.d(e,"length",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return C})),n.d(e,"inverse",(function(){return S})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return M})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return P})),n.d(e,"random",(function(){return A})),n.d(e,"transformMat2",(function(){return I})),n.d(e,"transformMat2d",(function(){return F})),n.d(e,"transformMat3",(function(){return T})),n.d(e,"transformMat4",(function(){return L})),n.d(e,"rotate",(function(){return N})),n.d(e,"angle",(function(){return D})),n.d(e,"zero",(function(){return B})),n.d(e,"str",(function(){return R})),n.d(e,"exactEquals",(function(){return _})),n.d(e,"equals",(function(){return z})),n.d(e,"len",(function(){return V})),n.d(e,"sub",(function(){return H})),n.d(e,"mul",(function(){return K})),n.d(e,"div",(function(){return Y})),n.d(e,"dist",(function(){return G})),n.d(e,"sqrDist",(function(){return W})),n.d(e,"sqrLen",(function(){return X})),n.d(e,"forEach",(function(){return q}));var r=n(1673);function i(){var t=new r.a(2);return r.a!=Float32Array&&(t[0]=0,t[1]=0),t}function o(t){var e=new r.a(2);return e[0]=t[0],e[1]=t[1],e}function a(t,e){var n=new r.a(2);return n[0]=t,n[1]=e,n}function c(t,e){return t[0]=e[0],t[1]=e[1],t}function s(t,e,n){return t[0]=e,t[1]=n,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 f(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function h(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function p(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function m(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t}function x(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.hypot(n,r)}function O(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r}function j(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function w(t){var e=t[0],n=t[1];return e*e+n*n}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function E(t,e){var n=e[0],r=e[1],i=n*n+r*r;return i>0&&(i=1/Math.sqrt(i)),t[0]=e[0]*i,t[1]=e[1]*i,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t}function P(t,e,n,r){var i=e[0],o=e[1];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t}function A(t,e){e=e||1;var n=2*r.c()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function I(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}function F(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}function T(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}function L(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}function N(t,e,n,r){var i=e[0]-n[0],o=e[1]-n[1],a=Math.sin(r),c=Math.cos(r);return t[0]=i*c-o*a+n[0],t[1]=i*a+o*c+n[1],t}function D(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Math.sqrt(n*n+r*r)*Math.sqrt(i*i+o*o),c=a&&(n*i+r*o)/a;return Math.acos(Math.min(Math.max(c,-1),1))}function B(t){return t[0]=0,t[1]=0,t}function R(t){return"vec2("+t[0]+", "+t[1]+")"}function _(t,e){return t[0]===e[0]&&t[1]===e[1]}function z(t,e){var n=t[0],i=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=r.b*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(i-a)<=r.b*Math.max(1,Math.abs(i),Math.abs(a))}var V=j,H=u,K=f,Y=h,G=x,W=O,X=w,q=function(){var t=i();return function(e,n,r,i,o,a){var c,s;for(n||(n=2),r||(r=0),s=i?Math.min(i*n+r,e.length):e.length,c=r;c<s;c+=n)t[0]=e[c],t[1]=e[c+1],o(t,t,a),e[c]=t[0],e[c+1]=t[1];return e}}()},2186:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return i})),n.d(e,"clone",(function(){return o})),n.d(e,"length",(function(){return a})),n.d(e,"fromValues",(function(){return c})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return f})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return d})),n.d(e,"ceil",(function(){return p})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return y})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return O})),n.d(e,"squaredDistance",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return C})),n.d(e,"inverse",(function(){return S})),n.d(e,"normalize",(function(){return E})),n.d(e,"dot",(function(){return M})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return P})),n.d(e,"hermite",(function(){return A})),n.d(e,"bezier",(function(){return I})),n.d(e,"random",(function(){return F})),n.d(e,"transformMat4",(function(){return T})),n.d(e,"transformMat3",(function(){return L})),n.d(e,"transformQuat",(function(){return N})),n.d(e,"rotateX",(function(){return D})),n.d(e,"rotateY",(function(){return B})),n.d(e,"rotateZ",(function(){return R})),n.d(e,"angle",(function(){return _})),n.d(e,"zero",(function(){return z})),n.d(e,"str",(function(){return V})),n.d(e,"exactEquals",(function(){return H})),n.d(e,"equals",(function(){return K})),n.d(e,"sub",(function(){return Y})),n.d(e,"mul",(function(){return G})),n.d(e,"div",(function(){return W})),n.d(e,"dist",(function(){return X})),n.d(e,"sqrDist",(function(){return q})),n.d(e,"len",(function(){return U})),n.d(e,"sqrLen",(function(){return $})),n.d(e,"forEach",(function(){return Z}));var r=n(1673);function i(){var t=new r.a(3);return r.a!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function o(t){var e=new r.a(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function a(t){var e=t[0],n=t[1],r=t[2];return Math.hypot(e,n,r)}function c(t,e,n){var i=new r.a(3);return i[0]=t,i[1]=e,i[2]=n,i}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function l(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,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 f(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}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}function d(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function p(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(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}function y(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}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(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}function O(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 j(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 w(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function S(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function E(t,e){var n=e[0],r=e[1],i=e[2],o=n*n+r*r+i*i;return o>0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function M(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[0],c=n[1],s=n[2];return t[0]=i*s-o*c,t[1]=o*a-r*s,t[2]=r*c-i*a,t}function P(t,e,n,r){var i=e[0],o=e[1],a=e[2];return t[0]=i+r*(n[0]-i),t[1]=o+r*(n[1]-o),t[2]=a+r*(n[2]-a),t}function A(t,e,n,r,i,o){var a=o*o,c=a*(2*o-3)+1,s=a*(o-2)+o,l=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*c+n[0]*s+r[0]*l+i[0]*u,t[1]=e[1]*c+n[1]*s+r[1]*l+i[1]*u,t[2]=e[2]*c+n[2]*s+r[2]*l+i[2]*u,t}function I(t,e,n,r,i,o){var a=1-o,c=a*a,s=o*o,l=c*a,u=3*o*c,f=3*s*a,h=s*o;return t[0]=e[0]*l+n[0]*u+r[0]*f+i[0]*h,t[1]=e[1]*l+n[1]*u+r[1]*f+i[1]*h,t[2]=e[2]*l+n[2]*u+r[2]*f+i[2]*h,t}function F(t,e){e=e||1;var n=2*r.c()*Math.PI,i=2*r.c()-1,o=Math.sqrt(1-i*i)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=i*e,t}function T(t,e,n){var r=e[0],i=e[1],o=e[2],a=n[3]*r+n[7]*i+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*i+n[8]*o+n[12])/a,t[1]=(n[1]*r+n[5]*i+n[9]*o+n[13])/a,t[2]=(n[2]*r+n[6]*i+n[10]*o+n[14])/a,t}function L(t,e,n){var r=e[0],i=e[1],o=e[2];return t[0]=r*n[0]+i*n[3]+o*n[6],t[1]=r*n[1]+i*n[4]+o*n[7],t[2]=r*n[2]+i*n[5]+o*n[8],t}function N(t,e,n){var r=n[0],i=n[1],o=n[2],a=n[3],c=e[0],s=e[1],l=e[2],u=i*l-o*s,f=o*c-r*l,h=r*s-i*c,d=i*h-o*f,p=o*u-r*h,g=r*f-i*u,v=2*a;return u*=v,f*=v,h*=v,d*=2,p*=2,g*=2,t[0]=c+u+d,t[1]=s+f+p,t[2]=l+h+g,t}function D(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0],o[1]=i[1]*Math.cos(r)-i[2]*Math.sin(r),o[2]=i[1]*Math.sin(r)+i[2]*Math.cos(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function B(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[2]*Math.sin(r)+i[0]*Math.cos(r),o[1]=i[1],o[2]=i[2]*Math.cos(r)-i[0]*Math.sin(r),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function R(t,e,n,r){var i=[],o=[];return i[0]=e[0]-n[0],i[1]=e[1]-n[1],i[2]=e[2]-n[2],o[0]=i[0]*Math.cos(r)-i[1]*Math.sin(r),o[1]=i[0]*Math.sin(r)+i[1]*Math.cos(r),o[2]=i[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function _(t,e){var n=t[0],r=t[1],i=t[2],o=e[0],a=e[1],c=e[2],s=Math.sqrt(n*n+r*r+i*i)*Math.sqrt(o*o+a*a+c*c),l=s&&M(t,e)/s;return Math.acos(Math.min(Math.max(l,-1),1))}function z(t){return t[0]=0,t[1]=0,t[2]=0,t}function V(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function H(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function K(t,e){var n=t[0],i=t[1],o=t[2],a=e[0],c=e[1],s=e[2];return Math.abs(n-a)<=r.b*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(i-c)<=r.b*Math.max(1,Math.abs(i),Math.abs(c))&&Math.abs(o-s)<=r.b*Math.max(1,Math.abs(o),Math.abs(s))}var Y=f,G=h,W=d,X=O,q=j,U=a,$=w,Z=function(){var t=i();return function(e,n,r,i,o,a){var c,s;for(n||(n=3),r||(r=0),s=i?Math.min(i*n+r,e.length):e.length,c=r;c<s;c+=n)t[0]=e[c],t[1]=e[c+1],t[2]=e[c+2],o(t,t,a),e[c]=t[0],e[c+1]=t[1],e[c+2]=t[2];return e}}()},2187:function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return i})),n.d(e,"registerAdjust",(function(){return o}));n(1183),n(1708);var r={},i=function(t){return r[t.toLowerCase()]},o=function(t,e){if(i(t))throw new Error("Adjust type '"+t+"' existed.");r[t.toLowerCase()]=e}},2188:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var r=0,i=.5,o=.5,a=.05},2189:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(875);function i(t,e,n){var i=new r.e(e,n);i.target=t,i.propagationPath.push(t),t.emitDelegation(e,i);for(var o=t.getParent();o;)o.emitDelegation(e,i),i.propagationPath.push(o),o=o.getParent()}},2190:function(t,e,n){"use strict";function r(t,e){var n={};return null!==t&&"object"===typeof t&&e.forEach((function(e){var r=t[e];void 0!==r&&(n[e]=r)})),n}n.d(e,"a",(function(){return r}))},2191:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r={}.toString,i=function(t,e){return r.call(t)==="[object "+e+"]"},o=function(t){return i(t,"Array")},a=function(t){if(!function(t){return"object"===typeof t&&null!==t}(t)||!i(t,"Object"))return!1;for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},c=function t(e,n,r,i){for(var c in r=r||0,i=i||5,n)if(Object.prototype.hasOwnProperty.call(n,c)){var s=n[c];s?a(s)?(a(e[c])||(e[c]={}),r<i?t(e[c],s,r+1,i):e[c]=n[c]):o(s)?(e[c]=[],e[c]=e[c].concat(s)):e[c]=s:e[c]=s}},s=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)c(t,e[r]);return t}},2192:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));n(579);var r={locale:"en-US"}},2193:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(613),i=n(1016),o=n(618),a=n(964);function c(t){var e=t.options,n=e.point,c=e.xField,s=e.yField,l=e.seriesField,u=e.sizeField,f=e.shapeField,h=e.tooltip,d=e.useDeferredLabel,p=Object(i.a)(h,[c,s,l,u,f]),g=p.fields,v=p.formatter;return n?Object(a.a)(Object(o.c)({},t,{options:{type:"point",colorField:l,shapeField:f,tooltipFields:g,mapping:Object(r.a)({tooltip:v},n),args:{useDeferredLabel:d}}})):t}},2194:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(613),i=n(1016),o=n(618),a=n(964);function c(t){var e=t.options,n=e.polygon,c=e.xField,s=e.yField,l=e.seriesField,u=e.tooltip,f=e.useDeferredLabel,h=Object(i.a)(u,[c,s,l]),d=h.fields,p=h.formatter;return n?Object(a.a)(Object(o.c)({},t,{options:{type:"polygon",colorField:l,tooltipFields:d,mapping:Object(r.a)({tooltip:p},n),args:{useDeferredLabel:f}}})):t}},2195:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(613),i=n(761),o=n(732),a=n(618),c=n(2271),s=n(2272),l=n(2273),u=(n(2321),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s.a},e.prototype.changeData=function(t){this.chart.emit(i.i.BEFORE_CHANGE_DATA,i.d.fromData(this.chart,i.i.BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,r=Object(a.u)(e.data,n),o=Object(a.u)(t,n);Object(l.c)(r,n)||Object(l.c)(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),Object(c.b)({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(i.i.AFTER_CHANGE_DATA,i.d.fromData(this.chart,i.i.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return c.a},e}(o.b))},2196:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(613),i=n(732),o=n(2276),a=n(1682),c=n(1446),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return a.a},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(o.b)({chart:e,options:n}),e.changeData(Object(c.a)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.a},e}(i.b)},2197:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(613),i=n(732),o=n(2278),a=n(2279),c=n(2280),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return c.a},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,r=e.binNumber,i=e.binWidth,a=e.stackField;this.chart.changeData(Object(o.a)(t,n,i,r,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.a},e}(i.b)},2198:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(613),i=n(732),o=n(2199),a=n(2281),c=n(2200),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return a.b},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Object(c.a)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.a},e}(i.b)},2199:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return f}));var r=n(579),i=n(618),o=n(800),a=n(818),c=n(2281),s=n(2200);function l(t){var e=t.chart,n=t.options,o=n.percent,l=n.progressStyle,u=n.color,f=n.barWidthRatio;e.data(Object(s.a)(o));var h=Object(i.c)({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:f,interval:{style:l,color:Object(r.Q)(u)?[u,c.a[1]]:u},args:{zIndexReversed:!0,sortZIndex:!0}}});return Object(a.c)(h),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function u(t){return t.chart.coordinate("rect").transpose(),t}function f(t){return Object(i.f)(l,Object(o.g)({}),u,o.a,o.k,Object(o.b)())(t)}},2200:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(579),i=n(1680);function o(t){var e=Object(r.c)(Object(i.b)(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}},2201:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(613),i=n(732),o=n(2284),a=n(2285),c=n(2202),s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return c.a},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.a},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(Object(a.a)(t,e))},e}(i.b)},2202:function(t,e,n){"use strict";n.d(e,"e",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(732),i=n(618),o="$$stock-range$$",a="trend",c="up",s="down",l=Object(i.c)({},r.b.getDefaultOptions(),{tooltip:{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"}}}},interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"})},2203:function(t,e,n){"use strict";function r(t){return null==t?null:i(t)}function i(t){if("function"!==typeof t)throw new Error;return t}n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}))},2204:function(t,e,n){"use strict";n.d(e,"b",(function(){return l}));var r=n(2291),i=n(2205);function o(t,e,n){var r,i,o,a,c=t.x-e.x,s=t.y-e.y,l=c*c+s*s;l?(i=e.r+n.r,i*=i,a=t.r+n.r,i>(a*=a)?(r=(l+a-i)/(2*l),o=Math.sqrt(Math.max(0,a/l-r*r)),n.x=t.x-r*c-o*s,n.y=t.y-r*s+o*c):(r=(l+i-a)/(2*l),o=Math.sqrt(Math.max(0,i/l-r*r)),n.x=e.x+r*c-o*s,n.y=e.y+r*s+o*c)):(n.x=e.x+n.r,n.y=e.y)}function a(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 c(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,o=(e.y*n.r+n.y*e.r)/r;return i*i+o*o}function s(t){this._=t,this.next=null,this.previous=null}function l(t){if(!(u=(t=Object(r.a)(t)).length))return 0;var e,n,l,u,f,h,d,p,g,v,y;if((e=t[0]).x=0,e.y=0,!(u>1))return e.r;if(n=t[1],e.x=-n.r,n.x=e.r,n.y=0,!(u>2))return e.r+n.r;o(n,e,l=t[2]),e=new s(e),n=new s(n),l=new s(l),e.next=l.previous=n,n.next=e.previous=l,l.next=n.previous=e;t:for(d=3;d<u;++d){o(e._,n._,l=t[d]),l=new s(l),p=n.next,g=e.previous,v=n._.r,y=e._.r;do{if(v<=y){if(a(p._,l._)){n=p,e.next=n,n.previous=e,--d;continue t}v+=p._.r,p=p.next}else{if(a(g._,l._)){(e=g).next=n,n.previous=e,--d;continue t}y+=g._.r,g=g.previous}}while(p!==g.next);for(l.previous=e,l.next=n,e.next=n.previous=n=l,f=c(e);(l=l.next)!==n;)(h=c(l))<f&&(e=l,f=h);n=e.next}for(e=[n._],l=n;(l=l.next)!==n;)e.push(l._);for(l=Object(i.a)(e),d=0;d<u;++d)(e=t[d]).x-=l.x,e.y-=l.y;return l.r}e.a=function(t){return l(t),t}},2205:function(t,e,n){"use strict";var r=n(2291);function i(t,e){var n,r;if(c(e,t))return[e];for(n=0;n<t.length;++n)if(o(e,t[n])&&c(l(t[n],e),t))return[t[n],e];for(n=0;n<t.length-1;++n)for(r=n+1;r<t.length;++r)if(o(l(t[n],t[r]),e)&&o(l(t[n],e),t[r])&&o(l(t[r],e),t[n])&&c(u(t[n],t[r],e),t))return[t[n],t[r],e];throw new Error}function o(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function a(t,e){var n=t.r-e.r+1e-9*Math.max(t.r,e.r,1),r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function c(t,e){for(var n=0;n<e.length;++n)if(!a(t,e[n]))return!1;return!0}function s(t){switch(t.length){case 1:return{x:(e=t[0]).x,y:e.y,r:e.r};case 2:return l(t[0],t[1]);case 3:return u(t[0],t[1],t[2])}var e}function l(t,e){var n=t.x,r=t.y,i=t.r,o=e.x,a=e.y,c=e.r,s=o-n,l=a-r,u=c-i,f=Math.sqrt(s*s+l*l);return{x:(n+o+s/f*u)/2,y:(r+a+l/f*u)/2,r:(f+i+c)/2}}function u(t,e,n){var r=t.x,i=t.y,o=t.r,a=e.x,c=e.y,s=e.r,l=n.x,u=n.y,f=n.r,h=r-a,d=r-l,p=i-c,g=i-u,v=s-o,y=f-o,m=r*r+i*i-o*o,b=m-a*a-c*c+s*s,x=m-l*l-u*u+f*f,O=d*p-h*g,j=(p*x-g*b)/(2*O)-r,w=(g*v-p*y)/O,C=(d*b-h*x)/(2*O)-i,S=(h*y-d*v)/O,E=w*w+S*S-1,M=2*(o+j*w+C*S),k=j*j+C*C-o*o,P=-(E?(M+Math.sqrt(M*M-4*E*k))/(2*E):k/M);return{x:r+j+w*P,y:i+C+S*P,r:P}}e.a=function(t){for(var e,n,o=0,c=(t=Object(r.b)(Array.from(t))).length,l=[];o<c;)e=t[o],n&&a(n,e)?++o:(n=s(l=i(l,e)),o=0);return n}},2206:function(t,e,n){"use strict";var r=n(761),i=n(579),o=n(1714);function a(t){var e=Object(i.s)(t,["event","data","data"],{});return Object(i.C)(e.children)&&e.children.length>0}function c(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var r=t.event,i=r.x,o=r.y,a=e.center,c=a.x,s=a.y,l=e.getRadius()*n;return Math.sqrt(Math.pow(c-i,2)+Math.pow(s-o,2))<l}return!1}Object(r.l)("drill-down-action",o.a),Object(r.o)("drill-down",{showEnable:[{trigger:"element:mouseenter",action:"cursor:pointer",isEnable:a},{trigger:"element:mouseleave",action:"cursor:default"},{trigger:"element:mouseleave",action:"cursor:pointer",isEnable:c}],start:[{trigger:"element:click",isEnable:a,action:["drill-down-action:click"]},{trigger:"afterchangesize",action:["drill-down-action:resetPosition"]},{trigger:"click",isEnable:c,action:["drill-down-action:back"]}]})},2207:function(t,e,n){"use strict";var r;n.d(e,"f",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"c",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"b",(function(){return u}));var i="range",o="type",a="percent",c="#f0f0f0",s="indicator-view",l="range-view",u={percent:0,range:{ticks:[]},innerRadius:.9,radius:.95,startAngle:-7/6*Math.PI,endAngle:1/6*Math.PI,syncViewPadding:!0,axis:{line:null,label:{offset:-24,style:{textAlign:"center",textBaseline:"middle"}},subTickLine:{length:-8},tickLine:{length:-12},grid:null},indicator:{pointer:{style:{lineWidth:5,lineCap:"round"}},pin:{style:{r:9.75,lineWidth:4.5,fill:"#fff"}}},statistic:{title:!1},meta:(r={},r[i]={sync:"v"},r[a]={sync:"v",tickCount:5,tickInterval:.2},r),animation:!1}},2214: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 o(t,e){return Math.max(t,e.y)}n.r(e),n.d(e,"cluster",(function(){return a})),n.d(e,"hierarchy",(function(){return c.c})),n.d(e,"pack",(function(){return s.a})),n.d(e,"packSiblings",(function(){return l.a})),n.d(e,"packEnclose",(function(){return u.a})),n.d(e,"partition",(function(){return f.a})),n.d(e,"stratify",(function(){return y})),n.d(e,"tree",(function(){return C})),n.d(e,"treemap",(function(){return S.a})),n.d(e,"treemapBinary",(function(){return E})),n.d(e,"treemapDice",(function(){return M.a})),n.d(e,"treemapSlice",(function(){return k.a})),n.d(e,"treemapSliceDice",(function(){return P})),n.d(e,"treemapSquarify",(function(){return A.a})),n.d(e,"treemapResquarify",(function(){return I}));var a=function(){var t=r,e=1,n=1,a=!1;function c(r){var c,s=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(o,0)}(n)):(e.x=c?s+=t(e,c):0,e.y=0,c=e)}));var l=function(t){for(var e;e=t.children;)t=e[0];return t}(r),u=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(r),f=l.x-t(l,u)/2,h=u.x+t(u,l)/2;return r.eachAfter(a?function(t){t.x=(t.x-r.x)*e,t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-f)/(h-f)*e,t.y=(1-(r.y?t.y/r.y:1))*n})}return c.separation=function(e){return arguments.length?(t=e,c):t},c.size=function(t){return arguments.length?(a=!1,e=+t[0],n=+t[1],c):a?null:[e,n]},c.nodeSize=function(t){return arguments.length?(a=!0,e=+t[0],n=+t[1],c):a?[e,n]:null},c},c=n(1717),s=n(2289),l=n(2204),u=n(2205),f=n(2286),h=n(2203),d={depth:-1},p={};function g(t){return t.id}function v(t){return t.parentId}var y=function(){var t=g,e=v;function n(n){var r,i,o,a,s,l,u,f=Array.from(n),h=f.length,g=new Map;for(i=0;i<h;++i)r=f[i],s=f[i]=new c.a(r),null!=(l=t(r,i,n))&&(l+="")&&(u=s.id=l,g.set(u,g.has(u)?p:s)),null!=(l=e(r,i,n))&&(l+="")&&(s.parent=l);for(i=0;i<h;++i)if(l=(s=f[i]).parent){if(!(a=g.get(l)))throw new Error("missing: "+l);if(a===p)throw new Error("ambiguous: "+l);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=d,o.eachBefore((function(t){t.depth=t.parent.depth+1,--h})).eachBefore(c.b),o.parent=null,h>0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Object(h.b)(e),n):t},n.parentId=function(t){return arguments.length?(e=Object(h.b)(t),n):e},n};function m(t,e){return t.parent===e.parent?1:2}function b(t){var e=t.children;return e?e[0]:t.t}function x(t){var e=t.children;return e?e[e.length-1]:t.t}function O(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 j(t,e,n){return t.a.parent===e.parent?t.a:n}function w(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}w.prototype=Object.create(c.a.prototype);var C=function(){var t=m,e=1,n=1,r=null;function i(i){var s=function(t){for(var e,n,r,i,o,a=new w(t,0),c=[a];e=c.pop();)if(r=e._.children)for(e.children=new Array(o=r.length),i=o-1;i>=0;--i)c.push(n=e.children[i]=new w(r[i],i)),n.parent=e;return(a.parent=new w(null,0)).children=[a],a}(i);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),r)i.eachBefore(c);else{var l=i,u=i,f=i;i.eachBefore((function(t){t.x<l.x&&(l=t),t.x>u.x&&(u=t),t.depth>f.depth&&(f=t)}));var h=l===u?1:t(l,u)/2,d=h-l.x,p=e/(u.x+h+d),g=n/(f.depth||1);i.eachBefore((function(t){t.x=(t.x+d)*p,t.y=t.depth*g}))}return i}function o(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,o=i.length;--o>=0;)(e=i[o]).z+=n,e.m+=n,n+=e.s+(r+=e.c)}(e);var o=(n[0].z+n[n.length-1].z)/2;i?(e.z=i.z+t(e._,i._),e.m=e.z-o):e.z=o}else i&&(e.z=i.z+t(e._,i._));e.parent.A=function(e,n,r){if(n){for(var i,o=e,a=e,c=n,s=o.parent.children[0],l=o.m,u=a.m,f=c.m,h=s.m;c=x(c),o=b(o),c&&o;)s=b(s),(a=x(a)).a=e,(i=c.z+f-o.z-l+t(c._,o._))>0&&(O(j(c,e,r),e,i),l+=i,u+=i),f+=c.m,l+=o.m,h+=s.m,u+=a.m;c&&!x(a)&&(a.t=c,a.m+=f-u),o&&!b(s)&&(s.t=o,s.m+=l-h,r=e)}return r}(e,i,e.parent.A||r[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function c(t){t.x*=e,t.y=t.depth*n}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i},S=n(2292),E=function(t,e,n,r,i){var o,a,c=t.children,s=c.length,l=new Array(s+1);for(l[0]=a=o=0;o<s;++o)l[o+1]=a+=c[o].value;!function t(e,n,r,i,o,a,s){if(e>=n-1){var u=c[e];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=s)}var f=l[e],h=r/2+f,d=e+1,p=n-1;for(;d<p;){var g=d+p>>>1;l[g]<h?d=g+1:p=g}h-l[d-1]<l[d]-h&&e+1<d&&--d;var v=l[d]-f,y=r-v;if(a-i>s-o){var m=r?(i*y+a*v)/r:a;t(e,d,v,i,o,m,s),t(d,n,y,m,o,a,s)}else{var b=r?(o*y+s*v)/r:s;t(e,d,v,i,o,a,b),t(d,n,y,i,b,a,s)}}(0,s,t.value,e,n,r,i)},M=n(1447),k=n(1684),P=function(t,e,n,r,i){(1&t.depth?k.a:M.a)(t,e,n,r,i)},A=n(1716),I=function t(e){function n(t,n,r,i,o){if((a=t._squarify)&&a.ratio===e)for(var a,c,s,l,u,f=-1,h=a.length,d=t.value;++f<h;){for(s=(c=a[f]).children,l=c.value=0,u=s.length;l<u;++l)c.value+=s[l].value;c.dice?Object(M.a)(c,n,r,i,d?r+=(o-r)*c.value/d:o):Object(k.a)(c,n,r,d?n+=(i-n)*c.value/d:i,o),d-=c.value}else t._squarify=a=Object(A.c)(e,t,n,r,i,o),a.ratio=e}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}(A.b)},2216:function(t,e,n){"use strict";n.d(e,"a",(function(){return v}));var r=n(618);function i(){return"object"===typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function o(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}function a(t,e,n,r){void 0===r&&(r=n);var i=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=i,t.beginPath(),t.fillRect(0,0,n,r),t.closePath()}function c(t,e,n){var r=t+e;return n?2*r:r}function s(t,e){return e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]]}function l(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 u={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function f(t,e,n,r){var i=e.size,o=e.fill,a=e.lineWidth,c=e.stroke,s=e.fillOpacity;t.beginPath(),t.globalAlpha=s,t.fillStyle=o,t.strokeStyle=c,t.lineWidth=a,t.arc(n,r,i/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}var h={rotation:45,spacing:5,opacity:1,backgroundColor:"transparent",strokeOpacity:.5,stroke:"#fff",lineWidth:2};function d(t){var e=Object(r.c)({},h,t),n=e.spacing,c=e.rotation,s=e.lineWidth,u=n+s||1,f=n+s||1,d="\n M 0 0 L "+u+" 0\n M 0 "+f+" L "+u+" "+f+"\n ",p=o(u,f),g=p.getContext("2d");a(g,e,u,f),function(t,e,n){var r=e.stroke,i=e.lineWidth,o=e.strokeOpacity,a=new Path2D(n);t.globalAlpha=o,t.lineCap="square",t.strokeStyle=i?r:"transparent",t.lineWidth=i,t.stroke(a)}(g,e,d);var v=g.createPattern(p,"repeat");if(v){var y=l(i(),c);v.setTransform(y)}return v}var p={size:6,padding:1,isStagger:!0,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0};function g(t,e,n,r){var i=e.stroke,o=e.size,a=e.fill,c=e.lineWidth,s=e.fillOpacity;t.globalAlpha=s,t.strokeStyle=i,t.lineWidth=c,t.fillStyle=a,t.strokeRect(n-o/2,r-o/2,o,o),t.fillRect(n-o/2,r-o/2,o,o)}function v(t){var e,n=t.type,h=t.cfg;switch(n){case"dot":e=function(t){var e=Object(r.c)({},u,t),n=e.size,h=e.padding,d=e.isStagger,p=e.rotation,g=c(n,h,d),v=s(g,d),y=o(g,g),m=y.getContext("2d");a(m,e,g);for(var b=0,x=v;b<x.length;b++){var O=x[b];f(m,e,O[0],O[1])}var j=m.createPattern(y,"repeat");if(j){var w=l(i(),p);j.setTransform(w)}return j}(h);break;case"line":e=d(h);break;case"square":e=function(t){var e=Object(r.c)({},p,t),n=e.size,u=e.padding,f=e.isStagger,h=e.rotation,d=c(n,u,f),v=s(d,f),y=o(d,d),m=y.getContext("2d");a(m,e,d);for(var b=0,x=v;b<x.length;b++){var O=x[b];g(m,e,O[0],O[1])}var j=m.createPattern(y,"repeat");if(j){var w=l(i(),h);j.setTransform(w)}return j}(h)}return e}},2217:function(t,e,n){"use strict";var r=n(613),i=n(761),o=n(732),a=n(579),c=n(800),s=n(618),l=n(818);function u(t){return[{percent:t,type:"liquid"}]}function f(t){var e=t.chart,n=t.options,r=n.percent,i=n.liquidStyle,o=n.radius,a=n.outline,c=n.wave,f=n.shape,h=n.animation;e.scale({percent:{min:0,max:1}}),e.data(u(r));var d=n.color||e.getTheme().defaultColor,p=Object(s.c)({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:d,style:i,shape:"liquid-fill-gauge"}}}),g=Object(l.c)(p).ext.geometry,v={radius:o,outline:a,wave:c,shape:f,background:e.getTheme().background,animation:h};return g.customInfo(v),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function h(t,e){var n=t.chart,i=t.options,o=i.statistic,c=i.percent,l=i.meta;n.getController("annotation").clear(!0);var u=Object(a.s)(l,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},f=o.content;return f&&(f=Object(s.c)({},f,{content:Object(a.K)(f.content)?u(c):f.content})),Object(s.w)(n,{statistic:Object(r.a)(Object(r.a)({},o),{content:f}),plotType:"liquid"},{percent:c}),e&&n.render(!0),t}function d(t){return Object(s.f)(c.k,Object(c.f)("liquidStyle"),f,h,Object(c.g)({}),c.a,c.c)(t)}var p={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"},g=n(2274);function v(t,e,n){return t+(e-t)*n}function y(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 m(t,e,n,r,i,o,a){for(var c=4*Math.ceil(2*t/n*4),s=[],l=r;l<2*-Math.PI;)l+=2*Math.PI;for(;l>0;)l-=2*Math.PI;var u=o-t+(l=l/Math.PI/2*n)-2*t;s.push(["M",u,e]);for(var f=0,h=0;h<c;++h){var d=y(h*n/4,h%4,n,i);s.push(["C",d[0][0]+u,-d[0][1]+e,d[1][0]+u,-d[1][1]+e,d[2][0]+u,-d[2][1]+e]),h===c-1&&(f=d[2][0])}return s.push(["L",f+u,a+t]),s.push(["L",u,a+t]),s.push(["Z"]),s}var b={pin:function(t,e,n,r){var i=2*n/3,o=Math.max(i,r),a=i/2,c=t,s=a+e-o/2,l=Math.asin(a/(.85*(o-a))),u=Math.sin(l)*a,f=Math.cos(l)*a,h=c-f,d=s+u,p=t,g=s+a/Math.sin(l);return"\n M "+h+" "+d+"\n A "+a+" "+a+" 0 1 1 "+(h+2*f)+" "+d+"\n Q "+p+" "+g+" "+t+" "+(e+o/2)+"\n Q "+p+" "+g+" "+h+" "+d+"\n Z \n "},circle:function(t,e,n,r){var i=n/2,o=r/2;return"\n M "+t+" "+(e-o)+" \n a "+i+" "+o+" 0 1 0 0 "+2*o+"\n a "+i+" "+o+" 0 1 0 0 "+2*-o+"\n Z\n "},diamond:function(t,e,n,r){var i=r/2,o=n/2;return"\n M "+t+" "+(e-i)+"\n L "+(t+o)+" "+e+"\n L "+t+" "+(e+i)+"\n L "+(t-o)+" "+e+"\n Z\n "},triangle:function(t,e,n,r){var i=r/2,o=n/2;return"\n M "+t+" "+(e-i)+"\n L "+(t+o)+" "+(e+i)+"\n L "+(t-o)+" "+(e+i)+"\n Z\n "},rect:function(t,e,n,r){var i=r/2,o=n/2*.618;return"\n M "+(t-o)+" "+(e-i)+"\n L "+(t+o)+" "+(e-i)+"\n L "+(t+o)+" "+(e+i)+"\n L "+(t-o)+" "+(e+i)+"\n Z\n "}};Object(i.p)("interval","liquid-fill-gauge",{draw:function(t,e){var n=t.customInfo,i=n,o=i.radius,c=i.shape,s=i.background,l=i.animation,u=n.outline,f=n.wave,h=u.border,d=u.distance,p=f.count,y=f.length,x=Object(a.ib)(t.points,(function(t,e){return Math.min(t,e.x)}),1/0),O=this.parsePoint({x:.5,y:.5}),j=this.parsePoint({x:x,y:.5}),w=O.x-j.x,C=Math.min(w,j.y*o),S=function(t){var e=Object(r.a)({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}(t),E=function(t){var e=Object(a.db)({},{fill:"#fff",fillOpacity:0,lineWidth:4},t.style);return t.color&&!e.stroke&&(e.stroke=t.color),Object(a.M)(t.opacity)&&(e.opacity=e.strokeOpacity=t.opacity),e}(Object(a.db)({},t,u)),M=C-h/2,k=("function"===typeof c?c:b[c]||b.circle)(O.x,O.y,2*M,2*M),P=e.addGroup({name:"waves"}),A=P.setClip({type:"path",attrs:{path:k}});return function(t,e,n,r,i,o,a,c,s,l){for(var u=i.fill,f=i.opacity,h=a.getBBox(),d=h.maxX-h.minX,p=h.maxY-h.minY,y=0;y<r;y++){var b=r<=1?0:y/(r-1),x=o.addShape("path",{name:"waterwave-path",attrs:{path:m(c,h.minY+p*n,s,0,d/32,t,e),fill:u,opacity:v(.2,.9,b)*f}});try{if(!1===l)return;var O=Object(g.a)([["t",s,0]]);x.stopAnimate(),x.animate({matrix:O},{duration:v(2500,5e3,b),repeat:!0})}catch(j){console.warn("off-screen group animate error!")}}}(O.x,O.y,1-t.points[1].y,p,S,P,A,2*C,y,l),e.addShape("path",{name:"distance",attrs:{path:k,fill:"transparent",lineWidth:h+2*d,stroke:"transparent"===s?"#fff":s}}),e.addShape("path",{name:"wrap",attrs:Object(a.db)(E,{path:k,fill:"transparent",lineWidth:h})}),e}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return p},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(i.i.BEFORE_CHANGE_DATA,i.d.fromData(this.chart,i.i.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(u(t)),h({chart:this.chart,options:this.options},!0),this.chart.emit(i.i.AFTER_CHANGE_DATA,i.d.fromData(this.chart,i.i.AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return d}}(o.b)},2219:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(613),i=n(732),o=n(1712),a=n(618),c=Object(a.c)({},i.b.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},legend:{position:"top-left",radio:{}},isStack:!1}),s=n(761),l=n(579),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(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}));Object(l.j)(r,(function(t){Object(l.j)(t.elements,(function(t){var e=-1!==Object(l.n)(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}));Object(l.j)(t,(function(t){Object(l.j)(t.elements,(function(t){t.setState("active",!1)}))}))},e.prototype.getView=function(){return this.context.view},e}(s.f);Object(s.l)("marker-active",u),Object(s.o)("marker-active",{start:[{trigger:"tooltip:show",action:"marker-active:active"}],end:[{trigger:"tooltip:hide",action:"marker-active:reset"}]});var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(o.d)({chart:e,options:n}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o.a},e}(i.b)},2221:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(761),o=n(732),a=n(618),c=n(2327),s=Object(a.c)({},o.b.getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}}),l=(n(2275),function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.type="scatter",o.on(i.i.BEFORE_RENDER,(function(t){var e,n,a=o,s=a.options,l=a.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===i.b.FILTER){var u=o.chart.filterData(o.chart.getData());Object(c.b)({chart:l,options:Object(r.a)(Object(r.a)({},s),{data:u})})}(null===(n=t.data)||void 0===n?void 0:n.source)===i.b.RESET&&Object(c.b)({chart:l,options:s})})),o}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s},e.prototype.changeData=function(t){this.updateOption(Object(c.c)(Object(a.c)({},this.options,{data:t})));var e=this.options,n=this.chart;Object(c.b)({chart:n,options:e}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return c.a},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(o.b))},2222:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(613),i=n(761),o=n(732),a=n(2293),c=n(2207),s=n(2294);Object(i.p)("point","gauge-indicator",{draw:function(t,e){var n=t.customInfo,i=n.indicator,o=n.defaultColor,a=i,c=a.pointer,s=a.pin,l=e.addGroup(),u=this.parsePoint({x:0,y:0});return c&&l.addShape("line",{name:"pointer",attrs:Object(r.a)({x1:u.x,y1:u.y,x2:t.x,y2:t.y,stroke:o},c.style)}),s&&l.addShape("circle",{name:"pin",attrs:Object(r.a)({x:u.x,y:u.y,stroke:o},s.style)}),l}});var l=n(579);Object(i.p)("interval","meter-gauge",{draw:function(t,e){var n=t.customInfo.meter,r=void 0===n?{}:n,o=r.steps,a=void 0===o?50:o,c=r.stepRatio,s=void 0===c?.5:c;a=a<1?1:a,s=Object(l.c)(s,0,1);var u=this.coordinate,f=u.startAngle,h=u.endAngle,d=0;s>0&&s<1&&(d=(h-f)/a/(s/(1-s)+1-1/a));for(var p=d/(1-s)*s,g=e.addGroup(),v=this.coordinate.getCenter(),y=this.coordinate.getRadius(),m=i.h.getAngle(t,this.coordinate),b=m.startAngle,x=m.endAngle,O=b;O<x;){var j=void 0,w=(O-f)%(p+d);j=w<p?O+(p-w):(O+=p+d-w)+p;var C=i.h.getSectorPath(v.x,v.y,y,O,Math.min(j,x),y*this.coordinate.innerRadius);g.addShape("path",{name:"meter-gauge",attrs:{path:C,fill:t.color,stroke:t.color,lineWidth:.5}}),O=j+d}return g}});var u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="gauge",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return c.b},e.prototype.changeData=function(t){this.chart.emit(i.i.BEFORE_CHANGE_DATA,i.d.fromData(this.chart,i.i.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t});var e=this.chart.views.find((function(t){return t.id===c.c}));e&&e.data(Object(s.a)(t));var n=this.chart.views.find((function(t){return t.id===c.g}));n&&n.data(Object(s.b)(t,this.options.range)),Object(a.b)({chart:this.chart,options:this.options},!0),this.chart.emit(i.i.AFTER_CHANGE_DATA,i.d.fromData(this.chart,i.i.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.a},e}(o.b)},2224:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(732),o=n(1444),a=n(2268),c=n(618),s=Object(c.c)({},i.b.getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s},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,c=this.chart,s=this.options;Object(a.b)({chart:c,options:s}),this.chart.changeData(Object(o.a)(t,i,r,i,n))},e.prototype.getSchemaAdaptor=function(){return a.a},e}(i.b)},2225:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(732),o=n(1444),a=n(1450),c=n(618),s=Object(c.c)({},i.b.getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,r=e.xField,i=e.isPercent,c=this.chart,s=this.options;Object(a.b)({chart:c,options:s}),this.chart.changeData(Object(o.a)(t,n,r,n,i))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.a},e}(i.b)},2226:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(732),o=n(1444),a=n(2270),c=n(618),s=Object(c.c)({},i.b.getDefaultOptions(),{barWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bar",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s},e.prototype.changeData=function(t){var e,n;this.updateOption({data:t});var i=this.chart,c=this.options,s=c.isPercent,l=c.xField,u=c.yField,f=c.xAxis,h=c.yAxis;l=(e=[u,l])[0],u=e[1],f=(n=[h,f])[0],h=n[1];var d=Object(r.a)(Object(r.a)({},c),{xField:l,yField:u,yAxis:h,xAxis:f});Object(a.b)({chart:i,options:d}),i.changeData(Object(o.a)(t,l,u,l,s))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.a},e}(i.b)},2227:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(613),i=n(732),o=n(1446),a=n(2277),c=n(579),s={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(c.s)(e,[0,"data","y"],0)},containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',itemTpl:"<span>{value}</span>",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},l={appendPadding:2,tooltip:Object(r.a)({},s),animation:{}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return l},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(a.b)({chart:e,options:n}),e.changeData(Object(o.a)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.a},e}(i.b)},2228:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(732),o=n(1446),a=n(1445),c=n(1682),s={appendPadding:2,tooltip:Object(r.a)({},c.b),color:"l(90) 0:#E5EDFE 1:#ffffff",areaStyle:{fillOpacity:.6},line:{size:1,color:"#5B8FF9"},animation:{}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-area",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.chart,n=this.options;Object(a.b)({chart:e,options:n}),e.changeData(Object(o.a)(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a.a},e}(i.b)},2229:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(613),i=n(761),o=n(732),a=n(2200),c=n(2282),s={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:{}},l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ring-process",e}return Object(r.b)(e,t),e.getDefaultOptions=function(){return s},e.prototype.changeData=function(t){this.chart.emit(i.i.BEFORE_CHANGE_DATA,i.d.fromData(this.chart,i.i.BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(Object(a.a)(t)),Object(c.b)({chart:this.chart,options:this.options},!0),this.chart.emit(i.i.AFTER_CHANGE_DATA,i.d.fromData(this.chart,i.i.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return c.a},e}(o.b)},2250:function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return h}));var r=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))},i=function(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"},o=function(e){this.version=e,this.type="node",this.name="node",this.os=t.platform},a=function(t,e,n,r){this.name=t,this.version=e,this.os=n,this.bot=r,this.type="bot-device"},c=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},l=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,u=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function h(e){return e?p(e):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!==typeof navigator?p(navigator.userAgent):"undefined"!==typeof t&&t.version?new o(t.version.slice(1)):null}function d(t){return""!==t&&u.reduce((function(e,n){var r=n[0],i=n[1];if(e)return e;var o=i.exec(t);return!!o&&[r,o]}),!1)}function p(t){var e=d(t);if(!e)return null;var n=e[0],o=e[1];if("searchbot"===n)return new c;var s=o[1]&&o[1].split(".").join("_").split("_").slice(0,3);s?s.length<3&&(s=r(r([],s,!0),function(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}(3-s.length),!0)):s=[];var u=s.join("."),h=function(t){for(var e=0,n=f.length;e<n;e++){var r=f[e],i=r[0];if(r[1].exec(t))return i}return null}(t),p=l.exec(t);return p&&p[1]?new a(n,u,h,p[1]):new i(n,u,h)}}).call(this,n(429))},2251:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(579);function i(t,e,n){var i=e+"Style",o=null;return Object(r.j)(n,(function(e,n){t[n]&&e[i]&&(o||(o={}),Object(r.db)(o,e[i]))})),o}},2252:function(t,e){},2253:function(t,e){},2254: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,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];clearTimeout(n),n=setTimeout((function(){t.apply(r,o)}),e)}}},2255:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SensorTabIndex=e.SensorClassName=e.SizeSensorId=void 0;e.SizeSensorId="size-sensor-id";e.SensorClassName="size-sensor-object";e.SensorTabIndex="-1"},2256:function(t,e,n){"use strict";n(2257),n(2258),n(2259),n(2260),n(2261),n(2262),n(2263),n(2264),n(2265),n(2266),n(2267)},2257:function(t,e){},2258:function(t,e){},2259:function(t,e){},2260:function(t,e){},2261:function(t,e){},2262:function(t,e){},2263:function(t,e){},2264:function(t,e){},2265:function(t,e){},2266:function(t,e){},2267:function(t,e){},2268:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(613),i=n(579),o=n(800),a=n(618),c=n(818),s=n(1444),l=n(1712);function u(t){var e=t.chart,n=t.options,o=n.data,l=n.areaStyle,u=n.color,f=n.point,h=n.line,d=n.isPercent,p=n.xField,g=n.yField,v=n.tooltip,y=n.seriesField,m=n.startOnZero,b=null===f||void 0===f?void 0:f.state,x=Object(s.a)(o,g,p,g,d);e.data(x);var O=d?Object(r.a)({formatter:function(t){return{name:t[y]||t[p],value:(100*Number(t[g])).toFixed(2)+"%"}}},v):v,j=Object(a.c)({},t,{options:{area:{color:u,style:l},point:f&&Object(r.a)({color:u},f),tooltip:O,label:void 0,args:{startOnZero:m}}}),w={chart:e,options:Object(a.c)({line:{size:2}},Object(i.gb)(n,["state"]),{line:h&&Object(r.a)({color:u},h),sizeField:y,state:null===h||void 0===h?void 0:h.state,tooltip:!1,label:void 0,args:{startOnZero:m}})},C=Object(a.c)({},j,{options:{tooltip:!1,state:b}});return Object(c.a)(j),Object(c.d)(w),Object(c.e)(C),t}function f(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,c=Object(a.d)(e,"area");if(i){var s=i.callback,l=Object(r.c)(i,["callback"]);c.label({fields:[o],callback:s,cfg:Object(r.a)({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(a.A)(l))})}else c.label(!1);return t}function h(t){var e=t.chart,n=t.options,r=n.isStack,o=n.isPercent,a=n.seriesField;return(o||r)&&a&&Object(i.j)(e.geometries,(function(t){t.adjust("stack")})),t}function d(t){return Object(a.f)(o.k,Object(o.f)("areaStyle"),Object(o.m)("rect"),u,l.d,h,l.b,l.c,o.l,f,o.i,Object(o.b)(),o.c,o.a,o.e)(t)}n.d(e,"b",(function(){return l.d}))},2269:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(579);function i(t,e){return Object(r.M)(t)&&Object(r.M)(e)?t===e?"100%":0===t?"\u221e":0===e?"-\u221e":(100*e/t).toFixed(2)+"%":"-"}},2270:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(613),i=n(800),o=n(618),a=n(1450);function c(t){var e=t.options,n=e.xField,i=e.yField,o=e.xAxis,a=e.yAxis,c={left:"bottom",right:"top",top:"left",bottom:"right"},s=!1!==a&&Object(r.a)({position:c[(null===a||void 0===a?void 0:a.position)||"left"]},a),l=!1!==o&&Object(r.a)({position:c[(null===o||void 0===o?void 0:o.position)||"bottom"]},o);return Object(r.a)(Object(r.a)({},t),{options:Object(r.a)(Object(r.a)({},e),{xField:i,yField:n,xAxis:s,yAxis:l})})}function s(t){var e=t.options.label;return e&&!e.position&&(e.position="left",e.layout||(e.layout=[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}])),Object(o.c)({},t,{options:{label:e}})}function l(t){var e=t.options,n=e.seriesField,i=e.isStack,a=e.legend;return n?!1!==a&&(a=Object(r.a)({position:i?"top-left":"right-top"},a||{})):a=!1,Object(o.c)({},t,{options:{legend:a}})}function u(t){var e=t.options,n=[{type:"transpose"},{type:"reflectY"}].concat(e.coordinate||[]);return Object(o.c)({},t,{options:{coordinate:n}})}function f(t){var e=t.chart,n=t.options,i=n.barStyle,o=n.barWidthRatio,c=n.minBarWidth,s=n.maxBarWidth,l=n.barBackground;return Object(a.a)({chart:e,options:Object(r.a)(Object(r.a)({},n),{columnStyle:i,columnWidthRatio:o,minColumnWidth:c,maxColumnWidth:s,columnBackground:l})},!0)}function h(t){return Object(o.f)(c,s,l,i.l,u,f)(t)}n.d(e,"b",(function(){return a.b}))},2271:function(t,e,n){"use strict";n.d(e,"b",(function(){return b})),n.d(e,"a",(function(){return j}));var r=n(613),i=n(579),o=n(800),a=n(964),c=n(818),s=n(1408),l=n(1677),u=n(618),f=n(2272),h=n(2273),d=n(2321);function p(t){var e=t.chart,n=t.options,i=n.data,o=n.angleField,a=n.colorField,s=n.color,l=n.pieStyle,f=Object(u.u)(i,o);if(Object(h.c)(f,o)){f=f.map((function(t){var e;return Object(r.a)(Object(r.a)({},t),((e={}).$$percentage$$=1/f.length,e))})),e.data(f);var d=Object(u.c)({},t,{options:{xField:"1",yField:"$$percentage$$",seriesField:a,isStack:!0,interval:{color:s,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(c.c)(d)}else{e.data(f);d=Object(u.c)({},t,{options:{xField:"1",yField:o,seriesField:a,isStack:!0,interval:{color:s,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(c.c)(d)}return t}function g(t){var e,n=t.chart,r=t.options,i=r.meta,o=r.colorField,a=Object(u.c)({},i);return n.scale(a,((e={})[o]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function y(t){var e=t.chart,n=t.options,o=n.label,a=n.colorField,c=n.angleField,s=e.geometries[0];if(o){var l=o.callback,f=Object(r.c)(o,["callback"]),d=Object(u.A)(f);if(d.content){var p=d.content;d.content=function(t,n,o){var s=t[a],l=t[c],f=e.getScaleByField(c),h=null===f||void 0===f?void 0:f.scale(l);return Object(i.I)(p)?p(Object(r.a)(Object(r.a)({},t),{percent:h}),n,o):Object(i.Q)(p)?Object(u.y)(p,{value:l,name:s,percentage:Object(i.M)(h)&&!Object(i.K)(l)?(100*h).toFixed(2)+"%":null}):p}}var g=d.type?{inner:"",outer:"pie-outer",spider:"pie-spider"}[d.type]:"pie-outer",v=d.layout?Object(i.C)(d.layout)?d.layout:[d.layout]:[];d.layout=(g?[{type:g}]:[]).concat(v),s.label({fields:a?[c,a]:[c],callback:l,cfg:Object(r.a)(Object(r.a)({},d),{offset:Object(h.a)(d.type,d.offset),type:"pie"})})}else s.label(!1);return t}function m(t){var e=t.innerRadius,n=t.statistic,r=t.angleField,o=t.colorField,a=t.meta,c=t.locale,s=Object(l.a)(c);if(e&&n){var d=Object(u.c)({},f.a.statistic,n),p=d.title,g=d.content;return!1!==p&&(p=Object(u.c)({},{formatter:function(t){var e=t?t[o]:Object(i.K)(p.content)?s.get(["statistic","total"]):p.content;return(Object(i.s)(a,[o,"formatter"])||function(t){return t})(e)}},p)),!1!==g&&(g=Object(u.c)({},{formatter:function(t,e){var n=t?t[r]:Object(h.b)(e,r),o=Object(i.s)(a,[r,"formatter"])||function(t){return t};return t||Object(i.K)(g.content)?o(n):g.content}},g)),Object(u.c)({},{statistic:{title:p,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),Object(u.f)(Object(o.b)())(t),r&&i&&Object(u.w)(e,{statistic:i,plotType:"pie"}),t}function x(t){var e=t.chart,n=t.options,r=n.tooltip,o=n.colorField,c=n.angleField,s=n.data;if(!1===r)e.tooltip(r);else if(e.tooltip(Object(u.c)({},r,{shared:!1})),Object(h.c)(s,c)){var l=Object(i.s)(r,"fields"),f=Object(i.s)(r,"formatter");Object(i.G)(Object(i.s)(r,"fields"))&&(l=[o,c],f=f||function(t){return{name:t[o],value:Object(i.tb)(t[c])}}),e.geometries[0].tooltip(l.join("*"),Object(a.b)(l,f))}return t}function O(t){var e=t.chart,n=m(t.options),o=n.interactions,a=n.statistic,c=n.annotations;return Object(i.j)(o,(function(t){var n,o;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var s=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(s=[{trigger:"element:mouseenter",action:d.a+":change",arg:{statistic:a,annotations:c}}]),Object(i.j)(null===(o=t.cfg)||void 0===o?void 0:o.start,(function(t){s.push(Object(r.a)(Object(r.a)({},t),{arg:{statistic:a,annotations:c}}))})),e.interaction(t.type,Object(u.c)({},t.cfg,{start:s}))}else e.interaction(t.type,t.cfg||{})})),t}function j(t){return Object(u.f)(Object(s.a)("pieStyle"),p,g,o.k,v,o.d,x,y,o.j,b,O,o.a)(t)}},2272:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(732),i=n(618),o=Object(i.c)({},r.b.getDefaultOptions(),{legend:{position:"right",radio:{}},tooltip:{shared:!1,showTitle:!1,showMarkers:!1},label:{layout:{type:"limit-in-plot",cfg:{action:"ellipsis"}}},pieStyle:{stroke:"white",lineWidth:1},statistic:{title:{style:{fontWeight:300,color:"#4B535E",textAlign:"center",fontSize:"20px",lineHeight:1}},content:{style:{fontWeight:"bold",color:"rgba(44,53,66,0.85)",textAlign:"center",fontSize:"32px",lineHeight:1}}},theme:{components:{annotation:{text:{animate:!1}}}}})},2273:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n(579),i=n(618);function o(t,e){var n=null;return Object(r.j)(t,(function(t){"number"===typeof t[e]&&(n+=t[e])})),n}function a(t,e){var n;switch(t){case"inner":return n="-30%",Object(r.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)>0?n:e:e<0?e:n;case"outer":return n=12,Object(r.Q)(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function c(t,e){return Object(r.k)(Object(i.u)(t,e),(function(t){return 0===t[e]}))}},2274:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(613),i=n(761),o=[1,0,0,0,1,0,0,0,1];function a(t,e){var n=e?Object(r.d)(e):Object(r.d)(o);return i.h.transform(n,t)}},2275:function(t,e,n){"use strict";var r=n(761);Object(r.o)("drag-move",{start:[{trigger:"plot:mousedown",action:"scale-translate:start"}],processing:[{trigger:"plot:mousemove",action:"scale-translate:translate",throttle:{wait:100,leading:!0,trailing:!1}}],end:[{trigger:"plot:mouseup",action:"scale-translate:end"}]})},2276:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(618),i=n(800),o=n(818),a=n(1445);n.d(e,"b",(function(){return a.b}));var c=n(1446),s=n(1682);function l(t){var e=t.chart,n=t.options,i=n.data,a=n.color,l=n.lineStyle,u=n.point,f=null===u||void 0===u?void 0:u.state,h=Object(c.a)(i);e.data(h);var d=Object(r.c)({},t,{options:{xField:s.c,yField:s.d,line:{color:a,style:l},point:u}}),p=Object(r.c)({},d,{options:{tooltip:!1,state:f}});return Object(o.d)(d),Object(o.e)(p),e.axis(!1),e.legend(!1),t}function u(t){return Object(r.f)(l,a.b,i.k,i.l,i.a,Object(i.b)())(t)}},2277:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(800),i=n(618),o=n(818),a=n(1682),c=n(1446),s=n(1445);function l(t){var e=t.chart,n=t.options,r=n.data,s=n.color,l=n.columnStyle,u=n.columnWidthRatio,f=Object(c.a)(r);e.data(f);var h=Object(i.c)({},t,{options:{xField:a.c,yField:a.d,widthRatio:u,interval:{style:l,color:s}}});return Object(o.c)(h),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function u(t){return Object(i.f)(r.k,Object(r.f)("columnStyle"),l,s.b,r.l,r.a,Object(r.b)())(t)}n.d(e,"b",(function(){return s.b}))},2278:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(579);function i(t,e,n){if(1===n)return[0,e];var r=Math.floor(t/e);return[e*r,e*(r+1)]}function o(t,e,n,o,a){var c=Object(r.e)(t);Object(r.ob)(c,e);var s=Object(r.yb)(c,e),l=Object(r.u)(s),u=l.max-l.min,f=n;if(!n&&o&&(f=o>1?u/(o-1):l.max),!n&&!o){var h=function(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}(s);f=u/h}var d={},p=Object(r.w)(c,a);Object(r.G)(p)?Object(r.j)(c,(function(t){var n=i(t[e],f,o),a=n[0]+"-"+n[1];Object(r.y)(d,a)||(d[a]={range:n,count:0}),d[a].count+=1})):Object.keys(p).forEach((function(t){Object(r.j)(p[t],(function(n){var c=i(n[e],f,o),s=c[0]+"-"+c[1]+"-"+t;Object(r.y)(d,s)||(d[s]={range:c,count:0},d[s][a]=t),d[s].count+=1}))}));var g=[];return Object(r.j)(d,(function(t){g.push(t)})),g}},2279:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(613),i=n(800),o=n(1408),a=n(618),c=n(818),s=n(2278),l=n(2280);function u(t){var e=t.chart,n=t.options,r=n.data,i=n.binField,o=n.binNumber,u=n.binWidth,f=n.color,h=n.stackField,d=n.legend,p=n.columnStyle,g=Object(s.a)(r,i,u,o,h);e.data(g);var v=Object(a.c)({},t,{options:{xField:l.b,yField:l.c,seriesField:h,isStack:!0,interval:{color:f,style:p}}});return Object(c.c)(v),d&&h&&e.legend(h,d),t}function f(t){var e,n=t.options,r=n.xAxis,o=n.yAxis;return Object(a.f)(Object(i.g)(((e={})[l.b]=r,e[l.c]=o,e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis;return!1===r?e.axis(l.b,!1):e.axis(l.b,r),!1===i?e.axis(l.c,!1):e.axis(l.c,i),t}function d(t){var e=t.chart,n=t.options.label,i=Object(a.d)(e,"interval");if(n){var o=n.callback,c=Object(r.c)(n,["callback"]);i.label({fields:[l.c],callback:o,cfg:Object(a.A)(c)})}else i.label(!1);return t}function p(t){return Object(a.f)(i.k,Object(o.a)("columnStyle"),u,f,h,i.j,d,i.l,i.c,i.a)(t)}},2280:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c}));var r=n(732),i=n(618),o="range",a="count",c=Object(i.c)({},r.b.getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},2281:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));var r=["#FAAD14","#E8EDF3"],i={percent:.2,color:r,animation:{}}},2282:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var r=n(613),i=n(579),o=n(618),a=n(800),c=n(2199);function s(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius;return e.coordinate("theta",{innerRadius:r,radius:i}),t}function l(t,e){var n=t.chart,a=t.options,c=a.innerRadius,s=a.statistic,l=a.percent,u=a.meta;if(n.getController("annotation").clear(!0),c&&s){var f=Object(i.s)(u,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},h=s.content;h&&(h=Object(o.c)({},h,{content:Object(i.K)(h.content)?f(l):h.content})),Object(o.w)(n,{statistic:Object(r.a)(Object(r.a)({},s),{content:h}),plotType:"ring-progress"},{percent:l})}return e&&n.render(!0),t}function u(t){return Object(o.f)(c.b,Object(a.g)({}),s,l,a.a,a.k,Object(a.b)())(t)}},2283:function(t,e,n){!function(t){"use strict";function e(t){for(var e=new Array(t),n=0;n<t;++n)e[n]=0;return e}function n(t,e){for(var n=0,r=0;r<t.length;++r)n+=t[r]*e[r];return n}function r(t){return Math.sqrt(n(t,t))}function i(t,e,n){for(var r=0;r<e.length;++r)t[r]=e[r]*n}function o(t,e,n,r,i){for(var o=0;o<t.length;++o)t[o]=e*n[o]+r*i[o]}function a(t,e,r,i,a,c,s){var l=r.fx,u=n(r.fxprime,e),f=l,h=l,d=u,p=0;function g(h,p,g){for(var v=0;v<16;++v)if(a=(h+p)/2,o(i.x,1,r.x,a,e),f=i.fx=t(i.x,i.fxprime),d=n(i.fxprime,e),f>l+c*a*u||f>=g)p=a;else{if(Math.abs(d)<=-s*u)return a;d*(p-h)>=0&&(p=h),h=a,g=f}return 0}a=a||1,c=c||1e-6,s=s||.1;for(var v=0;v<10;++v){if(o(i.x,1,r.x,a,e),f=i.fx=t(i.x,i.fxprime),d=n(i.fxprime,e),f>l+c*a*u||v&&f>=h)return g(p,a,h);if(Math.abs(d)<=-s*u)return a;if(d>=0)return g(a,p,f);h=f,p=a,a*=2}return a}t.bisect=function(t,e,n,r){var i=(r=r||{}).maxIterations||100,o=r.tolerance||1e-10,a=t(e),c=t(n),s=n-e;if(a*c>0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===c)return n;for(var l=0;l<i;++l){var u=e+(s/=2),f=t(u);if(f*a>=0&&(e=u),Math.abs(s)<o||0===f)return u}return e+s},t.nelderMead=function(t,e,n){var r,i=(n=n||{}).maxIterations||200*e.length,a=n.nonZeroDelta||1.05,c=n.zeroDelta||.001,s=n.minErrorDelta||1e-6,l=n.minErrorDelta||1e-5,u=void 0!==n.rho?n.rho:1,f=void 0!==n.chi?n.chi:2,h=void 0!==n.psi?n.psi:-.5,d=void 0!==n.sigma?n.sigma:.5,p=e.length,g=new Array(p+1);g[0]=e,g[0].fx=t(e),g[0].id=0;for(var v=0;v<p;++v){var y=e.slice();y[v]=y[v]?y[v]*a:c,g[v+1]=y,g[v+1].fx=t(y),g[v+1].id=v+1}function m(t){for(var e=0;e<t.length;e++)g[p][e]=t[e];g[p].fx=t.fx}for(var b=function(t,e){return t.fx-e.fx},x=e.slice(),O=e.slice(),j=e.slice(),w=e.slice(),C=0;C<i;++C){if(g.sort(b),n.history){var S=g.map((function(t){var e=t.slice();return e.fx=t.fx,e.id=t.id,e}));S.sort((function(t,e){return t.id-e.id})),n.history.push({x:g[0].slice(),fx:g[0].fx,simplex:S})}for(r=0,v=0;v<p;++v)r=Math.max(r,Math.abs(g[0][v]-g[1][v]));if(Math.abs(g[0].fx-g[p].fx)<s&&r<l)break;for(v=0;v<p;++v){x[v]=0;for(var E=0;E<p;++E)x[v]+=g[E][v];x[v]/=p}var M=g[p];if(o(O,1+u,x,-u,M),O.fx=t(O),O.fx<g[0].fx)o(w,1+f,x,-f,M),w.fx=t(w),w.fx<O.fx?m(w):m(O);else if(O.fx>=g[p-1].fx){var k=!1;if(O.fx>M.fx?(o(j,1+h,x,-h,M),j.fx=t(j),j.fx<M.fx?m(j):k=!0):(o(j,1-h*u,x,h*u,M),j.fx=t(j),j.fx<O.fx?m(j):k=!0),k){if(d>=1)break;for(v=1;v<g.length;++v)o(g[v],1-d,g[0],d,g[v]),g[v].fx=t(g[v])}}else m(O)}return g.sort(b),{fx:g[0].fx,x:g[0]}},t.conjugateGradient=function(t,e,c){var s,l,u,f={x:e.slice(),fx:0,fxprime:e.slice()},h={x:e.slice(),fx:0,fxprime:e.slice()},d=e.slice(),p=1;u=(c=c||{}).maxIterations||20*e.length,f.fx=t(f.x,f.fxprime),i(s=f.fxprime.slice(),f.fxprime,-1);for(var g=0;g<u;++g){if(p=a(t,s,f,h,p),c.history&&c.history.push({x:f.x.slice(),fx:f.fx,fxprime:f.fxprime.slice(),alpha:p}),p){o(d,1,h.fxprime,-1,f.fxprime);var v=n(f.fxprime,f.fxprime);o(s,Math.max(0,n(d,h.fxprime)/v),s,-1,h.fxprime),l=f,f=h,h=l}else i(s,f.fxprime,-1);if(r(f.fxprime)<=1e-5)break}return c.history&&c.history.push({x:f.x.slice(),fx:f.fx,fxprime:f.fxprime.slice(),alpha:p}),f},t.gradientDescent=function(t,e,n){for(var i=(n=n||{}).maxIterations||100*e.length,a=n.learnRate||.001,c={x:e.slice(),fx:0,fxprime:e.slice()},s=0;s<i&&(c.fx=t(c.x,c.fxprime),n.history&&n.history.push({x:c.x.slice(),fx:c.fx,fxprime:c.fxprime.slice()}),o(c.x,1,c.x,-a,c.fxprime),!(r(c.fxprime)<=1e-5));++s);return c},t.gradientDescentLineSearch=function(t,e,n){n=n||{};var o,c={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},l=n.maxIterations||100*e.length,u=n.learnRate||1,f=e.slice(),h=n.c1||.001,d=n.c2||.1,p=[];if(n.history){var g=t;t=function(t,e){return p.push(t.slice()),g(t,e)}}c.fx=t(c.x,c.fxprime);for(var v=0;v<l&&(i(f,c.fxprime,-1),u=a(t,f,c,s,u,h,d),n.history&&(n.history.push({x:c.x.slice(),fx:c.fx,fxprime:c.fxprime.slice(),functionCalls:p,learnRate:u,alpha:u}),p=[]),o=c,c=s,s=o,!(0===u||r(c.fxprime)<1e-5));++v);return c},t.zeros=e,t.zerosM=function(t,n){return e(t).map((function(){return e(n)}))},t.norm2=r,t.weightedSum=o,t.scale=i}(e)},2284:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(800),i=n(818),o=n(618),a=n(1184),c=n(2202),s=n(2285);function l(t){var e=t.chart,n=t.options,r=n.yField,a=n.data,l=n.risingFill,u=n.fallingFill,f=n.tooltip,h=n.stockStyle;e.data(Object(s.a)(a,r));var d=f;return!1!==d&&(d=Object(o.c)({},{fields:r},d)),Object(i.g)(Object(o.c)({},t,{options:{schema:{shape:"candle",color:[l,u],style:h},yField:c.e,seriesField:c.c,rawFields:r,tooltip:d}})),t}function u(t){var e,n,r=t.chart,i=t.options,s=i.meta,l=i.xAxis,u=i.yAxis,f=i.xField,h=((e={})[f]={type:"timeCat",tickCount:6},e[c.c]={values:[c.d,c.b]},e),d=Object(o.c)(h,s,((n={})[f]=Object(o.t)(l,a.a),n[c.e]=Object(o.t)(u,a.a),n));return r.scale(d),t}function f(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(c.e,!1):e.axis(c.e,i),t}function h(t){var e=t.chart,n=t.options.tooltip;return!1!==n?e.tooltip(n):e.tooltip(!1),t}function d(t){var e=t.chart,n=t.options.legend;return n?e.legend(c.c,n):!1===n&&e.legend(!1),t}function p(t){Object(o.f)(r.k,l,u,f,h,d,r.c,r.a,Object(r.b)(),r.i)(t)}},2285:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(579),i=n(2202);function o(t,e){return Object(r.W)(t,(function(t){if(Object(r.C)(e)){var n=e[0],o=e[1],a=e[2],c=e[3];t[i.c]=t[n]<=t[o]?i.d:i.b,t[i.e]=[t[n],t[o],t[a],t[c]]}return t}))}},2286:function(t,e,n){"use strict";var r=n(2287),i=n(1447);e.a=function(){var t=1,e=1,n=0,o=!1;function a(a){var c=a.height+1;return a.x0=a.y0=n,a.x1=t,a.y1=e/c,a.eachBefore(function(t,e){return function(r){r.children&&Object(i.a)(r,r.x0,t*(r.depth+1)/e,r.x1,t*(r.depth+2)/e);var o=r.x0,a=r.y0,c=r.x1-n,s=r.y1-n;c<o&&(o=c=(o+c)/2),s<a&&(a=s=(a+s)/2),r.x0=o,r.y0=a,r.x1=c,r.y1=s}}(e,c)),o&&a.eachBefore(r.a),a}return a.round=function(t){return arguments.length?(o=!!t,a):o},a.size=function(n){return arguments.length?(t=+n[0],e=+n[1],a):[t,e]},a.padding=function(t){return arguments.length?(n=+t,a):n},a}},2287:function(t,e,n){"use strict";e.a=function(t){t.x0=Math.round(t.x0),t.y0=Math.round(t.y0),t.x1=Math.round(t.x1),t.y1=Math.round(t.y1)}},2288:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(2214),i=n(2292),o=n(1717),a=n(579),c=n(1683),s={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 l(t,e){var n,l=(e=Object(a.b)({},s,e)).as;if(!Object(a.C)(l)||2!==l.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(c.e)(e)}catch(v){console.warn(v)}var u,f,h=(u=e.tile,f=e.ratio,"treemapSquarify"===u?r[u].ratio(f):r[u]),d=function(t){return i.a().tile(h).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)(o.c(t).sum((function(t){return e.ignoreParentValue&&t.children?0:t[n]})).sort(e.sort))}(t),p=l[0],g=l[1];return d.each((function(t){t[p]=[t.x0,t.x1,t.x1,t.x0],t[g]=[t.y1,t.y1,t.y0,t.y0],["x0","x1","y0","y1"].forEach((function(e){-1===l.indexOf(e)&&delete t[e]}))})),Object(c.d)(d)}},2289:function(t,e,n){"use strict";var r=n(2204),i=n(2203),o=n(2290);function a(t){return Math.sqrt(t.value)}function c(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function s(t,e){return function(n){if(i=n.children){var i,o,a,c=i.length,s=t(n)*e||0;if(s)for(o=0;o<c;++o)i[o].r+=s;if(a=Object(r.b)(i),s)for(o=0;o<c;++o)i[o].r-=s;n.r=a+s}}}function l(t){return function(e){var n=e.parent;e.r*=t,n&&(e.x=n.x+t*e.x,e.y=n.y+t*e.y)}}e.a=function(){var t=null,e=1,n=1,r=o.a;function u(i){return i.x=e/2,i.y=n/2,t?i.eachBefore(c(t)).eachAfter(s(r,.5)).eachBefore(l(1)):i.eachBefore(c(a)).eachAfter(s(o.a,1)).eachAfter(s(r,i.r/Math.min(e,n))).eachBefore(l(Math.min(e,n)/(2*i.r))),i}return u.radius=function(e){return arguments.length?(t=Object(i.a)(e),u):t},u.size=function(t){return arguments.length?(e=+t[0],n=+t[1],u):[e,n]},u.padding=function(t){return arguments.length?(r="function"===typeof t?t:Object(o.b)(+t),u):r},u}},2290:function(t,e,n){"use strict";function r(){return 0}n.d(e,"a",(function(){return r})),e.b=function(t){return function(){return t}}},2291:function(t,e,n){"use strict";function r(t){for(var e,n,r=t.length;r;)n=Math.random()*r--|0,e=t[r],t[r]=t[n],t[n]=e;return t}n.d(e,"b",(function(){return r})),e.a=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}},2292:function(t,e,n){"use strict";var r=n(2287),i=n(1716),o=n(2203),a=n(2290);e.a=function(){var t=i.a,e=!1,n=1,c=1,s=[0],l=a.a,u=a.a,f=a.a,h=a.a,d=a.a;function p(t){return t.x0=t.y0=0,t.x1=n,t.y1=c,t.eachBefore(g),s=[0],e&&t.eachBefore(r.a),t}function g(e){var n=s[e.depth],r=e.x0+n,i=e.y0+n,o=e.x1-n,a=e.y1-n;o<r&&(r=o=(r+o)/2),a<i&&(i=a=(i+a)/2),e.x0=r,e.y0=i,e.x1=o,e.y1=a,e.children&&(n=s[e.depth+1]=l(e)/2,r+=d(e)-n,i+=u(e)-n,(o-=f(e)-n)<r&&(r=o=(r+o)/2),(a-=h(e)-n)<i&&(i=a=(i+a)/2),t(e,r,i,o,a))}return p.round=function(t){return arguments.length?(e=!!t,p):e},p.size=function(t){return arguments.length?(n=+t[0],c=+t[1],p):[n,c]},p.tile=function(e){return arguments.length?(t=Object(o.b)(e),p):t},p.padding=function(t){return arguments.length?p.paddingInner(t).paddingOuter(t):p.paddingInner()},p.paddingInner=function(t){return arguments.length?(l="function"===typeof t?t:Object(a.b)(+t),p):l},p.paddingOuter=function(t){return arguments.length?p.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):p.paddingTop()},p.paddingTop=function(t){return arguments.length?(u="function"===typeof t?t:Object(a.b)(+t),p):u},p.paddingRight=function(t){return arguments.length?(f="function"===typeof t?t:Object(a.b)(+t),p):f},p.paddingBottom=function(t){return arguments.length?(h="function"===typeof t?t:Object(a.b)(+t),p):h},p.paddingLeft=function(t){return arguments.length?(d="function"===typeof t?t:Object(a.b)(+t),p):d},p}},2293:function(t,e,n){"use strict";n.d(e,"b",(function(){return d})),n.d(e,"a",(function(){return v}));var r=n(613),i=n(579),o=n(800),a=n(818),c=n(1184),s=n(618),l=n(2207),u=n(2294);function f(t){var e=t.chart,n=t.options,r=n.percent,o=n.range,f=n.radius,h=n.innerRadius,d=n.startAngle,p=n.endAngle,g=n.axis,v=n.indicator,y=n.gaugeStyle,m=n.type,b=n.meter,x=o.color,O=o.width;if(v){var j=Object(u.a)(r),w=e.createView({id:l.c});w.data(j),w.point().position(l.d+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),w.coordinate("polar",{startAngle:d,endAngle:p,radius:h*f}),w.axis(l.d,g),w.scale(l.d,Object(s.t)(g,c.a))}var C=Object(u.b)(r,n.range),S=e.createView({id:l.g});S.data(C);var E=Object(i.Q)(x)?[x,l.a]:x;return Object(a.c)({chart:S,options:{xField:"1",yField:l.f,seriesField:l.e,rawFields:[l.d],isStack:!0,interval:{color:E,style:y,shape:"meter"===m?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:O,maxColumnWidth:O}}).ext.geometry.customInfo({meter:b}),S.coordinate("polar",{innerRadius:h,radius:f,startAngle:d,endAngle:p}).transpose(),t}function h(t){var e;return Object(s.f)(Object(o.g)(((e={range:{min:0,max:1,maxLimit:1,minLimit:0}})[l.d]={},e)))(t)}function d(t,e){var n=t.chart,i=t.options,o=i.statistic,a=i.percent;if(n.getController("annotation").clear(!0),o){var c=o.content,l=void 0;c&&(l=Object(s.c)({},{content:(100*a).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},c)),Object(s.v)(n,{statistic:Object(r.a)(Object(r.a)({},o),{content:l})},{percent:a})}return e&&n.render(!0),t}function p(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(Object(s.c)({showTitle:!1,showMarkers:!1,containerTpl:'<div class="g2-tooltip"><div class="g2-tooltip-list"></div></div>',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){return(100*Object(i.s)(e,[0,"data",l.d],0)).toFixed(2)+"%"}},n)):e.tooltip(!1),t}function g(t){return t.chart.legend(!1),t}function v(t){return Object(s.f)(o.k,o.a,f,h,p,d,o.c,Object(o.b)(),g)(t)}},2294:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r=n(579),i=n(2207);function o(t){var e;return[(e={},e[i.d]=Object(r.c)(t,0,1),e)]}function a(t,e){var n=Object(r.s)(e,["ticks"],[]);return function(t,e){return t.map((function(n,r){var o;return(o={})[i.f]=n-(t[r-1]||0),o[i.e]=""+r,o[i.d]=e,o})).filter((function(t){return!!t[i.f]}))}(Object(r.mb)(n)?n:[0,Object(r.c)(t,0,1),1],t)}},2295:function(t,e,n){"use strict";var r=n(613),i=n(618);!function(t){function e(e,n,r,o){var a=t.call(this,e,Object(i.c)({},o,n))||this;return a.type="g2-plot",a.defaultOptions=o,a.adaptor=r,a}Object(r.b)(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}}(n(732).b)},2296:function(t,e,n){"use strict";n.d(e,"a",(function(){return R}));var r=n(579),i=n(618),o=n(1712),a=n(2271),c=n(1450),s=n(2270),l=n(2268),u=n(2293),f=n(2276),h=n(2277),d=n(1445),p=n(2282),g=n(2199),v=n(2327),y=n(2279),m=n(2309),b=n(2284),x=n(2219),O=n(2195),j=n(2226),w=n(2225),C=n(2224),S=n(2222),E=n(2196),M=n(2228),k=n(2227),P=n(2229),A=n(2198),I=n(2221),F=n(2197),T=n(1713),L=n(2201),N={line:o.a,pie:a.a,column:c.a,bar:s.a,area:l.a,gauge:u.a,"tiny-line":f.a,"tiny-column":h.a,"tiny-area":d.a,"ring-progress":p.a,progress:g.a,scatter:v.a,histogram:y.a,funnel:m.a,stock:b.a},D={line:x.a,pie:O.a,column:w.a,bar:j.a,area:C.a,gauge:S.a,"tiny-line":E.a,"tiny-column":k.a,"tiny-area":M.a,"ring-progress":P.a,progress:A.a,scatter:I.a,histogram:F.a,funnel:T.a,stock:L.a},B={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function R(t,e,n){var o=D[t];o?(0,N[t])({chart:e,options:Object(i.c)({},o.getDefaultOptions(),Object(r.s)(B,t,{}),n)}):console.error("could not find "+t+" plot")}},2297:function(t,e,n){"use strict";var r,i=n(1688);!function(t){t.DEV="DEV",t.BETA="BETA",t.STABLE="STABLE"}(r||(r={}));!function(){function t(){}Object.defineProperty(t,"MultiView",{get:function(){var t,e;return t=r.STABLE,e="MultiView",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."),i.a},enumerable:!1,configurable:!0})}()},2299:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(818),s=n(618),l=n(1675),u={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t||(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)))}};function f(t,e,n){void 0===n&&(n="normal");var r,i=(r=function(t){if(!u[t])throw new Error("unknown blend mode "+t);return u[t]}(n),function(t,e){var n=[];return n[0]=r(t[0],e[0]),n[1]=r(t[1],e[1]),n[2]=r(t[2],e[2]),n})(h(t),h(e)),o=h(t),a=o[0],c=o[1],s=o[2],l=o[3],f=h(e),d=f[0],p=f[1],g=f[2],v=f[3],y=Number((l+v*(1-l)).toFixed(2));return"rgba("+Math.round((l*(1-v)*(a/255)+l*v*(i[0]/255)+(1-l)*v*(d/255))/y*255)+", "+Math.round((l*(1-v)*(c/255)+l*v*(i[1]/255)+(1-l)*v*(p/255))/y*255)+", "+Math.round((l*(1-v)*(s/255)+l*v*(i[2]/255)+(1-l)*v*(g/255))/y*255)+", "+y+")"}function h(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=l.a.rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):l.a.rgb2arr(l.a.toRGB(n)).concat([1])}var d=n(2283);function p(t,e){var n,r=function(t){for(var e=[],n=0;n<t.length;++n)for(var r=n+1;r<t.length;++r)for(var i=m(t[n],t[r]),o=0;o<i.length;++o){var a=i[o];a.parentIndex=[n,r],e.push(a)}return e}(t),i=r.filter((function(e){return function(t,e){for(var n=0;n<e.length;++n)if(v(t,e[n])>e[n].radius+1e-10)return!1;return!0}(e,t)})),o=0,a=0,c=[];if(i.length>1){var s=b(i);for(n=0;n<i.length;++n){var l=i[n];l.angle=Math.atan2(l.x-s.x,l.y-s.y)}i.sort((function(t,e){return e.angle-t.angle}));var u=i[i.length-1];for(n=0;n<i.length;++n){var f=i[n];a+=(u.x+f.x)*(f.y-u.y);for(var h={x:(f.x+u.x)/2,y:(f.y+u.y)/2},d=null,p=0;p<f.parentIndex.length;++p)if(u.parentIndex.indexOf(f.parentIndex[p])>-1){var y=t[f.parentIndex[p]],x=Math.atan2(f.x-y.x,f.y-y.y),O=Math.atan2(u.x-y.x,u.y-y.y),j=O-x;j<0&&(j+=2*Math.PI);var w=O-j/2,C=v(h,{x:y.x+y.radius*Math.sin(w),y:y.y+y.radius*Math.cos(w)});C>2*y.radius&&(C=2*y.radius),(null===d||d.width>C)&&(d={circle:y,width:C,p1:f,p2:u})}null!==d&&(c.push(d),o+=g(d.circle.radius,d.width),u=f)}}else{var S=t[0];for(n=1;n<t.length;++n)t[n].radius<S.radius&&(S=t[n]);var E=!1;for(n=0;n<t.length;++n)if(v(t[n],S)>Math.abs(S.radius-t[n].radius)){E=!0;break}E?o=a=0:(o=S.radius*S.radius*Math.PI,c.push({circle:S,p1:{x:S.x,y:S.y+S.radius},p2:{x:S.x-1e-10,y:S.y+S.radius},width:2*S.radius}))}return a/=2,e&&(e.area=o+a,e.arcArea=o,e.polygonArea=a,e.arcs=c,e.innerPoints=i,e.intersectionPoints=r),o+a}function g(t,e){return t*t*Math.acos(1-e/t)-(t-e)*Math.sqrt(e*(2*t-e))}function v(t,e){return Math.sqrt((t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y))}function y(t,e,n){if(n>=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=e-(n*n-t*t+e*e)/(2*n);return g(t,t-(n*n-e*e+t*t)/(2*n))+g(e,r)}function m(t,e){var n=v(t,e),r=t.radius,i=e.radius;if(n>=r+i||n<=Math.abs(r-i))return[];var o=(r*r-i*i+n*n)/(2*n),a=Math.sqrt(r*r-o*o),c=t.x+o*(e.x-t.x)/n,s=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:c+l,y:s-u},{x:c-l,y:s+u}]}function b(t){for(var e={x:0,y:0},n=0;n<t.length;++n)e.x+=t[n].x,e.y+=t[n].y;return e.x/=t.length,e.y/=t.length,e}function x(t,e,n){return Math.min(t,e)*Math.min(t,e)*Math.PI<=n+1e-10?Math.abs(t-e):Object(d.bisect)((function(r){return y(t,e,r)-n}),0,t+e)}function O(t,e){var n=function(t,e){for(var n,r=e&&e.lossFunction?e.lossFunction:j,i={},o={},a=0;a<t.length;++a){var c=t[a];1==c.sets.length&&(n=c.sets[0],i[n]={x:1e10,y:1e10,rowid:Object.keys(i).length,size:c.size,radius:Math.sqrt(c.size/Math.PI)},o[n]=[])}t=t.filter((function(t){return 2==t.sets.length}));for(a=0;a<t.length;++a){var s=t[a],l=s.hasOwnProperty("weight")?s.weight:1,u=s.sets[0],f=s.sets[1];s.size+1e-10>=Math.min(i[u].size,i[f].size)&&(l=0),o[u].push({set:f,size:s.size,weight:l}),o[f].push({set:u,size:s.size,weight:l})}var h=[];for(n in o)if(o.hasOwnProperty(n)){var d=0;for(a=0;a<o[n].length;++a)d+=o[n][a].size*o[n][a].weight;h.push({set:n,size:d})}function p(t,e){return e.size-t.size}h.sort(p);var g={};function v(t){return t.set in g}function y(t,e){i[e].x=t.x,i[e].y=t.y,g[e]=!0}y({x:0,y:0},h[0].set);for(a=1;a<h.length;++a){var b=h[a].set,O=o[b].filter(v);if(n=i[b],O.sort(p),0===O.length)throw"ERROR: missing pairwise overlap information";for(var w=[],C=0;C<O.length;++C){var S=i[O[C].set],E=x(n.radius,S.radius,O[C].size);w.push({x:S.x+E,y:S.y}),w.push({x:S.x-E,y:S.y}),w.push({y:S.y+E,x:S.x}),w.push({y:S.y-E,x:S.x});for(var M=C+1;M<O.length;++M)for(var k=i[O[M].set],P=x(n.radius,k.radius,O[M].size),A=m({x:S.x,y:S.y,radius:E},{x:k.x,y:k.y,radius:P}),I=0;I<A.length;++I)w.push(A[I])}var F=1e50,T=w[0];for(C=0;C<w.length;++C){i[b].x=w[C].x,i[b].y=w[C].y;var L=r(i,t);L<F&&(F=L,T=w[C])}y(T,b)}return i}(t,e),r=e.lossFunction||j;if(t.length>=8){var i=function(t,e){var n,r=(e=e||{}).restarts||10,i=[],o={};for(n=0;n<t.length;++n){var a=t[n];1==a.sets.length&&(o[a.sets[0]]=i.length,i.push(a))}var c=function(t,e,n){var r=Object(d.zerosM)(e.length,e.length),i=Object(d.zerosM)(e.length,e.length);return t.filter((function(t){return 2==t.sets.length})).map((function(t){var o=n[t.sets[0]],a=n[t.sets[1]],c=x(Math.sqrt(e[o].size/Math.PI),Math.sqrt(e[a].size/Math.PI),t.size);r[o][a]=r[a][o]=c;var s=0;t.size+1e-10>=Math.min(e[o].size,e[a].size)?s=1:t.size<=1e-10&&(s=-1),i[o][a]=i[a][o]=s})),{distances:r,constraints:i}}(t,i,o),s=c.distances,l=c.constraints,u=Object(d.norm2)(s.map(d.norm2))/s.length;s=s.map((function(t){return t.map((function(t){return t/u}))}));var f,h,p=function(t,e){return function(t,e,n,r){var i,o=0;for(i=0;i<e.length;++i)e[i]=0;for(i=0;i<n.length;++i)for(var a=t[2*i],c=t[2*i+1],s=i+1;s<n.length;++s){var l=t[2*s],u=t[2*s+1],f=n[i][s],h=r[i][s],d=(l-a)*(l-a)+(u-c)*(u-c),p=Math.sqrt(d),g=d-f*f;h>0&&p<=f||h<0&&p>=f||(o+=2*g*g,e[2*i]+=4*g*(a-l),e[2*i+1]+=4*g*(c-u),e[2*s]+=4*g*(l-a),e[2*s+1]+=4*g*(u-c))}return o}(t,e,s,l)};for(n=0;n<r;++n){var g=Object(d.zeros)(2*s.length).map(Math.random);h=Object(d.conjugateGradient)(p,g,e),(!f||h.fx<f.fx)&&(f=h)}var v=f.x,y={};for(n=0;n<i.length;++n){var m=i[n];y[m.sets[0]]={x:v[2*n]*u,y:v[2*n+1]*u,radius:Math.sqrt(m.size/Math.PI)}}if(e.history)for(n=0;n<e.history.length;++n)Object(d.scale)(e.history[n].x,u);return y}(t,e);r(i,t)+1e-8<r(n,t)&&(n=i)}return n}function j(t,e){var n=0;for(var r=0;r<e.length;++r){var i=e[r],o=void 0;if(1!=i.sets.length){if(2==i.sets.length){var a=t[i.sets[0]],c=t[i.sets[1]];o=y(a.radius,c.radius,v(a,c))}else o=p(i.sets.map((function(e){return t[e]})));n+=(i.hasOwnProperty("weight")?i.weight:1)*(o-i.size)*(o-i.size)}}return n}function w(t){var e=function(e){return{max:Math.max.apply(null,t.map((function(t){return t[e]+t.radius}))),min:Math.min.apply(null,t.map((function(t){return t[e]-t.radius})))}};return{xRange:e("x"),yRange:e("y")}}function C(t,e,n){var r,i,o=e[0].radius-v(e[0],t);for(r=1;r<e.length;++r)(i=e[r].radius-v(e[r],t))<=o&&(o=i);for(r=0;r<n.length;++r)(i=v(n[r],t)-n[r].radius)<=o&&(o=i);return o}function S(t,e){var n,r=[];for(n=0;n<t.length;++n){var i=t[n];r.push({x:i.x,y:i.y}),r.push({x:i.x+i.radius/2,y:i.y}),r.push({x:i.x-i.radius/2,y:i.y}),r.push({x:i.x,y:i.y+i.radius/2}),r.push({x:i.x,y:i.y-i.radius/2})}var o=r[0],a=C(r[0],t,e);for(n=1;n<r.length;++n){var c=C(r[n],t,e);c>=a&&(o=r[n],a=c)}var s=Object(d.nelderMead)((function(n){return-1*C({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:s[0],y:s[1]},u=!0;for(n=0;n<t.length;++n)if(v(l,t[n])>t[n].radius){u=!1;break}for(n=0;n<e.length;++n)if(v(l,e[n])<e[n].radius){u=!1;break}if(!u)if(1==t.length)l={x:t[0].x,y:t[0].y};else{var f={};p(t,f),l=0===f.arcs.length?{x:0,y:-1e3,disjoint:!0}:1==f.arcs.length?{x:f.arcs[0].circle.x,y:f.arcs[0].circle.y}:e.length?S(t,[]):b(f.arcs.map((function(t){return t.p1})))}return l}function E(t,e){for(var n={},r=function(t){var e={},n=[];for(var r in t)n.push(r),e[r]=[];for(var i=0;i<n.length;i++)for(var o=t[n[i]],a=i+1;a<n.length;++a){var c=t[n[a]],s=v(o,c);s+c.radius<=o.radius+1e-10?e[n[a]].push(n[i]):s+o.radius<=c.radius+1e-10&&e[n[i]].push(n[a])}return e}(t),i=0;i<e.length;++i){for(var o=e[i].sets,a={},c={},s=0;s<o.length;++s){a[o[s]]=!0;for(var l=r[o[s]],u=0;u<l.length;++u)c[l[u]]=!0}var f=[],h=[];for(var d in t)d in a?f.push(t[d]):d in c||h.push(t[d]);var p=S(f,h);n[o]=p,p.disjoint&&e[i].size>0&&console.log("WARNING: area "+o+" not represented on screen")}return n}var M={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"]},k=Object(o.ab)((function(t,e,n,r){var i=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[r].length)i.set(e.id,t[(a+o)%o]);else{var c=e[r].map((function(t){return i.get(t)}));i.set(e.id,c.slice(1).reduce((function(t,e){return f(t,e,n)}),c[0]))}})),i}),(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return JSON.stringify(t)}));function P(t,e,n,i){void 0===i&&(i=0);var a=t.data,c=t.setsField,l=t.sizeField;if(0===a.length)return Object(s.r)(s.a.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),[];var u=a.map((function(t){var e;return Object(r.a)(Object(r.a)({},t),((e={sets:t[c]||[],size:t[l]}).path="",e.id="",e))}));u.sort((function(t,e){return t.sets.length-e.sets.length}));var f=function(t,e,n,r){var i=[],o=[];for(var a in t)t.hasOwnProperty(a)&&(o.push(a),i.push(t[a]));e-=2*r,n-=2*r;var c=w(i),s=c.xRange,l=c.yRange;if(s.max==s.min||l.max==l.min)return console.log("not scaling solution: zero size detected"),t;for(var u=e/(s.max-s.min),f=n/(l.max-l.min),h=Math.min(f,u),d=(e-(s.max-s.min)*h)/2,p=(n-(l.max-l.min)*h)/2,g={},v=0;v<i.length;++v){var y=i[v];g[o[v]]={radius:h*y.radius,x:r+d+(y.x-s.min)*h,y:r+p+(y.y-l.min)*h}}return g}(function(t,e){(e=e||{}).maxIterations=e.maxIterations||500;var n,r=e.initialLayout||O,i=e.lossFunction||j,o=r(t=function(t){t=t.slice();var e,n,r,i,o=[],a={};for(e=0;e<t.length;++e){var c=t[e];1==c.sets.length?o.push(c.sets[0]):2==c.sets.length&&(r=c.sets[0],i=c.sets[1],a[[r,i]]=!0,a[[i,r]]=!0)}for(o.sort((function(t,e){return t>e?1:-1})),e=0;e<o.length;++e)for(r=o[e],n=e+1;n<o.length;++n)i=o[n],[r,i]in a||t.push({sets:[r,i],size:0});return t}(t),e),a=[],c=[];for(n in o)o.hasOwnProperty(n)&&(a.push(o[n].x),a.push(o[n].y),c.push(n));for(var s=Object(d.nelderMead)((function(e){for(var n={},r=0;r<c.length;++r){var a=c[r];n[a]={x:e[2*r],y:e[2*r+1],radius:o[a].radius}}return i(n,t)}),a,e).x,l=0;l<c.length;++l)n=c[l],o[n].x=s[2*l],o[n].y=s[2*l+1];return o}(u),e,n,i),h=E(f,u);return u.forEach((function(t){var e=t.sets,n=e.join(",");t.id=n;var r=function(t){var e={};p(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var r=n[0].circle;return function(t,e,n){var r=[],i=t-n,o=e;return r.push("M",i,o),r.push("A",n,n,0,1,0,i+2*n,o),r.push("A",n,n,0,1,0,i,o),r.join(" ")}(r.x,r.y,r.radius)}for(var i=["\nM",n[0].p2.x,n[0].p2.y],o=0;o<n.length;++o){var a=n[o],c=a.circle.radius,s=a.width>c;i.push("\nA",c,c,0,s?1:0,1,a.p1.x,a.p1.y)}return i.join(" ")}(e.map((function(t){return f[t]})));/[zZ]$/.test(r)||(r+=" Z"),t.path=r;var i=h[n]||{x:0,y:0};Object(o.b)(t,i)})),u}var A=n(761),I=n(1411);Object(A.p)("schema","venn",{draw:function(t,e){var n=t.data,i=Object(I.c)(n.path),o=function(t){return Object(s.c)({},t.defaultStyle,{fill:t.color},t.style)}(t),a=e.addGroup({name:"venn-shape"});a.addShape("path",{attrs:Object(r.a)(Object(r.a)({},o),{path:i}),name:"venn-path"});var c=t.customInfo,l=c.offsetX,u=c.offsetY,f=A.h.transform(null,[["t",l,u]]);return a.setMatrix(f),a},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getLabelPoint=function(t,e,n){var r=t.data,i=r.x,o=r.y,a=t.customLabelInfo,c=a.offsetX,s=a.offsetY;return{content:t.content[n],x:i+c,y:o+s}},e}(A.e);function T(t){t&&t.geometries[0].elements.forEach((function(t){t.shape.toFront()}))}Object(A.n)("venn",F);var L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.syncElementsPos=function(){T(this.context.view)},e.prototype.active=function(){t.prototype.active.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Object(A.j)("element-active")),N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.syncElementsPos=function(){T(this.context.view)},e.prototype.highlight=function(){t.prototype.highlight.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.clear=function(){t.prototype.clear.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(Object(A.j)("element-highlight")),D=Object(A.j)("element-selected"),B=Object(A.j)("element-single-selected"),R=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.syncElementsPos=function(){T(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(D),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.syncElementsPos=function(){T(this.context.view)},e.prototype.selected=function(){t.prototype.selected.call(this),this.syncElementsPos()},e.prototype.toggle=function(){t.prototype.toggle.call(this),this.syncElementsPos()},e.prototype.reset=function(){t.prototype.reset.call(this),this.syncElementsPos()},e}(B);Object(A.l)("venn-element-active",L),Object(A.l)("venn-element-highlight",N),Object(A.l)("venn-element-selected",R),Object(A.l)("venn-element-single-selected",_),Object(A.o)("venn-element-active",{start:[{trigger:"element:mouseenter",action:"venn-element-active:active"}],end:[{trigger:"element:mouseleave",action:"venn-element-active:reset"}]}),Object(A.o)("venn-element-highlight",{start:[{trigger:"element:mouseenter",action:"venn-element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"venn-element-highlight:reset"}]}),Object(A.o)("venn-element-selected",{start:[{trigger:"element:click",action:"venn-element-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-selected:reset"]}]}),Object(A.o)("venn-element-single-selected",{start:[{trigger:"element:click",action:"venn-element-single-selected:toggle"}],rollback:[{trigger:"dblclick",action:["venn-element-single-selected:reset"]}]}),Object(A.o)("venn-legend-active",{start:[{trigger:"legend-item:mouseenter",action:["list-active:active","venn-element-active:active"]}],end:[{trigger:"legend-item:mouseleave",action:["list-active:reset","venn-element-active:reset"]}]}),Object(A.o)("venn-legend-highlight",{start:[{trigger:"legend-item:mouseenter",action:["legend-item-highlight:highlight","venn-element-highlight:highlight"]}],end:[{trigger:"legend-item:mouseleave",action:["legend-item-highlight:reset","venn-element-highlight:reset"]}]});function z(t,e,n){var r=t.chart,i=t.options,a=i.blendMode,c=i.setsField,s=r.getTheme(),l=s.colors10,u=s.colors20,f=n;Object(o.C)(f)||(f=e.filter((function(t){return 1===t[c].length})).length<=10?l:u);var h=k(f,e,a,c);return function(t){return h.get(t)||f[0]}}function V(t){var e=t.chart,n=t.options,r=n.legend,i=n.appendPadding,a=n.padding,c=Object(s.s)(i);return!1!==r&&(c=Object(s.g)(i,Object(o.s)(r,"position"),40)),e.appendPadding=Object(s.x)([c,a]),t}function H(t){var e=t.options.data;e||(Object(s.r)(s.a.WARN,!1,"warn: %s","\u6570\u636e\u4e0d\u80fd\u4e3a\u7a7a"),e=[]);var n=e.filter((function(t){return 1===t.sets.length})).map((function(t){return t.sets[0]})),r=e.filter((function(t){var e=t.sets;return function(t,e){for(var n=0;n<e.length;n++)if(!t.includes(e[n]))return!1;return!0}(n,e)}));return Object(o.H)(r,e)||Object(s.r)(s.a.WARN,!1,"warn: %s","\u4ea4\u96c6\u4e2d\u4e0d\u80fd\u51fa\u73b0\u4e0d\u5b58\u5728\u7684\u96c6\u5408, \u8bf7\u8f93\u5165\u5408\u6cd5\u6570\u636e"),Object(o.h)({},t,{options:{data:r}})}function K(t){var e=t.chart,n=t.options,r=n.pointStyle,i=n.setsField,o=n.sizeField,a=Object(s.s)(e.appendPadding),l=a[0],u=a[1],f=a[2],h=a[3],d={offsetX:h,offsetY:l},p=e.viewBBox,g=p.width,v=p.height,y=P(n,Math.max(g-(u+h),0),Math.max(v-(l+f),0),0);e.data(y);var m=Object(c.g)(Object(s.c)({},t,{options:{xField:"x",yField:"y",sizeField:o,seriesField:"id",rawFields:[i,o],schema:{shape:"venn",style:r}}})).ext.geometry;m.customInfo(d);var b=function(t,e){var n=t.options.color;if("function"!==typeof n){var r=z(t,e,"string"===typeof n?[n]:n);return function(t){return r(t.id)}}return n}(t,y);return"function"===typeof b&&m.color("id",(function(e){var n=y.find((function(t){return t.id===e})),r=z(t,y)(e);return b(n,r)})),t}function Y(t){var e=t.chart,n=t.options.label,i=Object(s.s)(e.appendPadding),a=i[0],c={offsetX:i[3],offsetY:a},l=Object(s.d)(e,"schema");if(n){var u=n.callback,f=Object(r.c)(n,["callback"]);l.label({fields:["id"],callback:u,cfg:Object(o.h)({},Object(s.A)(f),{type:"venn",customLabelInfo:c})})}else l.label(!1);return t}function G(t){var e=t.chart,n=t.options,r=n.legend,i=n.sizeField;return e.legend("id",r),e.legend(i,!1),t}function W(t){return t.chart.axis(!1),t}function X(t){var e=t.options,n=t.chart,i=e.interactions;if(i){var o={"legend-active":"venn-legend-active","legend-highlight":"venn-legend-highlight"};Object(a.c)(Object(s.c)({},t,{options:{interactions:i.map((function(t){return Object(r.a)(Object(r.a)({},t),{type:o[t.type]||t.type})}))}}))}return n.removeInteraction("legend-active"),n.removeInteraction("legend-highlight"),t}function q(t){return Object(s.f)(V,a.k,H,K,Y,Object(a.g)({}),G,W,a.l,X,a.a)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="venn",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return M},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return q},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(i.b)},2300:function(t,e,n){"use strict";var r=n(613),i=n(579),o=n(732),a=n(618),c=n(800),s=n(818),l=n(1681);function u(t){return t.target.depth}function f(t,e){return t.sourceLinks.length?t.depth:e-1}function h(t){return function(){return t}}function d(t,e){for(var n=0,r=0;r<t.length;r++)n+=e(t[r]);return n}function p(t,e){for(var n=-1/0,r=0;r<t.length;r++)n=Math.max(e(t[r]),n);return n}function g(t,e){return y(t.source,e.source)||t.index-e.index}function v(t,e){return y(t.target,e.target)||t.index-e.index}function y(t,e){return t.y0-e.y0}function m(t){return t.value}function b(t){return t.index}function x(t){return t.nodes}function O(t){return t.links}function j(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function w(t){for(var e=0,n=t.nodes;e<n.length;e++){for(var r=n[e],i=r.y0,o=i,a=0,c=r.sourceLinks;a<c.length;a++){(u=c[a]).y0=i+u.width/2,i+=u.width}for(var s=0,l=r.targetLinks;s<l.length;s++){var u;(u=l[s]).y1=o+u.width/2,o+=u.width}}}function C(){var t,e,n,r,i=0,o=0,a=1,c=1,s=24,l=8,u=b,C=f,S=x,E=O,M=6;function k(f){var h={nodes:S(f),links:E(f)};return function(t){var e=t.nodes,n=t.links;e.forEach((function(t,e){t.index=e,t.sourceLinks=[],t.targetLinks=[]}));var i=new Map(e.map((function(t){return[u(t),t]})));if(n.forEach((function(t,e){t.index=e;var n=t.source,r=t.target;"object"!==typeof n&&(n=t.source=j(i,n)),"object"!==typeof r&&(r=t.target=j(i,r)),n.sourceLinks.push(t),r.targetLinks.push(t)})),null!=r)for(var o=0,a=e;o<a.length;o++){var c=a[o],s=c.sourceLinks,l=c.targetLinks;s.sort(r),l.sort(r)}}(h),function(t){for(var e=t.nodes,n=0,r=e;n<r.length;n++){var i=r[n];i.value=void 0===i.fixedValue?Math.max(d(i.sourceLinks,m),d(i.targetLinks,m)):i.fixedValue}}(h),function(t){var n=t.nodes,r=n.length,i=new Set(n),o=new Set,a=0;for(;i.size;){if(i.forEach((function(t){t.depth=a;for(var e=0,n=t.sourceLinks;e<n.length;e++){var r=n[e].target;o.add(r)}})),++a>r)throw new Error("circular link");i=o,o=new Set}if(e)for(var c=Math.max(p(n,(function(t){return t.depth}))+1,0),s=void 0,l=0;l<n.length;l++)(s=n[l]).depth=e.call(null,s,c)}(h),function(t){var e=t.nodes,n=e.length,r=new Set(e),i=new Set,o=0;for(;r.size;){if(r.forEach((function(t){t.height=o;for(var e=0,n=t.targetLinks;e<n.length;e++){var r=n[e].source;i.add(r)}})),++o>n)throw new Error("circular link");r=i,i=new Set}}(h),function(e){var r=function(t){for(var e=t.nodes,r=Math.max(p(e,(function(t){return t.depth}))+1,0),o=(a-i-s)/(r-1),c=new Array(r).fill(0).map((function(){return[]})),l=0,u=e;l<u.length;l++){var f=u[l],h=Math.max(0,Math.min(r-1,Math.floor(C.call(null,f,r))));f.layer=h,f.x0=i+h*o,f.x1=f.x0+s,c[h]?c[h].push(f):c[h]=[f]}if(n)for(var d=0,g=c;d<g.length;d++){g[d].sort(n)}return c}(e);t=Math.min(l,(c-o)/(p(r,(function(t){return t.length}))-1)),function(e){for(var n=function(t,e){for(var n=1/0,r=0;r<t.length;r++)n=Math.min(e(t[r]),n);return n}(e,(function(e){return(c-o-(e.length-1)*t)/d(e,m)})),r=0,i=e;r<i.length;r++){for(var a=i[r],s=o,l=0,u=a;l<u.length;l++){(v=u[l]).y0=s,v.y1=s+v.value*n,s=v.y1+t;for(var f=0,h=v.sourceLinks;f<h.length;f++){var p=h[f];p.width=p.value*n}}s=(c-s+t)/(a.length+1);for(var g=0;g<a.length;++g){var v;(v=a[g]).y0+=s*(g+1),v.y1+=s*(g+1)}N(a)}}(r);for(var u=0;u<M;++u){var f=Math.pow(.99,u),h=Math.max(1-f,(u+1)/M);A(r,f,h),P(r,f,h)}}(h),w(h),h}function P(t,e,r){for(var i=1,o=t.length;i<o;++i){for(var a=t[i],c=0,s=a;c<s.length;c++){for(var l=s[c],u=0,f=0,h=0,d=l.targetLinks;h<d.length;h++){var p=d[h],g=p.source,v=p.value*(l.layer-g.layer);u+=D(g,l)*v,f+=v}if(f>0){var m=(u/f-l.y0)*e;l.y0+=m,l.y1+=m,L(l)}}void 0===n&&a.sort(y),a.length&&I(a,r)}}function A(t,e,r){for(var i=t.length-2;i>=0;--i){for(var o=t[i],a=0,c=o;a<c.length;a++){for(var s=c[a],l=0,u=0,f=0,h=s.sourceLinks;f<h.length;f++){var d=h[f],p=d.target,g=d.value*(p.layer-s.layer);l+=B(s,p)*g,u+=g}if(u>0){var v=(l/u-s.y0)*e;s.y0+=v,s.y1+=v,L(s)}}void 0===n&&o.sort(y),o.length&&I(o,r)}}function I(e,n){var r=e.length>>1,i=e[r];T(e,i.y0-t,r-1,n),F(e,i.y1+t,r+1,n),T(e,c,e.length-1,n),F(e,o,0,n)}function F(e,n,r,i){for(;r<e.length;++r){var o=e[r],a=(n-o.y0)*i;a>1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function T(e,n,r,i){for(;r>=0;--r){var o=e[r],a=(o.y1-n)*i;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function L(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===r){for(var i=0,o=n;i<o.length;i++){o[i].source.sourceLinks.sort(v)}for(var a=0,c=e;a<c.length;a++){c[a].target.targetLinks.sort(g)}}}function N(t){if(void 0===r)for(var e=0,n=t;e<n.length;e++){var i=n[e],o=i.sourceLinks,a=i.targetLinks;o.sort(v),a.sort(g)}}function D(e,n){for(var r=e.y0-(e.sourceLinks.length-1)*t/2,i=0,o=e.sourceLinks;i<o.length;i++){var a=o[i],c=a.target,s=a.width;if(c===n)break;r+=s+t}for(var l=0,u=n.targetLinks;l<u.length;l++){var f=u[l];c=f.source,s=f.width;if(c===e)break;r-=s}return r}function B(e,n){for(var r=n.y0-(n.targetLinks.length-1)*t/2,i=0,o=n.targetLinks;i<o.length;i++){var a=o[i],c=a.source,s=a.width;if(c===e)break;r+=s+t}for(var l=0,u=e.sourceLinks;l<u.length;l++){var f=u[l];c=f.target,s=f.width;if(c===n)break;r-=s}return r}return k.update=function(t){return w(t),t},k.nodeId=function(t){return arguments.length?(u="function"===typeof t?t:h(t),k):u},k.nodeAlign=function(t){return arguments.length?(C="function"===typeof t?t:h(t),k):C},k.nodeDepth=function(t){return arguments.length?(e=t,k):e},k.nodeSort=function(t){return arguments.length?(n=t,k):n},k.nodeWidth=function(t){return arguments.length?(s=+t,k):s},k.nodePadding=function(e){return arguments.length?(l=t=+e,k):l},k.nodes=function(t){return arguments.length?(S="function"===typeof t?t:h(t),k):S},k.links=function(t){return arguments.length?(E="function"===typeof t?t:h(t),k):E},k.linkSort=function(t){return arguments.length?(r=t,k):r},k.size=function(t){return arguments.length?(i=o=0,a=+t[0],c=+t[1],k):[a-i,c-o]},k.extent=function(t){return arguments.length?(i=+t[0][0],a=+t[1][0],o=+t[0][1],c=+t[1][1],k):[[i,o],[a,c]]},k.iterations=function(t){return arguments.length?(M=+t,k):M},k}var S={left:function(t){return t.depth},right:function(t,e){return e-1-t.height},center:function(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(i.cb)(t.sourceLinks,u)-1:0},justify:f},E={nodeId:function(t){return t.index},nodeAlign:"justify",nodeWidth:.008,nodePadding:.03,nodeSort:void 0};function M(t,e){var n=function(t){return Object(i.b)({},E,t)}(t),r=n.nodeId,o=n.nodeSort,a=n.nodeAlign,c=n.nodeWidth,s=n.nodePadding,l=n.nodeDepth,u=C().nodeSort(o).nodeWidth(c).nodePadding(s).nodeDepth(l).nodeAlign(function(t){return(Object(i.Q)(t)?S[t]:Object(i.I)(t)?t:null)||f}(a)).extent([[0,0],[1,1]]).nodeId(r)(e);return{nodes:u.nodes.map((function(t){var e=t.x0,n=t.x1,r=t.y0,i=t.y1;return t.x=[e,n,n,e],t.y=[r,r,i,i],t})).filter((function(t){return null!==t.name})),links:u.links.map((function(t){var e=t.source,n=t.target,r=e.x1,i=n.x0;t.x=[r,r,i,i];var o=t.width/2;return t.y=[t.y0+o,t.y0-o,t.y1+o,t.y1-o],t})).filter((function(t){var e=t.source,n=t.target;return null!==e.name&&null!==n.name}))}}function k(t,e,n){if(!Object(i.C)(t))return[];var r=[],o=function(t,e,n){var r=[];return t.forEach((function(t){var i=t[e],o=t[n];r.includes(i)||r.push(i),r.includes(o)||r.push(o)})),r}(t,e,n),a=function(t,e,n,r){var i={};return e.forEach((function(t){i[t]={},e.forEach((function(e){i[t][e]=0}))})),t.forEach((function(t){i[t[n]][t[r]]=1})),i}(t,o,e,n),c={};return o.forEach((function(t){c[t]=0})),o.forEach((function(t){-1!=c[t]&&function t(e){c[e]=1,o.forEach((function(n){if(0!=a[e][n])if(1==c[n])r.push(e+"_"+n);else{if(-1==c[n])return;t(n)}})),c[e]=-1}(t)})),0!==r.length&&console.warn("sankey data contains circle, "+r.length+" records removed.",r),t.filter((function(t){return r.findIndex((function(r){return r===t[e]+"_"+t[n]}))<0}))}function P(t,e,n){return Object(a.p)(t)?t/n:e}function A(t,e,n){return Object(a.p)(t)?t/n:e}function I(t,e,n){var i,o=t.dataType,c=t.data,s=t.sourceField,u=t.targetField,f=t.weightField,h=t.nodeAlign,d=t.nodeSort,p=t.nodePadding,g=t.nodePaddingRatio,v=t.nodeWidth,y=t.nodeWidthRatio,m=t.nodeDepth,b=t.rawFields,x=void 0===b?[]:b;i=function(t){return"node-link"===t}(o)?c:Object(l.c)(k(c,s,u),s,u,f,x);var O=M({nodeAlign:h,nodePadding:A(p,g,n),nodeWidth:P(v,y,e),nodeSort:d,nodeDepth:m},i),j=O.nodes,w=O.links;return{nodes:j.map((function(t){return Object(r.a)(Object(r.a)({},Object(a.t)(t,Object(r.d)(["x","y","name"],x))),{isNode:!0})})),edges:w.map((function(t){return Object(r.a)(Object(r.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(a.t)(t,Object(r.d)(["x","y","value"],x))),{isNode:!1})}))}}function F(t){var e=t.options.rawFields,n=void 0===e?[]:e;return Object(a.c)({},{options:{tooltip:{fields:Object(i.ub)(Object(r.d)(["name","source","target","value","isNode"],n))},label:{fields:Object(i.ub)(Object(r.d)(["x","name"],n))}}},t)}function T(t){var e=t.chart,n=t.options,r=n.color,i=n.nodeStyle,o=n.edgeStyle,a=n.label,c=n.tooltip,l=n.nodeState,u=n.edgeState;e.legend(!1),e.tooltip(c),e.axis(!1),e.coordinate().reflect("y");var f=I(n,e.width,e.height),h=f.nodes,d=f.edges,p=e.createView({id:"edges"});p.data(d),Object(s.b)({chart:p,options:{xField:"x",yField:"y",seriesField:"name",edge:{color:r,style:o,shape:"arc"},tooltip:c,state:u}});var g=e.createView({id:"nodes"});return g.data(h),Object(s.f)({chart:g,options:{xField:"x",yField:"y",seriesField:"name",polygon:{color:r,style:i},label:a,tooltip:c,state:l}}),e.interaction("element-active"),e.scale({x:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},y:{sync:!0,nice:!0,min:0,max:1,minLimit:0,maxLimit:1},name:{sync:"color",type:"cat"}}),t}function L(t){var e=t.chart,n=t.options.animation;return"boolean"===typeof n?e.animate(n):e.animate(!0),Object(r.d)(e.views[0].geometries,e.views[1].geometries).forEach((function(t){t.animate(n)})),t}function N(t){var e=t.chart;return t.options.nodeDraggable?e.interaction("sankey-node-draggable"):e.removeInteraction("sankey-node-draggable"),t}function D(t){var e=t.chart,n=t.options,r=n.interactions,i=void 0===r?[]:r,o=[].concat(i,n.nodeInteractions||[]),c=[].concat(i,n.edgeInteractions||[]),s=Object(a.e)(e,"nodes"),l=Object(a.e)(e,"edges");return o.forEach((function(t){!1===(null===t||void 0===t?void 0:t.enable)?s.removeInteraction(t.type):s.interaction(t.type,t.cfg||{})})),c.forEach((function(t){!1===(null===t||void 0===t?void 0:t.enable)?l.removeInteraction(t.type):l.interaction(t.type,t.cfg||{})})),t}function B(t){return Object(a.f)(F,T,D,N,L,c.k)(t)}var R=n(761),_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isDragging=!1,e}return Object(r.b)(e,t),e.prototype.isNodeElement=function(){var t=Object(i.s)(this.context,"event.target");if(t){var e=t.get("element");return e&&e.getModel().data.isNode}return!1},e.prototype.getNodeView=function(){return Object(a.e)(this.context.view,"nodes")},e.prototype.getEdgeView=function(){return Object(a.e)(this.context.view,"edges")},e.prototype.getCurrentDatumIdx=function(t){return this.getNodeView().geometries[0].elements.indexOf(t)},e.prototype.start=function(){if(this.isNodeElement()){this.prevPoint={x:Object(i.s)(this.context,"event.x"),y:Object(i.s)(this.context,"event.y")};var t=this.context.event.target.get("element"),e=this.getCurrentDatumIdx(t);if(-1===e)return;this.currentElementIdx=e,this.context.isDragging=!0,this.isDragging=!0,this.prevNodeAnimateCfg=this.getNodeView().getOptions().animate,this.prevEdgeAnimateCfg=this.getEdgeView().getOptions().animate,this.getNodeView().animate(!1),this.getEdgeView().animate(!1)}},e.prototype.translate=function(){if(this.isDragging){var t=this.context.view,e={x:Object(i.s)(this.context,"event.x"),y:Object(i.s)(this.context,"event.y")},n=e.x-this.prevPoint.x,o=e.y-this.prevPoint.y,a=this.getNodeView(),c=a.geometries[0].elements[this.currentElementIdx];if(c&&c.getModel()){var s=c.getModel().data,l=a.getOptions().data,u=a.getCoordinate(),f={x:n/u.getWidth(),y:o/u.getHeight()},h=Object(r.a)(Object(r.a)({},s),{x:s.x.map((function(t){return t+f.x})),y:s.y.map((function(t){return t+f.y}))}),d=Object(r.d)(l);d[this.currentElementIdx]=h,a.data(d);var p=s.name,g=this.getEdgeView(),v=g.getOptions().data;v.forEach((function(t){t.source===p&&(t.x[0]+=f.x,t.x[1]+=f.x,t.y[0]+=f.y,t.y[1]+=f.y),t.target===p&&(t.x[2]+=f.x,t.x[3]+=f.x,t.y[2]+=f.y,t.y[3]+=f.y)})),g.data(v),this.prevPoint=e,t.render(!0)}}},e.prototype.end=function(){this.isDragging=!1,this.context.isDragging=!1,this.prevPoint=null,this.currentElementIdx=null,this.getNodeView().animate(this.prevNodeAnimateCfg),this.getEdgeView().animate(this.prevEdgeAnimateCfg)},e}(R.a);Object(R.l)("sankey-node-drag",_),Object(R.o)("sankey-node-draggable",{showEnable:[{trigger:"polygon:mouseenter",action:"cursor:pointer"},{trigger:"polygon:mouseleave",action:"cursor:default"}],start:[{trigger:"polygon:mousedown",action:"sankey-node-drag:start"}],processing:[{trigger:"plot:mousemove",action:"sankey-node-drag:translate"},{isEnable:function(t){return t.isDragging},trigger:"plot:mousemove",action:"cursor:move"}],end:[{trigger:"plot:mouseup",action:"sankey-node-drag:end"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sankey",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return{appendPadding:8,syncViewPadding:!0,nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.3,lineWidth:0},edgeState:{active:{style:{opacity:.8,lineWidth:0}}},label:{formatter:function(t){return t.name},callback:function(t){var e=1===t[1];return{style:{fill:"#545454",textAlign:e?"end":"start"},offsetX:e?-8:8}},layout:[{type:"hide-overlap"}]},tooltip:{showTitle:!1,showMarkers:!1,shared:!1,showContent:function(t){return!Object(i.s)(t,[0,"data","isNode"])},formatter:function(t){return{name:t.source+" -> "+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=I(this.options,this.chart.width,this.chart.height),n=e.nodes,r=e.edges,i=Object(a.e)(this.chart,"nodes"),o=Object(a.e)(this.chart,"edges");i.changeData(n),o.changeData(r)},e.prototype.getSchemaAdaptor=function(){return B},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(o.b)},2301:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Text",(function(){return h})),n.d(e,"Arc",(function(){return d})),n.d(e,"Region",(function(){return p})),n.d(e,"Image",(function(){return g})),n.d(e,"DataMarker",(function(){return v})),n.d(e,"DataRegion",(function(){return y})),n.d(e,"RegionFilter",(function(){return m})),n.d(e,"Shape",(function(){return b})),n.d(e,"Html",(function(){return O}));var r=n(825),i=n(579),o=n(913),a=n(1698),c=n(1139),s=n(918);function l(t,e){var n=e.x,o=e.y,l=e.content,u=e.style,f=e.id,h=e.name,d=e.rotate,p=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:f+"-group",name:h+"-group",attrs:{x:n,y:o}}),x=b.addShape({type:"text",id:f,name:h,attrs:Object(r.a)({x:0,y:0,text:l},u)}),O=Object(s.c)(Object(i.s)(m,"padding",0));if(p&&g){var j=p-(O[1]+O[3]);Object(a.a)(!v,x,j,y)}if(m){var w=Object(i.s)(m,"style",{}),C=x.getCanvasBBox(),S=C.minX,E=C.minY,M=C.width,k=C.height;b.addShape("rect",{id:f+"-bg",name:f+"-bg",attrs:Object(r.a)({x:S-O[3],y:E-O[0],width:M+O[1]+O[3],height:k+O[0]+O[2]},w)}).toBack()}Object(c.c)(b,n,o),Object(c.b)(b,d,n,o)}var u=n(1004),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:u.a.textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:u.a.fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:u.a.lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(r.a)({x1:e.x,y1:e.y,x2:n.x,y2:n.y},i)})},e.prototype.getLabelPoint=function(t,e,n){var r;return((r="start"===n?0:"center"===n?.5:Object(i.Q)(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(i.M)(n)?n:1)>1||r<0)&&(r=1),{x:Object(s.g)(t.x,e.x,r),y:Object(s.g)(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,o=e.content,a=e.style,c=e.offsetX,s=e.offsetY,u=e.autoRotate,f=e.maxLength,h=e.autoEllipsis,d=e.ellipsisPosition,p=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(n,r,i),m=y.x+c,b=y.y+s,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:o,style:a,maxLength:f,autoEllipsis:h,ellipsisPosition:d,background:p,isVertical:v};if(u){var O=[r.x-n.x,r.y-n.y];x.rotate=Math.atan2(O[1],O[0])}l(t,x)},e}(o.a),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},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:u.a.textColor,fontSize:12,textAlign:"center",textBaseline:"middle",fontFamily:u.a.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"),o=this.get("style");l(t,{id:this.getElementId("text"),name:this.get("name")+"-text",x:n,y:r,content:i,style:o,maxLength:this.get("maxLength"),autoEllipsis:this.get("autoEllipsis"),isVertical:this.get("isVertical"),ellipsisPosition:this.get("ellipsisPosition"),background:this.get("background"),rotate:this.get("rotate")})},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");Object(c.c)(t,n,r),Object(c.b)(t,i,n,r)}},e}(o.a),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},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,o=Object(s.e)(e,n,r),a=Object(s.e)(e,n,i),c=i-r>Math.PI?1:0,l=[["M",o.x,o.y]];if(i-r===2*Math.PI){var u=Object(s.e)(e,n,r+Math.PI);l.push(["A",n,n,0,c,1,u.x,u.y]),l.push(["A",n,n,0,c,1,a.x,a.y])}else l.push(["A",n,n,0,c,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(r.a)({path:e},n)})},e}(o.a),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"region",locationType:"region",start:null,end:null,style:{},defaultCfg:{style:{lineWidth:0,fill:u.a.regionColor,opacity:.4}}})},e.prototype.renderInner=function(t){this.renderRegion(t)},e.prototype.renderRegion=function(t){var e=this.get("start"),n=this.get("end"),i=this.get("style"),o=Object(s.k)({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.a)({x:o.x,y:o.y,width:o.width,height:o.height},i)})},e}(o.a),g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),i=Object(s.k)({start:t,end:e}),o=this.get("src");return Object(r.a)({x:i.x,y:i.y,img:o,width:i.width,height:i.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(o.a),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},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.a.lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u.a.textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u.a.fontFamily}}}})},e.prototype.renderInner=function(t){Object(i.s)(this.get("line"),"display")&&this.renderLine(t),Object(i.s)(this.get("text"),"display")&&this.renderText(t),Object(i.s)(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,i=e.y,o=e.text,a=Object(r.c)(e,["x","y","text"]),c=this.get("text"),s=c.background,u=c.maxLength,f=c.autoEllipsis,h=c.isVertival,d=c.ellipsisPosition;l(t,{x:n,y:i,id:this.getElementId("text"),name:"annotation-text",content:o,style:a,background:s,maxLength:u,autoEllipsis:f,isVertival:h,ellipsisPosition:d})},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),r=this.get("y"),o=Object(i.s)(this.get("line"),"length",0),a=this.get("coordinateBBox"),s=t.getBBox(),l=s.minX,u=s.maxX,f=s.minY,h=s.maxY,d=t.findById(this.getElementId("text-group")),p=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(a){if(d){if(n+l<=a.minX){var v=a.minX-(n+l);Object(c.c)(d,d.attr("x")+v,d.attr("y"))}if(n+u>=a.maxX){v=n+u-a.maxX;Object(c.c)(d,d.attr("x")-v,d.attr("y"))}}if("upward"===e&&r+f<=a.minY||"upward"!==e&&r+h>=a.maxY){var y=void 0,m=void 0;"upward"===e&&r+f<=a.minY?(y="top",m=1):(y="bottom",m=-1),p.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,o*m]]),Object(c.c)(d,d.attr("x"),(o+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=Object(i.s)(this.get("line"),"display"),e=Object(i.s)(this.get("point"),"style",{}),n=Object(i.s)(this.get("line"),"style",{}),o=Object(i.s)(this.get("text"),"style",{}),a=this.get("direction"),c=t?Object(i.s)(this.get("line"),"length",0):0,s="upward"===a?-1:1;return{point:Object(r.a)({x:0,y:0},e),line:Object(r.a)({path:[["M",0,0],["L",0,c*s]]},n),text:Object(r.a)({x:0,y:(c+2)*s,text:Object(i.s)(this.get("text"),"content",""),textBaseline:"upward"===a?"bottom":"top"},o)}},e}(o.a),y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:u.a.regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:u.a.textColor,fontFamily:u.a.fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(i.s)(this.get("region"),"style",{}),n=(Object(i.s)(this.get("text"),"style",{}),this.get("lineLength")||0),o=this.get("points");if(o.length){var a=Object(s.j)(o),c=[];c.push(["M",o[0].x,a.minY-n]),o.forEach((function(t){c.push(["L",t.x,t.y])})),c.push(["L",o[o.length-1].x,o[o.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(r.a)({path:c},e)}),l(t,Object(r.a)({id:this.getElementId("text"),name:"annotation-text",x:(a.minX+a.maxX)/2,y:a.minY-n},this.get("text")))}},e}(o.a),m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},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"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(i.j)(this.get("shapes"),(function(t,n){var r=t.get("type"),a=Object(i.e)(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+r+"-"+n),capture:!1,type:r,attrs:a})}));var a=Object(s.k)({start:n,end:r});o.setClip({type:"rect",attrs:{x:a.minX,y:a.minY,width:a.width,height:a.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.a),b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"shape",draw:i.fb})},e.prototype.renderInner=function(t){var e=this.get("render");Object(i.I)(e)&&e(t)},e}(o.a),x=n(1185),O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(s.a)(t);var n=Object(i.I)(e)?e(t):e;if(Object(i.F)(n))t.appendChild(n);else if(Object(i.Q)(n)||Object(i.M)(n)){var r=Object(x.b)(""+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"),a=this.get("offsetX"),c=this.get("offsetY"),s=Object(x.d)(t),l=Object(x.c)(t),u={x:n,y:r};"middle"===i?u.x-=Math.round(s/2):"right"===i&&(u.x-=Math.round(s)),"middle"===o?u.y-=Math.round(l/2):"bottom"===o&&(u.y-=Math.round(l)),a&&(u.x+=a),c&&(u.y+=c),Object(x.e)(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(n(1676).a)},2302:function(t,e,n){"use strict";var r,i,o=n(613),a=n(732),c=n(618),s=n(579),l=n(800),u=n(1444),f=n(1679);!function(t){t.Left="Left",t.Right="Right"}(r||(r={})),function(t){t.Line="line",t.Column="column"}(i||(i={}));var h={nice:!0,label:{autoHide:!0,autoRotate:!1}},d=Object(o.a)(Object(o.a)({},h),{position:"left"}),p=Object(o.a)(Object(o.a)({},h),{position:"right",grid:null});function g(t){return Object(s.s)(t,"geometry")===i.Line}function v(t){return Object(s.s)(t,"geometry")===i.Column}function y(t,e,n){return v(n)?Object(c.c)({},{geometry:i.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):Object(o.a)({geometry:i.Line},n)}function m(t,e){var n=t[0],r=t[1];return Object(s.C)(e)?[e[0],e[1]]:[Object(s.s)(e,n),Object(s.s)(e,r)]}function b(t,e){return e===r.Left?!1!==t&&Object(c.c)({},d,t):e===r.Right?!1!==t&&Object(c.c)({},p,t):t}var x=n(761);function O(t){var e=t.view,n=t.geometryOption,r=t.yField,i=t.legend,o=Object(s.s)(i,"marker"),a=Object(c.d)(e,g(n)?"line":"interval");if(!n.seriesField){var l=Object(s.s)(e,"options.scales."+r+".alias")||r,u=a.getAttribute("color"),f=e.getTheme().defaultColor;return u&&(f=x.h.getMappingValue(u,l,Object(s.s)(u,["values",0],f))),[{value:r,name:l,marker:(Object(s.I)(o)?o:!Object(s.G)(o)&&Object(c.c)({},{style:{stroke:f,fill:f}},o))||(g(n)?{symbol:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},style:{lineWidth:2,r:6,stroke:f}}:{symbol:"square",style:{fill:f}}),isGeometry:!0,viewId:e.id}]}var h=a.getGroupAttributes();return Object(s.ib)(h,(function(t,n){var r=x.h.getLegendItems(e,a,n,e.getTheme(),o);return t.concat(r)}),[])}var j=n(818),w=n(1450);var C=function(t,e){var n=e[0],r=e[1],i=t.getOptions().data,o=t.getXScale(),a=Object(s.mb)(i);if(o&&a){var l=Object(s.yb)(i,o.field),u=l,f=Object(s.mb)(u),h=Math.floor(n*(f-1)),d=Math.floor(r*(f-1));t.filter(o.field,(function(t){var e=u.indexOf(t);return!(e>-1)||Object(c.o)(e,h,d)})),t.getRootView().render(!0)}};function S(t){var e,n=t.options,r=n.geometryOptions,o=void 0===r?[]:r,a=n.xField,l=n.yField,u=Object(s.k)(o,(function(t){var e=t.geometry;return e===i.Line||void 0===e}));return Object(c.c)({},{options:{geometryOptions:[],meta:(e={},e[a]={type:"cat",sync:!0,range:u?[0,1]:void 0},e),tooltip:{showMarkers:u,showCrosshairs:u,shared:!0,crosshairs:{type:"x"}},interactions:u?[{type:"legend-visible-filter"}]:[{type:"legend-visible-filter"},{type:"active-region"}],legend:{position:"top-left"}}},t,{options:{yAxis:m(l,n.yAxis),geometryOptions:[y(0,l[0],o[0]),y(0,l[1],o[1])],annotations:m(l,n.annotations)}})}function E(t){var e,n,r=t.chart,i=t.options.geometryOptions,o={line:0,column:1};return[{type:null===(e=i[0])||void 0===e?void 0:e.geometry,id:"left-axes-view"},{type:null===(n=i[1])||void 0===n?void 0:n.geometry,id:"right-axes-view"}].sort((function(t,e){return-o[t.type]+o[e.type]})).forEach((function(t){return r.createView({id:t.id})})),t}function M(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,a=n.geometryOptions,l=n.data,h=n.tooltip;return[Object(o.a)(Object(o.a)({},a[0]),{id:"left-axes-view",data:l[0],yField:i[0]}),Object(o.a)(Object(o.a)({},a[1]),{id:"right-axes-view",data:l[1],yField:i[1]})].forEach((function(t){var n=t.id,i=t.data,a=t.yField,l=v(t)&&t.isPercent,d=l?Object(u.c)(i,a,r,a):i,p=Object(f.a)(e,n).data(d),y=l?Object(o.a)({formatter:function(e){return{name:e[t.seriesField]||a,value:(100*Number(e[a])).toFixed(2)+"%"}}},h):h;!function(t){var e=t.options,n=t.chart,r=e.geometryOption,i=r.isStack,a=r.color,l=r.seriesField,u=r.groupField,f=r.isGroup,h=["xField","yField"];if(g(r)){Object(j.d)(Object(c.c)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(c.t)(e,h)),r),{line:{color:r.color,style:r.lineStyle}})})),Object(j.e)(Object(c.c)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(c.t)(e,h)),r),{point:r.point&&Object(o.a)({color:a,shape:"circle"},r.point)})}));var d=[];f&&d.push({type:"dodge",dodgeBy:u||l,customOffset:0}),i&&d.push({type:"stack"}),d.length&&Object(s.j)(n.geometries,(function(t){t.adjust(d)}))}v(r)&&Object(w.a)(Object(c.c)({},t,{options:Object(o.a)(Object(o.a)(Object(o.a)({},Object(c.t)(e,h)),r),{widthRatio:r.columnWidthRatio,interval:Object(o.a)(Object(o.a)({},Object(c.t)(r,["color"])),{style:r.columnStyle})})}))}({chart:p,options:{xField:r,yField:a,tooltip:y,geometryOption:t}})})),t}function k(t){var e,n=t.chart,r=t.options.geometryOptions,i=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",(function(){Object(s.j)(r,(function(t,e){var r=Object(f.a)(n,0===e?"left-axes-view":"right-axes-view");if(!t.color){var a=r.getGroupScales(),c=Object(s.s)(a,[0,"values","length"],1),l=i.slice(o,o+c).concat(0===e?[]:i);r.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),o+=c}})),n.render(!0)})),t}function P(t){var e,n,r=t.chart,i=t.options,o=i.xAxis,a=i.yAxis,s=i.xField,u=i.yField;return Object(l.g)(((e={})[s]=o,e[u[0]]=a[0],e))(Object(c.c)({},t,{chart:Object(f.a)(r,"left-axes-view")})),Object(l.g)(((n={})[s]=o,n[u[1]]=a[1],n))(Object(c.c)({},t,{chart:Object(f.a)(r,"right-axes-view")})),t}function A(t){var e=t.chart,n=t.options,i=Object(f.a)(e,"left-axes-view"),o=Object(f.a)(e,"right-axes-view"),a=n.xField,c=n.yField,s=n.xAxis,l=n.yAxis;return e.axis(a,!1),e.axis(c[0],!1),e.axis(c[1],!1),i.axis(a,s),i.axis(c[0],b(l[0],r.Left)),o.axis(a,!1),o.axis(c[1],b(l[1],r.Right)),t}function I(t){var e=t.chart,n=t.options.tooltip,r=Object(f.a)(e,"left-axes-view"),i=Object(f.a)(e,"right-axes-view");return e.tooltip(n),r.tooltip({shared:!0}),i.tooltip({shared:!0}),t}function F(t){var e=t.chart;return Object(l.c)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view")})),Object(l.c)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view")})),t}function T(t){var e=t.chart,n=t.options.annotations,r=Object(s.s)(n,[0]),i=Object(s.s)(n,[1]);return Object(l.b)(r)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view"),options:{annotations:r}})),Object(l.b)(i)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view"),options:{annotations:i}})),t}function L(t){var e=t.chart;return Object(l.k)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view")})),Object(l.k)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view")})),Object(l.k)(t),t}function N(t){var e=t.chart;return Object(l.a)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view")})),Object(l.a)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view")})),t}function D(t){var e=t.chart,n=t.options.yAxis;return Object(l.e)(Object(c.c)({},t,{chart:Object(f.a)(e,"left-axes-view"),options:{yAxis:n[0]}})),Object(l.e)(Object(c.c)({},t,{chart:Object(f.a)(e,"right-axes-view"),options:{yAxis:n[1]}})),t}function B(t){var e=t.chart,n=t.options,r=n.legend,i=n.geometryOptions,o=n.yField,a=n.data,l=Object(f.a)(e,"left-axes-view"),u=Object(f.a)(e,"right-axes-view");if(!1===r)e.legend(!1);else if(Object(s.O)(r)&&!0===r.custom)e.legend(r);else{var h=Object(s.s)(i,[0,"legend"],r),d=Object(s.s)(i,[1,"legend"],r);e.once("beforepaint",(function(){var t=a[0].length?O({view:l,geometryOption:i[0],yField:o[0],legend:h}):[],n=a[1].length?O({view:u,geometryOption:i[1],yField:o[1],legend:d}):[];e.legend(Object(c.c)({},r,{custom:!0,items:t.concat(n)}))})),i[0].seriesField&&l.legend(i[0].seriesField,h),i[1].seriesField&&u.legend(i[1].seriesField,d),e.on("legend-item:click",(function(t){var n=Object(s.s)(t,"gEvent.delegateObject",{});if(n&&n.item){var r=n.item,i=r.value,a=r.isGeometry,c=r.viewId;if(a){if(Object(s.n)(o,(function(t){return t===i}))>-1){var l=Object(s.s)(Object(f.a)(e,c),"geometries");Object(s.j)(l,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var u=Object(s.s)(e.getController("legend"),"option.items",[]);Object(s.j)(e.views,(function(t){var n=t.getGroupScales();Object(s.j)(n,(function(e){e.values&&e.values.indexOf(i)>-1&&t.filter(e.field,(function(t){return!Object(s.m)(u,(function(e){return e.value===t})).unchecked}))})),e.render(!0)}))}}}))}return t}function R(t){var e=t.chart,n=t.options.slider,r=Object(f.a)(e,"left-axes-view"),i=Object(f.a)(e,"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;Object(s.H)(n,r)||C(i,n)})),e.once("afterpaint",(function(){if(!Object(s.D)(n)){var t=n.start,e=n.end;(t||e)&&C(i,[t,e])}}))),t}function _(t){return Object(c.f)(S,E,L,M,P,A,D,I,F,T,N,k,B,R)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}Object(o.b)(e,t),e.prototype.getDefaultOptions=function(){return Object(c.c)({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return _}}(a.b)},2303:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return D})),n.d(e,"Circle",(function(){return B})),n.d(e,"Base",(function(){return p}));var r={};n.r(r),n.d(r,"getDefault",(function(){return y})),n.d(r,"ellipsisHead",(function(){return m})),n.d(r,"ellipsisTail",(function(){return b})),n.d(r,"ellipsisMiddle",(function(){return x}));var i={};n.r(i),n.d(i,"getDefault",(function(){return E})),n.d(i,"reserveFirst",(function(){return M})),n.d(i,"reserveLast",(function(){return k})),n.d(i,"reserveBoth",(function(){return P})),n.d(i,"equidistance",(function(){return A})),n.d(i,"equidistanceWithReverseBoth",(function(){return I}));var o={};n.r(o),n.d(o,"getDefault",(function(){return T})),n.d(o,"fixedAngle",(function(){return L})),n.d(o,"unfixedAngle",(function(){return N}));var a={};n.r(a),n.d(a,"autoHide",(function(){return i})),n.d(a,"autoRotate",(function(){return o})),n.d(a,"autoEllipsis",(function(){return r}));var c=n(825),s=n(916),l=n(579),u=n(913),f=n(1139),h=n(2251),d=n(1004),p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.a)({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke:d.a.lineColor}},tickLine:{style:{lineWidth:1,stroke:d.a.lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:d.a.lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:d.a.textColor,fontFamily:d.a.fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:d.a.textColor,textBaseline:"middle",fontFamily:d.a.fontFamily,textAlign:"center"},iconStyle:{fill:d.a.descriptionIconFill,stroke:d.a.descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:d.a.uncheckedColor}}},optimize:{enable:!0,threshold:400}},theme:{}})},e.prototype.renderInner=function(t){this.get("line")&&this.drawLine(t),this.drawTicks(t),this.get("title")&&this.drawTitle(t)},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("ticks")},e.prototype.setItems=function(t){this.update({ticks:t})},e.prototype.updateItem=function(t,e){Object(l.db)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("label-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n,this.updateTickStates(t)},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("tickStates"),n=[];return Object(l.j)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(l.j)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(l.l)(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this.getSideVector(e,t);return{x:t.x+n[0],y:t.y+n[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(l.N)(t[0],0)?e="center":t[0]>0?e="start":t[0]<0&&(e="end"),e},e.prototype.getTextBaseline=function(t){var e;return Object(l.N)(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:Object(l.db)({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],r=this.get("tickLine"),i=r.alignTick,o=r.length,a=1;return t.length>=2&&(a=t[1].value-t[0].value),Object(l.j)(t,(function(t){var r=t.point;i||(r=e.getTickPoint(t.value-a/2));var c=e.getSidePoint(r,o);n.push({startPoint:r,tickValue:t.value,endPoint:c,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 o=0;o<i-1;o++)for(var a=t[o],c=t[o+1],s=0;s<r;s++){var l=(s+1)/(r+1),u=(1-l)*a.tickValue+l*c.tickValue,f=this.getTickPoint(u),h=this.getSidePoint(f,n.length);e.push({startPoint:f,endPoint:h,tickValue:u,id:"sub-"+a.id+"-"+s})}return e},e.prototype.getTickLineAttrs=function(t,e,n,r){var i=this.get(e).style,o={points:[t.startPoint,t.endPoint]},a=Object(l.s)(this.get("theme"),["tickLine","style"],{});i=Object(l.I)(i)?Object(l.db)({},a,i(o,n,r)):i;var s=t.startPoint,u=t.endPoint;return Object(c.a)({x1:s.x,y1:s.y,x2:u.x,y2:u.y},i)},e.prototype.drawTick=function(t,e,n,r,i){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,r,i)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),r=this.get("subTickLine"),i=this.getTickLineItems(n),o=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),a=this.get("tickLine");if(Object(l.j)(i,(function(n,r){if(a.displayWithLabel){var c=e.getElementId("label-"+n.tickId);t.findById(c)&&e.drawTick(n,o,"tickLine",r,i)}else e.drawTick(n,o,"tickLine",r,i)})),r){var c=this.getSubTickLineItems(i);Object(l.j)(c,(function(t,n){e.drawTick(t,o,"subTickLine",n,c)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(l.j)(e,(function(e){e.point=t.getTickPoint(e.value),Object(l.K)(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(l.j)(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=Object(l.mb)(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,o=r.offsetX,a=r.offsetY,c=r.rotate,s=r.formatter,u=this.getSidePoint(t.point,i),h=this.getSideVector(i,u),d=s?s(t.name,t,e):t.name,p=r.style;p=Object(l.I)(p)?Object(l.s)(this.get("theme"),["label","style"],{}):p;var g=Object(l.db)({x:u.x+o,y:u.y+a,text:d,textAlign:this.getTextAnchor(h),textBaseline:this.getTextBaseline(h)},p);return c&&(g.matrix=Object(f.e)(u,c)),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")});Object(l.j)(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(),o=Object(l.s)(this.get("theme"),["label","style"],{}),a=this.get("label"),c=a.style,s=a.formatter;if(Object(l.I)(c)){var u=i.map((function(t){return Object(l.s)(t.get("delegateObject"),"tick")}));Object(l.j)(i,(function(t,e){var n=t.get("delegateObject").tick,r=s?s(n.name,n,e):n.name,i=Object(l.db)({},o,c(r,e,u));t.attr(i)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,r=t.offset,i=t.spacing,o=void 0===i?0:i,a=t.autoRotate,c=e.fontSize,u=.5;"start"===n?u=0:"end"===n&&(u=1);var h=this.getTickPoint(u),d=this.getSidePoint(h,r||o+c/2),p=Object(l.db)({x:d.x,y:d.y,text:t.text},e),g=t.rotate,v=g;if(Object(l.K)(g)&&a){var y=this.getAxisVector(h);v=s.a.angleTo(y,[1,0],!0)}if(v){var m=Object(f.e)(d,v);p.matrix=m}return p},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")}),i=e.getBBox(),o=i.maxX,a=i.maxY,s=i.height,l=this.get("title").iconStyle,u=s/2,f=u/6,h=o+4,d=a-s/2,p=[h+u,d-u],g=p[0],v=p[1],y=[g+u,v+u],m=y[0],b=y[1],x=[g,b+u],O=x[0],j=x[1],w=[h,v+u],C=w[0],S=w[1],E=[h+u,d-s/4],M=E[0],k=E[1],P=[M,k+f],A=P[0],I=P[1],F=[A,I+f],T=F[0],L=F[1],N=[T,L+3*u/4],D=N[0],B=N[1];this.addShape(r,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(c.a)({path:[["M",g,v],["A",u,u,0,0,1,m,b],["A",u,u,0,0,1,O,j],["A",u,u,0,0,1,C,S],["A",u,u,0,0,1,g,v],["M",M,k],["L",A,I],["M",T,L],["L",D,B]],lineWidth:f,matrix:n},l)}),this.addShape(r,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:h,y:d-s/2,width:s,height:s,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 o=Object(h.a)(t,"label",n);o&&i.attr(o)}var a=this.getElementId("tickline-"+t.id),c=e.findById(a);if(c){var s=Object(h.a)(t,"tickLine",n);s&&c.attr(s)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),r=this.get("label"),i=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(i){var c=Object(h.a)(t,"label",n);c&&i.attr(c)}if(a){var s=Object(h.a)(t,"tickLine",n);s&&a.attr(s)}}else i&&i.attr(r.style),a&&a.attr(o.style)},e}(u.a),g=n(1698);function v(t,e,n,r){var i=e.getChildren(),o=!1;return Object(l.j)(i,(function(e){var i=Object(g.a)(t,e,n,r);o=o||i})),o}function y(){return b}function m(t,e,n){return v(t,e,n,"head")}function b(t,e,n){return v(t,e,n,"tail")}function x(t,e,n){return v(t,e,n,"middle")}var O=n(918);function j(t){return(function(t){var e=t.attr("matrix");return e&&1!==e[0]}(t)?Object(f.d)(t.attr("matrix")):0)%360}function w(t,e,n,r){var i=!1,o=j(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),c=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var s=Math.abs(Math.cos(o));i=Object(O.i)(s,0,Math.PI/180)?c.width+r>a:c.height/s+r>a}else{s=Math.abs(Math.sin(o));i=Object(O.i)(s,0,Math.PI/180)?c.width+r>a:c.height/s+r>a}return i}function C(t,e,n,r){var i=(null===r||void 0===r?void 0:r.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var c=o.length,s=o[0],l=1;l<c;l++){var u=o[l];u.getBBox();w(t,s,u,i)?(u.hide(),a=!0):s=u}return a}function S(t,e,n){var r=(null===n||void 0===n?void 0:n.minGap)||0,i=e.getChildren().slice();if(i.length<2)return!1;var o=!1,a=i[0],c=a.getBBox(),s=i[1],l=i.length,u=j(a),f=t?Math.abs(s.attr("y")-a.attr("y")):Math.abs(s.attr("x")-a.attr("x")),h=0;if(t){var d=Math.abs(Math.cos(u));if(Object(O.i)(d,0,Math.PI/180))h=(Object(g.b)(i)+r)/f;else h=(c.height/d+r)/f}else{d=Math.abs(Math.sin(u));if(Object(O.i)(d,0,Math.PI/180))h=(Object(g.b)(i)+r)/f;else h=(c.height/d+r)/f}if(h>1){h=Math.ceil(h);for(var p=0;p<l;p++)p%h!==0&&(i[p].hide(),o=!0)}return o}function E(){return A}function M(t,e,n,r){return C(t,e,!1,r)}function k(t,e,n,r){return C(t,e,!0,r)}function P(t,e,n,r){var i=(null===r||void 0===r?void 0:r.minGap)||0,o=e.getChildren().slice();if(o.length<=2)return!1;for(var a=!1,c=o.length,s=o[0],l=o[c-1],u=s,f=1;f<c-1;f++){var h=o[f];h.getBBox();w(t,u,h,i)?(h.hide(),a=!0):u=h}return w(t,u,l,i)&&(u.hide(),a=!0),a}function A(t,e,n,r){var i=S(t,e,r);return C(t,e,!1)&&(i=!0),i}function I(t,e,n,r){var i=e.getChildren().slice(),o=S(t,e,r);if(i.length>2){var a=i[0],c=i[i.length-1];a.get("visible")||(a.show(),C(t,e,!1,r)&&(o=!0)),c.get("visible")||(c.show(),C(t,e,!0,r)&&(o=!0))}return o}function F(t,e,n,r){var i=e.getChildren();if(!i.length)return!1;if(!t&&i.length<2)return!1;var o=Object(g.b)(i),a=!1;t?a=!!n&&o>n:a=o>Math.abs(i[1].attr("x")-i[0].attr("x"));a&&function(t,e){Object(l.j)(t,(function(t){var n=t.attr("x"),r=t.attr("y"),i=Object(f.e)({x:n,y:r},e);t.attr("matrix",i)}))}(i,r(n,o));return a}function T(){return L}function L(t,e,n,r){return F(t,e,n,(function(){return Object(l.M)(r)?r:t?d.a.verticalAxisRotate:d.a.horizontalAxisRotate}))}function N(t,e,n){return F(t,e,n,(function(e,n){if(!e)return t?d.a.verticalAxisRotate:d.a.horizontalAxisRotate;if(t)return-Math.acos(e/n);var r=0;return(e>n||(r=Math.asin(e/n))>Math.PI/4)&&(r=Math.PI/4),r}))}var D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.a)({},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),o=Math.min(e.y,n.y,r.y),a=Math.max(e.x,n.x,r.maxX),c=Math.max(e.y,n.y,r.maxY);return{x:i,y:o,minX:i,minY:o,maxX:a,maxY:c,width:a-i,height:c-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(l.N)(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(l.N)(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=s.c.normalize([0,0],e),r=this.get("verticalFactor"),i=[n[1],-1*n[0]];return s.c.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"),o=this.get("title"),a=this.get("verticalLimitLength"),c=i.offset,s=a,u=0,f=0;o&&(u=o.style.fontSize,f=o.spacing),s&&(s=s-c-f-u);var h=this.get("overlapOrder");if(Object(l.j)(h,(function(n){i[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,i[n],t,s)})),o&&Object(l.K)(o.offset)){var d=t.getCanvasBBox(),p=n?d.width:d.height;o.offset=c+p+f+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l.K)(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=this.isVertical(),c=!1,s=a[t];if(!0===e){this.get("label");c=s.getDefault()(o,n,r)}else if(Object(l.I)(e))c=e(o,n,r);else if(Object(l.O)(e)){var u=e;s[u.type]&&(c=s[u.type](o,n,r,u.cfg))}else s[e]&&(c=s[e](o,n,r));if("autoRotate"===t){if(c){var f=n.getChildren(),h=this.get("verticalFactor");Object(l.j)(f,(function(t){if("center"===t.attr("textAlign")){var e=h>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var d=n.getChildren().slice(0);Object(l.j)(d,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(p),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(c.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(c.a)(Object(c.a)({},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,o=this.get("startAngle"),a=this.get("endAngle"),c=[];if(Math.abs(a-o)===2*Math.PI)c=[["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 s=this.getCirclePoint(o),l=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,f=o>a?0:1;c=[["M",e,n],["L",s.x,s.y],["A",r,i,0,u,f,l.x,l.y],["L",e,n]]}return c},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"),o=s.c.length(r);return s.c.scale(r,r,i*t/o),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||Object(l.K)(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),r=this.get("title"),i=this.get("verticalLimitLength"),o=n.offset,a=i,c=0,s=0;r&&(c=r.style.fontSize,s=r.spacing),a&&(a=a-o-s-c);var u=this.get("overlapOrder");if(Object(l.j)(u,(function(r){n[r]&&e.canProcessOverlap(r)&&e.autoProcessOverlap(r,n[r],t,a)})),r&&Object(l.K)(r.offset)){var f=t.getCanvasBBox().height;r.offset=o+f+s+c/2}},e.prototype.autoProcessOverlap=function(t,e,n,r){var i=this,o=!1,c=a[t];if(r>0)if(!0===e)o=c.getDefault()(!1,n,r);else if(Object(l.I)(e))o=e(!1,n,r);else if(Object(l.O)(e)){var s=e;c[s.type]&&(o=c[s.type](!1,n,r,s.cfg))}else c[e]&&(o=c[e](!1,n,r));if("autoRotate"===t){if(o){var u=n.getChildren(),f=this.get("verticalFactor");Object(l.j)(u,(function(t){if("center"===t.attr("textAlign")){var e=f>0?"end":"start";t.attr("textAlign",e)}}))}}else if("autoHide"===t){var h=n.getChildren().slice(0);Object(l.j)(h,(function(t){t.get("visible")||(i.get("isRegister")&&i.unregisterElement(t),t.remove())}))}},e}(p)},2304:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Circle",(function(){return h})),n.d(e,"Base",(function(){return u})),n.d(e,"Html",(function(){return v}));var r,i=n(825),o=n(918),a=n(579),c=n(913),s=n(1139),l=n(1004),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l.a.lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l.a.textColor,textAlign:"center",textBaseline:"middle",fontFamily:l.a.fontFamily}},textBackground:{padding:5,style:{stroke:l.a.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(!Object(a.K)(o)){var c=this.getTextPoint(),l=null;if(r){var u=this.getRotateAngle();l=Object(s.e)(c,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(i.a)(Object(i.a)(Object(i.a)({},c),{text:o,matrix:l}),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:Object(i.a)({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(),c=Object(o.c)(r.padding),s=r.style;this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(i.a)({x:a.x-c[3],y:a.y-c[0],width:a.width+c[1]+c[3],height:a.height+c[0]+c[2],matrix:n.attr("matrix")},s)}).toBack()}},e}(c.a),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},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,a=r.offset;return Object(o.f)(e,n,i,a)},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}(u),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},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,a=r.radius,c=r.startAngle,s=r.endAngle,l="start"===e?c:s,u=this.getRotateAngle()-Math.PI,f=Object(o.e)(i,a,l),h=Math.cos(u)*n,d=Math.sin(u)*n;return{x:f.x+h,y:f.y+d}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,r=t.startAngle,i=t.endAngle,a=null;if(i-r===2*Math.PI){var c=e.x,s=e.y;a=[["M",c,s-n],["A",n,n,0,1,1,c,s+n],["A",n,n,0,1,1,c,s-n],["Z"]]}else{var l=Object(o.e)(e,n,r),u=Object(o.e)(e,n,i),f=Math.abs(i-r)>Math.PI?1:0,h=r>i?0:1;a=[["M",l.x,l.y],["A",n,n,0,f,h,u.x,u.y]]}return a},e}(u),d=n(1185),p=n(1676),g=((r={})["g2-crosshair"]={position:"relative"},r["g2-crosshair-line"]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},r["g2-crosshair-text"]={position:"absolute",color:l.a.textColor,fontFamily:l.a.fontFamily},r),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="g2-crosshair"></div>',crosshairTpl:'<div class="g2-crosshair-line"></div>',textTpl:'<span class="g2-crosshair-text">{content}</span>',domStyles:null,containerClassName:"g2-crosshair",defaultStyles:g,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=Object(d.b)(e);t.appendChild(n),this.applyStyle("g2-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 Object(o.f)(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=Object(a.pb)(this.get("textTpl"),t);e=Object(d.b)(i),r.appendChild(e),this.applyStyle("g2-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)?Object(d.e)(t,{width:"1px",height:Object(o.l)(Math.abs(n.y-e.y))}):Object(d.e)(t,{height:"1px",width:Object(o.l)(Math.abs(n.x-e.x))}),Object(d.e)(t,{top:Object(o.l)(i),left:Object(o.l)(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}Object(d.e)(t,{top:Object(o.l)(r.y),left:Object(o.l)(r.x)})}},e.prototype.updateInner=function(e){Object(a.y)(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(p.a)},2305:function(t,e,n){"use strict";n.d(e,"a",(function(){return O}));var r=n(825),i=n(579),o=n(913),a={opacity:0},c={stroke:"#C5C5C5",strokeOpacity:.85},s={fill:"#CACED4",opacity:.85},l=n(1411),u=n(1410);function f(t){return function(t){return Object(i.W)(t,(function(t,e){return[0===e?"M":"L",t[0],t[1]]}))}(t)}function h(t,e,n,r){void 0===r&&(r=!0);var o=new u.b({values:t}),a=new u.a({values:Object(i.W)(t,(function(t,e){return e}))}),c=Object(i.W)(t,(function(t,r){return[a.scale(r)*e,n-o.scale(t)*n]}));return r?function(t){if(t.length<=2)return f(t);var e=[];Object(i.j)(t,(function(t){Object(i.H)(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(l.a)(e,!1),r=Object(i.z)(t),o=r[0],a=r[1];return n.unshift(["M",o,a]),n}(c):f(c)}function d(t,e,n,i){var o=Object(r.d)(t),a=function(t,e){var n=new u.b({values:t}),r=n.max<0?n.max:Math.max(0,n.min);return e-n.scale(r)*e}(i,n);return o.push(["L",e,a]),o.push(["L",0,a]),o.push(["Z"]),o}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:a,lineStyle:c,areaStyle:s})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,o=e.data,a=e.smooth,c=e.isArea,s=e.backgroundStyle,l=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.a)({x:0,y:0,width:n,height:i},s)});var f=h(o,n,i,a);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(r.a)({path:f},l)}),c){var p=d(f,n,i,o);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(r.a)({path:p},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(o.a),g={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"handler",x:0,y:0,width:10,height:24,style:g})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,i=e.style,o=i.fill,a=i.stroke,c=i.radius,s=i.opacity,l=i.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:r,fill:o,stroke:a,radius:c,opacity:s,cursor:l}});var u=1/3*n,f=2/3*n,h=1/4*r,d=3/4*r;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:h,x2:u,y2:d,stroke:a,cursor:l}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:f,y1:h,x2:f,y2:d,stroke:a,cursor:l}})},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}(o.a),y={fill:"#416180",opacity:.05},m={fill:"#5B8FF9",opacity:.15,cursor:"move"},b={width:10,height:24},x={textBaseline:"middle",fill:"#000",opacity:.45},O=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=Object(i.s)(r,"touches.0.pageX",r.pageX),e.prevY=Object(i.s)(r,"touches.0.pageY",r.pageY);var o=e.getContainerDOM();o.addEventListener("mousemove",e.onMouseMove),o.addEventListener("mouseup",e.onMouseUp),o.addEventListener("mouseleave",e.onMouseUp),o.addEventListener("touchmove",e.onMouseMove),o.addEventListener("touchend",e.onMouseUp),o.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 o=Object(i.s)(t,"touches.0.pageX",t.pageX),a=Object(i.s)(t,"touches.0.pageY",t.pageY),c=o-e.prevX,s=e.adjustOffsetRange(c/n);e.updateStartEnd(s),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=o,e.prevY=a,e.draw(),e.emit("sliderchange",[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 Object(r.b)(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"),o=Object(i.c)(n,t,e),a=Object(i.c)(r,t,e);this.get("isInit")||n===o&&r===a||this.setValue([o,a])},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(Object(i.C)(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(i.c)(t[0],e.min,e.max),end:Object(i.c)(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 Object(r.a)(Object(r.a)({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:y,foregroundStyle:m,handlerStyle:b,textStyle:x}})},e.prototype.update=function(e){var n=e.start,o=e.end,a=Object(r.a)({},e);Object(i.K)(n)||(a.start=Object(i.c)(n,0,1)),Object(i.K)(o)||(a.end=Object(i.c)(o,0,1)),t.prototype.update.call(this,a),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",Object(i.c)(this.get("start"),0,1)),this.set("end",Object(i.c)(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),o=e.height,a=e.trendCfg,c=void 0===a?{}:a,s=e.minText,l=e.maxText,u=e.backgroundStyle,f=void 0===u?{}:u,h=e.foregroundStyle,d=void 0===h?{}:h,y=e.textStyle,m=void 0===y?{}:y,b=Object(i.h)({},g,this.cfg.handlerStyle);Object(i.mb)(Object(i.s)(c,"data"))&&(this.trend=this.addComponent(t,Object(r.a)({component:p,id:this.getElementId("trend"),x:0,y:0,width:n,height:o},c))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(r.a)({x:0,y:0,width:n,height:o},f)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(r.a)({y:o/2,textAlign:"right",text:s,silent:!1},m)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(r.a)({y:o/2,textAlign:"left",text:l,silent:!1},m)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(r.a)({y:0,height:o},d)});var x=Object(i.s)(b,"width",10),O=Object(i.s)(b,"height",24);this.minHandler=this.addComponent(t,{component:v,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(o-O)/2,width:x,height:O,cursor:"ew-resize",style:b}),this.maxHandler=this.addComponent(t,{component:v,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(o-O)/2,width:x,height:O,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,o=r.start,a=r.end,c=r.width,s=r.minText,l=r.maxText,u=r.handlerStyle,f=r.height,h=o*c,d=a*c;this.trend&&(this.trend.update({width:c,height:f}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",h),t.attr("width",d-h);var p=Object(i.s)(u,"width",10);e.attr("text",s),n.attr("text",l);var g=this._dodgeText([h,d],e,n),v=g[0],y=g[1];this.minHandler&&(this.minHandler.update({x:h-p/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(i.j)(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:d-p/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(i.j)(y,(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,o=1-n;return Math.min(o,Math.max(i,t));case"maxHandler":i=0-r,o=1-r;return Math.min(o,Math.max(i,t));case"foreground":i=0-n,o=1-r;return Math.min(o,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,o,a=this.cfg,c=a.handlerStyle,s=a.width,l=Object(i.s)(c,"width",10),u=t[0],f=t[1],h=!1;u>f&&(u=(r=[f,u])[0],f=r[1],e=(o=[n,e])[0],n=o[1],h=!0);var d=e.getBBox(),p=n.getBBox(),g=d.width>u-2?{x:u+l/2+2,textAlign:"left"}:{x:u-l/2-2,textAlign:"right"},v=p.width>s-f-2?{x:f-l/2-2,textAlign:"right"}:{x:f+l/2+2,textAlign:"left"};return h?[v,g]:[g,v]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o.a)},2306:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(618),s=n(818),l=n(1407),u={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function f(t,e){return function(t,e){var n=function(){var t=[256,256],e=p,n=v,r=g,i=y,o=m,a=j,c=Math.random,s=[],l=1/0,u=d,f=g,h=C,M={};function k(e,n,r){for(var i,o,s,l,u,f=n.x,h=n.y,d=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=a(t),g=c()<.5?1:-1,v=-g;(i=p(v+=g))&&(o=~~i[0],s=~~i[1],!(Math.min(Math.abs(o),Math.abs(s))>=d));)if(n.x=f+o,n.y=h+s,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!r||!x(n,e,t[0]))&&(!r||(u=r,(l=n).x+l.x1>u[0].x&&l.x+l.x0<u[1].x&&l.y+l.y1>u[0].y&&l.y+l.y0<u[1].y))){for(var y=n.sprite,m=n.width>>5,b=t[0]>>5,O=n.x-(m<<4),j=127&O,w=32-j,C=n.y1-n.y0,S=void 0,E=(n.y+n.y0)*b+(O>>5),M=0;M<C;M++){S=0;for(var k=0;k<=m;k++)e[E+k]|=S<<w|(k<m?(S=y[M*m+k])>>>j:0);E+=b}return delete n.sprite,!0}return!1}return M.start=function(){var a=t[0],d=t[1],p=function(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=2048/e,t.height=2048/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}(h()),g=M.board?M.board:w((t[0]>>5)*t[1]),v=s.length,y=[],m=s.map((function(t,a,c){return t.text=u.call(this,t,a,c),t.font=e.call(this,t,a,c),t.style=f.call(this,t,a,c),t.weight=r.call(this,t,a,c),t.rotate=i.call(this,t,a,c),t.size=~~n.call(this,t,a,c),t.padding=o.call(this,t,a,c),t})).sort((function(t,e){return e.size-t.size})),x=-1,j=M.board?[{x:0,y:0},{x:a,y:d}]:null;return function(){var e=Date.now();for(;Date.now()-e<l&&++x<v;){var n=m[x];n.x=a*(c()+.5)>>1,n.y=d*(c()+.5)>>1,b(p,n,m,x),n.hasText&&k(g,n,j)&&(y.push(n),j?M.hasImage||O(j,n):j=[{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)}M._tags=y,M._bounds=j}(),M},M.createMask=function(e){var n=document.createElement("canvas"),r=t[0],i=t[1];if(r&&i){var o=r>>5,a=w((r>>5)*i);n.width=r,n.height=i;var c=n.getContext("2d");c.drawImage(e,0,0,e.width,e.height,0,0,r,i);for(var s=c.getImageData(0,0,r,i).data,l=0;l<i;l++)for(var u=0;u<r;u++){var f=o*l+(u>>5),h=l*r+u<<2,d=s[h]>=250&&s[h+1]>=250&&s[h+2]>=250?1<<31-u%32:0;a[f]|=d}M.board=a,M.hasImage=!0}},M.timeInterval=function(t){l=null==t?1/0:t},M.words=function(t){s=t},M.size=function(e){t=[+e[0],+e[1]]},M.font=function(t){e=S(t)},M.fontWeight=function(t){r=S(t)},M.rotate=function(t){i=S(t)},M.spiral=function(t){a=E[t]||t},M.fontSize=function(t){n=S(t)},M.padding=function(t){o=S(t)},M.random=function(t){c=S(t)},M}();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(o.K)(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var r=n.start()._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var i=e.size,a=i[0],c=i[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:a,y:c,opacity:0}),r}(t,e=Object(o.b)({},u,e))}var h=Math.PI/180;function d(t){return t.text}function p(){return"serif"}function g(){return"normal"}function v(t){return t.value}function y(){return 90*~~(2*Math.random())}function m(){return 1}function b(t,e,n,r){if(!e.sprite){var i=t.context,o=t.ratio;i.clearRect(0,0,2048/o,2048/o);var a=0,c=0,s=0,l=n.length;for(--r;++r<l;){e=n[r],i.save(),i.font=e.style+" "+e.weight+" "+~~((e.size+1)/o)+"px "+e.font;var u=i.measureText(e.text+"m").width*o,f=e.size<<1;if(e.rotate){var d=Math.sin(e.rotate*h),p=Math.cos(e.rotate*h),g=u*p,v=u*d,y=f*p,m=f*d;u=Math.max(Math.abs(g+m),Math.abs(g-m))+31>>5<<5,f=~~Math.max(Math.abs(v+y),Math.abs(v-y))}else u=u+31>>5<<5;if(f>s&&(s=f),a+u>=2048&&(a=0,c+=s,s=0),c+f>=2048)break;i.translate((a+(u>>1))/o,(c+(f>>1))/o),e.rotate&&i.rotate(e.rotate*h),i.fillText(e.text,0,0),e.padding&&(i.lineWidth=2*e.padding,i.strokeText(e.text,0,0)),i.restore(),e.width=u,e.height=f,e.xoff=a,e.yoff=c,e.x1=u>>1,e.y1=f>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}for(var b=i.getImageData(0,0,2048/o,2048/o).data,x=[];--r>=0;)if((e=n[r]).hasText){for(var O=(u=e.width)>>5,j=(f=e.y1-e.y0,0);j<f*O;j++)x[j]=0;if(null==(a=e.xoff))return;c=e.yoff;for(var w=0,C=-1,S=0;S<f;S++){for(j=0;j<u;j++){var E=O*S+(j>>5),M=b[2048*(c+S)+(a+j)<<2]?1<<31-j%32:0;x[E]|=M,w|=M}w?C=S:(e.y0++,f--,S--,c++)}e.y1=e.y0+C,e.sprite=x.slice(0,(e.y1-e.y0)*O)}}}function x(t,e,n){n>>=5;for(var r,i=t.sprite,o=t.width>>5,a=t.x-(o<<4),c=127&a,s=32-c,l=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),f=0;f<l;f++){r=0;for(var h=0;h<=o;h++)if((r<<s|(h<o?(r=i[f*o+h])>>>c:0))&e[u+h])return!0;u+=n}return!1}function O(t,e){var n=t[0],r=t[1];e.x+e.x0<n.x&&(n.x=e.x+e.x0),e.y+e.y0<n.y&&(n.y=e.y+e.y0),e.x+e.x1>r.x&&(r.x=e.x+e.x1),e.y+e.y1>r.y&&(r.y=e.y+e.y1)}function j(t){var e=t[0]/t[1];return function(t){return[e*(t*=.1)*Math.cos(t),t*Math.sin(t)]}}function w(t){for(var e=[],n=-1;++n<t;)e[n]=0;return e}function C(){return document.createElement("canvas")}function S(t){return Object(o.I)(t)?t:function(){return t}}var E={archimedean:j,rectangular:function(t){var e=4*t[0]/t[1],n=0,r=0;return function(t){var i=t<0?-1:1;switch(Math.sqrt(1+4*i*t)-i&3){case 0:n+=e;break;case 1:r+=4;break;case 2:n-=e;break;default:r-=4}return[n,r]}}};function M(t){var e=t.options,n=t.chart,i=n,a=i.width,c=i.height,s=i.padding,l=i.appendPadding,u=i.ele,h=e.data,d=e.imageMask,p=e.wordField,g=e.weightField,v=e.colorField,y=e.wordStyle,m=e.timeInterval,b=e.random,x=e.spiral,O=e.autoFit,j=void 0===O||O,w=e.placementStrategy;if(!h||!h.length)return[];var C,E=y.fontFamily,M=y.fontWeight,F=y.padding,T=y.fontSize,L=function(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}(h,g),N=[(C=L,Math.min.apply(Math,C)),I(L)],D=h.map((function(t){return{text:t[p],value:t[g],color:t[v],datum:t}})),B={imageMask:d,font:E,fontSize:P(T,N),fontWeight:M,size:k({width:a,height:c,padding:s,appendPadding:l,autoFit:j,container:u}),padding:F,timeInterval:m,random:b,spiral:x,rotate:A(e)};if(Object(o.I)(w)){var R=D.map((function(t,e,i){return Object(r.a)(Object(r.a)(Object(r.a)({},t),{hasText:!!t.text,font:S(B.font)(t,e,i),weight:S(B.fontWeight)(t,e,i),rotate:S(B.rotate)(t,e,i),size:S(B.fontSize)(t,e,i),style:"normal"}),w.call(n,t,e,i))}));return R.push({text:"",value:0,x:0,y:0,opacity:0}),R.push({text:"",value:0,x:B.size[0],y:B.size[1],opacity:0}),R}return f(D,B)}function k(t){var e=t.width,n=t.height,r=t.container,i=t.autoFit,o=t.padding,a=t.appendPadding;if(i){var s=Object(c.k)(r);e=s.width,n=s.height}e=e||400,n=n||400;var u=function(t){var e=Object(l.b)(t.padding),n=Object(l.b)(t.appendPadding),r=e[0]+n[0],i=e[1]+n[1],o=e[2]+n[2],a=e[3]+n[3];return[r,i,o,a]}({padding:o,appendPadding:a}),f=u[0],h=u[1],d=u[2];return[e-(u[3]+h),n-(f+d)]}function P(t,e){if(Object(o.I)(t))return t;if(Object(o.C)(t)){var n=t[0],r=t[1];if(!e)return function(){return(r+n)/2};var i=e[0],a=e[1];return a===i?function(){return(r+n)/2}:function(t){var e=t.value;return(r-n)/(a-i)*(e-i)+n}}return function(){return t}}function A(t){var e=function(t){var e=t.wordStyle.rotationSteps;e<1&&(Object(c.r)(c.a.WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1);return{rotation:t.wordStyle.rotation,rotationSteps:e}}(t),n=e.rotation,r=e.rotationSteps;if(!Object(o.C)(n))return n;var i=n[0],a=n[1],s=1===r?0:(a-i)/(r-1);return function(){return a===i?a:Math.floor(Math.random()*r)*s}}function I(t){return Math.max.apply(Math,t)}var F=Object(c.c)({},i.b.getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value","color"],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(t){var e=t.chart,n=t.options,i=n.colorField,a=n.color,l=M(t);e.data(l);var u=Object(c.c)({},t,{options:{xField:"x",yField:"y",seriesField:i&&"color",rawFields:Object(o.I)(a)&&Object(r.d)(Object(o.s)(n,"rawFields",[]),["datum"]),point:{color:a,shape:"word-cloud"}}});return Object(s.e)(u).ext.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function L(t){return Object(c.f)(Object(a.g)({x:{nice:!1},y:{nice:!1}}))(t)}function N(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField;return!1===r?e.legend(!1):i&&e.legend("color",r),t}function D(t){Object(c.f)(T,L,a.l,N,a.c,a.a,a.k,a.j)(t)}var B=n(761);function R(t){return{fontSize:t.data.size,text:t.data.text,textAlign:"center",fontFamily:t.data.font,fontWeight:t.data.weight,fill:t.color||t.defaultStyle.stroke,textBaseline:"alphabetic"}}Object(B.p)("point","word-cloud",{draw:function(t,e){var n=t.x,i=t.y,o=e.addShape("text",{attrs:Object(r.a)(Object(r.a)({},R(t)),{x:n,y:i})}),a=t.data.rotate;return"number"===typeof a&&B.h.rotate(o,a*Math.PI/180),o}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return F},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(M({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,s=function(i){e.options=Object(r.a)(Object(r.a)({},e.options),{imageMask:i||null}),t.prototype.render.call(e),n()};(a=i,new Promise((function(t,e){if(a instanceof HTMLImageElement)t(a);else{if(Object(o.Q)(a)){var n=new Image;return n.crossOrigin="anonymous",n.src=a,n.onload=function(){t(n)},void(n.onerror=function(){Object(c.r)(c.a.ERROR,!1,"image %s load failed !!!",a),e()})}Object(c.r)(c.a.WARN,void 0===a,"The type of imageMask option must be String or HTMLImageElement."),e()}}))).then(s).catch(s)}))},e.prototype.getSchemaAdaptor=function(){return D},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))}}(i.b)},2307:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(1683),a=n(579),c=n(818),s=n(800),l=n(618),u=n(1407),f=["path",o.c,o.b,o.a,"name","depth","height"],h=Object(l.c)({},i.b.getDefaultOptions(),{innerRadius:0,radius:.85,hierarchyConfig:{field:"value"},tooltip:{shared:!0,showMarkers:!1,offset:20,showTitle:!1},legend:!1,sunburstStyle:{lineWidth:.5,stroke:"#FFF"},drilldown:{enabled:!0}}),d=n(1714),p=n(2286),g=n(1717),v={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function y(t,e){var n,r=(e=Object(a.b)({},v,e)).as;if(!Object(a.C)(r)||2!==r.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(o.e)(e)}catch(l){console.warn(l)}var i=function(t){return p.a().size(e.size).round(e.round).padding(e.padding)(g.c(t).sum((function(t){return Object(a.mb)(t.children)?e.ignoreParentValue?0:t[n]-Object(a.ib)(t.children,(function(t,e){return t+e[n]}),0):t[n]})).sort(e.sort))}(t),c=r[0],s=r[1];return i.each((function(t){var e,n;t[c]=[t.x0,t.x1,t.x1,t.x0],t[s]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===r.indexOf(e)&&delete t[e]}))})),Object(o.d)(i)}var m=n(2288);function b(t){var e=t.data,n=t.colorField,i=t.rawFields,o=t.hierarchyConfig,c=void 0===o?{}:o,s=c.activeDepth,u={partition:y,treemap:m.a},f=t.seriesField,h=t.type||"partition",p=u[h](e,Object(r.a)(Object(r.a)({field:f||"value"},Object(a.gb)(c,["activeDepth"])),{type:"hierarchy."+h,as:["x","y"]})),g=[];return p.forEach((function(t){var e,o,a,u,h,p;if(0===t.depth)return null;if(s>0&&t.depth>s)return null;for(var v=t.data.name,y=Object(r.a)({},t);y.depth>1;)v=(null===(o=y.parent.data)||void 0===o?void 0:o.name)+" / "+v,y=y.parent;var m=Object(r.a)(Object(r.a)(Object(r.a)({},Object(l.t)(t.data,Object(r.d)(i||[],[c.field]))),((e={}).path=v,e["ancestor-node"]=y.data.name,e)),t);f&&(m[f]=t.data[f]||(null===(u=null===(a=t.parent)||void 0===a?void 0:a.data)||void 0===u?void 0:u[f])),n&&(m[n]=t.data[n]||(null===(p=null===(h=t.parent)||void 0===h?void 0:h.data)||void 0===p?void 0:p[n])),m.ext=c,m[d.b]={hierarchyConfig:c,colorField:n,rawFields:i},g.push(m)})),g}function x(t){var e,n=t.chart,i=t.options,o=i.color,s=i.colorField,u=void 0===s?"ancestor-node":s,h=i.sunburstStyle,d=i.rawFields,p=void 0===d?[]:d,g=b(i);return n.data(g),h&&(e=function(t){return Object(l.c)({},{fillOpacity:Math.pow(.85,t.depth)},Object(a.I)(h)?h(t):h)}),Object(c.f)(Object(l.c)({},t,{options:{xField:"x",yField:"y",seriesField:u,rawFields:Object(a.ub)(Object(r.d)(f,p)),polygon:{color:o,style:e}}})),t}function O(t){return t.chart.axis(!1),t}function j(t){var e=t.chart,n=t.options.label,i=Object(l.d)(e,"polygon");if(n){var o=n.fields,a=void 0===o?["name"]:o,c=n.callback,s=Object(r.c)(n,["fields","callback"]);i.label({fields:a,callback:c,cfg:Object(l.A)(s)})}else i.label(!1);return t}function w(t){var e=t.chart,n=t.options,r=n.innerRadius,i=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:r,radius:i}});return o&&a.reflect(o),t}function C(t){var e,n=t.options,r=n.hierarchyConfig,i=n.meta;return Object(l.f)(Object(s.g)({},((e={}).value=Object(a.s)(i,Object(a.s)(r,["field"],"value")),e)))(t)}function S(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var i=n;Object(a.s)(n,"fields")||(i=Object(l.c)({},{customItems:function(t){return t.map((function(t){var n=Object(a.s)(e.getOptions(),"scales"),i=Object(a.s)(n,["path","formatter"],(function(t){return t})),o=Object(a.s)(n,["value","formatter"],(function(t){return t}));return Object(r.a)(Object(r.a)({},t),{name:i(t.data.path),value:o(t.data.value)})}))}},i)),e.tooltip(i)}return t}function E(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?Object(l.c)({},t,{interactions:Object(r.d)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:b}}])}):t}function M(t){var e=t.chart,n=t.options,r=n.drilldown;return Object(s.c)({chart:e,options:E(n)}),(null===r||void 0===r?void 0:r.enabled)&&(e.appendPadding=Object(u.a)(e.appendPadding,Object(a.s)(r,["breadCrumb","position"]))),t}function k(t){return Object(l.f)(s.k,Object(s.f)("sunburstStyle"),x,O,C,s.d,w,S,j,M,s.a,Object(s.b)())(t)}n(2206),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return h},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return k},e.SUNBURST_ANCESTOR_FIELD="ancestor-node",e.SUNBURST_PATH_FIELD="path",e.NODE_ANCESTORS_FIELD=o.b}(i.b)},2308:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(2193),c=n(800),s=n(618),l=n(1407),u=n(2289),f=n(1717),h=n(1683),d={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};var p=n(1714);function g(t){var e=t.data,n=t.hierarchyConfig,i=t.rawFields,a=void 0===i?[]:i,c=t.enableDrillDown,l=function(t,e){var n,r=(e=Object(o.b)({},d,e)).as;if(!Object(o.C)(r)||3!==r.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=Object(h.e)(e)}catch(l){console.warn(l)}var i=function(t){return u.a().size(e.size).padding(e.padding)(f.c(t).sum((function(t){return t[n]})).sort(e.sort))}(t),a=r[0],c=r[1],s=r[2];return i.each((function(t){t[a]=t.x,t[c]=t.y,t[s]=t.r})),Object(h.d)(i)}(e,Object(r.a)(Object(r.a)({},n),{field:"value",as:["x","y","r"]})),g=[];return l.forEach((function(t){for(var e,i=t.data.name,o=Object(r.a)({},t);o.depth>1;)i=(null===(e=o.parent.data)||void 0===e?void 0:e.name)+" / "+i,o=o.parent;if(c&&t.depth>2)return null;var l=Object(s.c)({},t.data,Object(r.a)(Object(r.a)(Object(r.a)({},Object(s.t)(t.data,a)),{path:i}),t));l.ext=n,l[p.b]={hierarchyConfig:n,rawFields:a,enableDrillDown:c},g.push(l)})),g}function v(t,e,n){var r=Object(l.c)([t,e]),i=r[0],o=r[1],a=r[2],c=r[3],s=n.width-(c+o),u=n.height-(i+a),f=Math.min(s,u),h=(s-f)/2,d=(u-f)/2;return{finalPadding:[i+d,o+h,a+d,c+h],finalSize:f<0?0:f}}var y=["x","y","r","name","value","path","depth"],m={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 b(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return Object(s.c)({options:{size:function(t){return t.r*n}}},t)}function x(t){var e=t.options,n=t.chart,r=n.viewBBox,i=e.padding,a=e.appendPadding,c=e.drilldown,s=a;if(null===c||void 0===c?void 0:c.enabled){var u=Object(l.a)(n.appendPadding,Object(o.s)(c,["breadCrumb","position"]));s=Object(l.c)([u,a])}var f=v(i,s,r).finalPadding;return n.padding=f,n.appendPadding=0,t}function O(t){var e=t.chart,n=t.options,i=e.padding,o=e.appendPadding,c=n.color,l=n.colorField,u=n.pointStyle,f=n.hierarchyConfig,h=n.sizeField,d=n.rawFields,p=void 0===d?[]:d,m=n.drilldown,b=g({data:n.data,hierarchyConfig:f,enableDrillDown:null===m||void 0===m?void 0:m.enabled,rawFields:p});e.data(b);var x=v(i,o,e.viewBBox).finalSize,O=function(t){return t.r*x};return h&&(O=function(t){return t[h]*x}),Object(a.a)(Object(s.c)({},t,{options:{xField:"x",yField:"y",seriesField:l,sizeField:h,rawFields:Object(r.d)(y,p),point:{color:c,style:u,shape:"circle",size:O}}})),t}function j(t){return Object(s.f)(Object(c.g)({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function w(t){var e=t.chart,n=t.options.tooltip;if(!1===n)e.tooltip(!1);else{var i=n;Object(o.s)(n,"fields")||(i=Object(s.c)({},{customItems:function(t){return t.map((function(t){var n=Object(o.s)(e.getOptions(),"scales"),i=Object(o.s)(n,["name","formatter"],(function(t){return t})),a=Object(o.s)(n,["value","formatter"],(function(t){return t}));return Object(r.a)(Object(r.a)({},t),{name:i(t.data.name),value:a(t.data.value)})}))}},i)),e.tooltip(i)}return t}function C(t){return t.chart.axis(!1),t}function S(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?Object(s.c)({},t,{interactions:Object(r.d)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:g,enableDrillDown:!0}}])}):t}function E(t){var e=t.chart,n=t.options;return Object(c.c)({chart:e,options:S(n)}),t}function M(t){return Object(s.f)(Object(c.f)("pointStyle"),b,x,c.k,j,O,C,c.d,w,E,c.a,Object(c.b)())(t)}n(2206),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return m},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return M},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(i.b)},2309:function(t,e,n){"use strict";n.d(e,"a",(function(){return T}));var r=n(579),i=n(800),o=n(1677),a=n(618),c=n(2269),s=n(613),l=n(1016),u=n(964),f=n(1409);function h(t,e,n){var i=n.yField,o=n.maxSize,a=n.minSize,c=Object(r.s)(Object(r.Z)(e,i),[i]),s=Object(r.M)(o)?o:1,l=Object(r.M)(a)?a:0;return Object(r.W)(t,(function(e,n){var o=(e[i]||0)/c;return e[f.d]=o,e[f.c]=(s-l)*o+l,e[f.b]=[Object(r.s)(t,[n-1,i]),e[i]],e}))}function d(t){return function(e){var n=e.chart,i=e.options.conversionTag,o=n.getOptions().data;if(i){var a=i.formatter;o.forEach((function(e,c){if(!(c<=0||Number.isNaN(e[f.c]))){var l=t(e,c,o,{top:!0,text:{content:Object(r.I)(a)?a(e,o):a,offsetX:i.offsetX,offsetY:i.offsetY,position:"end",autoRotate:!1,style:Object(s.a)({textAlign:"start",textBaseline:"middle"},i.style)}});n.annotation().line(l)}}))}return e}}function p(t){var e=t.chart,n=t.options,r=n.data,i=void 0===r?[]:r,o=h(i,i,{yField:n.yField,maxSize:n.maxSize,minSize:n.minSize});return e.data(o),t}function g(t){var e=t.chart,n=t.options,i=n.xField,o=n.yField,c=n.color,s=n.tooltip,h=n.label,d=n.shape,p=void 0===d?"funnel":d,g=n.funnelStyle,v=n.state,y=Object(l.a)(s,[i,o]),m=y.fields,b=y.formatter;return Object(u.a)({chart:e,options:{type:"interval",xField:i,yField:f.c,colorField:i,tooltipFields:Object(r.C)(m)&&m.concat([f.d,f.b]),mapping:{shape:p,tooltip:b,color:c,style:g},label:h,state:v}}),Object(a.d)(t.chart,"interval").adjust("symmetric"),t}function v(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[]:[["transpose"],["scale",1,-1]]}),t}function y(t){var e=t.options.maxSize;return d((function(t,n,r,i){var o=e-(e-t[f.c])/2;return Object(s.a)(Object(s.a)({},i),{start:[n-.5,o],end:[n-.5,o+.05]})}))(t),t}function m(t){return Object(a.f)(p,g,v,y)(t)}function b(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function x(t){var e=t.chart,n=t.options,i=n.data,o=n.xField,c=n.yField,s=n.color,d=n.compareField,p=n.isTransposed,g=n.tooltip,v=n.maxSize,y=n.minSize,m=n.label,b=n.funnelStyle,x=n.state,O=n.showFacetTitle;return e.facet("mirror",{fields:[d],transpose:!p,padding:p?0:[32,0,0,0],showTitle:O,eachView:function(t,e){var n=p?e.rowIndex:e.columnIndex;p||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var O=h(e.data,i,{yField:c,maxSize:v,minSize:y});t.data(O);var j=Object(l.a)(g,[o,c,d]),w=j.fields,C=j.formatter,S=p?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Object(u.a)({chart:t,options:{type:"interval",xField:o,yField:f.c,colorField:o,tooltipFields:Object(r.C)(w)&&w.concat([f.d,f.b]),mapping:{shape:"funnel",tooltip:C,color:s,style:b},label:!1!==m&&Object(a.c)({},S,m),state:x}})}}),t}function O(t){var e=t.chart,n=t.options,r=n.conversionTag,i=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){d((function(t,n,o,c){var s=0===e?-1:1;return Object(a.c)({},c,{start:[n-.5,t[f.c]],end:[n-.5,t[f.c]+.05],text:i?{style:{textAlign:"start"}}:{offsetX:!1!==r?s*r.offsetX:0,style:{textAlign:0===e?"end":"start"}}})}))(Object(a.c)({},{chart:t,options:n}))}))})),t}function j(t){var e,n=t.chart,r=t.options,i=r.data,o=void 0===i?[]:i,a=r.yField;return n.data(o),n.scale(((e={})[a]={sync:!0},e)),t}function w(t){var e=t.chart,n=t.options,r=n.seriesField,i=n.isTransposed,o=n.showFacetTitle;return e.facet("rect",{fields:[r],padding:[i?0:32,10,0,10],showTitle:o,eachView:function(e,n){m(Object(a.c)({},t,{chart:e,options:{data:n.data}}))}}),t}function C(t){var e=t.chart,n=t.options,i=n.data,o=void 0===i?[]:i,a=n.yField,c=Object(r.ib)(o,(function(t,e){return t+(e[a]||0)}),0),s=Object(r.Z)(o,a)[a],l=Object(r.W)(o,(function(t,e){var n=[],i=[];if(t[f.e]=(t[a]||0)/c,e){var l=o[e-1][f.f],u=o[e-1][f.g];n[0]=l[3],i[0]=u[3],n[1]=l[2],i[1]=u[2]}else n[0]=-.5,i[0]=1,n[1]=.5,i[1]=1;return i[2]=i[1]-t[f.e],n[2]=(i[2]+1)/4,i[3]=i[2],n[3]=-n[2],t[f.f]=n,t[f.g]=i,t[f.d]=(t[a]||0)/s,t[f.b]=[Object(r.s)(o,[e-1,a]),t[a]],t}));return e.data(l),t}function S(t){var e=t.chart,n=t.options,i=n.xField,o=n.yField,a=n.color,c=n.tooltip,s=n.label,h=n.funnelStyle,d=n.state,p=Object(l.a)(c,[i,o]),g=p.fields,v=p.formatter;return Object(u.a)({chart:e,options:{type:"polygon",xField:f.f,yField:f.g,colorField:i,tooltipFields:Object(r.C)(g)&&g.concat([f.d,f.b]),label:s,state:d,mapping:{tooltip:v,color:a,style:h}}}),t}function E(t){var e=t.chart,n=t.options.isTransposed;return e.coordinate({type:"rect",actions:n?[["transpose"],["reflect","x"]]:[]}),t}function M(t){return d((function(t,e,n,r){return Object(s.a)(Object(s.a)({},r),{start:[t[f.f][1],t[f.g][1]],end:[t[f.f][1]+.05,t[f.g][1]]})}))(t),t}function k(t){var e,n=t.options,i=n.compareField,s=n.xField,l=n.yField,u=n.locale,h=n.funnelStyle,d=n.data,p=Object(o.a)(u),g={label:i?{fields:[s,l,i,f.d,f.b],formatter:function(t){return""+t[l]}}:{fields:[s,l,f.d,f.b],offset:0,position:"middle",formatter:function(t){return t[s]+" "+t[l]}},tooltip:{title:s,formatter:function(t){return{name:t[s],value:t[l]}}},conversionTag:{formatter:function(t){return p.get(["conversionTag","label"])+": "+c.a.apply(void 0,t[f.b])}}};return(i||h)&&(e=function(t){return Object(a.c)({},i&&{lineWidth:1,stroke:"#fff"},Object(r.I)(h)?h(t):h)}),Object(a.c)({options:g},t,{options:{funnelStyle:e,data:Object(r.e)(d)}})}function P(t){var e=t.options,n=e.compareField,r=e.dynamicHeight;return e.seriesField?function(t){return Object(a.f)(j,w)(t)}(t):n?function(t){return Object(a.f)(b,x,O)(t)}(t):r?function(t){return Object(a.f)(C,S,E,M)(t)}(t):m(t)}function A(t){var e,n=t.options,r=n.xAxis,o=n.yAxis,c=n.xField,s=n.yField;return Object(a.f)(Object(i.g)(((e={})[c]=r,e[s]=o,e)))(t)}function I(t){return t.chart.axis(!1),t}function F(t){var e=t.chart,n=t.options.legend;return!1===n?e.legend(!1):e.legend(n),t}function T(t){return Object(a.f)(k,P,A,I,i.l,i.c,F,i.a,i.k,Object(i.b)())(t)}},2310:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(618),c=n(800),s=n(964),l=n(1016);function u(t){var e=t.chart,n=t.options,r=n.data,i=n.type,c=n.xField,u=n.yField,f=n.colorField,h=n.sizeField,d=n.sizeRatio,p=n.shape,g=n.color,v=n.tooltip,y=n.heatmapStyle;e.data(r);var m="polygon";"density"===i&&(m="heatmap");var b=Object(l.a)(v,[c,u,f]),x=b.fields,O=b.formatter,j=1;return(d||0===d)&&(p||h?d<0||d>1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):j=d:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Object(s.a)(Object(a.c)({},t,{options:{type:m,colorField:f,tooltipFields:x,shapeField:h||"",label:void 0,mapping:{tooltip:O,shape:p&&(h?function(t){var e=r.map((function(t){return t[h]})),n=Math.min.apply(Math,e),i=Math.max.apply(Math,e);return[p,(Object(o.s)(t,h)-n)/(i-n),j]}:function(){return[p,1,j]}),color:g||f&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function f(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,s=n.yField;return Object(a.f)(Object(c.g)(((e={})[o]=r,e[s]=i,e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis(a,!1):e.axis(a,i),t}function d(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.sizeField,a=n.sizeLegend,c=!1!==r;return i&&e.legend(i,!!c&&r),o&&e.legend(o,void 0===a?r:a),c||a||e.legend(!1),t}function p(t){var e=t.chart,n=t.options,i=n.label,o=n.colorField,c=n.type,s=Object(a.d)(e,"density"===c?"heatmap":"polygon");if(i){if(o){var l=i.callback,u=Object(r.c)(i,["callback"]);s.label({fields:[o],callback:l,cfg:Object(a.A)(u)})}}else s.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}function v(t){return Object(a.f)(c.k,Object(c.f)("heatmapStyle"),f,g,u,h,d,c.l,p,Object(c.b)(),c.c,c.a,c.j)(t)}var y=Object(a.c)({},i.b.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"}}}}}),m=n(761);Object(m.p)("polygon","circle",{draw:function(t,e){var n,i,o=t.x,a=t.y,c=this.parsePoints(t.points),s=Math.abs(c[2].x-c[1].x),l=Math.abs(c[1].y-c[0].y),u=Math.min(s,l)/2,f=Number(t.shape[1]),h=Number(t.shape[2]),d=u*Math.sqrt(h)*Math.sqrt(f),p=(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:Object(r.a)(Object(r.a)(Object(r.a)({x:o,y:a,r:d},t.defaultStyle),t.style),{fill:p})})}}),Object(m.p)("polygon","square",{draw:function(t,e){var n,i,o=t.x,a=t.y,c=this.parsePoints(t.points),s=Math.abs(c[2].x-c[1].x),l=Math.abs(c[1].y-c[0].y),u=Math.min(s,l),f=Number(t.shape[1]),h=Number(t.shape[2]),d=u*Math.sqrt(h)*Math.sqrt(f),p=(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:Object(r.a)(Object(r.a)(Object(r.a)({x:o-d/2,y:a-d/2,width:d,height:d},t.defaultStyle),t.style),{fill:p})})}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return y},e.prototype.getSchemaAdaptor=function(){return v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(i.b)},2311:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(818),s=n(618),l=n(1184),u=n(2464),f=n.n(u);function h(t,e){var n=t.length*e;if(0===t.length)throw new Error("quantile requires at least one data point.");if(e<0||e>1)throw new Error("quantiles must be between 0 and 1");return 1===e?t[t.length-1]:0===e?t[0]:n%1!==0?t[Math.ceil(n)-1]:t.length%2===0?(t[n-1]+t[n])/2:t[n]}function d(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function p(t,e,n,r){for(n=n||0,r=r||t.length-1;r>n;){if(r-n>600){var i=r-n+1,o=e-n+1,a=Math.log(i),c=.5*Math.exp(2*a/3),s=.5*Math.sqrt(a*c*(i-c)/i);o-i/2<0&&(s*=-1),p(t,e,Math.max(n,Math.floor(e-o*c/i+s)),Math.min(r,Math.floor(e+(i-o)*c/i+s)))}var l=t[e],u=n,f=r;for(d(t,n,e),t[r]>l&&d(t,n,r);u<f;){for(d(t,u,f),u++,f--;t[u]<l;)u++;for(;t[f]>l;)f--}t[n]===l?d(t,n,f):d(t,++f,r),f<=e&&(n=f+1),e<=f&&(r=f-1)}}function g(t,e){var n=t.slice();if(Array.isArray(e)){!function(t,e){for(var n=[0],r=0;r<e.length;r++)n.push(m(t.length,e[r]));n.push(t.length-1),n.sort(y);var i=[0,n.length-1];for(;i.length;){var o=Math.ceil(i.pop()),a=Math.floor(i.pop());if(!(o-a<=1)){var c=Math.floor((a+o)/2);v(t,n[c],Math.floor(n[a]),Math.ceil(n[o])),i.push(a,c,c,o)}}}(n,e);for(var r=[],i=0;i<e.length;i++)r[i]=h(n,e[i]);return r}return v(n,m(n.length,e),0,n.length-1),h(n,e)}function v(t,e,n,r){e%1===0?p(t,e,n,r):(p(t,e=Math.floor(e),n,r),p(t,e+1,e+1,r))}function y(t,e){return t-e}function m(t,e){var n=t*e;return 1===e?t-1:0===e?0:n%1!==0?Math.ceil(n)-1:t%2===0?n-.5:n}var b=function(t){return{low:Object(o.bb)(t),high:Object(o.Y)(t),q1:g(t,.25),q3:g(t,.75),median:g(t,[.5]),minMax:[Object(o.bb)(t),Object(o.Y)(t)],quantile:[g(t,.25),g(t,.75)]}},x=function(t,e){var n=f.a.create(t,e);return{violinSize:n.map((function(t){return t.y})),violinY:n.map((function(t){return t.x}))}},O=function(t){var e=t.xField,n=t.yField,i=t.seriesField,a=t.data,c=t.kde,s={min:c.min,max:c.max,size:c.sampleSize,width:c.width};if(!i){var l=Object(o.w)(a,e);return Object.keys(l).map((function(t){var e=l[t].map((function(t){return t[n]}));return Object(r.a)(Object(r.a)({x:t},x(e,s)),b(e))}))}var u=[],f=Object(o.w)(a,i);return Object.keys(f).forEach((function(t){var a=Object(o.w)(f[t],e);return Object.keys(a).forEach((function(e){var o,c=a[e].map((function(t){return t[n]}));u.push(Object(r.a)(Object(r.a)(((o={x:e})[i]=t,o),x(c,s)),b(c)))}))})),u},j=Object(s.c)({},i.b.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}}),w=["low","high","q1","q3","median"],C=[{type:"dodge",marginRatio:1/32}];function S(t){var e=t.chart,n=t.options;return e.data(O(n)),t}function E(t){var e=t.chart,n=t.options,i=n.seriesField,o=n.color,a=n.shape,s=void 0===a?"violin":a,l=n.violinStyle,u=n.tooltip,f=n.state,h=e.createView({id:"violin_view"});return Object(c.h)({chart:h,options:{xField:"x",yField:"violinY",seriesField:i||"x",sizeField:"violinSize",tooltip:Object(r.a)({fields:w},u),violin:{style:l,color:o,shape:s},state:f}}),h.geometries[0].adjust(C),t}function M(t){var e=t.chart,n=t.options,i=n.seriesField,o=n.color,a=n.tooltip,s=n.box;if(!1===s)return t;var l=e.createView({id:"min_max_view"});Object(c.c)({chart:l,options:{xField:"x",yField:"minMax",seriesField:i||"x",tooltip:Object(r.a)({fields:w},a),state:"object"===typeof s?s.state:{},interval:{color:o,size:1,style:{lineWidth:0}}}}),l.geometries[0].adjust(C);var u=e.createView({id:"quantile_view"});Object(c.c)({chart:u,options:{xField:"x",yField:"quantile",seriesField:i||"x",tooltip:Object(r.a)({fields:w},a),state:"object"===typeof s?s.state:{},interval:{color:o,size:8,style:{fillOpacity:1}}}}),u.geometries[0].adjust(C);var f=e.createView({id:"median_view"});return Object(c.e)({chart:f,options:{xField:"x",yField:"median",seriesField:i||"x",tooltip:Object(r.a)({fields:w},a),state:"object"===typeof s?s.state:{},point:{color:o,size:1,style:{fill:"white",lineWidth:0}}}}),f.geometries[0].adjust(C),u.axis(!1),l.axis(!1),f.axis(!1),f.legend(!1),l.legend(!1),u.legend(!1),t}function k(t){var e,n=t.chart,i=t.options,o=i.meta,a=i.xAxis,c=i.yAxis,u=Object(s.c)({},o,((e={}).x=Object(r.a)(Object(r.a)({sync:!0},Object(s.t)(a,l.a)),{type:"cat"}),e.violinY=Object(r.a)({sync:!0},Object(s.t)(c,l.a)),e.minMax=Object(r.a)({sync:"violinY"},Object(s.t)(c,l.a)),e.quantile=Object(r.a)({sync:"violinY"},Object(s.t)(c,l.a)),e.median=Object(r.a)({sync:"violinY"},Object(s.t)(c,l.a)),e));return n.scale(u),t}function P(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=Object(s.e)(e,"violin_view");return!1===r?o.axis("x",!1):o.axis("x",r),!1===i?o.axis("violinY",!1):o.axis("violinY",i),e.axis(!1),t}function A(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 c=i||"x",s=Object(o.gb)(r,["selected"]);a&&a.startsWith("hollow")||Object(o.s)(s,["marker","style","lineWidth"])||Object(o.lb)(s,["marker","style","lineWidth"],0),e.legend(c,s),Object(o.s)(r,"selected")&&Object(o.j)(e.views,(function(t){return t.legend(c,r)}))}return t}function I(t){var e=t.chart,n=Object(s.e)(e,"violin_view");return Object(a.b)()(Object(r.a)(Object(r.a)({},t),{chart:n})),t}function F(t){var e=t.chart,n=t.options.animation;return Object(o.j)(e.views,(function(t){"boolean"===typeof n?t.animate(n):t.animate(!0),Object(o.j)(t.geometries,(function(t){t.animate(n)}))})),t}function T(t){return Object(s.f)(a.k,S,E,M,k,a.l,P,A,a.c,I,F)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="violin",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return j},e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(O(this.options))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T}}(i.b)},2312:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(818),s=n(1677),l=n(618),u="$$yField$$",f={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 h(t,e,n,i){return function(t,e,n,i,a){var c,s=[];if(Object(o.ib)(t,(function(t,e){var a;Object(l.r)(l.a.WARN,Object(o.M)(e[n]),e[n]+" is not a valid number");var c=Object(o.S)(e[n])?null:e[n];return s.push(Object(r.a)(Object(r.a)({},e),((a={})[i]=[t,t+c],a))),t+c}),0),s.length&&a){var u=Object(o.s)(s,[[t.length-1],i,[1]]);s.push(((c={})[e]=a.label,c[n]=u,c[i]=[0,u],c))}return s}(t,e,n,u,i).map((function(e,n){var i;return Object(o.O)(e)?Object(r.a)(Object(r.a)({},e),((i={}).$$absoluteField$$=e[u][1],i.$$diffField$$=e[u][1]-e[u][0],i.$$isTotal$$=n===t.length,i)):e}))}var d=n(761);function p(t){var e=t.options,n=e.locale,r=e.total,i=Object(s.a)(n).get(["waterfall","total"]);return r&&"string"!==typeof r.label&&i&&(t.options.total.label=i),t}function g(t){var e=t.chart,n=t.options,r=n.data,i=n.xField,a=n.yField,s=n.total,f=n.leaderLine,d=n.columnWidthRatio,p=n.waterfallStyle,g=n.risingFill,v=n.fallingFill,y=n.color;e.data(h(r,i,a,s));var m=y||function(t){return Object(o.s)(t,["$$isTotal$$"])?Object(o.s)(s,["style","fill"],""):Object(o.s)(t,[u,1])-Object(o.s)(t,[u,0])>0?g:v},b=Object(l.c)({},t,{options:{xField:i,yField:u,seriesField:i,rawFields:[a,"$$diffField$$","$$isTotal$$",u],widthRatio:d,interval:{style:p,shape:"waterfall",color:m}}});return Object(c.c)(b).ext.geometry.customInfo({leaderLine:f}),t}function v(t){var e,n,r=t.options,i=r.xAxis,c=r.yAxis,s=r.xField,f=r.yField,h=r.meta,d=Object(l.c)({},{alias:f},Object(o.s)(h,f));return Object(l.f)(Object(a.g)(((e={})[s]=i,e[f]=c,e[u]=c,e),Object(l.c)({},h,((n={})[u]=d,n.$$diffField$$=d,n.$$absoluteField$$=d,n))))(t)}function y(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?(e.axis(a,!1),e.axis(u,!1)):(e.axis(a,i),e.axis(u,i)),t}function m(t){var e=t.chart,n=t.options,r=n.legend,i=n.total,a=n.risingFill,c=n.fallingFill,u=n.locale,f=Object(s.a)(u);if(!1===r)e.legend(!1);else{var h=[{name:f.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:f.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:c}}}];i&&h.push({name:i.label||"",value:"total",marker:{symbol:"square",style:Object(l.c)({},{r:5},Object(o.s)(i,"style"))}}),e.legend(Object(l.c)({},{custom:!0,position:"top",items:h},r)),e.removeInteraction("legend-filter")}return t}function b(t){var e=t.chart,n=t.options,i=n.label,o=n.labelMode,a=n.xField,c=Object(l.d)(e,"interval");if(i){var s=i.callback,u=Object(r.c)(i,["callback"]);c.label({fields:"absolute"===o?["$$absoluteField$$",a]:["$$diffField$$",a],callback:s,cfg:Object(l.A)(u)})}else c.label(!1);return t}function x(t){var e=t.chart,n=t.options,i=n.tooltip,o=n.xField,a=n.yField;if(!1!==i){e.tooltip(Object(r.a)({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},i));var c=e.geometries[0];(null===i||void 0===i?void 0:i.formatter)?c.tooltip(o+"*"+a,i.formatter):c.tooltip(a)}else e.tooltip(!1);return t}function O(t){return Object(l.f)(p,a.k,g,v,y,m,x,b,a.j,a.c,a.a,Object(a.b)())(t)}Object(d.p)("interval","waterfall",{draw:function(t,e){var n=t.customInfo,i=t.points,a=t.nextPoints,c=e.addGroup(),s=this.parsePath(function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return e.push(["L",o.x,o.y]),e.push(["z"]),e}(i)),u=function(t){return Object(l.c)({},t.defaultStyle,t.style,{fill:t.color})}(t);c.addShape("path",{attrs:Object(r.a)(Object(r.a)({},u),{path:s})});var f=Object(o.s)(n,"leaderLine");if(f&&a){var h=[["M",i[2].x,i[2].y],["L",a[0].x,a[0].y]];i[2].y===a[1].y&&(h[1]=["L",a[1].x,a[1].y]),h=this.parsePath(h),c.addShape("path",{attrs:Object(r.a)({path:h},f.style||{})})}return c}});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return f},e.prototype.changeData=function(t){var e=this.options,n=e.xField,r=e.yField,i=e.total;this.updateOption({data:t}),this.chart.changeData(h(t,n,r,i))},e.prototype.getSchemaAdaptor=function(){return O},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(i.b)},2313:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(2194),c=n(800),s=n(1408),l=n(618),u=n(1407),f=n(1714),h=n(2288);function d(t,e){if(Object(o.C)(t))return t.find((function(t){return t.type===e}))}function p(t,e){var n=d(t,e);return n&&!1!==n.enable}function g(t){var e=t.interactions,n=t.drilldown;return Object(o.s)(n,"enabled")||p(e,"treemap-drill-down")}function v(t){var e=t.data,n=t.colorField,i=t.enableDrillDown,a=t.hierarchyConfig,c=Object(h.a)(e,Object(r.a)(Object(r.a)({},a),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),s=[];return c.forEach((function(t){if(0===t.depth)return null;if(i&&1!==t.depth)return null;if(!i&&t.children)return null;var c=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),l=i&&Object(o.C)(e.path)?c.concat(e.path.slice(1)):c,u=Object.assign({},t.data,Object(r.a)({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var h=t.ancestors().find((function(t){return t.data[n]}));u[n]=null===h||void 0===h?void 0:h.data[n]}else u[n]=t.data[n];u[f.b]={hierarchyConfig:a,colorField:n,enableDrillDown:i},s.push(u)})),s}function y(t){var e=t.options.colorField;return Object(l.c)({options:{rawFields:["value"],tooltip:{fields:["name","value",e,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function m(t){var e=t.chart,n=t.options,r=n.color,i=n.colorField,o=n.rectStyle,c=n.hierarchyConfig,s=n.rawFields,u=v({data:n.data,colorField:n.colorField,enableDrillDown:g(n),hierarchyConfig:c});return e.data(u),Object(a.a)(Object(l.c)({},t,{options:{xField:"x",yField:"y",seriesField:i,rawFields:s,polygon:{color:r,style:o}}})),e.coordinate().reflect("y"),t}function b(t){return t.chart.axis(!1),t}function x(t){var e=t.drilldown,n=t.interactions,i=void 0===n?[]:n;return g(t)?Object(l.c)({},t,{interactions:Object(r.d)(i,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:v}}])}):t}function O(t){var e=t.chart,n=t.options,r=n.interactions,i=n.drilldown;Object(c.c)({chart:e,options:x(n)});var a=d(r,"view-zoom");return a&&(!1!==a.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel")),g(n)&&(e.appendPadding=Object(u.a)(e.appendPadding,Object(o.s)(i,["breadCrumb","position"]))),t}function j(t){return Object(l.f)(y,c.k,Object(s.a)("rectStyle"),m,b,c.d,c.l,O,c.a,Object(c.b)())(t)}var w={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"\u521d\u59cb",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};n(2275),n(2206),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return w},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,r=e.interactions,i=e.hierarchyConfig;this.updateOption({data:t});var o=v({data:t,colorField:n,enableDrillDown:p(r,"treemap-drill-down"),hierarchyConfig:i});this.chart.changeData(o),function(t){var e=t.interactions["drill-down"];e&&e.context.actions.find((function(t){return"drill-down-action"===t.name})).reset()}(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return j}}(i.b)},2314:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(618),a=n(800),c=n(818);function s(t){var e=t.chart,n=t.options,i=n.data,a=n.lineStyle,s=n.color,l=n.point,u=n.area;e.data(i);var f=Object(o.c)({},t,{options:{line:{style:a,color:s},point:l?Object(r.a)({color:s},l):l,area:u?Object(r.a)({color:s},u):u,label:void 0}}),h=Object(o.c)({},f,{options:{tooltip:!1}}),d=(null===l||void 0===l?void 0:l.state)||n.state,p=Object(o.c)({},f,{options:{tooltip:!1,state:d}});return Object(c.d)(f),Object(c.e)(p),Object(c.a)(h),t}function l(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,c=n.xField,s=n.yField;return Object(o.f)(Object(a.g)(((e={})[c]=r,e[s]=i,e)))(t)}function u(t){var e=t.chart,n=t.options,r=n.radius,i=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:r,startAngle:i,endAngle:o}),t}function f(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(r,i),e.axis(o,a),t}function h(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,c=Object(o.d)(e,"line");if(i){var s=i.callback,l=Object(r.c)(i,["callback"]);c.label({fields:[a],callback:s,cfg:Object(o.A)(l)})}else c.label(!1);return t}function d(t){return Object(o.f)(s,l,a.k,u,f,a.d,a.l,h,a.c,a.a,Object(a.b)())(t)}var p=n(761),g=n(579),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),i=n.shared,o=n.title,a=t.prototype.getTooltipItems.call(this,e);if(a.length>0){var c=this.view.geometries[0],s=c.dataArray,l=a[0].name,u=[];return s.forEach((function(t){t.forEach((function(t){var e=p.h.getTooltipItems(t,c)[0];if(!i&&e&&e.name===l){var n=Object(g.K)(o)?l:o;u.push(Object(r.a)(Object(r.a)({},e),{name:e.title,title:n}))}else if(i&&e){n=Object(g.K)(o)?e.name||l:o;u.push(Object(r.a)(Object(r.a)({},e),{name:e.title,title:n}))}}))})),u}return[]},e}(p.g);Object(p.m)("radar-tooltip",v);var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(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}(p.a);Object(p.l)("radar-tooltip",y),Object(p.o)("radar-tooltip",{start:[{trigger:"plot:mousemove",action:"radar-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"radar-tooltip:hide"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}Object(r.b)(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(o.c)({},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 d}}(i.b)},2315:function(t,e,n){"use strict";var r,i=n(613),o=n(732),a=n(579),c=n(800),s=n(818),l=n(618),u=n(1184),f=Object(l.c)({},o.b.getDefaultOptions(),{meta:(r={},r.$$range$$={min:0,alias:"low-q1-median-q3-high"},r),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),h=function(t,e){var n=t;if(Array.isArray(e)){var r=e[0],i=e[1],o=e[2],c=e[3],s=e[4];n=Object(a.W)(t,(function(t){return t.$$range$$=[t[r],t[i],t[o],t[c],t[s]],t}))}return n};function d(t){var e=t.chart,n=t.options,r=n.xField,i=n.yField,o=n.groupField,c=n.color,u=n.tooltip,f=n.boxStyle;e.data(h(n.data,i));var d=Object(a.C)(i)?"$$range$$":i,p=i?Object(a.C)(i)?i:[i]:[],g=u;!1!==g&&(g=Object(l.c)({},{fields:Object(a.C)(i)?i:[]},g));var v=Object(s.g)(Object(l.c)({},t,{options:{xField:r,yField:d,seriesField:o,tooltip:g,rawFields:p,label:!1,schema:{shape:"box",color:c,style:f}}})).ext;return o&&v.geometry.adjust("dodge"),t}function p(t){var e=t.chart,n=t.options,r=n.xField,o=n.data,a=n.outliersField,c=n.outliersStyle,l=n.padding,u=n.label;if(!a)return t;var f=e.createView({padding:l,id:"outliers_view"}),h=o.reduce((function(t,e){return e[a].forEach((function(n){var r;return t.push(Object(i.a)(Object(i.a)({},e),((r={})[a]=n,r)))})),t}),[]);return f.data(h),Object(s.e)({chart:f,options:{xField:r,yField:a,point:{shape:"circle",style:c},label:u}}),f.axis(!1),t}function g(t){var e,n,r=t.chart,i=t.options,o=i.meta,a=i.xAxis,c=i.yAxis,s=i.xField,f=i.yField,h=i.outliersField,d=Array.isArray(f)?"$$range$$":f,p={};if(h){(e={})[h]={sync:"$$y_outliers$$",nice:!0},e[d]={sync:"$$y_outliers$$",nice:!0},p=e}var g=Object(l.c)(p,o,((n={})[s]=Object(l.t)(a,u.a),n[d]=Object(l.t)(c,u.a),n));return r.scale(g),t}function v(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField,c=Array.isArray(a)?"$$range$$":a;return!1===r?e.axis(o,!1):e.axis(o,r),!1===i?e.axis("$$range$$",!1):e.axis(c,i),t}function y(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 m(t){return Object(l.f)(d,p,g,v,y,c.l,c.c,c.a,c.k)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}Object(i.b)(e,t),e.getDefaultOptions=function(){return f},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return"outliers_view"===t.id}));n&&n.data(t),this.chart.changeData(h(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return m}}(o.b)},2316:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(618),s=n(818);function l(t,e,n){return t.length>1?e+"_"+n:""+e}function u(t){var e=t.data,n=t.xField,r=t.measureField,i=t.rangeField,o=t.targetField,a=t.layout,c=[],s=[];e.forEach((function(t,e){var a=[t[i]].flat();a.sort((function(t,e){return t-e})),a.forEach((function(r,o){var s,l=0===o?r:a[o]-a[o-1];c.push(((s={rKey:i+"_"+o})[n]=n?t[n]:String(e),s[i]=l,s))}));var u=[t[r]].flat();u.forEach((function(i,o){var a;c.push(((a={mKey:l(u,r,o)})[n]=n?t[n]:String(e),a[r]=i,a))}));var f=[t[o]].flat();f.forEach((function(r,i){var a;c.push(((a={tKey:l(f,o,i)})[n]=n?t[n]:String(e),a[o]=r,a))})),s.push(t[i],t[r],t[o])}));var u=Math.min.apply(Math,s.flat(1/0)),f=Math.max.apply(Math,s.flat(1/0));return u=u>0?0:u,"vertical"===a&&c.reverse(),{min:u,max:f,ds:c}}function f(t){var e=t.chart,n=t.options,i=n.bulletStyle,a=n.targetField,l=n.rangeField,f=n.measureField,h=n.xField,d=n.color,p=n.layout,g=n.size,v=n.label,y=u(n),m=y.min,b=y.max,x=y.ds;e.data(x);var O=Object(c.c)({},t,{options:{xField:h,yField:l,seriesField:"rKey",isStack:!0,label:Object(o.s)(v,"range"),interval:{color:Object(o.s)(d,"range"),style:Object(o.s)(i,"range"),size:Object(o.s)(g,"range")}}});Object(s.c)(O),e.geometries[0].tooltip(!1);var j=Object(c.c)({},t,{options:{xField:h,yField:f,seriesField:"mKey",isStack:!0,label:Object(o.s)(v,"measure"),interval:{color:Object(o.s)(d,"measure"),style:Object(o.s)(i,"measure"),size:Object(o.s)(g,"measure")}}});Object(s.c)(j);var w=Object(c.c)({},t,{options:{xField:h,yField:a,seriesField:"tKey",label:Object(o.s)(v,"target"),point:{color:Object(o.s)(d,"target"),style:Object(o.s)(i,"target"),size:Object(o.I)(Object(o.s)(g,"target"))?function(t){return Object(o.s)(g,"target")(t)/2}:Object(o.s)(g,"target")/2,shape:"horizontal"===p?"line":"hyphen"}}});return Object(s.e)(w),"horizontal"===p&&e.coordinate().transpose(),Object(r.a)(Object(r.a)({},t),{ext:{data:{min:m,max:b}}})}function h(t){var e,n,r=t.options,i=t.ext,o=r.xAxis,s=r.yAxis,l=r.targetField,u=r.rangeField,f=r.measureField,h=r.xField,d=i.data;return Object(c.f)(Object(a.g)(((e={})[h]=o,e[f]=s,e),((n={})[f]={min:null===d||void 0===d?void 0:d.min,max:null===d||void 0===d?void 0:d.max,sync:!0},n[l]={sync:""+f},n[u]={sync:""+f},n)))(t)}function d(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.measureField,c=n.rangeField,s=n.targetField;return e.axis(""+c,!1),e.axis(""+s,!1),!1===r?e.axis(""+o,!1):e.axis(""+o,r),!1===i?e.axis(""+a,!1):e.axis(""+a,i),t}function p(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 g(t){var e=t.chart,n=t.options,i=n.label,a=n.measureField,s=n.targetField,l=n.rangeField,u=e.geometries,f=u[0],h=u[1],d=u[2];return Object(o.s)(i,"range")?f.label(""+l,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(c.A)(i.range))):f.label(!1),Object(o.s)(i,"measure")?h.label(""+a,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(c.A)(i.measure))):h.label(!1),Object(o.s)(i,"target")?d.label(""+s,Object(r.a)({layout:[{type:"limit-in-plot"}]},Object(c.A)(i.target))):d.label(!1),t}function v(t){Object(c.f)(f,h,d,p,a.k,g,a.l,a.c,a.a)(t)}var y=Object(c.c)({},i.b.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){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bullet",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return y},e.prototype.changeData=function(t){this.updateOption({data:t});var e=u(this.options),n=e.min,r=e.max,i=e.ds;h({options:this.options,ext:{data:{min:n,max:r}},chart:this.chart}),this.chart.changeData(i)},e.prototype.getSchemaAdaptor=function(){return v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}}(i.b)},2317:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(800),a=n(618),c=n(818),s=n(1408);function l(t,e,n){var r=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),i=r.length>0?Math.max.apply(Math,r):0,o=Math.abs(t)%360;return o?360*i/o:i}function u(t){var e=t.chart,n=t.options,r=n.barStyle,i=n.color,o=n.tooltip,s=n.colorField,l=n.type,u=n.xField,f=n.yField,h=n.data,d=Object(a.u)(h,f);e.data(d);var p=Object(a.c)({},t,{options:{tooltip:o,seriesField:s,interval:{style:r,color:i,shape:"line"===l?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(c.c)(p),"line"===l&&Object(c.e)({chart:e,options:{xField:u,yField:f,seriesField:s,point:{shape:"circle",color:i}}}),t}function f(t){var e,n=t.options,i=n.yField,c=n.xField,s=n.data,u=n.isStack,f=n.isGroup,h=n.colorField,d=n.maxAngle,p=u&&!f&&h?function(t,e,n){var i=[];return t.forEach((function(t){var o=i.find((function(n){return n[e]===t[e]}));o?o[n]+=t[n]||null:i.push(Object(r.a)({},t))})),i}(s,c,i):s,g=Object(a.u)(p,i);return Object(a.f)(Object(o.g)(((e={})[i]={min:0,max:l(d,i,g)},e)))(t)}function h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}).transpose(),t}function d(t){var e=t.chart,n=t.options,r=n.xField,i=n.xAxis;return e.axis(r,i),t}function p(t){var e=t.chart,n=t.options,i=n.label,o=n.yField,c=Object(a.d)(e,"interval");if(i){var s=i.callback,l=Object(r.c)(i,["callback"]);c.label({fields:[o],callback:s,cfg:Object(r.a)(Object(r.a)({},Object(a.A)(l)),{type:"polar"})})}else c.label(!1);return t}function g(t){return Object(a.f)(Object(s.a)("barStyle"),u,f,d,h,o.c,o.a,o.k,o.l,o.d,Object(o.b)(),p)(t)}var v=Object(a.c)({},i.b.getDefaultOptions(),{interactions:[{type:"element-active"}],legend:!1,tooltip:{showMarkers:!1},xAxis:{grid:null,tickLine:null,line:null},maxAngle:240});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radial-bar",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return v},e.prototype.changeData=function(t){this.updateOption({data:t}),f({chart:this.chart,options:this.options}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return g}}(i.b)},2318:function(t,e,n){"use strict";var r=n(613),i=n(761),o=n(732),a=n(618),c=n(579),s=n(800),l=n(818);function u(t,e,n,r,i){var o=[];e.forEach((function(e){r.forEach((function(r){var i,a=((i={})[t]=r[t],i[n]=e,i[e]=r[e],i);o.push(a)}))}));var a=Object.values(Object(c.w)(o,n)),s=a[0],l=void 0===s?[]:s,u=a[1],f=void 0===u?[]:u;return i?[l.reverse(),f.reverse()]:[l,f]}function f(t){return"vertical"!==t}function h(t,e,n){var r=e[0],i=e[1],o=r.autoPadding,a=i.autoPadding,c=t.__axisPosition,s=c.layout,l=c.position;if(f(s)&&"top"===l&&(r.autoPadding=n.instance(o.top,0,o.bottom,o.left),i.autoPadding=n.instance(a.top,o.left,a.bottom,0)),f(s)&&"bottom"===l&&(r.autoPadding=n.instance(o.top,o.right/2+5,o.bottom,o.left),i.autoPadding=n.instance(a.top,a.right,a.bottom,o.right/2+5)),!f(s)&&"bottom"===l){var u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),i.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!f(s)&&"top"===l){u=o.left>=a.left?o.left:a.left;r.autoPadding=n.instance(o.top,o.right,0,u),i.autoPadding=n.instance(0,a.right,o.top,u)}}function d(t){var e,n,r=t.chart,i=t.options,o=i.data,c=i.xField,s=i.yField,h=i.color,d=i.barStyle,p=i.widthRatio,g=i.legend,v=i.layout,y=u(c,s,"series-field-key",o,f(v));g?r.legend("series-field-key",g):!1===g&&r.legend(!1);var m=y[0],b=y[1];f(v)?((e=r.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:"first-axes-view"})).coordinate().transpose().reflect("x"),(n=r.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:"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:"first-axes-view"}),(n=r.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:"second-axes-view"})).coordinate().reflect("y"),e.data(m),n.data(b));var x=Object(a.c)({},t,{chart:e,options:{widthRatio:p,xField:c,yField:s[0],seriesField:"series-field-key",interval:{color:h,style:d}}});Object(l.c)(x);var O=Object(a.c)({},t,{chart:n,options:{xField:c,yField:s[1],seriesField:"series-field-key",widthRatio:p,interval:{color:h,style:d}}});return Object(l.c)(O),t}function p(t){var e,n,r,i=t.options,o=t.chart,l=i.xAxis,u=i.yAxis,f=i.xField,h=i.yField,d=Object(a.e)(o,"first-axes-view"),p=Object(a.e)(o,"second-axes-view"),g={};return Object(c.T)((null===i||void 0===i?void 0:i.meta)||{}).map((function(t){Object(c.s)(null===i||void 0===i?void 0:i.meta,[t,"alias"])&&(g[t]=i.meta[t].alias)})),o.scale(((e={})["series-field-key"]={sync:!0,formatter:function(t){return Object(c.s)(g,t,t)}},e)),Object(s.g)(((n={})[f]=l,n[h[0]]=u[h[0]],n))(Object(a.c)({},t,{chart:d})),Object(s.g)(((r={})[f]=l,r[h[1]]=u[h[1]],r))(Object(a.c)({},t,{chart:p})),t}function g(t){var e=t.chart,n=t.options,i=n.xAxis,o=n.yAxis,c=n.xField,s=n.yField,l=n.layout,u=Object(a.e)(e,"first-axes-view"),h=Object(a.e)(e,"second-axes-view");return"bottom"===(null===i||void 0===i?void 0:i.position)?h.axis(c,Object(r.a)(Object(r.a)({},i),{label:{formatter:function(){return""}}})):h.axis(c,!1),!1===i?u.axis(c,!1):u.axis(c,Object(r.a)({position:f(l)?"top":"bottom"},i)),!1===o?(u.axis(s[0],!1),h.axis(s[1],!1)):(u.axis(s[0],o[s[0]]),h.axis(s[1],o[s[1]])),e.__axisPosition={position:u.getOptions().axes[c].position,layout:l},t}function v(t){var e=t.chart;return Object(s.c)(Object(a.c)({},t,{chart:Object(a.e)(e,"first-axes-view")})),Object(s.c)(Object(a.c)({},t,{chart:Object(a.e)(e,"second-axes-view")})),t}function y(t){var e=t.chart,n=t.options,r=n.yField,i=n.yAxis;return Object(s.e)(Object(a.c)({},t,{chart:Object(a.e)(e,"first-axes-view"),options:{yAxis:i[r[0]]}})),Object(s.e)(Object(a.c)({},t,{chart:Object(a.e)(e,"second-axes-view"),options:{yAxis:i[r[1]]}})),t}function m(t){var e=t.chart;return Object(s.k)(Object(a.c)({},t,{chart:Object(a.e)(e,"first-axes-view")})),Object(s.k)(Object(a.c)({},t,{chart:Object(a.e)(e,"second-axes-view")})),Object(s.k)(t),t}function b(t){var e=t.chart;return Object(s.a)(Object(a.c)({},t,{chart:Object(a.e)(e,"first-axes-view")})),Object(s.a)(Object(a.c)({},t,{chart:Object(a.e)(e,"second-axes-view")})),t}function x(t){var e,n,i=this,o=t.chart,c=t.options,s=c.label,l=c.yField,u=c.layout,h=Object(a.e)(o,"first-axes-view"),d=Object(a.e)(o,"second-axes-view"),p=Object(a.d)(h,"interval"),g=Object(a.d)(d,"interval");if(s){var v=s.callback,y=Object(r.c)(s,["callback"]);y.position||(y.position="middle"),void 0===y.offset&&(y.offset=2);var m=Object(r.a)({},y);if(f(u)){var b=(null===(e=m.style)||void 0===e?void 0:e.textAlign)||("middle"===y.position?"center":"left");y.style=Object(a.c)({},y.style,{textAlign:b});m.style=Object(a.c)({},m.style,{textAlign:{left:"right",right:"left",center:"center"}[b]})}else{var x={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof y.position?y.position=x[y.position]:"function"===typeof y.position&&(y.position=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return x[y.position.apply(i,t)]});var O=(null===(n=m.style)||void 0===n?void 0:n.textBaseline)||"bottom";m.style=Object(a.c)({},m.style,{textBaseline:O});y.style=Object(a.c)({},y.style,{textBaseline:{top:"bottom",bottom:"top",middle:"middle"}[O]})}p.label({fields:[l[0]],callback:v,cfg:Object(a.A)(m)}),g.label({fields:[l[1]],callback:v,cfg:Object(a.A)(y)})}else p.label(!1),g.label(!1);return t}function O(t){return Object(a.f)(d,p,g,y,m,x,s.l,v,b)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="bidirectional-bar",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return Object(a.c)({},t.getDefaultOptions.call(this),{syncViewPadding:h})},e.prototype.changeData=function(t){void 0===t&&(t=[]),this.chart.emit(i.i.BEFORE_CHANGE_DATA,i.d.fromData(this.chart,i.i.BEFORE_CHANGE_DATA,null)),this.updateOption({data:t});var e=this.options,n=u(e.xField,e.yField,"series-field-key",t,f(e.layout)),r=n[0],o=n[1],c=Object(a.e)(this.chart,"first-axes-view"),s=Object(a.e)(this.chart,"second-axes-view");c.data(r),s.data(o),this.chart.render(!0),this.chart.emit(i.i.AFTER_CHANGE_DATA,i.d.fromData(this.chart,i.i.AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return O},e.SERIES_FIELD_KEY="series-field-key"}(o.b)},2319:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(618),s=n(818),l={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 u(t,e){var n=function(t){return Object(o.b)({},l,t)}(t),r={},i=e.nodes,a=e.links;return i.forEach((function(t){var e=n.id(t);r[e]=t})),function(t,e,n){Object(o.r)(t,(function(t,r){t.inEdges=e.filter((function(t){return""+n.target(t)===""+r})),t.outEdges=e.filter((function(t){return""+n.source(t)===""+r})),t.edges=t.outEdges.concat(t.inEdges),t.frequency=t.edges.length,t.value=0,t.inEdges.forEach((function(e){t.value+=n.targetWeight(e)})),t.outEdges.forEach((function(e){t.value+=n.sourceWeight(e)}))}))}(r,a,n),function(t,e){var n={weight:function(t,e){return e.value-t.value},frequency:function(t,e){return e.frequency-t.frequency},id:function(t,n){return(""+e.id(t)).localeCompare(""+e.id(n))}}[e.sortBy];!n&&Object(o.I)(e.sortBy)&&(n=e.sortBy),n&&t.sort(n)}(i,n),{nodes:function(t,e){var n=t.length;if(!n)throw new TypeError("Invalid nodes: it's empty!");if(e.weight){var r=e.nodePaddingRatio;if(r<0||r>=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var i=r/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-r),t.height=o})),t.forEach((function(n,r){for(var a=0,c=r-1;c>=0;c--)a+=t[c].width+2*i;var s=n.minX=i+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,f=n.maxY=u+o;n.x=[s,l,l,s],n.y=[u,u,f,f]}))}else{var c=1/n;t.forEach((function(t,n){t.x=(n+.5)*c,t.y=e.y}))}return t}(i,n),links:function(t,e,n){if(n.weight){var r={};Object(o.r)(t,(function(t,e){r[e]=t.value})),e.forEach((function(e){var i=n.source(e),o=n.target(e),a=t[i],c=t[o];if(a&&c){var s=r[i],l=n.sourceWeight(e),u=a.minX+(a.value-s)/a.value*a.width,f=u+l/a.value*a.width;r[i]-=l;var h=r[o],d=n.targetWeight(e),p=c.minX+(c.value-h)/c.value*c.width,g=p+d/c.value*c.width;r[o]-=d;var v=n.y;e.x=[u,f,p,g],e.y=[v,v,v,v],e.source=a,e.target=c}}))}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}(r,a,n)}}var f={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!Object(o.s)(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};function h(t){var e=t.options,n=e.data,i=e.sourceField,o=e.targetField,a=e.weightField,s=e.nodePaddingRatio,l=e.nodeWidthRatio,f=e.rawFields,h=void 0===f?[]:f,d=u({weight:!0,nodePaddingRatio:s,nodeWidthRatio:l},Object(c.z)(n,i,o,a)),p=d.nodes,g=d.links,v=p.map((function(t){return Object(r.a)(Object(r.a)({},Object(c.t)(t,Object(r.d)(["id","x","y","name"],h))),{isNode:!0})})),y=g.map((function(t){return Object(r.a)(Object(r.a)({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(c.t)(t,Object(r.d)(["x","y","value"],h))),{isNode:!1})}));return Object(r.a)(Object(r.a)({},t),{ext:Object(r.a)(Object(r.a)({},t.ext),{chordData:{nodesData:v,edgesData:y}})})}function d(t){var e;return t.chart.scale(((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}}).name={sync:"color"},e.source={sync:"color"},e)),t}function p(t){return t.chart.axis(!1),t}function g(t){return t.chart.legend(!1),t}function v(t){var e=t.chart,n=t.options.tooltip;return e.tooltip(n),t}function y(t){return t.chart.coordinate("polar").reflect("y"),t}function m(t){var e=t.chart,n=t.options,r=t.ext.chordData.nodesData,i=n.nodeStyle,o=n.label,a=n.tooltip,c=e.createView();return c.data(r),Object(s.f)({chart:c,options:{xField:"x",yField:"y",seriesField:"name",polygon:{style:i},label:o,tooltip:a}}),t}function b(t){var e=t.chart,n=t.options,r=t.ext.chordData.edgesData,i=n.edgeStyle,o=n.tooltip,a=e.createView();a.data(r);var c={xField:"x",yField:"y",seriesField:"source",edge:{style:i,shape:"arc"},tooltip:o};return Object(s.b)({chart:a,options:c}),t}function x(t){var e=t.chart,n=t.options.animation;return"boolean"===typeof n?e.animate(n):e.animate(!0),Object(o.j)(Object(c.j)(e),(function(t){t.animate(n)})),t}function O(t){return Object(c.f)(a.k,h,y,d,p,g,v,b,m,a.c,a.j,x)(t)}!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return f},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return O}}(i.b)},2320:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(800),c=n(1184),s=n(618),l=n(2296),u=n(964);function f(t){var e=t.chart,n=t.options,i=n.type,a=n.data,f=n.fields,h=n.eachView,d=Object(o.gb)(n,["type","data","fields","eachView","axes","meta","tooltip","coordinate","theme","legend","interactions","annotations"]);return e.data(a),e.facet(i,Object(r.a)(Object(r.a)({},d),{fields:f,eachView:function(t,e){var n=h(t,e);if(n.geometries)!function(t,e){var n=e.data,i=e.coordinate,a=e.interactions,l=e.annotations,f=e.animation,h=e.tooltip,d=e.axes,p=e.meta,g=e.geometries;n&&t.data(n);var v={};d&&Object(o.j)(d,(function(t,e){v[e]=Object(s.t)(t,c.a)})),v=Object(s.c)({},p,v),t.scale(v),i&&t.coordinate(i),!1===d?t.axis(!1):Object(o.j)(d,(function(e,n){t.axis(n,e)})),Object(o.j)(g,(function(e){var n=Object(u.a)({chart:t,options:e}).ext,r=e.adjust;r&&n.geometry.adjust(r)})),Object(o.j)(a,(function(e){!1===e.enable?t.removeInteraction(e.type):t.interaction(e.type,e.cfg)})),Object(o.j)(l,(function(e){t.annotation()[e.type](Object(r.a)({},e))})),"boolean"===typeof f?t.animate(!1):(t.animate(!0),Object(o.j)(t.geometries,(function(t){t.animate(f)}))),h?(t.interaction("tooltip"),t.tooltip(h)):!1===h&&t.removeInteraction("tooltip")}(t,n);else{var i=n,a=i.options;a.tooltip&&t.interaction("tooltip"),Object(l.a)(i.type,t,a)}}})),t}function h(t){var e=t.chart,n=t.options,i=n.axes,a=n.meta,l=n.tooltip,u=n.coordinate,f=n.theme,h=n.legend,d=n.interactions,p=n.annotations,g={};return i&&Object(o.j)(i,(function(t,e){g[e]=Object(s.t)(t,c.a)})),g=Object(s.c)({},a,g),e.scale(g),e.coordinate(u),i?Object(o.j)(i,(function(t,n){e.axis(n,t)})):e.axis(!1),l?(e.interaction("tooltip"),e.tooltip(l)):!1===l&&e.removeInteraction("tooltip"),e.legend(h),f&&e.theme(f),Object(o.j)(d,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg)})),Object(o.j)(p,(function(t){e.annotation()[t.type](Object(r.a)({},t))})),t}function d(t){return Object(s.f)(a.k,f,h)(t)}var p={title:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},rowTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}},columnTitle:{style:{fontSize:12,fill:"rgba(0,0,0,0.65)"}}};!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return p},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return d}}(i.b)},2321:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(761),i=n(613),o=n(579),a=n(2274),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getActiveElements=function(){var t=r.h.getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,i=t.item,o=n.get("field");if(o)return e.geometries[0].elements.filter((function(t){return t.getModel().data[o]===i.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 Object(o.H)(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,i){var o=n[i],c=e.geometry.coordinate;if(c.isPolar&&c.isTransposed){var s=r.h.getAngle(e.getModel(),c),l=(s.startAngle+s.endAngle)/2,u=t,f=u*Math.cos(l),h=u*Math.sin(l);e.shape.setMatrix(Object(a.a)([["t",f,h]])),o.setMatrix(Object(a.a)([["t",f,h]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(r.a),s=n(1711);var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(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 a=Object(o.s)(i,["data","data"]);if(i.type.match("legend-item")){var c=r.h.getDelegationObject(this.context),l=n.getGroupedFields()[0];if(c&&l){var u=c.item;a=n.getData().find((function(t){return t[l]===u.value}))}}if(a){var f=Object(o.s)(t,"annotations",[]),h=Object(o.s)(t,"statistic",{});n.getController("annotation").clear(!0),Object(o.j)(f,(function(t){"object"===typeof t&&n.annotation()[t.type](t)})),Object(s.b)(n,{statistic:h,plotType:"pie"},a),n.render(!0)}var d=function(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}(this.context);d&&d.shape.toFront()},e.prototype.reset=function(){var t=this.context.view;t.getController("annotation").clear(!0);var e=this.getInitialAnnotation();Object(o.j)(e,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(r.a),u="pie-statistic";Object(r.l)(u,l),Object(r.o)("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(r.l)("pie-legend",c),Object(r.o)("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},2322:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return c})),n.d(e,"Circle",(function(){return s})),n.d(e,"Line",(function(){return l}));var r=n(825),i=n(579),o=n(913),a=n(1004),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:a.a.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"),o=this.get("alternateColor"),a=null;Object(i.j)(r,(function(c,s){var l=c.id||s;if(n){var u=e.getPathStyle();u=Object(i.I)(u)?u(c,s,r):u;var f=e.getElementId("line-"+l),h=e.getGridPath(c.points);e.addShape(t,{type:"path",name:"grid-line",id:f,attrs:Object(i.db)({path:h},u)})}if(o&&s>0){var d=e.getElementId("region-"+l),p=s%2===0;if(Object(i.Q)(o))p&&e.drawAlternateRegion(d,t,a.points,c.points,o);else{var g=p?o[1]:o[0];e.drawAlternateRegion(d,t,a.points,c.points,g)}}a=c}))},e.prototype.drawAlternateRegion=function(t,e,n,r,i){var o=this.getAlternatePath(n,r);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:i}})},e}(o.a);var s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),r=this.get("closed"),o=[];if(t.length)if("circle"===n){var a=this.get("center"),c=t[0],s=function(t,e,n,r){var i=n-t,o=r-e;return Math.sqrt(i*i+o*o)}(a.x,a.y,c.x,c.y),l=e?0:1;r?(o.push(["M",a.x,a.y-s]),o.push(["A",s,s,0,0,l,a.x,a.y+s]),o.push(["A",s,s,0,0,l,a.x,a.y-s]),o.push(["Z"])):Object(i.j)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["A",s,s,0,0,l,t.x,t.y])}))}else Object(i.j)(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])})),r&&o.push(["Z"]);return o},e}(c),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(i.j)(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(c)},2323:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return g})),n.d(e,"Continuous",(function(){return v})),n.d(e,"Base",(function(){return f}));var r=n(825),i=n(579),o=n(1698),a=n(1139),c=n(2251),s=n(1004),l=n(913),u=n(918),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},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,o=e.height;return n&&(i=Math.min(i,n)),r&&(o=Math.min(o,r)),Object(u.b)(e.minX,e.minY,i,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),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(),i=Object(u.c)(e.padding),o=Object(r.a)({x:0,y:0,width:n.width+i[1]+i[3],height:n.height+i[0]+i[2]},e.style);this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o}).toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),i=n.spacing,o=n.style,a=n.text,c=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(r.a)({text:a,x:e.x,y:e.y},o)}).getBBox();this.set("currentPoint",{x:e.x,y:c.maxY+i})},e.prototype.resetDraw=function(){var t=this.get("background"),e={x:0,y:0};if(t){var n=Object(u.c)(t.padding);e.x=n[3],e.y=n[0]}this.set("currentPoint",e)},e}(l.a),h={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:s.a.textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:s.a.fontFamily,fontWeight:"normal",lineHeight:12},p={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},g=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},radio:null,items:[],itemStates:{},itemBackground:{},pageNavigator:{},defaultCfg:{title:{spacing:5,style:{fill:s.a.textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:s.a.lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},pageNavigator:h,itemName:{spacing:16,style:d},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:d,spacing:6},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:s.a.uncheckedColor},markerStyle:{fill:s.a.uncheckedColor,stroke:s.a.uncheckedColor}},inactive:{nameStyle:{fill:s.a.uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Object(i.db)(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var r=this.getElementByLocalId("item-"+t.id);if(r){var i=this.getItems().indexOf(t),o=this.createOffScreenGroup(),a=this.drawItem(t,i,this.getItemHeight(),o);this.updateElements(a,r),this.clearUpdateStatus(r)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Object(i.j)(e,(function(e,r){t[r]&&n.push(r)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(i.j)(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(i.l)(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");Object(i.j)(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),r=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),o=this.getItemHeight(),a=this.get("itemWidth"),c=this.get("itemSpacing"),s=this.get("itemMarginBottom"),l=this.get("currentPoint"),u=l.x,f=l.y,h=this.get("layout"),d=this.get("items"),p=!1,g=0,v=this.get("maxWidth"),y=this.get("maxHeight");Object(i.j)(d,(function(t,n){var i=e.drawItem(t,n,o,r),d=i.getBBox(),m=a||d.width;m>g&&(g=m),"horizontal"===h?(v&&v<l.x+m-u&&(p=!0,l.x=u,l.y+=o+s),e.moveElementTo(i,l),l.x+=m+c):(y&&y<l.y+o+s-f&&(p=!0,l.x+=g+c,l.y=f,g=0),e.moveElementTo(i,l),l.y+=o+s)})),p&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=f,this.adjustNavigation(t,r))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=(this.get("itemName")||{}).style;if(Object(i.I)(e)){var n=this.getItems();n.forEach((function(i,o){var a=Object(r.a)(Object(r.a)({},d),e(i,o,n)).fontSize;t<a&&(t=a)}))}else e&&(t=e.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,o){var a=Object(r.a)(Object(r.a)(Object(r.a)({x:0,y:o/2},e.style),{symbol:Object(i.s)(n.marker,"symbol","circle")}),Object(i.s)(n.marker,"style",{})),c=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:a}),s=c.getBBox();c.attr("x",s.width/2);var l=c.attr(),u=l.stroke,f=l.fill;return u&&c.set("isStroke",!0),f&&c.set("isFill",!0),c},e.prototype.drawItemText=function(t,e,n,o,a,c,s){var l=n.formatter,u=n.style,f=Object(r.a)(Object(r.a)({x:c,y:a/2,text:l?l(o[e],o,s):o[e]},d),Object(i.I)(u)?u(o,s,this.getItems()):u);return this.addShape(t,{type:"text",id:this.getElementId("item-"+o.id+"-"+e),name:"legend-item-"+e,attrs:f})},e.prototype.drawRadio=function(t,e,n,i,o){var a,c,s=e.style||{},l=null!==(a=s.r)&&void 0!==a?a:i/2,u=3.6*l/8,f=[o+l,i/2-l],h=f[0],d=f[1],p=[h+l,d+l],g=p[0],v=p[1],y=[h,v+l],m=y[0],b=y[1],x=[o,d+l],O=x[0],j=x[1],w=n.showRadio,C=Object(r.a)(Object(r.a)({path:[["M",h,d],["A",l,l,0,0,1,g,v],["L",g-u,v],["L",g,v],["A",l,l,0,0,1,m,b],["L",m,b-u],["L",m,b],["A",l,l,0,0,1,O,j],["L",O+u,j],["L",O,j],["A",l,l,0,0,1,h,d],["L",h,d+u]],stroke:"#000000",fill:"#ffffff"},s),{opacity:w?null!==(c=null===s||void 0===s?void 0:s.opacity)&&void 0!==c?c:.45:0}),S=this.addShape(t,{type:"path",id:this.getElementId("item-"+n.id+"-radio"),name:"legend-item-radio",attrs:C});return S.set("tip",e.tip),S},e.prototype.drawItem=function(t,e,n,a){var c="item-"+t.id,s=this.addGroup(a,{name:"legend-item-container",id:this.getElementId("item-container-"+c),delegateObject:{item:t,index:e}}),l=this.addGroup(s,{name:"legend-item",id:this.getElementId(c),delegateObject:{item:t,index:e}}),u=this.get("marker"),f=this.get("itemName"),h=this.get("itemValue"),d=this.get("itemBackground"),p=this.get("radio"),g=this.getLimitItemWidth(),v=0;if(u){var y=this.drawMarker(l,u,t,n),m=u.spacing,b=Object(i.s)(t,["marker","spacing"]);Object(i.M)(b)&&(m=b),v=y.getBBox().maxX+m}if(f){var x=this.drawItemText(l,"name",f,t,n,v,e);g&&Object(o.a)(!0,x,Object(i.c)(g-v,0,g)),v=x.getBBox().maxX+f.spacing}if(h){var O=this.drawItemText(l,"value",h,t,n,v,e);g&&(h.alignRight?(O.attr({textAlign:"right",x:g}),Object(o.a)(!0,O,Object(i.c)(g-v,0,g),"head")):Object(o.a)(!0,O,Object(i.c)(g-v,0,g))),v=O.getBBox().maxX+h.spacing}if(p&&this.drawRadio(l,p,t,n,v),d){var j=l.getBBox();this.addShape(l,{type:"rect",name:"legend-item-background",id:this.getElementId(c+"-background"),attrs:Object(r.a)({x:0,y:0,width:j.width,height:n},d.style)}).toBack()}return this.applyItemStates(t,l),l},e.prototype.adjustNavigation=function(t,e){var n=this,r=this.startX,o=this.startY,a=this.get("layout"),c=e.findAll((function(t){return"legend-item"===t.get("name")})),s=this.get("maxWidth"),l=this.get("maxHeight"),u=this.get("itemWidth"),f=this.get("itemSpacing"),d=this.getItemHeight(),p=Object(i.h)({},h,this.get("pageNavigator")),g=this.drawNavigation(t,a,"00/00",p),v=g.getBBox(),y={x:r,y:o},m=1,b=0,x=0,O=0,j=this.get("itemMarginBottom");if("horizontal"===a){var w=this.get("maxRow")||1,C=d+(1===w?0:j);this.pageHeight=C*w,Object(i.j)(c,(function(t){var e=t.getBBox(),i=u||e.width;(b&&b<y.x+i+f||s<y.x+i+f+v.width)&&(1===m&&(b=y.x+f,n.pageWidth=b,n.moveElementTo(g,{x:s-f-v.width-v.minX,y:y.y+d/2-v.height/2-v.minY})),m+=1,y.x=r,y.y+=C),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:i+f,height:d}}),y.x+=i+f}))}else{Object(i.j)(c,(function(t){var e=t.getBBox();e.width>x&&(x=e.width)})),O=x,x+=f,s&&(x=Math.min(s,x),O=Math.min(s,O)),this.pageWidth=x,this.pageHeight=l-Math.max(v.height,d+j);var S=Math.floor(this.pageHeight/(d+j));Object(i.j)(c,(function(t,e){0!==e&&e%S===0&&(m+=1,y.x+=x,y.y=o),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:d}}),y.y+=d+j})),this.totalPagesCnt=m,this.moveElementTo(g,{x:r+O/2-v.width/2-v.minX,y:l-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"===a&&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,o){var a={x:0,y:0},c=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),s=Object(i.s)(o.marker,"style",{}),l=s.size,u=void 0===l?12:l,f=Object(r.c)(s,["size"]),h=this.drawArrow(c,a,"navigation-arrow-left","horizontal"===e?"up":"left",u,f);h.on("click",this.onNavigationBack);var d=h.getBBox();a.x+=d.width+2;var p=this.addShape(c,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(r.a)({x:a.x,y:a.y+u/2,text:n,textBaseline:"middle"},Object(i.s)(o.text,"style"))}).getBBox();return a.x+=p.width+2,this.drawArrow(c,a,"navigation-arrow-right","horizontal"===e?"down":"right",u,f).on("click",this.onNavigationAfter),c},e.prototype.updateNavigation=function(t){var e=Object(i.h)({},h,this.get("pageNavigator")).marker.style,n=e.fill,r=e.opacity,o=e.inactiveFill,a=e.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,s=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),l=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),u=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right");s.attr("text",c),l.attr("opacity",1===this.currentPageIndex?a:r),l.attr("fill",1===this.currentPageIndex?o:n),l.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),u.attr("opacity",this.currentPageIndex===this.totalPagesCnt?a:r),u.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:n),u.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var f=l.getBBox().maxX+2;s.attr("x",f),f+=s.getBBox().width+2,this.updateArrowPath(u,{x:f,y:0})},e.prototype.drawArrow=function(t,e,n,i,o,c){var s=e.x,l=e.y,u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(r.a)({size:o,direction:i,path:[["M",s+o/2,l],["L",s,l+o],["L",s+o,l+o],["Z"]],cursor:"pointer"},c)});return u.attr("matrix",Object(a.e)({x:s+o/2,y:l+o/2},p[i])),u},e.prototype.updateArrowPath=function(t,e){var n=e.x,r=e.y,i=t.attr(),o=i.size,c=i.direction,s=Object(a.e)({x:n+o/2,y:r+o/2},p[c]);t.attr("path",[["M",n+o/2,r],["L",n,r+o],["L",n+o,r+o],["Z"]]),t.attr("matrix",s)},e.prototype.getCurrentNavigationMatrix=function(){var t=this.currentPageIndex,e=this.pageWidth,n=this.pageHeight,r="horizontal"===this.get("layout")?{x:0,y:n*(1-t)}:{x:e*(1-t),y:0};return Object(a.f)(r)},e.prototype.applyItemStates=function(t,e){if(this.getItemStates(t).length>0){var n=e.getChildren(),r=this.get("itemStates");Object(i.j)(n,(function(e){var n=e.get("name").split("-")[2],i=Object(c.a)(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}(f),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},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:s.a.textColor,textBaseline:"middle",fontFamily:s.a.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:s.a.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];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),r=e.getCurrentValue()[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var r=e.getValueByCanvasPoint(n.x,n.y),i=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],c=e.getRange(),s=i-r;s<0?o[0]+s>c.min?e.setValue([o[0]+s,o[1]+s]):e.setValue([c.min,c.min+a]):s>0&&(s>0&&o[1]+s<c.max?e.setValue([o[0]+s,o[1]+s]):e.setValue([c.max-a,c.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),o=n.style,a=n.align,c=n.formatter,s=this.get(t),l=this.getLabelAlignAttrs(t,a),u="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(u),name:"legend-label-"+t,attrs:Object(r.a)(Object(r.a)({x:0,y:0,text:Object(i.I)(c)?c(s):s},o),l)})},e.prototype.getLabelAlignAttrs=function(t,e){var n="center",r="middle";return this.isVertical()?(n="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",n="min"===t?"start":"end"):(n="start",r="middle"),{textAlign:n,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,r){var i=this.get("rail"),o=i.size,a=i.defaultLength,c=i.type,s=this.isVertical(),l=n,u=r;l||(l=s?o:a),u||(u=s?a:o);var f=[];return"color"===c?(f.push(["M",t,e]),f.push(["L",t+l,e]),f.push(["L",t+l,e+u]),f.push(["L",t,e+u]),f.push(["Z"])):(f.push(["M",t+l,e]),f.push(["L",t+l,e+u]),f.push(["L",t,e+u]),f.push(["Z"])),f},e.prototype.drawRail=function(t){var e=this.get("rail").style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(r.a)({path:this.getRailPath(0,0)},e)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var r=0;r<n;r++){e+=" "+r/(n-1)+":"+t[r]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t).attr("path");return Object(i.e)(e)},e.prototype.getClipTrackAttrs=function(t){var e,n,r,i,o=this.getCurrentValue(),a=o[0],c=o[1],s=this.getRailBBox(t),l=this.getPointByValue(a,t),u=this.getPointByValue(c,t);return this.isVertical()?(e=s.minX,n=l.y,r=s.width,i=u.y-l.y):(e=l.x,n=s.minY,r=u.x-l.x,i=s.height),{x:e,y:n,width:r,height:i}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),r=this.getTrackPath(t);return Object(i.db)({path:r,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),r=e.findById(n),i=r.getClip(),o=this.getClipTrackAttrs(t);i?i.attr(o):r.setClip({type:"rect",attrs:o})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),r=this.getTrackAttrs(t);n?n.attr(r):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:r})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),r=n.min,i=(t-r)/(n.max-r),o=this.getRailBBox(e),a={x:0,y:0};return this.isVertical()?(a.x=o.minX+o.width/2,a.y=Object(u.g)(o.minY,o.maxY,i)):(a.x=Object(u.g)(o.minX,o.maxX,i),a.y=o.minY+o.height/2),a},e.prototype.getRailShape=function(t){return(t||this.get("group")).findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){return this.getRailShape(t).getBBox()},e.prototype.getRailCanvasBBox=function(){return this.get("group").findById(this.getElementId("rail")).getCanvasBBox()},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,r=this.getRange(),i=r.min,o=r.max,a=this.getRailCanvasBBox(),c=this.isVertical(),s=this.get("step");n=c?(e-a.minY)/a.height:(t-a.minX)/a.width;var l=Object(u.g)(i,o,n);s&&(l=i+Math.round((l-i)/s)*s);return l>o&&(l=o),l<i&&(l=i),l},e.prototype.getCurrentValue=function(){var t=this.get("value");if(!t){var e=this.get("values");return e?[Math.max(Math.min.apply(Math,Object(r.d)(e,[this.get("max")])),this.get("min")),Math.min(Math.max.apply(Math,Object(r.d)(e,[this.get("min")])),this.get("max"))]:[this.get("min"),this.get("max")]}return t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],r=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",r)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),r=[],i=t.size,o=e.x,a=e.y,c=1.4*i,s=i/2,l=i/6;if(n){var u=o+.4*c;r.push(["M",o,a]),r.push(["L",u,a+s]),r.push(["L",o+c,a+s]),r.push(["L",o+c,a-s]),r.push(["L",u,a-s]),r.push(["Z"]),r.push(["M",u,a+l]),r.push(["L",o+c-2,a+l]),r.push(["M",u,a-l]),r.push(["L",o+c-2,a-l])}else{var f=a+.4*c;r.push(["M",o,a]),r.push(["L",o-s,f]),r.push(["L",o-s,a+c]),r.push(["L",o+s,a+c]),r.push(["L",o+s,f]),r.push(["Z"]),r.push(["M",o-l,f]),r.push(["L",o-l,a+c-2]),r.push(["M",o+l,f]),r.push(["L",o+l,a+c-2])}return r},e.prototype.resetHandler=function(t,e,n){var i=this.getPointByValue(n,t),o=this.get("handler"),a=this.getHandlerPath(o,i),c=this.getElementId("handler-"+e),s=t.findById(c),l=this.isVertical();s?s.attr("path",a):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:c,attrs:Object(r.a)(Object(r.a)({path:a},o.style),{cursor:l?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),r=t.findById(this.getElementId("label-max")),i=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,r,e,i):this.fixedHorizontal(n,r,e,i)},e.prototype.fitRailLength=function(t,e,n,r){var o=this.isVertical()?"height":"width",a=this.get("label"),c=a.align,s=a.spacing,l=this.get("max"+Object(i.wb)(o));if(l){var u=("rail"===c?n[o]+t[o]+e[o]+2*s:n[o])-l;u>0&&this.changeRailLength(r,o,n[o]-u)}},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"),o=i.align,a=i.spacing,c=n.getBBox(),s=t.getBBox(),l=e.getBBox(),u=c.height;this.fitRailLength(s,l,c,n),c=n.getBBox(),"rail"===o?(t.attr({x:r.x,y:r.y+u/2}),this.changeRailPosition(n,r.x+s.width+a,r.y),e.attr({x:r.x+s.width+c.width+2*a,y:r.y+u/2})):"top"===o?(t.attr({x:r.x,y:r.y}),e.attr({x:r.x+c.width,y:r.y}),this.changeRailPosition(n,r.x,r.y+s.height+a)):(this.changeRailPosition(n,r.x,r.y),t.attr({x:r.x,y:r.y+c.height+a}),e.attr({x:r.x+c.width,y:r.y+c.height+a}))},e.prototype.fixedVertail=function(t,e,n,r){var i=this.get("label"),o=i.align,a=i.spacing,c=n.getBBox(),s=t.getBBox(),l=e.getBBox();if(this.fitRailLength(s,l,c,n),c=n.getBBox(),"rail"===o)t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x,r.y+s.height+a),e.attr({x:r.x,y:r.y+s.height+c.height+2*a});else if("right"===o)t.attr({x:r.x+c.width+a,y:r.y}),this.changeRailPosition(n,r.x,r.y),e.attr({x:r.x+c.width+a,y:r.y+c.height});else{var u=Math.max(s.width,l.width);t.attr({x:r.x,y:r.y}),this.changeRailPosition(n,r.x+u+a,r.y),e.attr({x:r.x,y:r.y+c.height})}},e}(f)},2324:function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return d}));var r,i=n(825),o=n(1675),a=n(1185),c=n(579),s=n(1676),l=n(918),u=n(1710),f=n(1004),h=((r={})[""+u.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:f.a.fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},r[""+u.TITLE_CLASS]={marginBottom:"4px"},r[""+u.LIST_CLASS]={margin:"0px",listStyleType:"none",padding:"0px"},r[""+u.LIST_ITEM_CLASS]={listStyleType:"none",marginBottom:"4px"},r[""+u.MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},r[""+u.VALUE_CLASS]={display:"inline-block",float:"right",marginLeft:"30px"},r[""+u.CROSSHAIR_X]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r[""+u.CROSSHAIR_Y]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},r);var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i.a)(Object(i.a)({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+u.CONTAINER_CLASS+'"><div class="'+u.TITLE_CLASS+'"></div><ul class="'+u.LIST_CLASS+'"></ul></div>',itemTpl:'<li class="'+u.LIST_ITEM_CLASS+'" data-index={index}>\n <span class="'+u.MARKER_CLASS+'" style="background:{color}"></span>\n <span class="'+u.NAME_CLASS+'">{name}</span>:\n <span class="'+u.VALUE_CLASS+'">{value}</span>\n </li>',xCrosshairTpl:'<div class="'+u.CROSSHAIR_X+'"></div>',yCrosshairTpl:'<div class="'+u.CROSSHAIR_Y+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u.CONTAINER_CLASS,crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:h})},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),Object(a.e)(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(a.e)(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&&Object(a.e)(n,{display:e}),r&&Object(a.e)(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 Object(c.j)(e,(function(e){if(Object(c.y)(t,e))return n=!0,!1})),n}(e,["title","showTitle"])&&this.resetTitle(),Object(c.y)(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(),o=i.offsetX,c=i.offsetY,s=this.get("position"),u=this.get("region"),f=this.getContainer(),h=this.getBBox(),d=h.width,p=h.height;u&&(t=Object(l.k)(u));var g=function(t,e,n,r,i,o,a){var c=function(t,e,n,r,i,o){var a=t,c=e;switch(o){case"left":a=t-r-n,c=e-i/2;break;case"right":a=t+n,c=e-i/2;break;case"top":a=t-r/2,c=e-i-n;break;case"bottom":a=t-r/2,c=e+n;break;default:a=t+n,c=e-i-n}return{x:a,y:c}}(t,e,n,r,i,o);if(a){var s=function(t,e,n,r,i){return{left:t<i.x,right:t+n>i.x+i.width,top:e<i.y,bottom:e+r>i.y+i.height}}(c.x,c.y,r,i,a);"auto"===o?(s.right&&(c.x=Math.max(0,t-r-n)),s.top&&(c.y=Math.max(0,e-i-n))):"top"===o||"bottom"===o?(s.left&&(c.x=a.x),s.right&&(c.x=a.x+a.width-r),"top"===o&&s.top&&(c.y=e+n),"bottom"===o&&s.bottom&&(c.y=e-i-n)):(s.top&&(c.y=a.y),s.bottom&&(c.y=a.y+a.height-i),"left"===o&&s.left&&(c.x=t+n),"right"===o&&s.right&&(c.x=t-r-n))}return c}(e,n,r,d,p,s,t);Object(a.e)(f,{left:Object(l.l)(g.x+o),top:Object(l.l)(g.y+c)}),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=Object(c.F)(n)?n:Object(a.b)(n)}return t},e.prototype.cacheDoms=function(){var t=this.getContainer(),e=t.getElementsByClassName(u.TITLE_CLASS)[0],n=t.getElementsByClassName(u.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=Object(l.k)(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?Object(a.e)(n,{left:Object(l.l)(r),top:Object(l.l)(e.y),height:Object(l.l)(e.height)}):Object(a.e)(n,{top:Object(l.l)(r),left:Object(l.l)(e.x),width:Object(l.l)(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",r="CROSSHAIR_"+t.toUpperCase(),i=u[r],o=this.get(e),c=this.get("parent");return o||(o=Object(a.b)(this.get(n)),this.applyStyle(i,o),c.appendChild(o),this.set(e,o)),o},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(c.j)(t,(function(t){var r=o.a.toCSSGradient(t.color),s=Object(i.a)(Object(i.a)({},t),{color:r}),l=Object(c.pb)(e,s),u=Object(a.b)(l);n.appendChild(u)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(l.a)(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}(s.a)},2325:function(t,e,n){"use strict";var r=n(613),i=n(732),o=n(579),a=n(618),c=n(800),s=n(818);function l(t){var e=t.chart,n=t.options,r=n.data,i=n.sectorStyle,o=n.color;return e.data(r),Object(a.f)(s.c)(Object(a.c)({},t,{options:{marginRatio:1,interval:{style:i,color:o}}})),t}function u(t){var e=t.chart,n=t.options,i=n.label,c=n.xField,s=Object(a.d)(e,"interval");if(!1===i)s.label(!1);else if(Object(o.O)(i)){var l=i.callback,u=i.fields,f=Object(r.c)(i,["callback","fields"]),h=f.offset,d=f.layout;(void 0===h||h>=0)&&(d=d?Object(o.C)(d)?d:[d]:[],f.layout=Object(o.l)(d,(function(t){return"limit-in-shape"!==t.type})),f.layout.length||delete f.layout),s.label({fields:u||[c],callback:l,cfg:Object(a.A)(f)})}else Object(a.r)(a.a.WARN,null===i,"the label option must be an Object."),s.label({fields:[c]});return t}function f(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 h(t){var e=t.chart,n=t.options,r=n.radius,i=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:r,innerRadius:i,startAngle:o,endAngle:a}}),t}function d(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,s=n.yField;return Object(a.f)(Object(c.g)(((e={})[o]=r,e[s]=i,e)))(t)}function p(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return r?e.axis(o,r):e.axis(o,!1),i?e.axis(a,i):e.axis(a,!1),t}function g(t){Object(a.f)(Object(c.f)("sectorStyle"),l,d,u,h,p,f,c.l,c.c,c.a,c.k,Object(c.b)(),c.j)(t)}var v=Object(a.c)({},i.b.getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});!function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(r.b)(e,t),e.getDefaultOptions=function(){return v},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 g}}(i.b)},2326:function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(579),i=n(761),o=n(613),a=n(618),c={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"}}},s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(o.a)({name:"button"},c),e}return Object(o.b)(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(r.s)(t,["interactions","filter-action","cfg","buttonConfig"]);return Object(a.c)(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:Object(o.a)({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,r=this.getButtonCfg(),i=Object(a.s)(r.padding),c=t.addShape({type:"rect",name:"button-rect",attrs:Object(o.a)({x:e.x-i[3],y:e.y-i[0],width:e.width+i[1]+i[3],height:e.height+i[0]+i[2]},null===(n=r.buttonStyle)||void 0===n?void 0:n.default)});return c.toBack(),t.on("mouseenter",(function(){var t;c.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;c.attr(null===(t=r.buttonStyle)||void 0===t?void 0:t.default)})),c},e.prototype.resetPosition=function(){var t=this.context.view.getCoordinate().convert({x:1,y:1}),e=this.buttonGroup,n=e.getBBox(),r=i.h.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.a);function l(t){return t.isInPlot()}function u(t,e,n){var r=n||{},i=r.mask,o=r.isStartEnable,a=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||l,action:["brush:start",a+"-mask:start",a+"-mask:show"],arg:[null,{maskStyle:null===i||void 0===i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:l,action:[a+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:l,action:["brush:filter","brush:end",a+"-mask:end",a+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!o&&!o(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:[a+"-mask:start",a+"-mask:show"],arg:[{maskStyle:null===i||void 0===i?void 0:i.style}]},{trigger:"mask:dragstart",action:[a+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[a+"-mask:resize"]},{trigger:"mask:drag",action:[a+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[a+"-mask:end"]},{trigger:"mask:dragend",action:[a+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",a+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||l,action:["brush-x:start",a+"-mask:start",a+"-mask:show"],arg:[null,{maskStyle:null===i||void 0===i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:l,action:[a+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:l,action:["brush-x:filter","brush-x:end",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:[a+"-mask:start",a+"-mask:show"],arg:[{maskStyle:null===i||void 0===i?void 0:i.style}]},{trigger:"mask:dragstart",action:[a+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[a+"-mask:resize"]},{trigger:"mask:drag",action:[a+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[a+"-mask:end"]},{trigger:"mask:dragend",action:[a+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",a+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:o||l,action:["brush-y:start",a+"-mask:start",a+"-mask:show"],arg:[null,{maskStyle:null===i||void 0===i?void 0:i.style}]}],processing:[{trigger:"mousemove",isEnable:l,action:[a+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:l,action:["brush-y:filter","brush-y:end",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:o||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:o||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:o||function(t){return!t.isInShape("mask")},action:[a+"-mask:start",a+"-mask:show"],arg:[{maskStyle:null===i||void 0===i?void 0:i.style}]},{trigger:"mask:dragstart",action:[a+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[a+"-mask:resize"]},{trigger:"mask:drag",action:[a+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[a+"-mask:end"]},{trigger:"mask:dragend",action:[a+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",a+"-mask:end",a+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",a+"-mask:hide"]}]};default:return{}}}Object(i.l)("brush-reset-button",s,{name:"brush-reset-button"}),Object(i.o)("filter-action",{}),Object(i.o)("brush",u("brush")),Object(i.o)("brush-highlight",u("brush-highlight")),Object(i.o)("brush-x",u("brush-x","x-rect")),Object(i.o)("brush-y",u("brush-y","y-rect")),Object(i.o)("brush-x-highlight",u("brush-x-highlight","x-rect")),Object(i.o)("brush-y-highlight",u("brush-y-highlight","y-rect"));var f=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function h(t){var e=t.options,n=e.brush,i=Object(r.l)(e.interactions||[],(function(t){return-1===f.indexOf(t.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(f.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush")}var r={type:t,enable:e};n&&(r.cfg=u(t,n.type,n)),i.push(r)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&i.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Object(a.c)({},t,{options:{interactions:i}})}},2327:function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return O}));var r=n(613),i=n(579),o=n(618),a=n(818),c=n(2326),s=n(800),l=n(2463),u={exp:l.regressionExp,linear:l.regressionLinear,loess:l.regressionLoess,log:l.regressionLog,poly:l.regressionPoly,pow:l.regressionPow,quad:l.regressionQuad};var f=function(t){var e,n=t.options,r=n.xField,a=n.yField,c=n.data,s=n.regressionLine,l=s.type,f=void 0===l?"linear":l,h=s.algorithm;h?e=Object(i.C)(h)?h:h(c):e=u[f]().x((function(t){return t[r]})).y((function(t){return t[a]}))(c);return function(t,e){var n=e.view,r=e.options,i=r.xField,a=r.yField,c=n.getScaleByField(i),s=n.getScaleByField(a),l=t.map((function(t){return n.getCoordinate().convert({x:c.scale(t[0]),y:s.scale(t[1])})}));return Object(o.m)(l,!1)}(e,t)};function h(t){var e=t.data,n=void 0===e?[]:e,a=t.xField,c=t.yField;if(n.length){for(var s=!0,l=!0,u=n[0],f=void 0,h=1;h<n.length&&(f=n[h],u[a]!==f[a]&&(s=!1),u[c]!==f[c]&&(l=!1),s||l);h++)u=f;var d=[];s&&d.push(a),l&&d.push(c);var p=Object(o.t)(function(t){var e,n=t.meta,o=void 0===n?{}:n,a=t.xField,c=t.yField,s=t.data,l=s[0][a],u=s[0][c],f=l>0,h=u>0;function d(t,e){var n=Object(i.s)(o,[t]);function r(t){return Object(i.s)(n,t)}var a={};return"x"===e?(Object(i.M)(l)&&(Object(i.M)(r("min"))||(a.min=f?0:2*l),Object(i.M)(r("max"))||(a.max=f?2*l:0)),a):(Object(i.M)(u)&&(Object(i.M)(r("min"))||(a.min=h?0:2*u),Object(i.M)(r("max"))||(a.max=h?2*u:0)),a)}return Object(r.a)(Object(r.a)({},o),((e={})[a]=Object(r.a)(Object(r.a)({},o[a]),d(a,"x")),e[c]=Object(r.a)(Object(r.a)({},o[c]),d(c,"y")),e))}(t),d);return Object(o.c)({},t,{meta:p})}return t}function d(t){var e=t.chart,n=t.options,c=n.data,s=n.type,l=n.color,u=n.shape,f=n.pointStyle,h=n.shapeField,d=n.colorField,p=n.xField,g=n.yField,v=n.sizeField,y=n.size,m=n.tooltip;v&&(y||(y=[2,8]),Object(i.M)(y)&&(y=[y,y])),m&&!m.fields&&(m=Object(r.a)(Object(r.a)({},m),{fields:[p,g,d,v,h]})),e.data(c),Object(a.e)(Object(o.c)({},t,{options:{seriesField:d,point:{color:l,shape:u,size:y,style:f},tooltip:m}}));var b=Object(o.d)(e,"point");return s&&b.adjust(s),t}function p(t){var e,n=t.options,r=n.xAxis,i=n.yAxis,a=n.xField,c=n.yField,l=h(n);return Object(o.f)(Object(s.g)(((e={})[a]=r,e[c]=i,e)))(Object(o.c)({},t,{options:l}))}function g(t){var e=t.chart,n=t.options,r=n.xAxis,i=n.yAxis,o=n.xField,a=n.yField;return e.axis(o,r),e.axis(a,i),t}function v(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.shapeField,a=n.sizeField,c=n.shapeLegend,s=n.sizeLegend,l=!1!==r;return i&&e.legend(i,!!l&&r),o&&(c?e.legend(o,c):e.legend(o,!1!==c&&r)),a&&e.legend(a,s||!1),l||c||s||e.legend(!1),t}function y(t){var e=t.chart,n=t.options,i=n.label,a=n.yField,c=Object(o.d)(e,"point");if(i){var s=i.callback,l=Object(r.c)(i,["callback"]);c.label({fields:[a],callback:s,cfg:Object(o.A)(l)})}else c.label(!1);return t}function m(t){var e=t.options.quadrant,n=[];if(e){var i=e.xBaseline,a=void 0===i?0:i,c=e.yBaseline,l=void 0===c?0:c,u=e.labels,f=e.regionStyle,h=e.lineStyle,d=function(t,e){return{regionStyle:[{position:{start:[t,"max"],end:["max",e]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:["min","max"],end:[t,e]},style:{fill:"#a3dda1",opacity:.4}},{position:{start:["min",e],end:[t,"min"]},style:{fill:"#d8d0c0",opacity:.4}},{position:{start:[t,e],end:["max","min"]},style:{fill:"#a3dda1",opacity:.4}}],lineStyle:{stroke:"#9ba29a",lineWidth:1},labelStyle:[{position:["max",e],offsetX:-10,offsetY:-10,style:{textAlign:"right",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:-10,style:{textAlign:"left",textBaseline:"bottom",fontSize:14,fill:"#ccc"}},{position:["min",e],offsetX:10,offsetY:10,style:{textAlign:"left",textBaseline:"top",fontSize:14,fill:"#ccc"}},{position:["max",e],offsetX:-10,offsetY:10,style:{textAlign:"right",textBaseline:"top",fontSize:14,fill:"#ccc"}}]}}(a,l);new Array(4).join(",").split(",").forEach((function(t,e){n.push(Object(r.a)(Object(r.a)({type:"region",top:!1},d.regionStyle[e].position),{style:Object(o.c)({},d.regionStyle[e].style,null===f||void 0===f?void 0:f[e])}),Object(r.a)({type:"text",top:!0},Object(o.c)({},d.labelStyle[e],null===u||void 0===u?void 0:u[e])))})),n.push({type:"line",top:!1,start:["min",l],end:["max",l],style:Object(o.c)({},d.lineStyle,h)},{type:"line",top:!1,start:[a,"min"],end:[a,"max"],style:Object(o.c)({},d.lineStyle,h)})}return Object(o.f)(Object(s.b)(n))(t)}function b(t){var e=t.options,n=t.chart,i=e.regressionLine;if(i){var o=i.style,a=i.top,c=void 0!==a&&a,s={stroke:"#9ba29a",lineWidth:2,opacity:.5};n.annotation().shape({top:c,render:function(t,i){var a=t.addGroup({id:n.id+"-regression-line",name:"regression-line-group"}),c=f({view:i,options:e});a.addShape("path",{name:"regression-line",attrs:Object(r.a)(Object(r.a)({path:c},s),o)})}})}return t}function x(t){var e=t.chart,n=t.options.tooltip;return n?e.tooltip(n):!1===n&&e.tooltip(!1),t}function O(t){return Object(o.f)(d,p,g,v,x,y,c.a,s.i,s.h,s.c,m,s.a,s.k,b)(t)}},2328:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(825),i=n(1185),o=n(579),a=n(913),c={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)"}},s=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=o.fb,e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var r=t?Object(o.s)(n.originalEvent,"touches.0.clientX"):n.clientX,i=t?Object(o.s)(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?[Object(i.a)(t,"touchmove",e.onMouseMove),Object(i.a)(t,"touchend",e.onMouseUp),Object(i.a)(t,"touchcancel",e.onMouseUp)]:[Object(i.a)(t,"mousemove",e.onMouseMove),Object(i.a)(t,"mouseup",e.onMouseUp),Object(i.a)(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?Object(o.s)(t,"touches.0.clientX"):t.clientX,c=e.isMobile?Object(o.s)(t,"touches.0.clientY"):t.clientY,s=r?a:c,l=s-e.startPos;e.startPos=s,e.updateThumbOffset(i+l)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,r=n.isHorizontal,i=n.x,o=n.y,a=n.thumbLen,c=e.getContainerDOM().getBoundingClientRect(),s=t.clientX,l=t.clientY,u=r?s-c.left-i-a/2:l-c.top-o-a/2,f=e.validateRange(u);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 Object(r.b)(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),r=Object(o.c)(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"))*Object(o.c)(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(o.c)(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:c})},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=Object(o.h)({},c,i).default,s=a.lineCap,l=a.trackColor,u=a.size,f=Object(o.s)(this.cfg,"size",u),h=this.get("isHorizontal")?{x1:0+f/2,y1:f/2,x2:n-f/2,y2:f/2,lineWidth:f,stroke:l,lineCap:s}:{x1:f/2,y1:0+f/2,x2:f/2,y2:n-f/2,lineWidth:f,stroke:l,lineCap:s};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:h})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,r=e.thumbLen,i=e.theme,a=Object(o.h)({},c,i).default,s=a.size,l=a.lineCap,u=a.thumbColor,f=Object(o.s)(this.cfg,"size",s),h=this.get("isHorizontal")?{x1:n+f/2,y1:f/2,x2:n+r-f/2,y2:f/2,lineWidth:f,stroke:u,lineCap:l,cursor:"default"}:{x1:f/2,y1:n+f/2,x2:f/2,y2:n+r-f/2,lineWidth:f,stroke:u,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:h})},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<n&&(i=0),i},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,r=e.isHorizontal,i=e.thumbLen,o=e.size,a=this.validateRange(t);if(a!==n){var c=this.getElementByLocalId("thumb");r?c.attr({x1:a+o/2,x2:a+i-o/2}):c.attr({y1:a+o/2,y2:a+i-o/2}),this.emitOffsetChange(a)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,r=e.trackLen,i=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Object(o.c)(t/(r-i),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(a.a)},2449:function(t,e,n){},2450:function(t,e,n){"use strict";n(761);var r=n(1677),i=n(2455),o=n(2456),a=(n(2192),n(732),n(2256),n(2219),n(2224),n(2225),n(2226),n(2195));n.d(e,"Pie",(function(){return a.a}));n(2325),n(2306),n(2221),n(2314),n(2302),n(2196),n(2227),n(2228),n(2197),n(2198),n(2229),n(2310),n(2315),n(2311),n(2299),n(2201),n(1713),n(2217),n(2316),n(2307),n(2222),n(2312),n(2317),n(2318),n(2313),n(2300),n(2319),n(2308),n(2295),n(2216),n(1688),n(2320),n(618),n(818);var c=n(800);n(2297);Object(r.b)("en-US",i.a),Object(r.b)("zh-CN",o.a);c.g,c.d,c.l,c.b,c.c,c.k,c.a},2451:function(t,e,n){"use strict";var r=n(784),i=n(579),o=n(2188),a=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?o.d:r,a=e.dodgeRatio,c=void 0===a?o.b:a,s=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,f=e.xDimensionLength,h=e.groupNum,d=e.defaultSize,p=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,y=e.customOffset;return n.marginRatio=i,n.dodgeRatio=c,n.dodgeBy=s,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=f,n.groupNum=h,n.defaultSize=d,n.maxColumnWidth=p,n.minColumnWidth=g,n.columnWidthRatio=v,n.customOffset=y,n}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.e(t),n=i.q(e),r=this.dodgeBy,o=r?i.v(n,r):e;return this.cacheMap={},this.adjustDataArray=o,this.mergeData=n,this.adjustData(o,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,r){var o=this,a=this.customOffset,c=this.getDistribution(t),s=this.groupData(n,t);return i.j(s,(function(n,s){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(s),e),i.j(n,(function(e){var n=e[t],s=c[n],u=s.indexOf(r);if(i.K(a))e[t]=o.getDodgeOffset(l,u,s.length);else{var f=l.pre,h=l.next;e[t]=i.I(a)?a(e,l):(f+h)/2+a}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var r,o=this.dodgeRatio,a=this.marginRatio,c=this.intervalPadding,s=this.dodgePadding,l=t.pre,u=t.next,f=u-l;if(!i.K(c)&&i.K(s)&&c>=0)r=l+this.getIntervalOnlyOffset(n,e);else if(!i.K(s)&&i.K(c)&&s>=0){r=l+this.getDodgeOnlyOffset(n,e)}else if(!i.K(c)&&!i.K(s)&&c>=0&&s>=0){r=l+this.getIntervalAndDodgeOffset(n,e)}else{var h=f*o/n,d=a*h;r=(l+u)/2+(.5*(f-n*h-(n-1)*d)+((e+1)*h+e*d)-.5*h-.5*f)}return r},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.intervalPadding,a=n.xDimensionLegenth,c=n.groupNum,s=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,f=n.columnWidthRatio,h=o/a,d=(1-(c-1)*h)/c*s/(t-1),p=((1-h*(c-1))/c-d*(t-1))/t;if(p=i.K(f)?p:1/c/t*f,!i.K(l)){var g=l/a;p=Math.min(p,g)}if(!i.K(u)){var v=u/a;p=Math.max(p,v)}return((.5+e)*(p=r?r/a:p)+e*(d=((1-(c-1)*h)/c-t*p)/(t-1))+.5*h)*c-h/2},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,r=n.defaultSize,o=n.dodgePadding,a=n.xDimensionLegenth,c=n.groupNum,s=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,f=n.columnWidthRatio,h=o/a,d=1*s/(c-1),p=((1-d*(c-1))/c-h*(t-1))/t;if(p=f?1/c/t*f:p,!i.K(l)){var g=l/a;p=Math.min(p,g)}if(!i.K(u)){var v=u/a;p=Math.max(p,v)}return((.5+e)*(p=r?r/a:p)+e*h+.5*(d=(1-(p*t+h*(t-1))*c)/(c-1)))*c-d/2},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this.intervalPadding,r=this.dodgePadding,i=this.xDimensionLegenth,o=this.groupNum,a=n/i,c=r/i;return((.5+e)*(((1-a*(o-1))/o-c*(t-1))/t)+e*c+.5*a)*o-a/2},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,r=n[t];return r||(r={},i.j(e,(function(e,n){var o=i.yb(e,t);o.length||o.push(0),i.j(o,(function(t){r[t]||(r[t]=[]),r[t].push(n)}))})),n[t]=r),r},e}(n(1183).a);e.a=a},2452:function(t,e,n){"use strict";var r=n(784),i=n(579),o=n(2188);var a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.e(t),n=i.q(e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var r=this,o=this.groupData(n,t);return i.j(o,(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)*o.c;return(r-i-(e=n+i))*Math.random()+e},e.prototype.adjustGroup=function(t,e,n,r){var o=this,a=this.getAdjustRange(e,n,r);return i.j(t,(function(t){t[e]=o.getAdjustOffset(a)})),t},e}(n(1183).a);e.a=a},2453:function(t,e,n){"use strict";var r=n(784),i=n(579),o=n(1183),a=i.a,c=function(t){function e(e){var n=t.call(this,e)||this,r=e.adjustNames,i=void 0===r?["y"]:r,o=e.height,a=void 0===o?NaN:o,c=e.size,s=void 0===c?10:c,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=i,n.height=a,n.size=s,n.reverseOrder=u,n}return Object(r.b)(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.xField,n=this.yField,o=this.reverseOrder?this.reverse(t):t,c=new a,s=new a;return o.map((function(t){return t.map((function(t){var o,a=i.s(t,e,0),l=i.s(t,[n]),u=a.toString();if(l=i.C(l)?l[1]:l,!i.K(l)){var f=l>=0?c:s;f.has(u)||f.set(u,0);var h=f.get(u),d=l+h;return f.set(u,d),Object(r.a)(Object(r.a)({},t),((o={})[n]=[h,d],o))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this.xField,i=this.height,o=this.reverseOrder,c=o?this.reverse(t):t,s=new a;return c.map((function(t){return t.map((function(t){var o,a=e.size,c=t[n],l=2*a/i;s.has(c)||s.set(c,l/2);var u=s.get(c);return s.set(c,u+l),Object(r.a)(Object(r.a)({},t),((o={}).y=u,o))}))}))},e}(o.a);e.a=c},2454:function(t,e,n){"use strict";var r=n(784),i=n(579),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.process=function(t){var e=i.q(t),n=this.xField,o=this.yField,a=this.getXValuesMaxMap(e),c=Math.max.apply(Math,Object.keys(a).map((function(t){return a[t]})));return i.W(t,(function(t){return i.W(t,(function(t){var e,s,l=t[o],u=t[n];if(i.C(l)){var f=(c-a[u])/2;return Object(r.a)(Object(r.a)({},t),((e={})[o]=i.W(l,(function(t){return f+t})),e))}var h=(c-l)/2;return Object(r.a)(Object(r.a)({},t),((s={})[o]=[h,l+h],s))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this.xField,r=this.yField,o=i.w(t,(function(t){return t[n]}));return i.X(o,(function(t){return e.getDimMaxValue(t,r)}))},e.prototype.getDimMaxValue=function(t,e){var n=i.W(t,(function(t){return i.s(t,e,[])})),r=i.q(n);return Math.max.apply(Math,r)},e}(n(1183).a);e.a=o},2455:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={locale:"en-US",general:{increase:"Increase",decrease:"Decrease",root:"Root"},statistic:{total:"Total"},conversionTag:{label:"Rate"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"Total"}}},2456:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={locale:"zh-CN",general:{increase:"\u589e\u52a0",decrease:"\u51cf\u5c11",root:"\u521d\u59cb"},statistic:{total:"\u603b\u8ba1"},conversionTag:{label:"\u8f6c\u5316\u7387"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"\u603b\u8ba1"}}},2457:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var r=n(2458);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"},2458:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var r,i=(r=n(2459))&&r.__esModule?r:{default:r},o=n(2460),a=n(2255);var c={};e.getSensor=function(t){var e=t.getAttribute(a.SizeSensorId);if(e&&c[e])return c[e];var n=(0,i.default)();t.setAttribute(a.SizeSensorId,n);var r=(0,o.createSensor)(t);return c[n]=r,r};e.removeSensor=function(t){var e=t.element.getAttribute(a.SizeSensorId);t.element.removeAttribute(a.SizeSensorId),t.destroy(),e&&c[e]&&delete c[e]}},2459:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=1;e.default=function(){return"".concat(r++)}},2460:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r=n(2461),i=n(2462),o="undefined"!==typeof ResizeObserver?i.createSensor:r.createSensor;e.createSensor=o},2461:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(2254))&&r.__esModule?r:{default:r},o=n(2255);e.createSensor=function(t){var e=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(e){e(t)}))})),a=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",r),e.parentNode.removeChild(e),e=void 0,n=[])};return{element:t,bind:function(i){e||(e=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",r),r()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",o.SensorClassName),e.setAttribute("tabindex",o.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e}()),-1===n.indexOf(i)&&n.push(i)},destroy:a,unbind:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&a()}}}},2462:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var r,i=(r=n(2254))&&r.__esModule?r:{default:r};e.createSensor=function(t){var e=void 0,n=[],r=(0,i.default)((function(){n.forEach((function(e){e(t)}))})),o=function(){e.disconnect(),n=[],e=void 0};return{element:t,bind:function(i){e||(e=function(){var e=new ResizeObserver(r);return e.observe(t),r(),e}()),-1===n.indexOf(i)&&n.push(i)},destroy:o,unbind:function(t){var r=n.indexOf(t);-1!==r&&n.splice(r,1),0===n.length&&e&&o()}}}},2463:function(t,e,n){!function(t){"use strict";function e(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}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),o=n(t,r);return null!=i&&isFinite(i)&&null!=o&&isFinite(o)})),r&&t.sort((function(t,n){return e(t)-e(n)}));for(var i,o,a,c=t.length,s=new Float64Array(c),l=new Float64Array(c),u=0,f=0,h=0;h<c;)a=t[h],s[h]=i=+e(a,h,t),l[h]=o=+n(a,h,t),u+=(i-u)/++h,f+=(o-f)/h;for(var d=0;d<c;++d)s[d]-=u,l[d]-=f;return[s,l,u,f]}function r(t,e,n,r){for(var i=0,o=0,a=t.length;o<a;o++){var c=t[o],s=+e(c,o,t),l=+n(c,o,t);null!=s&&isFinite(s)&&null!=l&&isFinite(l)&&r(s,l,i++)}}function i(t,e,n,i,o){var a=0,c=0;return r(t,e,n,(function(t,e){var n=e-o(t),r=e-i;a+=n*n,c+=r*r})),1-a/c}function o(t){return 180*Math.atan2(t[1][1]-t[0][1],t[1][0]-t[0][0])/Math.PI}function a(t,e,n){for(var r=Math.log(e-t)*Math.LOG10E+1|0,i=1*Math.pow(10,-r/2-1),a=[s(t),s(e)],c=0;l(a)&&c<1e4;);return a;function s(t){return[t,n(t)]}function l(t){c++;for(var e,n=t.length,r=!1,a=0;a<n-1;a++){var l=t[a],u=t[a+1],f=[((e=[l,u])[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2],h=s(f[0]),d=o([l,f]),p=o([l,h]);Math.abs(d-p)>i&&(t.splice(a+1,0,h),r=!0)}return r}}function c(t,e,n,r){var i=r-t*t,o=Math.abs(i)<1e-24?0:(n-t*e)/i;return[e-o*t,o]}function s(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function a(a){var s=0,l=0,u=0,f=0,h=0,d=t?+t[0]:1/0,p=t?+t[1]:-1/0;r(a,n,o,(function(e,n){++s,l+=(e-l)/s,u+=(n-u)/s,f+=(e*n-f)/s,h+=(e*e-h)/s,t||(e<d&&(d=e),e>p&&(p=e))}));var g=e(c(l,u,f,h),2),v=g[0],y=g[1],m=function(t){return y*t+v},b=[[d,m(d)],[p,m(p)]];return b.a=y,b.b=v,b.predict=m,b.rSquared=i(a,n,o,u,m),b}return a.domain=function(e){return arguments.length?(t=e,a):t},a.x=function(t){return arguments.length?(n=t,a):n},a.y=function(t){return arguments.length?(o=t,a):o},a}function l(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 u(t){return(t=1-t*t*t)*t*t}function f(t,e,n){var r=t[e],i=n[0],o=n[1]+1;if(!(o>=t.length))for(;e>i&&t[o]-r<=r-t[i];)n[0]=++i,n[1]=o,++o}function h(){var t,o=function(t){return t[0]},c=function(t){return t[1]};function s(s){var l,u,f,h,d=e(n(s,o,c),4),p=d[0],g=d[1],v=d[2],y=d[3],m=p.length,b=0,x=0,O=0,j=0,w=0;for(l=0;l<m;)u=p[l],f=g[l++],b+=((h=u*u)-b)/l,x+=(h*u-x)/l,O+=(h*h-O)/l,j+=(u*f-j)/l,w+=(h*f-w)/l;var C=0,S=0,E=t?+t[0]:1/0,M=t?+t[1]:-1/0;r(s,o,c,(function(e,n){S++,C+=(n-C)/S,t||(e<E&&(E=e),e>M&&(M=e))}));var k=O-b*b,P=b*k-x*x,A=(w*b-j*x)/P,I=(j*k-w*x)/P,F=-A*b,T=function(t){return A*(t-=v)*t+I*t+F+y},L=a(E,M,T);return L.a=A,L.b=I-2*A*v,L.c=F-I*v+A*v*v+y,L.predict=T,L.rSquared=i(s,o,c,C,T),L}return s.domain=function(e){return arguments.length?(t=e,s):t},s.x=function(t){return arguments.length?(o=t,s):o},s.y=function(t){return arguments.length?(c=t,s):c},s}t.regressionExp=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function s(s){var l=0,u=0,f=0,h=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(s,n,o,(function(e,n){var r=Math.log(n),i=e*n;++l,u+=(n-u)/l,h+=(i-h)/l,p+=(e*i-p)/l,f+=(n*r-f)/l,d+=(i*r-d)/l,t||(e<g&&(g=e),e>v&&(v=e))}));var y=e(c(h/u,f/u,d/u,p/u),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.exp(b*t)},O=a(g,v,x);return O.a=m,O.b=b,O.predict=x,O.rSquared=i(s,n,o,u,x),O}return s.domain=function(e){return arguments.length?(t=e,s):t},s.x=function(t){return arguments.length?(n=t,s):n},s.y=function(t){return arguments.length?(o=t,s):o},s},t.regressionLinear=s,t.regressionLoess=function(){var t=function(t){return t[0]},r=function(t){return t[1]},i=.3;function o(o){for(var a=e(n(o,t,r,!0),4),s=a[0],h=a[1],d=a[2],p=a[3],g=s.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 O=[0,v-1],j=0;j<g;++j){for(var w=s[j],C=O[0],S=O[1],E=w-s[C]>s[S]-w?C:S,M=0,k=0,P=0,A=0,I=0,F=1/Math.abs(s[E]-w||1),T=C;T<=S;++T){var L=s[T],N=h[T],D=u(Math.abs(w-L)*F)*b[T],B=L*D;M+=D,k+=B,P+=N*D,A+=N*B,I+=L*B}var R=e(c(k/M,P/M,A/M,I/M),2),_=R[0],z=R[1];y[j]=_+z*w,m[j]=Math.abs(h[j]-y[j]),f(s,j+1,O)}if(2===x)break;var V=l(m);if(Math.abs(V)<1e-12)break;for(var H,K,Y=0;Y<g;++Y)H=m[Y]/(6*V),b[Y]=H>=1?1e-12:(K=1-H*H)*K}return function(t,e,n,r){for(var i,o=t.length,a=[],c=0,s=0,l=[];c<o;++c)i=t[c]+n,l[0]===i?l[1]+=(e[c]-l[1])/++s:(s=0,l[1]+=r,l=[i,e[c]],a.push(l));return l[1]+=r,a}(s,y,d,p)}return o.bandwidth=function(t){return arguments.length?(i=t,o):i},o.x=function(e){return arguments.length?(t=e,o):t},o.y=function(t){return arguments.length?(r=t,o):r},o},t.regressionLog=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]},s=Math.E;function l(l){var u=0,f=0,h=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0,y=Math.log(s);r(l,n,o,(function(e,n){var r=Math.log(e)/y;++u,f+=(r-f)/u,h+=(n-h)/u,d+=(r*n-d)/u,p+=(r*r-p)/u,t||(e<g&&(g=e),e>v&&(v=e))}));var m=e(c(f,h,d,p),2),b=m[0],x=m[1],O=function(t){return x*Math.log(t)/y+b},j=a(g,v,O);return j.a=x,j.b=b,j.predict=O,j.rSquared=i(l,n,o,h,O),j}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?(o=t,l):o},l.base=function(t){return arguments.length?(s=t,l):s},l},t.regressionPoly=function(){var t,o=function(t){return t[0]},c=function(t){return t[1]},l=3;function u(u){if(1===l){var f=s().x(o).y(c).domain(t)(u);return f.coefficients=[f.b,f.a],delete f.a,delete f.b,f}if(2===l){var d=h().x(o).y(c).domain(t)(u);return d.coefficients=[d.c,d.b,d.a],delete d.a,delete d.b,delete d.c,d}var p,g,v,y,m,b=e(n(u,o,c),4),x=b[0],O=b[1],j=b[2],w=b[3],C=x.length,S=[],E=[],M=l+1,k=0,P=0,A=t?+t[0]:1/0,I=t?+t[1]:-1/0;for(r(u,o,c,(function(e,n){++P,k+=(n-k)/P,t||(e<A&&(A=e),e>I&&(I=e))})),p=0;p<M;++p){for(v=0,y=0;v<C;++v)y+=Math.pow(x[v],p)*O[v];for(S.push(y),m=new Float64Array(M),g=0;g<M;++g){for(v=0,y=0;v<C;++v)y+=Math.pow(x[v],p+g);m[g]=y}E.push(m)}E.push(S);var F=function(t){var e,n,r,i,o,a=t.length-1,c=[];for(e=0;e<a;++e){for(i=e,n=e+1;n<a;++n)Math.abs(t[e][n])>Math.abs(t[e][i])&&(i=n);for(r=e;r<a+1;++r)o=t[r][e],t[r][e]=t[r][i],t[r][i]=o;for(n=e+1;n<a;++n)for(r=a;r>=e;r--)t[r][n]-=t[r][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,r=n+1;r<a;++r)o+=t[r][n]*c[r];c[n]=(t[a][n]-o)/t[n][n]}return c}(E),T=function(t){t-=j;var e=w+F[0]+F[1]*t+F[2]*t*t;for(p=3;p<M;++p)e+=F[p]*Math.pow(t,p);return e},L=a(A,I,T);return L.coefficients=function(t,e,n,r){var i,o,a,c,s=Array(t);for(i=0;i<t;++i)s[i]=0;for(i=t-1;i>=0;--i)for(a=e[i],c=1,s[i]+=a,o=1;o<=i;++o)c*=(i+1-o)/o,s[i-o]+=a*Math.pow(n,o)*c;return s[0]+=r,s}(M,F,-j,w),L.predict=T,L.rSquared=i(u,o,c,k,T),L}return u.domain=function(e){return arguments.length?(t=e,u):t},u.x=function(t){return arguments.length?(o=t,u):o},u.y=function(t){return arguments.length?(c=t,u):c},u.order=function(t){return arguments.length?(l=t,u):l},u},t.regressionPow=function(){var t,n=function(t){return t[0]},o=function(t){return t[1]};function s(s){var l=0,u=0,f=0,h=0,d=0,p=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;r(s,n,o,(function(e,n){var r=Math.log(e),i=Math.log(n);++l,u+=(r-u)/l,f+=(i-f)/l,h+=(r*i-h)/l,d+=(r*r-d)/l,p+=(n-p)/l,t||(e<g&&(g=e),e>v&&(v=e))}));var y=e(c(u,f,h,d),2),m=y[0],b=y[1];m=Math.exp(m);var x=function(t){return m*Math.pow(t,b)},O=a(g,v,x);return O.a=m,O.b=b,O.predict=x,O.rSquared=i(s,n,o,p,x),O}return s.domain=function(e){return arguments.length?(t=e,s):t},s.x=function(t){return arguments.length?(n=t,s):n},s.y=function(t){return arguments.length?(o=t,s):o},s},t.regressionQuad=h,Object.defineProperty(t,"__esModule",{value:!0})}(e)},2464:function(t,e,n){"use strict";var r=Math.log(2),i=t.exports,o=n(2465);function a(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=o.isNumber(e.width)?e.width:2,a=o.isNumber(e.size)?e.size:50,c=o.isNumber(e.min)?e.min:(n=!0,o.findMinMulti(t)),s=o.isNumber(e.max)?e.max:(r=!0,o.findMaxMulti(t)),l=(s-c)/(a-1);return n&&(c-=2*i*l),r&&(s+=2*i*l),{min:c,max:s}},t.exports.create=function(t,e){if(e=e||{},!t||0===t.length)return[];var n=o.isNumber(e.size)?e.size:50,r=o.isNumber(e.width)?e.width:2,c=i.getUnifiedMinMax(t,{size:n,width:r,min:e.min,max:e.max}),s=c.min,l=c.max-s,u=l/(n-1);if(0===l)return[{x:s,y:1}];for(var f=[],h=0;h<n;h++)f.push({x:s+h*u,y:0});var d=function(t,e){for(var n={},r=0,i=-e;i<=e;i++)r+=t(i/e),n[i]=r;return n}(a,r),p=d[r],g=d[r-1]-d[r-2],v=0;t.forEach((function(t){var e=function(t){return Math.floor((t-s)/u)}(t);if(!(e+r<0||e-r>=f.length)){var n=Math.max(e-r,0),i=e,a=Math.min(e+r,f.length-1),c=n-(e-r),l=e+r-a,h=d[-r-1+c]||0,y=d[-r-1+l]||0,m=p/(p-h-y);c>0&&(v+=m*(c-1)*g);var b=Math.max(0,e-r+1);o.inside(0,f.length-1,b)&&(f[b].y+=1*m*g),o.inside(0,f.length-1,i+1)&&(f[i+1].y-=2*m*g),o.inside(0,f.length-1,a+1)&&(f[a+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<t.length&&(r=i,!((n+=t[i].y)>=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)}}},2465: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;n<t.length;n++)e=Math.min(e,t[n]);return e},t.exports.findMax=function(t){if(0===t.length)return-1/0;for(var e=t[0],n=1;n<t.length;n++)e=Math.max(e,t[n]);return e},t.exports.findMinMulti=function(t){for(var e=r.findMin(t[0]),n=1;n<t.length;n++)e=Math.min(e,r.findMin(t[n]));return e},t.exports.findMaxMulti=function(t){for(var e=r.findMax(t[0]),n=1;n<t.length;n++)e=Math.max(e,r.findMax(t[n]));return e},t.exports.inside=function(t,e,n){return t<=n&&n<=e}},2504:function(t,e,n){"use strict";n.r(e);var r,i=n(604),o=n(619),a=(n(2182),n(2183),n(2449),n(2)),c=n.n(a),s=n(183),l=n(2450),u=n(579),f=function(){return(f=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},h=f({},s),d=h.version,p=h.render;h.unmountComponentAtNode;try{Number((d||"").split(".")[0])>=18&&(r=h.createRoot)}catch(G){}function g(t){var e=h.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&"object"===typeof e&&(e.usingClientEntryPoint=t)}var v="__rc_react_root__";function y(t,e){r?function(t,e){g(!0);var n=e[v]||r(e);g(!1),n.render(t),e[v]=n}(t,e):function(t,e){p(t,e)}(t,e)}var m=function(t,e){var n=document.createElement("div");return"tooltip"===e&&(n.className="g2-tooltip"),y(t,n),n},b=function(t,e){return{}.toString.call(t)==="[object ".concat(e,"]")},x=function t(e){return e&&"object"===typeof e?(Array.isArray(e)?n=e.map((function(e){return t(e)})):(n={},Object.keys(e).forEach((function(r){return n[r]=t(e[r])}))),n):e;var n},O=function(t,e){for(var n=t,r=0;r<e.length;r+=1){if(!(null===n||void 0===n?void 0:n[e[r]])){n=void 0;break}n=n[e[r]]}return n},j=function(){return(j=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},w=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function C(t,e){var n=Object(a.useRef)(),r=Object(a.useRef)(),i=Object(a.useRef)(null),o=e.onReady,c=e.onEvent,s=function(t,e,n){var r=O(t,e);!function(t,e,n){if(!t)return t;var r=t;e.forEach((function(t,i){i<e.length-1?r=r[t]:r[t]=n}))}(t,e,(function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=b(r,"Function")?r.apply(void 0,t):r;return b(i,"String")||b(i,"Number")||b(i,"HTMLDivElement")?i:m(i,n)}))},l=function(){O(e,["statistic","content","customHtml"])&&s(e,["statistic","content","customHtml"]),O(e,["statistic","title","customHtml"])&&s(e,["statistic","title","customHtml"]),"object"===typeof e.tooltip&&(O(e,["tooltip","container"])&&s(e,["tooltip","container"],"tooltip"),O(e,["tooltip","customContent"])&&s(e,["tooltip","customContent"],"tooltip"))};return Object(a.useEffect)((function(){if(n.current&&!Object(u.H)(r.current,e)){var t=!1;if(r.current){var i=r.current,o=(i.data,i.value,i.percent,w(i,["data","value","percent"])),a=(e.data,e.value,e.percent,w(e,["data","value","percent"]));t=Object(u.H)(o,a)}if(r.current=x(e),t&&"Mix"!==Object(u.s)(e,"chartType")){var c="data",s=Object.keys(e);["percent"].forEach((function(t){s.includes(t)&&(c=t)})),n.current.changeData((null===e||void 0===e?void 0:e[c])||[])}else l(),n.current.update(e)}}),[e]),Object(a.useEffect)((function(){if(!i.current)return function(){return null};r.current||(r.current=x(e)),l();var a=new t(i.current,j({},e));a.toDataURL=function(t,e){return function(t,e){var r;return void 0===t&&(t="image/png"),null===(r=n.current)||void 0===r?void 0:r.chart.canvas.cfg.el.toDataURL(t,e)}(t,e)},a.downloadImage=function(t,e,r){return function(t,e,r){var i;void 0===t&&(t="download"),void 0===e&&(e="image/png");var o=t;-1===t.indexOf(".")&&(o="".concat(t,".").concat(e.split("/")[1]));var a=null===(i=n.current)||void 0===i?void 0:i.chart.canvas.cfg.el.toDataURL(e,r),c=document.createElement("a");return c.href=a,c.download=o,document.body.appendChild(c),c.click(),document.body.removeChild(c),c=null,o}(t,e,r)},a.render(),n.current=function(t){if(!t)return t;var e={};for(var n in t)e[n]=t[n];return e}(a),o&&o(a);var s=function(t){c&&c(a,t)};return a.on("*",s),function(){n.current&&(n.current.destroy(),n.current.off("*",s),n.current=void 0)}}),[]),{chart:n,container:i}}var S=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(e,n)};return function(e,n){if("function"!==typeof n&&null!==n)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),E=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={hasError:!1},e.renderError=function(t){var n=e.props.errorTemplate;return n&&"function"===typeof n?n(t):c.a.createElement("h5",null,"\u7ec4\u4ef6\u51fa\u9519\u4e86\uff0c\u8bf7\u6838\u67e5\u540e\u91cd\u8bd5\uff1a ",t.message)},e}return S(e,t),e.getDerivedStateFromError=function(t){return{hasError:!0,error:t}},e.getDerivedStateFromProps=function(t,e){return e.children!==t.children?{children:t.children,hasError:!1,error:void 0}:null},e.prototype.render=function(){return this.state.hasError?this.renderError(this.state.error):c.a.createElement(a.Fragment,null,this.props.children)},e}(c.a.Component),M=function(){return(M=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};var k=function(t){var e=t.animate,n=t.backgroundColor,r=t.backgroundOpacity,i=t.baseUrl,o=t.children,c=t.foregroundColor,s=t.foregroundOpacity,l=t.gradientRatio,u=t.uniqueKey,f=t.interval,h=t.rtl,d=t.speed,p=t.style,g=t.title,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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(t,["animate","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","uniqueKey","interval","rtl","speed","style","title"]),y=u||Math.random().toString(36).substring(6),m=y+"-diff",b=y+"-animated-diff",x=y+"-aria",O=h?{transform:"scaleX(-1)"}:null,j="0; "+f+"; 1",w=d+"s";return Object(a.createElement)("svg",M({"aria-labelledby":x,role:"img",style:M(M({},p),O)},v),g?Object(a.createElement)("title",{id:x},g):null,Object(a.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+i+"#"+m+")",style:{fill:"url("+i+"#"+b+")"}}),Object(a.createElement)("defs",{role:"presentation"},Object(a.createElement)("clipPath",{id:m},o),Object(a.createElement)("linearGradient",{id:b},Object(a.createElement)("stop",{offset:"0%",stopColor:n,stopOpacity:r},e&&Object(a.createElement)("animate",{attributeName:"offset",values:-l+"; "+-l+"; 1",keyTimes:j,dur:w,repeatCount:"indefinite"})),Object(a.createElement)("stop",{offset:"50%",stopColor:c,stopOpacity:s},e&&Object(a.createElement)("animate",{attributeName:"offset",values:-l/2+"; "+-l/2+"; "+(1+l/2),keyTimes:j,dur:w,repeatCount:"indefinite"})),Object(a.createElement)("stop",{offset:"100%",stopColor:n,stopOpacity:r},e&&Object(a.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+l),keyTimes:j,dur:w,repeatCount:"indefinite"})))))};k.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading..."};var P=function(t){return t.children?Object(a.createElement)(k,M({},t)):Object(a.createElement)(A,M({},t))},A=function(t){return Object(a.createElement)(P,M({viewBox:"0 0 476 124"},t),Object(a.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),Object(a.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),Object(a.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),Object(a.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),Object(a.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),Object(a.createElement)("circle",{cx:"20",cy:"20",r:"20"}))},I=P,F=function(t){var e=t.loadingTemplate,n=t.theme,r=void 0===n?"light":n;return c.a.createElement("div",{className:"charts-loading-container",style:{position:"absolute",width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",left:0,top:0,zIndex:99,backgroundColor:"dark"===r?"rgb(20, 20, 20)":"rgb(255, 255, 255)"}},e||c.a.createElement(I,{viewBox:"0 0 400 180",width:200,height:90,speed:1,backgroundColor:"dark"===r?"#262626":"#D9D9D9"},c.a.createElement("rect",{x:"20",y:"5",rx:"0",ry:"0",width:"1",height:"170"}),c.a.createElement("rect",{x:"20",y:"175",rx:"0",ry:"0",width:"360",height:"1"}),c.a.createElement("rect",{x:"40",y:"75",rx:"0",ry:"0",width:"35",height:"100"}),c.a.createElement("rect",{x:"80",y:"125",rx:"0",ry:"0",width:"35",height:"50"}),c.a.createElement("rect",{x:"120",y:"105",rx:"0",ry:"0",width:"35",height:"70"}),c.a.createElement("rect",{x:"160",y:"35",rx:"0",ry:"0",width:"35",height:"140"}),c.a.createElement("rect",{x:"200",y:"55",rx:"0",ry:"0",width:"35",height:"120"}),c.a.createElement("rect",{x:"240",y:"15",rx:"0",ry:"0",width:"35",height:"160"}),c.a.createElement("rect",{x:"280",y:"135",rx:"0",ry:"0",width:"35",height:"40"}),c.a.createElement("rect",{x:"320",y:"85",rx:"0",ry:"0",width:"35",height:"90"})))},T=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},L=(Object(a.forwardRef)((function(t,e){var n=t.chartRef,r=t.style,i=void 0===r?{height:"inherit"}:r,o=t.className,s=t.loading,f=t.loadingTemplate,h=t.errorTemplate,d=T(t,["chartRef","style","className","loading","loadingTemplate","errorTemplate"]),p=C(l.Pie,d),g=p.chart,v=p.container;return Object(a.useEffect)((function(){!function(t,e){t&&(Object(u.I)(t)?t(e):t.current=e)}(n,g.current)}),[g.current]),Object(a.useImperativeHandle)(e,(function(){return{getChart:function(){return g.current}}})),c.a.createElement(E,{errorTemplate:h},s&&c.a.createElement(F,{loadingTemplate:f,theme:t.theme}),c.a.createElement("div",{className:o,style:i,ref:v}))})),n(628)),N=n(655),D=n.n(N),B=(n(596),n(1442),n(1174)),R=n(1173),_=n(874),z=n(683),V=n(731),H=n(2348);function K(){K=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(E){c=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var i=e&&e.prototype instanceof f?e:f,o=Object.create(i.prototype),a=new w(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=x(a,n);if(c){if(c===u)continue;return c}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var s=l(t,e,n);if("normal"===s.type){if(r=n.done?"completed":"suspendedYield",s.arg===u)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r="completed",n.method="throw",n.arg=s.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=s;var u={};function f(){}function h(){}function d(){}var p={};c(p,i,(function(){return this}));var g=Object.getPrototypeOf,v=g&&g(g(C([])));v&&v!==e&&n.call(v,i)&&(p=v);var y=d.prototype=f.prototype=Object.create(p);function m(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function b(t,e){var r;this._invoke=function(i,o){function a(){return new e((function(r,a){!function r(i,o,a,c){var s=l(t[i],t,o);if("throw"!==s.type){var u=s.arg,f=u.value;return f&&"object"==typeof f&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function x(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,x(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=l(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function w(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function C(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return h.prototype=d,c(y,"constructor",d),c(d,"constructor",h),h.displayName=c(d,a,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,d):(t.__proto__=d,c(t,a,"GeneratorFunction")),t.prototype=Object.create(y),t},t.awrap=function(t){return{__await:t}},m(b.prototype),c(b.prototype,o,(function(){return this})),t.AsyncIterator=b,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new b(s(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},m(y),c(y,a,"Generator"),c(y,i,(function(){return this})),c(y,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=C,w.prototype={constructor:w,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var c=n.call(o,"catchLoc"),s=n.call(o,"finallyLoc");if(c&&s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),u}},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;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}var Y=localStorage.getItem("token");"Bearer ".concat(Y),e.default=function(){var t=localStorage.getItem("token"),e={headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat(t)}},n=Object(a.useState)([]),r=Object(o.a)(n,2),s=r[0],l=r[1],u=function(){var t=Object(i.a)(K().mark((function t(){var n,r;return K().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="".concat(L.R,"/api/project/list"),t.next=3,D.a.get(n,e).then((function(t){return t})).catch((function(t){return t.response}));case 3:200!==(r=t.sent).data.code&&z.NotificationManager.error("Belum ada data proyek!","Failed"),console.log("res ",r.data.data),l(r.data.data);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),f=[{title:"Project",dataIndex:"nama",key:"nama",render:function(t){return c.a.createElement("a",null,t)}},{title:"Planned Interval",dataIndex:"plannedInterval",key:"plannedInterval"},{title:"Planned Cost",dataIndex:"plannedCost",key:"plannedCost",render:function(t){return c.a.createElement("a",null,Object(V.h)(t))}},{title:"Actual Cost",dataIndex:"actualCost",key:"actualCost",render:function(t){return c.a.createElement("a",null,Object(V.h)(t))}},{title:"Cost Variance",dataIndex:"costVariance",key:"costVariance",render:function(t){return c.a.createElement("a",null,Object(V.h)(t))}},{title:"Cost Health",dataIndex:"costHealth",key:"costHealth",render:function(t){return"on-budget"==t?c.a.createElement(H.a,{color:"success"},"On Budget"):"warning"==t?c.a.createElement(H.a,{color:"warning"},"Warning"):c.a.createElement(H.a,{color:"danger"},"Danger")}},{title:"Progress",dataIndex:"progress",key:"progress"}];return Object(a.useEffect)((function(){u()}),[]),c.a.createElement(c.a.Fragment,null,c.a.createElement(B.a,{gutter:[16,16]},c.a.createElement(R.a,{span:24},c.a.createElement(_.default,{columns:f,dataSource:s}))))}},578:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(2),i=r.isValidElement;function o(t,e,n){return i(t)?r.cloneElement(t,"function"===typeof n?n(t.props||{}):n):e}function a(t,e){return o(t,t,e)}},579:function(t,e,n){"use strict";n.d(e,"f",(function(){return i})),n.d(e,"A",(function(){return i})),n.d(e,"i",(function(){return a})),n.d(e,"m",(function(){return m})),n.d(e,"n",(function(){return b})),n.d(e,"o",(function(){return x})),n.d(e,"q",(function(){return O})),n.d(e,"u",(function(){return C})),n.d(e,"ib",(function(){return k})),n.d(e,"jb",(function(){return P})),n.d(e,"ob",(function(){return I})),n.d(e,"ub",(function(){return F})),n.d(e,"yb",(function(){return T})),n.d(e,"z",(function(){return L})),n.d(e,"U",(function(){return N})),n.d(e,"l",(function(){return o})),n.d(e,"k",(function(){return D})),n.d(e,"nb",(function(){return B})),n.d(e,"v",(function(){return V})),n.d(e,"w",(function(){return _})),n.d(e,"x",(function(){return z})),n.d(e,"c",(function(){return H})),n.d(e,"p",(function(){return K})),n.d(e,"N",(function(){return G})),n.d(e,"Y",(function(){return j})),n.d(e,"Z",(function(){return W})),n.d(e,"bb",(function(){return w})),n.d(e,"cb",(function(){return X})),n.d(e,"eb",(function(){return q})),n.d(e,"sb",(function(){return $})),n.d(e,"r",(function(){return Z})),n.d(e,"y",(function(){return Q})),n.d(e,"T",(function(){return p})),n.d(e,"J",(function(){return g})),n.d(e,"xb",(function(){return J})),n.d(e,"V",(function(){return et})),n.d(e,"pb",(function(){return nt})),n.d(e,"wb",(function(){return rt})),n.d(e,"C",(function(){return f})),n.d(e,"D",(function(){return at})),n.d(e,"E",(function(){return ct})),n.d(e,"I",(function(){return l})),n.d(e,"K",(function(){return u})),n.d(e,"L",(function(){return st})),n.d(e,"M",(function(){return Y})),n.d(e,"O",(function(){return h})),n.d(e,"P",(function(){return y})),n.d(e,"Q",(function(){return A})),n.d(e,"R",(function(){return s})),n.d(e,"S",(function(){return ft})),n.d(e,"F",(function(){return ht})),n.d(e,"kb",(function(){return dt})),n.d(e,"d",(function(){return pt})),n.d(e,"e",(function(){return yt})),n.d(e,"g",(function(){return mt})),n.d(e,"ab",(function(){return bt})),n.d(e,"h",(function(){return Ot})),n.d(e,"j",(function(){return d})),n.d(e,"B",(function(){return jt})),n.d(e,"G",(function(){return Ct})),n.d(e,"H",(function(){return St})),n.d(e,"W",(function(){return Et})),n.d(e,"X",(function(){return kt})),n.d(e,"db",(function(){return vt})),n.d(e,"b",(function(){return vt})),n.d(e,"s",(function(){return Pt})),n.d(e,"lb",(function(){return At})),n.d(e,"hb",(function(){return Ft})),n.d(e,"gb",(function(){return Tt})),n.d(e,"qb",(function(){return Lt})),n.d(e,"rb",(function(){return Nt})),n.d(e,"tb",(function(){return tt})),n.d(e,"vb",(function(){return Bt})),n.d(e,"fb",(function(){return Rt})),n.d(e,"mb",(function(){return _t})),n.d(e,"t",(function(){return Ht})),n.d(e,"a",(function(){return Kt}));var r=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},i=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];e(o,i)&&n.push(o)}return n},a=function(t,e){return void 0===e&&(e=[]),o(t,(function(t){return!i(e,t)}))},c={}.toString,s=function(t,e){return c.call(t)==="[object "+e+"]"},l=function(t){return s(t,"Function")},u=function(t){return null===t||void 0===t},f=function(t){return Array.isArray?Array.isArray(t):s(t,"Array")},h=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};var d=function(t,e){if(t)if(f(t))for(var n=0,r=t.length;n<r&&!1!==e(t[n],n);n++);else if(h(t))for(var i in t)if(t.hasOwnProperty(i)&&!1===e(t[i],i))break},p=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return d(t,(function(n,r){l(t)&&"prototype"===r||e.push(r)})),e};var g=function(t,e){var n=p(e),r=n.length;if(u(t))return!r;for(var i=0;i<r;i+=1){var o=n[i];if(e[o]!==t[o]||!(o in t))return!1}return!0},v=function(t){return"object"===typeof t&&null!==t},y=function(t){if(!v(t)||!s(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};var m=function(t,e){if(!f(t))return null;var n;if(l(e)&&(n=e),y(e)&&(n=function(t){return g(t,e)}),n)for(var r=0;r<t.length;r+=1)if(n(t[r]))return t[r];return null};var b=function(t,e,n){void 0===n&&(n=0);for(var r=n;r<t.length;r++)if(e(t[r],r))return r;return-1},x=function(t,e){for(var n=null,r=0;r<t.length;r++){var i=t[r][e];if(!u(i)){n=f(i)?i[0]:i;break}}return n},O=function(t){if(!f(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},j=function(t){if(f(t))return t.reduce((function(t,e){return Math.max(t,e)}),t[0])},w=function(t){if(f(t))return t.reduce((function(t,e){return Math.min(t,e)}),t[0])},C=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(f(t[0])){for(var n=[],r=0;r<t.length;r++)n=n.concat(t[r]);e=n}var i=j(e);return{min:w(e),max:i}},S=Array.prototype,E=(S.splice,S.indexOf,Array.prototype.splice),M=function(t,e){if(!r(t))return[];for(var n=t?e.length:0,i=n-1;n--;){var o=void 0,a=e[n];n!==i&&a===o||(o=a,E.call(t,a,1))}return t},k=function(t,e,n){if(!f(t)&&!y(t))return t;var r=n;return d(t,(function(t,n){r=e(r,t,n)})),r},P=function(t,e){var n=[];if(!r(t))return n;for(var i=-1,o=[],a=t.length;++i<a;){var c=t[i];e(c,i,t)&&(n.push(c),o.push(i))}return M(t,o),n},A=function(t){return s(t,"String")};var I=function(t,e){var n;if(l(e))n=function(t,n){return e(t)-e(n)};else{var r=[];A(e)?r.push(e):f(e)&&(r=e),n=function(t,e){for(var n=0;n<r.length;n+=1){var i=r[n];if(t[i]>e[i])return 1;if(t[i]<e[i])return-1}return 0}}return t.sort(n),t};function F(t,e){void 0===e&&(e=new Map);var n=[];if(Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];e.has(o)||(n.push(o),e.set(o,!0))}return n}var T=function(t,e){for(var n=[],r={},i=0;i<t.length;i++){var o=t[i][e];if(!u(o)){f(o)||(o=[o]);for(var a=0;a<o.length;a++){var c=o[a];r[c]||(n.push(c),r[c]=!0)}}}return n};function L(t){if(r(t))return t[0]}function N(t){if(r(t)){return t[t.length-1]}}var D=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},B=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},R=Object.prototype.hasOwnProperty;var _=function(t,e){if(!e||!f(t))return{};for(var n,r={},i=l(e)?e:function(t){return t[e]},o=0;o<t.length;o++){var a=t[o];n=i(a),R.call(r,n)?r[n].push(a):r[n]=[a]}return r};function z(t,e){if(!e)return{0:t};if(!l(e)){var n=f(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",r=0,i=n.length;r<i;r++)e+=t[n[r]]&&t[n[r]].toString();return e}}return _(t,e)}var V=function(t,e){if(!e)return[t];var n=z(t,e),r=[];for(var i in n)r.push(n[i]);return r};var H=function(t,e,n){return t<e?e:t>n?n:t},K=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))},Y=function(t){return s(t,"Number")};Number.isInteger&&Number.isInteger;function G(t,e,n){return void 0===n&&(n=1e-5),Math.abs(t-e)<n}var W=function(t,e){if(f(t)){for(var n,r=-1/0,i=0;i<t.length;i++){var o=t[i],a=l(e)?e(o):o[e];a>r&&(n=o,r=a)}return n}},X=function(t,e){if(f(t)){for(var n,r=1/0,i=0;i<t.length;i++){var o=t[i],a=l(e)?e(o):o[e];a<r&&(n=o,r=a)}return n}},q=function(t,e){return(t%e+e)%e},U=(Math.PI,parseInt,Math.PI/180),$=function(t){return U*t},Z=d,Q=function(t,e){return t.hasOwnProperty(e)},J=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return d(t,(function(n,r){l(t)&&"prototype"===r||e.push(n)})),e},tt=function(t){return u(t)?"":t.toString()},et=function(t){return tt(t).toLowerCase()};var nt=function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t},rt=function(t){var e=tt(t);return e.charAt(0).toUpperCase()+e.substring(1)},it={}.toString,ot=function(t){return it.call(t).replace(/^\[object /,"").replace(/]$/,"")},at=function(t){return s(t,"Boolean")},ct=function(t){return s(t,"Date")},st=function(t){return null===t},lt=Object.prototype,ut=function(t){var e=t&&t.constructor;return t===("function"===typeof e&&e.prototype||lt)},ft=function(t){return void 0===t},ht=function(t){return t instanceof Element||t instanceof HTMLDocument};function dt(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}function pt(t){(window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout)(t)}function gt(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function vt(t,e,n,r){return e&>(t,e),n&>(t,n),r&>(t,r),t}var yt=function t(e){if("object"!==typeof e||null===e)return e;var n;if(f(e)){n=[];for(var r=0,i=e.length;r<i;r++)"object"===typeof e[r]&&null!=e[r]?n[r]=t(e[r]):n[r]=e[r]}else for(var o in n={},e)"object"===typeof e[o]&&null!=e[o]?n[o]=t(e[o]):n[o]=e[o];return n};var mt=function(t,e,n){var r;return function(){var i=this,o=arguments,a=function(){r=null,n||t.apply(i,o)},c=n&&!r;clearTimeout(r),r=setTimeout(a,e),c&&t.apply(i,o)}},bt=function(t,e){if(!l(t))throw new TypeError("Expected a function");var n=function n(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var o=e?e.apply(this,r):r[0],a=n.cache;if(a.has(o))return a.get(o);var c=t.apply(this,r);return a.set(o,c),c};return n.cache=new Map,n};function xt(t,e,n,r){for(var i in n=n||0,r=r||5,e)if(e.hasOwnProperty(i)){var o=e[i];null!==o&&y(o)?(y(t[i])||(t[i]={}),n<r?xt(t[i],o,n+1,r):t[i]=e[i]):f(o)?(t[i]=[],t[i]=t[i].concat(o)):void 0!==o&&(t[i]=o)}}var Ot=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=0;r<e.length;r+=1)xt(t,e[r]);return t},jt=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,o=0;o<t.length;o++)if(t[o]===e){i=o;break}return i},wt=Object.prototype.hasOwnProperty;var Ct=function(t){if(u(t))return!0;if(r(t))return!t.length;var e=ot(t);if("Map"===e||"Set"===e)return!t.size;if(ut(t))return!Object.keys(t).length;for(var n in t)if(wt.call(t,n))return!1;return!0},St=function t(e,n){if(e===n)return!0;if(!e||!n)return!1;if(A(e)||A(n))return!1;if(r(e)||r(n)){if(e.length!==n.length)return!1;for(var i=!0,o=0;o<e.length&&(i=t(e[o],n[o]));o++);return i}if(v(e)||v(n)){var a=Object.keys(e),c=Object.keys(n);if(a.length!==c.length)return!1;for(i=!0,o=0;o<a.length&&(i=t(e[a[o]],n[a[o]]));o++);return i}return!1},Et=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var o=t[i];n.push(e(o,i))}return n},Mt=function(t){return t},kt=function(t,e){void 0===e&&(e=Mt);var n={};return h(t)&&!u(t)&&Object.keys(t).forEach((function(r){n[r]=e(t[r],r)})),n},Pt=function(t,e,n){for(var r=0,i=A(e)?e.split("."):e;t&&r<i.length;)t=t[i[r++]];return void 0===t||r<i.length?n:t},At=function(t,e,n){var r=t,i=A(e)?e.split("."):e;return i.forEach((function(t,e){e<i.length-1?(h(r[t])||(r[t]=Y(i[e+1])?[]:{}),r=r[t]):r[t]=n})),t},It=Object.prototype.hasOwnProperty,Ft=function(t,e){if(null===t||!y(t))return{};var n={};return d(e,(function(e){It.call(t,e)&&(n[e]=t[e])})),n},Tt=function(t,e){return k(t,(function(t,n,r){return e.includes(r)||(t[r]=n),t}),{})},Lt=function(t,e,n){var r,i,o,a,c=0;n||(n={});var s=function(){c=!1===n.leading?0:Date.now(),r=null,a=t.apply(i,o),r||(i=o=null)},l=function(){var l=Date.now();c||!1!==n.leading||(c=l);var u=e-(l-c);return i=this,o=arguments,u<=0||u>e?(r&&(clearTimeout(r),r=null),c=l,a=t.apply(i,o),r||(i=o=null)):r||!1===n.trailing||(r=setTimeout(s,u)),a};return l.cancel=function(){clearTimeout(r),c=0,r=i=o=null},l},Nt=function(t){return r(t)?Array.prototype.slice.call(t):[]},Dt={},Bt=function(t){return Dt[t=t||"g"]?Dt[t]+=1:Dt[t]=1,t+Dt[t]},Rt=function(){};function _t(t){return u(t)?0:r(t)?t.length:Object.keys(t).length}Object.create;var zt;Object.create;var Vt=bt((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant;return zt||(zt=document.createElement("canvas").getContext("2d")),zt.font=[o,a,i,n+"px",r].join(" "),zt.measureText(A(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,c=o.length;a<c;a++,i++)r[i]=o[a];return r}([t],J(e)).join("")})),Ht=function(t,e,n,r){void 0===r&&(r="...");var i,o,a=Vt(r,n),c=A(t)?t:tt(t),s=e,l=[];if(Vt(t,n)<=e)return t;for(;i=c.substr(0,16),!((o=Vt(i,n))+a>s&&o>s);)if(l.push(i),s-=o,!(c=c.substr(16)))return l.join("");for(;i=c.substr(0,1),!((o=Vt(i,n))+a>s);)if(l.push(i),s-=o,!(c=c.substr(1)))return l.join("");return""+l.join("")+r},Kt=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}()},583:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"f",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"b",(function(){return f})),n.d(e,"e",(function(){return h}));var r=n(23),i=n(650),o=n(575),a=n(2),c=a.createContext({labelAlign:"right",vertical:!1,itemRef:function(){}}),s=a.createContext(null),l=function(t){var e=Object(o.a)(t,["prefixCls"]);return a.createElement(i.c,Object(r.a)({},e))},u=a.createContext({prefixCls:""}),f=a.createContext({}),h=function(t){var e=t.children,n=t.status,i=t.override,o=Object(a.useContext)(f),c=Object(a.useMemo)((function(){var t=Object(r.a)({},o);return i&&delete t.isFormItemInput,n&&(delete t.status,delete t.hasFeedback,delete t.feedbackIcon),t}),[n,i,o]);return a.createElement(f.Provider,{value:c},e)}},593:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(559),i="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function o(t,e){return 0===t.indexOf(e)}function a(t){var e,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:Object(r.a)({},n);var a={};return Object.keys(t).forEach((function(n){(e.aria&&("role"===n||o(n,"aria-"))||e.data&&o(n,"data-")||e.attr&&i.includes(n))&&(a[n]=t[n])})),a}},594:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(561),i=n(560),o=n.n(i),a=n(586);Object(a.a)("warning","error","");function c(t,e,n){var i;return o()((i={},Object(r.a)(i,"".concat(t,"-status-success"),"success"===e),Object(r.a)(i,"".concat(t,"-status-warning"),"warning"===e),Object(r.a)(i,"".concat(t,"-status-error"),"error"===e),Object(r.a)(i,"".concat(t,"-status-validating"),"validating"===e),Object(r.a)(i,"".concat(t,"-has-feedback"),n),i))}var s=function(t,e){return e||t}},595:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return h}));var r=n(23),i=n(570),o=n(571),a=n(572),c=n(573),s=n(2),l=n(671),u=n(617).a,f=function(t){Object(a.a)(n,t);var e=Object(c.a)(n);function n(){return Object(i.a)(this,n),e.apply(this,arguments)}return Object(o.a)(n,[{key:"getLocale",value:function(){var t=this.props,e=t.componentName,n=t.defaultLocale||u[null!==e&&void 0!==e?e:"global"],i=this.context,o=e&&i?i[e]:{};return Object(r.a)(Object(r.a)({},n instanceof Function?n():n),o||{})}},{key:"getLocaleCode",value:function(){var t=this.context,e=t&&t.locale;return t&&t.exist&&!e?u.locale:e}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode(),this.context)}}]),n}(s.Component);function h(t,e){var n=s.useContext(l.a);return[s.useMemo((function(){var i=e||u[t||"global"],o=t&&n?n[t]:{};return Object(r.a)(Object(r.a)({},"function"===typeof i?i():i),o||{})}),[t,e,n])]}f.defaultProps={componentName:"global"},f.contextType=l.a},597:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CloseCircleFilled";e.a=i.forwardRef(c)},598:function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return s}));var r=n(586),i=function(){return{height:0,opacity:0}},o=function(t){return{height:t.scrollHeight,opacity:1}},a=function(t,e){return!0===(null===e||void 0===e?void 0:e.deadline)||"height"===e.propertyName},c={motionName:"ant-motion-collapse",onAppearStart:i,onEnterStart:i,onAppearActive:o,onEnterActive:o,onLeaveStart:function(t){return{height:t?t.offsetHeight:0}},onLeaveActive:i,onAppearEnd:a,onEnterEnd:a,onLeaveEnd:a,motionDeadline:500},s=(Object(r.a)("bottomLeft","bottomRight","topLeft","topRight"),function(t){return void 0===t||"topLeft"!==t&&"topRight"!==t?"slide-up":"slide-down"}),l=function(t,e,n){return void 0!==n?n:"".concat(t,"-").concat(e)};e.a=c},599:function(t,e){t.exports=function(t,e,n,r){var i=n?n.call(r,t,e):void 0;if(void 0!==i)return!!i;if(t===e)return!0;if("object"!==typeof t||!t||"object"!==typeof e||!e)return!1;var o=Object.keys(t),a=Object.keys(e);if(o.length!==a.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(e),s=0;s<o.length;s++){var l=o[s];if(!c(l))return!1;var u=t[l],f=e[l];if(!1===(i=n?n.call(r,u,f,l):void 0)||void 0===i&&u!==f)return!1}return!0}},601:function(t,e,n){"use strict";var r=n(23),i={locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",yearFormat:"YYYY",dateFormat:"M/D/YYYY",dayFormat:"D",dateTimeFormat:"M/D/YYYY HH:mm:ss",monthBeforeYear:!0,previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"},o=n(621),a={lang:Object(r.a)({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},i),timePickerLocale:Object(r.a)({},o.a)};e.a=a},606:function(t,e,n){"use strict";n.r(e);var r=n(664);e.default=r.b},608:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="RightOutlined";e.a=i.forwardRef(c)},610:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(777),i=n(779),o=n(772),a=n(778);function c(t){return Object(r.a)(t)||Object(i.a)(t)||Object(o.a)(t)||Object(a.a)()}},611:function(t,e,n){"use strict";n.d(e,"f",(function(){return yt})),n.d(e,"b",(function(){return X})),n.d(e,"d",(function(){return X})),n.d(e,"e",(function(){return Vt})),n.d(e,"c",(function(){return Vt})),n.d(e,"a",(function(){return Ht})),n.d(e,"h",(function(){return Kt}));var r=n(23),i=n(561),o=n(559),a=n(565),c=n(563),s=n(567),l=n(2),u=n(560),f=n.n(u),h=n(599),d=n.n(h),p=n(577),g=n(568),v=n(639),y=n(570),m=n(571),b=n(572),x=n(573),O=n(576),j=n(575),w=n(620),C=["children","locked"],S=l.createContext(null);function E(t){var e=t.children,n=t.locked,r=Object(s.a)(t,C),i=l.useContext(S),a=Object(w.a)((function(){return function(t,e){var n=Object(o.a)({},t);return Object.keys(e).forEach((function(t){var r=e[t];void 0!==r&&(n[t]=r)})),n}(i,r)}),[i,r],(function(t,e){return!n&&(t[0]!==e[0]||!d()(t[1],e[1]))}));return l.createElement(S.Provider,{value:a},e)}function M(t,e,n,r){var i=l.useContext(S),o=i.activeKey,a=i.onActive,c=i.onInactive,s={active:o===t};return e||(s.onMouseEnter=function(e){null===n||void 0===n||n({key:t,domEvent:e}),a(t)},s.onMouseLeave=function(e){null===r||void 0===r||r({key:t,domEvent:e}),c(t)}),s}var k=["item"];function P(t){var e=t.item,n=Object(s.a)(t,k);return Object.defineProperty(n,"item",{get:function(){return Object(g.a)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),e}}),n}function A(t){var e=t.icon,n=t.props,r=t.children;return("function"===typeof e?l.createElement(e,Object(o.a)({},n)):e)||r||null}function I(t){var e=l.useContext(S),n=e.mode,r=e.rtl,i=e.inlineIndent;if("inline"!==n)return null;return r?{paddingRight:t*i}:{paddingLeft:t*i}}var F=[],T=l.createContext(null);function L(){return l.useContext(T)}var N=l.createContext(F);function D(t){var e=l.useContext(N);return l.useMemo((function(){return void 0!==t?[].concat(Object(a.a)(e),[t]):e}),[e,t])}var B=l.createContext(null),R=l.createContext(null);function _(t,e){return void 0===t?null:"".concat(t,"-").concat(e)}function z(t){return _(l.useContext(R),t)}var V=l.createContext({}),H=["title","attribute","elementRef"],K=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],Y=["active"],G=function(t){Object(b.a)(n,t);var e=Object(x.a)(n);function n(){return Object(y.a)(this,n),e.apply(this,arguments)}return Object(m.a)(n,[{key:"render",value:function(){var t=this.props,e=t.title,n=t.attribute,i=t.elementRef,o=Object(s.a)(t,H),a=Object(j.a)(o,["eventKey"]);return Object(g.a)(!n,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),l.createElement(v.a.Item,Object(r.a)({},n,{title:"string"===typeof e?e:void 0},a,{ref:i}))}}]),n}(l.Component),W=function(t){var e,n=t.style,c=t.className,u=t.eventKey,h=(t.warnKey,t.disabled),d=t.itemIcon,p=t.children,g=t.role,v=t.onMouseEnter,y=t.onMouseLeave,m=t.onClick,b=t.onKeyDown,x=t.onFocus,j=Object(s.a)(t,K),w=z(u),C=l.useContext(S),E=C.prefixCls,k=C.onItemClick,F=C.disabled,T=C.overflowDisabled,L=C.itemIcon,N=C.selectedKeys,B=C.onActive,R=l.useContext(V)._internalRenderMenuItem,_="".concat(E,"-item"),H=l.useRef(),W=l.useRef(),X=F||h,q=D(u);var U=function(t){return{key:u,keyPath:Object(a.a)(q).reverse(),item:H.current,domEvent:t}},$=d||L,Z=M(u,X,v,y),Q=Z.active,J=Object(s.a)(Z,Y),tt=N.includes(u),et=I(q.length),nt={};"option"===t.role&&(nt["aria-selected"]=tt);var rt=l.createElement(G,Object(r.a)({ref:H,elementRef:W,role:null===g?"none":g||"menuitem",tabIndex:h?null:-1,"data-menu-id":T&&w?null:w},j,J,nt,{component:"li","aria-disabled":h,style:Object(o.a)(Object(o.a)({},et),n),className:f()(_,(e={},Object(i.a)(e,"".concat(_,"-active"),Q),Object(i.a)(e,"".concat(_,"-selected"),tt),Object(i.a)(e,"".concat(_,"-disabled"),X),e),c),onClick:function(t){if(!X){var e=U(t);null===m||void 0===m||m(P(e)),k(e)}},onKeyDown:function(t){if(null===b||void 0===b||b(t),t.which===O.a.ENTER){var e=U(t);null===m||void 0===m||m(P(e)),k(e)}},onFocus:function(t){B(u),null===x||void 0===x||x(t)}}),p,l.createElement(A,{props:Object(o.a)(Object(o.a)({},t),{},{isSelected:tt}),icon:$}));return R&&(rt=R(rt,t,{selected:tt})),rt};var X=function(t){var e=t.eventKey,n=L(),r=D(e);return l.useEffect((function(){if(n)return n.registerPath(e,r),function(){n.unregisterPath(e,r)}}),[r]),n?null:l.createElement(W,t)},q=n(566),U=n(589),$=["label","children","key","type"];function Z(t,e){return Object(U.a)(t).map((function(t,n){if(l.isValidElement(t)){var r,i,o=t.key,c=null!==(r=null===(i=t.props)||void 0===i?void 0:i.eventKey)&&void 0!==r?r:o;(null===c||void 0===c)&&(c="tmp_key-".concat([].concat(Object(a.a)(e),[n]).join("-")));var s={key:c,eventKey:c};return l.cloneElement(t,s)}return t}))}function Q(t,e,n){var i=t;return e&&(i=function t(e){return(e||[]).map((function(e,n){if(e&&"object"===Object(q.a)(e)){var i=e.label,o=e.children,a=e.key,c=e.type,u=Object(s.a)(e,$),f=null!==a&&void 0!==a?a:"tmp-".concat(n);return o||"group"===c?"group"===c?l.createElement(Vt,Object(r.a)({key:f},u,{title:i}),t(o)):l.createElement(yt,Object(r.a)({key:f},u,{title:i}),t(o)):"divider"===c?l.createElement(Ht,Object(r.a)({key:f},u)):l.createElement(X,Object(r.a)({key:f},u),i)}return null})).filter((function(t){return t}))}(e)),Z(i,n)}function J(t){var e=l.useRef(t);e.current=t;var n=l.useCallback((function(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return null===(t=e.current)||void 0===t?void 0:t.call.apply(t,[e].concat(r))}),[]);return t?n:void 0}var tt=["className","children"],et=function(t,e){var n=t.className,i=t.children,o=Object(s.a)(t,tt),a=l.useContext(S),c=a.prefixCls,u=a.mode,h=a.rtl;return l.createElement("ul",Object(r.a)({className:f()(c,h&&"".concat(c,"-rtl"),"".concat(c,"-sub"),"".concat(c,"-").concat("inline"===u?"inline":"vertical"),n)},o,{"data-menu-list":!0,ref:e}),i)},nt=l.forwardRef(et);nt.displayName="SubMenuList";var rt=nt,it=n(607),ot=n(581),at={adjustX:1,adjustY:1},ct={topLeft:{points:["bl","tl"],overflow:at,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:at,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:at,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:at,offset:[4,0]}},st={topLeft:{points:["bl","tl"],overflow:at,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:at,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:at,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:at,offset:[4,0]}};function lt(t,e,n){return e||(n?n[t]||n.other:void 0)}var ut={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function ft(t){var e=t.prefixCls,n=t.visible,r=t.children,a=t.popup,s=t.popupClassName,u=t.popupOffset,h=t.disabled,d=t.mode,p=t.onVisibleChange,g=l.useContext(S),v=g.getPopupContainer,y=g.rtl,m=g.subMenuOpenDelay,b=g.subMenuCloseDelay,x=g.builtinPlacements,O=g.triggerSubMenuAction,j=g.forceSubMenuRender,w=g.rootClassName,C=g.motion,E=g.defaultMotions,M=l.useState(!1),k=Object(c.a)(M,2),P=k[0],A=k[1],I=y?Object(o.a)(Object(o.a)({},st),x):Object(o.a)(Object(o.a)({},ct),x),F=ut[d],T=lt(d,C,E),L=Object(o.a)(Object(o.a)({},T),{},{leavedClassName:"".concat(e,"-hidden"),removeOnLeave:!1,motionAppear:!0}),N=l.useRef();return l.useEffect((function(){return N.current=Object(ot.a)((function(){A(n)})),function(){ot.a.cancel(N.current)}}),[n]),l.createElement(it.a,{prefixCls:e,popupClassName:f()("".concat(e,"-popup"),Object(i.a)({},"".concat(e,"-rtl"),y),s,w),stretch:"horizontal"===d?"minWidth":null,getPopupContainer:v,builtinPlacements:I,popupPlacement:F,popupVisible:P,popup:a,popupAlign:u&&{offset:u},action:h?[]:[O],mouseEnterDelay:m,mouseLeaveDelay:b,onPopupVisibleChange:p,forceRender:j,popupMotion:L},r)}var ht=n(622);function dt(t){var e=t.id,n=t.open,i=t.keyPath,a=t.children,s=l.useContext(S),u=s.prefixCls,f=s.forceSubMenuRender,h=s.motion,d=s.defaultMotions,p=s.mode,g=l.useRef(!1);g.current="inline"===p;var v=l.useState(!g.current),y=Object(c.a)(v,2),m=y[0],b=y[1],x=!!g.current&&n;l.useEffect((function(){g.current&&b(!1)}),[p]);var O=Object(o.a)({},lt("inline",h,d));i.length>1&&(O.motionAppear=!1);var j=O.onVisibleChanged;return O.onVisibleChanged=function(t){return g.current||t||b(!0),null===j||void 0===j?void 0:j(t)},m?null:l.createElement(E,{mode:"inline",locked:!g.current},l.createElement(ht.b,Object(r.a)({visible:x},O,{forceRender:f,removeOnLeave:!1,leavedClassName:"".concat(u,"-hidden")}),(function(t){var n=t.className,r=t.style;return l.createElement(rt,{id:e,className:n,style:r},a)})))}var pt=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],gt=["active"],vt=function(t){var e,n=t.style,a=t.className,u=t.title,h=t.eventKey,d=(t.warnKey,t.disabled),p=t.internalPopupClose,g=t.children,y=t.itemIcon,m=t.expandIcon,b=t.popupClassName,x=t.popupOffset,O=t.onClick,j=t.onMouseEnter,w=t.onMouseLeave,C=t.onTitleClick,k=t.onTitleMouseEnter,F=t.onTitleMouseLeave,T=Object(s.a)(t,pt),L=z(h),N=l.useContext(S),R=N.prefixCls,_=N.mode,H=N.openKeys,K=N.disabled,Y=N.overflowDisabled,G=N.activeKey,W=N.selectedKeys,X=N.itemIcon,q=N.expandIcon,U=N.onItemClick,$=N.onOpenChange,Z=N.onActive,Q=l.useContext(V)._internalRenderSubMenuItem,tt=l.useContext(B).isSubPathKey,et=D(),nt="".concat(R,"-submenu"),it=K||d,ot=l.useRef(),at=l.useRef();var ct=y||X,st=m||q,lt=H.includes(h),ut=!Y&<,ht=tt(W,h),vt=M(h,it,k,F),yt=vt.active,mt=Object(s.a)(vt,gt),bt=l.useState(!1),xt=Object(c.a)(bt,2),Ot=xt[0],jt=xt[1],wt=function(t){it||jt(t)},Ct=l.useMemo((function(){return yt||"inline"!==_&&(Ot||tt([G],h))}),[_,yt,G,Ot,h,tt]),St=I(et.length),Et=J((function(t){null===O||void 0===O||O(P(t)),U(t)})),Mt=L&&"".concat(L,"-popup"),kt=l.createElement("div",Object(r.a)({role:"menuitem",style:St,className:"".concat(nt,"-title"),tabIndex:it?null:-1,ref:ot,title:"string"===typeof u?u:null,"data-menu-id":Y&&L?null:L,"aria-expanded":ut,"aria-haspopup":!0,"aria-controls":Mt,"aria-disabled":it,onClick:function(t){it||(null===C||void 0===C||C({key:h,domEvent:t}),"inline"===_&&$(h,!lt))},onFocus:function(){Z(h)}},mt),u,l.createElement(A,{icon:"horizontal"!==_?st:null,props:Object(o.a)(Object(o.a)({},t),{},{isOpen:ut,isSubMenu:!0})},l.createElement("i",{className:"".concat(nt,"-arrow")}))),Pt=l.useRef(_);if("inline"!==_&&(Pt.current=et.length>1?"vertical":_),!Y){var At=Pt.current;kt=l.createElement(ft,{mode:At,prefixCls:nt,visible:!p&&ut&&"inline"!==_,popupClassName:b,popupOffset:x,popup:l.createElement(E,{mode:"horizontal"===At?"vertical":At},l.createElement(rt,{id:Mt,ref:at},g)),disabled:it,onVisibleChange:function(t){"inline"!==_&&$(h,t)}},kt)}var It=l.createElement(v.a.Item,Object(r.a)({role:"none"},T,{component:"li",style:n,className:f()(nt,"".concat(nt,"-").concat(_),a,(e={},Object(i.a)(e,"".concat(nt,"-open"),ut),Object(i.a)(e,"".concat(nt,"-active"),Ct),Object(i.a)(e,"".concat(nt,"-selected"),ht),Object(i.a)(e,"".concat(nt,"-disabled"),it),e)),onMouseEnter:function(t){wt(!0),null===j||void 0===j||j({key:h,domEvent:t})},onMouseLeave:function(t){wt(!1),null===w||void 0===w||w({key:h,domEvent:t})}}),kt,!Y&&l.createElement(dt,{id:Mt,open:ut,keyPath:et},g));return Q&&(It=Q(It,t,{selected:ht,active:Ct,open:ut,disabled:it})),l.createElement(E,{onItemClick:Et,mode:"horizontal"===_?"vertical":_,itemIcon:ct,expandIcon:st},It)};function yt(t){var e,n=t.eventKey,r=t.children,i=D(n),o=Z(r,i),a=L();return l.useEffect((function(){if(a)return a.registerPath(n,i),function(){a.unregisterPath(n,i)}}),[i]),e=a?o:l.createElement(vt,t,o),l.createElement(N.Provider,{value:i},e)}var mt=n(724),bt=O.a.LEFT,xt=O.a.RIGHT,Ot=O.a.UP,jt=O.a.DOWN,wt=O.a.ENTER,Ct=O.a.ESC,St=O.a.HOME,Et=O.a.END,Mt=[Ot,jt,bt,xt];function kt(t,e){return Object(mt.a)(t,!0).filter((function(t){return e.has(t)}))}function Pt(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!t)return null;var i=kt(t,e),o=i.length,a=i.findIndex((function(t){return n===t}));return r<0?-1===a?a=o-1:a-=1:r>0&&(a+=1),i[a=(a+o)%o]}function At(t,e,n,r,o,a,c,s,u,f){var h=l.useRef(),d=l.useRef();d.current=e;var p=function(){ot.a.cancel(h.current)};return l.useEffect((function(){return function(){p()}}),[]),function(l){var g=l.which;if([].concat(Mt,[wt,Ct,St,Et]).includes(g)){var v,y,m,b=function(){return v=new Set,y=new Map,m=new Map,a().forEach((function(t){var e=document.querySelector("[data-menu-id='".concat(_(r,t),"']"));e&&(v.add(e),m.set(e,t),y.set(t,e))})),v};b();var x=function(t,e){for(var n=t||document.activeElement;n;){if(e.has(n))return n;n=n.parentElement}return null}(y.get(e),v),O=m.get(x),j=function(t,e,n,r){var o,a,c,s;if("inline"===t&&r===wt)return{inlineTrigger:!0};var l=(o={},Object(i.a)(o,Ot,"prev"),Object(i.a)(o,jt,"next"),o),u=(a={},Object(i.a)(a,bt,n?"next":"prev"),Object(i.a)(a,xt,n?"prev":"next"),Object(i.a)(a,jt,"children"),Object(i.a)(a,wt,"children"),a),f=(c={},Object(i.a)(c,Ot,"prev"),Object(i.a)(c,jt,"next"),Object(i.a)(c,wt,"children"),Object(i.a)(c,Ct,"parent"),Object(i.a)(c,bt,n?"children":"parent"),Object(i.a)(c,xt,n?"parent":"children"),c);switch(null===(s={inline:l,horizontal:u,vertical:f,inlineSub:l,horizontalSub:f,verticalSub:f}["".concat(t).concat(e?"":"Sub")])||void 0===s?void 0:s[r]){case"prev":return{offset:-1,sibling:!0};case"next":return{offset:1,sibling:!0};case"parent":return{offset:-1,sibling:!1};case"children":return{offset:1,sibling:!1};default:return null}}(t,1===c(O,!0).length,n,g);if(!j&&g!==St&&g!==Et)return;(Mt.includes(g)||[St,Et].includes(g))&&l.preventDefault();var w=function(t){if(t){var e=t,n=t.querySelector("a");(null===n||void 0===n?void 0:n.getAttribute("href"))&&(e=n);var r=m.get(t);s(r),p(),h.current=Object(ot.a)((function(){d.current===r&&e.focus()}))}};if([St,Et].includes(g)||j.sibling||!x){var C,S,E=kt(C=x&&"inline"!==t?function(t){for(var e=t;e;){if(e.getAttribute("data-menu-list"))return e;e=e.parentElement}return null}(x):o.current,v);S=g===St?E[0]:g===Et?E[E.length-1]:Pt(C,v,x,j.offset),w(S)}else if(j.inlineTrigger)u(O);else if(j.offset>0)u(O,!0),p(),h.current=Object(ot.a)((function(){b();var t=x.getAttribute("aria-controls"),e=Pt(document.getElementById(t),v);w(e)}),5);else if(j.offset<0){var M=c(O,!0),k=M[M.length-2],P=y.get(k);u(k,!1),w(P)}}null===f||void 0===f||f(l)}}var It=Math.random().toFixed(5).toString().slice(2),Ft=0;var Tt="__RC_UTIL_PATH_SPLIT__",Lt=function(t){return t.join(Tt)};function Nt(){var t=l.useState({}),e=Object(c.a)(t,2)[1],n=Object(l.useRef)(new Map),r=Object(l.useRef)(new Map),i=l.useState([]),o=Object(c.a)(i,2),s=o[0],u=o[1],f=Object(l.useRef)(0),h=Object(l.useRef)(!1),d=Object(l.useCallback)((function(t,i){var o=Lt(i);r.current.set(o,t),n.current.set(t,o),f.current+=1;var a,c=f.current;a=function(){c===f.current&&(h.current||e({}))},Promise.resolve().then(a)}),[]),p=Object(l.useCallback)((function(t,e){var i=Lt(e);r.current.delete(i),n.current.delete(t)}),[]),g=Object(l.useCallback)((function(t){u(t)}),[]),v=Object(l.useCallback)((function(t,e){var r=n.current.get(t)||"",i=r.split(Tt);return e&&s.includes(i[0])&&i.unshift("rc-menu-more"),i}),[s]),y=Object(l.useCallback)((function(t,e){return t.some((function(t){return v(t,!0).includes(e)}))}),[v]),m=Object(l.useCallback)((function(t){var e="".concat(n.current.get(t)).concat(Tt),i=new Set;return Object(a.a)(r.current.keys()).forEach((function(t){t.startsWith(e)&&i.add(r.current.get(t))})),i}),[]);return l.useEffect((function(){return function(){h.current=!0}}),[]),{registerPath:d,unregisterPath:p,refreshOverflowKeys:g,isSubPathKey:y,getKeyPath:v,getKeys:function(){var t=Object(a.a)(n.current.keys());return s.length&&t.push("rc-menu-more"),t},getSubPathKeys:m}}var Dt=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],Bt=[],Rt=["className","title","eventKey","children"],_t=["children"],zt=function(t){var e=t.className,n=t.title,i=(t.eventKey,t.children),o=Object(s.a)(t,Rt),a=l.useContext(S).prefixCls,c="".concat(a,"-item-group");return l.createElement("li",Object(r.a)({},o,{onClick:function(t){return t.stopPropagation()},className:f()(c,e)}),l.createElement("div",{className:"".concat(c,"-title"),title:"string"===typeof n?n:void 0},n),l.createElement("ul",{className:"".concat(c,"-list")},i))};function Vt(t){var e=t.children,n=Object(s.a)(t,_t),r=Z(e,D(n.eventKey));return L()?r:l.createElement(zt,Object(j.a)(n,["warnKey"]),r)}function Ht(t){var e=t.className,n=t.style,r=l.useContext(S).prefixCls;return L()?null:l.createElement("li",{className:f()("".concat(r,"-item-divider"),e),style:n})}var Kt=D,Yt=l.forwardRef((function(t,e){var n,u,h=t.prefixCls,g=void 0===h?"rc-menu":h,y=t.rootClassName,m=t.style,b=t.className,x=t.tabIndex,O=void 0===x?0:x,j=t.items,w=t.children,C=t.direction,S=t.id,M=t.mode,k=void 0===M?"vertical":M,A=t.inlineCollapsed,I=t.disabled,F=t.disabledOverflow,L=t.subMenuOpenDelay,N=void 0===L?.1:L,D=t.subMenuCloseDelay,z=void 0===D?.1:D,H=t.forceSubMenuRender,K=t.defaultOpenKeys,Y=t.openKeys,G=t.activeKey,W=t.defaultActiveFirst,q=t.selectable,U=void 0===q||q,$=t.multiple,Z=void 0!==$&&$,tt=t.defaultSelectedKeys,et=t.selectedKeys,nt=t.onSelect,rt=t.onDeselect,it=t.inlineIndent,ot=void 0===it?24:it,at=t.motion,ct=t.defaultMotions,st=t.triggerSubMenuAction,lt=void 0===st?"hover":st,ut=t.builtinPlacements,ft=t.itemIcon,ht=t.expandIcon,dt=t.overflowedIndicator,pt=void 0===dt?"...":dt,gt=t.overflowedIndicatorPopupClassName,vt=t.getPopupContainer,mt=t.onClick,bt=t.onOpenChange,xt=t.onKeyDown,Ot=(t.openAnimation,t.openTransitionName,t._internalRenderMenuItem),jt=t._internalRenderSubMenuItem,wt=Object(s.a)(t,Dt),Ct=l.useMemo((function(){return Q(w,j,Bt)}),[w,j]),St=l.useState(!1),Et=Object(c.a)(St,2),Mt=Et[0],kt=Et[1],Pt=l.useRef(),Tt=function(t){var e=Object(p.a)(t,{value:t}),n=Object(c.a)(e,2),r=n[0],i=n[1];return l.useEffect((function(){Ft+=1;var t="".concat(It,"-").concat(Ft);i("rc-menu-uuid-".concat(t))}),[]),r}(S),Lt="rtl"===C;var Rt=l.useMemo((function(){return"inline"!==k&&"vertical"!==k||!A?[k,!1]:["vertical",A]}),[k,A]),_t=Object(c.a)(Rt,2),zt=_t[0],Vt=_t[1],Ht=l.useState(0),Kt=Object(c.a)(Ht,2),Yt=Kt[0],Gt=Kt[1],Wt=Yt>=Ct.length-1||"horizontal"!==zt||F,Xt=Object(p.a)(K,{value:Y,postState:function(t){return t||Bt}}),qt=Object(c.a)(Xt,2),Ut=qt[0],$t=qt[1],Zt=function(t){$t(t),null===bt||void 0===bt||bt(t)},Qt=l.useState(Ut),Jt=Object(c.a)(Qt,2),te=Jt[0],ee=Jt[1],ne="inline"===zt,re=l.useRef(!1);l.useEffect((function(){ne&&ee(Ut)}),[Ut]),l.useEffect((function(){re.current?ne?$t(te):Zt(Bt):re.current=!0}),[ne]);var ie=Nt(),oe=ie.registerPath,ae=ie.unregisterPath,ce=ie.refreshOverflowKeys,se=ie.isSubPathKey,le=ie.getKeyPath,ue=ie.getKeys,fe=ie.getSubPathKeys,he=l.useMemo((function(){return{registerPath:oe,unregisterPath:ae}}),[oe,ae]),de=l.useMemo((function(){return{isSubPathKey:se}}),[se]);l.useEffect((function(){ce(Wt?Bt:Ct.slice(Yt+1).map((function(t){return t.key})))}),[Yt,Wt]);var pe=Object(p.a)(G||W&&(null===(n=Ct[0])||void 0===n?void 0:n.key),{value:G}),ge=Object(c.a)(pe,2),ve=ge[0],ye=ge[1],me=J((function(t){ye(t)})),be=J((function(){ye(void 0)}));Object(l.useImperativeHandle)(e,(function(){return{list:Pt.current,focus:function(t){var e,n,r,i,o=null!==ve&&void 0!==ve?ve:null===(e=Ct.find((function(t){return!t.props.disabled})))||void 0===e?void 0:e.key;o&&(null===(n=Pt.current)||void 0===n||null===(r=n.querySelector("li[data-menu-id='".concat(_(Tt,o),"']")))||void 0===r||null===(i=r.focus)||void 0===i||i.call(r,t))}}}));var xe=Object(p.a)(tt||[],{value:et,postState:function(t){return Array.isArray(t)?t:null===t||void 0===t?Bt:[t]}}),Oe=Object(c.a)(xe,2),je=Oe[0],we=Oe[1],Ce=J((function(t){null===mt||void 0===mt||mt(P(t)),function(t){if(U){var e,n=t.key,r=je.includes(n);e=Z?r?je.filter((function(t){return t!==n})):[].concat(Object(a.a)(je),[n]):[n],we(e);var i=Object(o.a)(Object(o.a)({},t),{},{selectedKeys:e});r?null===rt||void 0===rt||rt(i):null===nt||void 0===nt||nt(i)}!Z&&Ut.length&&"inline"!==zt&&Zt(Bt)}(t)})),Se=J((function(t,e){var n=Ut.filter((function(e){return e!==t}));if(e)n.push(t);else if("inline"!==zt){var r=fe(t);n=n.filter((function(t){return!r.has(t)}))}d()(Ut,n)||Zt(n)})),Ee=J(vt),Me=At(zt,ve,Lt,Tt,Pt,ue,le,ye,(function(t,e){var n=null!==e&&void 0!==e?e:!Ut.includes(t);Se(t,n)}),xt);l.useEffect((function(){kt(!0)}),[]);var ke=l.useMemo((function(){return{_internalRenderMenuItem:Ot,_internalRenderSubMenuItem:jt}}),[Ot,jt]),Pe="horizontal"!==zt||F?Ct:Ct.map((function(t,e){return l.createElement(E,{key:t.key,overflowDisabled:e>Yt},t)})),Ae=l.createElement(v.a,Object(r.a)({id:S,ref:Pt,prefixCls:"".concat(g,"-overflow"),component:"ul",itemComponent:X,className:f()(g,"".concat(g,"-root"),"".concat(g,"-").concat(zt),b,(u={},Object(i.a)(u,"".concat(g,"-inline-collapsed"),Vt),Object(i.a)(u,"".concat(g,"-rtl"),Lt),u),y),dir:C,style:m,role:"menu",tabIndex:O,data:Pe,renderRawItem:function(t){return t},renderRawRest:function(t){var e=t.length,n=e?Ct.slice(-e):null;return l.createElement(yt,{eventKey:"rc-menu-more",title:pt,disabled:Wt,internalPopupClose:0===e,popupClassName:gt},n)},maxCount:"horizontal"!==zt||F?v.a.INVALIDATE:v.a.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(t){Gt(t)},onKeyDown:Me},wt));return l.createElement(V.Provider,{value:ke},l.createElement(R.Provider,{value:Tt},l.createElement(E,{prefixCls:g,rootClassName:y,mode:zt,openKeys:Ut,rtl:Lt,disabled:I,motion:Mt?at:null,defaultMotions:Mt?ct:null,activeKey:ve,onActive:me,onInactive:be,selectedKeys:je,inlineIndent:ot,subMenuOpenDelay:N,subMenuCloseDelay:z,forceSubMenuRender:H,builtinPlacements:ut,triggerSubMenuAction:lt,getPopupContainer:Ee,itemIcon:ft,expandIcon:ht,onItemClick:Ce,onOpenChange:Se},l.createElement(B.Provider,{value:de},Ae),l.createElement("div",{style:{display:"none"},"aria-hidden":!0},l.createElement(T.Provider,{value:he},Ct)))))}));Yt.Item=X,Yt.SubMenu=yt,Yt.ItemGroup=Vt,Yt.Divider=Ht;e.g=Yt},612:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CloseOutlined";e.a=i.forwardRef(c)},613:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return c}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(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}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}Object.create;function c(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,c=o.length;a<c;a++,i++)r[i]=o[a];return r}Object.create},614:function(t,e,n){"use strict";n.d(e,"f",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return g})),n.d(e,"a",(function(){return y})),n.d(e,"g",(function(){return m})),n.d(e,"b",(function(){return b}));var r=n(566),i=n(565),o=n(559),a=n(567),c=n(575),s=n(589),l=n(568),u=n(659),f=["children"];function h(t,e){return null!==t&&void 0!==t?t:e}function d(t){var e=t||{},n=e.title||"title";return{title:n,_title:e._title||[n],key:e.key||"key",children:e.children||"children"}}function p(t){return function t(e){return Object(s.a)(e).map((function(e){if(!Object(u.h)(e))return Object(l.a)(!e,"Tree/TreeNode can only accept TreeNode as children."),null;var n=e.key,r=e.props,i=r.children,c=Object(a.a)(r,f),s=Object(o.a)({key:n},c),h=t(i);return h.length&&(s.children=h),s})).filter((function(t){return t}))}(t)}function g(t,e,n){var r=d(n),a=r._title,s=r.key,l=r.children,f=new Set(!0===e?[]:e),p=[];return function t(n){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map((function(d,g){for(var v,y=Object(u.g)(r?r.pos:"0",g),m=h(d[s],y),b=0;b<a.length;b+=1){var x=a[b];if(void 0!==d[x]){v=d[x];break}}var O=Object(o.a)(Object(o.a)({},Object(c.a)(d,[].concat(Object(i.a)(a),[s,l]))),{},{title:v,key:m,parent:r,pos:y,children:null,data:d,isStart:[].concat(Object(i.a)(r?r.isStart:[]),[0===g]),isEnd:[].concat(Object(i.a)(r?r.isEnd:[]),[g===n.length-1])});return p.push(O),!0===e||f.has(m)?O.children=t(d[l]||[],O):O.children=[],O}))}(t),p}function v(t,e,n){var o,a=("object"===Object(r.a)(n)?n:{externalGetKey:n})||{},c=a.childrenPropName,s=a.externalGetKey,l=d(a.fieldNames),f=l.key,p=l.children,g=c||p;s?"string"===typeof s?o=function(t){return t[s]}:"function"===typeof s&&(o=function(t){return s(t)}):o=function(t,e){return h(t[f],e)},function n(r,a,c,s){var l=r?r[g]:t,f=r?Object(u.g)(c.pos,a):"0",h=r?[].concat(Object(i.a)(s),[r]):[];if(r){var d=o(r,f),p={node:r,index:a,pos:f,key:d,parentPos:c.node?c.pos:null,level:c.level+1,nodes:h};e(p)}l&&l.forEach((function(t,e){n(t,e,{node:r,pos:f,level:c?c.level+1:-1},h)}))}(null)}function y(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.initWrapper,r=e.processEntity,i=e.onProcessFinished,o=e.externalGetKey,a=e.childrenPropName,c=e.fieldNames,s=arguments.length>2?arguments[2]:void 0,l=o||s,u={},f={},d={posEntities:u,keyEntities:f};return n&&(d=n(d)||d),v(t,(function(t){var e=t.node,n=t.index,i=t.pos,o=t.key,a=t.parentPos,c=t.level,s={node:e,nodes:t.nodes,index:n,key:o,pos:i,level:c},l=h(o,i);u[i]=s,f[l]=s,s.parent=u[a],s.parent&&(s.parent.children=s.parent.children||[],s.parent.children.push(s)),r&&r(s,d)}),{externalGetKey:l,childrenPropName:a,fieldNames:c}),i&&i(d),d}function m(t,e){var n=e.expandedKeys,r=e.selectedKeys,i=e.loadedKeys,o=e.loadingKeys,a=e.checkedKeys,c=e.halfCheckedKeys,s=e.dragOverNodeKey,l=e.dropPosition,u=e.keyEntities[t];return{eventKey:t,expanded:-1!==n.indexOf(t),selected:-1!==r.indexOf(t),loaded:-1!==i.indexOf(t),loading:-1!==o.indexOf(t),checked:-1!==a.indexOf(t),halfChecked:-1!==c.indexOf(t),pos:String(u?u.pos:""),dragOver:s===t&&0===l,dragOverGapTop:s===t&&-1===l,dragOverGapBottom:s===t&&1===l}}function b(t){var e=t.data,n=t.expanded,r=t.selected,i=t.checked,a=t.loaded,c=t.loading,s=t.halfChecked,u=t.dragOver,f=t.dragOverGapTop,h=t.dragOverGapBottom,d=t.pos,p=t.active,g=t.eventKey,v=Object(o.a)(Object(o.a)({},e),{},{expanded:n,selected:r,checked:i,loaded:a,loading:c,halfChecked:s,dragOver:u,dragOverGapTop:f,dragOverGapBottom:h,pos:d,active:p,key:g});return"props"in v||Object.defineProperty(v,"props",{get:function(){return Object(l.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),t}}),v}},616:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="SearchOutlined";e.a=i.forwardRef(c)},617:function(t,e,n){"use strict";var r=n(623),i=n(670),o=n(601),a=n(621),c="${label} is not a valid ${type}",s={locale:"en",Pagination:r.a,DatePicker:o.a,TimePicker:a.a,Calendar:i.a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckall:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:c,method:c,array:c,object:c,number:c,date:c,boolean:c,integer:c,float:c,regexp:c,email:c,url:c,hex:c},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"}};e.a=s},618:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return function(e){return t.reduce((function(t,e){return e(t)}),e)}}n.d(e,"f",(function(){return r})),n.d(e,"t",(function(){return i.a})),n.d(e,"y",(function(){return a})),n.d(e,"r",(function(){return c.b})),n.d(e,"a",(function(){return c.a})),n.d(e,"k",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"i",(function(){return f})),n.d(e,"j",(function(){return h})),n.d(e,"e",(function(){return d.a})),n.d(e,"n",(function(){return d.c})),n.d(e,"l",(function(){return d.b})),n.d(e,"A",(function(){return g})),n.d(e,"m",(function(){return m})),n.d(e,"c",(function(){return b.a})),n.d(e,"q",(function(){return x})),n.d(e,"w",(function(){return j.b})),n.d(e,"v",(function(){return j.a})),n.d(e,"o",(function(){return w.a})),n.d(e,"p",(function(){return w.b})),n.d(e,"b",(function(){return C.a})),n.d(e,"z",(function(){return C.c})),n.d(e,"u",(function(){return C.b})),n.d(e,"s",(function(){return S.b})),n.d(e,"g",(function(){return S.a})),n.d(e,"x",(function(){return S.c}));var i=n(2190),o=n(579);function a(t,e){return e?Object(o.ib)(e,(function(t,e,n){return t.replace(new RegExp("{\\s*"+n+"\\s*}","g"),e)}),t):t}var c=n(1678);function s(t){if(!t)return{width:0,height:0};var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function l(t,e){return t.geometries.find((function(t){return t.type===e}))}function u(t){return Object(o.ib)(t.geometries,(function(t,e){return t.concat(e.elements)}),[])}function f(t){return Object(o.s)(t,["views","length"],0)<=0?u(t):Object(o.ib)(t.views,(function(t,e){return t.concat(f(e))}),u(t))}function h(t){return Object(o.s)(t,["views","length"],0)<=0?t.geometries:Object(o.ib)(t.views,(function(t,e){return t.concat(e.geometries)}),t.geometries)}var d=n(1679),p=n(613);function g(t){if(!Object(o.R)(t,"Object"))return t;var e=Object(p.a)({},t);return e.formatter&&!e.content&&(e.content=e.formatter),e}var v=n(916);function y(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var c,s,l,u=function(t,e,n,r){var i,o,a,c,s=[],l=!!r;if(l){a=[1/0,1/0],c=[-1/0,-1/0];for(var u=0,f=t.length;u<f;u++){var h=t[u];a=v.c.min([0,0],a,h),c=v.c.max([0,0],c,h)}a=v.c.min([0,0],a,r[0]),c=v.c.max([0,0],c,r[1])}u=0;for(var d=t.length;u<d;u++){h=t[u];if(n)i=t[u?u-1:d-1],o=t[(u+1)%d];else{if(0===u||u===d-1){s.push(h);continue}i=t[u-1],o=t[u+1]}var p=[0,0];p=v.c.sub(p,o,i),p=v.c.scale(p,p,e);var g=v.c.distance(h,i),y=v.c.distance(h,o),m=g+y;0!==m&&(g/=m,y/=m);var b=v.c.scale([0,0],p,-g),x=v.c.scale([0,0],p,y),O=v.c.add([0,0],h,b),j=v.c.add([0,0],h,x);l&&(O=v.c.max([0,0],O,a),O=v.c.min([0,0],O,c),j=v.c.max([0,0],j,a),j=v.c.min([0,0],j,c)),s.push(O),s.push(j)}return n&&s.push(s.shift()),s}(i,.4,r,n),f=i.length,h=[];for(o=0;o<f-1;o++)c=u[2*o],s=u[2*o+1],l=i[o+1],h.push(["C",c[0],c[1],s[0],s[1],l[0],l[1]]);return r&&(c=u[f],s=u[f+1],l=i[0],h.push(["C",c[0],c[1],s[0],s[1],l[0],l[1]])),h}function m(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e);for(var a=0,c=t.length;a<c;a++){var s=t[a];o&&o.x===s.x&&o.y===s.y||(r.push(s.x),r.push(s.y),o=s)}var l=y(r,e,n||[[0,0],[1,1]]);return l.unshift(["M",i.x,i.y]),l}var b=n(2191);function x(t){return t?t.match(/(([A-Z]{0,1}[a-z]*[^A-Z])|([A-Z]{1}))/g).map((function(t){return t.toLowerCase()})).join("-"):t}var O,j=n(1711);Object(o.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=void 0===r?"sans-serif":r,a=e.fontWeight,c=e.fontStyle,s=e.fontVariant,l=(O||(O=document.createElement("canvas").getContext("2d")),O);return l.font=[c,a,s,n+"px",i].join(" "),l.measureText(Object(o.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(p.d)([t],Object(o.xb)(e)).join("")}));var w=n(1680),C=n(1681),S=n(1407)},619:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(656);function i(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(s){i=!0,o=s}finally{try{r||null==c.return||c.return()}finally{if(i)throw o}}return n}}(t,e)||Object(r.a)(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},621:function(t,e,n){"use strict";e.a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]}},623:function(t,e,n){"use strict";e.a={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},627:function(t,e,n){"use strict";var r=n(559),i=n(2),o={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"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="LeftOutlined";e.a=i.forwardRef(c)},631:function(t,e,n){"use strict";var r=n(2),i=n(775),o=n(645);e.a=function(t){return r.createElement(i.a,null,(function(e){var n=(0,e.getPrefixCls)("empty");switch(t){case"Table":case"List":return r.createElement(o.a,{image:o.a.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r.createElement(o.a,{image:o.a.PRESENTED_IMAGE_SIMPLE,className:"".concat(n,"-small")});default:return r.createElement(o.a,null)}}))}},632:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="DownOutlined";e.a=i.forwardRef(c)},634:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r={adjustX:1,adjustY:1},i=[0,0],o={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:i}}},635:function(t,e,n){"use strict";var r=n(23),i=n(561),o=n(567),a=n(559),c=n(570),s=n(571),l=n(582),u=n(572),f=n(573),h=n(2),d=n(560),p=n.n(d),g=n(593),v=n(685),y=function(t){for(var e=t.prefixCls,n=t.level,r=t.isStart,o=t.isEnd,a="".concat(e,"-indent-unit"),c=[],s=0;s<n;s+=1){var l;c.push(h.createElement("span",{key:s,className:p()(a,(l={},Object(i.a)(l,"".concat(a,"-start"),r[s]),Object(i.a)(l,"".concat(a,"-end"),o[s]),l))}))}return h.createElement("span",{"aria-hidden":"true",className:"".concat(e,"-indent")},c)},m=h.memo(y),b=n(614),x=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],O=function(t){Object(u.a)(n,t);var e=Object(f.a)(n);function n(){var t;Object(c.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))).state={dragNodeHighlight:!1},t.selectHandle=void 0,t.onSelectorClick=function(e){(0,t.props.context.onNodeClick)(e,Object(b.b)(t.props)),t.isSelectable()?t.onSelect(e):t.onCheck(e)},t.onSelectorDoubleClick=function(e){(0,t.props.context.onNodeDoubleClick)(e,Object(b.b)(t.props))},t.onSelect=function(e){if(!t.isDisabled()){var n=t.props.context.onNodeSelect;e.preventDefault(),n(e,Object(b.b)(t.props))}},t.onCheck=function(e){if(!t.isDisabled()){var n=t.props,r=n.disableCheckbox,i=n.checked,o=t.props.context.onNodeCheck;if(t.isCheckable()&&!r){e.preventDefault();var a=!i;o(e,Object(b.b)(t.props),a)}}},t.onMouseEnter=function(e){(0,t.props.context.onNodeMouseEnter)(e,Object(b.b)(t.props))},t.onMouseLeave=function(e){(0,t.props.context.onNodeMouseLeave)(e,Object(b.b)(t.props))},t.onContextMenu=function(e){(0,t.props.context.onNodeContextMenu)(e,Object(b.b)(t.props))},t.onDragStart=function(e){var n=t.props.context.onNodeDragStart;e.stopPropagation(),t.setState({dragNodeHighlight:!0}),n(e,Object(l.a)(t));try{e.dataTransfer.setData("text/plain","")}catch(r){}},t.onDragEnter=function(e){var n=t.props.context.onNodeDragEnter;e.preventDefault(),e.stopPropagation(),n(e,Object(l.a)(t))},t.onDragOver=function(e){var n=t.props.context.onNodeDragOver;e.preventDefault(),e.stopPropagation(),n(e,Object(l.a)(t))},t.onDragLeave=function(e){var n=t.props.context.onNodeDragLeave;e.stopPropagation(),n(e,Object(l.a)(t))},t.onDragEnd=function(e){var n=t.props.context.onNodeDragEnd;e.stopPropagation(),t.setState({dragNodeHighlight:!1}),n(e,Object(l.a)(t))},t.onDrop=function(e){var n=t.props.context.onNodeDrop;e.preventDefault(),e.stopPropagation(),t.setState({dragNodeHighlight:!1}),n(e,Object(l.a)(t))},t.onExpand=function(e){var n=t.props,r=n.loading,i=n.context.onNodeExpand;r||i(e,Object(b.b)(t.props))},t.setSelectHandle=function(e){t.selectHandle=e},t.getNodeState=function(){var e=t.props.expanded;return t.isLeaf()?null:e?"open":"close"},t.hasChildren=function(){var e=t.props.eventKey;return!!((t.props.context.keyEntities[e]||{}).children||[]).length},t.isLeaf=function(){var e=t.props,n=e.isLeaf,r=e.loaded,i=t.props.context.loadData,o=t.hasChildren();return!1!==n&&(n||!i&&!o||i&&r&&!o)},t.isDisabled=function(){var e=t.props.disabled;return!(!t.props.context.disabled&&!e)},t.isCheckable=function(){var e=t.props.checkable,n=t.props.context.checkable;return!(!n||!1===e)&&n},t.syncLoadData=function(e){var n=e.expanded,r=e.loading,i=e.loaded,o=t.props.context,a=o.loadData,c=o.onNodeLoad;r||a&&n&&!t.isLeaf()&&(t.hasChildren()||i||c(Object(b.b)(t.props)))},t.isDraggable=function(){var e=t.props,n=e.data,r=e.context.draggable;return!(!r||r.nodeDraggable&&!r.nodeDraggable(n))},t.renderDragHandler=function(){var e=t.props.context,n=e.draggable,r=e.prefixCls;return(null===n||void 0===n?void 0:n.icon)?h.createElement("span",{className:"".concat(r,"-draggable-icon")},n.icon):null},t.renderSwitcherIconDom=function(e){var n=t.props.switcherIcon,r=t.props.context.switcherIcon,i=n||r;return"function"===typeof i?i(Object(a.a)(Object(a.a)({},t.props),{},{isLeaf:e})):i},t.renderSwitcher=function(){var e=t.props.expanded,n=t.props.context.prefixCls;if(t.isLeaf()){var r=t.renderSwitcherIconDom(!0);return!1!==r?h.createElement("span",{className:p()("".concat(n,"-switcher"),"".concat(n,"-switcher-noop"))},r):null}var i=p()("".concat(n,"-switcher"),"".concat(n,"-switcher_").concat(e?"open":"close")),o=t.renderSwitcherIconDom(!1);return!1!==o?h.createElement("span",{onClick:t.onExpand,className:i},o):null},t.renderCheckbox=function(){var e=t.props,n=e.checked,r=e.halfChecked,i=e.disableCheckbox,o=t.props.context.prefixCls,a=t.isDisabled(),c=t.isCheckable();if(!c)return null;var s="boolean"!==typeof c?c:null;return h.createElement("span",{className:p()("".concat(o,"-checkbox"),n&&"".concat(o,"-checkbox-checked"),!n&&r&&"".concat(o,"-checkbox-indeterminate"),(a||i)&&"".concat(o,"-checkbox-disabled")),onClick:t.onCheck},s)},t.renderIcon=function(){var e=t.props.loading,n=t.props.context.prefixCls;return h.createElement("span",{className:p()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(t.getNodeState()||"docu"),e&&"".concat(n,"-icon_loading"))})},t.renderSelector=function(){var e,n,r=t.state.dragNodeHighlight,i=t.props,o=i.title,a=i.selected,c=i.icon,s=i.loading,l=i.data,u=t.props.context,f=u.prefixCls,d=u.showIcon,g=u.icon,v=u.loadData,y=u.titleRender,m=t.isDisabled(),b="".concat(f,"-node-content-wrapper");if(d){var x=c||g;e=x?h.createElement("span",{className:p()("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"===typeof x?x(t.props):x):t.renderIcon()}else v&&s&&(e=t.renderIcon());n="function"===typeof o?o(l):y?y(l):o;var O=h.createElement("span",{className:"".concat(f,"-title")},n);return h.createElement("span",{ref:t.setSelectHandle,title:"string"===typeof o?o:"",className:p()("".concat(b),"".concat(b,"-").concat(t.getNodeState()||"normal"),!m&&(a||r)&&"".concat(f,"-node-selected")),onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onContextMenu:t.onContextMenu,onClick:t.onSelectorClick,onDoubleClick:t.onSelectorDoubleClick},e,O,t.renderDropIndicator())},t.renderDropIndicator=function(){var e=t.props,n=e.disabled,r=e.eventKey,i=t.props.context,o=i.draggable,a=i.dropLevelOffset,c=i.dropPosition,s=i.prefixCls,l=i.indent,u=i.dropIndicatorRender,f=i.dragOverNodeKey,h=i.direction;return!n&&!1!==o&&f===r?u({dropPosition:c,dropLevelOffset:a,indent:l,prefixCls:s,direction:h}):null},t}return Object(s.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var t=this.props.selectable,e=this.props.context.selectable;return"boolean"===typeof t?t:e}},{key:"render",value:function(){var t,e=this.props,n=e.eventKey,a=e.className,c=e.style,s=e.dragOver,l=e.dragOverGapTop,u=e.dragOverGapBottom,f=e.isLeaf,d=e.isStart,v=e.isEnd,y=e.expanded,O=e.selected,j=e.checked,w=e.halfChecked,C=e.loading,S=e.domRef,E=e.active,M=(e.data,e.onMouseMove),k=e.selectable,P=Object(o.a)(e,x),A=this.props.context,I=A.prefixCls,F=A.filterTreeNode,T=A.keyEntities,L=A.dropContainerKey,N=A.dropTargetKey,D=A.draggingNodeKey,B=this.isDisabled(),R=Object(g.a)(P,{aria:!0,data:!0}),_=(T[n]||{}).level,z=v[v.length-1],V=this.isDraggable(),H=!B&&V,K=D===n,Y=void 0!==k?{"aria-selected":!!k}:void 0;return h.createElement("div",Object(r.a)({ref:S,className:p()(a,"".concat(I,"-treenode"),(t={},Object(i.a)(t,"".concat(I,"-treenode-disabled"),B),Object(i.a)(t,"".concat(I,"-treenode-switcher-").concat(y?"open":"close"),!f),Object(i.a)(t,"".concat(I,"-treenode-checkbox-checked"),j),Object(i.a)(t,"".concat(I,"-treenode-checkbox-indeterminate"),w),Object(i.a)(t,"".concat(I,"-treenode-selected"),O),Object(i.a)(t,"".concat(I,"-treenode-loading"),C),Object(i.a)(t,"".concat(I,"-treenode-active"),E),Object(i.a)(t,"".concat(I,"-treenode-leaf-last"),z),Object(i.a)(t,"".concat(I,"-treenode-draggable"),H),Object(i.a)(t,"dragging",K),Object(i.a)(t,"drop-target",N===n),Object(i.a)(t,"drop-container",L===n),Object(i.a)(t,"drag-over",!B&&s),Object(i.a)(t,"drag-over-gap-top",!B&&l),Object(i.a)(t,"drag-over-gap-bottom",!B&&u),Object(i.a)(t,"filter-node",F&&F(Object(b.b)(this.props))),t)),style:c,draggable:H,"aria-grabbed":K,onDragStart:H?this.onDragStart:void 0,onDragEnter:V?this.onDragEnter:void 0,onDragOver:V?this.onDragOver:void 0,onDragLeave:V?this.onDragLeave:void 0,onDrop:V?this.onDrop:void 0,onDragEnd:V?this.onDragEnd:void 0,onMouseMove:M},Y,R),h.createElement(m,{prefixCls:I,level:_,isStart:d,isEnd:v}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(h.Component),j=function(t){return h.createElement(v.a.Consumer,null,(function(e){return h.createElement(O,Object(r.a)({},t,{context:e}))}))};j.displayName="TreeNode",j.defaultProps={title:"---"},j.isTreeNode=1;e.a=j},636:function(t,e,n){"use strict";var r=n(23),i=n(570),o=n(571),a=n(582),c=n(572),s=n(573),l=n(773),u=n(588),f=n(2),h=n(775),d=n(581),p=0,g={};function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=p++,r=e;function i(){(r-=1)<=0?(t(),delete g[n]):g[n]=Object(d.a)(i)}return g[n]=Object(d.a)(i),n}v.cancel=function(t){void 0!==t&&(d.a.cancel(g[t]),delete g[t])},v.ids=g;var y,m=n(578);function b(t){return!t||null===t.offsetParent||t.hidden}function x(t){var e=(t||"").match(/rgba?\((\d*), (\d*), (\d*)(, [\d.]*)?\)/);return!(e&&e[1]&&e[2]&&e[3])||!(e[1]===e[2]&&e[2]===e[3])}var O=function(t){Object(c.a)(n,t);var e=Object(s.a)(n);function n(){var t;return Object(i.a)(this,n),(t=e.apply(this,arguments)).containerRef=f.createRef(),t.animationStart=!1,t.destroyed=!1,t.onClick=function(e,n){var r,i,o=t.props,c=o.insertExtraNode;if(!(o.disabled||!e||b(e)||e.className.indexOf("-leave")>=0)){t.extraNode=document.createElement("div");var s=Object(a.a)(t).extraNode,u=t.context.getPrefixCls;s.className="".concat(u(""),"-click-animating-node");var f=t.getAttributeName();if(e.setAttribute(f,"true"),n&&"#ffffff"!==n&&"rgb(255, 255, 255)"!==n&&x(n)&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&"transparent"!==n){s.style.borderColor=n;var h=(null===(r=e.getRootNode)||void 0===r?void 0:r.call(e))||e.ownerDocument,d=h instanceof Document?h.body:null!==(i=h.firstChild)&&void 0!==i?i:h;y=Object(l.a)("\n [".concat(u(""),"-click-animating-without-extra-node='true']::after, .").concat(u(""),"-click-animating-node {\n --antd-wave-shadow-color: ").concat(n,";\n }"),"antd-wave",{csp:t.csp,attachTo:d})}c&&e.appendChild(s),["transition","animation"].forEach((function(n){e.addEventListener("".concat(n,"start"),t.onTransitionStart),e.addEventListener("".concat(n,"end"),t.onTransitionEnd)}))}},t.onTransitionStart=function(e){if(!t.destroyed){var n=t.containerRef.current;e&&e.target===n&&!t.animationStart&&t.resetEffect(n)}},t.onTransitionEnd=function(e){e&&"fadeEffect"===e.animationName&&t.resetEffect(e.target)},t.bindAnimationEvent=function(e){if(e&&e.getAttribute&&!e.getAttribute("disabled")&&!(e.className.indexOf("disabled")>=0)){var n=function(n){if("INPUT"!==n.target.tagName&&!b(n.target)){t.resetEffect(e);var r=getComputedStyle(e).getPropertyValue("border-top-color")||getComputedStyle(e).getPropertyValue("border-color")||getComputedStyle(e).getPropertyValue("background-color");t.clickWaveTimeoutId=window.setTimeout((function(){return t.onClick(e,r)}),0),v.cancel(t.animationStartId),t.animationStart=!0,t.animationStartId=v((function(){t.animationStart=!1}),10)}};return e.addEventListener("click",n,!0),{cancel:function(){e.removeEventListener("click",n,!0)}}}},t.renderWave=function(e){var n=e.csp,r=t.props.children;if(t.csp=n,!f.isValidElement(r))return r;var i=t.containerRef;return Object(u.c)(r)&&(i=Object(u.a)(r.ref,t.containerRef)),Object(m.a)(r,{ref:i})},t}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1;var t=this.containerRef.current;t&&1===t.nodeType&&(this.instance=this.bindAnimationEvent(t))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroyed=!0}},{key:"getAttributeName",value:function(){var t=this.context.getPrefixCls,e=this.props.insertExtraNode;return"".concat(t(""),e?"-click-animating":"-click-animating-without-extra-node")}},{key:"resetEffect",value:function(t){var e=this;if(t&&t!==this.extraNode&&t instanceof Element){var n=this.props.insertExtraNode,r=this.getAttributeName();t.setAttribute(r,"false"),y&&(y.innerHTML=""),n&&this.extraNode&&t.contains(this.extraNode)&&t.removeChild(this.extraNode),["transition","animation"].forEach((function(n){t.removeEventListener("".concat(n,"start"),e.onTransitionStart),t.removeEventListener("".concat(n,"end"),e.onTransitionEnd)}))}}},{key:"render",value:function(){return f.createElement(h.a,null,this.renderWave)}}]),n}(f.Component);O.contextType=h.b;var j=Object(f.forwardRef)((function(t,e){return f.createElement(O,Object(r.a)({ref:e},t))}));e.a=j},637:function(t,e,n){"use strict";n.d(e,"b",(function(){return I})),n.d(e,"c",(function(){return F})),n.d(e,"d",(function(){return T}));var r=n(561),i=n(23),o=n(566),a=n(597),c=n(560),s=n.n(c),l=n(2),u=n.n(l);function f(t){return!(!t.addonBefore&&!t.addonAfter)}function h(t){return!!(t.prefix||t.suffix||t.allowClear)}function d(t,e,n,r){if(n){var i=e;if("click"===e.type){var o=t.cloneNode(!0);return i=Object.create(e,{target:{value:o},currentTarget:{value:o}}),o.value="",void n(i)}if(void 0!==r)return i=Object.create(e,{target:{value:t},currentTarget:{value:t}}),t.value=r,void n(i);n(i)}}function p(t){return"undefined"===typeof t||null===t?"":String(t)}var g=function(t){var e=t.inputElement,n=t.prefixCls,i=t.prefix,a=t.suffix,c=t.addonBefore,d=t.addonAfter,p=t.className,g=t.style,v=t.affixWrapperClassName,y=t.groupClassName,m=t.wrapperClassName,b=t.disabled,x=t.readOnly,O=t.focused,j=t.triggerFocus,w=t.allowClear,C=t.value,S=t.handleReset,E=t.hidden,M=Object(l.useRef)(null),k=Object(l.cloneElement)(e,{value:C,hidden:E});if(h(t)){var P,A="".concat(n,"-affix-wrapper"),I=s()(A,(P={},Object(r.a)(P,"".concat(A,"-disabled"),b),Object(r.a)(P,"".concat(A,"-focused"),O),Object(r.a)(P,"".concat(A,"-readonly"),x),Object(r.a)(P,"".concat(A,"-input-with-clear-btn"),a&&w&&C),P),!f(t)&&p,v),F=(a||w)&&u.a.createElement("span",{className:"".concat(n,"-suffix")},function(){var t;if(!w)return null;var e=!b&&!x&&C,i="".concat(n,"-clear-icon"),c="object"===Object(o.a)(w)&&(null===w||void 0===w?void 0:w.clearIcon)?w.clearIcon:"\u2716";return u.a.createElement("span",{onClick:S,onMouseDown:function(t){return t.preventDefault()},className:s()(i,(t={},Object(r.a)(t,"".concat(i,"-hidden"),!e),Object(r.a)(t,"".concat(i,"-has-suffix"),!!a),t)),role:"button",tabIndex:-1},c)}(),a);k=u.a.createElement("span",{className:I,style:g,hidden:!f(t)&&E,onMouseDown:function(t){var e;(null===(e=M.current)||void 0===e?void 0:e.contains(t.target))&&(null===j||void 0===j||j())},ref:M},i&&u.a.createElement("span",{className:"".concat(n,"-prefix")},i),Object(l.cloneElement)(e,{style:null,value:C,hidden:null}),F)}if(f(t)){var T="".concat(n,"-group"),L="".concat(T,"-addon"),N=s()("".concat(n,"-wrapper"),T,m),D=s()("".concat(n,"-group-wrapper"),p,y);return u.a.createElement("span",{className:D,style:g,hidden:E},u.a.createElement("span",{className:N},c&&u.a.createElement("span",{className:L},c),Object(l.cloneElement)(k,{style:null,hidden:null}),d&&u.a.createElement("span",{className:L},d)))}return k},v=n(565),y=n(559),m=n(563),b=n(567),x=n(575),O=n(577),j=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","inputClassName"],w=Object(l.forwardRef)((function(t,e){var n=t.autoComplete,i=t.onChange,a=t.onFocus,c=t.onBlur,w=t.onPressEnter,C=t.onKeyDown,S=t.prefixCls,E=void 0===S?"rc-input":S,M=t.disabled,k=t.htmlSize,P=t.className,A=t.maxLength,I=t.suffix,F=t.showCount,T=t.type,L=void 0===T?"text":T,N=t.inputClassName,D=Object(b.a)(t,j),B=Object(O.a)(t.defaultValue,{value:t.value}),R=Object(m.a)(B,2),_=R[0],z=R[1],V=Object(l.useState)(!1),H=Object(m.a)(V,2),K=H[0],Y=H[1],G=Object(l.useRef)(null),W=function(t){G.current&&function(t,e){if(t){t.focus(e);var n=(e||{}).cursor;if(n){var r=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(r,r);break;default:t.setSelectionRange(0,r)}}}}(G.current,t)};Object(l.useImperativeHandle)(e,(function(){return{focus:W,blur:function(){var t;null===(t=G.current)||void 0===t||t.blur()},setSelectionRange:function(t,e,n){var r;null===(r=G.current)||void 0===r||r.setSelectionRange(t,e,n)},select:function(){var t;null===(t=G.current)||void 0===t||t.select()},input:G.current}})),Object(l.useEffect)((function(){Y((function(t){return(!t||!M)&&t}))}),[M]);var X=function(e){void 0===t.value&&z(e.target.value),G.current&&d(G.current,e,i)},q=function(t){w&&"Enter"===t.key&&w(t),null===C||void 0===C||C(t)},U=function(t){Y(!0),null===a||void 0===a||a(t)},$=function(t){Y(!1),null===c||void 0===c||c(t)};return u.a.createElement(g,Object(y.a)(Object(y.a)({},D),{},{prefixCls:E,className:P,inputElement:function(){var e=Object(x.a)(t,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","affixWrapperClassName","groupClassName","inputClassName","wrapperClassName","htmlSize"]);return u.a.createElement("input",Object(y.a)(Object(y.a)({autoComplete:n},e),{},{onChange:X,onFocus:U,onBlur:$,onKeyDown:q,className:s()(E,Object(r.a)({},"".concat(E,"-disabled"),M),N,!f(t)&&!h(t)&&P),ref:G,size:k,type:L}))}(),handleReset:function(t){z(""),W(),G.current&&d(G.current,t,i)},value:p(_),focused:K,triggerFocus:W,suffix:function(){var t=Number(A)>0;if(I||F){var e=Object(v.a)(p(_)).length,n="object"===Object(o.a)(F)?F.formatter({count:e,maxLength:A}):"".concat(e).concat(t?" / ".concat(A):"");return u.a.createElement(u.a.Fragment,null,!!F&&u.a.createElement("span",{className:s()("".concat(E,"-show-count-suffix"),Object(r.a)({},"".concat(E,"-show-count-has-suffix"),!!I))},n),I)}return null}(),disabled:M}))})),C=n(588),S=n(775),E=n(591),M=n(587),k=n(583),P=n(594);var A=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function I(t){return"undefined"===typeof t||null===t?"":String(t)}function F(t,e,n,r){if(n){var i=e;if("click"===e.type){var o=t.cloneNode(!0);return i=Object.create(e,{target:{value:o},currentTarget:{value:o}}),o.value="",void n(i)}if(void 0!==r)return i=Object.create(e,{target:{value:t},currentTarget:{value:t}}),t.value=r,void n(i);n(i)}}function T(t,e){if(t){t.focus(e);var n=(e||{}).cursor;if(n){var r=t.value.length;switch(n){case"start":t.setSelectionRange(0,0);break;case"end":t.setSelectionRange(r,r);break;default:t.setSelectionRange(0,r)}}}}var L=Object(l.forwardRef)((function(t,e){var n,c,f,h=t.prefixCls,d=t.bordered,p=void 0===d||d,g=t.status,v=t.size,y=t.disabled,m=t.onBlur,b=t.onFocus,x=t.suffix,O=t.allowClear,j=t.addonAfter,I=t.addonBefore,F=A(t,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore"]),T=u.a.useContext(S.b),L=T.getPrefixCls,N=T.direction,D=T.input,B=L("input",h),R=Object(l.useRef)(null),_=u.a.useContext(M.b),z=v||_,V=u.a.useContext(E.b),H=y||V,K=Object(l.useContext)(k.b),Y=K.status,G=K.hasFeedback,W=K.feedbackIcon,X=Object(P.a)(Y,g),q=function(t){return!!(t.prefix||t.suffix||t.allowClear)}(t)||!!G,U=Object(l.useRef)(q);Object(l.useEffect)((function(){q&&U.current,U.current=q}),[q]);var $=Object(l.useRef)([]),Z=function(){$.current.push(window.setTimeout((function(){var t,e,n,r;(null===(t=R.current)||void 0===t?void 0:t.input)&&"password"===(null===(e=R.current)||void 0===e?void 0:e.input.getAttribute("type"))&&(null===(n=R.current)||void 0===n?void 0:n.input.hasAttribute("value"))&&(null===(r=R.current)||void 0===r||r.input.removeAttribute("value"))})))};Object(l.useEffect)((function(){return Z(),function(){return $.current.forEach((function(t){return window.clearTimeout(t)}))}}),[]);var Q,J=(G||x)&&u.a.createElement(u.a.Fragment,null,x,G&&W);return"object"===Object(o.a)(O)&&(null===O||void 0===O?void 0:O.clearIcon)?Q=O:O&&(Q={clearIcon:u.a.createElement(a.a,null)}),u.a.createElement(w,Object(i.a)({ref:Object(C.a)(e,R),prefixCls:B,autoComplete:null===D||void 0===D?void 0:D.autoComplete},F,{disabled:H||void 0,onBlur:function(t){Z(),null===m||void 0===m||m(t)},onFocus:function(t){Z(),null===b||void 0===b||b(t)},suffix:J,allowClear:Q,addonAfter:j&&u.a.createElement(k.e,{override:!0,status:!0},j),addonBefore:I&&u.a.createElement(k.e,{override:!0,status:!0},I),inputClassName:s()((n={},Object(r.a)(n,"".concat(B,"-sm"),"small"===z),Object(r.a)(n,"".concat(B,"-lg"),"large"===z),Object(r.a)(n,"".concat(B,"-rtl"),"rtl"===N),Object(r.a)(n,"".concat(B,"-borderless"),!p),n),!q&&Object(P.b)(B,X)),affixWrapperClassName:s()((c={},Object(r.a)(c,"".concat(B,"-affix-wrapper-sm"),"small"===z),Object(r.a)(c,"".concat(B,"-affix-wrapper-lg"),"large"===z),Object(r.a)(c,"".concat(B,"-affix-wrapper-rtl"),"rtl"===N),Object(r.a)(c,"".concat(B,"-affix-wrapper-borderless"),!p),c),Object(P.b)("".concat(B,"-affix-wrapper"),X,G)),wrapperClassName:s()(Object(r.a)({},"".concat(B,"-group-rtl"),"rtl"===N)),groupClassName:s()((f={},Object(r.a)(f,"".concat(B,"-group-wrapper-sm"),"small"===z),Object(r.a)(f,"".concat(B,"-group-wrapper-lg"),"large"===z),Object(r.a)(f,"".concat(B,"-group-wrapper-rtl"),"rtl"===N),f),Object(P.b)("".concat(B,"-group-wrapper"),X,G))}))}));e.a=L},638:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=n(586),i=Object(r.a)("success","processing","error","default","warning"),o=Object(r.a)("pink","red","yellow","orange","cyan","green","blue","purple","geekblue","magenta","volcano","gold","lime")},640:function(t,e,n){"use strict";n.r(e);var r=n(561),i=n(563),o=n(23),a=n(560),c=n.n(a),s=n(566),l=n(559),u=n(567),f=n(2),h=n(607),d=n(634);function p(t){var e=t.showArrow,n=t.arrowContent,r=t.children,i=t.prefixCls,o=t.id,a=t.overlayInnerStyle,s=t.className,l=t.style;return f.createElement("div",{className:c()("".concat(i,"-content"),s),style:l},!1!==e&&f.createElement("div",{className:"".concat(i,"-arrow"),key:"arrow"},n),f.createElement("div",{className:"".concat(i,"-inner"),id:o,role:"tooltip",style:a},"function"===typeof r?r():r))}var g=function(t,e){var n=t.overlayClassName,r=t.trigger,i=void 0===r?["hover"]:r,a=t.mouseEnterDelay,c=void 0===a?0:a,g=t.mouseLeaveDelay,v=void 0===g?.1:g,y=t.overlayStyle,m=t.prefixCls,b=void 0===m?"rc-tooltip":m,x=t.children,O=t.onVisibleChange,j=t.afterVisibleChange,w=t.transitionName,C=t.animation,S=t.motion,E=t.placement,M=void 0===E?"right":E,k=t.align,P=void 0===k?{}:k,A=t.destroyTooltipOnHide,I=void 0!==A&&A,F=t.defaultVisible,T=t.getTooltipContainer,L=t.overlayInnerStyle,N=t.arrowContent,D=t.overlay,B=t.id,R=t.showArrow,_=Object(u.a)(t,["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"]),z=Object(f.useRef)(null);Object(f.useImperativeHandle)(e,(function(){return z.current}));var V=Object(l.a)({},_);"visible"in t&&(V.popupVisible=t.visible);var H=!1,K=!1;if("boolean"===typeof I)H=I;else if(I&&"object"===Object(s.a)(I)){var Y=I.keepParent;H=!0===Y,K=!1===Y}return f.createElement(h.a,Object(o.a)({popupClassName:n,prefixCls:b,popup:function(){return f.createElement(p,{showArrow:R,arrowContent:N,key:"content",prefixCls:b,id:B,overlayInnerStyle:L},D)},action:i,builtinPlacements:d.a,popupPlacement:M,ref:z,popupAlign:P,getPopupContainer:T,onPopupVisibleChange:O,afterPopupVisibleChange:j,popupTransitionName:w,popupAnimation:C,popupMotion:S,defaultPopupVisible:F,destroyPopupOnHide:H,autoDestroy:K,mouseLeaveDelay:v,popupStyle:y,mouseEnterDelay:c},V),x)},v=Object(f.forwardRef)(g),y=n(577),m=n(775),b=n(638),x=n(598),O=n(651),j=n(578),w=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},C=new RegExp("^(".concat(b.a.join("|"),")(-inverse)?$"));function S(t,e){var n=t.type;if((!0===n.__ANT_BUTTON||"button"===t.type)&&t.props.disabled||!0===n.__ANT_SWITCH&&(t.props.disabled||t.props.loading)||!0===n.__ANT_RADIO&&t.props.disabled){var r=function(t,e){var n={},r=Object(o.a)({},t);return e.forEach((function(e){t&&e in t&&(n[e]=t[e],delete r[e])})),{picked:n,omitted:r}}(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),i=r.picked,a=r.omitted,s=Object(o.a)(Object(o.a)({display:"inline-block"},i),{cursor:"not-allowed",width:t.props.block?"100%":null}),l=Object(o.a)(Object(o.a)({},a),{pointerEvents:"none"}),u=Object(j.a)(t,{style:l,className:null});return f.createElement("span",{style:s,className:c()(t.props.className,"".concat(e,"-disabled-compatible-wrapper"))},u)}return t}var E=f.forwardRef((function(t,e){var n,a=f.useContext(m.b),s=a.getPopupContainer,l=a.getPrefixCls,u=a.direction,h=Object(y.a)(!1,{value:t.visible,defaultValue:t.defaultVisible}),d=Object(i.a)(h,2),p=d[0],g=d[1],b=function(){var e=t.title,n=t.overlay;return!e&&!n&&0!==e},E=function(){var e=t.builtinPlacements,n=t.arrowPointAtCenter,r=t.autoAdjustOverflow;return e||Object(O.a)({arrowPointAtCenter:n,autoAdjustOverflow:r})},M=t.getPopupContainer,k=w(t,["getPopupContainer"]),P=t.prefixCls,A=t.openClassName,I=t.getTooltipContainer,F=t.overlayClassName,T=t.color,L=t.overlayInnerStyle,N=t.children,D=l("tooltip",P),B=l(),R=p;!("visible"in t)&&b()&&(R=!1);var _,z=S(Object(j.b)(N)?N:f.createElement("span",null,N),D),V=z.props,H=c()(V.className,Object(r.a)({},A||"".concat(D,"-open"),!0)),K=c()(F,(n={},Object(r.a)(n,"".concat(D,"-rtl"),"rtl"===u),Object(r.a)(n,"".concat(D,"-").concat(T),T&&C.test(T)),n)),Y=L;return T&&!C.test(T)&&(Y=Object(o.a)(Object(o.a)({},L),{background:T}),_={"--antd-arrow-background-color":T}),f.createElement(v,Object(o.a)({},k,{prefixCls:D,overlayClassName:K,getTooltipContainer:M||I||s,ref:e,builtinPlacements:E(),overlay:function(){var e=t.title,n=t.overlay;return 0===e?e:n||e||""}(),visible:R,onVisibleChange:function(e){var n;g(!b()&&e),b()||null===(n=t.onVisibleChange)||void 0===n||n.call(t,e)},onPopupAlign:function(t,e){var n=E(),r=Object.keys(n).find((function(t){return n[t].points[0]===e.points[0]&&n[t].points[1]===e.points[1]}));if(r){var i=t.getBoundingClientRect(),o={top:"50%",left:"50%"};r.indexOf("top")>=0||r.indexOf("Bottom")>=0?o.top="".concat(i.height-e.offset[1],"px"):(r.indexOf("Top")>=0||r.indexOf("bottom")>=0)&&(o.top="".concat(-e.offset[1],"px")),r.indexOf("left")>=0||r.indexOf("Right")>=0?o.left="".concat(i.width-e.offset[0],"px"):(r.indexOf("right")>=0||r.indexOf("Left")>=0)&&(o.left="".concat(-e.offset[0],"px")),t.style.transformOrigin="".concat(o.left," ").concat(o.top)}},overlayInnerStyle:Y,arrowContent:f.createElement("span",{className:"".concat(D,"-arrow-content"),style:_}),motion:{motionName:Object(x.c)(B,"zoom-big-fast",t.transitionName),motionDeadline:1e3}}),R?Object(j.a)(z,{className:H}):z)}));E.defaultProps={placement:"top",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0};e.default=E},643:function(t,e,n){"use strict";var r=n(2),i=n(652),o=n(663);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=o.a.subscribe((function(r){e.current=r,t&&n()}));return function(){return o.a.unsubscribe(r)}}),[]),e.current}},645:function(t,e,n){"use strict";var r=n(561),i=n(23),o=n(560),a=n.n(o),c=n(2),s=n(775),l=n(595),u=function(){var t=(0,c.useContext(s.b).getPrefixCls)("empty-img-default");return c.createElement("svg",{className:t,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{className:"".concat(t,"-ellipse"),cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.createElement("path",{className:"".concat(t,"-path-1"),d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z"}),c.createElement("path",{className:"".concat(t,"-path-2"),d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",transform:"translate(13.56)"}),c.createElement("path",{className:"".concat(t,"-path-3"),d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z"}),c.createElement("path",{className:"".concat(t,"-path-4"),d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z"})),c.createElement("path",{className:"".concat(t,"-path-5"),d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z"}),c.createElement("g",{className:"".concat(t,"-g"),transform:"translate(149.65 15.383)"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},f=function(){var t=(0,c.useContext(s.b).getPrefixCls)("empty-img-simple");return c.createElement("svg",{className:t,width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{className:"".concat(t,"-ellipse"),cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{className:"".concat(t,"-g"),fillRule:"nonzero"},c.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),c.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",className:"".concat(t,"-path")}))))},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);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},d=c.createElement(u,null),p=c.createElement(f,null),g=function(t){var e=t.className,n=t.prefixCls,o=t.image,u=void 0===o?d:o,f=t.description,g=t.children,v=t.imageStyle,y=h(t,["className","prefixCls","image","description","children","imageStyle"]),m=c.useContext(s.b),b=m.getPrefixCls,x=m.direction;return c.createElement(l.a,{componentName:"Empty"},(function(t){var o,s=b("empty",n),l="undefined"!==typeof f?f:t.description,h="string"===typeof l?l:"empty",d=null;return d="string"===typeof u?c.createElement("img",{alt:h,src:u}):u,c.createElement("div",Object(i.a)({className:a()(s,(o={},Object(r.a)(o,"".concat(s,"-normal"),u===p),Object(r.a)(o,"".concat(s,"-rtl"),"rtl"===x),o),e)},y),c.createElement("div",{className:"".concat(s,"-image"),style:v},d),l&&c.createElement("div",{className:"".concat(s,"-description")},l),g&&c.createElement("div",{className:"".concat(s,"-footer")},g))}))};g.PRESENTED_IMAGE_DEFAULT=d,g.PRESENTED_IMAGE_SIMPLE=p;e.a=g},646: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<e;n++)r[n]=t[n];return r}n.d(e,"a",(function(){return r}))},647:function(t,e,n){"use strict";var r=n(2),i=n(560),o=n.n(i),a=n(615);function c(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?c(Object(n),!0).forEach((function(e){l(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var u=r.forwardRef((function(t,e){var n=t.height,i=t.offset,c=t.children,u=t.prefixCls,f=t.onInnerResize,h={},d={display:"flex",flexDirection:"column"};return void 0!==i&&(h={height:n,position:"relative",overflow:"hidden"},d=s(s({},d),{},{transform:"translateY(".concat(i,"px)"),position:"absolute",left:0,right:0,top:0})),r.createElement("div",{style:h},r.createElement(a.a,{onResize:function(t){t.offsetHeight&&f&&f()}},r.createElement("div",{style:d,className:o()(l({},"".concat(u,"-holder-inner"),u)),ref:e},c)))}));u.displayName="Filler";var f=u,h=n(581);function d(t){return(d="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)}function p(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}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=x(t);if(e){var i=x(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){if(e&&("object"===d(e)||"function"===typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function O(t){return"touches"in t?t.touches[0].pageY:t.pageY}var j=function(t){!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&&y(t,e)}(c,t);var e,n,i,a=m(c);function c(){var t;g(this,c);for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return(t=a.call.apply(a,[this].concat(n))).moveRaf=null,t.scrollbarRef=r.createRef(),t.thumbRef=r.createRef(),t.visibleTimeout=null,t.state={dragging:!1,pageY:null,startTop:null,visible:!1},t.delayHidden=function(){clearTimeout(t.visibleTimeout),t.setState({visible:!0}),t.visibleTimeout=setTimeout((function(){t.setState({visible:!1})}),2e3)},t.onScrollbarTouchStart=function(t){t.preventDefault()},t.onContainerMouseDown=function(t){t.stopPropagation(),t.preventDefault()},t.patchEvents=function(){window.addEventListener("mousemove",t.onMouseMove),window.addEventListener("mouseup",t.onMouseUp),t.thumbRef.current.addEventListener("touchmove",t.onMouseMove),t.thumbRef.current.addEventListener("touchend",t.onMouseUp)},t.removeEvents=function(){var e;window.removeEventListener("mousemove",t.onMouseMove),window.removeEventListener("mouseup",t.onMouseUp),null===(e=t.scrollbarRef.current)||void 0===e||e.removeEventListener("touchstart",t.onScrollbarTouchStart),t.thumbRef.current&&(t.thumbRef.current.removeEventListener("touchstart",t.onMouseDown),t.thumbRef.current.removeEventListener("touchmove",t.onMouseMove),t.thumbRef.current.removeEventListener("touchend",t.onMouseUp)),h.a.cancel(t.moveRaf)},t.onMouseDown=function(e){var n=t.props.onStartMove;t.setState({dragging:!0,pageY:O(e),startTop:t.getTop()}),n(),t.patchEvents(),e.stopPropagation(),e.preventDefault()},t.onMouseMove=function(e){var n=t.state,r=n.dragging,i=n.pageY,o=n.startTop,a=t.props.onScroll;if(h.a.cancel(t.moveRaf),r){var c=o+(O(e)-i),s=t.getEnableScrollRange(),l=t.getEnableHeightRange(),u=l?c/l:0,f=Math.ceil(u*s);t.moveRaf=Object(h.a)((function(){a(f)}))}},t.onMouseUp=function(){var e=t.props.onStopMove;t.setState({dragging:!1}),e(),t.removeEvents()},t.getSpinHeight=function(){var e=t.props,n=e.height,r=n/e.count*10;return r=Math.max(r,20),r=Math.min(r,n/2),Math.floor(r)},t.getEnableScrollRange=function(){var e=t.props;return e.scrollHeight-e.height||0},t.getEnableHeightRange=function(){return t.props.height-t.getSpinHeight()||0},t.getTop=function(){var e=t.props.scrollTop,n=t.getEnableScrollRange(),r=t.getEnableHeightRange();return 0===e||0===n?0:e/n*r},t.showScroll=function(){var e=t.props,n=e.height;return e.scrollHeight>n},t}return e=c,(n=[{key:"componentDidMount",value:function(){this.scrollbarRef.current.addEventListener("touchstart",this.onScrollbarTouchStart),this.thumbRef.current.addEventListener("touchstart",this.onMouseDown)}},{key:"componentDidUpdate",value:function(t){t.scrollTop!==this.props.scrollTop&&this.delayHidden()}},{key:"componentWillUnmount",value:function(){this.removeEvents(),clearTimeout(this.visibleTimeout)}},{key:"render",value:function(){var t=this.state,e=t.dragging,n=t.visible,i=this.props.prefixCls,a=this.getSpinHeight(),c=this.getTop(),s=this.showScroll(),l=s&&n;return r.createElement("div",{ref:this.scrollbarRef,className:o()("".concat(i,"-scrollbar"),p({},"".concat(i,"-scrollbar-show"),s)),style:{width:8,top:0,bottom:0,right:0,position:"absolute",display:l?null:"none"},onMouseDown:this.onContainerMouseDown,onMouseMove:this.delayHidden},r.createElement("div",{ref:this.thumbRef,className:o()("".concat(i,"-scrollbar-thumb"),p({},"".concat(i,"-scrollbar-thumb-moving"),e)),style:{width:"100%",height:a,top:c,left:0,position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"},onMouseDown:this.onMouseDown}))}}])&&v(e.prototype,n),i&&v(e,i),Object.defineProperty(e,"prototype",{writable:!1}),c}(r.Component);function w(t){var e=t.children,n=t.setRef,i=r.useCallback((function(t){n(t)}),[]);return r.cloneElement(e,{ref:i})}var C=n(764);function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var E=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.maps=void 0,this.maps=Object.create(null)}var e,n,r;return e=t,(n=[{key:"set",value:function(t,e){this.maps[t]=e}},{key:"get",value:function(t){return this.maps[t]}}])&&S(e.prototype,n),r&&S(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}();function M(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(s){c=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function P(t){return(P="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)}function A(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(s){c=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return I(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return I(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function I(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function F(t,e,n){var i=A(r.useState(t),2),o=i[0],a=i[1],c=A(r.useState(null),2),s=c[0],l=c[1];return r.useEffect((function(){var r=function(t,e,n){var r,i,o=t.length,a=e.length;if(0===o&&0===a)return null;o<a?(r=t,i=e):(r=e,i=t);var c={__EMPTY_ITEM__:!0};function s(t){return void 0!==t?n(t):c}for(var l=null,u=1!==Math.abs(o-a),f=0;f<i.length;f+=1){var h=s(r[f]);if(h!==s(i[f])){l=f,u=u||h!==s(i[f+1]);break}}return null===l?null:{index:l,multiple:u}}(o||[],t||[],e);void 0!==(null===r||void 0===r?void 0:r.index)&&(null===n||void 0===n||n(r.index),l(t[r.index])),a(t)}),[t]),[s]}function T(t){return(T="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)}var L="object"===("undefined"===typeof navigator?"undefined":T(navigator))&&/Firefox/i.test(navigator.userAgent),N=function(t,e){var n=Object(r.useRef)(!1),i=Object(r.useRef)(null);function o(){clearTimeout(i.current),n.current=!0,i.current=setTimeout((function(){n.current=!1}),50)}var a=Object(r.useRef)({top:t,bottom:e});return a.current.top=t,a.current.bottom=e,function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=t<0&&a.current.top||t>0&&a.current.bottom;return e&&r?(clearTimeout(i.current),n.current=!1):r&&!n.current||o(),!n.current&&r}};var D=n(603);var B=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","component","onScroll","onVisibleChange"];function R(){return(R=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function z(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){V(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function V(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function H(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,c=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(s){c=!0,i=s}finally{try{a||null==n.return||n.return()}finally{if(c)throw i}}return o}(t,e)||function(t,e){if(!t)return;if("string"===typeof t)return K(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return K(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function K(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function Y(t,e){if(null==t)return{};var n,r,i=function(t,e){if(null==t)return{};var n,r,i={},o=Object.keys(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r<o.length;r++)n=o[r],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}var G=[],W={overflowY:"auto",overflowAnchor:"none"};function X(t,e){var n=t.prefixCls,i=void 0===n?"rc-virtual-list":n,a=t.className,c=t.height,s=t.itemHeight,l=t.fullHeight,u=void 0===l||l,d=t.style,p=t.data,g=t.children,v=t.itemKey,y=t.virtual,m=t.component,b=void 0===m?"div":m,x=t.onScroll,O=t.onVisibleChange,S=Y(t,B),k=!(!1===y||!c||!s),A=k&&p&&s*p.length>c,I=H(Object(r.useState)(0),2),T=I[0],_=I[1],K=H(Object(r.useState)(!1),2),X=K[0],q=K[1],U=o()(i,a),$=p||G,Z=Object(r.useRef)(),Q=Object(r.useRef)(),J=Object(r.useRef)(),tt=r.useCallback((function(t){return"function"===typeof v?v(t):null===t||void 0===t?void 0:t[v]}),[v]),et={getKey:tt};function nt(t){_((function(e){var n=function(t){var e=t;Number.isNaN(yt.current)||(e=Math.min(e,yt.current));return e=Math.max(e,0)}("function"===typeof t?t(e):t);return Z.current.scrollTop=n,n}))}var rt=Object(r.useRef)({start:0,end:$.length}),it=Object(r.useRef)(),ot=H(F($,tt),1)[0];it.current=ot;var at=H(function(t,e,n){var i=M(r.useState(0),2),o=i[0],a=i[1],c=Object(r.useRef)(new Map),s=Object(r.useRef)(new E),l=Object(r.useRef)();function u(){h.a.cancel(l.current)}function f(){u(),l.current=Object(h.a)((function(){c.current.forEach((function(t,e){if(t&&t.offsetParent){var n=Object(C.a)(t),r=n.offsetHeight;s.current.get(e)!==r&&s.current.set(e,n.offsetHeight)}})),a((function(t){return t+1}))}))}return Object(r.useEffect)((function(){return u}),[]),[function(r,i){var o=t(r),a=c.current.get(o);i?(c.current.set(o,i),f()):c.current.delete(o),!a!==!i&&(i?null===e||void 0===e||e(r):null===n||void 0===n||n(r))},f,s.current,o]}(tt,null,null),4),ct=at[0],st=at[1],lt=at[2],ut=at[3],ft=r.useMemo((function(){if(!k)return{scrollHeight:void 0,start:0,end:$.length-1,offset:void 0};var t;if(!A)return{scrollHeight:(null===(t=Q.current)||void 0===t?void 0:t.offsetHeight)||0,start:0,end:$.length-1,offset:void 0};for(var e,n,r,i=0,o=$.length,a=0;a<o;a+=1){var l=$[a],u=tt(l),f=lt.get(u),h=i+(void 0===f?s:f);h>=T&&void 0===e&&(e=a,n=i),h>T+c&&void 0===r&&(r=a),i=h}return void 0===e&&(e=0,n=0),void 0===r&&(r=$.length-1),{scrollHeight:i,start:e,end:r=Math.min(r+1,$.length),offset:n}}),[A,k,T,$,ut,c]),ht=ft.scrollHeight,dt=ft.start,pt=ft.end,gt=ft.offset;rt.current.start=dt,rt.current.end=pt;var vt=ht-c,yt=Object(r.useRef)(vt);yt.current=vt;var mt=T<=0,bt=T>=vt,xt=N(mt,bt);var Ot=H(function(t,e,n,i){var o=Object(r.useRef)(0),a=Object(r.useRef)(null),c=Object(r.useRef)(null),s=Object(r.useRef)(!1),l=N(e,n);return[function(e){if(t){h.a.cancel(a.current);var n=e.deltaY;o.current+=n,c.current=n,l(n)||(L||e.preventDefault(),a.current=Object(h.a)((function(){var t=s.current?10:1;i(o.current*t),o.current=0})))}},function(e){t&&(s.current=e.detail===c.current)}]}(k,mt,bt,(function(t){nt((function(e){return e+t}))})),2),jt=Ot[0],wt=Ot[1];!function(t,e,n){var i,o=Object(r.useRef)(!1),a=Object(r.useRef)(0),c=Object(r.useRef)(null),s=Object(r.useRef)(null),l=function(t){if(o.current){var e=Math.ceil(t.touches[0].pageY),r=a.current-e;a.current=e,n(r)&&t.preventDefault(),clearInterval(s.current),s.current=setInterval((function(){(!n(r*=14/15,!0)||Math.abs(r)<=.1)&&clearInterval(s.current)}),16)}},u=function(){o.current=!1,i()},f=function(t){i(),1!==t.touches.length||o.current||(o.current=!0,a.current=Math.ceil(t.touches[0].pageY),c.current=t.target,c.current.addEventListener("touchmove",l),c.current.addEventListener("touchend",u))};i=function(){c.current&&(c.current.removeEventListener("touchmove",l),c.current.removeEventListener("touchend",u))},Object(D.a)((function(){return t&&e.current.addEventListener("touchstart",f),function(){var t;null===(t=e.current)||void 0===t||t.removeEventListener("touchstart",f),i(),clearInterval(s.current)}}),[t])}(k,Z,(function(t,e){return!xt(t,e)&&(jt({preventDefault:function(){},deltaY:t}),!0)})),Object(D.a)((function(){function t(t){k&&t.preventDefault()}return Z.current.addEventListener("wheel",jt),Z.current.addEventListener("DOMMouseScroll",wt),Z.current.addEventListener("MozMousePixelScroll",t),function(){Z.current&&(Z.current.removeEventListener("wheel",jt),Z.current.removeEventListener("DOMMouseScroll",wt),Z.current.removeEventListener("MozMousePixelScroll",t))}}),[k]);var Ct=function(t,e,n,i,o,a,c,s){var l=r.useRef();return function(r){if(null!==r&&void 0!==r){if(h.a.cancel(l.current),"number"===typeof r)c(r);else if(r&&"object"===P(r)){var u,f=r.align;u="index"in r?r.index:e.findIndex((function(t){return o(t)===r.key}));var d=r.offset,p=void 0===d?0:d;!function r(s,d){if(!(s<0)&&t.current){var g=t.current.clientHeight,v=!1,y=d;if(g){for(var m=d||f,b=0,x=0,O=0,j=Math.min(e.length,u),w=0;w<=j;w+=1){var C=o(e[w]);x=b;var S=n.get(C);b=O=x+(void 0===S?i:S),w===u&&void 0===S&&(v=!0)}var E=null;switch(m){case"top":E=x-p;break;case"bottom":E=O-g+p;break;default:var M=t.current.scrollTop;x<M?y="top":O>M+g&&(y="bottom")}null!==E&&E!==t.current.scrollTop&&c(E)}l.current=Object(h.a)((function(){v&&a(),r(s-1,y)}))}}(3)}}else s()}}(Z,$,lt,s,tt,st,nt,(function(){var t;null===(t=J.current)||void 0===t||t.delayHidden()}));r.useImperativeHandle(e,(function(){return{scrollTo:Ct}})),Object(D.a)((function(){if(O){var t=$.slice(dt,pt+1);O(t,$)}}),[dt,pt,$]);var St=function(t,e,n,i,o,a){var c=a.getKey;return t.slice(e,n+1).map((function(t,n){var a=o(t,e+n,{}),s=c(t);return r.createElement(w,{key:s,setRef:function(e){return i(t,e)}},a)}))}($,dt,pt,ct,g,et),Et=null;return c&&(Et=z(V({},u?"height":"maxHeight",c),W),k&&(Et.overflowY="hidden",X&&(Et.pointerEvents="none"))),r.createElement("div",R({style:z(z({},d),{},{position:"relative"}),className:U},S),r.createElement(b,{className:"".concat(i,"-holder"),style:Et,ref:Z,onScroll:function(t){var e=t.currentTarget.scrollTop;e!==T&&nt(e),null===x||void 0===x||x(t)}},r.createElement(f,{prefixCls:i,height:ht,offset:gt,onInnerResize:st,ref:Q},St)),k&&r.createElement(j,{ref:J,prefixCls:i,scrollTop:T,height:c,scrollHeight:ht,count:$.length,onScroll:function(t){nt(t)},onStartMove:function(){q(!0)},onStopMove:function(){q(!1)}}))}var q=r.forwardRef(X);q.displayName="List";var U=q;e.a=U},650:function(t,e,n){"use strict";n.d(e,"a",(function(){return tt})),n.d(e,"d",(function(){return nt})),n.d(e,"g",(function(){return lt})),n.d(e,"c",(function(){return ft})),n.d(e,"b",(function(){return m})),n.d(e,"e",(function(){return et})),n.d(e,"h",(function(){return vt}));var r=n(2),i=n(23),o=n(567),a=n(561),c=n(559),s=n(565),l=n(570),u=n(571),f=n(582),h=n(572),d=n(573),p=n(589),g=n(568),v="RC_FORM_INTERNAL_HOOKS",y=function(){Object(g.a)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},m=r.createContext({getFieldValue:y,getFieldsValue:y,getFieldError:y,getFieldWarning:y,getFieldsError:y,isFieldsTouched:y,isFieldTouched:y,isFieldValidating:y,isFieldsValidating:y,resetFields:y,setFields:y,setFieldsValue:y,validateFields:y,submit:y,getInternalHooks:function(){return y(),{dispatch:y,initEntityValue:y,registerField:y,useSubscribe:y,setInitialValues:y,destroyForm:y,setCallbacks:y,registerWatch:y,getFields:y,setValidateMessages:y,setPreserve:y,getInitialValue:y}}});function b(t){return void 0===t||null===t?[]:Array.isArray(t)?t:[t]}var x=n(748),O=n(754),j=n(669),w="'${name}' is not a valid ${type}",C={default:"Validation error on field '${name}'",required:"'${name}' is required",enum:"'${name}' must be one of [${enum}]",whitespace:"'${name}' cannot be empty",date:{format:"'${name}' is invalid for format date",parse:"'${name}' could not be parsed as date",invalid:"'${name}' is invalid date"},types:{string:w,method:w,array:w,object:w,number:w,date:w,boolean:w,integer:w,float:w,regexp:w,email:w,url:w,hex:w},string:{len:"'${name}' must be exactly ${len} characters",min:"'${name}' must be at least ${min} characters",max:"'${name}' cannot be longer than ${max} characters",range:"'${name}' must be between ${min} and ${max} characters"},number:{len:"'${name}' must equal ${len}",min:"'${name}' cannot be less than ${min}",max:"'${name}' cannot be greater than ${max}",range:"'${name}' must be between ${min} and ${max}"},array:{len:"'${name}' must be exactly ${len} in length",min:"'${name}' cannot be less than ${min} in length",max:"'${name}' cannot be greater than ${max} in length",range:"'${name}' must be between ${min} and ${max} in length"},pattern:{mismatch:"'${name}' does not match pattern ${pattern}"}},S=n(566);function E(t,e){for(var n=t,r=0;r<e.length;r+=1){if(null===n||void 0===n)return;n=n[e[r]]}return n}var M=n(610);function k(t,e,n,r){if(!e.length)return n;var i,o=Object(M.a)(e),a=o[0],l=o.slice(1);return i=t||"number"!==typeof a?Array.isArray(t)?Object(s.a)(t):Object(c.a)({},t):[],r&&void 0===n&&1===l.length?delete i[a][l[0]]:i[a]=k(i[a],l,n,r),i}function P(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e.length&&r&&void 0===n&&!E(t,e.slice(0,-1))?t:k(t,e,n,r)}function A(t){return Array.isArray(t)?function(t){return t.map((function(t){return A(t)}))}(t):"object"===Object(S.a)(t)&&null!==t?function(t){if(Object.getPrototypeOf(t)===Object.prototype){var e={};for(var n in t)e[n]=A(t[n]);return e}return t}(t):t}var I=A;function F(t){return b(t)}function T(t,e){return E(t,e)}function L(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=P(t,e,n,r);return i}function N(t,e){var n={};return e.forEach((function(e){var r=T(t,e);n=L(n,e,r)})),n}function D(t,e){return t&&t.some((function(t){return z(t,e)}))}function B(t){return"object"===Object(S.a)(t)&&null!==t&&Object.getPrototypeOf(t)===Object.prototype}function R(t,e){var n=Array.isArray(t)?Object(s.a)(t):Object(c.a)({},t);return e?(Object.keys(e).forEach((function(t){var r=n[t],i=e[t],o=B(r)&&B(i);n[t]=o?R(r,i||{}):I(i)})),n):n}function _(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return n.reduce((function(t,e){return R(t,e)}),t)}function z(t,e){return!(!t||!e||t.length!==e.length)&&t.every((function(t,n){return e[n]===t}))}function V(t){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&"object"===Object(S.a)(e.target)&&t in e.target?e.target[t]:e}function H(t,e,n){var r=t.length;if(e<0||e>=r||n<0||n>=r)return t;var i=t[e],o=e-n;return o>0?[].concat(Object(s.a)(t.slice(0,n)),[i],Object(s.a)(t.slice(n,e)),Object(s.a)(t.slice(e+1,r))):o<0?[].concat(Object(s.a)(t.slice(0,e)),Object(s.a)(t.slice(e+1,n+1)),[i],Object(s.a)(t.slice(n+1,r))):t}var K=j.a;function Y(t,e){return t.replace(/\$\{\w+\}/g,(function(t){var n=t.slice(2,-1);return e[n]}))}function G(t,e,n,r,i){return W.apply(this,arguments)}function W(){return(W=Object(O.a)(Object(x.a)().mark((function t(e,n,i,o,l){var u,f,h,d,p,g,v,y,m;return Object(x.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return delete(u=Object(c.a)({},i)).ruleIndex,u.validator&&(f=u.validator,u.validator=function(){try{return f.apply(void 0,arguments)}catch(t){return console.error(t),Promise.reject("CODE_LOGIC_ERROR")}}),h=null,u&&"array"===u.type&&u.defaultField&&(h=u.defaultField,delete u.defaultField),d=new K(Object(a.a)({},e,[u])),p=_({},C,o.validateMessages),d.messages(p),g=[],t.prev=9,t.next=12,Promise.resolve(d.validate(Object(a.a)({},e,n),Object(c.a)({},o)));case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(9),t.t0.errors&&(g=t.t0.errors.map((function(t,e){var n=t.message,i="CODE_LOGIC_ERROR"===n?p.default:n;return r.isValidElement(i)?r.cloneElement(i,{key:"error_".concat(e)}):i})));case 17:if(g.length||!h){t.next=22;break}return t.next=20,Promise.all(n.map((function(t,n){return G("".concat(e,".").concat(n),t,h,o,l)})));case 20:return v=t.sent,t.abrupt("return",v.reduce((function(t,e){return[].concat(Object(s.a)(t),Object(s.a)(e))}),[]));case 22:return y=Object(c.a)(Object(c.a)({},i),{},{name:e,enum:(i.enum||[]).join(", ")},l),m=g.map((function(t){return"string"===typeof t?Y(t,y):t})),t.abrupt("return",m);case 25:case"end":return t.stop()}}),t,null,[[9,14]])})))).apply(this,arguments)}function X(t,e,n,r,i,o){var a,s=t.join("."),l=n.map((function(t,e){var n=t.validator,r=Object(c.a)(Object(c.a)({},t),{},{ruleIndex:e});return n&&(r.validator=function(t,e,r){var i=!1,o=n(t,e,(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];Promise.resolve().then((function(){Object(g.a)(!i,"Your validator function has already return a promise. `callback` will be ignored."),i||r.apply(void 0,e)}))}));i=o&&"function"===typeof o.then&&"function"===typeof o.catch,Object(g.a)(i,"`callback` is deprecated. Please return a promise instead."),i&&o.then((function(){r()})).catch((function(t){r(t||" ")}))}),r})).sort((function(t,e){var n=t.warningOnly,r=t.ruleIndex,i=e.warningOnly,o=e.ruleIndex;return!!n===!!i?r-o:n?1:-1}));if(!0===i)a=new Promise(function(){var t=Object(O.a)(Object(x.a)().mark((function t(n,i){var a,c,u;return Object(x.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:a=0;case 1:if(!(a<l.length)){t.next=12;break}return c=l[a],t.next=5,G(s,e,c,r,o);case 5:if(!(u=t.sent).length){t.next=9;break}return i([{errors:u,rule:c}]),t.abrupt("return");case 9:a+=1,t.next=1;break;case 12:n([]);case 13:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}());else{var u=l.map((function(t){return G(s,e,t,r,o).then((function(e){return{errors:e,rule:t}}))}));a=(i?function(t){return U.apply(this,arguments)}(u):function(t){return q.apply(this,arguments)}(u)).then((function(t){return Promise.reject(t)}))}return a.catch((function(t){return t})),a}function q(){return(q=Object(O.a)(Object(x.a)().mark((function t(e){return Object(x.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Promise.all(e).then((function(t){var e;return(e=[]).concat.apply(e,Object(s.a)(t))})));case 1:case"end":return t.stop()}}),t)})))).apply(this,arguments)}function U(){return(U=Object(O.a)(Object(x.a)().mark((function t(e){var n;return Object(x.a)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=0,t.abrupt("return",new Promise((function(t){e.forEach((function(r){r.then((function(r){r.errors.length&&t([r]),(n+=1)===e.length&&t([])}))}))})));case 2:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var $=["name"],Z=[];function Q(t,e,n,r,i,o){return"function"===typeof t?t(e,n,"source"in o?{source:o.source}:{}):r!==i}var J=function(t){Object(h.a)(n,t);var e=Object(d.a)(n);function n(t){var i;(Object(l.a)(this,n),(i=e.call(this,t)).state={resetCount:0},i.cancelRegisterFunc=null,i.mounted=!1,i.touched=!1,i.dirty=!1,i.validatePromise=null,i.prevValidating=void 0,i.errors=Z,i.warnings=Z,i.cancelRegister=function(){var t=i.props,e=t.preserve,n=t.isListField,r=t.name;i.cancelRegisterFunc&&i.cancelRegisterFunc(n,e,F(r)),i.cancelRegisterFunc=null},i.getNamePath=function(){var t=i.props,e=t.name,n=t.fieldContext.prefixName,r=void 0===n?[]:n;return void 0!==e?[].concat(Object(s.a)(r),Object(s.a)(e)):[]},i.getRules=function(){var t=i.props,e=t.rules,n=void 0===e?[]:e,r=t.fieldContext;return n.map((function(t){return"function"===typeof t?t(r):t}))},i.refresh=function(){i.mounted&&i.setState((function(t){return{resetCount:t.resetCount+1}}))},i.triggerMetaEvent=function(t){var e=i.props.onMetaChange;null===e||void 0===e||e(Object(c.a)(Object(c.a)({},i.getMeta()),{},{destroy:t}))},i.onStoreChange=function(t,e,n){var r=i.props,o=r.shouldUpdate,a=r.dependencies,c=void 0===a?[]:a,s=r.onReset,l=n.store,u=i.getNamePath(),f=i.getValue(t),h=i.getValue(l),d=e&&D(e,u);switch("valueUpdate"===n.type&&"external"===n.source&&f!==h&&(i.touched=!0,i.dirty=!0,i.validatePromise=null,i.errors=Z,i.warnings=Z,i.triggerMetaEvent()),n.type){case"reset":if(!e||d)return i.touched=!1,i.dirty=!1,i.validatePromise=null,i.errors=Z,i.warnings=Z,i.triggerMetaEvent(),null===s||void 0===s||s(),void i.refresh();break;case"remove":if(o)return void i.reRender();break;case"setField":if(d){var p=n.data;return"touched"in p&&(i.touched=p.touched),"validating"in p&&!("originRCField"in p)&&(i.validatePromise=p.validating?Promise.resolve([]):null),"errors"in p&&(i.errors=p.errors||Z),"warnings"in p&&(i.warnings=p.warnings||Z),i.dirty=!0,i.triggerMetaEvent(),void i.reRender()}if(o&&!u.length&&Q(o,t,l,f,h,n))return void i.reRender();break;case"dependenciesUpdate":if(c.map(F).some((function(t){return D(n.relatedFields,t)})))return void i.reRender();break;default:if(d||(!c.length||u.length||o)&&Q(o,t,l,f,h,n))return void i.reRender()}!0===o&&i.reRender()},i.validateRules=function(t){var e=i.getNamePath(),n=i.getValue(),r=Promise.resolve().then((function(){if(!i.mounted)return[];var o=i.props,a=o.validateFirst,c=void 0!==a&&a,l=o.messageVariables,u=(t||{}).triggerName,f=i.getRules();u&&(f=f.filter((function(t){var e=t.validateTrigger;return!e||b(e).includes(u)})));var h=X(e,n,f,t,c,l);return h.catch((function(t){return t})).then((function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z;if(i.validatePromise===r){i.validatePromise=null;var e=[],n=[];t.forEach((function(t){var r=t.rule.warningOnly,i=t.errors,o=void 0===i?Z:i;r?n.push.apply(n,Object(s.a)(o)):e.push.apply(e,Object(s.a)(o))})),i.errors=e,i.warnings=n,i.triggerMetaEvent(),i.reRender()}})),h}));return i.validatePromise=r,i.dirty=!0,i.errors=Z,i.warnings=Z,i.triggerMetaEvent(),i.reRender(),r},i.isFieldValidating=function(){return!!i.validatePromise},i.isFieldTouched=function(){return i.touched},i.isFieldDirty=function(){return!(!i.dirty&&void 0===i.props.initialValue)||void 0!==(0,i.props.fieldContext.getInternalHooks(v).getInitialValue)(i.getNamePath())},i.getErrors=function(){return i.errors},i.getWarnings=function(){return i.warnings},i.isListField=function(){return i.props.isListField},i.isList=function(){return i.props.isList},i.isPreserve=function(){return i.props.preserve},i.getMeta=function(){return i.prevValidating=i.isFieldValidating(),{touched:i.isFieldTouched(),validating:i.prevValidating,errors:i.errors,warnings:i.warnings,name:i.getNamePath()}},i.getOnlyChild=function(t){if("function"===typeof t){var e=i.getMeta();return Object(c.a)(Object(c.a)({},i.getOnlyChild(t(i.getControlled(),e,i.props.fieldContext))),{},{isFunction:!0})}var n=Object(p.a)(t);return 1===n.length&&r.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}},i.getValue=function(t){var e=i.props.fieldContext.getFieldsValue,n=i.getNamePath();return T(t||e(!0),n)},i.getControlled=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.props,n=e.trigger,r=e.validateTrigger,o=e.getValueFromEvent,s=e.normalize,l=e.valuePropName,u=e.getValueProps,f=e.fieldContext,h=void 0!==r?r:f.validateTrigger,d=i.getNamePath(),p=f.getInternalHooks,g=f.getFieldsValue,y=p(v),m=y.dispatch,x=i.getValue(),O=u||function(t){return Object(a.a)({},l,t)},j=t[n],w=Object(c.a)(Object(c.a)({},t),O(x));w[n]=function(){var t;i.touched=!0,i.dirty=!0,i.triggerMetaEvent();for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];t=o?o.apply(void 0,n):V.apply(void 0,[l].concat(n)),s&&(t=s(t,x,g(!0))),m({type:"updateValue",namePath:d,value:t}),j&&j.apply(void 0,n)};var C=b(h||[]);return C.forEach((function(t){var e=w[t];w[t]=function(){e&&e.apply(void 0,arguments);var n=i.props.rules;n&&n.length&&m({type:"validateField",namePath:d,triggerName:t})}})),w},t.fieldContext)&&(0,(0,t.fieldContext.getInternalHooks)(v).initEntityValue)(Object(f.a)(i));return i}return Object(u.a)(n,[{key:"componentDidMount",value:function(){var t=this.props,e=t.shouldUpdate,n=t.fieldContext;if(this.mounted=!0,n){var r=(0,n.getInternalHooks)(v).registerField;this.cancelRegisterFunc=r(this)}!0===e&&this.reRender()}},{key:"componentWillUnmount",value:function(){this.cancelRegister(),this.triggerMetaEvent(!0),this.mounted=!1}},{key:"reRender",value:function(){this.mounted&&this.forceUpdate()}},{key:"render",value:function(){var t,e=this.state.resetCount,n=this.props.children,i=this.getOnlyChild(n),o=i.child;return i.isFunction?t=o:r.isValidElement(o)?t=r.cloneElement(o,this.getControlled(o.props)):(Object(g.a)(!o,"`children` of Field is not validate ReactElement."),t=o),r.createElement(r.Fragment,{key:e},t)}}]),n}(r.Component);J.contextType=m,J.defaultProps={trigger:"onChange",valuePropName:"value"};var tt=function(t){var e=t.name,n=Object(o.a)(t,$),a=r.useContext(m),c=void 0!==e?F(e):void 0,s="keep";return n.isListField||(s="_".concat((c||[]).join("_"))),r.createElement(J,Object(i.a)({key:s,name:c},n,{fieldContext:a}))},et=r.createContext(null),nt=function(t){var e=t.name,n=t.initialValue,i=t.children,o=t.rules,a=t.validateTrigger,l=r.useContext(m),u=r.useRef({keys:[],id:0}).current,f=r.useMemo((function(){var t=F(l.prefixName)||[];return[].concat(Object(s.a)(t),Object(s.a)(F(e)))}),[l.prefixName,e]),h=r.useMemo((function(){return Object(c.a)(Object(c.a)({},l),{},{prefixName:f})}),[l,f]),d=r.useMemo((function(){return{getKey:function(t){var e=f.length,n=t[e];return[u.keys[n],t.slice(e+1)]}}}),[f]);if("function"!==typeof i)return Object(g.a)(!1,"Form.List only accepts function as children."),null;return r.createElement(et.Provider,{value:d},r.createElement(m.Provider,{value:h},r.createElement(tt,{name:[],shouldUpdate:function(t,e,n){return"internal"!==n.source&&t!==e},rules:o,validateTrigger:a,initialValue:n,isList:!0},(function(t,e){var n=t.value,r=void 0===n?[]:n,o=t.onChange,a=l.getFieldValue,c=function(){return a(f||[])||[]},h={add:function(t,e){var n=c();e>=0&&e<=n.length?(u.keys=[].concat(Object(s.a)(u.keys.slice(0,e)),[u.id],Object(s.a)(u.keys.slice(e))),o([].concat(Object(s.a)(n.slice(0,e)),[t],Object(s.a)(n.slice(e))))):(u.keys=[].concat(Object(s.a)(u.keys),[u.id]),o([].concat(Object(s.a)(n),[t]))),u.id+=1},remove:function(t){var e=c(),n=new Set(Array.isArray(t)?t:[t]);n.size<=0||(u.keys=u.keys.filter((function(t,e){return!n.has(e)})),o(e.filter((function(t,e){return!n.has(e)}))))},move:function(t,e){if(t!==e){var n=c();t<0||t>=n.length||e<0||e>=n.length||(u.keys=H(u.keys,t,e),o(H(n,t,e)))}}},d=r||[];return Array.isArray(d)||(d=[]),i(d.map((function(t,e){var n=u.keys[e];return void 0===n&&(u.keys[e]=u.id,n=u.keys[e],u.id+=1),{name:e,key:n,isListField:!0}})),h,e)}))))},rt=n(563);var it="__@field_split__";function ot(t){return t.map((function(t){return"".concat(Object(S.a)(t),":").concat(t)})).join(it)}var at=function(){function t(){Object(l.a)(this,t),this.kvs=new Map}return Object(u.a)(t,[{key:"set",value:function(t,e){this.kvs.set(ot(t),e)}},{key:"get",value:function(t){return this.kvs.get(ot(t))}},{key:"update",value:function(t,e){var n=e(this.get(t));n?this.set(t,n):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(ot(t))}},{key:"map",value:function(t){return Object(s.a)(this.kvs.entries()).map((function(e){var n=Object(rt.a)(e,2),r=n[0],i=n[1],o=r.split(it);return t({key:o.map((function(t){var e=t.match(/^([^:]*):(.*)$/),n=Object(rt.a)(e,3),r=n[1],i=n[2];return"number"===r?Number(i):i})),value:i})}))}},{key:"toJSON",value:function(){var t={};return this.map((function(e){var n=e.key,r=e.value;return t[n.join(".")]=r,null})),t}}]),t}(),ct=["name","errors"],st=Object(u.a)((function t(e){var n=this;Object(l.a)(this,t),this.formHooked=!1,this.forceRootUpdate=void 0,this.subscribable=!0,this.store={},this.fieldEntities=[],this.initialValues={},this.callbacks={},this.validateMessages=null,this.preserve=null,this.lastValidatePromise=null,this.getForm=function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}},this.getInternalHooks=function(t){return t===v?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):(Object(g.a)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)},this.useSubscribe=function(t){n.subscribable=t},this.prevWithoutPreserves=null,this.setInitialValues=function(t,e){if(n.initialValues=t||{},e){var r,i=_({},t,n.store);null===(r=n.prevWithoutPreserves)||void 0===r||r.map((function(e){var n=e.key;i=L(i,n,T(t,n))})),n.prevWithoutPreserves=null,n.updateStore(i)}},this.destroyForm=function(){var t=new at;n.getFieldEntities(!0).forEach((function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)})),n.prevWithoutPreserves=t},this.getInitialValue=function(t){var e=T(n.initialValues,t);return t.length?I(e):e},this.setCallbacks=function(t){n.callbacks=t},this.setValidateMessages=function(t){n.validateMessages=t},this.setPreserve=function(t){n.preserve=t},this.watchList=[],this.registerWatch=function(t){return n.watchList.push(t),function(){n.watchList=n.watchList.filter((function(e){return e!==t}))}},this.notifyWatch=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var e=n.getFieldsValue();n.watchList.forEach((function(n){n(e,t)}))}},this.timeoutId=null,this.warningUnhooked=function(){0},this.updateStore=function(t){n.store=t},this.getFieldEntities=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t?n.fieldEntities.filter((function(t){return t.getNamePath().length})):n.fieldEntities},this.getFieldsMap=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=new at;return n.getFieldEntities(t).forEach((function(t){var n=t.getNamePath();e.set(n,t)})),e},this.getFieldEntitiesForNamePathList=function(t){if(!t)return n.getFieldEntities(!0);var e=n.getFieldsMap(!0);return t.map((function(t){var n=F(t);return e.get(n)||{INVALIDATE_NAME_PATH:F(t)}}))},this.getFieldsValue=function(t,e){if(n.warningUnhooked(),!0===t&&!e)return n.store;var r=n.getFieldEntitiesForNamePathList(Array.isArray(t)?t:null),i=[];return r.forEach((function(n){var r,o="INVALIDATE_NAME_PATH"in n?n.INVALIDATE_NAME_PATH:n.getNamePath();if(t||!(null===(r=n.isListField)||void 0===r?void 0:r.call(n)))if(e){var a="getMeta"in n?n.getMeta():null;e(a)&&i.push(o)}else i.push(o)})),N(n.store,i.map(F))},this.getFieldValue=function(t){n.warningUnhooked();var e=F(t);return T(n.store,e)},this.getFieldsError=function(t){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(t).map((function(e,n){return e&&!("INVALIDATE_NAME_PATH"in e)?{name:e.getNamePath(),errors:e.getErrors(),warnings:e.getWarnings()}:{name:F(t[n]),errors:[],warnings:[]}}))},this.getFieldError=function(t){n.warningUnhooked();var e=F(t);return n.getFieldsError([e])[0].errors},this.getFieldWarning=function(t){n.warningUnhooked();var e=F(t);return n.getFieldsError([e])[0].warnings},this.isFieldsTouched=function(){n.warningUnhooked();for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];var i,o=e[0],a=e[1],c=!1;0===e.length?i=null:1===e.length?Array.isArray(o)?(i=o.map(F),c=!1):(i=null,c=o):(i=o.map(F),c=a);var l=n.getFieldEntities(!0),u=function(t){return t.isFieldTouched()};if(!i)return c?l.every(u):l.some(u);var f=new at;i.forEach((function(t){f.set(t,[])})),l.forEach((function(t){var e=t.getNamePath();i.forEach((function(n){n.every((function(t,n){return e[n]===t}))&&f.update(n,(function(e){return[].concat(Object(s.a)(e),[t])}))}))}));var h=function(t){return t.some(u)},d=f.map((function(t){return t.value}));return c?d.every(h):d.some(h)},this.isFieldTouched=function(t){return n.warningUnhooked(),n.isFieldsTouched([t])},this.isFieldsValidating=function(t){n.warningUnhooked();var e=n.getFieldEntities();if(!t)return e.some((function(t){return t.isFieldValidating()}));var r=t.map(F);return e.some((function(t){var e=t.getNamePath();return D(r,e)&&t.isFieldValidating()}))},this.isFieldValidating=function(t){return n.warningUnhooked(),n.isFieldsValidating([t])},this.resetWithFieldInitialValue=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=new at,r=n.getFieldEntities(!0);r.forEach((function(t){var n=t.props.initialValue,r=t.getNamePath();if(void 0!==n){var i=e.get(r)||new Set;i.add({entity:t,value:n}),e.set(r,i)}}));var i,o=function(r){r.forEach((function(r){if(void 0!==r.props.initialValue){var i=r.getNamePath();if(void 0!==n.getInitialValue(i))Object(g.a)(!1,"Form already set 'initialValues' with path '".concat(i.join("."),"'. Field can not overwrite it."));else{var o=e.get(i);if(o&&o.size>1)Object(g.a)(!1,"Multiple Field with path '".concat(i.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(o){var a=n.getFieldValue(i);t.skipExist&&void 0!==a||n.updateStore(L(n.store,i,Object(s.a)(o)[0].value))}}}}))};t.entities?i=t.entities:t.namePathList?(i=[],t.namePathList.forEach((function(t){var n,r=e.get(t);r&&(n=i).push.apply(n,Object(s.a)(Object(s.a)(r).map((function(t){return t.entity}))))}))):i=r,o(i)},this.resetFields=function(t){n.warningUnhooked();var e=n.store;if(!t)return n.updateStore(_({},n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(e,null,{type:"reset"}),void n.notifyWatch();var r=t.map(F);r.forEach((function(t){var e=n.getInitialValue(t);n.updateStore(L(n.store,t,e))})),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(e,r,{type:"reset"}),n.notifyWatch(r)},this.setFields=function(t){n.warningUnhooked();var e=n.store,r=[];t.forEach((function(t){var i=t.name,a=(t.errors,Object(o.a)(t,ct)),c=F(i);r.push(c),"value"in a&&n.updateStore(L(n.store,c,a.value)),n.notifyObservers(e,[c],{type:"setField",data:t})})),n.notifyWatch(r)},this.getFields=function(){return n.getFieldEntities(!0).map((function(t){var e=t.getNamePath(),r=t.getMeta(),i=Object(c.a)(Object(c.a)({},r),{},{name:e,value:n.getFieldValue(e)});return Object.defineProperty(i,"originRCField",{value:!0}),i}))},this.initEntityValue=function(t){var e=t.props.initialValue;if(void 0!==e){var r=t.getNamePath();void 0===T(n.store,r)&&n.updateStore(L(n.store,r,e))}},this.isMergedPreserve=function(t){var e=void 0!==t?t:n.preserve;return null===e||void 0===e||e},this.registerField=function(t){n.fieldEntities.push(t);var e=t.getNamePath();if(n.notifyWatch([e]),void 0!==t.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[t],skipExist:!0}),n.notifyObservers(r,[t.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter((function(e){return e!==t})),!n.isMergedPreserve(i)&&(!r||o.length>1)){var a=r?void 0:n.getInitialValue(e);if(e.length&&n.getFieldValue(e)!==a&&n.fieldEntities.every((function(t){return!z(t.getNamePath(),e)}))){var c=n.store;n.updateStore(L(c,e,a,!0)),n.notifyObservers(c,[e],{type:"remove"}),n.triggerDependenciesUpdate(c,e)}}n.notifyWatch([e])}},this.dispatch=function(t){switch(t.type){case"updateValue":var e=t.namePath,r=t.value;n.updateValue(e,r);break;case"validateField":var i=t.namePath,o=t.triggerName;n.validateFields([i],{triggerName:o})}},this.notifyObservers=function(t,e,r){if(n.subscribable){var i=Object(c.a)(Object(c.a)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach((function(n){(0,n.onStoreChange)(t,e,i)}))}else n.forceRootUpdate()},this.triggerDependenciesUpdate=function(t,e){var r=n.getDependencyChildrenFields(e);return r.length&&n.validateFields(r),n.notifyObservers(t,r,{type:"dependenciesUpdate",relatedFields:[e].concat(Object(s.a)(r))}),r},this.updateValue=function(t,e){var r=F(t),i=n.store;n.updateStore(L(n.store,r,e)),n.notifyObservers(i,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var o=n.triggerDependenciesUpdate(i,r),a=n.callbacks.onValuesChange;a&&a(N(n.store,[r]),n.getFieldsValue());n.triggerOnFieldsChange([r].concat(Object(s.a)(o)))},this.setFieldsValue=function(t){n.warningUnhooked();var e=n.store;if(t){var r=_(n.store,t);n.updateStore(r)}n.notifyObservers(e,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()},this.getDependencyChildrenFields=function(t){var e=new Set,r=[],i=new at;n.getFieldEntities().forEach((function(t){(t.props.dependencies||[]).forEach((function(e){var n=F(e);i.update(n,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return e.add(t),e}))}))}));return function t(n){(i.get(n)||new Set).forEach((function(n){if(!e.has(n)){e.add(n);var i=n.getNamePath();n.isFieldDirty()&&i.length&&(r.push(i),t(i))}}))}(t),r},this.triggerOnFieldsChange=function(t,e){var r=n.callbacks.onFieldsChange;if(r){var i=n.getFields();if(e){var o=new at;e.forEach((function(t){var e=t.name,n=t.errors;o.set(e,n)})),i.forEach((function(t){t.errors=o.get(t.name)||t.errors}))}r(i.filter((function(e){var n=e.name;return D(t,n)})),i)}},this.validateFields=function(t,e){n.warningUnhooked();var r=!!t,i=r?t.map(F):[],o=[];n.getFieldEntities(!0).forEach((function(a){if(r||i.push(a.getNamePath()),(null===e||void 0===e?void 0:e.recursive)&&r){var l=a.getNamePath();l.every((function(e,n){return t[n]===e||void 0===t[n]}))&&i.push(l)}if(a.props.rules&&a.props.rules.length){var u=a.getNamePath();if(!r||D(i,u)){var f=a.validateRules(Object(c.a)({validateMessages:Object(c.a)(Object(c.a)({},C),n.validateMessages)},e));o.push(f.then((function(){return{name:u,errors:[],warnings:[]}})).catch((function(t){var e=[],n=[];return t.forEach((function(t){var r=t.rule.warningOnly,i=t.errors;r?n.push.apply(n,Object(s.a)(i)):e.push.apply(e,Object(s.a)(i))})),e.length?Promise.reject({name:u,errors:e,warnings:n}):{name:u,errors:e,warnings:n}})))}}}));var a=function(t){var e=!1,n=t.length,r=[];return t.length?new Promise((function(i,o){t.forEach((function(t,a){t.catch((function(t){return e=!0,t})).then((function(t){n-=1,r[a]=t,n>0||(e&&o(r),i(r))}))}))})):Promise.resolve([])}(o);n.lastValidatePromise=a,a.catch((function(t){return t})).then((function(t){var e=t.map((function(t){return t.name}));n.notifyObservers(n.store,e,{type:"validateFinish"}),n.triggerOnFieldsChange(e,t)}));var l=a.then((function(){return n.lastValidatePromise===a?Promise.resolve(n.getFieldsValue(i)):Promise.reject([])})).catch((function(t){var e=t.filter((function(t){return t&&t.errors.length}));return Promise.reject({values:n.getFieldsValue(i),errorFields:e,outOfDate:n.lastValidatePromise!==a})}));return l.catch((function(t){return t})),l},this.submit=function(){n.warningUnhooked(),n.validateFields().then((function(t){var e=n.callbacks.onFinish;if(e)try{e(t)}catch(r){console.error(r)}})).catch((function(t){var e=n.callbacks.onFinishFailed;e&&e(t)}))},this.forceRootUpdate=e}));var lt=function(t){var e=r.useRef(),n=r.useState({}),i=Object(rt.a)(n,2)[1];if(!e.current)if(t)e.current=t;else{var o=new st((function(){i({})}));e.current=o.getForm()}return[e.current]},ut=r.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),ft=function(t){var e=t.validateMessages,n=t.onFormChange,i=t.onFormFinish,o=t.children,s=r.useContext(ut),l=r.useRef({});return r.createElement(ut.Provider,{value:Object(c.a)(Object(c.a)({},s),{},{validateMessages:Object(c.a)(Object(c.a)({},s.validateMessages),e),triggerFormChange:function(t,e){n&&n(t,{changedFields:e,forms:l.current}),s.triggerFormChange(t,e)},triggerFormFinish:function(t,e){i&&i(t,{values:e,forms:l.current}),s.triggerFormFinish(t,e)},registerForm:function(t,e){t&&(l.current=Object(c.a)(Object(c.a)({},l.current),{},Object(a.a)({},t,e))),s.registerForm(t,e)},unregisterForm:function(t){var e=Object(c.a)({},l.current);delete e[t],l.current=e,s.unregisterForm(t)}})},o)},ht=ut,dt=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed"],pt=function(t,e){var n=t.name,a=t.initialValues,l=t.fields,u=t.form,f=t.preserve,h=t.children,d=t.component,p=void 0===d?"form":d,g=t.validateMessages,y=t.validateTrigger,b=void 0===y?"onChange":y,x=t.onValuesChange,O=t.onFieldsChange,j=t.onFinish,w=t.onFinishFailed,C=Object(o.a)(t,dt),E=r.useContext(ht),M=lt(u),k=Object(rt.a)(M,1)[0],P=k.getInternalHooks(v),A=P.useSubscribe,I=P.setInitialValues,F=P.setCallbacks,T=P.setValidateMessages,L=P.setPreserve,N=P.destroyForm;r.useImperativeHandle(e,(function(){return k})),r.useEffect((function(){return E.registerForm(n,k),function(){E.unregisterForm(n)}}),[E,k,n]),T(Object(c.a)(Object(c.a)({},E.validateMessages),g)),F({onValuesChange:x,onFieldsChange:function(t){if(E.triggerFormChange(n,t),O){for(var e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];O.apply(void 0,[t].concat(r))}},onFinish:function(t){E.triggerFormFinish(n,t),j&&j(t)},onFinishFailed:w}),L(f);var D,B=r.useRef(null);I(a,!B.current),B.current||(B.current=!0),r.useEffect((function(){return N}),[]);var R="function"===typeof h;R?D=h(k.getFieldsValue(!0),k):D=h;A(!R);var _=r.useRef();r.useEffect((function(){(function(t,e){if(t===e)return!0;if(!t&&e||t&&!e)return!1;if(!t||!e||"object"!==Object(S.a)(t)||"object"!==Object(S.a)(e))return!1;var n=Object.keys(t),r=Object.keys(e),i=new Set([].concat(Object(s.a)(n),Object(s.a)(r)));return Object(s.a)(i).every((function(n){var r=t[n],i=e[n];return"function"===typeof r&&"function"===typeof i||r===i}))})(_.current||[],l||[])||k.setFields(l||[]),_.current=l}),[l,k]);var z=r.useMemo((function(){return Object(c.a)(Object(c.a)({},k),{},{validateTrigger:b})}),[k,b]),V=r.createElement(m.Provider,{value:z},D);return!1===p?V:r.createElement(p,Object(i.a)({},C,{onSubmit:function(t){t.preventDefault(),t.stopPropagation(),k.submit()},onReset:function(t){var e;t.preventDefault(),k.resetFields(),null===(e=C.onReset)||void 0===e||e.call(C,t)}}),V)};function gt(t){try{return JSON.stringify(t)}catch(e){return Math.random()}}var vt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1?arguments[1]:void 0,n=Object(r.useState)(),i=Object(rt.a)(n,2),o=i[0],a=i[1],c=Object(r.useMemo)((function(){return gt(o)}),[o]),s=Object(r.useRef)(c);s.current=c;var l=Object(r.useContext)(m),u=e||l,f=u&&u._init,h=F(t),d=Object(r.useRef)(h);return d.current=h,Object(r.useEffect)((function(){if(f){var t=u.getFieldsValue,e=(0,(0,u.getInternalHooks)(v).registerWatch)((function(t){var e=T(t,d.current),n=gt(e);s.current!==n&&(s.current=n,a(e))})),n=T(t(),d.current);return a(n),e}}),[]),o},yt=r.forwardRef(pt);yt.FormProvider=ft,yt.Field=tt,yt.List=nt,yt.useForm=lt,yt.useWatch=vt;e.f=yt},651:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var r=n(23),i=n(634),o={adjustX:1,adjustY:1},a={adjustX:0,adjustY:0},c=[0,0];function s(t){return"boolean"===typeof t?t?o:a:Object(r.a)(Object(r.a)({},a),t)}function l(t){var e=t.arrowWidth,n=void 0===e?4:e,o=t.horizontalArrowShift,a=void 0===o?16:o,l=t.verticalArrowShift,u=void 0===l?8:l,f=t.autoAdjustOverflow,h=t.arrowPointAtCenter,d={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(a+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(u+n)]},topRight:{points:["br","tc"],offset:[a+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(u+n)]},bottomRight:{points:["tr","bc"],offset:[a+n,4]},rightBottom:{points:["bl","cr"],offset:[4,u+n]},bottomLeft:{points:["tl","bc"],offset:[-(a+n),4]},leftBottom:{points:["br","cl"],offset:[-4,u+n]}};return Object.keys(d).forEach((function(t){d[t]=h?Object(r.a)(Object(r.a)({},d[t]),{overflow:s(f),targetOffset:c}):Object(r.a)(Object(r.a)({},i.a[t]),{overflow:s(f)}),d[t].ignoreShake=!0})),d}},652:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(563),i=n(2);function o(){var t=i.useReducer((function(t){return t+1}),0);return Object(r.a)(t,2)[1]}},656:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(646);function i(t,e){if(t){if("string"===typeof t)return Object(r.a)(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Object(r.a)(t,e):void 0}}},657:function(t,e,n){"use strict";n.d(e,"c",(function(){return ct})),n.d(e,"b",(function(){return ot})),n.d(e,"a",(function(){return U})),n.d(e,"e",(function(){return G}));var r=n(23),i=n(565),o=n(561),a=n(559),c=n(563),s=n(567),l=n(566),u=n(577),f=n(568),h=n(2),d=n(560),p=n.n(d),g=n(576),v=n(750),y=n(588),m=n(603),b=n(610);function x(t,e){var n,r=t.key;return"value"in t&&(n=t.value),null!==r&&void 0!==r?r:void 0!==n?n:"rc-index-key-".concat(e)}function O(t,e){var n=t||{};return{label:n.label||(e?"children":"label"),value:n.value||"value",options:n.options||"options"}}function j(t){var e=Object(a.a)({},t);return"props"in e||Object.defineProperty(e,"props",{get:function(){return Object(f.a)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),e}}),e}var w=n(607),C=["prefixCls","disabled","visible","children","popupElement","containerWidth","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],S=function(t,e){var n=t.prefixCls,i=(t.disabled,t.visible),c=t.children,l=t.popupElement,u=t.containerWidth,f=t.animation,d=t.transitionName,g=t.dropdownStyle,v=t.dropdownClassName,y=t.direction,m=void 0===y?"ltr":y,b=t.placement,x=t.dropdownMatchSelectWidth,O=t.dropdownRender,j=t.dropdownAlign,S=t.getPopupContainer,E=t.empty,M=t.getTriggerDOMNode,k=t.onPopupVisibleChange,P=t.onPopupMouseEnter,A=Object(s.a)(t,C),I="".concat(n,"-dropdown"),F=l;O&&(F=O(l));var T=h.useMemo((function(){return function(t){var e=!0===t?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:e,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:e,adjustY:1}}}}(x)}),[x]),L=f?"".concat(I,"-").concat(f):d,N=h.useRef(null);h.useImperativeHandle(e,(function(){return{getPopupElement:function(){return N.current}}}));var D=Object(a.a)({minWidth:u},g);return"number"===typeof x?D.width=x:x&&(D.width=u),h.createElement(w.a,Object(r.a)({},A,{showAction:k?["click"]:[],hideAction:k?["click"]:[],popupPlacement:b||("rtl"===m?"bottomRight":"bottomLeft"),builtinPlacements:T,prefixCls:I,popupTransitionName:L,popup:h.createElement("div",{ref:N,onMouseEnter:P},F),popupAlign:j,popupVisible:i,getPopupContainer:S,popupClassName:p()(v,Object(o.a)({},"".concat(I,"-empty"),E)),popupStyle:D,getTriggerDOMNode:M,onPopupVisibleChange:k}),c)},E=h.forwardRef(S);E.displayName="SelectTrigger";var M=E,k=n(593),P=n(639),A=function(t){var e,n=t.className,r=t.customizeIcon,i=t.customizeIconProps,o=t.onMouseDown,a=t.onClick,c=t.children;return e="function"===typeof r?r(i):r,h.createElement("span",{className:n,onMouseDown:function(t){t.preventDefault(),o&&o(t)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==e?e:h.createElement("span",{className:p()(n.split(/\s+/).map((function(t){return"".concat(t,"-icon")})))},c))},I=function(t,e){var n,r,i=t.prefixCls,o=t.id,c=t.inputElement,s=t.disabled,l=t.tabIndex,u=t.autoFocus,d=t.autoComplete,g=t.editable,v=t.activeDescendantId,m=t.value,b=t.maxLength,x=t.onKeyDown,O=t.onMouseDown,j=t.onChange,w=t.onPaste,C=t.onCompositionStart,S=t.onCompositionEnd,E=t.open,M=t.attrs,k=c||h.createElement("input",null),P=k,A=P.ref,I=P.props,F=I.onKeyDown,T=I.onChange,L=I.onMouseDown,N=I.onCompositionStart,D=I.onCompositionEnd,B=I.style;return Object(f.c)(!("maxLength"in k.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),k=h.cloneElement(k,Object(a.a)(Object(a.a)(Object(a.a)({type:"search"},I),{},{id:o,ref:Object(y.a)(e,A),disabled:s,tabIndex:l,autoComplete:d||"off",autoFocus:u,className:p()("".concat(i,"-selection-search-input"),null===(n=k)||void 0===n||null===(r=n.props)||void 0===r?void 0:r.className),role:"combobox","aria-expanded":E,"aria-haspopup":"listbox","aria-owns":"".concat(o,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(o,"_list"),"aria-activedescendant":v},M),{},{value:g?m:"",maxLength:b,readOnly:!g,unselectable:g?null:"on",style:Object(a.a)(Object(a.a)({},B),{},{opacity:g?null:0}),onKeyDown:function(t){x(t),F&&F(t)},onMouseDown:function(t){O(t),L&&L(t)},onChange:function(t){j(t),T&&T(t)},onCompositionStart:function(t){C(t),N&&N(t)},onCompositionEnd:function(t){S(t),D&&D(t)},onPaste:w}))},F=h.forwardRef(I);F.displayName="Input";var T=F;function L(t){return Array.isArray(t)?t:void 0!==t?[t]:[]}var N="undefined"!==typeof window&&window.document&&window.document.documentElement;function D(t){var e;return null!==(e=t.key)&&void 0!==e?e:t.value}var B=function(t){t.preventDefault(),t.stopPropagation()},R=function(t){var e,n,r=t.id,i=t.prefixCls,a=t.values,s=t.open,l=t.searchValue,u=t.inputRef,f=t.placeholder,d=t.disabled,g=t.mode,v=t.showSearch,y=t.autoFocus,m=t.autoComplete,b=t.activeDescendantId,x=t.tabIndex,O=t.removeIcon,j=t.maxTagCount,w=t.maxTagTextLength,C=t.maxTagPlaceholder,S=void 0===C?function(t){return"+ ".concat(t.length," ...")}:C,E=t.tagRender,M=t.onToggleOpen,I=t.onRemove,F=t.onInputChange,L=t.onInputPaste,R=t.onInputKeyDown,_=t.onInputMouseDown,z=t.onInputCompositionStart,V=t.onInputCompositionEnd,H=h.useRef(null),K=Object(h.useState)(0),Y=Object(c.a)(K,2),G=Y[0],W=Y[1],X=Object(h.useState)(!1),q=Object(c.a)(X,2),U=q[0],$=q[1],Z="".concat(i,"-selection"),Q=s||"tags"===g?l:"",J="tags"===g||v&&(s||U);function tt(t,e,n,r,i){return h.createElement("span",{className:p()("".concat(Z,"-item"),Object(o.a)({},"".concat(Z,"-item-disabled"),n)),title:"string"===typeof t||"number"===typeof t?t.toString():void 0},h.createElement("span",{className:"".concat(Z,"-item-content")},e),r&&h.createElement(A,{className:"".concat(Z,"-item-remove"),onMouseDown:B,onClick:i,customizeIcon:O},"\xd7"))}e=function(){W(H.current.scrollWidth)},n=[Q],N?h.useLayoutEffect(e,n):h.useEffect(e,n);var et=h.createElement("div",{className:"".concat(Z,"-search"),style:{width:G},onFocus:function(){$(!0)},onBlur:function(){$(!1)}},h.createElement(T,{ref:u,open:s,prefixCls:i,id:r,inputElement:null,disabled:d,autoFocus:y,autoComplete:m,editable:J,activeDescendantId:b,value:Q,onKeyDown:R,onMouseDown:_,onChange:F,onPaste:L,onCompositionStart:z,onCompositionEnd:V,tabIndex:x,attrs:Object(k.a)(t,!0)}),h.createElement("span",{ref:H,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},Q,"\xa0")),nt=h.createElement(P.a,{prefixCls:"".concat(Z,"-overflow"),data:a,renderItem:function(t){var e=t.disabled,n=t.label,r=t.value,i=!d&&!e,o=n;if("number"===typeof w&&("string"===typeof n||"number"===typeof n)){var a=String(o);a.length>w&&(o="".concat(a.slice(0,w),"..."))}var c=function(e){e&&e.stopPropagation(),I(t)};return"function"===typeof E?function(t,e,n,r,i){return h.createElement("span",{onMouseDown:function(t){B(t),M(!s)}},E({label:e,value:t,disabled:n,closable:r,onClose:i}))}(r,o,e,i,c):tt(n,o,e,i,c)},renderRest:function(t){var e="function"===typeof S?S(t):S;return tt(e,e,!1)},suffix:et,itemKey:D,maxCount:j});return h.createElement(h.Fragment,null,nt,!a.length&&!Q&&h.createElement("span",{className:"".concat(Z,"-placeholder")},f))},_=function(t){var e=t.inputElement,n=t.prefixCls,r=t.id,i=t.inputRef,o=t.disabled,a=t.autoFocus,s=t.autoComplete,l=t.activeDescendantId,u=t.mode,f=t.open,d=t.values,p=t.placeholder,g=t.tabIndex,v=t.showSearch,y=t.searchValue,m=t.activeValue,b=t.maxLength,x=t.onInputKeyDown,O=t.onInputMouseDown,j=t.onInputChange,w=t.onInputPaste,C=t.onInputCompositionStart,S=t.onInputCompositionEnd,E=h.useState(!1),M=Object(c.a)(E,2),P=M[0],A=M[1],I="combobox"===u,F=I||v,L=d[0],N=y||"";I&&m&&!P&&(N=m),h.useEffect((function(){I&&A(!1)}),[I,m]);var D=!("combobox"!==u&&!f&&!v)&&!!N,B=!L||"string"!==typeof L.label&&"number"!==typeof L.label?void 0:L.label.toString();return h.createElement(h.Fragment,null,h.createElement("span",{className:"".concat(n,"-selection-search")},h.createElement(T,{ref:i,prefixCls:n,id:r,open:f,inputElement:e,disabled:o,autoFocus:a,autoComplete:s,editable:F,activeDescendantId:l,value:N,onKeyDown:x,onMouseDown:O,onChange:function(t){A(!0),j(t)},onPaste:w,onCompositionStart:C,onCompositionEnd:S,tabIndex:g,attrs:Object(k.a)(t,!0),maxLength:I?b:void 0})),!I&&L&&!D&&h.createElement("span",{className:"".concat(n,"-selection-item"),title:B},L.label),function(){if(L)return null;var t=D?{visibility:"hidden"}:void 0;return h.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:t},p)}())};function z(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,e=h.useRef(null),n=h.useRef(null);function r(r){(r||null===e.current)&&(e.current=r),window.clearTimeout(n.current),n.current=window.setTimeout((function(){e.current=null}),t)}return h.useEffect((function(){return function(){window.clearTimeout(n.current)}}),[]),[function(){return e.current},r]}var V=function(t,e){var n=Object(h.useRef)(null),i=Object(h.useRef)(!1),o=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,u=t.tokenWithEnter,f=t.onSearch,d=t.onSearchSubmit,p=t.onToggleOpen,v=t.onInputKeyDown,y=t.domRef;h.useImperativeHandle(e,(function(){return{focus:function(){n.current.focus()},blur:function(){n.current.blur()}}}));var m=z(0),b=Object(c.a)(m,2),x=b[0],O=b[1],j=Object(h.useRef)(null),w=function(t){!1!==f(t,!0,i.current)&&p(!0)},C={inputRef:n,onInputKeyDown:function(t){var e,n=t.which;n!==g.a.UP&&n!==g.a.DOWN||t.preventDefault(),v&&v(t),n!==g.a.ENTER||"tags"!==s||i.current||a||null===d||void 0===d||d(t.target.value),e=n,[g.a.ESC,g.a.SHIFT,g.a.BACKSPACE,g.a.TAB,g.a.WIN_KEY,g.a.ALT,g.a.META,g.a.WIN_KEY_RIGHT,g.a.CTRL,g.a.SEMICOLON,g.a.EQUALS,g.a.CAPS_LOCK,g.a.CONTEXT_MENU,g.a.F1,g.a.F2,g.a.F3,g.a.F4,g.a.F5,g.a.F6,g.a.F7,g.a.F8,g.a.F9,g.a.F10,g.a.F11,g.a.F12].includes(e)||p(!0)},onInputMouseDown:function(){O(!0)},onInputChange:function(t){var e=t.target.value;if(u&&j.current&&/[\r\n]/.test(j.current)){var n=j.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");e=e.replace(n,j.current)}j.current=null,w(e)},onInputPaste:function(t){var e=t.clipboardData.getData("text");j.current=e},onInputCompositionStart:function(){i.current=!0},onInputCompositionEnd:function(t){i.current=!1,"combobox"!==s&&w(t.target.value)}},S="multiple"===s||"tags"===s?h.createElement(R,Object(r.a)({},t,C)):h.createElement(_,Object(r.a)({},t,C));return h.createElement("div",{ref:y,className:"".concat(o,"-selector"),onClick:function(t){t.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){n.current.focus()})):n.current.focus())},onMouseDown:function(t){var e=x();t.target===n.current||e||t.preventDefault(),("combobox"===s||l&&e)&&a||(a&&f("",!0,!1),p())}},S)},H=h.forwardRef(V);H.displayName="Selector";var K=H;var Y=h.createContext(null);function G(){return h.useContext(Y)}var W=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","showArrow","inputIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],X=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function q(t){return"tags"===t||"multiple"===t}var U=h.forwardRef((function(t,e){var n,f,d=t.id,x=t.prefixCls,O=t.className,j=t.showSearch,w=t.tagRender,C=t.direction,S=t.omitDomProps,E=t.displayValues,k=t.onDisplayValuesChange,P=t.emptyOptions,I=t.notFoundContent,F=void 0===I?"Not Found":I,T=t.onClear,L=t.mode,N=t.disabled,D=t.loading,B=t.getInputElement,R=t.getRawInputElement,_=t.open,V=t.defaultOpen,H=t.onDropdownVisibleChange,G=t.activeValue,U=t.onActiveValueChange,$=t.activeDescendantId,Z=t.searchValue,Q=t.onSearch,J=t.onSearchSplit,tt=t.tokenSeparators,et=t.allowClear,nt=t.showArrow,rt=t.inputIcon,it=t.clearIcon,ot=t.OptionList,at=t.animation,ct=t.transitionName,st=t.dropdownStyle,lt=t.dropdownClassName,ut=t.dropdownMatchSelectWidth,ft=t.dropdownRender,ht=t.dropdownAlign,dt=t.placement,pt=t.getPopupContainer,gt=t.showAction,vt=void 0===gt?[]:gt,yt=t.onFocus,mt=t.onBlur,bt=t.onKeyUp,xt=t.onKeyDown,Ot=t.onMouseDown,jt=Object(s.a)(t,W),wt=q(L),Ct=(void 0!==j?j:wt)||"combobox"===L,St=Object(a.a)({},jt);X.forEach((function(t){delete St[t]})),null===S||void 0===S||S.forEach((function(t){delete St[t]}));var Et=h.useState(!1),Mt=Object(c.a)(Et,2),kt=Mt[0],Pt=Mt[1];h.useEffect((function(){Pt(Object(v.a)())}),[]);var At=h.useRef(null),It=h.useRef(null),Ft=h.useRef(null),Tt=h.useRef(null),Lt=h.useRef(null),Nt=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,e=h.useState(!1),n=Object(c.a)(e,2),r=n[0],i=n[1],o=h.useRef(null),a=function(){window.clearTimeout(o.current)};h.useEffect((function(){return a}),[]);var s=function(e,n){a(),o.current=window.setTimeout((function(){i(e),n&&n()}),t)};return[r,s,a]}(),Dt=Object(c.a)(Nt,3),Bt=Dt[0],Rt=Dt[1],_t=Dt[2];h.useImperativeHandle(e,(function(){var t,e;return{focus:null===(t=Tt.current)||void 0===t?void 0:t.focus,blur:null===(e=Tt.current)||void 0===e?void 0:e.blur,scrollTo:function(t){var e;return null===(e=Lt.current)||void 0===e?void 0:e.scrollTo(t)}}}));var zt=h.useMemo((function(){var t;if("combobox"!==L)return Z;var e=null===(t=E[0])||void 0===t?void 0:t.value;return"string"===typeof e||"number"===typeof e?String(e):""}),[Z,L,E]),Vt="combobox"===L&&"function"===typeof B&&B()||null,Ht="function"===typeof R&&R(),Kt=Object(y.d)(It,null===Ht||void 0===Ht||null===(n=Ht.props)||void 0===n?void 0:n.ref),Yt=Object(u.a)(void 0,{defaultValue:V,value:_}),Gt=Object(c.a)(Yt,2),Wt=Gt[0],Xt=Gt[1],qt=Wt,Ut=!F&&P;(N||Ut&&qt&&"combobox"===L)&&(qt=!1);var $t=!Ut&&qt,Zt=h.useCallback((function(t){var e=void 0!==t?t:!qt;qt===e||N||(Xt(e),null===H||void 0===H||H(e))}),[N,qt,Xt,H]),Qt=h.useMemo((function(){return(tt||[]).some((function(t){return["\n","\r\n"].includes(t)}))}),[tt]),Jt=function(t,e,n){var r=!0,o=t;null===U||void 0===U||U(null);var a=n?null:function(t,e){if(!e||!e.length)return null;var n=!1,r=function t(e,r){var o=Object(b.a)(r),a=o[0],c=o.slice(1);if(!a)return[e];var s=e.split(a);return n=n||s.length>1,s.reduce((function(e,n){return[].concat(Object(i.a)(e),Object(i.a)(t(n,c)))}),[]).filter((function(t){return t}))}(t,e);return n?r:null}(t,tt);return"combobox"!==L&&a&&(o="",null===J||void 0===J||J(a),Zt(!1),r=!1),Q&&zt!==o&&Q(o,{source:e?"typing":"effect"}),r};h.useEffect((function(){qt||wt||"combobox"===L||Jt("",!1,!1)}),[qt]),h.useEffect((function(){Wt&&N&&Xt(!1),N&&Rt(!1)}),[N]);var te=z(),ee=Object(c.a)(te,2),ne=ee[0],re=ee[1],ie=h.useRef(!1),oe=[];h.useEffect((function(){return function(){oe.forEach((function(t){return clearTimeout(t)})),oe.splice(0,oe.length)}}),[]);var ae,ce=h.useState(null),se=Object(c.a)(ce,2),le=se[0],ue=se[1],fe=h.useState({}),he=Object(c.a)(fe,2)[1];Object(m.a)((function(){if($t){var t,e=Math.ceil(null===(t=At.current)||void 0===t?void 0:t.offsetWidth);le===e||Number.isNaN(e)||ue(e)}}),[$t]),Ht&&(ae=function(t){Zt(t)}),function(t,e,n,r){var i=h.useRef(null);i.current={open:e,triggerOpen:n,customizedTrigger:r},h.useEffect((function(){function e(e){var n;if(!(null===(n=i.current)||void 0===n?void 0:n.customizedTrigger)){var r=e.target;r.shadowRoot&&e.composed&&(r=e.composedPath()[0]||r),i.current.open&&t().filter((function(t){return t})).every((function(t){return!t.contains(r)&&t!==r}))&&i.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}((function(){var t;return[At.current,null===(t=Ft.current)||void 0===t?void 0:t.getPopupElement()]}),$t,Zt,!!Ht);var de,pe,ge=h.useMemo((function(){return Object(a.a)(Object(a.a)({},t),{},{notFoundContent:F,open:qt,triggerOpen:$t,id:d,showSearch:Ct,multiple:wt,toggleOpen:Zt})}),[t,F,$t,qt,d,Ct,wt,Zt]),ve=void 0!==nt?nt:D||!wt&&"combobox"!==L;ve&&(de=h.createElement(A,{className:p()("".concat(x,"-arrow"),Object(o.a)({},"".concat(x,"-arrow-loading"),D)),customizeIcon:rt,customizeIconProps:{loading:D,searchValue:zt,open:qt,focused:Bt,showSearch:Ct}}));!N&&et&&(E.length||zt)&&(pe=h.createElement(A,{className:"".concat(x,"-clear"),onMouseDown:function(){null===T||void 0===T||T(),k([],{type:"clear",values:E}),Jt("",!1,!1)},customizeIcon:it},"\xd7"));var ye,me=h.createElement(ot,{ref:Lt}),be=p()(x,O,(f={},Object(o.a)(f,"".concat(x,"-focused"),Bt),Object(o.a)(f,"".concat(x,"-multiple"),wt),Object(o.a)(f,"".concat(x,"-single"),!wt),Object(o.a)(f,"".concat(x,"-allow-clear"),et),Object(o.a)(f,"".concat(x,"-show-arrow"),ve),Object(o.a)(f,"".concat(x,"-disabled"),N),Object(o.a)(f,"".concat(x,"-loading"),D),Object(o.a)(f,"".concat(x,"-open"),qt),Object(o.a)(f,"".concat(x,"-customize-input"),Vt),Object(o.a)(f,"".concat(x,"-show-search"),Ct),f)),xe=h.createElement(M,{ref:Ft,disabled:N,prefixCls:x,visible:$t,popupElement:me,containerWidth:le,animation:at,transitionName:ct,dropdownStyle:st,dropdownClassName:lt,direction:C,dropdownMatchSelectWidth:ut,dropdownRender:ft,dropdownAlign:ht,placement:dt,getPopupContainer:pt,empty:P,getTriggerDOMNode:function(){return It.current},onPopupVisibleChange:ae,onPopupMouseEnter:function(){he({})}},Ht?h.cloneElement(Ht,{ref:Kt}):h.createElement(K,Object(r.a)({},t,{domRef:It,prefixCls:x,inputElement:Vt,ref:Tt,id:d,showSearch:Ct,mode:L,activeDescendantId:$,tagRender:w,values:E,open:qt,onToggleOpen:Zt,activeValue:G,searchValue:zt,onSearch:Jt,onSearchSubmit:function(t){t&&t.trim()&&Q(t,{source:"submit"})},onRemove:function(t){var e=E.filter((function(e){return e!==t}));k(e,{type:"remove",values:[t]})},tokenWithEnter:Qt})));return ye=Ht?xe:h.createElement("div",Object(r.a)({className:be},St,{ref:At,onMouseDown:function(t){var e,n=t.target,r=null===(e=Ft.current)||void 0===e?void 0:e.getPopupElement();if(r&&r.contains(n)){var i=setTimeout((function(){var t,e=oe.indexOf(i);(-1!==e&&oe.splice(e,1),_t(),kt||r.contains(document.activeElement))||(null===(t=Tt.current)||void 0===t||t.focus())}));oe.push(i)}for(var o=arguments.length,a=new Array(o>1?o-1:0),c=1;c<o;c++)a[c-1]=arguments[c];null===Ot||void 0===Ot||Ot.apply(void 0,[t].concat(a))},onKeyDown:function(t){var e,n=ne(),r=t.which;if(r===g.a.ENTER&&("combobox"!==L&&t.preventDefault(),qt||Zt(!0)),re(!!zt),r===g.a.BACKSPACE&&!n&&wt&&!zt&&E.length){for(var o=Object(i.a)(E),a=null,c=o.length-1;c>=0;c-=1){var s=o[c];if(!s.disabled){o.splice(c,1),a=s;break}}a&&k(o,{type:"remove",values:[a]})}for(var l=arguments.length,u=new Array(l>1?l-1:0),f=1;f<l;f++)u[f-1]=arguments[f];qt&&Lt.current&&(e=Lt.current).onKeyDown.apply(e,[t].concat(u));null===xt||void 0===xt||xt.apply(void 0,[t].concat(u))},onKeyUp:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i;qt&&Lt.current&&(i=Lt.current).onKeyUp.apply(i,[t].concat(n));null===bt||void 0===bt||bt.apply(void 0,[t].concat(n))},onFocus:function(){Rt(!0),N||(yt&&!ie.current&&yt.apply(void 0,arguments),vt.includes("focus")&&Zt(!0)),ie.current=!0},onBlur:function(){Rt(!1,(function(){ie.current=!1,Zt(!1)})),N||(zt&&("tags"===L?Q(zt,{source:"submit"}):"multiple"===L&&Q("",{source:"blur"})),mt&&mt.apply(void 0,arguments))}}),Bt&&!qt&&h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(E.map((function(t){var e=t.label,n=t.value;return["number","string"].includes(Object(l.a)(e))?e:n})).join(", "))),xe,de,pe),h.createElement(Y.Provider,{value:ge},ye)}));function $(t,e){return L(t).join("").toUpperCase().includes(e)}var Z=n(667),Q=n(589),J=["children","value"],tt=["children"];function et(t){var e=t.key,n=t.props,r=n.children,i=n.value,o=Object(s.a)(n,J);return Object(a.a)({key:e,value:void 0!==i?i:e,children:r},o)}function nt(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(Q.a)(t).map((function(t,n){if(!h.isValidElement(t)||!t.type)return null;var r=t.type.isSelectOptGroup,i=t.key,o=t.props,c=o.children,l=Object(s.a)(o,tt);return e||!r?et(t):Object(a.a)(Object(a.a)({key:"__RC_SELECT_GRP__".concat(null===i?n:i,"__"),label:i},l),{},{options:nt(c)})})).filter((function(t){return t}))}function rt(t){var e=h.useRef();return e.current=t,h.useCallback((function(){return e.current.apply(e,arguments)}),[])}var it=function(){return null};it.isSelectOptGroup=!0;var ot=it,at=function(){return null};at.isSelectOption=!0;var ct=at,st=n(575),lt=n(620),ut=n(647);var ft=h.createContext(null),ht=["disabled","title","children","style","className"];function dt(t){return"string"===typeof t||"number"===typeof t}var pt=function(t,e){var n=G(),a=n.prefixCls,l=n.id,u=n.open,f=n.multiple,d=n.mode,v=n.searchValue,y=n.toggleOpen,m=n.notFoundContent,b=n.onPopupScroll,x=h.useContext(ft),O=x.flattenOptions,j=x.onActiveValue,w=x.defaultActiveFirstOption,C=x.onSelect,S=x.menuItemSelectedIcon,E=x.rawValues,M=x.fieldNames,P=x.virtual,I=x.listHeight,F=x.listItemHeight,T="".concat(a,"-item"),L=Object(lt.a)((function(){return O}),[u,O],(function(t,e){return e[0]&&t[1]!==e[1]})),N=h.useRef(null),D=function(t){t.preventDefault()},B=function(t){N.current&&N.current.scrollTo("number"===typeof t?{index:t}:t)},R=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=L.length,r=0;r<n;r+=1){var i=(t+r*e+n)%n,o=L[i],a=o.group,c=o.data;if(!a&&!c.disabled)return i}return-1},_=h.useState((function(){return R(0)})),z=Object(c.a)(_,2),V=z[0],H=z[1],K=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];H(t);var n={source:e?"keyboard":"mouse"},r=L[t];r?j(r.value,t,n):j(null,-1,n)};Object(h.useEffect)((function(){K(!1!==w?R(0):-1)}),[L.length,v]);var Y=h.useCallback((function(t){return E.has(t)&&"combobox"!==d}),[d,Object(i.a)(E).toString()]);Object(h.useEffect)((function(){var t,e=setTimeout((function(){if(!f&&u&&1===E.size){var t=Array.from(E)[0],e=L.findIndex((function(e){return e.data.value===t}));-1!==e&&(K(e),B(e))}}));u&&(null===(t=N.current)||void 0===t||t.scrollTo(void 0));return function(){return clearTimeout(e)}}),[u,v]);var W=function(t){void 0!==t&&C(t,{selected:!E.has(t)}),f||y(!1)};if(h.useImperativeHandle(e,(function(){return{onKeyDown:function(t){var e=t.which,n=t.ctrlKey;switch(e){case g.a.N:case g.a.P:case g.a.UP:case g.a.DOWN:var r=0;if(e===g.a.UP?r=-1:e===g.a.DOWN?r=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(e===g.a.N?r=1:e===g.a.P&&(r=-1)),0!==r){var i=R(V+r,r);B(i),K(i,!0)}break;case g.a.ENTER:var o=L[V];o&&!o.data.disabled?W(o.value):W(void 0),u&&t.preventDefault();break;case g.a.ESC:y(!1),u&&t.stopPropagation()}},onKeyUp:function(){},scrollTo:function(t){B(t)}}})),0===L.length)return h.createElement("div",{role:"listbox",id:"".concat(l,"_list"),className:"".concat(T,"-empty"),onMouseDown:D},m);var X=Object.keys(M).map((function(t){return M[t]})),q=function(t){return t.label},U=function(t){var e=L[t];if(!e)return null;var n=e.data||{},i=n.value,o=e.group,a=Object(k.a)(n,!0),c=q(e);return e?h.createElement("div",Object(r.a)({"aria-label":"string"!==typeof c||o?null:c},a,{key:t,role:o?"presentation":"option",id:"".concat(l,"_list_").concat(t),"aria-selected":Y(i)}),i):null};return h.createElement(h.Fragment,null,h.createElement("div",{role:"listbox",id:"".concat(l,"_list"),style:{height:0,width:0,overflow:"hidden"}},U(V-1),U(V),U(V+1)),h.createElement(ut.a,{itemKey:"key",ref:N,data:L,height:I,itemHeight:F,fullHeight:!1,onMouseDown:D,onScroll:b,virtual:P},(function(t,e){var n,i=t.group,a=t.groupOption,c=t.data,l=t.label,u=t.value,f=c.key;if(i){var d,g=null!==(d=c.title)&&void 0!==d?d:dt(l)?l.toString():void 0;return h.createElement("div",{className:p()(T,"".concat(T,"-group")),title:g},void 0!==l?l:f)}var v=c.disabled,y=c.title,m=(c.children,c.style),b=c.className,x=Object(s.a)(c,ht),O=Object(st.a)(x,X),j=Y(u),w="".concat(T,"-option"),C=p()(T,w,b,(n={},Object(o.a)(n,"".concat(w,"-grouped"),a),Object(o.a)(n,"".concat(w,"-active"),V===e&&!v),Object(o.a)(n,"".concat(w,"-disabled"),v),Object(o.a)(n,"".concat(w,"-selected"),j),n)),E=q(t),M=!S||"function"===typeof S||j,P="number"===typeof E?E:E||u,I=dt(P)?P.toString():void 0;return void 0!==y&&(I=y),h.createElement("div",Object(r.a)({},Object(k.a)(O),{"aria-selected":j,className:C,title:I,onMouseMove:function(){V===e||v||K(e)},onClick:function(){v||W(u)},style:m}),h.createElement("div",{className:"".concat(w,"-content")},P),h.isValidElement(S)||j,M&&h.createElement(A,{className:"".concat(T,"-option-state"),customizeIcon:S,customizeIconProps:{isSelected:j}},j?"\u2713":null))})))},gt=h.forwardRef(pt);gt.displayName="OptionList";var vt=gt;var yt=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],mt=["inputValue"];var bt=h.forwardRef((function(t,e){var n=t.id,f=t.mode,d=t.prefixCls,p=void 0===d?"rc-select":d,g=t.backfill,v=t.fieldNames,y=t.inputValue,m=t.searchValue,b=t.onSearch,w=t.autoClearSearchValue,C=void 0===w||w,S=t.onSelect,E=t.onDeselect,M=t.dropdownMatchSelectWidth,k=void 0===M||M,P=t.filterOption,A=t.filterSort,I=t.optionFilterProp,F=t.optionLabelProp,T=t.options,N=t.children,D=t.defaultActiveFirstOption,B=t.menuItemSelectedIcon,R=t.virtual,_=t.listHeight,z=void 0===_?200:_,V=t.listItemHeight,H=void 0===V?20:V,K=t.value,Y=t.defaultValue,G=t.labelInValue,W=t.onChange,X=Object(s.a)(t,yt),Q=Object(Z.a)(n),J=q(f),tt=!(T||!N),et=h.useMemo((function(){return(void 0!==P||"combobox"!==f)&&P}),[P,f]),it=h.useMemo((function(){return O(v,tt)}),[JSON.stringify(v),tt]),ot=Object(u.a)("",{value:void 0!==m?m:y,postState:function(t){return t||""}}),at=Object(c.a)(ot,2),ct=at[0],st=at[1],lt=function(t,e,n,r,i){return h.useMemo((function(){var o=t;!t&&(o=nt(e));var a=new Map,c=new Map,s=function(t,e,n){n&&"string"===typeof n&&t.set(e[n],e)};return function t(e){for(var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l=0;l<e.length;l+=1){var u=e[l];!u[n.options]||o?(a.set(u[n.value],u),s(c,u,n.label),s(c,u,r),s(c,u,i)):t(u[n.options],!0)}}(o),{options:o,valueOptions:a,labelOptions:c}}),[t,e,n,r,i])}(T,N,it,I,F),ut=lt.valueOptions,ht=lt.labelOptions,dt=lt.options,pt=h.useCallback((function(t){return L(t).map((function(t){var e,n,r,i,o;(function(t){return!t||"object"!==Object(l.a)(t)})(t)?e=t:(r=t.key,n=t.label,e=null!==(o=t.value)&&void 0!==o?o:r);var a,c=ut.get(e);c&&(void 0===n&&(n=null===c||void 0===c?void 0:c[F||it.label]),void 0===r&&(r=null!==(a=null===c||void 0===c?void 0:c.key)&&void 0!==a?a:e),i=null===c||void 0===c?void 0:c.disabled);return{label:n,value:e,key:r,disabled:i}}))}),[it,F,ut]),gt=Object(u.a)(Y,{value:K}),bt=Object(c.a)(gt,2),xt=bt[0],Ot=bt[1],jt=function(t,e){var n=h.useRef({values:new Map,options:new Map});return[h.useMemo((function(){var r=n.current,i=r.values,o=r.options,c=t.map((function(t){var e;return void 0===t.label?Object(a.a)(Object(a.a)({},t),{},{label:null===(e=i.get(t.value))||void 0===e?void 0:e.label}):t})),s=new Map,l=new Map;return c.forEach((function(t){s.set(t.value,t),l.set(t.value,e.get(t.value)||o.get(t.value))})),n.current.values=s,n.current.options=l,c}),[t,e]),h.useCallback((function(t){return e.get(t)||n.current.options.get(t)}),[e])]}(h.useMemo((function(){var t,e=pt(xt);return"combobox"!==f||(null===(t=e[0])||void 0===t?void 0:t.value)?e:[]}),[xt,pt,f]),ut),wt=Object(c.a)(jt,2),Ct=wt[0],St=wt[1],Et=h.useMemo((function(){if(!f&&1===Ct.length){var t=Ct[0];if(null===t.value&&(null===t.label||void 0===t.label))return[]}return Ct.map((function(t){var e;return Object(a.a)(Object(a.a)({},t),{},{label:null!==(e=t.label)&&void 0!==e?e:t.value})}))}),[f,Ct]),Mt=h.useMemo((function(){return new Set(Ct.map((function(t){return t.value})))}),[Ct]);h.useEffect((function(){if("combobox"===f){var t,e=null===(t=Ct[0])||void 0===t?void 0:t.value;void 0!==e&&null!==e&&st(String(e))}}),[Ct]);var kt=rt((function(t,e){var n,r=null!==e&&void 0!==e?e:t;return n={},Object(o.a)(n,it.value,t),Object(o.a)(n,it.label,r),n})),Pt=function(t,e,n,r,i){return h.useMemo((function(){if(!n||!1===r)return t;var c=e.options,s=e.label,l=e.value,u=[],f="function"===typeof r,h=n.toUpperCase(),d=f?r:function(t,e){return i?$(e[i],h):e[c]?$(e["children"!==s?s:"label"],h):$(e[l],h)},p=f?function(t){return j(t)}:function(t){return t};return t.forEach((function(t){if(t[c])if(d(n,p(t)))u.push(t);else{var e=t[c].filter((function(t){return d(n,p(t))}));e.length&&u.push(Object(a.a)(Object(a.a)({},t),{},Object(o.a)({},c,e)))}else d(n,p(t))&&u.push(t)})),u}),[t,r,i,n,e])}(h.useMemo((function(){if("tags"!==f)return dt;var t=Object(i.a)(dt);return Object(i.a)(Ct).sort((function(t,e){return t.value<e.value?-1:1})).forEach((function(e){var n=e.value;(function(t){return ut.has(t)})(n)||t.push(kt(n,e.label))})),t}),[kt,dt,ut,Ct,f]),it,ct,et,I),At=h.useMemo((function(){return"tags"!==f||!ct||Pt.some((function(t){return t[I||"value"]===ct}))?Pt:[kt(ct)].concat(Object(i.a)(Pt))}),[kt,I,f,Pt,ct]),It=h.useMemo((function(){return A?Object(i.a)(At).sort((function(t,e){return A(t,e)})):At}),[At,A]),Ft=h.useMemo((function(){return function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.fieldNames,r=e.childrenAsData,i=[],o=O(n,!1),a=o.label,c=o.value,s=o.options;function l(t,e){t.forEach((function(t){var n=t[a];if(e||!(s in t)){var o=t[c];i.push({key:x(t,i.length),groupOption:e,data:t,label:n,value:o})}else{var u=n;void 0===u&&r&&(u=t.label),i.push({key:x(t,i.length),group:!0,data:t,label:u}),l(t[s],!0)}}))}return l(t,!1),i}(It,{fieldNames:it,childrenAsData:tt})}),[It,it,tt]),Tt=function(t){var e=pt(t);if(Ot(e),W&&(e.length!==Ct.length||e.some((function(t,e){var n;return(null===(n=Ct[e])||void 0===n?void 0:n.value)!==(null===t||void 0===t?void 0:t.value)})))){var n=G?e:e.map((function(t){return t.value})),r=e.map((function(t){return j(St(t.value))}));W(J?n:n[0],J?r:r[0])}},Lt=h.useState(null),Nt=Object(c.a)(Lt,2),Dt=Nt[0],Bt=Nt[1],Rt=h.useState(0),_t=Object(c.a)(Rt,2),zt=_t[0],Vt=_t[1],Ht=void 0!==D?D:"combobox"!==f,Kt=h.useCallback((function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.source,i=void 0===r?"keyboard":r;Vt(e),g&&"combobox"===f&&null!==t&&"keyboard"===i&&Bt(String(t))}),[g,f]),Yt=function(t,e){var n=function(){var e,n=St(t);return[G?{label:null===n||void 0===n?void 0:n[it.label],value:t,key:null!==(e=null===n||void 0===n?void 0:n.key)&&void 0!==e?e:t}:t,j(n)]};if(e&&S){var r=n(),i=Object(c.a)(r,2),o=i[0],a=i[1];S(o,a)}else if(!e&&E){var s=n(),l=Object(c.a)(s,2),u=l[0],f=l[1];E(u,f)}},Gt=rt((function(t,e){var n,r=!J||e.selected;n=r?J?[].concat(Object(i.a)(Ct),[t]):[t]:Ct.filter((function(e){return e.value!==t})),Tt(n),Yt(t,r),"combobox"===f?Bt(""):q&&!C||(st(""),Bt(""))})),Wt=h.useMemo((function(){var t=!1!==R&&!1!==k;return Object(a.a)(Object(a.a)({},lt),{},{flattenOptions:Ft,onActiveValue:Kt,defaultActiveFirstOption:Ht,onSelect:Gt,menuItemSelectedIcon:B,rawValues:Mt,fieldNames:it,virtual:t,listHeight:z,listItemHeight:H,childrenAsData:tt})}),[lt,Ft,Kt,Ht,Gt,B,Mt,it,R,k,z,H,tt]);return h.createElement(ft.Provider,{value:Wt},h.createElement(U,Object(r.a)({},X,{id:Q,prefixCls:p,ref:e,omitDomProps:mt,mode:f,displayValues:Et,onDisplayValuesChange:function(t,e){Tt(t),"remove"!==e.type&&"clear"!==e.type||e.values.forEach((function(t){Yt(t.value,!1)}))},searchValue:ct,onSearch:function(t,e){if(st(t),Bt(null),"submit"!==e.source)"blur"!==e.source&&("combobox"===f&&Tt(t),null===b||void 0===b||b(t));else{var n=(t||"").trim();if(n){var r=Array.from(new Set([].concat(Object(i.a)(Mt),[n])));Tt(r),Yt(n,!0),st("")}}},onSearchSplit:function(t){var e=t;"tags"!==f&&(e=t.map((function(t){var e=ht.get(t);return null===e||void 0===e?void 0:e.value})).filter((function(t){return void 0!==t})));var n=Array.from(new Set([].concat(Object(i.a)(Mt),Object(i.a)(e))));Tt(n),n.forEach((function(t){Yt(t,!0)}))},dropdownMatchSelectWidth:k,OptionList:vt,emptyOptions:!Ft.length,activeValue:Dt,activeDescendantId:"".concat(Q,"_list_").concat(zt)})))}));bt.Option=ct,bt.OptGroup=ot;var xt=bt;e.d=xt},658:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CheckOutlined";e.a=i.forwardRef(c)},659:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c})),n.d(e,"j",(function(){return s})),n.d(e,"g",(function(){return l})),n.d(e,"h",(function(){return u})),n.d(e,"f",(function(){return f})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"i",(function(){return g})),n.d(e,"e",(function(){return v}));var r=n(565),i=n(566),o=(n(23),n(567),n(2),n(568));n(635);function a(t,e){if(!t)return[];var n=t.slice(),r=n.indexOf(e);return r>=0&&n.splice(r,1),n}function c(t,e){var n=(t||[]).slice();return-1===n.indexOf(e)&&n.push(e),n}function s(t){return t.split("-")}function l(t,e){return"".concat(t,"-").concat(e)}function u(t){return t&&t.type&&t.type.isTreeNode}function f(t,e){var n=[];return function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];e.forEach((function(e){var r=e.key,i=e.children;n.push(r),t(i)}))}(e[t].children),n}function h(t){if(t.parent){var e=s(t.pos);return Number(e[e.length-1])===t.parent.children.length-1}return!1}function d(t,e,n,r,i,o,a,c,l,u){var f,d=t.clientX,p=t.clientY,g=t.target.getBoundingClientRect(),v=g.top,y=g.height,m=(("rtl"===u?-1:1)*(((null===i||void 0===i?void 0:i.x)||0)-d)-12)/r,b=c[n.props.eventKey];if(p<v+y/2){var x=a.findIndex((function(t){return t.key===b.key})),O=a[x<=0?0:x-1].key;b=c[O]}var j=b.key,w=b,C=b.key,S=0,E=0;if(!l.includes(j))for(var M=0;M<m&&h(b);M+=1)b=b.parent,E+=1;var k=e.props.data,P=b.node,A=!0;return function(t){var e=s(t.pos);return 0===Number(e[e.length-1])}(b)&&0===b.level&&p<v+y/2&&o({dragNode:k,dropNode:P,dropPosition:-1})&&b.key===n.props.eventKey?S=-1:(w.children||[]).length&&l.includes(C)?o({dragNode:k,dropNode:P,dropPosition:0})?S=0:A=!1:0===E?m>-1.5?o({dragNode:k,dropNode:P,dropPosition:1})?S=1:A=!1:o({dragNode:k,dropNode:P,dropPosition:0})?S=0:o({dragNode:k,dropNode:P,dropPosition:1})?S=1:A=!1:o({dragNode:k,dropNode:P,dropPosition:1})?S=1:A=!1,{dropPosition:S,dropLevelOffset:E,dropTargetKey:b.key,dropTargetPos:b.pos,dragOverNodeKey:C,dropContainerKey:0===S?null:(null===(f=b.parent)||void 0===f?void 0:f.key)||null,dropAllowed:A}}function p(t,e){if(t)return e.multiple?t.slice():t.length?[t[0]]:t}function g(t){if(!t)return null;var e;if(Array.isArray(t))e={checkedKeys:t,halfCheckedKeys:void 0};else{if("object"!==Object(i.a)(t))return Object(o.a)(!1,"`checkedKeys` is not an array or an object"),null;e={checkedKeys:t.checked||void 0,halfCheckedKeys:t.halfChecked||void 0}}return e}function v(t,e){var n=new Set;return(t||[]).forEach((function(t){!function t(r){if(!n.has(r)){var i=e[r];if(i){n.add(r);var o=i.parent;i.node.disabled||o&&t(o.key)}}}(t)})),Object(r.a)(n)}},661:function(t,e,n){"use strict";n.r(e);var r=n(561),i=n(23),o=n(560),a=n.n(o),c=n(657),s=n(575),l=n(2),u=n(775),f=n(631),h=n(591),d=n(587),p=n(583),g=n(598),v=n(594),y=n(668),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);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},b=function(t,e){var n,o,b=t.prefixCls,x=t.bordered,O=void 0===x||x,j=t.className,w=t.getPopupContainer,C=t.dropdownClassName,S=t.listHeight,E=void 0===S?256:S,M=t.placement,k=t.listItemHeight,P=void 0===k?24:k,A=t.size,I=t.disabled,F=t.notFoundContent,T=t.status,L=t.showArrow,N=m(t,["prefixCls","bordered","className","getPopupContainer","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","showArrow"]),D=l.useContext(u.b),B=D.getPopupContainer,R=D.getPrefixCls,_=D.renderEmpty,z=D.direction,V=D.virtual,H=D.dropdownMatchSelectWidth,K=l.useContext(d.b),Y=R("select",b),G=R(),W=l.useMemo((function(){var t=N.mode;if("combobox"!==t)return"SECRET_COMBOBOX_MODE_DO_NOT_USE"===t?"combobox":t}),[N.mode]),X="multiple"===W||"tags"===W,q=void 0!==L?L:N.loading||!(X||"combobox"===W),U=Object(l.useContext)(p.b),$=U.status,Z=U.hasFeedback,Q=U.isFormItemInput,J=U.feedbackIcon,tt=Object(v.a)($,T);o=void 0!==F?F:"combobox"===W?null:(_||f.a)("Select");var et=Object(y.a)(Object(i.a)(Object(i.a)({},N),{multiple:X,hasFeedback:Z,feedbackIcon:J,showArrow:q,prefixCls:Y})),nt=et.suffixIcon,rt=et.itemIcon,it=et.removeIcon,ot=et.clearIcon,at=Object(s.a)(N,["suffixIcon","itemIcon"]),ct=a()(C,Object(r.a)({},"".concat(Y,"-dropdown-").concat(z),"rtl"===z)),st=A||K,lt=l.useContext(h.b),ut=I||lt,ft=a()((n={},Object(r.a)(n,"".concat(Y,"-lg"),"large"===st),Object(r.a)(n,"".concat(Y,"-sm"),"small"===st),Object(r.a)(n,"".concat(Y,"-rtl"),"rtl"===z),Object(r.a)(n,"".concat(Y,"-borderless"),!O),Object(r.a)(n,"".concat(Y,"-in-form-item"),Q),n),Object(v.b)(Y,tt,Z),j);return l.createElement(c.d,Object(i.a)({ref:e,virtual:V,dropdownMatchSelectWidth:H},at,{transitionName:Object(g.c)(G,Object(g.b)(M),N.transitionName),listHeight:E,listItemHeight:P,mode:W,prefixCls:Y,placement:void 0!==M?M:"rtl"===z?"bottomRight":"bottomLeft",direction:z,inputIcon:nt,menuItemSelectedIcon:rt,removeIcon:it,clearIcon:ot,notFoundContent:o,className:ft,getPopupContainer:w||B,dropdownClassName:ct,showArrow:Z||L,disabled:ut}))},x=l.forwardRef(b);x.SECRET_COMBOBOX_MODE_DO_NOT_USE="SECRET_COMBOBOX_MODE_DO_NOT_USE",x.Option=c.c,x.OptGroup=c.b,e.default=x},663:function(t,e,n){"use strict";n.d(e,"b",(function(){return o}));var r=n(561),i=n(23),o=["xxl","xl","lg","md","sm","xs"],a={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"},c=new Map,s=-1,l={},u={matchHandlers:{},dispatch:function(t){return l=t,c.forEach((function(t){return t(l)})),c.size>=1},subscribe:function(t){return c.size||this.register(),s+=1,c.set(s,t),t(l),s},unsubscribe:function(t){c.delete(t),c.size||this.unregister()},unregister:function(){var t=this;Object.keys(a).forEach((function(e){var n=a[e],r=t.matchHandlers[n];null===r||void 0===r||r.mql.removeListener(null===r||void 0===r?void 0:r.listener)})),c.clear()},register:function(){var t=this;Object.keys(a).forEach((function(e){var n=a[e],o=function(n){var o=n.matches;t.dispatch(Object(i.a)(Object(i.a)({},l),Object(r.a)({},e,o)))},c=window.matchMedia(n);c.addListener(o),t.matchHandlers[n]={mql:c,listener:o},o(c)}))}};e.a=u},664:function(t,e,n){"use strict";n.d(e,"a",(function(){return I}));var r=n(23),i=n(561),o=n(563),a=n(566),c=n(560),s=n.n(c),l=n(575),u=n(2),f=n.n(u),h=n(775),d=n(591),p=n(587),g=n(578),v=n(586),y=n(636),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);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},b=u.createContext(void 0),x=function(t){var e,n=u.useContext(h.b),o=n.getPrefixCls,a=n.direction,c=t.prefixCls,l=t.size,f=t.className,d=m(t,["prefixCls","size","className"]),p=o("btn-group",c),g="";switch(l){case"large":g="lg";break;case"small":g="sm"}var v=s()(p,(e={},Object(i.a)(e,"".concat(p,"-").concat(g),g),Object(i.a)(e,"".concat(p,"-rtl"),"rtl"===a),e),f);return u.createElement(b.Provider,{value:l},u.createElement("div",Object(r.a)({},d,{className:v})))},O=n(624),j=n(622),w=function(){return{width:0,opacity:0,transform:"scale(0)"}},C=function(t){return{width:t.scrollWidth,opacity:1,transform:"scale(1)"}},S=function(t){var e=t.prefixCls,n=!!t.loading;return t.existIcon?f.a.createElement("span",{className:"".concat(e,"-loading-icon")},f.a.createElement(O.a,null)):f.a.createElement(j.b,{visible:n,motionName:"".concat(e,"-loading-icon-motion"),removeOnLeave:!0,onAppearStart:w,onAppearActive:C,onEnterStart:w,onEnterActive:C,onLeaveStart:C,onLeaveActive:w},(function(t,n){var r=t.className,i=t.style;return f.a.createElement("span",{className:"".concat(e,"-loading-icon"),style:i,ref:n},f.a.createElement(O.a,{className:r}))}))},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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},M=/^[\u4e00-\u9fa5]{2}$/,k=M.test.bind(M);function P(t){return"text"===t||"link"===t}function A(t,e){if(null!==t&&void 0!==t){var n,r=e?" ":"";return"string"!==typeof t&&"number"!==typeof t&&"string"===typeof t.type&&k(t.props.children)?Object(g.a)(t,{children:t.props.children.split("").join(r)}):"string"===typeof t?k(t)?u.createElement("span",null,t.split("").join(r)):u.createElement("span",null,t):(n=t,u.isValidElement(n)&&n.type===u.Fragment?u.createElement("span",null,t):t)}}Object(v.a)("default","primary","ghost","dashed","link","text"),Object(v.a)("default","circle","round"),Object(v.a)("submit","button","reset");function I(t){return"danger"===t?{danger:!0}:{type:t}}var F=function(t,e){var n,c=t.loading,f=void 0!==c&&c,g=t.prefixCls,v=t.type,m=void 0===v?"default":v,x=t.danger,O=t.shape,j=void 0===O?"default":O,w=t.size,C=t.disabled,M=t.className,I=t.children,F=t.icon,T=t.ghost,L=void 0!==T&&T,N=t.block,D=void 0!==N&&N,B=t.htmlType,R=void 0===B?"button":B,_=E(t,["loading","prefixCls","type","danger","shape","size","disabled","className","children","icon","ghost","block","htmlType"]),z=u.useContext(p.b),V=u.useContext(d.b),H=C||V,K=u.useContext(b),Y=u.useState(!!f),G=Object(o.a)(Y,2),W=G[0],X=G[1],q=u.useState(!1),U=Object(o.a)(q,2),$=U[0],Z=U[1],Q=u.useContext(h.b),J=Q.getPrefixCls,tt=Q.autoInsertSpaceInButton,et=Q.direction,nt=e||u.createRef(),rt=function(){return 1===u.Children.count(I)&&!F&&!P(m)},it="boolean"===typeof f?f:(null===f||void 0===f?void 0:f.delay)||!0;u.useEffect((function(){var t=null;return"number"===typeof it?t=window.setTimeout((function(){t=null,X(it)}),it):X(it),function(){t&&(window.clearTimeout(t),t=null)}}),[it]),u.useEffect((function(){if(nt&&nt.current&&!1!==tt){var t=nt.current.textContent;rt()&&k(t)?$||Z(!0):$&&Z(!1)}}),[nt]);var ot=function(e){var n=t.onClick;W||H?e.preventDefault():null===n||void 0===n||n(e)},at=J("btn",g),ct=!1!==tt,st=K||w||z,lt=st&&{large:"lg",small:"sm",middle:void 0}[st]||"",ut=W?"loading":F,ft=Object(l.a)(_,["navigate"]),ht=s()(at,(n={},Object(i.a)(n,"".concat(at,"-").concat(j),"default"!==j&&j),Object(i.a)(n,"".concat(at,"-").concat(m),m),Object(i.a)(n,"".concat(at,"-").concat(lt),lt),Object(i.a)(n,"".concat(at,"-icon-only"),!I&&0!==I&&!!ut),Object(i.a)(n,"".concat(at,"-background-ghost"),L&&!P(m)),Object(i.a)(n,"".concat(at,"-loading"),W),Object(i.a)(n,"".concat(at,"-two-chinese-chars"),$&&ct&&!W),Object(i.a)(n,"".concat(at,"-block"),D),Object(i.a)(n,"".concat(at,"-dangerous"),!!x),Object(i.a)(n,"".concat(at,"-rtl"),"rtl"===et),Object(i.a)(n,"".concat(at,"-disabled"),void 0!==ft.href&&H),n),M),dt=F&&!W?F:u.createElement(S,{existIcon:!!F,prefixCls:at,loading:!!W}),pt=I||0===I?function(t,e){var n=!1,r=[];return u.Children.forEach(t,(function(t){var e=Object(a.a)(t),i="string"===e||"number"===e;if(n&&i){var o=r.length-1,c=r[o];r[o]="".concat(c).concat(t)}else r.push(t);n=i})),u.Children.map(r,(function(t){return A(t,e)}))}(I,rt()&&ct):null;if(void 0!==ft.href)return u.createElement("a",Object(r.a)({},ft,{className:ht,onClick:ot,ref:nt}),dt,pt);var gt=u.createElement("button",Object(r.a)({},_,{type:R,className:ht,onClick:ot,disabled:H,ref:nt}),dt,pt);return P(m)?gt:u.createElement(y.a,{disabled:!!W},gt)},T=u.forwardRef(F);T.Group=x,T.__ANT_BUTTON=!0;e.b=T},667:function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(563),i=n(2),o=n(648),a=0,c=Object(o.a)();function s(t){var e=i.useState(),n=Object(r.a)(e,2),o=n[0],s=n[1];return i.useEffect((function(){s("rc_select_".concat(function(){var t;return c?(t=a,a+=1):t="TEST_OR_SSR",t}()))}),[]),t||o}},668:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(658),i=n(597),o=n(612),a=n(632),c=n(624),s=n(616),l=n(2);function u(t){var e=t.suffixIcon,n=t.clearIcon,u=t.menuItemSelectedIcon,f=t.removeIcon,h=t.loading,d=t.multiple,p=t.hasFeedback,g=t.prefixCls,v=t.showArrow,y=t.feedbackIcon,m=n;n||(m=l.createElement(i.a,null));var b=function(t){return l.createElement(l.Fragment,null,!1!==v&&t,p&&y)},x=null;if(void 0!==e)x=b(e);else if(h)x=b(l.createElement(c.a,{spin:!0}));else{var O="".concat(g,"-suffix");x=function(t){var e=t.open,n=t.showSearch;return b(e&&n?l.createElement(s.a,{className:O}):l.createElement(a.a,{className:O}))}}return{clearIcon:m,suffixIcon:x,itemIcon:void 0!==u?u:d?l.createElement(r.a,null):null,removeIcon:void 0!==f?f:l.createElement(o.a,null)}}},669:function(t,e,n){"use strict";(function(t){function r(){return(r=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function o(t,e){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function a(){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}}function c(t,e,n){return(c=a()?Reflect.construct.bind():function(t,e,n){var r=[null];r.push.apply(r,e);var i=new(Function.bind.apply(t,r));return n&&o(i,n.prototype),i}).apply(null,arguments)}function s(t){var e="function"===typeof Map?new Map:void 0;return(s=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!==typeof t)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof e){if(e.has(t))return e.get(t);e.set(t,r)}function r(){return c(t,arguments,i(this).constructor)}return r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),o(r,t)})(t)}n.d(e,"a",(function(){return P}));var l=/%[sdj%]/g,u=function(){};function f(t){if(!t||!t.length)return null;var e={};return t.forEach((function(t){var n=t.field;e[n]=e[n]||[],e[n].push(t)})),e}function h(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var i=0,o=n.length;if("function"===typeof t)return t.apply(null,n);if("string"===typeof t){var a=t.replace(l,(function(t){if("%%"===t)return"%";if(i>=o)return t;switch(t){case"%s":return String(n[i++]);case"%d":return Number(n[i++]);case"%j":try{return JSON.stringify(n[i++])}catch(e){return"[Circular]"}break;default:return t}}));return a}return t}function d(t,e){return void 0===t||null===t||(!("array"!==e||!Array.isArray(t)||t.length)||!(!function(t){return"string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t}(e)||"string"!==typeof t||t))}function p(t,e,n){var r=0,i=t.length;!function o(a){if(a&&a.length)n(a);else{var c=r;r+=1,c<i?e(t[c],o):n([])}}([])}"undefined"!==typeof t&&Object({NODE_ENV:"production",PUBLIC_URL:".",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0});var g=function(t){var e,n;function r(e,n){var r;return(r=t.call(this,"Async Validation Error")||this).errors=e,r.fields=n,r}return n=t,(e=r).prototype=Object.create(n.prototype),e.prototype.constructor=e,o(e,n),r}(s(Error));function v(t,e,n,r,i){if(e.first){var o=new Promise((function(e,o){p(function(t){var e=[];return Object.keys(t).forEach((function(n){e.push.apply(e,t[n]||[])})),e}(t),n,(function(t){return r(t),t.length?o(new g(t,f(t))):e(i)}))}));return o.catch((function(t){return t})),o}var a=!0===e.firstFields?Object.keys(t):e.firstFields||[],c=Object.keys(t),s=c.length,l=0,u=[],h=new Promise((function(e,o){var h=function(t){if(u.push.apply(u,t),++l===s)return r(u),u.length?o(new g(u,f(u))):e(i)};c.length||(r(u),e(i)),c.forEach((function(e){var r=t[e];-1!==a.indexOf(e)?p(r,n,h):function(t,e,n){var r=[],i=0,o=t.length;function a(t){r.push.apply(r,t||[]),++i===o&&n(r)}t.forEach((function(t){e(t,a)}))}(r,n,h)}))}));return h.catch((function(t){return t})),h}function y(t,e){return function(n){var r,i;return r=t.fullFields?function(t,e){for(var n=t,r=0;r<e.length;r++){if(void 0==n)return n;n=n[e[r]]}return n}(e,t.fullFields):e[n.field||t.fullField],(i=n)&&void 0!==i.message?(n.field=n.field||t.fullField,n.fieldValue=r,n):{message:"function"===typeof n?n():n,fieldValue:r,field:n.field||t.fullField}}}function m(t,e){if(e)for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];"object"===typeof i&&"object"===typeof t[n]?t[n]=r({},t[n],i):t[n]=i}return t}var b,x=function(t,e,n,r,i,o){!t.required||n.hasOwnProperty(t.field)&&!d(e,o||t.type)||r.push(h(i.messages.required,t.fullField))},O=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,j=/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i,w={integer:function(t){return w.number(t)&&parseInt(t,10)===t},float:function(t){return w.number(t)&&!w.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(e){return!1}},date:function(t){return"function"===typeof t.getTime&&"function"===typeof t.getMonth&&"function"===typeof t.getYear&&!isNaN(t.getTime())},number:function(t){return!isNaN(t)&&"number"===typeof t},object:function(t){return"object"===typeof t&&!w.array(t)},method:function(t){return"function"===typeof t},email:function(t){return"string"===typeof t&&t.length<=320&&!!t.match(O)},url:function(t){return"string"===typeof t&&t.length<=2048&&!!t.match(function(){if(b)return b;var t=function(t){return t&&t.includeBoundaries?"(?:(?<=\\s|^)(?=[a-fA-F\\d:])|(?<=[a-fA-F\\d:])(?=\\s|$))":""},e="(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}",n="[a-fA-F\\d]{1,4}",r=("\n(?:\n(?:"+n+":){7}(?:"+n+"|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8\n(?:"+n+":){6}(?:"+e+"|:"+n+"|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4\n(?:"+n+":){5}(?::"+e+"|(?::"+n+"){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4\n(?:"+n+":){4}(?:(?::"+n+"){0,1}:"+e+"|(?::"+n+"){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4\n(?:"+n+":){3}(?:(?::"+n+"){0,2}:"+e+"|(?::"+n+"){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4\n(?:"+n+":){2}(?:(?::"+n+"){0,3}:"+e+"|(?::"+n+"){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4\n(?:"+n+":){1}(?:(?::"+n+"){0,4}:"+e+"|(?::"+n+"){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4\n(?::(?:(?::"+n+"){0,5}:"+e+"|(?::"+n+"){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4\n)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1\n").replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),i=new RegExp("(?:^"+e+"$)|(?:^"+r+"$)"),o=new RegExp("^"+e+"$"),a=new RegExp("^"+r+"$"),c=function(n){return n&&n.exact?i:new RegExp("(?:"+t(n)+e+t(n)+")|(?:"+t(n)+r+t(n)+")","g")};c.v4=function(n){return n&&n.exact?o:new RegExp(""+t(n)+e+t(n),"g")},c.v6=function(e){return e&&e.exact?a:new RegExp(""+t(e)+r+t(e),"g")};var s=c.v4().source,l=c.v6().source;return b=new RegExp("(?:^"+("(?:(?:(?:[a-z]+:)?//)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|"+s+"|"+l+'|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:[/?#][^\\s"]*)?')+"$)","i")}())},hex:function(t){return"string"===typeof t&&!!t.match(j)}},C={required:x,whitespace:function(t,e,n,r,i){(/^\s+$/.test(e)||""===e)&&r.push(h(i.messages.whitespace,t.fullField))},type:function(t,e,n,r,i){if(t.required&&void 0===e)x(t,e,n,r,i);else{var o=t.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(o)>-1?w[o](e)||r.push(h(i.messages.types[o],t.fullField,t.type)):o&&typeof e!==t.type&&r.push(h(i.messages.types[o],t.fullField,t.type))}},range:function(t,e,n,r,i){var o="number"===typeof t.len,a="number"===typeof t.min,c="number"===typeof t.max,s=e,l=null,u="number"===typeof e,f="string"===typeof e,d=Array.isArray(e);if(u?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(s=e.length),f&&(s=e.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),o?s!==t.len&&r.push(h(i.messages[l].len,t.fullField,t.len)):a&&!c&&s<t.min?r.push(h(i.messages[l].min,t.fullField,t.min)):c&&!a&&s>t.max?r.push(h(i.messages[l].max,t.fullField,t.max)):a&&c&&(s<t.min||s>t.max)&&r.push(h(i.messages[l].range,t.fullField,t.min,t.max))},enum:function(t,e,n,r,i){t.enum=Array.isArray(t.enum)?t.enum:[],-1===t.enum.indexOf(e)&&r.push(h(i.messages.enum,t.fullField,t.enum.join(", ")))},pattern:function(t,e,n,r,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||r.push(h(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"===typeof t.pattern){new RegExp(t.pattern).test(e)||r.push(h(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}},S=function(t,e,n,r,i){var o=t.type,a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e,o)&&!t.required)return n();C.required(t,e,r,a,i,o),d(e,o)||C.type(t,e,r,a,i)}n(a)},E={string:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e,"string")&&!t.required)return n();C.required(t,e,r,o,i,"string"),d(e,"string")||(C.type(t,e,r,o,i),C.range(t,e,r,o,i),C.pattern(t,e,r,o,i),!0===t.whitespace&&C.whitespace(t,e,r,o,i))}n(o)},method:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&C.type(t,e,r,o,i)}n(o)},number:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(""===e&&(e=void 0),d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&(C.type(t,e,r,o,i),C.range(t,e,r,o,i))}n(o)},boolean:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&C.type(t,e,r,o,i)}n(o)},regexp:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),d(e)||C.type(t,e,r,o,i)}n(o)},integer:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&(C.type(t,e,r,o,i),C.range(t,e,r,o,i))}n(o)},float:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&(C.type(t,e,r,o,i),C.range(t,e,r,o,i))}n(o)},array:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if((void 0===e||null===e)&&!t.required)return n();C.required(t,e,r,o,i,"array"),void 0!==e&&null!==e&&(C.type(t,e,r,o,i),C.range(t,e,r,o,i))}n(o)},object:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&C.type(t,e,r,o,i)}n(o)},enum:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i),void 0!==e&&C.enum(t,e,r,o,i)}n(o)},pattern:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e,"string")&&!t.required)return n();C.required(t,e,r,o,i),d(e,"string")||C.pattern(t,e,r,o,i)}n(o)},date:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e,"date")&&!t.required)return n();var a;if(C.required(t,e,r,o,i),!d(e,"date"))a=e instanceof Date?e:new Date(e),C.type(t,a,r,o,i),a&&C.range(t,a.getTime(),r,o,i)}n(o)},url:S,hex:S,email:S,required:function(t,e,n,r,i){var o=[],a=Array.isArray(e)?"array":typeof e;C.required(t,e,r,o,i,a),n(o)},any:function(t,e,n,r,i){var o=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(d(e)&&!t.required)return n();C.required(t,e,r,o,i)}n(o)}};function M(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var k=M(),P=function(){function t(t){this.rules=null,this._messages=k,this.define(t)}var e=t.prototype;return e.define=function(t){var e=this;if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==typeof t||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach((function(n){var r=t[n];e.rules[n]=Array.isArray(r)?r:[r]}))},e.messages=function(t){return t&&(this._messages=m(M(),t)),this._messages},e.validate=function(e,n,i){var o=this;void 0===n&&(n={}),void 0===i&&(i=function(){});var a=e,c=n,s=i;if("function"===typeof c&&(s=c,c={}),!this.rules||0===Object.keys(this.rules).length)return s&&s(null,a),Promise.resolve(a);if(c.messages){var l=this.messages();l===k&&(l=M()),m(l,c.messages),c.messages=l}else c.messages=this.messages();var u={};(c.keys||Object.keys(this.rules)).forEach((function(t){var n=o.rules[t],i=a[t];n.forEach((function(n){var c=n;"function"===typeof c.transform&&(a===e&&(a=r({},a)),i=a[t]=c.transform(i)),(c="function"===typeof c?{validator:c}:r({},c)).validator=o.getValidationMethod(c),c.validator&&(c.field=t,c.fullField=c.fullField||t,c.type=o.getType(c),u[t]=u[t]||[],u[t].push({rule:c,value:i,source:a,field:t}))}))}));var d={};return v(u,c,(function(e,n){var i,o=e.rule,s=("object"===o.type||"array"===o.type)&&("object"===typeof o.fields||"object"===typeof o.defaultField);function l(t,e){return r({},e,{fullField:o.fullField+"."+t,fullFields:o.fullFields?[].concat(o.fullFields,[t]):[t]})}function u(i){void 0===i&&(i=[]);var u=Array.isArray(i)?i:[i];!c.suppressWarning&&u.length&&t.warning("async-validator:",u),u.length&&void 0!==o.message&&(u=[].concat(o.message));var f=u.map(y(o,a));if(c.first&&f.length)return d[o.field]=1,n(f);if(s){if(o.required&&!e.value)return void 0!==o.message?f=[].concat(o.message).map(y(o,a)):c.error&&(f=[c.error(o,h(c.messages.required,o.field))]),n(f);var p={};o.defaultField&&Object.keys(e.value).map((function(t){p[t]=o.defaultField})),p=r({},p,e.rule.fields);var g={};Object.keys(p).forEach((function(t){var e=p[t],n=Array.isArray(e)?e:[e];g[t]=n.map(l.bind(null,t))}));var v=new t(g);v.messages(c.messages),e.rule.options&&(e.rule.options.messages=c.messages,e.rule.options.error=c.error),v.validate(e.value,e.rule.options||c,(function(t){var e=[];f&&f.length&&e.push.apply(e,f),t&&t.length&&e.push.apply(e,t),n(e.length?e:null)}))}else n(f)}if(s=s&&(o.required||!o.required&&e.value),o.field=e.field,o.asyncValidator)i=o.asyncValidator(o,e.value,u,e.source,c);else if(o.validator){try{i=o.validator(o,e.value,u,e.source,c)}catch(f){null==console.error||console.error(f),c.suppressValidatorError||setTimeout((function(){throw f}),0),u(f.message)}!0===i?u():!1===i?u("function"===typeof o.message?o.message(o.fullField||o.field):o.message||(o.fullField||o.field)+" fails"):i instanceof Array?u(i):i instanceof Error&&u(i.message)}i&&i.then&&i.then((function(){return u()}),(function(t){return u(t)}))}),(function(t){!function(t){var e=[],n={};function r(t){var n;Array.isArray(t)?e=(n=e).concat.apply(n,t):e.push(t)}for(var i=0;i<t.length;i++)r(t[i]);e.length?(n=f(e),s(e,n)):s(null,a)}(t)}),a)},e.getType=function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!==typeof t.validator&&t.type&&!E.hasOwnProperty(t.type))throw new Error(h("Unknown rule type %s",t.type));return t.type||"string"},e.getValidationMethod=function(t){if("function"===typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?E.required:E[this.getType(t)]||void 0},t}();P.register=function(t,e){if("function"!==typeof e)throw new Error("Cannot register a validator by type, validator is not a function");E[t]=e},P.warning=u,P.messages=k,P.validators=E}).call(this,n(429))},670:function(t,e,n){"use strict";var r=n(601);e.a=r.a},671:function(t,e,n){"use strict";var r=n(2),i=Object(r.createContext)(void 0);e.a=i},672:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(23),i=n(2),o=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},a=i.createContext(null),c=function(t){var e=t.children,n=o(t,["children"]),c=i.useContext(a),s=i.useMemo((function(){return Object(r.a)(Object(r.a)({},c),n)}),[c,n.prefixCls,n.mode,n.selectable]);return i.createElement(a.Provider,{value:s},e)};e.b=a},678:function(t,e,n){"use strict";var r=n(559),i=n(2),o={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"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="DoubleLeftOutlined";e.a=i.forwardRef(c)},679:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="DoubleRightOutlined";e.a=i.forwardRef(c)},680:function(t,e,n){"use strict";n.r(e);var r=n(561),i=n(23),o=n(560),a=n.n(o),c=n(727),s=n(2),l=n(775),u=n(583),f=n(565),h=n(563),d=n(575),p=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},g=s.createContext(null),v=function(t,e){var n=t.defaultValue,o=t.children,c=t.options,u=void 0===c?[]:c,v=t.prefixCls,y=t.className,m=t.style,b=t.onChange,x=p(t,["defaultValue","children","options","prefixCls","className","style","onChange"]),O=s.useContext(l.b),w=O.getPrefixCls,C=O.direction,S=s.useState(x.value||n||[]),E=Object(h.a)(S,2),M=E[0],k=E[1],P=s.useState([]),A=Object(h.a)(P,2),I=A[0],F=A[1];s.useEffect((function(){"value"in x&&k(x.value||[])}),[x.value]);var T=function(){return u.map((function(t){return"string"===typeof t||"number"===typeof t?{label:t,value:t}:t}))},L=w("checkbox",v),N="".concat(L,"-group"),D=Object(d.a)(x,["value","disabled"]);u&&u.length>0&&(o=T().map((function(t){return s.createElement(j,{prefixCls:L,key:t.value.toString(),disabled:"disabled"in t?t.disabled:x.disabled,value:t.value,checked:-1!==M.indexOf(t.value),onChange:t.onChange,className:"".concat(N,"-item"),style:t.style},t.label)})));var B={toggleOption:function(t){var e=M.indexOf(t.value),n=Object(f.a)(M);-1===e?n.push(t.value):n.splice(e,1),"value"in x||k(n);var r=T();null===b||void 0===b||b(n.filter((function(t){return-1!==I.indexOf(t)})).sort((function(t,e){return r.findIndex((function(e){return e.value===t}))-r.findIndex((function(t){return t.value===e}))})))},value:M,disabled:x.disabled,name:x.name,registerValue:function(t){F((function(e){return[].concat(Object(f.a)(e),[t])}))},cancelValue:function(t){F((function(e){return e.filter((function(e){return e!==t}))}))}},R=a()(N,Object(r.a)({},"".concat(N,"-rtl"),"rtl"===C),y);return s.createElement("div",Object(i.a)({className:R,style:m},D,{ref:e}),s.createElement(g.Provider,{value:B},o))},y=s.forwardRef(v),m=s.memo(y),b=n(591),x=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},O=function(t,e){var n,o=t.prefixCls,f=t.className,h=t.children,d=t.indeterminate,p=void 0!==d&&d,v=t.style,y=t.onMouseEnter,m=t.onMouseLeave,O=t.skipGroup,j=void 0!==O&&O,w=t.disabled,C=x(t,["prefixCls","className","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),S=s.useContext(l.b),E=S.getPrefixCls,M=S.direction,k=s.useContext(g),P=Object(s.useContext)(u.b).isFormItemInput,A=Object(s.useContext)(b.b),I=w||(null===k||void 0===k?void 0:k.disabled)||A,F=s.useRef(C.value);s.useEffect((function(){null===k||void 0===k||k.registerValue(C.value)}),[]),s.useEffect((function(){if(!j)return C.value!==F.current&&(null===k||void 0===k||k.cancelValue(F.current),null===k||void 0===k||k.registerValue(C.value),F.current=C.value),function(){return null===k||void 0===k?void 0:k.cancelValue(C.value)}}),[C.value]);var T=E("checkbox",o),L=Object(i.a)({},C);k&&!j&&(L.onChange=function(){C.onChange&&C.onChange.apply(C,arguments),k.toggleOption&&k.toggleOption({label:h,value:C.value})},L.name=k.name,L.checked=-1!==k.value.indexOf(C.value));var N=a()((n={},Object(r.a)(n,"".concat(T,"-wrapper"),!0),Object(r.a)(n,"".concat(T,"-rtl"),"rtl"===M),Object(r.a)(n,"".concat(T,"-wrapper-checked"),L.checked),Object(r.a)(n,"".concat(T,"-wrapper-disabled"),I),Object(r.a)(n,"".concat(T,"-wrapper-in-form-item"),P),n),f),D=a()(Object(r.a)({},"".concat(T,"-indeterminate"),p)),B=p?"mixed":void 0;return s.createElement("label",{className:N,style:v,onMouseEnter:y,onMouseLeave:m},s.createElement(c.a,Object(i.a)({"aria-checked":B},L,{prefixCls:T,className:D,disabled:I,ref:e})),void 0!==h&&s.createElement("span",null,h))};var j=s.forwardRef(O),w=j;w.Group=m,w.__ANT_CHECKBOX=!0;e.default=w},684:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="EllipsisOutlined";e.a=i.forwardRef(c)},685:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),i=r.createContext(null)},686:function(t,e,n){"use strict";var r=n(561),i=n(23),o=n(560),a=n.n(o),c=n(727),s=n(588),l=n(2),u=n(775),f=n(591),h=n(583),d=n(687),p=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},g=function(t,e){var n,o=l.useContext(d.d),g=l.useContext(d.b),v=l.useContext(u.b),y=v.getPrefixCls,m=v.direction,b=l.useRef(),x=Object(s.a)(e,b),O=Object(l.useContext)(h.b).isFormItemInput,j=t.prefixCls,w=t.className,C=t.children,S=t.style,E=t.disabled,M=p(t,["prefixCls","className","children","style","disabled"]),k=y("radio",j),P="button"===((null===o||void 0===o?void 0:o.optionType)||g)?"".concat(k,"-button"):k,A=Object(i.a)({},M),I=l.useContext(f.b);A.disabled=E||I,o&&(A.name=o.name,A.onChange=function(e){var n,r;null===(n=t.onChange)||void 0===n||n.call(t,e),null===(r=null===o||void 0===o?void 0:o.onChange)||void 0===r||r.call(o,e)},A.checked=t.value===o.value,A.disabled=A.disabled||o.disabled);var F=a()("".concat(P,"-wrapper"),(n={},Object(r.a)(n,"".concat(P,"-wrapper-checked"),A.checked),Object(r.a)(n,"".concat(P,"-wrapper-disabled"),A.disabled),Object(r.a)(n,"".concat(P,"-wrapper-rtl"),"rtl"===m),Object(r.a)(n,"".concat(P,"-wrapper-in-form-item"),O),n),w);return l.createElement("label",{className:F,style:S,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave},l.createElement(c.a,Object(i.a)({},A,{type:"radio",prefixCls:P,ref:x})),void 0!==C?l.createElement("span",null,C):null)},v=l.forwardRef(g);e.a=v},687:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c}));var r=n(2),i=r.createContext(null),o=i.Provider;e.d=i;var a=r.createContext(null),c=a.Provider},709:function(t,e,n){"use strict";n.r(e);var r=n(771);e.default=r.a},716:function(t,e,n){"use strict";var r=n(570),i=n(571),o=n(572),a=n(573),c=n(23),s=n(684),l=n(560),u=n.n(l),f=n(611),h=n(728),d=n(575),p=n(2),g=n(775),v=n(721),y=n(598),m=n(578),b=n(566),x=n(561),O=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},j=function(t){var e=t.prefixCls,n=t.className,r=t.dashed,i=O(t,["prefixCls","className","dashed"]),o=(0,p.useContext(g.b).getPrefixCls)("menu",e),a=u()(Object(x.a)({},"".concat(o,"-item-divider-dashed"),!!r),n);return p.createElement(f.a,Object(c.a)({className:a},i))},w=n(589),C=n(640),S=Object(p.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},M=function(t){Object(o.a)(n,t);var e=Object(a.a)(n);function n(){var t;return Object(r.a)(this,n),(t=e.apply(this,arguments)).renderItem=function(e){var n,r,i=e.siderCollapsed,o=t.context,a=o.prefixCls,s=o.firstLevel,l=o.inlineCollapsed,h=o.direction,d=o.disableMenuItemTitleTooltip,g=t.props,v=g.className,y=g.children,b=t.props,O=b.title,j=b.icon,S=b.danger,M=E(b,["title","icon","danger"]),k=O;"undefined"===typeof O?k=s?y:"":!1===O&&(k="");var P={title:k};i||l||(P.title=null,P.visible=!1);var A=Object(w.a)(y).length,I=p.createElement(f.b,Object(c.a)({},M,{className:u()((n={},Object(x.a)(n,"".concat(a,"-item-danger"),S),Object(x.a)(n,"".concat(a,"-item-only-child"),1===(j?A+1:A)),n),v),title:"string"===typeof O?O:void 0}),Object(m.a)(j,{className:u()(Object(m.b)(j)?null===(r=j.props)||void 0===r?void 0:r.className:"","".concat(a,"-item-icon"))}),t.renderItemChildren(l));return d||(I=p.createElement(C.default,Object(c.a)({},P,{placement:"rtl"===h?"left":"right",overlayClassName:"".concat(a,"-inline-collapsed-tooltip")}),I)),I},t}return Object(i.a)(n,[{key:"renderItemChildren",value:function(t){var e=this.context,n=e.prefixCls,r=e.firstLevel,i=this.props,o=i.icon,a=i.children,c=p.createElement("span",{className:"".concat(n,"-title-content")},a);return(!o||Object(m.b)(a)&&"span"===a.type)&&a&&t&&r&&"string"===typeof a?p.createElement("div",{className:"".concat(n,"-inline-collapsed-noicon")},a.charAt(0)):c}},{key:"render",value:function(){return p.createElement(v.a.Consumer,null,this.renderItem)}}]),n}(p.Component);M.contextType=S;var k=function(t){var e,n,r=t.popupClassName,i=t.icon,o=t.title,a=t.theme,s=p.useContext(S),l=s.prefixCls,h=s.inlineCollapsed,g=s.antdMenuTheme,v=Object(f.h)();if(i){var y=Object(m.b)(o)&&"span"===o.type;n=p.createElement(p.Fragment,null,Object(m.a)(i,{className:u()(Object(m.b)(i)?null===(e=i.props)||void 0===e?void 0:e.className:"","".concat(l,"-item-icon"))}),y?o:p.createElement("span",{className:"".concat(l,"-title-content")},o))}else n=h&&!v.length&&o&&"string"===typeof o?p.createElement("div",{className:"".concat(l,"-inline-collapsed-noicon")},o.charAt(0)):p.createElement("span",{className:"".concat(l,"-title-content")},o);var b=p.useMemo((function(){return Object(c.a)(Object(c.a)({},s),{firstLevel:!1})}),[s]);return p.createElement(S.Provider,{value:b},p.createElement(f.f,Object(c.a)({},Object(d.a)(t,["icon"]),{title:n,popupClassName:u()(l,"".concat(l,"-").concat(a||g),r)})))},P=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function A(t){return p.useMemo((function(){return t?function t(e){return(e||[]).map((function(e,n){if(e&&"object"===Object(b.a)(e)){var r=e,i=r.label,o=r.children,a=r.key,s=r.type,l=P(r,["label","children","key","type"]),u=null!==a&&void 0!==a?a:"tmp-".concat(n);return o||"group"===s?"group"===s?p.createElement(f.c,Object(c.a)({key:u},l,{title:i}),t(o)):p.createElement(k,Object(c.a)({key:u},l,{title:i}),t(o)):"divider"===s?p.createElement(j,Object(c.a)({key:u},l)):p.createElement(M,Object(c.a)({key:u},l),i)}return null})).filter((function(t){return t}))}(t):t}),[t])}var I=n(672),F=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},T=Object(p.forwardRef)((function(t,e){var n,r=p.useContext(I.b)||{},i=p.useContext(g.b),o=i.getPrefixCls,a=i.getPopupContainer,l=i.direction,v=o(),b=t.prefixCls,x=t.className,O=t.theme,j=void 0===O?"light":O,w=t.expandIcon,C=t._internalDisableMenuItemTitleTooltip,E=t.inlineCollapsed,M=t.siderCollapsed,k=t.items,P=t.children,T=t.mode,L=t.selectable,N=t.onClick,D=F(t,["prefixCls","className","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","mode","selectable","onClick"]),B=Object(d.a)(D,["collapsedWidth"]),R=A(k)||P;null===(n=r.validator)||void 0===n||n.call(r,{mode:T});var _,z=Object(h.a)((function(){var t;null===N||void 0===N||N.apply(void 0,arguments),null===(t=null===r||void 0===r?void 0:r.onClick)||void 0===t||t.call(r)})),V=r.mode||T,H=null!==L&&void 0!==L?L:r.selectable,K=p.useMemo((function(){return void 0!==M?M:E}),[E,M]),Y={horizontal:{motionName:"".concat(v,"-slide-up")},inline:y.a,other:{motionName:"".concat(v,"-zoom-big")}},G=o("menu",b||r.prefixCls),W=u()("".concat(G,"-").concat(j),x);_="function"===typeof w?w:Object(m.a)(w||r.expandIcon,{className:"".concat(G,"-submenu-expand-icon")});var X=p.useMemo((function(){return{prefixCls:G,inlineCollapsed:K||!1,antdMenuTheme:j,direction:l,firstLevel:!0,disableMenuItemTitleTooltip:C}}),[G,K,j,l,C]);return p.createElement(I.b.Provider,{value:null},p.createElement(S.Provider,{value:X},p.createElement(f.g,Object(c.a)({getPopupContainer:a,overflowedIndicator:p.createElement(s.a,null),overflowedIndicatorPopupClassName:"".concat(G,"-").concat(j),mode:V,selectable:H,onClick:z},B,{inlineCollapsed:K,className:W,prefixCls:G,direction:l,defaultMotions:Y,expandIcon:_,ref:e}),R)))})),L=function(t){Object(o.a)(n,t);var e=Object(a.a)(n);function n(){var t;return Object(r.a)(this,n),(t=e.apply(this,arguments)).focus=function(e){var n;null===(n=t.menu)||void 0===n||n.focus(e)},t}return Object(i.a)(n,[{key:"render",value:function(){var t=this;return p.createElement(v.a.Consumer,null,(function(e){return p.createElement(T,Object(c.a)({ref:function(e){t.menu=e}},t.props,e))}))}}]),n}(p.Component);L.Divider=j,L.Item=M,L.SubMenu=k,L.ItemGroup=f.c;e.a=L},717:function(t,e,n){"use strict";var r=n(561),i=n(23),o=n(678),a=n(679),c=n(627),s=n(608),l=n(560),u=n.n(l),f=n(559),h=n(570),d=n(571),p=n(572),g=n(573),v=n(2),y=n.n(v),m=function(t){var e,n="".concat(t.rootPrefixCls,"-item"),i=u()(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 y.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",y.a.createElement("a",{rel:"nofollow"},t.page)))},b=13,x=38,O=40,j=function(t){Object(p.a)(n,t);var e=Object(g.a)(n);function n(){var t;Object(h.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))).state={goInputText:""},t.buildOptionText=function(e){return"".concat(e," ").concat(t.props.locale.items_per_page)},t.changeSize=function(e){t.props.changeSize(Number(e))},t.handleChange=function(e){t.setState({goInputText:e.target.value})},t.handleBlur=function(e){var n=t.props,r=n.goButton,i=n.quickGo,o=n.rootPrefixCls,a=t.state.goInputText;r||""===a||(t.setState({goInputText:""}),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(o,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(o,"-item"))>=0)||i(t.getValidValue()))},t.go=function(e){""!==t.state.goInputText&&(e.keyCode!==b&&"click"!==e.type||(t.setState({goInputText:""}),t.props.quickGo(t.getValidValue())))},t}return Object(d.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,o=e.changeSize,a=e.quickGo,c=e.goButton,s=e.selectComponentClass,l=e.buildOptionText,u=e.selectPrefixCls,f=e.disabled,h=this.state.goInputText,d="".concat(i,"-options"),p=s,g=null,v=null,m=null;if(!o&&!a)return null;var b=this.getPageSizeOptions();if(o&&p){var x=b.map((function(e,n){return y.a.createElement(p.Option,{key:n,value:e.toString()},(l||t.buildOptionText)(e))}));g=y.a.createElement(p,{disabled:f,prefixCls:u,showSearch:!1,className:"".concat(d,"-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 a&&(c&&(m="boolean"===typeof c?y.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(d,"-quick-jumper-button")},r.jump_to_confirm):y.a.createElement("span",{onClick:this.go,onKeyUp:this.go},c)),v=y.a.createElement("div",{className:"".concat(d,"-quick-jumper")},r.jump_to,y.a.createElement("input",{disabled:f,type:"text",value:h,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":r.page}),r.page,m)),y.a.createElement("li",{className:"".concat(d)},g,v)}}]),n}(y.a.Component);j.defaultProps={pageSizeOptions:["10","20","50","100"]};var w=j;function C(){}function S(t){var e=Number(t);return"number"===typeof e&&!isNaN(e)&&isFinite(e)&&Math.floor(e)===e}function E(t,e,n){var r="undefined"===typeof t?e.pageSize:t;return Math.floor((n.total-1)/r)+1}var M=function(t){Object(p.a)(n,t);var e=Object(g.a)(n);function n(t){var r;Object(h.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(E(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||y.a.createElement("button",{type:"button","aria-label":e,className:"".concat(n,"-item-link")});return"function"===typeof t&&(i=y.a.createElement(t,Object(f.a)({},r.props))),i},r.savePaginationNode=function(t){r.paginationNode=t},r.isValid=function(t){var e=r.props.total;return S(t)&&t!==r.state.current&&S(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!==x&&t.keyCode!==O||t.preventDefault()},r.handleKeyUp=function(t){var e=r.getValidValue(t);e!==r.state.currentInputValue&&r.setState({currentInputValue:e}),t.keyCode===b?r.handleChange(e):t.keyCode===x?r.handleChange(e-1):t.keyCode===O&&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=E(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,o=r.state,a=o.pageSize,c=o.current,s=o.currentInputValue;if(r.isValid(t)&&!n){var l=E(void 0,r.state,r.props),u=t;return t>l?u=l:t<1&&(u=1),"current"in r.props||r.setState({current:u}),u!==s&&r.setState({currentInputValue:u}),i(u,a),u}return c},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.current<E(void 0,r.state,r.props)},r.runIfEnter=function(t,e){if("Enter"===t.key||13===t.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];e.apply(void 0,r)}},r.runIfEnterPrev=function(t){r.runIfEnter(t,r.prev)},r.runIfEnterNext=function(t){r.runIfEnter(t,r.next)},r.runIfEnterJumpPrev=function(t){r.runIfEnter(t,r.jumpPrev)},r.runIfEnterJumpNext=function(t){r.runIfEnter(t,r.jumpNext)},r.handleGoTO=function(t){t.keyCode!==b&&"click"!==t.type||r.handleChange(r.state.currentInputValue)};var i=t.onChange!==C;"current"in t&&!i&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var o=t.defaultCurrent;"current"in t&&(o=t.current);var a=t.defaultPageSize;return"pageSize"in t&&(a=t.pageSize),o=Math.min(o,E(a,void 0,t)),r.state={current:o,currentInputValue:o,pageSize:a},r}return Object(d.a)(n,[{key:"componentDidUpdate",value:function(t,e){var n=this.props.prefixCls;if(e.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(e.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(t){var e=t.target.value,n=E(void 0,this.state,this.props),r=this.state.currentInputValue;return""===e?e:isNaN(Number(e))?r:e>=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(v.isValidElement)(r)?Object(v.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(v.isValidElement)(r)?Object(v.cloneElement)(r,{disabled:i}):r}},{key:"render",value:function(){var t=this,e=this.props,n=e.prefixCls,o=e.className,a=e.style,c=e.disabled,s=e.hideOnSinglePage,l=e.total,f=e.locale,h=e.showQuickJumper,d=e.showLessItems,p=e.showTitle,g=e.showTotal,b=e.simple,x=e.itemRender,O=e.showPrevNextJumpers,j=e.jumpPrevIcon,C=e.jumpNextIcon,S=e.selectComponentClass,M=e.selectPrefixCls,k=e.pageSizeOptions,P=this.state,A=P.current,I=P.pageSize,F=P.currentInputValue;if(!0===s&&l<=I)return null;var T=E(void 0,this.state,this.props),L=[],N=null,D=null,B=null,R=null,_=null,z=h&&h.goButton,V=d?1:2,H=A-1>0?A-1:0,K=A+1<T?A+1:T,Y=Object.keys(this.props).reduce((function(e,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(e[n]=t.props[n]),e}),{});if(b)return z&&(_="boolean"===typeof z?y.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},f.jump_to_confirm):y.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),_=y.a.createElement("li",{title:p?"".concat(f.jump_to).concat(A,"/").concat(T):null,className:"".concat(n,"-simple-pager")},_)),y.a.createElement("ul",Object(i.a)({className:u()(n,"".concat(n,"-simple"),Object(r.a)({},"".concat(n,"-disabled"),c),o),style:a,ref:this.savePaginationNode},Y),y.a.createElement("li",{title:p?f.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:u()("".concat(n,"-prev"),Object(r.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(H)),y.a.createElement("li",{title:p?"".concat(A,"/").concat(T):null,className:"".concat(n,"-simple-pager")},y.a.createElement("input",{type:"text",value:F,disabled:c,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:"3"}),y.a.createElement("span",{className:"".concat(n,"-slash")},"/"),T),y.a.createElement("li",{title:p?f.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:u()("".concat(n,"-next"),Object(r.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(K)),_);if(T<=3+2*V){var G={locale:f,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:p,itemRender:x};T||L.push(y.a.createElement(m,Object(i.a)({},G,{key:"noPager",page:1,className:"".concat(n,"-item-disabled")})));for(var W=1;W<=T;W+=1){var X=A===W;L.push(y.a.createElement(m,Object(i.a)({},G,{key:W,page:W,active:X})))}}else{var q=d?f.prev_3:f.prev_5,U=d?f.next_3:f.next_5;O&&(N=y.a.createElement("li",{title:p?q:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:u()("".concat(n,"-jump-prev"),Object(r.a)({},"".concat(n,"-jump-prev-custom-icon"),!!j))},x(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(j,"prev page"))),D=y.a.createElement("li",{title:p?U:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:u()("".concat(n,"-jump-next"),Object(r.a)({},"".concat(n,"-jump-next-custom-icon"),!!C))},x(this.getJumpNextPage(),"jump-next",this.getItemIcon(C,"next page")))),R=y.a.createElement(m,{locale:f,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:T,page:T,active:!1,showTitle:p,itemRender:x}),B=y.a.createElement(m,{locale:f,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:p,itemRender:x});var $=Math.max(1,A-V),Z=Math.min(A+V,T);A-1<=V&&(Z=1+2*V),T-A<=V&&($=T-2*V);for(var Q=$;Q<=Z;Q+=1){var J=A===Q;L.push(y.a.createElement(m,{locale:f,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Q,page:Q,active:J,showTitle:p,itemRender:x}))}A-1>=2*V&&3!==A&&(L[0]=Object(v.cloneElement)(L[0],{className:"".concat(n,"-item-after-jump-prev")}),L.unshift(N)),T-A>=2*V&&A!==T-2&&(L[L.length-1]=Object(v.cloneElement)(L[L.length-1],{className:"".concat(n,"-item-before-jump-next")}),L.push(D)),1!==$&&L.unshift(B),Z!==T&&L.push(R)}var tt=null;g&&(tt=y.a.createElement("li",{className:"".concat(n,"-total-text")},g(l,[0===l?0:(A-1)*I+1,A*I>l?l:A*I])));var et=!this.hasPrev()||!T,nt=!this.hasNext()||!T;return y.a.createElement("ul",Object(i.a)({className:u()(n,o,Object(r.a)({},"".concat(n,"-disabled"),c)),style:a,unselectable:"unselectable",ref:this.savePaginationNode},Y),tt,y.a.createElement("li",{title:p?f.prev_page:null,onClick:this.prev,tabIndex:et?null:0,onKeyPress:this.runIfEnterPrev,className:u()("".concat(n,"-prev"),Object(r.a)({},"".concat(n,"-disabled"),et)),"aria-disabled":et},this.renderPrev(H)),L,y.a.createElement("li",{title:p?f.next_page:null,onClick:this.next,tabIndex:nt?null:0,onKeyPress:this.runIfEnterNext,className:u()("".concat(n,"-next"),Object(r.a)({},"".concat(n,"-disabled"),nt)),"aria-disabled":nt},this.renderNext(K)),y.a.createElement(w,{disabled:c,locale:f,rootPrefixCls:n,selectComponentClass:S,selectPrefixCls:M,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:A,pageSize:I,pageSizeOptions:k,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=E(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}(y.a.Component);M.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:C,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:C,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 k=M,P=n(623),A=n(775),I=n(643),F=n(595),T=n(661),L=function(t){return v.createElement(T.default,Object(i.a)({},t,{size:"small"}))},N=function(t){return v.createElement(T.default,Object(i.a)({},t,{size:"middle"}))};L.Option=T.default.Option,N.Option=T.default.Option;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);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},B=function(t){var e=t.prefixCls,n=t.selectPrefixCls,l=t.className,f=t.size,h=t.locale,d=t.selectComponentClass,p=t.responsive,g=t.showSizeChanger,y=D(t,["prefixCls","selectPrefixCls","className","size","locale","selectComponentClass","responsive","showSizeChanger"]),m=Object(I.a)(p).xs,b=v.useContext(A.b),x=b.getPrefixCls,O=b.direction,j=b.pagination,w=void 0===j?{}:j,C=x("pagination",e),S=null!==g&&void 0!==g?g:w.showSizeChanger,E=function(t){var e,g=Object(i.a)(Object(i.a)({},t),h),b="small"===f||!(!m||f||!p),j=x("select",n),w=u()((e={},Object(r.a)(e,"".concat(C,"-mini"),b),Object(r.a)(e,"".concat(C,"-rtl"),"rtl"===O),e),l);return v.createElement(k,Object(i.a)({},function(){var t=v.createElement("span",{className:"".concat(C,"-item-ellipsis")},"\u2022\u2022\u2022"),e=v.createElement("button",{className:"".concat(C,"-item-link"),type:"button",tabIndex:-1},v.createElement(c.a,null)),n=v.createElement("button",{className:"".concat(C,"-item-link"),type:"button",tabIndex:-1},v.createElement(s.a,null)),r=v.createElement("a",{className:"".concat(C,"-item-link")},v.createElement("div",{className:"".concat(C,"-item-container")},v.createElement(o.a,{className:"".concat(C,"-item-link-icon")}),t)),i=v.createElement("a",{className:"".concat(C,"-item-link")},v.createElement("div",{className:"".concat(C,"-item-container")},v.createElement(a.a,{className:"".concat(C,"-item-link-icon")}),t));if("rtl"===O){var l=[n,e];e=l[0],n=l[1];var u=[i,r];r=u[0],i=u[1]}return{prevIcon:e,nextIcon:n,jumpPrevIcon:r,jumpNextIcon:i}}(),y,{prefixCls:C,selectPrefixCls:j,className:w,selectComponentClass:d||(b?L:N),locale:g,showSizeChanger:S}))};return v.createElement(F.a,{componentName:"Pagination",defaultLocale:P.a},E)};e.a=B},720:function(t,e,n){"use strict";var r;function i(t){if("undefined"===typeof document)return 0;if(t||void 0===r){var e=document.createElement("div");e.style.width="100%",e.style.height="200px";var n=document.createElement("div"),i=n.style;i.position="absolute",i.top="0",i.left="0",i.pointerEvents="none",i.visibility="hidden",i.width="200px",i.height="150px",i.overflow="hidden",n.appendChild(e),document.body.appendChild(n);var o=e.offsetWidth;n.style.overflow="scroll";var a=e.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),r=o-a}return r}function o(t){var e=t.match(/^(.*)px$/),n=Number(null===e||void 0===e?void 0:e[1]);return Number.isNaN(n)?i():n}function a(t){if("undefined"===typeof document||!t||!(t instanceof Element))return{width:0,height:0};var e=getComputedStyle(t,"::-webkit-scrollbar"),n=e.width,r=e.height;return{width:o(n),height:o(r)}}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a}))},721:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(561),i=n(23),o=n(563),a=n(763),c=n(627),s=n(608),l=n(560),u=n.n(l),f=n(575),h=n(2),d=n(775),p=function(t){return!isNaN(parseFloat(t))&&isFinite(t)},g=n(768),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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},y={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},m=h.createContext({}),b=function(){var t=0;return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return t+=1,"".concat(e).concat(t)}}(),x=h.forwardRef((function(t,e){var n=t.prefixCls,l=t.className,x=t.trigger,O=t.children,j=t.defaultCollapsed,w=void 0!==j&&j,C=t.theme,S=void 0===C?"dark":C,E=t.style,M=void 0===E?{}:E,k=t.collapsible,P=void 0!==k&&k,A=t.reverseArrow,I=void 0!==A&&A,F=t.width,T=void 0===F?200:F,L=t.collapsedWidth,N=void 0===L?80:L,D=t.zeroWidthTriggerStyle,B=t.breakpoint,R=t.onCollapse,_=t.onBreakpoint,z=v(t,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),V=Object(h.useContext)(g.d).siderHook,H=Object(h.useState)("collapsed"in z?z.collapsed:w),K=Object(o.a)(H,2),Y=K[0],G=K[1],W=Object(h.useState)(!1),X=Object(o.a)(W,2),q=X[0],U=X[1];Object(h.useEffect)((function(){"collapsed"in z&&G(z.collapsed)}),[z.collapsed]);var $=function(t,e){"collapsed"in z||G(t),null===R||void 0===R||R(t,e)},Z=Object(h.useRef)();Z.current=function(t){U(t.matches),null===_||void 0===_||_(t.matches),Y!==t.matches&&$(t.matches,"responsive")},Object(h.useEffect)((function(){function t(t){return Z.current(t)}var e;if("undefined"!==typeof window){var n=window.matchMedia;if(n&&B&&B in y){e=n("(max-width: ".concat(y[B],")"));try{e.addEventListener("change",t)}catch(r){e.addListener(t)}t(e)}}return function(){try{null===e||void 0===e||e.removeEventListener("change",t)}catch(r){null===e||void 0===e||e.removeListener(t)}}}),[B]),Object(h.useEffect)((function(){var t=b("ant-sider-");return V.addSider(t),function(){return V.removeSider(t)}}),[]);var Q=function(){$(!Y,"clickTrigger")},J=Object(h.useContext)(d.b).getPrefixCls,tt=h.useMemo((function(){return{siderCollapsed:Y}}),[Y]);return h.createElement(m.Provider,{value:tt},function(){var t,o=J("layout-sider",n),d=Object(f.a)(z,["collapsed"]),g=Y?N:T,v=p(g)?"".concat(g,"px"):String(g),y=0===parseFloat(String(N||0))?h.createElement("span",{onClick:Q,className:u()("".concat(o,"-zero-width-trigger"),"".concat(o,"-zero-width-trigger-").concat(I?"right":"left")),style:D},x||h.createElement(a.a,null)):null,m={expanded:I?h.createElement(s.a,null):h.createElement(c.a,null),collapsed:I?h.createElement(c.a,null):h.createElement(s.a,null)}[Y?"collapsed":"expanded"],b=null!==x?y||h.createElement("div",{className:"".concat(o,"-trigger"),onClick:Q,style:{width:v}},x||m):null,j=Object(i.a)(Object(i.a)({},M),{flex:"0 0 ".concat(v),maxWidth:v,minWidth:v,width:v}),w=u()(o,"".concat(o,"-").concat(S),(t={},Object(r.a)(t,"".concat(o,"-collapsed"),!!Y),Object(r.a)(t,"".concat(o,"-has-trigger"),P&&null!==x&&!y),Object(r.a)(t,"".concat(o,"-below"),!!q),Object(r.a)(t,"".concat(o,"-zero-width"),0===parseFloat(v)),t),l);return h.createElement("aside",Object(i.a)({className:w},d,{style:j,ref:e}),h.createElement("div",{className:"".concat(o,"-children")},O),P||q&&y?b:null)}())}));e.b=x},723:function(t,e,n){"use strict";function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",(function(){return r}))},724:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(565),i=n(719);function o(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(Object(i.a)(t)){var n=t.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||t.isContentEditable||"a"===n&&!!t.getAttribute("href"),o=t.getAttribute("tabindex"),a=Number(o),c=null;return o&&!Number.isNaN(a)?c=a:r&&null===c&&(c=0),r&&t.disabled&&(c=null),null!==c&&(c>=0||e&&c<0)}return!1}function a(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Object(r.a)(t.querySelectorAll("*")).filter((function(t){return o(t,e)}));return o(t,e)&&n.unshift(t),n}},726:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(646);var i=n(656);function o(t){return function(t){if(Array.isArray(t))return Object(r.a)(t)}(t)||function(t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||Object(i.a)(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},727:function(t,e,n){"use strict";var r=n(23),i=n(561),o=n(567),a=n(559),c=n(570),s=n(571),l=n(572),u=n(573),f=n(2),h=n.n(f),d=n(560),p=n.n(d),g=function(t){Object(l.a)(n,t);var e=Object(u.a)(n);function n(t){var r;Object(c.a)(this,n),(r=e.call(this,t)).handleChange=function(t){var e=r.props,n=e.disabled,i=e.onChange;n||("checked"in r.props||r.setState({checked:t.target.checked}),i&&i({target:Object(a.a)(Object(a.a)({},r.props),{},{checked:t.target.checked}),stopPropagation:function(){t.stopPropagation()},preventDefault:function(){t.preventDefault()},nativeEvent:t.nativeEvent}))},r.saveInput=function(t){r.input=t};var i="checked"in t?t.checked:t.defaultChecked;return r.state={checked:i},r}return Object(s.a)(n,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"render",value:function(){var t,e=this.props,n=e.prefixCls,a=e.className,c=e.style,s=e.name,l=e.id,u=e.type,f=e.disabled,d=e.readOnly,g=e.tabIndex,v=e.onClick,y=e.onFocus,m=e.onBlur,b=e.onKeyDown,x=e.onKeyPress,O=e.onKeyUp,j=e.autoFocus,w=e.value,C=e.required,S=Object(o.a)(e,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","onKeyDown","onKeyPress","onKeyUp","autoFocus","value","required"]),E=Object.keys(S).reduce((function(t,e){return"aria-"!==e.substr(0,5)&&"data-"!==e.substr(0,5)&&"role"!==e||(t[e]=S[e]),t}),{}),M=this.state.checked,k=p()(n,a,(t={},Object(i.a)(t,"".concat(n,"-checked"),M),Object(i.a)(t,"".concat(n,"-disabled"),f),t));return h.a.createElement("span",{className:k,style:c},h.a.createElement("input",Object(r.a)({name:s,id:l,type:u,required:C,readOnly:d,disabled:f,tabIndex:g,className:"".concat(n,"-input"),checked:!!M,onClick:v,onFocus:y,onBlur:m,onKeyUp:O,onKeyDown:b,onKeyPress:x,onChange:this.handleChange,autoFocus:j,ref:this.saveInput,value:w},E)),h.a.createElement("span",{className:"".concat(n,"-inner")}))}}],[{key:"getDerivedStateFromProps",value:function(t,e){return"checked"in t?Object(a.a)(Object(a.a)({},e),{},{checked:t.checked}):null}}]),n}(f.Component);g.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){},onKeyDown:function(){},onKeyPress:function(){},onKeyUp:function(){}},e.a=g},730:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(568);function i(t,e){var n=new Set;return t.forEach((function(t){e.has(t)||n.add(t)})),n}function o(t){var e=t||{},n=e.disabled,r=e.disableCheckbox,i=e.checkable;return!(!n&&!r)||!1===i}function a(t,e,n,a){var c,s=[];c=a||o;var l=new Set(t.filter((function(t){var e=!!n[t];return e||s.push(t),e}))),u=new Map,f=0;return Object.keys(n).forEach((function(t){var e=n[t],r=e.level,i=u.get(r);i||(i=new Set,u.set(r,i)),i.add(e),f=Math.max(f,r)})),Object(r.a)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map((function(t){return"'".concat(t,"'")})).join(", "))),!0===e?function(t,e,n,r){for(var o=new Set(t),a=new Set,c=0;c<=n;c+=1){(e.get(c)||new Set).forEach((function(t){var e=t.key,n=t.node,i=t.children,a=void 0===i?[]:i;o.has(e)&&!r(n)&&a.filter((function(t){return!r(t.node)})).forEach((function(t){o.add(t.key)}))}))}for(var s=new Set,l=n;l>=0;l-=1){(e.get(l)||new Set).forEach((function(t){var e=t.parent,n=t.node;if(!r(n)&&t.parent&&!s.has(t.parent.key))if(r(t.parent.node))s.add(e.key);else{var i=!0,c=!1;(e.children||[]).filter((function(t){return!r(t.node)})).forEach((function(t){var e=t.key,n=o.has(e);i&&!n&&(i=!1),c||!n&&!a.has(e)||(c=!0)})),i&&o.add(e.key),c&&a.add(e.key),s.add(e.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(i(a,o))}}(l,u,f,c):function(t,e,n,r,o){for(var a=new Set(t),c=new Set(e),s=0;s<=r;s+=1){(n.get(s)||new Set).forEach((function(t){var e=t.key,n=t.node,r=t.children,i=void 0===r?[]:r;a.has(e)||c.has(e)||o(n)||i.filter((function(t){return!o(t.node)})).forEach((function(t){a.delete(t.key)}))}))}c=new Set;for(var l=new Set,u=r;u>=0;u-=1){(n.get(u)||new Set).forEach((function(t){var e=t.parent,n=t.node;if(!o(n)&&t.parent&&!l.has(t.parent.key))if(o(t.parent.node))l.add(e.key);else{var r=!0,i=!1;(e.children||[]).filter((function(t){return!o(t.node)})).forEach((function(t){var e=t.key,n=a.has(e);r&&!n&&(r=!1),i||!n&&!c.has(e)||(i=!0)})),r||a.delete(e.key),i&&c.add(e.key),l.add(e.key)}}))}return{checkedKeys:Array.from(a),halfCheckedKeys:Array.from(i(c,a))}}(l,e.halfCheckedKeys,u,f,c)}},731:function(t,e,n){"use strict";n.d(e,"l",(function(){return i})),n.d(e,"e",(function(){return o})),n.d(e,"a",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"k",(function(){return f})),n.d(e,"i",(function(){return h})),n.d(e,"g",(function(){return d})),n.d(e,"j",(function(){return p})),n.d(e,"n",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"h",(function(){return y}));n(726);var r=n(736),i=["geom","password","id","username","created_date","created_by","modified_date","modified_by","updated_by","updated_date","updated_at","session_login","company","buffer_radius","group_sales","OBJECTID","fcm_token","key","planning_id","subproyek_id","user_id","created_at","_type","satuan_id","m_planning_nama","m_planning_target","m_satuan_description","m_subproyek_akhir_proyek","m_subproyek_area_kerja","m_subproyek_biaya","m_subproyek_biaya_actual","m_subproyek_color_progress","m_subproyek_jumlah_pekerja","m_subproyek_ket_progress","m_subproyek_lokasi_kantor","m_subproyek_mulai_proyek","m_subproyek_nama","m_subproyek_persentase_progress_actual","m_subproyek_persentase_progress_plan","m_users_email","m_users_username","m_planning_address","m_planning_jumlah_titik","m_planning_target_planning","m_satuan_name","m_subproyek_pic","m_users_gender","m_users_name","m_users_phone_number"],o=["created_date","modified_date","birth_date","datesend","wptime","tanggal","mulai_tugas","akhir_tugas"],a="DD-MM-YYYY",c=function(t){var e="";if(t.includes("_")){for(var n=t.split("_"),r=0;r<n.length;r++)n[r]=n[r].charAt(0).toUpperCase()+n[r].substr(1);e=n.join(" ")}else e=t.charAt(0).toUpperCase()+t.slice(1);return e},s={"properties->username":{label:"Username",type:"text",valueSources:["value"]},"properties->name":{label:"Name",type:"text",valueSources:["value"]},"properties->email":{label:"Email",type:"text",valueSources:["value"]},"properties->address":{label:"Address",type:"text",valueSources:["value"]},"properties->phone_number":{label:"Phone Number",type:"number",valueSources:["value"]},"properties->type_sales":{label:"Type Sales",type:"select",valueSources:["value"],fieldSettings:{listValues:[{value:"B2B",title:"B2B"},{value:"B2C",title:"B2C"}]}}},l={"properties->name":{label:"Name",type:"text",valueSources:["value"]},"properties->buffer_radius":{label:"Buffer Radius",type:"number",fieldSettings:{min:1},valueSources:["value"]},"properties->address":{label:"Address",type:"text",valueSources:["value"]},"properties->income":{label:"Income",type:"number",valueSources:["value"]},"properties->store_manager":{label:"Store Manager",type:"text",valueSources:["value"]}},u={"properties->company":{label:"Company",type:"text",valueSources:["value"]},"properties->name":{label:"Name",type:"text",valueSources:["value"]},"properties->employes":{label:"Employe",type:"text",valueSources:["value"]},"properties->address":{label:"Alamat",type:"text",valueSources:["value"]}},f=function t(e){return e.map((function(e,n){return e.subproyeks&&e.subproyeks.length>0?Object(r.a)({children:t(e.subproyeks),title:e.nama,key:Math.random(),id:e.id},e):Object(r.a)({title:e.nama,key:Math.random()},e)}))},h=function(t,e){var n=t.replace(/[^,\d]/g,"").toString().split(","),r=n[0].length%3,i=n[0].substr(0,r),o=n[0].substr(r).match(/\d{3}/gi);return o&&(i+=(r?".":"")+o.join(".")),i=void 0!=n[1]?i+","+n[1]:i,void 0==e?i:i?"Rp. "+i:""},d=function(t){var e=t.replace(/[^,\d]/g,"").toString().split(","),n=e[0].length%3,r=e[0].substr(0,n),i=e[0].substr(n).match(/\d{3}/gi);return i&&(r+=(n?".":"")+i.join(".")),r=void 0!=e[1]?r+","+e[1]:r},p=function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")},g=function(){var t=Object.prototype.toString,e=function(t){return t},n=function(t){var e=null!=t&&"object"===typeof t&&this.prop in t;return this.parser(e?t[this.prop]:t)};return function(r,i){return r instanceof Array&&r.length?("[object Object]"!==t.call(i)&&(i={}),"function"!==typeof i.parser&&(i.parser=e),i.desc=i.desc?-1:1,r.sort((function(t,e){return t=n.call(i,t),e=n.call(i,e),i.desc*(t<e?-1:+(t>e))}))):[]}}(),v=function(t){var e=t;return"fom"!==t&&"fot"!==t&&"po"!==t||(e=t.toUpperCase()),e},y=function(t){var e=t.toString().split(".");return"Rp. "+e[0].replace(/\B(?=(\d{3})+(?!\d))/g,".")+(e[1]?","+e[1]:"")}},732:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u}));var r=n(613),i=n(761),o=n(579),a=n(2184),c=n(2457),s=n(618),l=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],u=function(t){function e(e,n){var r=t.call(this)||this;return r.container="string"===typeof e?document.getElementById(e):e,r.options=Object(s.c)({},r.getDefaultOptions(),n),r.createG2(),r.bindEvents(),r}return Object(r.b)(e,t),e.getDefaultOptions=function(){return{renderer:"canvas",xAxis:{nice:!0,label:{autoRotate:!1,autoHide:{type:"equidistance",cfg:{minGap:6}}}},yAxis:{nice:!0,label:{autoHide:!0,autoRotate:!1}},animation:!0}},e.prototype.createG2=function(){var t=this.options,e=t.width,n=t.height,o=t.defaultInteractions;this.chart=new i.c(Object(r.a)(Object(r.a)(Object(r.a)(Object(r.a)({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Object(s.t)(this.options,l)),{defaultInteractions:o})),this.container.setAttribute("data-chart-source-type","G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(s.k)(this.container);return{width:t||n.width||400,height:e||n.height||400}},e.prototype.bindEvents=function(){var t=this;this.chart&&this.chart.on("*",(function(e){(null===e||void 0===e?void 0:e.type)&&t.emit(e.type,e)}))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.render=function(){this.chart.clear(),this.chart.options={data:[],animate:!0},this.chart.views=[],this.execAdaptor(),this.chart.render(),this.bindSizeSensor()},e.prototype.update=function(t){this.updateOption(t),this.render()},e.prototype.updateOption=function(t){this.options=Object(s.c)({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var r=Object(s.i)(this.chart);Object(o.j)(r,(function(r){e(r.getData())&&r.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(s.i)(this.chart),e=[];return Object(o.j)(t,(function(t){var n=t.getData(),r=t.getStates();Object(o.j)(r,(function(r){e.push({data:n,state:r,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(r.d)(t),i=e.getController("annotation"),o=i.getComponents().map((function(t){return t.extra}));i.clear(!0);for(var a=function(t){var e=o[t],r=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==r&&(e=Object(s.c)({},e,n[r]),n.splice(r,1)),i.annotation(e)},c=0;c<o.length;c++)a(c);n.forEach((function(t){return i.annotation(t)})),e.render(!0)},e.prototype.removeAnnotations=function(t){var e=this.chart.getController("annotation"),n=e.getComponents().map((function(t){return t.extra}));e.clear(!0);for(var r=function(r){var i=n[r];t.find((function(t){return t.id&&t.id===i.id}))||e.annotation(i)},i=0;i<n.length;i++)r(i);this.chart.render(!0)},e.prototype.destroy=function(){this.unbindSizeSensor(),this.chart.destroy(),this.off(),this.container.removeAttribute("data-chart-source-type")},e.prototype.execAdaptor=function(){var t=this.getSchemaAdaptor(),e=this.options,n=e.padding,r=e.appendPadding;this.chart.padding=n,this.chart.appendPadding=r,t({chart:this.chart,options:this.options})},e.prototype.triggerResize=function(){this.chart.forceFit()},e.prototype.bindSizeSensor=function(){var t=this;if(!this.unbind){var e=this.options.autoFit;(void 0===e||e)&&(this.unbind=Object(c.bind)(this.container,(function(){var e=Object(s.k)(t.container),n=e.width,r=e.height;n===t.chart.width&&r===t.chart.height||t.triggerResize()})))}},e.prototype.unbindSizeSensor=function(){this.unbind&&(this.unbind(),this.unbind=void 0)},e}(a.a)},734:function(t,e,n){"use strict";var r=n(743),i=n(686),o=n(742),a=i.a;a.Button=o.a,a.Group=r.a,a.__ANT_RADIO=!0,e.a=a},735:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="FileOutlined";e.a=i.forwardRef(c)},736:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(723);function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach((function(e){Object(r.a)(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},738:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="EyeOutlined";e.a=i.forwardRef(c)},742:function(t,e,n){"use strict";var r=n(23),i=n(2),o=n(775),a=n(687),c=n(686),s=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},l=function(t,e){var n=i.useContext(o.b).getPrefixCls,l=t.prefixCls,u=s(t,["prefixCls"]),f=n("radio",l);return i.createElement(a.c,{value:"button"},i.createElement(c.a,Object(r.a)({prefixCls:f},u,{type:"radio",ref:e})))};e.a=i.forwardRef(l)},743:function(t,e,n){"use strict";var r=n(23),i=n(561),o=n(563),a=n(560),c=n.n(a),s=n(577),l=n(2),u=n(775),f=n(587),h=n(806),d=n(687),p=n(686),g=l.forwardRef((function(t,e){var n=l.useContext(u.b),a=n.getPrefixCls,g=n.direction,v=l.useContext(f.b),y=Object(s.a)(t.defaultValue,{value:t.value}),m=Object(o.a)(y,2),b=m[0],x=m[1];return l.createElement(d.a,{value:{onChange:function(e){var n=b,r=e.target.value;"value"in t||x(r);var i=t.onChange;i&&r!==n&&i(e)},value:b,disabled:t.disabled,name:t.name,optionType:t.optionType}},function(){var n,o=t.prefixCls,s=t.className,u=void 0===s?"":s,f=t.options,d=t.buttonStyle,y=void 0===d?"outline":d,m=t.disabled,x=t.children,O=t.size,j=t.style,w=t.id,C=t.onMouseEnter,S=t.onMouseLeave,E=a("radio",o),M="".concat(E,"-group"),k=x;f&&f.length>0&&(k=f.map((function(t){return"string"===typeof t||"number"===typeof t?l.createElement(p.a,{key:t.toString(),prefixCls:E,disabled:m,value:t,checked:b===t},t):l.createElement(p.a,{key:"radio-group-value-options-".concat(t.value),prefixCls:E,disabled:t.disabled||m,value:t.value,checked:b===t.value,style:t.style},t.label)})));var P=O||v,A=c()(M,"".concat(M,"-").concat(y),(n={},Object(i.a)(n,"".concat(M,"-").concat(P),P),Object(i.a)(n,"".concat(M,"-rtl"),"rtl"===g),n),u);return l.createElement("div",Object(r.a)({},Object(h.a)(t),{className:A,style:j,onMouseEnter:C,onMouseLeave:S,id:w,ref:e}),k)}())}));e.a=l.memo(g)},746:function(t,e,n){"use strict";n.r(e);var r=n(23),i=n(561),o=n(560),a=n.n(o),c=n(2),s=n(775),l=n(583),u=function(t){var e,n=Object(c.useContext)(s.b),o=n.getPrefixCls,u=n.direction,f=t.prefixCls,h=t.className,d=void 0===h?"":h,p=o("input-group",f),g=a()(p,(e={},Object(i.a)(e,"".concat(p,"-lg"),"large"===t.size),Object(i.a)(e,"".concat(p,"-sm"),"small"===t.size),Object(i.a)(e,"".concat(p,"-compact"),t.compact),Object(i.a)(e,"".concat(p,"-rtl"),"rtl"===u),e),d),v=Object(c.useContext)(l.b),y=Object(c.useMemo)((function(){return Object(r.a)(Object(r.a)({},v),{isFormItemInput:!1})}),[v]);return c.createElement("span",{className:g,style:t.style,onMouseEnter:t.onMouseEnter,onMouseLeave:t.onMouseLeave,onFocus:t.onFocus,onBlur:t.onBlur},c.createElement(l.b.Provider,{value:y},t.children))},f=n(637),h=n(563),d=n(762),p=n(738),g=n(575),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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},y={click:"onClick",hover:"onMouseOver"},m=c.forwardRef((function(t,e){var n=Object(c.useState)(!1),o=Object(h.a)(n,2),l=o[0],u=o[1],d=function(){t.disabled||u(!l)},p=function(n){var o=n.getPrefixCls,s=t.className,u=t.prefixCls,h=t.inputPrefixCls,p=t.size,m=t.visibilityToggle,b=v(t,["className","prefixCls","inputPrefixCls","size","visibilityToggle"]),x=o("input",h),O=o("input-password",u),j=m&&function(e){var n,r=t.action,o=t.iconRender,a=y[r]||"",s=(void 0===o?function(){return null}:o)(l),u=(n={},Object(i.a)(n,a,d),Object(i.a)(n,"className","".concat(e,"-icon")),Object(i.a)(n,"key","passwordIcon"),Object(i.a)(n,"onMouseDown",(function(t){t.preventDefault()})),Object(i.a)(n,"onMouseUp",(function(t){t.preventDefault()})),n);return c.cloneElement(c.isValidElement(s)?s:c.createElement("span",null,s),u)}(O),w=a()(O,s,Object(i.a)({},"".concat(O,"-").concat(p),!!p)),C=Object(r.a)(Object(r.a)({},Object(g.a)(b,["suffix","iconRender"])),{type:l?"text":"password",className:w,prefixCls:x,suffix:j});return p&&(C.size=p),c.createElement(f.a,Object(r.a)({ref:e},C))};return c.createElement(s.a,null,p)}));m.defaultProps={action:"click",visibilityToggle:!0,iconRender:function(t){return t?c.createElement(p.a,null):c.createElement(d.a,null)}};var b=m,x=n(616),O=n(588),j=n(606),w=n(587),C=n(578),S=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};var E=c.forwardRef((function(t,e){var n,o,l=t.prefixCls,u=t.inputPrefixCls,h=t.className,d=t.size,p=t.suffix,g=t.enterButton,v=void 0!==g&&g,y=t.addonAfter,m=t.loading,b=t.disabled,E=t.onSearch,M=t.onChange,k=t.onCompositionStart,P=t.onCompositionEnd,A=S(t,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),I=c.useContext(s.b),F=I.getPrefixCls,T=I.direction,L=c.useContext(w.b),N=c.useRef(!1),D=d||L,B=c.useRef(null),R=function(t){var e;document.activeElement===(null===(e=B.current)||void 0===e?void 0:e.input)&&t.preventDefault()},_=function(t){var e,n;E&&E(null===(n=null===(e=B.current)||void 0===e?void 0:e.input)||void 0===n?void 0:n.value,t)},z=F("input-search",l),V=F("input",u),H="boolean"===typeof v?c.createElement(x.a,null):null,K="".concat(z,"-button"),Y=v||{},G=Y.type&&!0===Y.type.__ANT_BUTTON;o=G||"button"===Y.type?Object(C.a)(Y,Object(r.a)({onMouseDown:R,onClick:function(t){var e,n;null===(n=null===(e=null===Y||void 0===Y?void 0:Y.props)||void 0===e?void 0:e.onClick)||void 0===n||n.call(e,t),_(t)},key:"enterButton"},G?{className:K,size:D}:{})):c.createElement(j.default,{className:K,type:v?"primary":void 0,size:D,disabled:b,key:"enterButton",onMouseDown:R,onClick:_,loading:m,icon:H},v),y&&(o=[o,Object(C.a)(y,{key:"addonAfter"})]);var W=a()(z,(n={},Object(i.a)(n,"".concat(z,"-rtl"),"rtl"===T),Object(i.a)(n,"".concat(z,"-").concat(D),!!D),Object(i.a)(n,"".concat(z,"-with-button"),!!v),n),h);return c.createElement(f.a,Object(r.a)({ref:Object(O.a)(B,e),onPressEnter:function(t){N.current||_(t)}},A,{size:D,onCompositionStart:function(t){N.current=!0,null===k||void 0===k||k(t)},onCompositionEnd:function(t){N.current=!1,null===P||void 0===P||P(t)},prefixCls:V,addonAfter:o,suffix:p,onChange:function(t){t&&t.target&&"click"===t.type&&E&&E(t.target.value,t),M&&M(t)},className:W,disabled:b}))})),M=n(766),k=f.a;k.Group=u,k.Search=E,k.TextArea=M.a,k.Password=b;e.default=k},751:function(t,e,n){"use strict";n.r(e);var r=n(23),i=n(561),o=n(570),a=n(571),c=n(572),s=n(573),l=n(560),u=n.n(l),f=n(780),h=n.n(f),d=n(575),p=n(2),g=n(775),v=n(578),y=n(586),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);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},b=(Object(y.a)("small","default","large"),null);var x=function(t){Object(c.a)(n,t);var e=Object(s.a)(n);function n(t){var a;Object(o.a)(this,n),(a=e.call(this,t)).debouncifyUpdateSpinning=function(t){var e=(t||a.props).delay;e&&(a.cancelExistingSpin(),a.updateSpinning=h()(a.originalUpdateSpinning,e))},a.updateSpinning=function(){var t=a.props.spinning;a.state.spinning!==t&&a.setState({spinning:t})},a.renderSpin=function(t){var e,n=t.direction,o=a.props,c=o.spinPrefixCls,s=o.className,l=o.size,f=o.tip,h=o.wrapperClassName,g=o.style,y=m(o,["spinPrefixCls","className","size","tip","wrapperClassName","style"]),x=a.state.spinning,O=u()(c,(e={},Object(i.a)(e,"".concat(c,"-sm"),"small"===l),Object(i.a)(e,"".concat(c,"-lg"),"large"===l),Object(i.a)(e,"".concat(c,"-spinning"),x),Object(i.a)(e,"".concat(c,"-show-text"),!!f),Object(i.a)(e,"".concat(c,"-rtl"),"rtl"===n),e),s),j=Object(d.a)(y,["spinning","delay","indicator","prefixCls"]),w=p.createElement("div",Object(r.a)({},j,{style:g,className:O,"aria-live":"polite","aria-busy":x}),function(t,e){var n=e.indicator,r="".concat(t,"-dot");return null===n?null:Object(v.b)(n)?Object(v.a)(n,{className:u()(n.props.className,r)}):Object(v.b)(b)?Object(v.a)(b,{className:u()(b.props.className,r)}):p.createElement("span",{className:u()(r,"".concat(t,"-dot-spin"))},p.createElement("i",{className:"".concat(t,"-dot-item")}),p.createElement("i",{className:"".concat(t,"-dot-item")}),p.createElement("i",{className:"".concat(t,"-dot-item")}),p.createElement("i",{className:"".concat(t,"-dot-item")}))}(c,a.props),f?p.createElement("div",{className:"".concat(c,"-text")},f):null);if(a.isNestedPattern()){var C=u()("".concat(c,"-container"),Object(i.a)({},"".concat(c,"-blur"),x));return p.createElement("div",Object(r.a)({},j,{className:u()("".concat(c,"-nested-loading"),h)}),x&&p.createElement("div",{key:"loading"},w),p.createElement("div",{className:C,key:"container"},a.props.children))}return w};var c=t.spinning,s=function(t,e){return!!t&&!!e&&!isNaN(Number(e))}(c,t.delay);return a.state={spinning:c&&!s},a.originalUpdateSpinning=a.updateSpinning,a.debouncifyUpdateSpinning(t),a}return Object(a.a)(n,[{key:"componentDidMount",value:function(){this.updateSpinning()}},{key:"componentDidUpdate",value:function(){this.debouncifyUpdateSpinning(),this.updateSpinning()}},{key:"componentWillUnmount",value:function(){this.cancelExistingSpin()}},{key:"cancelExistingSpin",value:function(){var t=this.updateSpinning;t&&t.cancel&&t.cancel()}},{key:"isNestedPattern",value:function(){return!(!this.props||"undefined"===typeof this.props.children)}},{key:"render",value:function(){return p.createElement(g.a,null,this.renderSpin)}}]),n}(p.Component);x.defaultProps={spinning:!0,size:"default",wrapperClassName:""};var O=function(t){var e=t.prefixCls,n=(0,p.useContext(g.b).getPrefixCls)("spin",e),i=Object(r.a)(Object(r.a)({},t),{spinPrefixCls:n});return p.createElement(x,Object(r.a)({},i))};O.setDefaultIndicator=function(t){b=t},e.default=O},753:function(t,e,n){"use strict";var r=n(561),i=n(559),o=n(563),a=n(567),c=n(2),s=n(607),l=n(560),u=n.n(l),f={adjustX:1,adjustY:1},h=[0,0],d={topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:h},topCenter:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:h},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:h},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:h},bottomCenter:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:h},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:h}},p=n(576),g=n(581),v=n(724),y=p.a.ESC,m=p.a.TAB;var b=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus"];function x(t,e){var n=t.arrow,l=void 0!==n&&n,f=t.prefixCls,h=void 0===f?"rc-dropdown":f,p=t.transitionName,x=t.animation,O=t.align,j=t.placement,w=void 0===j?"bottomLeft":j,C=t.placements,S=void 0===C?d:C,E=t.getPopupContainer,M=t.showAction,k=t.hideAction,P=t.overlayClassName,A=t.overlayStyle,I=t.visible,F=t.trigger,T=void 0===F?["hover"]:F,L=t.autoFocus,N=Object(a.a)(t,b),D=c.useState(),B=Object(o.a)(D,2),R=B[0],_=B[1],z="visible"in t?I:R,V=c.useRef(null);c.useImperativeHandle(e,(function(){return V.current})),function(t){var e=t.visible,n=t.setTriggerVisible,r=t.triggerRef,i=t.onVisibleChange,o=t.autoFocus,a=c.useRef(!1),s=function(){var t,o,a,c;e&&r.current&&(null===(t=r.current)||void 0===t||null===(o=t.triggerRef)||void 0===o||null===(a=o.current)||void 0===a||null===(c=a.focus)||void 0===c||c.call(a),n(!1),"function"===typeof i&&i(!1))},l=function(){var t,e,n,i,o=Object(v.a)(null===(t=r.current)||void 0===t||null===(e=t.popupRef)||void 0===e||null===(n=e.current)||void 0===n||null===(i=n.getElement)||void 0===i?void 0:i.call(n))[0];return!!(null===o||void 0===o?void 0:o.focus)&&(o.focus(),a.current=!0,!0)},u=function(t){switch(t.keyCode){case y:s();break;case m:var e=!1;a.current||(e=l()),e?t.preventDefault():s()}};c.useEffect((function(){return e?(window.addEventListener("keydown",u),o&&Object(g.a)(l,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}}),[e])}({visible:z,setTriggerVisible:_,triggerRef:V,onVisibleChange:t.onVisibleChange,autoFocus:L});var H=function(){var e=function(){var e=t.overlay;return"function"===typeof e?e():e}();return c.createElement(c.Fragment,null,l&&c.createElement("div",{className:"".concat(h,"-arrow")}),e)},K=k;return K||-1===T.indexOf("contextMenu")||(K=["click"]),c.createElement(s.a,Object(i.a)(Object(i.a)({builtinPlacements:S},N),{},{prefixCls:h,ref:V,popupClassName:u()(P,Object(r.a)({},"".concat(h,"-show-arrow"),l)),popupStyle:A,action:T,showAction:M,hideAction:K||[],popupPlacement:w,popupAlign:O,popupTransitionName:p,popupAnimation:x,popupVisible:z,stretch:function(){var e=t.minOverlayWidthMatchTrigger,n=t.alignPoint;return"minOverlayWidthMatchTrigger"in t?e:!n}()?"minWidth":"",popup:"function"===typeof t.overlay?H:H(),onPopupVisibleChange:function(e){var n=t.onVisibleChange;_(e),"function"===typeof n&&n(e)},onPopupClick:function(e){var n=t.onOverlayClick;_(!1),n&&n(e)},getPopupContainer:E}),function(){var e=t.children,n=e.props?e.props:{},r=u()(n.className,function(){var e=t.openClassName;return void 0!==e?e:"".concat(h,"-open")}());return z&&e?c.cloneElement(e,{className:r}):e}())}var O=c.forwardRef(x);e.a=O},756:function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return i}));function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function i(t){var e=t.getBoundingClientRect(),n=document.documentElement;return{left:e.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:e.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}},761:function(t,e,n){"use strict";n.d(e,"i",(function(){return x})),n.d(e,"b",(function(){return cs})),n.d(e,"c",(function(){return wn})),n.d(e,"d",(function(){return gn})),n.d(e,"g",(function(){return Sn})),n.d(e,"e",(function(){return rr})),n.d(e,"a",(function(){return Wt})),n.d(e,"f",(function(){return Wt})),n.d(e,"m",(function(){return dn})),n.d(e,"p",(function(){return Kn})),n.d(e,"n",(function(){return Bn})),n.d(e,"o",(function(){return Be})),n.d(e,"l",(function(){return $t})),n.d(e,"j",(function(){return Ut})),n.d(e,"k",(function(){return tn})),n.d(e,"h",(function(){return wr}));var r={};n.r(r),n.d(r,"Base",(function(){return bi})),n.d(r,"Circle",(function(){return xi})),n.d(r,"Ellipse",(function(){return ji})),n.d(r,"Image",(function(){return Ci})),n.d(r,"Line",(function(){return Mi})),n.d(r,"Marker",(function(){return Pi})),n.d(r,"Path",(function(){return _i})),n.d(r,"Polygon",(function(){return Vi})),n.d(r,"Polyline",(function(){return Hi})),n.d(r,"Rect",(function(){return Ki})),n.d(r,"Text",(function(){return Yi}));var i={};n.r(i),n.d(i,"Event",(function(){return L.e})),n.d(i,"Base",(function(){return L.d})),n.d(i,"AbstractCanvas",(function(){return L.a})),n.d(i,"AbstractGroup",(function(){return L.b})),n.d(i,"AbstractShape",(function(){return L.c})),n.d(i,"PathUtil",(function(){return L.f})),n.d(i,"getBBoxMethod",(function(){return L.h})),n.d(i,"registerBBox",(function(){return L.n})),n.d(i,"getTextHeight",(function(){return L.j})),n.d(i,"assembleFont",(function(){return L.g})),n.d(i,"isAllowCapture",(function(){return L.l})),n.d(i,"multiplyVec2",(function(){return L.m})),n.d(i,"invert",(function(){return L.k})),n.d(i,"getOffScreenContext",(function(){return L.i})),n.d(i,"registerEasing",(function(){return L.o})),n.d(i,"Canvas",(function(){return Xi})),n.d(i,"Group",(function(){return mi})),n.d(i,"Shape",(function(){return r})),n.d(i,"getArcParams",(function(){return Jr})),n.d(i,"version",(function(){return qi}));var o={};n.r(o),n.d(o,"Base",(function(){return so})),n.d(o,"Circle",(function(){return lo})),n.d(o,"Dom",(function(){return uo})),n.d(o,"Ellipse",(function(){return fo})),n.d(o,"Image",(function(){return ho})),n.d(o,"Line",(function(){return po})),n.d(o,"Marker",(function(){return yo})),n.d(o,"Path",(function(){return mo})),n.d(o,"Polygon",(function(){return bo})),n.d(o,"Polyline",(function(){return xo})),n.d(o,"Rect",(function(){return Oo})),n.d(o,"Text",(function(){return Eo}));var a={};n.r(a),n.d(a,"Event",(function(){return L.e})),n.d(a,"Base",(function(){return L.d})),n.d(a,"AbstractCanvas",(function(){return L.a})),n.d(a,"AbstractGroup",(function(){return L.b})),n.d(a,"AbstractShape",(function(){return L.c})),n.d(a,"PathUtil",(function(){return L.f})),n.d(a,"getBBoxMethod",(function(){return L.h})),n.d(a,"registerBBox",(function(){return L.n})),n.d(a,"getTextHeight",(function(){return L.j})),n.d(a,"assembleFont",(function(){return L.g})),n.d(a,"isAllowCapture",(function(){return L.l})),n.d(a,"multiplyVec2",(function(){return L.m})),n.d(a,"invert",(function(){return L.k})),n.d(a,"getOffScreenContext",(function(){return L.i})),n.d(a,"registerEasing",(function(){return L.o})),n.d(a,"Canvas",(function(){return zo})),n.d(a,"Group",(function(){return co})),n.d(a,"Shape",(function(){return o})),n.d(a,"version",(function(){return Vo}));var c=function(t,e){return(c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function s(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}c(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var l=function(){return(l=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function u(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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}function f(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{s(r.next(t))}catch(e){o(e)}}function c(t){try{s(r.throw(t))}catch(e){o(e)}}function s(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}s((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:c(0),throw:c(1),return:c(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function c(o){return function(c){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=e.call(t,a)}catch(c){o=[6,c],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,c])}}}Object.create;function d(t){var e="function"===typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"===typeof t.length)return{next:function(){return t&&r>=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 p(t,e){var n="function"===typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(c){i={error:c}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;var v,y,m,b=n(579);!function(t){t.FORE="fore",t.MID="mid",t.BG="bg"}(v||(v={})),function(t){t.TOP="top",t.TOP_LEFT="top-left",t.TOP_RIGHT="top-right",t.RIGHT="right",t.RIGHT_TOP="right-top",t.RIGHT_BOTTOM="right-bottom",t.LEFT="left",t.LEFT_TOP="left-top",t.LEFT_BOTTOM="left-bottom",t.BOTTOM="bottom",t.BOTTOM_LEFT="bottom-left",t.BOTTOM_RIGHT="bottom-right",t.RADIUS="radius",t.CIRCLE="circle",t.NONE="none"}(y||(y={})),function(t){t.AXIS="axis",t.GRID="grid",t.LEGEND="legend",t.TOOLTIP="tooltip",t.ANNOTATION="annotation",t.SLIDER="slider",t.SCROLLBAR="scrollbar",t.OTHER="other"}(m||(m={}));var x,O,j,w,C=3,S=2,E=1;!function(t){t.BEFORE_RENDER="beforerender",t.AFTER_RENDER="afterrender",t.BEFORE_PAINT="beforepaint",t.AFTER_PAINT="afterpaint",t.BEFORE_CHANGE_DATA="beforechangedata",t.AFTER_CHANGE_DATA="afterchangedata",t.BEFORE_CLEAR="beforeclear",t.AFTER_CLEAR="afterclear",t.BEFORE_DESTROY="beforedestroy",t.BEFORE_CHANGE_SIZE="beforechangesize",t.AFTER_CHANGE_SIZE="afterchangesize"}(x||(x={})),function(t){t.BEFORE_DRAW_ANIMATE="beforeanimate",t.AFTER_DRAW_ANIMATE="afteranimate",t.BEFORE_RENDER_LABEL="beforerenderlabel",t.AFTER_RENDER_LABEL="afterrenderlabel"}(O||(O={})),function(t){t.MOUSE_ENTER="plot:mouseenter",t.MOUSE_DOWN="plot:mousedown",t.MOUSE_MOVE="plot:mousemove",t.MOUSE_UP="plot:mouseup",t.MOUSE_LEAVE="plot:mouseleave",t.TOUCH_START="plot:touchstart",t.TOUCH_MOVE="plot:touchmove",t.TOUCH_END="plot:touchend",t.TOUCH_CANCEL="plot:touchcancel",t.CLICK="plot:click",t.DBLCLICK="plot:dblclick",t.CONTEXTMENU="plot:contextmenu",t.LEAVE="plot:leave",t.ENTER="plot:enter"}(j||(j={})),function(t){t.ACTIVE="active",t.INACTIVE="inactive",t.SELECTED="selected",t.DEFAULT="default"}(w||(w={}));var M=["color","shape","size"],k={};function P(t,e){k[t]=e}var A=n(1185);function I(t){return"number"===typeof t&&!isNaN(t)}function F(t,e,n,r){var i=n,o=r;if(e){var a=function(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}(t);i=a.width?a.width:i,o=a.height?a.height:o}return{width:Math.max(I(i)?i:1,1),height:Math.max(I(o)?o:1,1)}}var T=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 s(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}(n(2184).a),L=n(875),N=n(1674),D=function(t,e){return Object(b.Q)(e)?e:t.invert(t.scale(e))},B=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,r)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),r=e*t-n,i=this.values[n];return i+((n===e?i:this.values[n+1])-i)*r},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],i=0;i<n;i+=1)r.push(e[i]);return r},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var r=t.scales[n];return"identity"===r.type?r.values[0]:t._getAttributeValue(r,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,r=void 0===n?"base":n,i=t.names,o=void 0===i?[]:i,a=t.scales,c=void 0===a?[]:a,s=t.values,l=void 0===s?[]:s,u=t.callback;this.type=r,this.scales=c,this.values=l,this.names=o,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(u){var r=u.apply(void 0,t);if(!Object(b.K)(r))return[r]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(b.C)(t)?t.map((function(t){return D(e,t)})):D(e,t)},t}(),R=n(784),_=n(1675),z=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(b.Q)(n.values)&&(n.linear=!0),n.gradient=_.a.gradient(n.values),n}return Object(R.b)(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(B),V=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return Object(R.b)(e,t),e}(B),H=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return Object(R.b)(e,t),e.prototype.mapping=function(t,e){var n=this.scales,r=n[0],i=n[1];return Object(b.K)(t)||Object(b.K)(e)?[]:[Object(b.C)(t)?t.map((function(t){return r.scale(t)})):r.scale(t),Object(b.C)(e)?e.map((function(t){return i.scale(t)})):i.scale(e)]},e}(B),K=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return Object(R.b)(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(B),Y=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return Object(R.b)(e,t),e}(B),G=n(1410),W={},X=function(t){return W[t.toLowerCase()]},q=function(t,e){if(X(t))throw new Error("Attribute type '"+t+"' existed.");W[t.toLowerCase()]=e};q("Color",z),q("Opacity",V),q("Position",H),q("Shape",K),q("Size",Y);var U=function(t,e){return(U=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};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}U(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;function Z(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}Object.create;var Q=n(916),J=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,r=t.matrix,i=void 0===r?[1,0,0,0,1,0,0,0,1]:r,o=t.isTransposed,a=void 0!==o&&o;this.start=e,this.end=n,this.matrix=i,this.originalMatrix=Z([],i),this.isTransposed=a}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(b.b)(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),i+t*(o-i)},t.prototype.invertDim=function(t,e){var n,r=this[e],i=r.start,o=r.end;return this.isReflect(e)&&(i=(n=[o,i])[0],o=n[1]),(t-i)/(o-i)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=[t,e,n];return Q.d.transformMat3(i,i,r),i},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var r=this.matrix,i=Q.b.invert([0,0,0,0,0,0,0,0,0],r),o=[t,e,n];return i&&Q.d.transformMat3(o,o,i),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 Q.a.leftTranslate(e,e,[-n.x,-n.y]),Q.a.leftRotate(e,e,t),Q.a.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 Q.a.leftTranslate(n,n,[-r.x,-r.y]),Q.a.leftScale(n,n,[t,e]),Q.a.leftTranslate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return Q.a.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||Z([],this.originalMatrix)},t}(),tt=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return $(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}(J),et=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,o=e.endAngle,a=void 0===o?7.25*Math.PI:o,c=e.innerRadius,s=void 0===c?0:c,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=s,n.radius=l,n.initial(),n}return $(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"),o=this.a*i,a=this.convertDim(r,"y");return{x:this.center.x+Math.cos(i)*(o+a),y:this.center.y+Math.sin(i)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,r=Q.c.subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),i=Q.a.angleTo(r,[1,0],!0),o=i*this.a;Q.c.length(r)<o&&(o=Q.c.length(r)),i=2*Math.floor((Q.c.length(r)-o)/n)*Math.PI+i;var a=this.a*i,c=Q.c.length(r)-a;c=Object(b.N)(c,0)?0:c;var s=this.invertDim(i,"x"),l=this.invertDim(c,"y");return s=Object(b.N)(s,0)?0:s,l=Object(b.N)(l,0)?0:l,this.isTransposed&&(s=(e=[l,s])[0],l=e[1]),{x:s,y:l}},e}(J),nt=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var r=e.startAngle,i=void 0===r?-Math.PI/2:r,o=e.endAngle,a=void 0===o?3*Math.PI/2:o,c=e.innerRadius,s=void 0===c?0:c,l=e.radius;return n.startAngle=i,n.endAngle=a,n.innerRadius=s,n.radius=l,n.initial(),n}return $(e,t),e.prototype.initial=function(){for(t.prototype.initial.call(this);this.endAngle<this.startAngle;)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),r=n.maxX-n.minX,i=n.maxY-n.minY,o=Math.abs(n.minX)/r,a=Math.abs(n.minY)/i;this.height/i>this.width/r?(e=this.width/r,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*i}):(e=this.height/i,this.circleCenter={x:this.center.x-(.5-o)*e*r,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),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,o=this.endAngle;this.isReflect("x")&&(i=(e=[o,i])[0],o=e[1]);var a=[1,0,0,0,1,0,0,0,1];Q.a.leftRotate(a,a,i);var c=[1,0,0];Q.d.transformMat3(c,c,a);var s=[c[0],c[1]],l=Q.a.angleTo(s,r,o<i);Object(b.N)(l,2*Math.PI)&&(l=0);var u=Q.c.length(r),f=l/(o-i);f=o-i>0?f:-f;var h=this.invertDim(u,"y"),d={x:0,y:0};return d.x=this.isTransposed?h:f,d.y=this.isTransposed?f:h,d},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],i=Math.min(t,e);i<Math.max(t,e);i+=Math.PI/18)n.push(Math.cos(i)),r.push(Math.sin(i));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e}(J),rt={},it=function(t,e){rt[t.toLowerCase()]=e};it("rect",tt),it("cartesian",tt),it("polar",nt),it("helix",et);var ot=n(1003),at=ot.Axis.Line,ct=ot.Axis.Circle,st=ot.Grid.Line,lt=ot.Grid.Circle,ut=ot.Legend.Category,ft=ot.Legend.Continuous,ht=ot.Tooltip.Html;function dt(t){return 1===Array.from(new Set(t)).length}function pt(t){return(Object(b.bb)(t)+Object(b.Y)(t))/2}function gt(t,e,n,r){return{x:t+n*Math.cos(r),y:e+n*Math.sin(r)}}function vt(t,e,n,r,i,o){void 0===o&&(o=0);var a=gt(t,e,n,r),c=gt(t,e,n,i),s=gt(t,e,o,r),l=gt(t,e,o,i);if(i-r===2*Math.PI){var u=gt(t,e,n,r+Math.PI),f=gt(t,e,o,r+Math.PI),h=[["M",a.x,a.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,c.x,c.y],["M",s.x,s.y]];return o&&(h.push(["A",o,o,0,1,0,f.x,f.y]),h.push(["A",o,o,0,1,0,l.x,l.y])),h.push(["M",a.x,a.y]),h.push(["Z"]),h}var d=i-r<=Math.PI?0:1,p=[["M",a.x,a.y],["A",n,n,0,d,1,c.x,c.y],["L",l.x,l.y]];return o&&p.push(["A",o,o,0,d,0,s.x,s.y]),p.push(["L",a.x,a.y]),p.push(["Z"]),p}function yt(t,e,n,r,i){var o=gt(t,e,n,r),a=gt(t,e,n,i);if(Object(b.N)(i-r,2*Math.PI)){var c=gt(t,e,n,r+Math.PI);return[["M",o.x,o.y],["A",n,n,0,1,1,c.x,c.y],["A",n,n,0,1,1,o.x,o.y],["A",n,n,0,1,0,c.x,c.y],["A",n,n,0,1,0,o.x,o.y],["Z"]]}var s=i-r<=Math.PI?0:1;return[["M",o.x,o.y],["A",n,n,0,s,1,a.x,a.y]]}function mt(t,e){var n,r,i=function(t){if(Object(b.G)(t))return null;var e=t[0].x,n=t[0].x,r=t[0].y,i=t[0].y;return Object(b.j)(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,r=r>t.y?t.y:r,i=i<t.y?t.y:i})),{minX:e,maxX:n,minY:r,maxY:i,centerX:(e+n)/2,centerY:(r+i)/2}}(t.points),o=e.startAngle,a=e.endAngle-o;return e.isTransposed?(n=i.maxY*a,r=i.minY*a):(n=i.maxX*a,r=i.minX*a),{startAngle:r+=o,endAngle:n+=o}}function bt(t,e){var n=t.attr(),r=e.attr();return Object(b.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r}function xt(t,e,n){var r=Math.min(e,n),i=Math.max(e,n);return t>=r&&t<=i}function Ot(t,e){return"object"===typeof t&&e.forEach((function(e){delete t[e]})),t}function jt(t,e,n){var r,i;void 0===e&&(e=[]),void 0===n&&(n=new Map);try{for(var o=d(t),a=o.next();!a.done;a=o.next()){var c=a.value;n.has(c)||(e.push(c),n.set(c,!0))}}catch(s){r={error:s}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return e}var wt=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x=t,this.y=e,this.height=r,this.width=n}return t.fromRange=function(e,n,r,i){return new t(e,n,r-e,i-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(b.j)(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(b.j)(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var r=e.width,i=e.height;switch(n){case y.TOP:case y.TOP_LEFT:case y.TOP_RIGHT:return t.fromRange(this.minX,this.minY+i,this.maxX,this.maxY);case y.RIGHT:case y.RIGHT_TOP:case y.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-r,this.maxY);case y.BOTTOM:case y.BOTTOM_LEFT:case y.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-i);case y.LEFT:case y.LEFT_TOP:case y.LEFT_BOTTOM:return t.fromRange(this.minX+r,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=p(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x+a,this.y+r,this.width-a-i,this.height-r-o)},t.prototype.expand=function(e){var n=p(e,4),r=n[0],i=n[1],o=n[2],a=n[3];return new t(this.x-a,this.y-r,this.width+a+i,this.height+r+o)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function Ct(t){if(t.isPolar&&!t.isTransposed)return(t.endAngle-t.startAngle)*t.getRadius();var e=t.convert({x:0,y:0}),n=t.convert({x:1,y:0});return Math.sqrt(Math.pow(n.x-e.x,2)+Math.pow(n.y-e.y,2))}function St(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Et(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Mt(t,e){void 0===e&&(e=0);var n,r=t.start,i=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var c=t.startAngle,s=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:vt(l.x,l.y,u+e,c,c)},endState:function(t){var n=(s-c)*t+c;return{path:vt(l.x,l.y,u+e,c,n)}},attrs:{path:vt(l.x,l.y,u+e,c,s)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:r.x-e,y:i.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:r.x-e,y:i.y-e,width:o+2*e,height:a+2*e}}}var kt=/^(?:(?!0000)[0-9]{4}([-/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-/.]+)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/;function Pt(t,e,n,r){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&M.includes(n)&&["interval"].includes(r)||t.isCategory?"cat":t.type}function At(t,e,n){var r=e||[];if(Object(b.M)(t)||Object(b.K)(Object(b.o)(r,t))&&Object(b.G)(n))return new(Object(G.c)("identity"))({field:t.toString(),values:[t]});var i=Object(b.yb)(r,t),o=Object(b.s)(n,"type",function(t){var e="linear";return kt.test(t)?e="timeCat":Object(b.Q)(t)&&(e="cat"),e}(i[0]));return new(Object(G.c)(o))(l({field:t,values:i},n))}function It(t){return t.alias||t.field}function Ft(t,e,n){var r,i=t.values.length;if(1===i)r=[.5,1];else{var o=0;r=function(t){if(t.isPolar){var e=t.startAngle;return t.endAngle-e===2*Math.PI}return!1}(e)?e.isTransposed?[(o=1/i*Object(b.s)(n,"widthRatio.multiplePie",1/1.3))/2,1-o/2]:[0,1-1/i]:[o=1/i/2,1-o]}return r}function Tt(t){var e=t.values.filter((function(t){return!Object(b.K)(t)&&!isNaN(t)}));return Math.max.apply(Math,g(g([],p(e),!1),[Object(b.K)(t.max)?-1/0:t.max],!1))}function Lt(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=function(t){var e,n;switch(t){case y.TOP:e={x:0,y:1},n={x:1,y:1};break;case y.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case y.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case y.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}(e):t.isPolar&&(n=function(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}}(t));var r=n.start,i=n.end;return{start:t.convert(r),end:t.convert(i)}}function Nt(t){var e=t.start,n=t.end;return e.x===n.x}function Dt(t,e){var n=t.start,r=t.end;return Nt(t)?(n.y-r.y)*(e.x-n.x)>0?1:-1:(r.x-n.x)*(n.y-e.y)>0?-1:1}function Bt(t,e){var n=Object(b.s)(t,["components","axis"],{});return Object(b.h)({},Object(b.s)(n,["common"],{}),Object(b.h)({},Object(b.s)(n,[e],{})))}function Rt(t,e,n){var r=Object(b.s)(t,["components","axis"],{});return Object(b.h)({},Object(b.s)(r,["common","title"],{}),Object(b.h)({},Object(b.s)(r,[e,"title"],{})),n)}function _t(t){var e=t.x,n=t.y,r=t.circleCenter,i=n.start>n.end,o=t.isTransposed?t.convert({x:i?0:1,y:0}):t.convert({x:0,y:i?0:1}),a=[o.x-r.x,o.y-r.y],c=[1,0],s=o.y>r.y?Q.c.angle(a,c):-1*Q.c.angle(a,c),l=s+(e.end-e.start);return{center:r,radius:Math.sqrt(Math.pow(o.x-r.x,2)+Math.pow(o.y-r.y,2)),startAngle:s,endAngle:l}}function zt(t,e){return Object(b.D)(t)?!1!==t&&{}:Object(b.s)(t,[e])}function Vt(t,e){return Object(b.s)(t,"position",e)}function Ht(t,e){return Object(b.s)(e,["title","text"],It(t))}var Kt=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(b.h)({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,r=t.padding,i=void 0===r?this.cfg.padding:r,o=this.view.createView({region:e,padding:i});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){return this.view.getLayer(v.FORE).addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(b.j)(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.parseSpacing=function(){var t=this.view.viewBBox,e=t.width,n=t.height;return this.cfg.spacing.map((function(t,r){return Object(b.M)(t)?t/(0===r?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],r={};return Object(b.j)(t,(function(t){var i=t[e];Object(b.K)(i)||r[i]||(n.push(i),r[i]=!0)})),n},t.prototype.getRegion=function(t,e,n,r){var i=p(this.parseSpacing(),2),o=i[0],a=i[1],c=(1+o)/(0===e?1:e)-o,s=(1+a)/(0===t?1:t)-a,l={x:(c+o)*n,y:(s+a)*r};return{start:l,end:{x:l.x+c,y:l.y+s}}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){return{style:{fontSize:14,fill:"#666",fontFamily:this.view.getTheme().fontFamily}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),r=n.coordinate,i=t.geometries;if("rect"===Object(b.s)(r,"type","rect")&&i.length){Object(b.K)(n.axes)&&(n.axes={});var o=n.axes,a=p(i[0].getXYFields(),2),c=a[0],s=a[1],l=zt(o,c),u=zt(o,s);!1!==l&&(n.axes[c]=this.getXAxisOption(c,o,l,e)),!1!==u&&(n.axes[s]=this.getYAxisOption(s,o,u,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(b.k)(t,(function(t){var n=t.field,r=t.value;return!(!Object(b.K)(r)&&n)||e[n]===r}))}},t}(),Yt={},Gt=function(t,e){Yt[Object(b.V)(t)]=e},Wt=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(b.b)(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),Xt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(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}(Wt),qt={};function Ut(t){var e=qt[t];return Object(b.s)(e,"ActionClass")}function $t(t,e,n){qt[t]={ActionClass:e,cfg:n}}function Zt(t,e){var n=new Xt(e);return n.callback=t,n.name="callback",n}function Qt(t,e){for(var n=[t[0]],r=1,i=t.length;r<i;r+=2){var o=e.convert({x:t[r],y:t[r+1]});n.push(o.x,o.y)}return n}function Jt(t,e){var n=e.isTransposed,r=t[1],i=t[6],o=t[7],a=e.convert({x:i,y:o});return["A",r,r,0,0,n?0:1,a.x,a.y]}function te(t,e,n){for(var r=!!e,i=[],o=0,a=t.length;o<a;o+=2)i.push([t[o],t[o+1]]);var c,s,l,u=function(t,e,n,r){var i,o,a,c,s,l,u,f,h=[],d=!!r;if(d){c=(i=p(r,2))[0],s=i[1];for(var g=0,v=t.length;g<v;g++){var y=t[g];c=Q.c.min([0,0],c,y),s=Q.c.max([0,0],s,y)}}g=0;for(var m=t.length;g<m;g++){y=t[g];if(0!==g||n)if(g!==m-1||n){o=t[n?g?g-1:m-1:g-1],a=t[n?(g+1)%m:g+1];var b=[0,0];b=Q.c.sub(b,a,o),b=Q.c.scale(b,b,e);var x=Q.c.distance(y,o),O=Q.c.distance(y,a),j=x+O;0!==j&&(x/=j,O/=j);var w=Q.c.scale([0,0],b,-x),C=Q.c.scale([0,0],b,O);u=Q.c.add([0,0],y,w),l=Q.c.add([0,0],y,C),l=Q.c.min([0,0],l,Q.c.max([0,0],a,y)),l=Q.c.max([0,0],l,Q.c.min([0,0],a,y)),w=Q.c.sub([0,0],l,y),w=Q.c.scale([0,0],w,-x/O),u=Q.c.add([0,0],y,w),u=Q.c.min([0,0],u,Q.c.max([0,0],o,y)),u=Q.c.max([0,0],u,Q.c.min([0,0],o,y)),C=Q.c.sub([0,0],y,u),C=Q.c.scale([0,0],C,O/x),l=Q.c.add([0,0],y,C),d&&(u=Q.c.max([0,0],u,c),u=Q.c.min([0,0],u,s),l=Q.c.max([0,0],l,c),l=Q.c.min([0,0],l,s)),h.push(f),h.push(u),f=l}else u=y,h.push(f),h.push(u);else f=y}return n&&h.push(h.shift()),h}(i,.4,r,n),f=i.length,h=[];for(o=0;o<f-1;o++)c=u[2*o],s=u[2*o+1],l=i[o+1],h.push(["C",c[0],c[1],s[0],s[1],l[0],l[1]]);return r&&(c=u[f],s=u[f+1],l=i[0],h.push(["C",c[0],c[1],s[0],s[1],l[0],l[1]])),h}function ee(t,e){return function(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var r=1,i=t.length;r<i;r+=1){var o=t[r];n.push(["L",o.x,o.y])}e&&n.push(["Z"])}return n}(t,e)}function ne(t,e,n){var r=[],i=t[0],o=null;if(t.length<=2)return ee(t,e);for(var a=0,c=t.length;a<c;a++){var s=t[a];o&&o.x===s.x&&o.y===s.y||(r.push(s.x),r.push(s.y),o=s)}var l=te(r,e,n||[[0,0],[1,1]]);return l.unshift(["M",i.x,i.y]),l}function re(t,e){var n,r,i,o=[];return Object(b.j)(e,(function(a,c){switch(a[0].toLowerCase()){case"m":case"c":case"q":o.push(Qt(a,t));break;case"l":n=e[c-1],r=a,i=t.isTransposed,(i?n[n.length-2]===r[1]:n[n.length-1]===r[2])?o=o.concat(function(t,e,n){var r=n.isTransposed,i=n.startAngle,o=n.endAngle,a="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},c={x:e[1],y:e[2]},s=[],l=r?"y":"x",u=Math.abs(c[l]-a[l])*(o-i),f=c[l]>=a[l]?1:0,h=u>Math.PI?1:0,d=n.convert(c),p=St(n,d);if(p>=.5)if(u===2*Math.PI){var g={x:(c.x+a.x)/2,y:(c.y+a.y)/2},v=n.convert(g);s.push(["A",p,p,0,h,f,v.x,v.y]),s.push(["A",p,p,0,h,f,d.x,d.y])}else s.push(["A",p,p,0,h,f,d.x,d.y]);return s}(n,r,t)):o.push(Qt(a,t));break;case"a":o.push(Jt(a,t));break;case"z":default:o.push(a)}})),function(t){Object(b.j)(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")}}))}(o),o}var ie=n(1411);function oe(t,e){var n=t.event.target.getCanvasBBox();return n.width>=e||n.height>=e?n:null}function ae(t){var e,n=t.event.target;return n&&(e=n.get("element")),e}function ce(t){var e,n=t.event.target;return n&&(e=n.get("delegateObject")),e}function se(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function le(t){return t&&t.component&&t.component.isList()}function ue(t){return t&&t.component&&t.component.isSlider()}function fe(t){var e=t.event.target;return e&&"mask"===e.get("name")}function he(t,e){if("path"===t.event.target.get("type")){var n=function(t,e){var n=t.event.target,r=n.getCanvasBBox();return r.width>=e||r.height>=e?n.attr("path"):null}(t,e);if(!n)return;return function(t,e){var n=pe(t),r=me(e);return n.filter((function(t){var e,n,i=t.shape;if("path"===i.get("type"))e=me(i.attr("path"));else{var o=i.getCanvasBBox();e=[[(n=o).minX,n.minY],[n.maxX,n.minY],[n.maxX,n.maxY],[n.minX,n.maxY]]}return Object(ie.b)(r,e)}))}(t.view,n)}var r=oe(t,e);return r?ye(t.view,r):null}function de(t,e,n){var r=oe(t,n);if(!r)return null;var i=t.view,o=we(i,e,{x:r.x,y:r.y}),a=we(i,e,{x:r.maxX,y:r.maxY});return ye(e,{minX:o.x,minY:o.y,maxX:a.x,maxY:a.y})}function pe(t){var e=t.geometries,n=[];return Object(b.j)(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(b.j)(t.views,(function(t){n=n.concat(pe(t))})),n}function ge(t,e){var n=t.geometries,r=[];return Object(b.j)(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));r=r.concat(n)})),r}function ve(t,e){var n=t.getModel().data;return Object(b.C)(n)?n[0][e]:n[e]}function ye(t,e){var n=pe(t),r=[];return Object(b.j)(n,(function(t){var n,i,o=t.shape.getCanvasBBox();n=e,(i=o).minX>n.maxX||i.maxX<n.minX||i.minY>n.maxY||i.maxY<n.minY||r.push(t)})),r}function me(t){var e=[];return Object(b.j)(t,(function(t){if("A"!==t[0])for(var n=1;n<t.length;n+=2)e.push([t[n],t[n+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function be(t){return t.getComponents().map((function(t){return t.component}))}function xe(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function Oe(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function je(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function we(t,e,n){var r=function(t,e){return t.getCoordinate().invert(e)}(t,n);return e.getCoordinate().convert(r)}function Ce(t,e,n,r){var i=!1;return Object(b.j)(t,(function(t){if(t[n]===e[n]&&t[r]===e[r])return i=!0,!1})),i}function Se(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(b.j)(t.views,(function(t){if(n=Se(t,e))return!1})),n}var Ee=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;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 Object(b.s)(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=be(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var r=e.getBBox();return t?e.get("name")===t&&Oe(r,n):Oe(r,n)}))},t.prototype.destroy=function(){Object(b.j)(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),Me=function(){function t(t,e){this.view=t,this.cfg=e}return t.prototype.init=function(){this.initEvents()},t.prototype.initEvents=function(){},t.prototype.clearEvents=function(){},t.prototype.destroy=function(){this.clearEvents()},t}();function ke(t,e,n){var r=t.split(":"),i=r[0],o=e.getAction(i)||function(t,e){var n=qt[t],r=null;return n&&((r=new(0,n.ActionClass)(e,n.cfg)).name=t,r.init()),r}(i,e);if(!o)throw new Error("There is no action named ".concat(i));return{action:o,methodName:r[1],arg:n}}function Pe(t){var e=t.action,n=t.methodName,r=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](r)}var Ae="start",Ie="showEnable",Fe="end",Te="rollback",Le="processing",Ne=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.callbackCaches={},r.emitCaches={},r.steps=n,r}return s(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;Object(b.j)(this.steps,(function(e,n){Object(b.j)(e,(function(e){var r=t.getActionCallback(n,e);r&&t.bindEvent(e.trigger,r)}))}))},e.prototype.clearEvents=function(){var t=this;Object(b.j)(this.steps,(function(e,n){Object(b.j)(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 Ee(t);this.context=e;var n=this.steps;Object(b.j)(n,(function(t){Object(b.j)(t,(function(t){if(Object(b.I)(t.action))t.actionObject={action:Zt(t.action,e),methodName:"execute"};else if(Object(b.Q)(t.action))t.actionObject=ke(t.action,e,t.arg);else if(Object(b.C)(t.action)){var n=t.action,r=Object(b.C)(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(b.j)(n,(function(n,i){t.actionObject.push(ke(n,e,r[i]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===Ie)return!0;if(t===Le)return e===Ae;if(t===Ae)return e!==Le;if(t===Fe)return e===Le||e===Ae;if(t===Te){if(n[Fe])return e===Fe;if(e===Ae)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!==Ie&&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,i=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!i[a]){var c=function(i){r.event=i,n.isAllowExecute(t,e)?(Object(b.C)(o)?Object(b.j)(o,(function(t){r.event=i,Pe(t)})):(r.event=i,Pe(o)),n.afterExecute(t,e),e.callback&&(r.event=i,e.callback(r))):r.event=null};e.debounce?i[a]=Object(b.g)(c,e.debounce.wait,e.debounce.immediate):e.throttle?i[a]=Object(b.qb)(c,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):i[a]=c}return i[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(Me),De={};function Be(t,e){De[Object(b.V)(t)]=e}function Re(t,e,n){var r=function(t){return De[Object(b.V)(t)]}(t);if(!r)return null;if(Object(b.P)(r)){var i=Object(b.db)(Object(b.e)(r),n);return new Ne(e,i)}return new r(e,n)}function _e(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},r=function(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}(t),i=function(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var r=mt(t.getModel(),e),i=(r.startAngle+r.endAngle)/2,o=7.5*Math.cos(i),a=7.5*Math.sin(i);return{matrix:Q.a.transform(null,[["t",o,a]])}}return n.interval.selected}}},"hollow-rect":{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},line:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},tick:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},funnel:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}},pyramid:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},line:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},dot:{default:{style:l(l({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:l(l({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:l(l({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:l(l({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:l(l({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:l(l({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:l(l({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:l(l({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:r,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(b.h)({},r.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(b.h)({},r.grid,{line:{type:"circle"}})}},legend:{common:i,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:i.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS)]={position:"absolute",visibility:"hidden",zIndex:8,transition:"left 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s, top 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0s",backgroundColor:t.tooltipContainerFillColor,opacity:t.tooltipContainerFillOpacity,boxShadow:t.tooltipContainerShadow,borderRadius:"".concat(t.tooltipContainerBorderRadius,"px"),color:t.tooltipTextFillColor,fontSize:"".concat(t.tooltipTextFontSize,"px"),fontFamily:t.fontFamily,lineHeight:"".concat(t.tooltipTextLineHeight,"px"),padding:"0 12px 0 12px"},e["".concat(ot.TOOLTIP_CSS_CONST.TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(ot.TOOLTIP_CSS_CONST.LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(ot.TOOLTIP_CSS_CONST.LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(ot.TOOLTIP_CSS_CONST.MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(ot.TOOLTIP_CSS_CONST.VALUE_CLASS)]={display:"inline-block",float:"right",marginLeft:"30px"},e)},annotation:{arc:{style:{stroke:t.annotationArcBorderColor,lineWidth:t.annotationArcBorder},animate:!0},line:{style:{stroke:t.annotationLineBorderColor,lineDash:t.annotationLineDash,lineWidth:t.annotationLineBorder},text:{position:"start",autoRotate:!0,style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textAlign:"start",fontFamily:t.fontFamily,textBaseline:"bottom"}},animate:!0},text:{style:{fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,textBaseline:"middle",textAlign:"start",fontFamily:t.fontFamily},animate:!0},region:{top:!1,style:{lineWidth:t.annotationRegionBorder,stroke:t.annotationRegionBorderColor,fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},animate:!0},image:{top:!1,animate:!0},dataMarker:{top:!0,point:{style:{r:3,stroke:t.brandColor,lineWidth:2}},line:{style:{stroke:t.annotationLineBorderColor,lineWidth:t.annotationLineBorder},length:t.annotationDataMarkerLineLength},text:{style:{textAlign:"start",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},direction:"upward",autoAdjust:!0,animate:!0},dataRegion:{style:{region:{fill:t.annotationRegionFillColor,fillOpacity:t.annotationRegionFillOpacity},text:{textAlign:"center",textBaseline:"bottom",fill:t.annotationTextFillColor,stroke:t.annotationTextBorderColor,lineWidth:t.annotationTextBorder,fontSize:t.annotationTextFontSize,fontFamily:t.fontFamily}},animate:!0}},slider:{common:{padding:[8,8,8,8],backgroundStyle:{fill:t.cSliderBackgroundFillColor,opacity:t.cSliderBackgroundFillOpacity},foregroundStyle:{fill:t.cSliderForegroundFillColor,opacity:t.cSliderForegroundFillOpacity},handlerStyle:{width:t.cSliderHandlerWidth,height:t.cSliderHandlerHeight,fill:t.cSliderHandlerFillColor,opacity:t.cSliderHandlerFillOpacity,stroke:t.cSliderHandlerBorderColor,lineWidth:t.cSliderHandlerBorder,radius:t.cSliderHandlerBorderRadius,highLightFill:t.cSliderHandlerHighlightFillColor},textStyle:{fill:t.cSliderTextFillColor,opacity:t.cSliderTextFillOpacity,fontSize:t.cSliderTextFontSize,lineHeight:t.cSliderTextLineHeight,fontWeight:t.cSliderTextFontWeight,stroke:t.cSliderTextBorderColor,lineWidth:t.cSliderTextBorder}}},scrollbar:{common:{padding:[8,8,8,8]},default:{style:{trackColor:t.scrollbarTrackFillColor,thumbColor:t.scrollbarThumbFillColor}},hover:{style:{thumbColor:t.scrollbarThumbHighlightFillColor}}}},labels:{offset:12,style:{fill:t.labelFillColor,fontSize:t.labelFontSize,fontFamily:t.fontFamily,stroke:t.labelBorderColor,lineWidth:t.labelBorder},fillColorDark:t.labelFillColorDark,fillColorLight:t.labelFillColorLight,autoRotate:!0},innerLabels:{style:{fill:t.innerLabelFillColor,fontSize:t.innerLabelFontSize,fontFamily:t.fontFamily,stroke:t.innerLabelBorderColor,lineWidth:t.innerLabelBorder},autoRotate:!0},overflowLabels:{style:{fill:t.overflowLabelFillColor,fontSize:t.overflowLabelFontSize,fontFamily:t.fontFamily,stroke:t.overflowLabelBorderColor,lineWidth:t.overflowLabelBorder}},pieLabels:{labelHeight:14,offset:10,labelLine:{style:{lineWidth:t.labelLineBorder}},autoRotate:!0}}}var ze="#000",Ve="#595959",He="#8C8C8C",Ke="#BFBFBF",Ye="#D9D9D9",Ge="#F0F0F0",We="#FFFFFF",Xe="#D9D9D9",qe=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Ue=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],$e=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Ze=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?qe:e,r=t.paletteQualitative20,i=void 0===r?Ue:r,o=t.brandColor,a=void 0===o?n[0]:o;return l(l({},{backgroundColor:"transparent",brandColor:a,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:$e,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Ke,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Ve,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Xe,axisTickLineBorderColor:Ke,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Ye,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:He,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Ye,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:He,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:a,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Ve,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:ze,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:ze,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:He,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Ye,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:He,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Ge,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Ke,annotationArcBorderColor:Ye,annotationArcBorder:1,annotationLineBorderColor:Ke,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Ve,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:ze,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ke,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Ve,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Ve,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:We,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Ve,overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:We,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ke,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:a,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:We,pointBorderOpacity:1,pointActiveBorderColor:ze,pointSelectedBorder:2,pointSelectedBorderColor:ze,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:a,hollowPointBorderOpacity:.95,hollowPointFillColor:We,hollowPointActiveBorder:1,hollowPointActiveBorderColor:ze,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:ze,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:a,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:a,areaFillOpacity:.25,areaActiveFillColor:a,areaActiveFillOpacity:.5,areaSelectedFillColor:a,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:a,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:ze,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:ze,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:a,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:ze,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:ze,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:a,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:We,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:ze,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:ze,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),t)};Ze();function Qe(t){var e=t.styleSheet,n=void 0===e?{}:e,r=u(t,["styleSheet"]),i=Ze(n);return Object(b.h)({},_e(i),r)}var Je={default:Qe({})};function tn(t){return Object(b.s)(Je,Object(b.V)(t),Je.default)}function en(t,e,n){var r=n.translate(t),i=n.translate(e);return Object(b.N)(r,i)}function nn(t,e,n){var r=n.coordinate,i=n.getYScale(),o=i.field,a=r.invert(e),c=i.invert(a.y);return Object(b.m)(t,(function(t){var e=t._origin;return e[o][0]<=c&&e[o][1]>=c}))||t[t.length-1]}var rn=Object(b.ab)((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,r=t.translate(e[0]),i=r,o=0;o<n;o++){var a=e[o],c=t.translate(a);c<r&&(r=c),c>i&&(i=c)}return(i-r)/(n-1)}));function on(t){var e,n,r,i=function(t){var e=Object(b.xb)(t.attributes);return Object(b.l)(e,(function(t){return Object(b.f)(M,t.type)}))}(t);try{for(var o=d(i),a=o.next();!a.done;a=o.next()){var c=a.value,s=c.getScale(c.type);if(s&&s.isLinear)if("cat"!==Pt(s,Object(b.s)(t.scaleDefs,s.field),c.type,t.type)){r=s;break}}}catch(f){e={error:f}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(e)throw e.error}}var l=t.getXScale(),u=t.getYScale();return r||u||l}function an(t,e,n){if(0===e.length)return null;var r=n.type,i=n.getXScale(),o=n.getYScale(),a=i.field,c=o.field,s=null;if("heatmap"===r||"point"===r){for(var l=n.coordinate.invert(t),u=i.invert(l.x),f=o.invert(l.y),h=1/0,d=0;d<e.length;d++){var p=e[d],g=p._origin,v=Math.pow(g[a]-u,2)+Math.pow(g[c]-f,2);v<h&&(h=v,s=p)}return s}var y=e[0],m=e[e.length-1],x=function(t,e){var n=e.coordinate,r=e.getXScale(),i=r.range,o=i[i.length-1],a=i[0],c=n.invert(t).x;return n.isPolar&&c>(1+o)/2&&(c=a),r.translate(r.invert(c))}(t,n),O=y._origin[a],j=y._origin[c],w=m._origin[a],C=o.isLinear&&Object(b.C)(j);if(Object(b.C)(O)){for(d=0;d<e.length;d++){g=(A=e[d])._origin;if(i.translate(g[a][0])<=x&&i.translate(g[a][1])>=x){if(!C){s=A;break}Object(b.C)(s)||(s=[]),s.push(A)}}Object(b.C)(s)&&(s=nn(s,t,n))}else{var S=void 0;if(i.isLinear||"timeCat"===i.type){if((x>i.translate(w)||x<i.translate(O))&&(x>i.max||x<i.min))return null;for(var E=0,M=e.length-1,k=void 0;E<=M;){var P=e[k=Math.floor((E+M)/2)]._origin[a];if(en(P,x,i))return e[k];i.translate(P)<=i.translate(x)?(E=k+1,m=e[k],S=e[k+1]):(0===M&&(m=e[0]),M=k-1)}}else{for(d=0;d<e.length;d++){var A;if(en((g=(A=e[d])._origin)[a],x,i)){if(!C){s=A;break}Object(b.C)(s)||(s=[]),s.push(A)}else i.translate(g[a])<=x&&(m=A,S=e[d+1])}Object(b.C)(s)&&(s=nn(s,t,n))}m&&S&&Math.abs(i.translate(m._origin[a])-x)>Math.abs(i.translate(S._origin[a])-x)&&(m=S)}var I=rn(n.getXScale());return!s&&Math.abs(i.translate(m._origin[a])-x)<=I/2&&(s=m),s}function cn(t,e,n,r){var i,o;void 0===n&&(n=""),void 0===r&&(r=!1);var a,c=t._origin,s=function(t,e,n){var r=e.getAttribute("position").getFields(),i=e.scales,o=Object(b.I)(n)||!n?r[0]:n,a=i[o],c=a?a.getText(t[o]):t[o]||o;return Object(b.I)(n)?n(c,t):c}(c,e,n),u=e.tooltipOption,f=e.theme.defaultColor,h=[];function v(e,n){if(r||!Object(b.K)(n)&&""!==n){var i={title:s,data:c,mappingData:t,name:e,value:n,color:t.color||f,marker:!0};h.push(i)}}if(Object(b.O)(u)){var y=u.fields,m=u.callback;if(m){var x=y.map((function(e){return t._origin[e]})),O=m.apply(void 0,g([],p(x),!1)),j=l({data:t._origin,mappingData:t,title:s,color:t.color||f,marker:!0},O);h.push(j)}else{var w=e.scales;try{for(var C=d(y),S=C.next();!S.done;S=C.next()){var E=S.value;if(!Object(b.K)(c[E])){var M=w[E];v(It(M),a=M.getText(c[E]))}}}catch(P){i={error:P}}finally{try{S&&!S.done&&(o=C.return)&&o.call(C)}finally{if(i)throw i.error}}}}else{var k=on(e);a=function(t,e){var n=t[e.field];return Object(b.C)(n)?n.map((function(t){return e.getText(t)})).join("-"):e.getText(n)}(c,k),v(function(t,e){var n,r=e.getGroupScales();if(r.length&&(n=r[0]),n){var i=n.field;return n.getText(t[i])}return It(on(e))}(c,e),a)}return h}function sn(t,e,n,r){var i,o,a=r.showNil,c=[],s=t.dataArray;if(!Object(b.G)(s)){t.sort(s);try{for(var l=d(s),u=l.next();!u.done;u=l.next()){var f=an(e,u.value,t);if(f){var h=t.getElementId(f),p=t.elementsMap[h];if("heatmap"===t.type||p.visible){var g=cn(f,t,n,a);g.length&&c.push(g)}}}}catch(v){i={error:v}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}}return c}function ln(t,e,n,r){var i=r.showNil,o=[],a=t.container.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var c=cn(a.get("origin").mappingData,t,n,i);c.length&&o.push(c)}return o}function un(t,e,n){var r,i,o=[],a=t.geometries,c=n.shared,s=n.title,l=n.reversed;try{for(var u=d(a),f=u.next();!f.done;f=u.next()){var h=f.value;if(h.visible&&!1!==h.tooltipOption){var p=h.type,g=void 0;(g=["point","edge","polygon"].includes(p)?ln(h,e,s,n):["area","line","path","heatmap"].includes(p)||!1!==c?sn(h,e,s,n):ln(h,e,s,n)).length&&(l&&g.reverse(),o.push(g))}}}catch(v){r={error:v}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return o}function fn(t){void 0===t&&(t=0);var e=Object(b.C)(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=g(g([],p(e),!1),p(e),!1);break;case 3:e=g(g([],p(e),!1),[e[1]],!1);break;default:e=e.slice(0,4)}return e}var hn={};function dn(t,e){hn[t]=e}var pn=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 Object(b.nb)(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,r=n.type,i=n.cfg,o="theta"===r,a=l({start:t,end:e},i),c=function(t){return rt[t.toLowerCase()]}(o?"polar":r);return this.coordinate=new c(a),this.coordinate.type=r,o&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return l({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(b.j)(n,(function(n){var r,i=p(n),o=i[0],a=i.slice(1);(!!Object(b.K)(t)||t.includes(o))&&(r=e.coordinate)[o].apply(r,g([],p(a),!1))}))},t}(),gn=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,r){return new t(e,new L.e(n,{}),r)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}();function vn(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()}))}var yn=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,r){var i=n,o=this.getScaleMeta(r);if(0===e.length&&o){var a=o.scale,c={type:a.type};a.isCategory&&(c.values=a.values),i=Object(b.h)(c,o.scaleDef,n)}var s=At(t,e,i);return this.cacheScale(s,n,r),s},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(r,i){var o=Number.MAX_SAFE_INTEGER,a=Number.MIN_SAFE_INTEGER,c=[];Object(b.j)(r,(function(t){var e=n.getScale(t);a=Object(b.M)(e.max)?Math.max(a,e.max):a,o=Object(b.M)(e.min)?Math.min(o,e.min):o,Object(b.j)(e.values,(function(t){c.includes(t)||c.push(t)}))})),Object(b.j)(r,(function(r){var i=n.getScale(r);if(i.isContinuous)i.change({min:o,max:a,values:c});else if(i.isCategory){var s=i.range,l=n.getScaleMeta(r);c&&!Object(b.s)(l,["scaleDef","range"])&&(s=Ft(Object(b.h)({},i,{values:c}),t,e)),i.change({values:c,range:s})}}))}))},t.prototype.cacheScale=function(t,e,n){var r=this.getScaleMeta(n);r&&r.scale.type===t.type?(!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)}}(r.scale,t),r.scaleDef=e):(r={key:n,scale:t,scaleDef:e},this.scales.set(n,r));var i=this.getSyncKey(r);if(r.syncKey=i,this.removeFromSyncScales(n),i){var o=this.syncScales.get(i);o||(o=[],this.syncScales.set(i,o)),o.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(b.U)(t.split("-")),r=this.syncScales.get(n);r&&r.length&&(e=this.getScaleMeta(r[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,r=e.field,i=Object(b.s)(n,["sync"]);return!0===i?r:!1===i?void 0:i},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),mn=function(){function t(t,e,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),this.top=t,this.right=e,this.bottom=n,this.left=r}return t.instance=function(e,n,r,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===r&&(r=0),void 0===i&&(i=0),new t(e,n,r,i)},t.prototype.max=function(t){var e=p(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,r),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,o),this},t.prototype.shrink=function(t){var e=p(t,4),n=e[0],r=e[1],i=e[2],o=e[3];return this.top+=n,this.right+=r,this.bottom+=i,this.left+=o,this},t.prototype.inc=function(t,e){var n=t.width,r=t.height;switch(e){case y.TOP:case y.TOP_LEFT:case y.TOP_RIGHT:this.top+=r;break;case y.RIGHT:case y.RIGHT_TOP:case y.RIGHT_BOTTOM:this.right+=n;break;case y.BOTTOM:case y.BOTTOM_LEFT:case y.BOTTOM_RIGHT:this.bottom+=r;break;case y.LEFT:case y.LEFT_TOP:case y.LEFT_BOTTOM:this.left+=n}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,g([void 0],p(this.getPadding()),!1)))},t}();function bn(t){var e=t.padding;if(!function(t){return!Object(b.M)(t)&&!Object(b.C)(t)}(e))return new(mn.bind.apply(mn,g([void 0],p(fn(e)),!1)));var n=t.viewBBox,r=new mn,i=[],o=[],a=[];return Object(b.j)(t.getComponents(),(function(t){var e=t.type;e===m.AXIS?i.push(t):[m.LEGEND,m.SLIDER,m.SCROLLBAR].includes(e)?o.push(t):e!==m.GRID&&e!==m.TOOLTIP&&a.push(t)})),Object(b.j)(i,(function(t){var e=t.component.getLayoutBBox(),i=new wt(e.x,e.y,e.width,e.height).exceed(n);r.max(i)})),Object(b.j)(o,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=e.get("padding"),a=new wt(i.x,i.y,i.width,i.height).expand(o);r.inc(a,n)})),Object(b.j)(a,(function(t){var e=t.component,n=t.direction,i=e.getLayoutBBox(),o=new wt(i.x,i.y,i.width,i.height);r.inc(o,n)})),r}function xn(t,e,n){var r=n.instance();e.forEach((function(t){t.autoPadding=r.max(t.autoPadding.getPadding())}))}var On=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=Object.keys(hn),n.scalePool=new yn,n.layoutFunc=vn,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var r=n.createViewEvent(t);n.doPlotEvent(r),n.emit(e,r)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var r=n.createViewEvent(t);n.emit(e,r)}};var r=e.id,i=void 0===r?Object(b.vb)("view"):r,o=e.parent,a=e.canvas,c=e.backgroundGroup,s=e.middleGroup,u=e.foregroundGroup,f=e.region,h=void 0===f?{start:{x:0,y:0},end:{x:1,y:1}}:f,d=e.padding,p=e.appendPadding,g=e.theme,v=e.options,y=e.limitInPlot,m=e.syncViewPadding;return n.parent=o,n.canvas=a,n.backgroundGroup=c,n.middleGroup=s,n.foregroundGroup=u,n.region=h,n.padding=d,n.appendPadding=p,n.options=l(l({},n.options),v),n.limitInPlot=y,n.id=i,n.syncViewPadding=m,n.themeObject=Object(b.O)(g)?Object(b.h)({},tn("default"),Qe(g)):tn(g),n.init(),n}return s(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(x.BEFORE_RENDER,gn.fromData(this,x.BEFORE_RENDER,e)),this.paint(t),this.emit(x.AFTER_RENDER,gn.fromData(this,x.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(x.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0),e[n].labelsContainer.remove(!0);this.geometries=[];var r=this.controllers;for(n=0;n<r.length;n++)"annotation"===r[n].name?r[n].clear(!0):r[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var i=this.views;for(n=0;n<i.length;n++)i[n].clear();this.emit(x.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(x.BEFORE_DESTROY);var e=this.interactions;Object(b.j)(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,r=0,i=n.length;r<i;r++){n[r].destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}var o=this.controllers;for(r=0,i=o.length;r<i;r++){o[r].changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(b.lb)(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.data() instead."),this.data(t)},e.prototype.filter=function(t,e){return Object(b.I)(e)?(Object(b.lb)(this.options,["filters",t],e),this):(!e&&Object(b.s)(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(b.D)(t)?Object(b.lb)(this.options,["axes"],t):Object(b.lb)(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(b.D)(t)?Object(b.lb)(this.options,["legends"],t):Object(b.Q)(t)?(Object(b.lb)(this.options,["legends",t],e),Object(b.P)(e)&&(null===e||void 0===e?void 0:e.selected)&&Object(b.lb)(this.options,["filters",t],(function(t){var n;return null===(n=null===e||void 0===e?void 0:e.selected[t])||void 0===n||n}))):Object(b.lb)(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(b.Q)(t)?Object(b.lb)(this.options,["scales",t],e):Object(b.O)(t)&&Object(b.j)(t,(function(t,e){Object(b.lb)(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(b.lb)(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return console.warn("This method will be removed at G2 V4.1. Please use chart.annotation() instead."),this.annotation()},e.prototype.coordinate=function(t,e){return Object(b.Q)(t)?Object(b.lb)(this.options,"coordinate",{type:t,cfg:e}):Object(b.lb)(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return console.warn("This method will be removed at G2 V4.1. Please use chart.coordinate() instead."),this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=function(t){return Yt[Object(b.V)(t)]}(t);if(!n)throw new Error("facet '".concat(t,"' is not exist!"));return this.facetInstance=new n(this,l(l({},e),{type:t})),this},e.prototype.animate=function(t){return Object(b.lb)(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(b.db)(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \"".concat(t,'", please change another one.'));return Object(b.lb)(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(b.O)(t)?Object(b.h)({},this.themeObject,Qe(t)):tn(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var r=Re(t,this,e);return r&&(r.init(),this.interactions[t]=r),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(x.BEFORE_CHANGE_DATA,gn.fromData(this,x.BEFORE_CHANGE_DATA,null)),this.data(t),this.paint(!0);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].changeData(t)}this.emit(x.AFTER_CHANGE_DATA,gn.fromData(this,x.AFTER_CHANGE_DATA,null))},e.prototype.createView=function(t){this.parent&&this.parent.parent&&console.warn("The view nesting recursive feature will be removed at G2 V4.1. Please avoid to use it.");var n={data:this.options.data,scales:Object(b.e)(this.options.scales),axes:Object(b.e)(this.options.axes),coordinate:Object(b.e)(this.coordinateController.getOption()),tooltip:Object(b.e)(this.options.tooltip),legends:Object(b.e)(this.options.legends),animate:this.options.animate,visible:this.visible},r=new e(l(l({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:E}),middleGroup:this.middleGroup.addGroup({zIndex:S}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:C}),theme:this.themeObject,padding:this.padding},t),{options:l(l({},n),Object(b.s)(t,"options",{}))}));return this.views.push(r),r},e.prototype.view=function(t){return console.warn("This method will be removed at G2 V4.1. Please use chart.createView() instead."),this.createView(t)},e.prototype.removeView=function(t){var e=Object(b.jb)(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={},e=[];return this.geometries.forEach((function(n){var r=n.getYScale(),i=r.field;t[i]||(t[i]=!0,e.push(r))})),e},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},r=0,i=e.length;r<i;r++){var o=e[r],a="x"===t?o.getXScale():o.getYScale();a&&!n[a.field]&&(n[a.field]=a)}return n},e.prototype.getScale=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getScaleByField=function(t,e){return this.getScale(t,e)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getOriginalData=function(){return this.options.data},e.prototype.getPadding=function(){return this.autoPadding.getPadding()},e.prototype.getGeometries=function(){return this.geometries},e.prototype.getElements=function(){return Object(b.ib)(this.geometries,(function(t,e){return t.concat(e.getElements())}),[])},e.prototype.getElementsBy=function(t){return this.getElements().filter((function(e){return t(e)}))},e.prototype.getLayer=function(t){return t===v.BG?this.backgroundGroup:t===v.MID?this.middleGroup:(v.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return function(t,e){var n=!1;if(t)if("theta"===t.type){var r=t.start,i=t.end;n=xt(e.x,r.x,i.x)&&xt(e.y,r.y,i.y)}else{var o=t.invert(e);n=xt(o.x,0,1)&&xt(o.y,0,1)}return n}(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(b.q)(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return jt(Object(b.q)(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){for(var t=this;t.parent;)t=t.parent;return t},e.prototype.getXY=function(t){var e,n,r=this.getCoordinate(),i=this.getScalesByDim("x"),o=this.getScalesByDim("y");if(Object(b.j)(t,(function(t,r){i[r]&&(e=i[r].scale(t)),o[r]&&(n=o[r].scale(t))})),!Object(b.K)(e)&&!Object(b.K)(n))return r.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(b.m)(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],r=0,i=e.length;r<i;r++){var o=e[r],a=o.dataArray;o.sort(a);for(var c=void 0,s=0,l=a.length;s<l;s++){(c=an(t,a[s],o))&&n.push(c)}}var u=this.views;for(r=0,i=u.length;r<i;r++){var f=u[r].getSnapRecords(t);n=n.concat(f)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,r=e.length;n<r;n++){var i=e[n];t=t.concat(i.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(b.mb)(e)?t:Object(b.l)(t,(function(t,n){return Object.keys(e).every((function(r){return(0,e[r])(t[r],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,r=Object(b.s)(n,t);return Object(b.S)(r)?e:e.filter((function(e,n){return r(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,r=this.coordinateBBox.bl,i=this.coordinateBBox.tr;Object(b.H)(e,r)&&Object(b.H)(n,i)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(r,i))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(x.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(x.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(b.s)(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,r=e.y,i=e.width,o=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:r,width:i,height:o})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=bn(this).shrink(fn(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate(),this.controllers.find((function(t){return"tooltip"===t.name})).update();for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?xn:Object(b.I)(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,mn),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,r=0,i=n.length;r<i;r++){n[r].renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=Mt(this.coordinateInstance),r=n.type,i=n.attrs;e.setClip({type:r,attrs:i})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var o=this.views,a=0,c=o.length;a<c;a++){o[a].renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,r){var i=Object(b.s)(this.options.scales,[t]),o=l(l({},i),n);return this.parent?this.parent.createScale(t,e,o,r):this.scalePool.createScale(t,e,o,r)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,r=e.length;n<r;n++){e[n].renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,r;if(this.parent){var i=this.parent.coordinateBBox;t=i.x,e=i.y,n=i.width,r=i.height}else t=0,e=0,n=this.canvas.get("width"),r=this.canvas.get("height");var o=this.region,a=o.start,c=o.end,s=new wt(t+n*a.x,e+r*a.y,n*(c.x-a.x),r*(c.y-a.y));this.viewBBox&&this.viewBBox.isEqual(s)||(this.viewBBox=new wt(t+n*a.x,e+r*a.y,n*(c.x-a.x),r*(c.y-a.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var r=t[e],i=hn[r];i&&this.controllers.push(new i(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,r=e?e.get("origin"):null,i=new gn(this,t,r);return i.type=n,i},e.prototype.doPlotEvent=function(t){var e=t.type,n={x:t.x,y:t.y};if(["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"].includes(e)){var r=this.isPointInPlot(n),i=t.clone();if(r){var o="plot:".concat(e);i.type=o,this.emit(o,i),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!r?("mousemove"===e&&(i.type=j.MOUSE_LEAVE,this.emit(j.MOUSE_LEAVE,i)),i.type=j.LEAVE,this.emit(j.LEAVE,i)):!this.isPreMouseInPlot&&r&&("mousemove"===e&&(i.type=j.MOUSE_ENTER,this.emit(j.MOUSE_ENTER,i)),i.type=j.ENTER,this.emit(j.ENTER,i)),this.isPreMouseInPlot=r):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(i.type=j.MOUSE_LEAVE,this.emit(j.MOUSE_LEAVE,i)),i.type=j.LEAVE,this.emit(j.LEAVE,i),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(b.s)(this.options,"scales",{}),r=this.geometries,i=0,o=r.length;i<o;i++){var a=r[i];a.scales=this.getGeometryScales();var c={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?a.update(c):a.init(c)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),r=n.data,i=n.scales,o=void 0===i?{}:i,a=this.filteredData,c=0,s=t.length;c<s;c++){var l=t[c],u=o[l],f=this.getScaleKey(l);this.createScale(l,e.includes(l)?r:a,u,f),this.createdScaleKeys.set(f,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var r=t[n];e[r]=this.getScaleByField(r)}return e},e.prototype.getScaleFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){jt(n[r].getScaleFields(),t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e=new Map,n=this.geometries,r=0;r<n.length;r++){jt(n[r].getGroupFields(),t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=g([this.getXScale()],p(this.getYScales()),!1).filter((function(t){return!!t})),n=this.getCoordinate(),r=this.options.scales;Object(b.j)(e,(function(e){var i=e.field,o=e.values,a=e.isCategory,c=e.isIdentity;(a||c)&&o&&!Object(b.s)(r,[i,"range"])&&(e.range=Ft(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var r=e[n];t?r.update():(r.clear(),r.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),r={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},i=this.geometries,o=0;o<i.length;o++){var a=i[o];a.coordinate=n,a.canvasRegion=r,e||a.animate(!1),a.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){this.getComponents()[e].component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,r=void 0===n?[]:n,i=e.interactions,o=void 0===i?[]:i,a=e.views,c=void 0===a?[]:a,s=e.annotations,l=void 0===s?[]:s,f=e.coordinate,h=e.events,d=e.facets;this.coordinateController?f&&this.coordinateController.update(f):this.coordinateController=new pn(f);for(var p=0;p<r.length;p++){var g=r[p];this.createGeometry(g)}for(var v=0;v<o.length;v++){var y=o[v],m=y.type,x=y.cfg;this.interaction(m,x)}for(var O=0;O<c.length;O++){var j=c[O];this.createView(j)}for(var w=this.getController("annotation"),C=0;C<l.length;C++){var S=l[C];w.annotation(S)}h&&Object(b.j)(h,(function(e,n){t.on(n,e)})),d&&Object(b.j)(d,(function(e){var n=e.type,r=u(e,["type"]);t.facet(n,r)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,r=void 0===n?{}:n;if(this[e]){var i=this[e](r);Object(b.j)(t,(function(t,e){Object(b.I)(i[e])&&i[e](t)}))}},e.prototype.getScaleKey=function(t){return"".concat(this.id,"-").concat(t)},e}(T);function jn(t,e){On.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=l({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),r=new e(n);return this.geometries.push(r),r}}var wn=function(t){function e(e){var n=this,r=e.container,i=e.width,o=e.height,a=e.autoFit,c=void 0!==a&&a,s=e.padding,u=e.appendPadding,f=e.renderer,h=void 0===f?"canvas":f,d=e.pixelRatio,p=e.localRefresh,g=void 0===p||p,v=e.visible,y=void 0===v||v,m=e.supportCSSTransform,x=void 0!==m&&m,O=e.defaultInteractions,j=void 0===O?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text","axis-description"]:O,w=e.options,M=e.limitInPlot,P=e.theme,I=e.syncViewPadding,T=Object(b.Q)(r)?document.getElementById(r):r,L=Object(A.b)('<div style="position:relative;"></div>');T.appendChild(L);var N=F(T,c,i,o),D=new(function(t){var e=k[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}(h).Canvas)(l({container:L,pixelRatio:d,localRefresh:g,supportCSSTransform:x},N));return(n=t.call(this,{parent:null,canvas:D,backgroundGroup:D.addGroup({zIndex:E}),middleGroup:D.addGroup({zIndex:S}),foregroundGroup:D.addGroup({zIndex:C}),padding:s,appendPadding:u,visible:y,options:w,limitInPlot:M,theme:P,syncViewPadding:I})||this).onResize=Object(b.g)((function(){n.forceFit()}),300),n.ele=T,n.canvas=D,n.width=N.width,n.height=N.height,n.autoFit=c,n.localRefresh=g,n.renderer=h,n.wrapperElement=L,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(j),n}return s(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(b.j)(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){!1===t?this.ele.removeAttribute("aria-label"):this.ele.setAttribute("aria-label",t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(x.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(x.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(),function(t){var e=t.parentNode;e&&e.removeChild(t)}(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=F(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(A.e)(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}(On),Cn=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(b.j)(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();var Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return s(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 r=this.getTitle(n),i={x:n[0].x,y:n[0].y};e.emit("tooltip:show",gn.fromData(e,"tooltip:show",l({items:n,title:r},t)));var o=this.getTooltipCfg(),a=o.follow,c=o.showMarkers,s=o.showCrosshairs,u=o.showContent,f=o.marker,h=this.items,d=this.title;if(Object(b.H)(d,r)&&Object(b.H)(h,n)?(this.tooltip&&a&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",gn.fromData(e,"tooltip:change",l({items:n,title:r},t))),(Object(b.I)(u)?u(n):u)&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(b.db)({},o,{items:this.getItemsAfterProcess(n),title:r},a?t:{})),this.tooltip.show()),c&&this.renderTooltipMarkers(n,f)),this.items=n,this.title=r,s){var p=Object(b.s)(o,["crosshairs","follow"],!1);this.renderCrosshairs(p?t:i,o)}}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",gn.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.tooltip,e=this.xCrosshair,n=this.yCrosshair,r=this.tooltipMarkersGroup;t&&(t.hide(),t.clear()),e&&e.clear(),n&&n.clear(),r&&r.clear(),(null===t||void 0===t?void 0:t.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.tooltip,n=this.tooltipMarkersGroup,r=this.xCrosshair,i=this.yCrosshair;t?(e&&e.show(),n&&n.show(),r&&r.show(),i&&i.show()):(e&&e.hide(),n&&n.hide(),r&&r.hide(),i&&i.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e,n,r,i,o,a,c=this.findItemsFromView(this.view,t);if(c.length){c=Object(b.q)(c);try{for(var s=d(c),l=s.next();!l.done;l=s.next()){var u=l.value;try{for(var f=(r=void 0,d(u)),h=f.next();!h.done;h=f.next()){var p=h.value,g=p.mappingData,v=g.x,y=g.y;p.x=Object(b.C)(v)?v[v.length-1]:v,p.y=Object(b.C)(y)?y[y.length-1]:y}}catch(S){r={error:S}}finally{try{h&&!h.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}}catch(E){e={error:E}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}if(!1===this.getTooltipCfg().shared&&c.length>1){var m=c[0],x=Math.abs(t.y-m[0].y);try{for(var O=d(c),j=O.next();!j.done;j=O.next()){var w=j.value,C=Math.abs(t.y-w[0].y);C<=x&&(m=w,x=C)}}catch(M){o={error:M}}finally{try{j&&!j.done&&(a=O.return)&&a.call(O)}finally{if(o)throw o.error}}c=[m]}return function(t){for(var e=[],n=function(n){var r=t[n];Object(b.m)(e,(function(t){return t.color===r.color&&t.name===r.name&&t.value===r.value&&t.title===r.title}))||e.push(r)},r=0;r<t.length;r++)n(r);return e}(Object(b.q)(c))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var r=e.getBoundingClientRect(),i=r.x,o=r.y,a=r.width,c=r.height;return new wt(i,o,a,c).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),r=t.getTheme(),i=Object(b.s)(r,["components","tooltip"],{}),o=Object(b.s)(n,"enterable",i.enterable);return Object(b.h)({},i,n,{capture:!(!o&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(b.D)(t)||!Object(b.s)(t,"customContent"))return t;var e=t.customContent;return l(l({},t),{customContent:function(t,n){var r=e(t,n)||"";return Object(b.Q)(r)?'<div class="g2-tooltip">'+r+"</div>":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(),r=new ht(l(l({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));r.init(),this.tooltip=r},e.prototype.renderTooltipMarkers=function(t,e){var n,r,i=this.getTooltipMarkersGroup(),o=this.view.getRootView(),a=o.limitInPlot;try{for(var c=d(t),s=c.next();!s.done;s=c.next()){var u=s.value,f=u.x,h=u.y;if(a||(null===i||void 0===i?void 0:i.getClip())){var p=Mt(o.getCoordinate()),g=p.type,v=p.attrs;null===i||void 0===i||i.setClip({type:g,attrs:v})}else null===i||void 0===i||i.setClip(void 0);var y=l(l({fill:u.color,symbol:"circle",shadowColor:u.color},e),{x:f,y:h});i.addShape("marker",{attrs:y})}}catch(m){n={error:m}}finally{try{s&&!s.done&&(r=c.return)&&r.call(c)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(b.s)(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect)i.isTransposed?(n={x:i.start.x,y:t.y},r={x:i.end.x,y:t.y}):(n={x:t.x,y:i.end.y},r={x:t.x,y:i.start.y});else{var o=Et(i,t),a=i.getCenter(),c=i.getRadius();r=gt(a.x,a.y,c,o),n=a}var s=Object(b.h)({start:n,end:r,container:this.getTooltipCrosshairsGroup()},Object(b.s)(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete s.type;var l=this.xCrosshair;l?l.update(s):(l=new ot.Crosshair.Line(s)).init(),l.render(),l.show(),this.xCrosshair=l},e.prototype.renderYCrosshairs=function(t,e){var n,r,i=this.getViewWithGeometry(this.view).getCoordinate();if(i.isRect){var o=void 0,a=void 0;i.isTransposed?(o={x:t.x,y:i.end.y},a={x:t.x,y:i.start.y}):(o={x:i.start.x,y:t.y},a={x:i.end.x,y:t.y}),n={start:o,end:a},r="Line"}else n={center:i.getCenter(),radius:St(i,t),startAngle:i.startAngle,endAngle:i.endAngle},r="Circle";delete(n=Object(b.h)({container:this.getTooltipCrosshairsGroup()},n,Object(b.s)(e,"crosshairs",{}),this.getCrosshairsText("y",t,e))).type;var c=this.yCrosshair;c?i.isRect&&"circle"===c.get("type")||!i.isRect&&"line"===c.get("type")?(c=new ot.Crosshair[r](n)).init():c.update(n):(c=new ot.Crosshair[r](n)).init(),c.render(),c.show(),this.yCrosshair=c},e.prototype.getCrosshairsText=function(t,e,n){var r=Object(b.s)(n,["crosshairs","text"]),i=Object(b.s)(n,["crosshairs","follow"]),o=this.items;if(r){var a=this.getViewWithGeometry(this.view),c=o[0],s=a.getXScale(),l=a.getYScales()[0],u=void 0,f=void 0;if(i){var h=this.view.getCoordinate().invert(e);u=s.invert(h.x),f=l.invert(h.y)}else u=c.data[s.field],f=c.data[l.field];var d="x"===t?u:f;return Object(b.I)(r)?r=r(t,d,o,e):r.content=d,{text:r}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):((t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"})).toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||((t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1})).toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,r;if(!1===t.getOptions().tooltip)return[];var i=un(t,e,this.getTooltipCfg());try{for(var o=d(t.views),a=o.next();!a.done;a=o.next()){var c=a.value;i=i.concat(this.findItemsFromView(c,e))}}catch(s){n={error:s}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(b.m)(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems;return(e||function(t){return t})(t)},e}(Cn),En={};function Mn(t){return En[t.toLowerCase()]}function kn(t,e){En[t.toLowerCase()]=e}var Pn={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},An={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},In={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){return{animation:t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy"}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Fn(t,e,n){var r=An[t];return r&&(Object(b.I)(r)&&(r=r(e)),r=Object(b.h)({},Pn,r),n)?r[n]:r}function Tn(t,e,n){var r=Object(b.s)(t.get("origin"),"data","_origin"),i=e.animation,o=function(t,e){return{delay:Object(b.I)(t.delay)?t.delay(e):t.delay,easing:Object(b.I)(t.easing)?t.easing(e):t.easing,duration:Object(b.I)(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}(e,r);if(i){var a=Mn(i);a&&a(t,o,n)}else t.animate(n.toAttrs,o)}var Ln=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var r=e.shapeFactory,i=e.container,o=e.offscreenGroup,a=e.elementIndex,c=e.visible,s=void 0===c||c;return n.shapeFactory=r,n.container=i,n.offscreenGroup=o,n.visible=s,n.elementIndex=a,n}return s(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 r=this.getAnimateCfg("leave");r?Tn(n,r,{coordinate:e.coordinate,toAttrs:l({},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=[],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,a=n.shape,c=n.shapeType,s=r.indexOf(t);if(e){if(s>-1)return;r.push(t),"active"!==t&&"selected"!==t||null===a||void 0===a||a.toFront()}else{if(-1===s)return;if(r.splice(s,1),"active"===t||"selected"===t){var l=this.geometry,u=l.sortZIndex,f=l.zIndexReversed?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?a.setZIndex(f):a.set("zIndex",f)}}var h=i.drawShape(c,o,this.getOffscreenGroup());r.length?this.syncShapeStyle(a,h,r,null):this.syncShapeStyle(a,h,["reset"],null),h.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Object(ot.propagationDelegate)(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(b.j)(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.shapeType,e=this.geometry,n=this.shapeFactory,r=e.stateOption,i=n.defaultShapeType,o=n.theme[t]||n.theme[i];this.statesStyle=Object(b.h)({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),r=Object(b.s)(n,[t,"style"],{}),i=r[e]||r;return Object(b.I)(i)?i(this):i},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var r=n[t];return r?l(l({},r),{callback:function(){var t;Object(b.I)(r.callback)&&r.callback(),null===(t=e.geometry)||void 0===t||t.emit(O.AFTER_DRAW_ANIMATE)}}):r}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var r=this.shapeFactory,i=this.container,o=this.shapeType;if(this.shape=r.drawShape(o,t,i),this.shape){this.setShapeInfo(this.shape,t);var a=this.shape.cfg.name;a?Object(b.Q)(a)&&(this.shape.cfg.name=["element",a]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var c=e?"enter":"appear",s=this.getAnimateCfg(c);s&&(null===(n=this.geometry)||void 0===n||n.emit(O.BEFORE_DRAW_ANIMATE),Tn(this.shape,s,{coordinate:r.coordinate,toAttrs:l({},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,i){var o,a=this;if(void 0===n&&(n=[]),void 0===i&&(i=0),t&&e){var c=t.get("clipShape"),s=e.get("clipShape");if(this.syncShapeStyle(c,s,n,r),t.isGroup())for(var l=t.get("children"),u=e.get("children"),f=0;f<l.length;f++)this.syncShapeStyle(l[f],u[f],n,r,i+f);else{if(!Object(b.G)(n)&&!Object(b.H)(n,["reset"])){var h=t.get("name");Object(b.C)(h)&&(h=h[1]),Object(b.j)(n,(function(t){if("element-background"!==e.get("name")){var n=a.getStateStyle(t,h||i);e.attr(n)}}))}var d=bt(t,e);this.animate?r?(null===(o=this.geometry)||void 0===o||o.emit(O.BEFORE_DRAW_ANIMATE),Tn(t,r,{coordinate:this.shapeFactory.coordinate,toAttrs:d,shapeModel:this.model})):Object(b.G)(n)?t.attr(d):(t.stopAnimate(),t.animate(d,{duration:300})):t.attr(d)}}},e.prototype.getShapeType=function(t){var e=Object(b.s)(t,"shape");return Object(b.C)(e)?e[0]:e},e}(T),Nn={},Dn={};function Bn(t,e){Nn[t.toLowerCase()]=e}function Rn(t,e){Dn[t.toLowerCase()]=e}var _n={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Object(b.s)(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var r=this.defaultShapeType;n=this.getShape(r)}var i=this.theme,o=Object(b.s)(i,[t,"default"],{}),a=n.getMarker(e);return Object(b.h)({},o,a)},drawShape:function(t,e,n){return this.getShape(t).draw(e,n)}},zn={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Object(ie.c)(t);return n=e.isPolar?re(e,n):function(t,e){var n=[];return Object(b.j)(e,(function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(Qt(e,t));break;case"a":n.push(Jt(e,t));break;case"z":default:n.push(e)}})),n}(e,n)},parsePoint:function(t){return this.coordinate.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Vn={};function Hn(t,e){var n=Object(b.wb)(t),r=l(l(l({},_n),e),{geometryType:t});return Vn[n]=r,r}function Kn(t,e,n){var r=Object(b.wb)(t),i=Vn[r],o=l(l({},zn),n);return i[e]=o,o}function Yn(t){var e=Object(b.wb)(t);return Vn[e]}function Gn(t,e){return Object(b.nb)(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(b.H)(t[n],e[n])}))}function Wn(t){return Object(b.C)(t)?t:t.split("*")}function Xn(t,e){for(var n=[],r=[],i=[],o=new Map,a=0;a<e.length;a++){var c=e[a];t[c]?r.push(c):n.push(c),o.set(c,!0)}return Object.keys(t).forEach((function(t){o.has(t)||i.push(t)})),{added:n,updated:r,removed:i}}var qn=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,o=e.coordinate,a=e.data,c=e.sortable,s=void 0!==c&&c,l=e.visible,u=void 0===l||l,f=e.theme,h=e.scales,d=void 0===h?{}:h,p=e.scaleDefs,g=void 0===p?{}:p,v=e.intervalPadding,y=e.dodgePadding,m=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,O=e.roseWidthRatio,j=e.multiplePieWidthRatio,w=e.zIndexReversed,C=e.sortZIndex,S=e.useDeferredLabel;return n.container=r,n.labelsContainer=i,n.coordinate=o,n.data=a,n.sortable=s,n.visible=u,n.userTheme=f,n.scales=d,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=y,n.maxColumnWidth=m,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=O,n.multiplePieWidthRatio=j,n.zIndexReversed=w,n.sortZIndex=C,n.useDeferredLabel=S?"number"===typeof S?S:1/0:null,n}return s(e,t),e.prototype.position=function(t){var e=t;Object(b.P)(t)||(e={fields:Wn(t)});var n=Object(b.s)(e,"fields");return 1===n.length&&(n.unshift("1"),Object(b.lb)(e,"fields",n)),Object(b.lb)(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(Object(b.Q)(t)||Object(b.P)(t))&&(e=[t]),Object(b.j)(e,(function(t,n){Object(b.O)(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(b.Q)(t)){var n=Wn(t);this.styleOption={fields:n,callback:e}}else{var r=t,i=(n=r.fields,r.callback),o=r.cfg;this.styleOption=n||i||o?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(b.Q)(t)){var n=Wn(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(Object(b.Q)(t)){var r={},i=Wn(t);r.fields=i,Object(b.I)(e)?r.callback=e:Object(b.P)(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,o=this.lastAttributeOption;Object(b.H)(i,o)?!e||!n&&Object(b.H)(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){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(b.h)({},Fn(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elementsMap={},this.elements=[],this.getOffscreenGroup().clear();var n=this.beforeMappingData,r=this.beforeMapping(n);this.dataArray=new Array(r.length);for(var i=0;i<r.length;i++){var o=r[i];this.dataArray[i]=this.mapping(o)}if(this.updateElements(this.dataArray,t),this.lastElementsMap=this.elementsMap,this.canDoGroupAnimation(t)){var a=this.container,c=this.type,s=this.coordinate,u=Object(b.s)(this.animateOption,"appear"),f=this.getYScale(),h=s.convert({x:0,y:f.scale(this.getYMinValue())});!function(t,e,n,r,i){if(In[n]){var o=In[n](r),a=Mn(Object(b.s)(o,"animation",""));if(a){var c=l(l(l({},Pn.appear),o),e);t.stopAnimate(),a(t,c,{coordinate:r,minYPoint:i,toAttrs:null})}}}(a,u,c,s,h)}if(this.labelOption){var d=this.useDeferredLabel,p=function(){return e.renderLabels(Object(b.q)(e.dataArray),t)}.bind(this);if("number"===typeof d){var g="number"===typeof d&&d!==1/0?d:0;if(window.requestIdleCallback){var v=g&&g!==1/0?{timeout:g}:void 0;window.requestIdleCallback(p,v)}else setTimeout(p,g)}else p()}this.lastAttributeOption=l({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this.container,e=this.geometryLabel,n=this.offscreenGroup;t&&t.clear(),e&&e.clear(),n&&n.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear(),this.container.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(b.j)(this.attributes,(function(e){M.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(b.G)(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],r=t.scales,i=0,o=r.length;i<o;i++){var a=r[i],c=a.field;a.isIdentity?n.push(a.values):n.push(e[c])}return t.mapping.apply(t,g([],p(n),!1))},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getCoordinate=function(){return this.coordinate},e.prototype.getData=function(){return this.data},e.prototype.getShapeMarker=function(t,e){return this.getShapeFactory().getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElements=function(){return this.elements},e.prototype.getElementId=function(t){var e=(t=Object(b.C)(t)?t[0]:t)._origin;if(this.idFields.length){for(var n=e[this.idFields[0]],r=1;r<this.idFields.length;r++)n+="-"+e[this.idFields[r]];return n}var i,o,a=this.type,c=this.getXScale(),s=this.getYScale(),l=c.field||"x",u=e[s.field||"y"];i="identity"===c.type?c.values[0]:e[l],o="interval"===a||"schema"===a?"".concat(i):"line"===a||"area"===a||"path"===a?a:"".concat(i,"-").concat(u);for(var f=this.groupScales,h=(r=0,f.length);r<h;r++){var d=f[r].field;o="".concat(o,"-").concat(e[d])}var p=this.getAdjust("dodge");if(p){var g=p.dodgeBy;g&&(o="".concat(o,"-").concat(e[g]))}return this.getAdjust("jitter")&&(o="".concat(o,"-").concat(t.x,"-").concat(t.y)),o},e.prototype.getScaleFields=function(){var t=[],e=new Map,n=this.attributeOption,r=this.labelOption,i=this.tooltipOption;for(var o in n)if(n.hasOwnProperty(o)){var a=n[o];a.fields?jt(a.fields,t,e):a.values&&jt(a.values,t,e)}return r&&r.fields&&jt(r.fields,t,e),Object(b.O)(i)&&i.fields&&jt(i.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,r=0,i=n.length;r<i;r++){n[r].changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getFields=function(){var t=new Map,e=[];return Object.values(this.attributeOption).forEach((function(n){((null===n||void 0===n?void 0:n.fields)||[]).forEach((function(n){t.has(n)||e.push(n),t.set(n,!0)}))}),[]),e},e.prototype.getGroupFields=function(){for(var t=[],e=new Map,n=0,r=M.length;n<r;n++){var i=M[n],o=this.attributeOption[i];o&&o.fields&&jt(o.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=p(this.attributeOption.position.fields,2);return[t[0],t[1]]},e.prototype.getXField=function(){return Object(b.s)(this.getXYFields(),[0])},e.prototype.getYField=function(){return Object(b.s)(this.getXYFields(),[1])},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,r=0;r<t.length;r++){t[r].sort((function(t,r){return e.translate(t._origin[n])-e.translate(r._origin[n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(Yn(t))return this.shapeFactory||(this.shapeFactory=Object(b.e)(Yn(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e=this.getXScale(),n=this.getYScale();return{x:this.normalizeValues(t[e.field],e),y:n?this.normalizeValues(t[n.field],n):t.y?t.y:.1,y0:n?n.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e,n){void 0===n&&(n=!1);var r=this.container,i=this.getDrawCfg(t),o=this.getShapeFactory(),a=new Ln({shapeFactory:o,container:r,offscreenGroup:this.getOffscreenGroup(),elementIndex:e});return a.animate=this.animateOption,a.geometry=this,a.draw(i,n),a},e.prototype.getDrawCfg=function(t){var e=t._origin,n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},r=t.shape;!r&&this.getShapeFactory()&&(r=this.getShapeFactory().defaultShapeType),n.shape=r;var i=this.theme.geometries[this.shapeType];n.defaultStyle=Object(b.s)(i,[r,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(i));var o=this.styleOption;return o&&(n.style=this.getStyleCfg(o,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.updateElements=function(t,e){var n,r,i,o,a,c;void 0===e&&(e=!1);for(var s=new Map,l=[],u=new Map,f=0,h=0;h<t.length;h++)for(var p=t[h],g=0;g<p.length;g++){var v=p[g],y=this.getElementId(v),m=s.has(y)?"".concat(y,"-").concat(h,"-").concat(g):y;l.push(m),s.set(m,v),u.set(m,f),f++}this.elements=new Array(f);var b=Xn(this.lastElementsMap,l),x=b.added,O=b.updated,j=b.removed;try{for(var w=d(x),C=w.next();!C.done;C=w.next()){y=C.value,v=s.get(y),h=u.get(y);var S=this.createElement(v,h,e);this.elements[h]=S,this.elementsMap[y]=S,S.shape&&S.shape.set("zIndex",this.zIndexReversed?this.elements.length-h:h)}}catch(F){n={error:F}}finally{try{C&&!C.done&&(r=w.return)&&r.call(w)}finally{if(n)throw n.error}}try{for(var E=d(O),M=E.next();!M.done;M=E.next()){y=M.value,S=this.lastElementsMap[y],v=s.get(y);var k=this.getDrawCfg(v),P=S.getModel();h=u.get(y);(this.isCoordinateChanged||Gn(k,P))&&(S.animate=this.animateOption,S.update(k)),this.elements[h]=S,this.elementsMap[y]=S,S.shape&&S.shape.set("zIndex",this.zIndexReversed?this.elements.length-h:h)}}catch(T){i={error:T}}finally{try{M&&!M.done&&(o=E.return)&&o.call(E)}finally{if(i)throw i.error}}this.container&&this.container.sort();try{for(var A=d(j),I=A.next();!I.done;I=A.next()){y=I.value;(S=this.lastElementsMap[y]).animate=this.animateOption,S.destroy()}}catch(L){a={error:L}}finally{try{I&&!I.done&&(c=A.return)&&c.call(A)}finally{if(a)throw a.error}}},e.prototype.getLabelType=function(){var t=this.labelOption,e=this.coordinate,n=this.type,r=e.type,i=e.isTransposed,o=Object(b.s)(t,["cfg","type"]);return o||(o="polar"===r?i?"pie":"polar":"theta"===r?"pie":"interval"===n||"polygon"===n?"interval":"base"),o},e.prototype.getYMinValue=function(){var t=this.getYScale(),e=t.min,n=t.max;return e>=0?e:n<=0?n:0},e.prototype.createAttrOption=function(t,e,n){if(Object(b.K)(e)||Object(b.O)(e))Object(b.O)(e)&&Object(b.H)(Object.keys(e),["values"])?Object(b.lb)(this.attributeOption,t,{fields:e.values}):Object(b.lb)(this.attributeOption,t,e);else{var r={};Object(b.M)(e)?r.values=[e]:r.fields=Wn(e),n&&(Object(b.I)(n)?r.callback=n:r.values=n),Object(b.lb)(this.attributeOption,t,r)}},e.prototype.initAttributes=function(){var t=this,e=this.attributes,n=this.attributeOption,r=this.theme,i=this.shapeType;this.groupScales=[];var o={},a=function(a){if(n.hasOwnProperty(a)){var c=n[a];if(!c)return{value:void 0};var s=l({},c),u=s.callback,f=s.values,h=s.fields,d=(void 0===h?[]:h).map((function(e){var n=t.scales[e];!o[e]&&M.includes(a)&&("cat"===Pt(n,Object(b.s)(t.scaleDefs,e),a,t.type)&&(t.groupScales.push(n),o[e]=!0));return n}));s.scales=d,"position"!==a&&1===d.length&&"identity"===d[0].type?s.values=d[0].values:u||f||("size"===a?s.values=r.sizes:"shape"===a?s.values=r.shapes[i]||[]:"color"===a&&(d.length?s.values=d[0].values.length<=10?r.colors10:r.colors20:s.values=r.colors10));var p=X(a);e[a]=new p(s)}};for(var c in n){var s=a(c);if("object"===typeof s)return s.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var r=this.getAttribute("position").scales.filter((function(t){return t.isCategory})),i=this.groupData(t),o=[],a=0,c=i.length;a<c;a++){for(var s=i[a],l=[],u=0,f=s.length;u<f;u++){var h=s[u],p={};for(var g in h)p[g]=h[g];p._origin=h;try{for(var v=(e=void 0,d(r)),y=v.next();!y.done;y=v.next()){var m=y.value,b=m.field;p[b]=m.translate(p[b])}}catch(O){e={error:O}}finally{try{y&&!y.done&&(n=v.return)&&n.call(v)}finally{if(e)throw e.error}}l.push(p)}o.push(l)}var x=this.adjustData(o);return this.beforeMappingData=x,x},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this.intervalPadding,r=this.dodgePadding,i=this.theme,o=this.maxColumnWidth||i.maxColumnWidth,a=this.minColumnWidth||i.minColumnWidth,c=this.columnWidthRatio||i.columnWidthRatio,s=t;if(e){var u=this.getXScale(),f=this.getYScale(),h=u.field,d=f?f.field:null,p=Ct(this.coordinate),g=u.values.length,v=this.getAttribute("size"),y=void 0;v&&(y=v.values[0]);for(var m=0,x=e.length;m<x;m++){var O=e[m],j=l({xField:h,yField:d,intervalPadding:n,dodgePadding:r,xDimensionLength:p,groupNum:g,defaultSize:y,maxColumnWidth:o,minColumnWidth:a,columnWidthRatio:c},O),w=O.type;if("dodge"===w){var C=[];if(u.isCategory||"identity"===u.type)C.push("x");else{if(f)throw new Error("dodge is not support linear attribute, please use category attribute!");C.push("y")}j.adjustNames=C,j.dodgeRatio=c}else if("stack"===w){var S=this.coordinate;if(!f){j.height=S.getHeight();var E=this.getDefaultValue("size")||3;j.size=E}!S.isTransposed&&Object(b.K)(j.reverseOrder)&&(j.reverseOrder=!0)}var M=Object(N.getAdjust)(w);j.dimValuesMap={},u&&u.values&&(j.dimValuesMap[u.field]=u.values.map((function(t){return u.translate(t)})));var k=new M(j);s=k.process(s),this.adjusts[w]=k}}return s},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,r={},i=[],o=0;o<e.length;o++){var a=e[o].field;i.push(a),Object(b.s)(n,[a,"values"])&&(r[a]=n[a].values)}return function(t,e,n){var r,i;if(void 0===n&&(n={}),!e)return[t];var o=Object(b.x)(t,e),a=[];if(1===e.length&&n[e[0]]){var c=n[e[0]];try{for(var s=d(c),l=s.next();!l.done;l=s.next()){var u=l.value,f=o["_".concat(u)];f&&a.push(f)}}catch(g){r={error:g}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}else for(var h in o)if(o.hasOwnProperty(h)){var p=o[h];a.push(p)}return a}(t,i,r)},e.prototype.updateStackRange=function(t,e){for(var n=Object(b.q)(e),r=t.field,i=t.min,o=t.max,a=0;a<n.length;a++){var c=n[a],s=Math.min.apply(null,c[r]),l=Math.max.apply(null,c[r]);s<i&&(i=s),l>o&&(o=l)}var u=this.scaleDefs,f={};i<t.min&&!Object(b.s)(u,[r,"min"])&&(f.min=i),o>t.max&&!Object(b.s)(u,[r,"max"])&&(f.max=o),t.change(f)},e.prototype.beforeMapping=function(t){var e=t;if(this.sortable&&this.sort(e),this.generatePoints)for(var n=0,r=e.length;n<r;n++){var i=e[n];this.generateShapePoints(i);var o=e[n+1];o&&(this.generateShapePoints(o),i[0].nextPoints=o[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),r=0;r<t.length;r++){var i=t[r],o=this.createShapePointsCfg(i),a=n?this.getAttributeValues(n,i):null,c=e.getShapePoints(a,o);i.points=c}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(b.C)(t))for(var r=0;r<t.length;r++){var i=t[r];n.push(e.scale(i))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],r=0;r<t.length;r++){var i=t[r],o={_origin:i._origin,points:i.points,nextPoints:i.nextPoints};for(var a in e)if(e.hasOwnProperty(a)){var c=e[a],s=c.names,l=this.getAttributeValues(c,i);if(s.length>1)for(var u=0;u<l.length;u+=1){var f=l[u];o[s[u]]=Object(b.C)(f)&&1===f.length?f[0]:f}else o[s[0]]=1===l.length?l[0]:l}this.convertPoint(o),n.push(o)}return n},e.prototype.convertPoint=function(t){var e,n,r,i=t.x,o=t.y,a=this.coordinate;if(Object(b.C)(i)&&Object(b.C)(o)){e=[],n=[];for(var c=0,s=0,l=i.length,u=o.length;c<l&&s<u;c+=1,s+=1)r=a.convert({x:i[c],y:o[s]}),e.push(r.x),n.push(r.y)}else if(Object(b.C)(o)){n=[];for(var f=0;f<o.length;f++){var h=o[f];r=a.convert({x:i,y:h}),e&&e!==r.x?(Object(b.C)(e)||(e=[e]),e.push(r.x)):e=r.x,n.push(r.y)}}else if(Object(b.C)(i)){e=[];for(f=0;f<i.length;f++){var d=i[f];r=a.convert({x:d,y:o}),n&&n!==r.y?(Object(b.C)(n)||(n=[n]),n.push(r.y)):n=r.y,e.push(r.x)}}else{var p=a.convert({x:i,y:o});e=p.x,n=p.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,r=void 0===n?[]:n,i=t.callback,o=t.cfg;if(o)return o;var a=r.map((function(t){return e[t]}));return i.apply(void 0,g([],p(a),!1))},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,r=t.data,i=t.theme,o=t.scaleDefs;n&&(this.coordinate=n),r&&(this.data=r),o&&(this.scaleDefs=o,this.idFields=[],Object(b.j)(o,(function(t,n){t&&t.key&&e.idFields.push(n)}))),i&&(this.theme=this.userTheme?Object(b.h)({},i,this.userTheme):i)},e.prototype.renderLabels=function(t,e){return void 0===e&&(e=!1),f(this,void 0,void 0,(function(){var n,r,i,o,a,c,s,l,u,f,v,y,m=this;return h(this,(function(h){switch(h.label){case 0:return n=this.geometryLabel,this.emit(O.BEFORE_RENDER_LABEL),n||(r=this.getLabelType(),i=Nn[r.toLowerCase()],n=new i(this),this.geometryLabel=n),[4,n.render(t,e)];case 1:h.sent(),o=n.labelsRenderer.shapesMap,a=new Map,Object(b.j)(o,(function(t,e){for(var n=t.getChildren()||[],r=0;r<n.length;r++){var i=n[r],o=m.elementsMap[i.get("elementId")||e.split(" ")[0]];if(o){i.cfg.name=["element","label"],i.cfg.element=o;var c=a.get(o)||new Set;c.add(t),a.set(o,c)}}}));try{for(c=d(a.entries()),s=c.next();!s.done;s=c.next())l=p(s.value,2),u=l[0],f=l[1],u.labelShape=g([],p(f),!1)}catch(x){v={error:x}}finally{try{s&&!s.done&&(y=c.return)&&y.call(c)}finally{if(v)throw v.error}}return this.emit(O.AFTER_RENDER_LABEL),[2]}}))}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(b.s)(this.animateOption,"appear")||Object(b.s)(this.animateOption,"appear")&&void 0===Object(b.s)(this.animateOption,["appear","animation"]))},e}(T),Un=Q.a.transform;function $n(t,e,n){var r=Un(t.getMatrix(),[["t",e,n]]);t.setMatrix(r)}function Zn(t,e){var n=function(t,e){var n=t.attr(),r=n.x,i=n.y;return Un(t.getMatrix(),[["t",-r,-i],["r",e],["t",r,i]])}(t,e);t.setMatrix(n)}function Qn(t){return t.find((function(t){return"text"===t.get("type")}))}function Jn(t,e,n){void 0===n&&(n=[0,0,0,0]);var r=t&&t.getChildren()[0];if(r){var i=r.clone();(null===e||void 0===e?void 0:e.rotate)&&Zn(i,-e.rotate);var o=i.getCanvasBBox(),a=o.x,c=o.y,s=o.width,l=o.height;i.destroy();var u=n;return Object(b.K)(u)?u=[2,2,2,2]:Object(b.M)(u)&&(u=new Array(4).fill(u)),{x:a-u[3],y:c-u[0],width:s+u[1]+u[3],height:l+u[0]+u[2],rotation:(null===e||void 0===e?void 0:e.rotate)||0}}return{x:0,y:0,width:0,height:0,rotation:0}}function tr(t,e){var n=t.getBBox();return Object(b.nb)(e,(function(t){var e,r,i,o=t.getBBox();return e=n,r=o,void 0===(i=2)&&(i=0),Math.max(0,Math.min(e.x+e.width+i,r.x+r.width+i)-Math.max(e.x-i,r.x-i))*Math.max(0,Math.min(e.y+e.height+i,r.y+r.height+i)-Math.max(e.y-i,r.y-i))>0}))}var er=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),f(this,void 0,void 0,(function(){var r,i,o,a,c,s,u,f,p=this;return h(this,(function(h){switch(h.label){case 0:if(r={},i=this.createOffscreenGroup(),!t.length)return[3,2];try{for(o=d(t),a=o.next();!a.done;a=o.next())(c=a.value)&&(r[c.id]=this.renderLabel(c,i))}catch(g){u={error:g}}finally{try{a&&!a.done&&(f=o.return)&&f.call(o)}finally{if(u)throw u.error}}return[4,this.doLayout(t,e,r)];case 1:h.sent(),this.renderLabelLine(t,r),this.renderLabelBackground(t,r),this.adjustLabel(t,r),h.label=2;case 2:return s=this.shapesMap,Object(b.j)(r,(function(t,e){if(t.destroyed)delete r[e];else{if(s[e]){var i=t.get("data"),o=t.get("origin"),a=t.get("coordinate"),c=t.get("animateCfg"),u=s[e];!function t(e,n,r){var i=r.data,o=r.origin,a=r.animateCfg,c=r.coordinate,s=Object(b.s)(a,"update");e.set("data",i),e.set("origin",o),e.set("animateCfg",a),e.set("coordinate",c),e.set("visible",n.get("visible")),(e.getChildren()||[]).forEach((function(l,u){var f=n.getChildByIndex(u);if(f){l.set("data",i),l.set("origin",o),l.set("animateCfg",a),l.set("coordinate",c);var h=bt(l,f);s?Tn(l,s,{toAttrs:h,coordinate:c}):l.attr(h),f.isGroup()&&t(l,f,r)}else e.removeChild(l),l.remove(!0)})),Object(b.j)(n.getChildren(),(function(t,n){n>=e.getCount()&&(t.destroyed||e.add(t))}))}(u,r[e],{data:i,origin:o,animateCfg:c,coordinate:a}),r[e]=u}else{if(p.container.destroyed)return;p.container.add(t);var f=Object(b.s)(t.get("animateCfg"),n?"enter":"appear");f&&Tn(t,f,{toAttrs:l({},t.attr()),coordinate:t.get("coordinate")})}delete s[e]}})),Object(b.j)(s,(function(t){var e=Object(b.s)(t.get("animateCfg"),"leave");e?Tn(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=r,i.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,r=t.id,i=t.elementId,o=t.data,a=t.mappingData,c=t.coordinate,s=t.animate,u=t.content,f={id:r,elementId:i,data:o,origin:l(l({},a),{data:a._origin}),coordinate:c},h=e.addGroup(l({name:"label",animateCfg:!1!==this.animate&&null!==s&&!1!==s&&Object(b.h)({},this.animate,s)},f));if(u.isGroup&&u.isGroup()||u.isShape&&u.isShape()){var d=u.getCanvasBBox(),p=d.width,g=d.height,v=Object(b.s)(t,"textAlign","left"),y=t.x;"center"===v?y-=p/2:"right"!==v&&"end"!==v||(y-=p),$n(u,y,t.y-g/2),n=u,h.add(u)}else{var m=Object(b.s)(t,["style","fill"]);n=h.addShape("text",l({attrs:l(l({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(b.s)(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(b.L)(m)?t.color:m})},f))}return t.rotate&&Zn(n,t.rotate),h},t.prototype.doLayout=function(t,e,n){return f(this,void 0,void 0,(function(){var r,i=this;return h(this,(function(o){switch(o.label){case 0:return this.layout?(r=Object(b.C)(this.layout)?this.layout:[this.layout],[4,Promise.all(r.map((function(r){var o,a=(o=Object(b.s)(r,"type",""),Dn[o.toLowerCase()]);if(a){var c=[],s=[];return Object(b.j)(n,(function(t,n){c.push(t),s.push(e[t.get("elementId")])})),a(t,c,s,i.region,r.cfg)}})))]):[3,2];case 1:o.sent(),o.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(b.j)(t,(function(t){var n=Object(b.s)(t,"coordinate");if(t&&n){var r=n.getCenter(),i=n.getRadius();if(t.labelLine){var o=Object(b.s)(t,"labelLine",{}),a=t.id,c=o.path;if(!c){var s=gt(r.x,r.y,i,t.angle);c=[["M",s.x,s.y],["L",t.x,t.y]]}var u=e[a];u.destroyed||u.addShape("path",{capture:!1,attrs:l({path:c,stroke:t.color?t.color:Object(b.s)(t,["style","fill"],"#000"),fill:null},o.style),id:a,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(b.j)(t,(function(t){var n=Object(b.s)(t,"coordinate"),r=Object(b.s)(t,"background");if(r&&n){var i=t.id,o=e[i];if(!o.destroyed){var a=o.getChildren()[0];if(a){var c=Jn(o,t,r.padding),s=c.rotation,f=u(c,["rotation"]),h=o.addShape("rect",{attrs:l(l({},f),r.style||{}),id:i,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(h.setZIndex(-1),s){var d=a.getMatrix();h.setMatrix(d)}}}}}))},t.prototype.createOffscreenGroup=function(){return new(this.container.getGroupBase())({})},t.prototype.adjustLabel=function(t,e){Object(b.j)(t,(function(t){if(t){var n=t.id,r=e[n];if(!r.destroyed){var i=r.findAll((function(t){return"path"!==t.get("type")}));Object(b.j)(i,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}();function nr(t){var e=0;return Object(b.j)(t,(function(t){e+=t})),e/t.length}var rr=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],r=this.getLabelCfgs(t);return Object(b.j)(t,(function(t,i){var o=r[i];if(!o||Object(b.K)(t.x)||Object(b.K)(t.y))n.push(null);else{var a=Object(b.C)(o.content)?o.content:[o.content];o.content=a;var c=a.length;Object(b.j)(a,(function(r,i){if(Object(b.K)(r)||""===r)n.push(null);else{var a=l(l({},o),e.getLabelPoint(o,t,i));a.textAlign||(a.textAlign=e.getLabelAlign(a,i,c)),a.offset<=0&&(a.labelLine=null),n.push(a)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),f(this,void 0,void 0,(function(){var n,r,i;return h(this,(function(o){switch(o.label){case 0:return n=this.getLabelItems(t),r=this.getLabelsRenderer(),i=this.getGeometryShapes(),[4,r.render(n,i,e)];case 1:return o.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,r=n.type,i=n.theme;return"polygon"===r||"interval"===r&&"middle"===e||t<0&&!["line","point","path"].includes(r)?Object(b.s)(i,"innerLabels",{}):Object(b.s)(i,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.type,i=e.theme;return"polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(b.h)({},n,i.innerLabels,t):Object(b.h)({},n,i.labels,t)},t.prototype.setLabelPosition=function(t,e,n,r){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var r=t.offset,i=this.getCoordinate().isTransposed,o=i?"x":"y",a=i?1:-1,c={x:0,y:0};return c[o]=e>0||1===n?r*a:r*a*-1,c},t.prototype.getLabelPoint=function(t,e,n){var r=this.getCoordinate(),i=t.content.length;function o(e,n,r){void 0===r&&(r=!1);var i=e;return Object(b.C)(i)&&(i=1===t.content.length?r?nr(i):i.length<=2?i[e.length-1]:nr(i):i[n]),i}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(b.C)(e.shape)?e.shape[0]:e.shape,s="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var l=function(t,e){if(Object(b.M)(t)&&Object(b.M)(e))return[t,e];if(e=e,dt(t=t)||dt(e))return[pt(t),pt(e)];for(var n,r,i=-1,o=0,a=0,c=t.length-1,s=0;++i<t.length;)n=c,c=i,s+=r=t[n]*e[c]-t[c]*e[n],o+=(t[n]+t[c])*r,a+=(e[n]+e[c])*r;return[o/(s*=3),a/s]}(e.x,e.y);a.x=l[0],a.y=l[1]}else"interval"!==this.geometry.type||s?(a.x=o(e.x,n),a.y=o(e.y,n)):(a.x=o(e.x,n,!0),a.y=o(e.y,n));if(s){var u=Object(b.s)(e,"nextPoints"),f=Object(b.s)(e,"points");if(u){var h=r.convert(f[1]),d=r.convert(u[1]);a.x=(h.x+d.x)/2,a.y=(h.y+d.y)/2}else if("pyramid"===c){h=r.convert(f[1]),d=r.convert(f[2]);a.x=(h.x+d.x)/2,a.y=(h.y+d.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var p=this.getLabelOffsetPoint(t,n,i);return a.start={x:a.x,y:a.y},a.x+=p.x,a.y+=p.y,a.color=e.color,a},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._origin,a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[r.field]):"path"===n&&(a+=" ".concat(o[r.field],"-").concat(o[i.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,r=t.canvasRegion,i=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new er({container:e,layout:Object(b.s)(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=r,a.animate=!!i&&Fn("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,r=n.labelOption,i=n.scales,o=n.coordinate,a=r,c=a.fields,s=a.callback,u=a.cfg,f=c.map((function(t){return i[t]})),h=[];return Object(b.j)(t,(function(t,n){var r,i=t._origin,a=e.getLabelText(i,f);if(s){var d=c.map((function(t){return i[t]}));if(r=s.apply(void 0,g([],p(d),!1)),Object(b.K)(r))return void h.push(null)}var v=l(l({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:i,mappingData:t,coordinate:o},u),r);Object(b.I)(v.position)&&(v.position=v.position(i,t,n));var y=e.getLabelOffset(v.offset||0),m=e.getDefaultLabelCfg(y,v.position);(v=Object(b.h)({},m,v)).offset=e.getLabelOffset(v.offset||0);var x=v.content;Object(b.I)(x)?v.content=x(i,t,n):Object(b.S)(x)&&(v.content=a[0]),h.push(v)})),h},t.prototype.getLabelText=function(t,e){var n=[];return Object(b.j)(e,(function(e){var r=t[e.field];r=Object(b.C)(r)?r.map((function(t){return e.getText(t)})):e.getText(r),Object(b.K)(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 Object(b.M)(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(b.j)(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(b.j)(t.getOffscreenGroup().getChildren(),(function(n){var r=t.getElementId(n.get("origin").mappingData);e[r]=n})),e},t}();function ir(t,e,n){if(!t)return n;var r;if(t.callback&&t.callback.length>1){var i=Array(t.callback.length-1).fill("");r=t.mapping.apply(t,g([e],p(i),!1)).join("")}else r=t.mapping(e).join("");return r||n}var or={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]]}},ar=["line","cross","tick","plus","hyphen"];function cr(t){var e=t.symbol;Object(b.Q)(e)&&or[e]&&(t.symbol=or[e])}function sr(t){return t.startsWith(y.LEFT)||t.startsWith(y.RIGHT)?"vertical":"horizontal"}function lr(t,e,n,r,i){var o=n.getScale(n.type);if(o.isCategory){var a=o.field,c=e.getAttribute("color"),s=e.getAttribute("shape"),u=t.getTheme().defaultColor,f=e.coordinate.isPolar;return o.getTicks().map((function(n,h){var d,p=n.text,g=n.value,v=p,y=o.invert(g),m=0===t.filterFieldData(a,[(d={},d[a]=y,d)]).length;Object(b.j)(t.views,(function(t){var e;t.filterFieldData(a,[(e={},e[a]=y,e)]).length||(m=!0)}));var x,O,j=ir(c,y,u),w=ir(s,y,"point"),C=e.getShapeMarker(w,{color:j,isInPolar:f}),S=i;return Object(b.I)(S)&&(S=S(v,h,l({name:v,value:y},Object(b.h)({},r,C)))),function(t,e){var n=t.symbol;if(Object(b.Q)(n)&&-1!==ar.indexOf(n)){var r=Object(b.s)(t,"style",{}),i=Object(b.s)(r,"lineWidth",1),o=r.stroke||r.fill||e;t.style=Object(b.h)({},t.style,{lineWidth:i,stroke:o,fill:null})}}(C=Object(b.h)({},r,C,Ot(l({},S),["style"])),j),S&&S.style&&(C.style=(x=C.style,O=S.style,Object(b.I)(O)?O(x):Object(b.h)({},x,O))),cr(C),{id:y,name:v,value:y,marker:C,unchecked:m}}))}return[]}function ur(t,e){var n=Object(b.s)(t,["components","legend"],{});return Object(b.h)({},Object(b.s)(n,["common"],{}),Object(b.h)({},Object(b.s)(n,[e],{})))}function fr(t){return!t&&(null===t||void 0===t||isNaN(t))}function hr(t){if(Object(b.C)(t))return fr(t[1].y);var e=t.y;return Object(b.C)(e)?fr(e[0]):fr(e)}function dr(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,o=t.length;i<o;i++){hr(s=t[i])||r.push(s)}return[r]}var a=[],c=[];for(i=0,o=t.length;i<o;i++){var s;hr(s=t[i])?c.length&&((1!==c.length||n)&&a.push(c),c=[]):c.push(s)}return c.length&&a.push(c),a}function pr(t){for(var e=[],n=0;n<t.length;n++){var r=t[n];if(r){var i=0===n?"M":"L";e.push([i,r.x,r.y])}}var o=t[0];return o&&(e.push(["L",o.x,o.y]),e.push(["z"])),e}function gr(t){for(var e=t.length/2,n=[],r=[],i=0;i<t.length;i++)i<e?n.push(t[i]):r.push(t[i]);var o=ne(n,!1),a=ne(r,!1);r.length&&o.push(["L",r[0].x,r[0].y]),a.shift();var c=o.concat(a);return n.length&&c.push(["L",n[0].x,n[0].y]),c.push(["z"]),c}function vr(t,e,n,r){void 0===r&&(r="");var i=t.style,o=void 0===i?{}:i,a=t.defaultStyle,c=t.color,s=t.size,u=l(l({},a),o);return c&&(e&&(o.stroke||(u.stroke=c)),n&&(o.fill||(u.fill=c))),r&&Object(b.K)(o[r])&&!Object(b.K)(s)&&(u[r]=s),u}function yr(t){return Object(b.h)({},{fill:"#CCD6EC",fillOpacity:.3},Object(b.s)(t,["background","style"]))}function mr(t){var e=t.x;return(Object(b.C)(t.y)?t.y:[t.y]).map((function(t,n){return{x:Object(b.C)(e)?e[n]:e,y:t}}))}var br={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function xr(t,e){var n=t.color;return{symbol:br[e],style:{lineWidth:2,r:6,stroke:n}}}function Or(t,e,n,r,i){return 1===t.length?[["M",t[0].x,t[0].y-i.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+i.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),o=ne(t,!1,r)):(o=ee(t,!1),e&&o.push(["Z"])),o);var o}function jr(t,e,n,r,i,o){if(t.length){var a=t[0];return Object(b.C)(a.y)?function(t,e,n,r,i,o){var a=[],c=[];Object(b.j)(t,(function(t){var e=mr(t);a.push(e[1]),c.push(e[0])}));var s=Or(a,e,r,i,o),l=Or(c,e,r,i,o);return n?s:s.concat(l)}(t,e,n,r,i,o):Or(t,e,r,i,o)}return[]}Hn("line",{defaultShapeType:"line"});Object(b.j)(["line","dot","dash","smooth"],(function(t){Kn("line",t,{draw:function(e,n){var r,i="smooth"===t;if(i){var o=this.coordinate,a=o.start,c=o.end;r=[[a.x,c.y],[c.x,a.y]]}var s=function(t,e,n){for(var r=t.isStack,i=t.connectNulls,o=t.isInCircle,a=t.showSinglePoint,c=vr(t,!0,!1,"lineWidth"),s=dr(t.points,i,a),l=[],u=0,f=s.length;u<f;u++){var h=s[u];l=l.concat(jr(h,o,r,e,n,c))}return c.path=l,c}(e,i,r);return n.addShape({type:"path",attrs:s,name:"line",capture:!i})},getMarker:function(e){return xr(e,t)}})}));var wr={getLegendItems:lr,translate:$n,rotate:Zn,zoom:function(t,e){var n=t.getBBox(),r=(n.minX+n.maxX)/2,i=(n.minY+n.maxY)/2;t.applyToMatrix([r,i,1]);var o=Un(t.getMatrix(),[["t",-r,-i],["s",e,e],["t",r,i]]);t.setMatrix(o)},transform:Un,getAngle:mt,getSectorPath:vt,polarToCartesian:gt,getDelegationObject:ce,getTooltipItems:cn,getMappingValue:ir,getPath:jr,getPathPoints:dr},Cr="#000",Sr="#262626",Er="#BFBFBF",Mr="#F0F0F0",kr="#FFFFFF",Pr="#A6A6A6",Ar="#737373",Ir="#404040",Fr="#262626",Tr=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Lr=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Nr=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Dr=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Tr:e,r=t.paletteQualitative20,i=void 0===r?Lr:r,o=t.brandColor,a=void 0===o?n[0]:o;return l(l({},{backgroundColor:"#141414",brandColor:a,subColor:"rgba(255,255,255,0.05)",paletteQualitative10:n,paletteQualitative20:i,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Nr,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Ir,axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Pr,axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Sr,axisTickLineBorderColor:Ir,axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Fr,axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Ar,axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Fr,axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Ar,legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:Tr[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Pr,legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Ar,legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Ar,legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Pr,legendPageNavigatorTextFontSize:12,sliderRailFillColor:Fr,sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Ar,sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Mr,sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Er,annotationArcBorderColor:Fr,annotationArcBorder:1,annotationLineBorderColor:Ir,annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Pr,annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:kr,annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Ir,tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:Pr,tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Pr,labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Cr,innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Pr,overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Cr,overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Ir,cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#fff",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(255,255,255,0.65)",scrollbarThumbFillColor:"rgba(0,0,0,0.35)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.45)",pointFillColor:Tr[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Cr,pointBorderOpacity:1,pointActiveBorderColor:kr,pointSelectedBorder:2,pointSelectedBorderColor:kr,pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:Tr[0],hollowPointBorderOpacity:.95,hollowPointFillColor:Cr,hollowPointActiveBorder:1,hollowPointActiveBorderColor:kr,hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:kr,hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:Tr[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:Tr[0],areaFillOpacity:.25,areaActiveFillColor:Tr[0],areaActiveFillOpacity:.5,areaSelectedFillColor:Tr[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:Tr[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:kr,hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:kr,hollowAreaInactiveBorderOpacity:.3,intervalFillColor:Tr[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:kr,intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:kr,intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:Tr[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Cr,hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:kr,hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:kr,hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}),t)}(),Br=function(t,e){return(Br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function Rr(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}Br(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var _r=function(){return(_r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.create;Object.create;function zr(t,e,n,r){var i=t-n,o=e-r;return Math.sqrt(i*i+o*o)}function Vr(t,e,n,r,i,o){return i>=t&&i<=t+n&&o>=e&&o<=e+r}function Hr(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Kr(t,e){return t[0]===e[0]&&t[1]===e[1]}var Yr=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,Gr=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Wr=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Xr=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function qr(t,e){var n=t.match(Xr);Object(b.j)(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function Ur(t,e,n){var r=e.getBBox();if(isNaN(r.x)||isNaN(r.y)||isNaN(r.width)||isNaN(r.height))return n;if(Object(b.Q)(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return function(t,e,n){var r,i,o=Yr.exec(n),a=parseFloat(o[1])%360*(Math.PI/180),c=o[2],s=e.getBBox();a>=0&&a<.5*Math.PI?(r={x:s.minX,y:s.minY},i={x:s.maxX,y:s.maxY}):.5*Math.PI<=a&&a<Math.PI?(r={x:s.maxX,y:s.minY},i={x:s.minX,y:s.maxY}):Math.PI<=a&&a<1.5*Math.PI?(r={x:s.maxX,y:s.maxY},i={x:s.minX,y:s.minY}):(r={x:s.minX,y:s.maxY},i={x:s.maxX,y:s.minY});var l=Math.tan(a),u=l*l,f=(i.x-r.x+l*(i.y-r.y))/(u+1)+r.x,h=l*(i.x-r.x+l*(i.y-r.y))/(u+1)+r.y,d=t.createLinearGradient(r.x,r.y,f,h);return qr(c,d),d}(t,e,n);if("r"===n[0])return function(t,e,n){var r=Gr.exec(n),i=parseFloat(r[1]),o=parseFloat(r[2]),a=parseFloat(r[3]),c=r[4];if(0===a){var s=c.match(Xr);return s[s.length-1].split(":")[1]}var l=e.getBBox(),u=l.maxX-l.minX,f=l.maxY-l.minY,h=Math.sqrt(u*u+f*f)/2,d=t.createRadialGradient(l.minX+u*i,l.minY+f*o,0,l.minX+u/2,l.minY+f/2,a*h);return qr(c,d),d}(t,e,n);if("p"===n[0])return function(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var r,i,o=Wr.exec(n),a=o[1],c=o[2];function s(){r=t.createPattern(i,a),e.set("pattern",r),e.set("patternSource",n)}switch(a){case"a":a="repeat";break;case"x":a="repeat-x";break;case"y":a="repeat-y";break;case"n":a="no-repeat";break;default:a="no-repeat"}return i=new Image,c.match(/^data:/i)||(i.crossOrigin="Anonymous"),i.src=c,i.complete?s():(i.onload=s,i.src=i.src),r}(t,e,n)}return n}return n instanceof CanvasPattern?n:void 0}function $r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function Zr(t,e){return $r(t)*$r(e)?(t[0]*e[0]+t[1]*e[1])/($r(t)*$r(e)):1}function Qr(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(Zr(t,e))}function Jr(t,e){var n=e[1],r=e[2],i=Object(b.eb)(Object(b.sb)(e[3]),2*Math.PI),o=e[4],a=e[5],c=t[0],s=t[1],l=e[6],u=e[7],f=Math.cos(i)*(c-l)/2+Math.sin(i)*(s-u)/2,h=-1*Math.sin(i)*(c-l)/2+Math.cos(i)*(s-u)/2,d=f*f/(n*n)+h*h/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var p=n*n*(h*h)+r*r*(f*f),g=p?Math.sqrt((n*n*(r*r)-p)/p):1;o===a&&(g*=-1),isNaN(g)&&(g=0);var v=r?g*n*h/r:0,y=n?g*-r*f/n:0,m=(c+l)/2+Math.cos(i)*v-Math.sin(i)*y,x=(s+u)/2+Math.sin(i)*v+Math.cos(i)*y,O=[(f-v)/n,(h-y)/r],j=[(-1*f-v)/n,(-1*h-y)/r],w=Qr([1,0],O),C=Qr(O,j);return Zr(O,j)<=-1&&(C=Math.PI),Zr(O,j)>=1&&(C=0),0===a&&C>0&&(C-=2*Math.PI),1===a&&C<0&&(C+=2*Math.PI),{cx:m,cy:x,rx:Kr(t,[l,u])?0:n,ry:Kr(t,[l,u])?0:r,startAngle:w,endAngle:w+C,xRotation:i,arcFlag:o,sweepFlag:a}}var ti=Math.sin,ei=Math.cos,ni=Math.atan2,ri=Math.PI;function ii(t,e,n,r,i,o,a){var c=e.stroke,s=e.lineWidth,l=ni(r-o,n-i),u=new _i({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*ei(ri/6)+","+10*ti(ri/6)+" L0,0 L"+10*ei(ri/6)+",-"+10*ti(ri/6),stroke:c,lineWidth:s}});u.translate(i,o),u.rotateAtPoint(i,o,l),t.set(a?"startArrowShape":"endArrowShape",u)}function oi(t,e,n,r,i,o,a){var c=e.startArrow,s=e.endArrow,l=e.stroke,u=e.lineWidth,f=a?c:s,h=f.d,d=f.fill,p=f.stroke,g=f.lineWidth,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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}(f,["d","fill","stroke","lineWidth"]),y=ni(r-o,n-i);h&&(i-=ei(y)*h,o-=ti(y)*h);var m=new _i({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:_r(_r({},v),{stroke:p||l,lineWidth:g||u,fill:d})});m.translate(i,o),m.rotateAtPoint(i,o,y),t.set(a?"startArrowShape":"endArrowShape",m)}function ai(t,e,n,r,i){var o=ni(r-e,n-t);return{dx:ei(o)*i,dy:ti(o)*i}}function ci(t,e,n,r,i,o){"object"===typeof e.startArrow?oi(t,e,n,r,i,o,!0):e.startArrow?ii(t,e,n,r,i,o,!0):t.set("startArrowShape",null)}function si(t,e,n,r,i,o){"object"===typeof e.endArrow?oi(t,e,n,r,i,o,!1):e.endArrow?ii(t,e,n,r,i,o,!1):t.set("startArrowShape",null)}var li={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function ui(t,e){var n=e.attr();for(var r in n){var i=n[r],o=li[r]?li[r]:r;"matrix"===o&&i?t.transform(i[0],i[1],i[3],i[4],i[6],i[7]):"lineDash"===o&&t.setLineDash?Object(b.C)(i)&&t.setLineDash(i):("strokeStyle"===o||"fillStyle"===o?i=Ur(t,e,i):"globalAlpha"===o&&(i*=t.globalAlpha),t[o]=i)}}function fi(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];i.cfg.visible?i.draw(t,n):i.skipDraw()}}function hi(t,e,n){var r=t.get("refreshElements");Object(b.j)(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?di(e,n):function t(e,n){for(var r=0;r<e.length;r++){var i=e[r];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&di(i.cfg.children,n);else if(i.cfg.refresh)i.isGroup()&&t(i.cfg.children,n);else{var o=pi(i,n);i.cfg.refresh=o,o&&i.isGroup()&&t(i.cfg.children,n)}}}(e,n)}function di(t,e){for(var n=0;n<t.length;n++){var r=t[n];r.cfg.refresh=!0,r.isGroup()&&di(r.get("children"),e)}}function pi(t,e){var n=t.cfg.cacheCanvasBBox;return t.cfg.isInView&&n&&Hr(n,e)}function gi(t,e,n,r){var i=n.path,o=n.startArrow,a=n.endArrow;if(i){var c=[0,0],s=[0,0],l={dx:0,dy:0};e.beginPath();for(var u=0;u<i.length;u++){var f=i[u],h=f[0];if(0===u&&o&&o.d)l=ai((d=t.getStartTangent())[0][0],d[0][1],d[1][0],d[1][1],o.d);else if(u===i.length-2&&"Z"===i[u+1][0]&&a&&a.d){if("Z"===i[u+1][0])l=ai((d=t.getEndTangent())[0][0],d[0][1],d[1][0],d[1][1],a.d)}else if(u===i.length-1&&a&&a.d){var d;if("Z"!==i[0])l=ai((d=t.getEndTangent())[0][0],d[0][1],d[1][0],d[1][1],a.d)}var p=l.dx,g=l.dy;switch(h){case"M":e.moveTo(f[1]-p,f[2]-g),s=[f[1],f[2]];break;case"L":e.lineTo(f[1]-p,f[2]-g);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-p,f[4]-g);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-p,f[6]-g);break;case"A":var v=void 0;r?(v=r[u])||(v=Jr(c,f),r[u]=v):v=Jr(c,f);var y=v.cx,m=v.cy,b=v.rx,x=v.ry,O=v.startAngle,j=v.endAngle,w=v.xRotation,C=v.sweepFlag;if(e.ellipse)e.ellipse(y,m,b,x,w,O,j,1-C);else{var S=b>x?b:x,E=b>x?1:b/x,M=b>x?x/b:1;e.translate(y,m),e.rotate(w),e.scale(E,M),e.arc(0,0,S,O,j,1-C),e.scale(1/E,1/M),e.rotate(-w),e.translate(-y,-m)}break;case"Z":e.closePath()}if("Z"===h)c=s;else{var k=f.length;c=[f[k-2],f[k-1]]}}}}function vi(t,e){var n=t.get("canvas");n&&("remove"===e&&(t._cacheCanvasBBox=t.get("cacheCanvasBBox")),t.get("hasChanged")||(t.set("hasChanged",!0),t.cfg.parent&&t.cfg.parent.get("hasChanged")||(n.refreshElement(t,e,n),n.get("autoDraw")&&n.draw())))}function yi(t){var e,n,r;if(t.destroyed)e=t._cacheCanvasBBox;else{var i=t.get("cacheCanvasBBox"),o=i&&!(!i.width||!i.height),a=t.getCanvasBBox(),c=a&&!(!a.width||!a.height);o&&c?(r=a,e=(n=i)&&r?{minX:Math.min(n.minX,r.minX),minY:Math.min(n.minY,r.minY),maxX:Math.max(n.maxX,r.maxX),maxY:Math.max(n.maxY,r.maxY)}:n||r):o?e=i:c&&(e=a)}return e}var mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.onCanvasChange=function(t){vi(this,t)},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),ui(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(b.j)(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=Object(b.bb)(e),o=Object(b.Y)(e),a=Object(b.bb)(n),c=Object(b.Y)(n);r={minX:i,minY:a,x:i,y:a,maxX:o,maxY:c,width:o-i,height:c-a};var s=this.cfg.canvas;if(s){var l=s.getViewRange();this.set("isInView",Hr(r,l))}}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(),ui(t,this),this._applyClip(t,this.getClip()),fi(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}(L.b),bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return r},e.prototype.getGroupBase=function(){return mi},e.prototype.onCanvasChange=function(t){vi(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(L.h)(t)(this),r=e/2,i=n.x-r,o=n.y-r,a=n.x+n.width+r,c=n.y+n.height+r;return{x:i,minX:i,y:o,minY:o,width:n.width+e,height:n.height+e,maxX:a,maxY:c}},e.prototype.isFill=function(){return!!this.attrs.fill||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs.stroke},e.prototype._applyClip=function(t,e){e&&(t.save(),ui(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);if(!Hr(e,this.getCanvasBBox()))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),ui(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Hr(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,r=e.opacity,i=e.strokeOpacity,o=e.fillOpacity;this.isFill()&&(Object(b.K)(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=r)),this.isStroke()&&n>0&&(Object(b.K)(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}(L.c),xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,c=o.y,s=o.r,l=i/2,u=zr(a,c,t,e);return r&&n?u<=s+l:r?u<=s:!!n&&(u>=s-l&&u<=s+l)},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}(bi);function Oi(t,e,n,r){return t/(n*n)+e/(r*r)}var ji=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=i/2,c=o.x,s=o.y,l=o.rx,u=o.ry,f=(t-c)*(t-c),h=(e-s)*(e-s);return r&&n?Oi(f,h,l+a,u+a)<=1:r?Oi(f,h,l,u)<=1:!!n&&(Oi(f,h,l-a,u-a)>=1&&Oi(f,h,l+a,u+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,r,i,o,0,0,2*Math.PI,!1);else{var a=i>o?i:o,c=i>o?1:i/o,s=i>o?o/i:1;t.save(),t.translate(n,r),t.scale(c,s),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(bi);function wi(t){return t instanceof HTMLElement&&Object(b.Q)(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var Ci=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},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(Object(b.Q)(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)):wi(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,o=e.height,a=e.sx,c=e.sy,s=e.swidth,l=e.sheight,u=e.img;(u instanceof Image||wi(u))&&(Object(b.K)(a)||Object(b.K)(c)||Object(b.K)(s)||Object(b.K)(l)?t.drawImage(u,n,r,i,o):t.drawImage(u,a,c,s,l,n,r,i,o))},e}(bi),Si=n(1005);function Ei(t,e,n,r,i,o,a){var c=Math.min(t,n),s=Math.max(t,n),l=Math.min(e,r),u=Math.max(e,r),f=i/2;return o>=c-f&&o<=s+f&&a>=l-f&&a<=u+f&&Si.c.pointToLine(t,e,n,r,o,a)<=i/2}var Mi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},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,o=t.startArrow,a=t.endArrow;o&&ci(this,t,r,i,e,n),a&&si(this,t,e,n,r,i)},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){if(!n||!i)return!1;var o=this.attr();return Ei(o.x1,o.y1,o.x2,o.y2,i,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a=e.startArrow,c=e.endArrow,s={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(s=ai(n,r,i,o,e.startArrow.d)),c&&c.d&&(l=ai(n,r,i,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+s.dx,r+s.dy),t.lineTo(i-l.dx,o-l.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 Si.c.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 Si.c.pointAt(n,r,i,o,t)},e}(bi),ki={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"]]}},Pi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(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 Object(b.K)(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,r=this.attr(),i=r.x,o=r.y,a=r.symbol||"circle",c=this._getR(r);if(Object(b.I)(a))n=(t=a)(i,o,c),n=Object(ie.d)(n);else{if(!(t=e.Symbols[a]))return console.warn(a+" marker is not supported."),null;n=t(i,o,c)}return n},e.prototype.createPath=function(t){gi(this,t,{path:this._getPath()},this.get("paramsCache"))},e.Symbols=ki,e}(bi);function Ai(t,e,n){var r=Object(L.i)();return t.createPath(r),r.isPointInPath(e,n)}function Ii(t){return Math.abs(t)<1e-6?0:t<0?-1:1}function Fi(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function Ti(t,e,n){var r=!1,i=t.length;if(i<=2)return!1;for(var o=0;o<i;o++){var a=t[o],c=t[(o+1)%i];if(Fi(a,c,[e,n]))return!0;Ii(a[1]-n)>0!==Ii(c[1]-n)>0&&Ii(e-(n-a[1])*(a[0]-c[0])/(a[1]-c[1])-a[0])<0&&(r=!r)}return r}var Li=n(2186);function Ni(t,e,n,r,i,o,a,c){var s=(Math.atan2(c-e,a-t)+2*Math.PI)%(2*Math.PI);if(s<r||s>i)return!1;var l={x:t+n*Math.cos(s),y:e+n*Math.sin(s)};return zr(l.x,l.y,a,c)<=o/2}var Di=Q.a.transform;var Bi=_r({hasArc:function(t){for(var e=!1,n=t.length,r=0;r<n;r++){var i=t[r][0];if("C"===i||"A"===i||"Q"===i){e=!0;break}}return e},extractPolygons:function(t){for(var e=t.length,n=[],r=[],i=[],o=0;o<e;o++){var a=t[o],c=a[0];"M"===c?(i.length&&(r.push(i),i=[]),i.push([a[1],a[2]])):"Z"===c?i.length&&(n.push(i),i=[]):i.push([a[1],a[2]])}return i.length>0&&r.push(i),{polygons:n,polylines:r}},isPointInStroke:function(t,e,n,r,i){for(var o=!1,a=e/2,c=0;c<t.length;c++){var s=t[c],l=s.currentPoint,u=s.params,f=s.prePoint,h=s.box;if(!h||Vr(h.x-a,h.y-a,h.width+e,h.height+e,n,r)){switch(s.command){case"L":case"Z":o=Ei(f[0],f[1],l[0],l[1],e,n,r);break;case"Q":o=Si.e.pointDistance(f[0],f[1],u[1],u[2],u[3],u[4],n,r)<=e/2;break;case"C":o=Si.b.pointDistance(f[0],f[1],u[1],u[2],u[3],u[4],u[5],u[6],n,r,i)<=e/2;break;case"A":var d=s.arcParams,p=d.cx,g=d.cy,v=d.rx,y=d.ry,m=d.startAngle,b=d.endAngle,x=d.xRotation,O=[n,r,1],j=v>y?v:y,w=Di(null,[["t",-p,-g],["r",-x],["s",1/(v>y?1:v/y),1/(v>y?y/v:1)]]);Li.transformMat3(O,O,w),o=Ni(0,0,j,m,b,e,O[0],O[1])}if(o)break}}return o}},L.f);function Ri(t,e,n){for(var r=!1,i=0;i<t.length;i++){if(r=Ti(t[i],e,n))break}return r}var _i=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,r){t.prototype.onAttrChange.call(this,e,n,r),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Object(ie.d)(t);var e=Bi.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Object(ie.e)(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t,e=this.attr(),n=e.startArrow,r=e.endArrow;n&&ci(this,e,(t=this.getStartTangent())[0][0],t[0][1],t[1][0],t[1][1]);r&&si(this,e,(t=this.getEndTangent())[0][0],t[0][1],t[1][0],t[1][1])},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.getSegments(),a=this.get("hasArc"),c=!1;if(n){var s=this.getTotalLength();c=Bi.isPointInStroke(o,i,t,e,s)}if(!c&&r)if(a)c=Ai(this,t,e);else{var l=this.attr("path"),u=Bi.extractPolygons(l);c=Ri(u.polygons,t,e)||Ri(u.polylines,t,e)}return c},e.prototype.createPath=function(t){gi(this,t,this.attr(),this.get("paramsCache"))},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(b.K)(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,r=this.get("tCache");r||(this._calculateCurve(),this._setTcache(),r=this.get("tCache"));var i=this.get("curve");if(!r||0===r.length)return i?{x:i[0][1],y:i[0][2]}:null;Object(b.j)(r,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)}));var o=i[n];if(Object(b.K)(o)||Object(b.K)(n))return null;var a=o.length,c=i[n+1];return Si.b.pointAt(o[a-2],o[a-1],c[1],c[2],c[3],c[4],c[5],c[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",Bi.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,r,i=0,o=0,a=[],c=this.get("curve");c&&(Object(b.j)(c,(function(t,e){n=c[e+1],r=t.length,n&&(i+=Si.b.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?(Object(b.j)(c,(function(s,l){n=c[l+1],r=s.length,n&&((t=[])[0]=o/i,e=Si.b.length(s[r-2],s[r-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/i,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,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,o=e[n-1].endTangent;t=[],o?(t.push([i[0]-o[0],i[1]-o[1]]),t.push([i[0],i[1]])):(t.push([r[0],r[1]]),t.push([i[0],i[1]]))}return t},e}(bi);function zi(t,e,n,r,i){var o=t.length;if(o<2)return!1;for(var a=0;a<o-1;a++){if(Ei(t[a][0],t[a][1],t[a+1][0],t[a+1][1],e,n,r))return!0}if(i){var c=t[0],s=t[o-1];if(Ei(c[0],c[1],s[0],s[1],e,n,r))return!0}return!1}var Vi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr().points,a=!1;return n&&(a=zi(o,i,t,e,!0)),!a&&r&&(a=Ti(o,t,e)),a},e.prototype.createPath=function(t){var e=this.attr().points;if(!(e.length<2)){t.beginPath();for(var n=0;n<e.length;n++){var r=e[n];0===n?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(bi),Hi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{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(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,r=e.startArrow,i=e.endArrow,o=n.length,a=n[0][0],c=n[0][1],s=n[o-1][0],l=n[o-1][1];r&&ci(this,t,n[1][0],n[1][1],a,c),i&&si(this,t,n[o-2][0],n[o-2][1],s,l)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){return!(!n||!i)&&zi(this.attr().points,i,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,r=e.startArrow,i=e.endArrow,o=n.length;if(!(n.length<2)){var a,c=n[0][0],s=n[0][1],l=n[o-1][0],u=n[o-1][1];if(r&&r.d)c+=(a=ai(c,s,n[1][0],n[1][1],r.d)).dx,s+=a.dy;if(i&&i.d)l-=(a=ai(n[o-2][0],n[o-2][1],l,u,i.d)).dx,u-=a.dy;t.beginPath(),t.moveTo(c,s);for(var f=0;f<o-1;f++){var h=n[f];t.lineTo(h[0],h[1])}t.lineTo(l,u)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(b.K)(e)?(this.set("totalLength",Si.d.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")),Object(b.j)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),Si.c.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,o=[];Object(b.j)(t,(function(a,c){t[c+1]&&((n=[])[0]=i/e,r=Si.c.length(a[0],a[1],t[c+1][0],t[c+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(bi);var Ki=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,r,i){var o=this.attr(),a=o.x,c=o.y,s=o.width,l=o.height,u=o.radius;if(u){var f=!1;return n&&(f=function(t,e,n,r,i,o,a,c){return Ei(t+i,e,t+n-i,e,o,a,c)||Ei(t+n,e+i,t+n,e+r-i,o,a,c)||Ei(t+n-i,e+r,t+i,e+r,o,a,c)||Ei(t,e+r-i,t,e+i,o,a,c)||Ni(t+n-i,e+i,i,1.5*Math.PI,2*Math.PI,o,a,c)||Ni(t+n-i,e+r-i,i,0,.5*Math.PI,o,a,c)||Ni(t+i,e+r-i,i,.5*Math.PI,Math.PI,o,a,c)||Ni(t+i,e+i,i,Math.PI,1.5*Math.PI,o,a,c)}(a,c,s,l,u,i,t,e)),!f&&r&&(f=Ai(this,t,e)),f}var h=i/2;return r&&n?Vr(a-h,c-h,s+h,l+h,t,e):r?Vr(a,c,s,l,t,e):n?function(t,e,n,r,i,o,a){var c=i/2;return Vr(t-c,e-c,n,i,o,a)||Vr(t+n-c,e-c,i,r,o,a)||Vr(t+c,e+r-c,n,i,o,a)||Vr(t-c,e+c,i,r,o,a)}(a,c,s,l,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,a=e.radius;if(t.beginPath(),0===a)t.rect(n,r,i,o);else{var c=function(t){var e=0,n=0,r=0,i=0;return Object(b.C)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,[e,n,r,i]}(a),s=c[0],l=c[1],u=c[2],f=c[3];t.moveTo(n+s,r),t.lineTo(n+i-l,r),0!==l&&t.arc(n+i-l,r+l,l,-Math.PI/2,0),t.lineTo(n+i,r+o-u),0!==u&&t.arc(n+i-u,r+o-u,u,0,Math.PI/2),t.lineTo(n+f,r+o),0!==f&&t.arc(n+f,r+o-f,f,Math.PI/2,Math.PI),t.lineTo(n,r+s),0!==s&&t.arc(n+s,r+s,s,Math.PI,1.5*Math.PI),t.closePath()}},e}(bi),Yi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return _r(_r({},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=Object(L.g)(t)},e.prototype._setText=function(t){var e=null;Object(b.Q)(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,o=i.textBaseline,a=i.x,c=i.y,s=1*i.fontSize,l=this._getSpaceingY(),u=Object(L.j)(i.text,i.fontSize,i.lineHeight);Object(b.j)(e,(function(e,i){r=c+i*(l+s)-u+s,"middle"===o&&(r+=u-s-(u-s)/2),"top"===o&&(r+=u-s),Object(b.K)(e)||(n?t.fillText(e,a,r):t.strokeText(e,a,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 a=n.text;Object(b.K)(a)||(e?t.fillText(a,r,i):t.strokeText(a,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&&(Object(b.K)(i)||1===i||(t.globalAlpha=r),this.stroke(t)),this.isFill()&&(Object(b.K)(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}(bi);function Gi(t,e,n){var r=t.getTotalMatrix();if(r){var i=function(t,e){if(e){var n=Object(L.k)(e);return Object(L.m)(n,t)}return t}([e,n,1],r);return[i[0],i[1]]}return[e,n]}function Wi(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(L.l)(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var r=Gi(t,e,n),i=r[0],o=r[1];if(t.isClipped(i,o))return!1}var a=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=a.minX&&e<=a.maxX&&n>=a.minY&&n<=a.maxY}var Xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Rr(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 r},e.prototype.getGroupBase=function(){return mi},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||(window?window.devicePixelRatio:1);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"),o=this.getPixelRatio();i.width=o*e,i.height=o*n,o>1&&r.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){return this.get("quickHit")?function t(e,n,r){if(!Wi(e,n,r))return null;for(var i=null,o=e.getChildren(),a=o.length-1;a>=0;a--){var c=o[a];if(c.isGroup())i=t(c,n,r);else if(Wi(c,n,r)){var s=c,l=Gi(c,n,r),u=l[0],f=l[1];s.isInShape(u,f)&&(i=c)}if(i)break}return i}(this,e,n):t.prototype.getShape.call(this,e,n,null)},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();e.length&&e[0]===this?t=n:(t=function(t){if(!t.length)return null;var e=[],n=[],r=[],i=[];return Object(b.j)(t,(function(t){var o=yi(t);o&&(e.push(o.minX),n.push(o.minY),r.push(o.maxX),i.push(o.maxY))})),{minX:Object(b.bb)(e),minY:Object(b.bb)(n),maxX:Object(b.Y)(r),maxY:Object(b.Y)(i)}}(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=function(t,e){return t&&e&&Hr(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}(t,n)));return t},e.prototype.refreshElement=function(t){this.get("refreshElements").push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(b.d)(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),ui(t,this),fi(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(),ui(t,this),hi(this,n,r),fi(t,n,r),t.restore()):e.length&&function t(e){for(var n=0;n<e.length;n++){var r=e[n];r.cfg.hasChanged=!1,r.isGroup()&&!r.destroyed&&t(r.cfg.children)}}(e),Object(b.j)(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=Object(b.kb)((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}(L.a),qi="0.5.12",Ui=function(t,e){return(Ui=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function $i(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}Ui(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var Zi=function(){return(Zi=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.create;Object.create;var Qi={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},Ji={opacity:"opacity",fillStyle:"fill",fill:"fill",fillOpacity:"fill-opacity",strokeStyle:"stroke",strokeOpacity:"stroke-opacity",stroke:"stroke",x:"x",y:"y",r:"r",rx:"rx",ry:"ry",width:"width",height:"height",x1:"x1",x2:"x2",y1:"y1",y2:"y2",lineCap:"stroke-linecap",lineJoin:"stroke-linejoin",lineWidth:"stroke-width",lineDash:"stroke-dasharray",lineDashOffset:"stroke-dashoffset",miterLimit:"stroke-miterlimit",font:"font",fontSize:"font-size",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",fontFamily:"font-family",startArrow:"marker-start",endArrow:"marker-end",path:"d",class:"class",id:"id",style:"style",preserveAspectRatio:"preserveAspectRatio"};function to(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function eo(t){var e=Qi[t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var r=to(e);if(t.get("id")&&(r.id=t.get("id")),t.set("el",r),t.set("attrs",{}),n){var i=n.get("el");i||(i=n.createDom(),n.set("el",i)),i.appendChild(r)}return r}function no(t,e){var n=t.get("el"),r=Object(b.rb)(n.children).sort(e),i=document.createDocumentFragment();r.forEach((function(t){i.appendChild(t)})),n.appendChild(i)}function ro(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)}}function io(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){eo(n),n.createPath(e);var i=e.addClip(n);r.setAttribute("clip-path","url(#"+i+")")}}else r.removeAttribute("clip-path")}function oo(t,e){e.forEach((function(e){e.draw(t)}))}function ao(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var r=n.get("context"),i=t.getParent(),o=i?i.getChildren():[n],a=t.get("el");if("remove"===e)if(t.get("isClipShape")){var c=a&&a.parentNode,s=c&&c.parentNode;c&&s&&s.removeChild(c)}else a&&a.parentNode&&a.parentNode.removeChild(a);else if("show"===e)a.setAttribute("visibility","visible");else if("hide"===e)a.setAttribute("visibility","hidden");else if("zIndex"===e)!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],o=r.indexOf(t);if(i){if(o>e)n.insertBefore(t,i);else if(o<e){var a=r[e+1];a?n.insertBefore(t,a):n.appendChild(t)}}else n.appendChild(t)}(a,o.indexOf(t));else if("sort"===e){var l=t.get("children");l&&l.length&&no(t,(function(t,e){return l.indexOf(t)-l.indexOf(e)?1:0}))}else"clear"===e?a&&(a.innerHTML=""):"matrix"===e?ro(t):"clip"===e?io(t,r):"attr"===e||"add"===e&&t.draw(r)}}var co=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return $i(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=to("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){ao(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(),io(this,t),this.createPath(t),e.length&&oo(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(b.j)(e||n,(function(t,e){Ji[e]&&r.setAttribute(Ji[e],t)})),ro(this)},e}(L.b),so=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},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 o},e.prototype.getGroupBase=function(){return co},e.prototype.onCanvasChange=function(t){ao(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(L.h)(this.get("type"));n&&(e=n(this))}if(e){var r=e.x,i=e.y,o=e.width,a=e.height,c=this.getHitLineWidth(),s=c/2,l=r-s,u=i-s;return{x:l,y:u,minX:l,minY:u,maxX:r+o+s,maxY:i+a+s,width:o+c,height:a+c}}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||eo(this),io(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,o=n.stroke,a=n.strokeStyle,c=n.fillOpacity,s=n.strokeOpacity,l=n.lineWidth,u=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),c&&u.setAttribute(Ji.fillOpacity,c)),this.canStroke&&l>0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),s&&u.setAttribute(Ji.strokeOpacity,s),l&&u.setAttribute(Ji.lineWidth,l))},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(Ji[e],"url(#"+i+")");else if(/^[p,P]{1}[\s]*\(/.test(n)){var i;(i=t.find("pattern",n))||(i=t.addPattern(n)),r.setAttribute(Ji[e],"url(#"+i+")")}else r.setAttribute(Ji[e],n);else r.setAttribute(Ji[e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),r=e||n,i=r.shadowOffsetX,o=r.shadowOffsetY,a=r.shadowBlur,c=r.shadowColor;(i||o||a||c)&&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 o=e.find("filter",i);o||(o=e.addShadow(i)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}(this,t)},e.prototype.transform=function(t){var e=this.attr();(t||e).matrix&&ro(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,o=e+r.top,a=document.elementFromPoint(i,o);return!(!a||!a.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(L.c),lo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(b.j)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):Ji[e]&&r.setAttribute(Ji[e],t)}))},e}(so),uo=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 $i(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");if(Object(b.j)(e||n,(function(t,e){Ji[e]&&r.setAttribute(Ji[e],t)})),"function"===typeof n.html){var i=n.html.call(this,n);if(i instanceof Element||i instanceof HTMLDocument){for(var o=r.childNodes,a=o.length-1;a>=0;a--)r.removeChild(o[a]);r.appendChild(i)}else r.innerHTML=i}else r.innerHTML=n.html},e}(so),fo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(b.j)(e||n,(function(t,e){"x"===e||"y"===e?r.setAttribute("c"+e,t):Ji[e]&&r.setAttribute(Ji[e],t)}))},e}(so),ho=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},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");Object(b.j)(e||r,(function(t,e){"img"===e?n._setImage(r.img):Ji[e]&&i.setAttribute(Ji[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(Object(b.Q)(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&&Object(b.Q)(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}(so),po=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},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");Object(b.j)(e||n,(function(e,i){if("startArrow"===i||"endArrow"===i)if(e){var o=Object(b.O)(e)?t.addArrow(n,Ji[i]):t.getDefaultArrow(n,Ji[i]);r.setAttribute(Ji[i],"url(#"+o+")")}else r.removeAttribute(Ji[i]);else Ji[i]&&r.setAttribute(Ji[i],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,r=t.x2,i=t.y2;return Si.c.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 Si.c.pointAt(n,r,i,o,t)},e}(so),go={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"]]}},vo={get:function(t){return go[t]},register:function(t,e){go[t]=e},remove:function(t){delete go[t]},getAll:function(){return go}},yo=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 $i(e,t),e.prototype.createPath=function(t){this.get("el").setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(b.C)(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=Object(b.I)(o)?o:vo.get(o))?t(n,r,i):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=vo,e}(so),mo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,r=this.attr(),i=this.get("el");Object(b.j)(e||r,(function(e,o){if("path"===o&&Object(b.C)(e))i.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(b.O)(e)?t.addArrow(r,Ji[o]):t.getDefaultArrow(r,Ji[o]);i.setAttribute(Ji[o],"url(#"+a+")")}else i.removeAttribute(Ji[o]);else Ji[o]&&i.setAttribute(Ji[o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var r=e?e.getPointAtLength(t*n):null;return r?{x:r.x,y:r.y}:null},e}(so),bo=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 $i(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),r=this.get("el");Object(b.j)(e||n,(function(t,e){"points"===e&&Object(b.C)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Ji[e]&&r.setAttribute(Ji[e],t)}))},e}(so),xo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},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");Object(b.j)(e||n,(function(t,e){"points"===e&&Object(b.C)(t)&&t.length>=2?r.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):Ji[e]&&r.setAttribute(Ji[e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(b.K)(e)?(this.set("totalLength",Si.d.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")),Object(b.j)(i,(function(r,i){t>=r[0]&&t<=r[1]&&(e=(t-r[0])/(r[1]-r[0]),n=i)})),Si.c.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,o=[];Object(b.j)(t,(function(a,c){t[c+1]&&((n=[])[0]=i/e,r=Si.c.length(a[0],a[1],t[c+1][0],t[c+1][1]),i+=r,n[1]=i/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(so);var Oo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},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,a=["x","y","width","height","radius"];Object(b.j)(e||r,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&Ji[e]&&i.setAttribute(Ji[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 a=function(t){var e=0,n=0,r=0,i=0;return Object(b.C)(t)?1===t.length?e=n=r=i=t[0]:2===t.length?(e=r=t[0],n=i=t[1]):3===t.length?(e=t[0],n=i=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],i=t[3]):e=n=r=i=t,{r1:e,r2:n,r3:r,r4:i}}(o);return Object(b.C)(o)?1===o.length?a.r1=a.r2=a.r3=a.r4=o[0]:2===o.length?(a.r1=a.r3=o[0],a.r2=a.r4=o[1]):3===o.length?(a.r1=o[0],a.r2=a.r4=o[1],a.r3=o[2]):(a.r1=o[0],a.r2=o[1],a.r3=o[2],a.r4=o[3]):a.r1=a.r2=a.r3=a.r4=o,[["M "+(e+a.r1)+","+n],["l "+(r-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(i-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-r)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-i)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]].join(" ")},e}(so),jo=n(2250),wo={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Co={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},So={left:"left",start:"left",center:"middle",right:"end",end:"end"},Eo=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 $i(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Zi(Zi({},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(),Object(b.j)(e||r,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?ro(n):Ji[e]&&i.setAttribute(Ji[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=Object(jo.a)();i&&"firefox"===i.name?t.setAttribute("dominant-baseline",Co[n]||"alphabetic"):t.setAttribute("alignment-baseline",wo[n]||"baseline"),t.setAttribute("text-anchor",So[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 a=t.split("\n"),c=a.length-1,s="";Object(b.j)(a,(function(t,e){0===e?"alphabetic"===o?s+='<tspan x="'+r+'" dy="'+-c+'em">'+t+"</tspan>":"top"===o?s+='<tspan x="'+r+'" dy="0.9em">'+t+"</tspan>":"middle"===o?s+='<tspan x="'+r+'" dy="'+-(c-1)/2+'em">'+t+"</tspan>":"bottom"===o?s+='<tspan x="'+r+'" dy="-'+(c+.3)+'em">'+t+"</tspan>":"hanging"===o&&(s+='<tspan x="'+r+'" dy="'+(-(c-1)-.3)+'em">'+t+"</tspan>"):s+='<tspan x="'+r+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=s}else e.innerHTML=t;else e.innerHTML=""},e}(so),Mo=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,ko=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,Po=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function Ao(t){var e=t.match(Po);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(b.j)(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}var Io=function(){function t(t){this.cfg={};var e=null,n=Object(b.vb)("gradient_");return"l"===t.toLowerCase()[0]?function(t,e){var n,r,i=Mo.exec(t),o=Object(b.eb)(Object(b.sb)(parseFloat(i[1])),2*Math.PI),a=i[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},r={x:1,y:1}):.5*Math.PI<=o&&o<Math.PI?(n={x:1,y:0},r={x:0,y:1}):Math.PI<=o&&o<1.5*Math.PI?(n={x:1,y:1},r={x:0,y:0}):(n={x:0,y:1},r={x:1,y:0});var c=Math.tan(o),s=c*c,l=(r.x-n.x+c*(r.y-n.y))/(s+1)+n.x,u=c*(r.x-n.x+c*(r.y-n.y))/(s+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",l),e.setAttribute("y2",u),e.innerHTML=Ao(a)}(t,e=to("linearGradient")):function(t,e){var n=ko.exec(t),r=parseFloat(n[1]),i=parseFloat(n[2]),o=parseFloat(n[3]),a=n[4];e.setAttribute("cx",r),e.setAttribute("cy",i),e.setAttribute("r",o),e.innerHTML=Ao(a)}(t,e=to("radialGradient")),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),Fo={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},To={x:"-40%",y:"-40%",width:"200%",height:"200%"},Lo=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=to("filter");return Object(b.j)(To,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(b.vb)("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,r=this.cfg;return Object(b.j)(Object.keys(r),(function(t){if(r[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[Fo[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n dx="'+(t.dx||0)+'"\n dy="'+(t.dy||0)+'"\n stdDeviation="'+(t.blur?t.blur/10:0)+'"\n flood-color="'+(t.color?t.color:"#000")+'"\n flood-opacity="'+(t.opacity?t.opacity:1)+'"\n />';e.innerHTML=n},t}(),No=function(){function t(t,e){this.cfg={};var n=to("marker"),r=Object(b.vb)("marker_");n.setAttribute("id",r);var i=to("path");i.setAttribute("stroke",t.stroke||"none"),i.setAttribute("fill",t.fill||"none"),n.appendChild(i),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=i,this.id=r;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,i):(this.cfg=o,this._setMarker(t.lineWidth,i)),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,r=this.cfg.path,i=this.cfg.d;Object(b.C)(r)&&(r=r.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",r),n.appendChild(e),i&&n.setAttribute("refX",""+i/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),Do=function(){function t(t){this.type="clip",this.cfg={};var e=to("clipPath");this.el=e,this.id=Object(b.vb)("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}(),Bo=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,Ro=function(){function t(t){this.cfg={};var e=to("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=to("image");e.appendChild(n);var r=Object(b.vb)("pattern_");e.id=r,this.el=e,this.id=r,this.cfg=t;var i=Bo.exec(t)[2];n.setAttribute("href",i);var o=new Image;function a(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return i.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=i,o.complete?a():(o.onload=a,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),_o=function(){function t(t){var e=to("defs"),n=Object(b.vb)("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.length;i++)if(n[i].match(t,e)){r=n[i].id;break}return r},t.prototype.findById=function(t){for(var e=this.children,n=null,r=0;r<e.length;r++)if(e[r].id===t){n=e[r];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var r=new No(t,e);return this.defaultArrow[n]=r,this.el.appendChild(r.el),this.add(r),r.id},t.prototype.addGradient=function(t){var e=new Io(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new No(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new Lo(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new Ro(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new Do(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),zo=function(t){function e(e){return t.call(this,Zi(Zi({},e),{autoDraw:!0,renderer:"svg"}))||this}return $i(e,t),e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return co},e.prototype.getShape=function(t,e,n){var r=n.target||n.srcElement;if(!Qi[r.tagName]){for(var i=r.parentNode;i&&!Qi[i.tagName];)i=i.parentNode;r=i}return this.find((function(t){return t.get("el")===r}))},e.prototype.createDom=function(){var t=to("svg"),e=new _o(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&&no(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?ro(this):"clip"===t?io(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();io(this,t),e.length&&oo(t,e)},e}(L.a),Vo="0.5.6",Ho=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var r=e.connectNulls,i=void 0!==r&&r,o=e.showSinglePoint,a=void 0===o||o;return n.connectNulls=i,n.showSinglePoint=a,n}return s(e,t),e.prototype.updateElements=function(t,e){var n,r,i,o,a,c;void 0===e&&(e=!1);for(var s=new Map,l=new Map,u=[],f=0,h=0;h<t.length;h++){var p=t[h],g=this.getElementId(p);u.push(g),s.set(g,p),l.set(g,f),f++}this.elements=new Array(f);var v=Xn(this.lastElementsMap,u),y=v.added,m=v.updated,b=v.removed;try{for(var x=d(y),O=x.next();!O.done;O=x.next()){g=O.value,p=s.get(g);var j=this.getShapeFactory(),w=this.getShapeInfo(p);h=l.get(g);(E=new Ln({shapeFactory:j,container:this.container,offscreenGroup:this.getOffscreenGroup(),elementIndex:h})).geometry=this,E.animate=this.animateOption,E.draw(w,e),this.elementsMap[g]=E,this.elements[h]=E}}catch(A){n={error:A}}finally{try{O&&!O.done&&(r=x.return)&&r.call(x)}finally{if(n)throw n.error}}try{for(var C=d(m),S=C.next();!S.done;S=C.next()){g=S.value,p=s.get(g);var E=this.lastElementsMap[g],M=(h=l.get(g),w=this.getShapeInfo(p),E.getModel());(this.isCoordinateChanged||Gn(M,w))&&(E.animate=this.animateOption,E.update(w)),this.elementsMap[g]=E,this.elements[h]=E}}catch(I){i={error:I}}finally{try{S&&!S.done&&(o=C.return)&&o.call(C)}finally{if(i)throw i.error}}try{for(var k=d(b),P=k.next();!P.done;P=k.next()){g=P.value;(E=this.lastElementsMap[g]).animate=this.animateOption,E.destroy()}}catch(F){a={error:F}}finally{try{P&&!P.done&&(c=k.return)&&c.call(k)}finally{if(a)throw a.error}}},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push({x:o.x,y:o.y}),n.push(o._origin)}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),r=n.points,i=n.data;return e.mappingData=t,e.data=i,e.isStack=!!this.getAdjust("stack"),e.points=r,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(qn);function Ko(t,e,n,r,i){var o=[];if(t.length){for(var a=[],c=[],s=0,l=t.length;s<l;s++){var u=t[s];a.push(u[1]),c.push(u[0])}c=c.reverse(),Object(b.j)([a,c],(function(t,s){var l=[],u=r.parsePoints(t),f=u[0];1===a.length&&1===c.length?l=0===s?[["M",f.x-.5,f.y],["L",f.x+.5,f.y]]:[["L",f.x+.5,f.y],["L",f.x-.5,f.y]]:(e&&u.push({x:f.x,y:f.y}),l=n?ne(u,!1,i):ee(u,!1),s>0&&(l[0][0]="L")),o=o.concat(l)})),o.push(["Z"])}return o}function Yo(t,e,n,r,i){for(var o=vr(t,e,!e,"lineWidth"),a=t.connectNulls,c=t.isInCircle,s=dr(t.points,a,t.showSinglePoint),l=[],u=0,f=s.length;u<f;u++){var h=s[u];l=l.concat(Ko(h,c,n,r,i))}return o.path=l,o}function Go(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Hn("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0;return(Object(b.C)(t.y)?t.y:[n,t.y]).map((function(t){return{x:e,y:t}}))}});Kn("area","area",{draw:function(t,e){var n=Yo(t,!1,!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,fill:t.color,fillOpacity:1}}}});var Wo=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,o=e.sortable,a=void 0!==o&&o,c=e.showSinglePoint,s=void 0!==c&&c;return n.startOnZero=i,n.sortable=a,n.showSinglePoint=s,n}return s(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],r=0,i=t.length;r<i;r++){var o=t[r];e.push(o.points),n.push(o._origin)}return{points:e,data:n}},e.prototype.getYMinValue=function(){return this.startOnZero?t.prototype.getYMinValue.call(this):this.getYScale().min},e}(Ho);Hn("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return mr(t)}});Kn("edge","line",{draw:function(t,e){var n=vr(t,!0,!1,"lineWidth"),r=ee(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:l(l({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Xo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return s(e,t),e}(qn),qo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return s(e,t),e.prototype.updateElements=function(t,e){void 0===e&&(e=!1);for(var n=0;n<t.length;n++){var r=t[n],i=this.prepareRange(r),o=this.prepareSize(),a=Object(b.s)(this.styleOption,["cfg","shadowBlur"]);Object(b.M)(a)||(a=o/2),this.prepareGreyScaleBlurredCircle(o,a),this.drawWithRange(r,i,o,a)}},e.prototype.color=function(t,e){return this.createAttrOption("color",t,"function"!==typeof e?e:""),this},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color").getFields()[0],n=1/0,r=-1/0;return t.forEach((function(t){var i=t._origin[e];i>r&&(r=i),i<n&&(n=i)})),n===r&&(n=r-1),[n,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(b.M)(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),r=t+e,i=n.getContext("2d");n.width=n.height=2*r,i.clearRect(0,0,n.width,n.height),i.shadowOffsetX=i.shadowOffsetY=2*r,i.shadowBlur=e,i.shadowColor="black",i.beginPath(),i.arc(-r,-r,t,0,2*Math.PI,!0),i.closePath(),i.fill()},e.prototype.drawWithRange=function(t,e,n,r){var i,o,a=this.coordinate,c=a.start,s=a.end,l=this.coordinate.getWidth(),u=this.coordinate.getHeight(),f=this.getAttribute("color").getFields()[0];this.clearShadowCanvasCtx();var h=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t._origin[f]<=e[1]&&t._origin[f]>=e[0]})));var p=this.scales[f];try{for(var g=d(t),v=g.next();!v.done;v=g.next()){var y=v.value,m=this.getDrawCfg(y),b=m.x,x=m.y,O=p.scale(y._origin[f]);this.drawGrayScaleBlurredCircle(b-c.x,x-s.y,n+r,O,h)}}catch(C){i={error:C}}finally{try{v&&!v.done&&(o=g.return)&&o.call(g)}finally{if(i)throw i.error}}var j=h.getImageData(0,0,l,u);this.clearShadowCanvasCtx(),this.colorize(j),h.putImageData(j,0,0);var w=this.getImageShape();w.attr("x",c.x),w.attr("y",s.y),w.attr("width",l),w.attr("height",u),w.attr("img",h.canvas),w.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,r,i){var o=this.getGrayScaleBlurredCanvas();i.globalAlpha=r,i.drawImage(o,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,r=this.paletteCache,i=3;i<n.length;i+=4){var o=n[i];if(Object(b.M)(o)){var a=r[o]?r[o]:_.a.rgb2arr(e.gradient(o/256));n[i-3]=a[0],n[i-2]=a[1],n[i-1]=a[2],n[i]=o}}},e.prototype.getImageShape=function(){var t=this.imageShape;return t||(t=this.container.addShape({type:"image",attrs:{}}),this.imageShape=t,t)},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=t.map((function(t){return t._origin}));return l(l({},e),{mappingData:t,data:n})},e}(qn);function Uo(t){var e,n,r,i,o,a,c=t.x,s=t.y,l=t.y0,u=t.size;Object(b.C)(s)?(r=(e=p(s,2))[0],i=e[1]):(r=l,i=s),Object(b.C)(c)?(o=(n=p(c,2))[0],a=n[1]):(o=c-u/2,a=c+u/2);var f=[{x:o,y:r},{x:o,y:i}];return f.push({x:a,y:i},{x:a,y:r}),f}function $o(t,e){void 0===e&&(e=!0);var n=[],r=t[0];n.push(["M",r.x,r.y]);for(var i=1,o=t.length;i<o;i++)n.push(["L",t[i].x,t[i].y]);return e&&(n.push(["L",r.x,r.y]),n.push(["z"])),n}function Zo(t,e){var n=0,r=0,i=0,o=0;return Object(b.C)(t)?1===t.length?n=r=i=o=t[0]:2===t.length?(n=i=t[0],r=o=t[1]):3===t.length?(n=t[0],r=o=t[1],i=t[2]):(n=t[0],r=t[1],i=t[2],o=t[3]):n=r=i=o=t,n+r>e&&(r=e-(n=n?e/(1+r/n):0)),i+o>e&&(o=e-(i=i?e/(1+o/i):0)),[n||0,r||0,i||0,o||0]}function Qo(t,e,n){var r=[];if(n.isRect){var i=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Object(b.s)(t,["background","style","radius"]);if(a){var c=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,s=n.isTransposed?n.getWidth():n.getHeight(),l=p(Zo(a,Math.min(c,s)),4),u=l[0],f=l[1],h=l[2],d=l[3],g=n.isTransposed&&n.isReflect("y"),v=g?0:1,y=function(t){return g?-t:t};r.push(["M",i.x,o.y+y(u)]),0!==u&&r.push(["A",u,u,0,0,v,i.x+u,o.y]),r.push(["L",o.x-f,o.y]),0!==f&&r.push(["A",f,f,0,0,v,o.x,o.y+y(f)]),r.push(["L",o.x,i.y-y(h)]),0!==h&&r.push(["A",h,h,0,0,v,o.x-h,i.y]),r.push(["L",i.x+d,i.y]),0!==d&&r.push(["A",d,d,0,0,v,i.x,i.y-y(d)])}else r.push(["M",i.x,i.y]),r.push(["L",o.x,i.y]),r.push(["L",o.x,o.y]),r.push(["L",i.x,o.y]),r.push(["L",i.x,i.y]);r.push(["z"])}if(n.isPolar){var m=n.getCenter(),x=mt(t,n),O=x.startAngle,j=x.endAngle;if("theta"===n.type||n.isTransposed){var w=function(t){return Math.pow(t,2)};u=Math.sqrt(w(m.x-e[0].x)+w(m.y-e[0].y)),f=Math.sqrt(w(m.x-e[2].x)+w(m.y-e[2].y));r=vt(m.x,m.y,u,n.startAngle,n.endAngle,f)}else r=vt(m.x,m.y,n.getRadius(),O,j)}return r}function Jo(t,e,n){var r=[];return Object(b.K)(e)?n?r.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"]):r.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"]):r.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"]),r}function ta(t,e){return[e,t]}Hn("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Uo(t)}});Kn("interval","rect",{draw:function(t,e){var n,r=vr(t,!1,!0),i=e,o=null===t||void 0===t?void 0:t.background;if(o){i=e.addGroup({name:"interval-group"});var a=yr(t),c=Qo(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:l(l({},a),{path:c}),zIndex:-1,name:"element-background"})}n=r.radius&&this.coordinate.isRect?function(t,e,n){var r,i,o,a,c,s,l,u=p(g([],p(t),!1),4),f=u[0],h=u[1],d=u[2],v=u[3],y=p("number"===typeof n?Array(4).fill(n):n,4),m=y[0],b=y[1],x=y[2],O=y[3];e.isTransposed&&(h=(r=p(ta(h,v),2))[0],v=r[1]),e.isReflect("y")&&(f=(i=p(ta(f,h),2))[0],h=i[1],d=(o=p(ta(d,v),2))[0],v=o[1]),e.isReflect("x")&&(f=(a=p(ta(f,v),2))[0],v=a[1],h=(c=p(ta(h,d),2))[0],d=c[1]);var j=[],w=function(t){return Math.abs(t)};return m=(s=p(Zo([m,b,x,O],Math.min(w(v.x-f.x),w(h.y-f.y))).map((function(t){return w(t)})),4))[0],b=s[1],x=s[2],O=s[3],e.isTransposed&&(m=(l=p([O,m,b,x],4))[0],b=l[1],x=l[2],O=l[3]),f.y<h.y?(j.push(["M",v.x,v.y+x]),0!==x&&j.push(["A",x,x,0,0,0,v.x-x,v.y]),j.push(["L",f.x+O,f.y]),0!==O&&j.push(["A",O,O,0,0,0,f.x,f.y+O]),j.push(["L",h.x,h.y-m]),0!==m&&j.push(["A",m,m,0,0,0,h.x+m,h.y]),j.push(["L",d.x-b,d.y]),0!==b&&j.push(["A",b,b,0,0,0,d.x,d.y-b]),j.push(["L",v.x,v.y+x]),j.push(["z"])):v.x<f.x?(j.push(["M",d.x+b,d.y]),0!==b&&j.push(["A",b,b,0,0,0,d.x,d.y+b]),j.push(["L",v.x,v.y-x]),0!==x&&j.push(["A",x,x,0,0,0,v.x+x,v.y]),j.push(["L",f.x-O,f.y]),0!==O&&j.push(["A",O,O,0,0,0,f.x,f.y-O]),j.push(["L",h.x,h.y+m]),0!==m&&j.push(["A",m,m,0,0,0,h.x-m,h.y]),j.push(["L",d.x+b,d.y]),j.push(["z"])):(j.push(["M",h.x,h.y+m]),0!==m&&j.push(["A",m,m,0,0,1,h.x+m,h.y]),j.push(["L",d.x-b,d.y]),0!==b&&j.push(["A",b,b,0,0,1,d.x,d.y+b]),j.push(["L",v.x,v.y-x]),0!==x&&j.push(["A",x,x,0,0,1,v.x-x,v.y]),j.push(["L",f.x+O,f.y]),0!==O&&j.push(["A",O,O,0,0,1,f.x,f.y-O]),j.push(["L",h.x,h.y+m]),j.push(["z"])),j}(this.parsePoints(t.points),this.coordinate,r.radius):this.parsePath(function(t,e,n){var r=n.getWidth(),i=n.getHeight(),o="rect"===n.type,a=[],c=(t[2].x-t[1].x)/2,s=n.isTransposed?c*i/r:c*r/i;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+s]),a.push(["L",t[1].x,t[1].y-s]),a.push(["A",c,c,0,0,1,t[2].x,t[2].y-s]),a.push(["L",t[3].x,t[3].y+s]),a.push(["A",c,c,0,0,1,t[0].x,t[0].y+s])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",c,c,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",c,c,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=$o(t),a}(t.points,r.lineCap,this.coordinate));var s=i.addShape("path",{attrs:l(l({},r),{path:n}),name:"interval"});return o?i:s},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}}}});function ea(t){var e=t.theme,n=t.coordinate,r=t.getXScale(),i=r.values,o=t.beforeMappingData,a=i.length,c=Ct(t.coordinate),s=t.intervalPadding,l=t.dodgePadding,u=t.maxColumnWidth||e.maxColumnWidth,f=t.minColumnWidth||e.minColumnWidth,h=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,p=t.roseWidthRatio||e.roseWidthRatio;if(r.isLinear&&i.length>1){i.sort();var g=function(t,e){var n=t.length,r=t;Object(b.Q)(r[0])&&(r=t.map((function(t){return e.translate(t)})));for(var i=r[1]-r[0],o=2;o<n;o++){var a=r[o]-r[o-1];i>a&&(i=a)}return i}(i,r);a=(r.max-r.min)/g,i.length>a&&(a=i.length)}var v=r.range,y=1/a,m=1;(n.isPolar?m=n.isTransposed&&a>1?d:p:(r.isLinear&&(y*=v[1]-v[0]),m=h),!Object(b.K)(s)&&s>=0)?y=(1-(a-1)*(s/c))/a:y*=m;if(t.getAdjust("dodge")){var x=function(t,e){if(e){var n=Object(b.q)(t);return Object(b.yb)(n,e).length}return t.length}(o,t.getAdjust("dodge").dodgeBy);if(!Object(b.K)(l)&&l>=0)y=(y-l/c*(x-1))/x;else!Object(b.K)(s)&&s>=0?(y*=m,y/=x):y/=x;y=y>=0?y:0}if(!Object(b.K)(u)&&u>=0){var O=u/c;y>O&&(y=O)}if(!Object(b.K)(f)&&f>=0){var j=f/c;y<j&&(y=j)}return y}var na=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var r=e.background;return n.background=r,n}return s(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=Ct(this.coordinate)):(this.defaultSize||(this.defaultSize=ea(this)),n=this.defaultSize);return r.size=n,r},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Tt(e)});else{var n=this.scaleDefs,r=e.field,i=e.min,o=e.max;"time"!==e.type&&(i>0&&!Object(b.s)(n,[r,"min"])&&e.change({min:0}),o<=0&&!Object(b.s)(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}(qn),ra=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 s(e,t),e}(Ho),ia=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"];function oa(t,e,n,r,i){var o,a,c=vr(e,i,!i,"r"),s=t.parsePoints(e.points),u=s[0];if(e.isStack)u=s[1];else if(s.length>1){var f=n.addGroup();try{for(var h=d(s),p=h.next();!p.done;p=h.next()){var g=p.value;f.addShape({type:"marker",attrs:l(l(l({},c),{symbol:or[r]||r}),g)})}}catch(v){o={error:v}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(o)throw o.error}}return f}return n.addShape({type:"marker",attrs:l(l(l({},c),{symbol:or[r]||r}),u)})}Hn("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return mr(t)}});Object(b.j)(ia,(function(t){Kn("point","hollow-".concat(t),{draw:function(e,n){return oa(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:or[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var aa=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 s(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return l(l({},n),{isStack:!!this.getAdjust("stack")})},e}(qn);Hn("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(b.j)(t.x,(function(n,r){var i=t.y[r];e.push({x:n,y:i})})),e}});Kn("polygon","polygon",{draw:function(t,e){if(!Object(b.G)(t.points)){var n=vr(t,!0,!0),r=this.parsePath(function(t){for(var e=t[0],n=1,r=[["M",e.x,e.y]];n<t.length;){var i=t[n];i.x===t[n-1].x&&i.y===t[n-1].y||(r.push(["L",i.x,i.y]),i.x===e.x&&i.y===e.y&&n<t.length-1&&(e=t[n+1],r.push(["Z"]),r.push(["M",e.x,e.y]),n++)),n++}return Object(b.H)(Object(b.U)(r),e)||r.push(["L",e.x,e.y]),r.push(["Z"]),r}(t.points));return e.addShape("path",{attrs:l(l({},n),{path:r}),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}});var ca=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 s(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=r.x,o=r.y;if(!Object(b.C)(i)||!Object(b.C)(o)){var a=this.getXScale(),c=this.getYScale(),s=.5/a.values.length,l=.5/c.values.length;a.isCategory&&c.isCategory?(i=[i-s,i-s,i+s,i+s],o=[o-l,o+l,o+l,o-l]):Object(b.C)(i)?(i=[(n=i)[0],n[0],n[1],n[1]],o=[o-l/2,o+l/2,o+l/2,o-l/2]):Object(b.C)(o)&&(o=[(n=o)[0],n[1],n[1],n[0]],i=[i-s/2,i-s/2,i+s/2,i+s/2]),r.x=i,r.y=o}return r},e}(qn),sa=(Hn("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return s(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=Ct(this.coordinate)):(this.defaultSize||(this.defaultSize=ea(this)),n=this.defaultSize);return r.size=n,r},e}(qn));Hn("violin",{defaultShapeType:"violin",getDefaultPoints:function(t){var e=t.size/2,n=[],r=function(t){if(!Object(b.C)(t))return[];var e=Object(b.Y)(t);return Object(b.W)(t,(function(t){return t/e}))}(t._size);return Object(b.j)(t.y,(function(i,o){var a=r[o]*e,c=0===o,s=o===t.y.length-1;n.push({isMin:c,isMax:s,x:t.x-a,y:i}),n.unshift({isMin:c,isMax:s,x:t.x+a,y:i})})),n}});Kn("violin","violin",{draw:function(t,e){var n=vr(t,!0,!0),r=this.parsePath(pr(t.points));return e.addShape("path",{attrs:l(l({},n),{path:r}),name:"violin"})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:t.color}}}});var la=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 s(e,t),e.prototype.createShapePointsCfg=function(e){var n,r=t.prototype.createShapePointsCfg.call(this,e),i=this.getAttribute("size");i?(n=this.getAttributeValues(i,e)[0],n/=Ct(this.coordinate)):(this.defaultSize||(this.defaultSize=ea(this)),n=this.defaultSize);return r.size=n,r._size=Object(b.s)(e._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}(qn);function ua(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function fa(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return Object(b.j)(n,(function(t){r.push(t.x,t.y)})),r}Kn("area","line",{draw:function(t,e){var n=Yo(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}}}}),Kn("area","smooth",{draw:function(t,e){var n=Yo(t,!1,!0,this,Go(this.coordinate));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,fill:t.color,fillOpacity:1}}}}),Kn("area","smooth-line",{draw:function(t,e){var n=Yo(t,!0,!0,this,Go(this.coordinate));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}}}}),Kn("edge","arc",{draw:function(t,e){var n,r=vr(t,!0,!1,"lineWidth"),i=t.points,o=i.length>2?"weight":"normal";if(t.isInCircle){var a={x:0,y:1};return"normal"===o?n=function(t,e,n){var r=fa(e,n),i=[["M",t.x,t.y]];return i.push(r),i}(i[0],i[1],a):(r.fill=r.stroke,n=function(t,e){var n=fa(t[1],e),r=fa(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}(i,a)),n=this.parsePath(n),e.addShape("path",{attrs:l(l({},r),{path:n})})}if("normal"===o)return n=yt(((i=this.parsePoints(i))[1].x+i[0].x)/2,i[0].y,Math.abs(i[1].x-i[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:l(l({},r),{path:n})});var c=ua(i[1],i[3]),s=ua(i[2],i[0]);return n=[["M",i[0].x,i[0].y],["L",i[1].x,i[1].y],c,["L",i[3].x,i[3].y],["L",i[2].x,i[2].y],s,["Z"]],n=this.parsePath(n),r.fill=r.stroke,e.addShape("path",{attrs:l(l({},r),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Kn("edge","smooth",{draw:function(t,e){var n=vr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=ua(t,e),r=[["M",t.x,t.y]];return r.push(n),r}(r[0],r[1]));return e.addShape("path",{attrs:l(l({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});Kn("edge","vhv",{draw:function(t,e){var n=vr(t,!0,!1,"lineWidth"),r=t.points,i=this.parsePath(function(t,e){var n=[];n.push({x:t.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push({x:e.x,y:t.y*(1-1/3)+e.y*(1/3)}),n.push(e);var r=[["M",t.x,t.y]];return Object(b.j)(n,(function(t){r.push(["L",t.x,t.y])})),r}(r[0],r[1]));return e.addShape("path",{attrs:l(l({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Kn("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Uo(t)},draw:function(t,e){var n=vr(t,!1,!0),r=this.parsePath(Jo(t.points,t.nextPoints,!1));return e.addShape("path",{attrs:l(l({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Kn("interval","hollow-rect",{draw:function(t,e){var n=vr(t,!0,!1),r=e,i=null===t||void 0===t?void 0:t.background;if(i){r=e.addGroup();var o=yr(t),a=Qo(t,this.parsePoints(t.points),this.coordinate);r.addShape("path",{attrs:l(l({},o),{path:a}),zIndex:-1,name:"element-background"})}var c=this.parsePath($o(t.points)),s=r.addShape("path",{attrs:l(l({},n),{path:c}),name:"interval"});return i?r:s},getMarker:function(t){var e=t.color;return t.isInPolar?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Kn("interval","line",{getPoints:function(t){return function(t){var e=t.x,n=t.y,r=t.y0;return Object(b.C)(n)?n.map((function(t,n){return{x:Object(b.C)(e)?e[n]:e,y:t}})):[{x:e,y:r},{x:e,y:n}]}(t)},draw:function(t,e){var n=vr(t,!0,!1,"lineWidth"),r=Ot(l({},n),["fill"]),i=this.parsePath($o(t.points,!1));return e.addShape("path",{attrs:l(l({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:t.color}}}}),Kn("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Uo(t)},draw:function(t,e){var n=vr(t,!1,!0),r=this.parsePath(Jo(t.points,t.nextPoints,!0));return e.addShape("path",{attrs:l(l({},n),{path:r}),name:"interval"})},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Kn("interval","tick",{getPoints:function(t){return function(t){var e,n,r,i=t.x,o=t.y,a=t.y0,c=t.size;Object(b.C)(o)?(n=(e=p(o,2))[0],r=e[1]):(n=a,r=o);var s=i+c/2,l=i-c/2;return[{x:i,y:n},{x:i,y:r},{x:l,y:n},{x:s,y:n},{x:l,y:r},{x:s,y:r}]}(t)},draw:function(t,e){var n,r=vr(t,!0,!1),i=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]]);return e.addShape("path",{attrs:l(l({},r),{path:i}),name:"interval"})},getMarker:function(t){return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:t.color}}}});function ha(t,e){var n=dr(t.points,t.connectNulls,t.showSinglePoint),r=[];return Object(b.j)(n,(function(t){var n=function(t,e){var n=[];return Object(b.j)(t,(function(r,i){var o=t[i+1];if(n.push(r),o){var a=function(t,e,n){var r,i=t.x,o=t.y,a=e.x,c=e.y;switch(n){case"hv":r=[{x:a,y:o}];break;case"vh":r=[{x:i,y:c}];break;case"hvh":var s=(a+i)/2;r=[{x:s,y:o},{x:s,y:c}];break;case"vhv":var l=(o+c)/2;r=[{x:i,y:l},{x:a,y:l}]}return r}(r,o,e);n=n.concat(a)}})),n}(t,e);r=r.concat(function(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}(n))})),l(l({},vr(t,!0,!1,"lineWidth")),{path:r})}function da(t){var e=Object(b.C)(t)?t:[t],n=e[0],r=e[e.length-1],i=e.length>1?e[1]:n;return{min:n,max:r,min1:i,max1:e.length>3?e[3]:r,median:e.length>2?e[2]:i}}function pa(t,e,n){var r,i=n/2;if(Object(b.C)(e)){var o=da(e),a=o.min,c=o.max,s=o.median,l=o.min1,u=t-i,f=t+i;r=[[u,c],[f,c],[t,c],[t,h=o.max1],[u,l],[u,h],[f,h],[f,l],[t,l],[t,a],[u,a],[f,a],[u,s],[f,s]]}else{e=Object(b.K)(e)?.5:e;var h,d=da(t),p=(a=d.min,c=d.max,s=d.median,e-i),g=e+i;r=[[a,p],[a,g],[a,e],[l=d.min1,e],[l,p],[l,g],[h=d.max1,g],[h,p],[h,e],[c,e],[c,p],[c,g],[s,p],[s,g]]}return r.map((function(t){return{x:t[0],y:t[1]}}))}function ga(t){var e=(Object(b.C)(t)?t:[t]).sort((function(t,e){return e-t}));return function(t,e,n){if(Object(b.Q)(t))return t.padEnd(e,n);if(Object(b.C)(t)){var r=t.length;if(r<e)for(var i=e-r,o=0;o<i;o++)t.push(n)}return t}(e,4,e[e.length-1])}function va(t,e,n){var r=ga(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]}]}function ya(t,e){var n=Math.abs(t[0].x-t[2].x),r=Math.abs(t[0].y-t[2].y),i=Math.min(n,r);return e&&(i=Object(b.c)(e,0,Math.min(n,r))),i/=2,{x:(t[0].x+t[2].x)/2-i,y:(t[0].y+t[2].y)/2-i,width:2*i,height:2*i}}Object(b.j)(["hv","vh","hvh","vhv"],(function(t){Kn("line",t,{draw:function(e,n){var r=ha(e,t);return n.addShape({type:"path",attrs:r,name:"line"})},getMarker:function(e){return xr(e,t)}})})),Object(b.j)(["cross","tick","plus","hyphen","line"],(function(t){Kn("point",t,{draw:function(e,n){return oa(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:or[t],style:{r:4.5,stroke:n,fill:null}}}})})),Kn("point","image",{draw:function(t,e){var n,r,i=vr(t,!1,!1,"r").r,o=this.parsePoints(t.points),a=o[0];if(t.isStack)a=o[1];else if(o.length>1){var c=e.addGroup();try{for(var s=d(o),l=s.next();!l.done;l=s.next()){var u=l.value;c.addShape("image",{attrs:{x:u.x-i/2,y:u.y-i,width:i,height:i,img:t.shape[1]}})}}catch(f){n={error:f}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return c}return e.addShape("image",{attrs:{x:a.x-i/2,y:a.y-i,width:i,height:i,img:t.shape[1]}})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Object(b.j)(ia,(function(t){Kn("point",t,{draw:function(e,n){return oa(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:or[t]||t,style:{r:4.5,fill:n}}}})})),Kn("schema","box",{getPoints:function(t){return pa(t.x,t.y,t.size)},draw:function(t,e){var n,r=vr(t,!0,!1),i=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:l(l({},r),{path:i,name:"schema"})})},getMarker:function(t){return{symbol:function(t,e,n){var r=pa(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}}}}),Kn("schema","candle",{getPoints:function(t){return va(t.x,t.y,t.size)},draw:function(t,e){var n,r=vr(t,!0,!0),i=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:l(l({},r),{path:i,name:"schema"})})},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var r=va(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}}}}),Kn("polygon","square",{draw:function(t,e){if(!Object(b.G)(t.points)){var n=vr(t,!0,!0),r=this.parsePoints(t.points);return e.addShape("rect",{attrs:l(l({},n),ya(r,t.size)),name:"polygon"})}},getMarker:function(t){return{symbol:"square",style:{r:4,fill:t.color}}}}),Kn("violin","smooth",{draw:function(t,e){var n=vr(t,!0,!0),r=this.parsePath(gr(t.points));return e.addShape("path",{attrs:l(l({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{stroke:null,r:4,fill:t.color}}}}),Kn("violin","hollow",{draw:function(t,e){var n=vr(t,!0,!1),r=this.parsePath(pr(t.points));return e.addShape("path",{attrs:l(l({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}}),Kn("violin","hollow-smooth",{draw:function(t,e){var n=vr(t,!0,!1),r=this.parsePath(gr(t.points));return e.addShape("path",{attrs:l(l({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4,fill:null,stroke:t.color}}}});var ma=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getLabelValueDir=function(t){var e=t.points;return e[0].y<=e[2].y?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,r,i){var o,a=t.prototype.getLabelOffsetPoint.call(this,e,n,r),c=this.getCoordinate(),s=c.isTransposed?"x":"y",u=this.getLabelValueDir(e.mappingData);return a=l(l({},a),((o={})[s]=a[s]*u,o)),c.isReflect("x")&&(a=l(l({},a),{x:-1*a.x})),c.isReflect("y")&&(a=l(l({},a),{y:-1*a.y})),a},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),r=e.theme;return Object(b.h)({},n,r.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,r){var i,o,a,c,s=this.getCoordinate(),l=s.isTransposed,u=e.points,f=s.convert(u[0]),h=s.convert(u[2]),d=this.getLabelValueDir(e),p=Object(b.C)(e.shape)?e.shape[0]:e.shape;if("funnel"===p||"pyramid"===p){var g=Object(b.s)(e,"nextPoints"),v=Object(b.s)(e,"points");if(g){var y=s.convert(v[0]),m=s.convert(v[1]),x=s.convert(g[0]),O=s.convert(g[1]);l?(i=Math.min(x.y,y.y),a=Math.max(x.y,y.y),o=(m.x+O.x)/2,c=(y.x+x.x)/2):(i=Math.min((m.y+O.y)/2,(y.y+x.y)/2),a=Math.max((m.y+O.y)/2,(y.y+x.y)/2),o=O.x,c=y.x)}else i=Math.min(h.y,f.y),a=Math.max(h.y,f.y),o=h.x,c=f.x}else i=Math.min(h.y,f.y),a=Math.max(h.y,f.y),o=h.x,c=f.x;switch(r){case"right":t.x=o,t.y=(i+a)/2,t.textAlign=Object(b.s)(t,"textAlign",d>0?"left":"right");break;case"left":t.x=c,t.y=(i+a)/2,t.textAlign=Object(b.s)(t,"textAlign",d>0?"left":"right");break;case"bottom":l&&(t.x=(o+c)/2),t.y=a,t.textAlign=Object(b.s)(t,"textAlign","center"),t.textBaseline=Object(b.s)(t,"textBaseline",d>0?"bottom":"top");break;case"middle":l&&(t.x=(o+c)/2),t.y=(i+a)/2,t.textAlign=Object(b.s)(t,"textAlign","center"),t.textBaseline=Object(b.s)(t,"textBaseline","middle");break;case"top":l&&(t.x=(o+c)/2),t.y=i,t.textAlign=Object(b.s)(t,"textAlign","center"),t.textBaseline=Object(b.s)(t,"textBaseline",d>0?"bottom":"top")}},e}(rr),ba=Math.PI/2,xa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(b.M)(t))n=t;else if(Object(b.Q)(t)&&-1!==t.indexOf("%")){var r=e.getRadius();e.innerRadius>0&&(r*=1-e.innerRadius),n=.01*parseFloat(t)*r}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),r=this.geometry.getYScale();return Object(b.W)(n,(function(t){if(t&&r){var e=r.scale(Object(b.s)(t.data,r.field));return l(l({},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,o=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 a=t.offset*i,c=this.getPointAngle(r),s=t.labelEmit,l=this.getCirclePoint(c,a,r,s);return 0===l.r?l.content="":(l.content=o,l.angle=c,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(c,a,s):t.rotate,l.start={x:r.x,y:r.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(b.C)(t.x)||Object(b.C)(t.y)?{x:Object(b.C)(t.x)?t.x[e]:t.x,y:Object(b.C)(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Et(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,r){var i=this.getCoordinate(),o=i.getCenter(),a=St(i,n);if(0===a)return l(l({},o),{r:a});var c=t;i.isTransposed&&a>e&&!r?c=t+2*Math.asin(e/(2*a)):a+=e;return{x:o.x+a*Math.cos(c),y:o.y+a*Math.sin(c),r:a}},e.prototype.getLabelRotate=function(t,e,n){var r=t+ba;return n&&(r-=ba),r&&(r>ba?r-=Math.PI:r<-ba&&(r+=Math.PI)),r},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,r={x:0,y:0};return Object(b.j)(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}(rr),Oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return s(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var r=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(b.h)({},r,Object(b.s)(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:Object(b.C)(t.x)?t.x[0]:t.x,y:t.y[0]},i={x:Object(b.C)(t.x)?t.x[1]:t.x,y:t.y[1]},o=Et(n,r);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=Et(n,i);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),r=n.getCenter(),i=n.getRadius()+e;return l(l({},gt(r.x,r.y,i,t)),{angle:t,r:i})},e}(xa);function ja(t,e,n){var r=t.filter((function(t){return!t.invisible}));r.sort((function(t,e){return t.y-e.y}));var i,o=!0,a=n.minY,c=n.maxY,s=Math.abs(a-c),l=0,u=Number.MIN_VALUE,f=r.map((function(t){return t.y>l&&(l=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-a],pos:null}}));for(u-=a,l-a>s&&(s=l-a);o;)for(f.forEach((function(t){var e=(Math.min.apply(u,t.targets)+Math.max.apply(u,t.targets))/2;t.pos=Math.min(Math.max(u,e-t.size/2),s-t.size),t.pos=Math.max(0,t.pos)})),o=!1,i=f.length;i--;)if(i>0){var h=f[i-1],d=f[i];h.pos+h.size>d.pos&&(h.size+=d.size,h.targets=h.targets.concat(d.targets),h.pos+h.size>s&&(h.pos=s-h.size),f.splice(i,1),o=!0)}i=0,f.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){r[i].y=t.pos+n,n+=e,i++}))}))}var wa=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),o=Math.round(t.minY),a=Math.round(t.maxY),c=r;c<=i;c+=1)if(n[c]){if(c===r||c===i){for(var s=o;s<=a;s++)if(n[c][s]){e=!1;break}}else if(n[c][o]||n[c][a]){e=!1;break}}else n[c]={};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),o=Math.round(t.maxY),a=n;a<=r;a+=1)e[a]||(e[a]={});for(a=n;a<=r;a+=this.xGap){for(var c=i;c<=o;c+=this.yGap)e[a][c]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=i;a<=o;a+=1)e[n][a]=!0,e[r][a]=!0;if(1!==this.xGap)for(a=n;a<=r;a+=1)e[a][i]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function Ca(t,e,n,r){var i=t.getCanvasBBox(),o=i.width,a=i.height,c={x:e,y:n,textAlign:"center"};switch(r){case 0:c.y-=a+1,c.x+=1,c.textAlign="left";break;case 1:c.y-=a+1,c.x-=1,c.textAlign="right";break;case 2:c.y+=a+1,c.x-=1,c.textAlign="right";break;case 3:c.y+=a+1,c.x+=1,c.textAlign="left";break;case 5:c.y-=2*a+2;break;case 6:c.y+=2*a+2;break;case 7:c.x+=o+1,c.textAlign="left";break;case 8:c.x-=o+1,c.textAlign="right"}return t.attr(c),t.getCanvasBBox()}function Sa(t){if(t.length>4)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 Ea(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 Ma(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?[Ea(e[0],n,e[0]),Ea(e[1],n,e[0]),Ea(e[2],n,e[0]),Ea(e[3],n,e[0])]:e}function ka(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(Math,g([],p(n),!1)),max:Math.max.apply(Math,g([],p(n),!1))}}function Pa(t,e){return t.max>e.min&&t.min<e.max}function Aa(t){return["x","y","width","height"].every((function(e){return"number"===typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}function Ia(t,e,n){if(void 0===n&&(n=0),!Aa(t)||!Aa(e))return!1;if(!t.rotation&&!e.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(t,e,n);for(var r=Ma(t),i=Ma(e),o=Sa(r).concat(Sa(i)),a=0;a<o.length;a++){var c=o[a];if(!Pa(ka(r,c),ka(i,c)))return!1}return!0}var Fa="\n self.onmessage = ".concat(function(t){var e=function(){function t(t){if(t.length>4)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 e(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 n(t){var n=[{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}],r=t.rotation;return r?[e(n[0],r,n[0]),e(n[1],r,n[0]),e(n[2],r,n[0]),e(n[3],r,n[0])]:n}function r(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){var r,i;n.push((r=[t.x,t.y],i=e,(r[0]||0)*(i[0]||0)+(r[1]||0)*(i[1]||0)+(r[2]||0)*(i[2]||0)))})),{min:Math.min.apply(null,n),max:Math.max.apply(null,n)}}function i(t,e){return t.max>e.min&&t.min<e.max}function o(t){return["x","y","width","height"].every((function(e){return"number"===typeof(n=t[e])&&!Number.isNaN(n)&&n!==1/0&&n!==-1/0;var n}))}return{intersect:function(e,a,c){if(void 0===c&&(c=0),!o(e)||!o(a))return!1;if(!e.rotation&&!a.rotation)return function(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}(e,a,c);for(var s=n(e),l=n(a),u=t(s).concat(t(l)),f=0;f<u.length;f++){var h=u[f];if(!i(r(s,h),r(l,h)))return!1}return!0}}}().intersect;var n={"hide-overlap":function(t){for(var n=t.slice(),r=0;r<n.length;r++){var i=n[r];if(i.visible)for(var o=r+1;o<n.length;o++){var a=n[o];i!==a&&a.visible&&e(i,a)&&(a.visible=!1)}}return n}};try{var r=JSON.parse(t.data);if(!r||!r.type||!n[r.type])return;var i=r.type,o=r.items,a=n[i](o);self.postMessage(a)}catch(t){throw t}}.toString(),"\n"),Ta=function(t){for(var e=t.slice(),n=0;n<e.length;n++){var r=e[n];if(r.visible)for(var i=n+1;i<e.length;i++){var o=e[i];r!==o&&o.visible&&Ia(r,o)&&(o.visible=!1)}}return e},La=new Map,Na=function(t){if("undefined"!==typeof window){var e;try{e=new Blob([t.toString()],{type:"application/javascript"})}catch(n){(e=new window.BlobBuilder).append(t.toString()),e=e.getBlob()}return new Worker(URL.createObjectURL(e))}}(Fa);var Da,Ba={"#5B8FF9":!0};function Ra(t,e,n){return!!t.getAdjust("stack")||e.every((function(e,r){var i=n[r];return function(t,e,n){var r=t.coordinate,i=Qn(e),o=wt.fromObject(i.getCanvasBBox()),a=wt.fromObject(n.getBBox());return r.isTransposed?a.height>=o.height:a.width>=o.width}(t,e,i)}))}function _a(t,e,n){return t.some((function(t){return n(t,e)}))}function za(t,e){return _a(t,e,(function(t,e){var n,r,i,o=Qn(t),a=Qn(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}function Va(t,e,n){return t.some((function(t){return n(t,e)}))}function Ha(t,e){return Va(t,e,(function(t,e){var n,r,i,o=Qn(t),a=Qn(e);return n=o.getCanvasBBox(),r=a.getCanvasBBox(),void 0===(i=2)&&(i=0),Math.max(0,Math.min(n.x+n.width+i,r.x+r.width+i)-Math.max(n.x-i,r.x-i))*Math.max(0,Math.min(n.y+n.height+i,r.y+r.height+i)-Math.max(n.y-i,r.y-i))>0}))}var Ka=Object(b.ab)((function(t,e){void 0===e&&(e={});var n=e.fontSize,r=e.fontFamily,i=e.fontWeight,o=e.fontStyle,a=e.fontVariant,c=(Da||(Da=document.createElement("canvas").getContext("2d")),Da);return c.font=[o,a,i,"".concat(n,"px"),r].join(" "),c.measureText(Object(b.Q)(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),g([t],p(Object(b.xb)(e)),!1).join("")}));function Ya(t,e,n,r,i){var o,a,c=n.start,s=n.end,l=n.getWidth(),u=n.getHeight();"y"===i?(o=c.x+l/2,a=r.y<c.y?r.y:c.y):"x"===i?(o=r.x>c.x?r.x:c.x,a=c.y+u/2):"xy"===i&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(c.x+s.x)/2,a=(c.y+s.y)/2));var f=function(t,e,n){var r,i=p(e,2),o=i[0],a=i[1];return t.applyToMatrix([o,a,1]),"x"===n?(t.setMatrix(Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]])),r=Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])):"y"===n?(t.setMatrix(Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,.01],["t",o,a]])),r=Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",1,100],["t",o,a]])):"xy"===n&&(t.setMatrix(Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,.01],["t",o,a]])),r=Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,100],["t",o,a]])),r}(t,[o,a],i);t.animate({matrix:f},e)}function Ga(t,e){var n,r=Jr(t,e),i=r.startAngle,o=r.endAngle;return!Object(b.N)(i,.5*-Math.PI)&&i<.5*-Math.PI&&(i+=2*Math.PI),!Object(b.N)(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(i=(n=p([o,i],2))[0],o=n[1]),Object(b.N)(i,1.5*Math.PI)&&(i=-.5*Math.PI),Object(b.N)(o,-.5*Math.PI)&&!Object(b.N)(i,o)&&(o=1.5*Math.PI),{startAngle:i,endAngle:o}}function Wa(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 Xa(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],a=i.length>1?i[1]:i[0],c=t.indexOf(o),s=t.indexOf(a),l=Wa(t[c-1]),u=Wa(t[s-1]),f=Ga(l,o),h=f.startAngle,d=f.endAngle,g=Ga(u,a),v=g.startAngle,y=g.endAngle;Object(b.N)(h,v)&&Object(b.N)(d,y)?(n=h,r=d):(n=Math.min(h,v),r=Math.max(d,y));var m=o[1],x=i[i.length-1][1];return m<x?(m=(e=p([x,m],2))[0],x=e[1]):m===x&&(x=0),{startAngle:n,endAngle:r,radius:m,innerRadius:x}}function qa(t,e,n){if(t.isGroup())Object(b.j)(t.getChildren(),(function(t){qa(t,e,n)}));else{var r=t.getBBox(),i=(r.minX+r.maxX)/2,o=(r.minY+r.maxY)/2;if(t.applyToMatrix([i,o,1]),"zoomIn"===n){var a=Q.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]]);t.setMatrix(a),t.animate({matrix:Q.a.transform(t.getMatrix(),[["t",-i,-o],["s",100,100],["t",i,o]])},e)}else t.animate({matrix:Q.a.transform(t.getMatrix(),[["t",-i,-o],["s",.01,.01],["t",i,o]])},l(l({},e),{callback:function(){t.remove(!0)}}))}}function Ua(t){return[y.TOP,y.BOTTOM].includes(t)?{offsetX:0,offsetY:t===y.TOP?-8:8,style:{textAlign:"center",textBaseline:t===y.TOP?"bottom":"top"}}:[y.LEFT,y.RIGHT].includes(t)?{offsetX:t===y.LEFT?-8:8,offsetY:0,style:{textAlign:t===y.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function $a(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var Za=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultCfg=function(){return Object(b.h)({},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)),o=$a({x:.5,y:.5},.5-i,r),a=5*Math.PI/4,c=1*Math.PI/4;return{start:$a(o,i,a),end:$a(o,i,c)}},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,i=n.type,o=p(r,1)[0];if(!o)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,o),c=a.length,s=[];return a.forEach((function(n,r){var l=[{field:o,value:n,values:a}],u=Object(b.l)(t,e.getFacetDataFilter(l)),f={type:i,data:u,region:e.getRegion(c,r),columnValue:n,columnField:o,columnIndex:r,columnValuesLength:c,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};s.push(f)})),s},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;Object(b.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(b.s)(t.cfg.title,"formatter"),o=Object(b.h)({position:["50%","0%"],content:i?i(n):n},Ua(y.TOP),t.cfg.title);r.annotation().text(o)}))},e}(Kt),Qa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultCfg=function(){return Object(b.h)({},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,i=p(n,1)[0];if(!i)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,i),a=o.length;r=r||a;var c=this.getPageCount(a,r),s=[];return o.forEach((function(n,l){var u=e.getRowCol(l,r),f=u.row,h=u.col,d=[{field:i,value:n,values:o}],p=Object(b.l)(t,e.getFacetDataFilter(d)),g={type:e.cfg.type,data:p,region:e.getRegion(c,r,h,f),columnValue:n,rowValue:n,columnField:i,rowField:null,columnIndex:h,rowIndex:f,columnValuesLength:r,rowValuesLength:c,total:a};s.push(g)})),s},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1&&r.columnValuesLength*r.rowIndex+r.columnIndex+1+r.columnValuesLength<=r.total?l(l({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?l(l({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(b.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(b.s)(t.cfg.title,"formatter"),o=Object(b.h)({position:["50%","0%"],content:i?i(n):n},Ua(y.TOP),t.cfg.title);r.annotation().text(o)}))},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}(Kt),Ja=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultCfg=function(){return Object(b.h)({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:l({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:l({},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,o=i,a=[],c=0;c<o;c++)for(var s=n[c],l=0;l<i;l++){var u=n[l],f={type:r,data:t,region:this.getRegion(i,o,c,l),columnValue:s,rowValue:u,columnField:s,rowField:u,columnIndex:c,rowIndex:l,columnValuesLength:o,rowValuesLength:i};a.push(f)}return a},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?l(l({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?l(l({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(b.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=(e.rowValuesLength,e.columnValue),c=e.rowValue,s=e.view;if(0===i){var l=Object(b.s)(t.cfg.columnTitle,"formatter"),u=Object(b.h)({position:["50%","0%"],content:l?l(a):a},Ua(y.TOP),t.cfg.columnTitle);s.annotation().text(u)}if(r===o-1){l=Object(b.s)(t.cfg.rowTitle,"formatter"),u=Object(b.h)({position:["100%","50%"],content:l?l(c):c},Ua(y.RIGHT),t.cfg.rowTitle);s.annotation().text(u)}}))},e}(Kt),tc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getDefaultCfg=function(){return Object(b.h)({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2===0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!==0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,r=this,i=p(this.cfg.fields,1)[0],o=[],a=1,c=1,s=[""],l=[""];return this.cfg.transpose?(e=i,s=this.getFieldValues(t,e).slice(0,2),a=s.length):(n=i,l=this.getFieldValues(t,n).slice(0,2),c=l.length),s.forEach((function(i,u){l.forEach((function(f,h){var d=[{field:e,value:i,values:s},{field:n,value:f,values:l}],p=Object(b.l)(t,r.getFacetDataFilter(d)),g={type:r.cfg.type,data:p,region:r.getRegion(c,a,u,h),columnValue:i,rowValue:f,columnField:e,rowField:n,columnIndex:u,rowIndex:h,columnValuesLength:a,rowValuesLength:c};o.push(g)}))})),o},e.prototype.getXAxisOption=function(t,e,n,r){return 1===r.columnIndex||1===r.rowIndex?l(l({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return n},e.prototype.renderTitle=function(){var t=this;Object(b.j)(this.facets,(function(e,n){var r=e.columnValue,i=e.rowValue,o=e.view,a=Object(b.s)(t.cfg.title,"formatter");if(t.cfg.transpose){var c=Object(b.h)({position:["50%","0%"],content:a?a(r):r},Ua(y.TOP),t.cfg.title);o.annotation().text(c)}else{c=Object(b.h)({position:["100%","50%"],content:a?a(i):i},Ua(y.RIGHT),t.cfg.title);o.annotation().text(c)}}))},e}(Kt),ec=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(b.h)({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:l({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:l({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=p(this.cfg.fields,2),r=n[0],i=n[1],o=[],a=1,c=1,s=[""],l=[""];return r&&(s=this.getFieldValues(t,r),a=s.length),i&&(l=this.getFieldValues(t,i),c=l.length),s.forEach((function(n,u){l.forEach((function(f,h){var d=[{field:r,value:n,values:s},{field:i,value:f,values:l}],p=Object(b.l)(t,e.getFacetDataFilter(d)),g={type:e.cfg.type,data:p,region:e.getRegion(c,a,u,h),columnValue:n,rowValue:f,columnField:r,rowField:i,columnIndex:u,rowIndex:h,columnValuesLength:a,rowValuesLength:c};o.push(g)}))})),o},e.prototype.renderTitle=function(){var t=this;Object(b.j)(this.facets,(function(e,n){var r=e.columnIndex,i=e.rowIndex,o=e.columnValuesLength,a=e.columnValue,c=e.rowValue,s=e.view;if(0===i){var l=Object(b.s)(t.cfg.columnTitle,"formatter"),u=Object(b.h)({position:["50%","0%"],content:l?l(a):a},Ua(y.TOP),t.cfg.columnTitle);s.annotation().text(u)}if(r===o-1){l=Object(b.s)(t.cfg.rowTitle,"formatter"),u=Object(b.h)({position:["100%","50%"],content:l?l(c):c},Ua(y.RIGHT),t.cfg.rowTitle);s.annotation().text(u)}}))},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?l(l({},n),{title:null,label:null}):r.columnIndex!==Math.floor((r.columnValuesLength-1)/2)?l(l({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.columnIndex?l(l({},n),{title:null,label:null}):r.rowIndex!==Math.floor((r.rowValuesLength-1)/2)?l(l({},n),{title:null}):n},e}(Kt),nc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return s(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(x.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(b.h)({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){if(!this.cfg.fields.length)throw new Error("Please specify for the fields for rootFacet!");var e=[],n={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return e.push(n),n.children=this.getChildFacets(t,1,e),this.setRegion(e),e},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,r){var i=1/e,o=1/t,a={x:i*n,y:o*r};return{start:a,end:{x:a.x+i,y:a.y+2*o/3}}},e.prototype.forceColIndex=function(t){var e,n,r=this,i=[],o=0;t.forEach((function(t){r.isLeaf(t)&&(i.push(t),t.columnIndex=o,o++)})),i.forEach((function(t){t.columnValuesLength=i.length}));for(var a=this.cfg.fields.length-1;a>=0;a--){var c=this.getFacetsByLevel(t,a);try{for(var s=(e=void 0,d(c)),l=s.next();!l.done;l=s.next()){var u=l.value;this.isLeaf(u)||(u.originColIndex=u.columnIndex,u.columnIndex=this.getRegionIndex(u.children),u.columnValuesLength=i.length)}}catch(f){e={error:f}}finally{try{l&&!l.done&&(n=s.return)&&n.call(s)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0];return(t[t.length-1].columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,i=this.cfg.fields;if(!(i.length<e)){var o=[],a=i[e-1],c=this.getFieldValues(t,a);return c.forEach((function(i,s){var l=[{field:a,value:i,values:c}],u=t.filter(r.getFacetDataFilter(l));if(u.length){var f={type:r.cfg.type,data:u,region:null,columnValue:i,rowValue:"",columnField:a,rowField:"",columnIndex:s,rowValuesLength:r.getRows(),columnValuesLength:1,rowIndex:e,children:r.getChildFacets(u,e+1,n)};o.push(f),n.push(f)}})),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(b.j)(this.facets,(function(e){var n=e.columnValue,r=e.view,i=Object(b.s)(t.cfg.title,"formatter"),o=Object(b.h)({position:["50%","0%"],content:i?i(n):n},Ua(y.TOP),t.cfg.title);r.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,r=t.view.coordinateBBox,i={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,r={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},o={x:i.x,y:i.y+(r.y-i.y)/2},a={x:r.x,y:o.y};n.drawLine([i,o,a,r])}))},e.prototype.getPath=function(t){var e=[];return this.cfg.line.smooth?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(b.b)({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,r){return r.rowIndex!==r.rowValuesLength-1?l(l({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,r){return 0!==r.originColIndex&&0!==r.columnIndex?l(l({},n),{title:null,label:null}):n},e}(Kt);function rc(t){var e=g([],p(t),!1);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function ic(t,e){if(!e)return null;var n;switch(t){case"start":return 0;case"center":return.5;case"end":return 1;case"median":n=e.isCategory?rc(e.values.map((function(t,e){return e}))):rc(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:function(t){var e=Object(b.ib)(t,(function(t,e){return t+(isNaN(e)||!Object(b.M)(e)?0:e)}),0);return 0===t.length?0:e/t.length}(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t}return e.scale(n)}var oc=["regionFilter","shape"],ac=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(v.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(v.BG).addGroup(),n.option=[],n}return s(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;Object(b.j)(t.option,(function(n){if(Object(b.A)(oc,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(b.j)(this.option,(function(n){if(!Object(b.A)(oc,n.type)){var r=t.updateOrCreate(n);r&&e.set(t.getCacheKey(n),r)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(O.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(x.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=ot.Annotation[Object(b.wb)(e)];if(n){var r=this.getAnnotationTheme(e),i=this.getAnnotationCfg(e,t,r);return i?{component:new n(i),layer:this.isTop(i)?v.FORE:v.BG,direction:y.NONE,type:m.ANNOTATION,extra:t}:null}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(l({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(l({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(l({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(l({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(l({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(l({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(l({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(l({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(l({type:"shape"},t))},e.prototype.html=function(t){this.annotation(l({type:"html"},t))},e.prototype.parsePosition=function(t){var e,n,r=this.view.getXScale(),i=this.view.getScalesByDim("y"),o=Object(b.I)(t)?t.call(null,r,i):t,a=0,c=0;if(Object(b.C)(o)){var s=p(o,2),l=s[0],u=s[1];if(Object(b.Q)(l)&&-1!==l.indexOf("%")&&!isNaN(l.slice(0,-1)))return this.parsePercentPosition(o);a=ic(l,r),c=ic(u,Object.values(i)[0])}else if(!Object(b.K)(o))try{for(var f=d(Object(b.T)(o)),h=f.next();!h.done;h=f.next()){var g=h.value,v=o[g];g===r.field&&(a=ic(v,r)),i[g]&&(c=ic(v,i[g]))}}catch(y){e={error:y}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(e)throw e.error}}return isNaN(a)||isNaN(c)?null:this.view.getCoordinate().convert({x:a,y:c})},e.prototype.getRegionPoints=function(t,e){var n,r=this,i=this.view.getXScale(),o=this.view.getScalesByDim("y"),a=Object.values(o)[0],c=i.field,s=this.view.getData(),l=Object(b.C)(t)?t[0]:t[c],u=Object(b.C)(e)?e[0]:e[c],f=[];return Object(b.j)(s,(function(t,e){if(t[c]===l&&(n=e),e>=n){var i=r.parsePosition([t[c],t[a.field]]);i&&f.push(i)}if(t[c]===u)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,r=this.view.getCoordinate(),i=r.start,o=r.end,a=Math.min(i.x,o.x),c=Math.min(i.y,o.y);return{x:r.getWidth()*e+a,y:r.getHeight()*n+c}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,r=t.getWidth(),i=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+r,maxY:o.y+i,width:r,height:i}},e.prototype.getAnnotationCfg=function(t,e,n){var r=this,i=this.view.getCoordinate(),o=this.view.getCanvas(),a={};if(Object(b.K)(e))return null;var c=e.start,s=e.end,f=e.position,h=this.parsePosition(c),d=this.parsePosition(s),p=this.parsePosition(f);if(!(!["arc","image","line","region","regionFilter"].includes(t)||h&&d))return null;if(["text","dataMarker","html"].includes(t)&&!p)return null;if("arc"===t){var g=e,v=(g.start,g.end,u(g,["start","end"])),y=Et(i,h),m=Et(i,d);y>m&&(m=2*Math.PI+m),a=l(l({},v),{center:i.getCenter(),radius:St(i,h),startAngle:y,endAngle:m})}else if("image"===t){var x=e;x.start,x.end,v=u(x,["start","end"]);a=l(l({},v),{start:h,end:d,src:e.src})}else if("line"===t){var O=e;O.start,O.end,v=u(O,["start","end"]);a=l(l({},v),{start:h,end:d,text:Object(b.s)(e,"text",null)})}else if("region"===t){var j=e;j.start,j.end,v=u(j,["start","end"]);a=l(l({},v),{start:h,end:d})}else if("text"===t){var w=this.view.getData(),C=e,S=(C.position,C.content),E=(v=u(C,["position","content"]),S);Object(b.I)(S)&&(E=S(w)),a=l(l(l({},p),v),{content:E})}else if("dataMarker"===t){var M=e,k=(M.position,M.point),P=M.line,A=M.text,I=M.autoAdjust,F=M.direction;v=u(M,["position","point","line","text","autoAdjust","direction"]);a=l(l(l({},v),p),{coordinateBBox:this.getCoordinateBBox(),point:k,line:P,text:A,autoAdjust:I,direction:F})}else if("dataRegion"===t){var T=e,L=T.start,N=T.end,D=T.region,B=(A=T.text,T.lineLength);v=u(T,["start","end","region","text","lineLength"]);a=l(l({},v),{points:this.getRegionPoints(L,N),region:D,text:A,lineLength:B})}else if("regionFilter"===t){var R=e,_=(R.start,R.end,R.apply),z=R.color,V=(v=u(R,["start","end","apply","color"]),this.view.geometries),H=[],K=function t(e){e&&(e.isGroup()?e.getChildren().forEach((function(e){return t(e)})):H.push(e))};Object(b.j)(V,(function(t){_?Object(b.f)(_,t.type)&&Object(b.j)(t.elements,(function(t){K(t.shape)})):Object(b.j)(t.elements,(function(t){K(t.shape)}))})),a=l(l({},v),{color:z,shapes:H,start:h,end:d})}else if("shape"===t){var Y=e,G=Y.render,W=u(Y,["render"]);a=l(l({},W),{render:function(t){if(Object(b.I)(e.render))return G(t,r.view,{parsePosition:r.parsePosition.bind(r)})}})}else if("html"===t){var X=e,q=X.html;X.position,W=u(X,["html","position"]);a=l(l(l({},W),p),{parent:o.get("el").parentNode,html:function(t){return Object(b.I)(q)?q(t,r.view):q}})}var U=Object(b.h)({},n,l(l({},a),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(U.container=this.getComponentContainer(U)),U.animate=this.view.getOptions().animate&&U.animate&&Object(b.s)(e,"animate",U.animate),U.animateOption=Object(b.h)({},Pn,U.animateOption,e.animateOption),U},e.prototype.isTop=function(t){return Object(b.s)(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(b.s)(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),i=this.getAnnotationCfg(n,t,r);i&&Ot(i,["container"]),e.component.update(l(l({},i||{}),{visible:!!i})),Object(b.A)(oc,t.type)&&e.component.render()}else(e=this.createAnnotation(t))&&(e.component.init(),Object(b.A)(oc,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){Object(b.m)(e.option,(function(t){return r===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(r))})),n},e.prototype.getCacheKey=function(t){return t},e}(Cn);function cc(t,e){var n=Object(b.h)({},Object(b.s)(t,["components","axis","common"]),Object(b.s)(t,["components","axis",e]));return Object(b.s)(n,["grid"],{})}function sc(t,e,n,r){var i=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var c=o.value;if(r)i.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]});else if(a){var s=(e.value+c)/2;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})]})}return o}),o[0]),i}function lc(t,e,n,r,i){var o=e.values.length,a=[],c=n.getTicks();return c.reduce((function(e,n){var c=e?e.value:n.value,s=n.value,l=(c+s)/2;return"x"===i?a.push({points:[t.convert({x:r?s:l,y:0}),t.convert({x:r?s:l,y:1})]}):a.push({points:Object(b.W)(Array(o+1),(function(e,n){return t.convert({x:n/o,y:r?s:l})}))}),n}),c[0]),a}function uc(t,e){var n=Object(b.s)(e,"grid");if(null===n)return!1;var r=Object(b.s)(t,"grid");return!(void 0===n&&null===r)}var fc=["container"],hc=l(l({},Pn),{appear:null}),dc=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(v.BG).addGroup(),n.gridForeContainer=n.view.getLayer(v.FORE).addGroup(),n.axisContainer=n.view.getLayer(v.BG).addGroup(),n.axisForeContainer=n.view.getLayer(v.FORE).addGroup(),n}return s(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"axis"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this,e=this.view.getCoordinate();Object(b.j)(this.getComponents(),(function(n){var r,i=n.component,o=n.direction,a=n.type,c=n.extra,s=c.dim,l=c.scale,u=c.alignTick;if(a===m.AXIS)e.isPolar?"x"===s?r=e.isTransposed?Lt(e,o):_t(e):"y"===s&&(r=e.isTransposed?_t(e):Lt(e,o)):r=Lt(e,o);else if(a===m.GRID)if(e.isPolar){r={items:e.isTransposed?"x"===s?lc(e,t.view.getYScales()[0],l,u,s):sc(e,l,s,u):"x"===s?sc(e,l,s,u):lc(e,t.view.getXScale(),l,u,s),center:t.view.getCoordinate().getCenter()}}else r={items:sc(e,l,s,u)};i.update(r)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,r){t.has(r)?e.set(r,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=zt(this.option,e.field);if(!1!==n){var r=Vt(n,y.BOTTOM),i=v.BG,o=this.view.getCoordinate(),a=this.getId("axis",e.field),c=this.getId("grid",e.field);if(o.isRect){if(s=this.cache.get(a))Ot(u=this.getLineAxisCfg(e,n,r),fc),s.component.update(u),t.set(a,s);else s=this.createLineAxis(e,n,i,r,"x"),this.cache.set(a,s),t.set(a,s);if(l=this.cache.get(c))Ot(u=this.getLineGridCfg(e,n,r,"x"),fc),l.component.update(u),t.set(c,l);else(l=this.createLineGrid(e,n,i,r,"x"))&&(this.cache.set(c,l),t.set(c,l))}else if(o.isPolar){var s,l;if(s=this.cache.get(a)){Ot(u=o.isTransposed?this.getLineAxisCfg(e,n,y.RADIUS):this.getCircleAxisCfg(e,n,r),fc),s.component.update(u),t.set(a,s)}else{if(o.isTransposed){if(Object(b.S)(n))return;s=this.createLineAxis(e,n,i,y.RADIUS,"x")}else s=this.createCircleAxis(e,n,i,r,"x");this.cache.set(a,s),t.set(a,s)}if(l=this.cache.get(c)){var u;Ot(u=o.isTransposed?this.getCircleGridCfg(e,n,y.RADIUS,"x"):this.getLineGridCfg(e,n,y.CIRCLE,"x"),fc),l.component.update(u),t.set(c,l)}else{if(o.isTransposed){if(Object(b.S)(n))return;l=this.createCircleGrid(e,n,i,y.RADIUS,"x")}else l=this.createLineGrid(e,n,i,y.CIRCLE,"x");l&&(this.cache.set(c,l),t.set(c,l))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(b.j)(n,(function(n,r){if(n&&!n.isIdentity){var i=n.field,o=zt(e.option,i);if(!1!==o){var a=v.BG,c=e.getId("axis",i),s=e.getId("grid",i),l=e.view.getCoordinate();if(l.isRect){var u=Vt(o,0===r?y.LEFT:y.RIGHT);if(f=e.cache.get(c))Ot(d=e.getLineAxisCfg(n,o,u),fc),f.component.update(d),t.set(c,f);else f=e.createLineAxis(n,o,a,u,"y"),e.cache.set(c,f),t.set(c,f);if(h=e.cache.get(s))Ot(d=e.getLineGridCfg(n,o,u,"y"),fc),h.component.update(d),t.set(s,h);else(h=e.createLineGrid(n,o,a,u,"y"))&&(e.cache.set(s,h),t.set(s,h))}else if(l.isPolar){var f,h;if(f=e.cache.get(c)){Ot(d=l.isTransposed?e.getCircleAxisCfg(n,o,y.CIRCLE):e.getLineAxisCfg(n,o,y.RADIUS),fc),f.component.update(d),t.set(c,f)}else{if(l.isTransposed){if(Object(b.S)(o))return;f=e.createCircleAxis(n,o,a,y.CIRCLE,"y")}else f=e.createLineAxis(n,o,a,y.RADIUS,"y");e.cache.set(c,f),t.set(c,f)}if(h=e.cache.get(s)){var d;Ot(d=l.isTransposed?e.getLineGridCfg(n,o,y.CIRCLE,"y"):e.getCircleGridCfg(n,o,y.RADIUS,"y"),fc),h.component.update(d),t.set(s,h)}else{if(l.isTransposed){if(Object(b.S)(o))return;h=e.createLineGrid(n,o,a,y.CIRCLE,"y")}else h=e.createCircleGrid(n,o,a,y.RADIUS,"y");h&&(e.cache.set(s,h),t.set(s,h))}}}}}))},e.prototype.createLineAxis=function(t,e,n,r,i){var o={component:new at(this.getLineAxisCfg(t,e,r)),layer:n,direction:r===y.RADIUS?y.NONE:r,type:m.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,r,i){var o=this.getLineGridCfg(t,e,r,i);if(o){var a={component:new st(o),layer:n,direction:y.NONE,type:m.GRID,extra:{dim:i,scale:t,alignTick:Object(b.s)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,r,i){var o={component:new ct(this.getCircleAxisCfg(t,e,r)),layer:n,direction:r,type:m.AXIS,extra:{dim:i,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,r,i){var o=this.getCircleGridCfg(t,e,r,i);if(o){var a={component:new lt(o),layer:n,direction:y.NONE,type:m.GRID,extra:{dim:i,scale:t,alignTick:Object(b.s)(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var r=Object(b.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=Lt(i,n),a=Ht(t,e),c=Bt(this.view.getTheme(),n),s=Object(b.s)(e,["title"])?Object(b.h)({title:{style:{text:a}}},{title:Rt(this.view.getTheme(),n,e.title)},e):e,u=Object(b.h)(l(l({container:r},o),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:i.isPolar?-1*Dt(o,i.getCenter()):Dt(o,i.getCenter()),theme:c}),c,s),f=this.getAnimateCfg(u),h=f.animate,d=f.animateOption;u.animateOption=d,u.animate=h;var p=Nt(o),g=Object(b.s)(u,"verticalLimitLength",p?1/3:.5);if(g<=1){var v=this.view.getCanvas().get("width"),y=this.view.getCanvas().get("height");u.verticalLimitLength=g*(p?v:y)}return u},e.prototype.getLineGridCfg=function(t,e,n,r){if(uc(Bt(this.view.getTheme(),n),e)){var i=cc(this.view.getTheme(),n),o=Object(b.h)({container:Object(b.s)(e,["top"])?this.gridForeContainer:this.gridContainer},i,Object(b.s)(e,"grid"),this.getAnimateCfg(e));return o.items=sc(this.view.getCoordinate(),t,r,Object(b.s)(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var r=Object(b.s)(e,["top"])?this.axisForeContainer:this.axisContainer,i=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(i.endAngle-i.startAngle)!==2*Math.PI||o.pop();var a=Ht(t,e),c=Bt(this.view.getTheme(),y.CIRCLE),s=Object(b.s)(e,["title"])?Object(b.h)({title:{style:{text:a}}},{title:Rt(this.view.getTheme(),n,e.title)},e):e,u=Object(b.h)(l(l({container:r},_t(this.view.getCoordinate())),{ticks:o,verticalFactor:1,theme:c}),c,s),f=this.getAnimateCfg(u),h=f.animate,d=f.animateOption;return u.animate=h,u.animateOption=d,u},e.prototype.getCircleGridCfg=function(t,e,n,r){if(uc(Bt(this.view.getTheme(),n),e)){var i=cc(this.view.getTheme(),y.RADIUS),o=Object(b.h)({container:Object(b.s)(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},i,Object(b.s)(e,"grid"),this.getAnimateCfg(e)),a=Object(b.s)(o,"alignTick",!0),c="x"===r?this.view.getYScales()[0]:this.view.getXScale();return o.items=lc(this.view.getCoordinate(),c,t,a,r),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(b.s)(t,"animate"),animateOption:t&&t.animateOption?Object(b.h)({},hc,t.animateOption):hc}},e}(Cn);function pc(t,e,n){return n===y.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===y.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===y.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===y.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===y.TOP_LEFT||n===y.LEFT_TOP?[t.tl.x,t.tl.y]:n===y.TOP_RIGHT||n===y.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===y.BOTTOM_LEFT||n===y.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===y.BOTTOM_RIGHT||n===y.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function gc(t,e){return Object(b.D)(t)?!1!==t&&{}:Object(b.s)(t,[e],t)}function vc(t){return Object(b.s)(t,"position",y.BOTTOM)}var yc=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(v.FORE).addGroup(),n}return s(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"legend"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.render=function(){this.update()},e.prototype.layout=function(){var t=this;this.layoutBBox=this.view.viewBBox,Object(b.j)(this.components,(function(e){var n=e.component,r=e.direction,i=sr(r),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(i,o,a),s=n.get("maxWidth"),l=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,s||0),maxHeight:Math.min(c.maxHeight,l||0)});var u=n.get("padding"),f=n.getLayoutBBox(),h=new wt(f.x,f.y,f.width,f.height).expand(u),d=p(pc(t.view.viewBBox,h,r),2),g=d[0],v=d[1],y=p(pc(t.layoutBBox,h,r),2),m=y[0],b=y[1],x=0,O=0;r.startsWith("top")||r.startsWith("bottom")?(x=g,O=b):(x=m,O=v),n.setLocation({x:x+u[3],y:O+u[0]}),t.layoutBBox=t.layoutBBox.cut(h,r)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={};if(Object(b.s)(this.option,"custom")){var n="global-custom",r=this.getComponentById(n);if(r){var i=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Ot(i,["container"]),r.component.update(i),e[n]=!0}else{var o=this.createCustomLegend(void 0,void 0,void 0,this.option);if(o){o.init();var a=v.FORE,c=vc(this.option);this.components.push({id:n,component:o,layer:a,direction:c,type:m.LEGEND,extra:void 0}),e[n]=!0}}}else this.loopLegends((function(n,r,i){var o=t.getId(i.field),a=t.getComponentById(o);if(a){var c=void 0,s=gc(t.option,i.field);!1!==s&&(Object(b.s)(s,"custom")?c=t.getCategoryCfg(n,r,i,s,!0):i.isLinear?c=t.getContinuousCfg(n,r,i,s):i.isCategory&&(c=t.getCategoryCfg(n,r,i,s))),c&&(Ot(c,["container"]),a.direction=vc(s),a.component.update(c),e[o]=!0)}else{var l=t.createFieldLegend(n,r,i);l&&(l.component.init(),t.components.push(l),e[o]=!0)}}));var s=[];Object(b.j)(this.getComponents(),(function(t){e[t.id]?s.push(t):t.component.destroy()})),this.components=s},e.prototype.clear=function(){t.prototype.clear.call(this),this.container.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.container.remove(!0)},e.prototype.getGeometries=function(t){var e=this,n=t.geometries;return Object(b.j)(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){if(this.view.getRootView()===this.view){var e=this.getGeometries(this.view),n={};Object(b.j)(e,(function(e){var r=e.getGroupAttributes();Object(b.j)(r,(function(r){var i=r.getScale(r.type);i&&"identity"!==i.type&&!n[i.field]&&(t(e,r,i),n[i.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,i=gc(this.option,n.field),o=v.FORE,a=vc(i);if(!1!==i&&(Object(b.s)(i,"custom")?r=this.createCustomLegend(t,e,n,i):n.isLinear?r=this.createContinuousLegend(t,e,n,i):n.isCategory&&(r=this.createCategoryLegend(t,e,n,i))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:o,direction:a,type:m.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r,!0);return new ut(i)},e.prototype.createContinuousLegend=function(t,e,n,r){var i=this.getContinuousCfg(t,e,n,Ot(r,["value"]));return new ft(i)},e.prototype.createCategoryLegend=function(t,e,n,r){var i=this.getCategoryCfg(t,e,n,r);return new ut(i)},e.prototype.getContinuousCfg=function(t,e,n,r){var i=n.getTicks(),o=Object(b.m)(i,(function(t){return 0===t.value})),a=Object(b.m)(i,(function(t){return 1===t.value})),c=i.map((function(t){var r=t.value,i=t.tickValue,o=e.mapping(n.invert(r)).join("");return{value:i,attrValue:o,color:o,scaleValue:r}}));o||c.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||c.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),c.sort((function(t,e){return t.value-e.value}));var s={min:Object(b.z)(c).value,max:Object(b.U)(c).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(s.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(s.colors=c.map((function(t){return t.attrValue})));var l=this.container,u=sr(vc(r)),f=Object(b.s)(r,"title");return f&&(f=Object(b.h)({text:It(n)},f)),s.container=l,s.layout=u,s.title=f,s.animateOption=Pn,this.mergeLegendCfg(s,r,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,r,i){var o=this.container,a=Object(b.s)(r,"position",y.BOTTOM),c=ur(this.view.getTheme(),a),s=Object(b.s)(c,["marker"]),l=Object(b.s)(r,"marker"),u=sr(a),f=Object(b.s)(c,["pageNavigator"]),h=Object(b.s)(r,"pageNavigator"),d=i?function(t,e,n){return n.map((function(n,r){var i=e;Object(b.I)(i)&&(i=i(n.name,r,Object(b.h)({},t,n)));var o=Object(b.I)(n.marker)?n.marker(n.name,r,Object(b.h)({},t,n)):n.marker,a=Object(b.h)({},t,i,o);return cr(a),n.marker=a,n}))}(s,l,r.items):lr(this.view,t,e,s,l),p=Object(b.s)(r,"title");p&&(p=Object(b.h)({text:n?It(n):""},p));var g=Object(b.s)(r,"maxWidthRatio"),v=Object(b.s)(r,"maxHeightRatio"),m=this.getCategoryLegendSizeCfg(u,g,v);m.container=o,m.layout=u,m.items=d,m.title=p,m.animateOption=Pn,m.pageNavigator=Object(b.h)({},f,h);var x=this.mergeLegendCfg(m,r,a);x.reversed&&x.items.reverse();var O=Object(b.s)(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var r=n.split("-")[0],i=ur(this.view.getTheme(),r);return Object(b.h)({},i,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(b.m)(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=.25),void 0===n&&(n=.25);var r=this.view.viewBBox,i=r.width,o=r.height;return"vertical"===t?{maxWidth:i*e,maxHeight:o}:{maxWidth:i,maxHeight:o*n}},e}(Cn),mc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=b.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=p(t,2),r=e[0],i=e[1];n.start=r,n.end=i,n.changeViewData(r,i)},n.container=n.view.getLayer(v.FORE).addGroup(),n.onChangeFn=Object(b.qb)(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(x.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(x.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return s(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"slider"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(x.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(x.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().slider;var t=this.getSliderCfg(),e=t.start,n=t.end;Object(b.K)(this.start)&&(this.start=e,this.end=n);var r=this.view.getOptions().data;this.option&&!Object(b.G)(r)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),r=p(n,4),i=r[0],o=(r[1],r[2],r[3]),a=this.slider.component.getLayoutBBox(),c=new wt(a.x,a.y,Math.min(a.width,e),a.height).expand(n),s=this.getMinMaxText(this.start,this.end),u=s.minText,f=s.maxText,h=p(pc(this.view.viewBBox,c,y.BOTTOM),2),d=(h[0],h[1]),g=p(pc(this.view.coordinateBBox,c,y.BOTTOM),2),v=g[0];g[1];this.slider.component.update(l(l({},this.getSliderCfg()),{x:v+o,y:d+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:f})),this.view.viewBBox=this.view.viewBBox.cut(c,y.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new ot.Slider(l({container:this.container},t));return e.init(),{component:e,layer:v.FORE,direction:y.BOTTOM,type:m.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,r=e.maxText;t=l(l({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:r})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Object(b.O)(this.option)){var e=l({data:this.getData()},Object(b.s)(this.option,"trendCfg",{}));t=Object(b.h)({},t,this.getThemeOptions(),this.option),t=l(l({},t),{trendCfg:e})}return t.start=Object(b.c)(Math.min(Object(b.K)(t.start)?0:t.start,Object(b.K)(t.end)?1:t.end),0,1),t.end=Object(b.c)(Math.max(Object(b.K)(t.start)?0:t.start,Object(b.K)(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=p(this.view.getYScales(),1)[0],n=this.view.getGroupScales();if(n.length){var r=n[0],i=r.field,o=r.ticks;return t.reduce((function(t,n){return n[i]===o[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(b.s)(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(b.yb)(n,r.field);r.isLinear&&(i=i.sort());var o=i,a=Object(b.mb)(n);if(!r||!a)return{};var c=Object(b.mb)(o),s=Math.round(t*(c-1)),l=Math.round(e*(c-1)),u=Object(b.s)(o,[s]),f=Object(b.s)(o,[l]),h=this.getSliderCfg().formatter;return h&&(u=h(u,n[s],s),f=h(f,n[l],l)),{minText:u,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,r=this.view.getXScale(),i=Object(b.mb)(n);if(r&&i){var o=Object(b.yb)(n,r.field),a=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,c=a,s=Object(b.mb)(c),l=Math.round(t*(s-1)),u=Math.round(e*(s-1));this.view.filter(r.field,(function(t,e){var n=c.indexOf(t);return!(n>-1)||xt(n,l,u)})),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}(Cn),bc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=b.fb,n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,r=n.getValidScrollbarCfg().animate;n.ratio=Object(b.c)(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(v.FORE).addGroup(),n.onChangeFn=Object(b.qb)(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(x.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(x.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return s(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(x.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(x.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"),r=this.scrollbar.component.getLayoutBBox(),i=new wt(r.x,r.y,Math.min(r.width,e),r.height).expand(n),o=this.getScrollbarComponentCfg(),a=void 0,c=void 0;if(o.isHorizontal){var s=p(pc(this.view.viewBBox,i,y.BOTTOM),2),u=(s[0],s[1]),f=p(pc(this.view.coordinateBBox,i,y.BOTTOM),2),h=f[0];f[1];a=h,c=u}else{var d=p(pc(this.view.viewBBox,i,y.RIGHT),2),g=(d[0],u=d[1],p(pc(this.view.viewBBox,i,y.RIGHT),2));h=g[0],g[1];a=h,c=u}a+=n[3],c+=n[0],this.trackLen?this.scrollbar.component.update(l(l({},o),{x:a,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(l(l({},o),{x:a,y:c})),this.view.viewBBox=this.view.viewBBox.cut(i,o.isHorizontal?y.BOTTOM:y.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 Object(b.s)(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(b.s)(this.view.getTheme(),["components","scrollbar"]),n=t||{},r=n.thumbHighlightColor,i=u(n,["thumbHighlightColor"]);return{default:Object(b.h)({},Object(b.s)(e,["default","style"],{}),i),hover:Object(b.h)({},Object(b.s)(e,["hover","style"],{}),{thumbColor:r})}},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)*Object(b.c)(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=p(t,2),i=r[0],o=r[1],a="vertical"!==this.getValidScrollbarCfg().type,c=Object(b.yb)(this.data,this.xScaleCfg.field),s=this.view.getXScale().isLinear?c.sort((function(t,e){return Number(t)-Number(e)})):c,l=a?s:s.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=l.indexOf(t);return!(e>-1)||xt(e,i,o)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t="vertical"!==this.getValidScrollbarCfg().type,e=new ot.Scrollbar(l(l({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return e.init(),{component:e,layer:v.FORE,direction:t?y.BOTTOM:y.RIGHT,type:m.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?l(l({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):l({},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=Object(b.yb)(e,t.field);return Object(b.mb)(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,r=this.getValidScrollbarCfg(),i=r.type,o=r.padding,a=r.width,c=r.height,s=r.style,u="vertical"!==i,f=p(o,4),h=f[0],d=f[1],g=f[2],v=f[3],y=u?{x:e.minX+v,y:n.maxY-c-g}:{x:n.maxX-a-d,y:e.minY+h},m=this.getStep(),x=this.getCnt(),O=u?e.width-v-d:e.height-h-g,j=Math.max(O*Object(b.c)(m/x,0,1),20);return l(l({},this.getThemeOptions()),{x:y.x,y:y.y,size:u?c:a,isHorizontal:u,trackLen:O,thumbLen:j,thumbOffset:0,theme:this.getScrollbarTheme(s)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:32,width:8,height:8,padding:[0,0,0,0],animate:!0,style:{}};return Object(b.O)(this.option)&&(t=l(l({},t),this.option)),Object(b.O)(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=g([],p(n),!1).reverse()),n},e}(Cn),xc={fill:"#CCD6EC",opacity:.3};function Oc(t,e,n){var r,i,o,a,c,s,l=function(t,e,n){var r,i,o=un(t,e,n);try{for(var a=d(t.views),c=a.next();!c.done;c=a.next()){var s=c.value;o=o.concat(un(s,e,n))}}catch(l){r={error:l}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o}(t,e,n);if(l.length){l=Object(b.q)(l);try{for(var u=d(l),f=u.next();!f.done;f=u.next()){var h=f.value;try{for(var p=(o=void 0,d(h)),g=p.next();!g.done;g=p.next()){var v=g.value,y=v.mappingData,m=y.x,x=y.y;v.x=Object(b.C)(m)?m[m.length-1]:m,v.y=Object(b.C)(x)?x[x.length-1]:x}}catch(M){o={error:M}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(o)throw o.error}}}}catch(k){r={error:k}}finally{try{f&&!f.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}if(!1===n.shared&&l.length>1){var O=l[0],j=Math.abs(e.y-O[0].y);try{for(var w=d(l),C=w.next();!C.done;C=w.next()){var S=C.value,E=Math.abs(e.y-S[0].y);E<=j&&(O=S,j=E)}}catch(P){c={error:P}}finally{try{C&&!C.done&&(s=w.return)&&s.call(w)}finally{if(c)throw c.error}}l=[O]}return Object(b.ub)(Object(b.q)(l))}return[]}var jc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,r=e.getController("tooltip").getTooltipCfg(),i=Oc(e,{x:n.x,y:n.y},r);if(!Object(b.H)(i,this.items)&&(this.items=i,i.length)){var o=e.getXScale().field,a=i[0].data[o],c=[],s=e.geometries;if(Object(b.j)(s,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){return t.getData()[o]===a}));c=c.concat(e)}})),c.length){var u=e.getCoordinate(),f=c[0].shape.getCanvasBBox(),h=c[0].shape.getCanvasBBox(),d=f;Object(b.j)(c,(function(t){var e=t.shape.getCanvasBBox();u.isTransposed?(e.minY<f.minY&&(f=e),e.maxY>h.maxY&&(h=e)):(e.minX<f.minX&&(f=e),e.maxX>h.maxX&&(h=e)),d.x=Math.min(e.minX,d.minX),d.y=Math.min(e.minY,d.minY),d.width=Math.max(e.maxX,d.maxX)-d.x,d.height=Math.max(e.maxY,d.maxY)-d.y}));var p=e.backgroundGroup,g=e.coordinateBBox,v=void 0;if(u.isRect){var y=e.getXScale(),m=t||{},x=m.appendRatio,O=m.appendWidth;Object(b.K)(O)&&(x=Object(b.K)(x)?y.isLinear?0:.25:x,O=u.isTransposed?x*h.height:x*f.width);var j=void 0,w=void 0,C=void 0,S=void 0;u.isTransposed?(j=g.minX,w=Math.min(h.minY,f.minY)-O,C=g.width,S=d.height+2*O):(j=Math.min(f.minX,h.minX)-O,w=g.minY,C=d.width+2*O,S=g.height),v=[["M",j,w],["L",j+C,w],["L",j+C,w+S],["L",j,w+S],["Z"]]}else{var E=Object(b.z)(c),M=Object(b.U)(c),k=mt(E.getModel(),u).startAngle,P=mt(M.getModel(),u).endAngle,A=u.getCenter(),I=u.getRadius(),F=u.innerRadius*I;v=vt(A.x,A.y,I,k,P,F)}if(this.regionPath)this.regionPath.attr("path",v),this.regionPath.show();else{var T=Object(b.s)(t,"style",xc);this.regionPath=p.addShape({type:"path",name:"active-region",capture:!1,attrs:l(l({},T),{path:v})})}}}},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}(Wt),wc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return s(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view;if(!n.isTooltipLocked()){var r=this.timeStamp,i=+new Date;if(i-r>Object(b.s)(t.view.getOptions(),"tooltip.showDelay",16)){var o=this.location,a={x:e.x,y:e.y};o&&Object(b.H)(o,a)||this.showTooltip(n,a),this.timeStamp=i,this.location=a}}},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}(Wt),Cc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.showTooltip=function(t,e){var n=je(t);Object(b.j)(n,(function(n){var r=we(t,n,e);n.showTooltip(r)}))},e.prototype.hideTooltip=function(t){var e=je(t);Object(b.j)(e,(function(t){t.hideTooltip()}))},e}(wc),Sc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return s(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,i={x:t.x,y:t.y};r&&Object(b.H)(r,i)||this.showTooltip(i),this.timeStamp=n,this.location=i}},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(l({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,r={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},i=e.getTheme(),o=Object(b.s)(i,["components","tooltip","domStyles"],{}),a=new ht({parent:n.get("el").parentNode,region:r,visible:!1,crosshairs:null,domStyles:l({},Object(b.h)({},o,(t={},t[ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%"},t[ot.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all"},t)))});a.init(),a.setCapture(!1),this.tooltip=a},e}(Wt),Ec=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return s(e,t),e.prototype.hasState=function(t){return t.hasState(this.stateName)},e.prototype.setElementState=function(t,e){t.setState(this.stateName,e)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.clear=function(){var t=this.context.view;this.clearViewState(t)},e.prototype.clearViewState=function(t){var e=this,n=ge(t,this.stateName);Object(b.j)(n,(function(t){e.setElementState(t,!1)}))},e}(Wt);function Mc(t){return Object(b.s)(t.get("delegateObject"),"item")}var kc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return s(e,t),e.prototype.isItemIgnore=function(t,e){return!!this.ignoreListItemStates.filter((function(n){return e.hasState(t,n)})).length},e.prototype.setStateByComponent=function(t,e,n){var r=this.context.view,i=t.get("field"),o=pe(r);this.setElementsStateByItem(o,i,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var r=Se(this.context.view,e),i=ve(t,e);return!Object(b.K)(i)&&n.name===r.getText(i)},e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;Object(b.j)(t,(function(t){i.isMathItem(t,e,n)&&t.setState(i.stateName,r)}))},e.prototype.setStateEnable=function(t){var e=ae(this.context);if(e)se(this.context)&&this.setStateByElement(e,t);else{var n=ce(this.context);if(le(n)){var r=n.item,i=n.component;if(r&&i&&!this.isItemIgnore(r,i)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&Mc(o.fromShape)===Mc(o.toShape))return;this.setStateByComponent(i,r,t)}}}},e.prototype.toggle=function(){var t=ae(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Ec),Pc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.active=function(){this.setState()},e}(kc),Ac=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return s(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,r){var i={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:l(l({},Object(b.h)({},i,Object(b.I)(r)?r(i,e):r)),{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 o=ve(t,i.field);if(!this.cache[o]){var a=function(t,e,n){return pe(t).filter((function(t){return ve(t,e)===n}))}(r,i.field,o),c=this.linkGroup.addGroup();this.cache[o]=c;var s=a.length;Object(b.j)(a,(function(t,r){if(r<s-1){var i=a[r+1];n.addLinkShape(c,t,i,e)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=ve(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(t){var e=this.context;this.linkGroup||(this.linkGroup=e.view.foregroundGroup.addGroup({id:"link-by-color-group",capture:!1}));var n=ae(e);n&&this.linkByElement(n,null===t||void 0===t?void 0:t.style)},e.prototype.unlink=function(){var t=ae(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(Wt),Ic=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return s(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(fe(this.context))t=he(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var r={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)};t=ye(this.context.view,r)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=pe(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,r=this.context.view,i=je(r),o=t.map((function(t){return t.getModel().data})),a=r.getXScale().field,c=r.getYScales()[0].field;Object(b.j)(i,(function(t){var r=pe(t),i=r.filter((function(t){var e=t.getModel().data;return Ce(o,e,a,c)}));n.setElementsState(i,e,r)}))},e.prototype.setSiblingsState=function(t){var e=this,n=je(this.context.view);fe(this.context)&&Object(b.j)(n,(function(n){var r=pe(n),i=de(e.context,n,10);i&&i.length?e.setElementsState(i,t,r):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var r=this;Object(b.j)(n,(function(n){t.includes(n)?r.setElementState(n,e):r.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=je(e);Object(b.j)(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(Ec),Fc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.active=function(){this.setState()},e}(Ic),Tc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setStateEnable=function(t){var e=ae(this.context);if(e){if(!se(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=ae(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Ec),Lc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.active=function(){this.setState()},e}(Tc);function Nc(t){var e=pe(t);Object(b.j)(e,(function(t){t.hasState("active")&&t.setState("active",!1),t.hasState("inactive")&&t.setState("inactive",!1)}))}function Dc(t,e,n){Object(b.j)(t,(function(t){e(t)?(t.hasState("inactive")&&t.setState("inactive",!1),t.setState("active",n)):(t.hasState("active")&&t.setState("active",!1),t.setState("inactive",n))}))}var Bc,Rc=w.INACTIVE,_c=w.ACTIVE,zc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=_c,e}return s(e,t),e.prototype.setElementsStateByItem=function(t,e,n,r){var i=this;this.setHighlightBy(t,(function(t){return i.isMathItem(t,e,n)}),r)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Rc)&&t.setState(Rc,!1),t.setState(_c,!0)):t.hasState(_c)||t.setState(Rc,!0)},e.prototype.setHighlightBy=function(t,e,n){var r=this;if(n)Object(b.j)(t,(function(t){r.setElementHighlight(t,e)}));else{var i=ge(this.context.view,_c),o=!0;Object(b.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(b.j)(t,(function(t){e(t)&&(t.hasState(_c)&&t.setState(_c,!1),t.setState(Rc,!0))}))}},e.prototype.setElementState=function(t,e){var n=pe(this.context.view);this.setHighlightBy(n,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){Nc(this.context.view)},e}(kc),Vc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=t.geometry.getAttribute("color");if(r){var i=n.getScaleByField(r.getFields()[0]),o=ve(t,i.field),a=pe(n),c=a.filter((function(t){return ve(t,i.field)===o}));this.setHighlightBy(a,(function(t){return c.includes(t)}),e)}},e}(zc),Hc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(Rc)&&t.setState(Rc,!1),t.setState(_c,!0)):(t.setState(Rc,!0),t.hasState(_c)&&t.setState(_c,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,r=n.getXScale(),i=ve(t,r.field),o=pe(n),a=o.filter((function(t){return ve(t,r.field)===i}));this.setHighlightBy(o,(function(t){return a.includes(t)}),e)},e.prototype.toggle=function(){var t=ae(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(zc);!function(t){t.BEFORE_HIGHLIGHT="element-range-highlight:beforehighlight",t.AFTER_HIGHLIGHT="element-range-highlight:afterhighlight",t.BEFORE_CLEAR="element-range-highlight:beforeclear",t.AFTER_CLEAR="element-range-highlight:afterclear"}(Bc||(Bc={}));var Kc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.clearViewState=function(t){Nc(t)},e.prototype.highlight=function(){var t=this.context,e=t.view,n={view:e,event:t.event,highlightElements:this.getIntersectElements()};e.emit(Bc.BEFORE_HIGHLIGHT,gn.fromData(e,Bc.BEFORE_HIGHLIGHT,n)),this.setState(),e.emit(Bc.AFTER_HIGHLIGHT,gn.fromData(e,Bc.AFTER_HIGHLIGHT,n))},e.prototype.clear=function(){var e=this.context.view;e.emit(Bc.BEFORE_CLEAR,gn.fromData(e,Bc.BEFORE_CLEAR,{})),t.prototype.clear.call(this),e.emit(Bc.AFTER_CLEAR,gn.fromData(e,Bc.AFTER_CLEAR,{}))},e.prototype.setElementsState=function(t,e,n){Dc(n,(function(e){return t.indexOf(e)>=0}),e)},e}(Ic),Yc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){Dc(pe(this.context.view),(function(e){return t===e}),e)},e.prototype.clear=function(){Nc(this.context.view)},e}(Tc),Gc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return s(e,t),e.prototype.selected=function(){this.setState()},e}(Ic),Wc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return s(e,t),e.prototype.selected=function(){this.setState()},e}(kc),Xc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return s(e,t),e.prototype.selected=function(){this.setState()},e}(Tc),qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return s(e,t),e.prototype.getTriggerListInfo=function(){var t=ce(this.context),e=null;return le(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=be(this.context.view),n=[];return Object(b.j)(e,(function(e){e.isList()&&t.allowSetStateByElement(e)&&n.push(e)})),n},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(b.j)(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=Se(this.context.view,e);return r&&r.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=Se(this.context.view,r),o=ve(e,r),a=i.getText(o);this.setItemsState(t,a,n)},e.prototype.setStateEnable=function(t){var e=this,n=ae(this.context);if(n){var r=this.getAllowComponents();Object(b.j)(r,(function(r){e.setStateByElement(r,n,t)}))}else{var i=ce(this.context);if(le(i)){var o=i.item,a=i.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var r=this,i=t.getItems();Object(b.j)(i,(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}(Wt),Uc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return s(e,t),e.prototype.active=function(){this.setState()},e}(qc);var $c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e.ignoreItemStates=["unchecked"],e}return s(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)Object(b.j)(r,(function(n){e(n)?(t.hasState(n,"inactive")&&t.setItemState(n,"inactive",!1),t.setItemState(n,"active",!0)):t.hasState(n,"active")||t.setItemState(n,"inactive",!0)}));else{var i=t.getItemsByState("active"),o=!0;Object(b.j)(i,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(b.j)(r,(function(n){e(n)&&(t.hasState(n,"active")&&t.setItemState(n,"active",!1),t.setItemState(n,"inactive",!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)!function(t){var e=t.getItems();Object(b.j)(e,(function(e){t.hasState(e,"active")&&t.setItemState(e,"active",!1),t.hasState(e,"inactive")&&t.setItemState(e,"inactive",!1)}))}(t.list);else{var e=this.getAllowComponents();Object(b.j)(e,(function(t){t.clearItemsState("active"),t.clearItemsState("inactive")}))}},e}(qc),Zc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return s(e,t),e.prototype.selected=function(){this.setState()},e}(qc),Qc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return s(e,t),e.prototype.unchecked=function(){this.setState()},e}(qc),Jc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="checked",e}return s(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&&Object(b.j)(r,(function(n){e(n)?(t.hasState(n,"unchecked")&&t.setItemState(n,"unchecked",!1),t.setItemState(n,"checked",!0)):t.hasState(n,"checked")||t.setItemState(n,"unchecked",!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item;!Object(b.nb)(e.getItems(),(function(t){return e.hasState(t,"unchecked")}))||e.hasState(n,"unchecked")?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(b.j)(t,(function(t){t.clearItemsState("checked"),t.clearItemsState("unchecked")}))},e}(qc),ts=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.toggle=function(){var t,e,n,r,i,o,a,c,s=this.getTriggerListInfo();if(null===s||void 0===s?void 0:s.item){var l=s.list,u=s.item,f=l.getItems(),h=f.filter((function(t){return!l.hasState(t,"unchecked")})),p=f.filter((function(t){return l.hasState(t,"unchecked")})),g=h[0];if(f.length===h.length)try{for(var v=d(f),y=v.next();!y.done;y=v.next()){var m=y.value;l.setItemState(m,"unchecked",m.id!==u.id)}}catch(S){t={error:S}}finally{try{y&&!y.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}else if(f.length-p.length===1)if(g.id===u.id)try{for(var b=d(f),x=b.next();!x.done;x=b.next()){m=x.value;l.setItemState(m,"unchecked",!1)}}catch(E){n={error:E}}finally{try{x&&!x.done&&(r=b.return)&&r.call(b)}finally{if(n)throw n.error}}else try{for(var O=d(f),j=O.next();!j.done;j=O.next()){m=j.value;l.setItemState(m,"unchecked",m.id!==u.id)}}catch(M){i={error:M}}finally{try{j&&!j.done&&(o=O.return)&&o.call(O)}finally{if(i)throw i.error}}else try{for(var w=d(f),C=w.next();!C.done;C=w.next()){m=C.value;l.setItemState(m,"unchecked",m.id!==u.id)}}catch(k){a={error:k}}finally{try{C&&!C.done&&(c=w.return)&&c.call(w)}finally{if(a)throw a.error}}}},e}(qc),es="legend-radio-tip",ns=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return s(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,"showRadio",!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context.event,e=this.timeStamp,n=+new Date,r=this.context.event.target;if(n-e>16&&"legend-item-radio"===r.get("name")){var i=this.location,o={x:t.x,y:t.y};this.timeStamp=n,this.location=o,i&&Object(b.H)(i,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event.target;if(n&&n.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),i=r.x,o=r.y;this.tooltip.update(l(l({title:n.get("tip")},t),{x:t.x+i,y:t.y+o})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=((t={})[ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[ot.TOOLTIP_CSS_CONST.TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(es)&&document.body.removeChild(document.getElementById(es));var n=new ht({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:es});n.init(),n.setCapture(!1),this.tooltip=n},e}(qc),rs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShape=null,e.points=[],e.starting=!1,e.moving=!1,e.preMovePoint=null,e.shapeType="path",e}return s(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,r=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:r.x,y:r.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs();return t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:l({fill:"#C5D4EB",opacity:.3},e)})},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null===t||void 0===t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,r=t.y-e.y,i=this.points;Object(b.j)(i,(function(t){t.x+=n,t.y+=r})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(b.h)({},this.getMaskAttrs(),t);this.maskShape.attr(e)},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.maskShape&&this.maskShape.set("capture",!0)},e.prototype.hide=function(){this.maskShape&&(this.maskShape.hide(),this.emitEvent("hide"))},e.prototype.resize=function(){this.starting&&this.maskShape&&(this.points.push(this.getCurrentPoint()),this.updateMask(),this.emitEvent("change"))},e.prototype.destroy=function(){this.points=[],this.maskShape&&this.maskShape.remove(),this.maskShape=null,this.preMovePoint=null,t.prototype.destroy.call(this)},e}(Wt),is=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return s(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(b.U)(this.points),n=0,r=0,i=0;if(t.length){var o=t[0];n=xe(o,e)/2,r=(e.x+o.x)/2,i=(e.y+o.y)/2}return{x:r,y:i,r:n}},e}(rs),os=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return s(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(b.z)(t),end:Object(b.U)(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}(rs);function as(t){t.x=Object(b.c)(t.x,0,1),t.y=Object(b.c)(t.y,0,1)}var cs,ss=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return s(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,r=this.dim,i=this.context.view.getCoordinate(),o=i.invert(Object(b.z)(n)),a=i.invert(Object(b.U)(n));return this.inPlot&&(as(o),as(a)),"x"===r?(t=i.convert({x:o.x,y:0}),e=i.convert({x:a.x,y:1})):(t=i.convert({x:0,y:o.y}),e=i.convert({x:1,y:a.y})),{start:t,end:e}},e}(os),ls=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(b.j)(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}(rs),us=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.getMaskPath=function(){return function(t,e){if(t.length<=2)return ee(t,!1);var n=t[0],r=[];Object(b.j)(t,(function(t){r.push(t.x),r.push(t.y)}));var i=te(r,e,null);return i.unshift(["M",n.x,n.y]),i}(this.points,!0)},e}(ls),fs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.setCursor=function(t){this.context.view.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(Wt),hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.filterView=function(t,e,n){var r=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(b.j)(t.views,(function(t){r.filterView(t,e,n)}))},e.prototype.filter=function(){var t=ce(this.context);if(t){var e=this.context.view,n=t.component,r=n.get("field");if(le(t)){if(r){var i=n.getItemsByState("unchecked"),o=Se(e,r),a=i.map((function(t){return t.name}));a.length?this.filterView(e,r,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,r,null),e.render(!0)}}else if(ue(t)){var c=p(n.getValue(),2),s=c[0],l=c[1];this.filterView(e,r,(function(t){return t>=s&&t<=l})),e.render(!0)}}},e}(Wt);function ds(t,e,n,r){var i=Math.min(n[e],r[e]),o=Math.max(n[e],r[e]),a=p(t.range,2),c=a[0],s=a[1];if(i<c&&(i=c),o>s&&(o=s),i===s&&o===s)return null;var l=t.invert(i),u=t.invert(o);if(t.isCategory){var f=t.values.indexOf(l),h=t.values.indexOf(u),d=t.values.slice(f,h+1);return function(t){return d.includes(t)}}return function(t){return t>=l&&t<=u}}!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"}(cs||(cs={}));var ps=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 s(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(fe(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 r=this.context,i=r.view,o={view:i,event:r.event,dims:this.dims};i.emit(cs.BEFORE_FILTER,gn.fromData(i,cs.BEFORE_FILTER,o));var a=i.getCoordinate(),c=a.invert(e),s=a.invert(t);if(this.hasDim("x")){var l=i.getXScale(),u=ds(l,"x",c,s);this.filterView(i,l.field,u)}if(this.hasDim("y")){var f=i.getYScales()[0];u=ds(f,"y",c,s);this.filterView(i,f.field,u)}this.reRender(i,{source:cs.FILTER}),i.emit(cs.AFTER_FILTER,gn.fromData(i,cs.AFTER_FILTER,o))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(cs.BEFORE_RESET,gn.fromData(t,cs.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:cs.RESET}),t.emit(cs.AFTER_RESET,gn.fromData(t,cs.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(Wt),gs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.filterView=function(t,e,n){var r=je(t);Object(b.j)(r,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=je(t);Object(b.j)(e,(function(t){t.render(!0)}))},e}(ps),vs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.filter=function(){var t=ce(this.context),e=this.context.view,n=pe(e);if(fe(this.context)){var r=he(this.context,10);r&&Object(b.j)(n,(function(t){r.includes(t)?t.show():t.hide()}))}else if(t){var i=t.component,o=i.get("field");if(le(t)){if(o){var a=i.getItemsByState("unchecked"),c=Se(e,o),s=a.map((function(t){return t.name}));Object(b.j)(n,(function(t){var e=ve(t,o),n=c.getText(e);s.indexOf(n)>=0?t.hide():t.show()}))}}else if(ue(t)){var l=p(i.getValue(),2),u=l[0],f=l[1];Object(b.j)(n,(function(t){var e=ve(t,o);e>=u&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=pe(this.context.view);Object(b.j)(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(Wt),ys=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return s(e,t),e.prototype.filter=function(){fe(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=he(this.context,10);if(e){var n=t.getXScale().field,r=t.getYScales()[0].field,i=e.map((function(t){return t.getModel().data})),o=je(t);Object(b.j)(o,(function(t){var e=pe(t);Object(b.j)(e,(function(t){var e=t.getModel().data;Ce(i,e,n,r)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=je(this.context.view);Object(b.j)(e,(function(e){var n=de(t.context,e,10),r=pe(e);n&&Object(b.j)(r,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=je(this.context.view);Object(b.j)(t,(function(t){var e=pe(t);Object(b.j)(e,(function(t){t.show()}))}))},e}(Wt),ms=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 s(e,t),e.prototype.getButtonCfg=function(){return Object(b.h)(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:l({text:t.text},t.textStyle)}).getBBox(),r=fn(t.padding),i=e.addShape({type:"rect",name:"button-rect",attrs:l({x:n.x-r[3],y:n.y-r[0],width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},t.style)});i.toBack(),e.on("mouseenter",(function(){i.attr(t.activeStyle)})),e.on("mouseleave",(function(){i.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=Q.a.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}(Wt),bs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return s(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}):xe(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}(Wt),xs=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 s(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(xe(t,e)>5&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var n=this.context.view,r=Q.a.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}(Wt),Os=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 s(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}(Wt),js=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return s(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(b.j)(e,(function(e){var n=t.getScale(e),r=n.min,i=n.max,o=n.values;t.startCache[e]={min:r,max:i,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),r=this.context.getCurrentPoint(),i=n.invert(e),o=n.invert(r),a=o.x-i.x,c=o.y-i.y,s=this.context.view,l=this.dims;Object(b.j)(l,(function(e){t.translateDim(e,{x:-1*a,y:-1*c})})),s.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],o=i.min,a=i.max,c=a-o,s=n[t]*c;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),r.scale(e.field,{nice:!1,min:o+s,max:a+s})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Os),ws=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return s(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(b.j)(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],o=i.max-i.min,a=e.min,c=e.max,s=n*o,l=a-s,u=c+s,f=(u-l)/o;u>l&&f<100&&f>.01&&r.scale(e.field,{nice:!1,min:a-s,max:c+s})},e}(Os);var Cs,Ss,Es=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,r=e.event;if(n.getOptions().scrollbar){var i=(null===t||void 0===t?void 0:t.wheelDelta)||1,o=n.getController("scrollbar"),a=n.getXScale(),c=n.getOptions().data,s=Object(b.mb)(Object(b.yb)(c,a.field)),l=Object(b.mb)(a.values),u=o.getValue(),f=Math.floor((s-l)*u)+(function(t){return t.gEvent.originalEvent.deltaY>0}(r)?i:-i),h=i/(s-l)/1e4,d=Object(b.c)(f/(s-l)+h,0,1);o.setValue(d)}},e}(Wt),Ms=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e.prototype.show=function(){var t=this.context,e=ce(t).axis.cfg.title,n=e.description,r=e.text,i=e.descriptionTooltipStyle,o=t.event,a=o.x,c=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n <div class="'.concat(ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS,'" style={').concat(i,'}>\n <div class="').concat(ot.TOOLTIP_CSS_CONST.TITLE_CLASS,'">\n \u5b57\u6bb5\u8bf4\u660e\uff1a').concat(n,"\n </div>\n </div>\n ")},x:a,y:c}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view.canvas,n={start:{x:0,y:0},end:{x:e.get("width"),y:e.get("height")}},r=new ht({parent:e.get("el").parentNode,region:n,visible:!1,containerId:"aixs-description-tooltip",domStyles:l({},Object(b.h)({},(t={},t[ot.TOOLTIP_CSS_CONST.CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[ot.TOOLTIP_CSS_CONST.TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(Wt);function ks(t){return t.isInPlot()}function Ps(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Cs="dark",Ss=_e(Dr),Je[Object(b.V)(Cs)]=Qe(Ss),P("canvas",i),P("svg",a),jn("Polygon",ca),jn("Interval",na),jn("Schema",sa),jn("Path",Ho),jn("Point",aa),jn("Line",ra),jn("Area",Wo),jn("Edge",Xo),jn("Heatmap",qo),jn("Violin",la),Bn("base",rr),Bn("interval",ma),Bn("pie",Oa),Bn("polar",xa),Rn("overlap",(function(t,e,n,r){var i=new wa;Object(b.j)(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),r=n.x,o=n.y,a=!1,c=0;c<=8;c++){var s=Ca(e,r,o,c);if(i.hasGap(s)){i.fillGap(s),a=!0;break}}a||t.remove(!0)})),i.destroy()})),Rn("distribute",(function(t,e,n,r){if(t.length&&e.length){var i=t[0]?t[0].offset:0,o=e[0].get("coordinate"),a=o.getRadius(),c=o.getCenter();if(i>0){var s=2*(a+i)+28,l={start:o.start,end:o.end},u=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?u[0].push(t):u[1].push(t))})),u.forEach((function(t,n){var r=s/14;t.length>r&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(r,t.length-r)),t.sort((function(t,e){return t.y-e.y})),function(t,e,n,r,i,o){var a,c,s,l=!0,u=r.start,f=r.end,h=Math.min(u.y,f.y),p=Math.abs(u.y-f.y),g=0,v=Number.MIN_VALUE,y=e.map((function(t){return t.y>g&&(g=t.y),t.y<v&&(v=t.y),{size:n,targets:[t.y-h]}}));for(v-=h,g-h>p&&(p=g-h);l;)for(y.forEach((function(t){var e=(Math.min.apply(v,t.targets)+Math.max.apply(v,t.targets))/2;t.pos=Math.min(Math.max(v,e-t.size/2),p-t.size)})),l=!1,s=y.length;s--;)if(s>0){var m=y[s-1],x=y[s];m.pos+m.size>x.pos&&(m.size+=x.size,m.targets=m.targets.concat(x.targets),m.pos+m.size>p&&(m.pos=p-m.size),y.splice(s,1),l=!0)}s=0,y.forEach((function(t){var r=h+n/2;t.targets.forEach((function(){e[s].y=t.pos+r,r+=n,s++}))}));var O={};try{for(var j=d(t),w=j.next();!w.done;w=j.next()){var C=w.value;O[C.get("id")]=C}}catch(S){a={error:S}}finally{try{w&&!w.done&&(c=j.return)&&c.call(j)}finally{if(a)throw a.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-i.y),2);if(e<n)t.x=i.x;else{var r=Math.sqrt(e-n);t.x=o?i.x+r:i.x-r}var a=O[t.id];a.attr("x",t.x),a.attr("y",t.y);var c=Object(b.m)(a.getChildren(),(function(t){return"text"===t.get("type")}));c&&(c.attr("y",t.y),c.attr("x",t.x))}))}(e,t,14,l,c,n)}))}Object(b.j)(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,r=gt(c.x,c.y,a,n),i=gt(c.x,c.y,a+e/2,n),o=t.x+Object(b.s)(t,"offsetX",0),s=t.y+Object(b.s)(t,"offsetY",0),l={x:o-4*Math.cos(n),y:s-4*Math.sin(n)};Object(b.O)(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(r.x),"".concat(r.y," Q").concat(i.x),"".concat(i.y," ").concat(l.x),l.y].join(",")}}))}})),Rn("fixed-overlap",(function(t,e,n,r){var i=new wa;Object(b.j)(e,(function(t){(function(t,e,n){void 0===n&&(n=100);var r,i=t.attr(),o=i.x,a=i.y,c=t.getCanvasBBox(),s=Math.sqrt(c.width*c.width+c.height*c.height),l=1,u=0,f=0,h=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(c))return e.fillGap(c),!0;for(var d=!1,p=0,g={};Math.min(Math.abs(u),Math.abs(f))<s&&p<n;)if(u=~~(r=h(l+=-1))[0],f=~~r[1],(u||f)&&!g["".concat(u,"-").concat(f)]&&(t.attr({x:o+u,y:a+f}),u+f<0&&t.attr("textAlign","right"),p++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,g["".concat(u,"-").concat(f)]=!0;break}return d})(t.find((function(t){return"text"===t.get("type")})),i)||t.remove(!0)})),i.destroy()})),Rn("hide-overlap",(function(t,e,n,r){return new Promise((function(n){var r=e.map((function(e,n){return l(l({},Jn(e,t[n],Object(b.s)(t[n],"background.padding"))),{visible:!0})})),i=JSON.stringify(r),o=function(t){return La.set(i,t),Object(b.j)(t,(function(t,n){var r=t.visible,i=e[n];r?null===i||void 0===i||i.show():null===i||void 0===i||i.hide()})),n(t)};if(La.get(i))o(La.get(i));else if(Na)try{Na.postMessage(JSON.stringify({type:"hide-overlap",items:r})),Na.onmessage=function(t){return o(Array.isArray(t.data)?t.data:[])},Na.onmessageerror=function(t){console.warn("[AntV G2] Web worker is not available"),o(Ta(r))}}catch(a){console.error(a),o(Ta(r))}else o(Ta(r))}))})),Rn("limit-in-shape",(function(t,e,n,r){Object(b.j)(e,(function(t,e){var r=t.getCanvasBBox(),i=n[e].getBBox();(r.minX<i.minX||r.minY<i.minY||r.maxX>i.maxX||r.maxY>i.maxY)&&t.remove(!0)}))})),Rn("limit-in-canvas",(function(t,e,n,r){Object(b.j)(e,(function(t){var e=r.minX,n=r.minY,i=r.maxX,o=r.maxY,a=t.getCanvasBBox(),c=a.minX,s=a.minY,l=a.maxX,u=a.maxY,f=a.x,h=a.y,d=a.width,p=a.height,g=f,v=h;(c<e||l<e)&&(g=e),(s<n||u<n)&&(v=n),c>i?g=i-d:l>i&&(g-=l-i),s>o?v=o-p:u>o&&(v-=u-o),g===f&&v===h||$n(t,g-f,v-h)}))})),Rn("limit-in-plot",(function(t,e,n,r,i){if(!(e.length<=0)){var o=(null===i||void 0===i?void 0:i.direction)||["top","right","bottom","left"],a=(null===i||void 0===i?void 0:i.action)||"translate",c=(null===i||void 0===i?void 0:i.margin)||0,s=e[0].get("coordinate");if(s){var l=function(t,e){void 0===e&&(e=0);var n=t.start,r=t.end,i=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,r.x),c=Math.min(n.y,r.y);return wt.fromRange(a-e,c-e,a+i+e,c+o+e)}(s,c),u=l.minX,f=l.minY,h=l.maxX,d=l.maxY;Object(b.j)(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,r=e.minY,i=e.maxX,c=e.maxY,s=e.x,l=e.y,p=e.width,g=e.height,v=s,y=l;if(o.indexOf("left")>=0&&(n<u||i<u)&&(v=u),o.indexOf("top")>=0&&(r<f||c<f)&&(y=f),o.indexOf("right")>=0&&(n>h?v=h-p:i>h&&(v-=i-h)),o.indexOf("bottom")>=0&&(r>d?y=d-g:c>d&&(y-=c-d)),v!==s||y!==l){var m=v-s;if("translate"===a)$n(t,m,y-l);else if("ellipsis"===a){t.findAll((function(t){return"text"===t.get("type")})).forEach((function(t){var e=Object(b.hb)(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),r=function(t,e,n){var r,i=Ka("...",n);r=Object(b.Q)(t)?t:Object(b.tb)(t);var o,a,c=e,s=[];if(Ka(t,n)<=e)return t;for(;o=r.substr(0,16),!((a=Ka(o,n))+i>c&&a>c);)if(s.push(o),c-=a,!(r=r.substr(16)))return s.join("");for(;o=r.substr(0,1),!((a=Ka(o,n))+i>c);)if(s.push(o),c-=a,!(r=r.substr(1)))return s.join("");return"".concat(s.join(""),"...")}(t.attr("text"),n.width-Math.abs(m),e);t.attr("text",r)}))}else t.hide()}}))}}})),Rn("pie-outer",(function(t,e,n,r){var i,o,a=Object(b.l)(t,(function(t){return!Object(b.K)(t)})),c=e[0]&&e[0].get("coordinate");if(c){var s=c.getCenter(),l=c.getRadius(),u={};try{for(var f=d(e),h=f.next();!h.done;h=f.next()){var p=h.value;u[p.get("id")]=p}}catch(C){i={error:C}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}var g=Object(b.s)(a[0],"labelHeight",14),v=Object(b.s)(a[0],"offset",0);if(!(v<=0)){var y=Object(b.w)(a,(function(t){return t.x<s.x?"left":"right"})),m=c.start,x=c.end,O=Math.min(2*(l+v+g),c.getHeight()),j=O/2,w={minX:m.x,maxX:x.x,minY:s.y-j,maxY:s.y+j};Object(b.j)(y,(function(t,e){var n=Math.floor(O/g);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(b.j)(t,(function(t,e){e+1>n&&(u[t.id].set("visible",!1),t.invisible=!0)}))),ja(t,g,w)})),Object(b.j)(y,(function(t,e){Object(b.j)(t,(function(t){var n="right"===e,r=u[t.id].getChildByIndex(0);if(r){var i=l+v,o=t.y-s.y,a=Math.pow(i,2),f=Math.pow(o,2),h=a-f>0?a-f:0,d=Math.sqrt(h),p=Math.abs(Math.cos(t.angle)*i);t.x=n?s.x+Math.max(d,p):s.x-Math.max(d,p)}r&&(r.attr("y",t.y),r.attr("x",t.x)),function(t,e){var n=e.getCenter(),r=e.getRadius();if(t&&t.labelLine){var i=t.angle,o=t.offset,a=gt(n.x,n.y,r,i),c=t.x+Object(b.s)(t,"offsetX",0)*(Math.cos(i)>0?1:-1),s=t.y+Object(b.s)(t,"offsetY",0)*(Math.sin(i)>0?1:-1),l={x:c-4*Math.cos(i),y:s-4*Math.sin(i)},u=t.labelLine.smooth,f=[],h=l.x-n.x,d=l.y-n.y,p=Math.atan(d/h);if(h<0&&(p+=Math.PI),!1===u){Object(b.O)(t.labelLine)||(t.labelLine={});var g=0;(i<0&&i>-Math.PI/2||i>1.5*Math.PI)&&l.y>a.y&&(g=1),i>=0&&i<Math.PI/2&&l.y>a.y&&(g=1),i>=Math.PI/2&&i<Math.PI&&a.y>l.y&&(g=1),(i<-Math.PI/2||i>=Math.PI&&i<1.5*Math.PI)&&a.y>l.y&&(g=1);var v=o/2>4?4:Math.max(o/2-1,0),y=gt(n.x,n.y,r+v,i),m=gt(n.x,n.y,r+o/2,p);f.push("M ".concat(a.x," ").concat(a.y)),f.push("L ".concat(y.x," ").concat(y.y)),f.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(0," ").concat(g," ").concat(m.x," ").concat(m.y)),f.push("L ".concat(l.x," ").concat(l.y))}else{y=gt(n.x,n.y,r+(o/2>4?4:Math.max(o/2-1,0)),i);var x=a.x<n.x?1:-1;f.push("M ".concat(l.x," ").concat(l.y));var O=(a.y-n.y)/(a.x-n.x),j=(l.y-n.y)/(l.x-n.x);Math.abs(O-j)>Math.pow(Math.E,-16)&&f.push.apply(f,["C",l.x+4*x,l.y,2*y.x-a.x,2*y.y-a.y,a.x,a.y]),f.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=f.join(" ")}}(t,c)}))}))}}})),Rn("adjust-color",(function(t,e,n){if(0!==n.length){var r=n[0].get("element").geometry.theme,i=r.labels||{},o=i.fillColorLight,a=i.fillColorDark;n.forEach((function(t,n){var i=e[n].find((function(t){return"text"===t.get("type")})),c=wt.fromObject(t.getBBox()),s=wt.fromObject(i.getCanvasBBox()),l=!c.contains(s),u=function(t){var e=_.a.toRGB(t).toUpperCase();if(Ba[e])return Ba[e];var n=p(_.a.rgb2arr(e),3);return(299*n[0]+587*n[1]+114*n[2])/1e3<128}(t.attr("fill"));l?i.attr(r.overflowLabels.style):u?o&&i.attr("fill",o):a&&i.attr("fill",a)}))}})),Rn("interval-adjust-position",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null===i||void 0===i?void 0:i.geometry;if(o&&"interval"===o.type)Ra(o,e,n)&&n.forEach((function(t,n){var r=e[n];!function(t,e,n){var r=t.coordinate,i=wt.fromObject(n.getBBox()),o=Qn(e);r.isTransposed?o.attr({x:i.minX+i.width/2,textAlign:"center"}):o.attr({y:i.minY+i.height/2,textBaseline:"middle"})}(o,r,t)}))}})),Rn("interval-hide-overlap",(function(t,e,n){var r;if(0!==n.length){var i=null===(r=n[0])||void 0===r?void 0:r.get("element"),o=null===i||void 0===i?void 0:i.geometry;if(o&&"interval"===o.type){var a,c=function(t){var e=[],n=Math.max(Math.floor(t.length/500),1);return Object(b.j)(t,(function(t,r){r%n===0?e.push(t):t.set("visible",!1)})),e}(e),s=p(o.getXYFields(),1)[0],l=[],u=[],f=Object(b.w)(c,(function(t){return t.get("data")[s]})),h=Object(b.ub)(Object(b.W)(c,(function(t){return t.get("data")[s]})));c.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&u.push(t.pop()),u.push.apply(u,g([],p(t),!1)))};for(Object(b.mb)(h)>0&&(a=h.shift(),d(f[a])),Object(b.mb)(h)>0&&(a=h.pop(),d(f[a])),Object(b.j)(h.reverse(),(function(t){d(f[t])}));u.length>0;){var v=u.shift();v.get("visible")&&(tr(v,l)?v.set("visible",!1):l.push(v))}}}})),Rn("point-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var c=null===(o=n[0])||void 0===o?void 0:o.get("element"),s=null===c||void 0===c?void 0:c.geometry;if(s&&"point"===s.type){var l=p(s.getXYFields(),2),u=l[0],f=l[1],h=Object(b.w)(e,(function(t){return t.get("data")[u]})),d=[],v=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(b.W)(Object(b.T)(h).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,g([],p(i),!1)),r}(s,h[t]);e.length;){var n=e.shift(),r=Qn(n);if(_a(d,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;za(d,n)&&(r.attr("y",r.attr("y")+2*v),i=za(d,n)),i?r.set("visible",!1):d.push(n)}}}))}}})),Rn("pie-spider",(function(t,e,n,r){var i,o,a=e[0]&&e[0].get("coordinate");if(a){var c=a.getCenter(),s=a.getRadius(),l={};try{for(var u=d(e),f=u.next();!f.done;f=u.next()){var h=f.value;l[h.get("id")]=h}}catch(C){i={error:C}}finally{try{f&&!f.done&&(o=u.return)&&o.call(u)}finally{if(i)throw i.error}}var p=Object(b.s)(t[0],"labelHeight",14),g=Math.max(Object(b.s)(t[0],"offset",0),4);Object(b.j)(t,(function(t){if(t&&Object(b.s)(l,[t.id])){var e=t.x>c.x||t.x===c.x&&t.y>c.y,n=Object(b.K)(t.offsetX)?4:t.offsetX,r=gt(c.x,c.y,s+4,t.angle),i=g+n;t.x=c.x+(e?1:-1)*(s+i),t.y=r.y}}));var v=a.start,y=a.end,m=Object(b.w)(t,(function(t){return t.x<c.x?"left":"right"})),x=2*(s+g)+p;Object(b.j)(m,(function(t){var e=t.length*p;e>x&&(x=Math.min(e,Math.abs(v.y-y.y)))}));var O={minX:v.x,maxX:y.x,minY:c.y-x/2,maxY:c.y+x/2};Object(b.j)(m,(function(t,e){var n=x/p;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(b.j)(t,(function(t,e){e>n&&(l[t.id].set("visible",!1),t.invisible=!0)}))),ja(t,p,O)}));var j=O.minY,w=O.maxY;Object(b.j)(m,(function(t,e){var n="right"===e;Object(b.j)(t,(function(t){var e=Object(b.s)(l,t&&[t.id]);if(e)if(t.y<j||t.y>w)e.set("visible",!1);else{var r=e.getChildByIndex(0),i=r.getCanvasBBox(),o=n?i.x:i.maxX,c=i.y+i.height/2;$n(r,t.x-o,t.y-c),t.labelLine&&function(t,e,n){var r,i=e.getCenter(),o=e.getRadius(),a={x:t.x-(n?4:-4),y:t.y},c=gt(i.x,i.y,o+4,t.angle),s={x:a.x,y:a.y},l={x:c.x,y:c.y},u=gt(i.x,i.y,o,t.angle);if(a.y!==c.y){var f=n?4:-4;s.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(c.x,a.x-f),a.y<c.y?l.y=s.y:(l.y=c.y,l.x=Math.max(l.x,s.x-f))),t.angle>0&&t.angle<Math.PI/2&&(s.x=Math.max(c.x,a.x-f),a.y>c.y?l.y=s.y:(l.y=c.y,l.x=Math.max(l.x,s.x-f))),t.angle>Math.PI/2&&(s.x=Math.min(c.x,a.x-f),a.y>c.y?l.y=s.y:(l.y=c.y,l.x=Math.min(l.x,s.x-f))),t.angle<-Math.PI/2&&(s.x=Math.min(c.x,a.x-f),a.y<c.y?l.y=s.y:(l.y=c.y,l.x=Math.min(l.x,s.x-f)))}r=["M ".concat(a.x,",").concat(a.y),"L ".concat(s.x,",").concat(s.y),"L ".concat(l.x,",").concat(l.y),"L ".concat(c.x,",").concat(c.y),"L ".concat(u.x,",").concat(u.y)].join(" "),t.labelLine=Object(b.h)({},t.labelLine,{path:r})}(t,a,n)}}))}))}})),Rn("path-adjust-position",(function(t,e,n,r,i){var o,a;if(0!==n.length){var c=null===(o=n[0])||void 0===o?void 0:o.get("element"),s=null===c||void 0===c?void 0:c.geometry;if(s&&!(["path","line","area"].indexOf(s.type)<0)){var l=p(s.getXYFields(),2),u=l[0],f=l[1],h=Object(b.w)(e,(function(t){return t.get("data")[u]})),d=[],v=i&&i.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(b.W)(Object(b.T)(h).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,g([],p(i),!1)),r}(s,h[t]);e.length;){var n=e.shift(),r=Qn(n);if(Va(d,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[f]===e.get("data")[f]})))r.set("visible",!1);else{var i=!1;Ha(d,n)&&(r.attr("y",r.attr("y")+2*v),i=Ha(d,n)),i?r.set("visible",!1):d.push(n)}}}))}}})),kn("fade-in",(function(t,e,n){var r={fillOpacity:Object(b.K)(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(b.K)(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(b.K)(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(r,e)})),kn("fade-out",(function(t,e,n){var r=e.easing,i=e.duration,o=e.delay;t.animate({fillOpacity:0,strokeOpacity:0,opacity:0},i,r,(function(){t.remove(!0)}),o)})),kn("grow-in-x",(function(t,e,n){Ya(t,e,n.coordinate,n.minYPoint,"x")})),kn("grow-in-xy",(function(t,e,n){Ya(t,e,n.coordinate,n.minYPoint,"xy")})),kn("grow-in-y",(function(t,e,n){Ya(t,e,n.coordinate,n.minYPoint,"y")})),kn("scale-in-x",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData.points,o=i[0].y-i[1].y>0?r.maxX:r.minX,a=(r.minY+r.maxY)/2;t.applyToMatrix([o,a,1]);var c=Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",.01,1],["t",o,a]]);t.setMatrix(c),t.animate({matrix:Q.a.transform(t.getMatrix(),[["t",-o,-a],["s",100,1],["t",o,a]])},e)})),kn("scale-in-y",(function(t,e,n){var r=t.getBBox(),i=t.get("origin").mappingData,o=(r.minX+r.maxX)/2,a=i.points,c=a[0].y-a[1].y<=0?r.maxY:r.minY;t.applyToMatrix([o,c,1]);var s=Q.a.transform(t.getMatrix(),[["t",-o,-c],["s",1,.01],["t",o,c]]);t.setMatrix(s),t.animate({matrix:Q.a.transform(t.getMatrix(),[["t",-o,-c],["s",1,100],["t",o,c]])},e)})),kn("wave-in",(function(t,e,n){var r=Mt(n.coordinate,20),i=r.type,o=r.startState,a=r.endState,c=t.setClip({type:i,attrs:o});n.toAttrs&&t.attr(n.toAttrs),c.animate(a,l(l({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),c.remove(!0)}}))})),kn("zoom-in",(function(t,e,n){qa(t,e,"zoomIn")})),kn("zoom-out",(function(t,e,n){qa(t,e,"zoomOut")})),kn("position-update",(function(t,e,n){var r=n.toAttrs,i=r.x,o=r.y;delete r.x,delete r.y,t.attr(r),t.animate({x:i,y:o},e)})),kn("sector-path-update",(function(t,e,n){var r=n.toAttrs,i=n.coordinate,o=r.path||[],a=o.map((function(t){return t[0]}));if(!(o.length<1)){var c=Xa(o),s=c.startAngle,u=c.endAngle,f=c.radius,h=c.innerRadius,d=Xa(t.attr("path")),p=d.startAngle,g=d.endAngle,v=i.getCenter(),y=s-p,m=u-g;0!==y||0!==m?t.animate((function(t){var e=p+t*y,n=g+t*m;return l(l({},r),{path:Object(b.H)(a,["M","A","A","Z"])?yt(v.x,v.y,f,e,n):vt(v.x,v.y,f,e,n,h)})}),l(l({},e),{callback:function(){t.attr("path",o)}})):t.attr("path",o)}})),kn("path-in",(function(t,e,n){var r=t.getTotalLength();t.attr("lineDash",[r]),t.animate((function(t){return{lineDashOffset:(1-t)*r}}),e)})),Gt("rect",ec),Gt("mirror",tc),Gt("list",Qa),Gt("matrix",Ja),Gt("circle",Za),Gt("tree",nc),dn("axis",dc),dn("legend",yc),dn("tooltip",Sn),dn("annotation",ac),dn("slider",mc),dn("scrollbar",bc),$t("tooltip",wc),$t("sibling-tooltip",Cc),$t("ellipsis-text",Sc),$t("element-active",Pc),$t("element-single-active",Lc),$t("element-range-active",Fc),$t("element-highlight",zc),$t("element-highlight-by-x",Hc),$t("element-highlight-by-color",Vc),$t("element-single-highlight",Yc),$t("element-range-highlight",Kc),$t("element-sibling-highlight",Kc,{effectSiblings:!0,effectByRecord:!0}),$t("element-selected",Wc),$t("element-single-selected",Xc),$t("element-range-selected",Gc),$t("element-link-by-color",Ac),$t("active-region",jc),$t("list-active",Uc),$t("list-selected",Zc),$t("list-highlight",$c),$t("list-unchecked",Qc),$t("list-checked",Jc),$t("list-focus",ts),$t("list-radio",ns),$t("legend-item-highlight",$c,{componentNames:["legend"]}),$t("axis-label-highlight",$c,{componentNames:["axis"]}),$t("axis-description",Ms),$t("rect-mask",os),$t("x-rect-mask",ss,{dim:"x"}),$t("y-rect-mask",ss,{dim:"y"}),$t("circle-mask",is),$t("path-mask",ls),$t("smooth-path-mask",us),$t("cursor",fs),$t("data-filter",hs),$t("brush",ps),$t("brush-x",ps,{dims:["x"]}),$t("brush-y",ps,{dims:["y"]}),$t("sibling-filter",gs),$t("sibling-x-filter",gs),$t("sibling-y-filter",gs),$t("element-filter",vs),$t("element-sibling-filter",ys),$t("element-sibling-filter-record",ys,{byRecord:!0}),$t("view-drag",bs),$t("view-move",xs),$t("scale-translate",js),$t("scale-zoom",ws),$t("reset-button",ms,{name:"reset-button",text:"reset"}),$t("mousewheel-scroll",Es),Be("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"}]}),Be("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:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Be("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Be("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Be("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Be("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Be("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Be("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"]}]}),Be("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"]}]}),Be("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"]}]}),Be("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"]}]}),Be("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"]}]}),Be("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ks,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ks,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ks,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"]}]}),Be("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"]}]}),Be("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ks,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:ks,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:ks,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Be("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:ks,action:"path-mask:start"},{trigger:"mousedown",isEnable:ks,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"}]}),Be("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Be("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Be("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Be("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Be("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"]}]}),Be("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Be("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Be("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Ps(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Ps(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Be("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Be("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},762:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="EyeInvisibleOutlined";e.a=i.forwardRef(c)},763:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="BarsOutlined";e.a=i.forwardRef(c)},765:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(648),i=function(t){if(Object(r.a)()&&window.document.documentElement){var e=Array.isArray(t)?t:[t],n=window.document.documentElement;return e.some((function(t){return t in n.style}))}return!1};function o(t,e){return Array.isArray(t)||void 0===e?i(t):function(t,e){if(!i(t))return!1;var n=document.createElement("div"),r=n.style[t];return n.style[t]=e,n.style[t]!==r}(t,e)}},766:function(t,e,n){"use strict";var r=n(566),i=n(561),o=n(23),a=n(563),c=n(565),s=n(560),l=n.n(s),u=n(770),f=n(577),h=n(575),d=n(2),p=n(775),g=n(591),v=n(587),y=n(583),m=n(594),b=n(570),x=n(571),O=n(572),j=n(573),w=n(597),C=n(578),S=n(586),E=Object(S.a)("text","input");var M=function(t){Object(O.a)(n,t);var e=Object(j.a)(n);function n(){return Object(b.a)(this,n),e.apply(this,arguments)}return Object(x.a)(n,[{key:"renderClearIcon",value:function(t){var e,n=this.props,r=n.value,o=n.disabled,a=n.readOnly,c=n.handleReset,s=n.suffix,u=!o&&!a&&r,f="".concat(t,"-clear-icon");return d.createElement(w.a,{onClick:c,onMouseDown:function(t){return t.preventDefault()},className:l()((e={},Object(i.a)(e,"".concat(f,"-hidden"),!u),Object(i.a)(e,"".concat(f,"-has-suffix"),!!s),e),f),role:"button"})}},{key:"renderTextAreaWithClearIcon",value:function(t,e,n){var r,o=this.props,a=o.value,c=o.allowClear,s=o.className,u=o.style,f=o.direction,h=o.bordered,p=o.hidden,g=o.status,v=n.status,y=n.hasFeedback;if(!c)return Object(C.a)(e,{value:a});var b,x=l()("".concat(t,"-affix-wrapper"),"".concat(t,"-affix-wrapper-textarea-with-clear-btn"),Object(m.b)("".concat(t,"-affix-wrapper"),Object(m.a)(v,g),y),(r={},Object(i.a)(r,"".concat(t,"-affix-wrapper-rtl"),"rtl"===f),Object(i.a)(r,"".concat(t,"-affix-wrapper-borderless"),!h),Object(i.a)(r,"".concat(s),!((b=this.props).addonBefore||b.addonAfter)&&s),r));return d.createElement("span",{className:x,style:u,hidden:p},Object(C.a)(e,{style:null,value:a}),this.renderClearIcon(t))}},{key:"render",value:function(){var t=this;return d.createElement(y.b.Consumer,null,(function(e){var n=t.props,r=n.prefixCls,i=n.inputType,o=n.element;if(i===E[0])return t.renderTextAreaWithClearIcon(r,o,e)}))}}]),n}(d.Component),k=n(637),P=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function A(t,e){return Object(c.a)(t||"").slice(0,e).join("")}function I(t,e,n,r){var i=n;return t?i=A(n,r):Object(c.a)(e||"").length<n.length&&Object(c.a)(n||"").length>r&&(i=e),i}var F=d.forwardRef((function(t,e){var n,s=t.prefixCls,b=t.bordered,x=void 0===b||b,O=t.showCount,j=void 0!==O&&O,w=t.maxLength,C=t.className,S=t.style,E=t.size,F=t.disabled,T=t.onCompositionStart,L=t.onCompositionEnd,N=t.onChange,D=t.status,B=P(t,["prefixCls","bordered","showCount","maxLength","className","style","size","disabled","onCompositionStart","onCompositionEnd","onChange","status"]),R=d.useContext(p.b),_=R.getPrefixCls,z=R.direction,V=d.useContext(v.b),H=d.useContext(g.b),K=F||H,Y=d.useContext(y.b),G=Y.status,W=Y.hasFeedback,X=Y.isFormItemInput,q=Y.feedbackIcon,U=Object(m.a)(G,D),$=d.useRef(null),Z=d.useRef(null),Q=d.useState(!1),J=Object(a.a)(Q,2),tt=J[0],et=J[1],nt=d.useRef(),rt=d.useRef(0),it=Object(f.a)(B.defaultValue,{value:B.value}),ot=Object(a.a)(it,2),at=ot[0],ct=ot[1],st=B.hidden,lt=function(t,e){void 0===B.value&&(ct(t),null===e||void 0===e||e())},ut=Number(w)>0,ft=_("input",s);d.useImperativeHandle(e,(function(){var t;return{resizableTextArea:null===(t=$.current)||void 0===t?void 0:t.resizableTextArea,focus:function(t){var e,n;Object(k.d)(null===(n=null===(e=$.current)||void 0===e?void 0:e.resizableTextArea)||void 0===n?void 0:n.textArea,t)},blur:function(){var t;return null===(t=$.current)||void 0===t?void 0:t.blur()}}}));var ht=d.createElement(u.a,Object(o.a)({},Object(h.a)(B,["allowClear"]),{disabled:K,className:l()((n={},Object(i.a)(n,"".concat(ft,"-borderless"),!x),Object(i.a)(n,C,C&&!j),Object(i.a)(n,"".concat(ft,"-sm"),"small"===V||"small"===E),Object(i.a)(n,"".concat(ft,"-lg"),"large"===V||"large"===E),n),Object(m.b)(ft,U)),style:j?void 0:S,prefixCls:ft,onCompositionStart:function(t){et(!0),nt.current=at,rt.current=t.currentTarget.selectionStart,null===T||void 0===T||T(t)},onChange:function(t){var e=t.target.value;!tt&&ut&&(e=I(t.target.selectionStart>=w+1||t.target.selectionStart===e.length||!t.target.selectionStart,at,e,w));lt(e),Object(k.c)(t.currentTarget,t,N,e)},onCompositionEnd:function(t){var e;et(!1);var n=t.currentTarget.value;ut&&(n=I(rt.current>=w+1||rt.current===(null===(e=nt.current)||void 0===e?void 0:e.length),nt.current,n,w));n!==at&&(lt(n),Object(k.c)(t.currentTarget,t,N,n)),null===L||void 0===L||L(t)},ref:$})),dt=Object(k.b)(at);tt||!ut||null!==B.value&&void 0!==B.value||(dt=A(dt,w));var pt=d.createElement(M,Object(o.a)({disabled:K},B,{prefixCls:ft,direction:z,inputType:"text",value:dt,element:ht,handleReset:function(t){var e,n,r;lt(""),null===(e=$.current)||void 0===e||e.focus(),Object(k.c)(null===(r=null===(n=$.current)||void 0===n?void 0:n.resizableTextArea)||void 0===r?void 0:r.textArea,t,N)},ref:Z,bordered:x,status:D,style:j?void 0:S}));if(j||W){var gt,vt=Object(c.a)(dt).length,yt="";return yt="object"===Object(r.a)(j)?j.formatter({count:vt,maxLength:w}):"".concat(vt).concat(ut?" / ".concat(w):""),d.createElement("div",{hidden:st,className:l()("".concat(ft,"-textarea"),(gt={},Object(i.a)(gt,"".concat(ft,"-textarea-rtl"),"rtl"===z),Object(i.a)(gt,"".concat(ft,"-textarea-show-count"),j),Object(i.a)(gt,"".concat(ft,"-textarea-in-form-item"),X),gt),Object(m.b)("".concat(ft,"-textarea"),U,W),C),style:S,"data-count":yt},pt,W&&d.createElement("span",{className:"".concat(ft,"-textarea-suffix")},q))}return pt}));e.a=F},768:function(t,e,n){"use strict";n.d(e,"d",(function(){return h})),n.d(e,"c",(function(){return y})),n.d(e,"b",(function(){return m})),n.d(e,"a",(function(){return b}));var r=n(565),i=n(561),o=n(563),a=n(23),c=n(560),s=n.n(c),l=n(2),u=n(775),f=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},h=l.createContext({siderHook:{addSider:function(){return null},removeSider:function(){return null}}});function d(t){var e=t.suffixCls,n=t.tagName;t.displayName;return function(t){return l.forwardRef((function(r,i){var o=l.useContext(u.b).getPrefixCls,c=r.prefixCls,s=o(e,c);return l.createElement(t,Object(a.a)({ref:i,prefixCls:s,tagName:n},r))}))}}var p=l.forwardRef((function(t,e){var n=t.prefixCls,r=t.className,i=t.children,o=t.tagName,c=f(t,["prefixCls","className","children","tagName"]),u=s()(n,r);return l.createElement(o,Object(a.a)(Object(a.a)({className:u},c),{ref:e}),i)})),g=l.forwardRef((function(t,e){var n,c=l.useContext(u.b).direction,d=l.useState([]),p=Object(o.a)(d,2),g=p[0],v=p[1],y=t.prefixCls,m=t.className,b=t.children,x=t.hasSider,O=t.tagName,j=f(t,["prefixCls","className","children","hasSider","tagName"]),w=s()(y,(n={},Object(i.a)(n,"".concat(y,"-has-sider"),"boolean"===typeof x?x:g.length>0),Object(i.a)(n,"".concat(y,"-rtl"),"rtl"===c),n),m),C=l.useMemo((function(){return{siderHook:{addSider:function(t){v((function(e){return[].concat(Object(r.a)(e),[t])}))},removeSider:function(t){v((function(e){return e.filter((function(e){return e!==t}))}))}}}}),[]);return l.createElement(h.Provider,{value:C},l.createElement(O,Object(a.a)({ref:e,className:w},j),b))})),v=d({suffixCls:"layout",tagName:"section",displayName:"Layout"})(g),y=d({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(p),m=d({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(p),b=d({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(p);e.e=v},770:function(t,e,n){"use strict";var r,i=n(23),o=n(570),a=n(571),c=n(572),s=n(573),l=n(2),u=n(559),f=n(561),h=n(615),d=n(575),p=n(560),g=n.n(p),v="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",y=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],m={};function b(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&m[n])return m[n];var r=window.getComputedStyle(t),i=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),o=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=y.map((function(t){return"".concat(t,":").concat(r.getPropertyValue(t))})).join(";"),s={sizingStyle:c,paddingSize:o,borderSize:a,boxSizing:i};return e&&n&&(m[n]=s),s}var x,O=n(599),j=n.n(O);!function(t){t[t.NONE=0]="NONE",t[t.RESIZING=1]="RESIZING",t[t.RESIZED=2]="RESIZED"}(x||(x={}));var w=function(t){Object(c.a)(n,t);var e=Object(s.a)(n);function n(t){var a;return Object(o.a)(this,n),(a=e.call(this,t)).nextFrameActionId=void 0,a.resizeFrameId=void 0,a.textArea=void 0,a.saveTextArea=function(t){a.textArea=t},a.handleResize=function(t){var e=a.state.resizeStatus,n=a.props,r=n.autoSize,i=n.onResize;e===x.NONE&&("function"===typeof i&&i(t),r&&a.resizeOnNextFrame())},a.resizeOnNextFrame=function(){cancelAnimationFrame(a.nextFrameActionId),a.nextFrameActionId=requestAnimationFrame(a.resizeTextarea)},a.resizeTextarea=function(){var t=a.props.autoSize;if(t&&a.textArea){var e=t.minRows,n=t.maxRows,i=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;r||((r=document.createElement("textarea")).setAttribute("tab-index","-1"),r.setAttribute("aria-hidden","true"),document.body.appendChild(r)),t.getAttribute("wrap")?r.setAttribute("wrap",t.getAttribute("wrap")):r.removeAttribute("wrap");var o=b(t,e),a=o.paddingSize,c=o.borderSize,s=o.boxSizing,l=o.sizingStyle;r.setAttribute("style","".concat(l,";").concat(v)),r.value=t.value||t.placeholder||"";var u,f=Number.MIN_SAFE_INTEGER,h=Number.MAX_SAFE_INTEGER,d=r.scrollHeight;if("border-box"===s?d+=c:"content-box"===s&&(d-=a),null!==n||null!==i){r.value=" ";var p=r.scrollHeight-a;null!==n&&(f=p*n,"border-box"===s&&(f=f+a+c),d=Math.max(f,d)),null!==i&&(h=p*i,"border-box"===s&&(h=h+a+c),u=d>h?"":"hidden",d=Math.min(h,d))}return{height:d,minHeight:f,maxHeight:h,overflowY:u,resize:"none"}}(a.textArea,!1,e,n);a.setState({textareaStyles:i,resizeStatus:x.RESIZING},(function(){cancelAnimationFrame(a.resizeFrameId),a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:x.RESIZED},(function(){a.resizeFrameId=requestAnimationFrame((function(){a.setState({resizeStatus:x.NONE}),a.fixFirefoxAutoScroll()}))}))}))}))}},a.renderTextArea=function(){var t=a.props,e=t.prefixCls,n=void 0===e?"rc-textarea":e,r=t.autoSize,o=t.onResize,c=t.className,s=t.disabled,p=a.state,v=p.textareaStyles,y=p.resizeStatus,m=Object(d.a)(a.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),b=g()(n,c,Object(f.a)({},"".concat(n,"-disabled"),s));"value"in m&&(m.value=m.value||"");var O=Object(u.a)(Object(u.a)(Object(u.a)({},a.props.style),v),y===x.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return l.createElement(h.a,{onResize:a.handleResize,disabled:!(r||o)},l.createElement("textarea",Object(i.a)({},m,{className:b,style:O,ref:a.saveTextArea})))},a.state={textareaStyles:{},resizeStatus:x.NONE},a}return Object(a.a)(n,[{key:"componentDidUpdate",value:function(t){t.value===this.props.value&&j()(t.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var t=this.textArea.selectionStart,e=this.textArea.selectionEnd;this.textArea.setSelectionRange(t,e)}}catch(n){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(l.Component),C=function(t){Object(c.a)(n,t);var e=Object(s.a)(n);function n(t){var r;Object(o.a)(this,n),(r=e.call(this,t)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(t){r.resizableTextArea=t},r.handleChange=function(t){var e=r.props.onChange;r.setValue(t.target.value,(function(){r.resizableTextArea.resizeTextarea()})),e&&e(t)},r.handleKeyDown=function(t){var e=r.props,n=e.onPressEnter,i=e.onKeyDown;13===t.keyCode&&n&&n(t),i&&i(t)};var i="undefined"===typeof t.value||null===t.value?t.defaultValue:t.value;return r.state={value:i},r}return Object(a.a)(n,[{key:"setValue",value:function(t,e){"value"in this.props||this.setState({value:t},e)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return l.createElement(w,Object(i.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(t){return"value"in t?{value:t.value}:null}}]),n}(l.Component);e.a=C},771:function(t,e,n){"use strict";var r=n(23),i=n(566),o=n(563),a=n(561),c=n(608),s=n(560),l=n.n(s),u=n(753),f=n(728),h=n(577),d=n(2),p=n(775),g=n(672),v=n(651),y=n(578),m=n(586),b=n(684),x=n(606),O=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},j=x.default.Group,w=function(t){var e=d.useContext(p.b),n=e.getPopupContainer,i=e.getPrefixCls,a=e.direction,c=t.prefixCls,s=t.type,u=void 0===s?"default":s,f=t.disabled,h=t.loading,g=t.onClick,v=t.htmlType,y=t.children,m=t.className,w=t.overlay,C=t.trigger,S=t.align,M=t.visible,k=t.onVisibleChange,P=t.placement,A=t.getPopupContainer,I=t.href,F=t.icon,T=void 0===F?d.createElement(b.a,null):F,L=t.title,N=t.buttonsRender,D=void 0===N?function(t){return t}:N,B=t.mouseEnterDelay,R=t.mouseLeaveDelay,_=t.overlayClassName,z=t.overlayStyle,V=t.destroyPopupOnHide,H=O(t,["prefixCls","type","disabled","loading","onClick","htmlType","children","className","overlay","trigger","align","visible","onVisibleChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide"]),K=i("dropdown-button",c),Y={align:S,overlay:w,disabled:f,trigger:f?[]:C,onVisibleChange:k,getPopupContainer:A||n,mouseEnterDelay:B,mouseLeaveDelay:R,overlayClassName:_,overlayStyle:z,destroyPopupOnHide:V};"visible"in t&&(Y.visible=M),Y.placement="placement"in t?P:"rtl"===a?"bottomLeft":"bottomRight";var G=D([d.createElement(x.default,{type:u,disabled:f,loading:h,onClick:g,htmlType:v,href:I,title:L},y),d.createElement(x.default,{type:u,icon:T})]),W=Object(o.a)(G,2),X=W[0],q=W[1];return d.createElement(j,Object(r.a)({},H,{className:l()(K,m)}),X,d.createElement(E,Object(r.a)({},Y),q))};w.__ANT_BUTTON=!0;var C=w,S=(Object(m.a)("topLeft","topCenter","topRight","bottomLeft","bottomCenter","bottomRight","top","bottom"),function(t){var e,n=d.useContext(p.b),s=n.getPopupContainer,m=n.getPrefixCls,b=n.direction,x=t.arrow,O=t.prefixCls,j=t.children,w=t.trigger,C=t.disabled,S=t.getPopupContainer,E=t.overlayClassName,M=t.visible,k=t.onVisibleChange,P=m("dropdown",O),A=d.Children.only(j),I=Object(y.a)(A,{className:l()("".concat(P,"-trigger"),Object(a.a)({},"".concat(P,"-rtl"),"rtl"===b),A.props.className),disabled:C}),F=C?[]:w;F&&-1!==F.indexOf("contextMenu")&&(e=!0);var T=Object(h.a)(!1,{value:M}),L=Object(o.a)(T,2),N=L[0],D=L[1],B=Object(f.a)((function(t){null===k||void 0===k||k(t),D(t)})),R=l()(E,Object(a.a)({},"".concat(P,"-rtl"),"rtl"===b)),_=Object(v.a)({arrowPointAtCenter:"object"===Object(i.a)(x)&&x.pointAtCenter,autoAdjustOverflow:!0}),z=d.useCallback((function(){D(!1)}),[]);return d.createElement(u.a,Object(r.a)({alignPoint:e},t,{visible:N,builtinPlacements:_,arrow:!!x,overlayClassName:R,prefixCls:P,getPopupContainer:S||s,transitionName:function(){var e=m(),n=t.placement,r=void 0===n?"":n,i=t.transitionName;return void 0!==i?i:r.indexOf("top")>=0?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")}(),trigger:F,overlay:function(){var e,n=t.overlay;return e="function"===typeof n?n():n,e=d.Children.only("string"===typeof e?d.createElement("span",null,e):e),d.createElement(g.a,{prefixCls:"".concat(P,"-menu"),expandIcon:d.createElement("span",{className:"".concat(P,"-menu-submenu-arrow")},d.createElement(c.a,{className:"".concat(P,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:z,validator:function(t){t.mode}},e)},placement:function(){var e=t.placement;return e?e.includes("Center")?e.slice(0,e.indexOf("Center")):e:"rtl"===b?"bottomRight":"bottomLeft"}(),onVisibleChange:B}),I)});S.Button=C,S.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1};var E=e.a=S},776:function(t,e,n){"use strict";n.r(e);var r,i=n(561),o=n(566),a=n(23),c=n(794),s=n(560),l=n.n(s),u=n(812),f=n(2),h=n.n(f),d=n(775),p=n(598),g=n(565),v=n(563),y=n(735),m=n(798),b=n(799),x=n(659),O=n(614);function j(t,e){t.forEach((function(t){var n=t.key,r=t.children;!1!==e(n,t)&&j(r||[],e)}))}function w(t){var e=t.treeData,n=t.expandedKeys,i=t.startKey,o=t.endKey,a=[],c=r.None;if(i&&i===o)return[i];if(!i||!o)return[];return j(e,(function(t){if(c===r.End)return!1;if(function(t){return t===i||t===o}(t)){if(a.push(t),c===r.None)c=r.Start;else if(c===r.Start)return c=r.End,!1}else c===r.Start&&a.push(t);return-1!==n.indexOf(t)})),a}function C(t,e){var n=Object(g.a)(e),r=[];return j(t,(function(t,e){var i=n.indexOf(t);return-1!==i&&(r.push(e),n.splice(i,1)),!!n.length})),r}!function(t){t[t.None=0]="None",t[t.Start=1]="Start",t[t.End=2]="End"}(r||(r={}));var S=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function E(t){var e=t.isLeaf,n=t.expanded;return e?f.createElement(y.a,null):n?f.createElement(m.a,null):f.createElement(b.a,null)}function M(t){var e=t.treeData,n=t.children;return e||Object(O.c)(n)}var k=function(t,e){var n=t.defaultExpandAll,r=t.defaultExpandParent,o=t.defaultExpandedKeys,c=S(t,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]),s=f.useRef(),u=f.useRef(),h=f.createRef();f.useImperativeHandle(e,(function(){return h.current}));var p=f.useState(c.selectedKeys||c.defaultSelectedKeys||[]),y=Object(v.a)(p,2),m=y[0],b=y[1],j=f.useState(function(){var t=Object(O.a)(M(c)).keyEntities;return n?Object.keys(t):r?Object(x.e)(c.expandedKeys||o||[],t):c.expandedKeys||o}()),k=Object(v.a)(j,2),P=k[0],A=k[1];f.useEffect((function(){"selectedKeys"in c&&b(c.selectedKeys)}),[c.selectedKeys]),f.useEffect((function(){"expandedKeys"in c&&A(c.expandedKeys)}),[c.expandedKeys]);var I=f.useContext(d.b),F=I.getPrefixCls,T=I.direction,N=c.prefixCls,D=c.className,B=S(c,["prefixCls","className"]),R=F("tree",N),_=l()("".concat(R,"-directory"),Object(i.a)({},"".concat(R,"-directory-rtl"),"rtl"===T),D);return f.createElement(L,Object(a.a)({icon:E,ref:h,blockNode:!0},B,{prefixCls:R,className:_,expandedKeys:P,selectedKeys:m,onSelect:function(t,e){var n,r,i=c.multiple,o=e.node,l=e.nativeEvent,f=o.key,h=void 0===f?"":f,d=M(c),p=Object(a.a)(Object(a.a)({},e),{selected:!0}),v=(null===l||void 0===l?void 0:l.ctrlKey)||(null===l||void 0===l?void 0:l.metaKey),y=null===l||void 0===l?void 0:l.shiftKey;i&&v?(r=t,s.current=h,u.current=r,p.selectedNodes=C(d,r)):i&&y?(r=Array.from(new Set([].concat(Object(g.a)(u.current||[]),Object(g.a)(w({treeData:d,expandedKeys:P,startKey:h,endKey:s.current}))))),p.selectedNodes=C(d,r)):(r=[h],s.current=h,u.current=r,p.selectedNodes=C(d,r)),null===(n=c.onSelect)||void 0===n||n.call(c,r,p),"selectedKeys"in c||b(r)},onExpand:function(t,e){var n;return"expandedKeys"in c||A(t),null===(n=c.onExpand)||void 0===n?void 0:n.call(c,t,e)}}))},P=f.forwardRef(k);P.defaultProps={showIcon:!0,expandAction:"click"};var A=P;function I(t){var e,n=t.dropPosition,r=t.dropLevelOffset,o=t.prefixCls,a=t.indent,c=t.direction,s=void 0===c?"ltr":c,l="ltr"===s?"left":"right",u="ltr"===s?"right":"left",f=(e={},Object(i.a)(e,l,-r*a+4),Object(i.a)(e,u,0),e);switch(n){case-1:f.top=-3;break;case 1:f.bottom=-3;break;default:f.bottom=-3,f[l]=a+4}return h.a.createElement("div",{style:f,className:"".concat(o,"-drop-indicator")})}var F=n(804),T=f.forwardRef((function(t,e){var n,r=f.useContext(d.b),s=r.getPrefixCls,h=r.direction,p=r.virtual,g=t.prefixCls,v=t.className,y=t.showIcon,m=t.showLine,b=t.switcherIcon,x=t.blockNode,O=t.children,j=t.checkable,w=t.selectable,C=t.draggable,S=s("tree",g),E=Object(a.a)(Object(a.a)({},t),{showLine:Boolean(m),dropIndicatorRender:I}),M=f.useMemo((function(){if(!C)return!1;var t={};switch(Object(o.a)(C)){case"function":t.nodeDraggable=C;break;case"object":t=Object(a.a)({},C)}return!1!==t.icon&&(t.icon=t.icon||f.createElement(c.a,null)),t}),[C]);return f.createElement(u.b,Object(a.a)({itemHeight:20,ref:e,virtual:p},E,{prefixCls:S,className:l()((n={},Object(i.a)(n,"".concat(S,"-icon-hide"),!y),Object(i.a)(n,"".concat(S,"-block-node"),x),Object(i.a)(n,"".concat(S,"-unselectable"),!w),Object(i.a)(n,"".concat(S,"-rtl"),"rtl"===h),n),v),direction:h,checkable:j?f.createElement("span",{className:"".concat(S,"-checkbox-inner")}):j,selectable:w,switcherIcon:function(t){return Object(F.a)(S,b,m,t)},draggable:M}),O)}));T.TreeNode=u.a,T.DirectoryTree=A,T.defaultProps={checkable:!1,selectable:!0,showIcon:!1,motion:Object(a.a)(Object(a.a)({},p.a),{motionAppear:!1}),blockNode:!1};var L=T;e.default=L},780:function(t,e,n){var r=n(733),i=n(820),o=n(801),a=Math.max,c=Math.min;t.exports=function(t,e,n){var s,l,u,f,h,d,p=0,g=!1,v=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=s,r=l;return s=l=void 0,p=e,f=t.apply(r,n)}function b(t){return p=t,h=setTimeout(O,e),g?m(t):f}function x(t){var n=t-d;return void 0===d||n>=e||n<0||v&&t-p>=u}function O(){var t=i();if(x(t))return j(t);h=setTimeout(O,function(t){var n=e-(t-d);return v?c(n,u-(t-p)):n}(t))}function j(t){return h=void 0,y&&s?m(t):(s=l=void 0,f)}function w(){var t=i(),n=x(t);if(s=arguments,l=this,d=t,n){if(void 0===h)return b(d);if(v)return clearTimeout(h),h=setTimeout(O,e),m(d)}return void 0===h&&(h=setTimeout(O,e)),f}return e=o(e)||0,r(n)&&(g=!!n.leading,u=(v="maxWait"in n)?a(o(n.maxWait)||0,e):u,y="trailing"in n?!!n.trailing:y),w.cancel=function(){void 0!==h&&clearTimeout(h),p=0,s=d=l=h=void 0},w.flush=function(){return void 0===h?f:j(i())},w}},781:function(t,e,n){var r=n(836),i=n(791);t.exports=function(t){return"symbol"==typeof t||i(t)&&"[object Symbol]"==r(t)}},784:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}},787:function(t,e,n){"use strict";var r=n(617);e.a=r.a},794:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="HolderOutlined";e.a=i.forwardRef(c)},795:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="MinusSquareOutlined";e.a=i.forwardRef(c)},796:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="PlusSquareOutlined";e.a=i.forwardRef(c)},797:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CaretDownFilled";e.a=i.forwardRef(c)},798:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="FolderOpenOutlined";e.a=i.forwardRef(c)},799:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="FolderOutlined";e.a=i.forwardRef(c)},800:function(t,e,n){"use strict";n.d(e,"d",(function(){return s})),n.d(e,"l",(function(){return l})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return f})),n.d(e,"k",(function(){return h})),n.d(e,"j",(function(){return d})),n.d(e,"i",(function(){return p})),n.d(e,"h",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"b",(function(){return y})),n.d(e,"e",(function(){return m})),n.d(e,"m",(function(){return b}));var r=n(613),i=n(579),o=n(1184),a=n(618),c=n(1408);function s(t){var e=t.chart,n=t.options,r=n.legend,i=n.colorField,o=n.seriesField;return!1===r?e.legend(!1):(i||o)&&e.legend(i||o,r),t}function l(t){var e=t.chart,n=t.options.tooltip;return void 0!==n&&e.tooltip(n),t}function u(t){var e=t.chart,n=t.options.interactions;return Object(i.j)(n,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),t}function f(t){var e=t.chart,n=t.options.animation;return"boolean"===typeof n?e.animate(n):e.animate(!0),Object(i.j)(e.geometries,(function(t){t.animate(n)})),t}function h(t){var e=t.chart,n=t.options.theme;return n&&e.theme(n),t}function d(t){var e=t.chart,n=t.options.state;return n&&Object(i.j)(e.geometries,(function(t){t.state(n)})),t}function p(t){var e=t.chart,n=t.options.slider;return e.option("slider",n),t}function g(t){var e=t.chart,n=t.options.scrollbar;return e.option("scrollbar",n),t}function v(t,e){return function(n){var r=n.chart,c=n.options,s={};return Object(i.j)(t,(function(t,e){s[e]=Object(a.t)(t,o.a)})),s=Object(a.c)({},e,c.meta,s),r.scale(s),n}}function y(t){return function(e){var n=e.chart,o=e.options,a=n.getController("annotation");return Object(i.j)(Object(r.d)(o.annotations||[],t||[]),(function(t){a.annotation(t)})),e}}function m(t){var e=t.chart,n=t.options,r=n.yAxis,o=n.limitInPlot,c=o;return Object(i.O)(r)&&Object(i.K)(o)&&(c=!!Object.values(Object(a.t)(r,["min","max","minLimit","maxLimit"])).some((function(t){return!Object(i.K)(t)}))),e.limitInPlot=c,t}function b(t){return void 0===t&&(t="rect"),function(e){var n=e.chart,r=e.options.coordinate,i=Array.from(r||[]).map((function(t){return"reflectX"===t.type?["reflect","x"]:"reflectY"===t.type?["reflect","y"]:"transpose"===t.type?["transpose"]:null})).filter((function(t){return!!t}));return 0!==i.length&&n.coordinate({type:t,actions:i}),e}}n.d(e,"f",(function(){return c.a}))},801:function(t,e,n){var r=n(821),i=n(733),o=n(781),a=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,s=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(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=c.test(t);return n||s.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},804:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(566),i=n(797),o=n(735),a=n(624),c=n(795),s=n(796),l=n(560),u=n.n(l),f=n(2),h=n(578);function d(t,e,n,l){var d,p=l.isLeaf,g=l.expanded;if(l.loading)return f.createElement(a.a,{className:"".concat(t,"-switcher-loading-icon")});if(n&&"object"===Object(r.a)(n)&&(d=n.showLeafIcon),p)return n?"object"!==Object(r.a)(n)||d?f.createElement(o.a,{className:"".concat(t,"-switcher-line-icon")}):f.createElement("span",{className:"".concat(t,"-switcher-leaf-line")}):null;var v="".concat(t,"-switcher-icon"),y="function"===typeof e?e({expanded:!!g}):e;return Object(h.b)(y)?Object(h.a)(y,{className:u()(y.props.className||"",v)}):y||(n?g?f.createElement(c.a,{className:"".concat(t,"-switcher-line-icon")}):f.createElement(s.a,{className:"".concat(t,"-switcher-line-icon")}):f.createElement(i.a,{className:v}))}},805:function(t,e,n){"use strict";function r(t){return null!==t&&void 0!==t&&t===t.window}function i(t,e){var n;if("undefined"===typeof window)return 0;var i=e?"scrollTop":"scrollLeft",o=0;return r(t)?o=t[e?"pageYOffset":"pageXOffset"]:t instanceof Document?o=t.documentElement[i]:t&&(o=t[i]),t&&!r(t)&&"number"!==typeof o&&(o=null===(n=(t.ownerDocument||t).documentElement)||void 0===n?void 0:n[i]),o}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},806: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}))},812:function(t,e,n){"use strict";n.d(e,"a",(function(){return E.a}));var r=n(23),i=n(561),o=n(566),a=n(559),c=n(565),s=n(570),l=n(571),u=n(582),f=n(572),h=n(573),d=n(2),p=n(576),g=n(568),v=n(593),y=n(560),m=n.n(y),b=n(685),x=n(659),O=n(614),j=n(563),w=n(567),C=n(647),S=n(622),E=n(635),M=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],k=function(t,e){var n=t.className,i=t.style,o=t.motion,a=t.motionNodes,c=t.motionType,s=t.onMotionStart,l=t.onMotionEnd,u=t.active,f=t.treeNodeRequiredProps,h=Object(w.a)(t,M),p=d.useState(!0),g=Object(j.a)(p,2),v=g[0],y=g[1],x=d.useContext(b.a).prefixCls,C=d.useRef(!1),k=function(){C.current||l(),C.current=!0};return Object(d.useEffect)((function(){a&&"hide"===c&&v&&y(!1)}),[a]),Object(d.useEffect)((function(){return a&&s(),function(){a&&k()}}),[]),a?d.createElement(S.b,Object(r.a)({ref:e,visible:v},o,{motionAppear:"show"===c,onAppearEnd:k,onLeaveEnd:k}),(function(t,e){var n=t.className,i=t.style;return d.createElement("div",{ref:e,className:m()("".concat(x,"-treenode-motion"),n),style:i},a.map((function(t){var e=Object(r.a)({},t.data),n=t.title,i=t.key,o=t.isStart,a=t.isEnd;delete e.children;var c=Object(O.g)(i,f);return d.createElement(E.a,Object(r.a)({},e,c,{title:n,active:u,data:t.data,key:i,isStart:o,isEnd:a}))})))})):d.createElement(E.a,Object(r.a)({domRef:e,className:n,style:i},h,{active:u}))};k.displayName="MotionTreeNode";var P=d.forwardRef(k);function A(t,e,n){var r=t.findIndex((function(t){return t.key===n})),i=t[r+1],o=e.findIndex((function(t){return t.key===n}));if(i){var a=e.findIndex((function(t){return t.key===i.key}));return e.slice(o+1,a)}return e.slice(o+1)}var I=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],F={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},T=function(){},L="RC_TREE_MOTION_".concat(Math.random()),N={key:L},D={key:L,level:0,index:0,pos:"0",node:N,nodes:[N]},B={parent:null,children:[],pos:D.pos,data:N,title:null,key:L,isStart:[],isEnd:[]};function R(t,e,n,r){return!1!==e&&n?t.slice(0,Math.ceil(n/r)+1):t}function _(t){var e=t.key,n=t.pos;return Object(O.f)(e,n)}var z=d.forwardRef((function(t,e){var n=t.prefixCls,i=t.data,o=(t.selectable,t.checkable,t.expandedKeys),a=t.selectedKeys,c=t.checkedKeys,s=t.loadedKeys,l=t.loadingKeys,u=t.halfCheckedKeys,f=t.keyEntities,h=t.disabled,p=t.dragging,g=t.dragOverNodeKey,v=t.dropPosition,y=t.motion,m=t.height,b=t.itemHeight,x=t.virtual,S=t.focusable,E=t.activeItem,M=t.focused,k=t.tabIndex,N=t.onKeyDown,D=t.onFocus,z=t.onBlur,V=t.onActiveChange,H=t.onListChangeStart,K=t.onListChangeEnd,Y=Object(w.a)(t,I),G=d.useRef(null),W=d.useRef(null);d.useImperativeHandle(e,(function(){return{scrollTo:function(t){G.current.scrollTo(t)},getIndentWidth:function(){return W.current.offsetWidth}}}));var X=d.useState(o),q=Object(j.a)(X,2),U=q[0],$=q[1],Z=d.useState(i),Q=Object(j.a)(Z,2),J=Q[0],tt=Q[1],et=d.useState(i),nt=Object(j.a)(et,2),rt=nt[0],it=nt[1],ot=d.useState([]),at=Object(j.a)(ot,2),ct=at[0],st=at[1],lt=d.useState(null),ut=Object(j.a)(lt,2),ft=ut[0],ht=ut[1],dt=d.useRef(i);function pt(){var t=dt.current;tt(t),it(t),st([]),ht(null),K()}dt.current=i,d.useEffect((function(){$(o);var t=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.length,r=e.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function i(t,e){var n=new Map;t.forEach((function(t){n.set(t,!0)}));var r=e.filter((function(t){return!n.has(t)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:i(t,e)}:{add:!1,key:i(e,t)}}(U,o);if(null!==t.key)if(t.add){var e=J.findIndex((function(e){return e.key===t.key})),n=R(A(J,i,t.key),x,m,b),r=J.slice();r.splice(e+1,0,B),it(r),st(n),ht("show")}else{var a=i.findIndex((function(e){return e.key===t.key})),c=R(A(i,J,t.key),x,m,b),s=i.slice();s.splice(a+1,0,B),it(s),st(c),ht("hide")}else J!==i&&(tt(i),it(i))}),[o,i]),d.useEffect((function(){p||pt()}),[p]);var gt=y?rt:i,vt={expandedKeys:o,selectedKeys:a,loadedKeys:s,loadingKeys:l,checkedKeys:c,halfCheckedKeys:u,dragOverNodeKey:g,dropPosition:v,keyEntities:f};return d.createElement(d.Fragment,null,M&&E&&d.createElement("span",{style:F,"aria-live":"assertive"},function(t){for(var e=String(t.data.key),n=t;n.parent;)n=n.parent,e="".concat(n.data.key," > ").concat(e);return e}(E)),d.createElement("div",null,d.createElement("input",{style:F,disabled:!1===S||h,tabIndex:!1!==S?k:null,onKeyDown:N,onFocus:D,onBlur:z,value:"",onChange:T,"aria-label":"for screen reader"})),d.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden"}},d.createElement("div",{className:"".concat(n,"-indent")},d.createElement("div",{ref:W,className:"".concat(n,"-indent-unit")}))),d.createElement(C.a,Object(r.a)({},Y,{data:gt,itemKey:_,height:m,fullHeight:!1,virtual:x,itemHeight:b,prefixCls:"".concat(n,"-list"),ref:G,onVisibleChange:function(t,e){var n=new Set(t);e.filter((function(t){return!n.has(t)})).some((function(t){return _(t)===L}))&&pt()}}),(function(t){var e=t.pos,n=Object(r.a)({},t.data),i=t.title,o=t.key,a=t.isStart,c=t.isEnd,s=Object(O.f)(o,e);delete n.key,delete n.children;var l=Object(O.g)(s,vt);return d.createElement(P,Object(r.a)({},n,l,{title:i,active:!!E&&o===E.key,pos:e,data:t.data,isStart:a,isEnd:c,motion:y,motionNodes:o===L?ct:null,motionType:ft,onMotionStart:H,onMotionEnd:pt,treeNodeRequiredProps:vt,onMouseMove:function(){V(null)}}))})))}));z.displayName="NodeList";var V=z,H=n(730);var K=function(t){Object(f.a)(n,t);var e=Object(h.a)(n);function n(){var t;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return(t=e.call.apply(e,[this].concat(i))).destroyed=!1,t.delayedDragEnterLogic=void 0,t.loadingRetryTimes={},t.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:Object(O.d)()},t.dragStartMousePosition=null,t.dragNode=void 0,t.currentMouseOverDroppableNodeKey=null,t.listRef=d.createRef(),t.onNodeDragStart=function(e,n){var r=t.state,i=r.expandedKeys,o=r.keyEntities,a=t.props.onDragStart,c=n.props.eventKey;t.dragNode=n,t.dragStartMousePosition={x:e.clientX,y:e.clientY};var s=Object(x.b)(i,c);t.setState({draggingNodeKey:c,dragChildrenKeys:Object(x.f)(c,o),indent:t.listRef.current.getIndentWidth()}),t.setExpandedKeys(s),window.addEventListener("dragend",t.onWindowDragEnd),null===a||void 0===a||a({event:e,node:Object(O.b)(n.props)})},t.onNodeDragEnter=function(e,n){var r=t.state,i=r.expandedKeys,o=r.keyEntities,a=r.dragChildrenKeys,s=r.flattenNodes,l=r.indent,f=t.props,h=f.onDragEnter,d=f.onExpand,p=f.allowDrop,g=f.direction,v=n.props,y=v.pos,m=v.eventKey,b=Object(u.a)(t).dragNode;if(t.currentMouseOverDroppableNodeKey!==m&&(t.currentMouseOverDroppableNodeKey=m),b){var j=Object(x.c)(e,b,n,l,t.dragStartMousePosition,p,s,o,i,g),w=j.dropPosition,C=j.dropLevelOffset,S=j.dropTargetKey,E=j.dropContainerKey,M=j.dropTargetPos,k=j.dropAllowed,P=j.dragOverNodeKey;-1===a.indexOf(S)&&k?(t.delayedDragEnterLogic||(t.delayedDragEnterLogic={}),Object.keys(t.delayedDragEnterLogic).forEach((function(e){clearTimeout(t.delayedDragEnterLogic[e])})),b.props.eventKey!==n.props.eventKey&&(e.persist(),t.delayedDragEnterLogic[y]=window.setTimeout((function(){if(null!==t.state.draggingNodeKey){var r=Object(c.a)(i),a=o[n.props.eventKey];a&&(a.children||[]).length&&(r=Object(x.a)(i,n.props.eventKey)),"expandedKeys"in t.props||t.setExpandedKeys(r),null===d||void 0===d||d(r,{node:Object(O.b)(n.props),expanded:!0,nativeEvent:e.nativeEvent})}}),800)),b.props.eventKey!==S||0!==C?(t.setState({dragOverNodeKey:P,dropPosition:w,dropLevelOffset:C,dropTargetKey:S,dropContainerKey:E,dropTargetPos:M,dropAllowed:k}),null===h||void 0===h||h({event:e,node:Object(O.b)(n.props),expandedKeys:i})):t.resetDragState()):t.resetDragState()}else t.resetDragState()},t.onNodeDragOver=function(e,n){var r=t.state,i=r.dragChildrenKeys,o=r.flattenNodes,a=r.keyEntities,c=r.expandedKeys,s=r.indent,l=t.props,f=l.onDragOver,h=l.allowDrop,d=l.direction,p=Object(u.a)(t).dragNode;if(p){var g=Object(x.c)(e,p,n,s,t.dragStartMousePosition,h,o,a,c,d),v=g.dropPosition,y=g.dropLevelOffset,m=g.dropTargetKey,b=g.dropContainerKey,j=g.dropAllowed,w=g.dropTargetPos,C=g.dragOverNodeKey;-1===i.indexOf(m)&&j&&(p.props.eventKey===m&&0===y?null===t.state.dropPosition&&null===t.state.dropLevelOffset&&null===t.state.dropTargetKey&&null===t.state.dropContainerKey&&null===t.state.dropTargetPos&&!1===t.state.dropAllowed&&null===t.state.dragOverNodeKey||t.resetDragState():v===t.state.dropPosition&&y===t.state.dropLevelOffset&&m===t.state.dropTargetKey&&b===t.state.dropContainerKey&&w===t.state.dropTargetPos&&j===t.state.dropAllowed&&C===t.state.dragOverNodeKey||t.setState({dropPosition:v,dropLevelOffset:y,dropTargetKey:m,dropContainerKey:b,dropTargetPos:w,dropAllowed:j,dragOverNodeKey:C}),null===f||void 0===f||f({event:e,node:Object(O.b)(n.props)}))}},t.onNodeDragLeave=function(e,n){t.currentMouseOverDroppableNodeKey!==n.props.eventKey||e.currentTarget.contains(e.relatedTarget)||(t.resetDragState(),t.currentMouseOverDroppableNodeKey=null);var r=t.props.onDragLeave;null===r||void 0===r||r({event:e,node:Object(O.b)(n.props)})},t.onWindowDragEnd=function(e){t.onNodeDragEnd(e,null,!0),window.removeEventListener("dragend",t.onWindowDragEnd)},t.onNodeDragEnd=function(e,n){var r=t.props.onDragEnd;t.setState({dragOverNodeKey:null}),t.cleanDragState(),null===r||void 0===r||r({event:e,node:Object(O.b)(n.props)}),t.dragNode=null},t.onNodeDrop=function(e,n){var r,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=t.state,c=o.dragChildrenKeys,s=o.dropPosition,l=o.dropTargetKey,u=o.dropTargetPos,f=o.dropAllowed;if(f){var h=t.props.onDrop;if(t.setState({dragOverNodeKey:null}),t.cleanDragState(),null!==l){var d=Object(a.a)(Object(a.a)({},Object(O.g)(l,t.getTreeNodeRequiredProps())),{},{active:(null===(r=t.getActiveItem())||void 0===r?void 0:r.key)===l,data:t.state.keyEntities[l].node}),p=-1!==c.indexOf(l);Object(g.a)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var v=Object(x.j)(u),y={event:e,node:Object(O.b)(d),dragNode:t.dragNode?Object(O.b)(t.dragNode.props):null,dragNodesKeys:[t.dragNode.props.eventKey].concat(c),dropToGap:0!==s,dropPosition:s+Number(v[v.length-1])};i||null===h||void 0===h||h(y),t.dragNode=null}}},t.cleanDragState=function(){null!==t.state.draggingNodeKey&&t.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),t.dragStartMousePosition=null,t.currentMouseOverDroppableNodeKey=null},t.triggerExpandActionExpand=function(e,n){var r=t.state,i=r.expandedKeys,o=r.flattenNodes,c=n.expanded,s=n.key;if(!(n.isLeaf||e.shiftKey||e.metaKey||e.ctrlKey)){var l=o.filter((function(t){return t.key===s}))[0],u=Object(O.b)(Object(a.a)(Object(a.a)({},Object(O.g)(s,t.getTreeNodeRequiredProps())),{},{data:l.data}));t.setExpandedKeys(c?Object(x.b)(i,s):Object(x.a)(i,s)),t.onNodeExpand(e,u)}},t.onNodeClick=function(e,n){var r=t.props,i=r.onClick;"click"===r.expandAction&&t.triggerExpandActionExpand(e,n),null===i||void 0===i||i(e,n)},t.onNodeDoubleClick=function(e,n){var r=t.props,i=r.onDoubleClick;"doubleClick"===r.expandAction&&t.triggerExpandActionExpand(e,n),null===i||void 0===i||i(e,n)},t.onNodeSelect=function(e,n){var r=t.state.selectedKeys,i=t.state,o=i.keyEntities,a=i.fieldNames,c=t.props,s=c.onSelect,l=c.multiple,u=n.selected,f=n[a.key],h=!u,d=(r=h?l?Object(x.a)(r,f):[f]:Object(x.b)(r,f)).map((function(t){var e=o[t];return e?e.node:null})).filter((function(t){return t}));t.setUncontrolledState({selectedKeys:r}),null===s||void 0===s||s(r,{event:"select",selected:h,node:n,selectedNodes:d,nativeEvent:e.nativeEvent})},t.onNodeCheck=function(e,n,r){var i,o=t.state,a=o.keyEntities,s=o.checkedKeys,l=o.halfCheckedKeys,u=t.props,f=u.checkStrictly,h=u.onCheck,d=n.key,p={event:"check",node:n,checked:r,nativeEvent:e.nativeEvent};if(f){var g=r?Object(x.a)(s,d):Object(x.b)(s,d);i={checked:g,halfChecked:Object(x.b)(l,d)},p.checkedNodes=g.map((function(t){return a[t]})).filter((function(t){return t})).map((function(t){return t.node})),t.setUncontrolledState({checkedKeys:g})}else{var v=Object(H.a)([].concat(Object(c.a)(s),[d]),!0,a),y=v.checkedKeys,m=v.halfCheckedKeys;if(!r){var b=new Set(y);b.delete(d);var O=Object(H.a)(Array.from(b),{checked:!1,halfCheckedKeys:m},a);y=O.checkedKeys,m=O.halfCheckedKeys}i=y,p.checkedNodes=[],p.checkedNodesPositions=[],p.halfCheckedKeys=m,y.forEach((function(t){var e=a[t];if(e){var n=e.node,r=e.pos;p.checkedNodes.push(n),p.checkedNodesPositions.push({node:n,pos:r})}})),t.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:m})}null===h||void 0===h||h(i,p)},t.onNodeLoad=function(e){var n=e.key,r=new Promise((function(r,i){t.setState((function(o){var a=o.loadedKeys,c=void 0===a?[]:a,s=o.loadingKeys,l=void 0===s?[]:s,u=t.props,f=u.loadData,h=u.onLoad;return f&&-1===c.indexOf(n)&&-1===l.indexOf(n)?(f(e).then((function(){var i=t.state.loadedKeys,o=Object(x.a)(i,n);null===h||void 0===h||h(o,{event:"load",node:e}),t.setUncontrolledState({loadedKeys:o}),t.setState((function(t){return{loadingKeys:Object(x.b)(t.loadingKeys,n)}})),r()})).catch((function(e){if(t.setState((function(t){return{loadingKeys:Object(x.b)(t.loadingKeys,n)}})),t.loadingRetryTimes[n]=(t.loadingRetryTimes[n]||0)+1,t.loadingRetryTimes[n]>=10){var o=t.state.loadedKeys;Object(g.a)(!1,"Retry for `loadData` many times but still failed. No more retry."),t.setUncontrolledState({loadedKeys:Object(x.a)(o,n)}),r()}i(e)})),{loadingKeys:Object(x.a)(l,n)}):null}))}));return r.catch((function(){})),r},t.onNodeMouseEnter=function(e,n){var r=t.props.onMouseEnter;null===r||void 0===r||r({event:e,node:n})},t.onNodeMouseLeave=function(e,n){var r=t.props.onMouseLeave;null===r||void 0===r||r({event:e,node:n})},t.onNodeContextMenu=function(e,n){var r=t.props.onRightClick;r&&(e.preventDefault(),r({event:e,node:n}))},t.onFocus=function(){var e=t.props.onFocus;t.setState({focused:!0});for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===e||void 0===e||e.apply(void 0,r)},t.onBlur=function(){var e=t.props.onBlur;t.setState({focused:!1}),t.onActiveChange(null);for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];null===e||void 0===e||e.apply(void 0,r)},t.getTreeNodeRequiredProps=function(){var e=t.state;return{expandedKeys:e.expandedKeys||[],selectedKeys:e.selectedKeys||[],loadedKeys:e.loadedKeys||[],loadingKeys:e.loadingKeys||[],checkedKeys:e.checkedKeys||[],halfCheckedKeys:e.halfCheckedKeys||[],dragOverNodeKey:e.dragOverNodeKey,dropPosition:e.dropPosition,keyEntities:e.keyEntities}},t.setExpandedKeys=function(e){var n=t.state,r=n.treeData,i=n.fieldNames,o=Object(O.e)(r,e,i);t.setUncontrolledState({expandedKeys:e,flattenNodes:o},!0)},t.onNodeExpand=function(e,n){var r=t.state.expandedKeys,i=t.state,o=i.listChanging,a=i.fieldNames,c=t.props,s=c.onExpand,l=c.loadData,u=n.expanded,f=n[a.key];if(!o){var h=r.indexOf(f),d=!u;if(Object(g.a)(u&&-1!==h||!u&&-1===h,"Expand state not sync with index check"),r=d?Object(x.a)(r,f):Object(x.b)(r,f),t.setExpandedKeys(r),null===s||void 0===s||s(r,{node:n,expanded:d,nativeEvent:e.nativeEvent}),d&&l){var p=t.onNodeLoad(n);p&&p.then((function(){var e=Object(O.e)(t.state.treeData,r,a);t.setUncontrolledState({flattenNodes:e})})).catch((function(){var e=t.state.expandedKeys,n=Object(x.b)(e,f);t.setExpandedKeys(n)}))}}},t.onListChangeStart=function(){t.setUncontrolledState({listChanging:!0})},t.onListChangeEnd=function(){setTimeout((function(){t.setUncontrolledState({listChanging:!1})}))},t.onActiveChange=function(e){var n=t.state.activeKey,r=t.props.onActiveChange;n!==e&&(t.setState({activeKey:e}),null!==e&&t.scrollTo({key:e}),null===r||void 0===r||r(e))},t.getActiveItem=function(){var e=t.state,n=e.activeKey,r=e.flattenNodes;return null===n?null:r.find((function(t){return t.key===n}))||null},t.offsetActiveKey=function(e){var n=t.state,r=n.flattenNodes,i=n.activeKey,o=r.findIndex((function(t){return t.key===i}));-1===o&&e<0&&(o=r.length);var a=r[o=(o+e+r.length)%r.length];if(a){var c=a.key;t.onActiveChange(c)}else t.onActiveChange(null)},t.onKeyDown=function(e){var n=t.state,r=n.activeKey,i=n.expandedKeys,o=n.checkedKeys,c=n.fieldNames,s=t.props,l=s.onKeyDown,u=s.checkable,f=s.selectable;switch(e.which){case p.a.UP:t.offsetActiveKey(-1),e.preventDefault();break;case p.a.DOWN:t.offsetActiveKey(1),e.preventDefault()}var h=t.getActiveItem();if(h&&h.data){var d=t.getTreeNodeRequiredProps(),g=!1===h.data.isLeaf||!!(h.data[c.children]||[]).length,v=Object(O.b)(Object(a.a)(Object(a.a)({},Object(O.g)(r,d)),{},{data:h.data,active:!0}));switch(e.which){case p.a.LEFT:g&&i.includes(r)?t.onNodeExpand({},v):h.parent&&t.onActiveChange(h.parent.key),e.preventDefault();break;case p.a.RIGHT:g&&!i.includes(r)?t.onNodeExpand({},v):h.children&&h.children.length&&t.onActiveChange(h.children[0].key),e.preventDefault();break;case p.a.ENTER:case p.a.SPACE:!u||v.disabled||!1===v.checkable||v.disableCheckbox?u||!f||v.disabled||!1===v.selectable||t.onNodeSelect({},v):t.onNodeCheck({},v,!o.includes(r))}}null===l||void 0===l||l(e)},t.setUncontrolledState=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t.destroyed){var i=!1,o=!0,c={};Object.keys(e).forEach((function(n){n in t.props?o=!1:(i=!0,c[n]=e[n])})),!i||n&&!o||t.setState(Object(a.a)(Object(a.a)({},c),r))}},t.scrollTo=function(e){t.listRef.current.scrollTo(e)},t}return Object(l.a)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var t=this.props.activeKey;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var t,e,n=this.state,a=n.focused,c=n.flattenNodes,s=n.keyEntities,l=n.draggingNodeKey,u=n.activeKey,f=n.dropLevelOffset,h=n.dropContainerKey,p=n.dropTargetKey,g=n.dropPosition,y=n.dragOverNodeKey,x=n.indent,O=this.props,j=O.prefixCls,w=O.className,C=O.style,S=O.showLine,E=O.focusable,M=O.tabIndex,k=void 0===M?0:M,P=O.selectable,A=O.showIcon,I=O.icon,F=O.switcherIcon,T=O.draggable,L=O.checkable,N=O.checkStrictly,D=O.disabled,B=O.motion,R=O.loadData,_=O.filterTreeNode,z=O.height,H=O.itemHeight,K=O.virtual,Y=O.titleRender,G=O.dropIndicatorRender,W=O.onContextMenu,X=O.onScroll,q=O.direction,U=O.rootClassName,$=O.rootStyle,Z=Object(v.a)(this.props,{aria:!0,data:!0});return T&&(e="object"===Object(o.a)(T)?T:"function"===typeof T?{nodeDraggable:T}:{}),d.createElement(b.a.Provider,{value:{prefixCls:j,selectable:P,showIcon:A,icon:I,switcherIcon:F,draggable:e,draggingNodeKey:l,checkable:L,checkStrictly:N,disabled:D,keyEntities:s,dropLevelOffset:f,dropContainerKey:h,dropTargetKey:p,dropPosition:g,dragOverNodeKey:y,indent:x,direction:q,dropIndicatorRender:G,loadData:R,filterTreeNode:_,titleRender:Y,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},d.createElement("div",{role:"tree",className:m()(j,w,U,(t={},Object(i.a)(t,"".concat(j,"-show-line"),S),Object(i.a)(t,"".concat(j,"-focused"),a),Object(i.a)(t,"".concat(j,"-active-focused"),null!==u),t)),style:$},d.createElement(V,Object(r.a)({ref:this.listRef,prefixCls:j,style:C,data:c,disabled:D,selectable:P,checkable:!!L,motion:B,dragging:null!==l,height:z,itemHeight:H,virtual:K,focusable:E,focused:a,tabIndex:k,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:W,onScroll:X},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(t,e){var n,r=e.prevProps,o={prevProps:t};function c(e){return!r&&e in t||r&&r[e]!==t[e]}var s=e.fieldNames;if(c("fieldNames")&&(s=Object(O.d)(t.fieldNames),o.fieldNames=s),c("treeData")?n=t.treeData:c("children")&&(Object(g.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Object(O.c)(t.children)),n){o.treeData=n;var l=Object(O.a)(n,{fieldNames:s});o.keyEntities=Object(a.a)(Object(i.a)({},L,D),l.keyEntities)}var u,f=o.keyEntities||e.keyEntities;if(c("expandedKeys")||r&&c("autoExpandParent"))o.expandedKeys=t.autoExpandParent||!r&&t.defaultExpandParent?Object(x.e)(t.expandedKeys,f):t.expandedKeys;else if(!r&&t.defaultExpandAll){var h=Object(a.a)({},f);delete h[L],o.expandedKeys=Object.keys(h).map((function(t){return h[t].key}))}else!r&&t.defaultExpandedKeys&&(o.expandedKeys=t.autoExpandParent||t.defaultExpandParent?Object(x.e)(t.defaultExpandedKeys,f):t.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var d=Object(O.e)(n||e.treeData,o.expandedKeys||e.expandedKeys,s);o.flattenNodes=d}if((t.selectable&&(c("selectedKeys")?o.selectedKeys=Object(x.d)(t.selectedKeys,t):!r&&t.defaultSelectedKeys&&(o.selectedKeys=Object(x.d)(t.defaultSelectedKeys,t))),t.checkable)&&(c("checkedKeys")?u=Object(x.i)(t.checkedKeys)||{}:!r&&t.defaultCheckedKeys?u=Object(x.i)(t.defaultCheckedKeys)||{}:n&&(u=Object(x.i)(t.checkedKeys)||{checkedKeys:e.checkedKeys,halfCheckedKeys:e.halfCheckedKeys}),u)){var p=u,v=p.checkedKeys,y=void 0===v?[]:v,m=p.halfCheckedKeys,b=void 0===m?[]:m;if(!t.checkStrictly){var j=Object(H.a)(y,!0,f);y=j.checkedKeys,b=j.halfCheckedKeys}o.checkedKeys=y,o.halfCheckedKeys=b}return c("loadedKeys")&&(o.loadedKeys=t.loadedKeys),o}}]),n}(d.Component);K.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(t){var e=t.dropPosition,n=t.dropLevelOffset,r=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(e){case-1:i.top=0,i.left=-n*r;break;case 1:i.bottom=0,i.left=-n*r;break;case 0:i.bottom=0,i.left=r}return d.createElement("div",{style:i})},allowDrop:function(){return!0},expandAction:!1},K.TreeNode=E.a;var Y=K;e.b=Y},814:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(581);function i(t,e,n,r){var i=n-e;return(t/=r/2)<1?i/2*t*t*t+e:i/2*((t-=2)*t*t+2)+e}var o=n(805);function a(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.getContainer,a=void 0===n?function(){return window}:n,c=e.callback,s=e.duration,l=void 0===s?450:s,u=a(),f=Object(o.a)(u,!0),h=Date.now(),d=function e(){var n=Date.now()-h,a=i(n>l?l:n,f,t,l);Object(o.b)(u)?u.scrollTo(window.pageXOffset,a):u instanceof HTMLDocument||"HTMLDocument"===u.constructor.name?u.documentElement.scrollTop=a:u.scrollTop=a,n<l?Object(r.a)(e):"function"===typeof c&&c()};Object(r.a)(d)}},815:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M349 838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V642H349v196zm531.1-684H143.9c-24.5 0-39.8 26.7-27.5 48l221.3 376h348.8l221.3-376c12.1-21.3-3.2-48-27.7-48z"}}]},name:"filter",theme:"filled"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="FilterFilled";e.a=i.forwardRef(c)},816:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CaretUpOutlined";e.a=i.forwardRef(c)},817:function(t,e,n){"use strict";var r=n(559),i=n(2),o={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},a=n(562),c=function(t,e){return i.createElement(a.a,Object(r.a)(Object(r.a)({},t),{},{ref:e,icon:o}))};c.displayName="CaretDownOutlined";e.a=i.forwardRef(c)},818:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u.a})),n.d(e,"c",(function(){return h})),n.d(e,"f",(function(){return d.a})),n.d(e,"b",(function(){return p})),n.d(e,"g",(function(){return g})),n.d(e,"h",(function(){return v}));var r=n(613),i=n(1016),o=n(618),a=n(964);function c(t){var e=t.options,n=e.area,c=e.xField,s=e.yField,l=e.seriesField,u=e.smooth,f=e.tooltip,h=e.useDeferredLabel,d=Object(i.a)(f,[c,s,l]),p=d.fields,g=d.formatter;return n?Object(a.a)(Object(o.c)({},t,{options:{type:"area",colorField:l,tooltipFields:p,mapping:Object(r.a)({shape:u?"smooth":"area",tooltip:g},n),args:{useDeferredLabel:h}}})):t}var s=n(579);function l(t){var e=t.options,n=e.line,r=e.stepType,c=e.xField,l=e.yField,u=e.seriesField,f=e.smooth,h=e.connectNulls,d=e.tooltip,p=e.useDeferredLabel,g=Object(i.a)(d,[c,l,u]),v=g.fields,y=g.formatter;return n?Object(a.a)(Object(o.c)({},t,{options:{type:"line",colorField:u,tooltipFields:v,mapping:Object(s.h)({shape:r||(f?"smooth":"line"),tooltip:y},n),args:{connectNulls:h,useDeferredLabel:p}}})):t}var u=n(2193),f=n(761);function h(t){var e=t.options,n=e.xField,c=e.yField,l=e.interval,u=e.seriesField,h=e.tooltip,d=e.minColumnWidth,p=e.maxColumnWidth,g=e.columnBackground,v=e.dodgePadding,y=e.intervalPadding,m=e.useDeferredLabel,b=Object(i.a)(h,[n,c,u]),x=b.fields,O=b.formatter,j=(l?Object(a.a)(Object(o.c)({},t,{options:{type:"interval",colorField:u,tooltipFields:x,mapping:Object(r.a)({tooltip:O},l),args:{dodgePadding:v,intervalPadding:y,minColumnWidth:d,maxColumnWidth:p,background:g,useDeferredLabel:m}}})):t).ext;return function(t){var e=t.chart,n=t.options,r=t.ext,i=n.seriesField,a=n.isGroup,c=n.isStack,l=n.marginRatio,u=n.widthRatio,h=n.groupField,d=n.theme,p=[];return i&&(a&&p.push({type:"dodge",dodgeBy:h||i,marginRatio:l}),c&&p.push({type:"stack",marginRatio:l})),p.length&&(null===r||void 0===r?void 0:r.geometry)&&(null===r||void 0===r?void 0:r.geometry).adjust(p),Object(s.K)(u)||e.theme(Object(o.c)({},Object(s.O)(d)?d:Object(f.k)(d),{columnWidthRatio:u})),t}(Object(r.a)(Object(r.a)({},t),{ext:j}))}var d=n(2194);function p(t){var e=t.options,n=e.edge,c=e.xField,s=e.yField,l=e.seriesField,u=e.tooltip,f=e.useDeferredLabel,h=Object(i.a)(u,[c,s,l]),d=h.fields,p=h.formatter;return n?Object(a.a)(Object(o.c)({},t,{options:{type:"edge",colorField:l,tooltipFields:d,mapping:Object(r.a)({tooltip:p},n),args:{useDeferredLabel:f}}})):t}function g(t){var e=t.options,n=e.schema,c=e.xField,s=e.yField,l=e.seriesField,u=e.tooltip,f=e.useDeferredLabel,h=Object(i.a)(u,[c,s,l]),d=h.fields,p=h.formatter;return n?Object(a.a)(Object(o.c)({},t,{options:{type:"schema",colorField:l,tooltipFields:d,mapping:Object(r.a)({tooltip:p},n),args:{useDeferredLabel:f}}})):t}function v(t){var e=t.options,n=e.violin,c=e.xField,s=e.yField,l=e.seriesField,u=e.sizeField,f=e.tooltip,h=Object(i.a)(f,[c,s,l,u]),d=h.fields,p=h.formatter;return n?Object(a.a)(Object(o.c)({},t,{options:{type:"violin",colorField:l,tooltipFields:d,mapping:Object(r.a)({tooltip:p},n)}})):t}},820:function(t,e,n){var r=n(844);t.exports=function(){return r.Date.now()}},821:function(t,e,n){var r=n(822),i=/^\s+/;t.exports=function(t){return t?t.slice(0,r(t)+1).replace(i,""):t}},822:function(t,e){var n=/\s/;t.exports=function(t){for(var e=t.length;e--&&n.test(t.charAt(e)););return e}},825:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return c}));var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function i(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}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function a(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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n}Object.create;function c(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var r=Array(t),i=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,c=o.length;a<c;a++,i++)r[i]=o[a];return r}Object.create},874:function(t,e,n){"use strict";n.r(e);var r=n(566),i=n(561),o=n(563),a=n(23),c=n(560),s=n.n(c),l=n(559),u=n(565),f=n(2),h=n(719),d=n(593),p=n(765),g=n(599),v=n.n(g),y=n(568),m=n(615),b=n(720);var x=function(t){return null};var O=function(t){return null},j=n(567),w=n(588);function C(t){return void 0===t||null===t?[]:Array.isArray(t)?t:[t]}function S(t,e){if(!e&&"number"!==typeof e)return t;for(var n=C(e),r=t,i=0;i<n.length;i+=1){if(!r)return null;r=r[n[i]]}return r}function E(t){var e=[],n={};return t.forEach((function(t){for(var r=t||{},i=r.key,o=r.dataIndex,a=i||C(o).join("-")||"RC_TABLE_KEY";n[a];)a="".concat(a,"_next");n[a]=!0,e.push(a)})),e}function M(t){return null!==t&&void 0!==t}var k=f.createContext(!1),P=n(603),A=n(728);var I=function(){var t=f.createContext(null);return{Context:t,Provider:function(e){var n=e.value,r=e.children,i=f.useRef(n);i.current=n;var a=f.useState((function(){return{getValue:function(){return i.current},listeners:new Set}})),c=Object(o.a)(a,1)[0];return Object(P.a)((function(){c.listeners.forEach((function(t){t(n)}))}),[n]),f.createElement(t.Provider,{value:c},r)}}}(),F=f.createContext(null),T=f.createContext({renderWithProps:!1}),L=["colSpan","rowSpan","style","className"];function N(t,e){var n,a,c,u=t.prefixCls,h=t.className,d=t.record,p=t.index,g=t.renderIndex,v=t.dataIndex,y=t.render,m=t.children,b=t.component,x=void 0===b?"td":b,O=t.colSpan,C=t.rowSpan,E=t.fixLeft,P=t.fixRight,A=t.firstFixLeft,I=t.lastFixLeft,N=t.firstFixRight,D=t.lastFixRight,B=t.appendNode,R=t.additionalProps,_=void 0===R?{}:R,z=t.ellipsis,V=t.align,H=t.rowType,K=t.isSticky,Y=t.hovering,G=t.onHover,W="".concat(u,"-cell"),X=f.useContext(T),q=f.useContext(k),U=f.useContext(F).allColumnsFixedLeft,$=f.useMemo((function(){if(M(m))return[m];var t,e=S(d,v),n=e,i=void 0;if(y){var o=y(e,d,g);!(t=o)||"object"!==Object(r.a)(t)||Array.isArray(t)||f.isValidElement(t)?n=o:(n=o.children,i=o.props,X.renderWithProps=!0)}return[n,i]}),[X.renderWithProps?Math.random():0,m,v,X,d,y,g]),Z=Object(o.a)($,2),Q=Z[0],J=Z[1],tt=Q;"object"!==Object(r.a)(tt)||Array.isArray(tt)||f.isValidElement(tt)||(tt=null),z&&(I||N)&&(tt=f.createElement("span",{className:"".concat(W,"-content")},tt));var et=J||{},nt=et.colSpan,rt=et.rowSpan,it=et.style,ot=et.className,at=Object(j.a)(et,L),ct=null!==(n=void 0!==nt?nt:O)&&void 0!==n?n:1,st=null!==(a=void 0!==rt?rt:C)&&void 0!==a?a:1;if(0===ct||0===st)return null;var lt={},ut="number"===typeof E&&q,ft="number"===typeof P&&q;ut&&(lt.position="sticky",lt.left=E),ft&&(lt.position="sticky",lt.right=P);var ht={};V&&(ht.textAlign=V);var dt,pt=function(t){var e,n=t.ellipsis,r=t.rowType,i=t.children,o=!0===n?{showTitle:!0}:n;return o&&(o.showTitle||"header"===r)&&("string"===typeof i||"number"===typeof i?e=i.toString():f.isValidElement(i)&&"string"===typeof i.props.children&&(e=i.props.children)),e}({rowType:H,ellipsis:z,children:Q}),gt=Object(l.a)(Object(l.a)(Object(l.a)({title:pt},at),_),{},{colSpan:1!==ct?ct:null,rowSpan:1!==st?st:null,className:s()(W,h,(c={},Object(i.a)(c,"".concat(W,"-fix-left"),ut&&q),Object(i.a)(c,"".concat(W,"-fix-left-first"),A&&q),Object(i.a)(c,"".concat(W,"-fix-left-last"),I&&q),Object(i.a)(c,"".concat(W,"-fix-left-all"),I&&U&&q),Object(i.a)(c,"".concat(W,"-fix-right"),ft&&q),Object(i.a)(c,"".concat(W,"-fix-right-first"),N&&q),Object(i.a)(c,"".concat(W,"-fix-right-last"),D&&q),Object(i.a)(c,"".concat(W,"-ellipsis"),z),Object(i.a)(c,"".concat(W,"-with-append"),B),Object(i.a)(c,"".concat(W,"-fix-sticky"),(ut||ft)&&K&&q),Object(i.a)(c,"".concat(W,"-row-hover"),!J&&Y),c),_.className,ot),style:Object(l.a)(Object(l.a)(Object(l.a)(Object(l.a)({},_.style),ht),lt),it),onMouseEnter:function(t){var e;d&&G(p,p+st-1),null===_||void 0===_||null===(e=_.onMouseEnter)||void 0===e||e.call(_,t)},onMouseLeave:function(t){var e;d&&G(-1,-1),null===_||void 0===_||null===(e=_.onMouseLeave)||void 0===e||e.call(_,t)},ref:(dt=x,"string"===typeof dt||Object(w.c)(dt)?e:null)});return f.createElement(x,gt,B,tt)}var D=f.forwardRef(N);D.displayName="Cell";var B=["expanded","className","hovering"],R=f.memo(D,(function(t,e){return e.shouldCellUpdate?B.every((function(n){return t[n]===e[n]}))&&!e.shouldCellUpdate(e.record,t.record):v()(t,e)})),_=f.forwardRef((function(t,e){var n=t.index,r=t.additionalProps,i=void 0===r?{}:r,c=t.colSpan,s=t.rowSpan,l=i.colSpan,u=i.rowSpan,h=null!==c&&void 0!==c?c:l,d=null!==s&&void 0!==s?s:u,p=function(t,e){var n=Object(A.a)(e),r=f.useContext(null===t||void 0===t?void 0:t.Context),i=r||{},a=i.listeners,c=i.getValue,s=f.useState((function(){return n(r?c():null)})),l=Object(o.a)(s,2),u=l[0],h=l[1];return Object(P.a)((function(){if(r)return a.add(t),function(){a.delete(t)};function t(t){h((function(e){var r=n(t);return v()(e,r)?e:r}))}}),[r]),u}(I,(function(t){var e=function(t,e,n,r){return t<=r&&t+e-1>=n}(n,d||1,null===t||void 0===t?void 0:t.startRow,null===t||void 0===t?void 0:t.endRow);return{onHover:null===t||void 0===t?void 0:t.onHover,hovering:e}})),g=p.onHover,y=p.hovering;return f.createElement(R,Object(a.a)({},t,{colSpan:h,rowSpan:d,hovering:y,ref:e,onHover:g}))}));_.displayName="WrappedCell";var z=_,V=f.createContext(null);function H(t,e,n,r,i){var o,a,c=n[t]||{},s=n[e]||{};"left"===c.fixed?o=r.left[t]:"right"===s.fixed&&(a=r.right[e]);var l=!1,u=!1,f=!1,h=!1,d=n[e+1],p=n[t-1];if("rtl"===i){if(void 0!==o)h=!(p&&"left"===p.fixed);else if(void 0!==a){f=!(d&&"right"===d.fixed)}}else if(void 0!==o){l=!(d&&"left"===d.fixed)}else if(void 0!==a){u=!(p&&"right"===p.fixed)}return{fixLeft:o,fixRight:a,lastFixLeft:l,firstFixRight:u,lastFixRight:f,firstFixLeft:h,isSticky:r.isSticky}}function K(t){var e,n=t.cells,r=t.stickyOffsets,i=t.flattenColumns,o=t.rowComponent,c=t.cellComponent,s=t.onHeaderRow,l=t.index,u=f.useContext(V),h=u.prefixCls,d=u.direction;s&&(e=s(n.map((function(t){return t.column})),l));var p=E(n.map((function(t){return t.column})));return f.createElement(o,e,n.map((function(t,e){var n,o=t.column,s=H(t.colStart,t.colEnd,i,r,d);return o&&o.onHeaderCell&&(n=t.column.onHeaderCell(o)),f.createElement(z,Object(a.a)({},t,{ellipsis:o.ellipsis,align:o.align,component:c,prefixCls:h,key:p[e]},s,{additionalProps:n,rowType:"header"}))})))}K.displayName="HeaderRow";var Y=K;var G=function(t){var e=t.stickyOffsets,n=t.columns,r=t.flattenColumns,i=t.onHeaderRow,o=f.useContext(V),a=o.prefixCls,c=o.getComponent,s=f.useMemo((function(){return function(t){var e=[];!function t(n,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;e[i]=e[i]||[];var o=r,a=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:o},a=1,c=n.children;return c&&c.length>0&&(a=t(c,o,i+1).reduce((function(t,e){return t+e}),0),r.hasSubColumns=!0),"colSpan"in n&&(a=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=a,r.colEnd=r.colStart+a-1,e[i].push(r),o+=a,a}));return a}(t,0);for(var n=e.length,r=function(t){e[t].forEach((function(e){"rowSpan"in e||e.hasSubColumns||(e.rowSpan=n-t)}))},i=0;i<n;i+=1)r(i);return e}(n)}),[n]),l=c(["header","wrapper"],"thead"),u=c(["header","row"],"tr"),h=c(["header","cell"],"th");return f.createElement(l,{className:"".concat(a,"-thead")},s.map((function(t,n){return f.createElement(Y,{key:n,flattenColumns:r,cells:t,stickyOffsets:e,rowComponent:u,cellComponent:h,onHeaderRow:i,index:n})})))},W=f.createContext(null);var X=function(t){var e=t.prefixCls,n=t.children,r=t.component,i=t.cellComponent,o=t.className,a=t.expanded,c=t.colSpan,s=t.isEmpty,l=f.useContext(V).scrollbarSize,u=f.useContext(W),h=u.fixHeader,d=u.fixColumn,p=u.componentWidth,g=u.horizonScroll;return f.useMemo((function(){var t=n;return(s?g:d)&&(t=f.createElement("div",{style:{width:p-(h?l:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(e,"-expanded-row-fixed")},0!==p&&t)),f.createElement(r,{className:o,style:{display:a?null:"none"}},f.createElement(z,{component:i,prefixCls:e,colSpan:c},t))}),[n,r,o,a,c,s,l,p,d,h,g])},q=f.createContext(null);function U(t){var e=t.className,n=t.style,r=t.record,i=t.index,c=t.renderIndex,u=t.rowKey,h=t.rowExpandable,d=t.expandedKeys,p=t.onRow,g=t.indent,v=void 0===g?0:g,y=t.rowComponent,m=t.cellComponent,b=t.childrenColumnName,x=f.useContext(V),O=x.prefixCls,j=x.fixedInfoList,w=f.useContext(F),C=w.flattenColumns,S=w.expandableType,M=w.expandRowByClick,k=w.onTriggerExpand,P=w.rowClassName,A=w.expandedRowClassName,I=w.indentSize,T=w.expandIcon,L=w.expandedRowRender,N=w.expandIconColumnIndex,D=f.useState(!1),B=Object(o.a)(D,2),R=B[0],_=B[1],H=d&&d.has(t.recordKey);f.useEffect((function(){H&&_(!0)}),[H]);var K="row"===S&&(!h||h(r)),Y="nest"===S,G=b&&r&&r[b],W=K||Y,q=f.useRef(k);q.current=k;var U,$=function(){q.current.apply(q,arguments)},Z=null===p||void 0===p?void 0:p(r,i);"string"===typeof P?U=P:"function"===typeof P&&(U=P(r,i,v));var Q,J=E(C),tt=f.createElement(y,Object(a.a)({},Z,{"data-row-key":u,className:s()(e,"".concat(O,"-row"),"".concat(O,"-row-level-").concat(v),U,Z&&Z.className),style:Object(l.a)(Object(l.a)({},n),Z?Z.style:null),onClick:function(t){var e;M&&W&&$(r,t);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];null===Z||void 0===Z||null===(e=Z.onClick)||void 0===e||e.call.apply(e,[Z,t].concat(i))}}),C.map((function(t,e){var n,o,s=t.render,l=t.dataIndex,u=t.className,h=J[e],d=j[e];return e===(N||0)&&Y&&(n=f.createElement(f.Fragment,null,f.createElement("span",{style:{paddingLeft:"".concat(I*v,"px")},className:"".concat(O,"-row-indent indent-level-").concat(v)}),T({prefixCls:O,expanded:H,expandable:G,record:r,onExpand:$}))),t.onCell&&(o=t.onCell(r,i)),f.createElement(z,Object(a.a)({className:u,ellipsis:t.ellipsis,align:t.align,component:m,prefixCls:O,key:h,record:r,index:i,renderIndex:c,dataIndex:l,render:s,shouldCellUpdate:t.shouldCellUpdate,expanded:n&&H},d,{appendNode:n,additionalProps:o}))})));if(K&&(R||H)){var et=L(r,i,v+1,H),nt=A&&A(r,i,v);Q=f.createElement(X,{expanded:H,className:s()("".concat(O,"-expanded-row"),"".concat(O,"-expanded-row-level-").concat(v+1),nt),prefixCls:O,component:y,cellComponent:m,colSpan:C.length,isEmpty:!1},et)}return f.createElement(f.Fragment,null,tt,Q)}U.displayName="BodyRow";var $=U;function Z(t,e,n,r,i,o){var a=[];a.push({record:t,indent:e,index:o});var c=i(t),s=null===r||void 0===r?void 0:r.has(c);if(t&&Array.isArray(t[n])&&s)for(var l=0;l<t[n].length;l+=1){var f=Z(t[n][l],e+1,n,r,i,l);a.push.apply(a,Object(u.a)(f))}return a}function Q(t){var e=t.columnKey,n=t.onColumnResize,r=f.useRef();return f.useEffect((function(){r.current&&n(e,r.current.offsetWidth)}),[]),f.createElement(m.a,{data:e},f.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},f.createElement("div",{style:{height:0,overflow:"hidden"}},"\xa0")))}function J(t){var e=t.prefixCls,n=t.columnsKey,r=t.onColumnResize;return f.createElement("tr",{"aria-hidden":"true",className:"".concat(e,"-measure-row"),style:{height:0,fontSize:0}},f.createElement(m.a.Collection,{onBatchResize:function(t){t.forEach((function(t){var e=t.data,n=t.size;r(e,n.offsetWidth)}))}},n.map((function(t){return f.createElement(Q,{key:t,columnKey:t,onColumnResize:r})}))))}function tt(t){var e=t.data,n=t.getRowKey,r=t.measureColumnWidth,i=t.expandedKeys,a=t.onRow,c=t.rowExpandable,s=t.emptyNode,l=t.childrenColumnName,h=f.useContext(q).onColumnResize,d=f.useContext(V),p=d.prefixCls,g=d.getComponent,v=f.useContext(F).flattenColumns,y=function(t,e,n,r){return f.useMemo((function(){if(null===n||void 0===n?void 0:n.size){for(var i=[],o=0;o<(null===t||void 0===t?void 0:t.length);o+=1){var a=t[o];i.push.apply(i,Object(u.a)(Z(a,0,e,n,r,o)))}return i}return null===t||void 0===t?void 0:t.map((function(t,e){return{record:t,indent:0,index:e}}))}),[t,e,n,r])}(e,l,i,n),m=f.useRef({renderWithProps:!1}),b=f.useState(-1),x=Object(o.a)(b,2),O=x[0],j=x[1],w=f.useState(-1),C=Object(o.a)(w,2),S=C[0],M=C[1],k=f.useCallback((function(t,e){j(t),M(e)}),[]),P=f.useMemo((function(){var t,o=g(["body","wrapper"],"tbody"),u=g(["body","row"],"tr"),d=g(["body","cell"],"td");t=e.length?y.map((function(t,e){var r=t.record,o=t.indent,s=t.index,h=n(r,e);return f.createElement($,{key:h,rowKey:h,record:r,recordKey:h,index:e,renderIndex:s,rowComponent:u,cellComponent:d,expandedKeys:i,onRow:a,getRowKey:n,rowExpandable:c,childrenColumnName:l,indent:o})})):f.createElement(X,{expanded:!0,className:"".concat(p,"-placeholder"),prefixCls:p,component:u,cellComponent:d,colSpan:v.length,isEmpty:!0},s);var m=E(v);return f.createElement(o,{className:"".concat(p,"-tbody")},r&&f.createElement(J,{prefixCls:p,columnsKey:m,onColumnResize:h}),t)}),[e,p,a,r,i,n,g,s,v,l,h,c,y]);return f.createElement(T.Provider,{value:m.current},f.createElement(I.Provider,{value:{startRow:O,endRow:S,onHover:k}},P))}var et=f.memo(tt);et.displayName="Body";var nt=et,rt=n(589),it=["expandable"],ot="RC_TABLE_INTERNAL_COL_DEFINE";var at={},ct=["children"],st=["fixed"];function lt(t){return Object(rt.a)(t).filter((function(t){return f.isValidElement(t)})).map((function(t){var e=t.key,n=t.props,r=n.children,i=Object(j.a)(n,ct),o=Object(l.a)({key:e},i);return r&&(o.children=lt(r)),o}))}function ut(t){return t.reduce((function(t,e){var n=e.fixed,r=!0===n?"left":n,i=e.children;return i&&i.length>0?[].concat(Object(u.a)(t),Object(u.a)(ut(i).map((function(t){return Object(l.a)({fixed:r},t)})))):[].concat(Object(u.a)(t),[Object(l.a)(Object(l.a)({},e),{},{fixed:r})])}),[])}var ft=function(t,e){var n=t.prefixCls,r=t.columns,o=t.children,a=t.expandable,c=t.expandedKeys,s=t.getRowKey,u=t.onTriggerExpand,h=t.expandIcon,d=t.rowExpandable,p=t.expandIconColumnIndex,g=t.direction,v=t.expandRowByClick,y=t.columnWidth,m=t.fixed,b=f.useMemo((function(){return r||lt(o)}),[r,o]),x=f.useMemo((function(){if(a){var t,e=b.slice();if(!e.includes(at)){var r=p||0;r>=0&&e.splice(r,0,at)}0;var o=e.indexOf(at);e=e.filter((function(t,e){return t!==at||e===o}));var l,g=b[o];l="left"!==m&&!m||p?"right"!==m&&!m||p!==b.length?g?g.fixed:null:"right":"left";var x=(t={},Object(i.a)(t,ot,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),Object(i.a)(t,"title",""),Object(i.a)(t,"fixed",l),Object(i.a)(t,"className","".concat(n,"-row-expand-icon-cell")),Object(i.a)(t,"width",y),Object(i.a)(t,"render",(function(t,e,r){var i=s(e,r),o=c.has(i),a=!d||d(e),l=h({prefixCls:n,expanded:o,expandable:a,record:e,onExpand:u});return v?f.createElement("span",{onClick:function(t){return t.stopPropagation()}},l):l})),t);return e.map((function(t){return t===at?x:t}))}return b.filter((function(t){return t!==at}))}),[a,b,s,c,h,g]),O=f.useMemo((function(){var t=x;return e&&(t=e(t)),t.length||(t=[{render:function(){return null}}]),t}),[e,x,g]),w=f.useMemo((function(){return"rtl"===g?function(t){return t.map((function(t){var e=t.fixed,n=Object(j.a)(t,st),r=e;return"left"===e?r="right":"right"===e&&(r="left"),Object(l.a)({fixed:r},n)}))}(ut(O)):ut(O)}),[O,g]);return[O,w]};function ht(t){var e=Object(f.useRef)(t),n=Object(f.useState)({}),r=Object(o.a)(n,2)[1],i=Object(f.useRef)(null),a=Object(f.useRef)([]);return Object(f.useEffect)((function(){return function(){i.current=null}}),[]),[e.current,function(t){a.current.push(t);var n=Promise.resolve();i.current=n,n.then((function(){if(i.current===n){var t=a.current,o=e.current;a.current=[],t.forEach((function(t){e.current=t(e.current)})),i.current=null,o!==e.current&&r({})}}))}]}var dt=function(t,e,n){return Object(f.useMemo)((function(){for(var r=[],i=[],o=0,a=0,c=0;c<e;c+=1)if("rtl"===n){i[c]=a,a+=t[c]||0;var s=e-c-1;r[s]=o,o+=t[s]||0}else{r[c]=o,o+=t[c]||0;var l=e-c-1;i[l]=a,a+=t[l]||0}return{left:r,right:i}}),[t,e,n])},pt=["columnType"];var gt=function(t){for(var e=t.colWidths,n=t.columns,r=[],i=!1,o=(t.columCount||n.length)-1;o>=0;o-=1){var c=e[o],s=n&&n[o],l=s&&s[ot];if(c||l||i){var u=l||{},h=(u.columnType,Object(j.a)(u,pt));r.unshift(f.createElement("col",Object(a.a)({key:o,style:{width:c}},h))),i=!0}}return f.createElement("colgroup",null,r)};var vt=function(t){var e=t.className,n=t.children;return f.createElement("div",{className:e},n)},yt=f.createContext({});var mt=["children"];function bt(t){return t.children}bt.Row=function(t){var e=t.children,n=Object(j.a)(t,mt);return f.createElement("tr",n,e)},bt.Cell=function(t){var e=t.className,n=t.index,r=t.children,i=t.colSpan,o=void 0===i?1:i,c=t.rowSpan,s=t.align,l=f.useContext(V),u=l.prefixCls,h=l.direction,d=f.useContext(yt),p=d.scrollColumnIndex,g=d.stickyOffsets,v=n+o-1+1===p?o+1:o,y=H(n,n+v-1,d.flattenColumns,g,h);return f.createElement(z,Object(a.a)({className:e,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:c,render:function(){return r}},y))};var xt=bt;var Ot=function(t){var e=t.children,n=t.stickyOffsets,r=t.flattenColumns,i=f.useContext(V).prefixCls,o=r.length-1,a=r[o],c=f.useMemo((function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:(null===a||void 0===a?void 0:a.scrollbar)?o:null}}),[a,r,o,n]);return f.createElement(yt.Provider,{value:c},f.createElement("tfoot",{className:"".concat(i,"-summary")},e))},jt=xt;function wt(t){var e,n=t.prefixCls,r=t.record,o=t.onExpand,a=t.expanded,c=t.expandable,l="".concat(n,"-row-expand-icon");if(!c)return f.createElement("span",{className:s()(l,"".concat(n,"-row-spaced"))});return f.createElement("span",{className:s()(l,(e={},Object(i.a)(e,"".concat(n,"-row-expanded"),a),Object(i.a)(e,"".concat(n,"-row-collapsed"),!a),e)),onClick:function(t){o(r,t),t.stopPropagation()}})}var Ct=n(841),St=n(756),Et=function(t,e){var n,r,a=t.scrollBodyRef,c=t.onScroll,u=t.offsetScroll,h=t.container,d=f.useContext(V).prefixCls,p=(null===(n=a.current)||void 0===n?void 0:n.scrollWidth)||0,g=(null===(r=a.current)||void 0===r?void 0:r.clientWidth)||0,v=p&&g*(g/p),y=f.useRef(),m=ht({scrollLeft:0,isHiddenScrollBar:!1}),x=Object(o.a)(m,2),O=x[0],j=x[1],w=f.useRef({delta:0,x:0}),C=f.useState(!1),S=Object(o.a)(C,2),E=S[0],M=S[1],k=function(){M(!1)},P=function(t){var e,n=(t||(null===(e=window)||void 0===e?void 0:e.event)).buttons;if(E&&0!==n){var r=w.current.x+t.pageX-w.current.x-w.current.delta;r<=0&&(r=0),r+v>=g&&(r=g-v),c({scrollLeft:r/g*(p+2)}),w.current.x=t.pageX}else E&&M(!1)},A=function(){if(a.current){var t=Object(St.b)(a.current).top,e=t+a.current.offsetHeight,n=h===window?document.documentElement.scrollTop+window.innerHeight:Object(St.b)(h).top+h.clientHeight;e-Object(b.a)()<=n||t>=n-u?j((function(t){return Object(l.a)(Object(l.a)({},t),{},{isHiddenScrollBar:!0})})):j((function(t){return Object(l.a)(Object(l.a)({},t),{},{isHiddenScrollBar:!1})}))}},I=function(t){j((function(e){return Object(l.a)(Object(l.a)({},e),{},{scrollLeft:t/p*g||0})}))};return f.useImperativeHandle(e,(function(){return{setScrollLeft:I}})),f.useEffect((function(){var t=Object(Ct.a)(document.body,"mouseup",k,!1),e=Object(Ct.a)(document.body,"mousemove",P,!1);return A(),function(){t.remove(),e.remove()}}),[v,E]),f.useEffect((function(){var t=Object(Ct.a)(h,"scroll",A,!1),e=Object(Ct.a)(window,"resize",A,!1);return function(){t.remove(),e.remove()}}),[h]),f.useEffect((function(){O.isHiddenScrollBar||j((function(t){var e=a.current;return e?Object(l.a)(Object(l.a)({},t),{},{scrollLeft:e.scrollLeft/e.scrollWidth*e.clientWidth}):t}))}),[O.isHiddenScrollBar]),p<=g||!v||O.isHiddenScrollBar?null:f.createElement("div",{style:{height:Object(b.a)(),width:g,bottom:u},className:"".concat(d,"-sticky-scroll")},f.createElement("div",{onMouseDown:function(t){t.persist(),w.current.delta=t.pageX-O.scrollLeft,w.current.x=0,M(!0),t.preventDefault()},ref:y,className:s()("".concat(d,"-sticky-scroll-bar"),Object(i.a)({},"".concat(d,"-sticky-scroll-bar-active"),E)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(O.scrollLeft,"px, 0, 0)")}}))},Mt=f.forwardRef(Et),kt=n(648),Pt=Object(kt.a)()?window:null;var At=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];var It=f.forwardRef((function(t,e){var n=t.className,r=t.noData,o=t.columns,a=t.flattenColumns,c=t.colWidths,h=t.columCount,d=t.stickyOffsets,p=t.direction,g=t.fixHeader,v=t.stickyTopOffset,y=t.stickyBottomOffset,m=t.stickyClassName,b=t.onScroll,x=t.maxContentScroll,O=t.children,C=Object(j.a)(t,At),S=f.useContext(V),E=S.prefixCls,M=S.scrollbarSize,k=S.isSticky,P=k&&!g?0:M,A=f.useRef(null),I=f.useCallback((function(t){Object(w.b)(e,t),Object(w.b)(A,t)}),[]);f.useEffect((function(){var t;function e(t){var e=t.currentTarget,n=t.deltaX;n&&(b({currentTarget:e,scrollLeft:e.scrollLeft+n}),t.preventDefault())}return null===(t=A.current)||void 0===t||t.addEventListener("wheel",e),function(){var t;null===(t=A.current)||void 0===t||t.removeEventListener("wheel",e)}}),[]);var F=f.useMemo((function(){return a.every((function(t){return t.width>=0}))}),[a]),T=a[a.length-1],L={fixed:T?T.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(E,"-cell-scrollbar")}}},N=Object(f.useMemo)((function(){return P?[].concat(Object(u.a)(o),[L]):o}),[P,o]),D=Object(f.useMemo)((function(){return P?[].concat(Object(u.a)(a),[L]):a}),[P,a]),B=Object(f.useMemo)((function(){var t=d.right,e=d.left;return Object(l.a)(Object(l.a)({},d),{},{left:"rtl"===p?[].concat(Object(u.a)(e.map((function(t){return t+P}))),[0]):e,right:"rtl"===p?t:[].concat(Object(u.a)(t.map((function(t){return t+P}))),[0]),isSticky:k})}),[P,d,k]),R=function(t,e){return Object(f.useMemo)((function(){for(var n=[],r=0;r<e;r+=1){var i=t[r];if(void 0===i)return null;n[r]=i}return n}),[t.join("_"),e])}(c,h);return f.createElement("div",{style:Object(l.a)({overflow:"hidden"},k?{top:v,bottom:y}:{}),ref:I,className:s()(n,Object(i.a)({},m,!!m))},f.createElement("table",{style:{tableLayout:"fixed",visibility:r||R?null:"hidden"}},(!r||!x||F)&&f.createElement(gt,{colWidths:R?[].concat(Object(u.a)(R),[P]):[],columCount:h+1,columns:D}),O(Object(l.a)(Object(l.a)({},C),{},{stickyOffsets:B,columns:N,flattenColumns:D}))))}));It.displayName="FixedHolder";var Ft=It,Tt=[],Lt={},Nt=f.memo((function(t){return t.children}),(function(t,e){return!!v()(t.props,e.props)&&(t.pingLeft!==e.pingLeft||t.pingRight!==e.pingRight)}));function Dt(t){var e,n=t.prefixCls,c=t.className,g=t.rowClassName,v=t.style,x=t.data,O=t.rowKey,w=t.scroll,C=t.tableLayout,P=t.direction,A=t.title,I=t.footer,T=t.summary,L=t.id,N=t.showHeader,D=t.components,B=t.emptyText,R=t.onRow,_=t.onHeaderRow,z=t.internalHooks,K=t.transformColumns,Y=t.internalRefs,X=t.sticky,U=x||Tt,$=!!U.length;var Z=f.useCallback((function(t,e){return S(D||{},t)||e}),[D]),Q=f.useMemo((function(){return"function"===typeof O?O:function(t){return t&&t[O]}}),[O]),J=function(t){var e,n=t.expandable,r=Object(j.a)(t,it);return!1===(e="expandable"in t?Object(l.a)(Object(l.a)({},r),n):r).showExpandColumn&&(e.expandIconColumnIndex=-1),e}(t),tt=J.expandIcon,et=J.expandedRowKeys,rt=J.defaultExpandedRowKeys,ot=J.defaultExpandAllRows,at=J.expandedRowRender,ct=J.onExpand,st=J.onExpandedRowsChange,lt=J.expandRowByClick,ut=J.rowExpandable,pt=J.expandIconColumnIndex,yt=J.expandedRowClassName,mt=J.childrenColumnName,bt=J.indentSize,jt=tt||wt,Ct=mt||"children",St=f.useMemo((function(){return at?"row":!!(t.expandable&&"rc-table-internal-hook"===z&&t.expandable.__PARENT_RENDER_ICON__||U.some((function(t){return t&&"object"===Object(r.a)(t)&&t[Ct]})))&&"nest"}),[!!at,U]),Et=f.useState((function(){return rt||(ot?function(t,e,n){var r=[];return function t(i){(i||[]).forEach((function(i,o){r.push(e(i,o)),t(i[n])}))}(t),r}(U,Q,Ct):[])})),kt=Object(o.a)(Et,2),At=kt[0],It=kt[1],Dt=f.useMemo((function(){return new Set(et||At||[])}),[et,At]),Bt=f.useCallback((function(t){var e,n=Q(t,U.indexOf(t)),r=Dt.has(n);r?(Dt.delete(n),e=Object(u.a)(Dt)):e=[].concat(Object(u.a)(Dt),[n]),It(e),ct&&ct(!r,t),st&&st(e)}),[Q,Dt,U,ct,st]);var Rt,_t,zt,Vt=f.useState(0),Ht=Object(o.a)(Vt,2),Kt=Ht[0],Yt=Ht[1],Gt=ft(Object(l.a)(Object(l.a)(Object(l.a)({},t),J),{},{expandable:!!at,expandedKeys:Dt,getRowKey:Q,onTriggerExpand:Bt,expandIcon:jt,expandIconColumnIndex:pt,direction:P}),"rc-table-internal-hook"===z?K:null),Wt=Object(o.a)(Gt,2),Xt=Wt[0],qt=Wt[1],Ut=f.useMemo((function(){return{columns:Xt,flattenColumns:qt}}),[Xt,qt]),$t=f.useRef(),Zt=f.useRef(),Qt=f.useRef(),Jt=f.useRef(),te=f.useRef(),ee=f.useState(!1),ne=Object(o.a)(ee,2),re=ne[0],ie=ne[1],oe=f.useState(!1),ae=Object(o.a)(oe,2),ce=ae[0],se=ae[1],le=ht(new Map),ue=Object(o.a)(le,2),fe=ue[0],he=ue[1],de=E(qt).map((function(t){return fe.get(t)})),pe=f.useMemo((function(){return de}),[de.join("_")]),ge=dt(pe,qt.length,P),ve=w&&M(w.y),ye=w&&M(w.x)||Boolean(J.fixed),me=ye&&qt.some((function(t){return t.fixed})),be=f.useRef(),xe=function(t,e){var n="object"===Object(r.a)(t)?t:{},i=n.offsetHeader,o=void 0===i?0:i,a=n.offsetSummary,c=void 0===a?0:a,s=n.offsetScroll,l=void 0===s?0:s,u=n.getContainer,h=(void 0===u?function(){return Pt}:u)()||Pt;return f.useMemo((function(){var n=!!t;return{isSticky:n,stickyClassName:n?"".concat(e,"-sticky-holder"):"",offsetHeader:o,offsetSummary:c,offsetScroll:l,container:h}}),[l,o,c,e,h])}(X,n),Oe=xe.isSticky,je=xe.offsetHeader,we=xe.offsetSummary,Ce=xe.offsetScroll,Se=xe.stickyClassName,Ee=xe.container,Me=null===T||void 0===T?void 0:T(U),ke=(ve||Oe)&&f.isValidElement(Me)&&Me.type===xt&&Me.props.fixed;ve&&(_t={overflowY:"scroll",maxHeight:w.y}),ye&&(Rt={overflowX:"auto"},ve||(_t={overflowY:"hidden"}),zt={width:!0===(null===w||void 0===w?void 0:w.x)?"auto":null===w||void 0===w?void 0:w.x,minWidth:"100%"});var Pe=f.useCallback((function(t,e){Object(h.a)($t.current)&&he((function(n){if(n.get(t)!==e){var r=new Map(n);return r.set(t,e),r}return n}))}),[]),Ae=function(t){var e=Object(f.useRef)(t||null),n=Object(f.useRef)();function r(){window.clearTimeout(n.current)}return Object(f.useEffect)((function(){return r}),[]),[function(t){e.current=t,r(),n.current=window.setTimeout((function(){e.current=null,n.current=void 0}),100)},function(){return e.current}]}(null),Ie=Object(o.a)(Ae,2),Fe=Ie[0],Te=Ie[1];function Le(t,e){e&&("function"===typeof e?e(t):e.scrollLeft!==t&&(e.scrollLeft=t))}var Ne=function(t){var e,n=t.currentTarget,r=t.scrollLeft,i="rtl"===P,o="number"===typeof r?r:n.scrollLeft,a=n||Lt;Te()&&Te()!==a||(Fe(a),Le(o,Zt.current),Le(o,Qt.current),Le(o,te.current),Le(o,null===(e=be.current)||void 0===e?void 0:e.setScrollLeft));if(n){var c=n.scrollWidth,s=n.clientWidth;if(c===s)return ie(!1),void se(!1);i?(ie(-o<c-s),se(-o>0)):(ie(o>0),se(o<c-s))}},De=function(){ye&&Qt.current?Ne({currentTarget:Qt.current}):(ie(!1),se(!1))},Be=f.useRef(!1);f.useEffect((function(){Be.current&&De()}),[ye,x,Xt.length]),f.useEffect((function(){Be.current=!0}),[]);var Re=f.useState(0),_e=Object(o.a)(Re,2),ze=_e[0],Ve=_e[1],He=f.useState(!0),Ke=Object(o.a)(He,2),Ye=Ke[0],Ge=Ke[1];f.useEffect((function(){Qt.current instanceof Element?Ve(Object(b.b)(Qt.current).width):Ve(Object(b.b)(Jt.current).width),Ge(Object(p.a)("position","sticky"))}),[]),f.useEffect((function(){"rc-table-internal-hook"===z&&Y&&(Y.body.current=Qt.current)}));var We,Xe=Z(["table"],"table"),qe=f.useMemo((function(){return C||(me?"max-content"===(null===w||void 0===w?void 0:w.x)?"auto":"fixed":ve||Oe||qt.some((function(t){return t.ellipsis}))?"fixed":"auto")}),[ve,me,qt,C,Oe]),Ue={colWidths:pe,columCount:qt.length,stickyOffsets:ge,onHeaderRow:_,fixHeader:ve,scroll:w},$e=f.useMemo((function(){return $?null:"function"===typeof B?B():B}),[$,B]),Ze=f.createElement(nt,{data:U,measureColumnWidth:ve||ye||Oe,expandedKeys:Dt,rowExpandable:ut,getRowKey:Q,onRow:R,emptyNode:$e,childrenColumnName:Ct}),Qe=f.createElement(gt,{colWidths:qt.map((function(t){return t.width})),columns:qt}),Je=Z(["body"]);if(ve||Oe){var tn;"function"===typeof Je?(tn=Je(U,{scrollbarSize:ze,ref:Qt,onScroll:Ne}),Ue.colWidths=qt.map((function(t,e){var n=t.width,r=e===Xt.length-1?n-ze:n;return"number"!==typeof r||Number.isNaN(r)?(Object(y.a)(!1,"When use `components.body` with render props. Each column should have a fixed `width` value."),0):r}))):tn=f.createElement("div",{style:Object(l.a)(Object(l.a)({},Rt),_t),onScroll:Ne,ref:Qt,className:s()("".concat(n,"-body"))},f.createElement(Xe,{style:Object(l.a)(Object(l.a)({},zt),{},{tableLayout:qe})},Qe,Ze,!ke&&Me&&f.createElement(Ot,{stickyOffsets:ge,flattenColumns:qt},Me)));var en=Object(l.a)(Object(l.a)(Object(l.a)({noData:!U.length,maxContentScroll:ye&&"max-content"===w.x},Ue),Ut),{},{direction:P,stickyClassName:Se,onScroll:Ne});We=f.createElement(f.Fragment,null,!1!==N&&f.createElement(Ft,Object(a.a)({},en,{stickyTopOffset:je,className:"".concat(n,"-header"),ref:Zt}),(function(t){return f.createElement(f.Fragment,null,f.createElement(G,t),"top"===ke&&f.createElement(Ot,t,Me))})),tn,ke&&"top"!==ke&&f.createElement(Ft,Object(a.a)({},en,{stickyBottomOffset:we,className:"".concat(n,"-summary"),ref:te}),(function(t){return f.createElement(Ot,t,Me)})),Oe&&f.createElement(Mt,{ref:be,offsetScroll:Ce,scrollBodyRef:Qt,onScroll:Ne,container:Ee}))}else We=f.createElement("div",{style:Object(l.a)(Object(l.a)({},Rt),_t),className:s()("".concat(n,"-content")),onScroll:Ne,ref:Qt},f.createElement(Xe,{style:Object(l.a)(Object(l.a)({},zt),{},{tableLayout:qe})},Qe,!1!==N&&f.createElement(G,Object(a.a)({},Ue,Ut)),Ze,Me&&f.createElement(Ot,{stickyOffsets:ge,flattenColumns:qt},Me)));var nn=Object(d.a)(t,{aria:!0,data:!0}),rn=f.createElement("div",Object(a.a)({className:s()(n,c,(e={},Object(i.a)(e,"".concat(n,"-rtl"),"rtl"===P),Object(i.a)(e,"".concat(n,"-ping-left"),re),Object(i.a)(e,"".concat(n,"-ping-right"),ce),Object(i.a)(e,"".concat(n,"-layout-fixed"),"fixed"===C),Object(i.a)(e,"".concat(n,"-fixed-header"),ve),Object(i.a)(e,"".concat(n,"-fixed-column"),me),Object(i.a)(e,"".concat(n,"-scroll-horizontal"),ye),Object(i.a)(e,"".concat(n,"-has-fix-left"),qt[0]&&qt[0].fixed),Object(i.a)(e,"".concat(n,"-has-fix-right"),qt[qt.length-1]&&"right"===qt[qt.length-1].fixed),e)),style:v,id:L,ref:$t},nn),f.createElement(Nt,{pingLeft:re,pingRight:ce,props:Object(l.a)(Object(l.a)({},t),{},{stickyOffsets:ge,mergedExpandedKeys:Dt})},A&&f.createElement(vt,{className:"".concat(n,"-title")},A(U)),f.createElement("div",{ref:Jt,className:"".concat(n,"-container")},We),I&&f.createElement(vt,{className:"".concat(n,"-footer")},I(U))));ye&&(rn=f.createElement(m.a,{onResize:function(t){var e=t.width;e!==Kt&&(De(),Yt($t.current?$t.current.offsetWidth:e))}},rn));var on=f.useMemo((function(){return{prefixCls:n,getComponent:Z,scrollbarSize:ze,direction:P,fixedInfoList:qt.map((function(t,e){return H(e,e,qt,ge,P)})),isSticky:Oe}}),[n,Z,ze,P,qt,ge,Oe]),an=f.useMemo((function(){return Object(l.a)(Object(l.a)({},Ut),{},{tableLayout:qe,rowClassName:g,expandedRowClassName:yt,expandIcon:jt,expandableType:St,expandRowByClick:lt,expandedRowRender:at,onTriggerExpand:Bt,expandIconColumnIndex:pt,indentSize:bt,allColumnsFixedLeft:Ut.flattenColumns.every((function(t){return"left"===t.fixed}))})}),[Ut,qe,g,yt,jt,St,lt,at,Bt,pt,bt]),cn=f.useMemo((function(){return{componentWidth:Kt,fixHeader:ve,fixColumn:me,horizonScroll:ye}}),[Kt,ve,me,ye]),sn=f.useMemo((function(){return{onColumnResize:Pe}}),[Pe]);return f.createElement(k.Provider,{value:Ye},f.createElement(V.Provider,{value:on},f.createElement(F.Provider,{value:an},f.createElement(W.Provider,{value:cn},f.createElement(q.Provider,{value:sn},rn)))))}Dt.EXPAND_COLUMN=at,Dt.Column=O,Dt.ColumnGroup=x,Dt.Summary=jt,Dt.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};var Bt=Dt,Rt=n(575),_t=n(775),zt=n(631),Vt=n(587),Ht=n(643),Kt=n(787),Yt=n(717),Gt=n(751),Wt=n(814);var Xt=function(t){return null};var qt=function(t){return null};var Ut=function(t){return function(e){var n,r=e.prefixCls,o=e.onExpand,a=e.record,c=e.expanded,l=e.expandable,u="".concat(r,"-row-expand-icon");return f.createElement("button",{type:"button",onClick:function(t){o(a,t),t.stopPropagation()},className:s()(u,(n={},Object(i.a)(n,"".concat(u,"-spaced"),!l),Object(i.a)(n,"".concat(u,"-expanded"),l&&c),Object(i.a)(n,"".concat(u,"-collapsed"),l&&!c),n)),"aria-label":c?t.collapse:t.expand})}};function $t(t,e){return"key"in t&&void 0!==t.key&&null!==t.key?t.key:t.dataIndex?Array.isArray(t.dataIndex)?t.dataIndex.join("."):t.dataIndex:e}function Zt(t,e){return e?"".concat(e,"-").concat(t):"".concat(t)}function Qt(t,e){return"function"===typeof t?t(e):t}var Jt=n(815),te=n(837),ee=n.n(te),ne=n(606),re=n(680),ie=n(709),oe=n(645),ae=n(716),ce=n(672),se=n(734),le=n(776),ue=n(652);var fe=n(616),he=n(746),de=function(t){var e=t.value,n=t.onChange,r=t.filterSearch,i=t.tablePrefixCls,o=t.locale;return r?f.createElement("div",{className:"".concat(i,"-filter-dropdown-search")},f.createElement(he.default,{prefix:f.createElement(fe.a,null),placeholder:o.filterSearchPlaceholder,onChange:n,value:e,htmlSize:1,className:"".concat(i,"-filter-dropdown-search-input")})):null},pe=function(t){return f.createElement("div",{className:t.className,onClick:function(t){return t.stopPropagation()}},t.children)};function ge(t,e){return("string"===typeof e||"number"===typeof e)&&(null===e||void 0===e?void 0:e.toString().toLowerCase().includes(t.trim().toLowerCase()))}function ve(t){var e=t.filters,n=t.prefixCls,r=t.filteredKeys,i=t.filterMultiple,o=t.searchValue,a=t.filterSearch;return e.map((function(t,e){var c=String(t.value);if(t.children)return{key:c||e,label:t.text,popupClassName:"".concat(n,"-dropdown-submenu"),children:ve({filters:t.children,prefixCls:n,filteredKeys:r,filterMultiple:i,searchValue:o,filterSearch:a})};var s=i?re.default:se.a,l={key:void 0!==t.value?c:e,label:f.createElement(f.Fragment,null,f.createElement(s,{checked:r.includes(c)}),f.createElement("span",null,t.text))};return o.trim()?"function"===typeof a?a(o,t)?l:null:ge(o,t.text)?l:null:l}))}var ye=function(t){var e,n=t.tablePrefixCls,r=t.prefixCls,a=t.column,c=t.dropdownPrefixCls,l=t.columnKey,u=t.filterMultiple,h=t.filterMode,d=void 0===h?"menu":h,p=t.filterSearch,g=void 0!==p&&p,v=t.filterState,y=t.triggerFilter,m=t.locale,b=t.children,x=t.getPopupContainer,O=a.filterDropdownVisible,j=a.onFilterDropdownVisibleChange,w=a.filterResetToDefaultFilteredValue,C=a.defaultFilteredValue,S=f.useState(!1),E=Object(o.a)(S,2),M=E[0],k=E[1],P=!(!v||!(null===(e=v.filteredKeys)||void 0===e?void 0:e.length)&&!v.forceFiltered),A=function(t){k(t),null===j||void 0===j||j(t)},I="boolean"===typeof O?O:M,F=null===v||void 0===v?void 0:v.filteredKeys,T=function(t){var e=f.useRef(t),n=Object(ue.a)();return[function(){return e.current},function(t){e.current=t,n()}]}(F||[]),L=Object(o.a)(T,2),N=L[0],D=L[1],B=function(t){var e=t.selectedKeys;D(e)},R=function(t,e){var n=e.node,r=e.checked;B(u?{selectedKeys:t}:{selectedKeys:r&&n.key?[n.key]:[]})};f.useEffect((function(){M&&B({selectedKeys:F||[]})}),[F]);var _=f.useState([]),z=Object(o.a)(_,2),V=z[0],H=z[1],K=function(t){H(t)},Y=f.useState(""),G=Object(o.a)(Y,2),W=G[0],X=G[1],q=function(t){var e=t.target.value;X(e)};f.useEffect((function(){M||X("")}),[M]);var U,$=function(t){var e=t&&t.length?t:null;return null!==e||v&&v.filteredKeys?ee()(e,null===v||void 0===v?void 0:v.filteredKeys)?null:void y({column:a,key:l,filteredKeys:e}):null},Z=function(){A(!1),$(N())},Q=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{confirm:!1,closeDropdown:!1},e=t.confirm,n=t.closeDropdown;e&&$([]),n&&A(!1),X(""),D(w?(C||[]).map((function(t){return String(t)})):[])},J=s()(Object(i.a)({},"".concat(c,"-menu-without-submenu"),!(a.filters||[]).some((function(t){return t.children})))),tt=function(t){if(t.target.checked){var e=be(null===a||void 0===a?void 0:a.filters).map((function(t){return String(t)}));D(e)}else D([])},et=function t(e){return(e.filters||[]).map((function(e,n){var r=String(e.value),i={title:e.text,key:void 0!==e.value?r:n};return e.children&&(i.children=t({filters:e.children})),i}))};if("function"===typeof a.filterDropdown)U=a.filterDropdown({prefixCls:"".concat(c,"-custom"),setSelectedKeys:function(t){return B({selectedKeys:t})},selectedKeys:N(),confirm:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{closeDropdown:!0},e=t.closeDropdown;e&&A(!1),$(N())},clearFilters:Q,filters:a.filters,visible:I});else if(a.filterDropdown)U=a.filterDropdown;else{var nt=N()||[];U=f.createElement(f.Fragment,null,0===(a.filters||[]).length?f.createElement(oe.a,{image:oe.a.PRESENTED_IMAGE_SIMPLE,description:m.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):"tree"===d?f.createElement(f.Fragment,null,f.createElement(de,{filterSearch:g,value:W,onChange:q,tablePrefixCls:n,locale:m}),f.createElement("div",{className:"".concat(n,"-filter-dropdown-tree")},u?f.createElement(re.default,{checked:nt.length===be(a.filters).length,indeterminate:nt.length>0&&nt.length<be(a.filters).length,className:"".concat(n,"-filter-dropdown-checkall"),onChange:tt},m.filterCheckall):null,f.createElement(le.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:u,checkStrictly:!u,className:"".concat(c,"-menu"),onCheck:R,checkedKeys:nt,selectedKeys:nt,showIcon:!1,treeData:et({filters:a.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?function(t){return ge(W,t.title)}:void 0}))):f.createElement(f.Fragment,null,f.createElement(de,{filterSearch:g,value:W,onChange:q,tablePrefixCls:n,locale:m}),f.createElement(ae.a,{selectable:!0,multiple:u,prefixCls:"".concat(c,"-menu"),className:J,onSelect:B,onDeselect:B,selectedKeys:nt,getPopupContainer:x,openKeys:V,onOpenChange:K,items:ve({filters:a.filters||[],filterSearch:g,prefixCls:r,filteredKeys:N(),filterMultiple:u,searchValue:W})})),f.createElement("div",{className:"".concat(r,"-dropdown-btns")},f.createElement(ne.default,{type:"link",size:"small",disabled:w?ee()((C||[]).map((function(t){return String(t)})),nt):0===nt.length,onClick:function(){return Q()}},m.filterReset),f.createElement(ne.default,{type:"primary",size:"small",onClick:Z},m.filterConfirm)))}a.filterDropdown&&(U=f.createElement(ce.a,{selectable:void 0},U));var rt,it=f.createElement(pe,{className:"".concat(r,"-dropdown")},U);rt="function"===typeof a.filterIcon?a.filterIcon(P):a.filterIcon?a.filterIcon:f.createElement(Jt.a,null);var ot=f.useContext(_t.b).direction;return f.createElement("div",{className:"".concat(r,"-column")},f.createElement("span",{className:"".concat(n,"-column-title")},b),f.createElement(ie.default,{overlay:it,trigger:["click"],visible:I,onVisibleChange:function(t){t&&void 0!==F&&D(F||[]),A(t),t||a.filterDropdown||Z()},getPopupContainer:x,placement:"rtl"===ot?"bottomLeft":"bottomRight"},f.createElement("span",{role:"button",tabIndex:-1,className:s()("".concat(r,"-trigger"),{active:P}),onClick:function(t){t.stopPropagation()}},rt)))};function me(t,e,n){var r=[];return(t||[]).forEach((function(t,i){var o,a=Zt(i,n);if(t.filters||"filterDropdown"in t||"onFilter"in t)if("filteredValue"in t){var c=t.filteredValue;"filterDropdown"in t||(c=null!==(o=null===c||void 0===c?void 0:c.map(String))&&void 0!==o?o:c),r.push({column:t,key:$t(t,a),filteredKeys:c,forceFiltered:t.filtered})}else r.push({column:t,key:$t(t,a),filteredKeys:e&&t.defaultFilteredValue?t.defaultFilteredValue:void 0,forceFiltered:t.filtered});"children"in t&&(r=[].concat(Object(u.a)(r),Object(u.a)(me(t.children,e,a))))})),r}function be(t){var e=[];return(t||[]).forEach((function(t){var n=t.value,r=t.children;e.push(n),r&&(e=[].concat(Object(u.a)(e),Object(u.a)(be(r))))})),e}function xe(t){var e={};return t.forEach((function(t){var n=t.key,r=t.filteredKeys,i=t.column,o=i.filters;if(i.filterDropdown)e[n]=r||null;else if(Array.isArray(r)){var a=be(o);e[n]=a.filter((function(t){return r.includes(String(t))}))}else e[n]=null})),e}function Oe(t,e){return e.reduce((function(t,e){var n=e.column,r=n.onFilter,i=n.filters,o=e.filteredKeys;return r&&o&&o.length?t.filter((function(t){return o.some((function(e){var n=be(i),o=n.findIndex((function(t){return String(t)===String(e)})),a=-1!==o?n[o]:e;return r(a,t)}))})):t}),t)}var je=function(t){var e=t.prefixCls,n=t.dropdownPrefixCls,r=t.mergedColumns,i=t.onFilterChange,c=t.getPopupContainer,s=t.locale,l=f.useState(me(r,!0)),u=Object(o.a)(l,2),h=u[0],d=u[1],p=f.useMemo((function(){var t=me(r,!1),e=!0;return t.forEach((function(t){void 0!==t.filteredKeys?e=!1:!1})),e?h:t}),[r,h]),g=f.useCallback((function(){return xe(p)}),[p]),v=function(t){var e=p.filter((function(e){return e.key!==t.key}));e.push(t),d(e),i(xe(e),e)};return[function(t){return function t(e,n,r,i,o,c,s,l){return r.map((function(r,u){var h=Zt(u,l),d=r.filterMultiple,p=void 0===d||d,g=r.filterMode,v=r.filterSearch,y=r;if(y.filters||y.filterDropdown){var m=$t(y,h),b=i.find((function(t){var e=t.key;return m===e}));y=Object(a.a)(Object(a.a)({},y),{title:function(t){return f.createElement(ye,{tablePrefixCls:e,prefixCls:"".concat(e,"-filter"),dropdownPrefixCls:n,column:y,columnKey:m,filterState:b,filterMultiple:p,filterMode:g,filterSearch:v,triggerFilter:o,locale:s,getPopupContainer:c},Qt(r.title,t))}})}return"children"in y&&(y=Object(a.a)(Object(a.a)({},y),{children:t(e,n,y.children,i,o,c,s,h)})),y}))}(e,n,t,p,v,c,s)},p,g]};var we=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<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n};function Ce(t,e,n){var i=e&&"object"===Object(r.a)(e)?e:{},c=i.total,s=void 0===c?0:c,l=we(i,["total"]),u=Object(f.useState)((function(){return{current:"defaultCurrent"in l?l.defaultCurrent:1,pageSize:"defaultPageSize"in l?l.defaultPageSize:10}})),h=Object(o.a)(u,2),d=h[0],p=h[1],g=function(){for(var t={},e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.forEach((function(e){e&&Object.keys(e).forEach((function(n){var r=e[n];void 0!==r&&(t[n]=r)}))})),t}(d,l,{total:s>0?s:t}),v=Math.ceil((s||t)/g.pageSize);g.current>v&&(g.current=v||1);var y=function(t,e){p({current:null!==t&&void 0!==t?t:1,pageSize:e||g.pageSize})};return!1===e?[{},function(){}]:[Object(a.a)(Object(a.a)({},g),{onChange:function(t,r){var i;e&&(null===(i=e.onChange)||void 0===i||i.call(e,t,r)),y(t,r),n(t,r||(null===g||void 0===g?void 0:g.pageSize))}}),y]}var Se=n(610),Ee=n(632),Me=n(659),ke=n(730),Pe=n(614),Ae=n(577),Ie={},Fe=[];function Te(t,e){var n=t||{},c=n.preserveSelectedRowKeys,s=n.selectedRowKeys,l=n.defaultSelectedRowKeys,h=n.getCheckboxProps,d=n.onChange,p=n.onSelect,g=n.onSelectAll,v=n.onSelectInvert,y=n.onSelectNone,m=n.onSelectMultiple,b=n.columnWidth,x=n.type,O=n.selections,j=n.fixed,w=n.renderCell,C=n.hideSelectAll,S=n.checkStrictly,E=void 0===S||S,M=e.prefixCls,k=e.data,P=e.pageData,A=e.getRecordByKey,I=e.getRowKey,F=e.expandType,T=e.childrenColumnName,L=e.locale,N=e.getPopupContainer,D=Object(Ae.a)(s||l||Fe,{value:s}),B=Object(o.a)(D,2),R=B[0],_=B[1],z=f.useRef(new Map),V=Object(f.useCallback)((function(t){if(c){var e=new Map;t.forEach((function(t){var n=A(t);!n&&z.current.has(t)&&(n=z.current.get(t)),e.set(t,n)})),z.current=e}}),[A,c]);f.useEffect((function(){V(R)}),[R]);var H=Object(f.useMemo)((function(){return E?{keyEntities:null}:Object(Pe.a)(k,{externalGetKey:I,childrenPropName:T})}),[k,I,E,T]).keyEntities,K=Object(f.useMemo)((function(){return function t(e,n){var i=[];return(e||[]).forEach((function(e){i.push(e),e&&"object"===Object(r.a)(e)&&n in e&&(i=[].concat(Object(u.a)(i),Object(u.a)(t(e[n],n))))})),i}(P,T)}),[P,T]),Y=Object(f.useMemo)((function(){var t=new Map;return K.forEach((function(e,n){var r=I(e,n),i=(h?h(e):null)||{};t.set(r,i)})),t}),[K,I,h]),G=Object(f.useCallback)((function(t){var e;return!!(null===(e=Y.get(I(t)))||void 0===e?void 0:e.disabled)}),[Y,I]),W=Object(f.useMemo)((function(){if(E)return[R||[],[]];var t=Object(ke.a)(R,!0,H,G);return[t.checkedKeys||[],t.halfCheckedKeys]}),[R,E,H,G]),X=Object(o.a)(W,2),q=X[0],U=X[1],$=Object(f.useMemo)((function(){var t="radio"===x?q.slice(0,1):q;return new Set(t)}),[q,x]),Z=Object(f.useMemo)((function(){return"radio"===x?new Set:new Set(U)}),[U,x]),Q=Object(f.useState)(null),J=Object(o.a)(Q,2),tt=J[0],et=J[1];f.useEffect((function(){t||_(Fe)}),[!!t]);var nt=Object(f.useCallback)((function(t,e){var n,r;V(t),c?(n=t,r=t.map((function(t){return z.current.get(t)}))):(n=[],r=[],t.forEach((function(t){var e=A(t);void 0!==e&&(n.push(t),r.push(e))}))),_(n),null===d||void 0===d||d(n,r,{type:e})}),[_,A,d,c]),rt=Object(f.useCallback)((function(t,e,n,r){if(p){var i=n.map((function(t){return A(t)}));p(A(t),e,i,r)}nt(n,"single")}),[p,A,nt]),it=Object(f.useMemo)((function(){return!O||C?null:(!0===O?["SELECT_ALL","SELECT_INVERT","SELECT_NONE"]:O).map((function(t){return"SELECT_ALL"===t?{key:"all",text:L.selectionAll,onSelect:function(){nt(k.map((function(t,e){return I(t,e)})).filter((function(t){var e=Y.get(t);return!(null===e||void 0===e?void 0:e.disabled)||$.has(t)})),"all")}}:"SELECT_INVERT"===t?{key:"invert",text:L.selectInvert,onSelect:function(){var t=new Set($);P.forEach((function(e,n){var r=I(e,n),i=Y.get(r);(null===i||void 0===i?void 0:i.disabled)||(t.has(r)?t.delete(r):t.add(r))}));var e=Array.from(t);v&&v(e),nt(e,"invert")}}:"SELECT_NONE"===t?{key:"none",text:L.selectNone,onSelect:function(){null===y||void 0===y||y(),nt(Array.from($).filter((function(t){var e=Y.get(t);return null===e||void 0===e?void 0:e.disabled})),"none")}}:t})).map((function(t){return Object(a.a)(Object(a.a)({},t),{onSelect:function(){for(var e,n,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];null===(n=t.onSelect)||void 0===n||(e=n).call.apply(e,[t].concat(i)),et(null)}})}))}),[O,$,P,I,v,nt]);return[Object(f.useCallback)((function(e){var n;if(!t)return e.filter((function(t){return t!==Ie}));var r,o,c=Object(u.a)(e),s=new Set($),l=K.map(I).filter((function(t){return!Y.get(t).disabled})),h=l.every((function(t){return s.has(t)})),d=l.some((function(t){return s.has(t)}));if("radio"!==x){var p;if(it){var v=f.createElement(ae.a,{getPopupContainer:N,items:it.map((function(t,e){var n=t.key,r=t.text,i=t.onSelect;return{key:n||e,onClick:function(){null===i||void 0===i||i(l)},label:r}}))});p=f.createElement("div",{className:"".concat(M,"-selection-extra")},f.createElement(ie.default,{overlay:v,getPopupContainer:N},f.createElement("span",null,f.createElement(Ee.a,null))))}var y=K.map((function(t,e){var n=I(t,e),r=Y.get(n)||{};return Object(a.a)({checked:s.has(n)},r)})).filter((function(t){return t.disabled})),O=!!y.length&&y.length===K.length,S=O&&y.every((function(t){return t.checked})),k=O&&y.some((function(t){return t.checked}));r=!C&&f.createElement("div",{className:"".concat(M,"-selection")},f.createElement(re.default,{checked:O?S:!!K.length&&h,indeterminate:O?!S&&k:!h&&d,onChange:function(){var t=[];h?l.forEach((function(e){s.delete(e),t.push(e)})):l.forEach((function(e){s.has(e)||(s.add(e),t.push(e))}));var e=Array.from(s);null===g||void 0===g||g(!h,e.map((function(t){return A(t)})),t.map((function(t){return A(t)}))),nt(e,"all"),et(null)},disabled:0===K.length||O,skipGroup:!0}),p)}o="radio"===x?function(t,e,n){var r=I(e,n),i=s.has(r);return{node:f.createElement(se.a,Object(a.a)({},Y.get(r),{checked:i,onClick:function(t){return t.stopPropagation()},onChange:function(t){s.has(r)||rt(r,!0,[r],t.nativeEvent)}})),checked:i}}:function(t,e,n){var r,i,o=I(e,n),c=s.has(o),h=Z.has(o),d=Y.get(o);return i="nest"===F?h:null!==(r=null===d||void 0===d?void 0:d.indeterminate)&&void 0!==r?r:h,{node:f.createElement(re.default,Object(a.a)({},d,{indeterminate:i,checked:c,skipGroup:!0,onClick:function(t){return t.stopPropagation()},onChange:function(t){var e=t.nativeEvent,n=e.shiftKey,r=-1,i=-1;if(n&&E){var a=new Set([tt,o]);l.some((function(t,e){if(a.has(t)){if(-1!==r)return i=e,!0;r=e}return!1}))}if(-1!==i&&r!==i&&E){var f=l.slice(r,i+1),h=[];c?f.forEach((function(t){s.has(t)&&(h.push(t),s.delete(t))})):f.forEach((function(t){s.has(t)||(h.push(t),s.add(t))}));var d=Array.from(s);null===m||void 0===m||m(!c,d.map((function(t){return A(t)})),h.map((function(t){return A(t)}))),nt(d,"multiple")}else{var p=q;if(E){var g=c?Object(Me.b)(p,o):Object(Me.a)(p,o);rt(o,!c,g,e)}else{var v=Object(ke.a)([].concat(Object(u.a)(p),[o]),!0,H,G),y=v.checkedKeys,b=v.halfCheckedKeys,x=y;if(c){var O=new Set(y);O.delete(o),x=Object(ke.a)(Array.from(O),{checked:!1,halfCheckedKeys:b},H,G).checkedKeys}rt(o,!c,x,e)}}et(c?null:o)}})),checked:c}};if(!c.includes(Ie))if(0===c.findIndex((function(t){var e;return"EXPAND_COLUMN"===(null===(e=t[ot])||void 0===e?void 0:e.columnType)}))){var P=c,T=Object(Se.a)(P),L=T[0],D=T.slice(1);c=[L,Ie].concat(Object(u.a)(D))}else c=[Ie].concat(Object(u.a)(c));var B=c.indexOf(Ie),R=(c=c.filter((function(t,e){return t!==Ie||e===B})))[B-1],_=c[B+1],z=j;void 0===z&&(void 0!==(null===_||void 0===_?void 0:_.fixed)?z=_.fixed:void 0!==(null===R||void 0===R?void 0:R.fixed)&&(z=R.fixed)),z&&R&&"EXPAND_COLUMN"===(null===(n=R[ot])||void 0===n?void 0:n.columnType)&&void 0===R.fixed&&(R.fixed=z);var V=Object(i.a)({fixed:z,width:b,className:"".concat(M,"-selection-column"),title:t.columnTitle||r,render:function(t,e,n){var r=o(t,e,n),i=r.node,a=r.checked;return w?w(a,e,n,i):i}},ot,{className:"".concat(M,"-selection-col")});return c.map((function(t){return t===Ie?V:t}))}),[I,K,t,q,$,Z,b,it,F,tt,Y,m,rt,G]),$]}var Le=n(817),Ne=n(816),De=n(576),Be=n(640);function Re(t){return"object"===Object(r.a)(t.sorter)&&"number"===typeof t.sorter.multiple&&t.sorter.multiple}function _e(t){return"function"===typeof t?t:!(!t||"object"!==Object(r.a)(t)||!t.compare)&&t.compare}function ze(t,e,n){var r=[];function i(t,e){r.push({column:t,key:$t(t,e),multiplePriority:Re(t),sortOrder:t.sortOrder})}return(t||[]).forEach((function(t,o){var a=Zt(o,n);t.children?("sortOrder"in t&&i(t,a),r=[].concat(Object(u.a)(r),Object(u.a)(ze(t.children,e,a)))):t.sorter&&("sortOrder"in t?i(t,a):e&&t.defaultSortOrder&&r.push({column:t,key:$t(t,a),multiplePriority:Re(t),sortOrder:t.defaultSortOrder}))})),r}function Ve(t){var e=t.column;return{column:e,order:t.sortOrder,field:e.dataIndex,columnKey:e.key}}function He(t){var e=t.filter((function(t){return t.sortOrder})).map(Ve);return 0===e.length&&t.length?Object(a.a)(Object(a.a)({},Ve(t[t.length-1])),{column:void 0}):e.length<=1?e[0]||{}:e}function Ke(t,e,n){var r=e.slice().sort((function(t,e){return e.multiplePriority-t.multiplePriority})),o=t.slice(),c=r.filter((function(t){var e=t.column.sorter,n=t.sortOrder;return _e(e)&&n}));return c.length?o.sort((function(t,e){for(var n=0;n<c.length;n+=1){var r=c[n],i=r.column.sorter,o=r.sortOrder,a=_e(i);if(a&&o){var s=a(t,e,o);if(0!==s)return"ascend"===o?s:-s}}return 0})).map((function(t){var r=t[n];return r?Object(a.a)(Object(a.a)({},t),Object(i.a)({},n,Ke(r,e,n))):t})):o}function Ye(t){var e=t.prefixCls,n=t.mergedColumns,c=t.onSorterChange,l=t.sortDirections,h=t.tableLocale,d=t.showSorterTooltip,p=f.useState(ze(n,!0)),g=Object(o.a)(p,2),v=g[0],y=g[1],m=f.useMemo((function(){var t=!0,e=ze(n,!1);if(!e.length)return v;var r=[];function i(e){t?r.push(e):r.push(Object(a.a)(Object(a.a)({},e),{sortOrder:null}))}var o=null;return e.forEach((function(e){null===o?(i(e),e.sortOrder&&(!1===e.multiplePriority?t=!1:o=!0)):(o&&!1!==e.multiplePriority||(t=!1),i(e))})),r}),[n,v]),b=f.useMemo((function(){var t=m.map((function(t){return{column:t.column,order:t.sortOrder}}));return{sortColumns:t,sortColumn:t[0]&&t[0].column,sortOrder:t[0]&&t[0].order}}),[m]);function x(t){var e;e=!1!==t.multiplePriority&&m.length&&!1!==m[0].multiplePriority?[].concat(Object(u.a)(m.filter((function(e){return e.key!==t.key}))),[t]):[t],y(e),c(He(e),e)}return[function(t){return function t(e,n,o,c,l,u,h,d){return(n||[]).map((function(n,p){var g=Zt(p,d),v=n;if(v.sorter){var y=v.sortDirections||l,m=void 0===v.showSorterTooltip?h:v.showSorterTooltip,b=$t(v,g),x=o.find((function(t){return t.key===b})),O=x?x.sortOrder:null,j=function(t,e){return e?t[t.indexOf(e)+1]:t[0]}(y,O),w=y.includes("ascend")&&f.createElement(Ne.a,{className:s()("".concat(e,"-column-sorter-up"),{active:"ascend"===O})}),C=y.includes("descend")&&f.createElement(Le.a,{className:s()("".concat(e,"-column-sorter-down"),{active:"descend"===O})}),S=u||{},E=S.cancelSort,M=S.triggerAsc,k=S.triggerDesc,P=E;"descend"===j?P=k:"ascend"===j&&(P=M);var A="object"===Object(r.a)(m)?m:{title:P};v=Object(a.a)(Object(a.a)({},v),{className:s()(v.className,Object(i.a)({},"".concat(e,"-column-sort"),O)),title:function(t){var r=f.createElement("div",{className:"".concat(e,"-column-sorters")},f.createElement("span",{className:"".concat(e,"-column-title")},Qt(n.title,t)),f.createElement("span",{className:s()("".concat(e,"-column-sorter"),Object(i.a)({},"".concat(e,"-column-sorter-full"),!(!w||!C)))},f.createElement("span",{className:"".concat(e,"-column-sorter-inner")},w,C)));return m?f.createElement(Be.default,Object(a.a)({},A),r):r},onHeaderCell:function(t){var r=n.onHeaderCell&&n.onHeaderCell(t)||{},i=r.onClick,o=r.onKeyDown;return r.onClick=function(t){c({column:n,key:b,sortOrder:j,multiplePriority:Re(n)}),null===i||void 0===i||i(t)},r.onKeyDown=function(t){t.keyCode===De.a.ENTER&&(c({column:n,key:b,sortOrder:j,multiplePriority:Re(n)}),null===o||void 0===o||o(t))},O&&(r["aria-sort"]="ascend"===O?"ascending":"descending"),r.className=s()(r.className,"".concat(e,"-column-has-sorters")),r.tabIndex=0,r}})}return"children"in v&&(v=Object(a.a)(Object(a.a)({},v),{children:t(e,v.children,o,c,l,u,h,g)})),v}))}(e,t,m,x,l,h,d)},m,b,function(){return He(m)}]}function Ge(t){return[f.useCallback((function(e){return function t(e,n){return e.map((function(e){var r=Object(a.a)({},e);return r.title=Qt(e.title,n),"children"in r&&(r.children=t(r.children,n)),r}))}(e,t)}),[t])]}var We=[];function Xe(t,e){var n,c=t.prefixCls,l=t.className,u=t.style,h=t.size,d=t.bordered,p=t.dropdownPrefixCls,g=t.dataSource,v=t.pagination,y=t.rowSelection,m=t.rowKey,b=t.rowClassName,x=t.columns,O=t.children,j=t.childrenColumnName,w=t.onChange,C=t.getPopupContainer,S=t.loading,E=t.expandIcon,M=t.expandable,k=t.expandedRowRender,P=t.expandIconColumnIndex,A=t.indentSize,I=t.scroll,F=t.sortDirections,T=t.locale,L=t.showSorterTooltip,N=void 0===L||L,D=f.useMemo((function(){return x||lt(O)}),[x,O]),B=f.useMemo((function(){return D.some((function(t){return t.responsive}))}),[D]),R=Object(Ht.a)(B),_=f.useMemo((function(){var t=new Set(Object.keys(R).filter((function(t){return R[t]})));return D.filter((function(e){return!e.responsive||e.responsive.some((function(e){return t.has(e)}))}))}),[D,R]),z=Object(Rt.a)(t,["className","style","columns"]),V=f.useContext(Vt.b),H=f.useContext(_t.b),K=H.locale,Y=void 0===K?Kt.a:K,G=H.renderEmpty,W=H.direction,X=h||V,q=Object(a.a)(Object(a.a)({},Y.Table),T),U=g||We,$=f.useContext(_t.b).getPrefixCls,Z=$("table",c),Q=$("dropdown",p),J=Object(a.a)({childrenColumnName:j,expandIconColumnIndex:P},M),tt=J.childrenColumnName,et=void 0===tt?"children":tt,nt=f.useMemo((function(){return U.some((function(t){return null===t||void 0===t?void 0:t[et]}))?"nest":k||M&&M.expandedRowRender?"row":null}),[U]),rt={body:f.useRef()},it=f.useMemo((function(){return"function"===typeof m?m:function(t){return null===t||void 0===t?void 0:t[m]}}),[m]),ot=function(t,e,n){var i=f.useRef({});return[function(o){if(!i.current||i.current.data!==t||i.current.childrenColumnName!==e||i.current.getRowKey!==n){var a=new Map;!function t(i){i.forEach((function(i,o){var c=n(i,o);a.set(c,i),i&&"object"===Object(r.a)(i)&&e in i&&t(i[e]||[])}))}(t),i.current={data:t,childrenColumnName:e,kvMap:a,getRowKey:n}}return i.current.kvMap.get(o)}]}(U,et,it),at=Object(o.a)(ot,1)[0],ct={},st=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=Object(a.a)(Object(a.a)({},ct),t);n&&(ct.resetPagination(),r.pagination.current&&(r.pagination.current=1),v&&v.onChange&&v.onChange(1,r.pagination.pageSize)),I&&!1!==I.scrollToFirstRowOnChange&&rt.body.current&&Object(Wt.a)(0,{getContainer:function(){return rt.body.current}}),null===w||void 0===w||w(r.pagination,r.filters,r.sorter,{currentDataSource:Oe(Ke(U,r.sorterStates,et),r.filterStates),action:e})},ut=Ye({prefixCls:Z,mergedColumns:_,onSorterChange:function(t,e){st({sorter:t,sorterStates:e},"sort",!1)},sortDirections:F||["ascend","descend"],tableLocale:q,showSorterTooltip:N}),ft=Object(o.a)(ut,4),ht=ft[0],dt=ft[1],pt=ft[2],gt=ft[3],vt=f.useMemo((function(){return Ke(U,dt,et)}),[U,dt]);ct.sorter=gt(),ct.sorterStates=dt;var yt=je({prefixCls:Z,locale:q,dropdownPrefixCls:Q,mergedColumns:_,onFilterChange:function(t,e){st({filters:t,filterStates:e},"filter",!0)},getPopupContainer:C}),mt=Object(o.a)(yt,3),bt=mt[0],xt=mt[1],Ot=mt[2],jt=Oe(vt,xt);ct.filters=Ot(),ct.filterStates=xt;var wt=Ge(f.useMemo((function(){return Object(a.a)({},pt)}),[pt])),Ct=Object(o.a)(wt,1)[0],St=Ce(jt.length,v,(function(t,e){st({pagination:Object(a.a)(Object(a.a)({},ct.pagination),{current:t,pageSize:e})},"paginate")})),Et=Object(o.a)(St,2),Mt=Et[0],kt=Et[1];ct.pagination=!1===v?{}:function(t,e){var n={current:e.current,pageSize:e.pageSize},i=t&&"object"===Object(r.a)(t)?t:{};return Object.keys(i).forEach((function(t){var r=e[t];"function"!==typeof r&&(n[t]=r)})),n}(v,Mt),ct.resetPagination=kt;var Pt=f.useMemo((function(){if(!1===v||!Mt.pageSize)return jt;var t=Mt.current,e=void 0===t?1:t,n=Mt.total,r=Mt.pageSize,i=void 0===r?10:r;return jt.length<n?jt.length>i?jt.slice((e-1)*i,e*i):jt:jt.slice((e-1)*i,e*i)}),[!!v,jt,Mt&&Mt.current,Mt&&Mt.pageSize,Mt&&Mt.total]),At=Te(y,{prefixCls:Z,data:jt,pageData:Pt,getRowKey:it,getRecordByKey:at,expandType:nt,childrenColumnName:et,locale:q,getPopupContainer:C}),It=Object(o.a)(At,2),Ft=It[0],Tt=It[1];J.__PARENT_RENDER_ICON__=J.expandIcon,J.expandIcon=J.expandIcon||E||Ut(q),"nest"===nt&&void 0===J.expandIconColumnIndex?J.expandIconColumnIndex=y?1:0:J.expandIconColumnIndex>0&&y&&(J.expandIconColumnIndex-=1),"number"!==typeof J.indentSize&&(J.indentSize="number"===typeof A?A:15);var Lt,Nt,Dt,Xt=f.useCallback((function(t){return Ct(Ft(bt(ht(t))))}),[ht,bt,Ft]);if(!1!==v&&(null===Mt||void 0===Mt?void 0:Mt.total)){var qt;qt=Mt.size?Mt.size:"small"===X||"middle"===X?"small":void 0;var $t=function(t){return f.createElement(Yt.a,Object(a.a)({},Mt,{className:s()("".concat(Z,"-pagination ").concat(Z,"-pagination-").concat(t),Mt.className),size:qt}))},Zt="rtl"===W?"left":"right",Qt=Mt.position;if(null!==Qt&&Array.isArray(Qt)){var Jt=Qt.find((function(t){return-1!==t.indexOf("top")})),te=Qt.find((function(t){return-1!==t.indexOf("bottom")})),ee=Qt.every((function(t){return"none"==="".concat(t)}));Jt||te||ee||(Nt=$t(Zt)),Jt&&(Lt=$t(Jt.toLowerCase().replace("top",""))),te&&(Nt=$t(te.toLowerCase().replace("bottom","")))}else Nt=$t(Zt)}"boolean"===typeof S?Dt={spinning:S}:"object"===Object(r.a)(S)&&(Dt=Object(a.a)({spinning:!0},S));var ne=s()("".concat(Z,"-wrapper"),Object(i.a)({},"".concat(Z,"-wrapper-rtl"),"rtl"===W),l);return f.createElement("div",{ref:e,className:ne,style:u},f.createElement(Gt.default,Object(a.a)({spinning:!1},Dt),Lt,f.createElement(Bt,Object(a.a)({},z,{columns:_,direction:W,expandable:J,prefixCls:Z,className:s()((n={},Object(i.a)(n,"".concat(Z,"-middle"),"middle"===X),Object(i.a)(n,"".concat(Z,"-small"),"small"===X),Object(i.a)(n,"".concat(Z,"-bordered"),d),Object(i.a)(n,"".concat(Z,"-empty"),0===U.length),n)),data:Pt,rowKey:it,rowClassName:function(t,e,n){var r;return r="function"===typeof b?s()(b(t,e,n)):s()(b),s()(Object(i.a)({},"".concat(Z,"-row-selected"),Tt.has(it(t,e))),r)},emptyText:T&&T.emptyText||(G||zt.a)("Table"),internalHooks:"rc-table-internal-hook",internalRefs:rt,transformColumns:Xt})),Nt))}var qe=f.forwardRef(Xe);qe.defaultProps={rowKey:"key"},qe.SELECTION_COLUMN=Ie,qe.EXPAND_COLUMN=Bt.EXPAND_COLUMN,qe.SELECTION_ALL="SELECT_ALL",qe.SELECTION_INVERT="SELECT_INVERT",qe.SELECTION_NONE="SELECT_NONE",qe.Column=Xt,qe.ColumnGroup=qt,qe.Summary=jt;var Ue=qe;e.default=Ue},875:function(t,e,n){"use strict";n.d(e,"e",(function(){return _})),n.d(e,"d",(function(){return X})),n.d(e,"a",(function(){return cn})),n.d(e,"b",(function(){return sn})),n.d(e,"c",(function(){return ln})),n.d(e,"f",(function(){return r})),n.d(e,"h",(function(){return hn})),n.d(e,"n",(function(){return fn})),n.d(e,"j",(function(){return xn})),n.d(e,"g",(function(){return On})),n.d(e,"l",(function(){return W})),n.d(e,"m",(function(){return $})),n.d(e,"k",(function(){return Z})),n.d(e,"i",(function(){return bn})),n.d(e,"o",(function(){return $e}));var r={};n.r(r),n.d(r,"catmullRomToBezier",(function(){return u})),n.d(r,"fillPath",(function(){return F})),n.d(r,"fillPathByDiff",(function(){return N})),n.d(r,"formatPath",(function(){return R})),n.d(r,"intersection",(function(){return P})),n.d(r,"parsePathArray",(function(){return m})),n.d(r,"parsePathString",(function(){return l})),n.d(r,"pathToAbsolute",(function(){return h})),n.d(r,"pathToCurve",(function(){return v})),n.d(r,"rectPath",(function(){return C}));var i={};n.r(i),n.d(i,"easeLinear",(function(){return ve})),n.d(i,"easeQuad",(function(){return be})),n.d(i,"easeQuadIn",(function(){return ye})),n.d(i,"easeQuadOut",(function(){return me})),n.d(i,"easeQuadInOut",(function(){return be})),n.d(i,"easeCubic",(function(){return je})),n.d(i,"easeCubicIn",(function(){return xe})),n.d(i,"easeCubicOut",(function(){return Oe})),n.d(i,"easeCubicInOut",(function(){return je})),n.d(i,"easePoly",(function(){return Se})),n.d(i,"easePolyIn",(function(){return we})),n.d(i,"easePolyOut",(function(){return Ce})),n.d(i,"easePolyInOut",(function(){return Se})),n.d(i,"easeSin",(function(){return Ae})),n.d(i,"easeSinIn",(function(){return ke})),n.d(i,"easeSinOut",(function(){return Pe})),n.d(i,"easeSinInOut",(function(){return Ae})),n.d(i,"easeExp",(function(){return Le})),n.d(i,"easeExpIn",(function(){return Fe})),n.d(i,"easeExpOut",(function(){return Te})),n.d(i,"easeExpInOut",(function(){return Le})),n.d(i,"easeCircle",(function(){return Be})),n.d(i,"easeCircleIn",(function(){return Ne})),n.d(i,"easeCircleOut",(function(){return De})),n.d(i,"easeCircleInOut",(function(){return Be})),n.d(i,"easeBounce",(function(){return ze})),n.d(i,"easeBounceIn",(function(){return _e})),n.d(i,"easeBounceOut",(function(){return ze})),n.d(i,"easeBounceInOut",(function(){return Ve})),n.d(i,"easeBack",(function(){return Ye})),n.d(i,"easeBackIn",(function(){return He})),n.d(i,"easeBackOut",(function(){return Ke})),n.d(i,"easeBackInOut",(function(){return Ye})),n.d(i,"easeElastic",(function(){return Xe})),n.d(i,"easeElasticIn",(function(){return We})),n.d(i,"easeElasticOut",(function(){return Xe})),n.d(i,"easeElasticInOut",(function(){return qe}));var o=n(579),a="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029",c=new RegExp("([a-z])["+a+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+a+"]*,?["+a+"]*)+)","ig"),s=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+a+"]*,?["+a+"]*","ig"),l=function(t){if(!t)return null;if(Object(o.C)(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(c,(function(r,i,o){var a=[],c=i.toLowerCase();if(o.replace(s,(function(t,e){e&&a.push(+e)})),"m"===c&&a.length>2&&(n.push([i].concat(a.splice(0,2))),c="l",i="m"===i?"l":"L"),"o"===c&&1===a.length&&n.push([i,a[0]]),"r"===c)n.push([i].concat(a));else for(;a.length>=e[c]&&(n.push([i].concat(a.splice(0,e[c]))),e[c]););return t})),n},u=function(t,e){for(var n=[],r=0,i=t.length;i-2*!e>r;r+=2){var o=[{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?o[3]={x:+t[0],y:+t[1]}:i-2===r&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[i-2],y:+t[i-1]}:i-4===r?o[3]=o[2]:r||(o[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},f=function(t,e,n,r,i){var o=[];if(null===i&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==i){var a=Math.PI/180,c=t+n*Math.cos(-r*a),s=t+n*Math.cos(-i*a);o=[["M",c,e+n*Math.sin(-r*a)],["A",n,n,0,+(i-r>180),0,s,e+n*Math.sin(-i*a)]]}else o=[["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 o},h=function(t){if(!(t=l(t))||!t.length)return[["M",0,0]];var e,n,r=[],i=0,o=0,a=0,c=0,s=0;"M"===t[0][0]&&(a=i=+t[0][1],c=o=+t[0][2],s++,r[0]=["M",i,o]);for(var h=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),d=void 0,p=void 0,g=s,v=t.length;g<v;g++){if(r.push(d=[]),(e=(p=t[g])[0])!==e.toUpperCase())switch(d[0]=e.toUpperCase(),d[0]){case"A":d[1]=p[1],d[2]=p[2],d[3]=p[3],d[4]=p[4],d[5]=p[5],d[6]=+p[6]+i,d[7]=+p[7]+o;break;case"V":d[1]=+p[1]+o;break;case"H":d[1]=+p[1]+i;break;case"R":for(var y=2,m=(n=[i,o].concat(p.slice(1))).length;y<m;y++)n[y]=+n[y]+i,n[++y]=+n[y]+o;r.pop(),r=r.concat(u(n,h));break;case"O":r.pop(),(n=f(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);break;case"U":r.pop(),r=r.concat(f(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));break;case"M":a=+p[1]+i,c=+p[2]+o;break;default:for(y=1,m=p.length;y<m;y++)d[y]=+p[y]+(y%2?i:o)}else if("R"===e)n=[i,o].concat(p.slice(1)),r.pop(),r=r.concat(u(n,h)),d=["R"].concat(p.slice(-2));else if("O"===e)r.pop(),(n=f(i,o,p[1],p[2])).push(n[0]),r=r.concat(n);else if("U"===e)r.pop(),r=r.concat(f(i,o,p[1],p[2],p[3])),d=["U"].concat(r[r.length-1].slice(-2));else for(var b=0,x=p.length;b<x;b++)d[b]=p[b];if("O"!==(e=e.toUpperCase()))switch(d[0]){case"Z":i=+a,o=+c;break;case"H":i=d[1];break;case"V":o=d[1];break;case"M":a=d[d.length-2],c=d[d.length-1];break;default:i=d[d.length-2],o=d[d.length-1]}}return r},d=function(t,e,n,r){return[t,e,n,r,n,r]},p=function(t,e,n,r,i,o){return[1/3*t+2/3*n,1/3*e+2/3*r,1/3*i+2/3*n,1/3*o+2/3*r,i,o]},g=function t(e,n,r,i,o,a,c,s,l,u){r===i&&(r+=1);var f,h,d,p,g,v=120*Math.PI/180,y=Math.PI/180*(+o||0),m=[],b=function(t,e,n){return{x:t*Math.cos(n)-e*Math.sin(n),y:t*Math.sin(n)+e*Math.cos(n)}};if(u)h=u[0],d=u[1],p=u[2],g=u[3];else{e=(f=b(e,n,-y)).x,n=f.y,s=(f=b(s,l,-y)).x,l=f.y,e===s&&n===l&&(s+=1,l+=1);var x=(e-s)/2,O=(n-l)/2,j=x*x/(r*r)+O*O/(i*i);j>1&&(r*=j=Math.sqrt(j),i*=j);var w=r*r,C=i*i,S=(a===c?-1:1)*Math.sqrt(Math.abs((w*C-w*O*O-C*x*x)/(w*O*O+C*x*x)));p=S*r*O/i+(e+s)/2,g=S*-i*x/r+(n+l)/2,h=Math.asin(((n-g)/i).toFixed(9)),d=Math.asin(((l-g)/i).toFixed(9)),h=e<p?Math.PI-h:h,d=s<p?Math.PI-d:d,h<0&&(h=2*Math.PI+h),d<0&&(d=2*Math.PI+d),c&&h>d&&(h-=2*Math.PI),!c&&d>h&&(d-=2*Math.PI)}var E=d-h;if(Math.abs(E)>v){var M=d,k=s,P=l;d=h+v*(c&&d>h?1:-1),m=t(s=p+r*Math.cos(d),l=g+i*Math.sin(d),r,i,o,0,c,k,P,[d,M,p,g])}E=d-h;var A=Math.cos(h),I=Math.sin(h),F=Math.cos(d),T=Math.sin(d),L=Math.tan(E/4),N=4/3*r*L,D=4/3*i*L,B=[e,n],R=[e+N*I,n-D*A],_=[s+N*T,l-D*F],z=[s,l];if(R[0]=2*B[0]-R[0],R[1]=2*B[1]-R[1],u)return[R,_,z].concat(m);for(var V=[],H=0,K=(m=[R,_,z].concat(m).join().split(",")).length;H<K;H++)V[H]=H%2?b(m[H-1],m[H],y).y:b(m[H],m[H+1],y).x;return V},v=function(t,e){var n,r=h(t),i=e&&h(e),o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},c=[],s=[],l="",u="",f=function(t,e,n){var r,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(g.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(r=2*e.x-e.bx,i=2*e.y-e.by):(r=e.x,i=e.y),t=["C",r,i].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(p(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(p(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(d(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(d(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(d(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(d(e.x,e.y,e.X,e.Y))}return t},v=function(t,e){if(t[e].length>7){t[e].shift();for(var o=t[e];o.length;)c[e]="A",i&&(s[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(r.length,i&&i.length||0)}},y=function(t,e,o,a,c){t&&e&&"M"===t[c][0]&&"M"!==e[c][0]&&(e.splice(c,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[c][1],o.y=t[c][2],n=Math.max(r.length,i&&i.length||0))};n=Math.max(r.length,i&&i.length||0);for(var m=0;m<n;m++){r[m]&&(l=r[m][0]),"C"!==l&&(c[m]=l,m&&(u=c[m-1])),r[m]=f(r[m],o,u),"A"!==c[m]&&"C"===l&&(c[m]="C"),v(r,m),i&&(i[m]&&(l=i[m][0]),"C"!==l&&(s[m]=l,m&&(u=s[m-1])),i[m]=f(i[m],a,u),"A"!==s[m]&&"C"===l&&(s[m]="C"),v(i,m)),y(r,i,o,a,m),y(i,r,a,o,m);var b=r[m],x=i&&i[m],O=b.length,j=i&&x.length;o.x=b[O-2],o.y=b[O-1],o.bx=parseFloat(b[O-4])||o.x,o.by=parseFloat(b[O-3])||o.y,a.bx=i&&(parseFloat(x[j-4])||a.x),a.by=i&&(parseFloat(x[j-3])||a.y),a.x=i&&x[j-2],a.y=i&&x[j-1]}return i?[r,i]:r},y=/,?([a-z]),?/gi,m=function(t){return t.join(",").replace(y,"$1")},b=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},x=function(t,e,n,r,i,o,a,c,s){null===s&&(s=1);for(var l=(s=s>1?1:s<0?0:s)/2,u=[-.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],h=0,d=0;d<12;d++){var p=l*u[d]+l,g=b(p,t,n,i,a),v=b(p,e,r,o,c),y=g*g+v*v;h+=f[d]*Math.sqrt(y)}return l*h},O=function(t,e,n,r,i,o,a,c){for(var s,l,u,f,h=[],d=[[],[]],p=0;p<2;++p)if(0===p?(l=6*t-12*n+6*i,s=-3*t+9*n-9*i+3*a,u=3*n-3*t):(l=6*e-12*r+6*o,s=-3*e+9*r-9*o+3*c,u=3*r-3*e),Math.abs(s)<1e-12){if(Math.abs(l)<1e-12)continue;(f=-u/l)>0&&f<1&&h.push(f)}else{var g=l*l-4*u*s,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*s);y>0&&y<1&&h.push(y);var m=(-l-v)/(2*s);m>0&&m<1&&h.push(m)}}for(var b,x=h.length,O=x;x--;)b=1-(f=h[x]),d[0][x]=b*b*b*t+3*b*b*f*n+3*b*f*f*i+f*f*f*a,d[1][x]=b*b*b*e+3*b*b*f*r+3*b*f*f*o+f*f*f*c;return d[0][O]=t,d[1][O]=e,d[0][O+1]=a,d[1][O+1]=c,d[0].length=d[1].length=O+2,{min:{x:Math.min.apply(0,d[0]),y:Math.min.apply(0,d[1])},max:{x:Math.max.apply(0,d[0]),y:Math.max.apply(0,d[1])}}},j=function(t,e,n,r,i,o,a,c){if(!(Math.max(t,n)<Math.min(i,a)||Math.min(t,n)>Math.max(i,a)||Math.max(e,r)<Math.min(o,c)||Math.min(e,r)>Math.max(o,c))){var s=(t-n)*(o-c)-(e-r)*(i-a);if(s){var l=((t*r-e*n)*(i-a)-(t-n)*(i*c-o*a))/s,u=((t*r-e*n)*(o-c)-(e-r)*(i*c-o*a))/s,f=+l.toFixed(2),h=+u.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(i,a).toFixed(2)||f>+Math.max(i,a).toFixed(2)||h<+Math.min(e,r).toFixed(2)||h>+Math.max(e,r).toFixed(2)||h<+Math.min(o,c).toFixed(2)||h>+Math.max(o,c).toFixed(2)))return{x:l,y:u}}}},w=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},C=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 o=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return o.parsePathArray=m,o},S=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:C(t,e,n,r),vb:[t,e,n,r].join(" ")}},E=function(t,e,n,r,i,a,c,s){Object(o.C)(t)||(t=[t,e,n,r,i,a,c,s]);var l=O.apply(null,t);return S(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},M=function(t,e,n,r,i,o,a,c,s){var l=1-s,u=Math.pow(l,3),f=Math.pow(l,2),h=s*s,d=h*s,p=t+2*s*(n-t)+h*(i-2*n+t),g=e+2*s*(r-e)+h*(o-2*r+e),v=n+2*s*(i-n)+h*(a-2*i+n),y=r+2*s*(o-r)+h*(c-2*o+r);return{x:u*t+3*f*s*n+3*l*s*s*i+d*a,y:u*e+3*f*s*r+3*l*s*s*o+d*c,m:{x:p,y:g},n:{x:v,y:y},start:{x:l*t+s*n,y:l*e+s*r},end:{x:l*i+s*a,y:l*o+s*c},alpha:90-180*Math.atan2(p-v,g-y)/Math.PI}},k=function(t,e,n){if(!function(t,e){return t=S(t),e=S(e),w(e,t.x,t.y)||w(e,t.x2,t.y)||w(e,t.x,t.y2)||w(e,t.x2,t.y2)||w(t,e.x,e.y)||w(t,e.x2,e.y)||w(t,e.x,e.y2)||w(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}(E(t),E(e)))return n?0:[];for(var r=~~(x.apply(0,t)/8),i=~~(x.apply(0,e)/8),o=[],a=[],c={},s=n?0:[],l=0;l<r+1;l++){var u=M.apply(0,t.concat(l/r));o.push({x:u.x,y:u.y,t:l/r})}for(l=0;l<i+1;l++){u=M.apply(0,e.concat(l/i));a.push({x:u.x,y:u.y,t:l/i})}for(l=0;l<r;l++)for(var f=0;f<i;f++){var h=o[l],d=o[l+1],p=a[f],g=a[f+1],v=Math.abs(d.x-h.x)<.001?"y":"x",y=Math.abs(g.x-p.x)<.001?"y":"x",m=j(h.x,h.y,d.x,d.y,p.x,p.y,g.x,g.y);if(m){if(c[m.x.toFixed(4)]===m.y.toFixed(4))continue;c[m.x.toFixed(4)]=m.y.toFixed(4);var b=h.t+Math.abs((m[v]-h[v])/(d[v]-h[v]))*(d.t-h.t),O=p.t+Math.abs((m[y]-p[y])/(g[y]-p[y]))*(g.t-p.t);b>=0&&b<=1&&O>=0&&O<=1&&(n?s+=1:s.push({x:m.x,y:m.y,t1:b,t2:O}))}}return s},P=function(t,e){return function(t,e,n){var r,i,o,a,c,s,l,u,f,h;t=v(t),e=v(e);for(var d=n?0:[],p=0,g=t.length;p<g;p++){var y=t[p];if("M"===y[0])r=c=y[1],i=s=y[2];else{"C"===y[0]?(f=[r,i].concat(y.slice(1)),r=f[6],i=f[7]):(f=[r,i,r,i,c,s,c,s],r=c,i=s);for(var m=0,b=e.length;m<b;m++){var x=e[m];if("M"===x[0])o=l=x[1],a=u=x[2];else{"C"===x[0]?(h=[o,a].concat(x.slice(1)),o=h[6],a=h[7]):(h=[o,a,o,a,l,u,l,u],o=l,a=u);var O=k(f,h,n);if(n)d+=O;else{for(var j=0,w=O.length;j<w;j++)O[j].segment1=p,O[j].segment2=m,O[j].bez1=f,O[j].bez2=h;d=d.concat(O)}}}}}return d}(t,e)};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 o=[],a=0;a<e.length-1;a++)0===a&&n.push(e[0]),a===e.length-2&&r.push(e[a+1]),o[a]=[(1-i)*e[a][0]+i*e[a+1][0],(1-i)*e[a][1]+i*e[a+1][1]];t(o,i)}}(t,e),{left:n,right:r.reverse()}}var I=function(t,e,n){if(1===n)return[[].concat(t)];var r=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])r=r.concat(function(t,e,n){var r=[[t[1],t[2]]];n=n||2;var i=[];"A"===e[0]?(r.push(e[6]),r.push(e[7])):"C"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]]),r.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(r.push([e[1],e[2]]),r.push([e[3],e[4]])):r.push([e[1],e[2]]);for(var o=r,a=1/n,c=0;c<n-1;c++){var s=A(o,a/(1-a*c));i.push(s.left),o=s.right}return i.push(o),i.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1])}))}(t,e,n));else{var i=[].concat(t);"M"===i[0]&&(i[0]="L");for(var o=0;o<=n-1;o++)r.push(i)}return r},F=function(t,e){if(1===t.length)return t;var n=t.length-1,r=e.length-1,i=n/r,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a<r-n;a++)t.push(t[0]);return t}for(a=0;a<r;a++){var c=Math.floor(i*a);o[c]=(o[c]||0)+1}var s=o.reduce((function(e,r,i){return i===n?e.concat(t[n]):e.concat(I(t[i],t[i+1],r))}),[]);return s.unshift(t[0]),"Z"!==e[r]&&"z"!==e[r]||s.push("Z"),s},T=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(o.j)(t,(function(t,r){if(t!==e[r])return n=!1,!1})),n};function L(t,e,n){var r=null,i=n;return e<i&&(i=e,r="add"),t<i&&(i=t,r="del"),{type:r,min:i}}var N=function(t,e){var n=function(t,e){var n,r,i=t.length,o=e.length,a=0;if(0===i||0===o)return null;for(var c=[],s=0;s<=i;s++)c[s]=[],c[s][0]={min:s};for(var l=0;l<=o;l++)c[0][l]={min:l};for(s=1;s<=i;s++){n=t[s-1];for(l=1;l<=o;l++){r=e[l-1],a=T(n,r)?0:1;var u=c[s-1][l].min+1,f=c[s][l-1].min+1,h=c[s-1][l-1].min+a;c[s][l]=L(u,f,h)}}return c}(t,e),r=t.length,i=e.length,o=[],a=1,c=1;if(n[r][i].min!==r){for(var s=1;s<=r;s++){var l=n[s][s].min;c=s;for(var u=a;u<=i;u++)n[s][u].min<l&&(l=n[s][u].min,c=u);a=c,n[s][a].type&&o.push({index:s-1,type:n[s][a].type})}for(s=o.length-1;s>=0;s--)a=o[s].index,"add"===o[s].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}var f=i-(r=t.length);if(r<i)for(s=0;s<f;s++)"z"===t[r-1][0]||"Z"===t[r-1][0]?t.splice(r-2,0,t[r-2]):t.push(t[r-1]),r+=1;return t};function D(t,e,n){for(var r,i=[].concat(t),o=1/(n+1),a=B(e)[0],c=1;c<=n;c++)o*=c,0===(r=Math.floor(t.length*o))?i.unshift([a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]):i.splice(r,0,[a[0]*o+t[r][0]*(1-o),a[1]*o+t[r][1]*(1-o)]);return i}function B(t){var e=[];switch(t[0]){case"M":case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":case"V":e.push([t[1],t[1]])}return e}var R=function(t,e){if(t.length<=1)return t;for(var n,r=0;r<e.length;r++)if(t[r][0]!==e[r][0])switch(n=B(t[r]),e[r][0]){case"M":t[r]=["M"].concat(n[0]);break;case"L":t[r]=["L"].concat(n[0]);break;case"A":t[r]=[].concat(e[r]),t[r][6]=n[0][0],t[r][7]=n[0][1];break;case"Q":if(n.length<2){if(!(r>0)){t[r]=e[r];break}n=D(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=D(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=D(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(){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}(),z=function(t,e){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function V(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}z(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var H=n(2184);function K(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}var Y="undefined"!==typeof window&&"undefined"!==typeof window.document;function G(t,e){if(t.isCanvas())return!0;for(var n=e.getParent(),r=!1;n;){if(n===t){r=!0;break}n=n.getParent()}return r}function W(t){return t.cfg.visible&&t.cfg.capture}var X=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var r=n.getDefaultCfg();return n.cfg=Object(o.db)(r,e),n}return V(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}(H.a),q=n(2250);function U(t,e){var n=[],r=t[0],i=t[1],o=t[2],a=t[3],c=t[4],s=t[5],l=t[6],u=t[7],f=t[8],h=e[0],d=e[1],p=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=h*r+d*a+p*l,n[1]=h*i+d*c+p*u,n[2]=h*o+d*s+p*f,n[3]=g*r+v*a+y*l,n[4]=g*i+v*c+y*u,n[5]=g*o+v*s+y*f,n[6]=m*r+b*a+x*l,n[7]=m*i+b*c+x*u,n[8]=m*o+b*s+x*f,n}function $(t,e){var n=[],r=e[0],i=e[1];return n[0]=t[0]*r+t[3]*i+t[6],n[1]=t[1]*r+t[4]*i+t[7],n}function Z(t){var e=[],n=t[0],r=t[1],i=t[2],o=t[3],a=t[4],c=t[5],s=t[6],l=t[7],u=t[8],f=u*a-c*l,h=-u*o+c*s,d=l*o-a*s,p=n*f+r*h+i*d;return p?(p=1/p,e[0]=f*p,e[1]=(-u*r+i*l)*p,e[2]=(c*r-i*a)*p,e[3]=h*p,e[4]=(u*n-i*s)*p,e[5]=(-c*n+i*o)*p,e[6]=d*p,e[7]=(-l*n+r*s)*p,e[8]=(a*n-r*o)*p,e):null}var Q=n(916).a.transform,J=["zIndex","capture","visible","type"],tt=["repeat"];function et(t,e){var n={},r=e.attrs;for(var i in t)n[i]=r[i];return n}function nt(t,e){var n={},r=e.attr();return Object(o.j)(t,(function(t,e){-1!==tt.indexOf(e)||Object(o.H)(r[e],t)||(n[e]=t)})),n}function rt(t,e){if(e.onFrame)return t;var n=e.startTime,r=e.delay,i=e.duration,a=Object.prototype.hasOwnProperty;return Object(o.j)(t,(function(t){n+r<t.startTime+t.delay+t.duration&&i>t.delay&&Object(o.j)(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var it=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var r=n.getDefaultAttrs();return Object(o.db)(r,e.attrs),n.attrs=r,n.initAttrs(r),n.initAnimate(),n}return V(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e[0],i=e[1];if(!r)return this.attrs;if(Object(o.O)(r)){for(var a in r)this.setAttr(a,r[a]);return this.afterAttrsChange(r),this}return 2===e.length?(this.setAttr(r,i),this.afterAttrsChange(((t={})[r]=i,t)),this):this.attrs[r]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(K(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr("matrix",this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr("matrix")},e.prototype.setMatrix=function(t){this.attr("matrix",t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?U(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?U(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?$(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Z(e);if(n)return $(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var r=this.getShapeBase()[Object(o.wb)(t.type)];r&&(n=new r({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(o.j)(e,(function(t,r){Object(o.C)(e[r])?n[r]=function(t){for(var e=[],n=0;n<t.length;n++)Object(o.C)(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}(e[r]):n[r]=e[r]}));var r=new(0,this.constructor)({attrs:n});return Object(o.j)(J,(function(e){r.set(e,t.get(e))})),r},e.prototype.destroy=function(){this.destroyed||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this.get("timeline")||this.get("canvas")){this.set("animating",!0);var n=this.get("timeline");n||(n=this.get("canvas").get("timeline"),this.set("timeline",n));var r=this.get("animations")||[];n.timer||n.initTimer();var i,a,c,s,l,u=t[0],f=t[1],h=t[2],d=void 0===h?"easeLinear":h,p=t[3],g=void 0===p?o.fb:p,v=t[4],y=void 0===v?0:v;Object(o.I)(u)?(i=u,u={}):Object(o.O)(u)&&u.onFrame&&(i=u.onFrame,a=u.repeat),Object(o.O)(f)?(f=(l=f).duration,d=l.easing||"easeLinear",y=l.delay||0,a=l.repeat||a||!1,g=l.callback||o.fb,c=l.pauseCallback||o.fb,s=l.resumeCallback||o.fb):(Object(o.M)(g)&&(y=g,g=null),Object(o.I)(d)?(g=d,d="easeLinear"):d=d||"easeLinear");var m=nt(u,this),b={fromAttrs:et(m,this),toAttrs:m,duration:f,easing:d,repeat:a,callback:g,pauseCallback:c,resumeCallback:s,delay:y,startTime:n.getTime(),id:Object(o.vb)(),onFrame:i,pathFormatted:!1};r.length>0?r=rt(r,b):n.addAnimator(this),r.push(b),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");Object(o.j)(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 Object(o.j)(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 Object(o.j)(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 a=function(t){var a=i[t],s=a.get("name");if(s){if((a.isGroup()||a.isCanvas&&a.isCanvas())&&n&&G(a,n))return"break";Object(o.C)(s)?Object(o.j)(s,(function(t){r.emitDelegateEvent(a,t,e)})):c.emitDelegateEvent(a,s,e)}},c=this,s=0;s<i.length;s++){if("break"===a(s))break}},e.prototype.emitDelegateEvent=function(t,e,n){var r=this.getEvents(),i=e+":"+n.type;(r[i]||r["*"])&&(n.name=i,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(i,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),r=Q(n,[["t",t,e]]);return this.setMatrix(r),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,r=this.attr("y")||0;return this.translate(t-n,e-r),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),r=Q(n,[["s",t,e||t]]);return this.setMatrix(r),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=Q(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,r=e.y,i=this.getMatrix(),o=Q(i,[["t",-n,-r],["r",t],["t",n,r]]);return this.setMatrix(o),this},e.prototype.rotateAtPoint=function(t,e,n){var r=this.getMatrix(),i=Q(r,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(i),this},e}(X),ot={};var at,ct,st=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(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=[],a=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return c.length>0?(Object(o.j)(c,(function(t){var e=t.getBBox();i.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Object(o.bb)(i),e=Object(o.Y)(i),n=Object(o.bb)(a),r=Object(o.Y)(a)):(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=[],a=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));return c.length>0?(Object(o.j)(c,(function(t){var e=t.getCanvasBBox();i.push(e.minX,e.maxX),a.push(e.minY,e.maxY)})),t=Object(o.bb)(i),e=Object(o.Y)(i),n=Object(o.bb)(a),r=Object(o.Y)(a)):(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();Object(o.j)(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],r=t[1];Object(o.O)(n)?r=n:r.type=n;var i=ot[r.type];i||(i=Object(o.wb)(r.type),ot[r.type]=i);var a=this.getShapeBase(),c=new a[i](r);return this.add(c),c},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,r=t[0],i=t[1];if(Object(o.I)(r))n=new r(i||{parent:this});else{var a=r||{},c=this.getGroupBase();n=new c(a)}return this.add(n),n},e.prototype.getCanvas=function(){return this.isCanvas()?this:this.get("canvas")},e.prototype.getShape=function(t,e,n){if(!W(this))return null;var r,i=this.getChildren();if(this.isCanvas())r=this._findShape(i,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(r=this._findShape(i,o[0],o[1],n))}return r},e.prototype._findShape=function(t,e,n,r){for(var i=null,o=t.length-1;o>=0;o--){var a=t[o];if(W(a)&&(a.isGroup()?i=a.getShape(e,n,r):a.isHit(e,n)&&(i=a)),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)),K(t.getChildren(),e)}(i,t,!1),t.set("parent",this),e&&function t(e,n){if(e.set("canvas",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(t,e),r&&function t(e,n){if(e.set("timeline",n),e.isGroup()){var r=e.get("children");r.length&&r.forEach((function(e){t(e,n)}))}}(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();Object(o.j)(e,(function(t,e){return t._INDEX=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._INDEX-n._INDEX: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 Object(o.j)(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 Object(o.j)(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}(it),lt=0,ut=0,ft=0,ht=0,dt=0,pt=0,gt="object"===typeof performance&&performance.now?performance:Date,vt="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function yt(){return dt||(vt(mt),dt=gt.now()+pt)}function mt(){dt=0}function bt(){this._call=this._time=this._next=null}function xt(t,e,n){var r=new bt;return r.restart(t,e,n),r}function Ot(){dt=(ht=gt.now())+pt,lt=ut=0;try{!function(){yt(),++lt;for(var t,e=at;e;)(t=dt-e._time)>=0&&e._call.call(null,t),e=e._next;--lt}()}finally{lt=0,function(){var t,e,n=at,r=1/0;for(;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:at=e);ct=t,wt(r)}(),dt=0}}function jt(){var t=gt.now(),e=t-ht;e>1e3&&(pt-=e,ht=t)}function wt(t){lt||(ut&&(ut=clearTimeout(ut)),t-dt>24?(t<1/0&&(ut=setTimeout(Ot,t-gt.now()-pt)),ft&&(ft=clearInterval(ft))):(ft||(ht=gt.now(),ft=setInterval(jt,1e3)),lt=1,vt(Ot)))}bt.prototype=xt.prototype={constructor:bt,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?yt():+n)+(null==e?0:+e),this._next||ct===this||(ct?ct._next=this:at=this,ct=this),this._call=t,this._time=n,wt()},stop:function(){this._call&&(this._call=null,this._time=1/0,wt())}};var Ct=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function St(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function Et(){}var Mt="\\s*([+-]?\\d+)\\s*",kt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Pt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",At=/^#([0-9a-f]{3,8})$/,It=new RegExp("^rgb\\("+[Mt,Mt,Mt]+"\\)$"),Ft=new RegExp("^rgb\\("+[Pt,Pt,Pt]+"\\)$"),Tt=new RegExp("^rgba\\("+[Mt,Mt,Mt,kt]+"\\)$"),Lt=new RegExp("^rgba\\("+[Pt,Pt,Pt,kt]+"\\)$"),Nt=new RegExp("^hsl\\("+[kt,Pt,Pt]+"\\)$"),Dt=new RegExp("^hsla\\("+[kt,Pt,Pt,kt]+"\\)$"),Bt={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 Rt(){return this.rgb().formatHex()}function _t(){return this.rgb().formatRgb()}function zt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=At.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Vt(e):3===n?new Gt(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Ht(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Ht(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=It.exec(t))?new Gt(e[1],e[2],e[3],1):(e=Ft.exec(t))?new Gt(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Tt.exec(t))?Ht(e[1],e[2],e[3],e[4]):(e=Lt.exec(t))?Ht(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Nt.exec(t))?Ut(e[1],e[2]/100,e[3]/100,1):(e=Dt.exec(t))?Ut(e[1],e[2]/100,e[3]/100,e[4]):Bt.hasOwnProperty(t)?Vt(Bt[t]):"transparent"===t?new Gt(NaN,NaN,NaN,0):null}function Vt(t){return new Gt(t>>16&255,t>>8&255,255&t,1)}function Ht(t,e,n,r){return r<=0&&(t=e=n=NaN),new Gt(t,e,n,r)}function Kt(t){return t instanceof Et||(t=zt(t)),t?new Gt((t=t.rgb()).r,t.g,t.b,t.opacity):new Gt}function Yt(t,e,n,r){return 1===arguments.length?Kt(t):new Gt(t,e,n,null==r?1:r)}function Gt(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function Wt(){return"#"+qt(this.r)+qt(this.g)+qt(this.b)}function Xt(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function qt(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function Ut(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Zt(t,e,n,r)}function $t(t){if(t instanceof Zt)return new Zt(t.h,t.s,t.l,t.opacity);if(t instanceof Et||(t=zt(t)),!t)return new Zt;if(t instanceof Zt)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,c=o-i,s=(o+i)/2;return c?(a=e===o?(n-r)/c+6*(n<r):n===o?(r-e)/c+2:(e-n)/c+4,c/=s<.5?o+i:2-o-i,a*=60):c=s>0&&s<1?0:a,new Zt(a,c,s,t.opacity)}function Zt(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Qt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function Jt(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}Ct(Et,zt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:Rt,formatHex:Rt,formatHsl:function(){return $t(this).formatHsl()},formatRgb:_t,toString:_t}),Ct(Gt,Yt,St(Et,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Gt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wt,formatHex:Wt,formatRgb:Xt,toString:Xt})),Ct(Zt,(function(t,e,n,r){return 1===arguments.length?$t(t):new Zt(t,e,n,null==r?1:r)}),St(Et,{brighter:function(t){return t=null==t?1/.7:Math.pow(1/.7,t),new Zt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Zt(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 Gt(Qt(t>=240?t-240:t+120,i,r),Qt(t,i,r),Qt(t<120?t+240:t-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var te=function(t){return function(){return t}};function ee(t,e){return function(n){return t+n*e}}function ne(t){return 1===(t=+t)?re:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):te(isNaN(e)?n:e)}}function re(t,e){var n=e-t;return n?ee(t,n):te(isNaN(t)?e:t)}var ie=function t(e){var n=ne(e);function r(t,e){var r=n((t=Yt(t)).r,(e=Yt(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=re(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function oe(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),c=new Array(i);for(n=0;n<i;++n)r=Yt(e[n]),o[n]=r.r||0,a[n]=r.g||0,c[n]=r.b||0;return o=t(o),a=t(a),c=t(c),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=c(t),r+""}}}oe((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,c=r<e-1?t[r+2]:2*o-i;return Jt((n-r/e)*e,a,i,o,c)}})),oe((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],c=t[(r+2)%e];return Jt((n-r/e)*e,i,o,a,c)}}));var ae=function(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}};function ce(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function se(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=ge(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}var le=function(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}},ue=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},fe=function(t,e){var n,r={},i={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?r[n]=ge(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}},he=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,de=new RegExp(he.source,"g");var pe=function(t,e){var n,r,i,o=he.lastIndex=de.lastIndex=0,a=-1,c=[],s=[];for(t+="",e+="";(n=he.exec(t))&&(r=de.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),c[a]?c[a]+=i:c[++a]=i),(n=n[0])===(r=r[0])?c[a]?c[a]+=r:c[++a]=r:(c[++a]=null,s.push({i:a,x:ue(n,r)})),o=de.lastIndex;return o<e.length&&(i=e.slice(o),c[a]?c[a]+=i:c[++a]=i),c.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)c[(n=s[r]).i]=n.x(t);return c.join("")})},ge=function(t,e){var n,r=typeof e;return null==e||"boolean"===r?te(e):("number"===r?ue:"string"===r?(n=zt(e))?(e=n,ie):pe:e instanceof zt?ie:e instanceof Date?le:ce(e)?ae:Array.isArray(e)?se:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?fe:ue)(t,e)};function ve(t){return+t}function ye(t){return t*t}function me(t){return t*(2-t)}function be(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function xe(t){return t*t*t}function Oe(t){return--t*t*t+1}function je(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var we=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),Ce=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),Se=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3),Ee=Math.PI,Me=Ee/2;function ke(t){return 1===+t?1:1-Math.cos(t*Me)}function Pe(t){return Math.sin(t*Me)}function Ae(t){return(1-Math.cos(Ee*t))/2}function Ie(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function Fe(t){return Ie(1-+t)}function Te(t){return 1-Ie(t)}function Le(t){return((t*=2)<=1?Ie(1-t):2-Ie(t-1))/2}function Ne(t){return 1-Math.sqrt(1-t*t)}function De(t){return Math.sqrt(1- --t*t)}function Be(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var Re=7.5625;function _e(t){return 1-ze(1-t)}function ze(t){return(t=+t)<4/11?Re*t*t:t<8/11?Re*(t-=6/11)*t+3/4:t<10/11?Re*(t-=9/11)*t+15/16:Re*(t-=21/22)*t+63/64}function Ve(t){return((t*=2)<=1?1-ze(1-t):ze(t-1)+1)/2}var He=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(1.70158),Ke=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(1.70158),Ye=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(1.70158),Ge=2*Math.PI,We=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Ge);function i(t){return e*Ie(- --t)*Math.sin((r-t)/n)}return i.amplitude=function(e){return t(e,n*Ge)},i.period=function(n){return t(e,n)},i}(1,.3),Xe=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Ge);function i(t){return 1-e*Ie(t=+t)*Math.sin((t+r)/n)}return i.amplitude=function(e){return t(e,n*Ge)},i.period=function(n){return t(e,n)},i}(1,.3),qe=function t(e,n){var r=Math.asin(1/(e=Math.max(1,e)))*(n/=Ge);function i(t){return((t=2*t-1)<0?e*Ie(-t)*Math.sin((r-t)/n):2-e*Ie(t)*Math.sin((r+t)/n))/2}return i.amplitude=function(e){return t(e,n*Ge)},i.period=function(n){return t(e,n)},i}(1,.3),Ue={};function $e(t,e){Ue[t.toLowerCase()]=e}var Ze=[1,0,0,0,1,0,0,0,1];function Qe(t,e,n){var r,a=e.startTime;if(n<a+e.delay||e._paused)return!1;var c,s=e.duration,u=e.easing,f=Ue[(c=u).toLowerCase()]||i[c];if(n=n-a-e.delay,e.repeat)r=f(r=n%s/s);else{if(!((r=n/s)<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=f(r)}if(e.onFrame){var h=e.onFrame(r);t.attr(h)}else!function(t,e,n){var r={},i=e.fromAttrs,a=e.toAttrs;if(!t.destroyed){var c,s,u,f;for(var h in a)if(!Object(o.H)(i[h],a[h]))if("path"===h){var d=a[h],p=i[h];d.length>p.length?(d=l(a[h]),p=l(i[h]),p=N(p,d),p=R(p,d),e.fromAttrs.path=p,e.toAttrs.path=d):e.pathFormatted||(d=l(a[h]),p=l(i[h]),p=R(p,d),e.fromAttrs.path=p,e.toAttrs.path=d,e.pathFormatted=!0),r[h]=[];for(var g=0;g<d.length;g++){for(var v=d[g],y=p[g],m=[],b=0;b<v.length;b++)Object(o.M)(v[b])&&y&&Object(o.M)(y[b])?(c=ge(y[b],v[b]),m.push(c(n))):m.push(v[b]);r[h].push(m)}}else if("matrix"===h){var x=(u=i[h]||Ze,(ce(f=a[h]||Ze)?ae:se)(u,f))(n);r[h]=x}else["fill","stroke","fillStyle","strokeStyle"].includes(h)&&(s=a[h],/^[r,R,L,l]{1}[\s]*\(/.test(s))?r[h]=a[h]:Object(o.I)(a[h])||(c=ge(i[h],a[h]),r[h]=c(n));t.attr(r)}}(t,e,r);return!1}var Je=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,r=this;this.timer=xt((function(i){if(r.current=i,r.animators.length>0){for(var o=r.animators.length-1;o>=0;o--)if((t=r.animators[o]).destroyed)r.removeAnimator(o);else{if(!t.isAnimatePaused())for(var a=(e=t.get("animations")).length-1;a>=0;a--)n=e[a],Qe(t,n,i)&&(e.splice(a,1),!1,n.callback&&n.callback());0===e.length&&r.removeAnimator(o)}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}(),tn=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function en(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function nn(t,e,n){if(n.bubbles){var r=void 0,i=!1;if("mouseenter"===e?(r=n.fromShape,i=!0):"mouseleave"===e&&(i=!0,r=n.toShape),t.isCanvas()&&i)return;if(r&&G(t,r))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var rn=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){if(e.canvas.get("el")!==t.target&&(e.dragging||e.currentShape)){var n=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,n,e.draggingShape)}},this._onDocumentMouseUp=function(t){if(e.canvas.get("el")!==t.target&&e.dragging){var n=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,n,null),e._emitEvent("dragend",t,n,e.draggingShape),e._afterDrag(e.draggingShape,n,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(o.j)(tn,(function(n){e.addEventListener(n,t._eventCallback)})),document&&(document.addEventListener("mousemove",this._onDocumentMove),document.addEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._clearEvents=function(){var t=this,e=this.canvas.get("el");Object(o.j)(tn,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,r,i,o){var a=new _(t,e);return a.fromShape=i,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(r),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),r=e.getPointByEvent(t);return{x:r.x,y:r.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),r=this._getShape(n,e),i=this["_on"+t],o=!1;if(i)i.call(this,n,r,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,r),r&&this._emitEvent(t,e,n,r,null,r),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,r,null,null)}if(o||(this.currentShape=r),r&&!r.get("destroyed")){var c=this.canvas;c.get("el").style.cursor=r.attr("cursor")||c.get("cursor")}},t.prototype._onmousedown=function(t,e,n){0===n.button&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,r){var i=this.canvas.get("el");n!==r&&(n&&(this._emitEvent("mouseout",t,e,n,n,r),this._emitEvent("mouseleave",t,e,n,n,r),r&&!r.get("destroyed")||(i.style.cursor=this.canvas.get("cursor"))),r&&(this._emitEvent("mouseover",t,e,r,n,r),this._emitEvent("mouseenter",t,e,r,n,r)))},t.prototype._emitDragoverEvents=function(t,e,n,r,i){r?(r!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,r),this._emitEvent("dragenter",t,e,r,n,r)),i||this._emitEvent("dragover",t,e,r)):n&&this._emitEvent("dragleave",t,e,n,n,r),i&&this._emitEvent("dragover",t,e,r)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var r=this._getShape(e,n);r!==t&&this._emitMouseoverEvents(n,e,t,r),this.currentShape=r},t.prototype._onmouseup=function(t,e,n){if(0===n.button){var r=this.draggingShape;this.dragging?(r&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,r),this._afterDrag(r,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var r=this.currentShape;this._emitDragoverEvents(n,t,r,e,!0)},t.prototype._onmousemove=function(t,e,n){var r=this.canvas,i=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,i,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var c=this.mousedownShape,s=n.timeStamp-this.mousedownTimeStamp,l=a.clientX-t.clientX,u=a.clientY-t.clientY;s>120||l*l+u*u>40?c&&c.get("draggable")?((o=this.mousedownShape).set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!c&&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,o){var a=this._getEventObj(t,e,n,r,i,o);if(r){a.shape=r,en(r,t,a);for(var c=r.getParent();c;)c.emitDelegation(t,a),a.propagationStopped||nn(c,t,a),a.propagationPath.push(c),c=c.getParent()}else{en(this.canvas,t,a)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),on=Object(q.a)(),an=on&&"firefox"===on.name,cn=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return V(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");Object(o.Q)(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 rn({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Je(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");Y&&(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");Y&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){if(this.get("supportCSSTransform")){if(an&&!Object(o.K)(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(o.K)(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}(st),sn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(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<n.length;r++){var i=n[r];e.add(i.clone())}return e},e}(st),ln=function(t){function e(e){return t.call(this,e)||this}return V(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,r=t.minY,i=t.maxX,o=t.maxY;if(e){var a=$(e,[t.minX,t.minY]),c=$(e,[t.maxX,t.minY]),s=$(e,[t.minX,t.maxY]),l=$(e,[t.maxX,t.maxY]);n=Math.min(a[0],c[0],s[0],l[0]),i=Math.max(a[0],c[0],s[0],l[0]),r=Math.min(a[1],c[1],s[1],l[1]),o=Math.max(a[1],c[1],s[1],l[1])}var u=this.attrs;if(u.shadowColor){var f=u.shadowBlur,h=void 0===f?0:f,d=u.shadowOffsetX,p=void 0===d?0:d,g=u.shadowOffsetY,v=void 0===g?0:g,y=n-h+p,m=i+h+p,b=r-h+v,x=o+h+v;n=Math.min(n,y),i=Math.max(i,m),r=Math.min(r,b),o=Math.max(o,x)}return{x:n,y:r,minX:n,minY:r,maxX:i,maxY:o,width:i-n,height:o-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],o=(i=this.invertFromMatrix(i))[0],a=i[1],c=this._isInBBox(o,a);if(this.isOnlyHitBox())return c;if(c&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(r&&r.isHit(o,a))return!0}return!1},e}(it),un=new Map;function fn(t,e){un.set(t,e)}function hn(t){return un.get(t)}var dn=function(t){var e=t.attr();return{x:e.x,y:e.y,width:e.width,height:e.height}},pn=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}},gn=n(1005);function vn(t,e){return t&&e?{minX:Math.min(t.minX,e.minX),minY:Math.min(t.minY,e.minY),maxX:Math.max(t.maxX,e.maxX),maxY:Math.max(t.maxY,e.maxY)}:t||e}function yn(t,e){var n=t.get("startArrowShape"),r=t.get("endArrowShape");return n&&(e=vn(e,n.getCanvasBBox())),r&&(e=vn(e,r.getCanvasBBox())),e}var mn=null;function bn(){if(!mn){var t=document.createElement("canvas");t.width=1,t.height=1,mn=t.getContext("2d")}return mn}function xn(t,e,n){var r=1;return Object(o.Q)(t)&&(r=t.split("\n").length),r>1?e*r+function(t,e){return e?e-t:.14*t}(e,n)*(r-1):e}function On(t){var e=t.fontSize,n=t.fontFamily,r=t.fontWeight;return[t.fontStyle,t.fontVariant,r,e+"px",n].join(" ").trim()}var jn=n(1411);function wn(t,e){var n=t.prePoint,r=t.currentPoint,i=t.nextPoint,a=Math.pow(r[0]-n[0],2)+Math.pow(r[1]-n[1],2),c=Math.pow(r[0]-i[0],2)+Math.pow(r[1]-i[1],2),s=Math.pow(n[0]-i[0],2)+Math.pow(n[1]-i[1],2),l=Math.acos((a+c-s)/(2*Math.sqrt(a)*Math.sqrt(c)));if(!l||0===Math.sin(l)||Object(o.N)(l,0))return{xExtra:0,yExtra:0};var u=Math.abs(Math.atan2(i[1]-r[1],i[0]-r[0])),f=Math.abs(Math.atan2(i[0]-r[0],i[1]-r[1]));return u=u>Math.PI/2?Math.PI-u:u,f=f>Math.PI/2?Math.PI-f:f,{xExtra:Math.cos(l/2-u)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(f-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0}}fn("rect",dn),fn("image",dn),fn("circle",pn),fn("marker",pn),fn("polyline",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}var a=gn.f.getBBoxByArray(n,r),c=a.x,s=a.y,l={minX:c,minY:s,maxX:c+a.width,maxY:s+a.height};return{x:(l=yn(t,l)).minX,y:l.minY,width:l.maxX-l.minX,height:l.maxY-l.minY}})),fn("polygon",(function(t){for(var e=t.attr().points,n=[],r=[],i=0;i<e.length;i++){var o=e[i];n.push(o[0]),r.push(o[1])}return gn.f.getBBoxByArray(n,r)})),fn("text",(function(t){var e=t.attr(),n=e.x,r=e.y,i=e.text,a=e.fontSize,c=e.lineHeight,s=e.font;s||(s=On(e));var l,u=function(t,e){var n=bn(),r=0;if(Object(o.K)(t)||""===t)return r;if(n.save(),n.font=e,Object(o.Q)(t)&&t.includes("\n")){var i=t.split("\n");Object(o.j)(i,(function(t){var e=n.measureText(t).width;r<e&&(r=e)}))}else r=n.measureText(t).width;return n.restore(),r}(i,s);if(u){var f=e.textAlign,h=e.textBaseline,d=xn(i,a,c),p={x:n,y:r-d};f&&("end"===f||"right"===f?p.x-=u:"center"===f&&(p.x-=u/2)),h&&("top"===h?p.y+=d:"middle"===h&&(p.y+=d/2)),l={x:p.x,y:p.y,width:u,height:d}}else l={x:n,y:r,width:0,height:0};return l})),fn("path",(function(t){var e=t.attr(),n=e.path,r=e.stroke?e.lineWidth:0,i=function(t,e){for(var n=[],r=[],i=[],a=0;a<t.length;a++){var c=(v=t[a]).currentPoint,s=v.params,l=v.prePoint,u=void 0;switch(v.command){case"Q":u=gn.e.box(l[0],l[1],s[1],s[2],s[3],s[4]);break;case"C":u=gn.b.box(l[0],l[1],s[1],s[2],s[3],s[4],s[5],s[6]);break;case"A":var f=v.arcParams;u=gn.a.box(f.cx,f.cy,f.rx,f.ry,f.xRotation,f.startAngle,f.endAngle);break;default:n.push(c[0]),r.push(c[1])}u&&(v.box=u,n.push(u.x,u.x+u.width),r.push(u.y,u.y+u.height)),e&&("L"===v.command||"M"===v.command)&&v.prePoint&&v.nextPoint&&i.push(v)}n=n.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0})),r=r.filter((function(t){return!Number.isNaN(t)&&t!==1/0&&t!==-1/0}));var h=Object(o.bb)(n),d=Object(o.bb)(r),p=Object(o.Y)(n),g=Object(o.Y)(r);if(0===i.length)return{x:h,y:d,width:p-h,height:g-d};for(a=0;a<i.length;a++){var v;(c=(v=i[a]).currentPoint)[0]===h?h-=wn(v,e).xExtra:c[0]===p&&(p+=wn(v,e).xExtra),c[1]===d?d-=wn(v,e).yExtra:c[1]===g&&(g+=wn(v,e).yExtra)}return{x:h,y:d,width:p-h,height:g-d}}(t.get("segments")||Object(jn.e)(n),r),a=i.x,c=i.y,s={minX:a,minY:c,maxX:a+i.width,maxY:c+i.height};return{x:(s=yn(t,s)).minX,y:s.minY,width:s.maxX-s.minX,height:s.maxY-s.minY}})),fn("line",(function(t){var e=t.attr(),n=e.x1,r=e.y1,i=e.x2,o=e.y2,a={minX:Math.min(n,i),maxX:Math.max(n,i),minY:Math.min(r,o),maxY:Math.max(r,o)};return{x:(a=yn(t,a)).minX,y:a.minY,width:a.maxX-a.minX,height:a.maxY-a.minY}})),fn("ellipse",(function(t){var e=t.attr(),n=e.x,r=e.y,i=e.rx,o=e.ry;return{x:n-i,y:r-o,width:2*i,height:2*o}}))},913:function(t,e,n){"use strict";var r=n(825),i=n(579),o=n(2189),a=n(1139),c=n(918),s=n(1709),l=["visible","tip","delegateObject"],u=["container","group","shapesMap","isRegister","isUpdating","destroyed"],f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r.a)(Object(r.a)({},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 Object(i.j)(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=Object(a.a)(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),Object(o.a)(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",Object(c.d)(t)),t},e.prototype.addGroup=function(t,e){this.appendDelegateObject(t,e);var n=t.addGroup(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addShape=function(t,e){this.appendDelegateObject(t,e);var n=t.addShape(e);return this.get("isRegister")&&this.registerElement(n),n},e.prototype.addComponent=function(t,e){var n=e.id,i=e.component,o=Object(r.c)(e,["id","component"]),a=new i(Object(r.a)(Object(r.a)({},o),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return a.init(),a.render(),this.get("isRegister")&&this.registerElement(a.get("group")),a},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=Object(a.f)(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var r=e.attr("opacity");Object(i.K)(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,o=this.get("animate"),a=this.get("animateOption"),s=t.getChildren().slice(0);Object(i.j)(s,(function(t){var s=t.get("id"),f=r.getElementById(s),h=t.get("name");if(f)if(t.get("isComponent")){var d=t.get("component"),p=f.get("component"),g=Object(i.hb)(d.cfg,Object(i.i)(Object(i.T)(d.cfg),u));p.update(g),f.set("update_status","update")}else{var v=r.getReplaceAttrs(f,t);o&&a.update?r.updateAnimation(h,f,v,a.update):f.attr(v),t.isGroup()&&r.updateElements(t,f),Object(i.j)(l,(function(e){f.set(e,t.get(e))})),Object(c.m)(f,t),n=f,f.set("update_status","update")}else{e.add(t);var y=e.getChildren();if(y.splice(y.length-1,1),n){var m=y.indexOf(n);y.splice(m+1,0,t)}else y.unshift(t);if(r.registerElement(t),t.set("update_status","add"),t.get("isComponent"))(d=t.get("component")).set("container",e);else t.isGroup()&&r.registerNewGroup(t);if(n=t,o){var b=r.get("isInit")?a.appear:a.enter;b&&r.addAnimation(h,t,b)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(i.j)(e,(function(t){t.set("update_status",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={}),Object(i.db)(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),r=e.attr();return Object(i.j)(n,(function(t,e){void 0===r[e]&&(r[e]=void 0)})),r},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(i.j)(n,(function(t){e.registerElement(t),t.set("update_status","add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(i.j)(e,(function(t,e){!t.get("update_status")||t.destroyed?n.push([e,t]):t.set("update_status",null)}));var r=this.get("animate"),o=this.get("animateOption");Object(i.j)(n,(function(n){var a=n[0],c=n[1];if(!c.destroyed){var s=c.get("name");if(r&&o.leave){var l=Object(i.db)({callback:function(){t.removeElement(c)}},o.leave);t.removeAnimation(s,c,l)}else t.removeElement(c)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(s.a);e.a=f},916:function(t,e,n){"use strict";n.d(e,"b",(function(){return i.a})),n.d(e,"c",(function(){return i.b})),n.d(e,"d",(function(){return i.c})),n.d(e,"a",(function(){return r}));var r={};n.r(r),n.d(r,"leftTranslate",(function(){return o})),n.d(r,"leftRotate",(function(){return a})),n.d(r,"leftScale",(function(){return c})),n.d(r,"transform",(function(){return s})),n.d(r,"direction",(function(){return l})),n.d(r,"angleTo",(function(){return u})),n.d(r,"vertical",(function(){return f}));var i=n(1080);function o(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromTranslation(r,n),i.a.multiply(t,r,e)}function a(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromRotation(r,n),i.a.multiply(t,r,e)}function c(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.a.fromScaling(r,n),i.a.multiply(t,r,e)}function s(t,e){for(var n,r,s,l=t?[].concat(t):[1,0,0,0,1,0,0,0,1],u=0,f=e.length;u<f;u++){var h=e[u];switch(h[0]){case"t":o(l,l,[h[1],h[2]]);break;case"s":c(l,l,[h[1],h[2]]);break;case"r":a(l,l,h[1]);break;case"m":n=l,r=l,s=h[1],i.a.multiply(n,s,r)}}return l}function l(t,e){return t[0]*e[1]-e[0]*t[1]}function u(t,e,n){var r=i.b.angle(t,e),o=l(t,e)>=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r}function f(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},918:function(t,e,n){"use strict";n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"h",(function(){return a})),n.d(e,"k",(function(){return c})),n.d(e,"j",(function(){return s})),n.d(e,"b",(function(){return l})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return f})),n.d(e,"i",(function(){return h})),n.d(e,"d",(function(){return d})),n.d(e,"m",(function(){return p})),n.d(e,"l",(function(){return g})),n.d(e,"f",(function(){return v}));var r=n(579);function i(t){var e=0,n=0,i=0,o=0;return Object(r.M)(t)?e=n=i=o=t:Object(r.C)(t)&&(e=t[0],i=Object(r.K)(t[1])?t[0]:t[1],o=Object(r.K)(t[2])?t[0]:t[2],n=Object(r.K)(t[3])?i:t[3]),[e,i,o,n]}function o(t){for(var e=t.childNodes,n=e.length-1;n>=0;n--)t.removeChild(e[n])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function c(t){var e=t.start,n=t.end,r=Math.min(e.x,n.x),i=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function s(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),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:r,y:i,minX:r,minY:i,maxX:o,maxY:a,width:o-r,height:a-i}}function l(t,e,n,r){var i=t+n,o=e+r;return{x:t,y:e,width:n,height:r,minX:t,minY:e,maxX:isNaN(i)?0:i,maxY:isNaN(o)?0:o}}function u(t,e,n){return(1-n)*t+e*n}function f(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}var h=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)<n};function d(t){var e,n=t.getClip(),i=n&&n.getBBox();if(t.isGroup()){var o=1/0,a=-1/0,c=1/0,s=-1/0,u=t.getChildren();u.length>0?Object(r.j)(u,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=d(t),n=t.applyToMatrix([e.minX,e.minY,1]),r=t.applyToMatrix([e.minX,e.maxY,1]),i=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],r[0],i[0],l[0]),f=Math.max(n[0],r[0],i[0],l[0]),h=Math.min(n[1],r[1],i[1],l[1]),p=Math.max(n[1],r[1],i[1],l[1]);u<o&&(o=u),f>a&&(a=f),h<c&&(c=h),p>s&&(s=p)}})):(o=0,a=0,c=0,s=0),e=l(o,c,a-o,s-c)}else e=t.getBBox();return i?function(t,e){var n=Math.max(t.minX,e.minX),r=Math.max(t.minY,e.minY);return l(n,r,Math.min(t.maxX,e.maxX)-n,Math.min(t.maxY,e.maxY)-r)}(e,i):e}function p(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)}}function g(t){return t+"px"}function v(t,e,n,r){var i=r/function(t,e){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}(t,e),o=0;return"start"===n?o=0-i:"end"===n&&(o=1+i),{x:u(t.x,e.x,o),y:u(t.y,e.y,o)}}},964:function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return s}));var r=n(613),i=n(579),o=n(618);function a(t,e){var n=t.type,o=t.xField,a=t.yField,c=t.colorField,s=t.shapeField,l=t.sizeField,u=t.styleField,f=t.rawFields,h=void 0===f?[]:f,d=[];if("color"===e)d=Object(r.d)([c||o],h);else if("shape"===e)d=Object(r.d)([s||o],h);else if("size"===e)d=Object(r.d)([l||o],h);else{d=Object(r.d)([o,a,c,s,l,u],h);var p=["x","y","color","shape","size","style"].indexOf(e),g=d[p];d.splice(p,1),d.unshift(g)}var v=Object(i.ub)(d.filter((function(t){return!!t}))),y="line"===n&&[o,a].includes(v.join("*"))?"":v.join("*");return{mappingFields:v,tileMappingField:y}}function c(t,e){if(e)return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i={};return t.forEach((function(t,e){i[t]=n[e]})),delete i[void 0],e(i)}}function s(t){var e=t.chart,n=t.options,s=n.type,l=n.args,u=n.mapping,f=n.xField,h=n.yField,d=n.colorField,p=n.shapeField,g=n.sizeField,v=n.tooltipFields,y=n.label,m=n.state,b=n.customInfo;if(!u)return t;var x=u.color,O=u.shape,j=u.size,w=u.style,C=u.tooltip,S=e[s](l).position(f+"*"+h);if(Object(i.Q)(x))d?S.color(d,x):S.color(x);else if(Object(i.I)(x)){var E=a(n,"color"),M=E.mappingFields,k=E.tileMappingField;S.color(k,c(M,x))}else d&&S.color(d,x);if(Object(i.Q)(O))p?S.shape(p,[O]):S.shape(O);else if(Object(i.I)(O)){var P=a(n,"shape");M=P.mappingFields,k=P.tileMappingField;S.shape(k,c(M,O))}else p&&S.shape(p,O);if(Object(i.M)(j))g?S.size(g,j):S.size(j);else if(Object(i.I)(j)){var A=a(n,"size");M=A.mappingFields,k=A.tileMappingField;S.size(k,c(M,j))}else g&&S.size(g,j);if(Object(i.I)(w)){var I=a(n,"style");M=I.mappingFields,k=I.tileMappingField;S.style(k,c(M,w))}else Object(i.O)(w)&&S.style(w);if(!1===v?S.tooltip(!1):Object(i.G)(v)||S.tooltip(v.join("*"),c(v,C)),!1===y)S.label(!1);else if(y){var F=y.callback,T=y.fields,L=Object(r.c)(y,["callback","fields"]);S.label({fields:T||[h],callback:F,cfg:Object(o.A)(L)})}return m&&S.state(m),b&&S.customInfo(b),[f,h].filter((function(t){return t!==d})).forEach((function(t){e.legend(t,!1)})),Object(r.a)(Object(r.a)({},t),{ext:{geometry:S}})}},967:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return a}));var r,i=n(648),o=(n(765),function(){return Object(i.a)()&&window.document.documentElement}),a=function(){if(!o())return!1;if(void 0!==r)return r;var t=document.createElement("div");return t.style.display="flex",t.style.flexDirection="column",t.style.rowGap="1px",t.appendChild(document.createElement("div")),t.appendChild(document.createElement("div")),document.body.appendChild(t),r=1===t.scrollHeight,document.body.removeChild(t),r}},968:function(t,e,n){"use strict";var r=n(2),i=Object(r.createContext)({});e.a=i}}]); |