(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f7342808"],{"000e":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})); /*! ***************************************************************************** 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 a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n1?e+"_"+n:""+e}function u(t){var e=t.data,n=t.xField,i=t.measureField,r=t.rangeField,a=t.targetField,o=t.layout,s=[],c=[];e.forEach((function(t,e){var o=[t[r]].flat();o.sort((function(t,e){return t-e})),o.forEach((function(i,a){var c,l=0===a?i:o[a]-o[a-1];s.push((c={rKey:r+"_"+a},c[n]=n?t[n]:String(e),c[r]=l,c))}));var u=[t[i]].flat();u.forEach((function(r,a){var o;s.push((o={mKey:l(u,i,a)},o[n]=n?t[n]:String(e),o[i]=r,o))}));var h=[t[a]].flat();h.forEach((function(i,r){var o;s.push((o={tKey:l(h,a,r)},o[n]=n?t[n]:String(e),o[a]=i,o))})),c.push(t[r],t[i],t[a])}));var u=Math.min.apply(Math,c.flat(1/0)),h=Math.max.apply(Math,c.flat(1/0));return u=u>0?0:u,"vertical"===o&&s.reverse(),{min:u,max:h,ds:s}}function h(t){var e=t.chart,n=t.options,r=n.bulletStyle,o=n.targetField,l=n.rangeField,h=n.measureField,p=n.xField,f=n.color,d=n.layout,g=n.size,v=n.label,y=u(n),b=y.min,m=y.max,x=y.ds;e.data(x);var O=Object(c["d"])({},t,{options:{xField:p,yField:l,seriesField:"rKey",isStack:!0,label:Object(a["get"])(v,"range"),interval:{color:Object(a["get"])(f,"range"),style:Object(a["get"])(r,"range"),size:Object(a["get"])(g,"range")}}});Object(s["c"])(O),e.geometries[0].tooltip(!1);var j=Object(c["d"])({},t,{options:{xField:p,yField:h,seriesField:"mKey",isStack:!0,label:Object(a["get"])(v,"measure"),interval:{color:Object(a["get"])(f,"measure"),style:Object(a["get"])(r,"measure"),size:Object(a["get"])(g,"measure")}}});Object(s["c"])(j);var _=Object(c["d"])({},t,{options:{xField:p,yField:o,seriesField:"tKey",label:Object(a["get"])(v,"target"),point:{color:Object(a["get"])(f,"target"),style:Object(a["get"])(r,"target"),size:Object(a["isFunction"])(Object(a["get"])(g,"target"))?function(t){return Object(a["get"])(g,"target")(t)/2}:Object(a["get"])(g,"target")/2,shape:"horizontal"===d?"line":"hyphen"}}});return Object(s["e"])(_),"horizontal"===d&&e.coordinate().transpose(),Object(i["__assign"])(Object(i["__assign"])({},t),{ext:{data:{min:b,max:m}}})}function p(t){var e,n,i=t.options,r=t.ext,a=i.xAxis,s=i.yAxis,l=i.targetField,u=i.rangeField,h=i.measureField,p=i.xField,f=r.data;return Object(c["g"])(Object(o["g"])((e={},e[p]=a,e[h]=s,e),(n={},n[h]={min:null===f||void 0===f?void 0:f.min,max:null===f||void 0===f?void 0:f.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,a=n.xField,o=n.measureField,s=n.rangeField,c=n.targetField;return e.axis(""+s,!1),e.axis(""+c,!1),!1===i?e.axis(""+a,!1):e.axis(""+a,i),!1===r?e.axis(""+o,!1):e.axis(""+o,r),t}function d(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 g(t){var e=t.chart,n=t.options,r=n.label,o=n.measureField,s=n.targetField,l=n.rangeField,u=e.geometries,h=u[0],p=u[1],f=u[2];return Object(a["get"])(r,"range")?h.label(""+l,Object(i["__assign"])({layout:[{type:"limit-in-plot"}]},Object(c["A"])(r.range))):h.label(!1),Object(a["get"])(r,"measure")?p.label(""+o,Object(i["__assign"])({layout:[{type:"limit-in-plot"}]},Object(c["A"])(r.measure))):p.label(!1),Object(a["get"])(r,"target")?f.label(""+s,Object(i["__assign"])({layout:[{type:"limit-in-plot"}]},Object(c["A"])(r.target))):f.label(!1),t}function v(t){Object(c["g"])(h,p,f,d,o["k"],g,o["l"],o["c"],o["a"])(t)}var y=Object(c["d"])({},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["__extends"])(e,t),e.getDefaultOptions=function(){return y},e.prototype.changeData=function(t){this.updateOption({data:t});var e=u(this.options),n=e.min,i=e.max,r=e.ds;p({options:this.options,ext:{data:{min:n,max:i}},chart:this.chart}),this.chart.changeData(r)},e.prototype.getSchemaAdaptor=function(){return v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(r["b"])},"060b":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return d}));var i=n("8937"),r="…";function a(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,a="";if("tail"===n){for(var s=0,c=0;s=19968&&c<=40869?2:1}o>n&&(n=o,r=a)}return t[r].getBBox().width}function p(t){if(t.length>u)return h(t);var e=0;return Object(i["each"])(t,(function(t){var n=t.getBBox(),i=n.width;e=0?s(u,y,r):c,b&&(e.attr("text",b),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("9ab4"),r=n("cc94"),a=n("7eff"),o=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["__extends"])(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,o=e.stackField;this.chart.changeData(Object(a["a"])(t,n,r,i,o))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o["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 a}));var i=n("8937"),r=n("17f7");function a(t){var e=Object(i["clamp"])(Object(r["b"])(t)?t:0,0,1);return[{current:""+e,type:"current",percent:e},{current:""+e,type:"target",percent:1}]}},"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 b}));var i,r=n("9ab4"),a=n("e945"),o=n("7c8a"),s=n("8937"),c=n("75ed"),l=n("e546"),u=n("bbad"),h=n("2f5e"),p=(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 f(t,e,n,i,r){var a={left:tr.x+r.width,top:er.y+r.height};return a}function d(t,e,n,i,r,a){var o=t,s=e;switch(a){case"left":o=t-i-n,s=e-r/2;break;case"right":o=t+n,s=e-r/2;break;case"top":o=t-i/2,s=e-r-n;break;case"bottom":o=t-i/2,s=e+n;break;default:o=t+n,s=e-r-n;break}return{x:o,y:s}}function g(t,e,n,i,r,a,o){var s=d(t,e,n,i,r,a);if(o){var c=f(s.x,s.y,i,r,o);"auto"===a?(c.right&&(s.x=Math.max(0,t-i-n)),c.top&&(s.y=Math.max(0,e-r-n))):"top"===a||"bottom"===a?(c.left&&(s.x=o.x),c.right&&(s.x=o.x+o.width-i),"top"===a&&c.top&&(s.y=e+n),"bottom"===a&&c.bottom&&(s.y=e-r-n)):(c.top&&(s.y=o.y),c.bottom&&(s.y=o.y+o.height-r),"left"===a&&c.left&&(s.x=t+n),"right"===a&&c.right&&(s.x=t-i-n))}return s}function v(t,e){var n=!1;return Object(s["each"])(e,(function(e){if(Object(s["hasKey"])(t,e))return n=!0,!1})),n}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'
    ',itemTpl:'
  • \n \n {name}:\n {value}\n
  • ',xCrosshairTpl:'
    ',yCrosshairTpl:'
    ',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u["CONTAINER_CLASS"],crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles:p})},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(o["e"])(t,{visibility:"visible"}),this.setCrossHairsVisible(!0))},e.prototype.hide=function(){var t=this.getContainer();t&&!this.destroyed&&(this.set("visible",!1),Object(o["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(o["e"])(n,{display:e}),i&&Object(o["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["hasKey"])(e,"items")&&this.renderItems()),t.prototype.updateInner.call(this,e)},e.prototype.initDom=function(){this.cacheDoms()},e.prototype.removeDom=function(){t.prototype.removeDom.call(this),this.clearCrosshairs()},e.prototype.resetPosition=function(){var t,e=this.get("x"),n=this.get("y"),i=this.get("offset"),r=this.getOffset(),a=r.offsetX,s=r.offsetY,c=this.get("position"),u=this.get("region"),h=this.getContainer(),p=this.getBBox(),f=p.width,d=p.height;u&&(t=Object(l["k"])(u));var v=g(e,n,i,f,d,c,t);Object(o["e"])(h,{left:Object(l["l"])(v.x+a),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["isElement"])(n)?n:Object(o["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(o["e"])(n,{left:Object(l["l"])(i),top:Object(l["l"])(e.y),height:Object(l["l"])(e.height)}):Object(o["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],a=this.get(e),s=this.get("parent");return a||(a=Object(o["b"])(this.get(n)),this.applyStyle(r,a),s.appendChild(a),this.set(e,a)),a},e.prototype.renderItems=function(){this.clearItemDoms();var t=this.get("items"),e=this.get("itemTpl"),n=this.get("listDom");n&&(Object(s["each"])(t,(function(t){var i=a["a"].toCSSGradient(t.color),c=Object(r["__assign"])(Object(r["__assign"])({},t),{color:i}),l=Object(s["substitute"])(e,c),u=Object(o["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"]),b=y},"0a92":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return p}));var i=n("917c"),r=n("9ab4"),a=n("8937"),o=n("49a2"),s=n("618a"),c=n("42e4"),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.rendering=!1,e}return Object(r["__extends"])(e,t),e.prototype.change=function(t){var e=this;if(!this.rendering){var n=t.seriesField,i=t.compareField,l=i?c["a"]:o["b"],u=this.context.view,h=n||i?u.views:[u];Object(a["map"])(h,(function(n,i){var o=n.getController("annotation"),c=Object(a["filter"])(Object(a["get"])(o,["option"],[]),(function(t){var e=t.name;return e!==s["a"]}));o.clear(!0),Object(a["each"])(c,(function(t){"object"===typeof t&&n.annotation()[t.type](t)}));var u=Object(a["get"])(n,["filteredData"],n.getOptions().data);l({chart:n,index:i,options:Object(r["__assign"])(Object(r["__assign"])({},t),{filteredData:Object(s["c"])(u,u,t)})}),n.filterData(u),e.rendering=!0,n.render(!0)}))}this.rendering=!1},e}(i["a"]),u="funnel-conversion-tag",h="funnel-afterrender",p={trigger:"afterrender",action:u+":change"};Object(i["l"])(u,l),Object(i["o"])(h,{start:[p]})},"0abd":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("9ab4"),r=n("917c"),a=n("cc94"),o=n("62e3"),s=n("4d99"),c=n("3cbb"),l=(n("9e6a2"),n("888a")),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pie",e}return Object(i["__extends"])(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(o["u"])(e.data,n),a=Object(o["u"])(t,n);Object(l["c"])(i,n)||Object(l["c"])(a,n)?this.update({data:t}):(this.updateOption({data:t}),this.chart.data(a),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}(a["b"])},"0c22":function(t,e,n){"use strict";n.d(e,"a",(function(){return F}));var i=n("9ab4"),r=n("8937"),a=n("c34d"),o=n("afaa"),s=n("62e3"),c=n("e4ea"),l=n("7b42"),u=n("49a2"),h=n("42e4"),p=n("58e4"),f=n("e474"),d=n("618a");function g(t){var e=t.chart,n=t.options,i=n.data,a=void 0===i?[]:i,o=n.yField,s=Object(r["reduce"])(a,(function(t,e){return t+(e[o]||0)}),0),c=Object(r["maxBy"])(a,o)[o],u=Object(r["map"])(a,(function(t,e){var n=[],i=[];if(t[l["e"]]=(t[o]||0)/s,e){var u=a[e-1][l["f"]],h=a[e-1][l["g"]];n[0]=u[3],i[0]=h[3],n[1]=u[2],i[1]=h[2]}else n[0]=-.5,i[0]=1,n[1]=.5,i[1]=1;return i[2]=i[1]-t[l["e"]],n[2]=(i[2]+1)/4,i[3]=i[2],n[3]=-n[2],t[l["f"]]=n,t[l["g"]]=i,t[l["d"]]=(t[o]||0)/c,t[l["b"]]=[Object(r["get"])(a,[e-1,o]),t[o]],t}));return e.data(u),t}function v(t){var e=t.chart,n=t.options,i=n.xField,a=n.yField,o=n.color,s=n.tooltip,c=n.label,u=n.funnelStyle,h=n.state,d=Object(f["a"])(s,[i,a]),g=d.fields,v=d.formatter;return Object(p["a"])({chart:e,options:{type:"polygon",xField:l["f"],yField:l["g"],colorField:i,tooltipFields:Object(r["isArray"])(g)&&g.concat([l["d"],l["b"]]),label:c,state:h,mapping:{tooltip:v,color:o,style:u}}}),t}function y(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[["transpose"],["reflect","x"]]:[]}),t}function b(t){var e=function(t,e,n,r){return Object(i["__assign"])(Object(i["__assign"])({},r),{start:[t[l["f"]][1],t[l["g"]][1]],end:[t[l["f"]][1]+.05,t[l["g"]][1]]})};return Object(d["b"])(e)(t),t}function m(t){return Object(s["g"])(g,v,y,b)(t)}function x(t){var e,n=t.chart,i=t.options,r=i.data,a=void 0===r?[]:r,o=i.yField;return n.data(a),n.scale((e={},e[o]={sync:!0},e)),t}function O(t){var e=t.chart,n=t.options,i=n.seriesField,r=n.isTransposed,a=n.showFacetTitle;return e.facet("rect",{fields:[i],padding:[r?0:32,10,0,10],showTitle:a,eachView:function(e,n){Object(u["a"])(Object(s["d"])({},t,{chart:e,options:{data:n.data}}))}}),t}function j(t){return Object(s["g"])(x,O)(t)}var _=n("0a92");function w(t){var e,n=t.options,i=n.compareField,a=n.xField,u=n.yField,h=n.locale,p=n.funnelStyle,f=n.data,d=Object(o["a"])(h),g={label:i?{fields:[a,u,i,l["d"],l["b"]],formatter:function(t){return""+t[u]}}:{fields:[a,u,l["d"],l["b"]],offset:0,position:"middle",formatter:function(t){return t[a]+" "+t[u]}},tooltip:{title:a,formatter:function(t){return{name:t[a],value:t[u]}}},conversionTag:{formatter:function(t){return d.get(["conversionTag","label"])+": "+c["a"].apply(void 0,t[l["b"]])}}};return(i||p)&&(e=function(t){return Object(s["d"])({},i&&{lineWidth:1,stroke:"#fff"},Object(r["isFunction"])(p)?p(t):p)}),Object(s["d"])({options:g},t,{options:{funnelStyle:e,data:Object(r["clone"])(f)}})}function C(t){var e=t.options,n=e.compareField,i=e.dynamicHeight,r=e.seriesField;return r?j(t):n?Object(h["b"])(t):i?m(t):Object(u["a"])(t)}function M(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,o=n.xField,c=n.yField;return Object(s["g"])(Object(a["g"])((e={},e[o]=i,e[c]=r,e)))(t)}function S(t){var e=t.chart;return e.axis(!1),t}function A(t){var e=t.chart,n=t.options,i=n.legend;return!1===i?e.legend(!1):e.legend(i),t}function k(t){var e=t.chart,n=t.options,a=n.interactions,o=n.dynamicHeight;return Object(r["each"])(a,(function(t){!1===t.enable?e.removeInteraction(t.type):e.interaction(t.type,t.cfg||{})})),o?e.removeInteraction(_["a"]):e.interaction(_["a"],{start:[Object(i["__assign"])(Object(i["__assign"])({},_["b"]),{arg:n})]}),t}function F(t){return Object(s["g"])(w,C,M,S,a["l"],k,A,a["a"],a["k"],Object(a["b"])())(t)}},"0cc4":function(t,e,n){"use strict";n.d(e,"b",(function(){return w})),n.d(e,"a",(function(){return k}));var i=n("9ab4"),r=n("8937"),a=n("9cae"),o=n("c34d"),s=n("917c"),c={hover:"__interval-connected-area-hover__",click:"__interval-connected-area-click__"},l=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 u(t){return void 0===t&&(t=!1),function(e){var n=e.chart,i=e.options,r=i.connectedArea,a=function(){n.removeInteraction(c.hover),n.removeInteraction(c.click)};if(!t&&r){var o=r.trigger||"hover";a(),n.interaction(c[o],{start:l(o,r.style)})}else a();return e}}Object(s["o"])(c.hover,{start:l(c.hover),end:[{trigger:"interval:mouseleave",action:["element-highlight-by-color:reset","element-link-by-color:unlink"]}]}),Object(s["o"])(c.click,{start:l(c.click),end:[{trigger:"document:mousedown",action:["element-highlight-by-color:clear","element-link-by-color:clear"]}]});var h=n("62e3"),p=n("e4ea");function f(t,e){return Object(h["d"])({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:p["a"]}},t)}function d(t,e){return Object(r["map"])(e.getModel().points,(function(e){return t.convertPoint(e)}))}function g(t,e,n){var r=t.view,a=t.geometry,o=t.group,s=t.options,c=t.horizontal,l=s.offset,u=s.size,h=s.arrow,p=r.getCoordinate(),f=d(p,e)[3],g=d(p,n)[0],v=g.y-f.y,y=g.x-f.x;if("boolean"!==typeof h){var b,m=h.headSize,x=s.spacing;c?(y-m)/2O){var _=j/y.length,w=Math.max(1,Math.ceil(O/_)-1),C=y.slice(0,w)+"...";x.attr("text",C)}}}}function y(t,e,n){g(t,e,n),v(t,e,n)}function b(t,e,n){return void 0===e&&(e=!0),void 0===n&&(n=!1),function(i){var a=i.options,o=i.chart,c=a.conversionTag,l=a.theme;return c&&!n&&(o.theme(Object(h["d"])({},Object(r["isObject"])(l)?l:Object(s["k"])(l),{columnWidthRatio:1/3})),o.annotation().shape({render:function(n,i){var a=n.addGroup({id:o.id+"-conversion-tag-group",name:"conversion-tag-group"}),s=Object(r["find"])(o.geometries,(function(t){return"interval"===t.type})),l={view:i,geometry:s,group:a,field:t,horizontal:e,options:f(c,e)},u=s.elements;Object(r["each"])(u,(function(t,e){e>0&&y(l,u[e-1],t)}))}})),i}}var m=n("b4aa"),x=n("87d0"),O=n("b2a0");function j(t){var e=t.options,n=e.legend,r=e.seriesField,a=e.isStack;return r?!1!==n&&(n=Object(i["__assign"])({position:a?"right-top":"top-left"},n)):n=!1,t.options.legend=n,t}function _(t){var e=t.chart,n=t.options,r=n.data,a=n.columnStyle,o=n.color,s=n.columnWidthRatio,c=n.isPercent,l=n.isGroup,u=n.isStack,p=n.xField,f=n.yField,d=n.seriesField,g=n.groupField,v=n.tooltip,y=n.shape,b=c&&l&&u?Object(O["b"])(r,f,[p,g],f):Object(O["a"])(r,f,p,f,c),x=[];u&&d&&!l?b.forEach((function(t){var e=x.find((function(e){return e[p]===t[p]&&e[d]===t[d]}));e?e[f]+=t[f]||0:x.push(Object(i["__assign"])({},t))})):x=b,e.data(x);var j=c?Object(i["__assign"])({formatter:function(t){return{name:l&&u?t[d]+" - "+t[g]:t[d]||t[p],value:(100*Number(t[f])).toFixed(2)+"%"}}},v):v,_=Object(h["d"])({},t,{options:{data:x,widthRatio:s,tooltip:j,interval:{shape:y,style:a,color:o}}});return Object(m["c"])(_),_}function w(t){var e,n,r=t.options,a=r.xAxis,s=r.yAxis,c=r.xField,l=r.yField,u=r.data,p=r.isPercent,f=p?{max:1,min:0,minLimit:0,maxLimit:1}:{};return Object(h["g"])(Object(o["g"])((e={},e[c]=a,e[l]=s,e),(n={},n[c]={type:"cat"},n[l]=Object(i["__assign"])(Object(i["__assign"])({},Object(h["c"])(u,l)),f),n)))(t)}function C(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return!1===i?e.axis(a,!1):e.axis(a,i),!1===r?e.axis(o,!1):e.axis(o,r),t}function M(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 S(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,o=n.isRange,s=Object(h["e"])(e,"interval");if(r){var c=r.callback,l=Object(i["__rest"])(r,["callback"]);s.label({fields:[a],callback:c,cfg:Object(i["__assign"])({layout:(null===l||void 0===l?void 0:l.position)?void 0:[{type:"interval-adjust-position"},{type:"interval-hide-overlap"},{type:"adjust-color"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(h["A"])(o?Object(i["__assign"])({content:function(t){var e;return null===(e=t[a])||void 0===e?void 0:e.join("-")}},l):l))})}else s.label(!1);return t}function A(t){var e=t.chart,n=t.options,a=n.tooltip,o=n.isGroup,s=n.isStack,c=n.groupField,l=n.data,u=n.xField,p=n.yField,f=n.seriesField;if(!1===a)e.tooltip(!1);else{var d=a;if(o&&s){var g=d.customItems,v=(null===d||void 0===d?void 0:d.formatter)||function(t){return{name:t[f]+" - "+t[c],value:t[p]}};d=Object(i["__assign"])(Object(i["__assign"])({},d),{customItems:function(t){var e=[];return Object(r["each"])(t,(function(t){var n=Object(r["filter"])(l,(function(e){return Object(r["isMatch"])(e,Object(h["t"])(t.data,[u,f]))}));n.forEach((function(n){e.push(Object(i["__assign"])(Object(i["__assign"])(Object(i["__assign"])({},t),{value:n[p],data:n,mappingData:{_origin:n}}),v(n)))}))})),g?g(e):e}})}e.tooltip(d)}return t}function k(t,e){void 0===e&&(e=!1);var n=t.options,i=n.seriesField;return Object(h["g"])(j,o["k"],Object(x["a"])("columnStyle"),o["j"],Object(o["m"])("rect"),_,w,C,M,A,o["i"],o["h"],S,a["a"],o["c"],o["a"],Object(o["b"])(),b(n.yField,!e,!!i),u(!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("3e28"),n("dd3e"),n("c3a5"),n("a0ae"),n("5e24"),n("e4c3"),n("8944"),n("0767"),n("37d8"),n("074b"),n("878f")},"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("9ab4"),r=n("8937"),a=n("f2ce"),o=n("3f35");function s(t,e){if(!t)return{};var n=t.filter((function(t){var n=Object(r["get"])(t,[e]);return Object(r["isNumber"])(n)&&!isNaN(n)})),i=n.every((function(t){return Object(r["get"])(t,[e])>=0})),a=n.every((function(t){return Object(r["get"])(t,[e])<=0}));return i?{min:0}:a?{max:0}:{}}function c(t,e,n,r,a){if(void 0===a&&(a=[]),!Array.isArray(t))return{nodes:[],links:[]};var s=[],c={},l=-1;return t.forEach((function(t){var u=t[e],h=t[n],p=t[r],f=Object(o["a"])(t,a);c[u]||(c[u]=Object(i["__assign"])({id:++l,name:u},f)),c[h]||(c[h]=Object(i["__assign"])({id:++l,name:h},f)),s.push(Object(i["__assign"])({source:c[u].id,target:c[h].id,value:p},f))})),{nodes:Object.values(c).sort((function(t,e){return t.id-e.id})),links:s}}function l(t,e){var n=Object(r["filter"])(t,(function(t){var n=t[e];return null===n||"number"===typeof n&&!isNaN(n)}));return Object(a["b"])(a["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 x})),n.d(e,"b",(function(){return M})),n.d(e,"a",(function(){return R})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return X})),n.d(e,"f",(function(){return i}));var i={};n.r(i),n.d(i,"distance",(function(){return a})),n.d(i,"isNumberEqual",(function(){return o})),n.d(i,"getBBoxByArray",(function(){return s})),n.d(i,"getBBoxRange",(function(){return c})),n.d(i,"piMod",(function(){return l}));var r=n("8937");function a(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function o(t,e){return Math.abs(t-e)<.001}function s(t,e){var n=Object(r["min"])(t),i=Object(r["min"])(e),a=Object(r["max"])(t),o=Object(r["max"])(e);return{x:n,y:i,width:a-n,height:o-i}}function c(t,e,n,i){return{minX:Object(r["min"])([t,n]),maxX:Object(r["max"])([t,n]),minY:Object(r["min"])([e,i]),maxY:Object(r["max"])([e,i])}}function l(t){return(t+2*Math.PI)%(2*Math.PI)}var u=n("6711"),h={box:function(t,e,n,i){return s([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,a){var o=[n-t,i-e];if(u["exactEquals"](o,[0,0]))return Math.sqrt((r-t)*(r-t)+(a-e)*(a-e));var s=[-o[1],o[0]];u["normalize"](s,s);var c=[r-t,a-e];return Math.abs(u["dot"](c,s))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}},p=1e-4;function f(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 y(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function b(t,e,n,i,r,a,o){var s=g(t,n,r,o),c=g(e,i,a,o),l=h.pointAt(t,e,n,i,o),u=h.pointAt(n,i,r,a,o);return[[t,e,l.x,l.y,s,c],[s,c,u.x,u.y,r,a]]}function m(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),m.apply(null,l)+m.apply(null,u)}var x={box:function(t,e,n,i,r,a){var o=v(t,n,r)[0],c=v(e,i,a)[0],l=[t,r],u=[e,a];return void 0!==o&&l.push(g(t,n,r,o)),void 0!==c&&u.push(g(e,i,a,c)),s(l,u)},length:function(t,e,n,i,r,a){return m(t,e,n,i,r,a,3)},nearestPoint:function(t,e,n,i,r,a,o,s){return f([t,n,r],[e,i,a],o,s,g)},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:g,pointAt:function(t,e,n,i,r,a,o){return{x:g(t,n,r,o),y:g(e,i,a,o)}},divide:function(t,e,n,i,r,a,o){return b(t,e,n,i,r,a,o)},tangentAngle:function(t,e,n,i,r,a,o){var s=y(t,n,r,o),c=y(e,i,a,o),u=Math.atan2(c,s);return l(u)}};function O(t,e,n,i,r){var a=1-r;return a*a*a*t+3*e*r*a*a+3*n*r*r*a+i*r*r*r}function j(t,e,n,i,r){var a=1-r;return 3*(a*a*(e-t)+2*a*r*(n-e)+r*r*(i-n))}function _(t,e,n,i){var r,a,s,c=-3*t+9*e-9*n+3*i,l=6*t-12*e+6*n,u=3*e-3*t,h=[];if(o(c,0))o(l,0)||(r=-u/l,r>=0&&r<=1&&h.push(r));else{var p=l*l-4*c*u;o(p,0)?h.push(-l/(2*c)):p>0&&(s=Math.sqrt(p),r=(-l+s)/(2*c),a=(-l-s)/(2*c),r>=0&&r<=1&&h.push(r),a>=0&&a<=1&&h.push(a))}return h}function w(t,e,n,i,r,a,o,s,c){var l=O(t,n,r,o,c),u=O(e,i,a,s,c),p=h.pointAt(t,e,n,i,c),f=h.pointAt(n,i,r,a,c),d=h.pointAt(r,a,o,s,c),g=h.pointAt(p.x,p.y,f.x,f.y,c),v=h.pointAt(f.x,f.y,d.x,d.y,c);return[[t,e,p.x,p.y,g.x,g.y,l,u],[l,u,v.x,v.y,d.x,d.y,o,s]]}function C(t,e,n,i,r,a,o,s,c){if(0===c)return d([t,n,r,o],[e,i,a,s]);var l=w(t,e,n,i,r,a,o,s,.5),u=l[0],h=l[1];return u.push(c-1),h.push(c-1),C.apply(null,u)+C.apply(null,h)}var M={extrema:_,box:function(t,e,n,i,r,a,o,c){for(var l=[t,o],u=[e,c],h=_(t,n,r,o),p=_(e,i,a,c),f=0;f0?n:-1*n}var A={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,a){var o=n,s=i;if(0===o||0===s)return{x:t,y:e};for(var c,l,u=r-t,h=a-e,p=Math.abs(u),f=Math.abs(h),d=o*o,g=s*s,v=Math.PI/4,y=0;y<4;y++){c=o*Math.cos(v),l=s*Math.sin(v);var b=(d-g)*Math.pow(Math.cos(v),3)/o,m=(g-d)*Math.pow(Math.sin(v),3)/s,x=c-b,O=l-m,j=p-b,_=f-m,w=Math.hypot(O,x),C=Math.hypot(_,j),M=w*Math.asin((x*_-O*j)/(w*C)),A=M/Math.sqrt(d+g-c*c-l*l);v+=A,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+S(c,u),y:e+S(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 a=2*Math.PI*r;return{x:t+n*Math.cos(a),y:e+i*Math.sin(a)}},tangentAngle:function(t,e,n,i,r){var a=2*Math.PI*r,o=Math.atan2(i*Math.cos(a),-n*Math.sin(a));return l(o)}};function k(t,e,n,i,r,a,o,s){return-1*n*Math.cos(r)*Math.sin(s)-i*Math.sin(r)*Math.cos(s)}function F(t,e,n,i,r,a,o,s){return-1*n*Math.sin(r)*Math.sin(s)+i*Math.cos(r)*Math.cos(s)}function E(t,e,n){return Math.atan(-e/t*Math.tan(n))}function T(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function P(t,e,n,i,r,a){return n*Math.cos(r)*Math.cos(a)-i*Math.sin(r)*Math.sin(a)+t}function I(t,e,n,i,r,a){return n*Math.sin(r)*Math.cos(a)+i*Math.cos(r)*Math.sin(a)+e}function B(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function L(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function D(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}var R={box:function(t,e,n,i,r,a,o){for(var s=E(n,i,r),c=1/0,l=-1/0,u=[a,o],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var p=s+h;al&&(l=f)}var d=T(n,i,r),g=1/0,v=-1/0,y=[a,o];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var b=d+h;av&&(v=m)}return{x:c,y:g,width:l-c,height:v-g}},length:function(t,e,n,i,r,a,o){},nearestPoint:function(t,e,n,i,r,a,o,s,c){var l=D(s-t,c-e,-r),u=l[0],h=l[1],p=A.nearestPoint(0,0,n,i,u,h),f=B(n,i,p.x,p.y);fo&&(p=L(n,i,o));var d=D(p.x,p.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,a,o,s){var c=(o-a)*s+a;return{x:P(t,e,n,i,r,c),y:I(t,e,n,i,r,c)}},tangentAngle:function(t,e,n,i,r,a,o,s){var c=(o-a)*s+a,u=k(t,e,n,i,r,a,o,c),h=F(t,e,n,i,r,a,o,c);return l(Math.atan2(h,u))}};function N(t){for(var e=0,n=[],i=0;i1||e<0||t.length<2)return null;var n=N(t),i=n.segments,r=n.totalLength;if(0===r)return{x:t[0][0],y:t[0][1]};for(var a=0,o=null,s=0;s=a&&e<=a+p){var f=(e-a)/p;o=h.pointAt(l[0],l[1],u[0],u[1],f);break}a+=p}return o}function G(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=N(t),i=n.segments,r=n.totalLength,a=0,o=0,s=0;s=a&&e<=a+h){o=Math.atan2(u[1]-l[1],u[0]-l[0]);break}a+=h}return o}function V(t,e,n){for(var i=1/0,r=0;r=0&&e._call.call(null,t),e=e._next;--u}function w(){g=(d=y.now())+v,u=h=0;try{_()}finally{u=0,M(),g=0}}function C(){var t=y.now(),e=t-d;e>f&&(v-=e,d=t)}function M(){var t,e,n=i,a=1/0;while(n)n._call?(a>n._time&&(a=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:i=e);r=t,S(a)}function S(t){if(!u){h&&(h=clearTimeout(h));var e=t-g;e>24?(t<1/0&&(h=setTimeout(w,t-y.now()-v)),p&&(p=clearInterval(p))):(p||(d=y.now(),p=setInterval(C,f)),u=1,b(w))}}O.prototype=j.prototype={constructor:O,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?m():+n)+(null==e?0:+e),this._next||r===this||(r?r._next=this:i=this,r=this),this._call=t,this._time=n,S()},stop:function(){this._call&&(this._call=null,this._time=1/0,S())}};var A=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function k(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function F(){}var E=.7,T=1/E,P="\\s*([+-]?\\d+)\\s*",I="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",B="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",L=/^#([0-9a-f]{3,8})$/,D=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),R=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),N=new RegExp(`^rgba\\(${P},${P},${P},${I}\\)$`),z=new RegExp(`^rgba\\(${B},${B},${B},${I}\\)$`),Y=new RegExp(`^hsl\\(${I},${B},${B}\\)$`),G=new RegExp(`^hsla\\(${I},${B},${B},${I}\\)$`),V={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function X(){return this.rgb().formatHex()}function H(){return this.rgb().formatHex8()}function W(){return st(this).formatHsl()}function q(){return this.rgb().formatRgb()}function $(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=L.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?U(e):3===n?new J(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?Z(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?Z(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=D.exec(t))?new J(e[1],e[2],e[3],1):(e=R.exec(t))?new J(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=N.exec(t))?Z(e[1],e[2],e[3],e[4]):(e=z.exec(t))?Z(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Y.exec(t))?ot(e[1],e[2]/100,e[3]/100,1):(e=G.exec(t))?ot(e[1],e[2]/100,e[3]/100,e[4]):V.hasOwnProperty(t)?U(V[t]):"transparent"===t?new J(NaN,NaN,NaN,0):null}function U(t){return new J(t>>16&255,t>>8&255,255&t,1)}function Z(t,e,n,i){return i<=0&&(t=e=n=NaN),new J(t,e,n,i)}function K(t){return t instanceof F||(t=$(t)),t?(t=t.rgb(),new J(t.r,t.g,t.b,t.opacity)):new J}function Q(t,e,n,i){return 1===arguments.length?K(t):new J(t,e,n,null==i?1:i)}function J(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function tt(){return`#${at(this.r)}${at(this.g)}${at(this.b)}`}function et(){return`#${at(this.r)}${at(this.g)}${at(this.b)}${at(255*(isNaN(this.opacity)?1:this.opacity))}`}function nt(){const t=it(this.opacity);return`${1===t?"rgb(":"rgba("}${rt(this.r)}, ${rt(this.g)}, ${rt(this.b)}${1===t?")":`, ${t})`}`}function it(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function rt(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function at(t){return t=rt(t),(t<16?"0":"")+t.toString(16)}function ot(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new lt(t,e,n,i)}function st(t){if(t instanceof lt)return new lt(t.h,t.s,t.l,t.opacity);if(t instanceof F||(t=$(t)),!t)return new lt;if(t instanceof lt)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),o=NaN,s=a-r,c=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n0&&c<1?0:o,new lt(o,s,c,t.opacity)}function ct(t,e,n,i){return 1===arguments.length?st(t):new lt(t,e,n,null==i?1:i)}function lt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function ut(t){return t=(t||0)%360,t<0?t+360:t}function ht(t){return Math.max(0,Math.min(1,t||0))}function pt(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 ft(t,e,n,i,r){var a=t*t,o=a*t;return((1-3*t+3*a-o)*e+(4-6*a+3*o)*n+(1+3*t+3*a-3*o)*i+o*r)/6}A(F,$,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:X,formatHex:X,formatHex8:H,formatHsl:W,formatRgb:q,toString:q}),A(J,Q,k(F,{brighter(t){return t=null==t?T:Math.pow(T,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?E:Math.pow(E,t),new J(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new J(rt(this.r),rt(this.g),rt(this.b),it(this.opacity))},displayable(){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:tt,formatHex:tt,formatHex8:et,formatRgb:nt,toString:nt})),A(lt,ct,k(F,{brighter(t){return t=null==t?T:Math.pow(T,t),new lt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?E:Math.pow(E,t),new lt(this.h,this.s,this.l*t,this.opacity)},rgb(){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 J(pt(t>=240?t-240:t+120,r,i),pt(t,r,i),pt(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new lt(ut(this.h),ht(this.s),ht(this.l),it(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=it(this.opacity);return`${1===t?"hsl(":"hsla("}${ut(this.h)}, ${100*ht(this.s)}%, ${100*ht(this.l)}%${1===t?")":`, ${t})`}`}}));var dt=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],a=t[i+1],o=i>0?t[i-1]:2*r-a,s=i()=>t;function yt(t,e){return function(n){return t+n*e}}function bt(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function mt(t){return 1===(t=+t)?xt:function(e,n){return n-e?bt(e,n,t):vt(isNaN(e)?n:e)}}function xt(t,e){var n=e-t;return n?yt(t,n):vt(isNaN(t)?e:t)}var Ot=function t(e){var n=mt(e);function i(t,e){var i=n((t=Q(t)).r,(e=Q(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=xt(t.opacity,e.opacity);return function(e){return t.r=i(e),t.g=r(e),t.b=a(e),t.opacity=o(e),t+""}}return i.gamma=t,i}(1);function jt(t){return function(e){var n,i,r=e.length,a=new Array(r),o=new Array(r),s=new Array(r);for(n=0;na&&(r=e.slice(a,r),s[o]?s[o]+=r:s[++o]=r),(n=n[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:At(n,i)})),a=Et.lastIndex;return au.length?(c=Dt["parsePathString"](a[s]),u=Dt["parsePathString"](r[s]),u=Dt["fillPathByDiff"](u,c),u=Dt["formatPath"](u,c),e.fromAttrs.path=u,e.toAttrs.path=c):e.pathFormatted||(c=Dt["parsePathString"](a[s]),u=Dt["parsePathString"](r[s]),u=Dt["formatPath"](u,c),e.fromAttrs.path=u,e.toAttrs.path=c,e.pathFormatted=!0),i[s]=[];for(var h=0;h0){for(var o=i.animators.length-1;o>=0;o--)if(t=i.animators[o],t.destroyed)i.removeAnimator(o);else{if(!t.isAnimatePaused()){e=t.get("animations");for(var s=e.length-1;s>=0;s--)n=e[s],r=Gt(t,n,a),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(o)}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}(),Xt=Vt,Ht=n("e5e2"),Wt=40,qt=0,$t=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Ut(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function Zt(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(c["g"])(t,i))return void(n.bubbles=!1);n.name=e,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}}var Kt=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(c["a"])($t,(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(c["a"])($t,(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,a){var o=new Ht["a"](t,e);return o.fromShape=r,o.toShape=a,o.x=n.x,o.y=n.y,o.clientX=n.clientX,o.clientY=n.clientY,o.propagationPath.push(i),o},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],a=!1;if(r)r.call(this,n,i,e);else{var o=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?(a=!0,o&&this._emitEvent(t,e,n,o,o,null),this._emitEvent(t,e,n,null,o,null),"mouseleave"===t&&this.draggingShape&&this._emitEvent("dragleave",e,n,null)):this._emitEvent(t,e,n,i,null,null)}if(a||(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===qt&&(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===qt){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,a=this.draggingShape;if(this.dragging)a&&this._emitDragoverEvents(n,t,r,e,!1),this._emitEvent("drag",n,t,a);else{var o=this.mousedownPoint;if(o){var s=this.mousedownShape,c=n.timeStamp,l=c-this.mousedownTimeStamp,u=o.clientX-t.clientX,h=o.clientY-t.clientY,p=u*u+h*h;l>120||p>Wt?s&&s.get("draggable")?(a=this.mousedownShape,a.set("capture",!1),this.draggingShape=a,this.dragging=!0,this._emitEvent("dragstart",n,t,a),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,a){var o=this._getEventObj(t,e,n,i,r,a);if(i){o.shape=i,Ut(i,t,o);var s=i.getParent();while(s)s.emitDelegation(t,o),o.propagationStopped||Zt(s,t,o),o.propagationPath.push(s),s=s.getParent()}else{var c=this.canvas;Ut(c,t,o)}},t.prototype.destroy=function(){this._clearEvents(),this.canvas=null,this.currentShape=null,this.draggingShape=null,this.mousedownPoint=null,this.mousedownShape=null,this.mousedownTimeStamp=null},t}(),Qt=Kt,Jt="px",te=Object(o["a"])(),ee=te&&"firefox"===te.name,ne=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(a["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["cursor"]="default",e["supportCSSTransform"]=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(c["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 Qt({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Xt(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");c["c"]&&(n.style.width=t+Jt,n.style.height=e+Jt)},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");c["c"]&&e&&(e.style.cursor=t)},e.prototype.getPointByEvent=function(t){var e=this.get("supportCSSTransform");if(e){if(ee&&!Object(c["e"])(t.layerX)&&t.layerX!==t.offsetX)return{x:t.layerX,y:t.layerY};if(!Object(c["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}(s["a"]);e["a"]=ne},1405:function(t,e,n){"use strict";var i=n("9ab4"),r=n("917c"),a=n("cc94"),o=n("8937"),s=n("c34d"),c=n("b4aa"),l=n("62e3"),u="liquid";function h(t){return[{percent:t,type:u}]}function p(t){var e=t.chart,n=t.options,i=n.percent,r=n.liquidStyle,a=n.radius,o=n.outline,s=n.wave,u=n.shape,p=n.shapeStyle,f=n.animation;e.scale({percent:{min:0,max:1}}),e.data(h(i));var d=n.color||e.getTheme().defaultColor,g=Object(l["d"])({},t,{options:{xField:"type",yField:"percent",widthRatio:a,interval:{color:d,style:r,shape:"liquid-fill-gauge"}}}),v=Object(c["c"])(g).ext,y=v.geometry,b=e.getTheme().background,m={percent:i,radius:a,outline:o,wave:s,shape:u,shapeStyle:p,background:b,animation:f};return y.customInfo(m),e.legend(!1),e.axis(!1),e.tooltip(!1),t}function f(t,e){var n=t.chart,r=t.options,a=r.statistic,s=r.percent,c=r.meta;n.getController("annotation").clear(!0);var u=Object(o["get"])(c,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},h=a.content;return h&&(h=Object(l["d"])({},h,{content:Object(o["isNil"])(h.content)?u(s):h.content})),Object(l["w"])(n,{statistic:Object(i["__assign"])(Object(i["__assign"])({},a),{content:h}),plotType:"liquid"},{percent:s}),e&&n.render(!0),t}function d(t){return Object(l["g"])(s["k"],Object(s["f"])("liquidStyle"),p,f,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 b(t,e,n){return t+(e-t)*n}function m(t){var e=Object(i["__assign"])({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(o["mix"])({},e,t.style);return t.color&&!n.stroke&&(n.stroke=t.color),Object(o["isNumber"])(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,a,o){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=a-t+l-2*t;c.push(["M",u,e]);for(var h=0,p=0;p0){var I=e.addGroup({name:"waves"}),B=I.setClip({type:"path",attrs:{path:P}});_(w.x,w.y,1-t.points[1].y,b,A,I,B,2*S,O,f)}return e.addShape("path",{name:"distance",attrs:{path:P,fill:"transparent",lineWidth:v+2*y,stroke:"transparent"===p?"#fff":p}}),e.addShape("path",{name:"wrap",attrs:Object(o["mix"])(F,{path:P,fill:"transparent",lineWidth:v})}),e}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="liquid",e}Object(i["__extends"])(e,t),e.getDefaultOptions=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.changeData=function(t){this.chart.emit(r["i"].BEFORE_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].BEFORE_CHANGE_DATA,null)),this.updateOption({percent:t}),this.chart.data(h(t)),f({chart:this.chart,options:this.options},!0),this.chart.emit(r["i"].AFTER_CHANGE_DATA,r["d"].fromData(this.chart,r["i"].AFTER_CHANGE_DATA,null))},e.prototype.getSchemaAdaptor=function(){return d}})(a["b"])},"147d":function(t,e,n){"use strict";n.d(e,"getAdjust",(function(){return r})),n.d(e,"registerAdjust",(function(){return a}));n("41c8"),n("59b0");var i={},r=function(t){return i[t.toLowerCase()]},a=function(t,e){if(r(t))throw new Error("Adjust type '"+t+"' existed.");i[t.toLowerCase()]=e}},"14b2":function(t,e,n){"use strict";var i=n("9ab4"),r=n("cc94"),a=n("8937"),o=n("c34d"),s=n("b4aa"),c=n("afaa"),l=n("62e3"),u="$$yField$$",h="$$diffField$$",p="$$absoluteField$$",f="$$isTotal$$",d={label:{},leaderLine:{style:{lineWidth:1,stroke:"#8c8c8c",lineDash:[4,2]}},total:{style:{fill:"rgba(0, 0, 0, 0.25)"}},interactions:[{type:"element-active"}],risingFill:"#f4664a",fallingFill:"#30bf78",waterfallStyle:{fill:"rgba(0, 0, 0, 0.25)"},yAxis:{grid:{line:{style:{lineDash:[4,2]}}}}},g=n("917c");function v(t){for(var e=[],n=0;n0?v:y},O=Object(l["d"])({},t,{options:{xField:r,yField:u,seriesField:r,rawFields:[o,h,f,u],widthRatio:d,interval:{style:g,shape:"waterfall",color:x}}}),j=Object(s["c"])(O).ext,_=j.geometry;return _.customInfo({leaderLine:p}),t}function j(t){var e,n,i=t.options,r=i.xAxis,s=i.yAxis,c=i.xField,f=i.yField,d=i.meta,g=Object(l["d"])({},{alias:f},Object(a["get"])(d,f));return Object(l["g"])(Object(o["g"])((e={},e[c]=r,e[f]=s,e[u]=s,e),Object(l["d"])({},d,(n={},n[u]=g,n[h]=g,n[p]=g,n))))(t)}function _(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return!1===i?e.axis(a,!1):e.axis(a,i),!1===r?(e.axis(o,!1),e.axis(u,!1)):(e.axis(o,r),e.axis(u,r)),t}function w(t){var e=t.chart,n=t.options,i=n.legend,r=n.total,o=n.risingFill,s=n.fallingFill,u=n.locale,h=Object(c["a"])(u);if(!1===i)e.legend(!1);else{var p=[{name:h.get(["general","increase"]),value:"increase",marker:{symbol:"square",style:{r:5,fill:o}}},{name:h.get(["general","decrease"]),value:"decrease",marker:{symbol:"square",style:{r:5,fill:s}}}];r&&p.push({name:r.label||"",value:"total",marker:{symbol:"square",style:Object(l["d"])({},{r:5},Object(a["get"])(r,"style"))}}),e.legend(Object(l["d"])({},{custom:!0,position:"top",items:p},i)),e.removeInteraction("legend-filter")}return t}function C(t){var e=t.chart,n=t.options,r=n.label,a=n.labelMode,o=n.xField,s=Object(l["e"])(e,"interval");if(r){var c=r.callback,u=Object(i["__rest"])(r,["callback"]);s.label({fields:"absolute"===a?[p,o]:[h,o],callback:c,cfg:Object(l["A"])(u)})}else s.label(!1);return t}function M(t){var e=t.chart,n=t.options,r=n.tooltip,a=n.xField,o=n.yField;if(!1!==r){e.tooltip(Object(i["__assign"])({showCrosshairs:!1,showMarkers:!1,shared:!0,fields:[o]},r));var s=e.geometries[0];(null===r||void 0===r?void 0:r.formatter)?s.tooltip(a+"*"+o,r.formatter):s.tooltip(o)}else e.tooltip(!1);return t}function S(t){return Object(l["g"])(x,o["k"],O,j,_,w,M,C,o["j"],o["c"],o["a"],Object(o["b"])())(t)}Object(g["p"])("interval","waterfall",{draw:function(t,e){var n=t.customInfo,r=t.points,o=t.nextPoints,s=e.addGroup(),c=this.parsePath(v(r)),l=y(t);s.addShape("path",{attrs:Object(i["__assign"])(Object(i["__assign"])({},l),{path:c})});var u=Object(a["get"])(n,"leaderLine");if(u&&o){var h=[["M",r[2].x,r[2].y],["L",o[0].x,o[0].y]];r[2].y===o[1].y&&(h[1]=["L",o[1].x,o[1].y]),h=this.parsePath(h),s.addShape("path",{attrs:Object(i["__assign"])({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["__extends"])(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(m(t,n,i,r))},e.prototype.getSchemaAdaptor=function(){return S},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 a,o=t.children,s=-1,c=o.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}))},"1d73":function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var i=n("9ab4"),r=n("8937"),a=n("c34d"),o=n("b4aa"),s=n("62e3"),c=n("b2a0"),l=n("849a");function u(t){var e=t.chart,n=t.options,a=n.data,l=n.areaStyle,u=n.color,h=n.point,p=n.line,f=n.isPercent,d=n.xField,g=n.yField,v=n.tooltip,y=n.seriesField,b=n.startOnZero,m=null===h||void 0===h?void 0:h.state,x=Object(c["a"])(a,g,d,g,f);e.data(x);var O=f?Object(i["__assign"])({formatter:function(t){return{name:t[y]||t[d],value:(100*Number(t[g])).toFixed(2)+"%"}}},v):v,j=Object(s["d"])({},t,{options:{area:{color:u,style:l},point:h&&Object(i["__assign"])({color:u},h),tooltip:O,label:void 0,args:{startOnZero:b}}}),_={chart:e,options:Object(s["d"])({line:{size:2}},Object(r["omit"])(n,["state"]),{line:p&&Object(i["__assign"])({color:u},p),sizeField:y,state:null===p||void 0===p?void 0:p.state,tooltip:!1,label:void 0,args:{startOnZero:b}})},w=Object(s["d"])({},j,{options:{tooltip:!1,state:m}});return Object(o["a"])(j),Object(o["d"])(_),Object(o["e"])(w),t}function h(t){var e=t.chart,n=t.options,r=n.label,a=n.yField,o=Object(s["e"])(e,"area");if(r){var c=r.callback,l=Object(i["__rest"])(r,["callback"]);o.label({fields:[a],callback:c,cfg:Object(i["__assign"])({layout:[{type:"limit-in-plot"},{type:"path-adjust-position"},{type:"point-adjust-position"},{type:"limit-in-plot",cfg:{action:"hide"}}]},Object(s["A"])(l))})}else o.label(!1);return t}function p(t){var e=t.chart,n=t.options,i=n.isStack,a=n.isPercent,o=n.seriesField;return(a||i)&&o&&Object(r["each"])(e.geometries,(function(t){t.adjust("stack")})),t}function f(t){return Object(s["g"])(a["k"],Object(a["f"])("areaStyle"),Object(a["m"])("rect"),u,l["d"],p,l["b"],l["c"],a["l"],h,a["i"],Object(a["b"])(),a["c"],a["a"],a["e"])(t)}n.d(e,"b",(function(){return l["d"]}))},"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}))},"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"),a=n("092b");function o(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,a,o,s=r.length,c=t(n)*e||0;if(c)for(a=0;ad&&(d=l),b=p*p*y,g=Math.max(d/b,b/f),g>v){p-=l;break}v=g}m.push(c={value:p,dice:u1?e:1)},n}(a)},"23b9":function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o})),n.d(e,"e",(function(){return c})),n.d(e,"d",(function(){return l}));var i=n("8937"),r="nodeIndex",a="childNodeCount",o="nodeAncestor",s="Invalid field: it must be a string!";function c(t,e){var n=t.field,r=t.fields;if(Object(i["isString"])(n))return n;if(Object(i["isArray"])(n))return n[0];if(Object(i["isString"])(r))return r;if(Object(i["isArray"])(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["filter"])(((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===o)return e;if(0===s)return n;for(var l=0;l=0&&(e=u),Math.abs(c)=g[d-1].fx){var A=!1;if(O.fx>S.fx?(s(j,1+p,x,-p,S),j.fx=t(j),j.fx=1)break;for(v=1;vl+o*a*u||h>=g)d=a;else{if(Math.abs(f)<=-c*u)return a;f*(d-p)>=0&&(d=p),p=a,g=h}return 0}a=a||1,o=o||1e-6,c=c||.1;for(var v=0;v<10;++v){if(s(i.x,1,n.x,a,e),h=i.fx=t(i.x,i.fxprime),f=r(i.fxprime,e),h>l+o*a*u||v&&h>=p)return g(d,a,p);if(Math.abs(f)<=-c*u)return a;if(f>=0)return g(a,d,h);p=h,d=a,a*=2}return a}function u(t,e,n){var i,c,u,h={x:e.slice(),fx:0,fxprime:e.slice()},p={x:e.slice(),fx:0,fxprime:e.slice()},f=e.slice(),d=1;n=n||{},u=n.maxIterations||20*e.length,h.fx=t(h.x,h.fxprime),i=h.fxprime.slice(),o(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,o=t.maxY;if(e){var s=Object(a["c"])(e,[t.minX,t.minY]),c=Object(a["c"])(e,[t.maxX,t.minY]),l=Object(a["c"])(e,[t.minX,t.maxY]),u=Object(a["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]),o=Math.max(s[1],c[1],l[1],u[1])}var h=this.attrs;if(h.shadowColor){var p=h.shadowBlur,f=void 0===p?0:p,d=h.shadowOffsetX,g=void 0===d?0:d,v=h.shadowOffsetY,y=void 0===v?0:v,b=n-f+g,m=r+f+g,x=i-f+y,O=o+f+y;n=Math.min(n,b),r=Math.max(r,m),i=Math.min(i,x),o=Math.max(o,O)}return{x:n,y:i,minX:n,minY:i,maxX:r,maxY:o,width:r-n,height:o-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 a=r[0],o=r[1],s=this._isInBBox(a,o);if(this.isOnlyHitBox())return s;if(s&&!this.isClipped(a,o)){if(this.isInShape(a,o))return!0;if(n&&n.isHit(a,o))return!0;if(i&&i.isHit(a,o))return!0}return!1},e}(r["a"]);e["a"]=o},"31e6":function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),a=n("d7ff"),o=n("8ea8"),s=n("e546"),c=n("3665"),l="update_status",u=["visible","tip","delegateObject"],h=["container","group","shapesMap","isRegister","isUpdating","destroyed"],p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},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["each"])(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){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(o["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(a["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,a=Object(i["__rest"])(e,["id","component"]),o=new r(Object(i["__assign"])(Object(i["__assign"])({},a),{id:n,container:t,updateAutoRender:this.get("updateAutoRender")}));return o.init(),o.render(),this.get("isRegister")&&this.registerElement(o.get("group")),o},e.prototype.initEvent=function(){},e.prototype.removeEvent=function(){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(o["f"])(e);t.attr("matrix",n)},e.prototype.addAnimation=function(t,e,n){var i=e.attr("opacity");Object(r["isNil"])(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,a=this.get("animate"),o=this.get("animateOption"),c=t.getChildren().slice(0);Object(r["each"])(c,(function(t){var c=t.get("id"),p=i.getElementById(c),f=t.get("name");if(p)if(t.get("isComponent")){var d=t.get("component"),g=p.get("component"),v=Object(r["pick"])(d.cfg,Object(r["difference"])(Object(r["keys"])(d.cfg),h));g.update(v),p.set(l,"update")}else{var y=i.getReplaceAttrs(p,t);a&&o.update?i.updateAnimation(f,p,y,o.update):p.attr(y),t.isGroup()&&i.updateElements(t,p),Object(r["each"])(u,(function(e){p.set(e,t.get(e))})),Object(s["m"])(p,t),n=p,p.set(l,"update")}else{e.add(t);var b=e.getChildren();if(b.splice(b.length-1,1),n){var m=b.indexOf(n);b.splice(m+1,0,t)}else b.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,a){var x=i.get("isInit")?o.appear:o.enter;x&&i.addAnimation(f,t,x)}}}))},e.prototype.clearUpdateStatus=function(t){var e=t.getChildren();Object(r["each"])(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["mix"])(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return Object(r["each"])(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["each"])(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["each"])(e,(function(t,e){!t.get(l)||t.destroyed?n.push([e,t]):t.set(l,null)}));var i=this.get("animate"),a=this.get("animateOption");Object(r["each"])(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var c=s.get("name");if(i&&a.leave){var l=Object(r["mix"])({callback:function(){t.removeElement(s)}},a.leave);t.removeAnimation(c,s,l)}else t.removeElement(s)}delete e[o]}))},e.prototype.removeElement=function(t){if(t.get("isGroup")){var e=t.get("component");e&&e.destroy()}t.remove()},e}(c["a"]);e["a"]=p},"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:{}}},3226:function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"a",(function(){return u}));var i=n("cc94"),r=n("62e3"),a="$$stock-range$$",o="trend",s="up",c="down",l={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"}}}},u=Object(r["d"])({},i["b"].getDefaultOptions(),{tooltip:l,interactions:[{type:"tooltip"}],legend:{position:"top-left"},risingFill:"#ef5350",fallingFill:"#26a69a"})},"323ed":function(t,e,n){"use strict";var i=n("9ab4"),r=n("cc94"),a=n("8937"),o=n("c34d"),s=n("b4aa"),c=n("62e3"),l="color",u=Object(c["d"])({},r["b"].getDefaultOptions(),{timeInterval:2e3,legend:!1,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!1,fields:["text","value",l],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}}),h=n("f45c"),p={font:function(){return"serif"},padding:1,size:[500,500],spiral:"archimedean",timeInterval:3e3};function f(t,e){return e=Object(a["assign"])({},p,e),d(t,e)}function d(t,e){var n=I();["font","fontSize","fontWeight","padding","rotate","size","spiral","timeInterval","random"].forEach((function(t){Object(a["isNil"])(e[t])||n[t](e[t])})),n.words(t),e.imageMask&&n.createMask(e.imageMask);var i=n.start(),r=i._tags;r.forEach((function(t){t.x+=e.size[0]/2,t.y+=e.size[1]/2}));var o=e.size,s=o[0],c=o[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 g=Math.PI/180,v=64,y=2048;function b(t){return t.text}function m(){return"serif"}function x(){return"normal"}function O(t){return t.value}function j(){return 90*~~(2*Math.random())}function _(){return 1}function w(t,e,n,i){if(!e.sprite){var r=t.context,a=t.ratio;r.clearRect(0,0,(v<<5)/a,y/a);var o=0,s=0,c=0,l=n.length;--i;while(++i>5<<5,h=~~Math.max(Math.abs(b+m),Math.abs(b-m))}else u=u+31>>5<<5;if(h>c&&(c=h),o+u>=v<<5&&(o=0,s+=c,c=0),s+h>=y)break;r.translate((o+(u>>1))/a,(s+(h>>1))/a),e.rotate&&r.rotate(e.rotate*g),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=o,e.yoff=s,e.x1=u>>1,e.y1=h>>1,e.x0=-e.x1,e.y0=-e.y1,e.hasText=!0,o+=u}var O=r.getImageData(0,0,(v<<5)/a,y/a).data,j=[];while(--i>=0)if(e=n[i],e.hasText){u=e.width;for(var _=u>>5,w=(h=e.y1-e.y0,0);w>5),k=O[(s+S)*(v<<5)+(o+w)<<2]?1<<31-w%32:0;j[A]|=k,C|=k}C?M=S:(e.y0++,h--,S--,s++)}e.y1=e.y0+M,e.sprite=j.slice(0,(e.y1-e.y0)*_)}}}function C(t,e,n){n>>=5;for(var i,r=t.sprite,a=t.width>>5,o=t.x-(a<<4),s=127&o,c=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(o>>5),h=0;h>>s:0))&e[u+p])return!0;u+=n}return!1}function M(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 S(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0>2);t.width=(v<<5)/e,t.height=y/e;var n=t.getContext("2d",{willReadFrequently:!0});return n.fillStyle=n.strokeStyle="red",n.textAlign="center",{context:n,ratio:e}}function g(e,n,i){var r,a,c,l=n.x,u=n.y,h=Math.sqrt(t[0]*t[0]+t[1]*t[1]),p=o(t),f=s()<.5?1:-1,d=-f;while(r=p(d+=f)){if(a=~~r[0],c=~~r[1],Math.min(Math.abs(a),Math.abs(c))>=h)break;if(n.x=l+a,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||!C(n,e,t[0]))&&(!i||S(n,i))){for(var g=n.sprite,v=n.width>>5,y=t[0]>>5,b=n.x-(v<<4),m=127&b,x=32-m,O=n.y1-n.y0,j=void 0,_=(n.y+n.y0)*y+(b>>5),w=0;w>>m:0);_+=y}return delete n.sprite,!0}}return!1}return f.start=function(){var o=t[0],v=t[1],y=d(p()),b=f.board?f.board:F((t[0]>>5)*t[1]),m=c.length,x=[],O=c.map((function(t,o,s){return t.text=u.call(this,t,o,s),t.font=e.call(this,t,o,s),t.style=h.call(this,t,o,s),t.weight=i.call(this,t,o,s),t.rotate=r.call(this,t,o,s),t.size=~~n.call(this,t,o,s),t.padding=a.call(this,t,o,s),t})).sort((function(t,e){return e.size-t.size})),j=-1,_=f.board?[{x:0,y:0},{x:o,y:v}]:null;function C(){var e=Date.now();while(Date.now()-e>1,n.y=v*(s()+.5)>>1,w(y,n,O,j),n.hasText&&g(b,n,_)&&(x.push(n),_?f.hasImage||M(_,n):_=[{x:n.x+n.x0,y:n.y+n.y0},{x:n.x+n.x1,y:n.y+n.y1}],n.x-=t[0]>>1,n.y-=t[1]>>1)}f._tags=x,f._bounds=_}return C(),f},f.createMask=function(e){var n=document.createElement("canvas"),i=t[0],r=t[1];if(i&&r){var a=i>>5,o=F((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),p=l*i+u<<2,d=c[p]>=250&&c[p+1]>=250&&c[p+2]>=250,g=d?1<<31-u%32:0;o[h]|=g}f.board=o,f.hasImage=!0}},f.timeInterval=function(t){l=null==t?1/0:t},f.words=function(t){c=t},f.size=function(e){t=[+e[0],+e[1]]},f.font=function(t){e=T(t)},f.fontWeight=function(t){i=T(t)},f.rotate=function(t){r=T(t)},f.spiral=function(t){o=P[t]||t},f.fontSize=function(t){n=T(t)},f.padding=function(t){a=T(t)},f.random=function(t){s=T(t)},f}function B(t){var e=t.options,n=t.chart,r=n,o=r.width,s=r.height,c=r.padding,l=r.appendPadding,u=r.ele,h=e.data,p=e.imageMask,d=e.wordField,g=e.weightField,v=e.colorField,y=e.wordStyle,b=e.timeInterval,m=e.random,x=e.spiral,O=e.autoFit,j=void 0===O||O,_=e.placementStrategy;if(!h||!h.length)return[];var w=y.fontFamily,C=y.fontWeight,M=y.padding,S=y.fontSize,A=z(h,g),k=[V(A),X(A)],F=h.map((function(t){return{text:t[d],value:t[g],color:t[v],datum:t}})),E={imageMask:p,font:w,fontSize:N(S,k),fontWeight:C,size:L({width:o,height:s,padding:c,appendPadding:l,autoFit:j,container:u}),padding:M,timeInterval:b,random:m,spiral:x,rotate:Y(e)};if(Object(a["isFunction"])(_)){var P=F.map((function(t,e,r){return Object(i["__assign"])(Object(i["__assign"])(Object(i["__assign"])({},t),{hasText:!!t.text,font:T(E.font)(t,e,r),weight:T(E.fontWeight)(t,e,r),rotate:T(E.rotate)(t,e,r),size:T(E.fontSize)(t,e,r),style:"normal"}),_.call(n,t,e,r))}));return P.push({text:"",value:0,x:0,y:0,opacity:0}),P.push({text:"",value:0,x:E.size[0],y:E.size[1],opacity:0}),P}return f(F,E)}function L(t){var e=t.width,n=t.height,i=t.container,r=t.autoFit,a=t.padding,o=t.appendPadding;if(r){var s=Object(c["l"])(i);e=s.width,n=s.height}e=e||400,n=n||400;var l=D({padding:a,appendPadding:o}),u=l[0],h=l[1],p=l[2],f=l[3],d=[e-(f+h),n-(u+p)];return d}function D(t){var e=Object(h["b"])(t.padding),n=Object(h["b"])(t.appendPadding),i=e[0]+n[0],r=e[1]+n[1],a=e[2]+n[2],o=e[3]+n[3];return[i,r,a,o]}function R(t){return new Promise((function(e,n){if(t instanceof HTMLImageElement)e(t);else{if(Object(a["isString"])(t)){var i=new Image;return i.crossOrigin="anonymous",i.src=t,i.onload=function(){e(i)},void(i.onerror=function(){Object(c["r"])(c["a"].ERROR,!1,"image %s load failed !!!",t),n()})}Object(c["r"])(c["a"].WARN,void 0===t,"The type of imageMask option must be String or HTMLImageElement."),n()}}))}function N(t,e){if(Object(a["isFunction"])(t))return t;if(Object(a["isArray"])(t)){var n=t[0],i=t[1];if(!e)return function(){return(i+n)/2};var r=e[0],o=e[1];return o===r?function(){return(i+n)/2}:function(t){var e=t.value;return(i-n)/(o-r)*(e-r)+n}}return function(){return t}}function z(t,e){return t.map((function(t){return t[e]})).filter((function(t){return"number"===typeof t&&!isNaN(t)}))}function Y(t){var e=G(t),n=e.rotation,i=e.rotationSteps;if(!Object(a["isArray"])(n))return n;var r=n[0],o=n[1],s=1===i?0:(o-r)/(i-1);return function(){return o===r?o:Math.floor(Math.random()*i)*s}}function G(t){var e=t.wordStyle.rotationSteps;return e<1&&(Object(c["r"])(c["a"].WARN,!1,"The rotationSteps option must be greater than or equal to 1."),e=1),{rotation:t.wordStyle.rotation,rotationSteps:e}}function V(t){return Math.min.apply(Math,t)}function X(t){return Math.max.apply(Math,t)}function H(t){var e=t.chart,n=t.options,r=n.colorField,o=n.color,u=B(t);e.data(u);var h=Object(c["d"])({},t,{options:{xField:"x",yField:"y",seriesField:r&&l,rawFields:Object(a["isFunction"])(o)&&Object(i["__spreadArrays"])(Object(a["get"])(n,"rawFields",[]),["datum"]),point:{color:o,shape:"word-cloud"}}}),p=Object(s["e"])(h).ext;return p.geometry.label(!1),e.coordinate().reflect("y"),e.axis(!1),t}function W(t){return Object(c["g"])(Object(o["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(l,i),t}function $(t){Object(c["g"])(H,W,o["l"],q,o["c"],o["a"],o["k"],o["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,a=e.addShape("text",{attrs:Object(i["__assign"])(Object(i["__assign"])({},Z(t)),{x:n,y:r})}),o=t.data.rotate;return"number"===typeof o&&U["h"].rotate(a,o*Math.PI/180),a}});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="word-cloud",e}Object(i["__extends"])(e,t),e.getDefaultOptions=function(){return u},e.prototype.changeData=function(t){this.updateOption({data:t}),this.options.imageMask?this.render():this.chart.changeData(B({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 a=function(r){e.options=Object(i["__assign"])(Object(i["__assign"])({},e.options),{imageMask:r||null}),t.prototype.render.call(e),n()};R(r).then(a).catch(a)}))},e.prototype.getSchemaAdaptor=function(){return $},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,a=function(t,e){return r.call(t)==="[object "+e+"]"},o=function(t){return a(t,"Array")},s=function(t){return"object"===typeof t&&null!==t},c=function(t){if(!s(t)||!a(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 a in n=n||0,r=r||i,e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a];s?c(s)?(c(t[a])||(t[a]={}),n0)}));c.length>0?(Object(o["a"])(c,(function(t){var e=t.getBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["min"])(a),e=Object(r["max"])(a),n=Object(r["min"])(s),i=Object(r["max"])(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,a=[],s=[],c=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));c.length>0?(Object(o["a"])(c,(function(t){var e=t.getCanvasBBox();a.push(e.minX,e.maxX),s.push(e.minY,e.maxY)})),t=Object(r["min"])(a),e=Object(r["max"])(a),n=Object(r["min"])(s),i=Object(r["max"])(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(o["a"])(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e=0;a--){var s=t[a];if(Object(o["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(o["a"])(t,(function(t,e){return t[c]=e,t})),t.sort(p((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(o["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(o["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}(a["a"]);e["a"]=f},3456:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("9ab4"),r=n("c34d"),a=n("b4aa"),o=n("87d0"),s=n("62e3"),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,p=n.stackField,f=n.legend,d=n.columnStyle,g=Object(c["a"])(i,r,u,o,p);e.data(g);var v=Object(s["d"])({},t,{options:{xField:l["b"],yField:l["c"],seriesField:p,isStack:!0,interval:{color:h,style:d}}});return Object(a["c"])(v),f&&p?e.legend(p,f):e.legend(!1),t}function h(t){var e,n=t.options,i=n.xAxis,a=n.yAxis;return Object(s["g"])(Object(r["g"])((e={},e[l["b"]]=i,e[l["c"]]=a,e)))(t)}function p(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 f(t){var e=t.chart,n=t.options,r=n.label,a=Object(s["e"])(e,"interval");if(r){var o=r.callback,c=Object(i["__rest"])(r,["callback"]);a.label({fields:[l["c"]],callback:o,cfg:Object(s["A"])(c)})}else a.label(!1);return t}function d(t){return Object(s["g"])(r["k"],Object(o["a"])("columnStyle"),u,h,p,r["j"],f,r["l"],r["c"],r["a"])(t)}},3665:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("8937"),o={none:[],point:["x","y"],region:["start","end"],points:["points"],circle:["center","radius","startAngle","endAngle"]},s=function(t){function e(e){var n=t.call(this,e)||this;return n.initCfg(),n}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg")||{};Object(a["each"])(t,(function(t,i){var r=e.get(i),o=t;r!==t&&(Object(a["isObject"])(t)&&n[i]&&(o=Object(a["deepMix"])({},n[i],t)),e.set(i,o))})),this.updateInner(t),this.afterUpdate(t)},e.prototype.updateInner=function(t){},e.prototype.afterUpdate=function(t){Object(a["hasKey"])(t,"visible")&&(t.visible?this.show():this.hide()),Object(a["hasKey"])(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(i["__assign"])({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),i=o[n];return Object(a["each"])(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(a["each"])(e,(function(e,n){var i=t.get(n);if(Object(a["isObject"])(i)){var r=Object(a["deepMix"])({},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,a=new Array(r),o=0;o=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,a=this.yField,o=n.indexOf(e),s=n.length;return!a&&this.isAdjust("y")?(i=0,r=1):s>1?(i=n[0===o?0:o-1],r=n[o===s-1?s-1:o+1],0!==o?i+=(e-i)/2:i-=(r-e)/2,o!==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["each"](t,(function(t,e){i["each"](r,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return i["each"](t,(function(t){void 0===t[e]&&(t[e]=r["a"])})),i["groupBy"](t,e)},t.prototype.adjustDim=function(t,e,n,i){},t.prototype.getDimValues=function(t){var e=this,n=e.xField,a=e.yField,o=i["assign"]({},this.dimValuesMap),s=[];if(n&&this.isAdjust("x")&&s.push(n),a&&this.isAdjust("y")&&s.push(a),s.forEach((function(e){o&&o[e]||(o[e]=i["valuesOfKey"](t,e).sort((function(t,e){return t-e})))})),!a&&this.isAdjust("y")){var c="y";o[c]=[r["a"],1]}return o},t}();e["a"]=a},"42e4":function(t,e,n){"use strict";n.d(e,"a",(function(){return h})),n.d(e,"b",(function(){return f}));var i=n("8937"),r=n("58e4"),a=n("62e3"),o=n("e474"),s=n("7b42"),c=n("618a");function l(t){var e,n=t.chart,i=t.options,r=i.data,a=void 0===r?[]:r,o=i.yField;return n.data(a),n.scale((e={},e[o]={sync:!0},e)),t}function u(t){var e=t.chart,n=t.options,l=n.data,u=n.xField,h=n.yField,p=n.color,f=n.compareField,d=n.isTransposed,g=n.tooltip,v=n.maxSize,y=n.minSize,b=n.label,m=n.funnelStyle,x=n.state,O=n.showFacetTitle;return e.facet("mirror",{fields:[f],transpose:!d,padding:d?0:[32,0,0,0],showTitle:O,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=Object(c["c"])(e.data,l,{yField:h,maxSize:v,minSize:y});t.data(O);var j=Object(o["a"])(g,[u,h,f]),_=j.fields,w=j.formatter,C=d?{offset:0===n?10:-23,position:0===n?"bottom":"top"}:{offset:10,position:"left",style:{textAlign:0===n?"end":"start"}};Object(r["a"])({chart:t,options:{type:"interval",xField:u,yField:s["c"],colorField:u,tooltipFields:Object(i["isArray"])(_)&&_.concat([s["d"],s["b"]]),mapping:{shape:"funnel",tooltip:w,color:p,style:m},label:!1!==b&&Object(a["d"])({},C,b),state:x}})}}),t}function h(t){var e=t.chart,n=t.index,r=t.options,o=r.conversionTag,l=r.isTransposed;(Object(i["isNumber"])(n)?[e]:e.views).forEach((function(t,e){var u=Object(i["get"])(t,["geometries","0","dataArray"],[]),h=Object(i["get"])(t,["options","data","length"]),p=Object(i["map"])(u,(function(t){return Object(i["get"])(t,["0","nextPoints","0","x"])*h-.5})),f=function(t,i,r,c){var u=0===(n||e)?-1:1;return Object(a["d"])({},c,{start:[p[i-1]||i-.5,t[s["c"]]],end:[p[i-1]||i-.5,t[s["c"]]+.05],text:l?{style:{textAlign:"start"}}:{offsetX:!1!==o?u*o.offsetX:0,style:{textAlign:0===(n||e)?"end":"start"}}})};Object(c["b"])(f)(Object(a["d"])({},{chart:t,options:r}))}))}function p(t){var e=t.chart;return e.once("beforepaint",(function(){return h(t)})),t}function f(t){return Object(a["g"])(l,u,p)(t)}},4799:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return u})),n.d(e,"Circle",(function(){return p})),n.d(e,"Ellipse",(function(){return g})),n.d(e,"Image",(function(){return b})),n.d(e,"Line",(function(){return _})),n.d(e,"Marker",(function(){return H})),n.d(e,"Path",(function(){return st})),n.d(e,"Polygon",(function(){return ut})),n.d(e,"Polyline",(function(){return pt})),n.d(e,"Rect",(function(){return yt})),n.d(e,"Text",(function(){return mt}));var i={};n.r(i),n.d(i,"Base",(function(){return u})),n.d(i,"Circle",(function(){return p})),n.d(i,"Ellipse",(function(){return g})),n.d(i,"Image",(function(){return b})),n.d(i,"Line",(function(){return _})),n.d(i,"Marker",(function(){return H})),n.d(i,"Path",(function(){return st})),n.d(i,"Polygon",(function(){return ut})),n.d(i,"Polyline",(function(){return pt})),n.d(i,"Rect",(function(){return yt})),n.d(i,"Text",(function(){return mt}));var r=n("9ab4"),a=n("6855"),o=n("7326"),s=n("f5e5"),c=n("c2ad"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return c["a"]},e.prototype.onCanvasChange=function(t){Object(s["h"])(this,t)},e.prototype.calculateBBox=function(){var t=this.get("type"),e=this.getHitLineWidth(),n=Object(a["getBBoxMethod"])(t),i=n(this),r=e/2,o=i.x-r,s=i.y-r,c=i.x+i.width+r,l=i.y+i.height+r;return{x:o,minX:o,y:s,minY:s,width:i.width+e,height:i.height+e,maxX:c,maxY:l}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(s["a"])(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.draw=function(t,e){var n=this.cfg.clipShape;if(e){if(!1===this.cfg.refresh)return void this.set("hasChanged",!1);var i=this.getCanvasBBox();if(!Object(o["f"])(e,i))return this.set("hasChanged",!1),void(this.cfg.isInView&&this._afterDraw())}t.save(),Object(s["a"])(t,this),this._applyClip(t,n),this.drawPath(t),t.restore(),this._afterDraw()},e.prototype.getCanvasViewBox=function(){var t=this.cfg.canvas;return t?t.getViewRange():null},e.prototype.cacheCanvasBBox=function(){var t=this.getCanvasViewBox();if(t){var e=this.getCanvasBBox(),n=Object(o["f"])(e,t);this.set("isInView",n),n?this.set("cacheCanvasBBox",e):this.set("cacheCanvasBBox",null)}},e.prototype._afterDraw=function(){this.cacheCanvasBBox(),this.set("hasChanged",!1),this.set("refresh",null)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("isInView",null),this.set("hasChanged",!1)},e.prototype.drawPath=function(t){this.createPath(t),this.strokeAndFill(t),this.afterDrawPath(t)},e.prototype.fill=function(t){t.fill()},e.prototype.stroke=function(t){t.stroke()},e.prototype.strokeAndFill=function(t){var e=this.attrs,n=e.lineWidth,i=e.opacity,r=e.strokeOpacity,a=e.fillOpacity;this.isFill()&&(Object(o["i"])(a)||1===a?this.fill(t):(t.globalAlpha=a,this.fill(t),t.globalAlpha=i)),this.isStroke()&&n>0&&(Object(o["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}(a["AbstractShape"]),u=l,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),s=a.x,c=a.y,l=a.r,u=r/2,h=Object(o["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),p=h;function f(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["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),o=r/2,s=a.x,c=a.y,l=a.rx,u=a.ry,h=(t-s)*(t-s),p=(e-c)*(e-c);return i&&n?f(h,p,l+o,u+o)<=1:i?f(h,p,l,u)<=1:!!n&&(f(h,p,l-o,u-o)>=1&&f(h,p,l+o,u+o)<=1)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x,i=e.y,r=e.rx,a=e.ry;if(t.beginPath(),t.ellipse)t.ellipse(n,i,r,a,0,0,2*Math.PI,!1);else{var o=r>a?r:a,s=r>a?1:r/a,c=r>a?a/r:1;t.save(),t.translate(n,i),t.scale(s,c),t.arc(0,0,o,0,2*Math.PI),t.restore(),t.closePath()}},e}(u),g=d;function v(t){return t instanceof HTMLElement&&Object(o["k"])(t.nodeName)&&"CANVAS"===t.nodeName.toUpperCase()}var y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(o["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,a=e.height,s=e.sx,c=e.sy,l=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||v(h))&&(Object(o["i"])(s)||Object(o["i"])(c)||Object(o["i"])(l)||Object(o["i"])(u)?t.drawImage(h,n,i,r,a):t.drawImage(h,s,c,l,u,n,i,r,a))},e}(u),b=y,m=n("1183");function x(t,e,n,i,r,a,o){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 a>=s-h&&a<=c+h&&o>=l-h&&o<=u+h&&m["c"].pointToLine(t,e,n,i,a,o)<=r/2}var O=n("9f27"),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,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,a=t.startArrow,o=t.endArrow;a&&O["b"](this,t,i,r,e,n),o&&O["a"](this,t,e,n,i,r)},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var a=this.attr(),o=a.x1,s=a.y1,c=a.x2,l=a.y2;return x(o,s,c,l,r,t,e)},e.prototype.createPath=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=e.startArrow,s=e.endArrow,c={dx:0,dy:0},l={dx:0,dy:0};o&&o.d&&(c=O["c"](n,i,r,a,e.startArrow.d)),s&&s.d&&(l=O["c"](n,i,r,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+c.dx,i+c.dy),t.lineTo(r-l.dx,a-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 m["c"].length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2;return m["c"].pointAt(n,i,r,a,t)},e}(u),_=j,w=n("8937"),C=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,M=/[^\s\,]+/gi;function S(t){var e=t||[];return Object(w["isArray"])(e)?e:Object(w["isString"])(e)?(e=e.match(C),Object(w["each"])(e,(function(t,n){if(t=t.match(M),t[0].length>1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(w["each"])(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var A=S;n("20e7");var k="\t\n\v\f\r   ᠎              \u2028\u2029",F=new RegExp("([a-z])["+k+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+k+"]*,?["+k+"]*)+)","ig"),E=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+k+"]*,?["+k+"]*","ig");function T(t){if(!t)return null;if(Object(w["isArray"])(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(F,(function(t,i,r){var a=[],o=i.toLowerCase();if(r.replace(E,(function(t,e){e&&a.push(+e)})),"m"===o&&a.length>2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else while(a.length>=e[o])if(n.push([i].concat(a.splice(0,e[o]))),!e[o])break;return""})),n}var P=/[a-z]/;function I(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function B(t){var e=T(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 a=[],o=0,s=0,c=0,l=0,u=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(o=+h[1],s=+h[2],c=o,l=s,u++,a[0]=["M",o,s]);i=u;for(var p=e.length;i1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var d=n*n*(p*p)+i*i*(h*h),g=d?Math.sqrt((n*n*(i*i)-d)/d):1;a===o&&(g*=-1),isNaN(g)&&(g=0);var v=i?g*n*p/i:0,y=n?g*-i*h/n:0,b=(s+l)/2+Math.cos(r)*v-Math.sin(r)*y,m=(c+u)/2+Math.sin(r)*v+Math.cos(r)*y,x=[(h-v)/n,(p-y)/i],O=[(-1*h-v)/n,(-1*p-y)/i],j=R([1,0],x),_=R(x,O);return D(x,O)<=-1&&(_=Math.PI),D(x,O)>=1&&(_=0),0===o&&_>0&&(_-=2*Math.PI),1===o&&_<0&&(_+=2*Math.PI),{cx:b,cy:m,rx:N(t,[l,u])?0:n,ry:N(t,[l,u])?0:i,startAngle:j,endAngle:j+_,xRotation:r,arcFlag:a,sweepFlag:o}}function Y(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function G(t){t=A(t);for(var e=[],n=null,i=null,r=null,a=0,o=t.length,s=0;s0!==$(s[1]-n)>0&&$(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}var K=n("e897"),Q=n("9fe7");function J(t,e,n,i,r,a,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(o["b"])(u.x,u.y,s,c)<=a/2}var tt=K["ext"].transform;function et(t){for(var e=!1,n=t.length,i=0;ij?O:j,A=O>j?1:O/j,k=O>j?j/O:1,F=tt(null,[["t",-y,-b],["r",-C],["s",1/A,1/k]]);Q["transformMat3"](M,M,F),a=J(0,0,S,_,w,e,M[0],M[1]);break;default:break}if(a)break}}return a}function it(t){for(var e=t.length,n=[],i=[],r=[],a=0;a0&&i.push(r),{polygons:n,polylines:i}}var rt=Object(r["__assign"])({hasArc:et,extractPolygons:it,isPointInStroke:nt},a["PathUtil"]);function at(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 a=r[n];if(Object(w["isNil"])(a)||Object(w["isNil"])(n))return null;var o=a.length,s=r[n+1];return m["b"].pointAt(a[o-2],a[o-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",rt.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,a=0,o=[],s=this.get("curve");s&&(Object(w["each"])(s,(function(t,e){n=s[e+1],i=t.length,n&&(r+=m["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(w["each"])(s,(function(c,l){n=s[l+1],i=c.length,n&&(t=[],t[0]=a/r,e=m["b"].length(c[i-2],c[i-1],n[1],n[2],n[3],n[4],n[5],n[6]),a+=e||0,t[1]=a/r,o.push(t))})),this.set("tCache",o)):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,a=e[n-1].endTangent;t=[],a?(t.push([r[0]-a[0],r[1]-a[1]]),t.push([r[0],r[1]])):(t.push([i[0],i[1]]),t.push([r[0],r[1]]))}return t},e}(u),st=ot;function ct(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;o=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),m["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,a=[];Object(w["each"])(t,(function(o,s){t[s+1]&&(n=[],n[0]=r/e,i=m["c"].length(o[0],o[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(u),pt=ht,ft=n("af40");function dt(t,e,n,i,r,a,s){var c=r/2;return Object(o["e"])(t-c,e-c,n,r,a,s)||Object(o["e"])(t+n-c,e-c,r,i,a,s)||Object(o["e"])(t+c,e+i-c,n,r,a,s)||Object(o["e"])(t-c,e+c,r,i,a,s)}function gt(t,e,n,i,r,a,o,s){return x(t+r,e,t+n-r,e,a,o,s)||x(t+n,e+r,t+n,e+i-r,a,o,s)||x(t+n-r,e+i,t+r,e+i,a,o,s)||x(t,e+i-r,t,e+r,a,o,s)||J(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,a,o,s)||J(t+n-r,e+i-r,r,0,.5*Math.PI,a,o,s)||J(t+r,e+i-r,r,.5*Math.PI,Math.PI,a,o,s)||J(t+r,e+r,r,Math.PI,1.5*Math.PI,a,o,s)}var vt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),s=a.x,c=a.y,l=a.width,u=a.height,h=a.radius;if(h){var p=!1;return n&&(p=gt(s,c,l,u,h,r,t,e)),!p&&i&&(p=W(this,t,e)),p}var f=r/2;return i&&n?Object(o["e"])(s-f,c-f,l+f,u+f,t,e):i?Object(o["e"])(s,c,l,u,t,e):n?dt(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,a=e.height,o=e.radius;if(t.beginPath(),0===o)t.rect(n,i,r,a);else{var s=Object(ft["a"])(o),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+a-u),0!==u&&t.arc(n+r-u,i+a-u,u,0,Math.PI/2),t.lineTo(n+h,i+a),0!==h&&t.arc(n+h,i+a-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),yt=vt,bt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(a["assembleFont"])(t)},e.prototype._setText=function(t){var e=null;Object(o["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(),p=Object(a["getTextHeight"])(r.text,r.fontSize,r.lineHeight);Object(o["c"])(e,(function(e,r){i=l+r*(h+u)-p+u,"middle"===s&&(i+=p-u-(p-u)/2),"top"===s&&(i+=p-u),Object(o["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,a=this.get("textArr");if(a)this._drawTextArr(t,a,e);else{var s=n.text;Object(o["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,a=e.fillOpacity;this.isStroke()&&n>0&&(Object(o["i"])(r)||1===r||(t.globalAlpha=i),this.stroke(t)),this.isFill()&&(Object(o["i"])(a)||1===a?this.fill(t):(t.globalAlpha=a,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),mt=bt},"49a2":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return d}));var i=n("9ab4"),r=n("8937"),a=n("58e4"),o=n("62e3"),s=n("e474"),c=n("7b42"),l=n("618a");function u(t){var e=t.chart,n=t.options,i=n.data,r=void 0===i?[]:i,a=n.yField,o=n.maxSize,s=n.minSize,c=Object(l["c"])(r,r,{yField:a,maxSize:o,minSize:s});return e.data(c),t}function h(t){var e=t.chart,n=t.options,i=n.xField,l=n.yField,u=n.color,h=n.tooltip,p=n.label,f=n.shape,d=void 0===f?"funnel":f,g=n.funnelStyle,v=n.state,y=Object(s["a"])(h,[i,l]),b=y.fields,m=y.formatter;Object(a["a"])({chart:e,options:{type:"interval",xField:i,yField:c["c"],colorField:i,tooltipFields:Object(r["isArray"])(b)&&b.concat([c["d"],c["b"]]),mapping:{shape:d,tooltip:m,color:u,style:g},label:p,state:v}});var x=Object(o["e"])(t.chart,"interval");return x.adjust("symmetric"),t}function p(t){var e=t.chart,n=t.options,i=n.isTransposed;return e.coordinate({type:"rect",actions:i?[]:[["transpose"],["scale",1,-1]]}),t}function f(t){var e=t.options,n=t.chart,a=e.maxSize,o=Object(r["get"])(n,["geometries","0","dataArray"],[]),s=Object(r["get"])(n,["options","data","length"]),u=Object(r["map"])(o,(function(t){return Object(r["get"])(t,["0","nextPoints","0","x"])*s-.5})),h=function(t,e,n,r){var o=a-(a-t[c["c"]])/2;return Object(i["__assign"])(Object(i["__assign"])({},r),{start:[u[e-1]||e-.5,o],end:[u[e-1]||e-.5,o+.05]})};return Object(l["b"])(h)(t),t}function d(t){return Object(o["g"])(u,h,p,f)(t)}},"4c46":function(t,e,n){"use strict";var i=n("9ab4"),r=n("cc94"),a=n("c34d"),o=n("b4aa"),s=n("87d0"),c=n("62e3");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,a=Math.abs(t)%360;return a?360*r/a:r}function u(t,e,n){var r=[];return t.forEach((function(t){var a=r.find((function(n){return n[e]===t[e]}));a?a[n]+=t[n]||null:r.push(Object(i["__assign"])({},t))})),r}function h(t){var e=t.chart,n=t.options,i=n.barStyle,r=n.color,a=n.tooltip,s=n.colorField,l=n.type,u=n.xField,h=n.yField,p=n.data,f=Object(c["u"])(p,h);e.data(f);var d=Object(c["d"])({},t,{options:{tooltip:a,seriesField:s,interval:{style:i,color:r,shape:"line"===l?"line":"intervel"},minColumnWidth:n.minBarWidth,maxColumnWidth:n.maxBarWidth,columnBackground:n.barBackground}});return Object(o["c"])(d),"line"===l&&Object(o["e"])({chart:e,options:{xField:u,yField:h,seriesField:s,point:{shape:"circle",color:r}}}),t}function p(t){var e,n=t.options,i=n.yField,r=n.xField,o=n.data,s=n.isStack,h=n.isGroup,p=n.colorField,f=n.maxAngle,d=s&&!h&&p?u(o,r,i):o,g=Object(c["u"])(d,i);return Object(c["g"])(Object(a["g"])((e={},e[i]={min:0,max:l(f,i,g)},e)))(t)}function f(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:a,endAngle:o}}).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,a=n.yField,o=Object(c["e"])(e,"interval");if(r){var s=r.callback,l=Object(i["__rest"])(r,["callback"]);o.label({fields:[a],callback:s,cfg:Object(i["__assign"])(Object(i["__assign"])({},Object(c["A"])(l)),{type:"polar"})})}else o.label(!1);return t}function v(t){return Object(c["g"])(Object(s["a"])("barStyle"),h,p,d,f,a["c"],a["a"],a["k"],a["l"],a["d"],Object(a["b"])(),g)(t)}var y=Object(c["d"])({},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["__extends"])(e,t),e.getDefaultOptions=function(){return y},e.prototype.changeData=function(t){this.updateOption({data:t}),p({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 m})),n.d(e,"a",(function(){return j}));var i=n("9ab4"),r=n("8937"),a=n("c34d"),o=n("b4aa"),s=n("58e4"),c=n("87d0"),l=n("afaa"),u=n("62e3"),h=n("3cbb"),p=n("9e6a2"),f=n("888a");function d(t){var e=t.chart,n=t.options,r=n.data,a=n.angleField,s=n.colorField,c=n.color,l=n.pieStyle,h=n.shape,p=Object(u["u"])(r,a);if(Object(f["c"])(p,a)){var d="$$percentage$$";p=p.map((function(t){var e;return Object(i["__assign"])(Object(i["__assign"])({},t),(e={},e[d]=1/p.length,e))})),e.data(p);var g=Object(u["d"])({},t,{options:{xField:"1",yField:d,seriesField:s,isStack:!0,interval:{color:c,shape:h,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(o["c"])(g)}else{e.data(p);g=Object(u["d"])({},t,{options:{xField:"1",yField:a,seriesField:s,isStack:!0,interval:{color:c,shape:h,style:l},args:{zIndexReversed:!0,sortZIndex:!0}}});Object(o["c"])(g)}return t}function g(t){var e,n=t.chart,i=t.options,r=i.meta,a=i.colorField,o=Object(u["d"])({},r);return n.scale(o,(e={},e[a]={type:"cat"},e)),t}function v(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"theta",cfg:{radius:i,innerRadius:r,startAngle:a,endAngle:o}}),t}function y(t){var e=t.chart,n=t.options,a=n.label,o=n.colorField,s=n.angleField,c=e.geometries[0];if(a){var l=a.callback,h=Object(i["__rest"])(a,["callback"]),p=Object(u["A"])(h);if(p.content){var d=p.content;p.content=function(t,n,a){var c=t[o],l=t[s],h=e.getScaleByField(s),p=null===h||void 0===h?void 0:h.scale(l);return Object(r["isFunction"])(d)?d(Object(i["__assign"])(Object(i["__assign"])({},t),{percent:p}),n,a):Object(r["isString"])(d)?Object(u["y"])(d,{value:l,name:c,percentage:Object(r["isNumber"])(p)&&!Object(r["isNil"])(l)?(100*p).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["isArray"])(p.layout)?p.layout:[p.layout]:[];p.layout=(v?[{type:v}]:[]).concat(y),c.label({fields:o?[s,o]:[s],callback:l,cfg:Object(i["__assign"])(Object(i["__assign"])({},p),{offset:Object(f["a"])(p.type,p.offset),type:"pie"})})}else c.label(!1);return t}function b(t){var e=t.innerRadius,n=t.statistic,i=t.angleField,a=t.colorField,o=t.meta,s=t.locale,c=Object(l["a"])(s);if(e&&n){var p=Object(u["d"])({},h["a"].statistic,n),d=p.title,g=p.content;return!1!==d&&(d=Object(u["d"])({},{formatter:function(t){var e=t?t[a]:Object(r["isNil"])(d.content)?c.get(["statistic","total"]):d.content,n=Object(r["get"])(o,[a,"formatter"])||function(t){return t};return n(e)}},d)),!1!==g&&(g=Object(u["d"])({},{formatter:function(t,e){var n=t?t[i]:Object(f["b"])(e,i),a=Object(r["get"])(o,[i,"formatter"])||function(t){return t};return t||Object(r["isNil"])(g.content)?a(n):g.content}},g)),Object(u["d"])({},{statistic:{title:d,content:g}},t)}return t}function m(t){var e=t.chart,n=t.options,i=b(n),r=i.innerRadius,o=i.statistic;return e.getController("annotation").clear(!0),Object(u["g"])(Object(a["b"])())(t),r&&o&&Object(u["w"])(e,{statistic:o,plotType:"pie"}),t}function x(t){var e=t.chart,n=t.options,i=n.tooltip,a=n.colorField,o=n.angleField,c=n.data;if(!1===i)e.tooltip(i);else if(e.tooltip(Object(u["d"])({},i,{shared:!1})),Object(f["c"])(c,o)){var l=Object(r["get"])(i,"fields"),h=Object(r["get"])(i,"formatter");Object(r["isEmpty"])(Object(r["get"])(i,"fields"))&&(l=[a,o],h=h||function(t){return{name:t[a],value:Object(r["toString"])(t[o])}}),e.geometries[0].tooltip(l.join("*"),Object(s["b"])(l,h))}return t}function O(t){var e=t.chart,n=t.options,a=b(n),o=a.interactions,s=a.statistic,c=a.annotations;return Object(r["each"])(o,(function(t){var n,a;if(!1===t.enable)e.removeInteraction(t.type);else if("pie-statistic-active"===t.type){var o=[];(null===(n=t.cfg)||void 0===n?void 0:n.start)||(o=[{trigger:"element:mouseenter",action:p["a"]+":change",arg:{statistic:s,annotations:c}}]),Object(r["each"])(null===(a=t.cfg)||void 0===a?void 0:a.start,(function(t){o.push(Object(i["__assign"])(Object(i["__assign"])({},t),{arg:{statistic:s,annotations:c}}))})),e.interaction(t.type,Object(u["d"])({},t.cfg,{start:o}))}else e.interaction(t.type,t.cfg||{})})),t}function j(t){return Object(u["g"])(Object(c["a"])("pieStyle"),d,g,a["k"],v,a["d"],x,y,a["j"],m,O,a["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,a=void 0;try{for(var o,s=t[Symbol.iterator]();!(i=(o=s.next()).done);i=!0)if(n.push(o.value),e&&n.length===e)break}catch(c){r=!0,a=c}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw a}}return n}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e,n,i){t=t.filter((function(t,i){var r=e(t,i),a=n(t,i);return null!=r&&isFinite(r)&&null!=a&&isFinite(a)})),i&&t.sort((function(t,n){return e(t)-e(n)}));for(var r,a,o,s=t.length,c=new Float64Array(s),l=new Float64Array(s),u=0,h=0,p=0;pr&&(t.splice(i+1,0,p),n=!0)}return n}}function h(t,e,n,i){var r=i-t*t,a=Math.abs(r)<1e-24?0:(n-t*e)/r,o=e-a*t;return[o,a]}function p(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var a=0,c=0,l=0,p=0,f=0,d=0,g=t?+t[0]:1/0,v=t?+t[1]:-1/0;o(r,n,i,(function(e,n){var i=Math.log(n),r=e*n;++a,c+=(n-c)/a,p+=(r-p)/a,d+=(e*r-d)/a,l+=(n*i-l)/a,f+=(r*i-f)/a,t||(ev&&(v=e))}));var y=h(p/c,l/c,f/c,d/c),b=e(y,2),m=b[0],x=b[1];m=Math.exp(m);var O=function(t){return m*Math.exp(x*t)},j=u(g,v,O);return j.a=m,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 f(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var a=0,c=0,l=0,u=0,p=0,f=t?+t[0]:1/0,d=t?+t[1]:-1/0;o(r,n,i,(function(e,n){++a,c+=(e-c)/a,l+=(n-l)/a,u+=(e*n-u)/a,p+=(e*e-p)/a,t||(ed&&(d=e))}));var g=h(c,l,u,p),v=e(g,2),y=v[0],b=v[1],m=function(t){return b*t+y},x=[[f,m(f)],[d,m(d)]];return x.a=b,x.b=y,x.predict=m,x.rSquared=s(r,n,i,l,m),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 o=a(r,t,n,!0),s=e(o,4),c=s[0],l=s[1],u=s[2],p=s[3],f=c.length,y=Math.max(2,~~(i*f)),O=new Float64Array(f),j=new Float64Array(f),_=new Float64Array(f).fill(1),w=-1;++w<=g;){for(var C=[0,y-1],M=0;Mc[k]-S?A:k,E=0,T=0,P=0,I=0,B=0,L=1/Math.abs(c[F]-S||1),D=A;D<=k;++D){var R=c[D],N=l[D],z=b(Math.abs(S-R)*L)*_[D],Y=R*z;E+=z,T+=Y,P+=N*z,I+=N*Y,B+=R*Y}var G=h(T/E,P/E,I/E,B/E),V=e(G,2),X=V[0],H=V[1];O[M]=X+H*S,j[M]=Math.abs(l[M]-O[M]),m(c,M+1,C)}if(w===g)break;var W=d(j);if(Math.abs(W)=1?v:($=1-q*q)*$}return x(c,O,u,p)}return r.bandwidth=function(t){return arguments.length?(i=t,r):i},r.x=function(e){return arguments.length?(t=e,r):t},r.y=function(t){return arguments.length?(n=t,r):n},r}function b(t){return(t=1-t*t*t)*t*t}function m(t,e,n){var i=t[e],r=n[0],a=n[1]+1;if(!(a>=t.length))while(e>r&&t[a]-i<=i-t[r])n[0]=++r,n[1]=a,++a}function x(t,e,n,i){for(var r,a=t.length,o=[],s=0,c=0,l=[];sv&&(v=e))}));var b=h(l,p,f,d),m=e(b,2),x=m[0],O=m[1],j=function(t){return O*Math.log(t)/y+x},_=u(g,v,j);return _.a=O,_.b=x,_.predict=j,_.rSquared=s(a,n,i,p,j),_}return a.domain=function(e){return arguments.length?(t=e,a):t},a.x=function(t){return arguments.length?(n=t,a):n},a.y=function(t){return arguments.length?(i=t,a):i},a.base=function(t){return arguments.length?(r=t,a):r},a}function j(){var t,n=function(t){return t[0]},i=function(t){return t[1]};function r(r){var c,l,h,p,f=a(r,n,i),d=e(f,4),g=d[0],v=d[1],y=d[2],b=d[3],m=g.length,x=0,O=0,j=0,_=0,w=0;for(c=0;cA&&(A=e))}));var k=j-x*x,F=x*k-O*O,E=(w*x-_*O)/F,T=(_*k-w*O)/F,P=-E*x,I=function(t){return t-=y,E*t*t+T*t+P+b},B=u(S,A,I);return B.a=E,B.b=T-2*E*y,B.c=P-T*y+E*y*y+b,B.predict=I,B.rSquared=s(r,n,i,C,I),B}return r.domain=function(e){return arguments.length?(t=e,r):t},r.x=function(t){return arguments.length?(n=t,r):n},r.y=function(t){return arguments.length?(i=t,r):i},r}function _(){var t,n=function(t){return t[0]},i=function(t){return t[1]},r=3;function c(c){if(1===r){var l=f().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 p,d,g,v,y,b=a(c,n,i),m=e(b,4),x=m[0],O=m[1],_=m[2],M=m[3],S=x.length,A=[],k=[],F=r+1,E=0,T=0,P=t?+t[0]:1/0,I=t?+t[1]:-1/0;for(o(c,n,i,(function(e,n){++T,E+=(n-E)/T,t||(eI&&(I=e))})),p=0;p=0;--r)for(o=e[r],s=1,c[r]+=o,a=1;a<=r;++a)s*=(r+1-a)/a,c[r-a]+=o*Math.pow(n,a)*s;return c[0]+=i,c}function C(t){var e,n,i,r,a,o=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=o-1;n>=0;--n){for(a=0,i=n+1;iv&&(v=e))}));var y=h(c,l,p,f),b=e(y,2),m=b[0],x=b[1];m=Math.exp(m);var O=function(t){return m*Math.pow(t,x)},j=u(g,v,O);return j.a=m,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=p,t.regressionLinear=f,t.regressionLoess=y,t.regressionLog=O,t.regressionPoly=_,t.regressionPow=M,t.regressionQuad=j,Object.defineProperty(t,"__esModule",{value:!0})}))},"51d4":function(t,e,n){"use strict";var i=n("917c"),r=n("8937"),a=n("9f73");function o(t){var e=Object(r["get"])(t,["event","data","data"],{});return Object(r["isArray"])(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,a=i.y,o=e.center,s=o.x,c=o.y,l=e.getRadius()*n,u=Math.sqrt(Math.pow(s-r,2)+Math.pow(c-a,2));return u=1)throw new TypeError("Invalid nodePaddingRatio: it must be in range [0, 1)!");var r=i/(2*n),a=e.nodeWidthRatio;if(a<=0||a>=1)throw new TypeError("Invalid nodeWidthRatio: it must be in range (0, 1)!");var o=0;t.forEach((function(t){o+=t.value})),t.forEach((function(t){t.weight=t.value/o,t.width=t.weight*(1-i),t.height=a})),t.forEach((function(n,i){for(var o=0,s=i-1;s>=0;s--)o+=t[s].width+2*r;var c=n.minX=r+o,l=n.maxX=n.minX+n.width,u=n.minY=e.y-a/2,h=n.maxY=u+a;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 f(t,e,n){if(n.weight){var i={};Object(c["forIn"])(t,(function(t,e){i[e]=t.value})),e.forEach((function(e){var r=n.source(e),a=n.target(e),o=t[r],s=t[a];if(o&&s){var c=i[r],l=n.sourceWeight(e),u=o.minX+(o.value-c)/o.value*o.width,h=u+l/o.value*o.width;i[r]-=l;var p=i[a],f=n.targetWeight(e),d=s.minX+(s.value-p)/s.value*s.width,g=d+f/s.value*s.width;i[a]-=f;var v=n.y;e.x=[u,h,d,g],e.y=[v,v,v,v],e.source=o,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(c["assign"])({},l,t)}function g(t,e){var n=d(t),i={},r=e.nodes,a=e.links;r.forEach((function(t){var e=n.id(t);i[e]=t})),u(i,a,n),h(r,n);var o=p(r,n),s=f(i,a,n);return{nodes:o,links:s}}var v="x",y="y",b="name",m="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{offsetX:i,content:e}},labelEmit:!0,style:{fill:"#8c8c8c"}},tooltip:{showTitle:!1,showMarkers:!1,fields:["source","target","value","isNode"],showContent:function(t){return!Object(c["get"])(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,a=e.targetField,o=e.weightField,c=e.nodePaddingRatio,l=e.nodeWidthRatio,u=e.rawFields,h=void 0===u?[]:u,p=Object(s["z"])(n,r,a,o),f=g({weight:!0,nodePaddingRatio:c,nodeWidthRatio:l},p),d=f.nodes,v=f.links,y=d.map((function(t){return Object(i["__assign"])(Object(i["__assign"])({},Object(s["t"])(t,Object(i["__spreadArrays"])(["id","x","y","name"],h))),{isNode:!0})})),b=v.map((function(t){return Object(i["__assign"])(Object(i["__assign"])({source:t.source.name,target:t.target.name,name:t.source.name||t.target.name},Object(s["t"])(t,Object(i["__spreadArrays"])(["x","y","value"],h))),{isNode:!1})}));return Object(i["__assign"])(Object(i["__assign"])({},t),{ext:Object(i["__assign"])(Object(i["__assign"])({},t.ext),{chordData:{nodesData:y,edgesData:b}})})}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[b]={sync:"color"},e[m]={sync:"color"},e)),t}function _(t){var e=t.chart;return e.axis(!1),t}function w(t){var e=t.chart;return e.legend(!1),t}function C(t){var e=t.chart,n=t.options,i=n.tooltip;return e.tooltip(i),t}function M(t){var e=t.chart;return e.coordinate("polar").reflect("y"),t}function S(t){var e=t.chart,n=t.options,i=t.ext.chordData.nodesData,r=n.nodeStyle,a=n.label,s=n.tooltip,c=e.createView();return c.data(i),Object(o["f"])({chart:c,options:{xField:v,yField:y,seriesField:b,polygon:{style:r},label:a,tooltip:s}}),t}function A(t){var e=t.chart,n=t.options,i=t.ext.chordData.edgesData,r=n.edgeStyle,a=n.tooltip,s=e.createView();s.data(i);var c={xField:v,yField:y,seriesField:m,edge:{style:r,shape:"arc"},tooltip:a};return Object(o["b"])({chart:s,options:c}),t}function k(t){var e=t.chart,n=t.options,i=n.animation;return Object(s["b"])(e,i,Object(s["k"])(e)),t}function F(t){return Object(s["g"])(a["k"],O,M,j,_,w,C,A,S,a["c"],a["j"],k)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="chord",e}Object(i["__extends"])(e,t),e.getDefaultOptions=function(){return x},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return F}})(r["b"])},"538f4":function(t,e,n){"use strict";n.d(e,"b",(function(){return f})),n.d(e,"a",(function(){return v}));var i=n("9ab4"),r=n("8937"),a=n("c34d"),o=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,a=n.range,h=n.radius,p=n.innerRadius,f=n.startAngle,d=n.endAngle,g=n.axis,v=n.indicator,y=n.gaugeStyle,b=n.type,m=n.meter,x=a.color,O=a.width;if(v){var j=Object(u["a"])(i),_=e.createView({id:l["c"]});_.data(j),_.point().position(l["d"]+"*1").shape(v.shape||"gauge-indicator").customInfo({defaultColor:e.getTheme().defaultColor,indicator:v}),_.coordinate("polar",{startAngle:f,endAngle:d,radius:p*h}),_.axis(l["d"],g),_.scale(l["d"],Object(c["t"])(g,s["a"]))}var w=Object(u["b"])(i,n.range),C=e.createView({id:l["g"]});C.data(w);var M=Object(r["isString"])(x)?[x,l["a"]]:x,S=Object(o["c"])({chart:C,options:{xField:"1",yField:l["f"],seriesField:l["e"],rawFields:[l["d"]],isStack:!0,interval:{color:M,style:y,shape:"meter"===b?"meter-gauge":null},args:{zIndexReversed:!0,sortZIndex:!0},minColumnWidth:O,maxColumnWidth:O}}).ext,A=S.geometry;return A.customInfo({meter:m}),C.coordinate("polar",{innerRadius:p,radius:h,startAngle:f,endAngle:d}).transpose(),t}function p(t){var e;return Object(c["g"])(Object(a["g"])((e={range:{min:0,max:1,maxLimit:1,minLimit:0}},e[l["d"]]={},e)))(t)}function f(t,e){var n=t.chart,r=t.options,a=r.statistic,o=r.percent;if(n.getController("annotation").clear(!0),a){var s=a.content,l=void 0;s&&(l=Object(c["d"])({},{content:(100*o).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["__assign"])(Object(i["__assign"])({},a),{content:l})},{percent:o})}return e&&n.render(!0),t}function d(t){var e=t.chart,n=t.options,i=n.tooltip;return i?e.tooltip(Object(c["d"])({showTitle:!1,showMarkers:!1,containerTpl:'
    ',domStyles:{"g2-tooltip":{padding:"4px 8px",fontSize:"10px"}},customContent:function(t,e){var n=Object(r["get"])(e,[0,"data",l["d"]],0);return(100*n).toFixed(2)+"%"}},i)):e.tooltip(!1),t}function g(t){var e=t.chart;return e.legend(!1),t}function v(t){return Object(c["g"])(a["k"],a["a"],h,p,d,f,a["c"],Object(a["b"])(),g)(t)}},"53c8":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return l}));var i=n("4799");n.d(e,"Shape",(function(){return i}));var r=n("6855");for(var a in r)["default","Canvas","Group","Shape","getArcParams","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o=n("b182");n.d(e,"Canvas",(function(){return o["a"]}));var s=n("c2ad");n.d(e,"Group",(function(){return s["a"]}));var c=n("9c29");n.d(e,"getArcParams",(function(){return c["a"]}));var l="0.5.12"},"54ca":function(t,e,n){"use strict";n.d(e,"a",(function(){return K})),n.d(e,"b",(function(){return Q}));var i={};function r(t){return+t}function a(t){return t*t}function o(t){return t*(2-t)}function s(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function c(t){return t*t*t}function l(t){return--t*t*t+1}function u(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}n.r(i),n.d(i,"easeLinear",(function(){return r})),n.d(i,"easeQuad",(function(){return s})),n.d(i,"easeQuadIn",(function(){return a})),n.d(i,"easeQuadOut",(function(){return o})),n.d(i,"easeQuadInOut",(function(){return s})),n.d(i,"easeCubic",(function(){return u})),n.d(i,"easeCubicIn",(function(){return c})),n.d(i,"easeCubicOut",(function(){return l})),n.d(i,"easeCubicInOut",(function(){return u})),n.d(i,"easePoly",(function(){return d})),n.d(i,"easePolyIn",(function(){return p})),n.d(i,"easePolyOut",(function(){return f})),n.d(i,"easePolyInOut",(function(){return d})),n.d(i,"easeSin",(function(){return m})),n.d(i,"easeSinIn",(function(){return y})),n.d(i,"easeSinOut",(function(){return b})),n.d(i,"easeSinInOut",(function(){return m})),n.d(i,"easeExp",(function(){return _})),n.d(i,"easeExpIn",(function(){return O})),n.d(i,"easeExpOut",(function(){return j})),n.d(i,"easeExpInOut",(function(){return _})),n.d(i,"easeCircle",(function(){return M})),n.d(i,"easeCircleIn",(function(){return w})),n.d(i,"easeCircleOut",(function(){return C})),n.d(i,"easeCircleInOut",(function(){return M})),n.d(i,"easeBounce",(function(){return R})),n.d(i,"easeBounceIn",(function(){return D})),n.d(i,"easeBounceOut",(function(){return R})),n.d(i,"easeBounceInOut",(function(){return N})),n.d(i,"easeBack",(function(){return V})),n.d(i,"easeBackIn",(function(){return Y})),n.d(i,"easeBackOut",(function(){return G})),n.d(i,"easeBackInOut",(function(){return V})),n.d(i,"easeElastic",(function(){return $})),n.d(i,"easeElasticIn",(function(){return q})),n.d(i,"easeElasticOut",(function(){return $})),n.d(i,"easeElasticInOut",(function(){return U}));var h=3,p=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(h),f=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(h),d=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}(h),g=Math.PI,v=g/2;function y(t){return 1===+t?1:1-Math.cos(t*v)}function b(t){return Math.sin(t*v)}function m(t){return(1-Math.cos(g*t))/2}function x(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function O(t){return x(1-+t)}function j(t){return 1-x(t)}function _(t){return((t*=2)<=1?x(1-t):2-x(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)o?(i=(l+o-r)/(2*l),a=Math.sqrt(Math.max(0,o/l-i*i)),n.x=t.x-i*s-a*c,n.y=t.y-i*c+a*s):(i=(l+r-o)/(2*l),a=Math.sqrt(Math.max(0,r/l-i*i)),n.x=e.x+i*s-a*c,n.y=e.y+i*c+a*s)):(n.x=e.x+n.r,n.y=e.y)}function o(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,a=(e.y*n.r+n.y*e.r)/i;return r*r+a*a}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,p,f,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;a(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(f=3;f0,p=u>0;function f(t,e){var n=Object(r["get"])(a,[t]);function i(t){return Object(r["get"])(n,t)}var o={};return"x"===e?(Object(r["isNumber"])(l)&&(Object(r["isNumber"])(i("min"))||(o["min"]=h?0:2*l),Object(r["isNumber"])(i("max"))||(o["max"]=h?2*l:0)),o):(Object(r["isNumber"])(u)&&(Object(r["isNumber"])(i("min"))||(o["min"]=p?0:2*u),Object(r["isNumber"])(i("max"))||(o["max"]=p?2*u:0)),o)}return Object(i["__assign"])(Object(i["__assign"])({},a),(e={},e[o]=Object(i["__assign"])(Object(i["__assign"])({},a[o]),f(o,"x")),e[s]=Object(i["__assign"])(Object(i["__assign"])({},a[s]),f(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,o=!0,s=n[0],l=void 0,u=1;u0&&l<1){var d=p-h;f=d/o/(l/(1-l)+1-1/o)}for(var g=f/(1-l)*l,v=e.addGroup(),y=this.coordinate.getCenter(),b=this.coordinate.getRadius(),m=r["h"].getAngle(t,this.coordinate),x=m.startAngle,O=m.endAngle,j=x;j0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),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,a=i.shadowOffsetY,s=i.shadowBlur,c=i.shadowColor;(r||a||s||c)&&Object(o["b"])(this,t)},e.prototype.transform=function(t){var e=this.attr(),n=(t||e).matrix;n&&Object(o["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(),a=t+r.left,o=e+r.top,s=document.elementFromPoint(a,o);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}(a["AbstractShape"]),p=h,f=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["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["each"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(p),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["__extends"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");if(Object(f["each"])(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 a=i.childNodes,o=a.length-1;o>=0;o--)i.removeChild(a[o]);i.appendChild(r)}else i.innerHTML=r}else i.innerHTML=n["html"]},e}(p),y=v,b=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["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["each"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):l["b"][e]&&i.setAttribute(l["b"][e],t)}))},e}(p),m=b,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["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},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(f["each"])(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(f["isString"])(t))n.setAttribute("href",t);else if(t instanceof window.Image)e.width||(n.setAttribute("width",t.width),this.attr("width",t.width)),e.height||(n.setAttribute("height",t.height),this.attr("height",t.height)),n.setAttribute("href",t.src);else if(t instanceof HTMLElement&&Object(f["isString"])(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}(p),O=x,j=n("1183"),_=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["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["each"])(e||n,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var a=Object(f["isObject"])(e)?t.addArrow(n,l["b"][r]):t.getDefaultArrow(n,l["b"][r]);i.setAttribute(l["b"][r],"url(#"+a+")")}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,a=e.y2;return j["c"].pointAt(n,i,r,a,t)},e}(p),w=_,C={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"]]}},M={get:function(t){return C[t]},register:function(t,e){C[t]=e},remove:function(t){delete C[t]},getAll:function(){return C}},S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(r["__extends"])(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(f["isArray"])(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,a=e.symbol||"circle";return t=Object(f["isFunction"])(a)?a:M.get(a),t?t(n,i,r):null},e.symbolsFactory=M,e}(p),A=S,k=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["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(f["each"])(e||i,(function(e,a){if("path"===a&&Object(f["isArray"])(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===a||"endArrow"===a)if(e){var o=Object(f["isObject"])(e)?t.addArrow(i,l["b"][a]):t.getDefaultArrow(i,l["b"][a]);r.setAttribute(l["b"][a],"url(#"+o+")")}else r.removeAttribute(l["b"][a]);else l["b"][a]&&r.setAttribute(l["b"][a],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}(p),F=k,E=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["__extends"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["each"])(e||n,(function(t,e){"points"===e&&Object(f["isArray"])(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}(p),T=E,P=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["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},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(f["each"])(e||n,(function(t,e){"points"===e&&Object(f["isArray"])(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(f["isNil"])(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(f["each"])(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,a=[];Object(f["each"])(t,(function(o,s){t[s+1]&&(n=[],n[0]=r/e,i=j["c"].length(o[0],o[1],t[s+1][0],t[s+1][1]),r+=i,n[1]=r/e,a.push(n))})),this.set("tCache",a)}}},e.prototype.getStartTangent=function(){var t=this.attr().points,e=[];return e.push([t[1][0],t[1][1]]),e.push([t[0][0],t[0][1]]),e},e.prototype.getEndTangent=function(){var t=this.attr().points,e=t.length-1,n=[];return n.push([t[e-1][0],t[e-1][1]]),n.push([t[e][0],t[e][1]]),n},e}(p),I=P;function B(t){var e=0,n=0,i=0,r=0;return Object(f["isArray"])(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 L=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(r["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},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"),a=!1,o=["x","y","width","height","radius"];Object(f["each"])(e||i,(function(t,e){-1===o.indexOf(e)||a?-1===o.indexOf(e)&&l["b"][e]&&r.setAttribute(l["b"][e],t):(r.setAttribute("d",n._assembleRect(i)),a=!0)}))},e.prototype._assembleRect=function(t){var e=t.x,n=t.y,i=t.width,r=t.height,a=t.radius;if(!a)return"M "+e+","+n+" l "+i+",0 l 0,"+r+" l"+-i+" 0 z";var o=B(a);Object(f["isArray"])(a)?1===a.length?o.r1=o.r2=o.r3=o.r4=a[0]:2===a.length?(o.r1=o.r3=a[0],o.r2=o.r4=a[1]):3===a.length?(o.r1=a[0],o.r2=o.r4=a[1],o.r3=a[2]):(o.r1=a[0],o.r2=a[1],o.r3=a[2],o.r4=a[3]):o.r1=o.r2=o.r3=o.r4=a;var s=[["M "+(e+o.r1)+","+n],["l "+(i-o.r1-o.r2)+",0"],["a "+o.r2+","+o.r2+",0,0,1,"+o.r2+","+o.r2],["l 0,"+(r-o.r2-o.r3)],["a "+o.r3+","+o.r3+",0,0,1,"+-o.r3+","+o.r3],["l "+(o.r3+o.r4-i)+",0"],["a "+o.r4+","+o.r4+",0,0,1,"+-o.r4+","+-o.r4],["l 0,"+(o.r4+o.r1-r)],["a "+o.r1+","+o.r1+",0,0,1,"+o.r1+","+-o.r1],["z"]];return s.join(" ")},e}(p),D=L,R=n("7b46"),N=.3,z={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},Y={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"},V=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["__extends"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");this._setFont(),Object(f["each"])(e||i,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(o["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(R["a"])();r&&"firefox"===r.name?t.setAttribute("dominant-baseline",Y[n]||"alphabetic"):t.setAttribute("alignment-baseline",z[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,a=void 0===r?"bottom":r;if(t)if(~t.indexOf("\n")){var o=t.split("\n"),s=o.length-1,c="";Object(f["each"])(o,(function(t,e){0===e?"alphabetic"===a?c+=''+t+"":"top"===a?c+=''+t+"":"middle"===a?c+=''+t+"":"bottom"===a?c+=''+t+"":"hanging"===a&&(c+=''+t+""):c+=''+t+""})),e.innerHTML=c}else e.innerHTML=t;else e.innerHTML=""},e}(p),X=V},6928:function(t,e,n){"use strict";function i(t,e){var n=[],i=t[0],r=t[1],a=t[2],o=t[3],s=t[4],c=t[5],l=t[6],u=t[7],h=t[8],p=e[0],f=e[1],d=e[2],g=e[3],v=e[4],y=e[5],b=e[6],m=e[7],x=e[8];return n[0]=p*i+f*o+d*l,n[1]=p*r+f*s+d*u,n[2]=p*a+f*c+d*h,n[3]=g*i+v*o+y*l,n[4]=g*r+v*s+y*u,n[5]=g*a+v*c+y*h,n[6]=b*i+m*o+x*l,n[7]=b*r+m*s+x*u,n[8]=b*a+m*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 a(t){var e=[],n=t[0],i=t[1],r=t[2],a=t[3],o=t[4],s=t[5],c=t[6],l=t[7],u=t[8],h=u*o-s*l,p=-u*a+s*c,f=l*a-o*c,d=n*h+i*p+r*f;return d?(d=1/d,e[0]=h*d,e[1]=(-u*i+r*l)*d,e[2]=(s*i-r*o)*d,e[3]=p*d,e[4]=(u*n-r*c)*d,e[5]=(-s*n+r*a)*d,e[6]=f*d,e[7]=(-l*n+i*c)*d,e[8]=(o*n-i*a)*d,e):null}n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a}))},"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 b})),n.d(e,"b",(function(){return _})),n.d(e,"a",(function(){return w}));var r=function(){return this.eachAfter(i)},a=function(t,e){let n=-1;for(const i of this)t.call(e,i,++n,this);return this},o=function(t,e){var n,i,r=this,a=[r],o=-1;while(r=a.pop())if(t.call(e,r,++o,this),n=r.children)for(i=n.length-1;i>=0;--i)a.push(n[i]);return this},s=function(t,e){var n,i,r,a=this,o=[a],s=[],c=-1;while(a=o.pop())if(s.push(a),n=a.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=p(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 p(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 f=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,a=[r];do{t=a.reverse(),a=[];while(r=t.pop())if(yield r,e=r.children)for(n=0,i=e.length;n=0;--a)c.push(i=r[a]=new w(r[a])),i.parent=n,i.depth=n.depth+1;return s.eachBefore(_)}function m(){return b(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 _(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function w(t){this.data=t,this.depth=this.height=0,this.parent=null}w.prototype=b.prototype={constructor:w,count:r,each:a,eachAfter:s,eachBefore:o,find:c,sum:l,sort:u,path:h,ancestors:f,descendants:d,leaves:g,links:v,copy:m,[Symbol.iterator]:y}},"6f4b":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("9ab4"),r=n("8937"),a=n("3226");function o(t,e){return Object(r["map"])(t,(function(t){var n=t&&Object(i["__assign"])({},t);if(Object(r["isArray"])(e)&&n){var o=e[0],s=e[1],c=e[2],l=e[3];n[a["c"]]=n[o]<=n[s]?a["d"]:a["b"],n[a["e"]]=[n[o],n[s],n[c],n[l]]}return n}))}},7011:function(t,e,n){"use strict";var i=n("9ab4"),r=n("cc94"),a=n("23b9"),o=n("8937"),s=n("c34d"),c=n("b4aa"),l=n("62e3"),u=n("f45c"),h="ancestor-node",p="value",f="path",d=[f,a["c"],a["b"],a["a"],"name","depth","height"],g=Object(l["d"])({},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"),b=n("6bcb"),m={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(o["assign"])({},m,e);var n,i=e.as;if(!Object(o["isArray"])(i)||2!==i.length)throw new TypeError('Invalid as: it must be an array with 2 strings (e.g. [ "x", "y" ])!');try{n=Object(a["e"])(e)}catch(u){}var r=function(t){return y["a"]().size(e.size).round(e.round).padding(e.padding)(b["c"](t).sum((function(t){return Object(o["size"])(t.children)?e.ignoreParentValue?0:t[n]-Object(o["reduce"])(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(a["d"])(s)}var O=n("3736");function j(t){var e=t.data,n=t.colorField,r=t.rawFields,a=t.hierarchyConfig,s=void 0===a?{}:a,c=s.activeDepth,u={partition:x,treemap:O["a"]},p=t.seriesField,d=t.type||"partition",g=u[d](e,Object(i["__assign"])(Object(i["__assign"])({field:p||"value"},Object(o["omit"])(s,["activeDepth"])),{type:"hierarchy."+d,as:["x","y"]})),y=[];return g.forEach((function(t){var e,a,o,u,d,g;if(0===t.depth)return null;if(c>0&&t.depth>c)return null;var b=t.data.name,m=Object(i["__assign"])({},t);while(m.depth>1)b=(null===(a=m.parent.data)||void 0===a?void 0:a.name)+" / "+b,m=m.parent;var x=Object(i["__assign"])(Object(i["__assign"])(Object(i["__assign"])({},Object(l["t"])(t.data,Object(i["__spreadArrays"])(r||[],[s.field]))),(e={},e[f]=b,e[h]=m.data.name,e)),t);p&&(x[p]=t.data[p]||(null===(u=null===(o=t.parent)||void 0===o?void 0:o.data)||void 0===u?void 0:u[p])),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 _(t){var e,n=t.chart,r=t.options,a=r.color,s=r.colorField,u=void 0===s?h:s,p=r.sunburstStyle,f=r.rawFields,g=void 0===f?[]:f,v=j(r);return n.data(v),p&&(e=function(t){return Object(l["d"])({},{fillOpacity:Math.pow(.85,t.depth)},Object(o["isFunction"])(p)?p(t):p)}),Object(c["f"])(Object(l["d"])({},t,{options:{xField:"x",yField:"y",seriesField:u,rawFields:Object(o["uniq"])(Object(i["__spreadArrays"])(d,g)),polygon:{color:a,style:e}}})),t}function w(t){var e=t.chart;return e.axis(!1),t}function C(t){var e=t.chart,n=t.options,r=n.label,a=Object(l["e"])(e,"polygon");if(r){var o=r.fields,s=void 0===o?["name"]:o,c=r.callback,u=Object(i["__rest"])(r,["fields","callback"]);a.label({fields:s,callback:c,cfg:Object(l["A"])(u)})}else a.label(!1);return t}function M(t){var e=t.chart,n=t.options,i=n.innerRadius,r=n.radius,a=n.reflect,o=e.coordinate({type:"polar",cfg:{innerRadius:i,radius:r}});return a&&o.reflect(a),t}function S(t){var e,n=t.options,i=n.hierarchyConfig,r=n.meta;return Object(l["g"])(Object(s["g"])({},(e={},e[p]=Object(o["get"])(r,Object(o["get"])(i,["field"],"value")),e)))(t)}function A(t){var e=t.chart,n=t.options,r=n.tooltip;if(!1===r)e.tooltip(!1);else{var a=r;Object(o["get"])(r,"fields")||(a=Object(l["d"])({},{customItems:function(t){return t.map((function(t){var n=Object(o["get"])(e.getOptions(),"scales"),r=Object(o["get"])(n,[f,"formatter"],(function(t){return t})),a=Object(o["get"])(n,[p,"formatter"],(function(t){return t}));return Object(i["__assign"])(Object(i["__assign"])({},t),{name:r(t.data[f]),value:a(t.data.value)})}))}},a)),e.tooltip(a)}return t}function k(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["d"])({},t,{interactions:Object(i["__spreadArrays"])(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:j}}])}):t}function F(t){var e=t.chart,n=t.options,i=n.drilldown;return Object(s["c"])({chart:e,options:k(n)}),(null===i||void 0===i?void 0:i.enabled)&&(e.appendPadding=Object(u["a"])(e.appendPadding,Object(o["get"])(i,["breadCrumb","position"]))),t}function E(t){return Object(l["g"])(s["k"],Object(s["f"])("sunburstStyle"),_,w,S,s["d"],M,A,C,F,s["a"],Object(s["b"])())(t)}n("51d4"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="sunburst",e}Object(i["__extends"])(e,t),e.getDefaultOptions=function(){return g},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return E},e.SUNBURST_ANCESTOR_FIELD=h,e.SUNBURST_PATH_FIELD=f,e.NODE_ANCESTORS_FIELD=a["b"]}(r["b"])},"70cc":function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n("c34d"),r=n("b4aa"),a=n("9ff2"),o=n("62e3"),s=n("3226"),c=n("6f4b");function l(t){var e=t.chart,n=t.options,i=n.yField,a=n.data,l=n.risingFill,u=n.fallingFill,h=n.tooltip,p=n.stockStyle;e.data(Object(c["a"])(a,i));var f=h;return!1!==f&&(f=Object(o["d"])({},{fields:i},f)),Object(r["g"])(Object(o["d"])({},t,{options:{schema:{shape:"candle",color:[l,u],style:p},yField:s["e"],seriesField:s["c"],rawFields:i,tooltip:f}})),t}function u(t){var e,n,i=t.chart,r=t.options,c=r.meta,l=r.xAxis,u=r.yAxis,h=r.xField,p=(e={},e[h]={type:"timeCat",tickCount:6},e[s["c"]]={values:[s["d"],s["b"]]},e),f=Object(o["d"])(p,c,(n={},n[h]=Object(o["t"])(l,a["a"]),n[s["e"]]=Object(o["t"])(u,a["a"]),n));return i.scale(f),t}function h(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField;return!1===i?e.axis(a,!1):e.axis(a,i),!1===r?e.axis(s["e"],!1):e.axis(s["e"],r),t}function p(t){var e=t.chart,n=t.options,i=n.tooltip;return!1!==i?e.tooltip(i):e.tooltip(!1),t}function f(t){var e=t.chart,n=t.options,i=n.legend;return i?e.legend(s["c"],i):!1===i&&e.legend(!1),t}function d(t){Object(o["g"])(i["k"],l,u,h,p,f,i["c"],i["a"],Object(i["b"])(),i["i"])(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 a})),n.d(e,"e",(function(){return o})),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 a(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function o(t,e,n,i,r,a){return r>=t&&r<=t+n&&a>=e&&a<=e+i}function s(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxYe)n.insertBefore(t,r);else if(a",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(o["b"])(e,n,t.clientWidth,t.clientHeight)},e.prototype.clear=function(){var t=this.get("container");Object(o["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(a["isNil"])(t)){t=this.createDom();var e=this.get("parent");Object(a["isString"])(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.get("containerId")&&t.setAttribute("id",this.get("containerId")),this.set("container",t)}else Object(a["isString"])(t)&&(t=document.getElementById(t),this.set("container",t));this.get("parent")||this.set("parent",t.parentNode)},e.prototype.resetStyles=function(){var t=this.get("domStyles"),e=this.get("defaultStyles");t=t?Object(a["deepMix"])({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(o["h"])(e,n)){var i=t[n];Object(r["e"])(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){Object(a["each"])(e,(function(e,n){var i=t.getElementsByClassName(n);Object(a["each"])(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(a["hasKey"])(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("9ab4"),r=n("cc94"),a=n("8937"),o=n("c34d"),s=n("28c6"),c=n("87d0"),l=n("62e3"),u=n("f45c"),h=n("9f73"),p=n("3736");function f(t,e){if(Object(a["isArray"])(t))return t.find((function(t){return t.type===e}))}function d(t,e){var n=f(t,e);return n&&!1!==n.enable}function g(t){var e=t.interactions,n=t.drilldown;return Object(a["get"])(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,o=t.hierarchyConfig,s=Object(p["a"])(e,Object(i["__assign"])(Object(i["__assign"])({},o),{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(a["isArray"])(e.path)?s.concat(e.path.slice(1)):s,u=Object.assign({},t.data,Object(i["__assign"])({x:t.x,y:t.y,depth:t.depth,value:t.value,path:l},t));if(!t.data[n]&&t.parent){var p=t.ancestors().find((function(t){return t.data[n]}));u[n]=null===p||void 0===p?void 0:p.data[n]}else u[n]=t.data[n];u[h["b"]]={hierarchyConfig:o,colorField:n,enableDrillDown:r},c.push(u)})),c}function b(t){var e=t.options,n=e.colorField;return Object(l["d"])({options:{rawFields:["value"],tooltip:{fields:["name","value",n,"path"],formatter:function(t){return{name:t.name,value:t.value}}}}},t)}function m(t){var e=t.chart,n=t.options,i=n.color,r=n.colorField,a=n.rectStyle,o=n.hierarchyConfig,c=n.rawFields,u=y({data:n.data,colorField:n.colorField,enableDrillDown:g(n),hierarchyConfig:o});return e.data(u),Object(s["a"])(Object(l["d"])({},t,{options:{xField:"x",yField:"y",seriesField:r,rawFields:c,polygon:{color:i,style:a}}})),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,a=g(t);return a?Object(l["d"])({},t,{interactions:Object(i["__spreadArrays"])(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(o["c"])({chart:e,options:O(n)});var s=f(i,"view-zoom");s&&(!1!==s.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(a["get"])(r,["breadCrumb","position"]))),t}function _(t){return Object(l["g"])(b,o["k"],Object(c["a"])("rectStyle"),m,x,o["d"],o["l"],j,o["a"],Object(o["b"])())(t)}var w={colorField:"name",rectStyle:{lineWidth:1,stroke:"#fff"},hierarchyConfig:{tile:"treemapSquarify"},label:{fields:["name"],layout:{type:"limit-in-shape"}},tooltip:{showMarkers:!1,showTitle:!1},drilldown:{enabled:!1,breadCrumb:{position:"bottom-left",rootText:"初始",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["__extends"])(e,t),e.getDefaultOptions=function(){return w},e.prototype.changeData=function(t){var e=this.options,n=e.colorField,i=e.interactions,r=e.hierarchyConfig;this.updateOption({data:t});var a=y({data:t,colorField:n,enableDrillDown:d(i,"treemap-drill-down"),hierarchyConfig:r});this.chart.changeData(a),v(this.chart)},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return _}}(r["b"])},"7b42":function(t,e,n){"use strict";var i;n.d(e,"d",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"b",(function(){return o})),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$$",a="$$mappingValue$$",o="$$conversion$$",s="$$totalPercentage$$",c="$$x$$",l="$$y$$",u={appendPadding:[0,80],minSize:0,maxSize:1,meta:(i={},i[a]={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,a=e.length;rp&&(i=[p,h],h=i[0],p=i[1],a=[n,e],e=a[0],n=a[1],f=!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-p-l?{x:p-u/2-l,textAlign:"right"}:{x:p+u/2+l,textAlign:"left"};return f?[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}(a["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,a,o,s;function c(){r=document.createElement("table"),a=document.createElement("tr"),o=/^\s*<(\w+|!)[^>]*>/,s={tr:document.createElement("tbody"),tbody:r,thead:r,tfoot:r,td:a,th:a,"*":document.createElement("div")}}function l(t){r||c();var e=o.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t="string"===typeof t?t.replace(/(^\s*)|(\s*$)/g,""):t,n.innerHTML=""+t;var i=n.childNodes[0];return i&&n.contains(i)&&n.removeChild(i),i}function 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 p(t,e){var n=h(t,e),i=parseFloat(u(t,"borderTopWidth"))||0,r=parseFloat(u(t,"paddingTop"))||0,a=parseFloat(u(t,"paddingBottom"))||0,o=parseFloat(u(t,"borderBottomWidth"))||0,s=parseFloat(u(t,"marginTop"))||0,c=parseFloat(u(t,"marginBottom"))||0;return n+i+o+r+a+s+c}function f(t,e){var n=u(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)}function d(t,e){var n=f(t,e),i=parseFloat(u(t,"borderLeftWidth"))||0,r=parseFloat(u(t,"paddingLeft"))||0,a=parseFloat(u(t,"paddingRight"))||0,o=parseFloat(u(t,"borderRightWidth"))||0,s=parseFloat(u(t,"marginRight"))||0,c=parseFloat(u(t,"marginLeft"))||0;return n+i+o+r+a+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 p})),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 z})),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 b})),n.d(i,"ellipsisHead",(function(){return m})),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 A})),n.d(r,"reserveFirst",(function(){return k})),n.d(r,"reserveLast",(function(){return F})),n.d(r,"reserveBoth",(function(){return E})),n.d(r,"equidistance",(function(){return T})),n.d(r,"equidistanceWithReverseBoth",(function(){return P}));var a={};n.r(a),n.d(a,"getDefault",(function(){return L})),n.d(a,"fixedAngle",(function(){return D})),n.d(a,"unfixedAngle",(function(){return R}));var o={};n.r(o),n.d(o,"autoHide",(function(){return r})),n.d(o,"autoRotate",(function(){return a})),n.d(o,"autoEllipsis",(function(){return i}));var s=n("9ab4"),c=n("e897"),l=n("8937"),u=n("31e6"),h=n("8ea8"),p=n("9778"),f=n("2f5e"),d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["__assign"])(Object(s["__assign"])({},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:f["a"].lineColor}},tickLine:{style:{lineWidth:1,stroke:f["a"].lineColor},alignTick:!0,length:5,displayWithLabel:!0},subTickLine:{style:{lineWidth:1,stroke:f["a"].lineColor},count:4,length:2},label:{autoRotate:!0,autoHide:!1,autoEllipsis:!1,style:{fontSize:12,fill:f["a"].textColor,fontFamily:f["a"].fontFamily,fontWeight:"normal"},offset:10,offsetX:0,offsetY:0},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:f["a"].textColor,textBaseline:"middle",fontFamily:f["a"].fontFamily,textAlign:"center"},iconStyle:{fill:f["a"].descriptionIconFill,stroke:f["a"].descriptionIconStroke},description:""},tickStates:{active:{labelStyle:{fontWeight:500},tickLineStyle:{lineWidth:2}},inactive:{labelStyle:{fill:f["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["mix"])(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["each"])(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(l["each"])(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(l["filter"])(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["isNumberEqual"])(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["isNumberEqual"])(t[1],0)?e="middle":t[1]>0?e="top":t[1]<0&&(e="bottom"),e},e.prototype.processOverlap=function(t){},e.prototype.drawLine=function(t){var e=this.getLinePath(),n=this.get("line");this.addShape(t,{type:"path",id:this.getElementId("line"),name:"axis-line",attrs:Object(l["mix"])({path:e},n.style)})},e.prototype.getTickLineItems=function(t){var e=this,n=[],i=this.get("tickLine"),r=i.alignTick,a=i.length,o=1,s=t.length;return s>=2&&(o=t[1].value-t[0].value),Object(l["each"])(t,(function(t){var i=t.point;r||(i=e.getTickPoint(t.value-o/2));var s=e.getSidePoint(i,a);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 a=0;a0){var n=Object(l["size"])(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,a=i.offsetX,o=i.offsetY,s=i.rotate,c=i.formatter,u=this.getSidePoint(t.point,r),p=this.getSideVector(r,u),f=c?c(t.name,t,e):t.name,d=i.style;d=Object(l["isFunction"])(d)?Object(l["get"])(this.get("theme"),["label","style"],{}):d;var g=Object(l["mix"])({x:u.x+a,y:u.y+o,text:f,textAlign:this.getTextAnchor(p),textBaseline:this.getTextBaseline(p)},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["each"])(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(),a=Object(l["get"])(this.get("theme"),["label","style"],{}),o=this.get("label"),s=o.style,c=o.formatter;if(Object(l["isFunction"])(s)){var u=r.map((function(t){return Object(l["get"])(t.get("delegateObject"),"tick")}));Object(l["each"])(r,(function(t,e){var n=t.get("delegateObject").tick,i=c?c(n.name,n,e):n.name,r=Object(l["mix"])({},a,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,a=void 0===r?0:r,o=t.autoRotate,s=e.fontSize,u=.5;"start"===n?u=0:"end"===n&&(u=1);var p=this.getTickPoint(u),f=this.getSidePoint(p,i||a+s/2),d=Object(l["mix"])({x:f.x,y:f.y,text:t.text},e),g=t.rotate,v=g;if(Object(l["isNil"])(g)&&o){var y=this.getAxisVector(p),b=[1,0];v=c["ext"].angleTo(y,b,!0)}if(v){var m=Object(h["e"])(f,v);d.matrix=m}return d},e.prototype.drawTitle=function(t){var e,n=this.getTitleAttrs(),i=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:n});(null===(e=this.get("title"))||void 0===e?void 0:e.description)&&this.drawDescriptionIcon(t,i,n.matrix)},e.prototype.drawDescriptionIcon=function(t,e,n){var i=this.addGroup(t,{name:"axis-description",id:this.getElementById("description")}),r=e.getBBox(),a=r.maxX,o=r.maxY,c=r.height,l=this.get("title").iconStyle,u=4,h=c/2,p=h/6,f=a+u,d=o-c/2,g=[f+h,d-h],v=g[0],y=g[1],b=[v+h,y+h],m=b[0],x=b[1],O=[v,x+h],j=O[0],_=O[1],w=[f,y+h],C=w[0],M=w[1],S=[f+h,d-c/4],A=S[0],k=S[1],F=[A,k+p],E=F[0],T=F[1],P=[E,T+p],I=P[0],B=P[1],L=[I,B+3*h/4],D=L[0],R=L[1];this.addShape(i,{type:"path",id:this.getElementId("title-description-icon"),name:"axis-title-description-icon",attrs:Object(s["__assign"])({path:[["M",v,y],["A",h,h,0,0,1,m,x],["A",h,h,0,0,1,j,_],["A",h,h,0,0,1,C,M],["A",h,h,0,0,1,v,y],["M",A,k],["L",E,T],["M",I,B],["L",D,R]],lineWidth:p,matrix:n},l)}),this.addShape(i,{type:"rect",id:this.getElementId("title-description-rect"),name:"axis-title-description-rect",attrs:{x:f,y:d-c/2,width:c,height:c,stroke:"#000",fill:"#000",opacity:0,matrix:n,cursor:"pointer"}})},e.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var i=this.get("tickStates"),r=this.getElementId("label-"+t.id),a=e.findById(r);if(a){var o=Object(p["a"])(t,"label",i);o&&a.attr(o)}var s=this.getElementId("tickline-"+t.id),c=e.findById(s);if(c){var l=Object(p["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),a=this.get("tickLine"),o=this.getElementByLocalId("tickline-"+t.id);if(e.length){if(r){var s=Object(p["a"])(t,"label",n);s&&r.attr(s)}if(o){var c=Object(p["a"])(t,"tickLine",n);c&&o.attr(c)}}else r&&r.attr(i.style),o&&o.attr(a.style)},e}(u["a"]),g=d,v=n("060b");function y(t,e,n,i){var r=e.getChildren(),a=!1;return Object(l["each"])(r,(function(e){var r=Object(v["a"])(t,e,n,i);a=a||r})),a}function b(){return x}function m(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 _(t){var e=t.attr("matrix");return e&&1!==e[0]}function w(t){var e=_(t)?Object(h["d"])(t.attr("matrix")):0;return e%360}function C(t,e,n,i){var r=!1,a=w(e),o=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(a));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>o:s.height/c+i>o}else{c=Math.abs(Math.sin(a));r=Object(j["i"])(c,0,Math.PI/180)?s.width+i>o:s.height/c+i>o}return r}function M(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,a=e.getChildren().slice().filter((function(t){return t.get("visible")}));if(!a.length)return!1;var o=!1;n&&a.reverse();for(var s=a.length,c=a[0],l=c,u=1;u1){p=Math.ceil(p);for(var g=0;g2){var o=r[0],s=r[r.length-1];o.get("visible")||(o.show(),M(t,e,!1,i)&&(a=!0)),s.get("visible")||(s.show(),M(t,e,!0,i)&&(a=!0))}return a}function I(t,e){Object(l["each"])(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 B(t,e,n,i){var r=e.getChildren();if(!r.length)return!1;if(!t&&r.length<2)return!1;var a=Object(v["b"])(r),o=!1;if(t)o=!!n&&a>n;else{var s=Math.abs(r[1].attr("x")-r[0].attr("x"));o=a>s}if(o){var c=i(n,a);I(r,c)}return o}function L(){return D}function D(t,e,n,i){return B(t,e,n,(function(){return Object(l["isNumber"])(i)?i:t?f["a"].verticalAxisRotate:f["a"].horizontalAxisRotate}))}function R(t,e,n){return B(t,e,n,(function(e,n){if(!e)return t?f["a"].verticalAxisRotate:f["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 N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["__assign"])(Object(s["__assign"])({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),i=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,n.x,i.x),a=Math.min(e.y,n.y,i.y),o=Math.max(e.x,n.x,i.maxX),s=Math.max(e.y,n.y,i.maxY);return{x:r,y:a,minX:r,minY:a,maxX:o,maxY:s,width:o-r,height:s-a}},e.prototype.isVertical=function(){var t=this.get("start"),e=this.get("end");return Object(l["isNumberEqual"])(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(l["isNumberEqual"])(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,a=i.y-n.y;return{x:n.x+r*t,y:n.y+a*t}},e.prototype.getSideVector=function(t){var e=this.getAxisVector(),n=c["vec2"].normalize([0,0],e),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return c["vec2"].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"),a=this.get("title"),o=this.get("verticalLimitLength"),s=r.offset,c=o,u=0,h=0;a&&(u=a.style.fontSize,h=a.spacing),c&&(c=c-s-h-u);var p=this.get("overlapOrder");if(Object(l["each"])(p,(function(n){r[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,r[n],t,c)})),a&&Object(l["isNil"])(a.offset)){var f=t.getCanvasBBox(),d=n?f.width:f.height;a.offset=s+d+h+u/2}}},e.prototype.canProcessOverlap=function(t){var e=this.get("label");return"autoRotate"!==t||Object(l["isNil"])(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,a=this.isVertical(),s=!1,c=o[t];if(!0===e){this.get("label");s=c.getDefault()(a,n,i)}else if(Object(l["isFunction"])(e))s=e(a,n,i);else if(Object(l["isObject"])(e)){var u=e;c[u.type]&&(s=c[u.type](a,n,i,u.cfg))}else c[e]&&(s=c[e](a,n,i));if("autoRotate"===t){if(s){var h=n.getChildren(),p=this.get("verticalFactor");Object(l["each"])(h,(function(t){var e=t.attr("textAlign");if("center"===e){var n=p>0?"end":"start";t.attr("textAlign",n)}}))}}else if("autoHide"===t){var f=n.getChildren().slice(0);Object(l["each"])(f,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),z=N,Y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["__assign"])(Object(s["__assign"])({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,a=this.get("startAngle"),o=this.get("endAngle"),s=[];if(Math.abs(o-a)===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(a),l=this.getCirclePoint(o),u=Math.abs(o-a)>Math.PI?1:0,h=a>o?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"),a=c["vec2"].length(i);return c["vec2"].scale(i,i,r*t/a),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["isNil"])(e.rotate)},e.prototype.processOverlap=function(t){var e=this,n=this.get("label"),i=this.get("title"),r=this.get("verticalLimitLength"),a=n.offset,o=r,s=0,c=0;i&&(s=i.style.fontSize,c=i.spacing),o&&(o=o-a-c-s);var u=this.get("overlapOrder");if(Object(l["each"])(u,(function(i){n[i]&&e.canProcessOverlap(i)&&e.autoProcessOverlap(i,n[i],t,o)})),i&&Object(l["isNil"])(i.offset)){var h=t.getCanvasBBox().height;i.offset=a+h+c+s/2}},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,a=!1,s=o[t];if(i>0)if(!0===e)a=s.getDefault()(!1,n,i);else if(Object(l["isFunction"])(e))a=e(!1,n,i);else if(Object(l["isObject"])(e)){var c=e;s[c.type]&&(a=s[c.type](!1,n,i,c.cfg))}else s[e]&&(a=s[e](!1,n,i));if("autoRotate"===t){if(a){var u=n.getChildren(),h=this.get("verticalFactor");Object(l["each"])(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 p=n.getChildren().slice(0);Object(l["each"])(p,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),G=Y},"7eff":function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));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 a(t){return Math.ceil(Math.log(t.length)/Math.LN2)+1}function o(t,e,n,o,s){var c=Object(i["clone"])(t);Object(i["sortBy"])(c,e);var l=Object(i["valuesOfKey"])(c,e),u=Object(i["getRange"])(l),h=u.max-u.min,p=n;if(!n&&o&&(p=o>1?h/(o-1):u.max),!n&&!o){var f=a(l);p=h/f}var d={},g=Object(i["groupBy"])(c,s);Object(i["isEmpty"])(g)?Object(i["each"])(c,(function(t){var n=t[e],a=r(n,p,o),s=a[0]+"-"+a[1];Object(i["hasKey"])(d,s)||(d[s]={range:a,count:0}),d[s].count+=1})):Object.keys(g).forEach((function(t){Object(i["each"])(g[t],(function(n){var a=n[e],c=r(a,p,o),l=c[0]+"-"+c[1],u=l+"-"+t;Object(i["hasKey"])(d,u)||(d[u]={range:c,count:0},d[u][s]=t),d[u].count+=1}))}));var v=[];return Object(i["each"])(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)},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["isString"])(e)&&e.endsWith("%")?.01*parseFloat(e)<0?n:e:e>0?e:n;default:return e}}function s(t,e){return Object(i["every"])(Object(r["u"])(t,e),(function(t){return 0===t[e]}))}},8944:function(t,e){},"8ea8":function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return o})),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 a(t,e,n){if(void 0===n&&(n=r),!e)return null;var a=i["ext"].transform(n,[["t",-t.x,-t.y],["r",e],["t",t.x,t.y]]);return a}function o(t,e){return t.x||t.y?i["ext"].transform(e||r,[["t",t.x,t.y]]):null}function s(t){var e=[1,0,0],n=[0,0,0];return i["vec3"].transformMat3(n,e,t),Math.atan2(n[1],n[0])}function c(t,e){var n=[0,0];return i["vec2"].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]),a=c(t,[e.maxX,e.maxY]),o=Math.min(n[0],i[0],r[0],a[0]),s=Math.max(n[0],i[0],r[0],a[0]),l=Math.min(n[1],i[1],r[1],a[1]),u=Math.max(n[1],i[1],r[1],a[1]);return{x:o,y:l,minX:o,minY:l,maxX:s,maxY:u,width:s-o,height:u-l}}function u(t,e,n,i){if(e){var r=a({x:n,y:i},e,t.getMatrix());t.setMatrix(r)}}function h(t,e,n){var i=o({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 a=function(t){var e=void 0,n=[],r=(0,i["default"])((function(){n.forEach((function(e){e(t)}))})),a=function(){var e=new ResizeObserver(r);return e.observe(t),r(),e},o=function(t){e||(e=a()),-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:o,destroy:s,unbind:c}};e.createSensor=a},"917c":function(t,e,n){"use strict";n.d(e,"i",(function(){return c})),n.d(e,"b",(function(){return Cu})),n.d(e,"c",(function(){return Pi})),n.d(e,"d",(function(){return _i})),n.d(e,"g",(function(){return Di})),n.d(e,"e",(function(){return kr})),n.d(e,"a",(function(){return le})),n.d(e,"f",(function(){return le})),n.d(e,"m",(function(){return yi})),n.d(e,"p",(function(){return sr})),n.d(e,"n",(function(){return tr})),n.d(e,"o",(function(){return Dn})),n.d(e,"l",(function(){return ge})),n.d(e,"j",(function(){return de})),n.d(e,"k",(function(){return Kn})),n.d(e,"h",(function(){return ta}));var i,r,a,o=n("9ab4"),s=n("8937");(function(t){t["FORE"]="fore",t["MID"]="mid",t["BG"]="bg"})(i||(i={})),function(t){t["TOP"]="top",t["TOP_LEFT"]="top-left",t["TOP_RIGHT"]="top-right",t["RIGHT"]="right",t["RIGHT_TOP"]="right-top",t["RIGHT_BOTTOM"]="right-bottom",t["LEFT"]="left",t["LEFT_TOP"]="left-top",t["LEFT_BOTTOM"]="left-bottom",t["BOTTOM"]="bottom",t["BOTTOM_LEFT"]="bottom-left",t["BOTTOM_RIGHT"]="bottom-right",t["RADIUS"]="radius",t["CIRCLE"]="circle",t["NONE"]="none"}(r||(r={})),function(t){t["AXIS"]="axis",t["GRID"]="grid",t["LEGEND"]="legend",t["TOOLTIP"]="tooltip",t["ANNOTATION"]="annotation",t["SLIDER"]="slider",t["SCROLLBAR"]="scrollbar",t["OTHER"]="other"}(a||(a={}));var c,l,u,h,p={FORE:3,MID:2,BG:1};(function(t){t["BEFORE_RENDER"]="beforerender",t["AFTER_RENDER"]="afterrender",t["BEFORE_PAINT"]="beforepaint",t["AFTER_PAINT"]="afterpaint",t["BEFORE_CHANGE_DATA"]="beforechangedata",t["AFTER_CHANGE_DATA"]="afterchangedata",t["BEFORE_CLEAR"]="beforeclear",t["AFTER_CLEAR"]="afterclear",t["BEFORE_DESTROY"]="beforedestroy",t["BEFORE_CHANGE_SIZE"]="beforechangesize",t["AFTER_CHANGE_SIZE"]="afterchangesize"})(c||(c={})),function(t){t["BEFORE_DRAW_ANIMATE"]="beforeanimate",t["AFTER_DRAW_ANIMATE"]="afteranimate",t["BEFORE_RENDER_LABEL"]="beforerenderlabel",t["AFTER_RENDER_LABEL"]="afterrenderlabel"}(l||(l={})),function(t){t["MOUSE_ENTER"]="plot:mouseenter",t["MOUSE_DOWN"]="plot:mousedown",t["MOUSE_MOVE"]="plot:mousemove",t["MOUSE_UP"]="plot:mouseup",t["MOUSE_LEAVE"]="plot:mouseleave",t["TOUCH_START"]="plot:touchstart",t["TOUCH_MOVE"]="plot:touchmove",t["TOUCH_END"]="plot:touchend",t["TOUCH_CANCEL"]="plot:touchcancel",t["CLICK"]="plot:click",t["DBLCLICK"]="plot:dblclick",t["CONTEXTMENU"]="plot:contextmenu",t["LEAVE"]="plot:leave",t["ENTER"]="plot:enter"}(u||(u={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(h||(h={}));var f=["color","shape","size"],d="_origin",g=1,v=1,y=.25,b={};function m(t){var e=b[t];if(!e)throw new Error("G engine '".concat(t,"' is not exist, please register it at first."));return e}function x(t,e){b[t]=e}var O=n("7c8a");function j(t){var e=getComputedStyle(t);return{width:(t.clientWidth||parseInt(e.width,10))-parseInt(e.paddingLeft,10)-parseInt(e.paddingRight,10),height:(t.clientHeight||parseInt(e.height,10))-parseInt(e.paddingTop,10)-parseInt(e.paddingBottom,10)}}function _(t){return"number"===typeof t&&!isNaN(t)}function w(t,e,n,i){var r=n,a=i;if(e){var o=j(t);r=o.width?o.width:r,a=o.height?o.height:a}return{width:Math.max(_(r)?r:g,g),height:Math.max(_(a)?a:v,v)}}function C(t){var e=t.parentNode;e&&e.removeChild(t)}var M=n("7fa2"),S=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=e.visible,r=void 0===i||i;return n.visible=r,n}return Object(o["__extends"])(e,t),e.prototype.show=function(){var t=this.visible;t||this.changeVisible(!0)},e.prototype.hide=function(){var t=this.visible;t&&this.changeVisible(!1)},e.prototype.destroy=function(){this.off(),this.destroyed=!0},e.prototype.changeVisible=function(t){this.visible!==t&&(this.visible=t)},e}(M["a"]),A=S,k=n("6855"),F=n("eecd"),E=function(t,e){return Object(s["isString"])(e)?e:t.invert(t.scale(e))},T=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n=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"),a=this.a*r,o=this.convertDim(i,"y");return{x:this.center.x+Math.cos(r)*(a+o),y:this.center.y+Math.sin(r)*(a+o)}},e.prototype.invertPoint=function(t){var e,n=this.d+this.y.start,i=K["vec2"].subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=K["ext"].angleTo(i,[1,0],!0),a=r*this.a;K["vec2"].length(i)this.width/i?(e=this.width/i,this.circleCenter={x:this.center.x-(.5-a)*this.width,y:this.center.y-(.5-o)*e*r}):(e=this.height/r,this.circleCenter={x:this.center.x-(.5-a)*e*i,y:this.center.y-(.5-o)*this.height}),this.polarRadius=this.radius,this.radius?this.radius>0&&this.radius<=1?this.polarRadius=e*this.radius:(this.radius<=0||this.radius>e)&&(this.polarRadius=e):this.polarRadius=e,this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*this.polarRadius,end:this.polarRadius}},e.prototype.getRadius=function(){return this.polarRadius},e.prototype.convertPoint=function(t){var e,n=this.getCenter(),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,a=r.startAngle,o=r.endAngle;this.isReflect("x")&&(e=[o,a],a=e[0],o=e[1]);var c=[1,0,0,0,1,0,0,0,1];K["ext"].leftRotate(c,c,a);var l=[1,0,0];K["vec3"].transformMat3(l,l,c);var u=[l[0],l[1]],h=K["ext"].angleTo(u,i,o0?f:-f;var d=this.invertDim(p,"y"),g={x:0,y:0};return g.x=this.isTransposed?d:f,g.y=this.isTransposed?f: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 St(t,e,n){if(Object(s["isString"])(t))return t.padEnd(e,n);if(Object(s["isArray"])(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 Et(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function Tt(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 Pt(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function It(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Bt(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=Mt(e.x,i.x,r.x)&&Mt(e.y,i.y,r.y)}else{var a=t.invert(e);n=Mt(a.x,0,1)&&Mt(a.y,0,1)}return n}function Lt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Dt(t,e){void 0===e&&(e=0);var n,i=t.start,r=t.end,a=t.getWidth(),o=t.getHeight();if(t.isPolar){var s=t.startAngle,c=t.endAngle,l=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:Ot(l.x,l.y,u+e,s,s)},endState:function(t){var n=(c-s)*t+s,i=Ot(l.x,l.y,u+e,s,n);return{path:i}},attrs:{path:Ot(l.x,l.y,u+e,s,c)}}}return n=t.isTransposed?{height:o+2*e}:{width:a+2*e},{type:"rect",startState:{x:i.x-e,y:r.y-e,width:t.isTransposed?a+2*e:0,height:t.isTransposed?0:o+2*e},endState:n,attrs:{x:i.x-e,y:r.y-e,width:a+2*e,height:o+2*e}}}function Rt(t,e){void 0===e&&(e=0);var n=t.start,i=t.end,r=t.getWidth(),a=t.getHeight(),o=Math.min(n.x,i.x),s=Math.min(n.y,i.y);return Ft.fromRange(o-e,s-e,o+r+e,s+a+e)}var Nt=/^(?:(?!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 zt(t){var e="linear";return Nt.test(t)?e="timeCat":Object(s["isString"])(t)&&(e="cat"),e}function Yt(t,e,n,i){return void 0===e&&(e={}),e.type?e.type:"identity"!==t.type&&f.includes(n)&&["interval"].includes(i)||t.isCategory?"cat":t.type}function Gt(t,e,n){var i=e||[];if(Object(s["isNumber"])(t)||Object(s["isNil"])(Object(s["firstValue"])(i,t))&&Object(s["isEmpty"])(n)){var r=Object(q["c"])("identity");return new r({field:t.toString(),values:[t]})}var a=Object(s["valuesOfKey"])(i,t),c=Object(s["get"])(n,"type",zt(a[0])),l=Object(q["c"])(c);return new l(Object(o["__assign"])({field:t,values:a},n))}function Vt(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 Xt(t){return t.alias||t.field}function Ht(t,e,n){var i,r=t.values,a=r.length;if(1===a)i=[.5,1];else{var o=1,c=0;Pt(e)?e.isTransposed?(o=Object(s["get"])(n,"widthRatio.multiplePie",1/1.3),c=1/a*o,i=[c/2,1-c/2]):i=[0,1-1/a]:(c=1/a/2,i=[c,1-c])}return i}function Wt(t){var e=t.values.filter((function(t){return!Object(s["isNil"])(t)&&!isNaN(t)}));return Math.max.apply(Math,Object(o["__spreadArray"])(Object(o["__spreadArray"])([],Object(o["__read"])(e),!1),[Object(s["isNil"])(t.max)?-1/0:t.max],!1))}function qt(t){var e,n;switch(t){case r.TOP:e={x:0,y:1},n={x:1,y:1};break;case r.RIGHT:e={x:1,y:0},n={x:1,y:1};break;case r.BOTTOM:e={x:0,y:0},n={x:1,y:0};break;case r.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 $t(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 Ut(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=qt(e):t.isPolar&&(n=$t(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}}function Zt(t){var e=t.start,n=t.end;return e.x===n.x}function Kt(t,e){var n=t.start,i=t.end,r=Zt(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 Qt(t,e){var n=Object(s["get"])(t,["components","axis"],{});return Object(s["deepMix"])({},Object(s["get"])(n,["common"],{}),Object(s["deepMix"])({},Object(s["get"])(n,[e],{})))}function Jt(t,e,n){var i=Object(s["get"])(t,["components","axis"],{});return Object(s["deepMix"])({},Object(s["get"])(i,["common","title"],{}),Object(s["deepMix"])({},Object(s["get"])(i,[e,"title"],{})),n)}function te(t){var e=t.x,n=t.y,i=t.circleCenter,r=n.start>n.end,a=t.isTransposed?t.convert({x:r?0:1,y:0}):t.convert({x:0,y:r?0:1}),o=[a.x-i.x,a.y-i.y],s=[1,0],c=a.y>i.y?K["vec2"].angle(o,s):-1*K["vec2"].angle(o,s),l=c+(e.end-e.start),u=Math.sqrt(Math.pow(a.x-i.x,2)+Math.pow(a.y-i.y,2));return{center:i,radius:u,startAngle:c,endAngle:l}}function ee(t,e){return Object(s["isBoolean"])(t)?!1!==t&&{}:Object(s["get"])(t,[e])}function ne(t,e){return Object(s["get"])(t,"position",e)}function ie(t,e){return Object(s["get"])(e,["title","text"],Xt(t))}var re=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(s["deepMix"])({},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,a=this.view.createView({region:e,padding:r});a.data(n||[]),t.view=a,this.beforeEachView(a,t);var o=this.cfg.eachView;return o&&o(a,t),this.afterEachView(a,t),a},t.prototype.createContainer=function(){var t=this.view.getLayer(i.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(s["each"])(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(s["isNumber"])(t)?t/(0===i?e:n):parseFloat(t)/100}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return Object(s["each"])(t,(function(t){var r=t[e];Object(s["isNil"])(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=Object(o["__read"])(this.parseSpacing(),2),a=r[0],s=r[1],c=(1+a)/(0===e?1:e)-a,l=(1+s)/(0===t?1:t)-s,u={x:(c+a)*n,y:(l+s)*i},h={x:u.x+c,y:u.y+l};return{start:u,end:h}},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,a=Object(s["get"])(i,"type","rect");if("rect"===a&&r.length){Object(s["isNil"])(n.axes)&&(n.axes={});var c=n.axes,l=Object(o["__read"])(r[0].getXYFields(),2),u=l[0],h=l[1],p=ee(c,u),f=ee(c,h);!1!==p&&(n.axes[u]=this.getXAxisOption(u,c,p,e)),!1!==f&&(n.axes[h]=this.getYAxisOption(h,c,f,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(s["every"])(t,(function(t){var n=t.field,i=t.value;return!(!Object(s["isNil"])(i)&&n)||e[n]===i}))}},t}(),ae={},oe=function(t){return ae[Object(s["lowerCase"])(t)]},se=function(t,e){ae[Object(s["lowerCase"])(t)]=e},ce=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(s["assign"])(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),le=ce,ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.execute=function(){this.callback&&this.callback(this.context)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.callback=null},e}(le),he=ue,pe={};function fe(t,e){var n=pe[t],i=null;if(n){var r=n.ActionClass,a=n.cfg;i=new r(e,a),i.name=t,i.init()}return i}function de(t){var e=pe[t];return Object(s["get"])(e,"ActionClass")}function ge(t,e,n){pe[t]={ActionClass:e,cfg:n}}function ve(t,e){var n=new he(e);return n.callback=t,n.name="callback",n}function ye(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i=o[l]?1:0,p=u>Math.PI?1:0,f=n.convert(s),d=It(n,f);if(d>=.5)if(u===2*Math.PI){var g={x:(s.x+o.x)/2,y:(s.y+o.y)/2},v=n.convert(g);c.push(["A",d,d,0,p,h,v.x,v.y]),c.push(["A",d,d,0,p,h,f.x,f.y])}else c.push(["A",d,d,0,p,h,f.x,f.y]);return c}function Oe(t){Object(s["each"])(t,(function(e,n){var i=e;if("a"===i[0].toLowerCase()){var r=t[n-1],a=t[n+1];a&&"a"===a[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&a&&"l"===a[0].toLowerCase()&&(a[0]="M")}}))}var je=function(t,e,n,i){var r,a,s,c,l,u,h,p,f=[],d=!!i;if(d){r=Object(o["__read"])(i,2),c=r[0],l=r[1];for(var g=0,v=t.length;g2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else while(a.length>=e[o])if(n.push([i].concat(a.splice(0,e[o]))),!e[o])break;return""})),n}Math.PI;var Te=function(t,e,n){return t>=e&&t<=n};function Pe(t,e,n,i){var r=.001,a={x:n.x-t.x,y:n.y-t.y},o={x:e.x-t.x,y:e.y-t.y},s={x:i.x-n.x,y:i.y-n.y},c=o.x*s.y-o.y*s.x,l=c*c,u=o.x*o.x+o.y*o.y,h=s.x*s.x+s.y*s.y,p=null;if(l>r*u*h){var f=(a.x*s.y-a.y*s.x)/c,d=(a.x*o.y-a.y*o.x)/c;Te(f,0,1)&&Te(d,0,1)&&(p={x:t.x+f*o.x,y:t.y+f*o.y})}return p}var Ie=1e-6;function Be(t){return Math.abs(t)0!==Be(s[1]-n)>0&&Be(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function Re(t){for(var e=[],n=t.length,i=0;i1){var o=t[0],s=t[n-1];e.push({from:{x:s[0],y:s[1]},to:{x:o[0],y:o[1]}})}return e}function Ne(t,e){var n=!1;return Object(s["each"])(t,(function(t){if(Pe(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function ze(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 Ye(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY0&&r>0&&(i>=e||r>=e)}function He(t,e){var n=t.getCanvasBBox();return Xe(t,e)?n:null}function We(t,e){var n=t.event.maskShapes;return n.map((function(t){return He(t,e)})).filter((function(t){return!!t}))}function qe(t,e){var n=t.event,i=n.target;return $e(i,e)}function $e(t,e){return Xe(t,e)?t.attr("path"):null}function Ue(t,e){var n=t.event.maskShapes;return n.map((function(t){return $e(t,e)}))}function Ze(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function Ke(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function Qe(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function Je(t){return t&&t.component&&t.component.isList()}function tn(t){return t&&t.component&&t.component.isSlider()}function en(t){var e=t.event,n=e.target;return n&&"mask"===(null===n||void 0===n?void 0:n.get("name"))||nn(t)}function nn(t){var e;return"multi-mask"===(null===(e=t.event.target)||void 0===e?void 0:e.get("name"))}function rn(t,e){var n=t.event.target;if(nn(t))return an(t,e);if("path"===n.get("type")){var i=qe(t,e);if(!i)return;return vn(t.view,i)}var r=Ve(t,e);return r?dn(t.view,r):null}function an(t,e){var n=t.event.target;if("path"===n.get("type")){var i=Ue(t,e);return i.length>0?i.flatMap((function(e){return vn(t.view,e)})):null}var r=We(t,e);return r.length>0?r.flatMap((function(e){return dn(t.view,e)})):null}function on(t,e,n){if(nn(t))return cn(t,e,n);var i=Ve(t,n);return i?sn(i,t,e):null}function sn(t,e,n){var i=e.view,r=_n(i,n,{x:t.x,y:t.y}),a=_n(i,n,{x:t.maxX,y:t.maxY}),o={minX:r.x,minY:r.y,maxX:a.x,maxY:a.y};return dn(n,o)}function cn(t,e,n){var i=We(t,n);return i.length>0?i.flatMap((function(n){return sn(n,t,e)})):null}function ln(t){var e=t.geometries,n=[];return Object(s["each"])(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(s["each"])(t.views,(function(t){n=n.concat(ln(t))})),n}function un(t,e,n){var i=ln(t);return i.filter((function(t){return pn(t,e)===n}))}function hn(t,e){var n=t.geometries,i=[];return Object(s["each"])(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function pn(t,e){var n,i=t.getModel(),r=i.data;return n=Object(s["isArray"])(r)?r[0][e]:r[e],n}function fn(t,e){return!(e.minX>t.maxX||e.maxXt.maxY||e.maxY=e.x&&t.y<=e.y&&t.maxY>e.y}function On(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function jn(t,e){var n=t.getCoordinate();return n.invert(e)}function _n(t,e,n){var i=jn(t,n);return e.getCoordinate().convert(i)}function wn(t,e,n,i){var r=!1;return Object(s["each"])(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1})),r}function Cn(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(s["each"])(t.views,(function(t){if(n=Cn(t,e),n)return!1})),n}var Mn=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(s["get"])(this.event,["gEvent","shape"])},t.prototype.isInPlot=function(){var t=this.getCurrentPoint();return!!t&&this.view.isPointInPlot(t)},t.prototype.isInShape=function(t){var e=this.getCurrentShape();return!!e&&e.get("name")===t},t.prototype.isInComponent=function(t){var e=yn(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&xn(i,n):xn(i,n)}))},t.prototype.destroy=function(){Object(s["each"])(this.actions.slice(),(function(t){t.destroy()})),this.view=null,this.event=null,this.actions=null,this.cacheMap=null},t}(),Sn=Mn,An=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}(),kn=An;function Fn(t,e,n){var i=t.split(":"),r=i[0],a=e.getAction(r)||fe(r,e);if(!a)throw new Error("There is no action named ".concat(r));var o=i[1];return{action:a,methodName:o,arg:n}}function En(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 Tn={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},Pn=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.callbackCaches={},i.emitCaches={},i.steps=n,i}return Object(o["__extends"])(e,t),e.prototype.init=function(){this.initContext(),t.prototype.init.call(this)},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.steps=null,this.context&&(this.context.destroy(),this.context=null),this.callbackCaches=null,this.view=null},e.prototype.initEvents=function(){var t=this;Object(s["each"])(this.steps,(function(e,n){Object(s["each"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;Object(s["each"])(this.steps,(function(e,n){Object(s["each"])(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 Sn(t);this.context=e;var n=this.steps;Object(s["each"])(n,(function(t){Object(s["each"])(t,(function(t){if(Object(s["isFunction"])(t.action))t.actionObject={action:ve(t.action,e),methodName:"execute"};else if(Object(s["isString"])(t.action))t.actionObject=Fn(t.action,e,t.arg);else if(Object(s["isArray"])(t.action)){var n=t.action,i=Object(s["isArray"])(t.arg)?t.arg:[t.arg];t.actionObject=[],Object(s["each"])(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===Tn.SHOW_ENABLE)return!0;if(t===Tn.PROCESSING)return e===Tn.START;if(t===Tn.START)return e!==Tn.PROCESSING;if(t===Tn.END)return e===Tn.PROCESSING||e===Tn.START;if(t===Tn.ROLLBACK){if(n[Tn.END])return e===Tn.END;if(e===Tn.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!==Tn.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,a=e.actionObject;if(e.action&&a){var o=this.getKey(t,e);if(!r[o]){var c=function(r){i.event=r,n.isAllowExecute(t,e)?(Object(s["isArray"])(a)?Object(s["each"])(a,(function(t){i.event=r,En(t)})):(i.event=r,En(a)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};e.debounce?r[o]=Object(s["debounce"])(c,e.debounce.wait,e.debounce.immediate):e.throttle?r[o]=Object(s["throttle"])(c,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[o]=c}return r[o]}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}(kn),In=Pn,Bn={};function Ln(t){return Bn[Object(s["lowerCase"])(t)]}function Dn(t,e){Bn[Object(s["lowerCase"])(t)]=e}function Rn(t,e,n){var i=Ln(t);if(!i)return null;if(Object(s["isPlainObject"])(i)){var r=Object(s["mix"])(Object(s["clone"])(i),n);return new In(e,r)}var a=i;return new a(e,n)}function Nn(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily},iconStyle:{fill:t.axisDescriptionIconFillColor}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}function zn(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 Yn(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=Nn(t),r=zn(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=_t(t.getModel(),e),r=i.startAngle,a=i.endAngle,o=(r+a)/2,s=7.5,c=s*Math.cos(o),l=s*Math.sin(o);return{matrix:K["ext"].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:Object(o["__assign"])(Object(o["__assign"])({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(o["__assign"])(Object(o["__assign"])({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(o["__assign"])(Object(o["__assign"])({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(o["__assign"])(Object(o["__assign"])({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(o["__assign"])(Object(o["__assign"])({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(o["__assign"])(Object(o["__assign"])({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(o["__assign"])(Object(o["__assign"])({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(o["__assign"])(Object(o["__assign"])({},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(s["deepMix"])({},i.grid,{line:{type:"line"}})},radius:{title:null,grid:Object(s["deepMix"])({},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(lt["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(lt["TOOLTIP_CSS_CONST"].TITLE_CLASS)]={marginBottom:"12px",marginTop:"12px"},e["".concat(lt["TOOLTIP_CSS_CONST"].LIST_CLASS)]={margin:0,listStyleType:"none",padding:0},e["".concat(lt["TOOLTIP_CSS_CONST"].LIST_ITEM_CLASS)]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e["".concat(lt["TOOLTIP_CSS_CONST"].MARKER_CLASS)]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e["".concat(lt["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 Gn={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},Vn={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},Xn=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#6F5EF9","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],Hn=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],Wn=["#B8E1FF","#9AC5FF","#7DAAFF","#5B8FF9","#3D76DD","#085EC0","#0047A5","#00318A","#001D70"],qn=function(t){void 0===t&&(t={});var e=t.paletteQualitative10,n=void 0===e?Xn:e,i=t.paletteQualitative20,r=void 0===i?Hn:i,a=t.brandColor,s=void 0===a?n[0]:a,c={backgroundColor:"transparent",brandColor:s,subColor:"rgba(0,0,0,0.05)",paletteQualitative10:n,paletteQualitative20:r,paletteSemanticRed:"#F4664A",paletteSemanticGreen:"#30BF78",paletteSemanticYellow:"#FAAD14",paletteSequence:Wn,fontFamily:'"Segoe UI", Roboto, "Helvetica Neue", Arial,\n "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n "Noto Color Emoji"',axisLineBorderColor:Gn[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:Gn[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisDescriptionIconFillColor:Vn[85],axisTickLineBorderColor:Gn[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:Gn[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:Gn[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:Gn[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:Gn[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:s,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:Gn[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:Gn[100],legendPageNavigatorMarkerInactiveFillOpacity:.45,legendPageNavigatorMarkerFillColor:Gn[100],legendPageNavigatorMarkerFillOpacity:1,legendPageNavigatorTextFillColor:Gn[45],legendPageNavigatorTextFontSize:12,sliderRailFillColor:Gn[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:Gn[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:Gn[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:Gn[25],annotationArcBorderColor:Gn[15],annotationArcBorder:1,annotationLineBorderColor:Gn[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:Gn[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:Gn[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:Gn[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:Gn[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:Gn[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:Vn[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:Gn[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:Vn[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:Gn[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:s,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:Vn[100],pointBorderOpacity:1,pointActiveBorderColor:Gn[100],pointSelectedBorder:2,pointSelectedBorderColor:Gn[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:s,hollowPointBorderOpacity:.95,hollowPointFillColor:Vn[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:Gn[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:Gn[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:s,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:s,areaFillOpacity:.25,areaActiveFillColor:s,areaActiveFillOpacity:.5,areaSelectedFillColor:s,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:s,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:Gn[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:Gn[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:s,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:Gn[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:Gn[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:s,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:Vn[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:Gn[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:Gn[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3};return Object(o["__assign"])(Object(o["__assign"])({},c),t)};qn();function $n(t){var e=t.styleSheet,n=void 0===e?{}:e,i=Object(o["__rest"])(t,["styleSheet"]),r=qn(n);return Object(s["deepMix"])({},Yn(r),i)}var Un=$n({}),Zn={default:Un};function Kn(t){return Object(s["get"])(Zn,Object(s["lowerCase"])(t),Zn.default)}function Qn(t,e){Zn[Object(s["lowerCase"])(t)]=$n(e)}function Jn(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(s["isNumberEqual"])(i,r)}function ti(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,a=r[r.length-1],o=r[0],s=n.invert(t),c=s.x;return n.isPolar&&c>(1+a)/2&&(c=o),i.translate(i.invert(c))}function ei(t,e,n){var i=n.coordinate,r=n.getYScale(),a=r.field,o=i.invert(e),c=r.invert(o.y),l=Object(s["find"])(t,(function(t){var e=t[d];return e[a][0]<=c&&e[a][1]>=c}));return l||t[t.length-1]}var ni=Object(s["memoize"])((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,a=0;ar&&(r=s)}return(r-i)/(n-1)}));function ii(t,e,n){var i=e.getAttribute("position"),r=i.getFields(),a=e.scales,o=Object(s["isFunction"])(n)||!n?r[0]:n,c=a[o],l=c?c.getText(t[o]):t[o]||o;return Object(s["isFunction"])(n)?n(l,t):l}function ri(t){var e=Object(s["values"])(t.attributes);return Object(s["filter"])(e,(function(t){return Object(s["contains"])(f,t.type)}))}function ai(t){var e,n,i,r=ri(t);try{for(var a=Object(o["__values"])(r),c=a.next();!c.done;c=a.next()){var l=c.value,u=l.getScale(l.type);if(u&&u.isLinear){var h=Object(s["get"])(t.scaleDefs,u.field),p=Yt(u,h,l.type,t.type);if("cat"!==p){i=u;break}}}}catch(g){e={error:g}}finally{try{c&&!c.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}var f=t.getXScale(),d=t.getYScale();return i||d||f}function oi(t,e){var n=e.field,i=t[n];if(Object(s["isArray"])(i)){var r=i.map((function(t){return e.getText(t)}));return r.join("-")}return e.getText(i)}function si(t,e){var n,i=e.getGroupScales();if(i.length&&(n=i[0]),n){var r=n.field;return n.getText(t[r])}var a=ai(e);return Xt(a)}function ci(t,e,n){if(0===e.length)return null;var i=n.type,r=n.getXScale(),a=n.getYScale(),o=r.field,c=a.field,l=null;if("heatmap"===i||"point"===i){for(var u=n.coordinate,h=u.invert(t),p=r.invert(h.x),f=a.invert(h.y),g=1/0,v=0;v=j){if(!M){l=S;break}Object(s["isArray"])(l)||(l=[]),l.push(S)}}Object(s["isArray"])(l)&&(l=ei(l,t,n))}else{var A=void 0;if(r.isLinear||"timeCat"===r.type){if((j>r.translate(C)||jr.max||jMath.abs(r.translate(A[d][o])-j)&&(O=A)}var P=ni(n.getXScale());return!l&&Math.abs(r.translate(O[d][o])-j)<=P/2&&(l=O),l}function li(t,e,n,i){var r,a;void 0===n&&(n=""),void 0===i&&(i=!1);var c,l,u=t[d],h=ii(u,e,n),p=e.tooltipOption,f=e.theme.defaultColor,g=[];function v(e,n){if(i||!Object(s["isNil"])(n)&&""!==n){var r={title:h,data:u,mappingData:t,name:e,value:n,color:t.color||f,marker:!0};g.push(r)}}if(Object(s["isObject"])(p)){var y=p.fields,b=p.callback;if(b){var m=y.map((function(e){return t[d][e]})),x=b.apply(void 0,Object(o["__spreadArray"])([],Object(o["__read"])(m),!1)),O=Object(o["__assign"])({data:t[d],mappingData:t,title:h,color:t.color||f,marker:!0},x);g.push(O)}else{var j=e.scales;try{for(var _=Object(o["__values"])(y),w=_.next();!w.done;w=_.next()){var C=w.value;if(!Object(s["isNil"])(u[C])){var M=j[C];c=Xt(M),l=M.getText(u[C]),v(c,l)}}}catch(A){r={error:A}}finally{try{w&&!w.done&&(a=_.return)&&a.call(_)}finally{if(r)throw r.error}}}}else{var S=ai(e);l=oi(u,S),c=si(u,e),v(c,l)}return g}function ui(t,e,n,i){var r,a,c=i.showNil,l=[],u=t.dataArray;if(!Object(s["isEmpty"])(u)){t.sort(u);try{for(var h=Object(o["__values"])(u),p=h.next();!p.done;p=h.next()){var f=p.value,d=ci(e,f,t);if(d){var g=t.getElementId(d),v=t.elementsMap[g];if("heatmap"===t.type||v.visible){var y=li(d,t,n,c);y.length&&l.push(y)}}}}catch(b){r={error:b}}finally{try{p&&!p.done&&(a=h.return)&&a.call(h)}finally{if(r)throw r.error}}}return l}function hi(t,e,n,i){var r=i.showNil,a=[],o=t.container,s=o.getShape(e.x,e.y);if(s&&s.get("visible")&&s.get("origin")){var c=s.get("origin").mappingData,l=li(c,t,n,r);l.length&&a.push(l)}return a}function pi(t,e,n){var i,r,a=[],s=t.geometries,c=n.shared,l=n.title,u=n.reversed;try{for(var h=Object(o["__values"])(s),p=h.next();!p.done;p=h.next()){var f=p.value;if(f.visible&&!1!==f.tooltipOption){var d=f.type,g=void 0;g=["point","edge","polygon"].includes(d)?hi(f,e,l,n):["area","line","path","heatmap"].includes(d)||!1!==c?ui(f,e,l,n):hi(f,e,l,n),g.length&&(u&&g.reverse(),a.push(g))}}}catch(v){i={error:v}}finally{try{p&&!p.done&&(r=h.return)&&r.call(h)}finally{if(i)throw i.error}}return a}function fi(t,e,n){var i,r,a=pi(t,e,n);try{for(var s=Object(o["__values"])(t.views),c=s.next();!c.done;c=s.next()){var l=c.value;a=a.concat(pi(l,e,n))}}catch(u){i={error:u}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(i)throw i.error}}return a}function di(t){return!Object(s["isNumber"])(t)&&!Object(s["isArray"])(t)}function gi(t){void 0===t&&(t=0);var e=Object(s["isArray"])(t)?t:[t];switch(e.length){case 0:e=[0,0,0,0];break;case 1:e=new Array(4).fill(e[0]);break;case 2:e=Object(o["__spreadArray"])(Object(o["__spreadArray"])([],Object(o["__read"])(e),!1),Object(o["__read"])(e),!1);break;case 3:e=Object(o["__spreadArray"])(Object(o["__spreadArray"])([],Object(o["__read"])(e),!1),[e[1]],!1);break;default:e=e.slice(0,4);break}return e}var vi={};function yi(t,e){vi[t]=e}function bi(){return Object.keys(vi)}function mi(t){return vi[t]}var xi=function(){function t(t){this.option=this.wrapperOption(t)}return t.prototype.update=function(t){return this.option=this.wrapperOption(t),this},t.prototype.hasAction=function(t){var e=this.option.actions;return Object(s["some"])(e,(function(e){return e[0]===t}))},t.prototype.create=function(t,e){var n=this.option,i=n.type,r=n.cfg,a="theta"===i,s=Object(o["__assign"])({start:t,end:e},r),c=st(a?"polar":i);return this.coordinate=new c(s),this.coordinate.type=i,a&&(this.hasAction("transpose")||this.transpose()),this.execActions(),this.coordinate},t.prototype.adjust=function(t,e){return this.coordinate.update({start:t,end:e}),this.coordinate.resetMatrix(),this.execActions(["scale","rotate","translate"]),this.coordinate},t.prototype.rotate=function(t){return this.option.actions.push(["rotate",t]),this},t.prototype.reflect=function(t){return this.option.actions.push(["reflect",t]),this},t.prototype.scale=function(t,e){return this.option.actions.push(["scale",t,e]),this},t.prototype.transpose=function(){return this.option.actions.push(["transpose"]),this},t.prototype.getOption=function(){return this.option},t.prototype.getCoordinate=function(){return this.coordinate},t.prototype.wrapperOption=function(t){return Object(o["__assign"])({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(s["each"])(n,(function(n){var i,r=Object(o["__read"])(n),a=r[0],c=r.slice(1),l=!!Object(s["isNil"])(t)||t.includes(a);l&&(i=e.coordinate)[a].apply(i,Object(o["__spreadArray"])([],Object(o["__read"])(c),!1))}))},t}(),Oi=xi,ji=function(){function t(t,e,n){this.view=t,this.gEvent=e,this.data=n,this.type=e.type}return t.fromData=function(e,n,i){return new t(e,new k["Event"](n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type=".concat(this.type,")]")},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}(),_i=ji;function wi(t){var e=t.getController("axis"),n=t.getController("legend"),i=t.getController("annotation"),r=t.getController("slider"),a=t.getController("scrollbar");[e,r,a,n,i].forEach((function(t){t&&t.layout()}))}var Ci=function(){function t(){this.scales=new Map,this.syncScales=new Map}return t.prototype.createScale=function(t,e,n,i){var r=n,a=this.getScaleMeta(i);if(0===e.length&&a){var o=a.scale,c={type:o.type};o.isCategory&&(c.values=o.values),r=Object(s["deepMix"])(c,a.scaleDef,n)}var l=Gt(t,e,r);return this.cacheScale(l,n,i),l},t.prototype.sync=function(t,e){var n=this;this.syncScales.forEach((function(i,r){var a=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,c=[];Object(s["each"])(i,(function(t){var e=n.getScale(t);o=Object(s["isNumber"])(e.max)?Math.max(o,e.max):o,a=Object(s["isNumber"])(e.min)?Math.min(a,e.min):a,Object(s["each"])(e.values,(function(t){c.includes(t)||c.push(t)}))})),Object(s["each"])(i,(function(i){var r=n.getScale(i);if(r.isContinuous)r.change({min:a,max:o,values:c});else if(r.isCategory){var l=r.range,u=n.getScaleMeta(i);c&&!Object(s["get"])(u,["scaleDef","range"])&&(l=Ht(Object(s["deepMix"])({},r,{values:c}),t,e)),r.change({values:c,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var i=this.getScaleMeta(n);i&&i.scale.type===t.type?(Vt(i.scale,t),i.scaleDef=e):(i={key:n,scale:t,scaleDef:e},this.scales.set(n,i));var r=this.getSyncKey(i);if(i.syncKey=r,this.removeFromSyncScales(n),r){var a=this.syncScales.get(r);a||(a=[],this.syncScales.set(r,a)),a.push(n)}},t.prototype.getScale=function(t){var e=this.getScaleMeta(t);if(!e){var n=Object(s["last"])(t.split("-")),i=this.syncScales.get(n);i&&i.length&&(e=this.getScaleMeta(i[0]))}return e&&e.scale},t.prototype.deleteScale=function(t){var e=this.getScaleMeta(t);if(e){var n=e.syncKey,i=this.syncScales.get(n);if(i&&i.length){var r=i.indexOf(t);-1!==r&&i.splice(r,1)}}this.scales.delete(t)},t.prototype.clear=function(){this.scales.clear(),this.syncScales.clear()},t.prototype.removeFromSyncScales=function(t){var e=this;this.syncScales.forEach((function(n,i){var r=n.indexOf(t);if(-1!==r)return n.splice(r,1),0===n.length&&e.syncScales.delete(i),!1}))},t.prototype.getSyncKey=function(t){var e=t.scale,n=t.scaleDef,i=e.field,r=Object(s["get"])(n,["sync"]);return!0===r?i:!1===r?void 0:r},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),Mi=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.top=t,this.right=e,this.bottom=n,this.left=i}return t.instance=function(e,n,i,r){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),void 0===r&&(r=0),new t(e,n,i,r)},t.prototype.max=function(t){var e=Object(o["__read"])(t,4),n=e[0],i=e[1],r=e[2],a=e[3];return this.top=Math.max(this.top,n),this.right=Math.max(this.right,i),this.bottom=Math.max(this.bottom,r),this.left=Math.max(this.left,a),this},t.prototype.shrink=function(t){var e=Object(o["__read"])(t,4),n=e[0],i=e[1],r=e[2],a=e[3];return this.top+=n,this.right+=i,this.bottom+=r,this.left+=a,this},t.prototype.inc=function(t,e){var n=t.width,i=t.height;switch(e){case r.TOP:case r.TOP_LEFT:case r.TOP_RIGHT:this.top+=i;break;case r.RIGHT:case r.RIGHT_TOP:case r.RIGHT_BOTTOM:this.right+=n;break;case r.BOTTOM:case r.BOTTOM_LEFT:case r.BOTTOM_RIGHT:this.bottom+=i;break;case r.LEFT:case r.LEFT_TOP:case r.LEFT_BOTTOM:this.left+=n;break;default:break}return this},t.prototype.getPadding=function(){return[this.top,this.right,this.bottom,this.left]},t.prototype.clone=function(){return new(t.bind.apply(t,Object(o["__spreadArray"])([void 0],Object(o["__read"])(this.getPadding()),!1)))},t}();function Si(t){var e=t.padding;if(!di(e))return new(Mi.bind.apply(Mi,Object(o["__spreadArray"])([void 0],Object(o["__read"])(gi(e)),!1)));var n=t.viewBBox,i=new Mi,r=[],c=[],l=[];return Object(s["each"])(t.getComponents(),(function(t){var e=t.type;e===a.AXIS?r.push(t):[a.LEGEND,a.SLIDER,a.SCROLLBAR].includes(e)?c.push(t):e!==a.GRID&&e!==a.TOOLTIP&&l.push(t)})),Object(s["each"])(r,(function(t){var e=t.component,r=e.getLayoutBBox(),a=new Ft(r.x,r.y,r.width,r.height),o=a.exceed(n);i.max(o)})),Object(s["each"])(c,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),a=e.get("padding"),o=new Ft(r.x,r.y,r.width,r.height).expand(a);i.inc(o,n)})),Object(s["each"])(l,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),a=new Ft(r.x,r.y,r.width,r.height);i.inc(a,n)})),i}function Ai(t,e,n){var i=n.instance();e.forEach((function(t){t.autoPadding=i.max(t.autoPadding.getPadding())}))}var ki=function(t){function e(e){var n=t.call(this,{visible:e.visible})||this;n.views=[],n.geometries=[],n.controllers=[],n.interactions={},n.limitInPlot=!1,n.options={data:[],animate:!0},n.usedControllers=bi(),n.scalePool=new Ci,n.layoutFunc=wi,n.isPreMouseInPlot=!1,n.isDataChanged=!1,n.isCoordinateChanged=!1,n.createdScaleKeys=new Map,n.onCanvasEvent=function(t){var e=t.name;if(!e.includes(":")){var i=n.createViewEvent(t);n.doPlotEvent(i),n.emit(e,i)}},n.onDelegateEvents=function(t){var e=t.name;if(e.includes(":")){var i=n.createViewEvent(t);n.emit(e,i)}};var i=e.id,r=void 0===i?Object(s["uniqueId"])("view"):i,a=e.parent,c=e.canvas,l=e.backgroundGroup,u=e.middleGroup,h=e.foregroundGroup,p=e.region,f=void 0===p?{start:{x:0,y:0},end:{x:1,y:1}}:p,d=e.padding,g=e.appendPadding,v=e.theme,y=e.options,b=e.limitInPlot,m=e.syncViewPadding;return n.parent=a,n.canvas=c,n.backgroundGroup=l,n.middleGroup=u,n.foregroundGroup=h,n.region=f,n.padding=d,n.appendPadding=g,n.options=Object(o["__assign"])(Object(o["__assign"])({},n.options),y),n.limitInPlot=b,n.id=r,n.syncViewPadding=m,n.themeObject=Object(s["isObject"])(v)?Object(s["deepMix"])({},Kn("default"),$n(v)):Kn(v),n.init(),n}return Object(o["__extends"])(e,t),e.prototype.setLayout=function(t){this.layoutFunc=t},e.prototype.init=function(){this.calculateViewBBox(),this.initEvents(),this.initComponentController(),this.initOptions()},e.prototype.render=function(t,e){void 0===t&&(t=!1),this.emit(c.BEFORE_RENDER,_i.fromData(this,c.BEFORE_RENDER,e)),this.paint(t),this.emit(c.AFTER_RENDER,_i.fromData(this,c.AFTER_RENDER,e)),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(c.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n');E.appendChild(T);var P=w(E,l,r,a),I=m(d),B=new I.Canvas(Object(o["__assign"])({container:T,pixelRatio:g,localRefresh:y,supportCSSTransform:_},P));return n=t.call(this,{parent:null,canvas:B,backgroundGroup:B.addGroup({zIndex:p.BG}),middleGroup:B.addGroup({zIndex:p.MID}),foregroundGroup:B.addGroup({zIndex:p.FORE}),padding:u,appendPadding:h,visible:x,options:S,limitInPlot:A,theme:k,syncViewPadding:F})||this,n.onResize=Object(s["debounce"])((function(){n.forceFit()}),300),n.ele=E,n.canvas=B,n.width=P.width,n.height=P.height,n.autoFit=l,n.localRefresh=y,n.renderer=d,n.wrapperElement=T,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(M),n}return Object(o["__extends"])(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(s["each"])(t,(function(t){e.interaction(t)}))},e.prototype.aria=function(t){var e="aria-label";!1===t?this.ele.removeAttribute(e):this.ele.setAttribute(e,t.label)},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(c.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(c.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(),C(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=w(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(O["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}(Ei),Pi=Ti,Ii=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(s["each"])(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 Bi(t){for(var e=[],n=function(n){var i=t[n],r=Object(s["find"])(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){var x=l[0],O=Math.abs(t.y-x[0].y);try{for(var j=Object(o["__values"])(l),_=j.next();!_.done;_=j.next()){var w=_.value,C=Math.abs(t.y-w[0].y);C<=O&&(x=w,O=C)}}catch(A){a={error:A}}finally{try{_&&!_.done&&(c=j.return)&&c.call(j)}finally{if(a)throw a.error}}l=[x]}return Bi(Object(s["flatten"])(l))}return[]},e.prototype.layout=function(){},e.prototype.update=function(){if(this.point&&this.showTooltip(this.point),this.tooltip){var t=this.view.getCanvas();this.tooltip.set("region",{start:{x:0,y:0},end:{x:t.get("width"),y:t.get("height")}})}},e.prototype.isCursorEntered=function(t){if(this.tooltip){var e=this.tooltip.getContainer(),n=this.tooltip.get("capture");if(e&&n){var i=e.getBoundingClientRect(),r=i.x,a=i.y,o=i.width,s=i.height;return new Ft(r,a,o,s).isPointIn(t)}}return!1},e.prototype.getTooltipCfg=function(){var t=this.view,e=t.getOptions().tooltip,n=this.processCustomContent(e),i=t.getTheme(),r=Object(s["get"])(i,["components","tooltip"],{}),a=Object(s["get"])(n,"enterable",r.enterable);return Object(s["deepMix"])({},r,n,{capture:!(!a&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(s["isBoolean"])(t)||!Object(s["get"])(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var i=e(t,n)||"";return Object(s["isString"])(i)?'
    '+i+"
    ":i};return Object(o["__assign"])(Object(o["__assign"])({},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 vt(Object(o["__assign"])(Object(o["__assign"])({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){var n,i,r=this.getTooltipMarkersGroup(),a=this.view.getRootView(),c=a.limitInPlot;try{for(var l=Object(o["__values"])(t),u=l.next();!u.done;u=l.next()){var h=u.value,p=h.x,f=h.y;if(c||(null===r||void 0===r?void 0:r.getClip())){var d=Dt(a.getCoordinate()),g=d.type,v=d.attrs;null===r||void 0===r||r.setClip({type:g,attrs:v})}else null===r||void 0===r||r.setClip(void 0);var y=this.view.getTheme(),b=Object(s["get"])(y,["components","tooltip","marker"],{}),m=Object(o["__assign"])(Object(o["__assign"])({fill:h.color,symbol:"circle",shadowColor:h.color},Object(s["isFunction"])(e)?Object(o["__assign"])(Object(o["__assign"])({},b),e(h)):e),{x:p,y:f});r.addShape("marker",{attrs:m})}}catch(x){n={error:x}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}},e.prototype.renderCrosshairs=function(t,e){var n=Object(s["get"])(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n,i,r=this.getViewWithGeometry(this.view).getCoordinate();if(r.isRect)r.isTransposed?(n={x:r.start.x,y:t.y},i={x:r.end.x,y:t.y}):(n={x:t.x,y:r.end.y},i={x:t.x,y:r.start.y});else{var a=Lt(r,t),o=r.getCenter(),c=r.getRadius();i=xt(o.x,o.y,c,a),n=o}var l=Object(s["deepMix"])({start:n,end:i,container:this.getTooltipCrosshairsGroup()},Object(s["get"])(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new lt["Crosshair"].Line(l),u.init()),u.render(),u.show(),this.xCrosshair=u},e.prototype.renderYCrosshairs=function(t,e){var n,i,r=this.getViewWithGeometry(this.view).getCoordinate();if(r.isRect){var a=void 0,o=void 0;r.isTransposed?(a={x:t.x,y:r.end.y},o={x:t.x,y:r.start.y}):(a={x:r.start.x,y:t.y},o={x:r.end.x,y:t.y}),n={start:a,end:o},i="Line"}else n={center:r.getCenter(),radius:It(r,t),startAngle:r.startAngle,endAngle:r.endAngle},i="Circle";n=Object(s["deepMix"])({container:this.getTooltipCrosshairsGroup()},n,Object(s["get"])(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete n.type;var c=this.yCrosshair;c?r.isRect&&"circle"===c.get("type")||!r.isRect&&"line"===c.get("type")?(c=new lt["Crosshair"][i](n),c.init()):c.update(n):(c=new lt["Crosshair"][i](n),c.init()),c.render(),c.show(),this.yCrosshair=c},e.prototype.getCrosshairsText=function(t,e,n){var i=Object(s["get"])(n,["crosshairs","text"]),r=Object(s["get"])(n,["crosshairs","follow"]),a=this.items;if(i){var o=this.getViewWithGeometry(this.view),c=a[0],l=o.getXScale(),u=o.getYScales()[0],h=void 0,p=void 0;if(r){var f=this.view.getCoordinate().invert(e);h=l.invert(f.x),p=u.invert(f.y)}else h=c.data[l.field],p=c.data[u.field];var d="x"===t?h:p;return Object(s["isFunction"])(i)?i=i(t,d,a,e):i.content=d,{text:i}}},e.prototype.getGuideGroup=function(){if(!this.guideGroup){var t=this.view.foregroundGroup;this.guideGroup=t.addGroup({name:"tooltipGuide",capture:!1})}return this.guideGroup},e.prototype.getTooltipMarkersGroup=function(){var t=this.tooltipMarkersGroup;return t&&!t.destroyed?(t.clear(),t.show()):(t=this.getGuideGroup().addGroup({name:"tooltipMarkersGroup"}),t.toFront(),this.tooltipMarkersGroup=t),t},e.prototype.getTooltipCrosshairsGroup=function(){var t=this.tooltipCrosshairsGroup;return t||(t=this.getGuideGroup().addGroup({name:"tooltipCrosshairsGroup",capture:!1}),t.toBack(),this.tooltipCrosshairsGroup=t),t},e.prototype.findItemsFromView=function(t,e){var n,i;if(!1===t.getOptions().tooltip)return[];var r=this.getTooltipCfg(),a=pi(t,e,r);try{for(var s=Object(o["__values"])(t.views),c=s.next();!c.done;c=s.next()){var l=c.value;a=a.concat(this.findItemsFromView(l,e))}}catch(u){n={error:u}}finally{try{c&&!c.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}return a},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(s["find"])(t.views,(function(t){return e.getViewWithGeometry(t)}))},e.prototype.getItemsAfterProcess=function(t){var e=this.getTooltipCfg().customItems,n=e||function(t){return t};return n(t)},e}(Ii),Di=Li,Ri={};function Ni(t){return Ri[t.toLowerCase()]}function zi(t,e){Ri[t.toLowerCase()]=e}var Yi={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},Gi={interval:function(t){return{enter:{animation:t.isRect?t.isTransposed?"scale-in-x":"scale-in-y":"fade-in"},update:{animation:t.isPolar&&t.isTransposed?"sector-path-update":null},leave:{animation:"fade-out"}}},line:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},path:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},point:{appear:{animation:"zoom-in"},enter:{animation:"zoom-in"},leave:{animation:"zoom-out"}},area:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},polygon:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},schema:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},edge:{enter:{animation:"fade-in"},leave:{animation:"fade-out"}},label:{appear:{animation:"fade-in",delay:450},enter:{animation:"fade-in"},update:{animation:"position-update"},leave:{animation:"fade-out"}}},Vi={line:function(){return{animation:"wave-in"}},area:function(){return{animation:"wave-in"}},path:function(){return{animation:"fade-in"}},interval:function(t){var e;return t.isRect?e=t.isTransposed?"grow-in-x":"grow-in-y":(e="grow-in-xy",t.isPolar&&t.isTransposed&&(e="wave-in")),{animation:e}},schema:function(t){var e;return e=t.isRect?t.isTransposed?"grow-in-x":"grow-in-y":"grow-in-xy",{animation:e}},polygon:function(){return{animation:"fade-in",duration:500}},edge:function(){return{animation:"fade-in"}}};function Xi(t,e){return{delay:Object(s["isFunction"])(t.delay)?t.delay(e):t.delay,easing:Object(s["isFunction"])(t.easing)?t.easing(e):t.easing,duration:Object(s["isFunction"])(t.duration)?t.duration(e):t.duration,callback:t.callback,repeat:t.repeat}}function Hi(t,e,n){var i=Gi[t];return i&&(Object(s["isFunction"])(i)&&(i=i(e)),i=Object(s["deepMix"])({},Yi,i),n)?i[n]:i}function Wi(t,e,n){var i=Object(s["get"])(t.get("origin"),"data",d),r=e.animation,a=Xi(e,i);if(r){var o=Ni(r);o&&o(t,a,n)}else t.animate(n.toAttrs,a)}function qi(t,e,n,i,r){if(Vi[n]){var a=Vi[n](i),c=Ni(Object(s["get"])(a,"animation",""));if(c){var l=Object(o["__assign"])(Object(o["__assign"])(Object(o["__assign"])({},Yi.appear),a),e);t.stopAnimate(),c(t,l,{coordinate:i,minYPoint:r,toAttrs:null})}}}var $i="element-background",Ui=function(t){function e(e){var n=t.call(this,e)||this;n.labelShape=[],n.states=[];var i=e.shapeFactory,r=e.container,a=e.offscreenGroup,o=e.elementIndex,s=e.visible,c=void 0===s||s;return n.shapeFactory=i,n.container=r,n.offscreenGroup=a,n.visible=c,n.elementIndex=o,n}return Object(o["__extends"])(e,t),e.prototype.draw=function(t,e){void 0===e&&(e=!1),this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.drawShape(t,e),!1===this.visible&&this.changeVisible(!1)},e.prototype.update=function(t){var e=this,n=e.shapeFactory,i=e.shape;if(i){this.model=t,this.data=t.data,this.shapeType=this.getShapeType(t),this.setShapeInfo(i,t);var r=this.getOffscreenGroup(),a=n.drawShape(this.shapeType,t,r);a.cfg.data=this.data,a.cfg.origin=t,a.cfg.element=this,this.syncShapeStyle(i,a,this.getStates(),this.getAnimateCfg("update"))}},e.prototype.destroy=function(){var e=this,n=e.shapeFactory,i=e.shape;if(i){var r=this.getAnimateCfg("leave");r?Wi(i,r,{coordinate:n.coordinate,toAttrs:Object(o["__assign"])({},i.attr())}):i.remove(!0)}this.states=[],this.shapeFactory=void 0,this.container=void 0,this.shape=void 0,this.animate=void 0,this.geometry=void 0,this.labelShape=[],this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,i=n.states,r=n.shapeFactory,a=n.model,o=n.shape,s=n.shapeType,c=i.indexOf(t);if(e){if(c>-1)return;i.push(t),"active"!==t&&"selected"!==t||null===o||void 0===o||o.toFront()}else{if(-1===c)return;if(i.splice(c,1),"active"===t||"selected"===t){var l=this.geometry,u=l.sortZIndex,h=l.zIndexReversed,p=h?this.geometry.elements.length-this.elementIndex:this.elementIndex;u?o.setZIndex(p):o.set("zIndex",p)}}var f=r.drawShape(s,a,this.getOffscreenGroup());i.length?this.syncShapeStyle(o,f,i,null):this.syncShapeStyle(o,f,["reset"],null),f.remove(!0);var d={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",d),Object(lt["propagationDelegate"])(this.shape,"statechange",d)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(s["each"])(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this,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,a=i.defaultShapeType,o=i.theme[e]||i.theme[a];this.statesStyle=Object(s["deepMix"])({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=Object(s["get"])(n,[t,"style"],{}),r=i[e]||i;return Object(s["isFunction"])(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var i=n[t];return i?Object(o["__assign"])(Object(o["__assign"])({},i),{callback:function(){var t;Object(s["isFunction"])(i.callback)&&i.callback(),null===(t=e.geometry)||void 0===t||t.emit(l.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,c=i.shapeType;if(this.shape=r.drawShape(c,t,a),this.shape){this.setShapeInfo(this.shape,t);var u=this.shape.cfg.name;u?Object(s["isString"])(u)&&(this.shape.cfg.name=["element",u]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var h=e?"enter":"appear",p=this.getAnimateCfg(h);p&&(null===(n=this.geometry)||void 0===n||n.emit(l.BEFORE_DRAW_ANIMATE),Wi(this.shape,p,{coordinate:r.coordinate,toAttrs:Object(o["__assign"])({},this.shape.attr())}))}},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.setShapeInfo=function(t,e){var n=this;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 a,o=this;if(void 0===n&&(n=[]),void 0===r&&(r=0),t&&e){var c=t.get("clipShape"),u=e.get("clipShape");if(this.syncShapeStyle(c,u,n,i),t.isGroup())for(var h=t.get("children"),p=e.get("children"),f=0;f=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if(Object(s["isNil"])(e)||Object(s["isObject"])(e))Object(s["isObject"])(e)&&Object(s["isEqual"])(Object.keys(e),["values"])?Object(s["set"])(this.attributeOption,t,{fields:e.values}):Object(s["set"])(this.attributeOption,t,e);else{var i={};Object(s["isNumber"])(e)?i.values=[e]:i.fields=hr(e),n&&(Object(s["isFunction"])(n)?i.callback=n:i.values=n),Object(s["set"])(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 c={},l=function(e){if(i.hasOwnProperty(e)){var l=i[e];if(!l)return{value:void 0};var u=Object(o["__assign"])({},l),h=u.callback,p=u.values,d=u.fields,g=void 0===d?[]:d,v=g.map((function(n){var i=t.scales[n];if(!c[n]&&f.includes(e)){var r=Yt(i,Object(s["get"])(t.scaleDefs,n),e,t.type);"cat"===r&&(t.groupScales.push(i),c[n]=!0)}return i}));u.scales=v,"position"!==e&&1===v.length&&"identity"===v[0].type?u.values=v[0].values:h||p||("size"===e?u.values=r.sizes:"shape"===e?u.values=r.shapes[a]||[]:"color"===e&&(v.length?u.values=v[0].values.length<=10?r.colors10:r.colors20:u.values=r.colors10));var y=U(e);n[e]=new y(u)}};for(var u in i){var h=l(u);if("object"===typeof h)return h.value}},e.prototype.processData=function(t){var e,n;this.hasSorted=!1;for(var i=this.getAttribute("position").scales,r=i.filter((function(t){return t.isCategory})),a=this.groupData(t),s=[],c=0,l=a.length;ca&&(a=u)}var h=this.scaleDefs,p={};rt.max&&!Object(s["get"])(h,[i,"max"])&&(p.max=a),t.change(p)},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 h=0;h0}))}function wr(t,e,n){var i=n.data,r=n.origin,a=n.animateCfg,o=n.coordinate,c=Object(s["get"])(a,"update");t.set("data",i),t.set("origin",r),t.set("animateCfg",a),t.set("coordinate",o),t.set("visible",e.get("visible")),(t.getChildren()||[]).forEach((function(s,l){var u=e.getChildByIndex(l);if(u){s.set("data",i),s.set("origin",r),s.set("animateCfg",a),s.set("coordinate",o);var h=Ct(s,u);c?Wi(s,c,{toAttrs:h,coordinate:o}):s.attr(h),u.isGroup()&&wr(s,u,n)}else t.removeChild(s),s.remove(!0)})),Object(s["each"])(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var Cr=function(){function t(t){this.shapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){return void 0===n&&(n=!1),Object(o["__awaiter"])(this,void 0,void 0,(function(){var i,r,a,c,l,u,h,p,f=this;return Object(o["__generator"])(this,(function(d){switch(d.label){case 0:if(i={},r=this.createOffscreenGroup(),!t.length)return[3,2];try{for(a=Object(o["__values"])(t),c=a.next();!c.done;c=a.next())l=c.value,l&&(i[l.id]=this.renderLabel(l,r))}catch(g){h={error:g}}finally{try{c&&!c.done&&(p=a.return)&&p.call(a)}finally{if(h)throw h.error}}return[4,this.doLayout(t,e,i)];case 1:d.sent(),this.renderLabelLine(t,i),this.renderLabelBackground(t,i),this.adjustLabel(t,i),d.label=2;case 2:return u=this.shapesMap,Object(s["each"])(i,(function(t,e){if(t.destroyed)delete i[e];else{if(u[e]){var r=t.get("data"),a=t.get("origin"),c=t.get("coordinate"),l=t.get("animateCfg"),h=u[e];wr(h,i[e],{data:r,origin:a,animateCfg:l,coordinate:c}),i[e]=h}else{if(f.container.destroyed)return;f.container.add(t);var p=Object(s["get"])(t.get("animateCfg"),n?"enter":"appear");p&&Wi(t,p,{toAttrs:Object(o["__assign"])({},t.attr()),coordinate:t.get("coordinate")})}delete u[e]}})),Object(s["each"])(u,(function(t){var e=Object(s["get"])(t.get("animateCfg"),"leave");e?Wi(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.shapesMap=i,r.destroy(),[2]}}))}))},t.prototype.clear=function(){this.container.clear(),this.shapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null},t.prototype.renderLabel=function(t,e){var n,i=t.id,r=t.elementId,a=t.data,c=t.mappingData,l=t.coordinate,u=t.animate,h=t.content,p=t.capture,f={id:i,elementId:r,capture:p,data:a,origin:Object(o["__assign"])(Object(o["__assign"])({},c),{data:c[d]}),coordinate:l},g=e.addGroup(Object(o["__assign"])({name:"label",animateCfg:!1!==this.animate&&null!==u&&!1!==u&&Object(s["deepMix"])({},this.animate,u)},f));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var v=h.getCanvasBBox(),y=v.width,b=v.height,m=Object(s["get"])(t,"textAlign","left"),x=t.x,O=t.y-b/2;"center"===m?x-=y/2:"right"!==m&&"end"!==m||(x-=y),vr(h,x,O),n=h,g.add(h)}else{var j=Object(s["get"])(t,["style","fill"]);n=g.addShape("text",Object(o["__assign"])({attrs:Object(o["__assign"])(Object(o["__assign"])({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(s["get"])(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(s["isNull"])(j)?t.color:j})},f))}return t.rotate&&br(n,t.rotate),g},t.prototype.doLayout=function(t,e,n){return Object(o["__awaiter"])(this,void 0,void 0,(function(){var i,r=this;return Object(o["__generator"])(this,(function(a){switch(a.label){case 0:return this.layout?(i=Object(s["isArray"])(this.layout)?this.layout:[this.layout],[4,Promise.all(i.map((function(i){var a=er(Object(s["get"])(i,"type",""));if(a){var o=[],c=[];return Object(s["each"])(n,(function(t,n){o.push(t),c.push(e[t.get("elementId")])})),a(t,o,c,r.region,i.cfg)}})))]):[3,2];case 1:a.sent(),a.label=2;case 2:return[2]}}))}))},t.prototype.renderLabelLine=function(t,e){Object(s["each"])(t,(function(t){var n=Object(s["get"])(t,"coordinate");if(t&&n){var i=n.getCenter(),r=n.getRadius();if(t.labelLine){var a=Object(s["get"])(t,"labelLine",{}),c=t.id,l=a.path;if(!l){var u=xt(i.x,i.y,r,t.angle);l=[["M",u.x,u.y],["L",t.x,t.y]]}var h=e[c];h.destroyed||h.addShape("path",{capture:!1,attrs:Object(o["__assign"])({path:l,stroke:t.color?t.color:Object(s["get"])(t,["style","fill"],"#000"),fill:null},a.style),id:c,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t,e){Object(s["each"])(t,(function(t){var n=Object(s["get"])(t,"coordinate"),i=Object(s["get"])(t,"background");if(i&&n){var r=t.id,a=e[r];if(!a.destroyed){var c=a.getChildren()[0];if(c){var l=Or(a,t,i.padding),u=l.rotation,h=Object(o["__rest"])(l,["rotation"]),p=a.addShape("rect",{attrs:Object(o["__assign"])(Object(o["__assign"])({},h),i.style||{}),id:r,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),u){var f=c.getMatrix();p.setMatrix(f)}}}}}))},t.prototype.createOffscreenGroup=function(){var t=this.container,e=t.getGroupBase(),n=new e({});return n},t.prototype.adjustLabel=function(t,e){Object(s["each"])(t,(function(t){if(t){var n=t.id,i=e[n];if(!i.destroyed){var r=i.findAll((function(t){return"path"!==t.get("type")}));Object(s["each"])(r,(function(e){e&&(t.offsetX&&e.attr("x",e.attr("x")+t.offsetX),t.offsetY&&e.attr("y",e.attr("y")+t.offsetY))}))}}}))},t}(),Mr=Cr;function Sr(t){var e=0;return Object(s["each"])(t,(function(t){e+=t})),e/t.length}var Ar=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],i=this.getLabelCfgs(t);return Object(s["each"])(t,(function(t,r){var a=i[r];if(!a||Object(s["isNil"])(t.x)||Object(s["isNil"])(t.y))n.push(null);else{var c=Object(s["isArray"])(a.content)?a.content:[a.content];a.content=c;var l=c.length;Object(s["each"])(c,(function(i,r){if(Object(s["isNil"])(i)||""===i)n.push(null);else{var c=Object(o["__assign"])(Object(o["__assign"])({},a),e.getLabelPoint(a,t,r));c.textAlign||(c.textAlign=e.getLabelAlign(c,r,l)),c.offset<=0&&(c.labelLine=null),n.push(c)}}))}})),n},t.prototype.render=function(t,e){return void 0===e&&(e=!1),Object(o["__awaiter"])(this,void 0,void 0,(function(){var n,i,r;return Object(o["__generator"])(this,(function(a){switch(a.label){case 0:return n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes(),[4,i.render(n,r,e)];case 1:return a.sent(),[2]}}))}))},t.prototype.clear=function(){var t=this.labelsRenderer;t&&t.clear()},t.prototype.destroy=function(){var t=this.labelsRenderer;t&&t.destroy(),this.labelsRenderer=null},t.prototype.getCoordinate=function(){return this.geometry.coordinate},t.prototype.getDefaultLabelCfg=function(t,e){var n=this.geometry,i=n.type,r=n.theme;return"polygon"===i||"interval"===i&&"middle"===e||t<0&&!["line","point","path"].includes(i)?Object(s["get"])(r,"innerLabels",{}):Object(s["get"])(r,"labels",{})},t.prototype.getThemedLabelCfg=function(t){var e,n=this.geometry,i=this.getDefaultLabelCfg(),r=n.type,a=n.theme;return e="polygon"===r||t.offset<0&&!["line","point","path"].includes(r)?Object(s["deepMix"])({},i,a.innerLabels,t):Object(s["deepMix"])({},i,a.labels,t),e},t.prototype.setLabelPosition=function(t,e,n,i){},t.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=this.getOffsetVector(t);return e.isTransposed?n[0]:n[1]},t.prototype.getLabelOffsetPoint=function(t,e,n){var i=t.offset,r=this.getCoordinate(),a=r.isTransposed,o=a?"x":"y",s=a?1:-1,c={x:0,y:0};return c[o]=e>0||1===n?i*s:i*s*-1,c},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),r=t.content.length;function a(e,n,i){void 0===i&&(i=!1);var r=e;return Object(s["isArray"])(r)&&(r=1===t.content.length?i?Sr(r):r.length<=2?r[e.length-1]:Sr(r):r[n]),r}var o={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},c=Object(s["isArray"])(e.shape)?e.shape[0]:e.shape,l="funnel"===c||"pyramid"===c;if("polygon"===this.geometry.type){var u=wt(e.x,e.y);o.x=u[0],o.y=u[1]}else"interval"!==this.geometry.type||l?(o.x=a(e.x,n),o.y=a(e.y,n)):(o.x=a(e.x,n,!0),o.y=a(e.y,n));if(l){var h=Object(s["get"])(e,"nextPoints"),p=Object(s["get"])(e,"points");if(h){var f=i.convert(p[1]),d=i.convert(h[1]);o.x=(f.x+d.x)/2,o.y=(f.y+d.y)/2}else if("pyramid"===c){f=i.convert(p[1]),d=i.convert(p[2]);o.x=(f.x+d.x)/2,o.y=(f.y+d.y)/2}}t.position&&this.setLabelPosition(o,e,n,t.position);var g=this.getLabelOffsetPoint(t,n,r);return o.start={x:o.x,y:o.y},o.x+=g.x,o.y+=g.y,o.color=e.color,o},t.prototype.getLabelAlign=function(t,e,n){var i="center",r=this.getCoordinate();if(r.isTransposed){var a=t.offset;i=a<0?"right":0===a?"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(),a=t[d],o=e.getElementId(t);return"line"===n||"area"===n?o+=" ".concat(a[i.field]):"path"===n&&(o+=" ".concat(a[i.field],"-").concat(a[r.field])),o},t.prototype.getLabelsRenderer=function(){var t=this.geometry,e=t.labelsContainer,n=t.labelOption,i=t.canvasRegion,r=t.animateOption,a=this.geometry.coordinate,o=this.labelsRenderer;return o||(o=new Mr({container:e,layout:Object(s["get"])(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=o),o.region=i,o.animate=!!r&&Hi("label",a),o},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=n.labelOption,r=n.scales,a=n.coordinate,c=i,l=c.fields,u=c.callback,h=c.cfg,p=l.map((function(t){return r[t]})),f=[];return Object(s["each"])(t,(function(t,n){var i,r=t[d],c=e.getLabelText(r,p);if(u){var g=l.map((function(t){return r[t]}));if(i=u.apply(void 0,Object(o["__spreadArray"])([],Object(o["__read"])(g),!1)),Object(s["isNil"])(i))return void f.push(null)}var v=Object(o["__assign"])(Object(o["__assign"])({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:a},h),i);Object(s["isFunction"])(v.position)&&(v.position=v.position(r,t,n));var y=e.getLabelOffset(v.offset||0),b=e.getDefaultLabelCfg(y,v.position);v=Object(s["deepMix"])({},b,v),v.offset=e.getLabelOffset(v.offset||0);var m=v.content;Object(s["isFunction"])(m)?v.content=m(r,t,n):Object(s["isUndefined"])(m)&&(v.content=c[0]),f.push(v)})),f},t.prototype.getLabelText=function(t,e){var n=[];return Object(s["each"])(e,(function(e){var i=t[e.field];i=Object(s["isArray"])(i)?i.map((function(t){return e.getText(t)})):e.getText(i),Object(s["isNil"])(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(s["isNumber"])(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(s["each"])(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(s["each"])(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}(),kr=Ar;function Fr(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,Object(o["__spreadArray"])([e],Object(o["__read"])(r),!1)).join("")}else i=t.mapping(e).join("");return i||n}var Er={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]]}},Tr=["line","cross","tick","plus","hyphen"];function Pr(t,e){return Object(s["isFunction"])(e)?e(t):Object(s["deepMix"])({},t,e)}function Ir(t,e){var n=t.symbol;if(Object(s["isString"])(n)&&-1!==Tr.indexOf(n)){var i=Object(s["get"])(t,"style",{}),r=Object(s["get"])(i,"lineWidth",1),a=i.stroke||i.fill||e;t.style=Object(s["deepMix"])({},t.style,{lineWidth:r,stroke:a,fill:null})}}function Br(t){var e=t.symbol;Object(s["isString"])(e)&&Er[e]&&(t.symbol=Er[e])}function Lr(t){return t.startsWith(r.LEFT)||t.startsWith(r.RIGHT)?"vertical":"horizontal"}function Dr(t,e,n,i,r){var a=n.getScale(n.type);if(a.isCategory){var c=a.field,l=e.getAttribute("color"),u=e.getAttribute("shape"),h=t.getTheme().defaultColor,p=e.coordinate.isPolar;return a.getTicks().map((function(n,f){var d,g=n.text,v=n.value,y=g,b=a.invert(v),m=0===t.filterFieldData(c,[(d={},d[c]=b,d)]).length;Object(s["each"])(t.views,(function(t){var e;t.filterFieldData(c,[(e={},e[c]=b,e)]).length||(m=!0)}));var x=Fr(l,b,h),O=Fr(u,b,"point"),j=e.getShapeMarker(O,{color:x,isInPolar:p}),_=r;return Object(s["isFunction"])(_)&&(_=_(y,f,Object(o["__assign"])({name:y,value:b},Object(s["deepMix"])({},i,j)))),j=Object(s["deepMix"])({},i,j,At(Object(o["__assign"])({},_),["style"])),Ir(j,x),_&&_.style&&(j.style=Pr(j.style,_.style)),Br(j),{id:b,name:y,value:b,marker:j,unchecked:m}}))}return[]}function Rr(t,e,n){return n.map((function(n,i){var r=e;Object(s["isFunction"])(r)&&(r=r(n.name,i,Object(s["deepMix"])({},t,n)));var a=Object(s["isFunction"])(n.marker)?n.marker(n.name,i,Object(s["deepMix"])({},t,n)):n.marker,o=Object(s["deepMix"])({},t,r,a);return Br(o),n.marker=o,n}))}function Nr(t,e){var n=Object(s["get"])(t,["components","legend"],{});return Object(s["deepMix"])({},Object(s["get"])(n,["common"],{}),Object(s["deepMix"])({},Object(s["get"])(n,[e],{})))}function zr(t){return!t&&(null===t||void 0===t||isNaN(t))}function Yr(t){if(Object(s["isArray"])(t))return zr(t[1].y);var e=t.y;return Object(s["isArray"])(e)?zr(e[0]):zr(e)}function Gr(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,a=t.length;r0&&(l[0][0]="L")),a=a.concat(l)})),a.push(["Z"])}return a}function fa(t,e,n,i,r){for(var a=Hr(t,e,!e,"lineWidth"),o=t.connectNulls,s=t.isInCircle,c=t.points,l=t.showSinglePoint,u=Gr(c,o,l),h=[],p=0,f=u.length;pr&&(r=e),e=e[0]})));var v=this.scales[f];try{for(var y=Object(o["__values"])(t),b=y.next();!b.done;b=y.next()){var m=b.value,x=this.getDrawCfg(m),O=x.x,j=x.y,_=v.scale(m[d][f]);this.drawGrayScaleBlurredCircle(O-c.x,j-l.y,n+i,_,g)}}catch(M){r={error:M}}finally{try{b&&!b.done&&(a=y.return)&&a.call(y)}finally{if(r)throw r.error}}var w=g.getImageData(0,0,u,h);this.clearShadowCanvasCtx(),this.colorize(w),g.putImageData(w,0,0);var C=this.getImageShape();C.attr("x",c.x),C.attr("y",l.y),C.attr("width",u),C.attr("height",h),C.attr("img",g.canvas),C.set("origin",this.getShapeInfo(t))},e.prototype.getDefaultSize=function(){var t=this.getAttribute("position"),e=this.coordinate;return Math.min(e.getWidth()/(4*t.scales[0].ticks.length),e.getHeight()/(4*t.scales[1].ticks.length))},e.prototype.clearShadowCanvasCtx=function(){var t=this.getShadowCanvasCtx();t.clearRect(0,0,t.canvas.width,t.canvas.height)},e.prototype.getShadowCanvasCtx=function(){var t=this.shadowCanvas;return t||(t=document.createElement("canvas"),this.shadowCanvas=t),t.width=this.coordinate.getWidth(),t.height=this.coordinate.getHeight(),t.getContext("2d")},e.prototype.getGrayScaleBlurredCanvas=function(){return this.grayScaleBlurredCanvas||(this.grayScaleBlurredCanvas=document.createElement("canvas")),this.grayScaleBlurredCanvas},e.prototype.drawGrayScaleBlurredCircle=function(t,e,n,i,r){var a=this.getGrayScaleBlurredCanvas();r.globalAlpha=i,r.drawImage(a,t-n,e-n)},e.prototype.colorize=function(t){for(var e=this.getAttribute("color"),n=t.data,i=this.paletteCache,r=3;re&&(n=n?e/(1+i/n):0,i=e-n),r+a>e&&(r=r?e/(1+a/r):0,a=e-r),[n||0,i||0,r||0,a||0]}function wa(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},a=n.isTransposed?{x:n.end.x,y:e[2].y}:{x:e[3].x,y:n.end.y},c=Object(s["get"])(t,["background","style","radius"]);if(c){var l=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,u=n.isTransposed?n.getWidth():n.getHeight(),h=Object(o["__read"])(_a(c,Math.min(l,u)),4),p=h[0],f=h[1],d=h[2],g=h[3],v=n.isTransposed&&n.isReflect("y"),y=v?0:1,b=function(t){return v?-t:t};i.push(["M",r.x,a.y+b(p)]),0!==p&&i.push(["A",p,p,0,0,y,r.x+p,a.y]),i.push(["L",a.x-f,a.y]),0!==f&&i.push(["A",f,f,0,0,y,a.x,a.y+b(f)]),i.push(["L",a.x,r.y-b(d)]),0!==d&&i.push(["A",d,d,0,0,y,a.x-d,r.y]),i.push(["L",r.x+g,r.y]),0!==g&&i.push(["A",g,g,0,0,y,r.x,r.y-b(g)])}else i.push(["M",r.x,r.y]),i.push(["L",a.x,r.y]),i.push(["L",a.x,a.y]),i.push(["L",r.x,a.y]),i.push(["L",r.x,r.y]);i.push(["z"])}if(n.isPolar){var m=n.getCenter(),x=_t(t,n),O=x.startAngle,j=x.endAngle;if("theta"===n.type||n.isTransposed){var _=function(t){return Math.pow(t,2)};p=Math.sqrt(_(m.x-e[0].x)+_(m.y-e[0].y)),f=Math.sqrt(_(m.x-e[2].x)+_(m.y-e[2].y));i=Ot(m.x,m.y,p,n.startAngle,n.endAngle,f)}else i=Ot(m.x,m.y,n.getRadius(),O,j)}return i}function Ca(t,e,n){var i=n.getWidth(),r=n.getHeight(),a="rect"===n.type,o=[],s=(t[2].x-t[1].x)/2,c=n.isTransposed?s*r/i:s*i/r;return"round"===e?(a?(o.push(["M",t[0].x,t[0].y+c]),o.push(["L",t[1].x,t[1].y-c]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y-c]),o.push(["L",t[3].x,t[3].y+c]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y+c])):(o.push(["M",t[0].x,t[0].y]),o.push(["L",t[1].x,t[1].y]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y]),o.push(["L",t[3].x,t[3].y]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y])),o.push(["z"])):o=ja(t),o}function Ma(t,e,n){var i=[];return Object(s["isNil"])(e)?n?i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",(t[2].x+t[3].x)/2,(t[2].y+t[3].y)/2],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",t[2].x,t[2].y],["L",t[3].x,t[3].y],["Z"]):i.push(["M",t[0].x,t[0].y],["L",t[1].x,t[1].y],["L",e[1].x,e[1].y],["L",e[0].x,e[0].y],["Z"]),i}function Sa(t,e){return[e,t]}function Aa(t,e,n){var i,r,a,s,c,l,u,h=Object(o["__read"])(Object(o["__spreadArray"])([],Object(o["__read"])(t),!1),4),p=h[0],f=h[1],d=h[2],g=h[3],v=Object(o["__read"])("number"===typeof n?Array(4).fill(n):n,4),y=v[0],b=v[1],m=v[2],x=v[3];e.isTransposed&&(i=Object(o["__read"])(Sa(f,g),2),f=i[0],g=i[1]),e.isReflect("y")&&(r=Object(o["__read"])(Sa(p,f),2),p=r[0],f=r[1],a=Object(o["__read"])(Sa(d,g),2),d=a[0],g=a[1]),e.isReflect("x")&&(s=Object(o["__read"])(Sa(p,g),2),p=s[0],g=s[1],c=Object(o["__read"])(Sa(f,d),2),f=c[0],d=c[1]);var O=[],j=function(t){return Math.abs(t)};return l=Object(o["__read"])(_a([y,b,m,x],Math.min(j(g.x-p.x),j(f.y-p.y))).map((function(t){return j(t)})),4),y=l[0],b=l[1],m=l[2],x=l[3],e.isTransposed&&(u=Object(o["__read"])([x,y,b,m],4),y=u[0],b=u[1],m=u[2],x=u[3]),p.yo&&(r=o)}return r}function Fa(t,e){if(e){var n=Object(s["flatten"])(t),i=Object(s["valuesOfKey"])(n,e);return i.length}return t.length}function Ea(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,a=t.beforeMappingData,o=r.length,c=Tt(t.coordinate),l=t.intervalPadding,u=t.dodgePadding,h=t.maxColumnWidth||e.maxColumnWidth,p=t.minColumnWidth||e.minColumnWidth,f=t.columnWidthRatio||e.columnWidthRatio,d=t.multiplePieWidthRatio||e.multiplePieWidthRatio,g=t.roseWidthRatio||e.roseWidthRatio;if(i.isLinear&&r.length>1){r.sort();var v=ka(r,i);o=(i.max-i.min)/v,r.length>o&&(o=r.length)}var y=i.range,b=1/o,m=1;if(n.isPolar?m=n.isTransposed&&o>1?d:g:(i.isLinear&&(b*=y[1]-y[0]),m=f),!Object(s["isNil"])(l)&&l>=0){var x=l/c;b=(1-(o-1)*x)/o}else b*=m;if(t.getAdjust("dodge")){var O=t.getAdjust("dodge"),j=O.dodgeBy,_=Fa(a,j);if(!Object(s["isNil"])(u)&&u>=0){var w=u/c;b=(b-w*(_-1))/_}else!Object(s["isNil"])(l)&&l>=0?(b*=m,b/=_):b/=_;b=b>=0?b:0}if(!Object(s["isNil"])(h)&&h>=0){var C=h/c;b>C&&(b=C)}if(!Object(s["isNil"])(p)&&p>=0){var M=p/c;b0&&!Object(s["get"])(n,[i,"min"])&&e.change({min:0}),a<=0&&!Object(s["get"])(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}(dr),Pa=Ta,Ia=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 Object(o["__extends"])(e,t),e}(ha),Ba=Ia,La=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Da=["cross","tick","plus","hyphen","line"];function Ra(t,e,n,i,r){var a,s,c=Hr(e,r,!r,"r"),l=t.parsePoints(e.points),u=l[0];if(e.isStack)u=l[1];else if(l.length>1){var h=n.addGroup();try{for(var p=Object(o["__values"])(l),f=p.next();!f.done;f=p.next()){var d=f.value;h.addShape({type:"marker",attrs:Object(o["__assign"])(Object(o["__assign"])(Object(o["__assign"])({},c),{symbol:Er[i]||i}),d)})}}catch(g){a={error:g}}finally{try{f&&!f.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return h}return n.addShape({type:"marker",attrs:Object(o["__assign"])(Object(o["__assign"])(Object(o["__assign"])({},c),{symbol:Er[i]||i}),u)})}or("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return qr(t)}});Object(s["each"])(La,(function(t){sr("point","hollow-".concat(t),{draw:function(e,n){return Ra(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:Er[t]||t,style:{r:4.5,stroke:n,fill:null}}}})}));var Na=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="point",e.shapeType="point",e.generatePoints=!0,e}return Object(o["__extends"])(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(o["__assign"])(Object(o["__assign"])({},n),{isStack:!!this.getAdjust("stack")})},e}(dr),za=Na;function Ya(t){var e=t[0],n=1,i=[["M",e.x,e.y]];while(n2?"weight":"normal";if(t.isInCircle){var s={x:0,y:1};return"normal"===a?n=Ka(r[0],r[1],s):(i.fill=i.stroke,n=Qa(r,s)),n=this.parsePath(n),e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},i),{path:n})})}if("normal"===a)return r=this.parsePoints(r),n=jt((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:Object(o["__assign"])(Object(o["__assign"])({},i),{path:n})});var c=Ua(r[1],r[3]),l=Ua(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:Object(o["__assign"])(Object(o["__assign"])({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),sr("edge","smooth",{draw:function(t,e){var n=Hr(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(Ja(i[0],i[1]));return e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var to=1/3;function eo(t,e){var n=[];n.push({x:t.x,y:t.y*(1-to)+e.y*to}),n.push({x:e.x,y:t.y*(1-to)+e.y*to}),n.push(e);var i=[["M",t.x,t.y]];return Object(s["each"])(n,(function(t){i.push(["L",t.x,t.y])})),i}function no(t){var e=t.x,n=t.y,i=t.y0;return Object(s["isArray"])(n)?n.map((function(t,n){return{x:Object(s["isArray"])(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function io(t){var e,n,i,r=t.x,a=t.y,c=t.y0,l=t.size;Object(s["isArray"])(a)?(e=Object(o["__read"])(a,2),n=e[0],i=e[1]):(n=c,i=a);var u=r+l/2,h=r-l/2;return[{x:r,y:n},{x:r,y:i},{x:h,y:n},{x:u,y:n},{x:h,y:i},{x:u,y:i}]}function ro(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]]}sr("edge","vhv",{draw:function(t,e){var n=Hr(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(eo(i[0],i[1]));return e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),sr("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Oa(t)},draw:function(t,e){var n=Hr(t,!1,!0),i=this.parsePath(Ma(t.points,t.nextPoints,!1)),r=e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),sr("interval","hollow-rect",{draw:function(t,e){var n=Hr(t,!0,!1),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var a=Wr(t),s=wa(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},a),{path:s}),zIndex:-1,name:$i})}var c=this.parsePath(ja(t.points)),l=i.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},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}}}}),sr("interval","line",{getPoints:function(t){return no(t)},draw:function(t,e){var n=Hr(t,!0,!1,"lineWidth"),i=At(Object(o["__assign"])({},n),["fill"]),r=this.parsePath(ja(t.points,!1)),a=e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},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}}}}),sr("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Oa(t)},draw:function(t,e){var n=Hr(t,!1,!0),i=this.parsePath(Ma(t.points,t.nextPoints,!0)),r=e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),sr("interval","tick",{getPoints:function(t){return io(t)},draw:function(t,e){var n=Hr(t,!0,!1),i=this.parsePath(ro(t.points)),r=e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},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 ao=function(t,e,n){var i,r=t.x,a=t.y,o=e.x,s=e.y;switch(n){case"hv":i=[{x:o,y:a}];break;case"vh":i=[{x:r,y:s}];break;case"hvh":var c=(o+r)/2;i=[{x:c,y:a},{x:c,y:s}];break;case"vhv":var l=(a+s)/2;i=[{x:r,y:l},{x:o,y:l}];break;default:break}return i};function oo(t,e){var n=[];return Object(s["each"])(t,(function(i,r){var a=t[r+1];if(n.push(i),a){var o=ao(i,a,e);n=n.concat(o)}})),n}function so(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function co(t,e){var n=Gr(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(s["each"])(n,(function(t){var n=oo(t,e);i=i.concat(so(n))})),Object(o["__assign"])(Object(o["__assign"])({},Hr(t,!0,!1,"lineWidth")),{path:i})}function lo(t){var e=Object(s["isArray"])(t)?t:[t],n=e[0],i=e[e.length-1],r=e.length>1?e[1]:n,a=e.length>3?e[3]:i,o=e.length>2?e[2]:r;return{min:n,max:i,min1:r,max1:a,median:o}}function uo(t,e,n){var i,r=n/2;if(Object(s["isArray"])(e)){var a=lo(e),o=a.min,c=a.max,l=a.median,u=a.min1,h=a.max1,p=t-r,f=t+r;i=[[p,c],[f,c],[t,c],[t,h],[p,u],[p,h],[f,h],[f,u],[t,u],[t,o],[p,o],[f,o],[p,l],[f,l]]}else{e=Object(s["isNil"])(e)?.5:e;var d=lo(t),g=(o=d.min,c=d.max,l=d.median,u=d.min1,h=d.max1,e-r),v=e+r;i=[[o,g],[o,v],[o,e],[u,e],[u,g],[u,v],[h,v],[h,g],[h,e],[c,e],[c,g],[c,v],[l,g],[l,v]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function ho(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 po(t){var e=Object(s["isArray"])(t)?t:[t],n=e.sort((function(t,e){return e-t}));return St(n,4,n[n.length-1])}function fo(t,e,n){var i=po(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 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],["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 vo(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(s["clamp"])(e,0,Math.min(n,i))),r/=2;var a=(t[0].x+t[2].x)/2,o=(t[0].y+t[2].y)/2;return{x:a-r,y:o-r,width:2*r,height:2*r}}Object(s["each"])(["hv","vh","hvh","vhv"],(function(t){sr("line",t,{draw:function(e,n){var i=co(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return Ur(e,t)}})})),Object(s["each"])(Da,(function(t){sr("point",t,{draw:function(e,n){return Ra(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:Er[t],style:{r:4.5,stroke:n,fill:null}}}})})),sr("point","image",{draw:function(t,e){var n,i,r=Hr(t,!1,!1,"r").r,a=this.parsePoints(t.points),s=a[0];if(t.isStack)s=a[1];else if(a.length>1){var c=e.addGroup();try{for(var l=Object(o["__values"])(a),u=l.next();!u.done;u=l.next()){var h=u.value;c.addShape("image",{attrs:{x:h.x-r/2,y:h.y-r,width:r,height:r,img:t.shape[1]}})}}catch(p){n={error:p}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return c}return e.addShape("image",{attrs:{x:s.x-r/2,y:s.y-r,width:r,height:r,img:t.shape[1]}})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4.5,fill:e}}}}),Object(s["each"])(La,(function(t){sr("point",t,{draw:function(e,n){return Ra(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:Er[t]||t,style:{r:4.5,fill:n}}}})})),sr("schema","box",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return uo(e,n,i)},draw:function(t,e){var n=Hr(t,!0,!1),i=this.parsePath(ho(t.points)),r=e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e-6,e-3,e,e+3,e+6],r=uo(t,i,n);return[["M",r[0].x+1,r[0].y],["L",r[1].x-1,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["M",r[4].x,r[4].y],["L",r[5].x,r[5].y],["L",r[6].x,r[6].y],["L",r[7].x,r[7].y],["L",r[4].x,r[4].y],["Z"],["M",r[8].x,r[8].y],["L",r[9].x,r[9].y],["M",r[10].x+1,r[10].y],["L",r[11].x-1,r[11].y],["M",r[12].x,r[12].y],["L",r[13].x,r[13].y]]},style:{r:6,lineWidth:1,stroke:e}}}}),sr("schema","candle",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return fo(e,n,i)},draw:function(t,e){var n=Hr(t,!0,!0),i=this.parsePath(go(t.points)),r=e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:i,name:"schema"})});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){var i=[e+7.5,e+3,e-3,e-7.5],r=fo(t,i,n);return[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],["M",r[2].x,r[2].y],["L",r[3].x,r[3].y],["L",r[4].x,r[4].y],["L",r[5].x,r[5].y],["Z"],["M",r[6].x,r[6].y],["L",r[7].x,r[7].y]]},style:{lineWidth:1,stroke:e,fill:e,r:6}}}}),sr("polygon","square",{draw:function(t,e){if(!Object(s["isEmpty"])(t.points)){var n=Hr(t,!0,!0),i=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),vo(i,t.size)),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),sr("violin","smooth",{draw:function(t,e){var n=Hr(t,!0,!0),i=this.parsePath(Xr(t.points));return e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{stroke:null,r:4,fill:e}}}}),sr("violin","hollow",{draw:function(t,e){var n=Hr(t,!0,!1),i=this.parsePath(Vr(t.points));return e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}}),sr("violin","hollow-smooth",{draw:function(t,e){var n=Hr(t,!0,!1),i=this.parsePath(Xr(t.points));return e.addShape("path",{attrs:Object(o["__assign"])(Object(o["__assign"])({},n),{path:i})})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4,fill:null,stroke:e}}}});var yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.getLabelValueDir=function(t){var e="y",n=t.points;return n[0][e]<=n[2][e]?1:-1},e.prototype.getLabelOffsetPoint=function(e,n,i,r){var a,s=t.prototype.getLabelOffsetPoint.call(this,e,n,i),c=this.getCoordinate(),l=c.isTransposed,u=l?"x":"y",h=this.getLabelValueDir(e.mappingData);return s=Object(o["__assign"])(Object(o["__assign"])({},s),(a={},a[u]=s[u]*h,a)),c.isReflect("x")&&(s=Object(o["__assign"])(Object(o["__assign"])({},s),{x:-1*s.x})),c.isReflect("y")&&(s=Object(o["__assign"])(Object(o["__assign"])({},s),{y:-1*s.y})),s},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),i=e.theme;return Object(s["deepMix"])({},n,i.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,i){var r,a,o,c,l=this.getCoordinate(),u=l.isTransposed,h=e.points,p=l.convert(h[0]),f=l.convert(h[2]),d=this.getLabelValueDir(e),g=Object(s["isArray"])(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=Object(s["get"])(e,"nextPoints"),y=Object(s["get"])(e,"points");if(v){var b=l.convert(y[0]),m=l.convert(y[1]),x=l.convert(v[0]),O=l.convert(v[1]);u?(r=Math.min(x.y,b.y),o=Math.max(x.y,b.y),a=(m.x+O.x)/2,c=(b.x+x.x)/2):(r=Math.min((m.y+O.y)/2,(b.y+x.y)/2),o=Math.max((m.y+O.y)/2,(b.y+x.y)/2),a=O.x,c=b.x)}else r=Math.min(f.y,p.y),o=Math.max(f.y,p.y),a=f.x,c=p.x}else r=Math.min(f.y,p.y),o=Math.max(f.y,p.y),a=f.x,c=p.x;switch(i){case"right":t.x=a,t.y=(r+o)/2,t.textAlign=Object(s["get"])(t,"textAlign",d>0?"left":"right");break;case"left":t.x=c,t.y=(r+o)/2,t.textAlign=Object(s["get"])(t,"textAlign",d>0?"left":"right");break;case"bottom":u&&(t.x=(a+c)/2),t.y=o,t.textAlign=Object(s["get"])(t,"textAlign","center"),t.textBaseline=Object(s["get"])(t,"textBaseline",d>0?"bottom":"top");break;case"middle":u&&(t.x=(a+c)/2),t.y=(r+o)/2,t.textAlign=Object(s["get"])(t,"textAlign","center"),t.textBaseline=Object(s["get"])(t,"textBaseline","middle");break;case"top":u&&(t.x=(a+c)/2),t.y=r,t.textAlign=Object(s["get"])(t,"textAlign","center"),t.textBaseline=Object(s["get"])(t,"textBaseline",d>0?"bottom":"top");break;default:break}},e}(kr),bo=yo,mo=Math.PI/2,xo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(s["isNumber"])(t))n=t;else if(Object(s["isString"])(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(s["map"])(n,(function(t){if(t&&i){var e=i.scale(Object(s["get"])(t.data,i.field));return Object(o["__assign"])(Object(o["__assign"])({},t),{percent:e})}return t}))},e.prototype.getLabelAlign=function(t){var e,n=this.getCoordinate();if(t.labelEmit)e=t.angle<=Math.PI/2&&t.angle>=-Math.PI/2?"left":"right";else if(n.isTransposed){var 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,a=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 o=t.offset*r,s=this.getPointAngle(i),c=t.labelEmit,l=this.getCirclePoint(s,o,i,c);return 0===l.r?l.content="":(l.content=a,l.angle=s,l.color=e.color),l.rotate=t.autoRotate?this.getLabelRotate(s,o,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(s["isArray"])(t.x)||Object(s["isArray"])(t.y)?{x:Object(s["isArray"])(t.x)?t.x[e]:t.x,y:Object(s["isArray"])(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Lt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),a=r.getCenter(),s=It(r,n);if(0===s)return Object(o["__assign"])(Object(o["__assign"])({},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+mo;return n&&(i-=mo),i&&(i>mo?i-=Math.PI:i<-mo&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return Object(s["each"])(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}(kr),Oo=xo,jo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(o["__extends"])(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(s["deepMix"])({},i,Object(s["get"])(this.geometry.theme,"pieLabels",{}))},e.prototype.getLabelOffset=function(e){return t.prototype.getLabelOffset.call(this,e)||0},e.prototype.getLabelRotate=function(t,e,n){var 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(s["isArray"])(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(s["isArray"])(t.x)?t.x[1]:t.x,y:t.y[1]},a=Lt(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=a;else{var o=Lt(n,r);a>=o&&(o+=2*Math.PI),e=a+(o-a)/2}return e},e.prototype.getCirclePoint=function(t,e){var n=this.getCoordinate(),i=n.getCenter(),r=n.getRadius()+e;return Object(o["__assign"])(Object(o["__assign"])({},xt(i.x,i.y,r,t)),{angle:t,r:r})},e}(Oo),_o=jo,wo=4;function Co(t,e,n,i,r,a){var c,l,u,h=!0,p=i.start,f=i.end,d=Math.min(p.y,f.y),g=Math.abs(p.y-f.y),v=0,y=Number.MIN_VALUE,b=e.map((function(t){return t.y>v&&(v=t.y),t.yg&&(g=v-d);while(h){b.forEach((function(t){var e=(Math.min.apply(y,t.targets)+Math.max.apply(y,t.targets))/2;t.pos=Math.min(Math.max(y,e-t.size/2),g-t.size)})),h=!1,u=b.length;while(u--)if(u>0){var m=b[u-1],x=b[u];m.pos+m.size>x.pos&&(m.size+=x.size,m.targets=m.targets.concat(x.targets),m.pos+m.size>g&&(m.pos=g-m.size),b.splice(u,1),h=!0)}}u=0,b.forEach((function(t){var i=d+n/2;t.targets.forEach((function(){e[u].y=t.pos+i,i+=n,u++}))}));var O={};try{for(var j=Object(o["__values"])(t),_=j.next();!_.done;_=j.next()){var w=_.value;O[w.get("id")]=w}}catch(C){c={error:C}}finally{try{_&&!_.done&&(l=j.return)&&l.call(j)}finally{if(c)throw c.error}}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e0){var l=14,u=o+r,h=2*u+2*l,p={start:a.start,end:a.end},f=[[],[]];t.forEach((function(t){t&&("right"===t.textAlign?f[0].push(t):f[1].push(t))})),f.forEach((function(t,n){var i=h/l;t.length>i&&(t.sort((function(t,e){return e["..percent"]-t["..percent"]})),t.splice(i,t.length-i)),t.sort((function(t,e){return t.y-e.y})),Co(e,t,l,p,c,n)}))}Object(s["each"])(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=xt(c.x,c.y,o,n),r=xt(c.x,c.y,o+e/2,n),a=t.x+Object(s["get"])(t,"offsetX",0),l=t.y+Object(s["get"])(t,"offsetY",0),u={x:a-Math.cos(n)*wo,y:l-Math.sin(n)*wo};Object(s["isObject"])(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M ".concat(i.x),"".concat(i.y," Q").concat(r.x),"".concat(r.y," ").concat(u.x),u.y].join(",")}}))}}function So(t,e,n){var i=t.filter((function(t){return!t.invisible}));i.sort((function(t,e){return t.y-e.y}));var r,a=!0,o=n.minY,s=n.maxY,c=Math.abs(o-s),l=0,u=Number.MIN_VALUE,h=i.map((function(t){return t.y>l&&(l=t.y),t.yc&&(c=l-o);while(a){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)})),a=!1,r=h.length;while(r--)if(r>0){var p=h[r-1],f=h[r];p.pos+p.size>f.pos&&(p.size+=f.size,p.targets=p.targets.concat(f.targets),p.pos+p.size>c&&(p.pos=c-p.size),h.splice(r,1),a=!0)}}r=0,h.forEach((function(t){var n=o+e/2;t.targets.forEach((function(){i[r].y=t.pos+n,n+=e,r++}))}))}var Ao=4;function ko(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,a=t.offset,o=xt(n.x,n.y,i,r),c=t.x+Object(s["get"])(t,"offsetX",0)*(Math.cos(r)>0?1:-1),l=t.y+Object(s["get"])(t,"offsetY",0)*(Math.sin(r)>0?1:-1),u={x:c-Math.cos(r)*Ao,y:l-Math.sin(r)*Ao},h=t.labelLine.smooth,p=[],f=u.x-n.x,d=u.y-n.y,g=Math.atan(d/f);if(f<0&&(g+=Math.PI),!1===h){Object(s["isObject"])(t.labelLine)||(t.labelLine={});var v=0;(r<0&&r>-Math.PI/2||r>1.5*Math.PI)&&u.y>o.y&&(v=1),r>=0&&ro.y&&(v=1),r>=Math.PI/2&&ru.y&&(v=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&o.y>u.y&&(v=1);var y=a/2>4?4:Math.max(a/2-1,0),b=xt(n.x,n.y,i+y,r),m=xt(n.x,n.y,i+a/2,g),x=0;p.push("M ".concat(o.x," ").concat(o.y)),p.push("L ".concat(b.x," ").concat(b.y)),p.push("A ".concat(n.x," ").concat(n.y," 0 ").concat(x," ").concat(v," ").concat(m.x," ").concat(m.y)),p.push("L ".concat(u.x," ").concat(u.y))}else{b=xt(n.x,n.y,i+(a/2>4?4:Math.max(a/2-1,0)),r);var O=o.xMath.pow(Math.E,-16)&&p.push.apply(p,["C",u.x+4*O,u.y,2*b.x-o.x,2*b.y-o.y,o.x,o.y]),p.push("L ".concat(o.x," ").concat(o.y))}t.labelLine.path=p.join(" ")}}function Fo(t,e,n,i){var r,a,c=Object(s["filter"])(t,(function(t){return!Object(s["isNil"])(t)})),l=e[0]&&e[0].get("coordinate");if(l){var u=l.getCenter(),h=l.getRadius(),p={};try{for(var f=Object(o["__values"])(e),d=f.next();!d.done;d=f.next()){var g=d.value;p[g.get("id")]=g}}catch(M){r={error:M}}finally{try{d&&!d.done&&(a=f.return)&&a.call(f)}finally{if(r)throw r.error}}var v=Object(s["get"])(c[0],"labelHeight",14),y=Object(s["get"])(c[0],"offset",0);if(!(y<=0)){var b="left",m="right",x=Object(s["groupBy"])(c,(function(t){return t.xn&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s["each"])(t,(function(t,e){e+1>n&&(p[t.id].set("visible",!1),t.invisible=!0)}))),So(t,v,C)})),Object(s["each"])(x,(function(t,e){Object(s["each"])(t,(function(t){var n=e===m,i=p[t.id],r=i.getChildByIndex(0);if(r){var a=h+y,o=t.y-u.y,s=Math.pow(a,2),c=Math.pow(o,2),f=s-c>0?s-c:0,d=Math.sqrt(f),g=Math.abs(Math.cos(t.angle)*a);t.x=n?u.x+Math.max(d,g):u.x-Math.max(d,g)}r&&(r.attr("y",t.y),r.attr("x",t.x)),ko(t,l)}))}))}}}var Eo=4,To=4,Po=4;function Io(t,e,n){var i=e.getCenter(),r=e.getRadius(),a={x:t.x-(n?Po:-Po),y:t.y},o=xt(i.x,i.y,r+Eo,t.angle),c={x:a.x,y:a.y},l={x:o.x,y:o.y},u=xt(i.x,i.y,r,t.angle),h="";if(a.y!==o.y){var p=n?4:-4;c.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(c.x=Math.max(o.x,a.x-p),a.y0&&t.angleo.y?l.y=c.y:(l.y=o.y,l.x=Math.max(l.x,c.x-p))),t.angle>Math.PI/2&&(c.x=Math.min(o.x,a.x-p),a.y>o.y?l.y=c.y:(l.y=o.y,l.x=Math.min(l.x,c.x-p))),t.angle<-Math.PI/2&&(c.x=Math.min(o.x,a.x-p),a.yl.x||t.x===l.x&&t.y>l.y,i=Object(s["isNil"])(t.offsetX)?To:t.offsetX,r=xt(l.x,l.y,u+Eo,t.angle),a=v+i;t.x=l.x+(n?1:-1)*(u+a),t.y=r.y}}}));var y=c.start,b=c.end,m="left",x="right",O=Object(s["groupBy"])(t,(function(t){return t.xj&&(j=Math.min(e,Math.abs(y.y-b.y)))}));var _={minX:y.x,maxX:b.x,minY:l.y-j/2,maxY:l.y+j/2};Object(s["each"])(O,(function(t,e){var n=j/g;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(s["each"])(t,(function(t,e){e>n&&(h[t.id].set("visible",!1),t.invisible=!0)}))),So(t,g,_)}));var w=_.minY,C=_.maxY;Object(s["each"])(O,(function(t,e){var n=e===x;Object(s["each"])(t,(function(t){var e=Object(s["get"])(h,t&&[t.id]);if(e)if(t.yC)e.set("visible",!1);else{var i=e.getChildByIndex(0),r=i.getCanvasBBox(),a={x:n?r.x:r.maxX,y:r.y+r.height/2};vr(i,t.x-a.x,t.y-a.y),t.labelLine&&Io(t,c,n)}}))}))}}function Lo(t,e,n,i){Object(s["each"])(e,(function(t){var e=i.minX,n=i.minY,r=i.maxX,a=i.maxY,o=t.getCanvasBBox(),s=o.minX,c=o.minY,l=o.maxX,u=o.maxY,h=o.x,p=o.y,f=o.width,d=o.height,g=h,v=p;(sr?g=r-f:l>r&&(g-=l-r),c>a?v=a-d:u>a&&(v-=u-a),g===h&&v===p||vr(t,g-h,v-p)}))}function Do(t,e,n,i){Object(s["each"])(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minXr.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}var Ro=100,No=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),a=Math.round(t.minY),o=Math.round(t.maxY),s=i;s<=r;s+=1)if(n[s]){if(s===i||s===r){for(var c=a;c<=o;c++)if(n[s][c]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),i=Math.round(t.maxX),r=Math.round(t.minY),a=Math.round(t.maxY),o=n;o<=i;o+=1)e[o]||(e[o]={});for(o=n;o<=i;o+=this.xGap){for(var s=r;s<=a;s+=this.yGap)e[o][s]=!0;e[o][a]=!0}if(1!==this.yGap)for(o=r;o<=a;o+=1)e[n][o]=!0,e[i][o]=!0;if(1!==this.xGap)for(o=n;o<=i;o+=1)e[o][r]=!0,e[o][a]=!0},t.prototype.destroy=function(){this.bitmap={}},t}();function zo(t,e,n){void 0===n&&(n=Ro);var i,r=-1,a=t.attr(),o=a.x,s=a.y,c=t.getCanvasBBox(),l=Math.sqrt(c.width*c.width+c.height*c.height),u=-r,h=0,p=0,f=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(p))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 Wo(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 qo(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?[Wo(e[0],n,e[0]),Wo(e[1],n,e[0]),Wo(e[2],n,e[0]),Wo(e[3],n,e[0])]:e}function $o(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(Xo([t.x,t.y],e))})),{min:Math.min.apply(Math,Object(o["__spreadArray"])([],Object(o["__read"])(n),!1)),max:Math.max.apply(Math,Object(o["__spreadArray"])([],Object(o["__read"])(n),!1))}}function Uo(t,e){return t.max>e.min&&t.mint.x+t.width+n||e.x+e.widtht.y+t.height+n||e.y+e.height4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function n(t,e,n){void 0===e&&(e=0),void 0===n&&(n={x:0,y:0});var i=t.x,r=t.y;return{x:(i-n.x)*Math.cos(-e)+(r-n.y)*Math.sin(-e)+n.x,y:(n.x-i)*Math.sin(-e)+(r-n.y)*Math.cos(-e)+n.y}}function i(t){var e=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],i=t.rotation;return i?[n(e[0],i,e[0]),n(e[1],i,e[0]),n(e[2],i,e[0]),n(e[3],i,e[0])]:e}function r(e,n){if(e.length>4)return{min:0,max:0};var i=[];return e.forEach((function(e){i.push(t([e.x,e.y],n))})),{min:Math.min.apply(null,i),max:Math.max.apply(null,i)}}function a(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=a.height:o.width>=a.width}function fs(t,e,n){var i=!!t.getAdjust("stack");return i||e.every((function(e,i){var r=n[i];return ps(t,e,r)}))}function ds(t,e,n){var i=t.coordinate,r=Ft.fromObject(n.getBBox()),a=xr(e);i.isTransposed?a.attr({x:r.minX+r.width/2,textAlign:"center"}):a.attr({y:r.minY+r.height/2,textBaseline:"middle"})}function gs(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),a=null===r||void 0===r?void 0:r.geometry;if(a&&"interval"===a.type){var o=fs(a,e,n);o&&n.forEach((function(t,n){var i=e[n];ds(a,i,t)}))}}}function vs(t){var e=500,n=[],i=Math.max(Math.floor(t.length/e),1);return Object(s["each"])(t,(function(t,e){e%i===0?n.push(t):t.set("visible",!1)})),n}function ys(t,e,n){var i;if(0!==n.length){var r=null===(i=n[0])||void 0===i?void 0:i.get("element"),a=null===r||void 0===r?void 0:r.geometry;if(a&&"interval"===a.type){var c,l=vs(e),u=Object(o["__read"])(a.getXYFields(),1),h=u[0],p=[],f=[],d=Object(s["groupBy"])(l,(function(t){return t.get("data")[h]})),g=Object(s["uniq"])(Object(s["map"])(l,(function(t){return t.get("data")[h]})));l.forEach((function(t){t.set("visible",!0)}));var v=function(t){t&&(t.length&&f.push(t.pop()),f.push.apply(f,Object(o["__spreadArray"])([],Object(o["__read"])(t),!1)))};Object(s["size"])(g)>0&&(c=g.shift(),v(d[c])),Object(s["size"])(g)>0&&(c=g.pop(),v(d[c])),Object(s["each"])(g.reverse(),(function(t){v(d[t])}));while(f.length>0){var y=f.shift();y.get("visible")&&(_r(y,p)?y.set("visible",!1):p.push(y))}}}}function bs(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,Object(o["__spreadArray"])([],Object(o["__read"])(r),!1)),i}function ms(t,e,n){return t.some((function(t){return n(t,e)}))}function xs(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 Os(t,e){return ms(t,e,(function(t,e){var n=xr(t),i=xr(e);return xs(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function js(t,e,n,i,r){var a,c;if(0!==n.length){var l=null===(a=n[0])||void 0===a?void 0:a.get("element"),u=null===l||void 0===l?void 0:l.geometry;if(u&&"point"===u.type){var h=Object(o["__read"])(u.getXYFields(),2),p=h[0],f=h[1],d=Object(s["groupBy"])(e,(function(t){return t.get("data")[p]})),g=[],v=r&&r.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;Object(s["map"])(Object(s["keys"])(d).reverse(),(function(t){var e=bs(u,d[t]);while(e.length){var n=e.shift(),i=xr(n);if(ms(g,n,(function(t,e){return t.get("data")[p]===e.get("data")[p]&&t.get("data")[f]===e.get("data")[f]})))i.set("visible",!1);else{var r=Os(g,n),a=!1;r&&(i.attr("y",i.attr("y")+2*v),a=Os(g,n)),a?i.set("visible",!1):g.push(n)}}}))}}}function _s(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,Object(o["__spreadArray"])([],Object(o["__read"])(r),!1)),i}function ws(t,e,n){return t.some((function(t){return n(t,e)}))}function Cs(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 Ms(t,e){return ws(t,e,(function(t,e){var n=xr(t),i=xr(e);return Cs(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function Ss(t,e,n,i,r){var a,c;if(0!==n.length){var l=null===(a=n[0])||void 0===a?void 0:a.get("element"),u=null===l||void 0===l?void 0:l.geometry;if(u&&!(["path","line","area"].indexOf(u.type)<0)){var h=Object(o["__read"])(u.getXYFields(),2),p=h[0],f=h[1],d=Object(s["groupBy"])(e,(function(t){return t.get("data")[p]})),g=[],v=r&&r.offset||(null===(c=t[0])||void 0===c?void 0:c.offset)||12;Object(s["map"])(Object(s["keys"])(d).reverse(),(function(t){var e=_s(u,d[t]);while(e.length){var n=e.shift(),i=xr(n);if(ws(g,n,(function(t,e){return t.get("data")[p]===e.get("data")[p]&&t.get("data")[f]===e.get("data")[f]})))i.set("visible",!1);else{var r=Ms(g,n),a=!1;r&&(i.attr("y",i.attr("y")+2*v),a=Ms(g,n)),a?i.set("visible",!1):g.push(n)}}}))}}}function As(){return cs||(cs=document.createElement("canvas").getContext("2d")),cs}var ks=Object(s["memoize"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant,c=As();return c.font=[a,o,r,"".concat(n,"px"),i].join(" "),c.measureText(Object(s["isString"])(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(o["__spreadArray"])([t],Object(o["__read"])(Object(s["values"])(e)),!1).join("")})),Fs=function(t,e,n){var i,r=16,a=ks("...",n);i=Object(s["isString"])(t)?t:Object(s["toString"])(t);var o,c,l=e,u=[];if(ks(t,n)<=e)return t;while(1){if(o=i.substr(0,r),c=ks(o,n),c+a>l&&c>l)break;if(u.push(o),l-=c,i=i.substr(r),!i)return u.join("")}while(1){if(o=i.substr(0,1),c=ks(o,n),c+a>l)break;if(u.push(o),l-=c,i=i.substr(1),!i)return u.join("")}return"".concat(u.join(""),"...")};function Es(t,e,n,i,r){if(!(e.length<=0)){var a=(null===r||void 0===r?void 0:r.direction)||["top","right","bottom","left"],o=(null===r||void 0===r?void 0:r.action)||"translate",c=(null===r||void 0===r?void 0:r.margin)||0,l=e[0].get("coordinate");if(l){var u=Rt(l,c),h=u.minX,p=u.minY,f=u.maxX,d=u.maxY;Object(s["each"])(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,r=e.maxX,c=e.maxY,l=e.x,u=e.y,g=e.width,v=e.height,y=l,b=u;if(a.indexOf("left")>=0&&(n=0&&(i=0&&(n>f?y=f-g:r>f&&(y-=r-f)),a.indexOf("bottom")>=0&&(i>d?b=d-v:c>d&&(b-=c-d)),y!==l||b!==u){var m=y-l;if("translate"===o)vr(t,m,b-u);else if("ellipsis"===o){var x=t.findAll((function(t){return"text"===t.get("type")}));x.forEach((function(t){var e=Object(s["pick"])(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=Fs(t.attr("text"),n.width-Math.abs(m),e);t.attr("text",i)}))}else t.hide()}}))}}}function Ts(t,e,n){var i={fillOpacity:Object(s["isNil"])(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(s["isNil"])(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(s["isNil"])(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function Ps(t,e,n){var i={fillOpacity:0,strokeOpacity:0,opacity:0},r=e.easing,a=e.duration,o=e.delay;t.animate(i,a,r,(function(){t.remove(!0)}),o)}function Is(t,e,n){var i,r=Object(o["__read"])(e,2),a=r[0],s=r[1];return t.applyToMatrix([a,s,1]),"x"===n?(t.setMatrix(K["ext"].transform(t.getMatrix(),[["t",-a,-s],["s",.01,1],["t",a,s]])),i=K["ext"].transform(t.getMatrix(),[["t",-a,-s],["s",100,1],["t",a,s]])):"y"===n?(t.setMatrix(K["ext"].transform(t.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]])),i=K["ext"].transform(t.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])):"xy"===n&&(t.setMatrix(K["ext"].transform(t.getMatrix(),[["t",-a,-s],["s",.01,.01],["t",a,s]])),i=K["ext"].transform(t.getMatrix(),[["t",-a,-s],["s",100,100],["t",a,s]])),i}function Bs(t,e,n,i,r){var a,o,s=n.start,c=n.end,l=n.getWidth(),u=n.getHeight();"y"===r?(a=s.x+l/2,o=i.ys.x?i.x:s.x,o=s.y+u/2):"xy"===r&&(n.isPolar?(a=n.getCenter().x,o=n.getCenter().y):(a=(s.x+c.x)/2,o=(s.y+c.y)/2));var h=Is(t,[a,o],r);t.animate({matrix:h},e)}function Ls(t,e,n){var i=n.coordinate,r=n.minYPoint;Bs(t,e,i,r,"x")}function Ds(t,e,n){var i=n.coordinate,r=n.minYPoint;Bs(t,e,i,r,"y")}function Rs(t,e,n){var i=n.coordinate,r=n.minYPoint;Bs(t,e,i,r,"xy")}function Ns(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function zs(t,e,n){var i=n.toAttrs,r=i.x,a=i.y;delete i.x,delete i.y,t.attr(i),t.animate({x:r,y:a},e)}function Ys(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,a=r.points,o=a[0].y-a[1].y>0?i.maxX:i.minX,s=(i.minY+i.maxY)/2;t.applyToMatrix([o,s,1]);var c=K["ext"].transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(c),t.animate({matrix:K["ext"].transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)}function Gs(t,e,n){var i=t.getBBox(),r=t.get("origin").mappingData,a=(i.minX+i.maxX)/2,o=r.points,s=o[0].y-o[1].y<=0?i.maxY:i.minY;t.applyToMatrix([a,s,1]);var c=K["ext"].transform(t.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);t.setMatrix(c),t.animate({matrix:K["ext"].transform(t.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},e)}function Vs(t,e){var n,i=Object(ca["getArcParams"])(t,e),r=i.startAngle,a=i.endAngle;return!Object(s["isNumberEqual"])(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(s["isNumberEqual"])(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),0===e[5]&&(n=Object(o["__read"])([a,r],2),r=n[0],a=n[1]),Object(s["isNumberEqual"])(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(s["isNumberEqual"])(a,-.5*Math.PI)&&!Object(s["isNumberEqual"])(r,a)&&(a=1.5*Math.PI),{startAngle:r,endAngle:a}}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 Hs(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 a=r[0],c=r.length>1?r[1]:r[0],l=t.indexOf(a),u=t.indexOf(c),h=Xs(t[l-1]),p=Xs(t[u-1]),f=Vs(h,a),d=f.startAngle,g=f.endAngle,v=Vs(p,c),y=v.startAngle,b=v.endAngle;Object(s["isNumberEqual"])(d,y)&&Object(s["isNumberEqual"])(g,b)?(n=d,i=g):(n=Math.min(d,y),i=Math.max(g,b));var m=a[1],x=r[r.length-1][1];return m=0;c--){var l=this.getFacetsByLevel(t,c);try{for(var u=(e=void 0,Object(o["__values"])(l)),h=u.next();!h.done;h=u.next()){var p=h.value;this.isLeaf(p)||(p.originColIndex=p.columnIndex,p.columnIndex=this.getRegionIndex(p.children),p.columnValuesLength=r.length)}}catch(f){e={error:f}}finally{try{h&&!h.done&&(n=u.return)&&n.call(u)}finally{if(e)throw e.error}}}},e.prototype.getFacetsByLevel=function(t,e){var n=[];return t.forEach((function(t){t.rowIndex===e&&n.push(t)})),n},e.prototype.getRegionIndex=function(t){var e=t[0],n=t[t.length-1];return(n.columnIndex-e.columnIndex)/2+e.columnIndex},e.prototype.isLeaf=function(t){return!t.children||!t.children.length},e.prototype.getRows=function(){return this.cfg.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var i=this,r=this.cfg.fields,a=r.length;if(!(a=n){var r=i.parsePosition([t[c],t[o.field]]);r&&p.push(r)}if(t[c]===h)return!1})),p},e.prototype.parsePercentPosition=function(t){var e=parseFloat(t[0])/100,n=parseFloat(t[1])/100,i=this.view.getCoordinate(),r=i.start,a=i.end,o={x:Math.min(r.x,a.x),y:Math.min(r.y,a.y)},s=i.getWidth()*e+o.x,c=i.getHeight()*n+o.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(),a={x:Math.min(e.x,n.x),y:Math.min(e.y,n.y)};return{x:a.x,y:a.y,minX:a.x,minY:a.y,maxX:a.x+i,maxY:a.y+r,width:i,height:r}},e.prototype.getAnnotationCfg=function(t,e,n){var i=this,r=this.view.getCoordinate(),a=this.view.getCanvas(),c={};if(Object(s["isNil"])(e))return null;var l=e.start,u=e.end,h=e.position,p=this.parsePosition(l),f=this.parsePosition(u),d=this.parsePosition(h);if(!(!["arc","image","line","region","regionFilter"].includes(t)||p&&f))return null;if(["text","dataMarker","html"].includes(t)&&!d)return null;if("arc"===t){var g=e,v=(g.start,g.end,Object(o["__rest"])(g,["start","end"])),y=Lt(r,p),b=Lt(r,f);y>b&&(b=2*Math.PI+b),c=Object(o["__assign"])(Object(o["__assign"])({},v),{center:r.getCenter(),radius:It(r,p),startAngle:y,endAngle:b})}else if("image"===t){var m=e;m.start,m.end,v=Object(o["__rest"])(m,["start","end"]);c=Object(o["__assign"])(Object(o["__assign"])({},v),{start:p,end:f,src:e.src})}else if("line"===t){var x=e;x.start,x.end,v=Object(o["__rest"])(x,["start","end"]);c=Object(o["__assign"])(Object(o["__assign"])({},v),{start:p,end:f,text:Object(s["get"])(e,"text",null)})}else if("region"===t){var O=e;O.start,O.end,v=Object(o["__rest"])(O,["start","end"]);c=Object(o["__assign"])(Object(o["__assign"])({},v),{start:p,end:f})}else if("text"===t){var j=this.view.getData(),_=e,w=(_.position,_.content),C=(v=Object(o["__rest"])(_,["position","content"]),w);Object(s["isFunction"])(w)&&(C=w(j)),c=Object(o["__assign"])(Object(o["__assign"])(Object(o["__assign"])({},d),v),{content:C})}else if("dataMarker"===t){var M=e,S=(M.position,M.point),A=M.line,k=M.text,F=M.autoAdjust,E=M.direction;v=Object(o["__rest"])(M,["position","point","line","text","autoAdjust","direction"]);c=Object(o["__assign"])(Object(o["__assign"])(Object(o["__assign"])({},v),d),{coordinateBBox:this.getCoordinateBBox(),point:S,line:A,text:k,autoAdjust:F,direction:E})}else if("dataRegion"===t){var T=e,P=T.start,I=T.end,B=T.region,L=(k=T.text,T.lineLength);v=Object(o["__rest"])(T,["start","end","region","text","lineLength"]);c=Object(o["__assign"])(Object(o["__assign"])({},v),{points:this.getRegionPoints(P,I),region:B,text:k,lineLength:L})}else if("regionFilter"===t){var D=e,R=(D.start,D.end,D.apply),N=D.color,z=(v=Object(o["__rest"])(D,["start","end","apply","color"]),this.view.geometries),Y=[],G=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return G(t)})):Y.push(t))};Object(s["each"])(z,(function(t){R?Object(s["contains"])(R,t.type)&&Object(s["each"])(t.elements,(function(t){G(t.shape)})):Object(s["each"])(t.elements,(function(t){G(t.shape)}))})),c=Object(o["__assign"])(Object(o["__assign"])({},v),{color:N,shapes:Y,start:p,end:f})}else if("shape"===t){var V=e,X=V.render,H=Object(o["__rest"])(V,["render"]),W=function(t){if(Object(s["isFunction"])(e.render))return X(t,i.view,{parsePosition:i.parsePosition.bind(i)})};c=Object(o["__assign"])(Object(o["__assign"])({},H),{render:W})}else if("html"===t){var q=e,$=q.html,U=(q.position,H=Object(o["__rest"])(q,["html","position"]),function(t){return Object(s["isFunction"])($)?$(t,i.view):$});c=Object(o["__assign"])(Object(o["__assign"])(Object(o["__assign"])({},H),d),{parent:a.get("el").parentNode,html:U})}var Z=Object(s["deepMix"])({},n,Object(o["__assign"])(Object(o["__assign"])({},c),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(Z.container=this.getComponentContainer(Z)),Z.animate=this.view.getOptions().animate&&Z.animate&&Object(s["get"])(e,"animate",Z.animate),Z.animateOption=Object(s["deepMix"])({},Yi,Z.animateOption,e.animateOption),Z},e.prototype.isTop=function(t){return Object(s["get"])(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(s["get"])(this.view.getTheme(),["components","annotation",t],{})},e.prototype.updateOrCreate=function(t){var e=this.cache.get(this.getCacheKey(t));if(e){var n=t.type,i=this.getAnnotationTheme(n),r=this.getAnnotationCfg(n,t,i);r&&At(r,["container"]),e.component.update(Object(o["__assign"])(Object(o["__assign"])({},r||{}),{visible:!!r})),Object(s["includes"])(dc,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),Object(s["includes"])(dc,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(s["find"])(e.option,(function(t){return i===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(i))})),n},e.prototype.getCacheKey=function(t){return t},e}(Ii),vc=gc;function yc(t,e){var n=Object(s["deepMix"])({},Object(s["get"])(t,["components","axis","common"]),Object(s["get"])(t,["components","axis",e]));return Object(s["get"])(n,["grid"],{})}function bc(t,e,n,i){var r=[],a=e.getTicks();return t.isPolar&&a.push({value:1,text:"",tickValue:""}),a.reduce((function(e,a,o){var s=a.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(o){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 a}),a[0]),r}function mc(t,e,n,i,r){var a=e.values.length,o=[],c=n.getTicks();return c.reduce((function(e,n){var c=e?e.value:n.value,l=n.value,u=(c+l)/2;return"x"===r?o.push({points:[t.convert({x:i?l:u,y:0}),t.convert({x:i?l:u,y:1})]}):o.push({points:Object(s["map"])(Array(a+1),(function(e,n){return t.convert({x:n/a,y:i?l:u})}))}),n}),c[0]),o}function xc(t,e){var n=Object(s["get"])(e,"grid");if(null===n)return!1;var i=Object(s["get"])(t,"grid");return!(void 0===n&&null===i)}var Oc=["container"],jc=Object(o["__assign"])(Object(o["__assign"])({},Yi),{appear:null}),_c=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.gridContainer=n.view.getLayer(i.BG).addGroup(),n.gridForeContainer=n.view.getLayer(i.FORE).addGroup(),n.axisContainer=n.view.getLayer(i.BG).addGroup(),n.axisForeContainer=n.view.getLayer(i.FORE).addGroup(),n}return Object(o["__extends"])(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(s["each"])(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,s=n.type,c=n.extra,l=c.dim,u=c.scale,h=c.alignTick;if(s===a.AXIS)e.isPolar?"x"===l?i=e.isTransposed?Ut(e,o):te(e):"y"===l&&(i=e.isTransposed?te(e):Ut(e,o)):i=Ut(e,o);else if(s===a.GRID)if(e.isPolar){var p=void 0;p=e.isTransposed?"x"===l?mc(e,t.view.getYScales()[0],u,h,l):bc(e,u,l,h):"x"===l?bc(e,u,l,h):mc(e,t.view.getXScale(),u,h,l),i={items:p,center:t.view.getCoordinate().getCenter()}}else i={items:bc(e,u,l,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=ee(this.option,e.field);if(!1!==n){var a=ne(n,r.BOTTOM),o=i.BG,c="x",l=this.view.getCoordinate(),u=this.getId("axis",e.field),h=this.getId("grid",e.field);if(l.isRect){var p=this.cache.get(u);if(p){var f=this.getLineAxisCfg(e,n,a);At(f,Oc),p.component.update(f),t.set(u,p)}else p=this.createLineAxis(e,n,o,a,c),this.cache.set(u,p),t.set(u,p);var d=this.cache.get(h);if(d){f=this.getLineGridCfg(e,n,a,c);At(f,Oc),d.component.update(f),t.set(h,d)}else d=this.createLineGrid(e,n,o,a,c),d&&(this.cache.set(h,d),t.set(h,d))}else if(l.isPolar){p=this.cache.get(u);if(p){f=l.isTransposed?this.getLineAxisCfg(e,n,r.RADIUS):this.getCircleAxisCfg(e,n,a);At(f,Oc),p.component.update(f),t.set(u,p)}else{if(l.isTransposed){if(Object(s["isUndefined"])(n))return;p=this.createLineAxis(e,n,o,r.RADIUS,c)}else p=this.createCircleAxis(e,n,o,a,c);this.cache.set(u,p),t.set(u,p)}d=this.cache.get(h);if(d){f=l.isTransposed?this.getCircleGridCfg(e,n,r.RADIUS,c):this.getLineGridCfg(e,n,r.CIRCLE,c);At(f,Oc),d.component.update(f),t.set(h,d)}else{if(l.isTransposed){if(Object(s["isUndefined"])(n))return;d=this.createCircleGrid(e,n,o,r.RADIUS,c)}else d=this.createLineGrid(e,n,o,r.CIRCLE,c);d&&(this.cache.set(h,d),t.set(h,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(s["each"])(n,(function(n,a){if(n&&!n.isIdentity){var o=n.field,c=ee(e.option,o);if(!1!==c){var l=i.BG,u="y",h=e.getId("axis",o),p=e.getId("grid",o),f=e.view.getCoordinate();if(f.isRect){var d=ne(c,0===a?r.LEFT:r.RIGHT),g=e.cache.get(h);if(g){var v=e.getLineAxisCfg(n,c,d);At(v,Oc),g.component.update(v),t.set(h,g)}else g=e.createLineAxis(n,c,l,d,u),e.cache.set(h,g),t.set(h,g);var y=e.cache.get(p);if(y){v=e.getLineGridCfg(n,c,d,u);At(v,Oc),y.component.update(v),t.set(p,y)}else y=e.createLineGrid(n,c,l,d,u),y&&(e.cache.set(p,y),t.set(p,y))}else if(f.isPolar){g=e.cache.get(h);if(g){v=f.isTransposed?e.getCircleAxisCfg(n,c,r.CIRCLE):e.getLineAxisCfg(n,c,r.RADIUS);At(v,Oc),g.component.update(v),t.set(h,g)}else{if(f.isTransposed){if(Object(s["isUndefined"])(c))return;g=e.createCircleAxis(n,c,l,r.CIRCLE,u)}else g=e.createLineAxis(n,c,l,r.RADIUS,u);e.cache.set(h,g),t.set(h,g)}y=e.cache.get(p);if(y){v=f.isTransposed?e.getLineGridCfg(n,c,r.CIRCLE,u):e.getCircleGridCfg(n,c,r.RADIUS,u);At(v,Oc),y.component.update(v),t.set(p,y)}else{if(f.isTransposed){if(Object(s["isUndefined"])(c))return;y=e.createLineGrid(n,c,l,r.CIRCLE,u)}else y=e.createCircleGrid(n,c,l,r.RADIUS,u);y&&(e.cache.set(p,y),t.set(p,y))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,o){var s={component:new ut(this.getLineAxisCfg(t,e,i)),layer:n,direction:i===r.RADIUS?r.NONE:i,type:a.AXIS,extra:{dim:o,scale:t}};return s.component.set("field",t.field),s.component.init(),s},e.prototype.createLineGrid=function(t,e,n,i,o){var c=this.getLineGridCfg(t,e,i,o);if(c){var l={component:new pt(c),layer:n,direction:r.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(s["get"])(c,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,i,r){var o={component:new ht(this.getCircleAxisCfg(t,e,i)),layer:n,direction:i,type:a.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,o){var c=this.getCircleGridCfg(t,e,i,o);if(c){var l={component:new ft(c),layer:n,direction:r.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(s["get"])(c,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var i=Object(s["get"])(e,["top"])?this.axisForeContainer:this.axisContainer,r=this.view.getCoordinate(),a=Ut(r,n),c=ie(t,e),l=Qt(this.view.getTheme(),n),u=Object(s["get"])(e,["title"])?Object(s["deepMix"])({title:{style:{text:c}}},{title:Jt(this.view.getTheme(),n,e.title)},e):e,h=Object(s["deepMix"])(Object(o["__assign"])(Object(o["__assign"])({container:i},a),{ticks:t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*Kt(a,r.getCenter()):Kt(a,r.getCenter()),theme:l}),l,u),p=this.getAnimateCfg(h),f=p.animate,d=p.animateOption;h.animateOption=d,h.animate=f;var g=Zt(a),v=Object(s["get"])(h,"verticalLimitLength",g?1/3:.5);if(v<=1){var y=this.view.getCanvas().get("width"),b=this.view.getCanvas().get("height");h.verticalLimitLength=v*(g?y:b)}return h},e.prototype.getLineGridCfg=function(t,e,n,i){if(xc(Qt(this.view.getTheme(),n),e)){var r=yc(this.view.getTheme(),n),a=Object(s["deepMix"])({container:Object(s["get"])(e,["top"])?this.gridForeContainer:this.gridContainer},r,Object(s["get"])(e,"grid"),this.getAnimateCfg(e));return a.items=bc(this.view.getCoordinate(),t,i,Object(s["get"])(a,"alignTick",!0)),a}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=Object(s["get"])(e,["top"])?this.axisForeContainer:this.axisContainer,a=this.view.getCoordinate(),c=t.getTicks().map((function(t){return{id:"".concat(t.tickValue),name:t.text,value:t.value}}));t.isCategory||Math.abs(a.endAngle-a.startAngle)!==2*Math.PI||c.length&&(c[c.length-1].name="");var l=ie(t,e),u=Qt(this.view.getTheme(),r.CIRCLE),h=Object(s["get"])(e,["title"])?Object(s["deepMix"])({title:{style:{text:l}}},{title:Jt(this.view.getTheme(),n,e.title)},e):e,p=Object(s["deepMix"])(Object(o["__assign"])(Object(o["__assign"])({container:i},te(this.view.getCoordinate())),{ticks:c,verticalFactor:1,theme:u}),u,h),f=this.getAnimateCfg(p),d=f.animate,g=f.animateOption;return p.animate=d,p.animateOption=g,p},e.prototype.getCircleGridCfg=function(t,e,n,i){if(xc(Qt(this.view.getTheme(),n),e)){var a=yc(this.view.getTheme(),r.RADIUS),o=Object(s["deepMix"])({container:Object(s["get"])(e,["top"])?this.gridForeContainer:this.gridContainer,center:this.view.getCoordinate().getCenter()},a,Object(s["get"])(e,"grid"),this.getAnimateCfg(e)),c=Object(s["get"])(o,"alignTick",!0),l="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=mc(this.view.getCoordinate(),l,t,c,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(s["get"])(t,"animate"),animateOption:t&&t.animateOption?Object(s["deepMix"])({},jc,t.animateOption):jc}},e}(Ii),wc=_c;function Cc(t,e,n){return n===r.TOP?[t.minX+t.width/2-e.width/2,t.minY]:n===r.BOTTOM?[t.minX+t.width/2-e.width/2,t.maxY-e.height]:n===r.LEFT?[t.minX,t.minY+t.height/2-e.height/2]:n===r.RIGHT?[t.maxX-e.width,t.minY+t.height/2-e.height/2]:n===r.TOP_LEFT||n===r.LEFT_TOP?[t.tl.x,t.tl.y]:n===r.TOP_RIGHT||n===r.RIGHT_TOP?[t.tr.x-e.width,t.tr.y]:n===r.BOTTOM_LEFT||n===r.LEFT_BOTTOM?[t.bl.x,t.bl.y-e.height]:n===r.BOTTOM_RIGHT||n===r.RIGHT_BOTTOM?[t.br.x-e.width,t.br.y-e.height]:[0,0]}function Mc(t,e){return Object(s["isBoolean"])(t)?!1!==t&&{}:Object(s["get"])(t,[e],t)}function Sc(t){return Object(s["get"])(t,"position",r.BOTTOM)}var Ac=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(i.FORE).addGroup(),n}return Object(o["__extends"])(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(s["each"])(this.components,(function(e){var n=e.component,i=e.direction,r=Lr(i),a=n.get("maxWidthRatio"),s=n.get("maxHeightRatio"),c=t.getCategoryLegendSizeCfg(r,a,s),l=n.get("maxWidth"),u=n.get("maxHeight");n.update({maxWidth:Math.min(c.maxWidth,l||0),maxHeight:Math.min(c.maxHeight,u||0)});var h=n.get("padding"),p=n.getLayoutBBox(),f=new Ft(p.x,p.y,p.width,p.height).expand(h),d=Object(o["__read"])(Cc(t.view.viewBBox,f,i),2),g=d[0],v=d[1],y=Object(o["__read"])(Cc(t.layoutBBox,f,i),2),b=y[0],m=y[1],x=0,O=0;i.startsWith("top")||i.startsWith("bottom")?(x=g,O=m):(x=b,O=v),n.setLocation({x:x+h[3],y:O+h[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 a=t.getId(r.field),o=t.getComponentById(a);if(o){var c=void 0,l=Mc(t.option,r.field);!1!==l&&(Object(s["get"])(l,"custom")?c=t.getCategoryCfg(n,i,r,l,!0):r.isLinear?c=t.getContinuousCfg(n,i,r,l):r.isCategory&&(c=t.getCategoryCfg(n,i,r,l))),c&&(At(c,["container"]),o.direction=Sc(l),o.component.update(c),e[a]=!0)}else{var u=t.createFieldLegend(n,i,r);u&&(u.component.init(),t.components.push(u),e[a]=!0)}};if(Object(s["get"])(this.option,"custom")){var r="global-custom",o=this.getComponentById(r);if(o){var c=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);At(c,["container"]),o.component.update(c),e[r]=!0}else{var l=this.createCustomLegend(void 0,void 0,void 0,this.option);if(l){l.init();var u=i.FORE,h=Sc(this.option);this.components.push({id:r,component:l,layer:u,direction:h,type:a.LEGEND,extra:void 0}),e[r]=!0}}}else this.loopLegends(n);var p=[];Object(s["each"])(this.getComponents(),(function(t){e[t.id]?p.push(t):t.component.destroy()})),this.components=p},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(s["each"])(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(s["each"])(n,(function(e){var n=e.getGroupAttributes();Object(s["each"])(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 r,o=Mc(this.option,n.field),c=i.FORE,l=Sc(o);if(!1!==o&&(Object(s["get"])(o,"custom")?r=this.createCustomLegend(t,e,n,o):n.isLinear?r=this.createContinuousLegend(t,e,n,o):n.isCategory&&(r=this.createCategoryLegend(t,e,n,o))),r)return r.set("field",n.field),{id:this.getId(n.field),component:r,layer:c,direction:l,type:a.LEGEND,extra:{scale:n}}},e.prototype.createCustomLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i,!0);return new dt(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,At(i,["value"]));return new gt(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new dt(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),a=Object(s["find"])(r,(function(t){return 0===t.value})),o=Object(s["find"])(r,(function(t){return 1===t.value})),c=r.map((function(t){var i=t.value,r=t.tickValue,a=e.mapping(n.invert(i)).join("");return{value:r,attrValue:a,color:a,scaleValue:i}}));a||c.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),o||c.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),c.sort((function(t,e){return t.value-e.value}));var l={min:Object(s["head"])(c).value,max:Object(s["last"])(c).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=c.map((function(t){return t.attrValue})));var u=this.container,h=Sc(i),p=Lr(h),f=Object(s["get"])(i,"title");return f&&(f=Object(s["deepMix"])({text:Xt(n)},f)),l.container=u,l.layout=p,l.title=f,l.animateOption=Yi,this.mergeLegendCfg(l,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,a){var o=this.container,c=Object(s["get"])(i,"position",r.BOTTOM),l=Nr(this.view.getTheme(),c),u=Object(s["get"])(l,["marker"]),h=Object(s["get"])(i,"marker"),p=Lr(c),f=Object(s["get"])(l,["pageNavigator"]),d=Object(s["get"])(i,"pageNavigator"),g=a?Rr(u,h,i.items):Dr(this.view,t,e,u,h),v=Object(s["get"])(i,"title");v&&(v=Object(s["deepMix"])({text:n?Xt(n):""},v));var y=Object(s["get"])(i,"maxWidthRatio"),b=Object(s["get"])(i,"maxHeightRatio"),m=this.getCategoryLegendSizeCfg(p,y,b);m.container=o,m.layout=p,m.items=g,m.title=v,m.animateOption=Yi,m.pageNavigator=Object(s["deepMix"])({},f,d);var x=this.mergeLegendCfg(m,i,c);x.reversed&&x.items.reverse();var O=Object(s["get"])(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=Nr(this.view.getTheme(),i);return Object(s["deepMix"])({},r,t,e)},e.prototype.getId=function(t){return"".concat(this.name,"-").concat(t)},e.prototype.getComponentById=function(t){return Object(s["find"])(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t,e,n){void 0===e&&(e=y),void 0===n&&(n=y);var i=this.view.viewBBox,r=i.width,a=i.height;return"vertical"===t?{maxWidth:r*e,maxHeight:a}:{maxWidth:r,maxHeight:a*n}},e}(Ii),kc=Ac,Fc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s["noop"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=Object(o["__read"])(t,2),i=e[0],r=e[1];n.start=i,n.end=r,n.changeViewData(i,r)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(s["throttle"])(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(c.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(c.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(o["__extends"])(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(c.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(c.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(s["isNil"])(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!Object(s["isEmpty"])(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=Object(o["__read"])(n,4),a=i[0],s=(i[1],i[2],i[3]),c=this.slider.component.getLayoutBBox(),l=new Ft(c.x,c.y,Math.min(c.width,e),c.height).expand(n),u=this.getMinMaxText(this.start,this.end),h=u.minText,p=u.maxText,f=Object(o["__read"])(Cc(this.view.viewBBox,l,r.BOTTOM),2),d=(f[0],f[1]),g=Object(o["__read"])(Cc(this.view.coordinateBBox,l,r.BOTTOM),2),v=g[0];g[1];this.slider.component.update(Object(o["__assign"])(Object(o["__assign"])({},this.getSliderCfg()),{x:v+s,y:d+a,width:this.width,start:this.start,end:this.end,minText:h,maxText:p})),this.view.viewBBox=this.view.viewBBox.cut(l,r.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new lt["Slider"](Object(o["__assign"])({container:this.container},t));return e.init(),{component:e,layer:i.FORE,direction:r.BOTTOM,type:a.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=Object(o["__assign"])(Object(o["__assign"])({},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(s["isObject"])(this.option)){var e=Object(o["__assign"])({data:this.getData()},Object(s["get"])(this.option,"trendCfg",{}));t=Object(s["deepMix"])({},t,this.getThemeOptions(),this.option),t=Object(o["__assign"])(Object(o["__assign"])({},t),{trendCfg:e})}return t.start=Object(s["clamp"])(Math.min(Object(s["isNil"])(t.start)?0:t.start,Object(s["isNil"])(t.end)?1:t.end),0,1),t.end=Object(s["clamp"])(Math.max(Object(s["isNil"])(t.start)?0:t.start,Object(s["isNil"])(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=Object(o["__read"])(this.view.getYScales(),1),n=e[0],i=this.view.getGroupScales();if(i.length){var r=i[0],a=r.field,s=r.ticks;return t.reduce((function(t,e){return e[a]===s[0]&&t.push(e[n.field]),t}),[])}return t.map((function(t){return t[n.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(s["get"])(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=!0,a=Object(s["valuesOfKey"])(n,i.field);i.isLinear&&(a=a.sort());var o=r?a:a.reverse(),c=Object(s["size"])(n);if(!i||!c)return{};var l=Object(s["size"])(o),u=Math.round(t*(l-1)),h=Math.round(e*(l-1)),p=Object(s["get"])(o,[u]),f=Object(s["get"])(o,[h]),d=this.getSliderCfg().formatter;return d&&(p=d(p,n[u],u),f=d(f,n[h],h)),{minText:p,maxText:f}},e.prototype.changeViewData=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=Object(s["size"])(n);if(i&&r){var a=!0,o=Object(s["valuesOfKey"])(n,i.field),c=this.view.getXScale().isLinear?o.sort((function(t,e){return Number(t)-Number(e)})):o,l=a?c:c.reverse(),u=Object(s["size"])(l),h=Math.round(t*(u-1)),p=Math.round(e*(u-1));this.view.filter(i.field,(function(t,e){var n=l.indexOf(t);return!(n>-1)||Mt(n,h,p)})),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}(Ii),Ec=Fc,Tc=0,Pc=8,Ic=32,Bc=20,Lc=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=s["noop"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=Object(s["clamp"])(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(i.FORE).addGroup(),n.onChangeFn=Object(s["throttle"])(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(c.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(c.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(o["__extends"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"scrollbar"},enumerable:!1,configurable:!0}),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.view.off(c.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(c.BEFORE_CHANGE_SIZE,this.resetMeasure)},e.prototype.init=function(){},e.prototype.render=function(){this.option=this.view.getOptions().scrollbar,this.option?this.scrollbar?this.scrollbar=this.updateScrollbar():(this.scrollbar=this.createScrollbar(),this.scrollbar.component.on("scrollchange",this.onChangeFn)):this.scrollbar&&(this.scrollbar.component.destroy(),this.scrollbar=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.trackLen&&(this.measureScrollbar(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.getScrollRange(),!0)}))),this.scrollbar){var e=this.view.coordinateBBox.width,n=this.scrollbar.component.get("padding"),i=this.scrollbar.component.getLayoutBBox(),a=new Ft(i.x,i.y,Math.min(i.width,e),i.height).expand(n),s=this.getScrollbarComponentCfg(),c=void 0,l=void 0;if(s.isHorizontal){var u=Object(o["__read"])(Cc(this.view.viewBBox,a,r.BOTTOM),2),h=(u[0],u[1]),p=Object(o["__read"])(Cc(this.view.coordinateBBox,a,r.BOTTOM),2),f=p[0];p[1];c=f,l=h}else{var d=Object(o["__read"])(Cc(this.view.viewBBox,a,r.RIGHT),2),g=(d[0],h=d[1],Object(o["__read"])(Cc(this.view.viewBBox,a,r.RIGHT),2));f=g[0],g[1];c=f,l=h}c+=n[3],l+=n[0],this.trackLen?this.scrollbar.component.update(Object(o["__assign"])(Object(o["__assign"])({},s),{x:c,y:l,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(o["__assign"])(Object(o["__assign"])({},s),{x:c,y:l})),this.view.viewBBox=this.view.viewBBox.cut(a,s.isHorizontal?r.BOTTOM:r.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(s["get"])(t,["components","scrollbar","common"],{})},e.prototype.getScrollbarTheme=function(t){var e=Object(s["get"])(this.view.getTheme(),["components","scrollbar"]),n=t||{},i=n.thumbHighlightColor,r=Object(o["__rest"])(n,["thumbHighlightColor"]);return{default:Object(s["deepMix"])({},Object(s["get"])(e,["default","style"],{}),r),hover:Object(s["deepMix"])({},Object(s["get"])(e,["hover","style"],{}),{thumbColor:i})}},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.getScrollbarData(),this.step=this.getStep(),this.cnt=this.getCnt();var n=this.getScrollbarComponentCfg(),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(s["clamp"])(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=Object(o["__read"])(t,2),r=i[0],a=i[1],c=this.getValidScrollbarCfg().type,l="vertical"!==c,u=Object(s["valuesOfKey"])(this.data,this.xScaleCfg.field),h=this.view.getXScale().isLinear?u.sort((function(t,e){return Number(t)-Number(e)})):u,p=l?h:h.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max,tickMethod:t.tickMethod})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=p.indexOf(t);return!(e>-1)||Mt(e,r,a)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new lt["Scrollbar"](Object(o["__assign"])(Object(o["__assign"])({container:this.container},this.getScrollbarComponentCfg()),{x:0,y:0}));return n.init(),{component:n,layer:i.FORE,direction:e?r.BOTTOM:r.RIGHT,type:a.SCROLLBAR}},e.prototype.updateScrollbar=function(){var t=this.getScrollbarComponentCfg(),e=this.trackLen?Object(o["__assign"])(Object(o["__assign"])({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(o["__assign"])({},t);return this.scrollbar.component.update(e),this.scrollbar},e.prototype.getStep=function(){if(this.step)return this.step;var t=this.view.coordinateBBox,e=this.getValidScrollbarCfg(),n=e.type,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(s["valuesOfKey"])(e,t.field);return Object(s["size"])(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=this.getValidScrollbarCfg(),r=i.type,a=i.padding,c=i.width,l=i.height,u=i.style,h="vertical"!==r,p=Object(o["__read"])(a,4),f=p[0],d=p[1],g=p[2],v=p[3],y=h?{x:e.minX+v,y:n.maxY-l-g}:{x:n.maxX-c-d,y:e.minY+f},b=this.getStep(),m=this.getCnt(),x=h?e.width-v-d:e.height-f-g,O=Math.max(x*Object(s["clamp"])(b/m,0,1),Bc);return Object(o["__assign"])(Object(o["__assign"])({},this.getThemeOptions()),{x:y.x,y:y.y,size:h?l:c,isHorizontal:h,trackLen:x,thumbLen:O,thumbOffset:0,theme:this.getScrollbarTheme(u)})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:Ic,width:Pc,height:Pc,padding:[0,0,0,0],animate:!0,style:{}};return Object(s["isObject"])(this.option)&&(t=Object(o["__assign"])(Object(o["__assign"])({},t),this.option)),Object(s["isObject"])(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[Tc,0,Tc,0]:[0,Tc,0,Tc]),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=Object(o["__spreadArray"])([],Object(o["__read"])(n),!1).reverse()),n},e}(Ii),Dc=Lc,Rc={fill:"#CCD6EC",opacity:.3};function Nc(t,e,n){var i,r,a,c,l,u,h=fi(t,e,n);if(h.length){h=Object(s["flatten"])(h);try{for(var p=Object(o["__values"])(h),f=p.next();!f.done;f=p.next()){var d=f.value;try{for(var g=(a=void 0,Object(o["__values"])(d)),v=g.next();!v.done;v=g.next()){var y=v.value,b=y.mappingData,m=b.x,x=b.y;y.x=Object(s["isArray"])(m)?m[m.length-1]:m,y.y=Object(s["isArray"])(x)?x[x.length-1]:x}}catch(A){a={error:A}}finally{try{v&&!v.done&&(c=g.return)&&c.call(g)}finally{if(a)throw a.error}}}}catch(k){i={error:k}}finally{try{f&&!f.done&&(r=p.return)&&r.call(p)}finally{if(i)throw i.error}}var O=n.shared;if(!1===O&&h.length>1){var j=h[0],_=Math.abs(e.y-j[0].y);try{for(var w=Object(o["__values"])(h),C=w.next();!C.done;C=w.next()){var M=C.value,S=Math.abs(e.y-M[0].y);S<=_&&(j=M,_=S)}}catch(F){l={error:F}}finally{try{C&&!C.done&&(u=w.return)&&u.call(w)}finally{if(l)throw l.error}}h=[j]}return Object(s["uniq"])(Object(s["flatten"])(h))}return[]}var zc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.show=function(t){var e=this.context.view,n=this.context.event,i=e.getController("tooltip").getTooltipCfg(),r=Nc(e,{x:n.x,y:n.y},i);if(!Object(s["isEqual"])(r,this.items)&&(this.items=r,r.length)){var a=e.getXScale().field,c=r[0].data[a],l=[],u=e.geometries;if(Object(s["each"])(u,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e=t.getData();return e[a]===c}));l=l.concat(e)}})),l.length){var h=e.getCoordinate(),p=l[0].shape.getCanvasBBox(),f=l[0].shape.getCanvasBBox(),d=p;Object(s["each"])(l,(function(t){var e=t.shape.getCanvasBBox();h.isTransposed?(e.minYf.maxY&&(f=e)):(e.minXf.maxX&&(f=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(h.isRect){var b=e.getXScale(),m=t||{},x=m.appendRatio,O=m.appendWidth;Object(s["isNil"])(O)&&(x=Object(s["isNil"])(x)?b.isLinear?0:.25:x,O=h.isTransposed?x*f.height:x*p.width);var j=void 0,_=void 0,w=void 0,C=void 0;h.isTransposed?(j=v.minX,_=Math.min(f.minY,p.minY)-O,w=v.width,C=d.height+2*O):(j=Math.min(p.minX,f.minX)-O,_=v.minY,w=d.width+2*O,C=v.height),y=[["M",j,_],["L",j+w,_],["L",j+w,_+C],["L",j,_+C],["Z"]]}else{var M=Object(s["head"])(l),S=Object(s["last"])(l),A=_t(M.getModel(),h).startAngle,k=_t(S.getModel(),h).endAngle,F=h.getCenter(),E=h.getRadius(),T=h.innerRadius*E;y=Ot(F.x,F.y,E,A,k,T)}if(this.regionPath)this.regionPath.attr("path",y),this.regionPath.show();else{var P=Object(s["get"])(t,"style",Rc);this.regionPath=g.addShape({type:"path",name:"active-region",capture:!1,attrs:Object(o["__assign"])(Object(o["__assign"])({},P),{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}(le),Yc=zc,Gc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o["__extends"])(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,a=+new Date,o=Object(s["get"])(t.view.getOptions(),"tooltip.showDelay",16);if(a-r>o){var c=this.location,l={x:e.x,y:e.y};c&&Object(s["isEqual"])(c,l)||this.showTooltip(n,l),this.timeStamp=a,this.location=l}}},e.prototype.hide=function(){var t=this.context.view,e=t.getController("tooltip"),n=this.context.event,i=n.clientX,r=n.clientY;e.isCursorEntered({x:i,y:r})||t.isTooltipLocked()||(this.hideTooltip(t),this.location=null)},e.prototype.showTooltip=function(t,e){t.showTooltip(e)},e.prototype.hideTooltip=function(t){t.hideTooltip()},e}(le),Vc=Gc,Xc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.showTooltip=function(t,e){var n=On(t);Object(s["each"])(n,(function(n){var i=_n(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=On(t);Object(s["each"])(e,(function(t){t.hideTooltip()}))},e}(Vc),Hc=Xc,Wc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o["__extends"])(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.show=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date;if(i-n>16){var r=this.location,a={x:e.x,y:e.y};r&&Object(s["isEqual"])(r,a)||this.showTooltip(a),this.timeStamp=i,this.location=a}},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(Object(o["__assign"])({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(s["get"])(r,["components","tooltip","domStyles"],{}),c=new vt({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:Object(o["__assign"])({},Object(s["deepMix"])({},a,(t={},t[lt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%"},t[lt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all"},t)))});c.init(),c.setCapture(!1),this.tooltip=c},e}(le),qc=Wc,$c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(o["__extends"])(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=hn(t,this.stateName);Object(s["each"])(n,(function(t){e.setElementState(t,!1)}))},e}(le),Uc=$c;function Zc(t){return Object(s["get"])(t.get("delegateObject"),"item")}var Kc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(o["__extends"])(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"),a=ln(i);this.setElementsStateByItem(a,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=Cn(i,e),a=pn(t,e);return!Object(s["isNil"])(a)&&n.name===r.getText(a)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;Object(s["each"])(t,(function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=Ze(this.context);if(e)Qe(this.context)&&this.setStateByElement(e,t);else{var n=Ke(this.context);if(Je(n)){var i=n.item,r=n.component;if(i&&r&&!this.isItemIgnore(i,r)){var a=this.context.event.gEvent;if(a&&a.fromShape&&a.toShape&&Zc(a.fromShape)===Zc(a.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=Ze(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Uc),Qc=Kc,Jc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["__extends"])(e,t),e.prototype.active=function(){this.setState()},e}(Qc),tl=Jc,el=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(o["__extends"])(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(),a=e.shape.getCanvasBBox(),o=i?[["M",r.minX,r.minY],["L",a.minX,a.maxY],["L",a.maxX,a.maxY],["L",r.maxX,r.minY],["Z"]]:[["M",r.maxX,r.minY],["L",a.minX,a.minY],["L",a.minX,a.maxY],["L",r.maxX,r.maxY],["Z"]];return o},e.prototype.addLinkShape=function(t,e,n,i){var r={opacity:.4,fill:e.shape.attr("fill")};t.addShape({type:"path",attrs:Object(o["__assign"])(Object(o["__assign"])({},Object(s["deepMix"])({},r,Object(s["isFunction"])(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 a=pn(t,r.field);if(!this.cache[a]){var o=un(i,r.field,a),c=this.linkGroup,l=c.addGroup();this.cache[a]=l;var u=o.length;Object(s["each"])(o,(function(t,i){if(i=0}),e)},e}(rl),Cl=wl,Ml=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["__extends"])(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=ln(n);dl(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;fl(t)},e}(cl),Sl=Ml,Al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["__extends"])(e,t),e.prototype.selected=function(){this.setState()},e}(rl),kl=Al,Fl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["__extends"])(e,t),e.prototype.selected=function(){this.setState()},e}(Qc),El=Fl,Tl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["__extends"])(e,t),e.prototype.selected=function(){this.setState()},e}(cl),Pl=Tl,Il=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(o["__extends"])(e,t),e.prototype.getTriggerListInfo=function(){var t=Ke(this.context),e=null;return Je(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=yn(e),i=[];return Object(s["each"])(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(s["each"])(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var i=this.context.view,r=Cn(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,a=Cn(r,i),o=pn(e,i),s=a.getText(o);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=Ze(this.context);if(n){var i=this.getAllowComponents();Object(s["each"])(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=Ke(this.context);if(Je(r)){var a=r.item,o=r.component;this.allowSetStateByElement(o)&&this.allowSetStateByItem(a,o)&&this.setItemState(o,a,t)}}},e.prototype.setItemsState=function(t,e,n){var i=this,r=t.getItems();Object(s["each"])(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}(le),Bl=Il,Ll=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(o["__extends"])(e,t),e.prototype.active=function(){this.setState()},e}(Bl),Dl=Ll,Rl="inactive",Nl="active";function zl(t){var e=t.getItems();Object(s["each"])(e,(function(e){t.hasState(e,Nl)&&t.setItemState(e,Nl,!1),t.hasState(e,Rl)&&t.setItemState(e,Rl,!1)}))}var Yl="inactive",Gl="active",Vl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Gl,e.ignoreItemStates=["unchecked"],e}return Object(o["__extends"])(e,t),e.prototype.setItemsState=function(t,e,n){this.setHighlightBy(t,(function(t){return t.name===e}),n)},e.prototype.setItemState=function(t,e,n){t.getItems();this.setHighlightBy(t,(function(t){return t===e}),n)},e.prototype.setHighlightBy=function(t,e,n){var i=t.getItems();if(n)Object(s["each"])(i,(function(n){e(n)?(t.hasState(n,Yl)&&t.setItemState(n,Yl,!1),t.setItemState(n,Gl,!0)):t.hasState(n,Gl)||t.setItemState(n,Yl,!0)}));else{var r=t.getItemsByState(Gl),a=!0;Object(s["each"])(r,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(s["each"])(i,(function(n){e(n)&&(t.hasState(n,Gl)&&t.setItemState(n,Gl,!1),t.setItemState(n,Yl,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)zl(t.list);else{var e=this.getAllowComponents();Object(s["each"])(e,(function(t){t.clearItemsState(Gl),t.clearItemsState(Yl)}))}},e}(Bl),Xl=Vl,Hl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(o["__extends"])(e,t),e.prototype.selected=function(){this.setState()},e}(Bl),Wl=Hl,ql=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(o["__extends"])(e,t),e.prototype.unchecked=function(){this.setState()},e}(Bl),$l=ql,Ul="unchecked",Zl="checked",Kl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Zl,e}return Object(o["__extends"])(e,t),e.prototype.setItemState=function(t,e,n){this.setCheckedBy(t,(function(t){return t===e}),n)},e.prototype.setCheckedBy=function(t,e,n){var i=t.getItems();n&&Object(s["each"])(i,(function(n){e(n)?(t.hasState(n,Ul)&&t.setItemState(n,Ul,!1),t.setItemState(n,Zl,!0)):t.hasState(n,Zl)||t.setItemState(n,Ul,!0)}))},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=!Object(s["some"])(e.getItems(),(function(t){return e.hasState(t,Ul)}));i||e.hasState(n,Ul)?this.setItemState(e,n,!0):this.reset()}},e.prototype.checked=function(){this.setState()},e.prototype.reset=function(){var t=this.getAllowComponents();Object(s["each"])(t,(function(t){t.clearItemsState(Zl),t.clearItemsState(Ul)}))},e}(Bl),Ql=Kl,Jl="unchecked",tu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.toggle=function(){var t,e,n,i,r,a,s,c,l=this.getTriggerListInfo();if(null===l||void 0===l?void 0:l.item){var u=l.list,h=l.item,p=u.getItems(),f=p.filter((function(t){return!u.hasState(t,Jl)})),d=p.filter((function(t){return u.hasState(t,Jl)})),g=f[0];if(p.length===f.length)try{for(var v=Object(o["__values"])(p),y=v.next();!y.done;y=v.next()){var b=y.value;u.setItemState(b,Jl,b.id!==h.id)}}catch(C){t={error:C}}finally{try{y&&!y.done&&(e=v.return)&&e.call(v)}finally{if(t)throw t.error}}else if(p.length-d.length===1)if(g.id===h.id)try{for(var m=Object(o["__values"])(p),x=m.next();!x.done;x=m.next()){b=x.value;u.setItemState(b,Jl,!1)}}catch(M){n={error:M}}finally{try{x&&!x.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}else try{for(var O=Object(o["__values"])(p),j=O.next();!j.done;j=O.next()){b=j.value;u.setItemState(b,Jl,b.id!==h.id)}}catch(S){r={error:S}}finally{try{j&&!j.done&&(a=O.return)&&a.call(O)}finally{if(r)throw r.error}}else try{for(var _=Object(o["__values"])(p),w=_.next();!w.done;w=_.next()){b=w.value;u.setItemState(b,Jl,b.id!==h.id)}}catch(A){s={error:A}}finally{try{w&&!w.done&&(c=_.return)&&c.call(_)}finally{if(s)throw s.error}}}},e}(Bl),eu=tu,nu="showRadio",iu="legend-radio-tip",ru=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(o["__extends"])(e,t),e.prototype.show=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,nu,!0)}},e.prototype.hide=function(){var t=this.getTriggerListInfo();if(null===t||void 0===t?void 0:t.item){var e=t.list,n=t.item;e.setItemState(n,nu,!1)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.showTip=function(){var t=this.context,e=t.event,n=this.timeStamp,i=+new Date,r=this.context.event.target;if(i-n>16&&"legend-item-radio"===r.get("name")){var a=this.location,o={x:e.x,y:e.y};this.timeStamp=i,this.location=o,a&&Object(s["isEqual"])(a,o)||this.showTooltip(o)}},e.prototype.hideTip=function(){this.hideTooltip(),this.location=null},e.prototype.showTooltip=function(t){var e=this.context,n=e.event,i=n.target;if(i&&i.get("tip")){this.tooltip||this.renderTooltip();var r=e.view.getCanvas().get("el").getBoundingClientRect(),a=r.x,s=r.y;this.tooltip.update(Object(o["__assign"])(Object(o["__assign"])({title:i.get("tip")},t),{x:t.x+a,y:t.y+s})),this.tooltip.show()}},e.prototype.hideTooltip=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=(t={},t[lt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={padding:"6px 8px",transform:"translate(-50%, -80%)",background:"rgba(0,0,0,0.75)",color:"#fff","border-radius":"2px","z-index":100},t[lt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"font-size":"12px","line-height":"14px","margin-bottom":0,"word-break":"break-all"},t);document.getElementById(iu)&&document.body.removeChild(document.getElementById(iu));var n=new vt({parent:document.body,region:null,visible:!1,crosshairs:null,domStyles:e,containerId:iu});n.init(),n.setCapture(!1),this.tooltip=n},e}(Bl),au=ru,ou=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 Object(o["__extends"])(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:Object(o["__assign"])({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(s["each"])(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(s["deepMix"])({},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}(le),su=ou;function cu(t){var e=Object(s["last"])(t),n=0,i=0,r=0;if(t.length){var a=t[0];n=bn(a,e)/2,i=(e.x+a.x)/2,r=(e.y+a.y)/2}return{x:i,y:r,r:n}}var lu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(o["__extends"])(e,t),e.prototype.getMaskAttrs=function(){return cu(this.points)},e}(su),uu=lu;function hu(t){return{start:Object(s["head"])(t),end:Object(s["last"])(t)}}function pu(t,e){var n=Math.min(t.x,e.x),i=Math.min(t.y,e.y),r=Math.abs(e.x-t.x),a=Math.abs(e.y-t.y);return{x:n,y:i,width:r,height:a}}var fu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(o["__extends"])(e,t),e.prototype.getRegion=function(){return hu(this.points)},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end;return pu(e,n)},e}(su),du=fu;function gu(t){t.x=Object(s["clamp"])(t.x,0,1),t.y=Object(s["clamp"])(t.y,0,1)}function vu(t,e,n,i){var r=null,a=null,o=i.invert(Object(s["head"])(t)),c=i.invert(Object(s["last"])(t));return n&&(gu(o),gu(c)),"x"===e?(r=i.convert({x:o.x,y:0}),a=i.convert({x:c.x,y:1})):(r=i.convert({x:0,y:o.y}),a=i.convert({x:1,y:c.y})),{start:r,end:a}}var yu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(o["__extends"])(e,t),e.prototype.getRegion=function(){var t=this.context.view.getCoordinate();return vu(this.points,this.dim,this.inPlot,t)},e}(du),bu=yu;function mu(t){var e=[];return t.length&&(Object(s["each"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e}function xu(t){return{path:mu(t)}}var Ou=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.getMaskPath=function(){return mu(this.points)},e.prototype.getMaskAttrs=function(){return xu(this.points)},e.prototype.addPoint=function(){this.resize()},e}(su),ju=Ou;function _u(t){return mn(t,!0)}function wu(t){return{path:_u(t)}}var Cu,Mu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.getMaskPath=function(){return _u(this.points)},e.prototype.getMaskAttrs=function(){return wu(this.points)},e}(ju),Su=Mu,Au=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.maskShapes=[],e.starting=!1,e.moving=!1,e.recordPoints=null,e.preMovePoint=null,e.shapeType="path",e.maskType="multi-mask",e}return Object(o["__extends"])(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="".concat(this.maskType,":").concat(t),n=this.context.view,i=this.context.event,r={type:this.shapeType,name:this.maskType,get:function(t){return r.hasOwnProperty(t)?r[t]:void 0}};n.emit(e,{target:r,maskShapes:this.maskShapes,multiPoints:this.recordPoints,x:i.x,y:i.y})},e.prototype.createMask=function(t){var e=this.context.view,n=this.recordPoints[t],i=this.getMaskAttrs(n),r=e.foregroundGroup.addShape({type:this.shapeType,name:"mask",draggable:!0,attrs:Object(o["__assign"])({fill:"#C5D4EB",opacity:.3},i)});this.maskShapes.push(r)},e.prototype.getMaskPath=function(t){return[]},e.prototype.show=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.show()})),this.emitEvent("show"))},e.prototype.start=function(t){this.recordPointStart(),this.starting=!0,this.moving=!1;var e=this.recordPoints.length-1;this.createMask(e),this.updateShapesCapture(!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(),this.updateShapesCapture(!1)},e.prototype.move=function(){if(this.moving&&0!==this.maskShapes.length){var t=this.getCurrentPoint(),e=this.preMovePoint,n=t.x-e.x,i=t.y-e.y,r=this.getCurMaskShapeIndex();r>-1&&(this.recordPoints[r].forEach((function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t)}},e.prototype.updateMask=function(t){var e=this;this.recordPoints.forEach((function(n,i){var r=Object(s["deepMix"])({},e.getMaskAttrs(n),t);e.maskShapes[i].attr(r)}))},e.prototype.resize=function(){this.starting&&this.maskShapes.length>0&&(this.recordPointContinue(),this.updateMask(),this.emitEvent("change"))},e.prototype.moveEnd=function(){this.moving=!1,this.preMovePoint=null,this.updateShapesCapture(!0)},e.prototype.end=function(){this.starting=!1,this.emitEvent("end"),this.updateShapesCapture(!0)},e.prototype.hide=function(){this.maskShapes.length>0&&(this.maskShapes.forEach((function(t){return t.hide()})),this.emitEvent("hide"))},e.prototype.remove=function(){var t=this.getCurMaskShapeIndex();t>-1&&(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.updateShapesCapture(!0),this.emitEvent("change"))},e.prototype.clearAll=function(){this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.preMovePoint=null},e.prototype.clear=function(){var t=this.getCurMaskShapeIndex();-1===t?(this.recordPointClear(),this.maskShapes.forEach((function(t){return t.remove()})),this.maskShapes=[],this.emitEvent("clearAll")):(this.recordPoints.splice(t,1),this.maskShapes[t].remove(),this.maskShapes.splice(t,1),this.preMovePoint=null,this.emitEvent("clearSingle")),this.preMovePoint=null},e.prototype.destroy=function(){this.clear(),t.prototype.destroy.call(this)},e.prototype.getRecordPoints=function(){var t;return Object(o["__spreadArray"])([],Object(o["__read"])(null!==(t=this.recordPoints)&&void 0!==t?t:[]),!1)},e.prototype.recordPointStart=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint();this.recordPoints=Object(o["__spreadArray"])(Object(o["__spreadArray"])([],Object(o["__read"])(t),!1),[[e]],!1)},e.prototype.recordPointContinue=function(){var t=this.getRecordPoints(),e=this.getCurrentPoint(),n=t.splice(-1,1)[0]||[];n.push(e),this.recordPoints=Object(o["__spreadArray"])(Object(o["__spreadArray"])([],Object(o["__read"])(t),!1),[n],!1)},e.prototype.recordPointClear=function(){this.recordPoints=[]},e.prototype.updateShapesCapture=function(t){this.maskShapes.forEach((function(e){return e.set("capture",t)}))},e.prototype.getCurMaskShapeIndex=function(){var t=this.getCurrentPoint();return this.maskShapes.findIndex((function(e){var n=e.attrs,i=n.width,r=n.height,a=n.r,o=0===i||0===r||0===a;return!o&&e.isHit(t.x,t.y)}))},e}(le),ku=Au,Fu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(o["__extends"])(e,t),e.prototype.getRegion=function(t){return hu(t)},e.prototype.getMaskAttrs=function(t){var e=this.getRegion(t),n=e.start,i=e.end;return pu(n,i)},e}(ku),Eu=Fu,Tu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(o["__extends"])(e,t),e.prototype.getRegion=function(t){var e=this.context.view.getCoordinate();return vu(t,this.dim,this.inPlot,e)},e}(Eu),Pu=Tu,Iu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e.getMaskAttrs=cu,e}return Object(o["__extends"])(e,t),e}(ku),Bu=Iu,Lu=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=mu,e.getMaskAttrs=xu,e}return Object(o["__extends"])(e,t),e.prototype.addPoint=function(){this.resize()},e}(ku),Du=Lu,Ru=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getMaskPath=_u,e.getMaskAttrs=wu,e}return Object(o["__extends"])(e,t),e}(Du),Nu=Ru,zu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(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.prototype.zoomIn=function(){this.setCursor("zoom-in")},e.prototype.zoomOut=function(){this.setCursor("zoom-out")},e}(le),Yu=zu,Gu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(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(s["each"])(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Ke(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(Je(t)){if(i){var r=n.getItemsByState("unchecked"),a=Cn(e,i),s=r.map((function(t){return t.name}));s.length?this.filterView(e,i,(function(t){var e=a.getText(t);return!s.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(tn(t)){var c=n.getValue(),l=Object(o["__read"])(c,2),u=l[0],h=l[1];this.filterView(e,i,(function(t){return t>=u&&t<=h})),e.render(!0)}}},e}(le),Vu=Gu;function Xu(t,e,n,i){var r=Math.min(n[e],i[e]),a=Math.max(n[e],i[e]),s=Object(o["__read"])(t.range,2),c=s[0],l=s[1];if(rl&&(a=l),r===l&&a===l)return null;var u=t.invert(r),h=t.invert(a);if(t.isCategory){var p=t.values.indexOf(u),f=t.values.indexOf(h),d=t.values.slice(p,f+1);return function(t){return d.includes(t)}}return function(t){return t>=u&&t<=h}}(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"})(Cu||(Cu={}));var Hu=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 Object(o["__extends"])(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(en(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,a=r.view,o=r.event,s={view:a,event:o,dims:this.dims};a.emit(Cu.BEFORE_FILTER,_i.fromData(a,Cu.BEFORE_FILTER,s));var c=a.getCoordinate(),l=c.invert(e),u=c.invert(t);if(this.hasDim("x")){var h=a.getXScale(),p=Xu(h,"x",l,u);this.filterView(a,h.field,p)}if(this.hasDim("y")){var f=a.getYScales()[0];p=Xu(f,"y",l,u);this.filterView(a,f.field,p)}this.reRender(a,{source:Cu.FILTER}),a.emit(Cu.AFTER_FILTER,_i.fromData(a,Cu.AFTER_FILTER,s))}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(t.emit(Cu.BEFORE_RESET,_i.fromData(t,Cu.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:Cu.RESET}),t.emit(Cu.AFTER_RESET,_i.fromData(t,Cu.AFTER_RESET,{}))},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t,e){t.render(!0,e)},e}(le),Wu=Hu,qu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.filterView=function(t,e,n){var i=On(t);Object(s["each"])(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=On(t);Object(s["each"])(e,(function(t){t.render(!0)}))},e}(Wu),$u=qu,Uu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.filter=function(){var t=Ke(this.context),e=this.context.view,n=ln(e);if(en(this.context)){var i=rn(this.context,10);i&&Object(s["each"])(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,a=r.get("field");if(Je(t)){if(a){var c=r.getItemsByState("unchecked"),l=Cn(e,a),u=c.map((function(t){return t.name}));Object(s["each"])(n,(function(t){var e=pn(t,a),n=l.getText(e);u.indexOf(n)>=0?t.hide():t.show()}))}}else if(tn(t)){var h=r.getValue(),p=Object(o["__read"])(h,2),f=p[0],d=p[1];Object(s["each"])(n,(function(t){var e=pn(t,a);e>=f&&e<=d?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=ln(this.context.view);Object(s["each"])(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(le),Zu=Uu,Ku=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(o["__extends"])(e,t),e.prototype.filter=function(){en(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=rn(this.context,10);if(e){var n=t.getXScale().field,i=t.getYScales()[0].field,r=e.map((function(t){return t.getModel().data})),a=On(t);Object(s["each"])(a,(function(t){var e=ln(t);Object(s["each"])(e,(function(t){var e=t.getModel().data;wn(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=On(e);Object(s["each"])(n,(function(e){var n=on(t.context,e,10),i=ln(e);n&&Object(s["each"])(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=On(this.context.view);Object(s["each"])(t,(function(t){var e=ln(t);Object(s["each"])(e,(function(t){t.show()}))}))},e}(le),Qu=Ku,Ju=10,th=5,eh=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 Object(o["__extends"])(e,t),e.prototype.getButtonCfg=function(){return Object(s["deepMix"])(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Object(o["__assign"])({text:t.text},t.textStyle)}),i=n.getBBox(),r=gi(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:Object(o["__assign"])({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(),a=K["ext"].transform(null,[["t",n.x-r.width-Ju,n.y+r.height+th]]);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}(le),nh=eh,ih=4,rh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(o["__extends"])(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint()},e.prototype.drag=function(){if(this.startPoint){var t=this.context.getCurrentPoint(),e=this.context.view,n=this.context.event;this.dragStart?e.emit("drag",{target:n.target,x:n.x,y:n.y}):bn(t,this.startPoint)>ih&&(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}(le),ah=rh,oh=5,sh=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 Object(o["__extends"])(e,t),e.prototype.start=function(){this.starting=!0,this.startPoint=this.context.getCurrentPoint(),this.startMatrix=this.context.view.middleGroup.getMatrix()},e.prototype.move=function(){if(this.starting){var t=this.startPoint,e=this.context.getCurrentPoint(),n=bn(t,e);if(n>oh&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=K["ext"].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}(le),ch=sh,lh="x",uh="y",hh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[lh,uh],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(o["__extends"])(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.getScale=function(t){var e=this.context.view;return"x"===t?e.getXScale():e.getYScales()[0]},e.prototype.resetDim=function(t){var e=this.context.view;if(this.hasDim(t)&&this.cacheScaleDefs[t]){var n=this.getScale(t);e.scale(n.field,this.cacheScaleDefs[t]),this.cacheScaleDefs[t]=null}},e.prototype.reset=function(){this.resetDim(lh),this.resetDim(uh);var t=this.context.view;t.render(!0)},e}(le),ph=hh,fh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.starting=!1,e.startCache={},e}return Object(o["__extends"])(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(s["each"])(e,(function(e){var n=t.getScale(e),i=n.min,r=n.max,a=n.values;t.startCache[e]={min:i,max:r,values:a}}))},e.prototype.end=function(){this.startPoint=null,this.starting=!1,this.startCache={}},e.prototype.translate=function(){var t=this;if(this.starting){var e=this.startPoint,n=this.context.view.getCoordinate(),i=this.context.getCurrentPoint(),r=n.invert(e),a=n.invert(i),o=a.x-r.x,c=a.y-r.y,l=this.context.view,u=this.dims;Object(s["each"])(u,(function(e){t.translateDim(e,{x:-1*o,y:-1*c})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var i=this.context.view,r=this.startCache[t],a=r.min,o=r.max,s=o-a,c=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),i.scale(e.field,{nice:!1,min:a+c,max:o+c})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(ph),dh=fh,gh=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(o["__extends"])(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(s["each"])(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var i=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],a=r.max-r.min,o=e.min,s=e.max,c=n*a,l=o-c,u=s+c,h=u-l,p=h/a;u>l&&p<100&&p>.01&&i.scale(e.field,{nice:!1,min:o-c,max:s+c})},e}(ph),vh=gh;function yh(t){var e=t.gEvent.originalEvent;return e.deltaY>0}var bh=1,mh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(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)||bh,a=n.getController("scrollbar"),o=n.getXScale(),c=n.getOptions().data,l=Object(s["size"])(Object(s["valuesOfKey"])(c,o.field)),u=Object(s["size"])(o.values),h=a.getValue(),p=Math.floor((l-u)*h),f=p+(yh(i)?r:-r),d=r/(l-u)/1e4,g=Object(s["clamp"])(f/(l-u)+d,0,1);a.setValue(g)}},e}(le),xh=mh,Oh="aixs-description-tooltip",jh=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["__extends"])(e,t),e.prototype.show=function(){var t=this.context,e=Ke(t).axis,n=e.cfg.title,i=n.description,r=n.text,a=n.descriptionTooltipStyle,o=t.event,s=o.x,c=o.y;this.tooltip||this.renderTooltip(),this.tooltip.update({title:r||"",customContent:function(){return'\n
    \n
    \n 字段说明:').concat(i,"\n
    \n
    \n ")},x:s,y:c}),this.tooltip.show()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.tooltip&&this.tooltip.destroy()},e.prototype.hide=function(){this.tooltip&&this.tooltip.hide()},e.prototype.renderTooltip=function(){var t,e=this.context.view,n=e.canvas,i={start:{x:0,y:0},end:{x:n.get("width"),y:n.get("height")}},r=new vt({parent:n.get("el").parentNode,region:i,visible:!1,containerId:Oh,domStyles:Object(o["__assign"])({},Object(s["deepMix"])({},(t={},t[lt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%",padding:"10px","line-height":"15px","font-size":"12px",color:"rgba(0, 0, 0, .65)"},t[lt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all","margin-bottom":"3px"},t)))});r.init(),r.setCapture(!1),this.tooltip=r},e}(le),_h=jh;function wh(t){return t.isInPlot()}function Ch(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}Qn("dark",Yn(sa)),x("canvas",ca),x("svg",la),Fi("Polygon",Va),Fi("Interval",Pa),Fi("Schema",Ha),Fi("Path",ha),Fi("Point",za),Fi("Line",Ba),Fi("Area",va),Fi("Edge",ba),Fi("Heatmap",xa),Fi("Violin",$a),tr("base",kr),tr("interval",bo),tr("pie",_o),tr("polar",Oo),nr("overlap",Vo),nr("distribute",Mo),nr("fixed-overlap",Go),nr("hide-overlap",ss),nr("limit-in-shape",Do),nr("limit-in-canvas",Lo),nr("limit-in-plot",Es),nr("pie-outer",Fo),nr("adjust-color",hs),nr("interval-adjust-position",gs),nr("interval-hide-overlap",ys),nr("point-adjust-position",js),nr("pie-spider",Bo),nr("path-adjust-position",Ss),zi("fade-in",Ts),zi("fade-out",Ps),zi("grow-in-x",Ls),zi("grow-in-xy",Rs),zi("grow-in-y",Ds),zi("scale-in-x",Ys),zi("scale-in-y",Gs),zi("wave-in",qs),zi("zoom-in",Us),zi("zoom-out",Zs),zi("position-update",zs),zi("sector-path-update",Ws),zi("path-in",Ns),se("rect",cc),se("mirror",oc),se("list",nc),se("matrix",rc),se("circle",tc),se("tree",uc),yi("axis",wc),yi("legend",kc),yi("tooltip",Di),yi("annotation",vc),yi("slider",Ec),yi("scrollbar",Dc),ge("tooltip",Vc),ge("sibling-tooltip",Hc),ge("ellipsis-text",qc),ge("element-active",tl),ge("element-single-active",ul),ge("element-range-active",ol),ge("element-highlight",ml),ge("element-highlight-by-x",_l),ge("element-highlight-by-color",Ol),ge("element-single-highlight",Sl),ge("element-range-highlight",Cl),ge("element-sibling-highlight",Cl,{effectSiblings:!0,effectByRecord:!0}),ge("element-selected",El),ge("element-single-selected",Pl),ge("element-range-selected",kl),ge("element-link-by-color",nl),ge("active-region",Yc),ge("list-active",Dl),ge("list-selected",Wl),ge("list-highlight",Xl),ge("list-unchecked",$l),ge("list-checked",Ql),ge("list-focus",eu),ge("list-radio",au),ge("legend-item-highlight",Xl,{componentNames:["legend"]}),ge("axis-label-highlight",Xl,{componentNames:["axis"]}),ge("axis-description",_h),ge("rect-mask",du),ge("x-rect-mask",bu,{dim:"x"}),ge("y-rect-mask",bu,{dim:"y"}),ge("circle-mask",uu),ge("path-mask",ju),ge("smooth-path-mask",Su),ge("rect-multi-mask",Eu),ge("x-rect-multi-mask",Pu,{dim:"x"}),ge("y-rect-multi-mask",Pu,{dim:"y"}),ge("circle-multi-mask",Bu),ge("path-multi-mask",Du),ge("smooth-path-multi-mask",Nu),ge("cursor",Yu),ge("data-filter",Vu),ge("brush",Wu),ge("brush-x",Wu,{dims:["x"]}),ge("brush-y",Wu,{dims:["y"]}),ge("sibling-filter",$u),ge("sibling-x-filter",$u),ge("sibling-y-filter",$u),ge("element-filter",Zu),ge("element-sibling-filter",Qu),ge("element-sibling-filter-record",Qu,{byRecord:!0}),ge("view-drag",ah),ge("view-move",ch),ge("scale-translate",dh),ge("scale-zoom",vh),ge("reset-button",nh,{name:"reset-button",text:"reset"}),ge("mousewheel-scroll",xh),Dn("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"}]}),Dn("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseout",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),Dn("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),Dn("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),Dn("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),Dn("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),Dn("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),Dn("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"]}]}),Dn("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"]}]}),Dn("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"]}]}),Dn("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"]}]}),Dn("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"]}]}),Dn("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:wh,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:wh,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:wh,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"]}]}),Dn("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"]}]}),Dn("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:wh,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:wh,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:wh,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),Dn("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:wh,action:"path-mask:start"},{trigger:"mousedown",isEnable:wh,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"}]}),Dn("brush-x-multi",{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:"mousedown",isEnable:wh,action:["x-rect-multi-mask:start","x-rect-multi-mask:show"]},{trigger:"mask:dragstart",action:["x-rect-multi-mask:moveStart"]}],processing:[{trigger:"mousemove",isEnable:function(t){return!nn(t)},action:["x-rect-multi-mask:resize"]},{trigger:"multi-mask:change",action:"element-range-highlight:highlight"},{trigger:"mask:drag",action:["x-rect-multi-mask:move"]}],end:[{trigger:"mouseup",action:["x-rect-multi-mask:end"]},{trigger:"mask:dragend",action:["x-rect-multi-mask:moveEnd"]}],rollback:[{trigger:"dblclick",action:["x-rect-multi-mask:clear","cursor:crosshair"]},{trigger:"multi-mask:clearAll",action:["element-range-highlight:clear"]},{trigger:"multi-mask:clearSingle",action:["element-range-highlight:highlight"]}]}),Dn("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),Dn("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:["cursor:pointer","list-radio:show"]},{trigger:"legend-item:mouseleave",action:["cursor:default","list-radio:hide"]}],start:[{trigger:"legend-item:click",isEnable:function(t){return!t.isInShape("legend-item-radio")},action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","data-filter:filter","list-radio:show"]},{trigger:"legend-item-radio:mouseenter",action:["list-radio:showTip"]},{trigger:"legend-item-radio:mouseleave",action:["list-radio:hideTip"]},{trigger:"legend-item-radio:click",action:["list-focus:toggle","data-filter:filter","list-radio:show"]}]}),Dn("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),Dn("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),Dn("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["legend-item-highlight:reset","element-highlight:reset","list-unchecked:toggle","element-filter:filter"]}]}),Dn("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),Dn("axis-description",{start:[{trigger:"axis-description:mousemove",action:"axis-description:show"}],end:[{trigger:"axis-description:mouseleave",action:"axis-description:hide"}]}),Dn("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Ch(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Ch(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),Dn("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]}),Dn("plot-mousewheel-scroll",{start:[{trigger:"plot:mousewheel",action:"mousewheel-scroll:scroll"}]})},9308:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("9ab4"),r=n("cc94"),a=n("bbdf"),o=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["__extends"])(e,t),e.getDefaultOptions=function(){return o["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 a["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["map"])(t||[],(function(t,e){return{x:""+e,y:t}}))}},"94e3":function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("d177"),o=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?a["d"]:i,o=e.dodgeRatio,s=void 0===o?a["b"]:o,c=e.dodgeBy,l=e.intervalPadding,u=e.dodgePadding,h=e.xDimensionLength,p=e.groupNum,f=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio,y=e.customOffset;return n.marginRatio=r,n.dodgeRatio=s,n.dodgeBy=c,n.intervalPadding=l,n.dodgePadding=u,n.xDimensionLegenth=h,n.groupNum=p,n.defaultSize=f,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=v,n.customOffset=y,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["clone"](t),n=r["flatten"](e),i=this.dodgeBy,a=i?r["group"](n,i):e;return this.cacheMap={},this.adjustDataArray=a,this.mergeData=n,this.adjustData(a,n),this.adjustDataArray=[],this.mergeData=[],e},e.prototype.adjustDim=function(t,e,n,i){var a=this,o=this.customOffset,s=this.getDistribution(t),c=this.groupData(n,t);return r["each"](c,(function(n,c){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:a.getAdjustRange(t,parseFloat(c),e),r["each"](n,(function(e){var n=e[t],c=s[n],u=c.indexOf(i);if(r["isNil"](o))e[t]=a.getDodgeOffset(l,u,c.length);else{var h=l.pre,p=l.next;e[t]=r["isFunction"](o)?o(e,l):(h+p)/2+o}}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,a=this,o=a.dodgeRatio,s=a.marginRatio,c=a.intervalPadding,l=a.dodgePadding,u=t.pre,h=t.next,p=h-u;if(!r["isNil"](c)&&r["isNil"](l)&&c>=0){var f=this.getIntervalOnlyOffset(n,e);i=u+f}else if(!r["isNil"](l)&&r["isNil"](c)&&l>=0){f=this.getDodgeOnlyOffset(n,e);i=u+f}else if(!r["isNil"](c)&&!r["isNil"](l)&&c>=0&&l>=0){f=this.getIntervalAndDodgeOffset(n,e);i=u+f}else{var d=p*o/n,g=s*d;f=.5*(p-n*d-(n-1)*g)+((e+1)*d+e*g)-.5*d-.5*p;i=(u+h)/2+f}return i},e.prototype.getIntervalOnlyOffset=function(t,e){var n=this,i=n.defaultSize,a=n.intervalPadding,o=n.xDimensionLegenth,s=n.groupNum,c=n.dodgeRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,p=a/o,f=(1-(s-1)*p)/s*c/(t-1),d=((1-p*(s-1))/s-f*(t-1))/t;if(d=r["isNil"](h)?d:1/s/t*h,!r["isNil"](l)){var g=l/o;d=Math.min(d,g)}if(!r["isNil"](u)){var v=u/o;d=Math.max(d,v)}d=i?i/o:d,f=((1-(s-1)*p)/s-t*d)/(t-1);var y=((.5+e)*d+e*f+.5*p)*s-p/2;return y},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,i=n.defaultSize,a=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,c=n.marginRatio,l=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,p=a/o,f=1*c/(s-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=h?1/s/t*h:d,!r["isNil"](l)){var g=l/o;d=Math.min(d,g)}if(!r["isNil"](u)){var v=u/o;d=Math.max(d,v)}d=i?i/o:d,f=(1-(d*t+p*(t-1))*s)/(s-1);var y=((.5+e)*d+e*p+.5*f)*s-f/2;return y},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,i=n.intervalPadding,r=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=i/a,c=r/a,l=((1-s*(o-1))/o-c*(t-1))/t,u=((.5+e)*l+e*c+.5*s)*o-s/2;return u},e.prototype.getDistribution=function(t){var e=this.adjustDataArray,n=this.cacheMap,i=n[t];return i||(i={},r["each"](e,(function(e,n){var a=r["valuesOfKey"](e,t);a.length||a.push(0),r["each"](a,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},e}(o["a"]);e["a"]=s},"96bf":function(t,e,n){"use strict";var i,r=n("9ab4"),a=n("cc94"),o=n("8937"),s=n("c34d"),c=n("b4aa"),l=n("9ff2"),u=n("62e3"),h="$$range$$",p="low-q1-median-q3-high",f="$$y_outliers$$",d="outliers_view",g=Object(u["d"])({},a["b"].getDefaultOptions(),{meta:(i={},i[h]={min:0,alias:p},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],a=e[2],s=e[3],c=e[4];n=Object(o["map"])(t,(function(t){return t[h]=[t[i],t[r],t[a],t[s],t[c]],t}))}return n};function y(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,a=n.groupField,s=n.color,l=n.tooltip,p=n.boxStyle;e.data(v(n.data,r));var f=Object(o["isArray"])(r)?h:r,d=r?Object(o["isArray"])(r)?r:[r]:[],g=l;!1!==g&&(g=Object(u["d"])({},{fields:Object(o["isArray"])(r)?r:[]},g));var y=Object(c["g"])(Object(u["d"])({},t,{options:{xField:i,yField:f,seriesField:a,tooltip:g,rawFields:d,label:!1,schema:{shape:"box",color:s,style:p}}})).ext;return a&&y.geometry.adjust("dodge"),t}function b(t){var e=t.chart,n=t.options,i=n.xField,a=n.data,o=n.outliersField,s=n.outliersStyle,l=n.padding,u=n.label;if(!o)return t;var h=e.createView({padding:l,id:d}),p=a.reduce((function(t,e){var n=e[o];return n.forEach((function(n){var i;return t.push(Object(r["__assign"])(Object(r["__assign"])({},e),(i={},i[o]=n,i)))})),t}),[]);return h.data(p),Object(c["e"])({chart:h,options:{xField:i,yField:o,point:{shape:"circle",style:s},label:u}}),h.axis(!1),t}function m(t){var e,n,i=t.chart,r=t.options,a=r.meta,o=r.xAxis,s=r.yAxis,c=r.xField,p=r.yField,d=r.outliersField,g=Array.isArray(p)?h:p,v={};if(d){var y=f;e={},e[d]={sync:y,nice:!0},e[g]={sync:y,nice:!0},v=e}var b=Object(u["d"])(v,a,(n={},n[c]=Object(u["t"])(o,l["a"]),n[g]=Object(u["t"])(s,l["a"]),n));return i.scale(b),t}function x(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField,s=Array.isArray(o)?h:o;return!1===i?e.axis(a,!1):e.axis(a,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(u["g"])(y,b,m,x,O,s["l"],Object(s["b"])(),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["__extends"])(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}})(a["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}},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",a=null;return Object(i["each"])(n,(function(e,n){t[n]&&e[r]&&(a||(a={}),Object(i["mix"])(a,e[r]))})),a}},"988d":function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("9ab4"),r=n("8937"),a=n("c34d"),o=n("62e3"),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["get"])(u,["percent","formatter"])||function(t){return(100*t).toFixed(2)+"%"},p=c.content;p&&(p=Object(o["d"])({},p,{content:Object(r["isNil"])(p.content)?h(l):p.content})),Object(o["w"])(n,{statistic:Object(i["__assign"])(Object(i["__assign"])({},c),{content:p}),plotType:"ring-progress"},{percent:l})}return e&&n.render(!0),t}function u(t){return Object(o["g"])(s["b"],Object(a["g"])({}),c,l,a["a"],a["k"],Object(a["b"])())(t)}},"99af":function(t,e,n){"use strict";n("917c");var i=n("c34d"),r=n("afaa"),a=n("16fb"),o=n("f0b2"),s=(n("b4aa"),n("f7cc"),n("cc94"),n("e3a9"),n("bb0f"),n("63e2"),n("ed96"),n("96bf"),n("0587"),n("528e"),n("a6d0"),n("bbd5"),n("caa0"),n("c441"),n("68bc"),n("5e91"),n("fb05"),n("0704"),n("5e5a"),n("1405"),n("dbaf"),n("0abd"),n("9308"),n("cbbe"));n.d(e,"Radar",(function(){return s["a"]}));n("4c46"),n("60fe"),n("cf85"),n("aed4"),n("b44e"),n("ffed"),n("7011"),n("d390"),n("d36e"),n("9adb"),n("787a"),n("a37c9"),n("a18e"),n("14b2"),n("323ed"),n("efee"),n("0e37"),n("62e3"),n("db3c");Object(r["b"])("en-US",a["a"]),Object(r["b"])("zh-CN",o["a"]);i["g"],i["d"],i["l"],i["b"],i["c"],i["k"],i["a"]},"9a08":function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("c34d"),r=n("b4aa"),a=n("62e3"),o=n("8582f");n.d(e,"b",(function(){return o["b"]}));var s=n("edcb"),c=n("9457");function l(t){var e=t.chart,n=t.options,i=n.data,o=n.color,l=n.columnStyle,u=n.columnWidthRatio,h=Object(c["a"])(i);e.data(h);var p=Object(a["d"])({},t,{options:{xField:s["c"],yField:s["d"],widthRatio:u,interval:{style:l,color:o}}});return Object(r["c"])(p),e.axis(!1),e.legend(!1),e.interaction("element-active"),t}function u(t){return Object(a["g"])(i["k"],Object(i["f"])("columnStyle"),l,o["b"],i["l"],i["a"],Object(i["b"])())(t)}},"9a3e":function(t,e,n){"use strict";n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return u}));var i=n("9ab4"),r=n("8937"),a=n("65ce"),o=n("3f35");function s(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["get"])(t,"fill")&&(e["color"]=t["fill"]);var i=Object(o["a"])(t,n),s=i.shadowColor,c=i.shadowBlur,l=void 0===c?0:c,u=i.shadowOffsetX,h=void 0===u?0:u,p=i.shadowOffsetY,f=void 0===p?0:p;e["text-shadow"]=""+[s,h+"px",f+"px",l+"px"].join(" ");var d=Object(o["a"])(t,n),g=d.stroke,v=d.lineWidth,y=void 0===v?0:v;return e["-webkit-text-stroke"]=""+[y+"px",g].join(" "),Object(r["each"])(t,(function(t,i){["fontSize"].includes(i)&&Object(r["isNumber"])(t)?e[Object(a["a"])(i)]=t+"px":i&&!n.includes(i)&&(e[Object(a["a"])(i)]=""+t)})),e}function c(t,e){t.style["pointer-events"]="none",Object(r["each"])(e,(function(e,n){n&&e&&(t.style[n]=e)}))}var l=function(t,e,n){var a=e.statistic,l=e.plotType,u=a.title,h=a.content;[u,h].forEach((function(e,a){if(e){var p="";p=0===a?h?"translate(-50%, -100%)":"translate(-50%, -50%)":u?"translate(-50%, 0)":"translate(-50%, -50%)";var f=Object(r["isFunction"])(e.style)?e.style(n):e.style;t.annotation().html(Object(i["__assign"])({position:["50%","50%"],html:function(t,a){var o=a.getCoordinate(),u=0;if("pie"===l||"ring-progress"===l)u=o.getRadius()*o.innerRadius*2;else if("liquid"===l){var h=Object(r["get"])(a.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=o.getWidth());c(t,Object(i["__assign"])({width:u+"px",transform:p},s(f)));var v=a.getData();if(e.customHtml)return e.customHtml(t,a,n,v);var y=e.content;return e.formatter&&(y=e.formatter(n,v)),y?Object(r["isString"])(y)?y:""+y:"
    "},key:(0===a?"top":"bottom")+"-statistic"},Object(o["a"])(e,["offsetX","offsetY","rotate","style","formatter"])))}}))},u=function(t,e,n){var a=e.statistic,l=a.title,u=a.content;[l,u].forEach((function(e){if(e){var a=Object(r["isFunction"])(e.style)?e.style(n):e.style;t.annotation().html(Object(i["__assign"])({position:["50%","100%"],html:function(t,o){var l=o.getCoordinate(),u=o.views[0].getCoordinate(),h=u.getCenter(),p=u.getRadius(),f=Math.max(Math.sin(u.startAngle),Math.sin(u.endAngle))*p,d=h.y+f-l.y.start-parseFloat(Object(r["get"])(a,"fontSize",0)),g=l.getRadius()*l.innerRadius*2;c(t,Object(i["__assign"])({width:g+"px",transform:"translate(-50%, "+d+"px)"},s(a)));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["isString"])(y)?y:""+y:"
    "}},Object(o["a"])(e,["offsetX","offsetY","rotate","style","formatter"])))}}))}},"9adb":function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("9ab4"),r=n("cc94"),a=n("b2c8"),o=n("edcb"),s=n("9457"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="tiny-line",e}return Object(i["__extends"])(e,t),e.getDefaultOptions=function(){return o["a"]},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(s["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e}(r["b"])},"9c29":function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n("7326");function r(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return r(t)*r(e)?(t[0]*e[0]+t[1]*e[1])/(r(t)*r(e)):1}function o(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(v),r*=Math.sqrt(v));var y=n*n*(g*g)+r*r*(d*d),b=y?Math.sqrt((n*n*(r*r)-y)/y):1;c===l&&(b*=-1),isNaN(b)&&(b=0);var m=r?b*n*g/r:0,x=n?b*-r*d/n:0,O=(u+p)/2+Math.cos(s)*m-Math.sin(s)*x,j=(h+f)/2+Math.sin(s)*m+Math.cos(s)*x,_=[(d-m)/n,(g-x)/r],w=[(-1*d-m)/n,(-1*g-x)/r],C=o([1,0],_),M=o(_,w);return a(_,w)<=-1&&(M=Math.PI),a(_,w)>=1&&(M=0),0===l&&M>0&&(M-=2*Math.PI),1===l&&M<0&&(M+=2*Math.PI),{cx:O,cy:j,rx:Object(i["j"])(t,[p,f])?0:n,ry:Object(i["j"])(t,[p,f])?0:r,startAngle:C,endAngle:C+M,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"),a=n("9ab4"),o=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(a["__assign"])({name:"button"},l),e}return Object(a["__extends"])(e,t),e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(i["get"])(t,["interactions","filter-action","cfg","buttonConfig"]);return Object(o["d"])(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(a["__assign"])({text:n.text},null===(e=n.textStyle)||void 0===e?void 0:e.default)})},e.prototype.drawBackground=function(t,e){var n,i=this.getButtonCfg(),r=Object(o["s"])(i.padding),s=t.addShape({type:"rect",name:"button-rect",attrs:Object(a["__assign"])({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,a=i.getBBox(),o=r["h"].transform(null,[["t",n.x-a.width-s,n.y+a.height+c]]);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}(r["a"]);function h(t){return t.isInPlot()}function p(t,e,n){var i=n||{},r=i.mask,a=i.isStartEnable,o=e||"rect";switch(t){case"brush":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||h,action:["brush:start",o+"-mask:start",o+"-mask:show"],arg:[null,{maskStyle:null===r||void 0===r?void 0:r.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[o+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush:filter","brush:end",o+"-mask:end",o+"-mask:hide","brush-reset-button:show"]}],rollback:[{trigger:"brush-reset-button:click",action:["brush:reset","brush-reset-button:hide","cursor:crosshair"]}]};case"brush-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mousemove",action:"cursor:default",isEnable:function(t){return!!a&&!a(t)}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:[o+"-mask:start",o+"-mask:show"],arg:[{maskStyle:null===r||void 0===r?void 0:r.style}]},{trigger:"mask:dragstart",action:[o+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[o+"-mask:resize"]},{trigger:"mask:drag",action:[o+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[o+"-mask:end"]},{trigger:"mask:dragend",action:[o+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",o+"-mask:hide"]}]};case"brush-x":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||h,action:["brush-x:start",o+"-mask:start",o+"-mask:show"],arg:[null,{maskStyle:null===r||void 0===r?void 0:r.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[o+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush-x:filter","brush-x:end",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]};case"brush-x-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:[o+"-mask:start",o+"-mask:show"],arg:[{maskStyle:null===r||void 0===r?void 0:r.style}]},{trigger:"mask:dragstart",action:[o+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[o+"-mask:resize"]},{trigger:"mask:drag",action:[o+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[o+"-mask:end"]},{trigger:"mask:dragend",action:[o+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",o+"-mask:hide"]}]};case"brush-y":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:a||h,action:["brush-y:start",o+"-mask:start",o+"-mask:show"],arg:[null,{maskStyle:null===r||void 0===r?void 0:r.style}]}],processing:[{trigger:"mousemove",isEnable:h,action:[o+"-mask:resize"]}],end:[{trigger:"mouseup",isEnable:h,action:["brush-y:filter","brush-y:end",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-y:reset"]}]};case"brush-y-highlight":return{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair",isEnable:a||function(){return!0}},{trigger:"mask:mouseenter",action:"cursor:move",isEnable:a||function(){return!0}},{trigger:"plot:mouseleave",action:"cursor:default"},{trigger:"mask:mouseleave",action:"cursor:crosshair"}],start:[{trigger:"plot:mousedown",isEnable:a||function(t){return!t.isInShape("mask")},action:[o+"-mask:start",o+"-mask:show"],arg:[{maskStyle:null===r||void 0===r?void 0:r.style}]},{trigger:"mask:dragstart",action:[o+"-mask:moveStart"]}],processing:[{trigger:"plot:mousemove",action:[o+"-mask:resize"]},{trigger:"mask:drag",action:[o+"-mask:move"]},{trigger:"mask:change",action:["element-range-highlight:highlight"]}],end:[{trigger:"plot:mouseup",action:[o+"-mask:end"]},{trigger:"mask:dragend",action:[o+"-mask:moveEnd"]},{trigger:"document:mouseup",isEnable:function(t){return!t.isInPlot()},action:["element-range-highlight:clear",o+"-mask:end",o+"-mask:hide"]}],rollback:[{trigger:"dblclick",action:["element-range-highlight:clear",o+"-mask:hide"]}]};default:return{}}}Object(r["l"])("brush-reset-button",u,{name:"brush-reset-button"}),Object(r["o"])("filter-action",{}),Object(r["o"])("brush",p("brush")),Object(r["o"])("brush-highlight",p("brush-highlight")),Object(r["o"])("brush-x",p("brush-x","x-rect")),Object(r["o"])("brush-y",p("brush-y","y-rect")),Object(r["o"])("brush-x-highlight",p("brush-x-highlight","x-rect")),Object(r["o"])("brush-y-highlight",p("brush-y-highlight","y-rect"));var f=["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["filter"])(e.interactions||[],(function(t){return-1===f.indexOf(t.type)}));return(null===n||void 0===n?void 0:n.enabled)&&(f.forEach((function(t){var e=!1;switch(n.type){case"x-rect":e=t===("highlight"===n.action?"brush-x-highlight":"brush-x");break;case"y-rect":e=t===("highlight"===n.action?"brush-y-highlight":"brush-y");break;default:e=t===("highlight"===n.action?"brush-highlight":"brush");break}var i={type:t,enable:e};n&&(i.cfg=p(t,n.type,n)),r.push(i)})),"highlight"!==(null===n||void 0===n?void 0:n.action)&&r.push({type:"filter-action",cfg:{buttonConfig:n.button}})),Object(o["d"])({},t,{options:{interactions:r}})}},"9e6a2":function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var i=n("917c"),r=n("9ab4"),a=n("8937"),o=n("a9a0"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(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,a=n.get("field");if(a){var o=e.geometries[0].elements;return o.filter((function(t){return t.getModel().data[a]===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(a["isEqual"])(e.getData(),t.get("data"))}))}))},e.prototype.transfrom=function(t){void 0===t&&(t=7.5);var e=this.getActiveElements(),n=this.getActiveElementLabels();e.forEach((function(e,r){var a=n[r],s=e.geometry.coordinate;if(s.isPolar&&s.isTransposed){var c=i["h"].getAngle(e.getModel(),s),l=c.startAngle,u=c.endAngle,h=(l+u)/2,p=t,f=p*Math.cos(h),d=p*Math.sin(h);e.shape.setMatrix(Object(o["a"])([["t",f,d]])),a.setMatrix(Object(o["a"])([["t",f,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["__extends"])(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 o=Object(a["get"])(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;o=n.getData().find((function(t){return t[u]===h.value}))}}if(o){var p=Object(a["get"])(t,"annotations",[]),f=Object(a["get"])(t,"statistic",{});n.getController("annotation").clear(!0),Object(a["each"])(p,(function(t){"object"===typeof t&&n.annotation()[t.type](t)})),Object(c["b"])(n,{statistic:f,plotType:"pie"},o),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(a["each"])(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 p})),n.d(e,"a",(function(){return f}));var i=n("9ab4"),r=n("4799"),a=Math.sin,o=Math.cos,s=Math.atan2,c=Math.PI;function l(t,e,n,i,l,u,h){var p=e.stroke,f=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*o(c/6)+","+10*a(c/6)+" L0,0 L"+10*o(c/6)+",-"+10*a(c/6),stroke:p,lineWidth:f}});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 p=e.startArrow,f=e.endArrow,d=e.stroke,g=e.lineWidth,v=h?p:f,y=v.d,b=v.fill,m=v.stroke,x=v.lineWidth,O=Object(i["__rest"])(v,["d","fill","stroke","lineWidth"]),j=n-l,_=c-u,w=s(_,j);y&&(l-=o(w)*y,u-=a(w)*y);var C=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(i["__assign"])(Object(i["__assign"])({},O),{stroke:m||d,lineWidth:x||g,fill:b})});C.translate(l,u),C.rotateAtPoint(l,u,w),t.set(h?"startArrowShape":"endArrowShape",C)}function h(t,e,n,i,r){var c=s(i-e,n-t);return{dx:o(c)*r,dy:a(c)*r}}function p(t,e,n,i,r,a){"object"===typeof e.startArrow?u(t,e,n,i,r,a,!0):e.startArrow?l(t,e,n,i,r,a,!0):t.set("startArrowShape",null)}function f(t,e,n,i,r,a){"object"===typeof e.endArrow?u(t,e,n,i,r,a,!1):e.endArrow?l(t,e,n,i,r,a,!1):t.set("startArrowShape",null)}},"9f73":function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f}));var i=n("9ab4"),r=n("917c"),a=n("8937"),o=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"}},p="hierarchy-data-transform-params",f=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["__extends"])(e,t),e.prototype.click=function(){var t=Object(a["get"])(this.context,["event","data","data"]);if(!t)return!1;this.drill(t),this.drawBreadCrumb()},e.prototype.resetPosition=function(){if(this.breadCrumbGroup){var t=this.context.view.getCoordinate(),e=this.breadCrumbGroup,n=e.getBBox(),i=this.getButtonCfg().position,a={x:t.start.x,y:t.end.y-(n.height+2*l)};t.isPolar&&(a={x:0,y:0}),"bottom-left"===i&&(a={x:t.start.x,y:t.start.y});var o=r["h"].transform(null,[["t",a.x+c,a.y+n.height+l]]);e.setMatrix(o)}},e.prototype.back=function(){Object(a["size"])(this.historyCache)&&this.backTo(this.historyCache.slice(0,-1))},e.prototype.reset=function(){this.historyCache[0]&&this.backTo(this.historyCache.slice(0,1)),this.historyCache=[],this.hideCrumbGroup()},e.prototype.drill=function(t){var e=this.context.view,n=Object(a["get"])(e,["interactions","drill-down","cfg","transformData"],(function(t){return t})),r=n(Object(i["__assign"])({data:t.data},t[p]));e.changeData(r);var o=[],s=t;while(s){var c=s.data;o.unshift({id:c.name+"_"+s.height+"_"+s.depth,name:c.name,children:n(Object(i["__assign"])({data:c},t[p]))}),s=s.parent}this.historyCache=(this.historyCache||[]).slice(0,-1).concat(o)},e.prototype.backTo=function(t){if(t&&!(t.length<=0)){var e=this.context.view,n=Object(a["last"])(t).children;e.changeData(n),t.length>1?(this.historyCache=t,this.drawBreadCrumb()):(this.historyCache=[],this.hideCrumbGroup())}},e.prototype.getButtonCfg=function(){var t=this.context.view,e=Object(a["get"])(t,["interactions","drill-down","cfg","drillDownConfig"]);return Object(o["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(o,c){var l=t.breadCrumbGroup.addShape({type:"text",id:o.id,name:u+"_"+o.name+"_text",attrs:Object(i["__assign"])(Object(i["__assign"])({text:0!==c||Object(a["isNil"])(e.rootText)?o.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(a["last"])(n))||void 0===i?void 0:i.id)){var o=n.slice(0,n.findIndex((function(t){return t.id===r}))+1);t.backTo(o)}})),l.on("mouseenter",(function(t){var i,r=t.target.get("id");r!==(null===(i=Object(a["last"])(n))||void 0===i?void 0:i.id)?l.attr(e.activeTextStyle):l.attr({cursor:"default"})})),l.on("mouseleave",(function(){l.attr(e.textStyle)})),c1)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 C(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function M(t,e,n,i){n=n||0,i=i||t.length-1;while(i>n){if(i-n>600){var r=i-n+1,a=e-n+1,o=Math.log(r),s=.5*Math.exp(2*o/3),c=.5*Math.sqrt(o*s*(r-s)/r);a-r/2<0&&(c*=-1);var l=Math.max(n,Math.floor(e-a*s/r+c)),u=Math.min(i,Math.floor(e+(r-a)*s/r+c));M(t,e,l,u)}var h=t[e],p=n,f=i;C(t,n,e),t[i]>h&&C(t,n,i);while(ph)f--}t[n]===h?C(t,n,f):(f++,C(t,f,i)),f<=e&&(n=f+1),e<=f&&(i=f-1)}}function S(t,e){var n=t.slice();if(Array.isArray(e)){k(n,e);for(var i=[],r=0;r-1&&t%1==0&&t-1&&t%1==0&&t<=ut}var pt=ht,ft="[object Arguments]",dt="[object Array]",gt="[object Boolean]",vt="[object Date]",yt="[object Error]",bt="[object Function]",mt="[object Map]",xt="[object Number]",Ot="[object Object]",jt="[object RegExp]",_t="[object Set]",wt="[object String]",Ct="[object WeakMap]",Mt="[object ArrayBuffer]",St="[object DataView]",At="[object Float32Array]",kt="[object Float64Array]",Ft="[object Int8Array]",Et="[object Int16Array]",Tt="[object Int32Array]",Pt="[object Uint8Array]",It="[object Uint8ClampedArray]",Bt="[object Uint16Array]",Lt="[object Uint32Array]",Dt={};function Rt(t){return X(t)&&pt(t.length)&&!!Dt[G(t)]}Dt[At]=Dt[kt]=Dt[Ft]=Dt[Et]=Dt[Tt]=Dt[Pt]=Dt[It]=Dt[Bt]=Dt[Lt]=!0,Dt[ft]=Dt[dt]=Dt[Mt]=Dt[gt]=Dt[St]=Dt[vt]=Dt[yt]=Dt[bt]=Dt[mt]=Dt[xt]=Dt[Ot]=Dt[jt]=Dt[_t]=Dt[wt]=Dt[Ct]=!1;var Nt=Rt;function zt(t){return function(e){return t(e)}}var Yt=zt,Gt=n("c6eb"),Vt=Gt["a"]&&Gt["a"].isTypedArray,Xt=Vt?Yt(Vt):Nt,Ht=Xt,Wt=Object.prototype,qt=Wt.hasOwnProperty;function $t(t,e){var n=w(t),i=!n&&rt(t),r=!n&&!i&&Object(at["a"])(t),a=!n&&!i&&!r&&Ht(t),o=n||i||r||a,s=o?Z(t.length,String):[],c=s.length;for(var l in t)!e&&!qt.call(t,l)||o&&("length"==l||r&&("offset"==l||"parent"==l)||a&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||lt(l,c))||s.push(l);return s}var Ut=$t,Zt=Object.prototype;function Kt(t){var e=t&&t.constructor,n="function"==typeof e&&e.prototype||Zt;return t===n}var Qt=Kt;function Jt(t,e){return function(n){return t(e(n))}}var te=Jt,ee=te(Object.keys,Object),ne=ee,ie=Object.prototype,re=ie.hasOwnProperty;function ae(t){if(!Qt(t))return ne(t);var e=[];for(var n in Object(t))re.call(t,n)&&"constructor"!=n&&e.push(n);return e}var oe=ae;function se(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}var ce=se,le="[object AsyncFunction]",ue="[object Function]",he="[object GeneratorFunction]",pe="[object Proxy]";function fe(t){if(!ce(t))return!1;var e=G(t);return e==ue||e==he||e==le||e==pe}var de=fe;function ge(t){return null!=t&&pt(t.length)&&!de(t)}var ve=ge;function ye(t){return ve(t)?Ut(t):oe(t)}var be=ye;function me(t,e){return t&&$(t,e,be)}var xe=me;function Oe(t,e){return function(n,i){if(null==n)return n;if(!ve(n))return t(n,i);var r=n.length,a=e?r:-1,o=Object(n);while(e?a--:++a-1}var Le=Be;function De(t,e){var n=this.__data__,i=Ae(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this}var Re=De;function Ne(t){var e=-1,n=null==t?0:t.length;this.clear();while(++e2&&(n.push([i].concat(a.splice(0,2))),o="l",i="m"===i?"l":"L"),"o"===o&&1===a.length&&n.push([i,a[0]]),"r"===o)n.push([i].concat(a));else while(a.length>=e[o])if(n.push([i].concat(a.splice(0,e[o]))),!e[o])break;return""})),n}Math.PI;function zi(t){return Object(c["d"])({},t.defaultStyle,{fill:t.color},t.style)}Object(p["p"])("schema","venn",{draw:function(t,e){var n=t.data,r=Ni(n[u]),a=zi(t),o=e.addGroup({name:"venn-shape"});o.addShape("path",{attrs:Object(i["__assign"])(Object(i["__assign"])({},a),{path:r}),name:"venn-path"});var s=t.customInfo,c=s.offsetX,l=s.offsetY,h=p["h"].transform(null,[["t",c,l]]);return o.setMatrix(h),o},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{lineWidth:0,stroke:e,fill:e,r:4}}}});var Yi=n("e945"),Gi=function(t){return function(e,n){var i=[];return i[0]=t(e[0],n[0]),i[1]=t(e[1],n[1]),i[2]=t(e[2],n[2]),i}},Vi={normal:function(t){return t},multiply:function(t,e){return t*e/255},screen:function(t,e){return 255*(1-(1-t/255)*(1-e/255))},overlay:function(t,e){return e<128?2*t*e/255:255*(1-2*(1-t/255)*(1-e/255))},darken:function(t,e){return t>e?e:t},lighten:function(t,e){return t>e?t:e},dodge:function(t,e){return 255===t?255:(t=e/255*255/(1-t/255),t>255?255:t)},burn:function(t,e){return 255===e?255:0===t?0:255*(1-Math.min(1,(1-e/255)/(t/255)))}},Xi=function(t){if(!Vi[t])throw new Error("unknown blend mode "+t);return Vi[t]};function Hi(t,e,n){void 0===n&&(n="normal");var i=Gi(Xi(n))(Wi(t),Wi(e)),r=Wi(t),a=r[0],o=r[1],s=r[2],c=r[3],l=Wi(e),u=l[0],h=l[1],p=l[2],f=l[3],d=Number((c+f*(1-c)).toFixed(2)),g=Math.round((c*(1-f)*(a/255)+c*f*(i[0]/255)+(1-c)*f*(u/255))/d*255),v=Math.round((c*(1-f)*(o/255)+c*f*(i[1]/255)+(1-c)*f*(h/255))/d*255),y=Math.round((c*(1-f)*(s/255)+c*f*(i[2]/255)+(1-c)*f*(p/255))/d*255);return"rgba("+g+", "+v+", "+y+", "+d+")"}function Wi(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=Yi["a"].rgb2arr(n).concat([1])),e.map((function(t,e){return 3===e?Number(t):0|t}))):Yi["a"].rgb2arr(Yi["a"].toRGB(n)).concat([1])}var qi=n("23eb"),$i=1e-10;function Ui(t,e){var n,i=Ki(t),r=i.filter((function(e){return Zi(e,t)})),a=0,o=0,s=[];if(r.length>1){var c=nr(r);for(n=0;n-1){var g=t[h.parentIndex[d]],v=Math.atan2(h.x-g.x,h.y-g.y),y=Math.atan2(u.x-g.x,u.y-g.y),b=y-v;b<0&&(b+=2*Math.PI);var m=y-b/2,x=Ji(p,{x:g.x+g.radius*Math.sin(m),y:g.y+g.radius*Math.cos(m)});x>2*g.radius&&(x=2*g.radius),(null===f||f.width>x)&&(f={circle:g,width:x,p1:h,p2:u})}null!==f&&(s.push(f),a+=Qi(f.circle.radius,f.width),u=h)}}else{var O=t[0];for(n=1;nMath.abs(O.radius-t[n].radius)){j=!0;break}j?a=o=0:(a=O.radius*O.radius*Math.PI,s.push({circle:O,p1:{x:O.x,y:O.y+O.radius},p2:{x:O.x-$i,y:O.y+O.radius},width:2*O.radius}))}return o/=2,e&&(e.area=a+o,e.arcArea=a,e.polygonArea=o,e.arcs=s,e.innerPoints=r,e.intersectionPoints=i),a+o}function Zi(t,e){for(var n=0;ne[n].radius+$i)return!1;return!0}function Ki(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 Qi(t,i)+Qi(e,r)}function er(t,e){var n=Ji(t,e),i=t.radius,r=e.radius;if(n>=i+r||n<=Math.abs(i-r))return[];var a=(i*i-r*r+n*n)/(2*n),o=Math.sqrt(i*i-a*a),s=t.x+a*(e.x-t.x)/n,c=t.y+a*(e.y-t.y)/n,l=-(e.y-t.y)*(o/n),u=-(e.x-t.x)*(o/n);return[{x:s+l,y:c-u},{x:s-l,y:c+u}]}function nr(t){for(var e={x:0,y:0},n=0;n=o&&(a=i[n],o=s)}var c=Object(qi["nelderMead"])((function(n){return-1*ir({x:n[0],y:n[1]},t,e)}),[a.x,a.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;ns;r.push("\nA",s,s,0,c?1:0,1,o.p1.x,o.p1.y)}return r.join(" ")}function lr(t,e){e=e||{},e.maxIterations=e.maxIterations||500;var n=e.initialLayout||gr,i=e.lossFunction||br;t=pr(t);var r,a=n(t,e),o=[],s=[];for(r in a)a.hasOwnProperty(r)&&(o.push(a[r].x),o.push(a[r].y),s.push(r));for(var c=Object(qi["nelderMead"])((function(e){for(var n={},r=0;re?1:-1})),e=0;e=Math.min(e[a].size,e[o].size)?u=1:t.size<=1e-10&&(u=-1),r[a][o]=r[o][a]=u})),{distances:i,constraints:r}}function dr(t,e,n,i){var r,a=0;for(r=0;r0&&d<=h||p<0&&d>=h||(a+=2*g*g,e[2*r]+=4*g*(o-l),e[2*r+1]+=4*g*(s-u),e[2*c]+=4*g*(l-o),e[2*c+1]+=4*g*(u-s))}return a}function gr(t,e){var n=yr(t,e),i=e.lossFunction||br;if(t.length>=8){var r=vr(t,e),a=i(r,t),o=i(n,t);a+1e-8=Math.min(r[u].size,r[h].size)&&(l=0),a[u].push({set:h,size:c.size,weight:l}),a[h].push({set:u,size:c.size,weight:l})}var p=[];for(n in a)if(a.hasOwnProperty(n)){var f=0;for(o=0;o=g.length)){var n=Math.max(e-a,0),i=e,r=Math.min(e+a,g.length-1),o=n-(e-a),c=e+a-r,l=b[-a-1+o]||0,u=b[-a-1+c]||0,h=m/(m-l-u);o>0&&(O+=h*(o-1)*x);var p=Math.max(0,e-a+1);s.inside(0,g.length-1,p)&&(g[p].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,_=0,w=0;return g.forEach((function(t){_+=t.y,j+=_,t.y=j,w+=j})),w>0&&g.forEach((function(t){t.y/=w})),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/a,Math.pow(2,e)}}},a6d0:function(t,e,n){"use strict";var i=n("9ab4"),r=n("cc94"),a=n("8937"),o=n("c34d"),s=n("a0c4"),c=n("62e3"),l=n("f45c"),u=["x","y","r","name","value","path","depth"],h={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}},p=n("9f73"),f=n("2373"),d=n("6bcb"),g=n("23b9"),v={field:"value",as:["x","y","r"],sort:function(t,e){return e.value-t.value}};function y(t,e){e=Object(a["assign"])({},v,e);var n,i=e.as;if(!Object(a["isArray"])(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(g["e"])(e)}catch(u){}var r=function(t){return f["a"]().size(e.size).padding(e.padding)(d["c"](t).sum((function(t){return t[n]})).sort(e.sort))},o=r(t),s=i[0],c=i[1],l=i[2];return o.each((function(t){t[s]=t.x,t[c]=t.y,t[l]=t.r})),Object(g["d"])(o)}function b(t){var e=t.data,n=t.hierarchyConfig,r=t.rawFields,a=void 0===r?[]:r,o=t.enableDrillDown,s=y(e,Object(i["__assign"])(Object(i["__assign"])({},n),{field:"value",as:["x","y","r"]})),l=[];return s.forEach((function(t){var e,r=t.data.name,s=Object(i["__assign"])({},t);while(s.depth>1)r=(null===(e=s.parent.data)||void 0===e?void 0:e.name)+" / "+r,s=s.parent;if(o&&t.depth>2)return null;var u=Object(c["d"])({},t.data,Object(i["__assign"])(Object(i["__assign"])(Object(i["__assign"])({},Object(c["t"])(t.data,a)),{path:r}),t));u.ext=n,u[p["b"]]={hierarchyConfig:n,rawFields:a,enableDrillDown:o},l.push(u)})),l}function m(t,e,n){var i=Object(l["c"])([t,e]),r=i[0],a=i[1],o=i[2],s=i[3],c=n.width,u=n.height,h=c-(s+a),p=u-(r+o),f=Math.min(h,p),d=(h-f)/2,g=(p-f)/2,v=r+g,y=a+d,b=o+g,m=s+d,x=[v,y,b,m],O=f<0?0:f;return{finalPadding:x,finalSize:O}}function x(t){var e=t.chart,n=Math.min(e.viewBBox.width,e.viewBBox.height);return Object(c["d"])({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,o=e.appendPadding,s=e.drilldown,c=o;if(null===s||void 0===s?void 0:s.enabled){var u=Object(l["a"])(n.appendPadding,Object(a["get"])(s,["breadCrumb","position"]));c=Object(l["c"])([u,o])}var h=m(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,a=e.appendPadding,o=n.color,l=n.colorField,h=n.pointStyle,p=n.hierarchyConfig,f=n.sizeField,d=n.rawFields,g=void 0===d?[]:d,v=n.drilldown,y=b({data:n.data,hierarchyConfig:p,enableDrillDown:null===v||void 0===v?void 0:v.enabled,rawFields:g});e.data(y);var x=e.viewBBox,O=m(r,a,x).finalSize,j=function(t){var e=t.r;return e*O};return f&&(j=function(t){return t[f]*O}),Object(s["a"])(Object(c["d"])({},t,{options:{xField:"x",yField:"y",seriesField:l,sizeField:f,rawFields:Object(i["__spreadArrays"])(u,g),point:{color:o,style:h,shape:"circle",size:j}}})),t}function _(t){return Object(c["g"])(Object(o["g"])({},{x:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0},y:{min:0,max:1,minLimit:0,maxLimit:1,nice:!0}}))(t)}function w(t){var e=t.chart,n=t.options,r=n.tooltip;if(!1===r)e.tooltip(!1);else{var o=r;Object(a["get"])(r,"fields")||(o=Object(c["d"])({},{customItems:function(t){return t.map((function(t){var n=Object(a["get"])(e.getOptions(),"scales"),r=Object(a["get"])(n,["name","formatter"],(function(t){return t})),o=Object(a["get"])(n,["value","formatter"],(function(t){return t}));return Object(i["__assign"])(Object(i["__assign"])({},t),{name:r(t.data.name),value:o(t.data.value)})}))}},o)),e.tooltip(o)}return t}function C(t){var e=t.chart;return e.axis(!1),t}function M(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["d"])({},t,{interactions:Object(i["__spreadArrays"])(r,[{type:"drill-down",cfg:{drillDownConfig:e,transformData:b,enableDrillDown:!0}}])}):t}function S(t){var e=t.chart,n=t.options;return Object(o["c"])({chart:e,options:M(n)}),t}function A(t){return Object(c["g"])(Object(o["f"])("pointStyle"),x,O,o["k"],_,j,C,o["d"],w,S,o["a"],Object(o["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["__extends"])(e,t),e.getDefaultOptions=function(){return h},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return A},e.prototype.triggerResize=function(){this.chart.destroyed||(this.chart.forceFit(),this.chart.clear(),this.execAdaptor(),this.chart.render(!0))}}(r["b"])},a9a0:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n("9ab4"),r=n("917c"),a=[1,0,0,0,1,0,0,0,1];function o(t,e){var n=e?Object(i["__spreadArrays"])(e):Object(i["__spreadArrays"])(a);return r["h"].transform(n,t)}},aed4:function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),a=n("cc94"),o=n("62e3"),s=n("c34d"),c=n("b4aa"),l=n("e0e9"),u="x",h="y",p="name",f="nodes",d="edges",g=n("0f20");function v(t,e,n){var i=[];return t.forEach((function(t){var r=t[e],a=t[n];i.includes(r)||i.push(r),i.includes(a)||i.push(a)})),i}function y(t,e,n,i){var r={};return e.forEach((function(t){r[t]={},e.forEach((function(e){r[t][e]=0}))})),t.forEach((function(t){r[t[n]][t[i]]=1})),r}function b(t,e,n){if(!Object(r["isArray"])(t))return[];var i=[],a=v(t,e,n),o=y(t,a,e,n),s={};function c(t){s[t]=1,a.forEach((function(e){if(0!=o[t][e])if(1==s[e])i.push(t+"_"+e);else{if(-1==s[e])return;c(e)}})),s[t]=-1}return a.forEach((function(t){s[t]=0})),a.forEach((function(t){-1!=s[t]&&c(t)})),i.length,t.filter((function(t){return i.findIndex((function(i){return i===t[e]+"_"+t[n]}))<0}))}function m(t){return t.target.depth}function x(t){return t.depth}function O(t,e){return e-1-t.height}function j(t,e){return t.sourceLinks.length?t.depth:e-1}function _(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Object(r["minBy"])(t.sourceLinks,m)-1:0}function w(t){return function(){return t}}function C(t,e){for(var n=0,i=0;ii)throw new Error("circular link");r=a,a=new Set}if(e)for(var s=Math.max(M(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 x(t){for(var e=t.nodes,i=Math.max(M(e,(function(t){return t.depth}))+1,0),a=(o-r-c)/(i-1),s=new Array(i).fill(0).map((function(){return[]})),l=0,u=e;l0){var b=(u/h-l.y0)*e;l.y0+=b,l.y1+=b,G(l)}}void 0===n&&o.sort(F),o.length&&N(o,i)}}function R(t,e,i){for(var r=t.length,a=r-2;a>=0;--a){for(var o=t[a],s=0,c=o;s0){var b=(u/h-l.y0)*e;l.y0+=b,l.y1+=b,G(l)}}void 0===n&&o.sort(F),o.length&&N(o,i)}}function N(e,n){var i=e.length>>1,r=e[i];Y(e,r.y0-t,i-1,n),z(e,r.y1+t,i+1,n),Y(e,s,e.length-1,n),z(e,a,0,n)}function z(e,n,i,r){for(;i1e-6&&(a.y0+=o,a.y1+=o),n=a.y1+t}}function Y(e,n,i,r){for(;i>=0;--i){var a=e[i],o=(a.y1-n)*r;o>1e-6&&(a.y0-=o,a.y1-=o),n=a.y0-t}}function G(t){var e=t.sourceLinks,n=t.targetLinks;if(void 0===i){for(var r=0,a=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=W(this.options,this.chart.width,this.chart.height),n=e.nodes,i=e.edges,r=Object(o["f"])(this.chart,f),a=Object(o["f"])(this.chart,d);r.changeData(n),a.changeData(i)},e.prototype.getSchemaAdaptor=function(){return Q},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(a["b"])},af40:function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return f}));var i=n("7326"),r=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,a=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,o=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi;function 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,a,o=r.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),l=o[2],u=e.getBBox();s>=0&&s<.5*Math.PI?(i={x:u.minX,y:u.minY},a={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(),a=r.length,l=a-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,p=o(u,e,n),f=p[0],d=p[1];h.isInShape(f,d)&&(i=u)}if(i)break}return i}var l=n("4799"),u=n("c2ad"),h=n("7326"),p=n("f5e5"),f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["renderer"]="canvas",e["autoDraw"]=!0,e["localRefresh"]=!0,e["refreshElements"]=[],e["clipView"]=!0,e["quickHit"]=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return l},e.prototype.getGroupBase=function(){return u["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"),a=this.getPixelRatio();r.width=a*e,r.height=a*n,a>1&&i.scale(a,a)},e.prototype.clear=function(){t.prototype.clear.call(this),this._clearFrame();var e=this.get("context"),n=this.get("el");e.clearRect(0,0,n.width,n.height)},e.prototype.getShape=function(e,n){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(p["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(p["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(p["a"])(t,this),Object(p["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(p["a"])(t,this),Object(p["b"])(this,n,i),Object(p["d"])(t,n,i),t.restore()):e.length&&Object(p["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"]=f},b2a0:function(t,e,n){"use strict";n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("9ab4"),r=n("8937"),a=n("17f7");function o(t,e,n,o){var s=Object(r["reduce"])(t,(function(t,i){var r=i[n],o=t.has(r)?t.get(r):0,s=i[e];return o=Object(a["b"])(s)?o+s:o,t.set(r,o),t}),new Map);return Object(r["map"])(t,(function(t){var r,c=t[e],l=t[n],u=Object(a["b"])(c)&&0!==s.get(l)?c/s.get(l):0;return Object(i["__assign"])(Object(i["__assign"])({},t),(r={},r[o]=u,r))}))}function s(t,e,n,o){var s=Object(r["reduce"])(t,(function(t,i){var o=Object(r["reduce"])(n,(function(t,e){return""+t+i[e]}),""),s=t.has(o)?t.get(o):0,c=i[e];return s=Object(a["b"])(c)?s+c:s,t.set(o,s),t}),new Map);return Object(r["map"])(t,(function(t){var c,l=t[e],u=Object(r["reduce"])(n,(function(e,n){return""+e+t[n]}),""),h=Object(a["b"])(l)&&0!==s.get(u)?l/s.get(u):0;return Object(i["__assign"])(Object(i["__assign"])({},t),(c={},c[o]=h,c))}))}function c(t,e,n,i,r){return r?o(t,e,n,i):t}},b2c8:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("c34d"),r=n("b4aa"),a=n("62e3"),o=n("8582f");n.d(e,"b",(function(){return o["b"]}));var s=n("edcb"),c=n("9457");function l(t){var e=t.chart,n=t.options,i=n.data,o=n.color,l=n.lineStyle,u=n.point,h=null===u||void 0===u?void 0:u.state,p=Object(c["a"])(i);e.data(p);var f=Object(a["d"])({},t,{options:{xField:s["c"],yField:s["d"],line:{color:o,style:l},point:u}}),d=Object(a["d"])({},f,{options:{tooltip:!1,state:h}});return Object(r["d"])(f),Object(r["e"])(d),e.axis(!1),e.legend(!1),t}function u(t){return Object(a["g"])(l,o["b"],i["k"],i["l"],i["a"],Object(i["b"])())(t)}},b2cb:function(t,e,n){"use strict";n.d(e,"j",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"g",(function(){return o})),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["isNil"]})),n.d(e,"d",(function(){return i["isFunction"]})),n.d(e,"h",(function(){return i["isString"]})),n.d(e,"f",(function(){return i["isObject"]})),n.d(e,"i",(function(){return i["mix"]})),n.d(e,"a",(function(){return i["each"]})),n.d(e,"k",(function(){return i["upperFirst"]}));var a="undefined"!==typeof window&&"undefined"!==typeof window.document;function o(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 a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));var i=n("cc94"),r=n("62e3"),a="range",o="count",s=Object(r["d"])({},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("9ab4"),r=n("917c"),a=n("cc94"),o=n("62e3"),s=n("5cc9"),c=Object(o["d"])({},a["b"].getDefaultOptions(),{size:4,tooltip:{showTitle:!1,showMarkers:!1,showCrosshairs:!0,crosshairs:{type:"xy"}}}),l=(n("c88a"),function(t){function e(e,n){var a=t.call(this,e,n)||this;return a.type="scatter",a.on(r["i"].BEFORE_RENDER,(function(t){var e,n,o=a,c=o.options,l=o.chart;if((null===(e=t.data)||void 0===e?void 0:e.source)===r["b"].FILTER){var u=a.chart.filterData(a.chart.getData());Object(s["b"])({chart:l,options:Object(i["__assign"])(Object(i["__assign"])({},c),{data:u})})}(null===(n=t.data)||void 0===n?void 0:n.source)===r["b"].RESET&&Object(s["b"])({chart:l,options:c})})),a}return Object(i["__extends"])(e,t),e.getDefaultOptions=function(){return c},e.prototype.changeData=function(t){this.updateOption(Object(s["c"])(Object(o["d"])({},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}(a["b"]))},b4aa:function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return c})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return f})),n.d(e,"e",(function(){return d["a"]})),n.d(e,"f",(function(){return g["a"]})),n.d(e,"g",(function(){return v})),n.d(e,"h",(function(){return y}));var i=n("9ab4"),r=n("62e3"),a=n("e474"),o=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,p=e.useDeferredLabel,f=Object(a["a"])(h,[s,c,l]),d=f.fields,g=f.formatter;return n?Object(o["a"])(Object(r["d"])({},t,{options:{type:"area",colorField:l,tooltipFields:d,mapping:Object(i["__assign"])({shape:u?"smooth":"area",tooltip:g},n),args:{useDeferredLabel:p}}})):t}function c(t){var e=t.options,n=e.edge,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,h=e.useDeferredLabel,p=Object(a["a"])(u,[s,c,l]),f=p.fields,d=p.formatter;return n?Object(o["a"])(Object(r["d"])({},t,{options:{type:"edge",colorField:l,tooltipFields:f,mapping:Object(i["__assign"])({tooltip:d},n),args:{useDeferredLabel:h}}})):t}var l=n("917c"),u=n("8937");function h(t){var e=t.chart,n=t.options,i=t.ext,a=n.seriesField,o=n.isGroup,s=n.isStack,c=n.marginRatio,h=n.widthRatio,p=n.groupField,f=n.theme,d=[];if(a&&(o&&d.push({type:"dodge",dodgeBy:p||a,marginRatio:c}),s&&d.push({type:"stack",marginRatio:c})),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(u["isNil"])(h)||e.theme(Object(r["d"])({},Object(u["isObject"])(f)?f:Object(l["k"])(f),{columnWidthRatio:h})),t}function p(t){var e=t.options,n=e.xField,s=e.yField,c=e.interval,l=e.seriesField,u=e.tooltip,p=e.minColumnWidth,f=e.maxColumnWidth,d=e.columnBackground,g=e.dodgePadding,v=e.intervalPadding,y=e.useDeferredLabel,b=Object(a["a"])(u,[n,s,l]),m=b.fields,x=b.formatter,O=(c?Object(o["a"])(Object(r["d"])({},t,{options:{type:"interval",colorField:l,tooltipFields:m,mapping:Object(i["__assign"])({tooltip:x},c),args:{dodgePadding:g,intervalPadding:v,minColumnWidth:p,maxColumnWidth:f,background:d,useDeferredLabel:y}}})):t).ext;return h(Object(i["__assign"])(Object(i["__assign"])({},t),{ext:O}))}function f(t){var e=t.options,n=e.line,i=e.stepType,s=e.xField,c=e.yField,l=e.seriesField,h=e.smooth,p=e.connectNulls,f=e.tooltip,d=e.useDeferredLabel,g=Object(a["a"])(f,[s,c,l]),v=g.fields,y=g.formatter;return n?Object(o["a"])(Object(r["d"])({},t,{options:{type:"line",colorField:l,tooltipFields:v,mapping:Object(u["deepMix"])({shape:i||(h?"smooth":"line"),tooltip:y},n),args:{connectNulls:p,useDeferredLabel:d}}})):t}var d=n("a0c4"),g=n("28c6");function v(t){var e=t.options,n=e.schema,s=e.xField,c=e.yField,l=e.seriesField,u=e.tooltip,h=e.useDeferredLabel,p=Object(a["a"])(u,[s,c,l]),f=p.fields,d=p.formatter;return n?Object(o["a"])(Object(r["d"])({},t,{options:{type:"schema",colorField:l,tooltipFields:f,mapping:Object(i["__assign"])({tooltip:d},n),args:{useDeferredLabel:h}}})):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,p=Object(a["a"])(h,[s,c,l,u]),f=p.fields,d=p.formatter;return n?Object(o["a"])(Object(r["d"])({},t,{options:{type:"violin",colorField:l,tooltipFields:f,mapping:Object(i["__assign"])({tooltip:d},n)}})):t}},b5d5:function(t,e){},b6f4:function(t,e,n){"use strict";var i=n("0dd4"),r=n("2388"),a=n("21e5"),o=n("092b");e["a"]=function(){var t=r["a"],e=!1,n=1,s=1,c=[0],l=o["a"],u=o["a"],h=o["a"],p=o["a"],f=o["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,a=e.x1-n,o=e.y1-n;a2&&(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 a=[{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?a[3]={x:+t[0],y:+t[1]}:r-2===i&&(a[2]={x:+t[0],y:+t[1]},a[3]={x:+t[2],y:+t[3]}):a[0]={x:+t[r-2],y:+t[r-1]}:r-4===i?a[3]=a[2]:i||(a[0]={x:+t[i],y:+t[i+1]}),n.push(["C",(-a[0].x+6*a[1].x+a[2].x)/6,(-a[0].y+6*a[1].y+a[2].y)/6,(a[1].x+6*a[2].x-a[3].x)/6,(a[1].y+6*a[2].y-a[3].y)/6,a[2].x,a[2].y])}return n},l=function(t,e,n,i,r){var a=[];if(null===r&&null===i&&(i=n),t=+t,e=+e,n=+n,i=+i,null!==r){var o=Math.PI/180,s=t+n*Math.cos(-i*o),c=t+n*Math.cos(-r*o),l=e+n*Math.sin(-i*o),u=e+n*Math.sin(-r*o);a=[["M",s,l],["A",n,n,0,+(r-i>180),0,c,u]]}else a=[["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 a},u=function(t){if(t=s(t),!t||!t.length)return[["M",0,0]];var e,n,i=[],r=0,a=0,o=0,u=0,h=0;"M"===t[0][0]&&(r=+t[0][1],a=+t[0][2],o=r,u=a,h++,i[0]=["M",r,a]);for(var p=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),f=void 0,d=void 0,g=h,v=t.length;g1&&(j=Math.sqrt(j),n*=j,i*=j);var _=n*n,w=i*i,C=(a===o?-1:1)*Math.sqrt(Math.abs((_*w-_*O*O-w*x*x)/(_*O*O+w*x*x)));d=C*n*O/i+(t+s)/2,g=C*-i*x/n+(e+c)/2,h=Math.asin(((e-g)/i).toFixed(9)),p=Math.asin(((c-g)/i).toFixed(9)),h=tp&&(h-=2*Math.PI),!o&&p>h&&(p-=2*Math.PI)}var M=p-h;if(Math.abs(M)>v){var S=p,A=s,k=c;p=h+v*(o&&p>h?1:-1),s=d+n*Math.cos(p),c=g+i*Math.sin(p),b=f(s,c,n,i,r,0,o,A,k,[p,S,d,g])}M=p-h;var F=Math.cos(h),E=Math.sin(h),T=Math.cos(p),P=Math.sin(p),I=Math.tan(M/4),B=4/3*n*I,L=4/3*i*I,D=[t,e],R=[t+B*E,e-L*F],N=[s+B*P,c-L*T],z=[s,c];if(R[0]=2*D[0]-R[0],R[1]=2*D[1]-R[1],l)return[R,N,z].concat(b);b=[R,N,z].concat(b).join().split(",");for(var Y=[],G=0,V=b.length;G7){t[e].shift();var a=t[e];while(a.length)s[e]="A",r&&(c[e]="A"),t.splice(e++,0,["C"].concat(a.splice(0,6)));t.splice(e,1),n=Math.max(i.length,r&&r.length||0)}},y=function(t,e,a,o,s){t&&e&&"M"===t[s][0]&&"M"!==e[s][0]&&(e.splice(s,0,["M",o.x,o.y]),a.bx=0,a.by=0,a.x=t[s][1],a.y=t[s][2],n=Math.max(i.length,r&&r.length||0))};n=Math.max(i.length,r&&r.length||0);for(var b=0;b1?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],p=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0,d=0;d0&&h<1&&p.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&&p.push(y);var b=(-l-v)/(2*c);b>0&&b<1&&p.push(b)}}var m,x=p.length,O=x;while(x--)h=p[x],m=1-h,f[0][x]=m*m*m*t+3*m*m*h*n+3*m*h*h*r+h*h*h*o,f[1][x]=m*m*m*e+3*m*m*h*i+3*m*h*h*a+h*h*h*s;return f[0][O]=t,f[1][O]=e,f[0][O+1]=o,f[1][O+1]=s,f[0].length=f[1].length=O+2,{min:{x:Math.min.apply(0,f[0]),y:Math.min.apply(0,f[1])},max:{x:Math.max.apply(0,f[0]),y:Math.max.apply(0,f[1])}}},x=function(t,e,n,i,r,a,o,s){if(!(Math.max(t,n)Math.max(r,o)||Math.max(e,i)Math.max(a,s))){var c=(t*i-e*n)*(r-o)-(t-n)*(r*s-a*o),l=(t*i-e*n)*(a-s)-(e-i)*(r*s-a*o),u=(t-n)*(a-s)-(e-i)*(r-o);if(u){var h=c/u,p=l/u,f=+h.toFixed(2),d=+p.toFixed(2);if(!(f<+Math.min(t,n).toFixed(2)||f>+Math.max(t,n).toFixed(2)||f<+Math.min(r,o).toFixed(2)||f>+Math.max(r,o).toFixed(2)||d<+Math.min(e,i).toFixed(2)||d>+Math.max(e,i).toFixed(2)||d<+Math.min(a,s).toFixed(2)||d>+Math.max(a,s).toFixed(2)))return{x:h,y:p}}}},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 a=[["M",t,e],["l",n,0],["l",0,i],["l",-n,0],["z"]];return a.parsePathArray=v,a},_=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(" ")}},w=function(t,e){return t=_(t),e=_(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)},C=function(t,e,n,r,a,o,s,c){Object(i["isArray"])(t)||(t=[t,e,n,r,a,o,s,c]);var l=m.apply(null,t);return _(l.min.x,l.min.y,l.max.x-l.min.x,l.max.y-l.min.y)},M=function(t,e,n,i,r,a,o,s,c){var l=1-c,u=Math.pow(l,3),h=Math.pow(l,2),p=c*c,f=p*c,d=u*t+3*h*c*n+3*l*c*c*r+f*o,g=u*e+3*h*c*i+3*l*c*c*a+f*s,v=t+2*c*(n-t)+p*(r-2*n+t),y=e+2*c*(i-e)+p*(a-2*i+e),b=n+2*c*(r-n)+p*(o-2*r+n),m=i+2*c*(a-i)+p*(s-2*a+i),x=l*t+c*n,O=l*e+c*i,j=l*r+c*o,_=l*a+c*s,w=90-180*Math.atan2(v-b,y-m)/Math.PI;return{x:d,y:g,m:{x:v,y:y},n:{x:b,y:m},start:{x:x,y:O},end:{x:j,y:_},alpha:w}},S=function(t,e,n){var i=C(t),r=C(e);if(!w(i,r))return n?0:[];for(var a=b.apply(0,t),o=b.apply(0,e),s=~~(a/8),c=~~(o/8),l=[],u=[],h={},p=n?0:[],f=0;f=0&&A<=1&&k>=0&&k<=1&&(n?p+=1:p.push({x:S.x,y:S.y,t1:A,t2:k}))}}return p},A=function(t,e,n){var i,r,a,o,s,c,l,u,h,p;t=d(t),e=d(e);for(var f=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 T=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(E(t,e,n));else{var r=[].concat(t);"M"===r[0]&&(r[0]="L");for(var a=0;a<=n-1;a++)i.push(r)}return i},P=function(t,e){if(1===t.length)return t;var n=t.length-1,i=e.length-1,r=n/i,a=[];if(1===t.length&&"M"===t[0][0]){for(var o=0;o=0;c--)o=a[c].index,"add"===a[c].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}i=t.length;var h=r-i;if(i0)){t[i]=e[i];break}n=R(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=R(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=R(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}},b825:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return p})),n.d(e,"Text",(function(){return d})),n.d(e,"Arc",(function(){return v})),n.d(e,"Region",(function(){return b})),n.d(e,"Image",(function(){return x})),n.d(e,"DataMarker",(function(){return j})),n.d(e,"DataRegion",(function(){return w})),n.d(e,"RegionFilter",(function(){return M})),n.d(e,"Shape",(function(){return A})),n.d(e,"Html",(function(){return T}));var i=n("9ab4"),r=n("8937"),a=n("31e6"),o=n("060b"),s=n("8ea8"),c=n("e546");function l(t,e){var n=e.x,a=e.y,l=e.content,u=e.style,h=e.id,p=e.name,f=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,y=e.ellipsisPosition,b=e.background,m=t.addGroup({id:h+"-group",name:p+"-group",attrs:{x:n,y:a}}),x=m.addShape({type:"text",id:h,name:p,attrs:Object(i["__assign"])({x:0,y:0,text:l},u)}),O=Object(c["c"])(Object(r["get"])(b,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(o["a"])(!v,x,j,y)}if(b){var _=Object(r["get"])(b,"style",{}),w=x.getCanvasBBox(),C=w.minX,M=w.minY,S=w.width,A=w.height,k=m.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(i["__assign"])({x:C-O[3],y:M-O[0],width:S+O[1]+O[3],height:A+O[0]+O[2]},_)});k.toBack()}Object(s["c"])(m,n,a),Object(s["b"])(m,f,n,a)}var u=n("2f5e"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},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["__assign"])({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["isString"])(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(r["isNumber"])(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,a=e.content,o=e.style,s=e.offsetX,c=e.offsetY,u=e.autoRotate,h=e.maxLength,p=e.autoEllipsis,f=e.ellipsisPosition,d=e.background,g=e.isVertical,v=void 0!==g&&g,y=this.getLabelPoint(n,i,r),b=y.x+s,m=y.y+c,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:b,y:m,content:a,style:o,maxLength:h,autoEllipsis:p,ellipsisPosition:f,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}(a["a"]),p=h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{name:"annotation",type:"text",locationType:"point",x:0,y:0,content:"",rotate:null,style:{},background:null,maxLength:null,autoEllipsis:!0,isVertical:!1,ellipsisPosition:"tail",defaultCfg:{style:{fill: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"),a=this.get("style"),o=this.getElementId("text"),s=this.get("name")+"-text",c=this.get("maxLength"),u=this.get("autoEllipsis"),h=this.get("isVertical"),p=this.get("ellipsisPosition"),f=this.get("background"),d=this.get("rotate"),g={id:o,name:s,x:n,y:i,content:r,style:a,maxLength:c,autoEllipsis:u,isVertical:h,ellipsisPosition:p,background:f,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}(a["a"]),d=f,g=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,a=Object(c["e"])(e,n,i),o=Object(c["e"])(e,n,r),s=r-i>Math.PI?1:0,l=[["M",a.x,a.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,o.x,o.y])}else l.push(["A",n,n,0,s,1,o.x,o.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["__assign"])({path:e},n)})},e}(a["a"]),v=g,y=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},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"),a=Object(c["k"])({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["__assign"])({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a["a"]),b=y,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=Object(c["k"])({start:t,end:e}),a=this.get("src");return Object(i["__assign"])({x:r.x,y:r.y,img:a,width:r.width,height:r.height},n)},e.prototype.renderImage=function(t){this.addShape(t,{type:"image",id:this.getElementId("image"),name:"annotation-image",attrs:this.getImageAttrs()})},e}(a["a"]),x=m,O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u["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["get"])(this.get("line"),"display")&&this.renderLine(t),Object(r["get"])(this.get("text"),"display")&&this.renderText(t),Object(r["get"])(this.get("point"),"display")&&this.renderPoint(t),this.get("autoAdjust")&&this.autoAdjust(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x")+this.get("offsetX"),y:this.get("y")+this.get("offsetY")})},e.prototype.renderPoint=function(t){var e=this.getShapeAttrs().point;this.addShape(t,{type:"circle",id:this.getElementId("point"),name:"annotation-point",attrs:e})},e.prototype.renderLine=function(t){var e=this.getShapeAttrs().line;this.addShape(t,{type:"path",id:this.getElementId("line"),name:"annotation-line",attrs:e})},e.prototype.renderText=function(t){var e=this.getShapeAttrs().text,n=e.x,r=e.y,a=e.text,o=Object(i["__rest"])(e,["x","y","text"]),s=this.get("text"),c=s.background,u=s.maxLength,h=s.autoEllipsis,p=s.isVertival,f=s.ellipsisPosition,d={x:n,y:r,id:this.getElementId("text"),name:"annotation-text",content:a,style:o,background:c,maxLength:u,autoEllipsis:h,isVertival:p,ellipsisPosition:f};l(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),a=Object(r["get"])(this.get("line"),"length",0),o=this.get("coordinateBBox"),c=t.getBBox(),l=c.minX,u=c.maxX,h=c.minY,p=c.maxY,f=t.findById(this.getElementId("text-group")),d=t.findById(this.getElementId("text")),g=t.findById(this.getElementId("line"));if(o){if(f){if(n+l<=o.minX){var v=o.minX-(n+l);Object(s["c"])(f,f.attr("x")+v,f.attr("y"))}if(n+u>=o.maxX){v=n+u-o.maxX;Object(s["c"])(f,f.attr("x")-v,f.attr("y"))}}if("upward"===e&&i+h<=o.minY||"upward"!==e&&i+p>=o.maxY){var y=void 0,b=void 0;"upward"===e&&i+h<=o.minY?(y="top",b=1):(y="bottom",b=-1),d.attr("textBaseline",y),g&&g.attr("path",[["M",0,0],["L",0,a*b]]),Object(s["c"])(f,f.attr("x"),(a+2)*b)}}},e.prototype.getShapeAttrs=function(){var t=Object(r["get"])(this.get("line"),"display"),e=Object(r["get"])(this.get("point"),"style",{}),n=Object(r["get"])(this.get("line"),"style",{}),a=Object(r["get"])(this.get("text"),"style",{}),o=this.get("direction"),s=t?Object(r["get"])(this.get("line"),"length",0):0,c="upward"===o?-1:1;return{point:Object(i["__assign"])({x:0,y:0},e),line:Object(i["__assign"])({path:[["M",0,0],["L",0,s*c]]},n),text:Object(i["__assign"])({x:0,y:(s+2)*c,text:Object(r["get"])(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},a)}},e}(a["a"]),j=O,_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},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["get"])(this.get("region"),"style",{}),n=(Object(r["get"])(this.get("text"),"style",{}),this.get("lineLength")||0),a=this.get("points");if(a.length){var o=Object(c["j"])(a),s=[];s.push(["M",a[0].x,o.minY-n]),a.forEach((function(t){s.push(["L",t.x,t.y])})),s.push(["L",a[a.length-1].x,a[a.length-1].y-n]),this.addShape(t,{type:"path",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["__assign"])({path:s},e)});var u=Object(i["__assign"])({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));l(t,u)}},e}(a["a"]),w=_,C=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),i=this.get("end"),a=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(r["each"])(this.get("shapes"),(function(t,n){var i=t.get("type"),o=Object(r["clone"])(t.attr());e.adjustShapeAttrs(o),e.addShape(a,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:o})}));var o=Object(c["k"])({start:n,end:i});a.setClip({type:"rect",attrs:{x:o.minX,y:o.minY,width:o.width,height:o.height}})},e.prototype.adjustShapeAttrs=function(t){var e=this.get("color");t.fill&&(t.fill=t.fillStyle=e),t.stroke=t.strokeStyle=e},e}(a["a"]),M=C,S=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{name:"annotation",type:"shape",draw:r["noop"]})},e.prototype.renderInner=function(t){var e=this.get("render");Object(r["isFunction"])(e)&&e(t)},e}(a["a"]),A=S,k=n("7c8a"),F=n("75ed"),E=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'
    ',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(c["a"])(t);var n=Object(r["isFunction"])(e)?e(t):e;if(Object(r["isElement"])(n))t.appendChild(n);else if(Object(r["isString"])(n)||Object(r["isNumber"])(n)){var i=Object(k["b"])(""+n);i&&t.appendChild(i)}this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),a=this.get("alignY"),o=this.get("offsetX"),s=this.get("offsetY"),c=Object(k["d"])(t),l=Object(k["c"])(t),u={x:n,y:i};"middle"===r?u.x-=Math.round(c/2):"right"===r&&(u.x-=Math.round(c)),"middle"===a?u.y-=Math.round(l/2):"bottom"===a&&(u.y-=Math.round(l)),o&&(u.x+=o),s&&(u.y+=s),Object(k["e"])(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(F["a"]),T=E},bb0f:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("9ab4"),r=n("cc94"),a=n("b2a0"),o=n("1d73"),s=n("62e3"),c=Object(s["d"])({},r["b"].getDefaultOptions(),{tooltip:{shared:!0,showMarkers:!0,showCrosshairs:!0,crosshairs:{type:"x"}},isStack:!0,line:{},legend:{position:"top-left",radio:{}}}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="area",e}return Object(i["__extends"])(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(o["b"])({chart:c,options:l}),this.chart.changeData(Object(a["a"])(t,r,i,r,n))},e.prototype.getSchemaAdaptor=function(){return o["a"]},e}(r["b"])},bb31:function(t,e){},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 a=function(t){var e=(0,i.getSensor)(t);(0,i.removeSensor)(e)};e.clear=a;var o="1.0.1";e.ver=o},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 a})),n.d(e,"LIST_ITEM_CLASS",(function(){return o})),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",a="g2-tooltip-list",o="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("9ab4"),r=n("cc94"),a=n("b2a0"),o=n("0cc4"),s=n("62e3"),c=Object(s["d"])({},r["b"].getDefaultOptions(),{columnWidthRatio:.6,marginRatio:1/32,tooltip:{shared:!0,showMarkers:!1,offset:20},legend:{radio:{}},interactions:[{type:"active-region"}]}),l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="column",e}return Object(i["__extends"])(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(o["b"])({chart:c,options:l}),this.chart.changeData(Object(a["a"])(t,n,i,n,r))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o["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("c34d"),a=n("b4aa"),o=n("62e3"),s=n("31f7"),c=n("0770");function l(t){var e=t.chart,n=t.options,r=n.percent,l=n.progressStyle,u=n.color,h=n.barWidthRatio;e.data(Object(c["a"])(r));var p=Object(o["d"])({},t,{options:{xField:"current",yField:"percent",seriesField:"type",widthRatio:h,interval:{style:l,color:Object(i["isString"])(u)?[u,s["a"][1]]:u},args:{zIndexReversed:!0,sortZIndex:!0}}});return Object(a["c"])(p),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(o["g"])(l,Object(r["g"])({}),u,r["a"],r["k"],Object(r["b"])())(t)}},bc88:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return c}));var i=n("b2cb"),r=n("96de");function a(t,e,n){var r=1;if(Object(i["h"])(t)&&(r=t.split("\n").length),r>1){var a=o(e,n);return e*r+a*(r-1)}return e}function o(t,e){return e?e-t:.14*t}function s(t,e){var n=Object(r["a"])(),a=0;if(Object(i["e"])(t)||""===t)return a;if(n.save(),n.font=e,Object(i["h"])(t)&&t.includes("\n")){var o=t.split("\n");Object(i["a"])(o,(function(t){var e=n.measureText(t).width;a'})),n}function v(t,e){var n,i,r=p.exec(t),a=Object(h["mod"])(Object(h["toRadian"])(parseFloat(r[1])),2*Math.PI),o=r[2];a>=0&&a<.5*Math.PI?(n={x:0,y:0},i={x:1,y:1}):.5*Math.PI<=a&&a';e.innerHTML=n},t}(),_=j,w=function(){function t(t,e){this.cfg={};var n=Object(c["b"])("marker"),i=Object(h["uniqueId"])("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 a=t["marker-start"===e?"startArrow":"endArrow"];return this.stroke=t.stroke||"#000",!0===a?this._setDefaultPath(e,r):(this.cfg=a,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["isArray"])(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}(),C=w,M=function(){function t(t){this.type="clip",this.cfg={};var e=Object(c["b"])("clipPath");this.el=e,this.id=Object(h["uniqueId"])("clip_"),e.id=this.id;var n=t.cfg.el;return e.appendChild(n),this.cfg=t,this}return t.prototype.match=function(){return!1},t.prototype.remove=function(){var t=this.el;t.parentNode.removeChild(t)},t}(),S=M,A=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,k=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["uniqueId"])("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=A.exec(t),a=r[2];n.setAttribute("href",a);var o=new Image;function s(){e.setAttribute("width",""+o.width),e.setAttribute("height",""+o.height)}return a.match(/^data:/i)||(o.crossOrigin="Anonymous"),o.src=a,o.complete?s():(o.onload=s,o.src=o.src),this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),F=k,E=function(){function t(t){var e=Object(c["b"])("defs"),n=Object(h["uniqueId"])("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,i=null,r=0;r0){var f=e.getElementId("region-"+l),d=c%2===0;if(Object(r["isString"])(a))d&&e.drawAlternateRegion(f,t,o.points,s.points,a);else{var g=d?a[1]:a[0];e.drawAlternateRegion(f,t,o.points,s.points,g)}}o=s}))},e.prototype.drawAlternateRegion=function(t,e,n,i,r){var a=this.getAlternatePath(n,i);this.addShape(e,{type:"path",id:t,name:"grid-region",attrs:{path:a,fill:r}})},e}(a["a"]),c=s;function l(t,e,n,i){var r=n-t,a=i-e;return Math.sqrt(r*r+a*a)}var u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),i=this.get("closed"),a=[];if(t.length)if("circle"===n){var o=this.get("center"),s=t[0],c=l(o.x,o.y,s.x,s.y),u=e?0:1;i?(a.push(["M",o.x,o.y-c]),a.push(["A",c,c,0,0,u,o.x,o.y+c]),a.push(["A",c,c,0,0,u,o.x,o.y-c]),a.push(["Z"])):Object(r["each"])(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["A",c,c,0,0,u,t.x,t.y])}))}else Object(r["each"])(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["L",t.x,t.y])})),i&&a.push(["Z"]);return a},e}(c),h=u,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(r["each"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(c),f=p},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(a,0)/t.length}function a(t,e){return t+e.x}function o(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 p["a"]})),n.d(e,"packSiblings",(function(){return f["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 F})),n.d(e,"treemap",(function(){return E["a"]})),n.d(e,"treemapBinary",(function(){return T})),n.d(e,"treemapDice",(function(){return P["a"]})),n.d(e,"treemapSlice",(function(){return I["a"]})),n.d(e,"treemapSliceDice",(function(){return B})),n.d(e,"treemapSquarify",(function(){return L["a"]})),n.d(e,"treemapResquarify",(function(){return D}));var u=function(){var t=i,e=1,n=1,a=!1;function s(i){var s,u=0;i.eachAfter((function(e){var n=e.children;n?(e.x=r(n),e.y=o(n)):(e.x=s?u+=t(e,s):0,e.y=0,s=e)}));var h=c(i),p=l(i),f=h.x-t(h,p)/2,d=p.x+t(p,h)/2;return i.eachAfter(a?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-f)/(d-f)*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?(a=!1,e=+t[0],n=+t[1],s):a?null:[e,n]},s.nodeSize=function(t){return arguments.length?(a=!0,e=+t[0],n=+t[1],s):a?[e,n]:null},s},h=n("6bcb"),p=n("2373"),f=n("5be2"),d=n("eccb"),g=n("f8d7"),v=n("21e5"),y={depth:-1},b={};function m(t){return t.id}function x(t){return t.parentId}var O=function(){var t=m,e=x;function n(n){var i,r,a,o,s,c,l,u=Array.from(n),p=u.length,f=new Map;for(r=0;r0)throw new Error("cycle");return a}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 _(t){var e=t.children;return e?e[0]:t.t}function w(t){var e=t.children;return e?e[e.length-1]:t.t}function C(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 M(t){var e,n=0,i=0,r=t.children,a=r.length;while(--a>=0)e=r[a],e.z+=n,e.m+=n,n+=e.s+(i+=e.c)}function S(t,e,n){return t.a.parent===e.parent?t.a:n}function A(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 k(t){var e,n,i,r,a,o=new A(t,0),s=[o];while(e=s.pop())if(i=e._.children)for(e.children=new Array(a=i.length),r=a-1;r>=0;--r)s.push(n=e.children[r]=new A(i[r],r)),n.parent=e;return(o.parent=new A(null,0)).children=[o],o}A.prototype=Object.create(h["a"].prototype);var F=function(){var t=j,e=1,n=1,i=null;function r(r){var s=k(r);if(s.eachAfter(a),s.parent.m=-s.z,s.eachBefore(o),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 p=l===u?1:t(l,u)/2,f=p-l.x,d=e/(u.x+p+f),g=n/(h.depth||1);r.eachBefore((function(t){t.x=(t.x+f)*d,t.y=t.depth*g}))}return r}function a(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){M(e);var a=(n[0].z+n[n.length-1].z)/2;r?(e.z=r.z+t(e._,r._),e.m=e.z-a):e.z=a}else r&&(e.z=r.z+t(e._,r._));e.parent.A=s(e,r,e.parent.A||i[0])}function o(t){t._.x=t.z+t.parent.m,t.m+=t.parent.m}function s(e,n,i){if(n){var r,a=e,o=e,s=n,c=a.parent.children[0],l=a.m,u=o.m,h=s.m,p=c.m;while(s=w(s),a=_(a),s&&a)c=_(c),o=w(o),o.a=e,r=s.z+h-a.z-l+t(s._,a._),r>0&&(C(S(s,e,i),e,r),l+=r,u+=r),h+=s.m,l+=a.m,p+=c.m,u+=o.m;s&&!w(o)&&(o.t=s,o.m+=h-u),a&&!_(c)&&(c.t=a,c.m+=l-p,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},E=n("b6f4"),T=function(t,e,n,i,r){var a,o,s=t.children,c=s.length,l=new Array(c+1);for(l[0]=o=a=0;a=e-1){var c=s[t];return c.x0=i,c.y0=r,c.x1=a,void(c.y1=o)}var h=l[t],p=n/2+h,f=t+1,d=e-1;while(f>>1;l[g]o-r){var b=n?(i*y+a*v)/n:a;u(t,f,v,i,r,b,o),u(f,e,y,b,r,a,o)}else{var m=n?(r*y+o*v)/n:o;u(t,f,v,i,r,a,m),u(f,e,y,i,m,a,o)}}u(0,c,t.value,e,n,i,r)},P=n("14f3"),I=n("ec83"),B=function(t,e,n,i,r){(1&t.depth?I["a"]:P["a"])(t,e,n,i,r)},L=n("2388"),D=function t(e){function n(t,n,i,r,a){if((o=t._squarify)&&o.ratio===e){var o,s,c,l,u,h=-1,p=o.length,f=t.value;while(++h1?e:1)},n}(L["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["p"])(e,f,d)})),t.getRootView().render(!0)}};function A(t){var e,n=t.options,i=n.geometryOptions,a=void 0===i?[]:i,o=n.xField,l=n.yField,u=Object(c["every"])(a,(function(t){var e=t.geometry;return e===r.Line||void 0===e}));return Object(s["d"])({},{options:{geometryOptions:[],meta:(e={},e[o]={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:j(l,n.yAxis),geometryOptions:[O(o,l[0],a[0]),O(o,l[1],a[1])],annotations:j(l,n.annotations)}})}function k(t){var e,n,i=t.chart,r=t.options,a=r.geometryOptions,o={line:0,column:1},s=[{type:null===(e=a[0])||void 0===e?void 0:e.geometry,id:p},{type:null===(n=a[1])||void 0===n?void 0:n.geometry,id:f}];return s.sort((function(t,e){return-o[t.type]+o[e.type]})).forEach((function(t){return i.createView({id:t.id})})),t}function F(t){var e=t.chart,n=t.options,i=n.xField,r=n.yField,o=n.geometryOptions,s=n.data,c=n.tooltip,l=[Object(a["__assign"])(Object(a["__assign"])({},o[0]),{id:p,data:s[0],yField:r[0]}),Object(a["__assign"])(Object(a["__assign"])({},o[1]),{id:f,data:s[1],yField:r[1]})];return l.forEach((function(t){var n=t.id,r=t.data,o=t.yField,s=x(t)&&t.isPercent,l=s?Object(u["c"])(r,o,i,o):r,p=Object(h["b"])(e,n).data(l),f=s?Object(a["__assign"])({formatter:function(e){return{name:e[t.seriesField]||o,value:(100*Number(e[o])).toFixed(2)+"%"}}},c):c;w({chart:p,options:{xField:i,yField:o,tooltip:f,geometryOption:t}})})),t}function E(t){var e,n=t.chart,i=t.options,r=i.geometryOptions,a=(null===(e=n.getTheme())||void 0===e?void 0:e.colors10)||[],o=0;return n.once("beforepaint",(function(){Object(c["each"])(r,(function(t,e){var i=Object(h["b"])(n,0===e?p:f);if(!t.color){var r=i.getGroupScales(),s=Object(c["get"])(r,[0,"values","length"],1),l=a.slice(o,o+s).concat(0===e?[]:a);i.geometries.forEach((function(e){t.seriesField?e.color(t.seriesField,l):e.color(l[0])})),o+=s}})),n.render(!0)})),t}function T(t){var e,n,i=t.chart,r=t.options,a=r.xAxis,o=r.yAxis,c=r.xField,u=r.yField;return Object(l["g"])((e={},e[c]=a,e[u[0]]=o[0],e))(Object(s["d"])({},t,{chart:Object(h["b"])(i,p)})),Object(l["g"])((n={},n[c]=a,n[u[1]]=o[1],n))(Object(s["d"])({},t,{chart:Object(h["b"])(i,f)})),t}function P(t){var e=t.chart,n=t.options,r=Object(h["b"])(e,p),a=Object(h["b"])(e,f),o=n.xField,s=n.yField,c=n.xAxis,l=n.yAxis;return e.axis(o,!1),e.axis(s[0],!1),e.axis(s[1],!1),r.axis(o,c),r.axis(s[0],_(l[0],i.Left)),a.axis(o,!1),a.axis(s[1],_(l[1],i.Right)),t}function I(t){var e=t.chart,n=t.options,i=n.tooltip,r=Object(h["b"])(e,p),a=Object(h["b"])(e,f);return e.tooltip(i),r.tooltip({shared:!0}),a.tooltip({shared:!0}),t}function B(t){var e=t.chart;return Object(l["c"])(Object(s["d"])({},t,{chart:Object(h["b"])(e,p)})),Object(l["c"])(Object(s["d"])({},t,{chart:Object(h["b"])(e,f)})),t}function L(t){var e=t.chart,n=t.options,i=n.annotations,r=Object(c["get"])(i,[0]),a=Object(c["get"])(i,[1]);return Object(l["b"])(r)(Object(s["d"])({},t,{chart:Object(h["b"])(e,p),options:{annotations:r}})),Object(l["b"])(a)(Object(s["d"])({},t,{chart:Object(h["b"])(e,f),options:{annotations:a}})),t}function D(t){var e=t.chart;return Object(l["k"])(Object(s["d"])({},t,{chart:Object(h["b"])(e,p)})),Object(l["k"])(Object(s["d"])({},t,{chart:Object(h["b"])(e,f)})),Object(l["k"])(t),t}function R(t){var e=t.chart;return Object(l["a"])(Object(s["d"])({},t,{chart:Object(h["b"])(e,p)})),Object(l["a"])(Object(s["d"])({},t,{chart:Object(h["b"])(e,f)})),t}function N(t){var e=t.chart,n=t.options,i=n.yAxis;return Object(l["e"])(Object(s["d"])({},t,{chart:Object(h["b"])(e,p),options:{yAxis:i[0]}})),Object(l["e"])(Object(s["d"])({},t,{chart:Object(h["b"])(e,f),options:{yAxis:i[1]}})),t}function z(t){var e=t.chart,n=t.options,i=n.legend,r=n.geometryOptions,a=n.yField,o=n.data,l=Object(h["b"])(e,p),u=Object(h["b"])(e,f);if(!1===i)e.legend(!1);else if(Object(c["isObject"])(i)&&!0===i.custom)e.legend(i);else{var d=Object(c["get"])(r,[0,"legend"],i),g=Object(c["get"])(r,[1,"legend"],i);e.once("beforepaint",(function(){var t=o[0].length?M({view:l,geometryOption:r[0],yField:a[0],legend:d}):[],n=o[1].length?M({view:u,geometryOption:r[1],yField:a[1],legend:g}):[];e.legend(Object(s["d"])({},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["get"])(t,"gEvent.delegateObject",{});if(n&&n.item){var i=n.item,r=i.value,o=i.isGeometry,s=i.viewId;if(o){var l=Object(c["findIndex"])(a,(function(t){return t===r}));if(l>-1){var u=Object(c["get"])(Object(h["b"])(e,s),"geometries");Object(c["each"])(u,(function(t){t.changeVisible(!n.item.unchecked)}))}}else{var p=Object(c["get"])(e.getController("legend"),"option.items",[]);Object(c["each"])(e.views,(function(t){var n=t.getGroupScales();Object(c["each"])(n,(function(e){e.values&&e.values.indexOf(r)>-1&&t.filter(e.field,(function(t){var e=Object(c["find"])(p,(function(e){return e.value===t}));return!e.unchecked}))})),e.render(!0)}))}}}))}return t}function Y(t){var e=t.chart,n=t.options,i=n.slider,r=Object(h["b"])(e,p),a=Object(h["b"])(e,f);return i&&(r.option("slider",i),r.on("slider:valuechanged",(function(t){var e=t.event,n=e.value,i=e.originValue;Object(c["isEqual"])(n,i)||S(a,n)})),e.once("afterpaint",(function(){if(!Object(c["isBoolean"])(i)){var t=i.start,e=i.end;(t||e)&&S(a,[t,e])}}))),t}function G(t){return Object(s["g"])(A,k,D,F,T,P,N,I,B,L,R,E,z,Y)(t)}(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dual-axes",e}Object(a["__extends"])(e,t),e.prototype.getDefaultOptions=function(){return Object(s["d"])({},t.prototype.getDefaultOptions.call(this),{yAxis:[],syncViewPadding:!0})},e.prototype.getSchemaAdaptor=function(){return G}})(o["b"])},cbbe:function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var i=n("9ab4"),r=n("cc94"),a=n("62e3"),o=n("c34d"),s=n("b4aa");function c(t){var e=t.chart,n=t.options,r=n.data,o=n.lineStyle,c=n.color,l=n.point,u=n.area;e.data(r);var h=Object(a["d"])({},t,{options:{line:{style:o,color:c},point:l?Object(i["__assign"])({color:c},l):l,area:u?Object(i["__assign"])({color:c},u):u,label:void 0}}),p=Object(a["d"])({},h,{options:{tooltip:!1}}),f=(null===l||void 0===l?void 0:l.state)||n.state,d=Object(a["d"])({},h,{options:{tooltip:!1,state:f}});return Object(s["d"])(h),Object(s["e"])(d),Object(s["a"])(p),t}function l(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,s=n.xField,c=n.yField;return Object(a["g"])(Object(o["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,a=n.endAngle;return e.coordinate("polar",{radius:i,startAngle:r,endAngle:a}),t}function h(t){var e=t.chart,n=t.options,i=n.xField,r=n.xAxis,a=n.yField,o=n.yAxis;return e.axis(i,r),e.axis(a,o),t}function p(t){var e=t.chart,n=t.options,r=n.label,o=n.yField,s=Object(a["e"])(e,"line");if(r){var c=r.callback,l=Object(i["__rest"])(r,["callback"]);s.label({fields:[o],callback:c,cfg:Object(a["A"])(l)})}else s.label(!1);return t}function f(t){return Object(a["g"])(c,l,o["k"],u,h,o["d"],o["l"],p,o["c"],o["a"],Object(o["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["__extends"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"radar-tooltip"},enumerable:!1,configurable:!0}),e.prototype.getTooltipItems=function(e){var n=this.getTooltipCfg(),r=n.shared,a=n.title,o=t.prototype.getTooltipItems.call(this,e);if(o.length>0){var s=this.view.geometries[0],c=s.dataArray,l=o[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 o=Object(g["isNil"])(a)?l:a;u.push(Object(i["__assign"])(Object(i["__assign"])({},n),{name:n.title,title:o}))}else if(r&&n){o=Object(g["isNil"])(a)?n.name||l:a;u.push(Object(i["__assign"])(Object(i["__assign"])({},n),{name:n.title,title:o}))}}))})),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["__extends"])(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"}]});var b=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="radar",e}return Object(i["__extends"])(e,t),e.prototype.changeData=function(t){this.updateOption({data:t}),this.chart.changeData(t)},e.prototype.getDefaultOptions=function(){return Object(a["d"])({},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 f},e}(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("9ab4"),r=n("7fa2"),a=n("917c"),o=n("8937"),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["d"])({},i.getDefaultOptions(),n),i.createG2(),i.bindEvents(),i}return Object(i["__extends"])(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,r=t.defaultInteractions;this.chart=new a["c"](Object(i["__assign"])(Object(i["__assign"])(Object(i["__assign"])(Object(i["__assign"])({container:this.container,autoFit:!1},this.getChartSize(e,n)),{localRefresh:!1}),Object(c["t"])(this.options,u)),{defaultInteractions:r})),this.container.setAttribute(l,"G2Plot")},e.prototype.getChartSize=function(t,e){var n=Object(c["l"])(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["d"])({},this.options,t)},e.prototype.setState=function(t,e,n){void 0===n&&(n=!0);var i=Object(c["j"])(this.chart);Object(o["each"])(i,(function(i){e(i.getData())&&i.setState(t,n)}))},e.prototype.getStates=function(){var t=Object(c["j"])(this.chart),e=[];return Object(o["each"])(t,(function(t){var n=t.getData(),i=t.getStates();Object(o["each"])(i,(function(i){e.push({data:n,state:i,geometry:t.geometry,element:t})}))})),e},e.prototype.changeData=function(t){this.update({data:t})},e.prototype.changeSize=function(t,e){this.chart.changeSize(t,e)},e.prototype.addAnnotations=function(t,e){e=e||this.chart;var n=Object(i["__spreadArrays"])(t),r=e.getController("annotation"),a=r.getComponents().map((function(t){return t.extra}));r.clear(!0);for(var o=function(t){var e=a[t],i=n.findIndex((function(t){return t.id&&t.id===e.id}));-1!==i&&(e=Object(c["d"])({},e,n[i]),n.splice(i,1)),r.annotation(e)},s=0;st.delay&&Object(r["each"])(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var m=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r["mix"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n0?i=b(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["each"])(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(r["each"])(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),i=this.get("_pause").pauseTime;return Object(r["each"])(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,a=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=a[t],l=s.get("name");if(l){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(o["g"])(s,n))return"break";Object(r["isArray"])(l)?Object(r["each"])(l,(function(t){i.emitDelegateEvent(s,t,e)})):c.emitDelegateEvent(s,l,e)}},c=this,l=0;l=0)&&(f=f?Object(a["isArray"])(f)?f:[f]:[],h.layout=Object(a["filter"])(f,(function(t){return"limit-in-shape"!==t.type})),h.layout.length||delete h.layout),s.label({fields:u||[o],callback:l,cfg:Object(c["A"])(h)})}else Object(c["r"])(c["a"].WARN,null===r,"the label option must be an Object."),s.label({fields:[o]});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 p(t){var e=t.chart,n=t.options,i=n.radius,r=n.innerRadius,a=n.startAngle,o=n.endAngle;return e.coordinate({type:"polar",cfg:{radius:i,innerRadius:r,startAngle:a,endAngle:o}}),t}function f(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,s=n.yField;return Object(c["g"])(Object(o["g"])((e={},e[a]=i,e[s]=r,e)))(t)}function d(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return i?e.axis(a,i):e.axis(a,!1),r?e.axis(o,r):e.axis(o,!1),t}function g(t){Object(c["g"])(Object(o["f"])("sectorStyle"),l,f,u,p,d,h,o["l"],o["c"],o["a"],o["k"],Object(o["b"])(),o["j"])(t)}var v=Object(c["d"])({},r["b"].getDefaultOptions(),{xAxis:!1,yAxis:!1,legend:{position:"right",radio:{}},sectorStyle:{stroke:"#fff",lineWidth:1},label:{layout:{type:"limit-in-shape"}},tooltip:{shared:!0,showMarkers:!1},interactions:[{type:"active-region"}]});(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rose",e}Object(i["__extends"])(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 a})),n.d(e,"c",(function(){return o}));var i=0,r=.5,a=.5,o=.05},d36e:function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n("9ab4"),r=n("cc94"),a=n("9457"),o=n("9a08"),s=n("8937"),c={showTitle:!1,shared:!0,showMarkers:!1,customContent:function(t,e){return""+Object(s["get"])(e,[0,"data","y"],0)},containerTpl:'
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}}},l={appendPadding:2,tooltip:Object(i["__assign"])({},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["__extends"])(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(o["b"])({chart:n,options:i}),n.changeData(Object(a["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o["a"]},e}(r["b"])},d390:function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n("9ab4"),r=n("cc94"),a=n("9457"),o=n("8582f"),s=n("edcb"),c={appendPadding:2,tooltip:Object(i["__assign"])({},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["__extends"])(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(o["b"])({chart:n,options:i}),n.changeData(Object(a["a"])(t))},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return o["a"]},e}(r["b"])},d4c65:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return r}));var i=new Map;function r(t,e){i.set(t,e)}function a(t){return i.get(t)}var o=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.width,a=e.height;return{x:n,y:i,width:r,height:a}},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,a=null;return n&&(r=n.getCanvasBBox(),e=l(e,r)),i&&(a=i.getCanvasBBox(),e=l(e,a)),e}var h=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],a=0;a1){var i=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=i}Object(g["each"])(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var m=b;n("20e7");var x="\t\n\v\f\r   ᠎              \u2028\u2029";new RegExp("([a-z])["+x+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+x+"]*,?["+x+"]*)+)","ig"),new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+x+"]*,?["+x+"]*","ig");Math.PI;function O(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function j(t,e){return O(t)*O(e)?(t[0]*e[0]+t[1]*e[1])/(O(t)*O(e)):1}function _(t,e){return(t[0]*e[1]1&&(n*=Math.sqrt(f),i*=Math.sqrt(f));var d=n*n*(p*p)+i*i*(h*h),v=d?Math.sqrt((n*n*(i*i)-d)/d):1;a===o&&(v*=-1),isNaN(v)&&(v=0);var y=i?v*n*p/i:0,b=n?v*-i*h/n:0,m=(s+l)/2+Math.cos(r)*y-Math.sin(r)*b,x=(c+u)/2+Math.sin(r)*y+Math.cos(r)*b,O=[(h-y)/n,(p-b)/i],C=[(-1*h-y)/n,(-1*p-b)/i],M=_([1,0],O),S=_(O,C);return j(O,C)<=-1&&(S=Math.PI),j(O,C)>=1&&(S=0),0===o&&S>0&&(S-=2*Math.PI),1===o&&S<0&&(S+=2*Math.PI),{cx:m,cy:x,rx:w(t,[l,u])?0:n,ry:w(t,[l,u])?0:i,startAngle:M,endAngle:M+S,xRotation:r,arcFlag:a,sweepFlag:o}}function M(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function S(t){t=m(t);for(var e=[],n=null,i=null,r=null,a=0,o=t.length,s=0;sMath.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 F=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,a=t.get("segments")||S(n),o=A(a,r),s=o.x,c=o.y,l=o.width,h=o.height,p={minX:s,minY:c,maxX:s+l,maxY:c+h};return p=u(t,p),{x:p.minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}},E=function(t){var e=t.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2,o=Math.min(n,r),s=Math.max(n,r),c=Math.min(i,a),l=Math.max(i,a),h={minX:o,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}},T=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,a=e.ry;return{x:n-r,y:i-a,width:2*r,height:2*a}};r("rect",o),r("image",o),r("circle",s),r("marker",s),r("polyline",h),r("polygon",p),r("text",d),r("path",F),r("line",E),r("ellipse",T)},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 a=n("ff7f");n.d(e,"Crosshair",(function(){return a}));var o=n("c771");n.d(e,"Grid",(function(){return o}));var s=n("e5b14");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 p=n("bbad");n.d(e,"TOOLTIP_CSS_CONST",(function(){return p}))},d7ff:function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n("6855");function r(t,e,n){var r=new i["Event"](e,n);r.target=t,r.propagationPath.push(t),t.emitDelegation(e,r);var a=t.getParent();while(a)a.emitDelegation(e,r),r.propagationPath.push(a),a=a.getParent()}},db3c:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=n("62e3");function r(){return"object"===typeof window?null===window||void 0===window?void 0:window.devicePixelRatio:2}function a(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 a=n.getContext("2d");return a.scale(i,i),n}function o(t,e,n,i){void 0===i&&(i=n);var r=e.backgroundColor,a=e.opacity;t.globalAlpha=a,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,a=e.fill,o=e.lineWidth,s=e.stroke,c=e.fillOpacity;t.beginPath(),t.globalAlpha=c,t.fillStyle=a,t.strokeStyle=s,t.lineWidth=o,t.arc(n,i,r/2,0,2*Math.PI,!1),t.fill(),o&&t.stroke(),t.closePath()}function p(t){var e=Object(i["d"])({},u,t),n=e.size,p=e.padding,f=e.isStagger,d=e.rotation,g=s(n,p,f),v=c(g,f),y=a(g,g),b=y.getContext("2d");o(b,e,g);for(var m=0,x=v;mi?r=i-n:t+n=0;i--)t.removeChild(e[i])}function o(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),a=Math.max(e.x,n.x),o=Math.max(e.y,n.y);return{x:i,y:r,minX:i,minY:r,maxX:a,maxY:o,width:a-i,height:o-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),a=Math.max.apply(Math,e),o=Math.max.apply(Math,n);return{x:i,y:r,minX:i,minY:r,maxX:a,maxY:o,width:a-i,height:o-r}}function l(t,e,n,i){var r=t+n,a=e+i;return{x:t,y:e,width:n,height:i,minX:t,minY:e,maxX:isNaN(r)?0:r,maxY:isNaN(a)?0:a}}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 p(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}var f=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["each"])(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]),p=Math.min(n[1],i[1],r[1],l[1]),f=Math.max(n[1],i[1],r[1],l[1]);uo&&(o=h),pc&&(c=f)}})):(a=0,o=0,s=0,c=0),e=l(a,s,o-a,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 b(t,e,n,i){var r=p(t,e),a=i/r,o=0;return"start"===n?o=0-a:"end"===n&&(o=1+a),{x:u(t.x,e.x,o),y:u(t.y,e.y,o)}}},e5b14:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return m})),n.d(e,"Continuous",(function(){return _})),n.d(e,"Base",(function(){return p}));var i=n("9ab4"),r=n("8937"),a=n("060b"),o=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["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),i=this.get("maxHeight"),r=e.width,a=e.height;return n&&(r=Math.min(r,n)),i&&(a=Math.min(a,i)),Object(u["b"])(e.minX,e.minY,r,a)},e.prototype.setLocation=function(t){this.set("x",t.x),this.set("y",t.y),this.resetLocation()},e.prototype.resetLocation=function(){var t=this.get("x"),e=this.get("y"),n=this.get("offsetX"),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),a=Object(i["__assign"])({x:0,y:0,width:n.width+r[1]+r[3],height:n.height+r[0]+r[2]},e.style),o=this.addShape(t,{type:"rect",id:this.getElementId("background"),name:"legend-background",attrs:a});o.toBack()},e.prototype.drawTitle=function(t){var e=this.get("currentPoint"),n=this.get("title"),r=n.spacing,a=n.style,o=n.text,s=this.addShape(t,{type:"text",id:this.getElementId("title"),name:"legend-title",attrs:Object(i["__assign"])({text:o,x:e.x,y:e.y},a)}),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"]),p=h,f={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="navigation-arrow-right",v="navigation-arrow-left",y={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},b=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=b),"horizontal"===p?(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,p+j);var C=Math.floor(this.pageHeight/(p+j));Object(r["each"])(s,(function(t,e){0!==e&&e%C===0&&(b+=1,y.x+=x,y.y=a),n.moveElementTo(t,y),t.getParent().setClip({type:"rect",attrs:{x:y.x,y:y.y,width:x,height:p}}),y.y+=p+j})),this.totalPagesCnt=b,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"===o&&this.get("maxRow")?this.totalPagesCnt=Math.ceil(b/this.get("maxRow")):this.totalPagesCnt=b,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(g),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,a){var o={x:0,y:0},s=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),c=Object(r["get"])(a.marker,"style",{}),l=c.size,u=void 0===l?12:l,h=Object(i["__rest"])(c,["size"]),p=this.drawArrow(s,o,v,"horizontal"===e?"up":"left",u,h);p.on("click",this.onNavigationBack);var f=p.getBBox();o.x+=f.width+2;var d=this.addShape(s,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:Object(i["__assign"])({x:o.x,y:o.y+u/2,text:n,textBaseline:"middle"},Object(r["get"])(a.text,"style"))}),y=d.getBBox();o.x+=y.width+2;var b=this.drawArrow(s,o,g,"horizontal"===e?"down":"right",u,h);return b.on("click",this.onNavigationAfter),s},e.prototype.updateNavigation=function(t){var e=Object(r["deepMix"])({},f,this.get("pageNavigator")),n=e.marker.style,i=n.fill,a=n.opacity,o=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(v)):this.getElementByLocalId(v),h=t?t.findById(this.getElementId(g)):this.getElementByLocalId(g);l.attr("text",c),u.attr("opacity",1===this.currentPageIndex?s:a),u.attr("fill",1===this.currentPageIndex?o:i),u.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),h.attr("opacity",this.currentPageIndex===this.totalPagesCnt?s:a),h.attr("fill",this.currentPageIndex===this.totalPagesCnt?o:i),h.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer");var p=u.getBBox().maxX+2;l.attr("x",p),p+=l.getBBox().width+2,this.updateArrowPath(h,{x:p,y:0})},e.prototype.drawArrow=function(t,e,n,r,a,s){var c=e.x,l=e.y,u=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:Object(i["__assign"])({size:a,direction:r,path:[["M",c+a/2,l],["L",c,l+a],["L",c+a,l+a],["Z"]],cursor:"pointer"},s)});return u.attr("matrix",Object(o["e"])({x:c+a/2,y:l+a/2},y[r])),u},e.prototype.updateArrowPath=function(t,e){var n=e.x,i=e.y,r=t.attr(),a=r.size,s=r.direction,c=Object(o["e"])({x:n+a/2,y:i+a/2},y[s]);t.attr("path",[["M",n+a/2,i],["L",n,i+a],["L",n+a,i+a],["Z"]]),t.attr("matrix",c)},e.prototype.getCurrentNavigationMatrix=function(){var t=this,e=t.currentPageIndex,n=t.pageWidth,i=t.pageHeight,r=this.get("layout"),a="horizontal"===r?{x:0,y:i*(1-e)}:{x:n*(1-e),y:0};return Object(o["f"])(a)},e.prototype.applyItemStates=function(t,e){var n=this.getItemStates(t),i=n.length>0;if(i){var a=e.getChildren(),o=this.get("itemStates");Object(r["each"])(a,(function(e){var n=e.get("name"),i=n.split("-")[2],r=Object(s["a"])(t,i,o);r&&(e.attr(r),"marker"!==i||e.get("isStroke")&&e.get("isFill")||(e.get("isStroke")&&e.attr("fill",null),e.get("isFill")&&e.attr("stroke",null)))}))}},e.prototype.getLimitItemWidth=function(){var t=this.get("itemWidth"),e=this.get("maxItemWidth");return e?t&&(e=t<=e?t:e):t&&(e=t),e},e}(p),m=b,x=1.4,O=.4,j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["__assign"])(Object(i["__assign"])({},e),{type:"continue",min:0,max:100,value:null,colors:[],track:{},rail:{},label:{},handler:{},slidable:!0,tip:null,step:null,maxWidth:null,maxHeight:null,defaultCfg:{label:{align:"rail",spacing:5,formatter:null,style:{fontSize:12,fill: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),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),c=r-i;c<0?a[0]+c>s.min?e.setValue([a[0]+c,a[1]+c]):e.setValue([s.min,s.min+o]):c>0&&(c>0&&a[1]+ca&&(l=a),l0&&this.changeRailLength(i,o,n[o]-p)}},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"),a=r.align,o=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox(),u=s.height;this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:i.x,y:i.y+u/2}),this.changeRailPosition(n,i.x+c.width+o,i.y),e.attr({x:i.x+c.width+s.width+2*o,y:i.y+u/2})):"top"===a?(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+o)):(this.changeRailPosition(n,i.x,i.y),t.attr({x:i.x,y:i.y+s.height+o}),e.attr({x:i.x+s.width,y:i.y+s.height+o}))},e.prototype.fixedVertail=function(t,e,n,i){var r=this.get("label"),a=r.align,o=r.spacing,s=n.getBBox(),c=t.getBBox(),l=e.getBBox();if(this.fitRailLength(c,l,s,n),s=n.getBBox(),"rail"===a)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+c.height+o),e.attr({x:i.x,y:i.y+c.height+s.height+2*o});else if("right"===a)t.attr({x:i.x+s.width+o,y:i.y}),this.changeRailPosition(n,i.x,i.y),e.attr({x:i.x+s.width+o,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+o,i.y),e.attr({x:i.x,y:i.y+s.height})}},e}(p),_=j},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},e73e:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("8937"),o=n("68de"),s=n("7349"),c=n("00f9"),l=n("22f9"),u=n("73ec"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.isEntityGroup=function(){return!0},e.prototype.createDom=function(){var t=Object(u["b"])("g");this.set("el",t);var e=this.getParent();if(e){var n=e.get("el");n||(n=e.createDom(),e.set("el",n)),n.appendChild(t)}return t},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.createPath(i,e)}},e.prototype.onCanvasChange=function(t){Object(s["b"])(this,t)},e.prototype.getShapeBase=function(){return o},e.prototype.getGroupBase=function(){return e},e.prototype.draw=function(t){var e=this.getChildren(),n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||this.createDom(),Object(c["a"])(this,t),this.createPath(t),e.length&&Object(s["a"])(t,e))},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(a["each"])(e||n,(function(t,e){l["b"][e]&&i.setAttribute(l["b"][e],t)})),Object(c["c"])(this)},e}(r["AbstractGroup"]);e["a"]=h},e945:function(t,e,n){"use strict";var i=n("8937"),r=/rgba?\(([\s.,0-9]+)\)/,a=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,o=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,s=/[\d.]+:(#[^\s]+|[^\)]+\))/gi,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 p,f=function(t){return[parseInt(t.substr(1,2),16),parseInt(t.substr(3,2),16),parseInt(t.substr(5,2),16)]},d=function(t){var e=Math.round(t).toString(16);return 1===e.length?"0"+e:e},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),a=i*n-r,o=t[r],s=r===i?o:t[r+1];return h([u(o,s,a,0),u(o,s,a,1),u(o,s,a,2)])},v=function(t){if("#"===t[0]&&7===t.length)return t;p||(p=l()),p.style.color=t;var e=document.defaultView.getComputedStyle(p,"").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["isString"])(t)?t.split("-"):t,n=Object(i["map"])(e,(function(t){return f(-1===t.indexOf("#")?v(t):t)}));return function(t){return g(n,t)}},b=function(t){if(c(t)){var e,n=void 0;if("l"===t[0]){var r=a.exec(t),l=+r[1]+90;n=r[2],e="linear-gradient("+l+"deg, "}else if("r"===t[0]){e="radial-gradient(";r=o.exec(t);n=r[4]}var u=n.match(s);return Object(i["each"])(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:f,gradient:y,toRGB:Object(i["memoize"])(v),toCSSGradient:b}},ec83:function(t,e,n){"use strict";e["a"]=function(t,e,n,i,r){var a,o=t.children,s=-1,c=o.length,l=t.value&&(r-n)/t.value;while(++s0&&n*n>i*i+r*r}function s(t,e){for(var n=0;n=o.left?a.left:o.left;i.autoPadding=n.instance(a.top,a.right,a.bottom/2+5,u),r.autoPadding=n.instance(a.bottom/2+5,o.right,o.bottom,u)}if(!d(c)&&"top"===l){u=a.left>=o.left?a.left:o.left;i.autoPadding=n.instance(a.top,a.right,0,u),r.autoPadding=n.instance(0,o.right,a.top,u)}}function v(t){var e,n,i=t.chart,r=t.options,a=r.data,s=r.xField,c=r.yField,g=r.color,v=r.barStyle,y=r.widthRatio,b=r.legend,m=r.layout,x=f(s,c,p,a,d(m));b?i.legend(p,b):!1===b&&i.legend(!1);var O=x[0],j=x[1];d(m)?(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 _=Object(o["d"])({},t,{chart:e,options:{widthRatio:y,xField:s,yField:c[0],seriesField:p,interval:{color:g,style:v}}});Object(l["c"])(_);var w=Object(o["d"])({},t,{chart:n,options:{xField:s,yField:c[1],seriesField:p,widthRatio:y,interval:{color:g,style:v}}});return Object(l["c"])(w),t}function y(t){var e,n,i,r=t.options,a=t.chart,l=r.xAxis,f=r.yAxis,d=r.xField,g=r.yField,v=Object(o["f"])(a,u),y=Object(o["f"])(a,h),b={};return Object(s["keys"])((null===r||void 0===r?void 0:r.meta)||{}).map((function(t){Object(s["get"])(null===r||void 0===r?void 0:r.meta,[t,"alias"])&&(b[t]=r.meta[t].alias)})),a.scale((e={},e[p]={sync:!0,formatter:function(t){return Object(s["get"])(b,t,t)}},e)),Object(c["g"])((n={},n[d]=l,n[g[0]]=f[g[0]],n))(Object(o["d"])({},t,{chart:v})),Object(c["g"])((i={},i[d]=l,i[g[1]]=f[g[1]],i))(Object(o["d"])({},t,{chart:y})),t}function b(t){var e=t.chart,n=t.options,r=n.xAxis,a=n.yAxis,s=n.xField,c=n.yField,l=n.layout,p=Object(o["f"])(e,u),f=Object(o["f"])(e,h);return"bottom"===(null===r||void 0===r?void 0:r.position)?f.axis(s,Object(i["__assign"])(Object(i["__assign"])({},r),{label:{formatter:function(){return""}}})):f.axis(s,!1),!1===r?p.axis(s,!1):p.axis(s,Object(i["__assign"])({position:d(l)?"top":"bottom"},r)),!1===a?(p.axis(c[0],!1),f.axis(c[1],!1)):(p.axis(c[0],a[c[0]]),f.axis(c[1],a[c[1]])),e.__axisPosition={position:p.getOptions().axes[s].position,layout:l},t}function m(t){var e=t.chart;return Object(c["c"])(Object(o["d"])({},t,{chart:Object(o["f"])(e,u)})),Object(c["c"])(Object(o["d"])({},t,{chart:Object(o["f"])(e,h)})),t}function x(t){var e=t.chart,n=t.options,i=n.yField,r=n.yAxis;return Object(c["e"])(Object(o["d"])({},t,{chart:Object(o["f"])(e,u),options:{yAxis:r[i[0]]}})),Object(c["e"])(Object(o["d"])({},t,{chart:Object(o["f"])(e,h),options:{yAxis:r[i[1]]}})),t}function O(t){var e=t.chart;return Object(c["k"])(Object(o["d"])({},t,{chart:Object(o["f"])(e,u)})),Object(c["k"])(Object(o["d"])({},t,{chart:Object(o["f"])(e,h)})),Object(c["k"])(t),t}function j(t){var e=t.chart;return Object(c["a"])(Object(o["d"])({},t,{chart:Object(o["f"])(e,u)})),Object(c["a"])(Object(o["d"])({},t,{chart:Object(o["f"])(e,h)})),t}function _(t){var e,n,r=this,a=t.chart,s=t.options,c=s.label,l=s.yField,p=s.layout,f=Object(o["f"])(a,u),g=Object(o["f"])(a,h),v=Object(o["e"])(f,"interval"),y=Object(o["e"])(g,"interval");if(c){var b=c.callback,m=Object(i["__rest"])(c,["callback"]);m.position||(m.position="middle"),void 0===m.offset&&(m.offset=2);var x=Object(i["__assign"])({},m);if(d(p)){var O=(null===(e=x.style)||void 0===e?void 0:e.textAlign)||("middle"===m.position?"center":"left");m.style=Object(o["d"])({},m.style,{textAlign:O});var j={left:"right",right:"left",center:"center"};x.style=Object(o["d"])({},x.style,{textAlign:j[O]})}else{var _={top:"bottom",bottom:"top",middle:"middle"};"string"===typeof m.position?m.position=_[m.position]:"function"===typeof m.position&&(m.position=function(){for(var t=[],e=0;e
    ',itemTpl:"{value}",domStyles:{"g2-tooltip":{padding:"2px 4px",fontSize:"10px"}},showCrosshairs:!0,crosshairs:{type:"x"}},c={appendPadding:2,tooltip:Object(i["__assign"])({},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"),a=n("29ab"),o=n("f05a"),s=n("f7a9");n("59b0");Object(i["registerAdjust"])("Dodge",r["a"]),Object(i["registerAdjust"])("Jitter",a["a"]),Object(i["registerAdjust"])("Stack",o["a"]),Object(i["registerAdjust"])("Symmetric",s["a"])},efee:function(t,e,n){"use strict";var i=n("9ab4"),r=n("cc94"),a=n("62e3");(function(t){function e(e,n,i,r){var o=t.call(this,e,Object(a["d"])({},r,n))||this;return o.type="g2-plot",o.defaultOptions=r,o.adaptor=i,o}Object(i["__extends"])(e,t),e.prototype.getDefaultOptions=function(){return this.defaultOptions},e.prototype.getSchemaAdaptor=function(){return this.adaptor}})(r["b"])},f05a:function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("41c8"),o=r["Cache"],s=function(t){function e(e){var n=t.call(this,e)||this,i=e.adjustNames,r=void 0===i?["y"]:i,a=e.height,o=void 0===a?NaN:a,s=e.size,c=void 0===s?10:s,l=e.reverseOrder,u=void 0!==l&&l;return n.adjustNames=r,n.height=o,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,a=e.yField,s=e.reverseOrder,c=s?this.reverse(t):t,l=new o,u=new o;return c.map((function(t){return t.map((function(t){var e,o=r["get"](t,n,0),s=r["get"](t,[a]),c=o.toString();if(s=r["isArray"](s)?s[1]:s,!r["isNil"](s)){var h=s>=0?l:u;h.has(c)||h.set(c,0);var p=h.get(c),f=s+p;return h.set(c,f),Object(i["a"])(Object(i["a"])({},t),(e={},e[a]=[p,f],e))}return t}))}))},e.prototype.processOneDimStack=function(t){var e=this,n=this,r=n.xField,a=n.height,s=n.reverseOrder,c="y",l=s?this.reverse(t):t,u=new o;return l.map((function(t){return t.map((function(t){var n,o=e.size,s=t[r],l=2*o/a;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}(a["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 r}));var i;n("9ab4");(function(t){t["ERROR"]="error",t["WARN"]="warn",t["INFO"]="log"})(i||(i={}));function r(t,e,n){for(var i=[],r=3;rthis.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),p=h,f=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,d="\\d\\d?",g="\\d\\d",v="\\d{3}",y="\\d{4}",b="[^\\s]+",m=/\[([^]*?)\]/gm;function x(t,e){for(var n=[],i=0,r=t.length;i-1?r:null}};function j(t){for(var e=[],n=1;n3?0:(t-t%10!==10?1:0)*t%10]}},A=j({},S),k=function(t){return A=j(A,t)},F=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},E=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length0?"-":"+")+E(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+E(Math.floor(Math.abs(e)/60),2)+":"+E(Math.abs(e)%60,2)}},P=function(t){return+t-1},I=[null,d],B=[null,b],L=["isPm",b,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],D=["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}],R={D:["day",d],DD:["day",g],Do:["day",d+b,function(t){return parseInt(t,10)}],M:["month",d,P],MM:["month",g,P],YY:["year",g,function(t){var e=new Date,n=+(""+e.getFullYear()).substr(0,2);return+(""+(+t>68?n-1:n)+t)}],h:["hour",d,void 0,"isPm"],hh:["hour",g,void 0,"isPm"],H:["hour",d],HH:["hour",g],m:["minute",d],mm:["minute",g],s:["second",d],ss:["second",g],YYYY:["year",y],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",g,function(t){return 10*+t}],SSS:["millisecond",v],d:I,dd:I,ddd:B,dddd:B,MMM:["month",b,O("monthNamesShort")],MMMM:["month",b,O("monthNames")],a:L,A:L,ZZ:D,Z:D},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"},z=function(t){return j(N,t)},Y=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(m,(function(t,e){return i.push(e),"@@@"}));var r=j(j({},A),n);return e=e.replace(f,(function(e){return T[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function G(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},a=[],o=[],s=e.replace(m,(function(t,e){return o.push(F(e)),"@@@"})),c={},l={};s=F(s).replace(f,(function(t){var e=R[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),a.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 o.shift()}));var u=t.match(new RegExp(s,"i"));if(!u)return null;for(var h,p=j(j({},A),n),d=1;d11||r.month<0||r.day>31||r.day<1||r.hour>23||r.hour<0||r.minute>59||r.minute<0||r.second>59||r.second<0)return null;return h}var V={format:Y,parse:G,defaultI18n:S,setGlobalDateI18n:k,setGlobalDateMasks:z},X=V,H=function(t){return function(e,n,i,a){var o=Object(r["isNil"])(i)?0:i,s=Object(r["isNil"])(a)?e.length:a;while(o>>1;t(e[c])>n?s=c:o=c+1}return o}},W="format";function q(t,e){var n=i[W]||X[W];return n(t,e)}function $(t){return Object(r["isString"])(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r["isDate"])(t)&&(t=t.getTime()),t}var U=1e3,Z=60*U,K=60*Z,Q=24*K,J=31*Q,tt=365*Q,et=[["HH:mm:ss",U],["HH:mm:ss",10*U],["HH:mm:ss",30*U],["HH:mm",Z],["HH:mm",10*Z],["HH:mm",30*Z],["HH",K],["HH",6*K],["HH",12*K],["YYYY-MM-DD",Q],["YYYY-MM-DD",4*Q],["YYYY-WW",7*Q],["YYYY-MM",J],["YYYY-MM",4*J],["YYYY-MM",6*J],["YYYY",380*Q]];function nt(t,e,n){var i=(e-t)/n,a=H((function(t){return t[1]}))(et,i)-1,o=et[a];return a<0?o=et[0]:a>=et.length&&(o=Object(r["last"])(et)),o}var it=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="timeCat",e}return Object(u["__extends"])(e,t),e.prototype.translate=function(t){t=$(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r["isNumber"])(t)&&t-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):q(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["each"])(e,(function(t,n){e[n]=$(t)})),e.sort((function(t,e){return t-e})),t.prototype.setDomain.call(this)},e}(p),rt=it,at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isContinuous=!0,e}return Object(u["__extends"])(e,t),e.prototype.scale=function(t){if(Object(r["isNil"])(t))return NaN;var e=this.rangeMin(),n=this.rangeMax(),i=this.max,a=this.min;if(i===a)return e;var o=this.getScalePercent(t);return e+o*(n-e)},e.prototype.init=function(){t.prototype.init.call(this);var e=this.ticks,n=Object(r["head"])(e),i=Object(r["last"])(e);nthis.max&&(this.max=i),Object(r["isNil"])(this.minLimit)||(this.min=n),Object(r["isNil"])(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(r["getRange"])(this.values),e=t.min,n=t.max;Object(r["isNil"])(this.min)&&(this.min=e),Object(r["isNil"])(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(r["filter"])(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(l),ot=at,st=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="linear",e.isLinear=!0,e}return Object(u["__extends"])(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t);return this.min+e*(this.max-this.min)},e.prototype.initCfg=function(){this.tickMethod="wilkinson-extended",this.nice=!1},e}(ot),ct=st;function lt(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 ut(t,e){return 1===t?1:Math.log(e)/Math.log(t)}function ht(t,e,n){Object(r["isNil"])(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r["each"])(t,(function(t){t>0&&t1&&(i=1),i}var pt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e}return Object(u["__extends"])(e,t),e.prototype.invert=function(t){var e,n=this.base,i=ut(n,this.max),r=this.rangeMin(),a=this.rangeMax()-r,o=this.positiveMin;if(o){if(0===t)return 0;e=ut(n,o/n);var s=1/(i-e)*a;if(t=0?1:-1;return Math.pow(a,n)*o},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=(lt(i,t)-lt(i,n))/(lt(i,e)-lt(i,n));return r},e}(ot),gt=dt,vt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="time",e}return Object(u["__extends"])(e,t),e.prototype.getText=function(t,e){var n=this.translate(t),i=this.formatter;return i?i(n,e):q(n,this.mask)},e.prototype.scale=function(e){var n=e;return(Object(r["isString"])(n)||Object(r["isDate"])(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return $(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["isNil"])(e)&&Object(r["isNumber"])(e)||(this.min=this.translate(this.min)),Object(r["isNil"])(n)&&Object(r["isNumber"])(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],a=1/0,o=a,s=0;Object(r["each"])(t,(function(t){var e=$(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(o=a,a=e):o>e&&(o=e),s1&&(this.minTickInterval=o-a),Object(r["isNil"])(e)&&(this.min=a),Object(r["isNil"])(n)&&(this.max=s)}},e}(ct),yt=vt,bt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(u["__extends"])(e,t),e.prototype.invert=function(t){var e=this.ticks,n=e.length,i=this.getInvertPercent(t),a=Math.floor(i*(n-1));if(a>=n-1)return Object(r["last"])(e);if(a<0)return Object(r["head"])(e);var o=e[a],s=e[a+1],c=a/(n-1),l=(a+1)/(n-1);return o+(i-c)/(l-c)*(s-o)},e.prototype.initCfg=function(){this.tickMethod="r-pretty",this.tickCount=5,this.nice=!0},e.prototype.calculateTicks=function(){var e=t.prototype.calculateTicks.call(this);return this.nice||(Object(r["last"])(e)!==this.max&&e.push(this.max),Object(r["head"])(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(tObject(r["last"])(e))return 1;var n=0;return Object(r["each"])(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(ot),mt=bt,xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(u["__extends"])(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(mt),Ot=xt,jt={};function _t(t){return jt[t]}function wt(t,e){if(_t(t))throw new Error("type '"+t+"' existed.");jt[t]=e}var Ct=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(u["__extends"])(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(r["isNumber"])(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return te[1]?NaN:this.values[0]},e}(l),Mt=Ct;function St(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=t.showLast;if(Object(r["isNumber"])(n)){var o=Object(r["filter"])(e,(function(t,e){return e%n===0})),s=Object(r["last"])(e);return a&&Object(r["last"])(o)!==s&&o.push(s),o}var c=e.length,l=t.min,u=t.max;if(Object(r["isNil"])(l)&&(l=0),Object(r["isNil"])(u)&&(u=e.length-1),!Object(r["isNumber"])(i)||i>=c)return e.slice(l,u+1);if(i<=0||u<=0)return[];for(var h=1===i?c:Math.floor(c/(i-1)),p=[],f=l,d=0;d=u)break;f=Math.min(l+d*h,u),d===i-1&&a?p.push(e[u]):p.push(e[f])}return p}function At(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,a=new Pt;return a.domain([e,n]),i&&a.nice(r),a.ticks(r)}var kt=5,Ft=Math.sqrt(50),Et=Math.sqrt(10),Tt=Math.sqrt(2),Pt=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=kt);var i,r=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],c=this._domain[o];return c0?(s=Math.floor(s/i)*i,c=Math.ceil(c/i)*i,i=Bt(s,c,t)):i<0&&(s=Math.ceil(s*i)/i,c=Math.floor(c*i)/i,i=Bt(s,c,t)),i>0?(r[a]=Math.floor(s/i)*i,r[o]=Math.ceil(c/i)*i,this.domain(r)):i<0&&(r[a]=Math.ceil(s*i)/i,r[o]=Math.floor(c*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=kt),It(this._domain[0],this._domain[this._domain.length-1],t||kt)},t}();function It(t,e,n){var i,r,a,o,s=-1;if(e=+e,t=+t,n=+n,t===e&&n>0)return[t];if((i=e0){t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(r=Math.ceil(e-t+1));while(++s=0?(a>=Ft?10:a>=Et?5:a>=Tt?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=Ft?10:a>=Et?5:a>=Tt?2:1)}function Lt(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 Dt(t,e,n){var i=Lt(t,n,"floor"),a=Lt(e,n,"ceil");i=Object(r["fixedBase"])(i,n),a=Object(r["fixedBase"])(a,n);for(var o=[],s=Math.max((a-i)/(Math.pow(2,12)-1),n),c=i;c<=a;c+=s){var l=Object(r["fixedBase"])(c,s);o.push(l)}return{min:i,max:a,ticks:o}}function Rt(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,c=t.max,l=t.tickCount,u=void 0===l?5:l,h=Object(r["isNil"])(a)?Object(r["isNil"])(e)?s:e:a,p=Object(r["isNil"])(o)?Object(r["isNil"])(n)?c:n:o;if(h>p&&(i=[h,p],p=i[0],h=i[1]),u<=2)return[h,p];for(var f=(p-h)/(u-1),d=[],g=0;g=0&&(l=1),1-c/(s-1)-n+l}function Wt(t,e,n){var i=Object(r["size"])(e),a=Object(r["indexOf"])(e,t),o=1;return 1-a/(i-1)-n+o}function qt(t,e,n,i,r,a){var o=(t-1)/(a-r),s=(e-1)/(Math.max(a,i)-Math.min(n,r));return 2-Math.max(o/s,s/o)}function $t(t,e){return t>=e?2-(t-1)/(e-1):1}function Ut(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 Kt(){return 1}function Qt(t,e,n,i,a,o){void 0===n&&(n=5),void 0===i&&(i=!0),void 0===a&&(a=Yt),void 0===o&&(o=[.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]};if(e-t>1e148){var c=n||5,l=(e-t)/c;return{min:t,max:e,ticks:Array(c).fill(null).map((function(e,n){return zt(t+l*n)}))}}var u={score:-2,lmin:0,lmax:0,lstep:0},h=1;while(h<1/0){for(var p=0;pu.score&&(!i||C<=t&&M>=e)&&(u.lmin=C,u.lmax=M,u.lstep=S,u.score=T)}}b+=1}g+=1}}h+=1}var P=zt(u.lmax),I=zt(u.lmin),B=zt(u.lstep),L=Math.floor(Xt((P-I)/B))+1,D=new Array(L);D[0]=zt(I);for(p=1;p0)e=Math.floor(ut(n,r));else{var c=ht(o,n,a);e=Math.floor(ut(n,c))}for(var l=s-e,u=Math.ceil(l/i),h=[],p=e;p=0?1:-1;return Math.pow(t,e)*n}))}function ie(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 re(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=[],a=0;a1&&(r*=Math.ceil(s)),i&&rtt)for(var c=ce(n),l=Math.ceil(a/tt),u=s;u<=c+l;u+=l)o.push(le(u));else if(a>J){var h=Math.ceil(a/J),p=ue(e),f=he(e,n);for(u=0;u<=f+h;u+=h)o.push(pe(s,u+p))}else if(a>Q){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),y=d.getDate(),b=Math.ceil(a/Q),m=fe(e,n);for(u=0;uK){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),b=d.getDate();var x=d.getHours(),O=Math.ceil(a/K),j=de(e,n);for(u=0;u<=j+O;u+=O)o.push(new Date(g,v,b,x+u).getTime())}else if(a>Z){var _=ge(e,n),w=Math.ceil(a/Z);for(u=0;u<=_+w;u+=w)o.push(e+u*Z)}else{var C=a;C0&&(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 f})),n.d(e,"e",(function(){return v})),n.d(e,"h",(function(){return y})),n.d(e,"f",(function(){return m})),n.d(e,"g",(function(){return x}));var i=n("8937"),r=n("af40"),a=n("9c29"),o=n("7326"),s=n("9f27"),c={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function l(t,e){var n=e.attr();for(var a in n){var o=n[a],s=c[a]?c[a]:a;"matrix"===s&&o?t.transform(o[0],o[1],o[3],o[4],o[6],o[7]):"lineDash"===s&&t.setLineDash?Object(i["isArray"])(o)&&t.setLineDash(o):("strokeStyle"===s||"fillStyle"===s?o=Object(r["b"])(t,e,o):"globalAlpha"===s&&(o*=t.globalAlpha),t[s]=o)}}function u(t,e,n){for(var i=0;i_?j:_,k=j>_?1:j/_,F=j>_?_/j:1;e.translate(x,O),e.rotate(M),e.scale(k,F),e.arc(0,0,A,w,C,1-S),e.scale(1/k,1/F),e.rotate(-M),e.translate(-x,-O)}break;case"Z":e.closePath();break;default:break}if("Z"===d)l=u;else{var E=f.length;l=[f[E-2],f[E-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 b(t){var e;if(t.destroyed)e=t["_cacheCanvasBBox"];else{var n=t.get("cacheCanvasBBox"),i=n&&!(!n.width||!n.height),r=t.getCanvasBBox(),a=r&&!(!r.width||!r.height);i&&a?e=Object(o["l"])(n,r):i?e=n:a&&(e=r)}return e}function m(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return Object(i["each"])(t,(function(t){var i=b(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:Object(i["min"])(e),minY:Object(i["min"])(n),maxX:Object(i["max"])(r),maxY:Object(i["max"])(a)}}function x(t,e){return t&&e&&Object(o["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("000e"),r=n("8937"),a=n("41c8"),o=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["flatten"](t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(e),c=Math.max.apply(Math,Object.keys(s).map((function(t){return s[t]})));return r["map"](t,(function(t){return r["map"](t,(function(t){var e,n,l=t[o],u=t[a];if(r["isArray"](l)){var h=(c-s[u])/2;return Object(i["a"])(Object(i["a"])({},t),(e={},e[o]=r["map"](l,(function(t){return h+t})),e))}var p=(c-l)/2;return Object(i["a"])(Object(i["a"])({},t),(n={},n[o]=[p,l+p],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,i=n.xField,a=n.yField,o=r["groupBy"](t,(function(t){return t[i]}));return r["mapValues"](o,(function(t){return e.getDimMaxValue(t,a)}))},e.prototype.getDimMaxValue=function(t,e){var n=r["map"](t,(function(t){return r["get"](t,e,[])})),i=r["flatten"](n);return Math.max.apply(Math,i)},e}(a["a"]);e["a"]=o},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("9ab4"),r=n("330d"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["__extends"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i1||(_=f)),Object(s["a"])(Object(c["d"])({},t,{options:{type:m,colorField:h,tooltipFields:O,shapeField:p||"",label:void 0,mapping:{tooltip:j,shape:d&&(p?function(t){var e=i.map((function(t){return t[p]})),n=(null===b||void 0===b?void 0:b[p])||{},r=n.min,o=n.max;return r=Object(a["isNumber"])(r)?r:Math.min.apply(Math,e),o=Object(a["isNumber"])(o)?o:Math.max.apply(Math,e),[d,(Object(a["get"])(t,p)-r)/(o-r),_]}:function(){return[d,1,_]}),color:g||h&&e.getTheme().sequenceColors.join("-"),style:y}}})),t}function h(t){var e,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,s=n.yField;return Object(c["g"])(Object(o["g"])((e={},e[a]=i,e[s]=r,e)))(t)}function p(t){var e=t.chart,n=t.options,i=n.xAxis,r=n.yAxis,a=n.xField,o=n.yField;return!1===i?e.axis(a,!1):e.axis(a,i),!1===r?e.axis(o,!1):e.axis(o,r),t}function f(t){var e=t.chart,n=t.options,i=n.legend,r=n.colorField,a=n.sizeField,o=n.sizeLegend,s=!1!==i;return r&&e.legend(r,!!s&&i),a&&e.legend(a,void 0===o?i:o),s||o||e.legend(!1),t}function d(t){var e=t.chart,n=t.options,r=n.label,a=n.colorField,o=n.type,s=Object(c["e"])(e,"density"===o?"heatmap":"polygon");if(r){if(a){var l=r.callback,u=Object(i["__rest"])(r,["callback"]);s.label({fields:[a],callback:l,cfg:Object(c["A"])(u)})}}else s.label(!1);return t}function g(t){var e,n,i=t.chart,r=t.options,a=r.coordinate,o=r.reflect,s=Object(c["d"])({actions:[]},null!==a&&void 0!==a?a:{type:"rect"});return o&&(null===(n=null===(e=s.actions)||void 0===e?void 0:e.push)||void 0===n||n.call(e,["reflect",o])),i.coordinate(s),t}function v(t){return Object(c["g"])(o["k"],Object(o["f"])("heatmapStyle"),h,g,u,p,f,o["l"],d,Object(o["b"])(),o["c"],o["a"],o["j"])(t)}var y=Object(c["d"])({},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"}}}}}),b=n("917c");Object(b["p"])("polygon","circle",{draw:function(t,e){var n,r,a=t.x,o=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]),p=Number(t.shape[2]),f=Math.sqrt(p),d=u*f*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["__assign"])(Object(i["__assign"])(Object(i["__assign"])({x:a,y:o,r:d},t.defaultStyle),t.style),{fill:g})});return v}}),Object(b["p"])("polygon","square",{draw:function(t,e){var n,r,a=t.x,o=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]),p=Number(t.shape[2]),f=Math.sqrt(p),d=u*f*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["__assign"])(Object(i["__assign"])(Object(i["__assign"])({x:a-d/2,y:o-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["__extends"])(e,t),e.getDefaultOptions=function(){return y},e.prototype.getSchemaAdaptor=function(){return v},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()}})(r["b"])},ff7f:function(t,e,n){"use strict";n.r(e),n.d(e,"Line",(function(){return f})),n.d(e,"Circle",(function(){return g})),n.d(e,"Base",(function(){return h})),n.d(e,"Html",(function(){return _}));var i,r=n("9ab4"),a=n("e546"),o=n("8937"),s=n("31e6"),c=n("8ea8"),l=n("2f5e"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:l["a"].lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:l["a"].textColor,textAlign:"center",textBaseline:"middle",fontFamily:l["a"].fontFamily}},textBackground:{padding:5,style:{stroke:l["a"].lineColor}}}})},e.prototype.renderInner=function(t){this.get("line")&&this.renderLine(t),this.get("text")&&(this.renderText(t),this.renderBackground(t))},e.prototype.renderText=function(t){var e=this.get("text"),n=e.style,i=e.autoRotate,a=e.content;if(!Object(o["isNil"])(a)){var s=this.getTextPoint(),l=null;if(i){var u=this.getRotateAngle();l=Object(c["e"])(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r["__assign"])(Object(r["__assign"])(Object(r["__assign"])({},s),{text:a,matrix:l}),n)})}},e.prototype.renderLine=function(t){var e=this.getLinePath(),n=this.get("line"),i=n.style;this.addShape(t,{type:"path",name:"crosshair-line",id:this.getElementId("line"),attrs:Object(r["__assign"])({path:e},i)})},e.prototype.renderBackground=function(t){var e=this.getElementId("text"),n=t.findById(e),i=this.get("textBackground");if(i&&n){var o=n.getBBox(),s=Object(a["c"])(i.padding),c=i.style,l=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r["__assign"])({x:o.x-s[3],y:o.y-s[0],width:o.width+s[1]+s[3],height:o.height+s[0]+s[2],matrix:n.attr("matrix")},c)});l.toBack()}},e}(s["a"]),h=u,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text").position,r=Math.atan2(n.y-e.y,n.x-e.x),a="start"===i?r-Math.PI/2:r+Math.PI/2;return a},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,o=i.offset;return Object(a["f"])(e,n,r,o)},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.start,n=t.end;return[["M",e.x,e.y],["L",n.x,n.y]]},e}(h),f=p,d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle,i=this.get("text").position,r="start"===i?e+Math.PI/2:n-Math.PI/2;return r},e.prototype.getTextPoint=function(){var t=this.get("text"),e=t.position,n=t.offset,i=this.getLocation(),r=i.center,o=i.radius,s=i.startAngle,c=i.endAngle,l="start"===e?s:c,u=this.getRotateAngle()-Math.PI,h=Object(a["e"])(r,o,l),p=Math.cos(u)*n,f=Math.sin(u)*n;return{x:h.x+p,y:h.y+f}},e.prototype.getLinePath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,o=null;if(r-i===2*Math.PI){var s=e.x,c=e.y;o=[["M",s,c-n],["A",n,n,0,1,1,s,c+n],["A",n,n,0,1,1,s,c-n],["Z"]]}else{var l=Object(a["e"])(e,n,i),u=Object(a["e"])(e,n,r),h=Math.abs(r-i)>Math.PI?1:0,p=i>r?0:1;o=[["M",l.x,l.y],["A",n,n,0,h,p,u.x,u.y]]}return o},e}(h),g=d,v=n("7c8a"),y=n("75ed"),b="g2-crosshair",m=b+"-line",x=b+"-text",O=(i={},i[""+b]={position:"relative"},i[""+m]={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["__extends"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["__assign"])(Object(r["__assign"])({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'
    ',crosshairTpl:'
    ',textTpl:'{content}',domStyles:null,containerClassName:b,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(m,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,o=i.offset;return Object(a["f"])(e,n,r,o)},e.prototype.resetText=function(){var t=this.get("text"),e=this.get("textEl");if(t){var n=t.content;if(!e){var i=this.getContainer(),r=Object(o["substitute"])(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(a["l"])(Math.abs(n.y-e.y))}):Object(v["e"])(t,{height:"1px",width:Object(a["l"])(Math.abs(n.x-e.x))}),Object(v["e"])(t,{top:Object(a["l"])(r),left:Object(a["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(a["l"])(i.y),left:Object(a["l"])(i.x)})}},e.prototype.updateInner=function(e){Object(o["hasKey"])(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(y["a"]),_=j},ffed:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("9ab4"),r=n("cc94"),a=n("70cc"),o=n("3226"),s=n("6f4b"),c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="stock",e}return Object(i["__extends"])(e,t),e.getDefaultOptions=function(){return o["a"]},e.prototype.getDefaultOptions=function(){return e.getDefaultOptions()},e.prototype.getSchemaAdaptor=function(){return a["a"]},e.prototype.changeData=function(t){this.updateOption({data:t});var e=this.options.yField;this.chart.changeData(Object(s["a"])(t,e))},e}(r["b"])}}]);