(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e74d9d66"],{"00c6":function(t,e,n){"use strict";n.d(e,"a",(function(){return r})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create},"00f9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return a}));var i=n("73ec");function r(t,e){var n=t.cfg.el,i=t.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var o=e.find("filter",r);o||(o=e.addShadow(r)),n.setAttribute("filter","url(#"+o+")")}else n.removeAttribute("filter")}function o(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);i=i.join(","),-1===i.indexOf("NaN")?n.setAttribute("transform","matrix("+i+")"):console.warn("invalid matrix:",e)}}function a(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){Object(i["a"])(n),n.createPath(e);var o=e.addClip(n);r.setAttribute("clip-path","url(#"+o+")")}}else r.removeAttribute("clip-path")}},"0587":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("62e3"),c=n("b4aa");function l(t){var e=t.data,n=t.xField,i=t.measureField,r=t.rangeField,o=t.targetField,a=t.layout,s=[],c=[];e.forEach((function(t,e){var a;t[r].sort((function(t,e){return t-e})),t[r].forEach((function(i,o){var a,c=0===o?i:t[r][o]-t[r][o-1];s.push((a={rKey:r+"_"+o},a[n]=n?t[n]:String(e),a[r]=c,a))})),t[i].forEach((function(r,o){var a;s.push((a={mKey:t[i].length>1?i+"_"+o:""+i},a[n]=n?t[n]:String(e),a[i]=r,a))})),s.push((a={tKey:""+o},a[n]=n?t[n]:String(e),a[o]=t[o],a)),c.push(t[r],t[i],t[o])}));var l=Math.min.apply(Math,c.flat(1/0)),u=Math.max.apply(Math,c.flat(1/0));return l=l>0?0:l,"vertical"===a&&s.reverse(),{min:l,max:u,ds:s}}function u(t){var e=t.chart,n=t.options,r=n.bulletStyle,a=n.targetField,u=n.rangeField,h=n.measureField,f=n.xField,p=n.color,d=n.layout,g=n.size,v=n.label,y=l(n),m=y.min,b=y.max,x=y.ds;e.data(x);var O=Object(s["c"])({},t,{options:{xField:f,yField:u,seriesField:"rKey",isStack:!0,label:Object(o["s"])(v,"range"),interval:{color:Object(o["s"])(p,"range"),style:Object(o["s"])(r,"range"),size:Object(o["s"])(g,"range")}}});Object(c["c"])(O),e.geometries[0].tooltip(!1);var j=Object(s["c"])({},t,{options:{xField:f,yField:h,seriesField:"mKey",isStack:!0,label:Object(o["s"])(v,"measure"),interval:{color:Object(o["s"])(p,"measure"),style:Object(o["s"])(r,"measure"),size:Object(o["s"])(g,"measure")}}});Object(c["c"])(j);var w=Object(s["c"])({},t,{options:{xField:f,yField:a,seriesField:"tKey",label:Object(o["s"])(v,"target"),point:{color:Object(o["s"])(p,"target"),style:Object(o["s"])(r,"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"===d?"line":"hyphen"}}});return Object(c["e"])(w),"horizontal"===d&&e.coordinate().transpose(),Object(i["a"])(Object(i["a"])({},t),{ext:{data:{min:m,max:b}}})}function h(t){var e,n,i=t.options,r=t.ext,o=i.xAxis,c=i.yAxis,l=i.targetField,u=i.rangeField,h=i.measureField,f=i.xField,p=r.data;return Object(s["f"])(Object(a["g"])((e={},e[f]=o,e[h]=c,e),(n={},n[h]={min:null===p||void 0===p?void 0:p.min,max:null===p||void 0===p?void 0:p.max,sync:!0},n[l]={sync:""+h},n[u]={sync:""+h},n)))(t)}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.measureField,s=n.rangeField,c=n.targetField;return e.axis(""+s,!1),e.axis(""+c,!1),!1===i?e.axis(""+o,!1):e.axis(""+o,i),!1===r?e.axis(""+a,!1):e.axis(""+a,r),t}function p(t){var e=t.chart,n=t.options,i=n.legend;return e.removeInteraction("legend-filter"),e.legend(i),e.legend("rKey",!1),e.legend("mKey",!1),e.legend("tKey",!1),t}function d(t){var e=t.chart,n=t.options,r=n.label,a=n.measureField,c=n.targetField,l=n.rangeField,u=e.geometries,h=u[0],f=u[1],p=u[2];return Object(o["s"])(r,"range")?h.label(""+l,Object(i["a"])({layout:[{type:"limit-in-plot"}]},Object(s["A"])(r.range))):h.label(!1),Object(o["s"])(r,"measure")?f.label(""+a,Object(i["a"])({layout:[{type:"limit-in-plot"}]},Object(s["A"])(r.measure))):f.label(!1),Object(o["s"])(r,"target")?p.label(""+c,Object(i["a"])({layout:[{type:"limit-in-plot"}]},Object(s["A"])(r.target))):p.label(!1),t}function g(t){Object(s["f"])(u,h,f,p,a["k"],d,a["l"],a["c"],a["a"])(t)}var v=Object(s["c"])({},r["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(i["b"])(e,t),e.getDefaultOptions=function(){return v},e.prototype.changeData=function(t){this.updateOption({data:t});var e=l(this.options),n=e.min,i=e.max,r=e.ds;h({options:this.options,ext:{data:{min:n,max:i}},chart:this.chart}),this.chart.changeData(r)},e.prototype.getSchemaAdaptor=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(r["b"])},"060b":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return d}));var i=n("8937"),r="…";function o(t){for(var e=0,n=0;n0&&t.charCodeAt(e)<128?1:2}function s(t,e,n){void 0===n&&(n="tail");var i=t.length,o="";if("tail"===n){for(var s=0,c=0;s=19968&&c<=40869?2:1}a>n&&(n=a,r=o)}return t[r].getBBox().width}function f(t){if(t.length>u)return h(t);var e=0;return Object(i["j"])(t,(function(t){var n=t.getBBox(),i=n.width;e=0?s(u,y,r):c,m&&(e.attr("text",m),v=!0)}return v?e.set("tip",u):e.set("tip",null),v}},"0704":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("cc94"),o=n("7eff"),a=n("3456"),s=n("b3de"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="histogram",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return s["a"]},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.binField,i=e.binNumber,r=e.binWidth,a=e.stackField;this.chart.changeData(Object(o["a"])(t,n,r,i,a))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},"074b":function(t,e){},"0767":function(t,e){},"0770":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("8937"),r=n("17f7");function o(t){var e=Object(i["c"])(Object(r["b"])(t)?t:0,0,1);return[{type:"current",percent:e},{type:"target",percent:1-e}]}},"092b":function(t,e,n){"use strict";function i(){return 0}n.d(e,"a",(function(){return i})),e["b"]=function(t){return function(){return t}}},"0a1f":function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return m}));var i,r=n("2c79"),o=n("e945"),a=n("7c8a"),s=n("8937"),c=n("75ed"),l=n("e546"),u=n("bbad"),h=n("2f5e"),f=(i={},i[""+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:h["a"].fontFamily,lineHeight:"20px",padding:"10px 10px 6px 10px"},i[""+u["TITLE_CLASS"]]={marginBottom:"4px"},i[""+u["LIST_CLASS"]]={margin:"0px",listStyleType:"none",padding:"0px"},i[""+u["LIST_ITEM_CLASS"]]={listStyleType:"none",marginBottom:"4px"},i[""+u["MARKER_CLASS"]]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},i[""+u["VALUE_CLASS"]]={display:"inline-block",float:"right",marginLeft:"30px"},i[""+u["CROSSHAIR_X"]]={position:"absolute",width:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+u["CROSSHAIR_Y"]]={position:"absolute",height:"1px",backgroundColor:"rgba(0, 0, 0, 0.25)"},i);function p(t,e,n,i,r){var o={left:tr.x+r.width,top:er.y+r.height};return o}function d(t,e,n,i,r,o){var a=t,s=e;switch(o){case"left":a=t-i-n,s=e-r/2;break;case"right":a=t+n,s=e-r/2;break;case"top":a=t-i/2,s=e-r-n;break;case"bottom":a=t-i/2,s=e+n;break;default:a=t+n,s=e-r-n;break}return{x:a,y:s}}function g(t,e,n,i,r,o,a){var s=d(t,e,n,i,r,o);if(a){var c=p(s.x,s.y,i,r,a);"auto"===o?(c.right&&(s.x=Math.max(0,t-i-n)),c.top&&(s.y=Math.max(0,e-r-n))):"top"===o||"bottom"===o?(c.left&&(s.x=a.x),c.right&&(s.x=a.x+a.width-i),"top"===o&&c.top&&(s.y=e+n),"bottom"===o&&c.bottom&&(s.y=e-r-n)):(c.top&&(s.y=a.y),c.bottom&&(s.y=a.y+a.height-r),"left"===o&&c.left&&(s.x=t+n),"right"===o&&c.right&&(s.x=t-i-n))}return s}function v(t,e){var n=!1;return Object(s["j"])(e,(function(e){if(Object(s["y"])(t,e))return n=!0,!1})),n}var 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:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u["CONTAINER_CLASS"],crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:f})},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"),i=this.get("yCrosshairDom");n&&Object(a["e"])(n,{display:e}),i&&Object(a["e"])(i,{display:e})},e.prototype.initContainer=function(){if(t.prototype.initContainer.call(this),this.get("customContent")){this.get("container")&&this.get("container").remove();var e=this.getHtmlContentNode();this.get("parent").appendChild(e),this.set("container",e),this.resetStyles(),this.applyStyles()}},e.prototype.updateInner=function(e){this.get("customContent")?this.renderCustomContent():(v(e,["title","showTitle"])&&this.resetTitle(),Object(s["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"),i=this.get("offset"),r=this.getOffset(),o=r.offsetX,s=r.offsetY,c=this.get("position"),u=this.get("region"),h=this.getContainer(),f=this.getBBox(),p=f.width,d=f.height;u&&(t=Object(l["k"])(u));var v=g(e,n,i,p,d,c,t);Object(a["e"])(h,{left:Object(l["l"])(v.x+o),top:Object(l["l"])(v.y+s)}),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(s["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"),e=this.get("showTitle");e&&t?this.setTitle(t):this.setTitle("")},e.prototype.setTitle=function(t){var e=this.get("titleDom");e&&(e.innerText=t)},e.prototype.resetCrosshairs=function(){var t=this.get("crosshairsRegion"),e=this.get("crosshairs");if(t&&e){var n=Object(l["k"])(t),i=this.get("xCrosshairDom"),r=this.get("yCrosshairDom");"x"===e?(this.resetCrosshair("x",n),r&&(r.remove(),this.set("yCrosshairDom",null))):"y"===e?(this.resetCrosshair("y",n),i&&(i.remove(),this.set("xCrosshairDom",null))):(this.resetCrosshair("x",n),this.resetCrosshair("y",n)),this.setCrossHairsVisible(this.get("visible"))}else this.clearCrosshairs()},e.prototype.resetCrosshair=function(t,e){var n=this.checkCrosshair(t),i=this.get(t);"x"===t?Object(a["e"])(n,{left:Object(l["l"])(i),top:Object(l["l"])(e.y),height:Object(l["l"])(e.height)}):Object(a["e"])(n,{top:Object(l["l"])(i),left:Object(l["l"])(e.x),width:Object(l["l"])(e.width)})},e.prototype.checkCrosshair=function(t){var e=t+"CrosshairDom",n=t+"CrosshairTpl",i="CROSSHAIR_"+t.toUpperCase(),r=u[i],o=this.get(e),s=this.get("parent");return o||(o=Object(a["b"])(this.get(n)),this.applyStyle(r,o),s.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(s["j"])(t,(function(t){var i=o["a"].toCSSGradient(t.color),c=Object(r["a"])(Object(r["a"])({},t),{color:i}),l=Object(s["pb"])(e,c),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}(c["a"]),m=y},"0abd":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("62e3"),s=n("4d99"),c=n("3cbb"),l=n("888a"),u=(n("9e6a"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c["a"]},e.prototype.changeData=function(t){this.chart.emit(r["i"].BEFORE_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].BEFORE_CHANGE_DATA,null));var e=this.options,n=this.options.angleField,i=Object(a["u"])(e.data,n),o=Object(a["u"])(t,n);Object(l["c"])(i,n)||Object(l["c"])(o,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(o),Object(s["b"])({chart:this.chart,options:this.options}),this.chart.render(!0)),this.chart.emit(r["i"].AFTER_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].AFTER_CHANGE_DATA,null))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return s["a"]},e}(o["b"]))},"0b42":function(t,e,n){var i=n("da84"),r=n("e8b5"),o=n("68ee"),a=n("861d"),s=n("b622"),c=s("species"),l=i.Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,o(e)&&(e===l||r(e.prototype))?e=void 0:a(e)&&(e=e[c],null===e&&(e=void 0))),void 0===e?l:e}},"0c22":function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n("8937"),r=n("c34d"),o=n("afaa"),a=n("62e3"),s=n("e4ea"),c=n("5809"),l=n("e474"),u=n("58e4"),h=n("7b42");function f(t,e,n){var r=[],o=n.yField,a=n.maxSize,s=n.minSize,c=Object(i["s"])(Object(i["Z"])(e,o),[o]),l=Object(i["M"])(a)?a:1,u=Object(i["M"])(s)?s:0;return r=Object(i["W"])(t,(function(e,n){var r=(e[o]||0)/c;return e[h["d"]]=r,e[h["c"]]=(l-u)*r+u,e[h["b"]]=[Object(i["s"])(t,[n-1,o]),e[o]],e})),r}function p(t){return function(e){var n=e.chart,r=e.options,o=r.conversionTag,a=n.getOptions().data;if(o){var s=o.formatter;a.forEach((function(e,r){if(!(r<=0||Number.isNaN(e[h["c"]]))){var l=t(e,r,a,{top:!0,text:{content:Object(i["I"])(s)?s(e,a):s,offsetX:o.offsetX,offsetY:o.offsetY,position:"end",autoRotate:!1,style:Object(c["a"])({textAlign:"start",textBaseline:"middle"},o.style)}});n.annotation().line(l)}}))}return e}}function d(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,o=n.yField,a=n.maxSize,s=n.minSize,c=f(r,r,{yField:o,maxSize:a,minSize:s});return e.data(c),t}function g(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,s=n.color,c=n.tooltip,f=n.label,p=n.shape,d=void 0===p?"funnel":p,g=n.funnelStyle,v=n.state,y=Object(l["a"])(c,[r,o]),m=y.fields,b=y.formatter;Object(u["a"])({chart:e,options:{type:"interval",xField:r,yField:h["c"],colorField:r,tooltipFields:Object(i["C"])(m)&&m.concat([h["d"],h["b"]]),mapping:{shape:d,tooltip:b,color:s,style:g},label:f,state:v}});var x=Object(a["d"])(t.chart,"interval");return x.adjust("symmetric"),t}function v(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),t}function y(t){var e=t.options,n=e.maxSize,i=function(t,e,i,r){var o=n-(n-t[h["c"]])/2;return Object(c["a"])(Object(c["a"])({},r),{start:[e-.5,o],end:[e-.5,o+.05]})};return p(i)(t),t}function m(t){return Object(a["f"])(d,g,v,y)(t)}function b(t){var e,n=t.chart,i=t.options,r=i.data,o=void 0===r?[]:r,a=i.yField;return n.data(o),n.scale((e={},e[a]={sync:!0},e)),t}function x(t){var e=t.chart,n=t.options,r=n.data,o=n.xField,s=n.yField,c=n.color,p=n.compareField,d=n.isTransposed,g=n.tooltip,v=n.maxSize,y=n.minSize,m=n.label,b=n.funnelStyle,x=n.state;return e.facet("mirror",{fields:[p],transpose:!d,padding:d?0:[32,0,0,0],eachView:function(t,e){var n=d?e.rowIndex:e.columnIndex;d||t.coordinate({type:"rect",actions:[["transpose"],["scale",0===n?-1:1,-1]]});var O=f(e.data,r,{yField:s,maxSize:v,minSize:y});t.data(O);var j=Object(l["a"])(g,[o,s,p]),w=j.fields,C=j.formatter,M=d?{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:h["c"],colorField:o,tooltipFields:Object(i["C"])(w)&&w.concat([h["d"],h["b"]]),mapping:{shape:"funnel",tooltip:C,color:c,style:b},label:!1!==m&&Object(a["c"])({},M,m),state:x}})}}),t}function O(t){var e=t.chart,n=t.options,i=n.conversionTag,r=n.isTransposed;return e.once("beforepaint",(function(){e.views.forEach((function(t,e){var o=function(t,n,o,s){var c=0===e?-1:1;return Object(a["c"])({},s,{start:[n-.5,t[h["c"]]],end:[n-.5,t[h["c"]]+.05],text:r?{style:{textAlign:"start"}}:{offsetX:!1!==i?c*i.offsetX:0,style:{textAlign:0===e?"end":"start"}}})};p(o)(Object(a["c"])({},{chart:t,options:n}))}))})),t}function j(t){return Object(a["f"])(b,x,O)(t)}function w(t){var e,n=t.chart,i=t.options,r=i.data,o=void 0===r?[]:r,a=i.yField;return n.data(o),n.scale((e={},e[a]={sync:!0},e)),t}function C(t){var e=t.chart,n=t.options,i=n.seriesField,r=n.isTransposed;return e.facet("rect",{fields:[i],padding:[r?0:32,10,0,10],eachView:function(e,n){m(Object(a["c"])({},t,{chart:e,options:{data:n.data}}))}}),t}function M(t){return Object(a["f"])(w,C)(t)}function S(t){var e=t.chart,n=t.options,r=n.data,o=void 0===r?[]:r,a=n.yField,s=Object(i["ib"])(o,(function(t,e){return t+(e[a]||0)}),0),c=Object(i["Z"])(o,a)[a],l=Object(i["W"])(o,(function(t,e){var n=[],r=[];if(t[h["e"]]=(t[a]||0)/s,e){var l=o[e-1][h["f"]],u=o[e-1][h["g"]];n[0]=l[3],r[0]=u[3],n[1]=l[2],r[1]=u[2]}else n[0]=-.5,r[0]=1,n[1]=.5,r[1]=1;return r[2]=r[1]-t[h["e"]],n[2]=(r[2]+1)/4,r[3]=r[2],n[3]=-n[2],t[h["f"]]=n,t[h["g"]]=r,t[h["d"]]=(t[a]||0)/c,t[h["b"]]=[Object(i["s"])(o,[e-1,a]),t[a]],t}));return e.data(l),t}function A(t){var e=t.chart,n=t.options,r=n.xField,o=n.yField,a=n.color,s=n.tooltip,c=n.label,f=n.funnelStyle,p=n.state,d=Object(l["a"])(s,[r,o]),g=d.fields,v=d.formatter;return Object(u["a"])({chart:e,options:{type:"polygon",xField:h["f"],yField:h["g"],colorField:r,tooltipFields:Object(i["C"])(g)&&g.concat([h["d"],h["b"]]),label:c,state:p,mapping:{tooltip:v,color:a,style:f}}}),t}function k(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),t}function F(t){var e=function(t,e,n,i){return Object(c["a"])(Object(c["a"])({},i),{start:[t[h["f"]][1],t[h["g"]][1]],end:[t[h["f"]][1]+.05,t[h["g"]][1]]})};return p(e)(t),t}function E(t){return Object(a["f"])(S,A,k,F)(t)}function T(t){var e,n=t.options,r=n.compareField,c=n.xField,l=n.yField,u=n.locale,f=n.funnelStyle,p=n.data,d=Object(o["a"])(u),g={label:r?{fields:[c,l,r,h["d"],h["b"]],formatter:function(t){return""+t[l]}}:{fields:[c,l,h["d"],h["b"]],offset:0,position:"middle",formatter:function(t){return t[c]+" "+t[l]}},tooltip:{title:c,formatter:function(t){return{name:t[c],value:t[l]}}},conversionTag:{formatter:function(t){return d.get(["conversionTag","label"])+": "+s["a"].apply(void 0,t[h["b"]])}}};return(r||f)&&(e=function(t){return Object(a["c"])({},r&&{lineWidth:1,stroke:"#fff"},Object(i["I"])(f)?f(t):f)}),Object(a["c"])({options:g},t,{options:{funnelStyle:e,data:Object(i["e"])(p)}})}function P(t){var e=t.options,n=e.compareField,i=e.dynamicHeight,r=e.seriesField;return r?M(t):n?j(t):i?E(t):m(t)}function I(t){var e,n=t.options,i=n.xAxis,o=n.yAxis,s=n.xField,c=n.yField;return Object(a["f"])(Object(r["g"])((e={},e[s]=i,e[c]=o,e)))(t)}function B(t){var e=t.chart;return e.axis(!1),t}function L(t){var e=t.chart,n=t.options,i=n.legend;return!1===i?e.legend(!1):e.legend(i),t}function D(t){return Object(a["f"])(T,P,I,B,r["l"],r["c"],L,r["a"],r["k"],Object(r["b"])())(t)}},"0cc4":function(t,e,n){"use strict";n.d(e,"b",(function(){return C})),n.d(e,"a",(function(){return F}));var i=n("5809"),r=n("8937"),o=n("c34d"),a=n("917c"),s=n("62e3"),c=n("e4ea");function l(t,e){return Object(s["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:c["a"]}},t)}function u(t,e){return Object(r["W"])(e.getModel().points,(function(e){return t.convertPoint(e)}))}function h(t,e,n){var r=t.view,o=t.geometry,a=t.group,s=t.options,c=t.horizontal,l=s.offset,h=s.size,f=s.arrow,p=r.getCoordinate(),d=u(p,e)[3],g=u(p,n)[0],v=g.y-d.y,y=g.x-d.x;if("boolean"!==typeof f){var m,b=f.headSize,x=s.spacing;c?(y-b)/2O){var w=j/y.length,C=Math.max(1,Math.ceil(O/w)-1),M=y.slice(0,C)+"...";x.attr("text",M)}}}}function p(t,e,n){h(t,e,n),f(t,e,n)}function d(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(i){var o=i.options,c=i.chart,u=o.conversionTag,h=o.theme;return u&&!n&&(c.theme(Object(s["c"])({},Object(r["O"])(h)?h:Object(a["k"])(h),{columnWidthRatio:1/3})),c.annotation().shape({render:function(n,i){var o=n.addGroup({id:c.id+"-conversion-tag-group",name:"conversion-tag-group"}),a=Object(r["m"])(c.geometries,(function(t){return"interval"===t.type})),s={view:i,geometry:a,group:o,field:t,horizontal:e,options:l(u,e)},h=a.elements;Object(r["j"])(h,(function(t,e){e>0&&p(s,h[e-1],t)}))}})),i}}var g={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},v=function(t,e){return"hover"===t?[{trigger:"interval:mouseenter",action:["element-highlight-by-color:highlight","element-link-by-color:link"],arg:[null,{style:e}]}]:[{trigger:"interval:click",action:["element-highlight-by-color:clear","element-highlight-by-color:highlight","element-link-by-color:clear","element-link-by-color:unlink","element-link-by-color:link"],arg:[null,null,null,null,{style:e}]}]};function y(t){return void 0===t&&(t=!1),function(e){var n=e.chart,i=e.options,r=i.connectedArea,o=function(){n.removeInteraction(g.hover),n.removeInteraction(g.click)};if(!t&&r){var a=r.trigger||"hover";o(),n.interaction(g[a],{start:v(a,r.style)})}else o();return e}}Object(a["o"])(g.hover,{start:v(g.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(a["o"])(g.click,{start:v(g.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var m=n("b4aa"),b=n("87d0"),x=n("9cae"),O=n("b2a0");function j(t){var e=t.options,n=e.legend,r=e.seriesField,o=e.isStack;return r?!1!==n&&(n=Object(i["a"])({position:o?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function w(t){var e=t.chart,n=t.options,r=n.data,o=n.columnStyle,a=n.color,c=n.columnWidthRatio,l=n.isPercent,u=n.isGroup,h=n.isStack,f=n.xField,p=n.yField,d=n.seriesField,g=n.groupField,v=n.tooltip,y=n.shape,b=l&&u&&h?Object(O["b"])(r,p,[f,g],p):Object(O["a"])(r,p,f,p,l),x=[];h&&d&&!u?b.forEach((function(t){var e=x.find((function(e){return e[f]===t[f]&&e[d]===t[d]}));e?e[p]+=t[p]||0:x.push(Object(i["a"])({},t))})):x=b,e.data(x);var j=l?Object(i["a"])({formatter:function(t){return{name:u&&h?t[d]+" - "+t[g]:t[d]||t[f],value:(100*Number(t[p])).toFixed(2)+"%"}}},v):v,w=Object(s["c"])({},t,{options:{data:x,widthRatio:c,tooltip:j,interval:{shape:y,style:o,color:a}}});return Object(m["c"])(w),w}function C(t){var e,n,r=t.options,a=r.xAxis,c=r.yAxis,l=r.xField,u=r.yField,h=r.data,f=r.isPercent,p=f?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(s["f"])(Object(o["g"])((e={},e[l]=a,e[u]=c,e),(n={},n[l]={type:"cat"},n[u]=Object(i["a"])(Object(i["a"])({},Object(s["b"])(h,u)),p),n)))(t)}function M(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(a,!1):e.axis(a,r),t}function S(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return i&&r?e.legend(r,i):!1===i&&e.legend(!1),t}function A(t){var e=t.chart,n=t.options,r=n.label,o=n.yField,a=n.isRange,c=Object(s["d"])(e,"interval");if(r){var l=r.callback,u=Object(i["c"])(r,["callback"]);c.label({fields:[o],callback:l,cfg:Object(i["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(s["A"])(a?Object(i["a"])({content:function(t){var e;return null===(e=t[o])||void 0===e?void 0:e.join("-")}},u):u))})}else c.label(!1);return t}function k(t){var e=t.chart,n=t.options,o=n.tooltip,a=n.isGroup,c=n.isStack,l=n.groupField,u=n.data,h=n.xField,f=n.yField,p=n.seriesField;if(!1===o)e.tooltip(!1);else{var d=o;if(a&&c){var g=(null===d||void 0===d?void 0:d.formatter)||function(t){return{name:t[p]+" - "+t[l],value:t[f]}};d=Object(i["a"])(Object(i["a"])({},d),{customItems:function(t){var e=[];return Object(r["j"])(t,(function(t){var n=Object(r["l"])(u,(function(e){return Object(r["J"])(e,Object(s["t"])(t.data,[h,p]))}));n.forEach((function(n){e.push(Object(i["a"])(Object(i["a"])(Object(i["a"])({},t),{value:n[f],data:n,mappingData:{_origin:n}}),g(n)))}))})),e}})}e.tooltip(d)}return t}function F(t,e){void 0===e&&(e=!1);var n=t.options,i=n.seriesField;return Object(s["f"])(j,o["k"],Object(b["a"])("columnStyle"),o["j"],w,C,M,S,k,o["i"],o["h"],A,x["a"],o["c"],o["a"],Object(o["b"])(),d(n.yField,!e,!!i),y(!n.isStack),o["e"])(t)}},"0dd4":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)}},"0e37":function(t,e,n){"use strict";n("5e24"),n("878f"),n("37d8"),n("dd3e"),n("074b"),n("0767"),n("c3a5"),n("e4c3"),n("3e28"),n("8944"),n("a0ae")},"0f20":function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"c",(function(){return c})),n.d(e,"b",(function(){return l}));var i=n("5809"),r=n("8937"),o=n("f2ce"),a=n("3f35");function s(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(r["s"])(t,[e]);return Object(r["M"])(n)&&!isNaN(n)})),i=n.every((function(t){return Object(r["s"])(t,[e])>=0})),o=n.every((function(t){return Object(r["s"])(t,[e])<=0}));return i?{min:0}:o?{max:0}:{}}function c(t,e,n,r,o){if(void 0===o&&(o=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],c={},l=-1;return t.forEach((function(t){var u=t[e],h=t[n],f=t[r],p=Object(a["a"])(t,o);c[u]||(c[u]=Object(i["a"])({id:++l,name:u},p)),c[h]||(c[h]=Object(i["a"])({id:++l,name:h},p)),s.push(Object(i["a"])({source:c[u].id,target:c[h].id,value:f},p))})),{nodes:Object.values(c).sort((function(t,e){return t.id-e.id})),links:s}}function l(t,e){var n=Object(r["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}},1183:function(t,e,n){"use strict";n.d(e,"e",(function(){return O})),n.d(e,"b",(function(){return A})),n.d(e,"a",(function(){return z})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return H})),n.d(e,"f",(function(){return i}));var i={};function r(t){return Math.min.apply(null,t)}function o(t){return Math.max.apply(null,t)}function a(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function s(t,e){return Math.abs(t-e)<.001}function c(t,e){var n=r(t),i=r(e),a=o(t),s=o(e);return{x:n,y:i,width:a-n,height:s-i}}function l(t,e,n,i){return{minX:r([t,n]),maxX:o([t,n]),minY:r([e,i]),maxY:o([e,i])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(i),n.d(i,"distance",(function(){return a})),n.d(i,"isNumberEqual",(function(){return s})),n.d(i,"getBBoxByArray",(function(){return c})),n.d(i,"getBBoxRange",(function(){return l})),n.d(i,"piMod",(function(){return u}));var h=n("6711"),f={box:function(t,e,n,i){return c([t,n],[e,i])},length:function(t,e,n,i){return a(t,e,n,i)},pointAt:function(t,e,n,i,r){return{x:(1-r)*t+r*n,y:(1-r)*e+r*i}},pointDistance:function(t,e,n,i,r,o){var s=(n-t)*(r-t)+(i-e)*(o-e);if(s<0)return a(t,e,r,o);var c=(n-t)*(n-t)+(i-e)*(i-e);return s>c?a(n,i,r,o):this.pointToLine(t,e,n,i,r,o)},pointToLine:function(t,e,n,i,r,o){var a=[n-t,i-e];if(h["exactEquals"](a,[0,0]))return Math.sqrt((r-t)*(r-t)+(o-e)*(o-e));var s=[-a[1],a[0]];h["normalize"](s,s);var c=[r-t,o-e];return Math.abs(h["dot"](c,s))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}},p=1e-4;function d(t,e,n,i,r,o){var s,c=1/0,l=[n,i],u=20;o&&o>200&&(u=o/10);for(var h=1/u,f=h/10,d=0;d<=u;d++){var g=d*h,v=[r.apply(null,t.concat([g])),r.apply(null,e.concat([g]))],y=a(l[0],l[1],v[0],v[1]);y=0&&y=0?[r]:[]}function m(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function b(t,e,n,i,r,o,a){var s=v(t,n,r,a),c=v(e,i,o,a),l=f.pointAt(t,e,n,i,a),u=f.pointAt(n,i,r,o,a);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,r,o]]}function x(t,e,n,i,r,o,s){if(0===s)return(a(t,e,n,i)+a(n,i,r,o)+a(t,e,r,o))/2;var c=b(t,e,n,i,r,o,.5),l=c[0],u=c[1];return l.push(s-1),u.push(s-1),x.apply(null,l)+x.apply(null,u)}var O={box:function(t,e,n,i,r,o){var a=y(t,n,r)[0],s=y(e,i,o)[0],l=[t,r],u=[e,o];return void 0!==a&&l.push(v(t,n,r,a)),void 0!==s&&u.push(v(e,i,o,s)),c(l,u)},length:function(t,e,n,i,r,o){return x(t,e,n,i,r,o,3)},nearestPoint:function(t,e,n,i,r,o,a,s){return d([t,n,r],[e,i,o],a,s,v)},pointDistance:function(t,e,n,i,r,o,s,c){var l=this.nearestPoint(t,e,n,i,r,o,s,c);return a(l.x,l.y,s,c)},interpolationAt:v,pointAt:function(t,e,n,i,r,o,a){return{x:v(t,n,r,a),y:v(e,i,o,a)}},divide:function(t,e,n,i,r,o,a){return b(t,e,n,i,r,o,a)},tangentAngle:function(t,e,n,i,r,o,a){var s=m(t,n,r,a),c=m(e,i,o,a),l=Math.atan2(c,s);return u(l)}};function j(t,e,n,i,r){var o=1-r;return o*o*o*t+3*e*r*o*o+3*n*r*r*o+i*r*r*r}function w(t,e,n,i,r){var o=1-r;return 3*(o*o*(e-t)+2*o*r*(n-e)+r*r*(i-n))}function C(t,e,n,i){var r,o,a,c=-3*t+9*e-9*n+3*i,l=6*t-12*e+6*n,u=3*e-3*t,h=[];if(s(c,0))s(l,0)||(r=-u/l,r>=0&&r<=1&&h.push(r));else{var f=l*l-4*c*u;s(f,0)?h.push(-l/(2*c)):f>0&&(a=Math.sqrt(f),r=(-l+a)/(2*c),o=(-l-a)/(2*c),r>=0&&r<=1&&h.push(r),o>=0&&o<=1&&h.push(o))}return h}function M(t,e,n,i,r,o,a,s,c){var l=j(t,n,r,a,c),u=j(e,i,o,s,c),h=f.pointAt(t,e,n,i,c),p=f.pointAt(n,i,r,o,c),d=f.pointAt(r,o,a,s,c),g=f.pointAt(h.x,h.y,p.x,p.y,c),v=f.pointAt(p.x,p.y,d.x,d.y,c);return[[t,e,h.x,h.y,g.x,g.y,l,u],[l,u,v.x,v.y,d.x,d.y,a,s]]}function S(t,e,n,i,r,o,a,s,c){if(0===c)return g([t,n,r,a],[e,i,o,s]);var l=M(t,e,n,i,r,o,a,s,.5),u=l[0],h=l[1];return u.push(c-1),h.push(c-1),S.apply(null,u)+S.apply(null,h)}var A={extrema:C,box:function(t,e,n,i,r,o,a,s){for(var l=[t,a],u=[e,s],h=C(t,n,r,a),f=C(e,i,o,s),p=0;p0?n:-1*n}var F={box:function(t,e,n,i){return{x:t-n,y:e-i,width:2*n,height:2*i}},length:function(t,e,n,i){return Math.PI*(3*(n+i)-Math.sqrt((3*n+i)*(n+3*i)))},nearestPoint:function(t,e,n,i,r,o){var a=n,s=i;if(0===a||0===s)return{x:t,y:e};for(var c,l,u=r-t,h=o-e,f=Math.abs(u),p=Math.abs(h),d=a*a,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=a*Math.cos(v),l=s*Math.sin(v);var m=(d-g)*Math.pow(Math.cos(v),3)/a,b=(g-d)*Math.pow(Math.sin(v),3)/s,x=c-m,O=l-b,j=f-m,w=p-b,C=Math.hypot(O,x),M=Math.hypot(w,j),S=C*Math.asin((x*w-O*j)/(C*M)),A=S/Math.sqrt(d+g-c*c-l*l);v+=A,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+k(c,u),y:e+k(l,h)}},pointDistance:function(t,e,n,i,r,o){var s=this.nearestPoint(t,e,n,i,r,o);return a(s.x,s.y,r,o)},pointAt:function(t,e,n,i,r){var o=2*Math.PI*r;return{x:t+n*Math.cos(o),y:e+i*Math.sin(o)}},tangentAngle:function(t,e,n,i,r){var o=2*Math.PI*r,a=Math.atan2(i*Math.cos(o),-n*Math.sin(o));return u(a)}};function E(t,e,n,i,r,o,a,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}function T(t,e,n,i,r,o,a,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}function P(t,e,n){return Math.atan(-e/t*Math.tan(n))}function I(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function B(t,e,n,i,r,o){return n*Math.cos(r)*Math.cos(o)-i*Math.sin(r)*Math.sin(o)+t}function L(t,e,n,i,r,o){return n*Math.sin(r)*Math.cos(o)+i*Math.cos(r)*Math.sin(o)+e}function D(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function R(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function _(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}var z={box:function(t,e,n,i,r,o,a){for(var s=P(n,i,r),c=1/0,l=-1/0,u=[o,a],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var f=s+h;ol&&(l=p)}var d=I(n,i,r),g=1/0,v=-1/0,y=[o,a];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var m=d+h;ov&&(v=b)}return{x:c,y:g,width:l-c,height:v-g}},length:function(t,e,n,i,r,o,a){},nearestPoint:function(t,e,n,i,r,o,a,s,c){var l=_(s-t,c-e,-r),u=l[0],h=l[1],f=F.nearestPoint(0,0,n,i,u,h),p=D(n,i,f.x,f.y);pa&&(f=R(n,i,a));var d=_(f.x,f.y,r);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,i,r,o,s,c,l){var u=this.nearestPoint(t,e,n,i,c,l);return a(u.x,u.y,c,l)},pointAt:function(t,e,n,i,r,o,a,s){var c=(a-o)*s+o;return{x:B(t,e,n,i,r,c),y:L(t,e,n,i,r,c)}},tangentAngle:function(t,e,n,i,r,o,a,s){var c=(a-o)*s+o,l=E(t,e,n,i,r,o,a,c),h=T(t,e,n,i,r,o,a,c);return u(Math.atan2(h,l))}};function Y(t){for(var e=0,n=[],i=0;i1||e<0||t.length<2)return null;var n=Y(t),i=n.segments,r=n.totalLength;if(0===r)return{x:t[0][0],y:t[0][1]};for(var o=0,a=null,s=0;s=o&&e<=o+h){var p=(e-o)/h;a=f.pointAt(l[0],l[1],u[0],u[1],p);break}o+=h}return a}function X(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=Y(t),i=n.segments,r=n.totalLength,o=0,a=0,s=0;s=o&&e<=o+h){a=Math.atan2(u[1]-l[1],u[0]-l[0]);break}o+=h}return a}function V(t,e,n){for(var i=1/0,r=0;rv.length?(l=f["parsePathString"](o[c]),v=f["parsePathString"](r[c]),v=f["fillPathByDiff"](v,l),v=f["formatPath"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l):e.pathFormatted||(l=f["parsePathString"](o[c]),v=f["parsePathString"](r[c]),v=f["formatPath"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l,e.pathFormatted=!0),i[c]=[];for(var y=0;y0){for(var a=i.animators.length-1;a>=0;a--)if(t=i.animators[a],t.destroyed)i.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=y(t,n,o),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(a)}var c=i.canvas.get("autoDraw");c||i.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),b=m,x=n("e5e2"),O=40,j=0,w=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function C(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function M(t,e,n){if(n.bubbles){var i=void 0,r=!1;if("mouseenter"===e?(i=n.fromShape,r=!0):"mouseleave"===e&&(r=!0,i=n.toShape),t.isCanvas()&&r)return;if(i&&Object(a["g"])(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var S=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&(e.dragging||e.currentShape)){var r=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,r,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&e.dragging){var r=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,r,null),e._emitEvent("dragend",t,r,e.draggingShape),e._afterDrag(e.draggingShape,r,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(a["a"])(w,(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(a["a"])(w,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,r,o){var a=new x["a"](t,e);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),i=e.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),i=this._getShape(n,e),r=this["_on"+t],o=!1;if(r)r.call(this,n,i,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,i),i&&this._emitEvent(t,e,n,i,null,i),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(o||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas,c=s.get("el");c.style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===j&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,e,n,n,i),this._emitEvent("mouseleave",t,e,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,e,i,n,i),this._emitEvent("mouseenter",t,e,i,n,i)))},t.prototype._emitDragoverEvents=function(t,e,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,i),this._emitEvent("dragenter",t,e,i,n,i)),r||this._emitEvent("dragover",t,e,i)):n&&this._emitEvent("dragleave",t,e,n,n,i),r&&this._emitEvent("dragover",t,e,i)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(e,n);i!==t&&this._emitMouseoverEvents(n,e,t,i),this.currentShape=i},t.prototype._onmouseup=function(t,e,n){if(n.button===j){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,c=n.timeStamp,l=c-this.mousedownTimeStamp,u=a.clientX-t.clientX,h=a.clientY-t.clientY,f=u*u+h*h;l>120||f>O?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,i,r,o){var a=this._getEventObj(t,e,n,i,r,o);if(i){a.shape=i,C(i,t,a);var s=i.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||M(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;C(c,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}(),A=S,k="px",F=Object(r["a"])(),E=F&&"firefox"===F.name,T=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(i["a"])(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(a["h"])(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new A({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new b(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");a["c"]&&(n.style.width=t+k,n.style.height=e+k)},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");a["c"]&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(E&&!Object(a["e"])(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(a["e"])(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),i=n.x,r=n.y;return this.getPointByClient(i,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t-i.left,y:e-i.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t+i.left,y:e+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))},e}(o["a"]);e["a"]=T},1405:function(t,e,n){"use strict";var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("8937"),s=n("c34d"),c=n("62e3"),l=n("b4aa"),u="liquid";function h(t){return[{percent:t,type:u}]}function f(t){var e=t.chart,n=t.options,i=n.percent,r=n.liquidStyle,o=n.radius,a=n.outline,s=n.wave,u=n.shape;e.scale({percent:{min:0,max:1}}),e.data(h(i));var f=n.color||e.getTheme().defaultColor,p=Object(c["c"])({},t,{options:{xField:"type",yField:"percent",widthRatio:o,interval:{color:f,style:r,shape:"liquid-fill-gauge"}}}),d=Object(l["c"])(p).ext,g=d.geometry,v=e.getTheme().background,y={radius:o,outline:a,wave:s,shape:u,background:v};return g.customInfo(y),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function p(t,e){var n=t.chart,r=t.options,o=r.statistic,s=r.percent,l=r.meta;n.getController("annotation").clear(!0);var u=Object(a["s"])(l,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},h=o.content;return h&&(h=Object(c["c"])({},h,{content:Object(a["K"])(h.content)?u(s):h.content})),Object(c["w"])(n,{statistic:Object(i["a"])(Object(i["a"])({},o),{content:h}),plotType:"liquid"},{percent:s}),e&&n.render(!0),t}function d(t){return Object(c["f"])(s["k"],Object(s["f"])("liquidStyle"),f,p,Object(s["g"])({}),s["a"],s["c"])(t)}var g={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"},v=n("a9a0"),y=5e3;function m(t,e,n){return t+(e-t)*n}function b(t){var e=Object(i["a"])({opacity:1},t.style);return t.color&&!e.fill&&(e.fill=t.color),e}function x(t){var e={fill:"#fff",fillOpacity:0,lineWidth:4},n=Object(a["db"])({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),Object(a["M"])(t.opacity)&&(n.opacity=n.strokeOpacity=t.opacity),n}function O(t,e,n,i){return 0===e?[[t+.5*n/Math.PI/2,i/2],[t+.5*n/Math.PI,i],[t+n/4,i]]:1===e?[[t+.5*n/Math.PI/2*(Math.PI-2),i],[t+.5*n/Math.PI/2*(Math.PI-1),i/2],[t+n/4,0]]:2===e?[[t+.5*n/Math.PI/2,-i/2],[t+.5*n/Math.PI,-i],[t+n/4,-i]]:[[t+.5*n/Math.PI/2*(Math.PI-2),-i],[t+.5*n/Math.PI/2*(Math.PI-1),-i/2],[t+n/4,0]]}function j(t,e,n,i,r,o,a){var s=4*Math.ceil(2*t/n*4),c=[],l=i;while(l<2*-Math.PI)l+=2*Math.PI;while(l>0)l-=2*Math.PI;l=l/Math.PI/2*n;var u=o-t+l-2*t;c.push(["M",u,e]);for(var h=0,f=0;f0?y:m},O=Object(l["c"])({},t,{options:{xField:r,yField:u,seriesField:r,rawFields:[a,h,p,u],widthRatio:d,interval:{style:g,shape:"waterfall",color:x}}}),j=Object(s["c"])(O).ext,w=j.geometry;return w.customInfo({leaderLine:f}),t}function j(t){var e,n,i=t.options,r=i.xAxis,s=i.yAxis,c=i.xField,p=i.yField,d=i.meta,g=Object(l["c"])({},{alias:p},Object(o["s"])(d,p));return Object(l["f"])(Object(a["g"])((e={},e[c]=r,e[p]=s,e[u]=s,e),Object(l["c"])({},d,(n={},n[u]=g,n[h]=g,n[f]=g,n))))(t)}function w(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?(e.axis(a,!1),e.axis(u,!1)):(e.axis(a,r),e.axis(u,r)),t}function C(t){var e=t.chart,n=t.options,i=n.legend,r=n.total,a=n.risingFill,s=n.fallingFill,u=n.locale,h=Object(c["a"])(u);if(!1===i)e.legend(!1);else{var f=[{name:h.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:a}}},{name:h.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];r&&f.push({name:r.label||"",value:"total",marker:{symbol:"square",style:Object(l["c"])({},{r:5},Object(o["s"])(r,"style"))}}),e.legend(Object(l["c"])({},{custom:!0,position:"top",items:f},i)),e.removeInteraction("legend-filter")}return t}function M(t){var e=t.chart,n=t.options,r=n.label,o=n.labelMode,a=n.xField,s=Object(l["d"])(e,"interval");if(r){var c=r.callback,u=Object(i["c"])(r,["callback"]);s.label({fields:"absolute"===o?[f,a]:[h,a],callback:c,cfg:Object(l["A"])(u)})}else s.label(!1);return t}function S(t){var e=t.chart,n=t.options,r=n.tooltip,o=n.xField,a=n.yField;if(!1!==r){e.tooltip(Object(i["a"])({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[a]},r));var s=e.geometries[0];(null===r||void 0===r?void 0:r.formatter)?s.tooltip(o+"*"+a,r.formatter):s.tooltip(a)}else e.tooltip(!1);return t}function A(t){return Object(l["f"])(x,a["k"],O,j,w,C,S,M,a["j"],a["c"],a["a"],Object(a["b"])())(t)}Object(y["p"])("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,a=t.nextPoints,s=e.addGroup(),c=this.parsePath(m(r)),l=b(t);s.addShape("path",{attrs:Object(i["a"])(Object(i["a"])({},l),{path:c})});var u=Object(o["s"])(n,"leaderLine");if(u&&a){var h=[["M",r[2].x,r[2].y],["L",a[0].x,a[0].y]];r[2].y===a[1].y&&(h[1]=["L",a[1].x,a[1].y]),h=this.parsePath(h),s.addShape("path",{attrs:Object(i["a"])({path:h},u.style||{})})}return s}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="waterfall",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return d},e.prototype.changeData=function(t){var e=this.options,n=e.xField,i=e.yField,r=e.total;this.updateOption({data:t}),this.chart.changeData(v(t,n,i,r))},e.prototype.getSchemaAdaptor=function(){return A},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(r["b"])},"14f3":function(t,e,n){"use strict";e["a"]=function(t,e,n,i,r){var o,a=t.children,s=-1,c=a.length,l=t.value&&(i-e)/t.value;while(++s=i&&t<=r}n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r}))},"1a0e":function(t,e,n){"use strict";var i=n("2c79"),r=n("612d");(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Object(i["b"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i=51||!i((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},"1fb2":function(t,e,n){"use strict";var i=n("2c79"),r=n("7b46"),o=n("612d"),a=n("f049"),s=n("8937"),c=n("74f4"),l=n("fb77"),u=n("ea1d"),h=n("6730"),f=n("91da"),p=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},d=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},g=[1,0,0,0,1,0,0,0,1];function v(t,e,n){var i={},r=e.fromAttrs,o=e.toAttrs;if(!t.destroyed){var a;for(var c in o)if(!Object(s["H"])(r[c],o[c]))if("path"===c){var l=o[c],v=r[c];l.length>v.length?(l=f["c"](o[c]),v=f["c"](r[c]),v=f["a"](v,l),v=f["b"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l):e.pathFormatted||(l=f["c"](o[c]),v=f["c"](r[c]),v=f["b"](v,l),e.fromAttrs.path=v,e.toAttrs.path=l,e.pathFormatted=!0),i[c]=[];for(var y=0;y0){for(var a=i.animators.length-1;a>=0;a--)if(t=i.animators[a],t.destroyed)i.removeAnimator(a);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=y(t,n,o),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(a)}var c=i.canvas.get("autoDraw");c||i.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),b=m,x=n("c1e2"),O=40,j=0,w=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function C(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function M(t,e,n){if(n.bubbles){var i=void 0,r=!1;if("mouseenter"===e?(i=n.fromShape,r=!0):"mouseleave"===e&&(r=!0,i=n.toShape),t.isCanvas()&&r)return;if(i&&Object(a["g"])(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var S=function(){function t(t){var e=this;this.draggingShape=null,this.dragging=!1,this.currentShape=null,this.mousedownShape=null,this.mousedownPoint=null,this._eventCallback=function(t){var n=t.type;e._triggerEvent(n,t)},this._onDocumentMove=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&(e.dragging||e.currentShape)){var r=e._getPointInfo(t);e.dragging&&e._emitEvent("drag",t,r,e.draggingShape)}},this._onDocumentMouseUp=function(t){var n=e.canvas,i=n.get("el");if(i!==t.target&&e.dragging){var r=e._getPointInfo(t);e.draggingShape&&e._emitEvent("drop",t,r,null),e._emitEvent("dragend",t,r,e.draggingShape),e._afterDrag(e.draggingShape,r,t)}},this.canvas=t.canvas}return t.prototype.init=function(){this._bindEvents()},t.prototype._bindEvents=function(){var t=this,e=this.canvas.get("el");Object(a["a"])(w,(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(a["a"])(w,(function(n){e.removeEventListener(n,t._eventCallback)})),document&&(document.removeEventListener("mousemove",this._onDocumentMove),document.removeEventListener("mouseup",this._onDocumentMouseUp))},t.prototype._getEventObj=function(t,e,n,i,r,o){var a=new x["a"](t,e);return a.fromShape=r,a.toShape=o,a.x=n.x,a.y=n.y,a.clientX=n.clientX,a.clientY=n.clientY,a.propagationPath.push(i),a},t.prototype._getShape=function(t,e){return this.canvas.getShape(t.x,t.y,e)},t.prototype._getPointInfo=function(t){var e=this.canvas,n=e.getClientByEvent(t),i=e.getPointByEvent(t);return{x:i.x,y:i.y,clientX:n.x,clientY:n.y}},t.prototype._triggerEvent=function(t,e){var n=this._getPointInfo(e),i=this._getShape(n,e),r=this["_on"+t],o=!1;if(r)r.call(this,n,i,e);else{var a=this.currentShape;"mouseenter"===t||"dragenter"===t||"mouseover"===t?(this._emitEvent(t,e,n,null,null,i),i&&this._emitEvent(t,e,n,i,null,i),"mouseenter"===t&&this.draggingShape&&this._emitEvent("dragenter",e,n,null)):"mouseleave"===t||"dragleave"===t||"mouseout"===t?(o=!0,a&&this._emitEvent(t,e,n,a,a,null),this._emitEvent(t,e,n,null,a,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(o||(this.currentShape=i),i&&!i.get("destroyed")){var s=this.canvas,c=s.get("el");c.style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===j&&(this.mousedownShape=e,this.mousedownPoint=t,this.mousedownTimeStamp=n.timeStamp),this._emitEvent("mousedown",n,t,e,null,null)},t.prototype._emitMouseoverEvents=function(t,e,n,i){var r=this.canvas.get("el");n!==i&&(n&&(this._emitEvent("mouseout",t,e,n,n,i),this._emitEvent("mouseleave",t,e,n,n,i),i&&!i.get("destroyed")||(r.style.cursor=this.canvas.get("cursor"))),i&&(this._emitEvent("mouseover",t,e,i,n,i),this._emitEvent("mouseenter",t,e,i,n,i)))},t.prototype._emitDragoverEvents=function(t,e,n,i,r){i?(i!==n&&(n&&this._emitEvent("dragleave",t,e,n,n,i),this._emitEvent("dragenter",t,e,i,n,i)),r||this._emitEvent("dragover",t,e,i)):n&&this._emitEvent("dragleave",t,e,n,n,i),r&&this._emitEvent("dragover",t,e,i)},t.prototype._afterDrag=function(t,e,n){t&&(t.set("capture",!0),this.draggingShape=null),this.dragging=!1;var i=this._getShape(e,n);i!==t&&this._emitMouseoverEvents(n,e,t,i),this.currentShape=i},t.prototype._onmouseup=function(t,e,n){if(n.button===j){var i=this.draggingShape;this.dragging?(i&&this._emitEvent("drop",n,t,e),this._emitEvent("dragend",n,t,i),this._afterDrag(i,t,n)):(this._emitEvent("mouseup",n,t,e),e===this.mousedownShape&&this._emitEvent("click",n,t,e),this.mousedownShape=null,this.mousedownPoint=null)}},t.prototype._ondragover=function(t,e,n){n.preventDefault();var i=this.currentShape;this._emitDragoverEvents(n,t,i,e,!0)},t.prototype._onmousemove=function(t,e,n){var i=this.canvas,r=this.currentShape,o=this.draggingShape;if(this.dragging)o&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,o);else{var a=this.mousedownPoint;if(a){var s=this.mousedownShape,c=n.timeStamp,l=c-this.mousedownTimeStamp,u=a.clientX-t.clientX,h=a.clientY-t.clientY,f=u*u+h*h;l>120||f>O?s&&s.get("draggable")?(o=this.mousedownShape,o.set("capture",!1),this.draggingShape=o,this.dragging=!0,this._emitEvent("dragstart",n,t,o),this.mousedownShape=null,this.mousedownPoint=null):!s&&i.get("draggable")?(this.dragging=!0,this._emitEvent("dragstart",n,t,null),this.mousedownShape=null,this.mousedownPoint=null):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)):(this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e))}else this._emitMouseoverEvents(n,t,r,e),this._emitEvent("mousemove",n,t,e)}},t.prototype._emitEvent=function(t,e,n,i,r,o){var a=this._getEventObj(t,e,n,i,r,o);if(i){a.shape=i,C(i,t,a);var s=i.getParent();while(s)s.emitDelegation(t,a),a.propagationStopped||M(s,t,a),a.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;C(c,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}(),A=S,k="px",F=Object(r["a"])(),E=F&&"firefox"===F.name;(function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}Object(i["b"])(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(a["h"])(t)&&(t=document.getElementById(t),this.set("container",t))},e.prototype.initDom=function(){var t=this.createDom();this.set("el",t);var e=this.get("container");e.appendChild(t),this.setDOMSize(this.get("width"),this.get("height"))},e.prototype.initEvents=function(){var t=new A({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new b(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");a["c"]&&(n.style.width=t+k,n.style.height=e+k)},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");a["c"]&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(E&&!Object(a["e"])(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(a["e"])(t.offsetX))return{x:t.offsetX,y:t.offsetY}}var n=this.getClientByEvent(t),i=n.x,r=n.y;return this.getPointByClient(i,r)},e.prototype.getClientByEvent=function(t){var e=t;return t.touches&&(e="touchend"===t.type?t.changedTouches[0]:t.touches[0]),{x:e.clientX,y:e.clientY}},e.prototype.getPointByClient=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t-i.left,y:e-i.top}},e.prototype.getClientByPoint=function(t,e){var n=this.get("el"),i=n.getBoundingClientRect();return{x:t+i.left,y:e+i.top}},e.prototype.draw=function(){},e.prototype.removeDom=function(){var t=this.get("el");t.parentNode.removeChild(t)},e.prototype.clearEvents=function(){var t=this.get("eventController");t.destroy()},e.prototype.isCanvas=function(){return!0},e.prototype.getParent=function(){return null},e.prototype.destroy=function(){var e=this.get("timeline");this.get("destroyed")||(this.clear(),e&&e.stop(),this.clearEvents(),this.removeDom(),t.prototype.destroy.call(this))}})(o["a"])},"1fc0":function(t,e,n){},"20e7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return R})),n.d(e,"c",(function(){return _}));var i={};n.r(i),n.d(i,"create",(function(){return o})),n.d(i,"fromMat4",(function(){return a})),n.d(i,"clone",(function(){return s})),n.d(i,"copy",(function(){return c})),n.d(i,"fromValues",(function(){return l})),n.d(i,"set",(function(){return u})),n.d(i,"identity",(function(){return h})),n.d(i,"transpose",(function(){return f})),n.d(i,"invert",(function(){return p})),n.d(i,"adjoint",(function(){return d})),n.d(i,"determinant",(function(){return g})),n.d(i,"multiply",(function(){return v})),n.d(i,"translate",(function(){return y})),n.d(i,"rotate",(function(){return m})),n.d(i,"scale",(function(){return b})),n.d(i,"fromTranslation",(function(){return x})),n.d(i,"fromRotation",(function(){return O})),n.d(i,"fromScaling",(function(){return j})),n.d(i,"fromMat2d",(function(){return w})),n.d(i,"fromQuat",(function(){return C})),n.d(i,"normalFromMat4",(function(){return M})),n.d(i,"projection",(function(){return S})),n.d(i,"str",(function(){return A})),n.d(i,"frob",(function(){return k})),n.d(i,"add",(function(){return F})),n.d(i,"subtract",(function(){return E})),n.d(i,"multiplyScalar",(function(){return T})),n.d(i,"multiplyScalarAndAdd",(function(){return P})),n.d(i,"exactEquals",(function(){return I})),n.d(i,"equals",(function(){return B})),n.d(i,"mul",(function(){return L})),n.d(i,"sub",(function(){return D}));var r=n("c94d");function o(){var t=new r["a"](9);return r["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 s(t){var e=new r["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 c(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,i,o,a,s,c,l){var u=new r["a"](9);return u[0]=t,u[1]=e,u[2]=n,u[3]=i,u[4]=o,u[5]=a,u[6]=s,u[7]=c,u[8]=l,u}function u(t,e,n,i,r,o,a,s,c,l){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=o,t[5]=a,t[6]=s,t[7]=c,t[8]=l,t}function h(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 f(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}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 p(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=u*a-s*l,f=-u*o+s*c,p=l*o-a*c,d=n*h+i*f+r*p;return d?(d=1/d,t[0]=h*d,t[1]=(-u*i+r*l)*d,t[2]=(s*i-r*a)*d,t[3]=f*d,t[4]=(u*n-r*c)*d,t[5]=(-s*n+r*o)*d,t[6]=p*d,t[7]=(-l*n+i*c)*d,t[8]=(a*n-i*o)*d,t):null}function d(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8];return t[0]=a*u-s*l,t[1]=r*l-i*u,t[2]=i*s-r*a,t[3]=s*c-o*u,t[4]=n*u-r*c,t[5]=r*o-n*s,t[6]=o*l-a*c,t[7]=i*c-n*l,t[8]=n*a-i*o,t}function g(t){var e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*(l*o-a*c)+n*(-l*r+a*s)+i*(c*r-o*s)}function v(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=n[0],p=n[1],d=n[2],g=n[3],v=n[4],y=n[5],m=n[6],b=n[7],x=n[8];return t[0]=f*i+p*a+d*l,t[1]=f*r+p*s+d*u,t[2]=f*o+p*c+d*h,t[3]=g*i+v*a+y*l,t[4]=g*r+v*s+y*u,t[5]=g*o+v*c+y*h,t[6]=m*i+b*a+x*l,t[7]=m*r+b*s+x*u,t[8]=m*o+b*c+x*h,t}function y(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=n[0],p=n[1];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=c,t[6]=f*i+p*a+l,t[7]=f*r+p*s+u,t[8]=f*o+p*c+h,t}function m(t,e,n){var i=e[0],r=e[1],o=e[2],a=e[3],s=e[4],c=e[5],l=e[6],u=e[7],h=e[8],f=Math.sin(n),p=Math.cos(n);return t[0]=p*i+f*a,t[1]=p*r+f*s,t[2]=p*o+f*c,t[3]=p*a-f*i,t[4]=p*s-f*r,t[5]=p*c-f*o,t[6]=l,t[7]=u,t[8]=h,t}function b(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*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),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function 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],i=e[1],r=e[2],o=e[3],a=n+n,s=i+i,c=r+r,l=n*a,u=i*a,h=i*s,f=r*a,p=r*s,d=r*c,g=o*a,v=o*s,y=o*c;return t[0]=1-h-d,t[3]=u-y,t[6]=f+v,t[1]=u+y,t[4]=1-l-d,t[7]=p-g,t[2]=f-v,t[5]=p+g,t[8]=1-l-h,t}function M(t,e){var n=e[0],i=e[1],r=e[2],o=e[3],a=e[4],s=e[5],c=e[6],l=e[7],u=e[8],h=e[9],f=e[10],p=e[11],d=e[12],g=e[13],v=e[14],y=e[15],m=n*s-i*a,b=n*c-r*a,x=n*l-o*a,O=i*c-r*s,j=i*l-o*s,w=r*l-o*c,C=u*g-h*d,M=u*v-f*d,S=u*y-p*d,A=h*v-f*g,k=h*y-p*g,F=f*y-p*v,E=m*F-b*k+x*A+O*S-j*M+w*C;return E?(E=1/E,t[0]=(s*F-c*k+l*A)*E,t[1]=(c*S-a*F-l*M)*E,t[2]=(a*k-s*S+l*C)*E,t[3]=(r*k-i*F-o*A)*E,t[4]=(n*F-r*S+o*M)*E,t[5]=(i*S-n*k-o*C)*E,t[6]=(g*w-v*j+y*O)*E,t[7]=(v*x-d*w-y*b)*E,t[8]=(d*j-g*x+y*m)*E,t):null}function S(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 A(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 F(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 E(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 T(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 P(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t}function I(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 B(t,e){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return Math.abs(n-f)<=r["b"]*Math.max(1,Math.abs(n),Math.abs(f))&&Math.abs(i-p)<=r["b"]*Math.max(1,Math.abs(i),Math.abs(p))&&Math.abs(o-d)<=r["b"]*Math.max(1,Math.abs(o),Math.abs(d))&&Math.abs(a-g)<=r["b"]*Math.max(1,Math.abs(a),Math.abs(g))&&Math.abs(s-v)<=r["b"]*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(c-y)<=r["b"]*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-m)<=r["b"]*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(u-b)<=r["b"]*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=r["b"]*Math.max(1,Math.abs(h),Math.abs(x))}var L=v,D=E,R=n("6711"),_=n("9fe7")},"21e5":function(t,e,n){"use strict";function i(t){return null==t?null:r(t)}function r(t){if("function"!==typeof t)throw new Error;return t}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}))},2251:function(t,e,n){"use strict";var i=n("2c79"),r=n("7fa2"),o=n("f049"),a=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=Object(o["i"])(i,e),n}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(r["a"]);e["a"]=a},"22f9":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i={rect:"path",circle:"circle",line:"line",path:"path",marker:"path",text:"text",polyline:"polyline",polygon:"polygon",image:"image",ellipse:"ellipse",dom:"foreignObject"},r={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"}},2373:function(t,e,n){"use strict";var i=n("5be2"),r=n("21e5"),o=n("092b");function a(t){return Math.sqrt(t.value)}function s(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function c(t,e){return function(n){if(r=n.children){var r,o,a,s=r.length,c=t(n)*e||0;if(c)for(o=0;od&&(d=l),m=f*f*y,g=Math.max(d/m,m/p),g>v){f-=l;break}v=g}b.push(c={value:f,dice:u1?e:1)},n}(o)},"23b9":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),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 l}));var i=n("8937"),r="nodeIndex",o="childNodeCount",a="nodeAncestor",s="Invalid field: it must be a string!";function c(t,e){var n=t.field,r=t.fields;if(Object(i["Q"])(n))return n;if(Object(i["C"])(n))return console.warn(s),n[0];if(console.warn(s+" will try to get fields instead."),Object(i["Q"])(r))return r;if(Object(i["C"])(r)&&r.length)return r[0];if(e)return e;throw new TypeError(s)}function l(t){var e,n,s=[];t&&t.each?t.each((function(t){var c,l;t.parent!==e?(e=t.parent,n=0):n+=1;var u=Object(i["l"])(((null===(c=t.ancestors)||void 0===c?void 0:c.call(t))||[]).map((function(t){return s.find((function(e){return e.name===t.name}))||t})),(function(e){var n=e.depth;return n>0&&n0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var l=0;l=0&&(e=u),Math.abs(c)=g[d-1].fx){var k=!1;if(O.fx>A.fx?(s(j,1+f,x,-f,A),j.fx=t(j),j.fx=1)break;for(v=1;vl+a*o*u||h>=g)d=o;else{if(Math.abs(p)<=-c*u)return o;p*(d-f)>=0&&(d=f),f=o,g=h}return 0}o=o||1,a=a||1e-6,c=c||.1;for(var v=0;v<10;++v){if(s(i.x,1,n.x,o,e),h=i.fx=t(i.x,i.fxprime),p=r(i.fxprime,e),h>l+a*o*u||v&&h>=f)return g(d,o,f);if(Math.abs(p)<=-c*u)return o;if(p>=0)return g(o,d,h);f=h,d=o,o*=2}return o}function u(t,e,n){var i,c,u,h={x:e.slice(),fx:0,fxprime:e.slice()},f={x:e.slice(),fx:0,fxprime:e.slice()},p=e.slice(),d=1;n=n||{},u=n.maxIterations||20*e.length,h.fx=t(h.x,h.fxprime),i=h.fxprime.slice(),a(i,h.fxprime,-1);for(var g=0;g=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,a=t.maxY;if(e){var s=Object(o["c"])(e,[t.minX,t.minY]),c=Object(o["c"])(e,[t.maxX,t.minY]),l=Object(o["c"])(e,[t.minX,t.maxY]),u=Object(o["c"])(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],l[0],u[0]),r=Math.max(s[0],c[0],l[0],u[0]),i=Math.min(s[1],c[1],l[1],u[1]),a=Math.max(s[1],c[1],l[1],u[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,y=void 0===v?0:v,m=n-p+g,b=r+p+g,x=i-p+y,O=a+p+y;n=Math.min(n,m),r=Math.max(r,b),i=Math.min(i,x),a=Math.max(a,O)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[t,e,1];r=this.invertFromMatrix(r);var o=r[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1}})(r["a"])},"28c6":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("5809"),r=n("e474"),o=n("62e3"),a=n("58e4");function s(t){var e=t.options,n=e.polygon,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,h=Object(r["a"])(u,[s,c,l]),f=h.fields,p=h.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"polygon",colorField:l,tooltipFields:f,mapping:Object(i["a"])({tooltip:p},n)}})):t}},"29ab":function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),o=n("d177"),a=n("41c8");function s(t,e){return(e-t)*Math.random()+t}var c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["e"](t),n=r["q"](e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var i=this,o=this.groupData(n,t);return r["j"](o,(function(n,r){return i.adjustGroup(n,t,parseFloat(r),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,i=(n-e)*o["c"];return s(e+i,n-i)},e.prototype.adjustGroup=function(t,e,n,i){var o=this,a=this.getAdjustRange(e,n,i);return r["j"](t,(function(t){t[e]=o.getAdjustOffset(a)})),t},e}(a["a"]);e["a"]=c},"2c79":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}Object(i["j"])(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var s=a,c=n("20e7");function l(t,e,n,i){var r,o,a,s,l,u,h,f=[],p=!!i;if(p){a=i[0],s=i[1];for(var d=0,g=t.length;d2&&(n.push([i].concat(o.splice(0,2))),a="l",i="m"===i?"l":"L"),"o"===a&&1===o.length&&n.push([i,o[0]]),"r"===a)n.push([i].concat(o));else while(o.length>=e[a])if(n.push([i].concat(o.splice(0,e[a]))),!e[a])break;return""})),n}var v=/[a-z]/;function y(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function m(t){var e=g(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,i=0;i=0){n=!0;break}}if(!n)return e;var o=[],a=0,s=0,c=0,l=0,u=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(a=+h[1],s=+h[2],c=a,l=s,u++,o[0]=["M",a,s]);i=u;for(var f=e.length;i1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var g=n*n*(p*p)+r*r*(f*f),v=g?Math.sqrt((n*n*(r*r)-g)/g):1;a===s&&(v*=-1),isNaN(v)&&(v=0);var y=r?v*n*p/r:0,m=n?v*-r*f/n:0,b=(c+u)/2+Math.cos(o)*y-Math.sin(o)*m,w=(l+h)/2+Math.sin(o)*y+Math.cos(o)*m,C=[(f-y)/n,(p-m)/r],M=[(-1*f-y)/n,(-1*p-m)/r],S=O([1,0],C),A=O(C,M);return x(C,M)<=-1&&(A=Math.PI),x(C,M)>=1&&(A=0),0===s&&A>0&&(A-=2*Math.PI),1===s&&A<0&&(A+=2*Math.PI),{cx:b,cy:w,rx:j(t,[u,h])?0:n,ry:j(t,[u,h])?0:r,startAngle:S,endAngle:S+A,xRotation:o,arcFlag:a,sweepFlag:s}}function C(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function M(t){t=s(t);for(var e=[],n=null,i=null,r=null,o=0,a=t.length,c=0;c=e&&t<=n};function A(t,e,n,i){var r=.001,o={x:n.x-t.x,y:n.y-t.y},a={x:e.x-t.x,y:e.y-t.y},s={x:i.x-n.x,y:i.y-n.y},c=a.x*s.y-a.y*s.x,l=c*c,u=a.x*a.x+a.y*a.y,h=s.x*s.x+s.y*s.y,f=null;if(l>r*u*h){var p=(o.x*s.y-o.y*s.x)/c,d=(o.x*a.y-o.y*a.x)/c;S(p,0,1)&&S(d,0,1)&&(f={x:t.x+p*a.x,y:t.y+p*a.y})}return f}var k=1e-6;function F(t){return Math.abs(t)0!==F(s[1]-n)>0&&F(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}function P(t){for(var e=[],n=t.length,i=0;i1){var a=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:a[0],y:a[1]}})}return e}function I(t,e){var n=!1;return Object(i["j"])(t,(function(t){if(A(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function B(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 L(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,a=t.maxY;if(e){var s=Object(o["c"])(e,[t.minX,t.minY]),c=Object(o["c"])(e,[t.maxX,t.minY]),l=Object(o["c"])(e,[t.minX,t.maxY]),u=Object(o["c"])(e,[t.maxX,t.maxY]);n=Math.min(s[0],c[0],l[0],u[0]),r=Math.max(s[0],c[0],l[0],u[0]),i=Math.min(s[1],c[1],l[1],u[1]),a=Math.max(s[1],c[1],l[1],u[1])}var h=this.attrs;if(h.shadowColor){var f=h.shadowBlur,p=void 0===f?0:f,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,y=void 0===v?0:v,m=n-p+g,b=r+p+g,x=i-p+y,O=a+p+y;n=Math.min(n,m),r=Math.max(r,b),i=Math.min(i,x),a=Math.max(a,O)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:a,width:r-n,height:a-i}},e.prototype.clearCacheBBox=function(){this.set("bbox",null),this.set("canvasBBox",null)},e.prototype.isClipShape=function(){return this.get("isClipShape")},e.prototype.isInShape=function(t,e){return!1},e.prototype.isOnlyHitBox=function(){return!1},e.prototype.isHit=function(t,e){var n=this.get("startArrowShape"),i=this.get("endArrowShape"),r=[t,e,1];r=this.invertFromMatrix(r);var o=r[0],a=r[1],s=this._isInBBox(o,a);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(o,a)){if(this.isInShape(o,a))return!0;if(n&&n.isHit(o,a))return!0;if(i&&i.isHit(o,a))return!0}return!1},e}(r["a"]);e["a"]=a},"31e6":function(t,e,n){"use strict";var i=n("2c79"),r=n("8937"),o=n("d7ff"),a=n("8ea8"),s=n("e546"),c=n("3665"),l="update_status",u=["visible","tip","delegateObject"],h=["container","group","shapesMap","isRegister","isUpdating","destroyed"],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),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n=e&&e.get("component");return n},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(r["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(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.get("group");e.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(a["a"])(n,e)),e},e.prototype.on=function(t,e,n){var i=this.get("group");return i.on(t,e,n),this},e.prototype.off=function(t,e){var n=this.get("group");return n&&n.off(t,e),this},e.prototype.emit=function(t,e){var n=this.get("group");n.emit(t,e)},e.prototype.init=function(){t.prototype.init.call(this),this.get("group")||this.initGroup(),this.offScreenRender()},e.prototype.getInnerLayoutBBox=function(){return this.get("offScreenBBox")||this.get("group").getBBox()},e.prototype.delegateEmit=function(t,e){var n=this.get("group");e.target=n,n.emit(t,e),Object(o["a"])(n,t,e)},e.prototype.createOffScreenGroup=function(){var t=this.get("group"),e=t.getGroupBase(),n=new e({delegateObject:this.getDelegateObject()});return n},e.prototype.applyOffset=function(){var t=this.get("offsetX"),e=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t,y:e})},e.prototype.initGroup=function(){var t=this.get("container");this.set("group",t.addGroup({id:this.get("id"),name:this.get("name"),capture:this.get("capture"),visible:this.get("visible"),isComponent:!0,component:this,delegateObject:this.getDelegateObject()}))},e.prototype.offScreenRender=function(){this.clearOffScreenCache();var t=this.createOffScreenGroup();return this.renderInner(t),this.set("offScreenGroup",t),this.set("offScreenBBox",Object(s["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,r=e.component,o=Object(i["c"])(e,["id","component"]),a=new r(Object(i["a"])(Object(i["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(){var t=this.get("group");t.off()},e.prototype.getElementId=function(t){var e=this.get("id"),n=this.get("name");return e+"-"+n+"-"+t},e.prototype.registerElement=function(t){var e=t.get("id");this.get("shapesMap")[e]=t},e.prototype.unregisterElement=function(t){var e=t.get("id");delete this.get("shapesMap")[e]},e.prototype.moveElementTo=function(t,e){var n=Object(a["f"])(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var i=e.attr("opacity");Object(r["K"])(i)&&(i=1),e.attr("opacity",0),e.animate({opacity:i},n)},e.prototype.removeAnimation=function(t,e,n){e.animate({opacity:0},n)},e.prototype.updateAnimation=function(t,e,n,i){e.animate(n,i)},e.prototype.updateElements=function(t,e){var n,i=this,o=this.get("animate"),a=this.get("animateOption"),c=t.getChildren().slice(0);Object(r["j"])(c,(function(t){var c=t.get("id"),f=i.getElementById(c),p=t.get("name");if(f)if(t.get("isComponent")){var d=t.get("component"),g=f.get("component"),v=Object(r["hb"])(d.cfg,Object(r["i"])(Object(r["T"])(d.cfg),h));g.update(v),f.set(l,"update")}else{var y=i.getReplaceAttrs(f,t);o&&a.update?i.updateAnimation(p,f,y,a.update):f.attr(y),t.isGroup()&&i.updateElements(t,f),Object(r["j"])(u,(function(e){f.set(e,t.get(e))})),Object(s["m"])(f,t),n=f,f.set(l,"update")}else{e.add(t);var m=e.getChildren();if(m.splice(m.length-1,1),n){var b=m.indexOf(n);m.splice(b+1,0,t)}else m.unshift(t);if(i.registerElement(t),t.set(l,"add"),t.get("isComponent")){d=t.get("component");d.set("container",e)}else t.isGroup()&&i.registerNewGroup(t);if(n=t,o){var x=i.get("isInit")?a.appear:a.enter;x&&i.addAnimation(p,t,x)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(r["j"])(e,(function(t){t.set(l,null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,e=this.get("name"),n=(t={},t[e]=this,t.component=this,t);return n},e.prototype.appendDelegateObject=function(t,e){var n=t.get("delegateObject");e.delegateObject||(e.delegateObject={}),Object(r["db"])(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return Object(r["j"])(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(r["j"])(n,(function(t){e.registerElement(t),t.set(l,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(r["j"])(e,(function(t,e){!t.get(l)||t.destroyed?n.push([e,t]):t.set(l,null)}));var i=this.get("animate"),o=this.get("animateOption");Object(r["j"])(n,(function(n){var a=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(i&&o.leave){var l=Object(r["db"])({callback:function(){t.removeElement(s)}},o.leave);t.removeAnimation(c,s,l)}else t.removeElement(s)}delete e[a]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(c["a"]);e["a"]=f},"31f7":function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i=["#FAAD14","#E8EDF3"],r={percent:.2,color:i,animation:{}}},"323e":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("c34d"),s=n("62e3"),c=n("b4aa"),l=n("f45c"),u={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function h(t,e){return e=Object(o["b"])({},u,e),f(t,e)}function f(t,e){var n=P();["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 i=n.start(),r=i._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var a=e.size,s=a[0],c=a[1];return r.push({text:"",value:0,x:0,y:0,opacity:0}),r.push({text:"",value:0,x:s,y:c,opacity:0}),r}var p=Math.PI/180,d=64,g=2048;function v(t){return t.text}function y(){return"serif"}function m(){return"normal"}function b(t){return t.value}function x(){return 90*~~(2*Math.random())}function O(){return 1}function j(t,e,n,i){if(!e.sprite){var r=t.context,o=t.ratio;r.clearRect(0,0,(d<<5)/o,g/o);var a=0,s=0,c=0,l=n.length;--i;while(++i>5<<5,h=~~Math.max(Math.abs(m+b),Math.abs(m-b))}else u=u+31>>5<<5;if(h>c&&(c=h),a+u>=d<<5&&(a=0,s+=c,c=0),s+h>=g)break;r.translate((a+(u>>1))/o,(s+(h>>1))/o),e.rotate&&r.rotate(e.rotate*p),r.fillText(e.text,0,0),e.padding&&(r.lineWidth=2*e.padding,r.strokeText(e.text,0,0)),r.restore(),e.width=u,e.height=h,e.xoff=a,e.yoff=s,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,a+=u}var O=r.getImageData(0,0,(d<<5)/o,g/o).data,j=[];while(--i>=0)if(e=n[i],e.hasText){u=e.width;for(var w=u>>5,C=(h=e.y1-e.y0,0);C>5),F=O[(s+A)*(d<<5)+(a+C)<<2]?1<<31-C%32:0;j[k]|=F,M|=F}M?S=A:(e.y0++,h--,A--,s++)}e.y1=e.y0+S,e.sprite=j.slice(0,(e.y1-e.y0)*w)}}}function w(t,e,n){n>>=5;for(var i,r=t.sprite,o=t.width>>5,a=t.x-(o<<4),s=127&a,c=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(a>>5),h=0;h>>s:0))&e[u+f])return!0;u+=n}return!1}function C(t,e){var n=t[0],i=t[1];e.x+e.x0i.x&&(i.x=e.x+e.x1),e.y+e.y1>i.y&&(i.y=e.y+e.y1)}function M(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>2);t.width=(d<<5)/e,t.height=g/e;var n=t.getContext("2d");return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function P(e,n,i){var r,o,c,l=n.x,u=n.y,h=Math.sqrt(t[0]*t[0]+t[1]*t[1]),f=a(t),p=s()<.5?1:-1,d=-p;while(r=f(d+=p)){if(o=~~r[0],c=~~r[1],Math.min(Math.abs(o),Math.abs(c))>=h)break;if(n.x=l+o,n.y=u+c,!(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])&&(!i||!w(n,e,t[0]))&&(!i||M(n,i))){for(var g=n.sprite,v=n.width>>5,y=t[0]>>5,m=n.x-(v<<4),b=127&m,x=32-b,O=n.y1-n.y0,j=void 0,C=(n.y+n.y0)*y+(m>>5),S=0;S>>b:0);C+=y}return delete n.sprite,!0}}return!1}return p.start=function(){var a=t[0],d=t[1],g=A(f()),v=p.board?p.board:k((t[0]>>5)*t[1]),y=c.length,m=[],b=c.map((function(t,a,s){return t.text=u.call(this,t,a,s),t.font=e.call(this,t,a,s),t.style=h.call(this,t,a,s),t.weight=i.call(this,t,a,s),t.rotate=r.call(this,t,a,s),t.size=~~n.call(this,t,a,s),t.padding=o.call(this,t,a,s),t})).sort((function(t,e){return e.size-t.size})),x=-1,O=p.board?[{x:0,y:0},{x:a,y:d}]:null;function w(){var e=Date.now();while(Date.now()-e>1,n.y=d*(s()+.5)>>1,j(g,n,b,x),n.hasText&&P(v,n,O)&&(m.push(n),O?p.hasImage||C(O,n):O=[{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)}p._tags=m,p._bounds=O}return w(),p},p.createMask=function(e){var n=document.createElement("canvas"),i=t[0],r=t[1];if(i&&r){var o=i>>5,a=k((i>>5)*r);n.width=i,n.height=r;var s=n.getContext("2d");s.drawImage(e,0,0,e.width,e.height,0,0,i,r);for(var c=s.getImageData(0,0,i,r).data,l=0;l>5),f=l*i+u<<2,d=c[f]>=250&&c[f+1]>=250&&c[f+2]>=250,g=d?1<<31-u%32:0;a[h]|=g}p.board=a,p.hasImage=!0}},p.timeInterval=function(t){l=null==t?1/0:t},p.words=function(t){c=t},p.size=function(e){t=[+e[0],+e[1]]},p.font=function(t){e=E(t)},p.fontWeight=function(t){i=E(t)},p.rotate=function(t){r=E(t)},p.spiral=function(t){a=T[t]||t},p.fontSize=function(t){n=E(t)},p.padding=function(t){o=E(t)},p.random=function(t){s=E(t)},p}function I(t){var e=t.options,n=t.chart,r=n,a=r.width,s=r.height,c=r.padding,l=r.appendPadding,u=r.ele,f=e.data,p=e.imageMask,d=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(!f||!f.length)return[];var C=y.fontFamily,M=y.fontWeight,S=y.padding,A=y.fontSize,k=_(f,g),F=[N(k),G(k)],T=f.map((function(t){return{text:t[d],value:t[g],color:t[v],datum:t}})),P={imageMask:p,font:C,fontSize:R(A,F),fontWeight:M,size:B({width:a,height:s,padding:c,appendPadding:l,autoFit:j,container:u}),padding:S,timeInterval:m,random:b,spiral:x,rotate:z(e)};if(Object(o["I"])(w)){var I=T.map((function(t,e,r){return Object(i["a"])(Object(i["a"])(Object(i["a"])({},t),{hasText:!!t.text,font:E(P.font)(t,e,r),weight:E(P.fontWeight)(t,e,r),rotate:E(P.rotate)(t,e,r),size:E(P.fontSize)(t,e,r),style:"normal"}),w.call(n,t,e,r))}));return I.push({text:"",value:0,x:0,y:0,opacity:0}),I.push({text:"",value:0,x:P.size[0],y:P.size[1],opacity:0}),I}return h(T,P)}function B(t){var e=t.width,n=t.height,i=t.container,r=t.autoFit,o=t.padding,a=t.appendPadding;if(r){var c=Object(s["k"])(i);e=c.width,n=c.height}e=e||400,n=n||400;var l=L({padding:o,appendPadding:a}),u=l[0],h=l[1],f=l[2],p=l[3],d=[e-(p+h),n-(u+f)];return d}function L(t){var e=Object(l["b"])(t.padding),n=Object(l["b"])(t.appendPadding),i=e[0]+n[0],r=e[1]+n[1],o=e[2]+n[2],a=e[3]+n[3];return[i,r,o,a]}function D(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(o["Q"])(t)){var i=new Image;return i.crossOrigin="anonymous",i.src=t,i.onload=function(){e(i)},void(i.onerror=function(){Object(s["r"])(s["a"].ERROR,!1,"image %s load failed !!!",t),n()})}Object(s["r"])(s["a"].WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function R(t,e){if(Object(o["I"])(t))return t;if(Object(o["C"])(t)){var n=t[0],i=t[1];if(!e)return function(){return(i+n)/2};var r=e[0],a=e[1];return a===r?function(){return(i+n)/2}:function(t){var e=t.value;return(i-n)/(a-r)*(e-r)+n}}return function(){return t}}function _(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}function z(t){var e=Y(t),n=e.rotation,i=e.rotationSteps;if(!Object(o["C"])(n))return n;var r=n[0],a=n[1],s=1===i?0:(a-r)/(i-1);return function(){return a===r?a:Math.floor(Math.random()*i)*s}}function Y(t){var e=t.wordStyle.rotationSteps;return e<1&&(Object(s["r"])(s["a"].WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function N(t){return Math.min.apply(Math,t)}function G(t){return Math.max.apply(Math,t)}var X="color",V=Object(s["c"])({},r["b"].getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",X],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 H(t){var e=t.chart,n=t.options,r=n.colorField,a=n.color,l=I(t);e.data(l);var u=Object(s["c"])({},t,{options:{xField:"x",yField:"y",seriesField:r&&X,rawFields:Object(o["I"])(a)&&Object(i["d"])(Object(o["s"])(n,"rawFields",[]),["datum"]),point:{color:a,shape:"word-cloud"}}}),h=Object(c["e"])(u).ext;return h.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function W(t){return Object(s["f"])(Object(a["g"])({x:{nice:!1},y:{nice:!1}}))(t)}function q(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField;return!1===i?e.legend(!1):r&&e.legend(X,i),t}function K(t){Object(s["f"])(H,W,a["l"],q,a["c"],a["a"],a["k"],a["j"])(t)}var U=n("917c");function Z(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(U["p"])("point","word-cloud",{draw:function(t,e){var n=t.x,r=t.y,o=e.addShape("text",{attrs:Object(i["a"])(Object(i["a"])({},Z(t)),{x:n,y:r})}),a=t.data.rotate;return"number"===typeof a&&U["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(i["b"])(e,t),e.getDefaultOptions=function(){return V},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(I({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 r=e.options.imageMask;if(!r)return t.prototype.render.call(e),void n();var o=function(r){e.options=Object(i["a"])(Object(i["a"])({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};D(r).then(o).catch(o)}))},e.prototype.getSchemaAdaptor=function(){return K},e.prototype.triggerResize=function(){var e=this;this.chart.destroyed||(this.execAdaptor(),window.setTimeout((function(){t.prototype.triggerResize.call(e)})))}})(r["b"])},3295:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=5,r={}.toString,o=function(t,e){return r.call(t)==="[object "+e+"]"},a=function(t){return o(t,"Array")},s=function(t){return"object"===typeof t&&null!==t},c=function(t){if(!s(t)||!o(t,"Object"))return!1;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},l=function(t,e,n,r){for(var o in n=n||0,r=r||i,e)if(Object.prototype.hasOwnProperty.call(e,o)){var s=e[o];s?c(s)?(c(t[o])||(t[o]={}),n0)}));c.length>0?(Object(a["a"])(c,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(o),e=Object(r["Y"])(o),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,o=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(a["a"])(c,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(o),e=Object(r["Y"])(o),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(a["a"])(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;o--){var s=t[o];if(Object(a["b"])(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&h(r,t,!1),t.set("parent",this),e&&l(t,e),i&&u(t,i),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();Object(a["a"])(t,(function(t,e){return t[c]=e,t})),t.sort(f((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(a["a"])(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(a["a"])(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o["a"]);e["a"]=p},3456:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("5809"),r=n("c34d"),o=n("87d0"),a=n("62e3"),s=n("b4aa"),c=n("7eff"),l=n("b3de");function u(t){var e=t.chart,n=t.options,i=n.data,r=n.binField,o=n.binNumber,u=n.binWidth,h=n.color,f=n.stackField,p=n.legend,d=n.columnStyle,g=Object(c["a"])(i,r,u,o,f);e.data(g);var v=Object(a["c"])({},t,{options:{xField:l["b"],yField:l["c"],seriesField:f,isStack:!0,interval:{color:h,style:d}}});return Object(s["c"])(v),p&&f&&e.legend(f,p),t}function h(t){var e,n=t.options,i=n.xAxis,o=n.yAxis;return Object(a["f"])(Object(r["g"])((e={},e[l["b"]]=i,e[l["c"]]=o,e)))(t)}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis;return!1===i?e.axis(l["b"],!1):e.axis(l["b"],i),!1===r?e.axis(l["c"],!1):e.axis(l["c"],r),t}function p(t){var e=t.chart,n=t.options,r=n.label,o=Object(a["d"])(e,"interval");if(r){var s=r.callback,c=Object(i["c"])(r,["callback"]);o.label({fields:[l["c"]],callback:s,cfg:Object(a["A"])(c)})}else o.label(!1);return t}function d(t){return Object(a["f"])(r["k"],Object(o["a"])("columnStyle"),u,h,f,r["j"],p,r["l"],r["c"],r["a"])(t)}},3665:function(t,e,n){"use strict";var i=n("2c79"),r=n("a94d"),o=n("8937"),a={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(i["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,i){var r=e.get(i),a=t;r!==t&&(Object(o["O"])(t)&&n[i]&&(a=Object(o["h"])({},n[i],t)),e.set(i,a))})),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(i["a"])({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),i=a[n];return Object(o["j"])(i,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(o["j"])(e,(function(e,n){var i=t.get(n);if(Object(o["O"])(i)){var r=Object(o["h"])({},e,i);t.set(n,r)}}))},e}(r["Base"]);e["a"]=s},3688:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=null;return function(){for(var i=this,r=arguments.length,o=new Array(r),a=0;aMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var h={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return h}var m=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,o=t.get("segments")||Object(d["e"])(n),a=v(o,r),s=a.x,c=a.y,u=a.width,h=a.height,f={minX:s,minY:c,maxX:s+u,maxY:c+h};return f=l(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}},b=function(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=Math.min(n,r),s=Math.max(n,r),c=Math.min(i,o),u=Math.max(i,o),h={minX:a,maxX:s,minY:c,maxY:u};return h=l(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}},x=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;return{x:n-r,y:i-o,width:2*r,height:2*o}};r("rect",o),r("image",o),r("circle",a),r("marker",a),r("polyline",u),r("polygon",h),r("text",p),r("path",m),r("line",b),r("ellipse",x)},"3cf2":function(t,e,n){"use strict";n.d(e,"a",(function(){return D}));var i=n("8937"),r=n("62e3"),o=n("849a"),a=n("4d99"),s=n("0cc4"),c=n("5fff"),l=n("1d73"),u=n("538f"),h=n("b2c8"),f=n("9a08"),p=n("8582"),d=n("988d"),g=n("bbdf"),v=n("5cc9"),y=n("3456"),m=n("0c22"),b=n("5e5a"),x=n("0abd"),O=n("63e2"),j=n("bbd5"),w=n("bb0f"),C=n("5e91"),M=n("9adb"),S=n("d390"),A=n("d36e"),k=n("60fe"),F=n("9308"),E=n("b44e"),T=n("0704"),P=n("68bc"),I={line:o["a"],pie:a["a"],column:s["a"],bar:c["a"],area:l["a"],gauge:u["a"],"tiny-line":h["a"],"tiny-column":f["a"],"tiny-area":p["a"],"ring-progress":d["a"],progress:g["a"],scatter:v["a"],histogram:y["a"],funnel:m["a"]},B={line:b["a"],pie:x["a"],column:j["a"],bar:O["a"],area:w["a"],gauge:C["a"],"tiny-line":M["a"],"tiny-column":A["a"],"tiny-area":S["a"],"ring-progress":k["a"],progress:F["a"],scatter:E["a"],histogram:T["a"],funnel:P["a"]},L={pie:{label:!1},column:{tooltip:{showMarkers:!1}},bar:{tooltip:{showMarkers:!1}}};function D(t,e,n){var o=B[t];if(o){var a=I[t];a({chart:e,options:Object(r["c"])({},o.getDefaultOptions(),Object(i["s"])(L,t,{}),n)})}else console.error("could not find "+t+" plot")}},"3e28":function(t,e){},"3f35":function(t,e,n){"use strict";function i(t,e){var n={};return null!==t&&"object"===typeof t&&e.forEach((function(e){var i=t[e];void 0!==i&&(n[e]=i)})),n}n.d(e,"a",(function(){return i}))},"3f84":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.removeSensor=e.getSensor=void 0;var i=a(n("721a")),r=n("1710"),o=n("db86");function a(t){return t&&t.__esModule?t:{default:t}}var s={},c=function(t){var e=t.getAttribute(o.SizeSensorId);if(e&&s[e])return s[e];var n=(0,i["default"])();t.setAttribute(o.SizeSensorId,n);var a=(0,r.createSensor)(t);return s[n]=a,a};e.getSensor=c;var l=function(t){var e=t.element.getAttribute(o.SizeSensorId);t.element.removeAttribute(o.SizeSensorId),t.destroy(),e&&s[e]&&delete s[e]};e.removeSensor=l},"408a":function(t,e,n){var i=n("e330");t.exports=i(1..valueOf)},"40ef":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=o(n("3688")),r=n("db86");function o(t){return t&&t.__esModule?t:{default:t}}var a=function(t){var e=void 0,n=[],o=function(){"static"===getComputedStyle(t).position&&(t.style.position="relative");var e=document.createElement("object");return e.onload=function(){e.contentDocument.defaultView.addEventListener("resize",a),a()},e.style.display="block",e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.height="100%",e.style.width="100%",e.style.overflow="hidden",e.style.pointerEvents="none",e.style.zIndex="-1",e.style.opacity="0",e.setAttribute("class",r.SensorClassName),e.setAttribute("tabindex",r.SensorTabIndex),e.type="text/html",t.appendChild(e),e.data="about:blank",e},a=(0,i["default"])((function(){n.forEach((function(e){e(t)}))})),s=function(t){e||(e=o()),-1===n.indexOf(t)&&n.push(t)},c=function(){e&&e.parentNode&&(e.contentDocument&&e.contentDocument.defaultView.removeEventListener("resize",a),e.parentNode.removeChild(e),e=void 0,n=[])},l=function(t){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&c()};return{element:t,bind:s,destroy:c,unbind:l}};e.createSensor=a},"41c8":function(t,e,n){"use strict";var i=n("8937"),r=n("d177"),o=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i;this.adjustNames=r,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,o=this.yField,a=n.indexOf(e),s=n.length;return!o&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===a?0:a-1],r=n[a===s-1?s-1:a+1],0!==a?i+=(e-i)/2:i-=(r-e)/2,a!==s-1?r-=(r-e)/2:r+=(e-n[s-2])/2):(i=0===e?0:e-.5,r=0===e?1:e+.5),{pre:i,next:r}},t.prototype.adjustData=function(t,e){var n=this,r=this.getDimValues(e);i["j"](t,(function(t,e){i["j"](r,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return i["j"](t,(function(t){void 0===t[e]&&(t[e]=r["a"])})),i["w"](t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,o=e.yField,a={},s=[];if(n&&this.isAdjust("x")&&s.push(n),o&&this.isAdjust("y")&&s.push(o),s.forEach((function(e){a[e]=i["yb"](t,e).sort((function(t,e){return t-e}))})),!o&&this.isAdjust("y")){var c="y";a[c]=[r["a"],1]}return a},t}();e["a"]=o},4767:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n0&&(Object(a["i"])(r)||1===r||(t.globalAlpha=r),this.stroke(t)),this.afterDrawPath(t)},e.prototype.createPath=function(t){},e.prototype.afterDrawPath=function(t){},e.prototype.isInShape=function(t,e){var n=this.isStroke(),i=this.isFill(),r=this.getHitLineWidth();return this.isInStrokeOrPath(t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){return!1},e.prototype.getHitLineWidth=function(){if(!this.isStroke())return 0;var t=this.attrs;return t["lineWidth"]+t["lineAppendWidth"]},e}(o["AbstractShape"]),u=l,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),s=o.x,c=o.y,l=o.r,u=r/2,h=Object(a["b"])(s,c,t,e);return i&&n?h<=l+u:i?h<=l:!!n&&(h>=l-u&&h<=l+u)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.r;t.beginPath(),t.arc(n,i,r,0,2*Math.PI,!1),t.closePath()},e}(u),f=h;function p(t,e,n,i){return t/(n*n)+e/(i*i)}var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),a=r/2,s=o.x,c=o.y,l=o.rx,u=o.ry,h=(t-s)*(t-s),f=(e-c)*(e-c);return i&&n?p(h,f,l+a,u+a)<=1:i?p(h,f,l,u)<=1:!!n&&(p(h,f,l-a,u-a)>=1&&p(h,f,l+a,u+a)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,o,0,0,2*Math.PI,!1);else{var a=r>o?r:o,s=r>o?1:r/o,c=r>o?o/r:1;t.save(),t.translate(n,i),t.scale(s,c),t.arc(0,0,a,0,2*Math.PI),t.restore(),t.closePath()}},e}(u),g=d;function v(t){return t instanceof HTMLElement&&Object(a["k"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},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(a["k"])(t)){var i=new Image;i.onload=function(){if(e.destroyed)return!1;e.attr("img",i),e.set("loading",!1),e._afterLoading();var t=e.get("callback");t&&t.call(e)},i.crossOrigin="Anonymous",i.src=t,this.set("loading",!0)}else t instanceof Image?(n.width||(n.width=t.width),n.height||(n.height=t.height)):v(t)&&(n.width||(n.width=Number(t.getAttribute("width"))),n.height||(n.height,Number(t.getAttribute("height"))))},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"img"===e&&this._setImage(n)},e.prototype.createPath=function(t){if(this.get("loading"))return this.set("toDraw",!0),void this.set("context",t);var e=this.attr(),n=e.x,i=e.y,r=e.width,o=e.height,s=e.sx,c=e.sy,l=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||v(h))&&(Object(a["i"])(s)||Object(a["i"])(c)||Object(a["i"])(l)||Object(a["i"])(u)?t.drawImage(h,n,i,r,o):t.drawImage(h,s,c,l,u,n,i,r,o))},e}(u),m=y,b=n("1183");function x(t,e,n,i,r,o,a){var s=Math.min(t,n),c=Math.max(t,n),l=Math.min(e,i),u=Math.max(e,i),h=r/2;return o>=s-h&&o<=c+h&&a>=l-h&&a<=u+h&&b["c"].pointToLine(t,e,n,i,o,a)<=r/2}var O=n("9f27"),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2,o=t.startArrow,a=t.endArrow;o&&O["b"](this,t,i,r,e,n),a&&O["a"](this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var o=this.attr(),a=o.x1,s=o.y1,c=o.x2,l=o.y2;return x(a,s,c,l,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.startArrow,s=e.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};a&&a.d&&(c=O["c"](n,i,r,o,e.startArrow.d)),s&&s.d&&(l=O["c"](n,i,r,o,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,i+c.dy),t.lineTo(r-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,i=t.x2,r=t.y2;return b["c"].length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2;return b["c"].pointAt(n,i,r,o,t)},e}(u),w=j,C=n("8937"),M=n("2ef1"),S={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},A=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(C["K"])(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,o=i.y,s=i.symbol||"circle",c=this._getR(i);if(Object(a["h"])(s))t=s,n=t(r,o,c),n=Object(M["d"])(n);else{if(t=e.Symbols[s],!t)return console.warn(s+" marker is not supported."),null;n=t(r,o,c)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s["e"])(this,t,{path:e},n)},e.Symbols=S,e}(u),k=A;function F(t,e,n){var i=Object(o["getOffScreenContext"])();return t.createPath(i),i.isPointInPath(e,n)}var E=1e-6;function T(t){return Math.abs(t)0!==T(s[1]-n)>0&&T(e-(n-a[1])*(a[0]-s[0])/(a[1]-s[1])-a[0])<0&&(i=!i)}return i}var B=n("e897"),L=n("9fe7");function D(t,e,n,i,r,o,s,c){var l=(Math.atan2(c-e,s-t)+2*Math.PI)%(2*Math.PI);if(lr)return!1;var u={x:t+n*Math.cos(l),y:e+n*Math.sin(l)};return Object(a["b"])(u.x,u.y,s,c)<=o/2}var R=B["a"].transform;function _(t){for(var e=!1,n=t.length,i=0;ij?O:j,k=O>j?1:O/j,F=O>j?j/O:1,E=R(null,[["t",-y,-m],["r",-M],["s",1/k,1/F]]);L["transformMat3"](S,S,E),o=D(0,0,A,w,C,e,S[0],S[1]);break;default:break}if(o)break}}return o}function Y(t){for(var e=t.length,n=[],i=[],r=[],o=0;o0&&i.push(r),{polygons:n,polylines:i}}var N=Object(r["a"])({hasArc:_,extractPolygons:Y,isPointInStroke:z},o["PathUtil"]);function G(t,e,n){for(var i=!1,r=0;r=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var o=r[n];if(Object(C["K"])(o)||Object(C["K"])(n))return null;var a=o.length,s=r[n+1];return b["b"].pointAt(o[a-2],o[a-1],s[1],s[2],s[3],s[4],s[5],s[6],e)},e.prototype._calculateCurve=function(){var t=this.attr().path;this.set("curve",N.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,o=0,a=[],s=this.get("curve");s&&(Object(C["j"])(s,(function(t,e){n=s[e+1],i=t.length,n&&(r+=b["b"].length(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",r),0!==r?(Object(C["j"])(s,(function(c,l){n=s[l+1],i=c.length,n&&(t=[],t[0]=o/r,e=b["b"].length(c[i-2],c[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),o+=e||0,t[1]=o/r,a.push(t))})),this.set("tCache",a)):this.set("tCache",[]))},e.prototype.getStartTangent=function(){var t,e=this.getSegments();if(e.length>1){var n=e[0].currentPoint,i=e[1].currentPoint,r=e[1].startTangent;t=[],r?(t.push([n[0]-r[0],n[1]-r[1]]),t.push([n[0],n[1]])):(t.push([i[0],i[1]]),t.push([n[0],n[1]]))}return t},e.prototype.getEndTangent=function(){var t,e=this.getSegments(),n=e.length;if(n>1){var i=e[n-2].currentPoint,r=e[n-1].currentPoint,o=e[n-1].endTangent;t=[],o?(t.push([r[0]-o[0],r[1]-o[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(u),V=X;function H(t,e,n,i,r){var o=t.length;if(o<2)return!1;for(var a=0;a=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),b["c"].pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,o=[];Object(C["j"])(t,(function(a,s){t[s+1]&&(n=[],n[0]=r/e,i=b["c"].length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u),U=K,Z=n("af40");function Q(t,e,n,i,r,o,s){var c=r/2;return Object(a["e"])(t-c,e-c,n,r,o,s)||Object(a["e"])(t+n-c,e-c,r,i,o,s)||Object(a["e"])(t+c,e+i-c,n,r,o,s)||Object(a["e"])(t-c,e+c,r,i,o,s)}function $(t,e,n,i,r,o,a,s){return x(t+r,e,t+n-r,e,o,a,s)||x(t+n,e+r,t+n,e+i-r,o,a,s)||x(t+n-r,e+i,t+r,e+i,o,a,s)||x(t,e+i-r,t,e+r,o,a,s)||D(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,o,a,s)||D(t+n-r,e+i-r,r,0,.5*Math.PI,o,a,s)||D(t+r,e+i-r,r,.5*Math.PI,Math.PI,o,a,s)||D(t+r,e+r,r,Math.PI,1.5*Math.PI,o,a,s)}var J=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var o=this.attr(),s=o.x,c=o.y,l=o.width,u=o.height,h=o.radius;if(h){var f=!1;return n&&(f=$(s,c,l,u,h,r,t,e)),!f&&i&&(f=F(this,t,e)),f}var p=r/2;return i&&n?Object(a["e"])(s-p,c-p,l+p,u+p,t,e):i?Object(a["e"])(s,c,l,u,t,e):n?Q(s,c,l,u,r,t,e):void 0},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.width,o=e.height,a=e.radius;if(t.beginPath(),0===a)t.rect(n,i,r,o);else{var s=Object(Z["a"])(a),c=s[0],l=s[1],u=s[2],h=s[3];t.moveTo(n+c,i),t.lineTo(n+r-l,i),0!==l&&t.arc(n+r-l,i+l,l,-Math.PI/2,0),t.lineTo(n+r,i+o-u),0!==u&&t.arc(n+r-u,i+o-u,u,0,Math.PI/2),t.lineTo(n+h,i+o),0!==h&&t.arc(n+h,i+o-h,h,Math.PI/2,Math.PI),t.lineTo(n,i+c),0!==c&&t.arc(n+c,i+c,c,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),tt=J,et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},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(o["assembleFont"])(t)},e.prototype._setText=function(t){var e=null;Object(a["k"])(t)&&-1!==t.indexOf("\n")&&(e=t.split("\n")),this.set("textArr",e)},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),e.startsWith("font")&&this._assembleFont(),"text"===e&&this._setText(n)},e.prototype._getSpaceingY=function(){var t=this.attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},e.prototype._drawTextArr=function(t,e,n){var i,r=this.attrs,s=r.textBaseline,c=r.x,l=r.y,u=1*r.fontSize,h=this._getSpaceingY(),f=Object(o["getTextHeight"])(r.text,r.fontSize,r.lineHeight);Object(a["c"])(e,(function(e,r){i=l+r*(h+u)-f+u,"middle"===s&&(i+=f-u-(f-u)/2),"top"===s&&(i+=f-u),Object(a["i"])(e)||(n?t.fillText(e,c,i):t.strokeText(e,c,i))}))},e.prototype._drawText=function(t,e){var n=this.attr(),i=n.x,r=n.y,o=this.get("textArr");if(o)this._drawTextArr(t,o,e);else{var s=n.text;Object(a["i"])(s)||(e?t.fillText(s,i,r):t.strokeText(s,i,r))}},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,o=e.fillOpacity;this.isStroke()&&n>0&&(Object(a["i"])(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(Object(a["i"])(o)||1===o?this.fill(t):(t.globalAlpha=o,this.fill(t),t.globalAlpha=i)),this.afterDrawPath(t)},e.prototype.fill=function(t){this._drawText(t,!0)},e.prototype.stroke=function(t){this._drawText(t,!1)},e}(u),nt=et},"4c46":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("c34d"),a=n("62e3"),s=n("b4aa"),c=n("87d0");function l(t,e,n){var i=n.map((function(t){return t[e]})).filter((function(t){return void 0!==t})),r=i.length>0?Math.max.apply(Math,i):0,o=Math.abs(t)%360;return o?360*r/o:r}function u(t,e,n){var r=[];return t.forEach((function(t){var o=r.find((function(n){return n[e]===t[e]}));o?o[n]+=t[n]||null:r.push(Object(i["a"])({},t))})),r}function h(t){var e=t.chart,n=t.options,i=n.barStyle,r=n.color,o=n.tooltip,c=n.colorField,l=n.type,u=n.xField,h=n.yField,f=n.data,p=Object(a["u"])(f,h);e.data(p);var d=Object(a["c"])({},t,{options:{tooltip:o,seriesField:c,interval:{style:i,color:r,shape:"line"===l?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(s["c"])(d),"line"===l&&Object(s["e"])({chart:e,options:{xField:u,yField:h,seriesField:c,point:{shape:"circle",color:r}}}),t}function f(t){var e,n=t.options,i=n.yField,r=n.xField,s=n.data,c=n.isStack,h=n.isGroup,f=n.colorField,p=n.maxAngle,d=c&&!h&&f?u(s,r,i):s,g=Object(a["u"])(d,i);return Object(a["f"])(Object(o["g"])((e={},e[i]={min:0,max:l(p,i,g)},e)))(t)}function p(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}).transpose(),t}function d(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis;return e.axis(i,r),t}function g(t){var e=t.chart,n=t.options,r=n.label,o=n.yField,s=Object(a["d"])(e,"interval");if(r){var c=r.callback,l=Object(i["c"])(r,["callback"]);s.label({fields:[o],callback:c,cfg:Object(i["a"])(Object(i["a"])({},Object(a["A"])(l)),{type:"polar"})})}else s.label(!1);return t}function v(t){return Object(a["f"])(Object(c["a"])("barStyle"),h,f,d,p,o["c"],o["a"],o["k"],o["l"],o["d"],Object(o["b"])(),g)(t)}var y=Object(a["c"])({},r["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(i["b"])(e,t),e.getDefaultOptions=function(){return y},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 v}})(r["b"])},"4d99":function(t,e,n){"use strict";n.d(e,"b",(function(){return b})),n.d(e,"a",(function(){return j}));var i=n("5809"),r=n("8937"),o=n("c34d"),a=n("58e4"),s=n("b4aa"),c=n("87d0"),l=n("afaa"),u=n("62e3"),h=n("3cbb"),f=n("888a"),p=n("9e6a");function d(t){var e=t.chart,n=t.options,r=n.data,o=n.angleField,a=n.colorField,c=n.color,l=n.pieStyle,h=Object(u["u"])(r,o);if(Object(f["c"])(h,o)){var p="$$percentage$$";h=h.map((function(t){var e;return Object(i["a"])(Object(i["a"])({},t),(e={},e[p]=1/h.length,e))})),e.data(h);var d=Object(u["c"])({},t,{options:{xField:"1",yField:p,seriesField:a,isStack:!0,interval:{color:c,style:l},args:{zIndexReversed:!0}}});Object(s["c"])(d)}else{e.data(h);d=Object(u["c"])({},t,{options:{xField:"1",yField:o,seriesField:a,isStack:!0,interval:{color:c,style:l},args:{zIndexReversed:!0}}});Object(s["c"])(d)}return t}function g(t){var e,n=t.chart,i=t.options,r=i.meta,o=i.colorField,a=Object(u["c"])({},r);return n.scale(a,(e={},e[o]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}),t}function y(t){var e=t.chart,n=t.options,o=n.label,a=n.colorField,s=n.angleField,c=e.geometries[0];if(o){var l=o.callback,h=Object(i["c"])(o,["callback"]),p=Object(u["A"])(h);if(p.content){var d=p.content;p.content=function(t,n,o){var c=t[a],l=t[s],h=e.getScaleByField(s),f=null===h||void 0===h?void 0:h.scale(l);return Object(r["I"])(d)?d(Object(i["a"])(Object(i["a"])({},t),{percent:f}),n,o):Object(r["Q"])(d)?Object(u["y"])(d,{value:l,name:c,percentage:Object(r["M"])(f)&&!Object(r["K"])(l)?(100*f).toFixed(2)+"%":null}):d}}var g={inner:"",outer:"pie-outer",spider:"pie-spider"},v=p.type?g[p.type]:"pie-outer",y=p.layout?Object(r["C"])(p.layout)?p.layout:[p.layout]:[];p.layout=(v?[{type:v}]:[]).concat(y),c.label({fields:a?[s,a]:[s],callback:l,cfg:Object(i["a"])(Object(i["a"])({},p),{offset:Object(f["a"])(p.type,p.offset),type:"pie"})})}else c.label(!1);return t}function m(t){var e=t.innerRadius,n=t.statistic,i=t.angleField,o=t.colorField,a=t.meta,s=t.locale,c=Object(l["a"])(s);if(e&&n){var p=Object(u["c"])({},h["a"].statistic,n),d=p.title,g=p.content;return!1!==d&&(d=Object(u["c"])({},{formatter:function(t){return t?t[o]:Object(r["K"])(d.content)?c.get(["statistic","total"]):d.content}},d)),!1!==g&&(g=Object(u["c"])({},{formatter:function(t,e){var n=t?t[i]:Object(f["b"])(e,i),o=Object(r["s"])(a,[i,"formatter"])||function(t){return t};return t||Object(r["K"])(g.content)?o(n):g.content}},g)),Object(u["c"])({},{statistic:{title:d,content:g}},t)}return t}function b(t){var e=t.chart,n=t.options,i=m(n),r=i.innerRadius,a=i.statistic;return e.getController("annotation").clear(!0),Object(u["f"])(Object(o["b"])())(t),r&&a&&Object(u["w"])(e,{statistic:a,plotType:"pie"}),t}function x(t){var e=t.chart,n=t.options,i=n.tooltip,o=n.colorField,s=n.angleField,c=n.data;if(!1===i)e.tooltip(i);else if(e.tooltip(Object(u["c"])({},i,{shared:!1})),Object(f["c"])(c,s)){var l=Object(r["s"])(i,"fields"),h=Object(r["s"])(i,"formatter");Object(r["G"])(Object(r["s"])(i,"fields"))&&(l=[o,s],h=h||function(t){return{name:t[o],value:Object(r["tb"])(t[s])}}),e.geometries[0].tooltip(l.join("*"),Object(a["b"])(l,h))}return t}function O(t){var e=t.chart,n=t.options,o=m(n),a=o.interactions,s=o.statistic,c=o.annotations;return Object(r["j"])(a,(function(t){var n,o;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var a=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(a=[{trigger:"element:mouseenter",action:p["a"]+":change",arg:{statistic:s,annotations:c}}]),Object(r["j"])(null===(o=t.cfg)||void 0===o?void 0:o.start,(function(t){a.push(Object(i["a"])(Object(i["a"])({},t),{arg:{statistic:s,annotations:c}}))})),e.interaction(t.type,Object(u["c"])({},t.cfg,{start:a}))}else e.interaction(t.type,t.cfg||{})})),t}function j(t){return Object(u["f"])(Object(c["a"])("pieStyle"),d,g,o["k"],v,o["d"],x,y,o["j"],b,O,o["a"])(t)}},"4dce":function(t,e,n){(function(t,n){n(e)})(0,(function(t){"use strict";function e(t,e){return n(t)||i(t,e)||r()}function n(t){if(Array.isArray(t))return t}function i(t,e){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),e&&n.length===e)break}catch(c){r=!0,o=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e,n,i){t=t.filter((function(t,i){var r=e(t,i),o=n(t,i);return null!=r&&isFinite(r)&&null!=o&&isFinite(o)})),i&&t.sort((function(t,n){return e(t)-e(n)}));for(var r,o,a,s=t.length,c=new Float64Array(s),l=new Float64Array(s),u=0,h=0,f=0;fr&&(t.splice(i+1,0,f),n=!0)}return n}}function h(t,e,n,i){var r=i-t*t,o=Math.abs(r)<1e-24?0:(n-t*e)/r,a=e-o*t;return[a,o]}function f(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var o=0,c=0,l=0,f=0,p=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;a(r,n,i,(function(e,n){var i=Math.log(n),r=e*n;++o,c+=(n-c)/o,f+=(r-f)/o,d+=(e*r-d)/o,l+=(n*i-l)/o,p+=(r*i-p)/o,t||(ev&&(v=e))}));var y=h(f/c,l/c,p/c,d/c),m=e(y,2),b=m[0],x=m[1];b=Math.exp(b);var O=function(t){return b*Math.exp(x*t)},j=u(g,v,O);return j.a=b,j.b=x,j.predict=O,j.rSquared=s(r,n,i,c,O),j}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function p(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var o=0,c=0,l=0,u=0,f=0,p=t?+t[0]:1/0,d=t?+t[1]:-1/0;a(r,n,i,(function(e,n){++o,c+=(e-c)/o,l+=(n-l)/o,u+=(e*n-u)/o,f+=(e*e-f)/o,t||(ed&&(d=e))}));var g=h(c,l,u,f),v=e(g,2),y=v[0],m=v[1],b=function(t){return m*t+y},x=[[p,b(p)],[d,b(d)]];return x.a=m,x.b=y,x.predict=b,x.rSquared=s(r,n,i,l,b),x}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function d(t){t.sort((function(t,e){return t-e}));var e=t.length/2;return e%1===0?(t[e-1]+t[e])/2:t[Math.floor(e)]}var g=2,v=1e-12;function y(){var t=function(t){return t[0]},n=function(t){return t[1]},i=.3;function r(r){for(var a=o(r,t,n,!0),s=e(a,4),c=s[0],l=s[1],u=s[2],f=s[3],p=c.length,y=Math.max(2,~~(i*p)),O=new Float64Array(p),j=new Float64Array(p),w=new Float64Array(p).fill(1),C=-1;++C<=g;){for(var M=[0,y-1],S=0;Sc[F]-A?k:F,T=0,P=0,I=0,B=0,L=0,D=1/Math.abs(c[E]-A||1),R=k;R<=F;++R){var _=c[R],z=l[R],Y=m(Math.abs(A-_)*D)*w[R],N=_*Y;T+=Y,P+=N,I+=z*Y,B+=z*N,L+=_*N}var G=h(P/T,I/T,B/T,L/T),X=e(G,2),V=X[0],H=X[1];O[S]=V+H*A,j[S]=Math.abs(l[S]-O[S]),b(c,S+1,M)}if(C===g)break;var W=d(j);if(Math.abs(W)=1?v:(K=1-q*q)*K}return x(c,O,u,f)}return r.bandwidth=function(t){return arguments.length?(i=t,r):i},r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(t){return arguments.length?(n=t,r):n},r}function m(t){return(t=1-t*t*t)*t*t}function b(t,e,n){var i=t[e],r=n[0],o=n[1]+1;if(!(o>=t.length))while(e>r&&t[o]-i<=i-t[r])n[0]=++r,n[1]=o,++o}function x(t,e,n,i){for(var r,o=t.length,a=[],s=0,c=0,l=[];sv&&(v=e))}));var m=h(l,f,p,d),b=e(m,2),x=b[0],O=b[1],j=function(t){return O*Math.log(t)/y+x},w=u(g,v,j);return w.a=O,w.b=x,w.predict=j,w.rSquared=s(o,n,i,f,j),w}return o.domain=function(e){return arguments.length?(t=e,o):t},o.x=function(t){return arguments.length?(n=t,o):n},o.y=function(t){return arguments.length?(i=t,o):i},o.base=function(t){return arguments.length?(r=t,o):r},o}function j(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var c,l,h,f,p=o(r,n,i),d=e(p,4),g=d[0],v=d[1],y=d[2],m=d[3],b=g.length,x=0,O=0,j=0,w=0,C=0;for(c=0;ck&&(k=e))}));var F=j-x*x,E=x*F-O*O,T=(C*x-w*O)/E,P=(w*F-C*O)/E,I=-T*x,B=function(t){return t-=y,T*t*t+P*t+I+m},L=u(A,k,B);return L.a=T,L.b=P-2*T*y,L.c=I-P*y+T*y*y+m,L.predict=B,L.rSquared=s(r,n,i,M,B),L}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function w(){var t,n=function(t){return t[0]},i=function(t){return t[1]},r=3;function c(c){if(1===r){var l=p().x(n).y(i).domain(t)(c);return l.coefficients=[l.b,l.a],delete l.a,delete l.b,l}if(2===r){var h=j().x(n).y(i).domain(t)(c);return h.coefficients=[h.c,h.b,h.a],delete h.a,delete h.b,delete h.c,h}var f,d,g,v,y,m=o(c,n,i),b=e(m,4),x=b[0],O=b[1],w=b[2],S=b[3],A=x.length,k=[],F=[],E=r+1,T=0,P=0,I=t?+t[0]:1/0,B=t?+t[1]:-1/0;for(a(c,n,i,(function(e,n){++P,T+=(n-T)/P,t||(eB&&(B=e))})),f=0;f=0;--r)for(a=e[r],s=1,c[r]+=a,o=1;o<=r;++o)s*=(r+1-o)/o,c[r-o]+=a*Math.pow(n,o)*s;return c[0]+=i,c}function M(t){var e,n,i,r,o,a=t.length-1,s=[];for(e=0;eMath.abs(t[e][r])&&(r=n);for(i=e;i=e;i--)t[i][n]-=t[i][e]*t[e][n]/t[e][e]}for(n=a-1;n>=0;--n){for(o=0,i=n+1;iv&&(v=e))}));var y=h(c,l,f,p),m=e(y,2),b=m[0],x=m[1];b=Math.exp(b);var O=function(t){return b*Math.pow(t,x)},j=u(g,v,O);return j.a=b,j.b=x,j.predict=O,j.rSquared=s(r,n,i,d,O),j}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}t.regressionExp=f,t.regressionLinear=p,t.regressionLoess=y,t.regressionLog=O,t.regressionPoly=w,t.regressionPow=S,t.regressionQuad=j,Object.defineProperty(t,"__esModule",{value:!0})}))},"51d4":function(t,e,n){"use strict";var i=n("917c"),r=n("8937"),o=n("9f73");function a(t){var e=Object(r["s"])(t,["event","data","data"],{});return Object(r["C"])(e.children)&&e.children.length>0}function s(t){var e=t.view.getCoordinate(),n=e.innerRadius;if(n){var i=t.event,r=i.x,o=i.y,a=e.center,s=a.x,c=a.y,l=e.getRadius()*n,u=Math.sqrt(Math.pow(s-r,2)+Math.pow(c-o,2));return u=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=i/(2*n),o=e.nodeWidthRatio;if(o<=0||o>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var a=0;t.forEach((function(t){a+=t.value})),t.forEach((function(t){t.weight=t.value/a,t.width=t.weight*(1-i),t.height=o})),t.forEach((function(n,i){for(var a=0,s=i-1;s>=0;s--)a+=t[s].width+2*r;var c=n.minX=r+a,l=n.maxX=n.minX+n.width,u=n.minY=e.y-o/2,h=n.maxY=u+o;n.x=[c,l,l,c],n.y=[u,u,h,h]}))}else{var s=1/n;t.forEach((function(t,n){t.x=(n+.5)*s,t.y=e.y}))}return t}function p(t,e,n){if(n.weight){var i={};Object(o["r"])(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),o=n.target(e),a=t[r],s=t[o];if(a&&s){var c=i[r],l=n.sourceWeight(e),u=a.minX+(a.value-c)/a.value*a.width,h=u+l/a.value*a.width;i[r]-=l;var f=i[o],p=n.targetWeight(e),d=s.minX+(s.value-f)/s.value*s.width,g=d+p/s.value*s.width;i[o]-=p;var v=n.y;e.x=[u,h,d,g],e.y=[v,v,v,v],e.source=a,e.target=s}}))}else e.forEach((function(e){var i=t[n.source(e)],r=t[n.target(e)];i&&r&&(e.x=[i.x,r.x],e.y=[i.y,r.y],e.source=i,e.target=r)}));return e}function d(t){return Object(o["b"])({},l,t)}function g(t,e){var n=d(t),i={},r=e.nodes,o=e.links;r.forEach((function(t){var e=n.id(t);i[e]=t})),u(i,o,n),h(r,n);var a=f(r,n),s=p(i,o,n);return{nodes:a,links:s}}var v="x",y="y",m="name",b="source",x={nodeStyle:{opacity:1,fillOpacity:1,lineWidth:1},edgeStyle:{opacity:.5,lineWidth:2},label:{fields:["x","name"],callback:function(t,e){var n=(t[0]+t[1])/2,i=n>.5?-4:4;return{labelEmit:!0,style:{fill:"#8c8c8c"},offsetX:i,content:e}}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(o["s"])(t,[0,"data","isNode"])},formatter:function(t){var e=t.source,n=t.target,i=t.value;return{name:e+" -> "+n,value:i}}},interactions:[{type:"element-active"}],weight:!0,nodePaddingRatio:.1,nodeWidthRatio:.05};function O(t){var e=t.options,n=e.data,r=e.sourceField,o=e.targetField,a=e.weightField,c=e.nodePaddingRatio,l=e.nodeWidthRatio,u=e.rawFields,h=void 0===u?[]:u,f=Object(s["z"])(n,r,o,a),p=g({weight:!0,nodePaddingRatio:c,nodeWidthRatio:l},f),d=p.nodes,v=p.links,y=d.map((function(t){return Object(i["a"])(Object(i["a"])({},Object(s["t"])(t,Object(i["d"])(["id","x","y","name"],h))),{isNode:!0})})),m=v.map((function(t){return Object(i["a"])(Object(i["a"])({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(s["t"])(t,Object(i["d"])(["x","y","value"],h))),{isNode:!1})}));return Object(i["a"])(Object(i["a"])({},t),{ext:Object(i["a"])(Object(i["a"])({},t.ext),{chordData:{nodesData:y,edgesData:m}})})}function j(t){var e,n=t.chart;return n.scale((e={x:{sync:!0,nice:!0},y:{sync:!0,nice:!0,max:1}},e[m]={sync:"color"},e[b]={sync:"color"},e)),t}function w(t){var e=t.chart;return e.axis(!1),t}function C(t){var e=t.chart;return e.legend(!1),t}function M(t){var e=t.chart,n=t.options,i=n.tooltip;return e.tooltip(i),t}function S(t){var e=t.chart;return e.coordinate("polar").reflect("y"),t}function A(t){var e=t.chart,n=t.options,i=t.ext.chordData.nodesData,r=n.nodeStyle,o=n.label,a=n.tooltip,s=e.createView();return s.data(i),Object(c["f"])({chart:s,options:{xField:v,yField:y,seriesField:m,polygon:{style:r},label:o,tooltip:a}}),t}function k(t){var e=t.chart,n=t.options,i=t.ext.chordData.edgesData,r=n.edgeStyle,o=n.tooltip,a=e.createView();a.data(i);var s={xField:v,yField:y,seriesField:b,edge:{style:r,shape:"arc"},tooltip:o};return Object(c["b"])({chart:a,options:s}),t}function F(t){var e=t.chart,n=t.options,i=n.animation;return"boolean"===typeof i?e.animate(i):e.animate(!0),Object(o["j"])(Object(s["j"])(e),(function(t){t.animate(i)})),t}function E(t){return Object(s["f"])(a["k"],O,S,j,w,C,M,k,A,a["c"],a["j"],F)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return x},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return E}})(r["b"])},"538f":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return g}));var i=n("5809"),r=n("8937"),o=n("c34d"),a=n("b4aa"),s=n("9ff2"),c=n("62e3"),l=n("c3ec"),u=n("f41e");function h(t){var e=t.chart,n=t.options,i=n.percent,o=n.range,h=n.radius,f=n.innerRadius,p=n.startAngle,d=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"])(i),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:p,endAngle:d,radius:f*h}),w.axis(l["d"],g),w.scale(l["d"],Object(c["t"])(g,s["a"]))}var C=Object(u["b"])(i,n.range),M=e.createView({id:l["g"]});M.data(C);var S=Object(r["Q"])(x)?[x,l["a"]]:x,A=Object(a["c"])({chart:M,options:{xField:"1",yField:l["f"],seriesField:l["e"],rawFields:[l["d"]],isStack:!0,interval:{color:S,style:y,shape:"meter"===m?"meter-gauge":null},args:{zIndexReversed:!0},minColumnWidth:O,maxColumnWidth:O}}).ext,k=A.geometry;return k.customInfo({meter:b}),M.coordinate("polar",{innerRadius:f,radius:h,startAngle:p,endAngle:d}).transpose(),t}function f(t){var e;return Object(c["f"])(Object(o["g"])((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[l["d"]]={},e)))(t)}function p(t,e){var n=t.chart,r=t.options,o=r.statistic,a=r.percent;if(n.getController("annotation").clear(!0),o){var s=o.content,l=void 0;s&&(l=Object(c["c"])({},{content:(100*a).toFixed(2)+"%",style:{opacity:.75,fontSize:"30px",lineHeight:1,textAlign:"center",color:"rgba(44,53,66,0.85)"}},s)),Object(c["v"])(n,{statistic:Object(i["a"])(Object(i["a"])({},o),{content:l})},{percent:a})}return e&&n.render(!0),t}function d(t){var e=t.chart;return e.legend(!1),e.tooltip(!1),t}function g(t){return Object(c["f"])(o["k"],o["a"],h,f,p,o["c"],Object(o["b"])(),d)(t)}},"53a3":function(t,e,n){"use strict";var i=n("2c79"),r=n("8937"),o=n("e897"),a=n("f049"),s=n("bb0c"),c=n("2251"),l=o["a"].transform,u="matrix",h=["zIndex","capture","visible","type"],f=["repeat"],p=":",d="*";function g(t){for(var e=[],n=0;nt.delay&&Object(r["j"])(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var b=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r["db"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?i=m(i,j):n.addAnimator(this),i.push(j),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(r["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(r["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"),e=t.getTime(),n=this.get("animations"),i=this.get("_pause").pauseTime;return Object(r["j"])(n,(function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,i=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a["g"])(s,n))return"break";Object(r["C"])(l)?Object(r["j"])(l,(function(t){i.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,l,e)}},c=this,l=0;la?(i=(l+a-r)/(2*l),o=Math.sqrt(Math.max(0,a/l-i*i)),n.x=t.x-i*s-o*c,n.y=t.y-i*c+o*s):(i=(l+r-a)/(2*l),o=Math.sqrt(Math.max(0,r/l-i*i)),n.x=e.x+i*s-o*c,n.y=e.y+i*c+o*s)):(n.x=e.x+n.r,n.y=e.y)}function a(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function s(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function c(t){this._=t,this.next=null,this.previous=null}function l(t){if(!(u=(t=Object(i["a"])(t)).length))return 0;var e,n,l,u,h,f,p,d,g,v,y;if(e=t[0],e.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 c(e),n=new c(n),l=new c(l),e.next=l.previous=n,n.next=e.previous=l,l.next=n.previous=e;t:for(p=3;p0,f=u>0;function p(t,e){var n=Object(r["s"])(o,[t]);function i(t){return Object(r["s"])(n,t)}var a={};return"x"===e?(Object(r["M"])(l)&&(Object(r["M"])(i("min"))||(a["min"]=h?0:2*l),Object(r["M"])(i("max"))||(a["max"]=h?2*l:0)),a):(Object(r["M"])(u)&&(Object(r["M"])(i("min"))||(a["min"]=f?0:2*u),Object(r["M"])(i("max"))||(a["max"]=f?2*u:0)),a)}return Object(i["a"])(Object(i["a"])({},o),(e={},e[a]=Object(i["a"])(Object(i["a"])({},o[a]),p(a,"x")),e[s]=Object(i["a"])(Object(i["a"])({},o[s]),p(s,"y")),e))};function g(t){var e=t.data,n=void 0===e?[]:e,i=t.xField,r=t.yField;if(n.length){for(var a=!0,s=!0,c=n[0],l=void 0,u=1;u0&&c<1){var d=f-h;p=d/a/(c/(1-c)+1-1/a)}for(var g=p/(1-c)*c,v=e.addGroup(),y=this.coordinate.getCenter(),m=this.coordinate.getRadius(),b=r["h"].getAngle(t,this.coordinate),x=b.startAngle,O=b.endAngle,j=x;j0)}));c.length>0?(Object(a["a"])(c,(function(t){var e=t.getBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(o),e=Object(r["Y"])(o),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getCanvasBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,o=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(a["a"])(c,(function(t){var e=t.getCanvasBBox();o.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["bb"])(o),e=Object(r["Y"])(o),n=Object(r["bb"])(s),i=Object(r["Y"])(s)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(a["a"])(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;o--){var s=t[o];if(Object(a["b"])(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&h(r,t,!1),t.set("parent",this),e&&l(t,e),i&&u(t,i),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();Object(a["a"])(t,(function(t,e){return t[c]=e,t})),t.sort(f((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(a["a"])(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(a["a"])(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(o["a"]);e["a"]=p},"62e3":function(t,e,n){"use strict";function i(){for(var t=[],e=0;e0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function F(t,e,n,i){var r=e[0],o=e[1];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t}function E(t,e){e=e||1;var n=2*i["c"]()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function T(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function P(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function I(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function B(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function L(t,e,n,i){var r=e[0]-n[0],o=e[1]-n[1],a=Math.sin(i),s=Math.cos(i);return t[0]=r*s-o*a+n[0],t[1]=r*a+o*s+n[1],t}function D(t,e){var n=t[0],i=t[1],r=e[0],o=e[1],a=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+o*o),s=a&&(n*r+i*o)/a;return Math.acos(Math.min(Math.max(s,-1),1))}function R(t){return t[0]=0,t[1]=0,t}function _(t){return"vec2("+t[0]+", "+t[1]+")"}function z(t,e){return t[0]===e[0]&&t[1]===e[1]}function Y(t,e){var n=t[0],r=t[1],o=e[0],a=e[1];return Math.abs(n-o)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-a)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(a))}var N=j,G=u,X=h,V=f,H=x,W=O,q=w,K=function(){var t=r();return function(e,n,i,r,o,a){var s,c;for(n||(n=2),i||(i=0),c=r?Math.min(r*n+i,e.length):e.length,s=i;s0&&(e?"stroke"in n?this._setColor(t,"stroke",o):"strokeStyle"in n&&this._setColor(t,"stroke",a):this._setColor(t,"stroke",o||a),c&&h.setAttribute(l["b"]["strokeOpacity"],c),u&&h.setAttribute(l["b"]["lineWidth"],u))},e.prototype._setColor=function(t,e,n){var i=this.get("el");if(n)if(n=n.trim(),/^[r,R,L,l]{1}[\s]*\(/.test(n)){var r=t.find("gradient",n);r||(r=t.addGradient(n)),i.setAttribute(l["b"][e],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){r=t.find("pattern",n);r||(r=t.addPattern(n)),i.setAttribute(l["b"][e],"url(#"+r+")")}else i.setAttribute(l["b"][e],n);else i.setAttribute(l["b"][e],"none")},e.prototype.shadow=function(t,e){var n=this.attr(),i=e||n,r=i.shadowOffsetX,o=i.shadowOffsetY,s=i.shadowBlur,c=i.shadowColor;(r||o||s||c)&&Object(a["b"])(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&Object(a["c"])(this)},e.prototype.isInShape=function(t,e){return this.isPointInPath(t,e)},e.prototype.isPointInPath=function(t,e){var n=this.get("el"),i=this.get("canvas"),r=i.get("el").getBoundingClientRect(),o=t+r.left,a=e+r.top,s=document.elementFromPoint(o,a);return!(!s||!s.isEqualNode(n))},e.prototype.getHitLineWidth=function(){var t=this.attrs,e=t.lineWidth,n=t.lineAppendWidth;return this.isStroke()?e+n:0},e}(o["AbstractShape"]),f=h,p=n("8937"),d=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 Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(f),g=d,v=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 Object(r["b"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");if(Object(p["j"])(e||n,(function(t,e){l["b"][e]&&i.setAttribute(l["b"][e],t)})),"function"===typeof n["html"]){var r=n["html"].call(this,n);if(r instanceof Element||r instanceof HTMLDocument){for(var o=i.childNodes,a=o.length-1;a>=0;a--)i.removeChild(o[a]);i.appendChild(r)}else i.innerHTML=r}else i.innerHTML=n["html"]},e}(f),y=v,m=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 Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(f),b=m,x=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 Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(p["j"])(e||i,(function(t,e){"img"===e?n._setImage(i.img):l["b"][e]&&r.setAttribute(l["b"][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(p["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(p["Q"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase())n.setAttribute("href",t.toDataURL());else if(t instanceof ImageData){var i=document.createElement("canvas");i.setAttribute("width",""+t.width),i.setAttribute("height",""+t.height),i.getContext("2d").putImageData(t,0,0),e.width||(n.setAttribute("width",""+t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",""+t.height),this.attr("height",t.height)),n.setAttribute("href",i.toDataURL())}},e}(f),O=x,j=n("1183"),w=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 Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var o=Object(p["O"])(e)?t.addArrow(n,l["b"][r]):t.getDefaultArrow(n,l["b"][r]);i.setAttribute(l["b"][r],"url(#"+o+")")}else i.removeAttribute(l["b"][r]);else l["b"][r]&&i.setAttribute(l["b"][r],e)}))},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return j["c"].length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2;return j["c"].pointAt(n,i,r,o,t)},e}(f),C=w,M={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},triangleDown:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},S={get:function(t){return M[t]},register:function(t,e){M[t]=e},remove:function(t){delete M[t]},getAll:function(){return M}},A=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 Object(r["b"])(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(p["C"])(t)?t.map((function(t){return t.join(" ")})).join(""):t},e.prototype._getPath=function(){var t,e=this.attr(),n=e.x,i=e.y,r=e.r||e.radius,o=e.symbol||"circle";return t=Object(p["I"])(o)?o:S.get(o),t?t(n,i,r):(console.warn(t+" symbol is not exist."),null)},e.symbolsFactory=S,e}(f),k=A,F=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 Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(p["j"])(e||i,(function(e,o){if("path"===o&&Object(p["C"])(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===o||"endArrow"===o)if(e){var a=Object(p["O"])(e)?t.addArrow(i,l["b"][o]):t.getDefaultArrow(i,l["b"][o]);r.setAttribute(l["b"][o],"url(#"+a+")")}else r.removeAttribute(l["b"][o]);else l["b"][o]&&r.setAttribute(l["b"][o],e)}))},e.prototype._formatPath=function(t){var e=t.map((function(t){return t.join(" ")})).join("");return~e.indexOf("NaN")?"":e},e.prototype.getTotalLength=function(){var t=this.get("el");return t?t.getTotalLength():null},e.prototype.getPoint=function(t){var e=this.get("el"),n=this.getTotalLength();if(0===n)return null;var i=e?e.getPointAtLength(t*n):null;return i?{x:i.x,y:i.y}:null},e}(f),E=F,T=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 Object(r["b"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(t,e){"points"===e&&Object(p["C"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(f),P=T,I=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 Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(p["j"])(e||n,(function(t,e){"points"===e&&Object(p["C"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(p["K"])(e)?(this.set("totalLength",j["d"].length(t)),this.get("totalLength")):e},e.prototype.getPoint=function(t){var e,n,i=this.attr().points,r=this.get("tCache");return r||(this._setTcache(),r=this.get("tCache")),Object(p["j"])(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),j["c"].pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,o=[];Object(p["j"])(t,(function(a,s){t[s+1]&&(n=[],n[0]=r/e,i=j["c"].length(a[0],a[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,o.push(n))})),this.set("tCache",o)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(f),B=I;function L(t){var e=0,n=0,i=0,r=0;return Object(p["C"])(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}}var D=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 Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el"),o=!1,a=["x","y","width","height","radius"];Object(p["j"])(e||i,(function(t,e){-1===a.indexOf(e)||o?-1===a.indexOf(e)&&l["b"][e]&&r.setAttribute(l["b"][e],t):(r.setAttribute("d",n._assembleRect(i)),o=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,o=t.radius;if(!o)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var a=L(o);Object(p["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;var s=[["M "+(e+a.r1)+","+n],["l "+(i-a.r1-a.r2)+",0"],["a "+a.r2+","+a.r2+",0,0,1,"+a.r2+","+a.r2],["l 0,"+(r-a.r2-a.r3)],["a "+a.r3+","+a.r3+",0,0,1,"+-a.r3+","+a.r3],["l "+(a.r3+a.r4-i)+",0"],["a "+a.r4+","+a.r4+",0,0,1,"+-a.r4+","+-a.r4],["l 0,"+(a.r4+a.r1-r)],["a "+a.r1+","+a.r1+",0,0,1,"+a.r1+","+-a.r1],["z"]];return s.join(" ")},e}(f),R=D,_=n("7b46"),z=.3,Y={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},N={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},G={left:"left",start:"left",center:"middle",right:"end",end:"end"},X=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 Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");this._setFont(),Object(p["j"])(e||i,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(a["c"])(n):l["b"][e]&&r.setAttribute(l["b"][e],t)})),r.setAttribute("paint-order","stroke"),r.setAttribute("style","stroke-linecap:butt; stroke-linejoin:miter;")},e.prototype._setFont=function(){var t=this.get("el"),e=this.attr(),n=e.textBaseline,i=e.textAlign,r=Object(_["a"])();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",N[n]||"alphabetic"):t.setAttribute("alignment-baseline",Y[n]||"baseline"),t.setAttribute("text-anchor",G[i]||"left")},e.prototype._setText=function(t){var e=this.get("el"),n=this.attr(),i=n.x,r=n.textBaseline,o=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var a=t.split("\n"),s=a.length-1,c="";Object(p["j"])(a,(function(t,e){0===e?"alphabetic"===o?c+=''+t+"":"top"===o?c+=''+t+"":"middle"===o?c+=''+t+"":"bottom"===o?c+=''+t+"":"hanging"===o&&(c+=''+t+""):c+=''+t+""})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(f),V=X},6928:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=f*i+p*a+d*l,n[1]=f*r+p*s+d*u,n[2]=f*o+p*c+d*h,n[3]=g*i+v*a+y*l,n[4]=g*r+v*s+y*u,n[5]=g*o+v*c+y*h,n[6]=m*i+b*a+x*l,n[7]=m*r+b*s+x*u,n[8]=m*o+b*c+x*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function o(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=u*a-s*l,f=-u*o+s*c,p=l*o-a*c,d=n*h+i*f+r*p;return d?(d=1/d,e[0]=h*d,e[1]=(-u*i+r*l)*d,e[2]=(s*i-r*a)*d,e[3]=f*d,e[4]=(u*n-r*c)*d,e[5]=(-s*n+r*o)*d,e[6]=p*d,e[7]=(-l*n+i*c)*d,e[8]=(a*n-i*o)*d,e):null}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}))},"6bcb":function(t,e,n){"use strict";function i(t){var e=0,n=t.children,i=n&&n.length;if(i)while(--i>=0)e+=n[i].value;else e=1;t.value=e}n.d(e,"c",(function(){return m})),n.d(e,"b",(function(){return w})),n.d(e,"a",(function(){return C}));var r=function(){return this.eachAfter(i)},o=function(t,e){let n=-1;for(const i of this)t.call(e,i,++n,this);return this},a=function(t,e){var n,i,r=this,o=[r],a=-1;while(r=o.pop())if(t.call(e,r,++a,this),n=r.children)for(i=n.length-1;i>=0;--i)o.push(n[i]);return this},s=function(t,e){var n,i,r,o=this,a=[o],s=[],c=-1;while(o=a.pop())if(s.push(o),n=o.children)for(i=0,r=n.length;i=0)n+=i[r].value;e.value=n}))},u=function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},h=function(t){var e=this,n=f(e,t),i=[e];while(e!==n)e=e.parent,i.push(e);var r=i.length;while(t!==n)i.splice(r,0,t),t=t.parent;return i};function f(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop(),e=i.pop();while(t===e)r=t,t=n.pop(),e=i.pop();return r}var p=function(){var t=this,e=[t];while(t=t.parent)e.push(t);return e},d=function(){return Array.from(this)},g=function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},v=function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},y=function*(){var t,e,n,i,r=this,o=[r];do{t=o.reverse(),o=[];while(r=t.pop())if(yield r,e=r.children)for(n=0,i=e.length;n=0;--o)c.push(i=r[o]=new C(r[o])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(w)}function b(){return m(this).eachBefore(j)}function x(t){return t.children}function O(t){return Array.isArray(t)?t[1]:null}function j(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function w(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function C(t){this.data=t,this.depth=this.height=0,this.parent=null}C.prototype=m.prototype={constructor:C,count:r,each:o,eachAfter:s,eachBefore:a,find:c,sum:l,sort:u,path:h,ancestors:p,descendants:d,leaves:g,links:v,copy:b,[Symbol.iterator]:y}},7011:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("23b9"),a=n("8937"),s=n("b4aa"),c=n("c34d"),l=n("62e3"),u=n("f45c"),h="ancestor-node",f="value",p="path",d=[p,o["c"],o["b"],o["a"],"name","depth","height"],g=Object(l["c"])({},r["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}}),v=n("9f73"),y=n("f8d7"),m=n("6bcb"),b={field:"value",size:[1,1],round:!1,padding:0,sort:function(t,e){return e.value-t.value},as:["x","y"],ignoreParentValue:!0};function x(t,e){e=Object(a["b"])({},b,e);var n,i=e.as;if(!Object(a["C"])(i)||2!==i.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(u){console.warn(u)}var r=function(t){return y["a"]().size(e.size).round(e.round).padding(e.padding)(m["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))},s=r(t),c=i[0],l=i[1];return s.each((function(t){var e,n;t[c]=[t.x0,t.x1,t.x1,t.x0],t[l]=[t.y1,t.y1,t.y0,t.y0],t.name=t.name||(null===(e=t.data)||void 0===e?void 0:e.name)||(null===(n=t.data)||void 0===n?void 0:n.label),t.data.name=t.name,["x0","x1","y0","y1"].forEach((function(e){-1===i.indexOf(e)&&delete t[e]}))})),Object(o["d"])(s)}var O=n("3736");function j(t){var e=t.data,n=t.colorField,r=t.rawFields,o=t.hierarchyConfig,s=void 0===o?{}:o,c=s.activeDepth,u={partition:x,treemap:O["a"]},f=t.seriesField,d=t.type||"partition",g=u[d](e,Object(i["a"])(Object(i["a"])({field:f||"value"},Object(a["gb"])(s,["activeDepth"])),{type:"hierarchy."+d,as:["x","y"]})),y=[];return g.forEach((function(t){var e,o,a,u,d,g;if(0===t.depth)return null;if(c>0&&t.depth>c)return null;var m=t.data.name,b=Object(i["a"])({},t);while(b.depth>1)m=(null===(o=b.parent.data)||void 0===o?void 0:o.name)+" / "+m,b=b.parent;var x=Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(l["t"])(t.data,Object(i["d"])(r||[],[s.field]))),(e={},e[p]=m,e[h]=b.data.name,e)),t);f&&(x[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&&(x[n]=t.data[n]||(null===(g=null===(d=t.parent)||void 0===d?void 0:d.data)||void 0===g?void 0:g[n])),x.ext=s,x[v["b"]]={hierarchyConfig:s,colorField:n,rawFields:r},y.push(x)})),y}function w(t){var e,n=t.chart,r=t.options,o=r.color,c=r.colorField,u=void 0===c?h:c,f=r.sunburstStyle,p=r.rawFields,g=void 0===p?[]:p,v=j(r);return n.data(v),f&&(e=function(t){return Object(l["c"])({},{fillOpacity:Math.pow(.85,t.depth)},Object(a["I"])(f)?f(t):f)}),Object(s["f"])(Object(l["c"])({},t,{options:{xField:"x",yField:"y",seriesField:u,rawFields:Object(a["ub"])(Object(i["d"])(d,g)),polygon:{color:o,style:e}}})),t}function C(t){var e=t.chart;return e.axis(!1),t}function M(t){var e=t.chart,n=t.options,r=n.label,o=Object(l["d"])(e,"polygon");if(r){var a=r.fields,s=void 0===a?["name"]:a,c=r.callback,u=Object(i["c"])(r,["fields","callback"]);o.label({fields:s,callback:c,cfg:Object(l["A"])(u)})}else o.label(!1);return t}function S(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius,o=n.reflect,a=e.coordinate({type:"polar",cfg:{innerRadius:i,radius:r}});return o&&a.reflect(o),t}function A(t){var e,n=t.options,i=n.hierarchyConfig,r=n.meta;return Object(l["f"])(Object(c["g"])({},(e={},e[f]=Object(a["s"])(r,Object(a["s"])(i,["field"],"value")),e)))(t)}function k(t){var e=t.chart,n=t.options,r=n.tooltip;if(!1===r)e.tooltip(!1);else{var o=r;Object(a["s"])(r,"fields")||(o=Object(l["c"])({},{customItems:function(t){return t.map((function(t){var n=Object(a["s"])(e.getOptions(),"scales"),r=Object(a["s"])(n,[p,"formatter"],(function(t){return t})),o=Object(a["s"])(n,[f,"formatter"],(function(t){return t}));return Object(i["a"])(Object(i["a"])({},t),{name:r(t.data[p]),value:o(t.data.value)})}))}},o)),e.tooltip(o)}return t}function F(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?Object(l["c"])({},t,{interactions:Object(i["d"])(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:j}}])}):t}function E(t){var e=t.chart,n=t.options,i=n.drilldown;return Object(c["c"])({chart:e,options:F(n)}),(null===i||void 0===i?void 0:i.enabled)&&(e.appendPadding=Object(u["a"])(e.appendPadding,Object(a["s"])(i,["breadCrumb","position"]))),t}function T(t){return Object(l["f"])(c["k"],Object(c["f"])("sunburstStyle"),w,C,A,c["d"],S,k,M,E,c["a"],Object(c["b"])())(t)}n("51d4"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return T},e.SUNBURST_ANCESTOR_FIELD=h,e.SUNBURST_PATH_FIELD=p,e.NODE_ANCESTORS_FIELD=o["b"]}(r["b"])},7156:function(t,e,n){var i=n("1626"),r=n("861d"),o=n("d2bb");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},"721a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e["default"]=void 0;var i=1,r=function(){return"".concat(i++)};e["default"]=r},7326:function(t,e,n){"use strict";n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return s})),n.d(e,"l",(function(){return c})),n.d(e,"j",(function(){return l}));var i=n("8937");function r(){return window?window.devicePixelRatio:1}function o(t,e,n,i){var r=t-n,o=e-i;return Math.sqrt(r*r+o*o)}function a(t,e,n,i,r,o){return r>=t&&r<=t+n&&o>=e&&o<=e+i}function s(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxYe)n.insertBefore(t,r);else if(o=0&&e._call.call(null,t),e=e._next;--o}function b(){u=(l=f.now())+h,o=a=0;try{m()}finally{o=0,O(),u=0}}function x(){var t=f.now(),e=t-l;e>c&&(h-=e,l=t)}function O(){var t,e,n=i,o=1/0;while(n)n._call?(o>n._time&&(o=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);r=t,j(o)}function j(t){if(!o){a&&(a=clearTimeout(a));var e=t-u;e>24?(t<1/0&&(a=setTimeout(b,t-f.now()-h)),s&&(s=clearInterval(s))):(s||(l=f.now(),s=setInterval(x,c)),o=1,p(b))}}v.prototype=y.prototype={constructor:v,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?d():+n)+(null==e?0:+e),this._next||r===this||(r?r._next=this:i=this,r=this),this._call=t,this._time=n,j()},stop:function(){this._call&&(this._call=null,this._time=1/0,j())}}},"75ed":function(t,e,n){"use strict";var i=n("2c79"),r=n("7c8a"),o=n("8937"),a=n("e546"),s=n("3665"),c=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),{container:null,containerTpl:"
    ",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return 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.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 i=t[n];Object(r["e"])(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){Object(o["j"])(e,(function(e,n){var i=t.getElementsByClassName(n);Object(o["j"])(i,(function(t){Object(r["e"])(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(r["e"])(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(r["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}(s["a"]);e["a"]=c},"787a":function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("28c6"),s=n("c34d"),c=n("87d0"),l=n("62e3"),u=n("f45c"),h=n("9f73"),f=n("3736");function p(t,e){if(Object(o["C"])(t))return t.find((function(t){return t.type===e}))}function d(t,e){var n=p(t,e);return n&&!1!==n.enable}function g(t){var e=t.interactions,n=t.drilldown;return Object(o["s"])(n,"enabled")||d(e,"treemap-drill-down")}function v(t){var e=t.interactions["drill-down"];if(e){var n=e.context.actions.find((function(t){return"drill-down-action"===t.name}));n.reset()}}function y(t){var e=t.data,n=t.colorField,r=t.enableDrillDown,a=t.hierarchyConfig,s=Object(f["a"])(e,Object(i["a"])(Object(i["a"])({},a),{type:"hierarchy.treemap",field:"value",as:["x","y"]})),c=[];return s.forEach((function(t){if(0===t.depth)return null;if(r&&1!==t.depth)return null;if(!r&&t.children)return null;var s=t.ancestors().map((function(t){return{data:t.data,height:t.height,value:t.value}})),l=r&&Object(o["C"])(e.path)?s.concat(e.path.slice(1)):s,u=Object.assign({},t.data,Object(i["a"])({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var f=t.ancestors().find((function(t){return t.data[n]}));u[n]=null===f||void 0===f?void 0:f.data[n]}else u[n]=t.data[n];u[h["b"]]={hierarchyConfig:a,colorField:n,enableDrillDown:r},c.push(u)})),c}function m(t){var e=t.options,n=e.colorField;return Object(l["c"])({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function b(t){var e=t.chart,n=t.options,i=n.color,r=n.colorField,o=n.rectStyle,s=n.hierarchyConfig,c=n.rawFields,u=y({data:n.data,colorField:n.colorField,enableDrillDown:g(n),hierarchyConfig:s});return e.data(u),Object(a["a"])(Object(l["c"])({},t,{options:{xField:"x",yField:"y",seriesField:r,rawFields:c,polygon:{color:i,style:o}}})),e.coordinate().reflect("y"),t}function x(t){var e=t.chart;return e.axis(!1),t}function O(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n,o=g(t);return o?Object(l["c"])({},t,{interactions:Object(i["d"])(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:y}}])}):t}function j(t){var e=t.chart,n=t.options,i=n.interactions,r=n.drilldown;Object(s["c"])({chart:e,options:O(n)});var a=p(i,"view-zoom");a&&(!1!==a.enable?e.getCanvas().on("mousewheel",(function(t){t.preventDefault()})):e.getCanvas().off("mousewheel"));var c=g(n);return c&&(e.appendPadding=Object(u["a"])(e.appendPadding,Object(o["s"])(r,["breadCrumb","position"]))),t}function w(t){return Object(l["f"])(m,s["k"],Object(c["a"])("rectStyle"),b,x,s["d"],s["l"],j,s["a"],Object(s["b"])())(t)}var C={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}}}};n("c88a"),n("51d4"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="treemap",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return C},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,i=e.interactions,r=e.hierarchyConfig;this.updateOption({data:t});var o=y({data:t,colorField:n,enableDrillDown:d(i,"treemap-drill-down"),hierarchyConfig:r});this.chart.changeData(o),v(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return w}}(r["b"])},"7b42":function(t,e,n){"use strict";var i;n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"f",(function(){return c})),n.d(e,"g",(function(){return l})),n.d(e,"a",(function(){return u}));var r="$$percentage$$",o="$$mappingValue$$",a="$$conversion$$",s="$$totalPercentage$$",c="$$x$$",l="$$y$$",u={appendPadding:[0,80],minSize:0,maxSize:1,meta:(i={},i[o]={min:0,max:1,nice:!1},i),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)"}}}},"7b46":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var i=function(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;rf&&(i=[f,h],h=i[0],f=i[1],o=[n,e],e=o[0],n=o[1],p=!0);var d=e.getBBox(),g=n.getBBox(),v=d.width>h-l?{x:h+u/2+l,textAlign:"left"}:{x:h-u/2-l,textAlign:"right"},y=g.width>c-f-l?{x:f-u/2-l,textAlign:"right"}:{x:f+u/2+l,textAlign:"left"};return p?[y,v]:[v,y]},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e}(o["a"])},"7c8a":function(t,e,n){"use strict";function i(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 r,o,a,s;function c(){r=document.createElement("table"),o=document.createElement("tr"),a=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:o,th:o,"*":document.createElement("div")}}function l(t){r||c();var e=a.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}function u(t,e,n){var i;try{i=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(r){}finally{i=void 0===i?n:i}return i}function h(t,e){var n=u(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function f(t,e){var n=h(t,e),i=parseFloat(u(t,"borderTopWidth"))||0,r=parseFloat(u(t,"paddingTop"))||0,o=parseFloat(u(t,"paddingBottom"))||0,a=parseFloat(u(t,"borderBottomWidth"))||0,s=parseFloat(u(t,"marginTop"))||0,c=parseFloat(u(t,"marginBottom"))||0;return n+i+a+r+o+s+c}function p(t,e){var n=u(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function d(t,e){var n=p(t,e),i=parseFloat(u(t,"borderLeftWidth"))||0,r=parseFloat(u(t,"paddingLeft"))||0,o=parseFloat(u(t,"paddingRight"))||0,a=parseFloat(u(t,"borderRightWidth"))||0,s=parseFloat(u(t,"marginRight"))||0,c=parseFloat(u(t,"marginLeft"))||0;return n+i+a+r+o+c+s}function g(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 i})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return f})),n.d(e,"d",(function(){return d})),n.d(e,"e",(function(){return g}))},"7cfd":function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return Y})),n.d(e,"Circle",(function(){return G})),n.d(e,"Base",(function(){return g}));var i={};n.r(i),n.d(i,"getDefault",(function(){return m})),n.d(i,"ellipsisHead",(function(){return b})),n.d(i,"ellipsisTail",(function(){return x})),n.d(i,"ellipsisMiddle",(function(){return O}));var r={};n.r(r),n.d(r,"getDefault",(function(){return k})),n.d(r,"reserveFirst",(function(){return F})),n.d(r,"reserveLast",(function(){return E})),n.d(r,"reserveBoth",(function(){return T})),n.d(r,"equidistance",(function(){return P})),n.d(r,"equidistanceWithReverseBoth",(function(){return I}));var o={};n.r(o),n.d(o,"getDefault",(function(){return D})),n.d(o,"fixedAngle",(function(){return R})),n.d(o,"unfixedAngle",(function(){return _}));var a={};n.r(a),n.d(a,"autoHide",(function(){return r})),n.d(a,"autoRotate",(function(){return o})),n.d(a,"autoEllipsis",(function(){return i}));var s=n("2c79"),c=n("e897"),l=n("8937"),u=n("31e6"),h=n("8ea8"),f=n("9778"),p=n("2f5e"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["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:p["a"].lineColor}},tickLine:{style:{lineWidth:1,stroke:p["a"].lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:p["a"].lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:p["a"].textColor,fontFamily:p["a"].fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:p["a"].textColor,textBaseline:"middle",fontFamily:p["a"].fontFamily,textAlign:"center"}},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:p["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,i){t[i]&&n.push(i)})),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,i=n.getSideVector(e,t);return{x:t.x+i[0],y:t.y+i[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=[],i=this.get("tickLine"),r=i.alignTick,o=i.length,a=1,s=t.length;return s>=2&&(a=t[1].value-t[0].value),Object(l["j"])(t,(function(t){var i=t.point;r||(i=e.getTickPoint(t.value-a/2));var s=e.getSidePoint(i,o);n.push({startPoint:i,tickValue:t.value,endPoint:s,tickId:t.id,id:"tickline-"+t.id})})),n},e.prototype.getSubTickLineItems=function(t){var e=[],n=this.get("subTickLine"),i=n.count,r=t.length;if(r>=2)for(var o=0;o0){var n=Object(l["mb"])(e);if(n>t.threshold){var i=Math.ceil(n/t.threshold),r=e.filter((function(t,e){return e%i===0}));this.set("ticks",r),this.set("originalTicks",e)}}},e.prototype.getLabelAttrs=function(t,e,n){var i=this.get("label"),r=i.offset,o=i.offsetX,a=i.offsetY,s=i.rotate,c=i.formatter,u=this.getSidePoint(t.point,r),f=this.getSideVector(r,u),p=c?c(t.name,t,e):t.name,d=i.style;d=Object(l["I"])(d)?Object(l["s"])(this.get("theme"),["label","style"],{}):d;var g=Object(l["db"])({x:u.x+o,y:u.y+a,text:p,textAlign:this.getTextAnchor(f),textBaseline:this.getTextBaseline(f)},d);return s&&(g.matrix=Object(h["e"])(u,s)),g},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),i=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(l["j"])(n,(function(t,r){e.addShape(i,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,r,n),delegateObject:{tick:t,item:t,index:r}})})),this.processOverlap(i);var r=i.getChildren(),o=Object(l["s"])(this.get("theme"),["label","style"],{}),a=this.get("label"),s=a.style,c=a.formatter;if(Object(l["I"])(s)){var u=r.map((function(t){return Object(l["s"])(t.get("delegateObject"),"tick")}));Object(l["j"])(r,(function(t,e){var n=t.get("delegateObject").tick,i=c?c(n.name,n,e):n.name,r=Object(l["db"])({},o,s(i,e,u));t.attr(r)}))}},e.prototype.getTitleAttrs=function(){var t=this.get("title"),e=t.style,n=t.position,i=t.offset,r=t.spacing,o=void 0===r?0:r,a=t.autoRotate,s=e.fontSize,u=.5;"start"===n?u=0:"end"===n&&(u=1);var f=this.getTickPoint(u),p=this.getSidePoint(f,i||o+s/2),d=Object(l["db"])({x:p.x,y:p.y,text:t.text},e),g=t.rotate,v=g;if(Object(l["K"])(g)&&a){var y=this.getAxisVector(f),m=[1,0];v=c["a"].angleTo(y,m,!0)}if(v){var b=Object(h["e"])(p,v);d.matrix=b}return d},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var i=this.get("tickStates"),r=this.getElementId("label-"+t.id),o=e.findById(r);if(o){var a=Object(f["a"])(t,"label",i);a&&o.attr(a)}var s=this.getElementId("tickline-"+t.id),c=e.findById(s);if(c){var l=Object(f["a"])(t,"tickLine",i);l&&c.attr(l)}}},e.prototype.updateTickStates=function(t){var e=this.getItemStates(t),n=this.get("tickStates"),i=this.get("label"),r=this.getElementByLocalId("label-"+t.id),o=this.get("tickLine"),a=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=Object(f["a"])(t,"label",n);s&&r.attr(s)}if(a){var c=Object(f["a"])(t,"tickLine",n);c&&a.attr(c)}}else r&&r.attr(i.style),a&&a.attr(o.style)},e}(u["a"]),g=d,v=n("060b");function y(t,e,n,i){var r=e.getChildren(),o=!1;return Object(l["j"])(r,(function(e){var r=Object(v["a"])(t,e,n,i);o=o||r})),o}function m(){return x}function b(t,e,n){return y(t,e,n,"head")}function x(t,e,n){return y(t,e,n,"tail")}function O(t,e,n){return y(t,e,n,"middle")}var j=n("e546");function w(t){var e=t.attr("matrix");return e&&1!==e[0]}function C(t){var e=w(t)?Object(h["d"])(t.attr("matrix")):0;return e%360}function M(t,e,n,i){var r=!1,o=C(e),a=t?Math.abs(n.attr("y")-e.attr("y")):Math.abs(n.attr("x")-e.attr("x")),s=(t?n.attr("y")>e.attr("y"):n.attr("x")>e.attr("x"))?e.getBBox():n.getBBox();if(t){var c=Math.abs(Math.cos(o));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>a:s.height/c+i>a}else{c=Math.abs(Math.sin(o));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>a:s.height/c+i>a}return r}function S(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,o=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!o.length)return!1;var a=!1;n&&o.reverse();for(var s=o.length,c=o[0],l=c,u=1;u1){f=Math.ceil(f);for(var g=0;g2){var a=r[0],s=r[r.length-1];a.get("visible")||(a.show(),S(t,e,!1,i)&&(o=!0)),s.get("visible")||(s.show(),S(t,e,!0,i)&&(o=!0))}return o}function B(t,e){Object(l["j"])(t,(function(t){var n=t.attr("x"),i=t.attr("y"),r=Object(h["e"])({x:n,y:i},e);t.attr("matrix",r)}))}function L(t,e,n,i){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var o=Object(v["b"])(r),a=!1;if(t)a=!!n&&o>n;else{var s=Math.abs(r[1].attr("x")-r[0].attr("x"));a=o>s}if(a){var c=i(n,o);B(r,c)}return a}function D(){return R}function R(t,e,n,i){return L(t,e,n,(function(){return Object(l["M"])(i)?i:t?p["a"].verticalAxisRotate:p["a"].horizontalAxisRotate}))}function _(t,e,n){return L(t,e,n,(function(e,n){if(!e)return t?p["a"].verticalAxisRotate:p["a"].horizontalAxisRotate;if(t)return-Math.acos(e/n);var i=0;return e>n?i=Math.PI/4:(i=Math.asin(e/n),i>Math.PI/4&&(i=Math.PI/4)),i}))}var z=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["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"),i=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,n.x,i.x),o=Math.min(e.y,n.y,i.y),a=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:o,minX:r,minY:o,maxX:a,maxY:s,width:a-r,height:s-o}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return 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,n=e.get("start"),i=e.get("end"),r=i.x-n.x,o=i.y-n.y;return{x:n.x+r*t,y:n.y+o*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=c["c"].normalize([0,0],e),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return c["c"].scale([0,0],r,t*i)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),i=this.isHorizontal();if(n||i){var r=this.get("label"),o=this.get("title"),a=this.get("verticalLimitLength"),s=r.offset,c=a,u=0,h=0;o&&(u=o.style.fontSize,h=o.spacing),c&&(c=c-s-h-u);var f=this.get("overlapOrder");if(Object(l["j"])(f,(function(n){r[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,r[n],t,c)})),o&&Object(l["K"])(o.offset)){var p=t.getCanvasBBox(),d=n?p.width:p.height;o.offset=s+d+h+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,i){var r=this,o=this.isVertical(),s=!1,c=a[t];if(!0===e){this.get("label");s=c.getDefault()(o,n,i)}else if(Object(l["I"])(e))s=e(o,n,i);else if(Object(l["O"])(e)){var u=e;c[u.type]&&(s=c[u.type](o,n,i,u.cfg))}else c[e]&&(s=c[e](o,n,i));if("autoRotate"===t){if(s){var h=n.getChildren(),f=this.get("verticalFactor");Object(l["j"])(h,(function(t){var e=t.attr("textAlign");if("center"===e){var n=f>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var p=n.getChildren().slice(0);Object(l["j"])(p,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),Y=z,N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["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,i=this.get("radius"),r=i,o=this.get("startAngle"),a=this.get("endAngle"),s=[];if(Math.abs(a-o)===2*Math.PI)s=[["M",e,n-r],["A",i,r,0,1,1,e,n+r],["A",i,r,0,1,1,e,n-r],["Z"]];else{var c=this.getCirclePoint(o),l=this.getCirclePoint(a),u=Math.abs(a-o)>Math.PI?1:0,h=o>a?0:1;s=[["M",e,n],["L",c.x,c.y],["A",i,r,0,u,h,l.x,l.y],["L",e,n]]}return s},e.prototype.getTickPoint=function(t){var e=this.get("startAngle"),n=this.get("endAngle"),i=e+(n-e)*t;return this.getCirclePoint(i)},e.prototype.getSideVector=function(t,e){var n=this.get("center"),i=[e.x-n.x,e.y-n.y],r=this.get("verticalFactor"),o=c["c"].length(i);return c["c"].scale(i,i,r*t/o),i},e.prototype.getAxisVector=function(t){var e=this.get("center"),n=[t.x-e.x,t.y-e.y];return[n[1],-1*n[0]]},e.prototype.getCirclePoint=function(t,e){var n=this.get("center");return e=e||this.get("radius"),{x:n.x+Math.cos(t)*e,y:n.y+Math.sin(t)*e}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l["K"])(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),i=this.get("title"),r=this.get("verticalLimitLength"),o=n.offset,a=r,s=0,c=0;i&&(s=i.style.fontSize,c=i.spacing),a&&(a=a-o-c-s);var u=this.get("overlapOrder");if(Object(l["j"])(u,(function(i){n[i]&&e.canProcessOverlap(i)&&e.autoProcessOverlap(i,n[i],t,a)})),i&&Object(l["K"])(i.offset)){var h=t.getCanvasBBox().height;i.offset=o+h+c+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,o=!1,s=a[t];if(i>0)if(!0===e)o=s.getDefault()(!1,n,i);else if(Object(l["I"])(e))o=e(!1,n,i);else if(Object(l["O"])(e)){var c=e;s[c.type]&&(o=s[c.type](!1,n,i,c.cfg))}else s[e]&&(o=s[e](!1,n,i));if("autoRotate"===t){if(o){var u=n.getChildren(),h=this.get("verticalFactor");Object(l["j"])(u,(function(t){var e=t.attr("textAlign");if("center"===e){var n=h>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(l["j"])(f,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),G=N},"7dfe":function(t,e){},"7eff":function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("8937");function r(t,e,n){if(1===n)return[0,e];var i=Math.floor(t/e);return[e*i,e*(i+1)]}function o(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function a(t,e,n,a,s){var c=Object(i["e"])(t);Object(i["ob"])(c,e);var l=Object(i["yb"])(c,e),u=Object(i["u"])(l),h=u.max-u.min,f=n;if(!n&&a&&(f=a>1?h/(a-1):u.max),!n&&!a){var p=o(l);f=h/p}var d={},g=Object(i["w"])(c,s);Object(i["G"])(g)?Object(i["j"])(c,(function(t){var n=t[e],o=r(n,f,a),s=o[0]+"-"+o[1];Object(i["y"])(d,s)||(d[s]={range:o,count:0}),d[s].count+=1})):Object.keys(g).forEach((function(t){Object(i["j"])(g[t],(function(n){var o=n[e],c=r(o,f,a),l=c[0]+"-"+c[1],u=l+"-"+t;Object(i["y"])(d,u)||(d[u]={range:c,count:0},d[u][s]=t),d[u].count+=1}))}));var v=[];return Object(i["j"])(d,(function(t){v.push(t)})),v}},"7fa2":function(t,e,n){"use strict";var i="*",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),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r0?n:e:e<0?e:n;case"outer":return n=12,Object(i["Q"])(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function s(t,e){return Object(i["k"])(Object(r["u"])(t,e),(function(t){return 0===t[e]}))}},8937:function(t,e,n){"use strict";n.d(e,"f",(function(){return a})),n.d(e,"A",(function(){return a})),n.d(e,"i",(function(){return u})),n.d(e,"m",(function(){return E})),n.d(e,"n",(function(){return P})),n.d(e,"o",(function(){return B})),n.d(e,"q",(function(){return D})),n.d(e,"u",(function(){return Y})),n.d(e,"ib",(function(){return W})),n.d(e,"jb",(function(){return K})),n.d(e,"ob",(function(){return Q})),n.d(e,"ub",(function(){return $})),n.d(e,"yb",(function(){return J})),n.d(e,"z",(function(){return tt})),n.d(e,"U",(function(){return et})),n.d(e,"l",(function(){return c})),n.d(e,"k",(function(){return it})),n.d(e,"nb",(function(){return ot})),n.d(e,"v",(function(){return ut})),n.d(e,"w",(function(){return ct})),n.d(e,"x",(function(){return lt})),n.d(e,"c",(function(){return ft})),n.d(e,"p",(function(){return dt})),n.d(e,"N",(function(){return mt})),n.d(e,"Y",(function(){return R})),n.d(e,"Z",(function(){return bt})),n.d(e,"bb",(function(){return _})),n.d(e,"cb",(function(){return xt})),n.d(e,"eb",(function(){return jt})),n.d(e,"sb",(function(){return Mt})),n.d(e,"r",(function(){return St})),n.d(e,"y",(function(){return kt})),n.d(e,"T",(function(){return j})),n.d(e,"J",(function(){return C})),n.d(e,"xb",(function(){return Et})),n.d(e,"V",(function(){return It})),n.d(e,"pb",(function(){return Lt})),n.d(e,"wb",(function(){return Rt})),n.d(e,"C",(function(){return y})),n.d(e,"D",(function(){return Gt})),n.d(e,"E",(function(){return Vt})),n.d(e,"I",(function(){return d})),n.d(e,"K",(function(){return v})),n.d(e,"L",(function(){return Wt})),n.d(e,"M",(function(){return vt})),n.d(e,"O",(function(){return m})),n.d(e,"P",(function(){return k})),n.d(e,"Q",(function(){return U})),n.d(e,"R",(function(){return p})),n.d(e,"S",(function(){return Qt})),n.d(e,"F",(function(){return Jt})),n.d(e,"kb",(function(){return te})),n.d(e,"d",(function(){return ee})),n.d(e,"e",(function(){return oe})),n.d(e,"g",(function(){return se})),n.d(e,"ab",(function(){return ce})),n.d(e,"h",(function(){return fe})),n.d(e,"j",(function(){return x})),n.d(e,"B",(function(){return de})),n.d(e,"G",(function(){return ye})),n.d(e,"H",(function(){return be})),n.d(e,"W",(function(){return Oe})),n.d(e,"X",(function(){return we})),n.d(e,"db",(function(){return ie})),n.d(e,"b",(function(){return ie})),n.d(e,"s",(function(){return Ce})),n.d(e,"lb",(function(){return Me})),n.d(e,"hb",(function(){return Ae})),n.d(e,"gb",(function(){return ke})),n.d(e,"qb",(function(){return Fe})),n.d(e,"rb",(function(){return Ee})),n.d(e,"tb",(function(){return Tt})),n.d(e,"vb",(function(){return Pe})),n.d(e,"fb",(function(){return Ie})),n.d(e,"mb",(function(){return Be})),n.d(e,"t",(function(){return _e})),n.d(e,"a",(function(){return Ye}));var i=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},r=i,o=function(t,e){return!!r(t)&&t.indexOf(e)>-1},a=o,s=function(t,e){if(!r(t))return t;for(var n=[],i=0;ie[r])return 1;if(t[r]n?n:t},ft=ht,pt=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},dt=pt,gt=function(t){return p(t,"Number")},vt=gt,yt=(Number.isInteger&&Number.isInteger,1e-5);function mt(t,e,n){return void 0===n&&(n=yt),Math.abs(t-e)i&&(n=o,i=a)}return n}},xt=function(t,e){if(y(t)){for(var n,i=1/0,r=0;re?(i&&(clearTimeout(i),i=null),s=l,a=t.apply(r,o),i||(r=o=null)):i||!1===n.trailing||(i=setTimeout(c,u)),a};return l.cancel=function(){clearTimeout(i),s=0,i=r=o=null},l},Ee=function(t){return r(t)?Array.prototype.slice.call(t):[]},Te={},Pe=function(t){return t=t||"g",Te[t]?Te[t]+=1:Te[t]=1,t+Te[t]},Ie=function(){};function Be(t){return v(t)?0:r(t)?t.length:Object.keys(t).length} /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */Object.create;function Le(){for(var t=0,e=0,n=arguments.length;el&&o>l)break;if(u.push(r),l-=o,c=c.substr(a),!c)return u.join("")}while(1){if(r=c.substr(0,1),o=Re(r,n),o+s>l)break;if(u.push(r),l-=o,c=c.substr(1),!c)return u.join("")}return""+u.join("")+i},ze=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}(),Ye=ze},8944:function(t,e){},"8ea8":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 s})),n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return h}));var i=n("e897"),r=[1,0,0,0,1,0,0,0,1];function o(t,e,n){if(void 0===n&&(n=r),!e)return null;var o=i["a"].transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]);return o}function a(t,e){return t.x||t.y?i["a"].transform(e||r,[["t",t.x,t.y]]):null}function s(t){var e=[1,0,0],n=[0,0,0];return i["d"].transformMat3(n,e,t),Math.atan2(n[1],n[0])}function c(t,e){var n=[0,0];return i["c"].transformMat3(n,e,t),n}function l(t,e){var n=c(t,[e.minX,e.minY]),i=c(t,[e.maxX,e.minY]),r=c(t,[e.minX,e.maxY]),o=c(t,[e.maxX,e.maxY]),a=Math.min(n[0],i[0],r[0],o[0]),s=Math.max(n[0],i[0],r[0],o[0]),l=Math.min(n[1],i[1],r[1],o[1]),u=Math.max(n[1],i[1],r[1],o[1]);return{x:a,y:l,minX:a,minY:l,maxX:s,maxY:u,width:s-a,height:u-l}}function u(t,e,n,i){if(e){var r=o({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function h(t,e,n){var i=a({x:e,y:n});t.attr("matrix",i)}},"8f50":function(t,e,n){"use strict";function i(t){var e,n,i=t.length;while(i)n=Math.random()*i--|0,e=t[i],t[i]=t[n],t[n]=e;return t}n.d(e,"b",(function(){return i})),e["a"]=function(t){return"object"===typeof t&&"length"in t?t:Array.from(t)}},"8f9b":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.createSensor=void 0;var i=r(n("3688"));function r(t){return t&&t.__esModule?t:{default:t}}var o=function(t){var e=void 0,n=[],r=(0,i["default"])((function(){n.forEach((function(e){e(t)}))})),o=function(){var e=new ResizeObserver(r);return e.observe(t),r(),e},a=function(t){e||(e=o()),-1===n.indexOf(t)&&n.push(t)},s=function(){e.disconnect(),n=[],e=void 0},c=function(t){var i=n.indexOf(t);-1!==i&&n.splice(i,1),0===n.length&&e&&s()};return{element:t,bind:a,destroy:s,unbind:c}};e.createSensor=o},"917c":function(t,e,n){"use strict";n.d(e,"i",(function(){return f})),n.d(e,"b",(function(){return Dl})),n.d(e,"c",(function(){return gi})),n.d(e,"d",(function(){return oi})),n.d(e,"g",(function(){return bi})),n.d(e,"e",(function(){return fr})),n.d(e,"a",(function(){return de})),n.d(e,"f",(function(){return de})),n.d(e,"m",(function(){return Jn})),n.d(e,"p",(function(){return Xi})),n.d(e,"n",(function(){return Di})),n.d(e,"o",(function(){return bn})),n.d(e,"l",(function(){return xe})),n.d(e,"j",(function(){return be})),n.d(e,"k",(function(){return In})),n.d(e,"h",(function(){return Rr})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;this.isTransposed&&(e=[i,n],n=e[0],i=e[1]);var r=this.convertDim(n,"x"),o=this.a*r,a=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(o+a),y:this.center.y+Math.sin(r)*(o+a)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=it["c"].subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=it["a"].angleTo(i,[1,0],!0),o=r*this.a;it["c"].length(i)this.width/i?(e=this.width/i,this.circleCenter={x:this.center.x-(.5-o)*this.width,y:this.center.y-(.5-a)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-o)*e*i,y:this.center.y-(.5-a)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),i=t.x,r=t.y;return this.isTransposed&&(e=[r,i],i=e[0],r=e[1]),i=this.convertDim(i,"x"),r=this.convertDim(r,"y"),{x:n.x+Math.cos(i)*r,y:n.y+Math.sin(i)*r}},e.prototype.invertPoint=function(t){var e,n=this.getCenter(),i=[t.x-n.x,t.y-n.y],r=this,o=r.startAngle,a=r.endAngle;this.isReflect("x")&&(e=[a,o],o=e[0],a=e[1]);var s=[1,0,0,0,1,0,0,0,1];it["a"].leftRotate(s,s,o);var c=[1,0,0];it["d"].transformMat3(c,c,s);var l=[c[0],c[1]],u=it["a"].angleTo(l,i,a0?p:-p;var d=this.invertDim(f,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:p,g.y=this.isTransposed?p:d,g},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);rt.x?t.x:e,n=nt.y?t.y:i,r=r=i&&t<=r}function It(t,e,n){if(Object(h["Q"])(t))return t.padEnd(e,n);if(Object(h["C"])(t)){var i=t.length;if(i=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;et.minX&&this.minYt.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function Rt(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function _t(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 zt(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function Yt(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Nt(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=Pt(e.x,i.x,r.x)&&Pt(e.y,i.y,r.y)}else{var o=t.invert(e);n=Pt(o.x,0,1)&&Pt(o.y,0,1)}return n}function Gt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Xt(t,e){void 0===e&&(e=0);var n,i=t.start,r=t.end,o=t.getWidth(),a=t.getHeight();if(t.isPolar){var s=t.startAngle,c=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:At(l.x,l.y,u+e,s,s)},endState:function(t){var n=(c-s)*t+s,i=At(l.x,l.y,u+e,s,n);return{path:i}},attrs:{path:At(l.x,l.y,u+e,s,c)}}}return n=t.isTransposed?{height:a+2*e}:{width:o+2*e},{type:"rect",startState:{x:i.x-e,y:r.y-e,width:t.isTransposed?o+2*e:0,height:t.isTransposed?0:a+2*e},endState:n,attrs:{x:i.x-e,y:r.y-e,width:o+2*e,height:a+2*e}}}function Vt(t,e){void 0===e&&(e=0);var n=t.start,i=t.end,r=t.getWidth(),o=t.getHeight(),a=Math.min(n.x,i.x),s=Math.min(n.y,i.y);return Dt.fromRange(a-e,s-e,a+r+e,s+o+e)}var Ht=/^(?:(?!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 Wt(t){var e="linear";return Ht.test(t)?e="timeCat":Object(h["Q"])(t)&&(e="cat"),e}function qt(t,e,n){var i=e||[];if(Object(h["M"])(t)||Object(h["K"])(Object(h["o"])(i,t))&&Object(h["G"])(n)){var r=Object(Z["c"])("identity");return new r({field:t.toString(),values:[t]})}var a=Object(h["yb"])(i,t),s=Object(h["s"])(n,"type",Wt(a[0])),c=Object(Z["c"])(s);return new c(o({field:t,values:a},n))}function Kt(t,e){if("identity"!==t.type&&"identity"!==e.type){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);t.change(n)}}function Ut(t){return t.alias||t.field}function Zt(t,e,n){var i,r=t.values,o=r.length;if(1===o)i=[.5,1];else{var a=1,s=0;zt(e)?e.isTransposed?(a=Object(h["s"])(n,"widthRatio.multiplePie",1/1.3),s=1/o*a,i=[s/2,1-s/2]):i=[0,1-1/o]:(s=1/o/2,i=[s,1-s])}return i}function Qt(t){var e=t.values.filter((function(t){return!Object(h["K"])(t)&&!isNaN(t)}));return Math.max.apply(Math,s(s([],e,!1),[Object(h["K"])(t.max)?-1/0:t.max],!1))}function $t(t){var e,n;switch(t){case l.TOP:e={x:0,y:1},n={x:1,y:1};break;case l.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case l.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case l.LEFT:e={x:0,y:0},n={x:0,y:1};break;default:e=n={x:0,y:0}}return{start:e,end:n}}function Jt(t){var e,n;return t.isTransposed?(e={x:0,y:0},n={x:1,y:0}):(e={x:0,y:0},n={x:0,y:1}),{start:e,end:n}}function te(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=$t(e):t.isPolar&&(n=Jt(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}}function ee(t){var e=t.start,n=t.end;return e.x===n.x}function ne(t,e){var n=t.start,i=t.end,r=ee(t);return r?(n.y-i.y)*(e.x-n.x)>0?1:-1:(i.x-n.x)*(n.y-e.y)>0?-1:1}function ie(t,e){var n=Object(h["s"])(t,["components","axis"],{});return Object(h["h"])({},Object(h["s"])(n,["common"],{}),Object(h["h"])({},Object(h["s"])(n,[e],{})))}function re(t,e,n){var i=Object(h["s"])(t,["components","axis"],{});return Object(h["h"])({},Object(h["s"])(i,["common","title"],{}),Object(h["h"])({},Object(h["s"])(i,[e,"title"],{})),n)}function oe(t){var e=t.x,n=t.y,i=t.circleCenter,r=n.start>n.end,o=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),a=[o.x-i.x,o.y-i.y],s=[1,0],c=o.y>i.y?it["c"].angle(a,s):-1*it["c"].angle(a,s),l=c+(e.end-e.start),u=Math.sqrt(Math.pow(o.x-i.x,2)+Math.pow(o.y-i.y,2));return{center:i,radius:u,startAngle:c,endAngle:l}}function ae(t,e){return Object(h["D"])(t)?!1!==t&&{}:Object(h["s"])(t,[e])}function se(t,e){return Object(h["s"])(t,"position",e)}function ce(t,e){return Object(h["s"])(e,["title","text"],Ut(t))}var le=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(h["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,i=t.padding,r=void 0===i?this.cfg.padding:i,o=this.view.createView({region:e,padding:r});o.data(n||[]),t.view=o,this.beforeEachView(o,t);var a=this.cfg.eachView;return a&&a(o,t),this.afterEachView(o,t),o},t.prototype.createContainer=function(){var t=this.view.getLayer(c.FORE);return t.addGroup()},t.prototype.renderViews=function(){this.createFacetViews()},t.prototype.createFacetViews=function(){var t=this;return this.facets.map((function(e){return t.facetToView(e)}))},t.prototype.clearFacetViews=function(){var t=this;Object(h["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,i=this.cfg.spacing;return i.map((function(t,i){return Object(h["M"])(t)?t/(0===i?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return Object(h["j"])(t,(function(t){var r=t[e];Object(h["K"])(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=this.parseSpacing(),o=r[0],a=r[1],s=(1+o)/(0===e?1:e)-o,c=(1+a)/(0===t?1:t)-a,l={x:(s+o)*n,y:(c+a)*i},u={x:l.x+s,y:l.y+c};return{start:l,end:u}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!0,spacing:[0,0],padding:10,fields:[]}},t.prototype.getDefaultTitleCfg=function(){var t=this.view.getTheme().fontFamily;return{style:{fontSize:14,fill:"#666",fontFamily:t}}},t.prototype.processAxis=function(t,e){var n=t.getOptions(),i=n.coordinate,r=t.geometries,o=Object(h["s"])(i,"type","rect");if("rect"===o&&r.length){Object(h["K"])(n.axes)&&(n.axes={});var a=n.axes,s=r[0].getXYFields(),c=s[0],l=s[1],u=ae(a,c),f=ae(a,l);!1!==u&&(n.axes[c]=this.getXAxisOption(c,a,u,e)),!1!==f&&(n.axes[l]=this.getYAxisOption(l,a,f,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(h["k"])(t,(function(t){var n=t.field,i=t.value;return!(!Object(h["K"])(i)&&n)||e[n]===i}))}},t}(),ue={},he=function(t){return ue[Object(h["V"])(t)]},fe=function(t,e){ue[Object(h["V"])(t)]=e},pe=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(h["b"])(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),de=pe,ge=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(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}(de),ve=ge,ye={};function me(t,e){var n=ye[t],i=null;if(n){var r=n.ActionClass,o=n.cfg;i=new r(e,o),i.name=t,i.init()}return i}function be(t){var e=ye[t];return Object(h["s"])(e,"ActionClass")}function xe(t,e,n){ye[t]={ActionClass:e,cfg:n}}function Oe(t,e){var n=new ve(e);return n.callback=t,n.name="callback",n}function je(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i=a[l]?1:0,f=u>Math.PI?1:0,p=n.convert(s),d=Yt(n,p);if(d>=.5)if(u===2*Math.PI){var g={x:(s.x+a.x)/2,y:(s.y+a.y)/2},v=n.convert(g);c.push(["A",d,d,0,f,h,v.x,v.y]),c.push(["A",d,d,0,f,h,p.x,p.y])}else c.push(["A",d,d,0,f,h,p.x,p.y]);return c}function Se(t){Object(h["j"])(t,(function(e,n){var i=e;if("a"===i[0].toLowerCase()){var r=t[n-1],o=t[n+1];o&&"a"===o[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}}))}var Ae=function(t,e,n,i){var r,o,a,s,c,l,u,h=[],f=!!i;if(f){a=i[0],s=i[1];for(var p=0,d=t.length;p=e||r.height>=e?r:null}function Le(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?i.attr("path"):null}function De(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function Re(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function _e(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function ze(t){return t&&t.component&&t.component.isList()}function Ye(t){return t&&t.component&&t.component.isSlider()}function Ne(t){var e=t.event,n=e.target;return n&&"mask"===n.get("name")}function Ge(t,e){var n=t.event.target;if("path"===n.get("type")){var i=Le(t,e);if(!i)return;return Qe(t.view,i)}var r=Be(t,e);return r?Ue(t.view,r):null}function Xe(t,e,n){var i=Be(t,n);if(!i)return null;var r=t.view,o=on(r,e,{x:i.x,y:i.y}),a=on(r,e,{x:i.maxX,y:i.maxY}),s={minX:o.x,minY:o.y,maxX:a.x,maxY:a.y};return Ue(e,s)}function Ve(t){var e=t.geometries,n=[];return Object(h["j"])(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(h["j"])(t.views,(function(t){n=n.concat(Ve(t))})),n}function He(t,e,n){var i=Ve(t);return i.filter((function(t){return qe(t,e)===n}))}function We(t,e){var n=t.geometries,i=[];return Object(h["j"])(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function qe(t,e){var n,i=t.getModel(),r=i.data;return n=Object(h["C"])(r)?r[0][e]:r[e],n}function Ke(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e.x&&t.y<=e.y&&t.maxY>e.y}function nn(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function rn(t,e){var n=t.getCoordinate();return n.invert(e)}function on(t,e,n){var i=rn(t,n);return e.getCoordinate().convert(i)}function an(t,e,n,i){var r=!1;return Object(h["j"])(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1})),r}function sn(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(h["j"])(t.views,(function(t){if(n=sn(t,e),n)return!1})),n}var cn=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;if(t){if(t.target instanceof HTMLElement){var e=this.view.getCanvas(),n=e.getPointByClient(t.clientX,t.clientY);return n}return{x:t.x,y:t.y}}return null},t.prototype.getCurrentShape=function(){return Object(h["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=$e(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&en(i,n):en(i,n)}))},t.prototype.destroy=function(){Object(h["j"])(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),ln=cn,un=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}(),hn=un;function fn(t,e,n){var i=t.split(":"),r=i[0],o=e.getAction(r)||me(r,e);if(!o)throw new Error("There is no action named ".concat(r));var a=i[1];return{action:o,methodName:a,arg:n}}function pn(t){var e=t.action,n=t.methodName,i=t.arg;if(!e[n])throw new Error("Action(".concat(e.name,") doesn't have a method called ").concat(n));e[n](i)}var dn={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},gn=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return r(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(h["j"])(this.steps,(function(e,n){Object(h["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;Object(h["j"])(this.steps,(function(e,n){Object(h["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.offEvent(e.trigger,i)}))}))},e.prototype.initContext=function(){var t=this.view,e=new ln(t);this.context=e;var n=this.steps;Object(h["j"])(n,(function(t){Object(h["j"])(t,(function(t){if(Object(h["I"])(t.action))t.actionObject={action:Oe(t.action,e),methodName:"execute"};else if(Object(h["Q"])(t.action))t.actionObject=fn(t.action,e,t.arg);else if(Object(h["C"])(t.action)){var n=t.action,i=Object(h["C"])(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(h["j"])(n,(function(n,r){t.actionObject.push(fn(n,e,i[r]))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===dn.SHOW_ENABLE)return!0;if(t===dn.PROCESSING)return e===dn.START;if(t===dn.START)return e!==dn.PROCESSING;if(t===dn.END)return e===dn.PROCESSING||e===dn.START;if(t===dn.ROLLBACK){if(n[dn.END])return e===dn.END;if(e===dn.START)return!0}return!1},e.prototype.isAllowExecute=function(t,e){if(this.isAllowStep(t)){var n=this.getKey(t,e);return(!e.once||!this.emitCaches[n])&&(!e.isEnable||e.isEnable(this.context))}return!1},e.prototype.enterStep=function(t){this.currentStepName=t,this.emitCaches={}},e.prototype.afterExecute=function(t,e){t!==dn.SHOW_ENABLE&&this.currentStepName!==t&&this.enterStep(t);var n=this.getKey(t,e);this.emitCaches[n]=!0},e.prototype.getKey=function(t,e){return t+e.trigger+e.action},e.prototype.getActionCallback=function(t,e){var n=this,i=this.context,r=this.callbackCaches,o=e.actionObject;if(e.action&&o){var a=this.getKey(t,e);if(!r[a]){var s=function(r){i.event=r,n.isAllowExecute(t,e)?(Object(h["C"])(o)?Object(h["j"])(o,(function(t){i.event=r,pn(t)})):(i.event=r,pn(o)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};e.debounce?r[a]=Object(h["g"])(s,e.debounce.wait,e.debounce.immediate):e.throttle?r[a]=Object(h["qb"])(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[a]=s}return r[a]}return null},e.prototype.bindEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.addEventListener(n[1],e):"document"===n[0]?document.addEventListener(n[1],e):this.view.on(t,e)},e.prototype.offEvent=function(t,e){var n=t.split(":");"window"===n[0]?window.removeEventListener(n[1],e):"document"===n[0]?document.removeEventListener(n[1],e):this.view.off(t,e)},e}(hn),vn=gn,yn={};function mn(t){return yn[Object(h["V"])(t)]}function bn(t,e){yn[Object(h["V"])(t)]=e}function xn(t,e,n){var i=mn(t);if(!i)return null;if(Object(h["P"])(i)){var r=Object(h["db"])(Object(h["e"])(i),n);return new vn(e,r)}var o=i;return new o(e,n)}function On(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}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}function jn(t){return{title:null,marker:{symbol:"circle",spacing:t.legendMarkerSpacing,style:{r:t.legendCircleMarkerSize,fill:t.legendMarkerColor}},itemName:{spacing:5,style:{fill:t.legendItemNameFillColor,fontFamily:t.fontFamily,fontSize:t.legendItemNameFontSize,lineHeight:t.legendItemNameLineHeight,fontWeight:t.legendItemNameFontWeight,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:"#D8D8D8"},markerStyle:{fill:"#D8D8D8",stroke:"#D8D8D8"}},inactive:{nameStyle:{fill:"#D8D8D8"},markerStyle:{opacity:.2}}},flipPage:!0,pageNavigator:{marker:{style:{size:t.legendPageNavigatorMarkerSize,inactiveFill:t.legendPageNavigatorMarkerInactiveFillColor,inactiveOpacity:t.legendPageNavigatorMarkerInactiveFillOpacity,fill:t.legendPageNavigatorMarkerFillColor,opacity:t.legendPageNavigatorMarkerFillOpacity}},text:{style:{fill:t.legendPageNavigatorTextFillColor,fontSize:t.legendPageNavigatorTextFontSize}}},animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}function wn(t){var e,n={point:{default:{fill:t.pointFillColor,r:t.pointSize,stroke:t.pointBorderColor,lineWidth:t.pointBorder,fillOpacity:t.pointFillOpacity},active:{stroke:t.pointActiveBorderColor,lineWidth:t.pointActiveBorder},selected:{stroke:t.pointSelectedBorderColor,lineWidth:t.pointSelectedBorder},inactive:{fillOpacity:t.pointInactiveFillOpacity,strokeOpacity:t.pointInactiveBorderOpacity}},hollowPoint:{default:{fill:t.hollowPointFillColor,lineWidth:t.hollowPointBorder,stroke:t.hollowPointBorderColor,strokeOpacity:t.hollowPointBorderOpacity,r:t.hollowPointSize},active:{stroke:t.hollowPointActiveBorderColor,strokeOpacity:t.hollowPointActiveBorderOpacity},selected:{lineWidth:t.hollowPointSelectedBorder,stroke:t.hollowPointSelectedBorderColor,strokeOpacity:t.hollowPointSelectedBorderOpacity},inactive:{strokeOpacity:t.hollowPointInactiveBorderOpacity}},area:{default:{fill:t.areaFillColor,fillOpacity:t.areaFillOpacity,stroke:null},active:{fillOpacity:t.areaActiveFillOpacity},selected:{fillOpacity:t.areaSelectedFillOpacity},inactive:{fillOpacity:t.areaInactiveFillOpacity}},hollowArea:{default:{fill:null,stroke:t.hollowAreaBorderColor,lineWidth:t.hollowAreaBorder,strokeOpacity:t.hollowAreaBorderOpacity},active:{fill:null,lineWidth:t.hollowAreaActiveBorder},selected:{fill:null,lineWidth:t.hollowAreaSelectedBorder},inactive:{strokeOpacity:t.hollowAreaInactiveBorderOpacity}},interval:{default:{fill:t.intervalFillColor,fillOpacity:t.intervalFillOpacity},active:{stroke:t.intervalActiveBorderColor,lineWidth:t.intervalActiveBorder},selected:{stroke:t.intervalSelectedBorderColor,lineWidth:t.intervalSelectedBorder},inactive:{fillOpacity:t.intervalInactiveFillOpacity,strokeOpacity:t.intervalInactiveBorderOpacity}},hollowInterval:{default:{fill:t.hollowIntervalFillColor,stroke:t.hollowIntervalBorderColor,lineWidth:t.hollowIntervalBorder,strokeOpacity:t.hollowIntervalBorderOpacity},active:{stroke:t.hollowIntervalActiveBorderColor,lineWidth:t.hollowIntervalActiveBorder,strokeOpacity:t.hollowIntervalActiveBorderOpacity},selected:{stroke:t.hollowIntervalSelectedBorderColor,lineWidth:t.hollowIntervalSelectedBorder,strokeOpacity:t.hollowIntervalSelectedBorderOpacity},inactive:{stroke:t.hollowIntervalInactiveBorderColor,lineWidth:t.hollowIntervalInactiveBorder,strokeOpacity:t.hollowIntervalInactiveBorderOpacity}},line:{default:{stroke:t.lineBorderColor,lineWidth:t.lineBorder,strokeOpacity:t.lineBorderOpacity,fill:null,lineAppendWidth:10,lineCap:"round",lineJoin:"round"},active:{lineWidth:t.lineActiveBorder},selected:{lineWidth:t.lineSelectedBorder},inactive:{strokeOpacity:t.lineInactiveBorderOpacity}}},i=On(t),r=jn(t);return{background:t.backgroundColor,defaultColor:t.brandColor,subColor:t.subColor,semanticRed:t.paletteSemanticRed,semanticGreen:t.paletteSemanticGreen,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,sequenceColors:t.paletteSequence,shapes:{point:["hollow-circle","hollow-square","hollow-bowtie","hollow-diamond","hollow-hexagon","hollow-triangle","hollow-triangle-down","circle","square","bowtie","diamond","hexagon","triangle","triangle-down","cross","tick","plus","hyphen","line"],line:["line","dash","dot","smooth"],area:["area","smooth","line","smooth-line"],interval:["rect","hollow-rect","line","tick"]},sizes:[1,10],geometries:{interval:{rect:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:function(t){var e=t.geometry.coordinate;if(e.isPolar&&e.isTransposed){var i=Ft(t.getModel(),e),r=i.startAngle,o=i.endAngle,a=(r+o)/2,s=7.5,c=s*Math.cos(a),l=s*Math.sin(a);return{matrix:it["a"].transform(null,[["t",c,l]])}}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:o(o({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:o(o({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:o(o({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:o(o({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:o(o({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:o(o({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:o(o({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:o(o({},n.line.selected),{lineCap:null,lineDash:[5.5,1]})}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hvh:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},polygon:{polygon:{default:{style:n.interval.default},active:{style:n.interval.active},inactive:{style:n.interval.inactive},selected:{style:n.interval.selected}}},point:{circle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},square:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},bowtie:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},diamond:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},hexagon:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},triangle:{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"triangle-down":{default:{style:n.point.default},active:{style:n.point.active},inactive:{style:n.point.inactive},selected:{style:n.point.selected}},"hollow-circle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-square":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-bowtie":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-diamond":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-hexagon":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},"hollow-triangle-down":{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},cross:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},tick:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},plus:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},hyphen:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}},line:{default:{style:n.hollowPoint.default},active:{style:n.hollowPoint.active},inactive:{style:n.hollowPoint.inactive},selected:{style:n.hollowPoint.selected}}},area:{area:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},smooth:{default:{style:n.area.default},active:{style:n.area.active},inactive:{style:n.area.inactive},selected:{style:n.area.selected}},line:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"smooth-line":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}},schema:{candle:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}},box:{default:{style:n.hollowInterval.default},active:{style:n.hollowInterval.active},inactive:{style:n.hollowInterval.inactive},selected:{style:n.hollowInterval.selected}}},edge:{line:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},vhv:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},arc:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}}},violin:{violin:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},smooth:{default:{style:n.line.default},active:{style:n.line.active},inactive:{style:n.line.inactive},selected:{style:n.line.selected}},hollow:{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}},"hollow-smooth":{default:{style:n.hollowArea.default},active:{style:n.hollowArea.active},inactive:{style:n.hollowArea.inactive},selected:{style:n.hollowArea.selected}}}},components:{axis:{common:i,top:{position:"top",grid:null,title:null,verticalLimitLength:.5},bottom:{position:"bottom",grid:null,title:null,verticalLimitLength:.5},left:{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3},right:{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3},circle:{title:null,grid:Object(h["h"])({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(h["h"])({},i.grid,{line:{type:"circle"}})}},legend:{common:r,right:{layout:"vertical",padding:t.legendVerticalPadding},left:{layout:"vertical",padding:t.legendVerticalPadding},top:{layout:"horizontal",padding:t.legendHorizontalPadding},bottom:{layout:"horizontal",padding:t.legendHorizontalPadding},continuous:{title:null,background:null,track:{},rail:{type:"color",size:t.sliderRailHeight,defaultLength:t.sliderRailWidth,style:{fill:t.sliderRailFillColor,stroke:t.sliderRailBorderColor,lineWidth:t.sliderRailBorder}},label:{align:"rail",spacing:4,formatter:null,style:{fill:t.sliderLabelTextFillColor,fontSize:t.sliderLabelTextFontSize,lineHeight:t.sliderLabelTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},handler:{size:t.sliderHandlerWidth,style:{fill:t.sliderHandlerFillColor,stroke:t.sliderHandlerBorderColor}},slidable:!0,padding:r.padding}},tooltip:{showContent:!0,follow:!0,showCrosshairs:!1,showMarkers:!0,shared:!1,enterable:!1,position:"auto",marker:{symbol:"circle",stroke:"#fff",shadowBlur:10,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"rgba(0,0,0,0.09)",lineWidth:2,r:4},crosshairs:{line:{style:{stroke:t.tooltipCrosshairsBorderColor,lineWidth:t.tooltipCrosshairsBorder}},text:null,textBackground:{padding:2,style:{fill:"rgba(0, 0, 0, 0.25)",lineWidth:0,stroke:null}},follow:!1},domStyles:(e={},e["".concat(gt["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(gt["TOOLTIP_CSS_CONST"].TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(gt["TOOLTIP_CSS_CONST"].LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(gt["TOOLTIP_CSS_CONST"].LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(gt["TOOLTIP_CSS_CONST"].MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(gt["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 Cn={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Mn={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Sn=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],An=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],kn=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],Fn=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"transparent":e,i=t.subColor,r=void 0===i?"rgba(0,0,0,0.05)":i,o=t.paletteQualitative10,a=void 0===o?Sn:o,s=t.paletteQualitative20,c=void 0===s?An:s,l=t.paletteSemanticRed,u=void 0===l?"#F4664A":l,h=t.paletteSemanticGreen,f=void 0===h?"#30BF78":h,p=t.paletteSemanticYellow,d=void 0===p?"#FAAD14":p,g=t.paletteSequence,v=void 0===g?kn:g,y=t.fontFamily,m=void 0===y?'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"':y,b=t.brandColor,x=void 0===b?a[0]:b;return{backgroundColor:n,brandColor:x,subColor:r,paletteQualitative10:a,paletteQualitative20:c,paletteSemanticRed:u,paletteSemanticGreen:f,paletteSemanticYellow:d,paletteSequence:v,fontFamily:m,axisLineBorderColor:Cn[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Cn[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:Cn[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Cn[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Cn[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Cn[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Cn[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:x,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Cn[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],legendPageNavigatorMarkerSize:12,legendPageNavigatorMarkerInactiveFillColor:Cn[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Cn[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Cn[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Cn[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Cn[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Cn[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Cn[25],annotationArcBorderColor:Cn[15],annotationArcBorder:1,annotationLineBorderColor:Cn[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Cn[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Cn[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Cn[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Cn[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Cn[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Mn[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Cn[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Mn[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Cn[25],cSliderRailHieght:16,cSliderBackgroundFillColor:"#416180",cSliderBackgroundFillOpacity:.05,cSliderForegroundFillColor:"#5B8FF9",cSliderForegroundFillOpacity:.15,cSliderHandlerHeight:24,cSliderHandlerWidth:10,cSliderHandlerFillColor:"#F7F7F7",cSliderHandlerFillOpacity:1,cSliderHandlerHighlightFillColor:"#FFF",cSliderHandlerBorderColor:"#BFBFBF",cSliderHandlerBorder:1,cSliderHandlerBorderRadius:2,cSliderTextFillColor:"#000",cSliderTextFillOpacity:.45,cSliderTextFontSize:12,cSliderTextLineHeight:12,cSliderTextFontWeight:"normal",cSliderTextBorderColor:null,cSliderTextBorder:0,scrollbarTrackFillColor:"rgba(0,0,0,0)",scrollbarThumbFillColor:"rgba(0,0,0,0.15)",scrollbarThumbHighlightFillColor:"rgba(0,0,0,0.2)",pointFillColor:x,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Mn[100],pointBorderOpacity:1,pointActiveBorderColor:Cn[100],pointSelectedBorder:2,pointSelectedBorderColor:Cn[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:x,hollowPointBorderOpacity:.95,hollowPointFillColor:Mn[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Cn[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Cn[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:x,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:x,areaFillOpacity:.25,areaActiveFillColor:x,areaActiveFillOpacity:.5,areaSelectedFillColor:x,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:x,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Cn[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Cn[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:x,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Cn[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Cn[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:x,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Mn[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Cn[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Cn[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};Fn();function En(t){var e=t.styleSheet,n=void 0===e?{}:e,i=a(t,["styleSheet"]),r=Fn(n);return Object(h["h"])({},wn(r),i)}var Tn=En({}),Pn={default:Tn};function In(t){return Object(h["s"])(Pn,Object(h["V"])(t),Pn.default)}function Bn(t,e){Pn[Object(h["V"])(t)]=En(e)}function Ln(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(h["N"])(i,r)}function Dn(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,o=r[r.length-1],a=r[0],s=n.invert(t),c=s.x;return n.isPolar&&c>(1+o)/2&&(c=a),i.translate(i.invert(c))}function Rn(t,e,n){var i=n.coordinate,r=n.getYScale(),o=r.field,a=i.invert(e),s=r.invert(a.y),c=Object(h["m"])(t,(function(t){var e=t[m];return e[o][0]<=s&&e[o][1]>=s}));return c||t[t.length-1]}var _n=Object(h["ab"])((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,o=0;or&&(r=s)}return(r-i)/(n-1)}));function zn(t,e,n){var i=e.getAttribute("position"),r=i.getFields(),o=e.scales,a=Object(h["I"])(n)||!n?r[0]:n,s=o[a],c=s?s.getText(t[a]):t[a]||a;return Object(h["I"])(n)?n(c,t):c}function Yn(t){var e=Object(h["xb"])(t.attributes);return Object(h["l"])(e,(function(t){return Object(h["f"])(y,t.type)}))}function Nn(t){for(var e,n=Yn(t),i=0,r=n;i=j){if(!S){c=A;break}Object(h["C"])(c)||(c=[]),c.push(A)}}Object(h["C"])(c)&&(c=Rn(c,t,n))}else{var k=void 0;if(r.isLinear||"timeCat"===r.type){if((j>r.translate(M)||jr.max||jMath.abs(r.translate(k[m][a])-j)&&(O=k)}var I=_n(n.getXScale());return!c&&Math.abs(r.translate(O[m][a])-j)<=I/2&&(c=O),c}function Hn(t,e,n,i){void 0===n&&(n=""),void 0===i&&(i=!1);var r,a,s=t[m],c=zn(s,e,n),l=e.tooltipOption,u=e.theme.defaultColor,f=[];function p(e,n){if(i||!Object(h["K"])(n)&&""!==n){var r={title:c,data:s,mappingData:t,name:e,value:n,color:t.color||u,marker:!0};f.push(r)}}if(Object(h["O"])(l)){var d=l.fields,g=l.callback;if(g){var v=d.map((function(e){return t[m][e]})),y=g.apply(void 0,v),b=o({data:t[m],mappingData:t,title:c,color:t.color||u,marker:!0},y);f.push(b)}else for(var x=e.scales,O=0,j=d;O');T.appendChild(P);var I=k(T,c,r,a),B=w(p),L=new B.Canvas(o({container:P,pixelRatio:d,localRefresh:y,supportCSSTransform:O},I));return n=t.call(this,{parent:null,canvas:L,backgroundGroup:L.addGroup({zIndex:v.BG}),middleGroup:L.addGroup({zIndex:v.MID}),foregroundGroup:L.addGroup({zIndex:v.FORE}),padding:l,appendPadding:u,visible:b,options:S,limitInPlot:A,theme:F,syncViewPadding:E})||this,n.onResize=Object(h["g"])((function(){n.forceFit()}),300),n.ele=T,n.canvas=L,n.width=I.width,n.height=I.height,n.autoFit=c,n.localRefresh=y,n.renderer=p,n.wrapperElement=P,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(C),n}return r(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(h["j"])(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(f.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(f.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(),F(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=k(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(M["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}(pi),gi=di,vi=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(h["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}();function yi(t){for(var e=[],n=function(n){var i=t[n],r=Object(h["m"])(e,(function(t){return t.color===i.color&&t.name===i.name&&t.value===i.value&&t.title===i.title}));r||e.push(i)},i=0;i1){for(var p=e[0],d=Math.abs(t.y-p[0].y),g=0,v=e;g'+i+"":i};return o(o({},t),{customContent:n})},e.prototype.getTitle=function(t){var e=t[0].title||t[0].name;return this.title=e,e},e.prototype.renderTooltip=function(){var t=this.view.getCanvas(),e={start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}},n=this.getTooltipCfg(),i=new jt(o(o({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,r=t;i-1)return;i.push(t),"active"!==t&&"selected"!==t||null===a||void 0===a||a.toFront()}else{if(-1===c)return;i.splice(c,1),"active"!==t&&"selected"!==t||(this.geometry.zIndexReversed?a.setZIndex(this.geometry.elements.length-this.elementIndex):a.setZIndex(this.elementIndex))}var l=r.drawShape(s,o,this.getOffscreenGroup());i.length?this.syncShapeStyle(a,l,i,null):this.syncShapeStyle(a,l,["reset"],null),l.remove(!0);var u={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",u),Object(gt["propagationDelegate"])(this.shape,"statechange",u)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(h["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,e=t.shape,n=t.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),n&&n.forEach((function(t){var e=t.getCanvasBBox();i.x=Math.min(e.x,i.x),i.y=Math.min(e.y,i.y),i.minX=Math.min(e.minX,i.minX),i.minY=Math.min(e.minY,i.minY),i.maxX=Math.max(e.maxX,i.maxX),i.maxY=Math.max(e.maxY,i.maxY)})),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,i=t.shapeFactory,r=n.stateOption,o=i.defaultShapeType,a=i.theme[e]||i.theme[o];this.statesStyle=Object(h["h"])({},a,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=Object(h["s"])(n,[t,"style"],{}),r=i[e]||i;return Object(h["I"])(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var i=n[t];return i?o(o({},i),{callback:function(){var t;Object(h["I"])(i.callback)&&i.callback(),null===(t=e.geometry)||void 0===t||t.emit(p.AFTER_DRAW_ANIMATE)}}):i}return null},e.prototype.drawShape=function(t,e){var n;void 0===e&&(e=!1);var i=this,r=i.shapeFactory,a=i.container,s=i.shapeType;if(this.shape=r.drawShape(s,t,a),this.shape){this.setShapeInfo(this.shape,t);var c=this.shape.cfg.name;c?Object(h["Q"])(c)&&(this.shape.cfg.name=["element",c]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var l=e?"enter":"appear",u=this.getAnimateCfg(l);u&&(null===(n=this.geometry)||void 0===n||n.emit(p.BEFORE_DRAW_ANIMATE),ki(this.shape,u,{coordinate:r.coordinate,toAttrs:o({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;if(t.cfg.origin=e,t.cfg.element=this,t.isGroup()){var i=t.get("children");i.forEach((function(t){n.setShapeInfo(t,e)}))}},e.prototype.syncShapeStyle=function(t,e,n,i,r){var o,a=this;if(void 0===n&&(n=[]),void 0===r&&(r=0),t&&e){var s=t.get("clipShape"),c=e.get("clipShape");if(this.syncShapeStyle(s,c,n,i),t.isGroup())for(var l=t.get("children"),u=e.get("children"),f=0;f=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if(Object(h["K"])(e)||Object(h["O"])(e))Object(h["O"])(e)&&Object(h["H"])(Object.keys(e),["values"])?Object(h["lb"])(this.attributeOption,t,{fields:e.values}):Object(h["lb"])(this.attributeOption,t,e);else{var i={};Object(h["M"])(e)?i.values=[e]:i.fields=qi(e),n&&(Object(h["I"])(n)?i.callback=n:i.values=n),Object(h["lb"])(this.attributeOption,t,i)}},e.prototype.initAttributes=function(){var t=this,e=this,n=e.attributes,i=e.attributeOption,r=e.theme,a=e.shapeType;this.groupScales=[];var s={},c=function(e){if(i.hasOwnProperty(e)){var c=i[e];if(!c)return{value:void 0};var l=o({},c),u=l.callback,h=l.values,f=l.fields,p=void 0===f?[]:f,d=p.map((function(n){var i=t.scales[n];return i.isCategory&&!s[n]&&y.includes(e)&&(t.groupScales.push(i),s[n]=!0),i}));l.scales=d,"position"!==e&&1===d.length&&"identity"===d[0].type?l.values=d[0].values:u||h||("size"===e?l.values=r.sizes:"shape"===e?l.values=r.shapes[a]||[]:"color"===e&&(d.length?l.values=d[0].values.length<=10?r.colors10:r.colors20:l.values=r.colors10));var g=$(e);n[e]=new g(l)}};for(var l in i){var u=c(l);if("object"===typeof u)return u.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales,n=e.filter((function(t){return t.isCategory})),i=this.groupData(t),r=[],o=0,a=i.length;oo&&(o=l)}var u=this.scaleDefs,f={};rt.max&&!Object(h["s"])(u,[i,"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,i=e.length;n1)for(var u=0;u0}))}function sr(t,e,n){var i=n.data,r=n.origin,o=n.animateCfg,a=n.coordinate,s=Object(h["s"])(o,"update");t.set("data",i),t.set("origin",r),t.set("animateCfg",o),t.set("coordinate",a),t.set("visible",e.get("visible")),t.getChildren().forEach((function(c,l){var u=e.getChildByIndex(l);if(u){c.set("data",i),c.set("origin",r),c.set("animateCfg",o),c.set("coordinate",a);var h=Tt(c,u);s?ki(c,s,{toAttrs:h,coordinate:a}):c.attr(h),u.isGroup()&&sr(c,u,n)}else t.removeChild(c),c.remove(!0)})),Object(h["j"])(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var cr=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var i=this;void 0===n&&(n=!1),this.shapesMap={};var r=this.container,a=this.createOffscreenGroup();if(t.length){for(var s=0,c=t;s0||1===n?i*s:i*s*-1,c},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),r=t.content.length;function o(e,n,i){void 0===i&&(i=!1);var r=e;return Object(h["C"])(r)&&(r=1===t.content.length?i?ur(r):r.length<=2?r[e.length-1]:ur(r):r[n]),r}var a={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Object(h["C"])(e.shape)?e.shape[0]:e.shape,c="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var l=Et(e.x,e.y);a.x=l[0],a.y=l[1]}else"interval"!==this.geometry.type||c?(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(c){var u=Object(h["s"])(e,"nextPoints"),f=Object(h["s"])(e,"points");if(u){var p=i.convert(f[1]),d=i.convert(u[1]);a.x=(p.x+d.x)/2,a.y=(p.y+d.y)/2}else if("pyramid"===s){p=i.convert(f[1]),d=i.convert(f[2]);a.x=(p.x+d.x)/2,a.y=(p.y+d.y)/2}}t.position&&this.setLabelPosition(a,e,n,t.position);var g=this.getLabelOffsetPoint(t,n,r);return a.start={x:a.x,y:a.y},a.x+=g.x,a.y+=g.y,a.color=e.color,a},t.prototype.getLabelAlign=function(t,e,n){var i="center",r=this.getCoordinate();if(r.isTransposed){var o=t.offset;i=o<0?"right":0===o?"center":"left",n>1&&0===e&&("right"===i?i="left":"left"===i&&(i="right"))}return i},t.prototype.getLabelId=function(t){var e=this.geometry,n=e.type,i=e.getXScale(),r=e.getYScale(),o=t[m],a=e.getElementId(t);return"line"===n||"area"===n?a+=" ".concat(o[i.field]):"path"===n&&(a+=" ".concat(o[i.field],"-").concat(o[r.field])),a},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,i=t.canvasRegion,r=t.animateOption,o=this.geometry.coordinate,a=this.labelsRenderer;return a||(a=new lr({container:e,layout:Object(h["s"])(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=a),a.region=i,a.animate=!!r&&Ai("label",o),a},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=n.labelOption,r=n.scales,a=n.coordinate,s=i,c=s.fields,l=s.callback,u=s.cfg,f=c.map((function(t){return r[t]})),p=[];return Object(h["j"])(t,(function(t,n){var i,r=t[m],s=e.getLabelText(r,f);if(l){var d=c.map((function(t){return r[t]}));if(i=l.apply(void 0,d),Object(h["K"])(i))return void p.push(null)}var g=o(o({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:a},u),i);Object(h["I"])(g.position)&&(g.position=g.position(r,t,n));var v=e.getLabelOffset(g.offset||0),y=e.getDefaultLabelCfg(v,g.position);g=Object(h["h"])({},y,g),g.offset=e.getLabelOffset(g.offset||0);var b=g.content;Object(h["I"])(b)?g.content=b(r,t,n):Object(h["S"])(b)&&(g.content=s[0]),p.push(g)})),p},t.prototype.getLabelText=function(t,e){var n=[];return Object(h["j"])(e,(function(e){var i=t[e.field];i=Object(h["C"])(i)?i.map((function(t){return e.getText(t)})):e.getText(i),Object(h["K"])(i)||""===i?n.push(null):n.push(i)})),n},t.prototype.getOffsetVector=function(t){void 0===t&&(t=0);var e=this.getCoordinate(),n=0;return Object(h["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(h["j"])(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(h["j"])(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}(),fr=hr;function pr(t,e,n){if(!t)return n;var i;if(t.callback&&t.callback.length>1){var r=Array(t.callback.length-1).fill("");i=t.mapping.apply(t,s([e],r,!1)).join("")}else i=t.mapping(e).join("");return i||n}var dr={hexagon:function(t,e,n){var i=n/2*Math.sqrt(3);return[["M",t,e-n],["L",t+i,e-n/2],["L",t+i,e+n/2],["L",t,e+n],["L",t-i,e+n/2],["L",t-i,e-n/2],["Z"]]},bowtie:function(t,e,n){var i=n-1.5;return[["M",t-n,e-i],["L",t+n,e+i],["L",t+n,e-i],["L",t-n,e+i],["Z"]]},cross:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e+n],["M",t+n,e-n],["L",t-n,e+n]]},tick:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},plus:function(t,e,n){return[["M",t-n,e],["L",t+n,e],["M",t,e-n],["L",t,e+n]]},hyphen:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},line:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]}},gr=["line","cross","tick","plus","hyphen"];function vr(t,e){return Object(h["I"])(e)?e(t):Object(h["h"])({},t,e)}function yr(t,e){var n=t.symbol;if(Object(h["Q"])(n)&&-1!==gr.indexOf(n)){var i=Object(h["s"])(t,"style",{}),r=Object(h["s"])(i,"lineWidth",1),o=i.stroke||i.fill||e;t.style=Object(h["h"])({},t.style,{lineWidth:r,stroke:o,fill:null})}}function mr(t){var e=t.symbol;Object(h["Q"])(e)&&dr[e]&&(t.symbol=dr[e])}function br(t){return t.startsWith(l.LEFT)||t.startsWith(l.RIGHT)?"vertical":"horizontal"}function xr(t,e,n,i,r){var a=n.getScale(n.type);if(a.isCategory){var s=a.field,c=e.getAttribute("color"),l=e.getAttribute("shape"),u=t.getTheme().defaultColor,f=e.coordinate.isPolar;return a.getTicks().map((function(n,p){var d,g=n.text,v=n.value,y=g,m=a.invert(v),b=0===t.filterFieldData(s,[(d={},d[s]=m,d)]).length;Object(h["j"])(t.views,(function(t){var e;t.filterFieldData(s,[(e={},e[s]=m,e)]).length||(b=!0)}));var x=pr(c,m,u),O=pr(l,m,"point"),j=e.getShapeMarker(O,{color:x,isInPolar:f}),w=r;return Object(h["I"])(w)&&(w=w(y,p,o({name:y,value:m},Object(h["h"])({},i,j)))),j=Object(h["h"])({},i,j,Bt(o({},w),["style"])),yr(j,x),w&&w.style&&(j.style=vr(j.style,w.style)),mr(j),{id:m,name:y,value:m,marker:j,unchecked:b}}))}return[]}function Or(t,e,n){return n.map((function(n,i){var r=e;Object(h["I"])(r)&&(r=r(n.name,i,Object(h["h"])({},t,n)));var o=Object(h["I"])(n.marker)?n.marker(n.name,i,Object(h["h"])({},t,n)):n.marker,a=Object(h["h"])({},t,r,o);return mr(a),n.marker=a,n}))}function jr(t,e){var n=Object(h["s"])(t,["components","legend"],{});return Object(h["h"])({},Object(h["s"])(n,["common"],{}),Object(h["h"])({},Object(h["s"])(n,[e],{})))}function wr(t){return!t&&(null===t||void 0===t||isNaN(t))}function Cr(t){if(Object(h["C"])(t))return wr(t[1].y);var e=t.y;return Object(h["C"])(e)?wr(e[0]):wr(e)}function Mr(t,e,n){if(void 0===e&&(e=!1),void 0===n&&(n=!0),!t.length||1===t.length&&!n)return[];if(e){for(var i=[],r=0,o=t.length;r0&&(l[0][0]="L")),o=o.concat(l)})),o.push(["Z"])}return o}function Zr(t,e,n,i,r){for(var o=kr(t,e,!e,"lineWidth"),a=t.connectNulls,s=t.isInCircle,c=t.points,l=t.showSinglePoint,u=Mr(c,a,l),h=[],f=0,p=u.length;fr&&(r=e),e=e[0]})));for(var f=this.scales[u],p=0,d=t;pe&&(n=n?e/(1+i/n):0,i=e-n),r+o>e&&(r=r?e/(1+o/r):0,o=e-r),[n||0,i||0,r||0,o||0]}function so(t,e,n){var i=[];if(n.isRect){var r=n.isTransposed?{x:n.start.x,y:e[0].y}:{x:e[0].x,y:n.start.y},o=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},a=Object(h["s"])(t,["background","style","radius"]);if(a){var s=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,c=n.isTransposed?n.getWidth():n.getHeight(),l=ao(a,Math.min(s,c)),u=l[0],f=l[1],p=l[2],d=l[3];i.push(["M",r.x,o.y+u]),0!==u&&i.push(["A",u,u,0,0,1,r.x+u,o.y]),i.push(["L",o.x-f,o.y]),0!==f&&i.push(["A",f,f,0,0,1,o.x,o.y+f]),i.push(["L",o.x,r.y-p]),0!==p&&i.push(["A",p,p,0,0,1,o.x-p,r.y]),i.push(["L",r.x+d,r.y]),0!==d&&i.push(["A",d,d,0,0,1,r.x,r.y-d])}else i.push(["M",r.x,r.y]),i.push(["L",o.x,r.y]),i.push(["L",o.x,o.y]),i.push(["L",r.x,o.y]),i.push(["L",r.x,r.y]);i.push(["z"])}if(n.isPolar){var g=n.getCenter(),v=Ft(t,n),y=v.startAngle,m=v.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)};u=Math.sqrt(b(g.x-e[0].x)+b(g.y-e[0].y)),f=Math.sqrt(b(g.x-e[2].x)+b(g.y-e[2].y));i=At(g.x,g.y,u,n.startAngle,n.endAngle,f)}else i=At(g.x,g.y,n.getRadius(),y,m)}return i}function co(t,e,n){var i=n.getWidth(),r=n.getHeight(),o="rect"===n.type,a=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*r/i:s*i/r;return"round"===e?(o?(a.push(["M",t[0].x,t[0].y+c]),a.push(["L",t[1].x,t[1].y-c]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),a.push(["L",t[3].x,t[3].y+c]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(a.push(["M",t[0].x,t[0].y]),a.push(["L",t[1].x,t[1].y]),a.push(["A",s,s,0,0,1,t[2].x,t[2].y]),a.push(["L",t[3].x,t[3].y]),a.push(["A",s,s,0,0,1,t[0].x,t[0].y])),a.push(["z"])):a=oo(t),a}function lo(t,e,n){var i=[];return Object(h["K"])(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i}function uo(t,e){return[e,t]}function ho(t,e,n){var i,r,o,a,c,l,u,h=s([],t,!0),f=h[0],p=h[1],d=h[2],g=h[3],v="number"===typeof n?Array(4).fill(n):n,y=v[0],m=v[1],b=v[2],x=v[3];e.isTransposed&&(i=uo(p,g),p=i[0],g=i[1],r=[x,y,m,b],y=r[0],m=r[1],b=r[2],x=r[3]),e.isReflect("y")&&(o=uo(f,p),f=o[0],p=o[1],a=uo(d,g),d=a[0],g=a[1]),e.isReflect("x")&&(c=uo(f,g),f=c[0],g=c[1],l=uo(p,d),p=l[0],d=l[1]);var O=[],j=function(t){return Math.abs(t)};return u=ao([y,m,b,x],Math.min(j(g.x-f.x),j(p.y-f.y))).map((function(t){return j(t)})),y=u[0],m=u[1],b=u[2],x=u[3],f.ya&&(r=a)}return r}function po(t,e){if(e){var n=Object(h["q"])(t),i=Object(h["yb"])(n,e);return i.length}return t.length}function go(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,o=t.beforeMappingData,a=r.length,s=_t(t.coordinate),c=t.intervalPadding,l=t.dodgePadding,u=t.maxColumnWidth||e.maxColumnWidth,f=t.minColumnWidth||e.minColumnWidth,p=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&r.length>1){r.sort();var v=fo(r,i);a=(i.max-i.min)/v,r.length>a&&(a=r.length)}var y=i.range,m=1/a,b=1;if(n.isPolar?b=n.isTransposed&&a>1?d:g:(i.isLinear&&(m*=y[1]-y[0]),b=p),!Object(h["K"])(c)&&c>=0){var x=c/s;m=(1-(a-1)*x)/a}else m*=b;if(t.getAdjust("dodge")){var O=t.getAdjust("dodge"),j=O.dodgeBy,w=po(o,j);if(!Object(h["K"])(l)&&l>=0){var C=l/s;m=(m-C*(w-1))/w}else!Object(h["K"])(c)&&c>=0?(m*=b,m/=w):m/=w;m=m>=0?m:0}if(!Object(h["K"])(u)&&u>=0){var M=u/s;m>M&&(m=M)}if(!Object(h["K"])(f)&&f>=0){var S=f/s;m0&&!Object(h["s"])(n,[i,"min"])&&e.change({min:0}),o<=0&&!Object(h["s"])(n,[i,"max"])&&e.change({max:0}))}},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.background=this.background,n},e}(Qi),yo=vo,mo=function(t){function e(e){var n=t.call(this,e)||this;n.type="line";var i=e.sortable,r=void 0!==i&&i;return n.sortable=r,n}return r(e,t),e}(Kr),bo=mo,xo=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Oo=["cross","tick","plus","hyphen","line"];function jo(t,e,n,i,r){var a=kr(e,r,!r,"r"),s=t.parsePoints(e.points),c=s[0];if(e.isStack)c=s[1];else if(s.length>1){for(var l=n.addGroup(),u=0,h=s;u2?"weight":"normal";if(t.isInCircle){var s={x:0,y:1};return"normal"===a?n=Lo(r[0],r[1],s):(i.fill=i.stroke,n=Do(r,s)),n=this.parsePath(n),e.addShape("path",{attrs:o(o({},i),{path:n})})}if("normal"===a)return r=this.parsePoints(r),n=kt((r[1].x+r[0].x)/2,r[0].y,Math.abs(r[1].x-r[0].x)/2,Math.PI,2*Math.PI),e.addShape("path",{attrs:o(o({},i),{path:n})});var c=Io(r[1],r[3]),l=Io(r[2],r[0]);return n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],c,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],l,["Z"]],n=this.parsePath(n),i.fill=i.stroke,e.addShape("path",{attrs:o(o({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Xi("edge","smooth",{draw:function(t,e){var n=kr(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(Ro(i[0],i[1]));return e.addShape("path",{attrs:o(o({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var _o=1/3;function zo(t,e){var n=[];n.push({x:t.x,y:t.y*(1-_o)+e.y*_o}),n.push({x:e.x,y:t.y*(1-_o)+e.y*_o}),n.push(e);var i=[["M",t.x,t.y]];return Object(h["j"])(n,(function(t){i.push(["L",t.x,t.y])})),i}function Yo(t){var e=t.x,n=t.y,i=t.y0;return Object(h["C"])(n)?n.map((function(t,n){return{x:Object(h["C"])(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function No(t){var e,n,i=t.x,r=t.y,o=t.y0,a=t.size;Object(h["C"])(r)?(e=r[0],n=r[1]):(e=o,n=r);var s=i+a/2,c=i-a/2;return[{x:i,y:e},{x:i,y:n},{x:c,y:e},{x:s,y:e},{x:c,y:n},{x:s,y:n}]}function Go(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y]]}Xi("edge","vhv",{draw:function(t,e){var n=kr(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(zo(i[0],i[1]));return e.addShape("path",{attrs:o(o({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Xi("interval","funnel",{getPoints:function(t){return t.size=2*t.size,ro(t)},draw:function(t,e){var n=kr(t,!1,!0),i=this.parsePath(lo(t.points,t.nextPoints,!1)),r=e.addShape("path",{attrs:o(o({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Xi("interval","hollow-rect",{draw:function(t,e){var n=kr(t,!0,!1),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var a=Fr(t),s=so(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:o(o({},a),{path:s}),zIndex:-1,name:Ei})}var c=this.parsePath(oo(t.points)),l=i.addShape("path",{attrs:o(o({},n),{path:c}),name:"interval"});return r?i:l},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,stroke:e,fill:null}}:{symbol:"square",style:{r:4,stroke:e,fill:null}}}}),Xi("interval","line",{getPoints:function(t){return Yo(t)},draw:function(t,e){var n=kr(t,!0,!1,"lineWidth"),i=Bt(o({},n),["fill"]),r=this.parsePath(oo(t.points,!1)),a=e.addShape("path",{attrs:o(o({},i),{path:r}),name:"interval"});return a},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t,e-n],["L",t,e+n]]},style:{r:5,stroke:e}}}}),Xi("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,ro(t)},draw:function(t,e){var n=kr(t,!1,!0),i=this.parsePath(lo(t.points,t.nextPoints,!0)),r=e.addShape("path",{attrs:o(o({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Xi("interval","tick",{getPoints:function(t){return No(t)},draw:function(t,e){var n=kr(t,!0,!1),i=this.parsePath(Go(t.points)),r=e.addShape("path",{attrs:o(o({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return[["M",t-n/2,e-n],["L",t+n/2,e-n],["M",t,e-n],["L",t,e+n],["M",t-n/2,e+n],["L",t+n/2,e+n]]},style:{r:5,stroke:e}}}});var Xo=function(t,e,n){var i,r=t.x,o=t.y,a=e.x,s=e.y;switch(n){case"hv":i=[{x:a,y:o}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var c=(a+r)/2;i=[{x:c,y:o},{x:c,y:s}];break;case"vhv":var l=(o+s)/2;i=[{x:r,y:l},{x:a,y:l}];break;default:break}return i};function Vo(t,e){var n=[];return Object(h["j"])(t,(function(i,r){var o=t[r+1];if(n.push(i),o){var a=Xo(i,o,e);n=n.concat(a)}})),n}function Ho(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function Wo(t,e){var n=Mr(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(h["j"])(n,(function(t){var n=Vo(t,e);i=i.concat(Ho(n))})),o(o({},kr(t,!0,!1,"lineWidth")),{path:i})}function qo(t){var e=Object(h["C"])(t)?t:[t],n=e[0],i=e[e.length-1],r=e.length>1?e[1]:n,o=e.length>3?e[3]:i,a=e.length>2?e[2]:r;return{min:n,max:i,min1:r,max1:o,median:a}}function Ko(t,e,n){var i,r=n/2;if(Object(h["C"])(e)){var o=qo(e),a=o.min,s=o.max,c=o.median,l=o.min1,u=o.max1,f=t-r,p=t+r;i=[[f,s],[p,s],[t,s],[t,u],[f,l],[f,u],[p,u],[p,l],[t,l],[t,a],[f,a],[p,a],[f,c],[p,c]]}else{e=Object(h["K"])(e)?.5:e;var d=qo(t),g=(a=d.min,s=d.max,c=d.median,l=d.min1,u=d.max1,e-r),v=e+r;i=[[a,g],[a,v],[a,e],[l,e],[l,g],[l,v],[u,v],[u,g],[u,e],[s,e],[s,g],[s,v],[c,g],[c,v]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function Uo(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["M",t[4].x,t[4].y],["L",t[5].x,t[5].y],["L",t[6].x,t[6].y],["L",t[7].x,t[7].y],["L",t[4].x,t[4].y],["Z"],["M",t[8].x,t[8].y],["L",t[9].x,t[9].y],["M",t[10].x,t[10].y],["L",t[11].x,t[11].y],["M",t[12].x,t[12].y],["L",t[13].x,t[13].y]]}function Zo(t){var e=Object(h["C"])(t)?t:[t],n=e.sort((function(t,e){return e-t}));return It(n,4,n[n.length-1])}function Qo(t,e,n){var i=Zo(e);return[{x:t,y:i[0]},{x:t,y:i[1]},{x:t-n/2,y:i[2]},{x:t-n/2,y:i[1]},{x:t+n/2,y:i[1]},{x:t+n/2,y:i[2]},{x:t,y:i[2]},{x:t,y:i[3]}]}function $o(t){return[["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["M",t[2].x,t[2].y],["L",t[3].x,t[3].y],["L",t[4].x,t[4].y],["L",t[5].x,t[5].y],["Z"],["M",t[6].x,t[6].y],["L",t[7].x,t[7].y]]}function Jo(t,e){var n=Math.abs(t[0].x-t[2].x),i=Math.abs(t[0].y-t[2].y),r=Math.min(n,i);e&&(r=Object(h["c"])(e,0,Math.min(n,i))),r/=2;var o=(t[0].x+t[2].x)/2,a=(t[0].y+t[2].y)/2;return{x:o-r,y:a-r,width:2*r,height:2*r}}Object(h["j"])(["hv","vh","hvh","vhv"],(function(t){Xi("line",t,{draw:function(e,n){var i=Wo(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return Pr(e,t)}})})),Object(h["j"])(Oo,(function(t){Xi("point",t,{draw:function(e,n){return jo(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:dr[t],style:{r:4.5,stroke:n,fill:null}}}})})),Xi("point","image",{draw:function(t,e){var n=kr(t,!1,!1,"r").r,i=this.parsePoints(t.points),r=i[0];if(t.isStack)r=i[1];else if(i.length>1){for(var o=e.addGroup(),a=0,s=i;a0?"left":"right");break;case"left":t.x=s,t.y=(r+a)/2,t.textAlign=Object(h["s"])(t,"textAlign",d>0?"left":"right");break;case"bottom":l&&(t.x=(o+s)/2),t.y=a,t.textAlign=Object(h["s"])(t,"textAlign","center"),t.textBaseline=Object(h["s"])(t,"textBaseline",d>0?"bottom":"top");break;case"middle":l&&(t.x=(o+s)/2),t.y=(r+a)/2,t.textAlign=Object(h["s"])(t,"textAlign","center"),t.textBaseline=Object(h["s"])(t,"textBaseline","middle");break;case"top":l&&(t.x=(o+s)/2),t.y=r,t.textAlign=Object(h["s"])(t,"textAlign","center"),t.textBaseline=Object(h["s"])(t,"textBaseline",d>0?"bottom":"top");break;default:break}},e}(fr),ea=ta,na=Math.PI/2,ia=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(h["M"])(t))n=t;else if(Object(h["Q"])(t)&&-1!==t.indexOf("%")){var i=e.getRadius();e.innerRadius>0&&(i*=1-e.innerRadius),n=.01*parseFloat(t)*i}return n},e.prototype.getLabelItems=function(e){var n=t.prototype.getLabelItems.call(this,e),i=this.geometry.getYScale();return Object(h["W"])(n,(function(t){if(t&&i){var e=i.scale(Object(h["s"])(t.data,i.field));return o(o({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var i=n.getCenter(),r=t.offset;e=Math.abs(t.x-i.x)<1?"center":t.angle>Math.PI||t.angle<=0?r>0?"left":"right":r>0?"right":"left"}else e="center";return e},e.prototype.getLabelPoint=function(t,e,n){var i,r=1,o=t.content[n];this.isToMiddle(e)?i=this.getMiddlePoint(e.points):(1===t.content.length&&0===n?n=1:0===n&&(r=-1),i=this.getArcPoint(e,n));var a=t.offset*r,s=this.getPointAngle(i),c=t.labelEmit,l=this.getCirclePoint(s,a,i,c);return 0===l.r?l.content="":(l.content=o,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,a,c):t.rotate,l.start={x:i.x,y:i.y},l},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(h["C"])(t.x)||Object(h["C"])(t.y)?{x:Object(h["C"])(t.x)?t.x[e]:t.x,y:Object(h["C"])(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Gt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),a=r.getCenter(),s=Yt(r,n);if(0===s)return o(o({},a),{r:s});var c=t;if(r.isTransposed&&s>e&&!i){var l=Math.asin(e/(2*s));c=t+2*l}else s+=e;return{x:a.x+s*Math.cos(c),y:a.y+s*Math.sin(c),r:s}},e.prototype.getLabelRotate=function(t,e,n){var i=t+na;return n&&(i-=na),i&&(i>na?i-=Math.PI:i<-na&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return Object(h["j"])(t,(function(t){i.x+=t.x,i.y+=t.y})),i.x/=n,i.y/=n,i=e.convert(i),i},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(fr),ra=ia,oa=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return r(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(h["h"])({},i,Object(h["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 i;return e<0&&(i=t,i>Math.PI/2&&(i-=Math.PI),i<-Math.PI/2&&(i+=Math.PI)),i},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate(),i=n.getCenter();return e=t.angle<=Math.PI/2&&t.x>=i.x?"left":"right",t.offset<=0&&(e="right"===e?"left":"right"),e},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e,n=this.getCoordinate(),i={x:Object(h["C"])(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(h["C"])(t.x)?t.x[1]:t.x,y:t.y[1]},o=Gt(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=o;else{var a=Gt(n,r);o>=a&&(a+=2*Math.PI),e=o+(a-o)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),r=n.getRadius()+e;return o(o({},St(i.x,i.y,r,t)),{angle:t,r:r})},e}(ra),aa=oa,sa=4;function ca(t,e,n,i,r,o){var a,s=!0,c=i.start,l=i.end,u=Math.min(c.y,l.y),f=Math.abs(c.y-l.y),p=0,d=Number.MIN_VALUE,g=e.map((function(t){return t.y>p&&(p=t.y),t.yf&&(f=p-u);while(s){g.forEach((function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),f-t.size)})),s=!1,a=g.length;while(a--)if(a>0){var v=g[a-1],y=g[a];v.pos+v.size>y.pos&&(v.size+=y.size,v.targets=v.targets.concat(y.targets),v.pos+v.size>f&&(v.pos=f-v.size),g.splice(a,1),s=!0)}}a=0,g.forEach((function(t){var i=u+n/2;t.targets.forEach((function(){e[a].y=t.pos+i,i+=n,a++}))}));for(var m={},b=0,x=t;b0){var c=14,l=a+r,u=2*l+2*c,f={start:o.start,end:o.end},p=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?p[0].push(t):p[1].push(t))})),p.forEach((function(t,n){var i=u/c;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),ca(e,t,c,f,s,n)}))}Object(h["j"])(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=St(s.x,s.y,a,n),r=St(s.x,s.y,a+e/2,n),o=t.x+Object(h["s"])(t,"offsetX",0),c=t.y+Object(h["s"])(t,"offsetY",0),l={x:o-Math.cos(n)*sa,y:c-Math.sin(n)*sa};Object(h["O"])(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(i.x),"".concat(i.y," Q").concat(r.x),"".concat(r.y," ").concat(l.x),l.y].join(",")}}))}}function ua(t,e,n){var i=t.filter((function(t){return!t.invisible}));i.sort((function(t,e){return t.y-e.y}));var r,o=!0,a=n.minY,s=n.maxY,c=Math.abs(a-s),l=0,u=Number.MIN_VALUE,h=i.map((function(t){return t.y>l&&(l=t.y),t.yc&&(c=l-a);while(o){h.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),c-t.size),t.pos=Math.max(0,t.pos)})),o=!1,r=h.length;while(r--)if(r>0){var f=h[r-1],p=h[r];f.pos+f.size>p.pos&&(f.size+=p.size,f.targets=f.targets.concat(p.targets),f.pos+f.size>c&&(f.pos=c-f.size),h.splice(r,1),o=!0)}}r=0,h.forEach((function(t){var n=a+e/2;t.targets.forEach((function(){i[r].y=t.pos+n,n+=e,r++}))}))}var ha=4;function fa(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,o=t.offset,a=St(n.x,n.y,i,r),s=t.x+Object(h["s"])(t,"offsetX",0)*(Math.cos(r)>0?1:-1),c=t.y+Object(h["s"])(t,"offsetY",0)*(Math.sin(r)>0?1:-1),l={x:s-Math.cos(r)*ha,y:c-Math.sin(r)*ha},u=t.labelLine.smooth,f=[],p=l.x-n.x,d=l.y-n.y,g=Math.atan(d/p);if(p<0&&(g+=Math.PI),!1===u){Object(h["O"])(t.labelLine)||(t.labelLine={});var v=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&l.y>a.y&&(v=1),r>=0&&ra.y&&(v=1),r>=Math.PI/2&&rl.y&&(v=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&a.y>l.y&&(v=1);var y=o/2>4?4:Math.max(o/2-1,0),m=St(n.x,n.y,i+y,r),b=St(n.x,n.y,i+o/2,g),x=0;f.push("M ".concat(a.x," ").concat(a.y)),f.push("L ".concat(m.x," ").concat(m.y)),f.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(x," ").concat(v," ").concat(b.x," ").concat(b.y)),f.push("L ".concat(l.x," ").concat(l.y))}else{m=St(n.x,n.y,i+(o/2>4?4:Math.max(o/2-1,0)),r);var O=a.xMath.pow(Math.E,-16)&&f.push.apply(f,["C",l.x+4*O,l.y,2*m.x-a.x,2*m.y-a.y,a.x,a.y]),f.push("L ".concat(a.x," ").concat(a.y))}t.labelLine.path=f.join(" ")}}function pa(t,e,n,i){var r=Object(h["l"])(t,(function(t){return!Object(h["K"])(t)})),o=e[0]&&e[0].get("coordinate");if(o){for(var a=o.getCenter(),s=o.getRadius(),c={},l=0,u=e;ln&&(t.sort((function(t,e){return e.percent-t.percent})),Object(h["j"])(t,(function(t,e){e+1>n&&(c[t.id].set("visible",!1),t.invisible=!0)}))),ua(t,p,j)})),Object(h["j"])(y,(function(t,e){Object(h["j"])(t,(function(t){var n=e===v,i=c[t.id],r=i.getChildByIndex(0);if(r){var l=s+d,u=t.y-a.y,h=Math.pow(l,2),f=Math.pow(u,2),p=h-f>0?h-f:0,g=Math.sqrt(p),y=Math.abs(Math.cos(t.angle)*l);t.x=n?a.x+Math.max(g,y):a.x-Math.max(g,y)}r&&(r.attr("y",t.y),r.attr("x",t.x)),fa(t,o)}))}))}}}var da=4,ga=4,va=4;function ya(t,e,n){var i=e.getCenter(),r=e.getRadius(),o={x:t.x-(n?va:-va),y:t.y},a=St(i.x,i.y,r+da,t.angle),s={x:o.x,y:o.y},c={x:a.x,y:a.y},l=St(i.x,i.y,r,t.angle),u="";if(o.y!==a.y){var f=n?4:-4;s.y=o.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(a.x,o.x-f),o.y0&&t.anglea.y?c.y=s.y:(c.y=a.y,c.x=Math.max(c.x,s.x-f))),t.angle>Math.PI/2&&(s.x=Math.min(a.x,o.x-f),o.y>a.y?c.y=s.y:(c.y=a.y,c.x=Math.min(c.x,s.x-f))),t.angle<-Math.PI/2&&(s.x=Math.min(a.x,o.x-f),o.yo.x||t.x===o.x&&t.y>o.y,i=Object(h["K"])(t.offsetX)?ga:t.offsetX,r=St(o.x,o.y,a+da,t.angle),c=p+i;t.x=o.x+(n?1:-1)*(a+c),t.y=r.y}}));var d=r.start,g=r.end,v="left",y="right",m=Object(h["w"])(t,(function(t){return t.xb&&(b=Math.min(e,Math.abs(d.y-g.y)))}));var x={minX:d.x,maxX:g.x,minY:o.y-b/2,maxY:o.y+b/2};Object(h["j"])(m,(function(t,e){var n=b/f;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(h["j"])(t,(function(t,e){e>n&&(s[t.id].set("visible",!1),t.invisible=!0)}))),ua(t,f,x)}));var O=x.minY,j=x.maxY;Object(h["j"])(m,(function(t,e){var n=e===y;Object(h["j"])(t,(function(t){var e=Object(h["s"])(s,t&&[t.id]);if(e)if(t.yj)e.set("visible",!1);else{var i=e.getChildByIndex(0),o=i.getCanvasBBox(),a={x:n?o.x:o.maxX,y:o.y+o.height/2};Ji(i,t.x-a.x,t.y-a.y),t.labelLine&&ya(t,r,n)}}))}))}}function ba(t,e,n,i){Object(h["j"])(e,(function(t){var e=i.minX,n=i.minY,r=i.maxX,o=i.maxY,a=t.getCanvasBBox(),s=a.minX,c=a.minY,l=a.maxX,u=a.maxY,h=a.x,f=a.y,p=a.width,d=a.height,g=h,v=f;(sr?g=r-p:l>r&&(g-=l-r),c>o?v=o-d:u>o&&(v-=u-o),g===h&&v===f||Ji(t,g-h,v-f)}))}function xa(t,e,n,i){Object(h["j"])(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minXr.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}var Oa=100,ja=function(){function t(t){void 0===t&&(t={}),this.bitmap={};var e=t.xGap,n=void 0===e?1:e,i=t.yGap,r=void 0===i?8:i;this.xGap=n,this.yGap=r}return t.prototype.hasGap=function(t){for(var e=!0,n=this.bitmap,i=Math.round(t.minX),r=Math.round(t.maxX),o=Math.round(t.minY),a=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var c=o;c<=a;c++)if(n[s][c]){e=!1;break}}else if(n[s][o]||n[s][a]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),i=Math.round(t.maxX),r=Math.round(t.minY),o=Math.round(t.maxY),a=n;a<=i;a+=1)e[a]||(e[a]={});for(a=n;a<=i;a+=this.xGap){for(var s=r;s<=o;s+=this.yGap)e[a][s]=!0;e[a][o]=!0}if(1!==this.yGap)for(a=r;a<=o;a+=1)e[n][a]=!0,e[i][a]=!0;if(1!==this.xGap)for(a=n;a<=i;a+=1)e[a][r]=!0,e[a][o]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function wa(t,e,n){void 0===n&&(n=Oa);var i,r=-1,o=t.attr(),a=o.x,s=o.y,c=t.getCanvasBBox(),l=Math.sqrt(c.width*c.width+c.height*c.height),u=-r,h=0,f=0,p=function(t){var e=.1*t;return[e*Math.cos(e),e*Math.sin(e)]};if(e.hasGap(c))return e.fillGap(c),!0;var d=!1,g=0,v={};while(Math.min(Math.abs(h),Math.abs(f))4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function Fa(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var i=t.x,r=t.y;return{x:(i-n.x)*Math.cos(-e)+(r-n.y)*Math.sin(-e)+n.x,y:(n.x-i)*Math.sin(-e)+(r-n.y)*Math.cos(-e)+n.y}}function Ea(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?[Fa(e[0],n,e[0]),Fa(e[1],n,e[0]),Fa(e[2],n,e[0]),Fa(e[3],n,e[0])]:e}function Ta(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(Aa([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function Pa(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height=o.height:a.width>=o.width}function Xa(t,e,n){var i=!!t.getAdjust("stack");return i||e.every((function(e,i){var r=n[i];return Ga(t,e,r)}))}function Va(t,e,n){var i=t.coordinate,r=Dt.fromObject(n.getBBox()),o=ir(e);i.isTransposed?o.attr({x:r.minX+r.width/2,textAlign:"center"}):o.attr({y:r.minY+r.height/2,textBaseline:"middle"})}function Ha(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null===r||void 0===r?void 0:r.geometry;if(o&&"interval"===o.type){var a=Xa(o,e,n);a&&n.forEach((function(t,n){var i=e[n];Va(o,i,t)}))}}}function Wa(t){var e=500,n=[],i=Math.max(Math.floor(t.length/e),1);return Object(h["j"])(t,(function(t,e){e%i===0?n.push(t):t.set("visible",!1)})),n}function qa(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),o=null===r||void 0===r?void 0:r.geometry;if(o&&"interval"===o.type){var a,s=Wa(e),c=o.getXYFields()[0],l=[],u=[],f=Object(h["w"])(s,(function(t){return t.get("data")[c]})),p=Object(h["ub"])(Object(h["W"])(s,(function(t){return t.get("data")[c]})));s.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&u.push(t.pop()),u.push.apply(u,t))};Object(h["mb"])(p)>0&&(a=p.shift(),d(f[a])),Object(h["mb"])(p)>0&&(a=p.pop(),d(f[a])),Object(h["j"])(p.reverse(),(function(t){d(f[t])}));while(u.length>0){var g=u.shift();g.get("visible")&&(ar(g,l)?g.set("visible",!1):l.push(g))}}}}function Ka(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,r),i}function Ua(t,e,n){return t.some((function(t){return n(t,e)}))}function Za(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function Qa(t,e){return Ua(t,e,(function(t,e){var n=ir(t),i=ir(e);return Za(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function $a(t,e,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),c=null===s||void 0===s?void 0:s.geometry;if(c&&"point"===c.type){var l=c.getXYFields(),u=l[0],f=l[1],p=Object(h["w"])(e,(function(t){return t.get("data")[u]})),d=[],g=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(h["W"])(Object(h["T"])(p).reverse(),(function(t){var e=Ka(c,p[t]);while(e.length){var n=e.shift(),i=ir(n);if(Ua(d,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[f]===e.get("data")[f]})))i.set("visible",!1);else{var r=Qa(d,n),o=!1;r&&(i.attr("y",i.attr("y")+2*g),o=Qa(d,n)),o?i.set("visible",!1):d.push(n)}}}))}}}function Ja(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,r),i}function ts(t,e,n){return t.some((function(t){return n(t,e)}))}function es(t,e,n){void 0===n&&(n=0);var i=Math.max(0,Math.min(t.x+t.width+n,e.x+e.width+n)-Math.max(t.x-n,e.x-n)),r=Math.max(0,Math.min(t.y+t.height+n,e.y+e.height+n)-Math.max(t.y-n,e.y-n));return i*r}function ns(t,e){return ts(t,e,(function(t,e){var n=ir(t),i=ir(e);return es(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function is(t,e,n,i,r){var o,a;if(0!==n.length){var s=null===(o=n[0])||void 0===o?void 0:o.get("element"),c=null===s||void 0===s?void 0:s.geometry;if(c&&!(["path","line","area"].indexOf(c.type)<0)){var l=c.getXYFields(),u=l[0],f=l[1],p=Object(h["w"])(e,(function(t){return t.get("data")[u]})),d=[],g=r&&r.offset||(null===(a=t[0])||void 0===a?void 0:a.offset)||12;Object(h["W"])(Object(h["T"])(p).reverse(),(function(t){var e=Ja(c,p[t]);while(e.length){var n=e.shift(),i=ir(n);if(ts(d,n,(function(t,e){return t.get("data")[u]===e.get("data")[u]&&t.get("data")[f]===e.get("data")[f]})))i.set("visible",!1);else{var r=ns(d,n),o=!1;r&&(i.attr("y",i.attr("y")+2*g),o=ns(d,n)),o?i.set("visible",!1):d.push(n)}}}))}}}function rs(){return _a||(_a=document.createElement("canvas").getContext("2d")),_a}var os=Object(h["ab"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,o=e.fontStyle,a=e.fontVariant,s=rs();return s.font=[o,a,r,"".concat(n,"px"),i].join(" "),s.measureText(Object(h["Q"])(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),s([t],Object(h["xb"])(e),!0).join("")})),as=function(t,e,n){var i,r=16,o=os("...",n);i=Object(h["Q"])(t)?t:Object(h["tb"])(t);var a,s,c=e,l=[];if(os(t,n)<=e)return t;while(1){if(a=i.substr(0,r),s=os(a,n),s+o>c&&s>c)break;if(l.push(a),c-=s,i=i.substr(r),!i)return l.join("")}while(1){if(a=i.substr(0,1),s=os(a,n),s+o>c)break;if(l.push(a),c-=s,i=i.substr(1),!i)return l.join("")}return"".concat(l.join(""),"...")};function ss(t,e,n,i,r){if(!(e.length<=0)){var o=(null===r||void 0===r?void 0:r.direction)||["top","right","bottom","left"],a=(null===r||void 0===r?void 0:r.action)||"translate",s=(null===r||void 0===r?void 0:r.margin)||0,c=e[0].get("coordinate");if(c){var l=Vt(c,s),u=l.minX,f=l.minY,p=l.maxX,d=l.maxY;Object(h["j"])(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,r=e.maxX,s=e.maxY,c=e.x,l=e.y,g=e.width,v=e.height,y=c,m=l;if(o.indexOf("left")>=0&&(n=0&&(i=0&&(n>p?y=p-g:r>p&&(y-=r-p)),o.indexOf("bottom")>=0&&(i>d?m=d-v:s>d&&(m-=s-d)),y!==c||m!==l){var b=y-c;if("translate"===a)Ji(t,b,m-l);else if("ellipsis"===a){var x=t.findAll((function(t){return"text"===t.get("type")}));x.forEach((function(t){var e=Object(h["hb"])(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=as(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}function cs(t,e,n){var i={fillOpacity:Object(h["K"])(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(h["K"])(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(h["K"])(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function ls(t,e,n){var i={fillOpacity:0,strokeOpacity:0,opacity:0},r=e.easing,o=e.duration,a=e.delay;t.animate(i,o,r,(function(){t.remove(!0)}),a)}function us(t,e,n){var i,r=e[0],o=e[1];return t.applyToMatrix([r,o,1]),"x"===n?(t.setMatrix(it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",.01,1],["t",r,o]])),i=it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",100,1],["t",r,o]])):"y"===n?(t.setMatrix(it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",1,.01],["t",r,o]])),i=it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",1,100],["t",r,o]])):"xy"===n&&(t.setMatrix(it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",.01,.01],["t",r,o]])),i=it["a"].transform(t.getMatrix(),[["t",-r,-o],["s",100,100],["t",r,o]])),i}function hs(t,e,n,i,r){var o,a,s=n.start,c=n.end,l=n.getWidth(),u=n.getHeight();"y"===r?(o=s.x+l/2,a=i.ys.x?i.x:s.x,a=s.y+u/2):"xy"===r&&(n.isPolar?(o=n.getCenter().x,a=n.getCenter().y):(o=(s.x+c.x)/2,a=(s.y+c.y)/2));var h=us(t,[o,a],r);t.animate({matrix:h},e)}function fs(t,e,n){var i=n.coordinate,r=n.minYPoint;hs(t,e,i,r,"x")}function ps(t,e,n){var i=n.coordinate,r=n.minYPoint;hs(t,e,i,r,"y")}function ds(t,e,n){var i=n.coordinate,r=n.minYPoint;hs(t,e,i,r,"xy")}function gs(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function vs(t,e,n){var i=n.toAttrs,r=i.x,o=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:o},e)}function ys(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=r.points,a=o[0].y-o[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([a,s,1]);var c=it["a"].transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]]);t.setMatrix(c),t.animate({matrix:it["a"].transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])},e)}function ms(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,o=(i.minX+i.maxX)/2,a=r.points,s=a[0].y-a[1].y<=0?i.maxY:i.minY;t.applyToMatrix([o,s,1]);var c=it["a"].transform(t.getMatrix(),[["t",-o,-s],["s",1,.01],["t",o,s]]);t.setMatrix(c),t.animate({matrix:it["a"].transform(t.getMatrix(),[["t",-o,-s],["s",1,100],["t",o,s]])},e)}function bs(t,e){var n,i=Object(Hr["getArcParams"])(t,e),r=i.startAngle,o=i.endAngle;return!Object(h["N"])(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(h["N"])(o,.5*-Math.PI)&&o<.5*-Math.PI&&(o+=2*Math.PI),0===e[5]&&(n=[o,r],r=n[0],o=n[1]),Object(h["N"])(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(h["N"])(o,-.5*Math.PI)&&(o=1.5*Math.PI),{startAngle:r,endAngle:o}}function xs(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 Os(t){var e,n,i,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]}));if(0===r.length)return{startAngle:0,endAngle:0,radius:0,innerRadius:0};var o=r[0],a=r.length>1?r[1]:r[0],s=t.indexOf(o),c=t.indexOf(a),l=xs(t[s-1]),u=xs(t[c-1]),f=bs(l,o),p=f.startAngle,d=f.endAngle,g=bs(u,a),v=g.startAngle,y=g.endAngle;Object(h["N"])(p,v)&&Object(h["N"])(d,y)?(n=p,i=d):(n=Math.min(p,v),i=Math.max(d,y));var m=o[1],b=r[r.length-1][1];return m=0;o--)for(var a=this.getFacetsByLevel(t,o),s=0,c=a;s=n){var r=i.parsePosition([t[s],t[a.field]]);r&&f.push(r)}if(t[s]===u)return!1})),f},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,o=i.end,a={x:Math.min(r.x,o.x),y:Math.min(r.y,o.y)},s=i.getWidth()*e+a.x,c=i.getHeight()*n+a.y;return{x:s,y:c}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,i=t.getWidth(),r=t.getHeight(),o={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:o.x,y:o.y,minX:o.x,minY:o.y,maxX:o.x+i,maxY:o.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var i=this,r=this.view.getCoordinate(),s=this.view.getCanvas(),c={};if(Object(h["K"])(e))return null;if("arc"===t){var l=e,u=l.start,f=l.end,p=a(l,["start","end"]),d=this.parsePosition(u),g=this.parsePosition(f),v=Gt(r,d),y=Gt(r,g);v>y&&(y=2*Math.PI+y),c=o(o({},p),{center:r.getCenter(),radius:Yt(r,d),startAngle:v,endAngle:y})}else if("image"===t){var m=e;u=m.start,f=m.end,p=a(m,["start","end"]);c=o(o({},p),{start:this.parsePosition(u),end:this.parsePosition(f),src:e.src})}else if("line"===t){var b=e;u=b.start,f=b.end,p=a(b,["start","end"]);c=o(o({},p),{start:this.parsePosition(u),end:this.parsePosition(f),text:Object(h["s"])(e,"text",null)})}else if("region"===t){var x=e;u=x.start,f=x.end,p=a(x,["start","end"]);c=o(o({},p),{start:this.parsePosition(u),end:this.parsePosition(f)})}else if("text"===t){var O=this.view.getData(),j=e,w=j.position,C=j.content,M=(p=a(j,["position","content"]),C);Object(h["I"])(C)&&(M=C(O)),c=o(o(o({},this.parsePosition(w)),p),{content:M})}else if("dataMarker"===t){var S=e,A=(w=S.position,S.point),k=S.line,F=S.text,E=S.autoAdjust,T=S.direction;p=a(S,["position","point","line","text","autoAdjust","direction"]);c=o(o(o({},p),this.parsePosition(w)),{coordinateBBox:this.getCoordinateBBox(),point:A,line:k,text:F,autoAdjust:E,direction:T})}else if("dataRegion"===t){var P=e,I=(u=P.start,f=P.end,P.region),B=(F=P.text,P.lineLength);p=a(P,["start","end","region","text","lineLength"]);c=o(o({},p),{points:this.getRegionPoints(u,f),region:I,text:F,lineLength:B})}else if("regionFilter"===t){var L=e,D=(u=L.start,f=L.end,L.apply),R=L.color,_=(p=a(L,["start","end","apply","color"]),this.view.geometries),z=[],Y=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return Y(t)})):z.push(t))};Object(h["j"])(_,(function(t){D?Object(h["f"])(D,t.type)&&Object(h["j"])(t.elements,(function(t){Y(t.shape)})):Object(h["j"])(t.elements,(function(t){Y(t.shape)}))})),c=o(o({},p),{color:R,shapes:z,start:this.parsePosition(u),end:this.parsePosition(f)})}else if("shape"===t){var N=e,G=N.render,X=a(N,["render"]),V=function(t){if(Object(h["I"])(e.render))return G(t,i.view,{parsePosition:i.parsePosition.bind(i)})};c=o(o({},X),{render:V})}else if("html"===t){var H=e,W=H.html,q=(w=H.position,X=a(H,["html","position"]),function(t){return Object(h["I"])(W)?W(t,i.view):W});c=o(o(o({},X),this.parsePosition(w)),{parent:s.get("el").parentNode,html:q})}var K=Object(h["h"])({},n,o(o({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(K.container=this.getComponentContainer(K)),K.animate=this.view.getOptions().animate&&K.animate&&Object(h["s"])(e,"animate",K.animate),K.animateOption=Object(h["h"])({},wi,K.animateOption,e.animateOption),K},e.prototype.isTop=function(t){return Object(h["s"])(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(h["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,i=this.getAnnotationTheme(n),r=this.getAnnotationCfg(n,t,i);Bt(r,["container"]),e.component.update(r),Object(h["A"])(Vs,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),Object(h["A"])(Vs,t.type)&&e.component.render());return e},e.prototype.syncCache=function(t){var e=this,n=new Map(this.cache);return t.forEach((function(t,e){n.set(e,t)})),n.forEach((function(t,i){Object(h["m"])(e.option,(function(t){return i===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(i))})),n},e.prototype.getCacheKey=function(t){return t},e}(vi),Ws=Hs;function qs(t,e){var n=Object(h["h"])({},Object(h["s"])(t,["components","axis","common"]),Object(h["s"])(t,["components","axis",e]));return Object(h["s"])(n,["grid"],{})}function Ks(t,e,n,i){var r=[],o=e.getTicks();return t.isPolar&&o.push({value:1,text:"",tickValue:""}),o.reduce((function(e,o,a){var s=o.value;if(i)r.push({points:[t.convert("y"===n?{x:0,y:s}:{x:s,y:0}),t.convert("y"===n?{x:1,y:s}:{x:s,y:1})]});else if(a){var c=e.value,l=(c+s)/2;r.push({points:[t.convert("y"===n?{x:0,y:l}:{x:l,y:0}),t.convert("y"===n?{x:1,y:l}:{x:l,y:1})]})}return o}),o[0]),r}function Us(t,e,n,i,r){var o=e.values.length,a=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,c=n.value,l=(s+c)/2;return"x"===r?a.push({points:[t.convert({x:i?c:l,y:0}),t.convert({x:i?c:l,y:1})]}):a.push({points:Object(h["W"])(Array(o+1),(function(e,n){return t.convert({x:n/o,y:i?c:l})}))}),n}),s[0]),a}function Zs(t,e){var n=Object(h["s"])(e,"grid");if(null===n)return!1;var i=Object(h["s"])(t,"grid");return!(void 0===n&&null===i)}var Qs=["container"],$s=o(o({},wi),{appear:null}),Js=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(c.BG).addGroup(),n.gridForeContainer=n.view.getLayer(c.FORE).addGroup(),n.axisContainer=n.view.getLayer(c.BG).addGroup(),n.axisForeContainer=n.view.getLayer(c.FORE).addGroup(),n}return r(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(h["j"])(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,a=n.type,s=n.extra,c=s.dim,l=s.scale,h=s.alignTick;if(a===u.AXIS)e.isPolar?"x"===c?i=e.isTransposed?te(e,o):oe(e):"y"===c&&(i=e.isTransposed?oe(e):te(e,o)):i=te(e,o);else if(a===u.GRID)if(e.isPolar){var f=void 0;f=e.isTransposed?"x"===c?Us(e,t.view.getYScales()[0],l,h,c):Ks(e,l,c,h):"x"===c?Ks(e,l,c,h):Us(e,t.view.getXScale(),l,h,c),i={items:f,center:t.view.getCoordinate().getCenter()}}else i={items:Ks(e,l,c,h)};r.update(i)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,i){t.has(i)?e.set(i,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.gridForeContainer.clear(),this.axisContainer.clear(),this.axisForeContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.gridForeContainer.remove(!0),this.axisContainer.remove(!0),this.axisForeContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.updateXAxes=function(t){var e=this.view.getXScale();if(e&&!e.isIdentity){var n=ae(this.option,e.field);if(!1!==n){var i=se(n,l.BOTTOM),r=c.BG,o="x",a=this.view.getCoordinate(),s=this.getId("axis",e.field),u=this.getId("grid",e.field);if(a.isRect){var f=this.cache.get(s);if(f){var p=this.getLineAxisCfg(e,n,i);Bt(p,Qs),f.component.update(p),t.set(s,f)}else f=this.createLineAxis(e,n,r,i,o),this.cache.set(s,f),t.set(s,f);var d=this.cache.get(u);if(d){p=this.getLineGridCfg(e,n,i,o);Bt(p,Qs),d.component.update(p),t.set(u,d)}else d=this.createLineGrid(e,n,r,i,o),d&&(this.cache.set(u,d),t.set(u,d))}else if(a.isPolar){f=this.cache.get(s);if(f){p=a.isTransposed?this.getLineAxisCfg(e,n,l.RADIUS):this.getCircleAxisCfg(e,n,i);Bt(p,Qs),f.component.update(p),t.set(s,f)}else{if(a.isTransposed){if(Object(h["S"])(n))return;f=this.createLineAxis(e,n,r,l.RADIUS,o)}else f=this.createCircleAxis(e,n,r,i,o);this.cache.set(s,f),t.set(s,f)}d=this.cache.get(u);if(d){p=a.isTransposed?this.getCircleGridCfg(e,n,l.RADIUS,o):this.getLineGridCfg(e,n,l.CIRCLE,o);Bt(p,Qs),d.component.update(p),t.set(u,d)}else{if(a.isTransposed){if(Object(h["S"])(n))return;d=this.createCircleGrid(e,n,r,l.RADIUS,o)}else d=this.createLineGrid(e,n,r,l.CIRCLE,o);d&&(this.cache.set(u,d),t.set(u,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(h["j"])(n,(function(n,i){if(n&&!n.isIdentity){var r=n.field,o=ae(e.option,r);if(!1!==o){var a=c.BG,s="y",u=e.getId("axis",r),f=e.getId("grid",r),p=e.view.getCoordinate();if(p.isRect){var d=se(o,0===i?l.LEFT:l.RIGHT),g=e.cache.get(u);if(g){var v=e.getLineAxisCfg(n,o,d);Bt(v,Qs),g.component.update(v),t.set(u,g)}else g=e.createLineAxis(n,o,a,d,s),e.cache.set(u,g),t.set(u,g);var y=e.cache.get(f);if(y){v=e.getLineGridCfg(n,o,d,s);Bt(v,Qs),y.component.update(v),t.set(f,y)}else y=e.createLineGrid(n,o,a,d,s),y&&(e.cache.set(f,y),t.set(f,y))}else if(p.isPolar){g=e.cache.get(u);if(g){v=p.isTransposed?e.getCircleAxisCfg(n,o,l.CIRCLE):e.getLineAxisCfg(n,o,l.RADIUS);Bt(v,Qs),g.component.update(v),t.set(u,g)}else{if(p.isTransposed){if(Object(h["S"])(o))return;g=e.createCircleAxis(n,o,a,l.CIRCLE,s)}else g=e.createLineAxis(n,o,a,l.RADIUS,s);e.cache.set(u,g),t.set(u,g)}y=e.cache.get(f);if(y){v=p.isTransposed?e.getLineGridCfg(n,o,l.CIRCLE,s):e.getCircleGridCfg(n,o,l.RADIUS,s);Bt(v,Qs),y.component.update(v),t.set(f,y)}else{if(p.isTransposed){if(Object(h["S"])(o))return;y=e.createLineGrid(n,o,a,l.CIRCLE,s)}else y=e.createCircleGrid(n,o,a,l.RADIUS,s);y&&(e.cache.set(f,y),t.set(f,y))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,r){var o={component:new vt(this.getLineAxisCfg(t,e,i)),layer:n,direction:i===l.RADIUS?l.NONE:i,type:u.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createLineGrid=function(t,e,n,i,r){var o=this.getLineGridCfg(t,e,i,r);if(o){var a={component:new mt(o),layer:n,direction:l.NONE,type:u.GRID,extra:{dim:r,scale:t,alignTick:Object(h["s"])(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.createCircleAxis=function(t,e,n,i,r){var o={component:new yt(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:u.AXIS,extra:{dim:r,scale:t}};return o.component.set("field",t.field),o.component.init(),o},e.prototype.createCircleGrid=function(t,e,n,i,r){var o=this.getCircleGridCfg(t,e,i,r);if(o){var a={component:new bt(o),layer:n,direction:l.NONE,type:u.GRID,extra:{dim:r,scale:t,alignTick:Object(h["s"])(o,"alignTick",!0)}};return a.component.init(),a}},e.prototype.getLineAxisCfg=function(t,e,n){var i=Object(h["s"])(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),a=te(r,n),s=ce(t,e),c=ie(this.view.getTheme(),n),l=Object(h["s"])(e,["title"])?Object(h["h"])({title:{style:{text:s}}},{title:re(this.view.getTheme(),n,e.title)},e):e,u=Object(h["h"])(o(o({container:i},a),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*ne(a,r.getCenter()):ne(a,r.getCenter()),theme:c}),c,l),f=this.getAnimateCfg(u),p=f.animate,d=f.animateOption;u.animateOption=d,u.animate=p;var g=ee(a),v=Object(h["s"])(u,"verticalLimitLength",g?1/3:.5);if(v<=1){var y=this.view.getCanvas().get("width"),m=this.view.getCanvas().get("height");u.verticalLimitLength=v*(g?y:m)}return u},e.prototype.getLineGridCfg=function(t,e,n,i){if(Zs(ie(this.view.getTheme(),n),e)){var r=qs(this.view.getTheme(),n),o=Object(h["h"])({container:Object(h["s"])(e,["top"])?this.gridForeContainer:this.gridContainer},r,Object(h["s"])(e,"grid"),this.getAnimateCfg(e));return o.items=Ks(this.view.getCoordinate(),t,i,Object(h["s"])(o,"alignTick",!0)),o}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=Object(h["s"])(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),a=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(r.endAngle-r.startAngle)!==2*Math.PI||a.pop();var s=ce(t,e),c=ie(this.view.getTheme(),l.CIRCLE),u=Object(h["s"])(e,["title"])?Object(h["h"])({title:{style:{text:s}}},{title:re(this.view.getTheme(),n,e.title)},e):e,f=Object(h["h"])(o(o({container:i},oe(this.view.getCoordinate())),{ticks:a,verticalFactor:1,theme:c}),c,u),p=this.getAnimateCfg(f),d=p.animate,g=p.animateOption;return f.animate=d,f.animateOption=g,f},e.prototype.getCircleGridCfg=function(t,e,n,i){if(Zs(ie(this.view.getTheme(),n),e)){var r=qs(this.view.getTheme(),l.RADIUS),o=Object(h["h"])({container:Object(h["s"])(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},r,Object(h["s"])(e,"grid"),this.getAnimateCfg(e)),a=Object(h["s"])(o,"alignTick",!0),s="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=Us(this.view.getCoordinate(),s,t,a,i),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return"".concat(t,"-").concat(e,"-").concat(n.type)},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(h["s"])(t,"animate"),animateOption:t&&t.animateOption?Object(h["h"])({},$s,t.animateOption):$s}},e}(vi),tc=Js;function ec(t,e,n){return n===l.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===l.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===l.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===l.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===l.TOP_LEFT||n===l.LEFT_TOP?[t.tl.x,t.tl.y]:n===l.TOP_RIGHT||n===l.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===l.BOTTOM_LEFT||n===l.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===l.BOTTOM_RIGHT||n===l.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function nc(t,e){return Object(h["D"])(t)?!1!==t&&{}:Object(h["s"])(t,[e],t)}function ic(t){return Object(h["s"])(t,"position",l.BOTTOM)}var rc=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(c.FORE).addGroup(),n}return r(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(h["j"])(this.components,(function(e){var n=e.component,i=e.direction,r=br(i),o=n.get("maxWidthRatio"),a=n.get("maxHeightRatio"),s=t.getCategoryLegendSizeCfg(r,o,a),c=n.get("maxWidth"),l=n.get("maxHeight");n.update({maxWidth:Math.min(s.maxWidth,c||0),maxHeight:Math.min(s.maxHeight,l||0)});var u=n.get("padding"),h=n.getLayoutBBox(),f=new Dt(h.x,h.y,h.width,h.height).expand(u),p=ec(t.view.viewBBox,f,i),d=p[0],g=p[1],v=ec(t.layoutBBox,f,i),y=v[0],m=v[1],b=0,x=0;i.startsWith("top")||i.startsWith("bottom")?(b=d,x=m):(b=y,x=g),n.setLocation({x:b+u[3],y:x+u[0]}),t.layoutBBox=t.layoutBBox.cut(f,i)}))},e.prototype.update=function(){var t=this;this.option=this.view.getOptions().legends;var e={},n=function(n,i,r){var o=t.getId(r.field),a=t.getComponentById(o);if(a){var s=void 0,c=nc(t.option,r.field);!1!==c&&(Object(h["s"])(c,"custom")?s=t.getCategoryCfg(n,i,r,c,!0):r.isLinear?s=t.getContinuousCfg(n,i,r,c):r.isCategory&&(s=t.getCategoryCfg(n,i,r,c))),s&&(Bt(s,["container"]),a.direction=ic(c),a.component.update(s),e[o]=!0)}else{var l=t.createFieldLegend(n,i,r);l&&(l.component.init(),t.components.push(l),e[o]=!0)}};if(Object(h["s"])(this.option,"custom")){var i="global-custom",r=this.getComponentById(i);if(r){var o=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Bt(o,["container"]),r.component.update(o),e[i]=!0}else{var a=this.createCustomLegend(void 0,void 0,void 0,this.option);if(a){a.init();var s=c.FORE,l=ic(this.option);this.components.push({id:i,component:a,layer:s,direction:l,type:u.LEGEND,extra:void 0}),e[i]=!0}}}else this.loopLegends(n);var f=[];Object(h["j"])(this.getComponents(),(function(t){e[t.id]?f.push(t):t.component.destroy()})),this.components=f},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(h["j"])(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e=this.view.getRootView()===this.view;if(e){var n=this.getGeometries(this.view),i={};Object(h["j"])(n,(function(e){var n=e.getGroupAttributes();Object(h["j"])(n,(function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(t(e,n,r),i[r.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var i,r=nc(this.option,n.field),o=c.FORE,a=ic(r);if(!1!==r&&(Object(h["s"])(r,"custom")?i=this.createCustomLegend(t,e,n,r):n.isLinear?i=this.createContinuousLegend(t,e,n,r):n.isCategory&&(i=this.createCategoryLegend(t,e,n,r))),i)return i.set("field",n.field),{id:this.getId(n.field),component:i,layer:o,direction:a,type:u.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new xt(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,Bt(i,["value"]));return new Ot(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new xt(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),o=Object(h["m"])(r,(function(t){return 0===t.value})),a=Object(h["m"])(r,(function(t){return 1===t.value})),s=r.map((function(t){var i=t.value,r=t.tickValue,o=e.mapping(n.invert(i)).join("");return{value:r,attrValue:o,color:o,scaleValue:i}}));o||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),a||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var c={min:Object(h["z"])(s).value,max:Object(h["U"])(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(c.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(c.colors=s.map((function(t){return t.attrValue})));var l=this.container,u=ic(i),f=br(u),p=Object(h["s"])(i,"title");return p&&(p=Object(h["h"])({text:Ut(n)},p)),c.container=l,c.layout=f,c.title=p,c.animateOption=wi,this.mergeLegendCfg(c,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,r){var o=this.container,a=Object(h["s"])(i,"position",l.BOTTOM),s=jr(this.view.getTheme(),a),c=Object(h["s"])(s,["marker"]),u=Object(h["s"])(i,"marker"),f=br(a),p=Object(h["s"])(s,["pageNavigator"]),d=Object(h["s"])(i,"pageNavigator"),g=r?Or(c,u,i.items):xr(this.view,t,e,c,u),v=Object(h["s"])(i,"title");v&&(v=Object(h["h"])({text:n?Ut(n):""},v));var y=Object(h["s"])(i,"maxWidthRatio"),m=Object(h["s"])(i,"maxHeightRatio"),b=this.getCategoryLegendSizeCfg(f,y,m);b.container=o,b.layout=f,b.items=g,b.title=v,b.animateOption=wi,b.pageNavigator=Object(h["h"])({},p,d);var x=this.mergeLegendCfg(b,i,a);x.reversed&&x.items.reverse();var O=Object(h["s"])(x,"maxItemWidth");return O&&O<=1&&(x.maxItemWidth=this.view.viewBBox.width*O),x},e.prototype.mergeLegendCfg=function(t,e,n){var i=n.split("-")[0],r=jr(this.view.getTheme(),i);return Object(h["h"])({},r,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(h["m"])(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=O),void 0===n&&(n=O);var i=this.view.viewBBox,r=i.width,o=i.height;return"vertical"===t?{maxWidth:r*e,maxHeight:o}:{maxWidth:r,maxHeight:o*n}},e}(vi),oc=rc,ac=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=h["fb"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t[0],i=t[1];n.start=e,n.end=i,n.changeViewData(e,i)},n.container=n.view.getLayer(c.FORE).addGroup(),n.onChangeFn=Object(h["qb"])(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(f.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(f.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r(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(f.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(f.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(h["K"])(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!Object(h["G"])(i)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=n[0],r=(n[1],n[2],n[3]),a=this.slider.component.getLayoutBBox(),s=new Dt(a.x,a.y,Math.min(a.width,e),a.height).expand(n),c=this.getMinMaxText(this.start,this.end),u=c.minText,h=c.maxText,f=ec(this.view.viewBBox,s,l.BOTTOM),p=(f[0],f[1]),d=ec(this.view.coordinateBBox,s,l.BOTTOM),g=d[0];d[1];this.slider.component.update(o(o({},this.getSliderCfg()),{x:g+r,y:p+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(s,l.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new gt["Slider"](o({container:this.container},t));return e.init(),{component:e,layer:c.FORE,direction:l.BOTTOM,type:u.SLIDER}},e.prototype.updateSlider=function(){var t=this.getSliderCfg();if(this.width){var e=this.getMinMaxText(this.start,this.end),n=e.minText,i=e.maxText;t=o(o({},t),{width:this.width,start:this.start,end:this.end,minText:n,maxText:i})}return this.slider.component.update(t),this.slider},e.prototype.measureSlider=function(){var t=this.getSliderCfg().width;this.width=t},e.prototype.getSliderCfg=function(){var t={height:16,start:0,end:1,minText:"",maxText:"",x:0,y:0,width:this.view.coordinateBBox.width};if(Object(h["O"])(this.option)){var e=o({data:this.getData()},Object(h["s"])(this.option,"trendCfg",{}));t=Object(h["h"])({},t,this.getThemeOptions(),this.option),t=o(o({},t),{trendCfg:e})}return t.start=Object(h["c"])(Math.min(Object(h["K"])(t.start)?0:t.start,Object(h["K"])(t.end)?1:t.end),0,1),t.end=Object(h["c"])(Math.max(Object(h["K"])(t.start)?0:t.start,Object(h["K"])(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var i=n[0],r=i.field,o=i.ticks;return t.reduce((function(t,n){return n[r]===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(h["s"])(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=!0,o=Object(h["yb"])(n,i.field),a=r?o:o.reverse(),s=Object(h["mb"])(n);if(!i||!s)return{};var c=Object(h["mb"])(a),l=Math.floor(t*(c-1)),u=Math.floor(e*(c-1)),f=Object(h["s"])(a,[l]),p=Object(h["s"])(a,[u]),d=this.getSliderCfg().formatter;return d&&(f=d(f,n[l],l),p=d(p,n[u],u)),{minText:f,maxText:p}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(h["mb"])(n);if(i&&r){var o=!0,a=Object(h["yb"])(n,i.field),s=o?a:a.reverse(),c=Object(h["mb"])(s),l=Math.floor(t*(c-1)),u=Math.floor(e*(c-1));this.view.filter(i.field,(function(t,e){var n=s.indexOf(t);return!(n>-1)||Pt(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}(vi),sc=ac,cc=0,lc=8,uc=32,hc=20,fc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=h["fb"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=Object(h["c"])(e,0,1);var r=n.view.getOptions().animate;i||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(r)},n.container=n.view.getLayer(c.FORE).addGroup(),n.onChangeFn=Object(h["qb"])(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(f.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(f.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return r(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(f.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(f.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),r=new Dt(i.x,i.y,Math.min(i.width,e),i.height).expand(n),a=this.getScrollbarComponentCfg(),s=void 0,c=void 0;if(a.isHorizontal){var u=ec(this.view.viewBBox,r,l.BOTTOM),h=(u[0],u[1]),f=ec(this.view.coordinateBBox,r,l.BOTTOM),p=f[0];f[1];s=p,c=h}else{var d=ec(this.view.viewBBox,r,l.RIGHT),g=(d[0],h=d[1],ec(this.view.viewBBox,r,l.RIGHT));p=g[0],g[1];s=p,c=h}s+=n[3],c+=n[0],this.trackLen?this.scrollbar.component.update(o(o({},a),{x:s,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(o(o({},a),{x:s,y:c})),this.view.viewBBox=this.view.viewBBox.cut(r,a.isHorizontal?l.BOTTOM:l.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(h["s"])(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(h["s"])(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,r=a(n,["thumbHighlightColor"]);return{default:Object(h["h"])({},Object(h["s"])(e,["default","style"],{}),r),hover:Object(h["h"])({},Object(h["s"])(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),i=n.trackLen,r=n.thumbLen;this.trackLen=i,this.thumbLen=r,this.xScaleCfg={field:t.field,values:t.values||[]},this.yScalesCfg=e},e.prototype.getScrollRange=function(){var t=Math.floor((this.cnt-this.step)*Object(h["c"])(this.ratio,0,1)),e=Math.min(t+this.step-1,this.cnt-1);return[t,e]},e.prototype.changeViewData=function(t,e){var n=this,i=t[0],r=t[1],o=this.getValidScrollbarCfg().type,a="vertical"!==o,s=Object(h["yb"])(this.data,this.xScaleCfg.field),c=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})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=c.indexOf(t);return!(e>-1)||Pt(e,i,r)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new gt["Scrollbar"](o(o({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:c.FORE,direction:e?l.BOTTOM:l.RIGHT,type:u.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?o(o({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):o({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,i=e.categorySize,r="vertical"!==n;return Math.floor((r?t.width:t.height)/i)},e.prototype.getCnt=function(){if(this.cnt)return this.cnt;var t=this.view.getXScale(),e=this.getScrollbarData(),n=Object(h["yb"])(e,t.field);return Object(h["mb"])(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),r=i.type,a=i.padding,s=i.width,c=i.height,l=i.style,u="vertical"!==r,f=a[0],p=a[1],d=a[2],g=a[3],v=u?{x:e.minX+g,y:n.maxY-c-d}:{x:n.maxX-s-p,y:e.minY+f},y=this.getStep(),m=this.getCnt(),b=u?e.width-g-p:e.height-f-d,x=Math.max(b*Object(h["c"])(y/m,0,1),hc);return o(o({},this.getThemeOptions()),{x:v.x,y:v.y,size:u?c:s,isHorizontal:u,trackLen:b,thumbLen:x,thumbOffset:0,theme:this.getScrollbarTheme(l)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:uc,width:lc,height:lc,padding:[0,0,0,0],animate:!0,style:{}};return Object(h["O"])(this.option)&&(t=o(o({},t),this.option)),Object(h["O"])(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[cc,0,cc,0]:[0,cc,0,cc]),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=s([],n,!0).reverse()),n},e}(vi),pc=fc,dc={fill:"#CCD6EC",opacity:.3};function gc(t,e,n){var i=Un(t,e,n);if(i.length){i=Object(h["q"])(i);for(var r=0,o=i;r1){for(var g=i[0],v=Math.abs(e.y-g[0].y),y=0,m=i;yp.maxY&&(p=e)):(e.minXp.maxX&&(p=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 g=e.backgroundGroup,v=e.coordinateBBox,y=void 0;if(u.isRect){var m=e.getXScale(),b=t||{},x=b.appendRatio,O=b.appendWidth;Object(h["K"])(O)&&(x=Object(h["K"])(x)?m.isLinear?0:.25:x,O=u.isTransposed?x*p.height:x*f.width);var j=void 0,w=void 0,C=void 0,M=void 0;u.isTransposed?(j=v.minX,w=Math.min(p.minY,f.minY)-O,C=v.width,M=d.height+2*O):(j=Math.min(f.minX,p.minX)-O,w=v.minY,C=d.width+2*O,M=v.height),y=[["M",j,w],["L",j+C,w],["L",j+C,w+M],["L",j,w+M],["Z"]]}else{var S=Object(h["z"])(c),A=Object(h["U"])(c),k=Ft(S.getModel(),u).startAngle,F=Ft(A.getModel(),u).endAngle,E=u.getCenter(),T=u.getRadius(),P=u.innerRadius*T;y=At(E.x,E.y,T,k,F,P)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var I=Object(h["s"])(t,"style",dc);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:o(o({},I),{path:y})})}}}},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}(de),yc=vc,mc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r(e,t),e.prototype.show=function(){var t=this.context,e=t.event,n=t.view,i=n.isTooltipLocked();if(!i){var r=this.timeStamp,o=+new Date,a=Object(h["s"])(t.view.getOptions(),"tooltip.showDelay",16);if(o-r>a){var s=this.location,c={x:e.x,y:e.y};s&&Object(h["H"])(s,c)||this.showTooltip(n,c),this.timeStamp=o,this.location=c}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,i=n.clientX,r=n.clientY;e.isCursorEntered({x:i,y:r})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(de),bc=mc,xc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.showTooltip=function(t,e){var n=nn(t);Object(h["j"])(n,(function(n){var i=on(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=nn(t);Object(h["j"])(e,(function(t){t.hideTooltip()}))},e}(bc),Oc=xc,jc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return r(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date;if(i-n>16){var r=this.location,o={x:e.x,y:e.y};r&&Object(h["H"])(r,o)||this.showTooltip(o),this.timeStamp=i,this.location=o}},e.prototype.hide=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=i.get("tip");this.tooltip.update(o({title:r},t)),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=e.getTheme(),a=Object(h["s"])(r,["components","tooltip","domStyles"],{}),s=new jt({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:o({},Object(h["h"])({},a,(t={},t[gt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%"},t[gt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all"},t)))});s.init(),s.setCapture(!1),this.tooltip=s},e}(de),wc=jc,Cc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return r(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=We(t,this.stateName);Object(h["j"])(n,(function(t){e.setElementState(t,!1)}))},e}(de),Mc=Cc;function Sc(t){return Object(h["s"])(t.get("delegateObject"),"item")}var Ac=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return r(e,t),e.prototype.isItemIgnore=function(t,e){var n=this.ignoreListItemStates,i=n.filter((function(n){return e.hasState(t,n)}));return!!i.length},e.prototype.setStateByComponent=function(t,e,n){var i=this.context.view,r=t.get("field"),o=Ve(i);this.setElementsStateByItem(o,r,e,n)},e.prototype.setStateByElement=function(t,e){this.setElementState(t,e)},e.prototype.isMathItem=function(t,e,n){var i=this.context.view,r=sn(i,e),o=qe(t,e);return!Object(h["K"])(o)&&n.name===r.getText(o)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;Object(h["j"])(t,(function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=De(this.context);if(e)_e(this.context)&&this.setStateByElement(e,t);else{var n=Re(this.context);if(ze(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var o=this.context.event.gEvent;if(o&&o.fromShape&&o.toShape&&Sc(o.fromShape)===Sc(o.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=De(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Mc),kc=Ac,Fc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(kc),Ec=Fc,Tc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return r(e,t),e.prototype.getColorScale=function(t,e){var n=e.geometry.getAttribute("color");if(!n)return null;var i=t.getScaleByField(n.getFields()[0]);return i},e.prototype.getLinkPath=function(t,e){var n=this.context.view,i=n.getCoordinate().isTransposed,r=t.shape.getCanvasBBox(),o=e.shape.getCanvasBBox(),a=i?[["M",r.minX,r.minY],["L",o.minX,o.maxY],["L",o.maxX,o.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",o.minX,o.minY],["L",o.minX,o.maxY],["L",r.maxX,r.maxY],["Z"]];return a},e.prototype.addLinkShape=function(t,e,n,i){var r={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:o(o({},Object(h["h"])({},r,Object(h["I"])(i)?i(r,e):i)),{path:this.getLinkPath(e,n)})})},e.prototype.linkByElement=function(t,e){var n=this,i=this.context.view,r=this.getColorScale(i,t);if(r){var o=qe(t,r.field);if(!this.cache[o]){var a=He(i,r.field,o),s=this.linkGroup,c=s.addGroup();this.cache[o]=c;var l=a.length;Object(h["j"])(a,(function(t,i){if(i=0}),e)},e}(Bc),el=tl,nl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Ve(n);Vc(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;Xc(t)},e}(_c),il=nl,rl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(Bc),ol=rl,al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(kc),sl=al,cl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(_c),ll=cl,ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return r(e,t),e.prototype.getTriggerListInfo=function(){var t=Re(this.context),e=null;return ze(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=$e(e),i=[];return Object(h["j"])(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&i.push(e)})),i},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(h["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 i=this.context.view,r=sn(i,e);return r&&r.isCategory},e.prototype.allowSetStateByItem=function(t,e){var n=this.ignoreItemStates;if(n.length){var i=n.filter((function(n){return e.hasState(t,n)}));return 0===i.length}return!0},e.prototype.setStateByElement=function(t,e,n){var i=t.get("field"),r=this.context.view,o=sn(r,i),a=qe(e,i),s=o.getText(a);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=De(this.context);if(n){var i=this.getAllowComponents();Object(h["j"])(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=Re(this.context);if(ze(r)){var o=r.item,a=r.component;this.allowSetStateByElement(a)&&this.allowSetStateByItem(o,a)&&this.setItemState(a,o,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,r=t.getItems();Object(h["j"])(r,(function(r){r.name===e&&i.setItemState(t,r,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=this.hasState(e,n);this.setItemState(e,n,!i)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(de),hl=ul,fl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return r(e,t),e.prototype.active=function(){this.setState()},e}(hl),pl=fl,dl="inactive",gl="active";function vl(t){var e=t.getItems();Object(h["j"])(e,(function(e){t.hasState(e,gl)&&t.setItemState(e,gl,!1),t.hasState(e,dl)&&t.setItemState(e,dl,!1)}))}var yl="inactive",ml="active",bl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=ml,e.ignoreItemStates=["unchecked"],e}return r(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var i=t.getItems();if(n)Object(h["j"])(i,(function(n){e(n)?(t.hasState(n,yl)&&t.setItemState(n,yl,!1),t.setItemState(n,ml,!0)):t.hasState(n,ml)||t.setItemState(n,yl,!0)}));else{var r=t.getItemsByState(ml),o=!0;Object(h["j"])(r,(function(t){if(!e(t))return o=!1,!1})),o?this.clear():Object(h["j"])(i,(function(n){e(n)&&(t.hasState(n,ml)&&t.setItemState(n,ml,!1),t.setItemState(n,yl,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)vl(t.list);else{var e=this.getAllowComponents();Object(h["j"])(e,(function(t){t.clearItemsState(ml),t.clearItemsState(yl)}))}},e}(hl),xl=bl,Ol=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return r(e,t),e.prototype.selected=function(){this.setState()},e}(hl),jl=Ol,wl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return r(e,t),e.prototype.unchecked=function(){this.setState()},e}(hl),Cl=wl,Ml="unchecked",Sl="checked",Al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Sl,e}return r(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var i=t.getItems();n&&Object(h["j"])(i,(function(n){e(n)?(t.hasState(n,Ml)&&t.setItemState(n,Ml,!1),t.setItemState(n,Sl,!0)):t.hasState(n,Sl)||t.setItemState(n,Ml,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=!Object(h["nb"])(e.getItems(),(function(t){return e.hasState(t,Ml)}));i||e.hasState(n,Ml)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(h["j"])(t,(function(t){t.clearItemsState(Sl),t.clearItemsState(Ml)}))},e}(hl),kl=Al,Fl=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 r(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.emitEvent=function(t){var e="mask:".concat(t),n=this.context.view,i=this.context.event;n.emit(e,{target:this.maskShape,shape:this.maskShape,points:this.points,x:i.x,y:i.y})},e.prototype.createMask=function(){var t=this.context.view,e=this.getMaskAttrs(),n=t.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:o({fill:"#C5D4EB",opacity:.3},e)});return n},e.prototype.getMaskPath=function(){return[]},e.prototype.show=function(){this.maskShape&&(this.maskShape.show(),this.emitEvent("show"))},e.prototype.start=function(t){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(null===t||void 0===t?void 0:t.maskStyle),this.emitEvent("start")},e.prototype.moveStart=function(){this.moving=!0,this.preMovePoint=this.getCurrentPoint()},e.prototype.move=function(){if(this.moving&&this.maskShape){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,r=this.points;Object(h["j"])(r,(function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(t){var e=Object(h["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}(de),El=Fl,Tl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return r(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(h["U"])(this.points),n=0,i=0,r=0;if(t.length){var o=t[0];n=Je(o,e)/2,i=(e.x+o.x)/2,r=(e.y+o.y)/2}return{x:i,y:r,r:n}},e}(El),Pl=Tl,Il=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return r(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(h["z"])(t),end:Object(h["U"])(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.abs(n.x-e.x),a=Math.abs(n.y-e.y);return{x:i,y:r,width:o,height:a}},e}(El),Bl=Il;function Ll(t){t.x=Object(h["c"])(t.x,0,1),t.y=Object(h["c"])(t.y,0,1)}var Dl,Rl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return r(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,i=this.dim,r=this.context.view.getCoordinate(),o=r.invert(Object(h["z"])(n)),a=r.invert(Object(h["U"])(n));return this.inPlot&&(Ll(o),Ll(a)),"x"===i?(t=r.convert({x:o.x,y:0}),e=r.convert({x:a.x,y:1})):(t=r.convert({x:0,y:o.y}),e=r.convert({x:1,y:a.y})),{start:t,end:e}},e}(Bl),_l=Rl,zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(h["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}(El),Yl=zl,Nl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.getMaskPath=function(){var t=this.points;return tn(t,!0)},e}(Yl),Gl=Nl,Xl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setCursor=function(t){var e=this.context.view;e.getCanvas().setCursor(t)},e.prototype.default=function(){this.setCursor("default")},e.prototype.pointer=function(){this.setCursor("pointer")},e.prototype.move=function(){this.setCursor("move")},e.prototype.crosshair=function(){this.setCursor("crosshair")},e.prototype.wait=function(){this.setCursor("wait")},e.prototype.help=function(){this.setCursor("help")},e.prototype.text=function(){this.setCursor("text")},e.prototype.eResize=function(){this.setCursor("e-resize")},e.prototype.wResize=function(){this.setCursor("w-resize")},e.prototype.nResize=function(){this.setCursor("n-resize")},e.prototype.sResize=function(){this.setCursor("s-resize")},e.prototype.neResize=function(){this.setCursor("ne-resize")},e.prototype.nwResize=function(){this.setCursor("nw-resize")},e.prototype.seResize=function(){this.setCursor("se-resize")},e.prototype.swResize=function(){this.setCursor("sw-resize")},e.prototype.nsResize=function(){this.setCursor("ns-resize")},e.prototype.ewResize=function(){this.setCursor("ew-resize")},e}(de),Vl=Xl,Hl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.filterView=function(t,e,n){var i=this;t.getScaleByField(e)&&t.filter(e,n),t.views&&t.views.length&&Object(h["j"])(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Re(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(ze(t)){if(i){var r=n.getItemsByState("unchecked"),o=sn(e,i),a=r.map((function(t){return t.name}));a.length?this.filterView(e,i,(function(t){var e=o.getText(t);return!a.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(Ye(t)){var s=n.getValue(),c=s[0],l=s[1];this.filterView(e,i,(function(t){return t>=c&&t<=l})),e.render(!0)}}},e}(de),Wl=Hl;function ql(t,e,n,i){var r=Math.min(n[e],i[e]),o=Math.max(n[e],i[e]),a=t.range,s=a[0],c=a[1];if(rc&&(o=c),r===c&&o===c)return null;var l=t.invert(r),u=t.invert(o);if(t.isCategory){var h=t.values.indexOf(l),f=t.values.indexOf(u),p=t.values.slice(h,f+1);return function(t){return p.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"})(Dl||(Dl={}));var Kl=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 r(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(Ne(this.context)){var n=this.context.event.target,i=n.getCanvasBBox();t={x:i.x,y:i.y},e={x:i.maxX,y:i.maxY}}else{if(!this.isStarted)return;t=this.startPoint,e=this.context.getCurrentPoint()}if(!(Math.abs(t.x-e.x)<5||Math.abs(t.x-e.y)<5)){var r=this.context,o=r.view,a=r.event,s={view:o,event:a,dims:this.dims};o.emit(Dl.BEFORE_FILTER,oi.fromData(o,Dl.BEFORE_FILTER,s));var c=o.getCoordinate(),l=c.invert(e),u=c.invert(t);if(this.hasDim("x")){var h=o.getXScale(),f=ql(h,"x",l,u);this.filterView(o,h.field,f)}if(this.hasDim("y")){var p=o.getYScales()[0];f=ql(p,"y",l,u);this.filterView(o,p.field,f)}this.reRender(o,{source:Dl.FILTER}),o.emit(Dl.AFTER_FILTER,oi.fromData(o,Dl.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(Dl.BEFORE_RESET,oi.fromData(t,Dl.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:Dl.RESET}),t.emit(Dl.AFTER_RESET,oi.fromData(t,Dl.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(de),Ul=Kl,Zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.filterView=function(t,e,n){var i=nn(t);Object(h["j"])(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=nn(t);Object(h["j"])(e,(function(t){t.render(!0)}))},e}(Ul),Ql=Zl,$l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.filter=function(){var t=Re(this.context),e=this.context.view,n=Ve(e);if(Ne(this.context)){var i=Ge(this.context,10);i&&Object(h["j"])(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,o=r.get("field");if(ze(t)){if(o){var a=r.getItemsByState("unchecked"),s=sn(e,o),c=a.map((function(t){return t.name}));Object(h["j"])(n,(function(t){var e=qe(t,o),n=s.getText(e);c.indexOf(n)>=0?t.hide():t.show()}))}}else if(Ye(t)){var l=r.getValue(),u=l[0],f=l[1];Object(h["j"])(n,(function(t){var e=qe(t,o);e>=u&&e<=f?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=Ve(this.context.view);Object(h["j"])(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(de),Jl=$l,tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return r(e,t),e.prototype.filter=function(){Ne(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=Ge(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,r=e.map((function(t){return t.getModel().data})),o=nn(t);Object(h["j"])(o,(function(t){var e=Ve(t);Object(h["j"])(e,(function(t){var e=t.getModel().data;an(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=nn(e);Object(h["j"])(n,(function(e){var n=Xe(t.context,e,10),i=Ve(e);n&&Object(h["j"])(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=nn(this.context.view);Object(h["j"])(t,(function(t){var e=Ve(t);Object(h["j"])(e,(function(t){t.show()}))}))},e}(de),eu=tu,nu=10,iu=5,ru=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 r(e,t),e.prototype.getButtonCfg=function(){return Object(h["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:o({text:t.text},t.textStyle)}),i=n.getBBox(),r=Qn(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:o({x:i.x-r[3],y:i.y-r[0],width:i.width+r[1]+r[3],height:i.height+r[0]+r[2]},t.style)});a.toBack(),e.on("mouseenter",(function(){a.attr(t.activeStyle)})),e.on("mouseleave",(function(){a.attr(t.style)})),this.buttonGroup=e},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),i=this.buttonGroup,r=i.getBBox(),o=it["a"].transform(null,[["t",n.x-r.width-nu,n.y+r.height+iu]]);i.setMatrix(o)},e.prototype.show=function(){this.buttonGroup||this.drawButton(),this.resetPosition(),this.buttonGroup.show()},e.prototype.hide=function(){this.buttonGroup&&this.buttonGroup.hide()},e.prototype.destroy=function(){var e=this.buttonGroup;e&&e.remove(),t.prototype.destroy.call(this)},e}(de),ou=ru,au=4,su=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return r(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}):Je(t,this.startPoint)>au&&(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}(de),cu=su,lu=5,uu=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 r(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint(),n=Je(t,e);if(n>lu&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=it["a"].transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);i.backgroundGroup.setMatrix(r),i.foregroundGroup.setMatrix(r),i.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(de),hu=uu,fu="x",pu="y",du=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[fu,pu],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return r(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(fu),this.resetDim(pu);var t=this.context.view;t.render(!0)},e}(de),gu=du,vu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return r(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(h["j"])(e,(function(e){var n=t.getScale(e),i=n.min,r=n.max,o=n.values;t.startCache[e]={min:i,max:r,values:o}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),r=n.invert(e),o=n.invert(i),a=o.x-r.x,s=o.y-r.y,c=this.context.view,l=this.dims;Object(h["j"])(l,(function(e){t.translateDim(e,{x:-1*a,y:-1*s})})),c.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var i=this.context.view,r=this.startCache[t],o=r.min,a=r.max,s=a-o,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:o,max:a}),i.scale(e.field,{nice:!1,min:o+c,max:a+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(gu),yu=vu,mu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return r(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(h["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 i=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],o=r.max-r.min,a=e.min,s=e.max,c=n*o,l=a-c,u=s+c,h=u-l,f=h/o;u>l&&f<100&&f>.01&&i.scale(e.field,{nice:!1,min:a-c,max:s+c})},e}(gu),bu=mu;function xu(t){var e=t.gEvent.originalEvent;return e.deltaY>0}var Ou=1,ju=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.scroll=function(t){var e=this.context,n=e.view,i=e.event;if(n.getOptions().scrollbar){var r=(null===t||void 0===t?void 0:t.wheelDelta)||Ou,o=n.getController("scrollbar"),a=n.getXScale(),s=n.getOptions().data,c=Object(h["mb"])(Object(h["yb"])(s,a.field)),l=Object(h["mb"])(a.values),u=o.getValue(),f=Math.floor((c-l)*u),p=f+(xu(i)?r:-r),d=r/(c-l)/1e4,g=Object(h["c"])(p/(c-l)+d,0,1);o.setValue(g)}},e}(de),wu=ju;function Cu(t){return t.isInPlot()}function Mu(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Bn("dark",wn(Vr)),C("canvas",Hr),C("svg",Wr),fi("Polygon",Ao),fi("Interval",yo),fi("Schema",Fo),fi("Path",Kr),fi("Point",Co),fi("Line",bo),fi("Area",Jr),fi("Edge",eo),fi("Heatmap",io),fi("Violin",Po),Di("base",fr),Di("interval",ea),Di("pie",aa),Di("polar",ra),_i("overlap",Sa),_i("distribute",la),_i("fixed-overlap",Ma),_i("hide-overlap",Ra),_i("limit-in-shape",xa),_i("limit-in-canvas",ba),_i("limit-in-plot",ss),_i("pie-outer",pa),_i("adjust-color",Na),_i("interval-adjust-position",Ha),_i("interval-hide-overlap",qa),_i("point-adjust-position",$a),_i("pie-spider",ma),_i("path-adjust-position",is),ji("fade-in",cs),ji("fade-out",ls),ji("grow-in-x",fs),ji("grow-in-xy",ds),ji("grow-in-y",ps),ji("scale-in-x",ys),ji("scale-in-y",ms),ji("wave-in",ws),ji("zoom-in",Ms),ji("zoom-out",Ss),ji("position-update",vs),ji("sector-path-update",js),ji("path-in",gs),fe("rect",_s),fe("mirror",Ds),fe("list",Ps),fe("matrix",Bs),fe("circle",Es),fe("tree",Ys),Jn("axis",tc),Jn("legend",oc),Jn("tooltip",bi),Jn("annotation",Ws),Jn("slider",sc),Jn("scrollbar",pc),xe("tooltip",bc),xe("sibling-tooltip",Oc),xe("ellipsis-text",wc),xe("element-active",Ec),xe("element-single-active",Yc),xe("element-range-active",Dc),xe("element-highlight",Uc),xe("element-highlight-by-x",Jc),xe("element-highlight-by-color",Qc),xe("element-single-highlight",il),xe("element-range-highlight",el),xe("element-sibling-highlight",el,{effectSiblings:!0,effectByRecord:!0}),xe("element-selected",sl),xe("element-single-selected",ll),xe("element-range-selected",ol),xe("element-link-by-color",Pc),xe("active-region",yc),xe("list-active",pl),xe("list-selected",jl),xe("list-highlight",xl),xe("list-unchecked",Cl),xe("list-checked",kl),xe("legend-item-highlight",xl,{componentNames:["legend"]}),xe("axis-label-highlight",xl,{componentNames:["axis"]}),xe("rect-mask",Bl),xe("x-rect-mask",_l,{dim:"x"}),xe("y-rect-mask",_l,{dim:"y"}),xe("circle-mask",Pl),xe("path-mask",Yl),xe("smooth-path-mask",Gl),xe("cursor",Vl),xe("data-filter",Wl),xe("brush",Ul),xe("brush-x",Ul,{dims:["x"]}),xe("brush-y",Ul,{dims:["y"]}),xe("sibling-filter",Ql),xe("sibling-x-filter",Ql),xe("sibling-y-filter",Ql),xe("element-filter",Jl),xe("element-sibling-filter",eu),xe("element-sibling-filter-record",eu,{byRecord:!0}),xe("view-drag",cu),xe("view-move",hu),xe("scale-translate",yu),xe("scale-zoom",bu),xe("reset-button",ou,{name:"reset-button",text:"reset"}),xe("mousewheel-scroll",wu),bn("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"}]}),bn("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),bn("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),bn("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),bn("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),bn("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),bn("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),bn("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"]}]}),bn("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"]}]}),bn("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"]}]}),bn("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"]}]}),bn("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"]}]}),bn("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Cu,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Cu,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Cu,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"]}]}),bn("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"]}]}),bn("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Cu,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Cu,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Cu,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),bn("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Cu,action:"path-mask:start"},{trigger:"mousedown",isEnable:Cu,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"}]}),bn("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),bn("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),bn("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),bn("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),bn("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"]}]}),bn("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),bn("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Mu(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Mu(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),bn("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),bn("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},"91da":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return d})),n.d(e,"c",(function(){return s}));var i=n("8937"),r="\t\n\v\f\r   ᠎              \u2028\u2029",o=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),a=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(t){if(!t)return null;if(Object(i["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(o,(function(i,r,o){var s=[],c=r.toLowerCase();if(o.replace(a,(function(t,e){e&&s.push(+e)})),"m"===c&&s.length>2&&(n.push([r].concat(s.splice(0,2))),c="l",r="m"===r?"l":"L"),"o"===c&&1===s.length&&n.push([r,s[0]]),"r"===c)n.push([r].concat(s));else while(s.length>=e[c])if(n.push([r].concat(s.splice(0,e[c]))),!e[c])break;return t})),n};var c=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(i["j"])(t,(function(t,i){if(t!==e[i])return n=!1,!1})),n};function l(t,e,n){var i=null,r=n;return e=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}i=t.length;var f=r-i;if(i0)){t[i]=e[i];break}n=f(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=f(n,t[i-1],2)}t[i]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=f(n,t[i-1],1)}t[i]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[i]=e[i]}return t}},9308:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("cc94"),o=n("bbdf"),a=n("31f7"),s=n("0770"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="process",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return a["b"]},e.prototype.changeData=function(t){this.updateOption({percent:t}),this.chart.changeData(Object(s["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o["a"]},e}(r["b"])},9457:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("8937");function r(t){return Object(i["W"])(t||[],(function(t,e){return{x:""+e,y:t}}))}},"94e3":function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),o=n("d177"),a=n("41c8"),s=function(t){function e(e){var n=t.call(this,e)||this;n.cacheMap={},n.adjustDataArray=[],n.mergeData=[];var i=e.marginRatio,r=void 0===i?o["d"]:i,a=e.dodgeRatio,s=void 0===a?o["b"]:a,c=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,h=e.xDimensionLength,f=e.groupNum,p=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio;return n.marginRatio=r,n.dodgeRatio=s,n.dodgeBy=c,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=h,n.groupNum=f,n.defaultSize=p,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=v,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["e"](t),n=r["q"](e),i=this.dodgeBy,o=i?r["v"](n,i):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,i){var o=this,a=this.getDistribution(t),s=this.groupData(n,t);return r["j"](s,(function(n,s){var c;c=1===e.length?{pre:e[0]-1,next:e[0]+1}:o.getAdjustRange(t,parseFloat(s),e),r["j"](n,(function(e){var n=e[t],r=a[n],s=r.indexOf(i);e[t]=o.getDodgeOffset(c,s,r.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,o=this,a=o.dodgeRatio,s=o.marginRatio,c=o.intervalPadding,l=o.dodgePadding,u=t.pre,h=t.next,f=h-u;if(!r["K"](c)&&r["K"](l)&&c>=0){var p=this.getIntervalOnlyOffset(n,e);i=u+p}else if(!r["K"](l)&&r["K"](c)&&l>=0){p=this.getDodgeOnlyOffset(n,e);i=u+p}else if(!r["K"](c)&&!r["K"](l)&&c>=0&&l>=0){p=this.getIntervalAndDodgeOffset(n,e);i=u+p}else{var d=f*a/n,g=s*d;p=.5*(f-n*d-(n-1)*g)+((e+1)*d+e*g)-.5*d-.5*f;i=(u+h)/2+p}return i},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,i=n.defaultSize,o=n.intervalPadding,a=n.xDimensionLegenth,s=n.groupNum,c=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,p=(1-(s-1)*f)/s*c/(t-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=r["K"](h)?d:1/s/t*h,!r["K"](l)){var g=l/a;d=Math.min(d,g)}if(!r["K"](u)){var v=u/a;d=Math.max(d,v)}d=i?i/a:d,p=((1-(s-1)*f)/s-t*d)/(t-1);var y=((.5+e)*d+e*p+.5*f)*s-f/2;return y},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,i=n.defaultSize,o=n.dodgePadding,a=n.xDimensionLegenth,s=n.groupNum,c=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,f=o/a,p=1*c/(s-1),d=((1-p*(s-1))/s-f*(t-1))/t;if(d=h?1/s/t*h:d,!r["K"](l)){var g=l/a;d=Math.min(d,g)}if(!r["K"](u)){var v=u/a;d=Math.max(d,v)}d=i?i/a:d,p=(1-(d*t+f*(t-1))*s)/(s-1);var y=((.5+e)*d+e*f+.5*p)*s-p/2;return y},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,i=n.intervalPadding,r=n.dodgePadding,o=n.xDimensionLegenth,a=n.groupNum,s=i/o,c=r/o,l=((1-s*(a-1))/a-c*(t-1))/t,u=((.5+e)*l+e*c+.5*s)*a-s/2;return u},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,i=n[t];return i||(i={},r["j"](e,(function(e,n){var o=r["yb"](e,t);o.length||o.push(0),r["j"](o,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},e}(a["a"]);e["a"]=s},"96bf":function(t,e,n){"use strict";var i,r=n("5809"),o=n("cc94"),a=n("8937"),s=n("c34d"),c=n("b4aa"),l=n("62e3"),u=n("9ff2"),h="$$range$$",f="low-q1-median-q3-high",p="$$y_outliers$$",d="outliers_view",g=Object(l["c"])({},o["b"].getDefaultOptions(),{meta:(i={},i[h]={min:0,alias:f},i),interactions:[{type:"active-region"}],tooltip:{showMarkers:!1,shared:!0},boxStyle:{lineWidth:1}}),v=function(t,e){var n=t;if(Array.isArray(e)){var i=e[0],r=e[1],o=e[2],s=e[3],c=e[4];n=Object(a["W"])(t,(function(t){return t[h]=[t[i],t[r],t[o],t[s],t[c]],t}))}return n};function y(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.groupField,s=n.color,u=n.tooltip,f=n.boxStyle;e.data(v(n.data,r));var p=Object(a["C"])(r)?h:r,d=r?Object(a["C"])(r)?r:[r]:[],g=u;!1!==g&&(g=Object(l["c"])({},{fields:Object(a["C"])(r)?r:[]},g));var y=Object(c["g"])(Object(l["c"])({},t,{options:{xField:i,yField:p,seriesField:o,tooltip:g,rawFields:d,label:!1,schema:{shape:"box",color:s,style:f}}})).ext;return o&&y.geometry.adjust("dodge"),t}function m(t){var e=t.chart,n=t.options,i=n.xField,o=n.data,a=n.outliersField,s=n.outliersStyle,l=n.padding,u=n.label;if(!a)return t;var h=e.createView({padding:l,id:d}),f=o.reduce((function(t,e){var n=e[a];return n.forEach((function(n){var i;return t.push(Object(r["a"])(Object(r["a"])({},e),(i={},i[a]=n,i)))})),t}),[]);return h.data(f),Object(c["e"])({chart:h,options:{xField:i,yField:a,point:{shape:"circle",style:s},label:u}}),h.axis(!1),t}function b(t){var e,n,i=t.chart,r=t.options,o=r.meta,a=r.xAxis,s=r.yAxis,c=r.xField,f=r.yField,d=r.outliersField,g=Array.isArray(f)?h:f,v={};if(d){var y=p;e={},e[d]={sync:y,nice:!0},e[g]={sync:y,nice:!0},v=e}var m=Object(l["c"])(v,o,(n={},n[c]=Object(l["t"])(a,u["a"]),n[g]=Object(l["t"])(s,u["a"]),n));return i.scale(m),t}function x(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField,s=Array.isArray(a)?h:a;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(h,!1):e.axis(s,r),t}function O(t){var e=t.chart,n=t.options,i=n.legend,r=n.groupField;return r?i?e.legend(r,i):e.legend(r,{position:"bottom"}):e.legend(!1),t}function j(t){return Object(l["f"])(y,m,b,x,O,s["l"],s["c"],s["a"],s["k"])(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="box",e}Object(r["b"])(e,t),e.getDefaultOptions=function(){return g},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField,n=this.chart.views.find((function(t){return t.id===d}));n&&n.data(t),this.chart.changeData(v(t,e))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return j}})(o["b"])},"96de":function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=null;function r(){if(!i){var t=document.createElement("canvas");t.width=1,t.height=1,i=t.getContext("2d")}return i}},"974f":function(t,e){},9778:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("8937");function r(t,e,n){var r=e+"Style",o=null;return Object(i["j"])(n,(function(e,n){t[n]&&e[r]&&(o||(o={}),Object(i["db"])(o,e[r]))})),o}},"988d":function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("5809"),r=n("8937"),o=n("62e3"),a=n("c34d"),s=n("bbdf");function c(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius;return e.coordinate("theta",{innerRadius:i,radius:r}),t}function l(t,e){var n=t.chart,a=t.options,s=a.innerRadius,c=a.statistic,l=a.percent,u=a.meta;if(n.getController("annotation").clear(!0),s&&c){var h=Object(r["s"])(u,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},f=c.content;f&&(f=Object(o["c"])({},f,{content:Object(r["K"])(f.content)?h(l):f.content})),Object(o["w"])(n,{statistic:Object(i["a"])(Object(i["a"])({},c),{content:f}),plotType:"ring-progress"},{percent:l})}return e&&n.render(!0),t}function u(t){return Object(o["f"])(s["b"],Object(a["g"])({}),c,l,a["a"],a["k"],Object(a["b"])())(t)}},"99afe":function(t,e,n){"use strict";n("917c");var i=n("afaa"),r=n("16fb"),o=n("f0b2"),a=(n("f7cc"),n("cc94"),n("0e37"),n("5e5a"),n("bb0f"));n.d(e,"Area",(function(){return a["a"]}));n("bbd5"),n("63e2"),n("0abd"),n("cf85"),n("323e"),n("b44e"),n("cbbe"),n("caa0"),n("9adb"),n("d36e"),n("d390"),n("0704"),n("9308"),n("60fe"),n("fb05"),n("96bf"),n("a18e"),n("a37c"),n("ffed"),n("68bc"),n("1405"),n("0587"),n("7011"),n("5e91"),n("14b2"),n("4c46"),n("ed96"),n("787a"),n("aed4"),n("528e"),n("a6d0"),n("efee"),n("db3c"),n("dbaf"),n("c441"),n("62e3"),n("b4aa");var s=n("c34d");n("e3a9");Object(i["b"])("en-US",r["a"]),Object(i["b"])("zh-CN",o["a"]);s["g"],s["d"],s["l"],s["b"],s["c"],s["k"],s["a"]},"9a08":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("c34d"),r=n("62e3"),o=n("b4aa"),a=n("edcb"),s=n("9457"),c=n("8582");function l(t){var e=t.chart,n=t.options,i=n.data,c=n.color,l=n.columnStyle,u=n.columnWidthRatio,h=Object(s["a"])(i);e.data(h);var f=Object(r["c"])({},t,{options:{xField:a["c"],yField:a["d"],widthRatio:u,interval:{style:l,color:c}}});return Object(o["c"])(f),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function u(t){return Object(r["f"])(i["k"],Object(i["f"])("columnStyle"),l,c["b"],i["l"],i["a"],Object(i["b"])())(t)}n.d(e,"b",(function(){return c["b"]}))},"9a3e":function(t,e,n){"use strict";n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("8937"),o=n("62e3");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(r["s"])(t,"fill")&&(e["color"]=t["fill"]);var i=Object(o["t"])(t,n),a=i.shadowColor,s=i.shadowBlur,c=void 0===s?0:s,l=i.shadowOffsetX,u=void 0===l?0:l,h=i.shadowOffsetY,f=void 0===h?0:h;e["text-shadow"]=""+[a,u+"px",f+"px",c+"px"].join(" ");var p=Object(o["t"])(t,n),d=p.stroke,g=p.lineWidth,v=void 0===g?0:g;return e["-webkit-text-stroke"]=""+[v+"px",d].join(" "),Object(r["j"])(t,(function(t,i){["fontSize"].includes(i)&&Object(r["M"])(t)?e[Object(o["q"])(i)]=t+"px":i&&!n.includes(i)&&(e[Object(o["q"])(i)]=""+t)})),e}function s(t,e){t.style["pointer-events"]="none",Object(r["j"])(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var c=function(t,e,n){var c=e.statistic,l=e.plotType,u=c.title,h=c.content;[u,h].forEach((function(e,c){if(e){var f="";f=0===c?h?"translate(-50%, -100%)":"translate(-50%, -50%)":u?"translate(-50%, 0)":"translate(-50%, -50%)";var p=Object(r["I"])(e.style)?e.style(n):e.style;t.annotation().html(Object(i["a"])({position:["50%","50%"],html:function(t,o){var c=o.getCoordinate(),u=0;if("pie"===l||"ring-progress"===l)u=c.getRadius()*c.innerRadius*2;else if("liquid"===l){var h=Object(r["s"])(o.geometries,[0,"elements",0,"shape"]);if(h){var d=h.find((function(t){return"wrap"===t.get("name")})),g=d.getCanvasBBox().width;u=g}}else u||(u=c.getWidth());s(t,Object(i["a"])({width:u+"px",transform:f},a(p)));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(r["Q"])(y)?y:""+y:"
    "},key:(0===c?"top":"bottom")+"-statistic"},Object(o["t"])(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},l=function(t,e,n){var c=e.statistic,l=c.title,u=c.content;[l,u].forEach((function(e){if(e){var c=Object(r["I"])(e.style)?e.style(n):e.style;t.annotation().html(Object(i["a"])({position:["50%","100%"],html:function(t,o){var l=o.getCoordinate(),u=o.views[0].getCoordinate(),h=u.getCenter(),f=u.getRadius(),p=Math.max(Math.sin(u.startAngle),Math.sin(u.endAngle))*f,d=h.y+p-l.y.start-parseFloat(Object(r["s"])(c,"fontSize",0)),g=l.getRadius()*l.innerRadius*2;s(t,Object(i["a"])({width:g+"px",transform:"translate(-50%, "+d+"px)"},a(c)));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(r["Q"])(y)?y:""+y:"
    "}},Object(o["t"])(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},"9ab4":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},i(t,e)};function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n1&&(n*=Math.sqrt(v),r*=Math.sqrt(v));var y=n*n*(g*g)+r*r*(d*d),m=y?Math.sqrt((n*n*(r*r)-y)/y):1;c===l&&(m*=-1),isNaN(m)&&(m=0);var b=r?m*n*g/r:0,x=n?m*-r*d/n:0,O=(u+f)/2+Math.cos(s)*b-Math.sin(s)*x,j=(h+p)/2+Math.sin(s)*b+Math.cos(s)*x,w=[(d-b)/n,(g-x)/r],C=[(-1*d-b)/n,(-1*g-x)/r],M=a([1,0],w),S=a(w,C);return o(w,C)<=-1&&(S=Math.PI),o(w,C)>=1&&(S=0),0===l&&S>0&&(S-=2*Math.PI),1===l&&S<0&&(S+=2*Math.PI),{cx:O,cy:j,rx:Object(i["j"])(t,[f,p])?0:n,ry:Object(i["j"])(t,[f,p])?0:r,startAngle:M,endAngle:M+S,xRotation:s,arcFlag:c,sweepFlag:l}}},"9cae":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("8937"),r=n("917c"),o=n("5809"),a=n("62e3"),s=10,c=5,l={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"}}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.buttonGroup=null,e.buttonCfg=Object(o["a"])({name:"button"},l),e}return Object(o["b"])(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(i["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,i=this.getButtonCfg(),r=Object(a["s"])(i.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:Object(o["a"])({x:e.x-r[3],y:e.y-r[0],width:e.width+r[1]+r[3],height:e.height+r[0]+r[2]},null===(n=i.buttonStyle)||void 0===n?void 0:n.default)});return s.toBack(),t.on("mouseenter",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.active)})),t.on("mouseleave",(function(){var t;s.attr(null===(t=i.buttonStyle)||void 0===t?void 0:t.default)})),s},e.prototype.resetPosition=function(){var t=this.context.view,e=t.getCoordinate(),n=e.convert({x:1,y:1}),i=this.buttonGroup,o=i.getBBox(),a=r["h"].transform(null,[["t",n.x-o.width-s,n.y+o.height+c]]);i.setMatrix(a)},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}(r["a"]);function h(t){return t.isInPlot()}function f(t,e,n){var i=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:h,action:["brush:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush:filter","brush:end",i+"-mask:end",i+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:h,action:["brush-x:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush-x:filter","brush-x:end",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:h,action:["brush-y:start",i+"-mask:start",i+"-mask:show"],arg:[null,{maskStyle:null===n||void 0===n?void 0:n.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[i+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush-y:filter","brush-y:end",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"mask:mouseenter",action:"cursor:move"},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:function(t){return!t.isInShape("mask")},action:[i+"-mask:start",i+"-mask:show"],arg:[{maskStyle:null===n||void 0===n?void 0:n.style}]},{trigger:"mask:dragstart",action:[i+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[i+"-mask:resize"]},{trigger:"mask:drag",action:[i+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[i+"-mask:end"]},{trigger:"mask:dragend",action:[i+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",i+"-mask:end",i+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",i+"-mask:hide"]}]};default:return{}}}Object(r["l"])("brush-reset-button",u,{name:"brush-reset-button"}),Object(r["o"])("filter-action",{}),Object(r["o"])("brush",f("brush")),Object(r["o"])("brush-highlight",f("brush-highlight")),Object(r["o"])("brush-x",f("brush-x","x-rect")),Object(r["o"])("brush-y",f("brush-y","y-rect")),Object(r["o"])("brush-x-highlight",f("brush-x-highlight","x-rect")),Object(r["o"])("brush-y-highlight",f("brush-y-highlight","y-rect"));var p=["brush","brush-x","brush-y","brush-highlight","brush-x-highlight","brush-y-highlight"];function d(t){var e=t.options,n=e.brush,r=Object(i["l"])(e.interactions||[],(function(t){return-1===p.indexOf(t.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(p.forEach((function(t){var e,i=!1;switch(n.type){case"x-rect":i=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":i=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:i=t===("highlight"===n.action?"brush-highlight":"brush");break}var o={type:t,enable:i};((null===(e=n.mask)||void 0===e?void 0:e.style)||n.type)&&(o.cfg=f(t,n.type,n.mask)),r.push(o)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&r.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Object(a["c"])({},t,{options:{interactions:r}})}},"9e6a":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("917c"),r=n("5809"),o=n("8937"),a=n("a9a0"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getActiveElements=function(){var t=i["h"].getDelegationObject(this.context);if(t){var e=this.context.view,n=t.component,r=t.item,o=n.get("field");if(o){var a=e.geometries[0].elements;return a.filter((function(t){return t.getModel().data[o]===r.value}))}}return[]},e.prototype.getActiveElementLabels=function(){var t=this.context.view,e=this.getActiveElements(),n=t.geometries[0].labelsContainer.getChildren();return n.filter((function(t){return e.find((function(e){return 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,r){var o=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var c=i["h"].getAngle(e.getModel(),s),l=c.startAngle,u=c.endAngle,h=(l+u)/2,f=t,p=f*Math.cos(h),d=f*Math.sin(h);e.shape.setMatrix(Object(a["a"])([["t",p,d]])),o.setMatrix(Object(a["a"])([["t",p,d]]))}}))},e.prototype.active=function(){this.transfrom()},e.prototype.reset=function(){this.transfrom(0)},e}(i["a"]),c=n("9a3e");function l(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getAnnotations=function(t){var e=t||this.context.view;return e.getController("annotation").option},e.prototype.getInitialAnnotation=function(){return this.initialAnnotation},e.prototype.init=function(){var t=this,e=this.context.view;e.removeInteraction("tooltip"),e.on("afterchangesize",(function(){var n=t.getAnnotations(e);t.initialAnnotation=n}))},e.prototype.change=function(t){var e=this.context,n=e.view,r=e.event;this.initialAnnotation||(this.initialAnnotation=this.getAnnotations());var a=Object(o["s"])(r,["data","data"]);if(r.type.match("legend-item")){var s=i["h"].getDelegationObject(this.context),u=n.getGroupedFields()[0];if(s&&u){var h=s.item;a=n.getData().find((function(t){return t[u]===h.value}))}}if(a){var f=Object(o["s"])(t,"annotations",[]),p=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(c["b"])(n,{statistic:p,plotType:"pie"},a),n.render(!0)}var d=l(this.context);d&&d.shape.toFront()},e.prototype.reset=function(){var t=this.context.view,e=t.getController("annotation");e.clear(!0);var n=this.getInitialAnnotation();Object(o["j"])(n,(function(e){t.annotation()[e.type](e)})),t.render(!0)},e}(i["a"]),h="pie-statistic";Object(i["l"])(h,u),Object(i["o"])("pie-statistic-active",{start:[{trigger:"element:mouseenter",action:"pie-statistic:change"}],end:[{trigger:"element:mouseleave",action:"pie-statistic:reset"}]}),Object(i["l"])("pie-legend",s),Object(i["o"])("pie-legend-active",{start:[{trigger:"legend-item:mouseenter",action:"pie-legend:active"}],end:[{trigger:"legend-item:mouseleave",action:"pie-legend:reset"}]})},"9f27":function(t,e,n){"use strict";n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var i=n("c0e9"),r=n("4799"),o=Math.sin,a=Math.cos,s=Math.atan2,c=Math.PI;function l(t,e,n,i,l,u,h){var f=e.stroke,p=e.lineWidth,d=n-l,g=i-u,v=s(g,d),y=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*a(c/6)+","+10*o(c/6)+" L0,0 L"+10*a(c/6)+",-"+10*o(c/6),stroke:f,lineWidth:p}});y.translate(l,u),y.rotateAtPoint(l,u,v),t.set(h?"startArrowShape":"endArrowShape",y)}function u(t,e,n,c,l,u,h){var f=e.startArrow,p=e.endArrow,d=e.stroke,g=e.lineWidth,v=h?f:p,y=v.d,m=v.fill,b=v.stroke,x=v.lineWidth,O=Object(i["c"])(v,["d","fill","stroke","lineWidth"]),j=n-l,w=c-u,C=s(w,j);y&&(l-=a(C)*y,u-=o(C)*y);var M=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(i["a"])(Object(i["a"])({},O),{stroke:b||d,lineWidth:x||g,fill:m})});M.translate(l,u),M.rotateAtPoint(l,u,C),t.set(h?"startArrowShape":"endArrowShape",M)}function h(t,e,n,i,r){var c=s(i-e,n-t);return{dx:a(c)*r,dy:o(c)*r}}function f(t,e,n,i,r,o){"object"===typeof e.startArrow?u(t,e,n,i,r,o,!0):e.startArrow?l(t,e,n,i,r,o,!0):t.set("startArrowShape",null)}function p(t,e,n,i,r,o){"object"===typeof e.endArrow?u(t,e,n,i,r,o,!1):e.endArrow?l(t,e,n,i,r,o,!1):t.set("startArrowShape",null)}},"9f73":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var i=n("5809"),r=n("917c"),o=n("8937"),a=n("3295"),s=4,c=0,l=5,u="drilldown-bread-crumb",h={position:"top-left",dividerText:"/",textStyle:{fontSize:12,fill:"rgba(0, 0, 0, 0.65)",cursor:"pointer"},activeTextStyle:{fill:"#87B5FF"}},f="hierarchy-data-transform-params",p=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=h,e}return Object(i["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(),i=this.getButtonCfg().position,o={x:t.start.x,y:t.end.y-(n.height+2*l)};t.isPolar&&(o={x:0,y:0}),"bottom-left"===i&&(o={x:t.start.x,y:t.start.y});var a=r["h"].transform(null,[["t",o.x+c,o.y+n.height+l]]);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})),r=n(Object(i["a"])({data:t.data},t[f]));e.changeData(r);var a=[],s=t;while(s){var c=s.data;a.unshift({id:c.name+"_"+s.height+"_"+s.depth,name:c.name,children:n(Object(i["a"])({data:c},t[f]))}),s=s.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:u});var r=0;n.forEach((function(a,c){var l=t.breadCrumbGroup.addShape({type:"text",id:a.id,name:u+"_"+a.name+"_text",attrs:Object(i["a"])(Object(i["a"])({text:0!==c||Object(o["K"])(e.rootText)?a.name:e.rootText},e.textStyle),{x:r,y:0})}),h=l.getBBox();if(r+=h.width+s,l.on("click",(function(e){var i,r=e.target.get("id");if(r!==(null===(i=Object(o["U"])(n))||void 0===i?void 0:i.id)){var a=n.slice(0,n.findIndex((function(t){return t.id===r}))+1);t.backTo(a)}})),l.on("mouseenter",(function(t){var i,r=t.target.get("id");r!==(null===(i=Object(o["U"])(n))||void 0===i?void 0:i.id)?l.attr(e.activeTextStyle):l.attr({cursor:"default"})})),l.on("mouseleave",(function(){l.attr(e.textStyle)})),c0&&(o=1/Math.sqrt(o)),t[0]=e[0]*o,t[1]=e[1]*o,t[2]=e[2]*o,t}function A(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[0],s=n[1],c=n[2];return t[0]=r*c-o*s,t[1]=o*a-i*c,t[2]=i*s-r*a,t}function F(t,e,n,i){var r=e[0],o=e[1],a=e[2];return t[0]=r+i*(n[0]-r),t[1]=o+i*(n[1]-o),t[2]=a+i*(n[2]-a),t}function E(t,e,n,i,r,o){var a=o*o,s=a*(2*o-3)+1,c=a*(o-2)+o,l=a*(o-1),u=a*(3-2*o);return t[0]=e[0]*s+n[0]*c+i[0]*l+r[0]*u,t[1]=e[1]*s+n[1]*c+i[1]*l+r[1]*u,t[2]=e[2]*s+n[2]*c+i[2]*l+r[2]*u,t}function T(t,e,n,i,r,o){var a=1-o,s=a*a,c=o*o,l=s*a,u=3*o*s,h=3*c*a,f=c*o;return t[0]=e[0]*l+n[0]*u+i[0]*h+r[0]*f,t[1]=e[1]*l+n[1]*u+i[1]*h+r[1]*f,t[2]=e[2]*l+n[2]*u+i[2]*h+r[2]*f,t}function P(t,e){e=e||1;var n=2*i["c"]()*Math.PI,r=2*i["c"]()-1,o=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*o,t[1]=Math.sin(n)*o,t[2]=r*e,t}function I(t,e,n){var i=e[0],r=e[1],o=e[2],a=n[3]*i+n[7]*r+n[11]*o+n[15];return a=a||1,t[0]=(n[0]*i+n[4]*r+n[8]*o+n[12])/a,t[1]=(n[1]*i+n[5]*r+n[9]*o+n[13])/a,t[2]=(n[2]*i+n[6]*r+n[10]*o+n[14])/a,t}function B(t,e,n){var i=e[0],r=e[1],o=e[2];return t[0]=i*n[0]+r*n[3]+o*n[6],t[1]=i*n[1]+r*n[4]+o*n[7],t[2]=i*n[2]+r*n[5]+o*n[8],t}function L(t,e,n){var i=n[0],r=n[1],o=n[2],a=n[3],s=e[0],c=e[1],l=e[2],u=r*l-o*c,h=o*s-i*l,f=i*c-r*s,p=r*f-o*h,d=o*u-i*f,g=i*h-r*u,v=2*a;return u*=v,h*=v,f*=v,p*=2,d*=2,g*=2,t[0]=s+u+p,t[1]=c+h+d,t[2]=l+f+g,t}function D(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0],o[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),o[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function R(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),o[1]=r[1],o[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function _(t,e,n,i){var r=[],o=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],o[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),o[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),o[2]=r[2],t[0]=o[0]+n[0],t[1]=o[1]+n[1],t[2]=o[2]+n[2],t}function z(t,e){var n=t[0],i=t[1],r=t[2],o=e[0],a=e[1],s=e[2],c=Math.sqrt(n*n+i*i+r*r),l=Math.sqrt(o*o+a*a+s*s),u=c*l,h=u&&A(t,e)/u;return Math.acos(Math.min(Math.max(h,-1),1))}function Y(t){return t[0]=0,t[1]=0,t[2]=0,t}function N(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function X(t,e){var n=t[0],r=t[1],o=t[2],a=e[0],s=e[1],c=e[2];return Math.abs(n-a)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-s)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(o-c)<=i["b"]*Math.max(1,Math.abs(o),Math.abs(c))}var V=h,H=f,W=p,q=O,K=j,U=a,Z=w,Q=function(){var t=r();return function(e,n,i,r,o,a){var s,c;for(n||(n=3),i||(i=0),c=r?Math.min(r*n+i,e.length):e.length,s=i;s1)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 p(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function d(t,e,n,i){n=n||0,i=i||t.length-1;while(i>n){if(i-n>600){var r=i-n+1,o=e-n+1,a=Math.log(r),s=.5*Math.exp(2*a/3),c=.5*Math.sqrt(a*s*(r-s)/r);o-r/2<0&&(c*=-1);var l=Math.max(n,Math.floor(e-o*s/r+c)),u=Math.min(i,Math.floor(e+(r-o)*s/r+c));d(t,e,l,u)}var h=t[e],f=n,g=i;p(t,n,e),t[i]>h&&p(t,n,i);while(fh)g--}t[n]===h?p(t,n,g):(g++,p(t,g,i)),g<=e&&(n=g+1),e<=g&&(i=g-1)}}function g(t,e){var n=t.slice();if(Array.isArray(e)){y(n,e);for(var i=[],r=0;re?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t?255:(t=e/255*255/(1-t/255),t>255?255:t)},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},f=function(t){if(!h[t])throw new Error("unknown blend mode "+t);return h[t]};function p(t,e,n){void 0===n&&(n="normal");var i=u(f(n))(d(t),d(e)),r=d(t),o=r[0],a=r[1],s=r[2],c=r[3],l=d(e),h=l[0],p=l[1],g=l[2],v=l[3],y=Number((c+v*(1-c)).toFixed(2)),m=Math.round((c*(1-v)*(o/255)+c*v*(i[0]/255)+(1-c)*v*(h/255))/y*255),b=Math.round((c*(1-v)*(a/255)+c*v*(i[1]/255)+(1-c)*v*(p/255))/y*255),x=Math.round((c*(1-v)*(s/255)+c*v*(i[2]/255)+(1-c)*v*(g/255))/y*255);return"rgba("+m+", "+b+", "+x+", "+y+")"}function d(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 g=n("23eb"),v=1e-10;function y(t,e){var n,i=b(t),r=i.filter((function(e){return m(e,t)})),o=0,a=0,s=[];if(r.length>1){var c=C(r);for(n=0;n-1){var g=t[h.parentIndex[d]],y=Math.atan2(h.x-g.x,h.y-g.y),j=Math.atan2(u.x-g.x,u.y-g.y),w=j-y;w<0&&(w+=2*Math.PI);var M=j-w/2,S=O(f,{x:g.x+g.radius*Math.sin(M),y:g.y+g.radius*Math.cos(M)});S>2*g.radius&&(S=2*g.radius),(null===p||p.width>S)&&(p={circle:g,width:S,p1:h,p2:u})}null!==p&&(s.push(p),o+=x(p.circle.radius,p.width),u=h)}}else{var A=t[0];for(n=1;nMath.abs(A.radius-t[n].radius)){k=!0;break}k?o=a=0:(o=A.radius*A.radius*Math.PI,s.push({circle:A,p1:{x:A.x,y:A.y+A.radius},p2:{x:A.x-v,y:A.y+A.radius},width:2*A.radius}))}return a/=2,e&&(e.area=o+a,e.arcArea=o,e.polygonArea=a,e.arcs=s,e.innerPoints=r,e.intersectionPoints=i),o+a}function m(t,e){for(var n=0;ne[n].radius+v)return!1;return!0}function b(t){for(var e=[],n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var i=t-(n*n-e*e+t*t)/(2*n),r=e-(n*n-t*t+e*e)/(2*n);return x(t,i)+x(e,r)}function w(t,e){var n=O(t,e),i=t.radius,r=e.radius;if(n>=i+r||n<=Math.abs(i-r))return[];var o=(i*i-r*r+n*n)/(2*n),a=Math.sqrt(i*i-o*o),s=t.x+o*(e.x-t.x)/n,c=t.y+o*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),u=-(e.x-t.x)*(a/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function C(t){for(var e={x:0,y:0},n=0;ne?1:-1})),e=0;e=Math.min(e[o].size,e[a].size)?u=1:t.size<=1e-10&&(u=-1),r[o][a]=r[a][o]=u})),{distances:i,constraints:r}}function E(t,e,n,i){var r,o=0;for(r=0;r0&&d<=h||f<0&&d>=h||(o+=2*g*g,e[2*r]+=4*g*(a-l),e[2*r+1]+=4*g*(s-u),e[2*c]+=4*g*(l-a),e[2*c+1]+=4*g*(u-s))}return o}function T(t,e){var n=I(t,e),i=e.lossFunction||B;if(t.length>=8){var r=P(t,e),o=i(r,t),a=i(n,t);o+1e-8=Math.min(r[u].size,r[h].size)&&(l=0),o[u].push({set:h,size:c.size,weight:l}),o[h].push({set:u,size:c.size,weight:l})}var f=[];for(n in o)if(o.hasOwnProperty(n)){var p=0;for(a=0;a=a&&(o=i[n],a=s)}var c=Object(g["nelderMead"])((function(n){return-1*R({x:n[0],y:n[1]},t,e)}),[o.x,o.y],{maxIterations:500,minErrorDelta:1e-10}).x,l={x:c[0],y:c[1]},u=!0;for(n=0;nt[n].radius){u=!1;break}for(n=0;n0&&console.log("WARNING: area "+o+" not represented on screen")}return n}function N(t,e,n){var i=[],r=t-n,o=e;return i.push("M",r,o),i.push("A",n,n,0,1,0,r+2*n,o),i.push("A",n,n,0,1,0,r,o),i.join(" ")}function G(t){var e={};y(t,e);var n=e.arcs;if(0===n.length)return"M 0 0";if(1==n.length){var i=n[0].circle;return N(i.x,i.y,i.radius)}for(var r=["\nM",n[0].p2.x,n[0].p2.y],o=0;os;r.push("\nA",s,s,0,c?1:0,1,a.p1.x,a.p1.y)}return r.join(" ")}var X="id",V="path",H={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"]},W=Object(o["ab"])((function(t,e,n,i){var r=new Map,o=t.length;return e.forEach((function(e,a){if(1===e[i].length)r.set(e[X],t[(a+o)%o]);else{var s=e[i].map((function(t){return r.get(t)}));r.set(e[X],s.slice(1).reduce((function(t,e){return p(t,e,n)}),s[0]))}})),r}),(function(){for(var t=[],e=0;e=g.length)){var n=Math.max(e-o,0),i=e,r=Math.min(e+o,g.length-1),a=n-(e-o),c=e+o-r,l=m[-o-1+a]||0,u=m[-o-1+c]||0,h=b/(b-l-u);a>0&&(O+=h*(a-1)*x);var f=Math.max(0,e-o+1);s.inside(0,g.length-1,f)&&(g[f].y+=1*h*x),s.inside(0,g.length-1,i+1)&&(g[i+1].y-=2*h*x),s.inside(0,g.length-1,r+1)&&(g[r+1].y+=1*h*x)}}));var j=O,w=0,C=0;return g.forEach((function(t){w+=t.y,j+=w,t.y=j,C+=j})),C>0&&g.forEach((function(t){t.y/=C})),g},t.exports.getExpectedValueFromPdf=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){e+=t.x*t.y})),e}},t.exports.getXWithLeftTailArea=function(t,e){if(t&&0!==t.length){for(var n=0,i=0,r=0;r=e)break;return t[i].x}},t.exports.getPerplexity=function(t){if(t&&0!==t.length){var e=0;return t.forEach((function(t){var n=Math.log(t.y);isFinite(n)&&(e+=t.y*n)})),e=-e/o,Math.pow(2,e)}}},a6d0:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("8937"),a=n("a0c4"),s=n("c34d"),c=n("62e3"),l=n("f45c"),u=n("2373"),h=n("6bcb"),f=n("23b9"),p={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function d(t,e){e=Object(o["b"])({},p,e);var n,i=e.as;if(!Object(o["C"])(i)||3!==i.length)throw new TypeError('Invalid as: it must be an array with 3 strings (e.g. [ "x", "y", "r" ])!');try{n=Object(f["e"])(e)}catch(d){console.warn(d)}var r=function(t){return u["a"]().size(e.size).padding(e.padding)(h["c"](t).sum((function(t){return t[n]})).sort(e.sort))},a=r(t),s=i[0],c=i[1],l=i[2];return a.each((function(t){t[s]=t.x,t[c]=t.y,t[l]=t.r})),Object(f["d"])(a)}var g=n("9f73");function v(t){var e=t.data,n=t.hierarchyConfig,r=t.rawFields,o=void 0===r?[]:r,a=t.enableDrillDown,s=d(e,Object(i["a"])(Object(i["a"])({},n),{field:"value",as:["x","y","r"]})),l=[];return s.forEach((function(t){var e,r=t.data.name,s=Object(i["a"])({},t);while(s.depth>1)r=(null===(e=s.parent.data)||void 0===e?void 0:e.name)+" / "+r,s=s.parent;if(a&&t.depth>2)return null;var u=Object(c["c"])({},t.data,Object(i["a"])(Object(i["a"])(Object(i["a"])({},Object(c["t"])(t.data,o)),{path:r}),t));u.ext=n,u[g["b"]]={hierarchyConfig:n,rawFields:o,enableDrillDown:a},l.push(u)})),l}function y(t,e,n){var i=Object(l["c"])([t,e]),r=i[0],o=i[1],a=i[2],s=i[3],c=n.width,u=n.height,h=c-(s+o),f=u-(r+a),p=Math.min(h,f),d=(h-p)/2,g=(f-p)/2,v=r+g,y=o+d,m=a+g,b=s+d,x=[v,y,m,b],O=p<0?0:p;return{finalPadding:x,finalSize:O}}var m=["x","y","r","name","value","path","depth"],b={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 x(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return Object(c["c"])({options:{size:function(t){var e=t.r;return e*n}}},t)}function O(t){var e=t.options,n=t.chart,i=n.viewBBox,r=e.padding,a=e.appendPadding,s=e.drilldown,c=a;if(null===s||void 0===s?void 0:s.enabled){var u=Object(l["a"])(n.appendPadding,Object(o["s"])(s,["breadCrumb","position"]));c=Object(l["c"])([u,a])}var h=y(r,c,i).finalPadding;return n.padding=h,n.appendPadding=0,t}function j(t){var e=t.chart,n=t.options,r=e.padding,o=e.appendPadding,s=n.color,l=n.colorField,u=n.pointStyle,h=n.hierarchyConfig,f=n.sizeField,p=n.rawFields,d=void 0===p?[]:p,g=n.drilldown,b=v({data:n.data,hierarchyConfig:h,enableDrillDown:null===g||void 0===g?void 0:g.enabled,rawFields:d});e.data(b);var x=e.viewBBox,O=y(r,o,x).finalSize,j=function(t){var e=t.r;return e*O};return f&&(j=function(t){return t[f]*O}),Object(a["a"])(Object(c["c"])({},t,{options:{xField:"x",yField:"y",seriesField:l,sizeField:f,rawFields:Object(i["d"])(m,d),point:{color:s,style:u,shape:"circle",size:j}}})),t}function w(t){return Object(c["f"])(Object(s["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 C(t){var e=t.chart,n=t.options,r=n.tooltip;if(!1===r)e.tooltip(!1);else{var a=r;Object(o["s"])(r,"fields")||(a=Object(c["c"])({},{customItems:function(t){return t.map((function(t){var n=Object(o["s"])(e.getOptions(),"scales"),r=Object(o["s"])(n,["name","formatter"],(function(t){return t})),a=Object(o["s"])(n,["value","formatter"],(function(t){return t}));return Object(i["a"])(Object(i["a"])({},t),{name:r(t.data.name),value:a(t.data.value)})}))}},a)),e.tooltip(a)}return t}function M(t){var e=t.chart;return e.axis(!1),t}function S(t){var e=t.drilldown,n=t.interactions,r=void 0===n?[]:n;return(null===e||void 0===e?void 0:e.enabled)?Object(c["c"])({},t,{interactions:Object(i["d"])(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:v,enableDrillDown:!0}}])}):t}function A(t){var e=t.chart,n=t.options;return Object(s["c"])({chart:e,options:S(n)}),t}function k(t){return Object(c["f"])(Object(s["f"])("pointStyle"),x,O,s["k"],w,j,M,s["d"],C,A,s["a"],Object(s["b"])())(t)}n("51d4"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="circle-packing",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return b},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return k},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(r["b"])},a94d:function(t,e,n){"use strict";n("91da"),n("974f"),n("7dfe");var i=n("c1e2");n.d(e,"Event",(function(){return i["a"]}));var r=n("2251");n.d(e,"Base",(function(){return r["a"]}));n("1fb2"),n("1a0e"),n("258a"),n("3cbe"),n("e635"),n("f049"),n("bb0c"),n("c5c4")},a9a0:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n("5809"),r=n("917c"),o=[1,0,0,0,1,0,0,0,1];function a(t,e){var n=e?Object(i["d"])(e):Object(i["d"])(o);return r["h"].transform(n,t)}},a9e3:function(t,e,n){"use strict";var i=n("83ab"),r=n("da84"),o=n("e330"),a=n("94ca"),s=n("6eeb"),c=n("1a2d"),l=n("7156"),u=n("3a9b"),h=n("d9b5"),f=n("c04e"),p=n("d039"),d=n("241c").f,g=n("06cf").f,v=n("9bf2").f,y=n("408a"),m=n("58a8").trim,b="Number",x=r[b],O=x.prototype,j=r.TypeError,w=o("".slice),C=o("".charCodeAt),M=function(t){var e=f(t,"number");return"bigint"==typeof e?e:S(e)},S=function(t){var e,n,i,r,o,a,s,c,l=f(t,"number");if(h(l))throw j("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=m(l),e=C(l,0),43===e||45===e){if(n=C(l,2),88===n||120===n)return NaN}else if(48===e){switch(C(l,1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+l}for(o=w(l,2),a=o.length,s=0;sr)return NaN;return parseInt(o,i)}return+l};if(a(b,!x(" 0o1")||!x("0b1")||x("+0x1"))){for(var A,k=function(t){var e=arguments.length<1?0:x(M(t)),n=this;return u(O,n)&&p((function(){y(n)}))?l(Object(e),n,k):e},F=i?d(x):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),E=0;F.length>E;E++)c(x,A=F[E])&&!c(k,A)&&v(k,A,g(x,A));k.prototype=O,O.constructor=k,s(r,b,k)}},aed4:function(t,e,n){"use strict";var i=n("5809"),r=n("8937"),o=n("cc94"),a=n("62e3"),s=n("c34d"),c=n("b4aa"),l=n("0f20");function u(t){return t.target.depth}function h(t){return t.depth}function f(t,e){return e-1-t.height}function p(t,e){return t.sourceLinks.length?t.depth:e-1}function d(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(r["cb"])(t.sourceLinks,u)-1:0}function g(t){return function(){return t}}function v(t,e){for(var n=0,i=0;ii)throw new Error("circular link");r=o,o=new Set}if(e)for(var s=Math.max(y(n,(function(t){return t.depth}))+1,0),c=void 0,l=0;ln)throw new Error("circular link");i=r,r=new Set}}function B(t){for(var e=t.nodes,i=Math.max(y(e,(function(t){return t.depth}))+1,0),o=(a-r-c)/(i-1),s=new Array(i).fill(0).map((function(){return[]})),l=0,u=e;l0){var m=(u/h-l.y0)*e;l.y0+=m,l.y1+=m,G(l)}}void 0===n&&a.sort(O),a.length&&z(a,i)}}function _(t,e,i){for(var r=t.length,o=r-2;o>=0;--o){for(var a=t[o],s=0,c=a;s0){var m=(u/h-l.y0)*e;l.y0+=m,l.y1+=m,G(l)}}void 0===n&&a.sort(O),a.length&&z(a,i)}}function z(e,n){var i=e.length>>1,r=e[i];N(e,r.y0-t,i-1,n),Y(e,r.y1+t,i+1,n),N(e,s,e.length-1,n),Y(e,o,0,n)}function Y(e,n,i,r){for(;i1e-6&&(o.y0+=a,o.y1+=a),n=o.y1+t}}function N(e,n,i,r){for(;i>=0;--i){var o=e[i],a=(o.y1-n)*r;a>1e-6&&(o.y0-=a,o.y1-=a),n=o.y0-t}}function G(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===i){for(var r=0,o=n;r "+n,value:i}}},nodeWidthRatio:.008,nodePaddingRatio:.01,animation:{appear:{animation:"wave-in"},enter:{animation:"wave-in"}}}},e.prototype.changeData=function(t){this.updateOption({data:t});var e=Y(this.options,this.chart.width,this.chart.height),n=e.nodes,i=e.edges,r=Object(a["e"])(this.chart,V),o=Object(a["e"])(this.chart,H);r.changeData(n),o.changeData(i)},e.prototype.getSchemaAdaptor=function(){return Z},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(o["b"])},af40:function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return p}));var i=n("7326"),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,a=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function c(t,e){var n=t.match(s);Object(i["c"])(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function l(t,e,n){var i,o,a=r.exec(n),s=parseFloat(a[1])%360*(Math.PI/180),l=a[2],u=e.getBBox();s>=0&&s<.5*Math.PI?(i={x:u.minX,y:u.minY},o={x:u.maxX,y:u.maxY}):.5*Math.PI<=s&&s=c.minX&&e<=c.maxX&&n>=c.minY&&n<=c.maxY}function c(t,e,n){if(!s(t,e,n))return null;for(var i=null,r=t.getChildren(),o=r.length,l=o-1;l>=0;l--){var u=r[l];if(u.isGroup())i=c(u,e,n);else if(s(u,e,n)){var h=u,f=a(u,e,n),p=f[0],d=f[1];h.isInShape(p,d)&&(i=u)}if(i)break}return i}var l=n("4799"),u=n("c2ad"),h=n("7326"),f=n("f5e5"),p=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 e["renderer"]="canvas",e["autoDraw"]=!0,e["localRefresh"]=!0,e["refreshElements"]=[],e["clipView"]=!0,e["quickHit"]=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u["a"]},e.prototype.getPixelRatio=function(){var t=this.get("pixelRatio")||Object(h["d"])();return t>=1?Math.ceil(t):1},e.prototype.getViewRange=function(){return{minX:0,minY:0,maxX:this.cfg.width,maxY:this.cfg.height}},e.prototype.createDom=function(){var t=document.createElement("canvas"),e=t.getContext("2d");return this.set("context",e),t},e.prototype.setDOMSize=function(e,n){t.prototype.setDOMSize.call(this,e,n);var i=this.get("context"),r=this.get("el"),o=this.getPixelRatio();r.width=o*e,r.height=o*n,o>1&&i.scale(o,o)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){var i;return i=this.get("quickHit")?c(this,e,n):t.prototype.getShape.call(this,e,n,null),i},e.prototype._getRefreshRegion=function(){var t,e=this.get("refreshElements"),n=this.getViewRange();if(e.length&&e[0]===this)t=n;else if(t=Object(f["f"])(e),t){t.minX=Math.floor(t.minX),t.minY=Math.floor(t.minY),t.maxX=Math.ceil(t.maxX),t.maxY=Math.ceil(t.maxY),t.maxY+=1;var i=this.get("clipView");i&&(t=Object(f["g"])(t,n))}return t},e.prototype.refreshElement=function(t){var e=this.get("refreshElements");e.push(t)},e.prototype._clearFrame=function(){var t=this.get("drawFrame");t&&(Object(h["a"])(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),Object(f["a"])(t,this),Object(f["d"])(t,n),this.set("refreshElements",[])},e.prototype._drawRegion=function(){var t=this.get("context"),e=this.get("refreshElements"),n=this.getChildren(),i=this._getRefreshRegion();i?(t.clearRect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.save(),t.beginPath(),t.rect(i.minX,i.minY,i.maxX-i.minX,i.maxY-i.minY),t.clip(),Object(f["a"])(t,this),Object(f["b"])(this,n,i),Object(f["d"])(t,n,i),t.restore()):e.length&&Object(f["c"])(e),Object(h["c"])(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(h["n"])((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}(r["AbstractCanvas"]);e["a"]=p},b2a0:function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("5809"),r=n("8937"),o=n("17f7");function a(t,e,n,a){var s=Object(r["ib"])(t,(function(t,i){var r=i[n],a=t.has(r)?t.get(r):0,s=i[e];return a=Object(o["b"])(s)?a+s:a,t.set(r,a),t}),new Map);return Object(r["W"])(t,(function(t){var r,c=t[e],l=t[n],u=Object(o["b"])(c)?c/s.get(l):0;return Object(i["a"])(Object(i["a"])({},t),(r={},r[a]=u,r))}))}function s(t,e,n,a){var s=Object(r["ib"])(t,(function(t,i){var a=Object(r["ib"])(n,(function(t,e){return""+t+i[e]}),""),s=t.has(a)?t.get(a):0,c=i[e];return s=Object(o["b"])(c)?s+c:s,t.set(a,s),t}),new Map);return Object(r["W"])(t,(function(t){var c,l=t[e],u=Object(r["ib"])(n,(function(e,n){return""+e+t[n]}),""),h=Object(o["b"])(l)?l/s.get(u):0;return Object(i["a"])(Object(i["a"])({},t),(c={},c[a]=h,c))}))}function c(t,e,n,i,r){return r?a(t,e,n,i):t}},b2c8:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("62e3"),r=n("c34d"),o=n("b4aa"),a=n("8582");n.d(e,"b",(function(){return a["b"]}));var s=n("9457"),c=n("edcb");function l(t){var e=t.chart,n=t.options,r=n.data,a=n.color,l=n.lineStyle,u=n.point,h=null===u||void 0===u?void 0:u.state,f=Object(s["a"])(r);e.data(f);var p=Object(i["c"])({},t,{options:{xField:c["c"],yField:c["d"],line:{color:a,style:l},point:u}}),d=Object(i["c"])({},p,{options:{tooltip:!1,state:h}});return Object(o["d"])(p),Object(o["e"])(d),e.axis(!1),e.legend(!1),t}function u(t){return Object(i["f"])(l,a["b"],r["k"],r["l"],r["a"],Object(r["b"])())(t)}},b2cb:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("8937");function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return i["K"]})),n.d(e,"d",(function(){return i["I"]})),n.d(e,"h",(function(){return i["Q"]})),n.d(e,"f",(function(){return i["O"]})),n.d(e,"i",(function(){return i["db"]})),n.d(e,"a",(function(){return i["j"]})),n.d(e,"k",(function(){return i["wb"]}));var o="undefined"!==typeof window&&"undefined"!==typeof window.document;function a(t,e){if(t.isCanvas())return!0;var n=e.getParent(),i=!1;while(n){if(n===t){i=!0;break}n=n.getParent()}return i}function s(t){return t.cfg.visible&&t.cfg.capture}},b3de: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 s}));var i=n("cc94"),r=n("62e3"),o="range",a="count",s=Object(r["c"])({},i["b"].getDefaultOptions(),{columnStyle:{stroke:"#FFFFFF"},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]})},b44e:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("917c"),o=n("cc94"),a=n("62e3"),s=n("5cc9"),c=Object(a["c"])({},o["b"].getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}}),l=(n("c88a"),function(t){function e(e,n){var o=t.call(this,e,n)||this;return o.type="scatter",o.on(r["i"].BEFORE_RENDER,(function(t){var e,n,a=o,c=a.options,l=a.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===r["b"].FILTER){var u=o.chart.filterData(o.chart.getData());Object(s["b"])({chart:l,options:Object(i["a"])(Object(i["a"])({},c),{data:u})})}(null===(n=t.data)||void 0===n?void 0:n.source)===r["b"].RESET&&Object(s["b"])({chart:l,options:c})})),o}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption(Object(s["c"])(Object(a["c"])({},this.options,{data:t})));var e=this,n=e.options,i=e.chart;Object(s["b"])({chart:i,options:n}),this.chart.changeData(t)},e.prototype.getSchemaAdaptor=function(){return s["a"]},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e}(o["b"]))},b4aa:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u["a"]})),n.d(e,"c",(function(){return p})),n.d(e,"f",(function(){return d["a"]})),n.d(e,"b",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"h",(function(){return y}));var i=n("5809"),r=n("e474"),o=n("62e3"),a=n("58e4");function s(t){var e=t.options,n=e.area,s=e.xField,c=e.yField,l=e.seriesField,u=e.smooth,h=e.tooltip,f=Object(r["a"])(h,[s,c,l]),p=f.fields,d=f.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"area",colorField:l,tooltipFields:p,mapping:Object(i["a"])({shape:u?"smooth":"area",tooltip:d},n)}})):t}var c=n("8937");function l(t){var e=t.options,n=e.line,i=e.stepType,s=e.xField,l=e.yField,u=e.seriesField,h=e.smooth,f=e.connectNulls,p=e.tooltip,d=Object(r["a"])(p,[s,l,u]),g=d.fields,v=d.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"line",colorField:u,tooltipFields:g,mapping:Object(c["h"])({shape:i||(h?"smooth":"line"),tooltip:v},n),args:{connectNulls:f}}})):t}var u=n("a0c4"),h=n("917c");function f(t){var e=t.chart,n=t.options,i=t.ext,r=n.seriesField,a=n.isGroup,s=n.isStack,l=n.marginRatio,u=n.widthRatio,f=n.groupField,p=n.theme,d=[];if(r&&(a&&d.push({type:"dodge",dodgeBy:f||r,marginRatio:l}),s&&d.push({type:"stack",marginRatio:l})),d.length&&(null===i||void 0===i?void 0:i.geometry)){var g=null===i||void 0===i?void 0:i.geometry;g.adjust(d)}return Object(c["K"])(u)||e.theme(Object(o["c"])({},Object(c["O"])(p)?p:Object(h["k"])(p),{columnWidthRatio:u})),t}function p(t){var e=t.options,n=e.xField,s=e.yField,c=e.interval,l=e.seriesField,u=e.tooltip,h=e.minColumnWidth,p=e.maxColumnWidth,d=e.columnBackground,g=e.dodgePadding,v=e.intervalPadding,y=Object(r["a"])(u,[n,s,l]),m=y.fields,b=y.formatter,x=(c?Object(a["a"])(Object(o["c"])({},t,{options:{type:"interval",colorField:l,tooltipFields:m,mapping:Object(i["a"])({tooltip:b},c),args:{dodgePadding:g,intervalPadding:v,minColumnWidth:h,maxColumnWidth:p,background:d}}})):t).ext;return f(Object(i["a"])(Object(i["a"])({},t),{ext:x}))}var d=n("28c6");function g(t){var e=t.options,n=e.edge,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,h=Object(r["a"])(u,[s,c,l]),f=h.fields,p=h.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"edge",colorField:l,tooltipFields:f,mapping:Object(i["a"])({tooltip:p},n)}})):t}function v(t){var e=t.options,n=e.schema,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,h=Object(r["a"])(u,[s,c,l]),f=h.fields,p=h.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"schema",colorField:l,tooltipFields:f,mapping:Object(i["a"])({tooltip:p},n)}})):t}function y(t){var e=t.options,n=e.violin,s=e.xField,c=e.yField,l=e.seriesField,u=e.sizeField,h=e.tooltip,f=Object(r["a"])(h,[s,c,l,u]),p=f.fields,d=f.formatter;return n?Object(a["a"])(Object(o["c"])({},t,{options:{type:"violin",colorField:l,tooltipFields:p,mapping:Object(i["a"])({tooltip:d},n)}})):t}},b5d5:function(t,e){},b6f4:function(t,e,n){"use strict";var i=n("0dd4"),r=n("2388"),o=n("21e5"),a=n("092b");e["a"]=function(){var t=r["a"],e=!1,n=1,s=1,c=[0],l=a["a"],u=a["a"],h=a["a"],f=a["a"],p=a["a"];function d(t){return t.x0=t.y0=0,t.x1=n,t.y1=s,t.eachBefore(g),c=[0],e&&t.eachBefore(i["a"]),t}function g(e){var n=c[e.depth],i=e.x0+n,r=e.y0+n,o=e.x1-n,a=e.y1-n;o2&&(n.push([r].concat(s.splice(0,2))),c="l",r="m"===r?"l":"L"),"o"===c&&1===s.length&&n.push([r,s[0]]),"r"===c)n.push([r].concat(s));else while(s.length>=e[c])if(n.push([r].concat(s.splice(0,e[c]))),!e[c])break;return t})),n},c=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var o=[{x:+t[i-2],y:+t[i-1]},{x:+t[i],y:+t[i+1]},{x:+t[i+2],y:+t[i+3]},{x:+t[i+4],y:+t[i+5]}];e?i?r-4===i?o[3]={x:+t[0],y:+t[1]}:r-2===i&&(o[2]={x:+t[0],y:+t[1]},o[3]={x:+t[2],y:+t[3]}):o[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?o[3]=o[2]:i||(o[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-o[0].x+6*o[1].x+o[2].x)/6,(-o[0].y+6*o[1].y+o[2].y)/6,(o[1].x+6*o[2].x-o[3].x)/6,(o[1].y+6*o[2].y-o[3].y)/6,o[2].x,o[2].y])}return n},l=function(t,e,n,i,r){var o=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var a=Math.PI/180,s=t+n*Math.cos(-i*a),c=t+n*Math.cos(-r*a),l=e+n*Math.sin(-i*a),u=e+n*Math.sin(-r*a);o=[["M",s,l],["A",n,n,0,+(r-i>180),0,c,u]]}else o=[["M",t,e],["m",0,-i],["a",n,i,0,1,1,0,2*i],["a",n,i,0,1,1,0,-2*i],["z"]];return o},u=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,i=[],r=0,o=0,a=0,u=0,h=0;"M"===t[0][0]&&(r=+t[0][1],o=+t[0][2],a=r,u=o,h++,i[0]=["M",r,o]);for(var f=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),p=void 0,d=void 0,g=h,v=t.length;g1&&(j=Math.sqrt(j),n*=j,i*=j);var w=n*n,C=i*i,M=(o===a?-1:1)*Math.sqrt(Math.abs((w*C-w*O*O-C*x*x)/(w*O*O+C*x*x)));d=M*n*O/i+(t+s)/2,g=M*-i*x/n+(e+c)/2,h=Math.asin(((e-g)/i).toFixed(9)),f=Math.asin(((c-g)/i).toFixed(9)),h=tf&&(h-=2*Math.PI),!a&&f>h&&(f-=2*Math.PI)}var S=f-h;if(Math.abs(S)>v){var A=f,k=s,F=c;f=h+v*(a&&f>h?1:-1),s=d+n*Math.cos(f),c=g+i*Math.sin(f),m=p(s,c,n,i,r,0,a,k,F,[f,A,d,g])}S=f-h;var E=Math.cos(h),T=Math.sin(h),P=Math.cos(f),I=Math.sin(f),B=Math.tan(S/4),L=4/3*n*B,D=4/3*i*B,R=[t,e],_=[t+L*T,e-D*E],z=[s+L*I,c-D*P],Y=[s,c];if(_[0]=2*R[0]-_[0],_[1]=2*R[1]-_[1],l)return[_,z,Y].concat(m);m=[_,z,Y].concat(m).join().split(",");for(var N=[],G=0,X=m.length;G7){t[e].shift();var o=t[e];while(o.length)s[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},y=function(t,e,o,a,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",a.x,a.y]),o.bx=0,o.by=0,o.x=t[s][1],o.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var m=0;m1?1:c<0?0:c;for(var l=c/2,u=12,h=[-.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],p=0,d=0;d0&&h<1&&f.push(h)}else{var g=l*l-4*u*c,v=Math.sqrt(g);if(!(g<0)){var y=(-l+v)/(2*c);y>0&&y<1&&f.push(y);var m=(-l-v)/(2*c);m>0&&m<1&&f.push(m)}}var b,x=f.length,O=x;while(x--)h=f[x],b=1-h,p[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*r+h*h*h*a,p[1][x]=b*b*b*e+3*b*b*h*i+3*b*h*h*o+h*h*h*s;return p[0][O]=t,p[1][O]=e,p[0][O+1]=a,p[1][O+1]=s,p[0].length=p[1].length=O+2,{min:{x:Math.min.apply(0,p[0]),y:Math.min.apply(0,p[1])},max:{x:Math.max.apply(0,p[0]),y:Math.max.apply(0,p[1])}}},x=function(t,e,n,i,r,o,a,s){if(!(Math.max(t,n)Math.max(r,a)||Math.max(e,i)Math.max(o,s))){var c=(t*i-e*n)*(r-a)-(t-n)*(r*s-o*a),l=(t*i-e*n)*(o-s)-(e-i)*(r*s-o*a),u=(t-n)*(o-s)-(e-i)*(r-a);if(u){var h=c/u,f=l/u,p=+h.toFixed(2),d=+f.toFixed(2);if(!(p<+Math.min(t,n).toFixed(2)||p>+Math.max(t,n).toFixed(2)||p<+Math.min(r,a).toFixed(2)||p>+Math.max(r,a).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(o,s).toFixed(2)||d>+Math.max(o,s).toFixed(2)))return{x:h,y:f}}}},O=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},j=function(t,e,n,i,r){if(r)return[["M",+t+ +r,e],["l",n-2*r,0],["a",r,r,0,0,1,r,r],["l",0,i-2*r],["a",r,r,0,0,1,-r,r],["l",2*r-n,0],["a",r,r,0,0,1,-r,-r],["l",0,2*r-i],["a",r,r,0,0,1,r,-r],["z"]];var o=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return o.parsePathArray=v,o},w=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:j(t,e,n,i),vb:[t,e,n,i].join(" ")}},C=function(t,e){return t=w(t),e=w(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},M=function(t,e,n,r,o,a,s,c){Object(i["C"])(t)||(t=[t,e,n,r,o,a,s,c]);var l=b.apply(null,t);return w(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},S=function(t,e,n,i,r,o,a,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),f=c*c,p=f*c,d=u*t+3*h*c*n+3*l*c*c*r+p*a,g=u*e+3*h*c*i+3*l*c*c*o+p*s,v=t+2*c*(n-t)+f*(r-2*n+t),y=e+2*c*(i-e)+f*(o-2*i+e),m=n+2*c*(r-n)+f*(a-2*r+n),b=i+2*c*(o-i)+f*(s-2*o+i),x=l*t+c*n,O=l*e+c*i,j=l*r+c*a,w=l*o+c*s,C=90-180*Math.atan2(v-m,y-b)/Math.PI;return{x:d,y:g,m:{x:v,y:y},n:{x:m,y:b},start:{x:x,y:O},end:{x:j,y:w},alpha:C}},A=function(t,e,n){var i=M(t),r=M(e);if(!C(i,r))return n?0:[];for(var o=m.apply(0,t),a=m.apply(0,e),s=~~(o/8),c=~~(a/8),l=[],u=[],h={},f=n?0:[],p=0;p=0&&k<=1&&F>=0&&F<=1&&(n?f+=1:f.push({x:A.x,y:A.y,t1:k,t2:F}))}}return f},k=function(t,e,n){var i,r,o,a,s,c,l,u,h,f;t=d(t),e=d(e);for(var p=n?0:[],g=0,v=t.length;g=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return u}var P=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(T(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var o=0;o<=n-1;o++)i.push(r)}return i},I=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,o=[];if(1===t.length&&"M"===t[0][0]){for(var a=0;a=0;c--)a=o[c].index,"add"===o[c].type?t.splice(a,0,[].concat(t[a])):t.splice(a,1)}i=t.length;var h=r-i;if(i0)){t[i]=e[i];break}n=_(n,t[i-1],1)}t[i]=["Q"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"T":t[i]=["T"].concat(n[0]);break;case"C":if(n.length<3){if(!(i>0)){t[i]=e[i];break}n=_(n,t[i-1],2)}t[i]=["C"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;case"S":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=_(n,t[i-1],1)}t[i]=["S"].concat(n.reduce((function(t,e){return t.concat(e)}),[]));break;default:t[i]=e[i]}return t}},b727:function(t,e,n){var i=n("0366"),r=n("e330"),o=n("44ad"),a=n("7b0b"),s=n("07fa"),c=n("65f0"),l=r([].push),u=function(t){var e=1==t,n=2==t,r=3==t,u=4==t,h=6==t,f=7==t,p=5==t||h;return function(d,g,v,y){for(var m,b,x=a(d),O=o(x),j=i(g,v),w=s(O),C=0,M=y||c,S=e?M(d,w):n||f?M(d,0):void 0;w>C;C++)if((p||C in O)&&(m=O[C],b=j(m,C,x),t))if(e)S[C]=b;else if(b)switch(t){case 3:return!0;case 5:return m;case 6:return C;case 2:l(S,m)}else switch(t){case 4:return!1;case 7:l(S,m)}return h?-1:r||u?u:S}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},b825:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Text",(function(){return d})),n.d(e,"Arc",(function(){return v})),n.d(e,"Region",(function(){return m})),n.d(e,"Image",(function(){return x})),n.d(e,"DataMarker",(function(){return j})),n.d(e,"DataRegion",(function(){return C})),n.d(e,"RegionFilter",(function(){return S})),n.d(e,"Shape",(function(){return k})),n.d(e,"Html",(function(){return P}));var i=n("2c79"),r=n("8937"),o=n("31e6"),a=n("060b"),s=n("8ea8"),c=n("e546");function l(t,e){var n=e.x,o=e.y,l=e.content,u=e.style,h=e.id,f=e.name,p=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,m=e.background,b=t.addGroup({id:h+"-group",name:f+"-group",attrs:{x:n,y:o}}),x=b.addShape({type:"text",id:h,name:f,attrs:Object(i["a"])({x:0,y:0,text:l},u)}),O=Object(c["c"])(Object(r["s"])(m,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(a["a"])(!v,x,j,y)}if(m){var w=Object(r["s"])(m,"style",{}),C=x.getCanvasBBox(),M=C.minX,S=C.minY,A=C.width,k=C.height,F=b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(i["a"])({x:M-O[3],y:S-O[0],width:A+O[1]+O[3],height:k+O[0]+O[2]},w)});F.toBack()}Object(s["c"])(b,n,o),Object(s["b"])(b,p,n,o)}var u=n("2f5e"),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),{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"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(i["a"])({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var i;return i="start"===n?0:"center"===n?.5:Object(r["Q"])(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(r["M"])(n)?n:1,(i>1||i<0)&&(i=1),{x:Object(c["g"])(t.x,e.x,i),y:Object(c["g"])(t.y,e.y,i)}},e.prototype.renderLabel=function(t){var e=this.get("text"),n=this.get("start"),i=this.get("end"),r=e.position,o=e.content,a=e.style,s=e.offsetX,c=e.offsetY,u=e.autoRotate,h=e.maxLength,f=e.autoEllipsis,p=e.ellipsisPosition,d=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(n,i,r),m=y.x+s,b=y.y+c,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:m,y:b,content:o,style:a,maxLength:h,autoEllipsis:f,ellipsisPosition:p,background:d,isVertical:v};if(u){var O=[i.x-n.x,i.y-n.y];x.rotate=Math.atan2(O[1],O[0])}l(t,x)},e}(o["a"]),f=h,p=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:"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,i=e.y,r=this.get("content"),o=this.get("style"),a=this.getElementId("text"),s=this.get("name")+"-text",c=this.get("maxLength"),u=this.get("autoEllipsis"),h=this.get("isVertical"),f=this.get("ellipsisPosition"),p=this.get("background"),d=this.get("rotate"),g={id:a,name:s,x:n,y:i,content:r,style:o,maxLength:c,autoEllipsis:u,isVertical:h,ellipsisPosition:f,background:p,rotate:d};l(t,g)},e.prototype.resetLocation=function(){var t=this.getElementByLocalId("text-group");if(t){var e=this.getLocation(),n=e.x,i=e.y,r=this.get("rotate");Object(s["c"])(t,n,i),Object(s["b"])(t,r,n,i)}},e}(o["a"]),d=p,g=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:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,o=Object(c["e"])(e,n,i),a=Object(c["e"])(e,n,r),s=r-i>Math.PI?1:0,l=[["M",o.x,o.y]];if(r-i===2*Math.PI){var u=Object(c["e"])(e,n,i+Math.PI);l.push(["A",n,n,0,s,1,u.x,u.y]),l.push(["A",n,n,0,s,1,a.x,a.y])}else l.push(["A",n,n,0,s,1,a.x,a.y]);return l},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(i["a"])({path:e},n)})},e}(o["a"]),v=g,y=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:"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"),r=this.get("style"),o=Object(c["k"])({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["a"])({x:o.x,y:o.y,width:o.width,height:o.height},r)})},e}(o["a"]),m=y,b=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:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=Object(c["k"])({start:t,end:e}),o=this.get("src");return Object(i["a"])({x:r.x,y:r.y,img:o,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(o["a"]),x=b,O=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:"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(r["s"])(this.get("line"),"display")&&this.renderLine(t),Object(r["s"])(this.get("text"),"display")&&this.renderText(t),Object(r["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,r=e.y,o=e.text,a=Object(i["c"])(e,["x","y","text"]),s=this.get("text"),c=s.background,u=s.maxLength,h=s.autoEllipsis,f=s.isVertival,p=s.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:o,style:a,background:c,maxLength:u,autoEllipsis:h,isVertival:f,ellipsisPosition:p};l(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),o=Object(r["s"])(this.get("line"),"length",0),a=this.get("coordinateBBox"),c=t.getBBox(),l=c.minX,u=c.maxX,h=c.minY,f=c.maxY,p=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(a){if(p){if(n+l<=a.minX){var v=a.minX-(n+l);Object(s["c"])(p,p.attr("x")+v,p.attr("y"))}if(n+u>=a.maxX){v=n+u-a.maxX;Object(s["c"])(p,p.attr("x")-v,p.attr("y"))}}if("upward"===e&&i+h<=a.minY||"upward"!==e&&i+f>=a.maxY){var y=void 0,m=void 0;"upward"===e&&i+h<=a.minY?(y="top",m=1):(y="bottom",m=-1),d.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,o*m]]),Object(s["c"])(p,p.attr("x"),(o+2)*m)}}},e.prototype.getShapeAttrs=function(){var t=Object(r["s"])(this.get("line"),"display"),e=Object(r["s"])(this.get("point"),"style",{}),n=Object(r["s"])(this.get("line"),"style",{}),o=Object(r["s"])(this.get("text"),"style",{}),a=this.get("direction"),s=t?Object(r["s"])(this.get("line"),"length",0):0,c="upward"===a?-1:1;return{point:Object(i["a"])({x:0,y:0},e),line:Object(i["a"])({path:[["M",0,0],["L",0,s*c]]},n),text:Object(i["a"])({x:0,y:(s+2)*c,text:Object(r["s"])(this.get("text"),"content",""),textBaseline:"upward"===a?"bottom":"top"},o)}},e}(o["a"]),j=O,w=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:"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(r["s"])(this.get("region"),"style",{}),n=(Object(r["s"])(this.get("text"),"style",{}),this.get("lineLength")||0),o=this.get("points");if(o.length){var a=Object(c["j"])(o),s=[];s.push(["M",o[0].x,a.minY-n]),o.forEach((function(t){s.push(["L",t.x,t.y])})),s.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(i["a"])({path:s},e)});var u=Object(i["a"])({id:this.getElementId("text"),name:"annotation-text",x:(a.minX+a.maxX)/2,y:a.minY-n},this.get("text"));l(t,u)}},e}(o["a"]),C=w,M=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:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),i=this.get("end"),o=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(r["j"])(this.get("shapes"),(function(t,n){var i=t.get("type"),a=Object(r["e"])(t.attr());e.adjustShapeAttrs(a),e.addShape(o,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:a})}));var a=Object(c["k"])({start:n,end:i});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"]),S=M,A=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:"annotation",type:"shape",draw:r["fb"]})},e.prototype.renderInner=function(t){var e=this.get("render");Object(r["I"])(e)&&e(t)},e}(o["a"]),k=A,F=n("7c8a"),E=n("75ed"),T=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:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(c["a"])(t);var n=Object(r["I"])(e)?e(t):e;Object(r["F"])(n)?t.appendChild(n):Object(r["Q"])(n)&&t.appendChild(Object(F["b"])(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),o=this.get("alignY"),a=this.get("offsetX"),s=this.get("offsetY"),c=Object(F["d"])(t),l=Object(F["c"])(t),u={x:n,y:i};"middle"===r?u.x-=Math.round(c/2):"right"===r&&(u.x-=Math.round(c)),"middle"===o?u.y-=Math.round(l/2):"bottom"===o&&(u.y-=Math.round(l)),a&&(u.x+=a),s&&(u.y+=s),Object(F["e"])(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(E["a"]),P=T},bb0c:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],o=t[2],a=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],f=e[0],p=e[1],d=e[2],g=e[3],v=e[4],y=e[5],m=e[6],b=e[7],x=e[8];return n[0]=f*i+p*a+d*l,n[1]=f*r+p*s+d*u,n[2]=f*o+p*c+d*h,n[3]=g*i+v*a+y*l,n[4]=g*r+v*s+y*u,n[5]=g*o+v*c+y*h,n[6]=m*i+b*a+x*l,n[7]=m*r+b*s+x*u,n[8]=m*o+b*c+x*h,n}function r(t,e){var n=[],i=e[0],r=e[1];return n[0]=t[0]*i+t[3]*r+t[6],n[1]=t[1]*i+t[4]*r+t[7],n}function o(t){var e=[],n=t[0],i=t[1],r=t[2],o=t[3],a=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=u*a-s*l,f=-u*o+s*c,p=l*o-a*c,d=n*h+i*f+r*p;return d?(d=1/d,e[0]=h*d,e[1]=(-u*i+r*l)*d,e[2]=(s*i-r*a)*d,e[3]=f*d,e[4]=(u*n-r*c)*d,e[5]=(-s*n+r*o)*d,e[6]=p*d,e[7]=(-l*n+i*c)*d,e[8]=(a*n-i*o)*d,e):null}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return o}))},bb0f:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("cc94"),o=n("b2a0"),a=n("1d73"),s=n("62e3"),c=Object(s["c"])({},r["b"].getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left"}}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.isPercent,i=e.xField,r=e.yField,s=this,c=s.chart,l=s.options;Object(a["b"])({chart:c,options:l}),this.chart.changeData(Object(o["a"])(t,r,i,r,n))},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},bb31:function(t,e){},bb3f:function(t,e,n){},bb7a:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ver=e.clear=e.bind=void 0;var i=n("3f84"),r=function(t,e){var n=(0,i.getSensor)(t);return n.bind(e),function(){n.unbind(e)}};e.bind=r;var o=function(t){var e=(0,i.getSensor)(t);(0,i.removeSensor)(e)};e.clear=o;var a="1.0.1";e.ver=a},bbad:function(t,e,n){"use strict";n.r(e),n.d(e,"CONTAINER_CLASS",(function(){return i})),n.d(e,"TITLE_CLASS",(function(){return r})),n.d(e,"LIST_CLASS",(function(){return o})),n.d(e,"LIST_ITEM_CLASS",(function(){return a})),n.d(e,"MARKER_CLASS",(function(){return s})),n.d(e,"VALUE_CLASS",(function(){return c})),n.d(e,"NAME_CLASS",(function(){return l})),n.d(e,"CROSSHAIR_X",(function(){return u})),n.d(e,"CROSSHAIR_Y",(function(){return h}));var i="g2-tooltip",r="g2-tooltip-title",o="g2-tooltip-list",a="g2-tooltip-list-item",s="g2-tooltip-marker",c="g2-tooltip-value",l="g2-tooltip-name",u="g2-tooltip-crosshair-x",h="g2-tooltip-crosshair-y"},bbd5:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("cc94"),o=n("b2a0"),a=n("0cc4"),s=n("62e3"),c=Object(s["c"])({},r["b"].getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},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(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options,n=e.yField,i=e.xField,r=e.isPercent,s=this,c=s.chart,l=s.options;Object(a["b"])({chart:c,options:l}),this.chart.changeData(Object(o["a"])(t,n,i,n,r))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},bbdf:function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var i=n("8937"),r=n("62e3"),o=n("c34d"),a=n("b4aa"),s=n("31f7"),c=n("0770");function l(t){var e=t.chart,n=t.options,o=n.percent,l=n.progressStyle,u=n.color,h=n.barWidthRatio;e.data(Object(c["a"])(o));var f=Object(r["c"])({},t,{options:{xField:"1",yField:"percent",seriesField:"type",isStack:!0,widthRatio:h,interval:{style:l,color:Object(i["Q"])(u)?[u,s["a"][1]]:u},args:{zIndexReversed:!0}}});return Object(a["c"])(f),e.tooltip(!1),e.axis(!1),e.legend(!1),t}function u(t){var e=t.chart;return e.coordinate("rect").transpose(),t}function h(t){return Object(r["f"])(l,Object(o["g"])({}),u,o["a"],o["k"],Object(o["b"])())(t)}},bc88:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("b2cb"),r=n("96de");function o(t,e,n){var r=1;if(Object(i["h"])(t)&&(r=t.split("\n").length),r>1){var o=a(e,n);return e*r+o*(r-1)}return e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(r["a"])(),o=0;if(Object(i["e"])(t)||""===t)return o;if(n.save(),n.font=e,Object(i["h"])(t)&&t.includes("\n")){var a=t.split("\n");Object(i["a"])(a,(function(t){var e=n.measureText(t).width;o'})),n}function v(t,e){var n,i,r=f.exec(t),o=Object(h["eb"])(Object(h["sb"])(parseFloat(r[1])),2*Math.PI),a=r[2];o>=0&&o<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=o&&o';e.innerHTML=n},t}(),w=j,C=function(){function t(t,e){this.cfg={};var n=Object(c["b"])("marker"),i=Object(h["vb"])("marker_");n.setAttribute("id",i);var r=Object(c["b"])("path");r.setAttribute("stroke",t.stroke||"none"),r.setAttribute("fill",t.fill||"none"),n.appendChild(r),n.setAttribute("overflow","visible"),n.setAttribute("orient","auto-start-reverse"),this.el=n,this.child=r,this.id=i;var o=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===o?this._setDefaultPath(e,r):(this.cfg=o,this._setMarker(t.lineWidth,r)),this}return t.prototype.match=function(){return!1},t.prototype._setDefaultPath=function(t,e){var n=this.el;e.setAttribute("d","M0,0 L"+10*Math.cos(Math.PI/6)+",5 L0,10"),n.setAttribute("refX",""+10*Math.cos(Math.PI/6)),n.setAttribute("refY","5")},t.prototype._setMarker=function(t,e){var n=this.el,i=this.cfg.path,r=this.cfg.d;Object(h["C"])(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),r&&n.setAttribute("refX",""+r/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),M=C,S=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c["b"])("clipPath");this.el=e,this.id=Object(h["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}(),A=S,k=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,F=function(){function t(t){this.cfg={};var e=Object(c["b"])("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(c["b"])("image");e.appendChild(n);var i=Object(h["vb"])("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=k.exec(t),o=r[2];n.setAttribute("href",o);var a=new Image;function s(){e.setAttribute("width",""+a.width),e.setAttribute("height",""+a.height)}return o.match(/^data:/i)||(a.crossOrigin="Anonymous"),a.src=o,a.complete?s():(a.onload=s,a.src=a.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),E=F,T=function(){function t(t){var e=Object(c["b"])("defs"),n=Object(h["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,i=null,r=0;r0){var p=e.getElementId("region-"+l),d=c%2===0;if(Object(r["Q"])(o))d&&e.drawAlternateRegion(p,t,a.points,s.points,o);else{var g=d?o[1]:o[0];e.drawAlternateRegion(p,t,a.points,s.points,g)}}a=s}))},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var o=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:o,fill:r}})},e}(o["a"]),c=s;function l(t,e,n,i){var r=n-t,o=i-e;return Math.sqrt(r*r+o*o)}var 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),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),i=this.get("closed"),o=[];if(t.length)if("circle"===n){var a=this.get("center"),s=t[0],c=l(a.x,a.y,s.x,s.y),u=e?0:1;i?(o.push(["M",a.x,a.y-c]),o.push(["A",c,c,0,0,u,a.x,a.y+c]),o.push(["A",c,c,0,0,u,a.x,a.y-c]),o.push(["Z"])):Object(r["j"])(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["A",c,c,0,0,u,t.x,t.y])}))}else Object(r["j"])(t,(function(t,e){0===e?o.push(["M",t.x,t.y]):o.push(["L",t.x,t.y])})),i&&o.push(["Z"]);return o},e}(c),h=u,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"})},e.prototype.getGridPath=function(t){var e=[];return Object(r["j"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(c),p=f},c88a:function(t,e,n){"use strict";var i=n("917c");Object(i["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"}]})},c947:function(t,e,n){"use strict";function i(t,e){return t.parent===e.parent?1:2}function r(t){return t.reduce(o,0)/t.length}function o(t,e){return t+e.x}function a(t){return 1+t.reduce(s,0)}function s(t,e){return Math.max(t,e.y)}function c(t){var e;while(e=t.children)t=e[0];return t}function l(t){var e;while(e=t.children)t=e[e.length-1];return t}n.r(e),n.d(e,"cluster",(function(){return u})),n.d(e,"hierarchy",(function(){return h["c"]})),n.d(e,"pack",(function(){return f["a"]})),n.d(e,"packSiblings",(function(){return p["a"]})),n.d(e,"packEnclose",(function(){return d["a"]})),n.d(e,"partition",(function(){return g["a"]})),n.d(e,"stratify",(function(){return O})),n.d(e,"tree",(function(){return E})),n.d(e,"treemap",(function(){return T["a"]})),n.d(e,"treemapBinary",(function(){return P})),n.d(e,"treemapDice",(function(){return I["a"]})),n.d(e,"treemapSlice",(function(){return B["a"]})),n.d(e,"treemapSliceDice",(function(){return L})),n.d(e,"treemapSquarify",(function(){return D["a"]})),n.d(e,"treemapResquarify",(function(){return R}));var u=function(){var t=i,e=1,n=1,o=!1;function s(i){var s,u=0;i.eachAfter((function(e){var n=e.children;n?(e.x=r(n),e.y=a(n)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)}));var h=c(i),f=l(i),p=h.x-t(h,f)/2,d=f.x+t(f,h)/2;return i.eachAfter(o?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-p)/(d-p)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return s.separation=function(e){return arguments.length?(t=e,s):t},s.size=function(t){return arguments.length?(o=!1,e=+t[0],n=+t[1],s):o?null:[e,n]},s.nodeSize=function(t){return arguments.length?(o=!0,e=+t[0],n=+t[1],s):o?[e,n]:null},s},h=n("6bcb"),f=n("2373"),p=n("5be2"),d=n("eccb"),g=n("f8d7"),v=n("21e5"),y={depth:-1},m={};function b(t){return t.id}function x(t){return t.parentId}var O=function(){var t=b,e=x;function n(n){var i,r,o,a,s,c,l,u=Array.from(n),f=u.length,p=new Map;for(r=0;r0)throw new Error("cycle");return o}return n.id=function(e){return arguments.length?(t=Object(v["b"])(e),n):t},n.parentId=function(t){return arguments.length?(e=Object(v["b"])(t),n):e},n};function j(t,e){return t.parent===e.parent?1:2}function w(t){var e=t.children;return e?e[0]:t.t}function C(t){var e=t.children;return e?e[e.length-1]:t.t}function M(t,e,n){var i=n/(e.i-t.i);e.c-=i,e.s+=n,t.c+=i,e.z+=n,e.m+=n}function S(t){var e,n=0,i=0,r=t.children,o=r.length;while(--o>=0)e=r[o],e.z+=n,e.m+=n,n+=e.s+(i+=e.c)}function A(t,e,n){return t.a.parent===e.parent?t.a:n}function k(t,e){this._=t,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=e}function F(t){var e,n,i,r,o,a=new k(t,0),s=[a];while(e=s.pop())if(i=e._.children)for(e.children=new Array(o=i.length),r=o-1;r>=0;--r)s.push(n=e.children[r]=new k(i[r],r)),n.parent=e;return(a.parent=new k(null,0)).children=[a],a}k.prototype=Object.create(h["a"].prototype);var E=function(){var t=j,e=1,n=1,i=null;function r(r){var s=F(r);if(s.eachAfter(o),s.parent.m=-s.z,s.eachBefore(a),i)r.eachBefore(c);else{var l=r,u=r,h=r;r.eachBefore((function(t){t.xu.x&&(u=t),t.depth>h.depth&&(h=t)}));var f=l===u?1:t(l,u)/2,p=f-l.x,d=e/(u.x+f+p),g=n/(h.depth||1);r.eachBefore((function(t){t.x=(t.x+p)*d,t.y=t.depth*g}))}return r}function o(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){S(e);var o=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-o):e.z=o}else r&&(e.z=r.z+t(e._,r._));e.parent.A=s(e,r,e.parent.A||i[0])}function a(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,i){if(n){var r,o=e,a=e,s=n,c=o.parent.children[0],l=o.m,u=a.m,h=s.m,f=c.m;while(s=C(s),o=w(o),s&&o)c=w(c),a=C(a),a.a=e,r=s.z+h-o.z-l+t(s._,o._),r>0&&(M(A(s,e,i),e,r),l+=r,u+=r),h+=s.m,l+=o.m,f+=c.m,u+=a.m;s&&!C(a)&&(a.t=s,a.m+=h-u),o&&!w(c)&&(c.t=o,c.m+=l-f,i=e)}return i}function c(t){t.x*=e,t.y=t.depth*n}return r.separation=function(e){return arguments.length?(t=e,r):t},r.size=function(t){return arguments.length?(i=!1,e=+t[0],n=+t[1],r):i?null:[e,n]},r.nodeSize=function(t){return arguments.length?(i=!0,e=+t[0],n=+t[1],r):i?[e,n]:null},r},T=n("b6f4"),P=function(t,e,n,i,r){var o,a,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=a=o=0;o=e-1){var c=s[t];return c.x0=i,c.y0=r,c.x1=o,void(c.y1=a)}var h=l[t],f=n/2+h,p=t+1,d=e-1;while(p>>1;l[g]a-r){var m=n?(i*y+o*v)/n:o;u(t,p,v,i,r,m,a),u(p,e,y,m,r,o,a)}else{var b=n?(r*y+a*v)/n:a;u(t,p,v,i,r,o,b),u(p,e,y,i,b,o,a)}}u(0,c,t.value,e,n,i,r)},I=n("14f3"),B=n("ec83"),L=function(t,e,n,i,r){(1&t.depth?B["a"]:I["a"])(t,e,n,i,r)},D=n("2388"),R=function t(e){function n(t,n,i,r,o){if((a=t._squarify)&&a.ratio===e){var a,s,c,l,u,h=-1,f=a.length,p=t.value;while(++h1?e:1)},n}(D["b"])},c94c:function(t,e,n){"use strict";var i=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-1)||Object(s["o"])(e,p,d)})),t.render(!0)}};function k(t){var e,n=t.options,i=n.geometryOptions,o=void 0===i?[]:i,a=n.xField,l=n.yField,u=Object(c["k"])(o,(function(t){var e=t.geometry;return e===r.Line||void 0===e}));return Object(s["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:x(l,n.yAxis),geometryOptions:[b(a,l[0],o[0]),b(a,l[1],o[1])],annotations:x(l,n.annotations)}})}function F(t){var e,n,i=t.chart,r=t.options,o=r.geometryOptions,a={line:0,column:1},s=[{type:null===(e=o[0])||void 0===e?void 0:e.geometry,id:f},{type:null===(n=o[1])||void 0===n?void 0:n.geometry,id:p}];return s.sort((function(t,e){return-a[t.type]+a[e.type]})).forEach((function(t){return i.createView({id:t.id})})),t}function E(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,a=n.geometryOptions,s=n.data,c=n.tooltip,l=[Object(o["a"])(Object(o["a"])({},a[0]),{id:f,data:s[0],yField:r[0]}),Object(o["a"])(Object(o["a"])({},a[1]),{id:p,data:s[1],yField:r[1]})];return l.forEach((function(t){var n=t.id,r=t.data,a=t.yField,s=m(t)&&t.isPercent,l=s?Object(u["c"])(r,a,i,a):r,f=Object(h["a"])(e,n).data(l),p=s?Object(o["a"])({formatter:function(e){return{name:e[t.seriesField]||a,value:(100*Number(e[a])).toFixed(2)+"%"}}},c):c;S({chart:f,options:{xField:i,yField:a,tooltip:p,geometryOption:t}})})),t}function T(t){var e,n=t.chart,i=t.options,r=i.geometryOptions,o=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],a=0;return n.once("beforepaint",(function(){Object(c["j"])(r,(function(t,e){var i=Object(h["a"])(n,0===e?f:p);if(!t.color){var r=i.getGroupScales(),s=Object(c["s"])(r,[0,"values","length"],1),l=o.slice(a,a+s).concat(0===e?[]:o);i.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),a+=s}})),n.render(!0)})),t}function P(t){var e,n,i=t.chart,r=t.options,o=r.xAxis,a=r.yAxis,c=r.xField,u=r.yField;return Object(l["g"])((e={},e[c]=o,e[u[0]]=a[0],e))(Object(s["c"])({},t,{chart:Object(h["a"])(i,f)})),Object(l["g"])((n={},n[c]=o,n[u[1]]=a[1],n))(Object(s["c"])({},t,{chart:Object(h["a"])(i,p)})),t}function I(t){var e=t.chart,n=t.options,r=Object(h["a"])(e,f),o=Object(h["a"])(e,p),a=n.xField,s=n.yField,c=n.xAxis,l=n.yAxis;return e.axis(a,!1),e.axis(s[0],!1),e.axis(s[1],!1),r.axis(a,c),r.axis(s[0],O(l[0],i.Left)),o.axis(a,!1),o.axis(s[1],O(l[1],i.Right)),t}function B(t){var e=t.chart,n=t.options,i=n.tooltip,r=Object(h["a"])(e,f),o=Object(h["a"])(e,p);return e.tooltip(i),r.tooltip({shared:!0}),o.tooltip({shared:!0}),t}function L(t){var e=t.chart;return Object(l["c"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,f)})),Object(l["c"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,p)})),t}function D(t){var e=t.chart,n=t.options,i=n.annotations,r=Object(c["s"])(i,[0]),o=Object(c["s"])(i,[1]);return Object(l["b"])(r)(Object(s["c"])({},t,{chart:Object(h["a"])(e,f),options:{annotations:r}})),Object(l["b"])(o)(Object(s["c"])({},t,{chart:Object(h["a"])(e,p),options:{annotations:o}})),t}function R(t){var e=t.chart;return Object(l["k"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,f)})),Object(l["k"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,p)})),Object(l["k"])(t),t}function _(t){var e=t.chart;return Object(l["a"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,f)})),Object(l["a"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,p)})),t}function z(t){var e=t.chart,n=t.options,i=n.yAxis;return Object(l["e"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,f),options:{yAxis:i[0]}})),Object(l["e"])(Object(s["c"])({},t,{chart:Object(h["a"])(e,p),options:{yAxis:i[1]}})),t}function Y(t){var e=t.chart,n=t.options,i=n.legend,r=n.geometryOptions,o=n.yField,a=n.data,l=Object(h["a"])(e,f),u=Object(h["a"])(e,p);if(!1===i)e.legend(!1);else if(Object(c["O"])(i)&&!0===i.custom)e.legend(i);else{var d=Object(c["s"])(r,[0,"legend"],i),g=Object(c["s"])(r,[1,"legend"],i);e.once("beforepaint",(function(){var t=a[0].length?w({view:l,geometryOption:r[0],yField:o[0],legend:d}):[],n=a[1].length?w({view:u,geometryOption:r[1],yField:o[1],legend:g}):[];e.legend(Object(s["c"])({},i,{custom:!0,items:t.concat(n)}))})),r[0].seriesField&&l.legend(r[0].seriesField,d),r[1].seriesField&&u.legend(r[1].seriesField,g),e.on("legend-item:click",(function(t){var n=Object(c["s"])(t,"gEvent.delegateObject",{});if(n&&n.item){var i=n.item,r=i.value,a=i.isGeometry,s=i.viewId;if(a){var l=Object(c["n"])(o,(function(t){return t===r}));if(l>-1){var u=Object(c["s"])(Object(h["a"])(e,s),"geometries");Object(c["j"])(u,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var f=Object(c["s"])(e.getController("legend"),"option.items",[]);Object(c["j"])(e.views,(function(t){var n=t.getGroupScales();Object(c["j"])(n,(function(e){e.values&&e.values.indexOf(r)>-1&&t.filter(e.field,(function(t){var e=Object(c["m"])(f,(function(e){return e.value===t}));return!e.unchecked}))})),e.render(!0)}))}}}))}return t}function N(t){var e=t.chart,n=t.options,i=n.slider,r=Object(h["a"])(e,f),o=Object(h["a"])(e,p);return i&&(r.option("slider",i),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,i=e.originValue;Object(c["H"])(n,i)||A(o,n)})),e.once("afterpaint",(function(){if(!Object(c["D"])(i)){var t=i.start,e=i.end;(t||e)&&A(o,[t,e])}}))),t}function G(t){return Object(s["f"])(k,F,R,E,P,I,z,B,L,D,_,T,Y,N)(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(s["c"])({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return G}})(a["b"])},cbbe:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("62e3"),a=n("c34d"),s=n("b4aa");function c(t){var e=t.chart,n=t.options,r=n.data,a=n.lineStyle,c=n.color,l=n.point,u=n.area;e.data(r);var h=Object(o["c"])({},t,{options:{line:{style:a,color:c},point:l?Object(i["a"])({color:c},l):l,area:u?Object(i["a"])({color:c},u):u,label:void 0}}),f=Object(o["c"])({},h,{options:{tooltip:!1}}),p=(null===l||void 0===l?void 0:l.state)||n.state,d=Object(o["c"])({},h,{options:{tooltip:!1,state:p}});return Object(s["d"])(h),Object(s["e"])(d),Object(s["a"])(f),t}function l(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,s=n.xField,c=n.yField;return Object(o["f"])(Object(a["g"])((e={},e[s]=i,e[c]=r,e)))(t)}function u(t){var e=t.chart,n=t.options,i=n.radius,r=n.startAngle,o=n.endAngle;return e.coordinate("polar",{radius:i,startAngle:r,endAngle:o}),t}function h(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis,o=n.yField,a=n.yAxis;return e.axis(i,r),e.axis(o,a),t}function f(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,s=Object(o["d"])(e,"line");if(r){var c=r.callback,l=Object(i["c"])(r,["callback"]);s.label({fields:[a],callback:c,cfg:Object(o["A"])(l)})}else s.label(!1);return t}function p(t){return Object(o["f"])(c,l,a["k"],u,h,a["d"],a["l"],f,a["c"],a["a"],Object(a["b"])())(t)}var d=n("917c"),g=n("8937"),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["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(),r=n.shared,o=n.title,a=t.prototype.getTooltipItems.call(this,e);if(a.length>0){var s=this.view.geometries[0],c=s.dataArray,l=a[0].name,u=[];return c.forEach((function(t){t.forEach((function(t){var e=d["h"].getTooltipItems(t,s),n=e[0];if(!r&&n&&n.name===l){var a=Object(g["K"])(o)?l:o;u.push(Object(i["a"])(Object(i["a"])({},n),{name:n.title,title:a}))}else if(r&&n){a=Object(g["K"])(o)?n.name||l:o;u.push(Object(i["a"])(Object(i["a"])({},n),{name:n.title,title:a}))}}))})),u}return[]},e}(d["g"]);Object(d["m"])("radar-tooltip",v);var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.init=function(){var t=this.context.view;t.removeInteraction("tooltip")},e.prototype.show=function(){var t=this.context.event,e=this.getTooltipController();e.showTooltip({x:t.x,y:t.y})},e.prototype.hide=function(){var t=this.getTooltipController();t.hideTooltip()},e.prototype.getTooltipController=function(){var t=this.context.view;return t.getController("radar-tooltip")},e}(d["a"]);Object(d["l"])("radar-tooltip",y),Object(d["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(i["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 p}})(r["b"])},cc94:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return h}));var i=n("5809"),r=n("917c"),o=n("8937"),a=n("7fa2"),s=n("bb7a"),c=n("62e3"),l="data-chart-source-type",u=["padding","appendPadding","renderer","pixelRatio","syncViewPadding","supportCSSTransform","limitInPlot"],h=function(t){function e(e,n){var i=t.call(this)||this;return i.container="string"===typeof e?document.getElementById(e):e,i.options=Object(c["c"])({},i.getDefaultOptions(),n),i.createG2(),i.bindEvents(),i}return Object(i["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 r["c"](Object(i["a"])(Object(i["a"])(Object(i["a"])(Object(i["a"])({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Object(c["t"])(this.options,u)),{defaultInteractions:o})),this.container.setAttribute(l,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(c["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(c["c"])({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=Object(c["i"])(this.chart);Object(o["j"])(i,(function(i){e(i.getData())&&i.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(c["i"])(this.chart),e=[];return Object(o["j"])(t,(function(t){var n=t.getData(),i=t.getStates();Object(o["j"])(i,(function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t){var e=Object(i["d"])(t),n=this.chart.getController("annotation"),r=n.getComponents().map((function(t){return t.extra}));n.clear(!0);for(var o=function(t){var i=r[t],o=e.findIndex((function(t){return t.id&&t.id===i.id}));-1!==o&&(i=Object(c["c"])({},i,e[o]),e.splice(o,1)),n.annotation(i)},a=0;at.delay&&Object(r["j"])(e.toAttrs,(function(e,n){a.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var b=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r["db"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i["a"])(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?i=m(i,j):n.addAnimator(this),i.push(j),this.set("animations",i),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(r["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(r["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"),e=t.getTime(),n=this.get("animations"),i=this.get("_pause").pauseTime;return Object(r["j"])(n,(function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,i=this,o=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=o[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(a["g"])(s,n))return"break";Object(r["C"])(l)?Object(r["j"])(l,(function(t){i.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,l,e)}},c=this,l=0;l=0)&&(p=p?Object(o["C"])(p)?p:[p]:[],h.layout=Object(o["l"])(p,(function(t){return"limit-in-shape"!==t.type})),h.layout.length||delete h.layout),c.label({fields:u||[s],callback:l,cfg:Object(a["A"])(h)})}else Object(a["r"])(a["a"].WARN,null===r,"the label option must be an Object."),c.label({fields:[s]});return t}function h(t){var e=t.chart,n=t.options,i=n.legend,r=n.seriesField;return!1===i?e.legend(!1):r&&e.legend(r,i),t}function f(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,o=n.startAngle,a=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:o,endAngle:a}}),t}function p(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,c=n.yField;return Object(a["f"])(Object(s["g"])((e={},e[o]=i,e[c]=r,e)))(t)}function d(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return i?e.axis(o,i):e.axis(o,!1),r?e.axis(a,r):e.axis(a,!1),t}function g(t){Object(a["f"])(Object(s["f"])("sectorStyle"),l,p,u,f,d,h,s["l"],s["c"],s["a"],s["k"],Object(s["b"])(),s["j"])(t)}var v=Object(a["c"])({},r["b"].getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right"},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(i["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}})(r["b"])},d177:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"d",(function(){return r})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}));var i=0,r=.5,o=.5,a=.05},d36e:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("5809"),r=n("cc94"),o=n("9457"),a=n("9a08"),s=n("8937"),c={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(s["s"])(e,[0,"data","y"],0)},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},l={appendPadding:2,tooltip:Object(i["a"])({},c),animation:{}},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-column",e}return Object(i["b"])(e,t),e.getDefaultOptions=function(){return l},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Object(a["b"])({chart:n,options:i}),n.changeData(Object(o["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},d390:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("5809"),r=n("cc94"),o=n("9457"),a=n("8582"),s=n("edcb"),c={appendPadding:2,tooltip:Object(i["a"])({},s["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(i["b"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this,n=e.chart,i=e.options;Object(a["b"])({chart:n,options:i}),n.changeData(Object(o["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},d4c6:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=new Map;function r(t,e){i.set(t,e)}function o(t){return i.get(t)}var a=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.width,o=e.height;return{x:n,y:i,width:r,height:o}},s=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.r;return{x:n-r,y:i-r,width:2*r,height:2*r}},c=n("1183");function l(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 u(t,e){var n=t.get("startArrowShape"),i=t.get("endArrowShape"),r=null,o=null;return n&&(r=n.getCanvasBBox(),e=l(e,r)),i&&(o=i.getCanvasBBox(),e=l(e,o)),e}var h=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],o=0;oMath.PI/2?Math.PI-l:l,u=u>Math.PI/2?Math.PI-u:u;var h={xExtra:Math.cos(c/2-l)*(e/2*(1/Math.sin(c/2)))-e/2||0,yExtra:Math.cos(u-c/2)*(e/2*(1/Math.sin(c/2)))-e/2||0};return h}var b=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,o=t.get("segments")||Object(g["e"])(n),a=y(o,r),s=a.x,c=a.y,l=a.width,h=a.height,f={minX:s,minY:c,maxX:s+l,maxY:c+h};return f=u(t,f),{x:f.minX,y:f.minY,width:f.maxX-f.minX,height:f.maxY-f.minY}},x=function(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=Math.min(n,r),s=Math.max(n,r),c=Math.min(i,o),l=Math.max(i,o),h={minX:a,maxX:s,minY:c,maxY:l};return h=u(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}},O=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,o=e.ry;return{x:n-r,y:i-o,width:2*r,height:2*o}};r("rect",a),r("image",a),r("circle",s),r("marker",s),r("polyline",h),r("polygon",f),r("text",d),r("path",b),r("line",x),r("ellipse",O)},d7b4:function(t,e,n){"use strict";var i=n("b825");n.d(e,"Annotation",(function(){return i}));var r=n("7cfd");n.d(e,"Axis",(function(){return r}));var o=n("ff7f");n.d(e,"Crosshair",(function(){return o}));var a=n("c771");n.d(e,"Grid",(function(){return a}));var s=n("e5b1");n.d(e,"Legend",(function(){return s}));var c=n("0a1f");n.d(e,"Tooltip",(function(){return c}));n("3665"),n("31e6"),n("75ed");var l=n("7c50");n.d(e,"Slider",(function(){return l["a"]}));var u=n("deef");n.d(e,"Scrollbar",(function(){return u["a"]}));n("be4e"),n("bb31");var h=n("d7ff");n.d(e,"propagationDelegate",(function(){return h["a"]}));var f=n("bbad");n.d(e,"TOOLTIP_CSS_CONST",(function(){return f}))},d7ff:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("a94d");function r(t,e,n){var r=new i["Event"](e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);var o=t.getParent();while(o)o.emitDelegation(e,r),r.propagationPath.push(o),o=o.getParent()}},d81d:function(t,e,n){"use strict";var i=n("23e7"),r=n("b727").map,o=n("1dde"),a=o("map");i({target:"Array",proto:!0,forced:!a},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},d91c:function(t,e,n){"use strict";n("e2bb")},db3c:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("62e3");function r(){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"),i=r();n.width=t*i,n.height=e*i,n.style.width=t+"px",n.style.height=e+"px";var o=n.getContext("2d");return o.scale(i,i),n}function a(t,e,n,i){void 0===i&&(i=n);var r=e.backgroundColor,o=e.opacity;t.globalAlpha=o,t.fillStyle=r,t.beginPath(),t.fillRect(0,0,n,i),t.closePath()}function s(t,e,n){var i=t+e;return n?2*i:i}function c(t,e){var n=e?[[t*(1/4),t*(1/4)],[t*(3/4),t*(3/4)]]:[[.5*t,.5*t]];return n}function l(t,e){var n=e*Math.PI/180,i={a:Math.cos(n)*(1/t),b:Math.sin(n)*(1/t),c:-Math.sin(n)*(1/t),d:Math.cos(n)*(1/t),e:0,f:0};return i}var u={size:6,padding:2,backgroundColor:"transparent",opacity:1,rotation:0,fill:"#fff",fillOpacity:.5,stroke:"transparent",lineWidth:0,isStagger:!0};function h(t,e,n,i){var r=e.size,o=e.fill,a=e.lineWidth,s=e.stroke,c=e.fillOpacity;t.beginPath(),t.globalAlpha=c,t.fillStyle=o,t.strokeStyle=s,t.lineWidth=a,t.arc(n,i,r/2,0,2*Math.PI,!1),t.fill(),a&&t.stroke(),t.closePath()}function f(t){var e=Object(i["c"])({},u,t),n=e.size,f=e.padding,p=e.isStagger,d=e.rotation,g=s(n,f,p),v=c(g,p),y=o(g,g),m=y.getContext("2d");a(m,e,g);for(var b=0,x=v;bi?r=i-n:t+n=0;i--)t.removeChild(e[i])}function a(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))}function s(t){var e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),o=Math.max(e.x,n.x),a=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function c(t){var e=t.map((function(t){return t.x})),n=t.map((function(t){return t.y})),i=Math.min.apply(Math,e),r=Math.min.apply(Math,n),o=Math.max.apply(Math,e),a=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:o,maxY:a,width:o-i,height:a-r}}function l(t,e,n,i){var r=t+n,o=e+i;return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(o)?0:o}}function u(t,e,n){return(1-n)*t+e*n}function h(t,e,n){return{x:t.x+Math.cos(n)*e,y:t.y+Math.sin(n)*e}}function f(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}var p=function(t,e,n){return void 0===n&&(n=Math.pow(Number.EPSILON,.5)),[t,e].includes(1/0)?Math.abs(t)===Math.abs(e):Math.abs(t-e)0?Object(i["j"])(u,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=g(t),n=t.applyToMatrix([e.minX,e.minY,1]),i=t.applyToMatrix([e.minX,e.maxY,1]),r=t.applyToMatrix([e.maxX,e.minY,1]),l=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],i[0],r[0],l[0]),h=Math.max(n[0],i[0],r[0],l[0]),f=Math.min(n[1],i[1],r[1],l[1]),p=Math.max(n[1],i[1],r[1],l[1]);ua&&(a=h),fc&&(c=p)}})):(o=0,a=0,s=0,c=0),e=l(o,s,a-o,c-s)}else e=t.getBBox();return r?d(e,r):e}function v(t,e){if(t.getClip()||e.getClip()){var n=e.getClip();if(n){var i={type:n.get("type"),attrs:n.attr()};t.setClip(i)}else t.setClip(null)}}function y(t){return t+"px"}function m(t,e,n,i){var r=f(t,e),o=i/r,a=0;return"start"===n?a=0-o:"end"===n&&(a=1+o),{x:u(t.x,e.x,a),y:u(t.y,e.y,a)}}},e5b1:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return v})),n.d(e,"Continuous",(function(){return x})),n.d(e,"Base",(function(){return f}));var i=n("2c79"),r=n("8937"),o=n("060b"),a=n("8ea8"),s=n("9778"),c=n("2f5e"),l=n("31e6"),u=n("e546"),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),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),i=this.get("maxHeight"),r=e.width,o=e.height;return n&&(r=Math.min(r,n)),i&&(o=Math.min(o,i)),Object(u["b"])(e.minX,e.minY,r,o)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),i=this.get("offsetY");this.moveElementTo(this.get("group"),{x:t+n,y:e+i})},e.prototype.applyOffset=function(){this.resetLocation()},e.prototype.getDrawPoint=function(){return this.get("currentPoint")},e.prototype.setDrawPoint=function(t){return this.set("currentPoint",t)},e.prototype.renderInner=function(t){this.resetDraw(),this.get("title")&&this.drawTitle(t),this.drawLegendContent(t),this.get("background")&&this.drawBackground(t)},e.prototype.drawBackground=function(t){var e=this.get("background"),n=t.getBBox(),r=Object(u["c"])(e.padding),o=Object(i["a"])({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style),a=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:o});a.toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,o=n.style,a=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(i["a"])({text:a,x:e.x,y:e.y},o)}),c=s.getBBox();this.set("currentPoint",{x:e.x,y:c.maxY+r})},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"]),f=h,p={marker:{style:{inactiveFill:"#000",inactiveOpacity:.45,fill:"#000",opacity:1,size:12}},text:{style:{fill:"#ccc",fontSize:12}}},d={fill:c["a"].textColor,fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:c["a"].fontFamily,fontWeight:"normal",lineHeight:12},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.currentPageIndexg&&(g=m),"horizontal"===f?(v&&vx&&(x=e.width)})),O=x,x+=h,c&&(x=Math.min(c,x),O=Math.min(c,O)),this.pageWidth=x,this.pageHeight=l-Math.max(v.height,f+j);var M=Math.floor(this.pageHeight/(f+j));Object(r["j"])(s,(function(t,e){0!==e&&e%M===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:f}}),y.y+=f+j})),this.totalPagesCnt=m,this.moveElementTo(g,{x:i+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},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),c=Object(r["s"])(o.marker,"style",{}),l=c.size,u=void 0===l?12:l,h=Object(i["c"])(c,["size"]),f=this.drawArrow(s,a,"navigation-arrow-left","horizontal"===e?"up":"left",u,h);f.on("click",this.onNavigationBack);var p=f.getBBox();a.x+=p.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(i["a"])({x:a.x,y:a.y+u/2,text:n,textBaseline:"middle"},Object(r["s"])(o.text,"style"))}),g=d.getBBox();a.x+=g.width+2;var v=this.drawArrow(s,a,"navigation-arrow-right","horizontal"===e?"down":"right",u,h);return v.on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=Object(r["h"])({},p,this.get("pageNavigator")),n=e.marker.style,i=n.fill,o=n.opacity,a=n.inactiveFill,s=n.inactiveOpacity,c=this.currentPageIndex+"/"+this.totalPagesCnt,l=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),u=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),h=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),f=l.getBBox();l.attr("text",c);var d=l.getBBox();l.attr("x",l.attr("x")-(d.width-f.width)/2),u.attr("opacity",1===this.currentPageIndex?s:o),u.attr("fill",1===this.currentPageIndex?a:i),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?s:o),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?a:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,r,o,s){var c=e.x,l=e.y,u={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},h=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(i["a"])({path:[["M",c+o/2,l],["L",c,l+o],["L",c+o,l+o],["Z"]],cursor:"pointer"},s)});return h.attr("matrix",Object(a["e"])({x:c+o/2,y:l+o/2},u[r])),h},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,i=t.pageHeight,r=this.get("layout"),o="horizontal"===r?{x:0,y:i*(1-e)}:{x:n*(1-e),y:0};return Object(a["f"])(o)},e.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),i=n.length>0;if(i){var o=e.getChildren(),a=this.get("itemStates");Object(r["j"])(o,(function(e){var n=e.get("name"),i=n.split("-")[2],r=Object(s["a"])(t,i,a);r&&(e.attr(r),"marker"!==i||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(f),v=g,y=1.4,m=.4,b=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:"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:c["a"].textColor,textBaseline:"middle",fontFamily:c["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:c["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),i=e.getCurrentValue(),r=i[1];rn&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var i=e.getValueByCanvasPoint(n.x,n.y),r=e.getValueByCanvasPoint(t.x,t.y),o=e.getCurrentValue(),a=o[1]-o[0],s=e.getRange(),c=r-i;c<0?o[0]+c>s.min?e.setValue([o[0]+c,o[1]+c]):e.setValue([s.min,s.min+a]):c>0&&(c>0&&o[1]+co&&(l=o),l0&&this.changeRailLength(i,a,n[a]-f)}},e.prototype.changeRailLength=function(t,e,n){var i,r=t.getBBox();i="height"===e?this.getRailPath(r.x,r.y,r.width,n):this.getRailPath(r.x,r.y,n,r.height),t.attr("path",i)},e.prototype.changeRailPosition=function(t,e,n){var i=t.getBBox(),r=this.getRailPath(e,n,i.width,i.height);t.attr("path",r)},e.prototype.fixedHorizontal=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===o?(t.attr({x:i.x,y:i.y+u/2}),this.changeRailPosition(n,i.x+c.width+a,i.y),e.attr({x:i.x+c.width+s.width+2*a,y:i.y+u/2})):"top"===o?(t.attr({x:i.x,y:i.y}),e.attr({x:i.x+s.width,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+a)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+a}),e.attr({x:i.x+s.width,y:i.y+s.height+a}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),o=r.align,a=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===o)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+a),e.attr({x:i.x,y:i.y+c.height+s.height+2*a});else if("right"===o)t.attr({x:i.x+s.width+a,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+a,y:i.y+s.height});else{var u=Math.max(c.width,l.width);t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x+u+a,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(f),x=b},e5e2:function(t,e,n){"use strict";var i=function(){function t(t,e){this.bubbles=!0,this.target=null,this.currentTarget=null,this.delegateTarget=null,this.delegateObject=null,this.defaultPrevented=!1,this.propagationStopped=!1,this.shape=null,this.fromShape=null,this.toShape=null,this.propagationPath=[],this.type=t,this.name=t,this.originalEvent=e,this.timeStamp=e.timeStamp}return t.prototype.preventDefault=function(){this.defaultPrevented=!0,this.originalEvent.preventDefault&&this.originalEvent.preventDefault()},t.prototype.stopPropagation=function(){this.propagationStopped=!0},t.prototype.toString=function(){var t=this.type;return"[Event (type="+t+")]"},t.prototype.save=function(){},t.prototype.restore=function(){},t}();e["a"]=i},e635:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("f049"),r=n("c5c4");function o(t,e,n){var r=1;if(Object(i["h"])(t)&&(r=t.split("\n").length),r>1){var o=a(e,n);return e*r+o*(r-1)}return e}function a(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(r["a"])(),o=0;if(Object(i["e"])(t)||""===t)return o;if(n.save(),n.font=e,Object(i["h"])(t)&&t.includes("\n")){var a=t.split("\n");Object(i["a"])(a,(function(t){var e=n.measureText(t).width;o=0;return n?o?2*Math.PI-i:i:o?i:2*Math.PI-i}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}},e8b5:function(t,e,n){var i=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==i(t)}},e945:function(t,e,n){"use strict";var i=n("8937"),r=/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,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,c=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},l=function(){var t=document.createElement("i");return t.title="Web Colour Picker",t.style.display="none",document.body.appendChild(t),t},u=function(t,e,n,i){return t[i]+(e[i]-t[i])*n};function h(t){return"#"+d(t[0])+d(t[1])+d(t[2])}var f,p=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},g=function(t,e){var n=isNaN(Number(e))||e<0?0:e>1?1:Number(e),i=t.length-1,r=Math.floor(i*n),o=i*n-r,a=t[r],s=r===i?a:t[r+1];return h([u(a,s,o,0),u(a,s,o,1),u(a,s,o,2)])},v=function(t){if("#"===t[0]&&7===t.length)return t;f||(f=l()),f.style.color=t;var e=document.defaultView.getComputedStyle(f,"").getPropertyValue("color"),n=r.exec(e),i=n[1].split(/\s*,\s*/).map((function(t){return Number(t)}));return e=h(i),e},y=function(t){var e=Object(i["Q"])(t)?t.split("-"):t,n=Object(i["W"])(e,(function(t){return p(-1===t.indexOf("#")?v(t):t)}));return function(t){return g(n,t)}},m=function(t){if(c(t)){var e,n=void 0;if("l"===t[0]){var r=o.exec(t),l=+r[1]+90;n=r[2],e="linear-gradient("+l+"deg, "}else if("r"===t[0]){e="radial-gradient(";r=a.exec(t);n=r[4]}var u=n.match(s);return Object(i["j"])(u,(function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")",e}return t};e["a"]={rgb2arr:p,gradient:y,toRGB:Object(i["ab"])(v),toCSSGradient:m}},ea1d:function(t,e,n){"use strict";var i=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function r(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function o(){}var a=.7,s=1/a,c="\\s*([+-]?\\d+)\\s*",l="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",u="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",h=/^#([0-9a-f]{3,8})$/,f=new RegExp("^rgb\\("+[c,c,c]+"\\)$"),p=new RegExp("^rgb\\("+[u,u,u]+"\\)$"),d=new RegExp("^rgba\\("+[c,c,c,l]+"\\)$"),g=new RegExp("^rgba\\("+[u,u,u,l]+"\\)$"),v=new RegExp("^hsl\\("+[l,u,u]+"\\)$"),y=new RegExp("^hsla\\("+[l,u,u,l]+"\\)$"),m={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 b(){return this.rgb().formatHex()}function x(){return P(this).formatHsl()}function O(){return this.rgb().formatRgb()}function j(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?w(e):3===n?new A(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?C(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?C(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=f.exec(t))?new A(e[1],e[2],e[3],1):(e=p.exec(t))?new A(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=d.exec(t))?C(e[1],e[2],e[3],e[4]):(e=g.exec(t))?C(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=v.exec(t))?T(e[1],e[2]/100,e[3]/100,1):(e=y.exec(t))?T(e[1],e[2]/100,e[3]/100,e[4]):m.hasOwnProperty(t)?w(m[t]):"transparent"===t?new A(NaN,NaN,NaN,0):null}function w(t){return new A(t>>16&255,t>>8&255,255&t,1)}function C(t,e,n,i){return i<=0&&(t=e=n=NaN),new A(t,e,n,i)}function M(t){return t instanceof o||(t=j(t)),t?(t=t.rgb(),new A(t.r,t.g,t.b,t.opacity)):new A}function S(t,e,n,i){return 1===arguments.length?M(t):new A(t,e,n,null==i?1:i)}function A(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function k(){return"#"+E(this.r)+E(this.g)+E(this.b)}function F(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function E(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function T(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new B(t,e,n,i)}function P(t){if(t instanceof B)return new B(t.h,t.s,t.l,t.opacity);if(t instanceof o||(t=j(t)),!t)return new B;if(t instanceof B)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),a=Math.max(e,n,i),s=NaN,c=a-r,l=(a+r)/2;return c?(s=e===a?(n-i)/c+6*(n0&&l<1?0:s,new B(s,c,l,t.opacity)}function I(t,e,n,i){return 1===arguments.length?P(t):new B(t,e,n,null==i?1:i)}function B(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function L(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 D(t,e,n,i,r){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*i+a*r)/6}i(o,j,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:b,formatHex:b,formatHsl:x,formatRgb:O,toString:O}),i(A,S,r(o,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new A(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new A(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:k,formatHex:k,formatRgb:F,toString:F})),i(B,I,r(o,{brighter:function(t){return t=null==t?s:Math.pow(s,t),new B(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?a:Math.pow(a,t),new B(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new A(L(t>=240?t-240:t+120,r,i),L(t,r,i),L(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var R=function(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],a=i>0?t[i-1]:2*r-o,s=io&&(r=e.slice(o,r),s[a]?s[a]+=r:s[++a]=r),(n=n[0])===(i=i[0])?s[a]?s[a]+=i:s[++a]=i:(s[++a]=null,c.push({i:a,x:K(n,i)})),o=Q.lastIndex;return o0&&n*n>i*i+r*r}function s(t,e){for(var n=0;n=a.left?o.left:a.left;i.autoPadding=n.instance(o.top,o.right,o.bottom/2+5,u),r.autoPadding=n.instance(o.bottom/2+5,a.right,a.bottom,u)}if(!d(c)&&"top"===l){u=o.left>=a.left?o.left:a.left;i.autoPadding=n.instance(o.top,o.right,0,u),r.autoPadding=n.instance(0,a.right,o.top,u)}}function v(t){var e,n,i=t.chart,r=t.options,o=r.data,s=r.xField,c=r.yField,g=r.color,v=r.barStyle,y=r.widthRatio,m=r.legend,b=r.layout,x=p(s,c,f,o,d(b));m?i.legend(f,m):!1===m&&i.legend(!1);var O=x[0],j=x[1];d(b)?(e=i.createView({region:{start:{x:0,y:0},end:{x:.5,y:1}},id:u}),e.coordinate().transpose().reflect("x"),n=i.createView({region:{start:{x:.5,y:0},end:{x:1,y:1}},id:h}),n.coordinate().transpose(),e.data(O),n.data(j)):(e=i.createView({region:{start:{x:0,y:0},end:{x:1,y:.5}},id:u}),n=i.createView({region:{start:{x:0,y:.5},end:{x:1,y:1}},id:h}),n.coordinate().reflect("y"),e.data(O),n.data(j));var w=Object(a["c"])({},t,{chart:e,options:{widthRatio:y,xField:s,yField:c[0],seriesField:f,interval:{color:g,style:v}}});Object(l["c"])(w);var C=Object(a["c"])({},t,{chart:n,options:{xField:s,yField:c[1],seriesField:f,widthRatio:y,interval:{color:g,style:v}}});return Object(l["c"])(C),t}function y(t){var e,n,i,r=t.options,o=t.chart,l=r.xAxis,p=r.yAxis,d=r.xField,g=r.yField,v=Object(a["e"])(o,u),y=Object(a["e"])(o,h),m={};return Object(s["T"])((null===r||void 0===r?void 0:r.meta)||{}).map((function(t){Object(s["s"])(null===r||void 0===r?void 0:r.meta,[t,"alias"])&&(m[t]=r.meta[t].alias)})),o.scale((e={},e[f]={sync:!0,formatter:function(t){return Object(s["s"])(m,t,t)}},e)),Object(c["g"])((n={},n[d]=l,n[g[0]]=p[g[0]],n))(Object(a["c"])({},t,{chart:v})),Object(c["g"])((i={},i[d]=l,i[g[1]]=p[g[1]],i))(Object(a["c"])({},t,{chart:y})),t}function m(t){var e=t.chart,n=t.options,r=n.xAxis,o=n.yAxis,s=n.xField,c=n.yField,l=n.layout,f=Object(a["e"])(e,u),p=Object(a["e"])(e,h);return"bottom"===(null===r||void 0===r?void 0:r.position)?p.axis(s,Object(i["a"])(Object(i["a"])({},r),{label:{formatter:function(){return""}}})):p.axis(s,!1),!1===r?f.axis(s,!1):f.axis(s,Object(i["a"])({position:d(l)?"top":"bottom"},r)),!1===o?(f.axis(c[0],!1),p.axis(c[1],!1)):(f.axis(c[0],o[c[0]]),p.axis(c[1],o[c[1]])),e.__axisPosition={position:f.getOptions().axes[s].position,layout:l},t}function b(t){var e=t.chart;return Object(c["c"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,u)})),Object(c["c"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,h)})),t}function x(t){var e=t.chart,n=t.options,i=n.yField,r=n.yAxis;return Object(c["e"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,u),options:{yAxis:r[i[0]]}})),Object(c["e"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,h),options:{yAxis:r[i[1]]}})),t}function O(t){var e=t.chart;return Object(c["k"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,u)})),Object(c["k"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,h)})),t}function j(t){var e=t.chart;return Object(c["a"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,u)})),Object(c["a"])(Object(a["c"])({},t,{chart:Object(a["e"])(e,h)})),t}function w(t){var e,n,r=this,o=t.chart,s=t.options,c=s.label,l=s.yField,f=s.layout,p=Object(a["e"])(o,u),g=Object(a["e"])(o,h),v=Object(a["d"])(p,"interval"),y=Object(a["d"])(g,"interval");if(c){var m=c.callback,b=Object(i["c"])(c,["callback"]);b.position||(b.position="middle"),void 0===b.offset&&(b.offset=2);var x=Object(i["a"])({},b);if(d(f)){var O=(null===(e=x.style)||void 0===e?void 0:e.textAlign)||("middle"===b.position?"center":"left");b.style=Object(a["c"])({},b.style,{textAlign:O});var j={left:"right",right:"left",center:"center"};x.style=Object(a["c"])({},x.style,{textAlign:j[O]})}else{var w={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof b.position?b.position=w[b.position]:"function"===typeof b.position&&(b.position=function(){for(var t=[],e=0;e
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},c={appendPadding:2,tooltip:Object(i["a"])({},s),animation:{}}},eecd:function(t,e,n){"use strict";var i=n("147d");n.d(e,"getAdjust",(function(){return i["getAdjust"]}));n("41c8");var r=n("94e3"),o=n("29ab"),a=n("f05a"),s=n("f7a9");n("59b0");Object(i["registerAdjust"])("Dodge",r["a"]),Object(i["registerAdjust"])("Jitter",o["a"]),Object(i["registerAdjust"])("Stack",a["a"]),Object(i["registerAdjust"])("Symmetric",s["a"])},efee:function(t,e,n){"use strict";var i=n("5809"),r=n("62e3"),o=n("cc94");(function(t){function e(e,n,i,o){var a=t.call(this,e,Object(r["c"])({},o,n))||this;return a.type="g2-plot",a.defaultOptions=o,a.adaptor=i,a}Object(i["b"])(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}})(o["b"])},f049:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("8937");function r(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}n.d(e,"e",(function(){return i["K"]})),n.d(e,"d",(function(){return i["I"]})),n.d(e,"h",(function(){return i["Q"]})),n.d(e,"f",(function(){return i["O"]})),n.d(e,"i",(function(){return i["db"]})),n.d(e,"a",(function(){return i["j"]})),n.d(e,"k",(function(){return i["wb"]}));var o="undefined"!==typeof window&&"undefined"!==typeof window.document;function a(t,e){if(t.isCanvas())return!0;var n=e.getParent(),i=!1;while(n){if(n===t){i=!0;break}n=n.getParent()}return i}function s(t){return t.cfg.visible&&t.cfg.capture}},f05a:function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),o=n("41c8"),a=r["a"],s=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=void 0===i?["y"]:i,o=e.height,a=void 0===o?NaN:o,s=e.size,c=void 0===s?10:s,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=r,n.height=a,n.size=c,n.reverseOrder=u,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=this,n=e.yField,i=e.reverseOrder,r=n?this.processStack(t):this.processOneDimStack(t);return i?this.reverse(r):r},e.prototype.reverse=function(t){return t.slice(0).reverse()},e.prototype.processStack=function(t){var e=this,n=e.xField,o=e.yField,s=e.reverseOrder,c=s?this.reverse(t):t,l=new a,u=new a;return c.map((function(t){return t.map((function(t){var e,a=r["s"](t,n,0),s=r["s"](t,[o]),c=a.toString();if(s=r["C"](s)?s[1]:s,!r["K"](s)){var h=s>=0?l:u;h.has(c)||h.set(c,0);var f=h.get(c),p=s+f;return h.set(c,p),Object(i["a"])(Object(i["a"])({},t),(e={},e[o]=[f,p],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,r=n.xField,o=n.height,s=n.reverseOrder,c="y",l=s?this.reverse(t):t,u=new a;return l.map((function(t){return t.map((function(t){var n,a=e.size,s=t[r],l=2*a/o;u.has(s)||u.set(s,l/2);var h=u.get(s);return u.set(s,h+l),Object(i["a"])(Object(i["a"])({},t),(n={},n[c]=h,n))}))}))},e}(o["a"]);e["a"]=s},f0b2:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i={locale:"zh-CN",general:{increase:"增加",decrease:"减少",root:"初始"},statistic:{total:"总计"},conversionTag:{label:"转化率"},legend:{},tooltip:{},slider:{},scrollbar:{},waterfall:{total:"总计"}}},f2ce:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return s}));var i,r=n("5809");(function(t){t["ERROR"]="error",t["WARN"]="warn",t["INFO"]="log"})(i||(i={}));var o="AntV/G2Plot";function a(t){for(var e=[],n=1;nthis.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i1?t-1:t}this.translateIndexMap&&(this.translateIndexMap=void 0)},e}(l),d=p,g=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,v="[1-9]\\d?",y="\\d\\d",m="\\d{3}",b="\\d{4}",x="[^\\s]+",O=/\[([^]*?)\]/gm;function j(t,e){for(var n=[],i=0,r=t.length;i-1?r:null}};function C(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},E=C({},F),T=function(t){return E=C(E,t)},P=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},I=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length0?"-":"+")+I(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+I(Math.floor(Math.abs(e)/60),2)+":"+I(Math.abs(e)%60,2)}},L=function(t){return+t-1},D=[null,v],R=[null,x],_=["isPm",x,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],z=["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}],Y={D:["day",v],DD:["day",y],Do:["day",v+x,function(t){return parseInt(t,10)}],M:["month",v,L],MM:["month",y,L],YY:["year",y,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",v,void 0,"isPm"],hh:["hour",y,void 0,"isPm"],H:["hour",v],HH:["hour",y],m:["minute",v],mm:["minute",y],s:["second",v],ss:["second",y],YYYY:["year",b],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",y,function(t){return 10*+t}],SSS:["millisecond",m],d:D,dd:D,ddd:R,dddd:R,MMM:["month",x,w("monthNamesShort")],MMMM:["month",x,w("monthNames")],a:_,A:_,ZZ:z,Z:z},N={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"},G=function(t){return C(N,t)},X=function(t,e,n){if(void 0===e&&(e=N["default"]),void 0===n&&(n={}),"number"===typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date pass to format");e=N[e]||e;var i=[];e=e.replace(O,(function(t,e){return i.push(e),"@@@"}));var r=C(C({},E),n);return e=e.replace(g,(function(e){return B[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function V(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=N[e]||e,t.length>1e3)return null;var i=new Date,r={year:i.getFullYear(),month:0,day:1,hour:0,minute:0,second:0,millisecond:0,isPm:null,timezoneOffset:null},o=[],a=[],s=e.replace(O,(function(t,e){return a.push(P(e)),"@@@"})),c={},l={};s=P(s).replace(g,(function(t){var e=Y[t],n=e[0],i=e[1],r=e[3];if(c[n])throw new Error("Invalid format. "+n+" specified twice in format");return c[n]=!0,r&&(l[r]=!0),o.push(e),"("+i+")"})),Object.keys(l).forEach((function(t){if(!c[t])throw new Error("Invalid format. "+t+" is required in specified format")})),s=s.replace(/@@@/g,(function(){return a.shift()}));var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var h=C(C({},E),n),f=1;f>>1;t(e[c])>n?s=c:a=c+1}return a}},K="format";function U(t,e){var n=i[K]||W[K];return n(t,e)}function Z(t){return Object(r["Q"])(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r["E"])(t)&&(t=t.getTime()),t}var Q=1e3,$=60*Q,J=60*$,tt=24*J,et=31*tt,nt=365*tt,it=[["HH:mm:ss",Q],["HH:mm:ss",10*Q],["HH:mm:ss",30*Q],["HH:mm",$],["HH:mm",10*$],["HH:mm",30*$],["HH",J],["HH",6*J],["HH",12*J],["YYYY-MM-DD",tt],["YYYY-MM-DD",4*tt],["YYYY-WW",7*tt],["YYYY-MM",et],["YYYY-MM",4*et],["YYYY-MM",6*et],["YYYY",380*tt]];function rt(t,e,n){var i=(e-t)/n,o=q((function(t){return t[1]}))(it,i)-1,a=it[o];return o<0?a=it[0]:o>=it.length&&(a=Object(r["U"])(it)),a}var ot=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return h(e,t),e.prototype.translate=function(t){t=Z(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r["M"])(t)&&t-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):U(i,this.mask),i}return t},e.prototype.initCfg=function(){this.tickMethod="time-cat",this.mask="YYYY-MM-DD",this.tickCount=7},e.prototype.setDomain=function(){var e=this.values;Object(r["j"])(e,(function(t,n){e[n]=Z(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(d),at=ot,st=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return h(e,t),e.prototype.scale=function(t){if(Object(r["K"])(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),i=this.max,o=this.min;if(i===o)return e;var a=this.getScalePercent(t);return e+a*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(r["z"])(e),i=Object(r["U"])(e);nthis.max&&(this.max=i),Object(r["K"])(this.minLimit)||(this.min=n),Object(r["K"])(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(r["u"])(this.values),e=t.min,n=t.max;Object(r["K"])(this.min)&&(this.min=e),Object(r["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(r["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}(l),ct=st,lt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return h(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}(ct),ut=lt;function ht(t,e){var n,i=Math.E;return n=e>=0?Math.pow(i,Math.log(e)/t):-1*Math.pow(i,Math.log(-e)/t),n}function ft(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function pt(t,e,n){Object(r["K"])(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r["j"])(t,(function(t){t>0&&t1&&(i=1),i}var dt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return h(e,t),e.prototype.invert=function(t){var e,n=this.base,i=ft(n,this.max),r=this.rangeMin(),o=this.rangeMax()-r,a=this.positiveMin;if(a){if(0===t)return 0;e=ft(n,a/n);var s=1/(i-e)*o;if(t=0?1:-1;return Math.pow(o,n)*a},e.prototype.initCfg=function(){this.tickMethod="pow",this.exponent=2,this.tickCount=5,this.nice=!0},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;var i=this.exponent,r=(ht(i,t)-ht(i,n))/(ht(i,e)-ht(i,n));return r},e}(ct),yt=vt,mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return h(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):U(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(r["Q"])(n)||Object(r["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(r["K"])(e)&&Object(r["M"])(e)||(this.min=this.translate(this.min)),Object(r["K"])(n)&&Object(r["M"])(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],o=1/0,a=o,s=0;Object(r["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),s1&&(this.minTickInterval=a-o),Object(r["K"])(e)&&(this.min=o),Object(r["K"])(n)&&(this.max=s)}},e}(ut),bt=mt,xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return h(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),o=Math.floor(i*(n-1));if(o>=n-1)return Object(r["U"])(e);if(o<0)return Object(r["z"])(e);var a=e[o],s=e[o+1],c=o/(n-1),l=(o+1)/(n-1);return a+(i-c)/(l-c)*(s-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(r["U"])(e)!==this.max&&e.push(this.max),Object(r["z"])(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(r["U"])(e))return 1;var n=0;return Object(r["j"])(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(ct),Ot=xt,jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return h(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(Ot),wt=jt,Ct={};function Mt(t){return Ct[t]}function St(t,e){if(Mt(t))throw new Error("type '"+t+"' existed.");Ct[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 h(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(r["M"])(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(l),kt=At;function Ft(t){return Math.abs(t)<1e-15?t:parseFloat(t.toFixed(15))}var Et=[1,5,2,2.5,4,3],Tt=100*Number.EPSILON;function Pt(t,e){return(t%e+e)%e}function It(t){return Math.round(1e12*t)/1e12}function Bt(t,e,n,i,o,a){var s=Object(r["mb"])(e),c=Object(r["B"])(e,t),l=0,u=Pt(i,a);return(u=0&&(l=1),1-c/(s-1)-n+l}function Lt(t,e,n){var i=Object(r["mb"])(e),o=Object(r["B"])(e,t),a=1;return 1-o/(i-1)-n+a}function Dt(t,e,n,i,r,o){var a=(t-1)/(o-r),s=(e-1)/(Math.max(o,i)-Math.min(n,r));return 2-Math.max(a/s,s/a)}function Rt(t,e){return t>=e?2-(t-1)/(e-1):1}function _t(t,e,n,i){var r=e-t;return 1-.5*(Math.pow(e-i,2)+Math.pow(t-n,2))/Math.pow(.1*r,2)}function zt(t,e,n){var i=e-t;if(n>i){var r=(n-i)/2;return 1-Math.pow(r,2)/Math.pow(.1*i,2)}return 1}function Yt(){return 1}function Nt(t,e,n,i,o,a){void 0===n&&(n=5),void 0===i&&(i=!0),void 0===o&&(o=Et),void 0===a&&(a=[.25,.2,.5,.05]);var s=n<0?0:Math.round(n);if(Number.isNaN(t)||Number.isNaN(e)||"number"!==typeof t||"number"!==typeof e||!s)return{min:0,max:0,ticks:[]};if(e-t<1e-15||1===s)return{min:t,max:e,ticks:[t]};var c={score:-2,lmin:0,lmax:0,lstep:0},l=1;while(l<1/0){for(var u=0;uc.score&&(!i||C<=t&&M>=e)&&(c.lmin=C,c.lmax=M,c.lstep=S,c.score=T)}v+=1}p+=1}}l+=1}var P=Ft(c.lmax),I=Ft(c.lmin),B=Ft(c.lstep),L=Math.floor(It((P-I)/B))+1,D=new Array(L);D[0]=Ft(I);for(u=1;u=a&&t<=s}));return l.map((function(t){return e[t]}))}return e.slice(a,s+1)}function Xt(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,o=new Kt;return o.domain([e,n]),i&&o.nice(r),o.ticks(r)}var Vt=5,Ht=Math.sqrt(50),Wt=Math.sqrt(10),qt=Math.sqrt(2),Kt=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=Vt);var i,r=this._domain.slice(),o=0,a=this._domain.length-1,s=this._domain[o],c=this._domain[a];return c0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=Zt(s,c,t)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=Zt(s,c,t)),i>0?(r[o]=Math.floor(s/i)*i,r[a]=Math.ceil(c/i)*i,this.domain(r)):i<0&&(r[o]=Math.ceil(s*i)/i,r[a]=Math.floor(c*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=Vt),Ut(this._domain[0],this._domain[this._domain.length-1],t||Vt)},t}();function Ut(t,e,n){var i,r,o,a,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e0){t=Math.ceil(t/a),e=Math.floor(e/a),o=new Array(r=Math.ceil(e-t+1));while(++s=0?(o>=Ht?10:o>=Wt?5:o>=qt?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(o>=Ht?10:o>=Wt?5:o>=qt?2:1)}function Qt(t,e,n){var i;return i="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),i*e}function $t(t,e,n){var i=Qt(t,n,"floor"),o=Qt(e,n,"ceil");i=Object(r["p"])(i,n),o=Object(r["p"])(o,n);for(var a=[],s=i;s<=o;s+=n){var c=Object(r["p"])(s,n);a.push(c)}return{min:i,max:o,ticks:a}}function Jt(t,e,n){var i,o=t.minLimit,a=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(r["K"])(o)?Object(r["K"])(e)?s:e:o,f=Object(r["K"])(a)?Object(r["K"])(n)?c:n:a;if(h>f&&(i=[h,f],f=i[0],h=i[1]),u<=2)return[h,f];for(var p=(f-h)/(u-1),d=[],g=0;g0)e=Math.floor(ft(n,r));else{var c=pt(a,n,o);e=Math.floor(ft(n,c))}for(var l=s-e,u=Math.ceil(l/i),h=[],f=e;f=0?1:-1;return Math.pow(t,e)*n}))}function oe(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 ae(t){var e=t.tickCount,n=t.values;if(!n||!n.length)return[];for(var i=n.slice().sort((function(t,e){return t-e})),r=[],o=0;o1&&(r*=Math.ceil(s)),i&&rnt)for(var c=ue(n),l=Math.ceil(o/nt),u=s;u<=c+l;u+=l)a.push(he(u));else if(o>et){var h=Math.ceil(o/et),f=fe(e),p=pe(e,n);for(u=0;u<=p+h;u+=h)a.push(de(s,u+f))}else if(o>tt){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),y=d.getDate(),m=Math.ceil(o/tt),b=ge(e,n);for(u=0;uJ){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),m=d.getDate();var x=d.getHours(),O=Math.ceil(o/J),j=ve(e,n);for(u=0;u<=j+O;u+=O)a.push(new Date(g,v,m,x+u).getTime())}else if(o>$){var w=ye(e,n),C=Math.ceil(o/$);for(u=0;u<=w+C;u+=C)a.push(e+u*$)}else{var M=o;M=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}s("cat",Gt),s("time-cat",le),s("wilkinson-extended",ee),s("r-pretty",se),s("time",ce),s("time-pretty",me),s("log",ne),s("pow",re),s("quantile",ae),s("d3-linear",te),St("cat",d),St("category",d),St("identity",kt),St("linear",ut),St("log",gt),St("pow",yt),St("time",bt),St("timeCat",at),St("quantize",Ot),St("quantile",wt)},f41e:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return s}));var i=n("8937"),r=n("c3ec");function o(t,e){return t.map((function(n,i){var o;return o={},o[r["f"]]=n-(t[i-1]||0),o[r["e"]]=""+i,o[r["d"]]=e,o})).filter((function(t){return!!t[r["f"]]}))}function a(t){var e;return[(e={},e[r["d"]]=Object(i["c"])(t,0,1),e)]}function s(t,e){var n=Object(i["s"])(e,["ticks"],[]),r=Object(i["mb"])(n)?n:[0,Object(i["c"])(t,0,1),1];return o(r,t)}},f45c:function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return a}));var i=n("8937");function r(t){if(Object(i["M"])(t))return[t,t,t,t];if(Object(i["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 i=r(t),o=[e.startsWith("top")?n:0,e.startsWith("right")?n:0,e.startsWith("bottom")?n:0,e.startsWith("left")?n:0];return[i[0]+o[0],i[1]+o[1],i[2]+o[2],i[3]+o[3]]}function a(t){var e=t.map((function(t){return r(t)})),n=[0,0,0,0];return e.length>0&&(n=n.map((function(t,n){return e.forEach((function(i,r){t+=e[r][n]})),t}))),n}},f5e5:function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"d",(function(){return u})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return v})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return x}));var i=n("8937"),r=n("af40"),o=n("9c29"),a=n("7326"),s=n("9f27"),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var o in n){var a=n[o],s=c[o]?c[o]:o;"matrix"===s&&a?t.transform(a[0],a[1],a[3],a[4],a[6],a[7]):"lineDash"===s&&t.setLineDash?Object(i["C"])(a)&&t.setLineDash(a):("strokeStyle"===s||"fillStyle"===s?a=Object(r["b"])(t,e,a):"globalAlpha"===s&&(a*=t.globalAlpha),t[s]=a)}}function u(t,e,n){for(var i=0;iw?j:w,F=j>w?1:j/w,E=j>w?w/j:1;e.translate(x,O),e.rotate(S),e.scale(F,E),e.arc(0,0,k,C,M,1-A),e.scale(1/F,1/E),e.rotate(-S),e.translate(-x,-O)}break;case"Z":e.closePath();break;default:break}if("Z"===d)l=u;else{var T=p.length;l=[p[T-2],p[T-1]]}}}}function y(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 m(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),i=n&&!(!n.width||!n.height),r=t.getCanvasBBox(),o=r&&!(!r.width||!r.height);i&&o?e=Object(a["l"])(n,r):i?e=n:o&&(e=r)}return e}function b(t){if(!t.length)return null;var e=[],n=[],r=[],o=[];return Object(i["j"])(t,(function(t){var i=m(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),o.push(i.maxY))})),{minX:Object(i["bb"])(e),minY:Object(i["bb"])(n),maxX:Object(i["Y"])(r),maxY:Object(i["Y"])(o)}}function x(t,e){return t&&e&&Object(a["f"])(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}},f7a9:function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),o=n("41c8"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["q"](t),n=this,o=n.xField,a=n.yField,s=this.getXValuesMaxMap(e),c=Math.max.apply(Math,Object.keys(s).map((function(t){return s[t]})));return r["W"](t,(function(t){return r["W"](t,(function(t){var e,n,l=t[a],u=t[o];if(r["C"](l)){var h=(c-s[u])/2;return Object(i["a"])(Object(i["a"])({},t),(e={},e[a]=r["W"](l,(function(t){return h+t})),e))}var f=(c-l)/2;return Object(i["a"])(Object(i["a"])({},t),(n={},n[a]=[f,l+f],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,i=n.xField,o=n.yField,a=r["w"](t,(function(t){return t[i]}));return r["X"](a,(function(t){return e.getDimMaxValue(t,o)}))},e.prototype.getDimMaxValue=function(t,e){var n=r["W"](t,(function(t){return r["s"](t,e,[])})),i=r["q"](n);return Math.max.apply(Math,i)},e}(o["a"]);e["a"]=a},f7cc:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("8937");var i={locale:"en-US"}},f83c:function(t,e,n){"use strict";var i=n("00c6"),r=n("330d"),o=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["a"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i1?console.warn("sizeRatio is not in effect: It must be a number in [0,1]"):j=p:console.warn("sizeRatio is not in effect: Must define shape or sizeField first")),Object(c["a"])(Object(a["c"])({},t,{options:{type:m,colorField:h,tooltipFields:x,shapeField:f||"",label:void 0,mapping:{tooltip:O,shape:d&&(f?function(t){var e=i.map((function(t){return t[f]})),n=Math.min.apply(Math,e),r=Math.max.apply(Math,e);return[d,(Object(o["s"])(t,f)-n)/(r-n),j]}:function(){return[d,1,j]}),color:g||h&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function h(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,c=n.yField;return Object(a["f"])(Object(s["g"])((e={},e[o]=i,e[c]=r,e)))(t)}function f(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,a=n.yField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(a,!1):e.axis(a,r),t}function p(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,o=n.sizeField,a=n.sizeLegend,s=!1!==i;return r&&e.legend(r,!!s&&i),o&&e.legend(o,void 0===a?i:a),s||a||e.legend(!1),t}function d(t){var e=t.chart,n=t.options,r=n.label,o=n.colorField,s=n.type,c=Object(a["d"])(e,"density"===s?"heatmap":"polygon");if(r){if(o){var l=r.callback,u=Object(i["c"])(r,["callback"]);c.label({fields:[o],callback:l,cfg:Object(a["A"])(u)})}}else c.label(!1);return t}function g(t){var e=t.chart,n=t.options,i=n.coordinate,r=n.reflect;return i&&e.coordinate({type:i.type||"rect",cfg:i.cfg}),r&&e.coordinate().reflect(r),t}function v(t){return Object(a["f"])(s["k"],Object(s["f"])("heatmapStyle"),h,g,u,f,p,s["l"],d,Object(s["b"])(),s["c"],s["a"],s["j"])(t)}var y=Object(a["c"])({},r["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("917c");Object(m["p"])("polygon","circle",{draw:function(t,e){var n,r,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),u=Math.min(c,l)/2,h=Number(t.shape[1]),f=Number(t.shape[2]),p=Math.sqrt(f),d=u*p*Math.sqrt(h),g=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),v=e.addShape("circle",{attrs:Object(i["a"])(Object(i["a"])(Object(i["a"])({x:o,y:a,r:d},t.defaultStyle),t.style),{fill:g})});return v}}),Object(m["p"])("polygon","square",{draw:function(t,e){var n,r,o=t.x,a=t.y,s=this.parsePoints(t.points),c=Math.abs(s[2].x-s[1].x),l=Math.abs(s[1].y-s[0].y),u=Math.min(c,l),h=Number(t.shape[1]),f=Number(t.shape[2]),p=Math.sqrt(f),d=u*p*Math.sqrt(h),g=(null===(n=t.style)||void 0===n?void 0:n.fill)||t.color||(null===(r=t.defaultStyle)||void 0===r?void 0:r.fill),v=e.addShape("rect",{attrs:Object(i["a"])(Object(i["a"])(Object(i["a"])({x:o-d/2,y:a-d/2,width:d,height:d},t.defaultStyle),t.style),{fill:g})});return v}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return y},e.prototype.getSchemaAdaptor=function(){return v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(r["b"])},fb77:function(t,e,n){"use strict";function i(t){return+t}function r(t){return t*t}function o(t){return t*(2-t)}function a(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function s(t){return t*t*t}function c(t){return--t*t*t+1}function l(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(e),n.d(e,"easeLinear",(function(){return i})),n.d(e,"easeQuad",(function(){return a})),n.d(e,"easeQuadIn",(function(){return r})),n.d(e,"easeQuadOut",(function(){return o})),n.d(e,"easeQuadInOut",(function(){return a})),n.d(e,"easeCubic",(function(){return l})),n.d(e,"easeCubicIn",(function(){return s})),n.d(e,"easeCubicOut",(function(){return c})),n.d(e,"easeCubicInOut",(function(){return l})),n.d(e,"easePoly",(function(){return p})),n.d(e,"easePolyIn",(function(){return h})),n.d(e,"easePolyOut",(function(){return f})),n.d(e,"easePolyInOut",(function(){return p})),n.d(e,"easeSin",(function(){return m})),n.d(e,"easeSinIn",(function(){return v})),n.d(e,"easeSinOut",(function(){return y})),n.d(e,"easeSinInOut",(function(){return m})),n.d(e,"easeExp",(function(){return j})),n.d(e,"easeExpIn",(function(){return x})),n.d(e,"easeExpOut",(function(){return O})),n.d(e,"easeExpInOut",(function(){return j})),n.d(e,"easeCircle",(function(){return M})),n.d(e,"easeCircleIn",(function(){return w})),n.d(e,"easeCircleOut",(function(){return C})),n.d(e,"easeCircleInOut",(function(){return M})),n.d(e,"easeBounce",(function(){return R})),n.d(e,"easeBounceIn",(function(){return D})),n.d(e,"easeBounceOut",(function(){return R})),n.d(e,"easeBounceInOut",(function(){return _})),n.d(e,"easeBack",(function(){return G})),n.d(e,"easeBackIn",(function(){return Y})),n.d(e,"easeBackOut",(function(){return N})),n.d(e,"easeBackInOut",(function(){return G})),n.d(e,"easeElastic",(function(){return q})),n.d(e,"easeElasticIn",(function(){return W})),n.d(e,"easeElasticOut",(function(){return q})),n.d(e,"easeElasticInOut",(function(){return K}));var u=3,h=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(u),f=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(u),p=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}(u),d=Math.PI,g=d/2;function v(t){return 1===+t?1:1-Math.cos(t*g)}function y(t){return Math.sin(t*g)}function m(t){return(1-Math.cos(d*t))/2}function b(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function x(t){return b(1-+t)}function O(t){return 1-b(t)}function j(t){return((t*=2)<=1?b(1-t):2-b(t-1))/2}function w(t){return 1-Math.sqrt(1-t*t)}function C(t){return Math.sqrt(1- --t*t)}function M(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var S=4/11,A=6/11,k=8/11,F=3/4,E=9/11,T=10/11,P=15/16,I=21/22,B=63/64,L=1/S/S;function D(t){return 1-R(1-t)}function R(t){return(t=+t)Math.PI?1:0,f=i>r?0:1;a=[["M",l.x,l.y],["A",n,n,0,h,f,u.x,u.y]]}return a},e}(h),g=d,v=n("7c8a"),y=n("75ed"),m="g2-crosshair",b=m+"-line",x=m+"-text",O=(i={},i[""+m]={position:"relative"},i[""+b]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+x]={position:"absolute",color:l["a"].textColor,fontFamily:l["a"].fontFamily},i),j=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:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:m,defaultStyles:O,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(v["b"])(e);t.appendChild(n),this.applyStyle(b,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,a=i.offset;return Object(o["f"])(e,n,r,a)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var i=this.getContainer(),r=Object(a["pb"])(this.get("textTpl"),t);e=Object(v["b"])(r),i.appendChild(e),this.applyStyle(x,e),this.set("textEl",e)}e.innerHTML=n}else e&&e.remove()},e.prototype.isVertical=function(t,e){return t.x===e.x},e.prototype.resetPosition=function(){var t=this.get("crosshairEl");t||(this.initCrossHair(),t=this.get("crosshairEl"));var e=this.get("start"),n=this.get("end"),i=Math.min(e.x,n.x),r=Math.min(e.y,n.y);this.isVertical(e,n)?Object(v["e"])(t,{width:"1px",height:Object(o["l"])(Math.abs(n.y-e.y))}):Object(v["e"])(t,{height:"1px",width:Object(o["l"])(Math.abs(n.x-e.x))}),Object(v["e"])(t,{top:Object(o["l"])(r),left:Object(o["l"])(i)}),this.alignText()},e.prototype.alignText=function(){var t=this.get("textEl");if(t){var e=this.get("text").align,n=t.clientWidth,i=this.getTextPoint();switch(e){case"center":i.x=i.x-n/2;break;case"right":i.x=i.x-n;case"left":break}Object(v["e"])(t,{top:Object(o["l"])(i.y),left:Object(o["l"])(i.x)})}},e.prototype.updateInner=function(e){Object(a["y"])(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(y["a"]),w=j},ffed:function(t,e,n){"use strict";var i=n("5809"),r=n("cc94"),o=n("c34d"),a=n("b4aa"),s=n("62e3"),c=n("9ff2"),l="$$stock-range$$",u="trend",h="up",f="down",p={showMarkers:!1,showCrosshairs:!0,shared:!0,crosshairs:{type:"xy",follow:!0,text:function(t,e,n){var i;if("x"===t){var r=n[0];i=r?r.title:e}else i=e;return{position:"y"===t?"start":"end",content:i,style:{fill:"#dfdfdf"}}},textBackground:{padding:[2,4],style:{fill:"#666"}}}},d=Object(s["c"])({},r["b"].getDefaultOptions(),{tooltip:p,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"}),g=n("8937");function v(t,e){return Object(g["W"])(t,(function(t){if(Object(g["C"])(e)){var n=e[0],i=e[1],r=e[2],o=e[3];t[u]=t[n]<=t[i]?h:f,t[l]=[t[n],t[i],t[r],t[o]]}return t}))}function y(t){var e=t.chart,n=t.options,i=n.yField,r=n.data,o=n.risingFill,c=n.fallingFill,h=n.tooltip,f=n.stockStyle;e.data(v(r,i));var p=h;return!1!==p&&(p=Object(s["c"])({},{fields:i},p)),Object(a["g"])(Object(s["c"])({},t,{options:{schema:{shape:"candle",color:[o,c],style:f},yField:l,seriesField:u,rawFields:i,tooltip:p}})),t}function m(t){var e,n,i=t.chart,r=t.options,o=r.meta,a=r.xAxis,p=r.yAxis,d=r.xField,g=(e={},e[d]={type:"timeCat",tickCount:6},e[u]={values:[h,f]},e),v=Object(s["c"])(g,o,(n={},n[d]=Object(s["t"])(a,c["a"]),n[l]=Object(s["t"])(p,c["a"]),n));return i.scale(v),t}function b(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField;return!1===i?e.axis(o,!1):e.axis(o,i),!1===r?e.axis(l,!1):e.axis(l,r),t}function x(t){var e=t.chart,n=t.options,i=n.tooltip;return!1!==i?e.tooltip(i):e.tooltip(!1),t}function O(t){var e=t.chart,n=t.options,i=n.legend;return i?e.legend(u,i):!1===i&&e.legend(!1),t}function j(t){Object(s["f"])(o["k"],y,m,b,x,O,o["c"],o["a"],Object(o["b"])(),o["i"])(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}Object(i["b"])(e,t),e.getDefaultOptions=function(){return d},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return j},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(v(t,e))}})(r["b"])}}]);