(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["wechat"],{"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;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},a.apply(this,arguments)}},"00f9":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return o}));var i=n("73ec");function r(t,e){var n=t.cfg.el,i=t.attr(),r={dx:i.shadowOffsetX,dy:i.shadowOffsetY,blur:i.shadowBlur,color:i.shadowColor};if(r.dx||r.dy||r.blur||r.color){var a=e.find("filter",r);a||(a=e.addShadow(r)),n.setAttribute("filter","url(#"+a+")")}else n.removeAttribute("filter")}function a(t){var e=t.attr().matrix;if(e){for(var n=t.cfg.el,i=[],r=0;r<9;r+=3)i.push(e[r]+","+e[r+1]);i=i.join(","),-1===i.indexOf("NaN")&&n.setAttribute("transform","matrix("+i+")")}}function o(t,e){var n=t.getClip(),r=t.get("el");if(n){if(n&&!r.hasAttribute("clip-path")){Object(i["a"])(n),n.createPath(e);var a=e.addClip(n);r.setAttribute("clip-path","url(#"+a+")")}}else r.removeAttribute("clip-path")}},"01d4":function(t,e,n){"use strict";n.r(e),e["default"]="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAACWCAIAAACzY+a1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTM4IDc5LjE1OTgyNCwgMjAxNi8wOS8xNC0wMTowOTowMSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QkM2MTZCMDRBMDYwMTFFOUIzNDhFMUY4MzE1RTk0NzMiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QkM2MTZCMDVBMDYwMTFFOUIzNDhFMUY4MzE1RTk0NzMiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpCQzYxNkIwMkEwNjAxMUU5QjM0OEUxRjgzMTVFOTQ3MyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpCQzYxNkIwM0EwNjAxMUU5QjM0OEUxRjgzMTVFOTQ3MyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Phj4T5IAAASoSURBVHja7J1tk6JGEIDlRUQQ9PbuqrZS+f//LFVJ5bKuCiKikr79vk0u6gDN8xTflip2fGxmpntm9H7syhmMGZ+PAIWAQkAhCgGFgEJAIQoBhYBCQCEKAYWAQkAhCgGFgEJAIQoBhYBCQCEKAYWAQkAhCgGFgEJAIQoBhYBCQCEKYVyEjp/XzmaHopLr3Fzatn3246Io/P31q3JDXTd//PV2/4M8z4vmYbZayuUZVni93v78+70+N86euMlT/Ya3XfGYr2bbSrvqt0a+na/fN0Hg7vXmu4w/x/7CMEiTWA/B6nR+7EOlgdLM1mFguFMoX0+X/j5CMNHfaf+8F894rjRTGmtToUt/ge9n6VK5QeLvVJ8NNNadQhm/uFSYZ4kMMZQbts88ucxlYx32ha27DkLkrbPeQtBxY23OC/PV0vf9vkKQqf39IThb50mPIYjCe1klyzAIJhKCNhXqIXi0FYIGFSbLRTTXUk7b58wFUfjA6Xyqh6Dj9AIKf414MZdrUiFoTeEEQ9CUQukCpSOcWgiaUtgRglVtMgTtKJSJYJpqdaVH1QVR+MS5oJLSLqv6fL6gcLgEvp+vtKT21m4IGlGo15Vsh6AFhSIvz6YbghYUyis0+LyuZD4ELShcZ1pS++3deAiOXuEqjcPw07pScTw1zQWFI57Ob6fxu34jVqjXlcpphOC4Feq9oPKCReFQ0HOeEqHLOELhoNkdjvpav84NFSjsmev1dihPyg0ShRKLKBx2IO7LriFrgsJB01yuMvJUbkiTeG59XDP67Mz7/tgxcLXeI45eoYxL9T2CWRq73LCJwv8XiFqP+LFFJkHhoKm6lqblq8T3PRSOuEcUf2IRhYPmZ0b0ctUGNV07RlE49DmijGhW6hI3FPbPoTxdrzd1mp+icNC0bbs7aD3i/OcZJgsUDpp9cbzdJpf4NqVQ/IlF5QaTFShraYsJVqCsKZQRTdFVgYqiEIUDn+Z3VqBSFA6ajwpUrdyQJrGllTU2U/gdiW9bpWCbCv9DBUpbxo/CMQSi562tBKJZhRKF+oaYfGUk8W25nK0H4kcFaonCQVMcTxe9ApUnBuLQ+I8c6KXgMAiWiwiFg6astEyNxGhVNygcNJ2711we34vCX2YRhcratXNzOZSVgWZaVvjtJVf+amYPt1mFMmFQ9sSc6vOxqlE4XILAf9lkUwhBswq/bjJl7W95rE91g8LhsowjZb1ha+5IPWsKPc/79kV7hRZFZewYBXtncyfzz4/BkFmgvVMtTSmch4E+l98djvpyYRT2PxFU6ke3261zWQ0K+yRNYn2N6HZf6guFUdg90HhiM/yOUczlct0fKhuN7U2h/iMud/JlvdJ3YzvOaD+1sb0pzJ5WItfT2bM+MtqZw/UAThU+6SAfPZ09c55Ok2baVCidw+v3zcMt5l3fDMcZbflnpJkul3M43V0g3dVvry+HopJLXm73d06d6WxnISjjF+n/JPjkcrwcx/sxjXNXDePzEaAQUAgoRCGgEFAIKEQhoBBQCChEIaAQUAgoRCGgEFAIKEQhoBBQCChEIaAQUAgoRCGgEFAIKEQhoBBQCChEIYyLfwUYAN7Yw+T9VhaeAAAAAElFTkSuQmCC"},"04e2":function(t,e,n){},"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;n<t.length;n++)e+=o(t,n);return e}function o(t,e){return t.charCodeAt(e)>0&&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,l=0;s<e;){var c=o(t,l);if(!(s+c<=e))break;a+=t[l],s+=o(t,l),l++}a+=r}else if("head"===n){for(s=0,l=i-1;s<e;){c=o(t,l);if(!(s+c<=e))break;a+=t[l],s+=o(t,l),l--}a=r+a}else{for(var u="",h="",p=(s=0,0),f=i-1;s<e;){var d=o(t,p),g=!1;d+s<=e&&(u+=t[p],p++,s+=d,g=!0);var v=o(t,f);if(v+s<=e&&(h=t[f]+h,s+=v,f--,g=!0),!g)break}a=u+r+h}return a}var l="…",c=2,u=400;function h(t){for(var e=t.map((function(t){var e=t.attr("text");return Object(i["G"])(e)?"":""+e})),n=0,r=0,a=0;a<e.length;a+=1){for(var o=0,s=0;s<=e[a].length;s+=1){var l=e[a].charCodeAt(s);o+=l>=19968&&l<=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["j"])(t,(function(t){var n=t.getBBox(),i=n.width;e<i&&(e=i)})),e}function f(t,e){var n=e.getCanvasBBox();return t?n.width:n.height}function d(t,e,n,i){void 0===i&&(i="tail");var r=e.attr("text"),o=f(t,e),u=a(r),h=!1;if(n<o){var p=Math.floor(n/o*u)-c,d=void 0;d=p>=0?s(r,p,i):l,d&&(e.attr("text",d),h=!0)}return h?e.set("tip",r):e.set("tip",null),h}},"0a1f":function(t,e,n){"use strict";n.r(e),n.d(e,"Html",(function(){return y}));var i,r=n("9ab4"),a=n("e945"),o=n("7c8a"),s=n("8937"),l=n("75ed"),c=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:t<r.x,right:t+n>r.x+r.width,top:e<r.y,bottom:e+i>r.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 l=f(s.x,s.y,i,r,o);"auto"===a?(l.right&&(s.x=Math.max(0,t-i-n)),l.top&&(s.y=Math.max(0,e-r-n))):"top"===a||"bottom"===a?(l.left&&(s.x=o.x),l.right&&(s.x=o.x+o.width-i),"top"===a&&l.top&&(s.y=e+n),"bottom"===a&&l.bottom&&(s.y=e-r-n)):(l.top&&(s.y=o.y),l.bottom&&(s.y=o.y+o.height-r),"left"===a&&l.left&&(s.x=t+n),"right"===a&&l.right&&(s.x=t-i-n))}return s}function v(t,e){var n=!1;return Object(s["j"])(e,(function(e){if(Object(s["v"])(t,e))return n=!0,!1})),n}var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{name:"tooltip",type:"html",x:0,y:0,items:[],customContent:null,containerTpl:'<div class="'+u["CONTAINER_CLASS"]+'"><div class="'+u["TITLE_CLASS"]+'"></div><ul class="'+u["LIST_CLASS"]+'"></ul></div>',itemTpl:'<li class="'+u["LIST_ITEM_CLASS"]+'" data-index={index}>\n          <span class="'+u["MARKER_CLASS"]+'" style="background:{color}"></span>\n          <span class="'+u["NAME_CLASS"]+'">{name}</span>:\n          <span class="'+u["VALUE_CLASS"]+'">{value}</span>\n        </li>',xCrosshairTpl:'<div class="'+u["CROSSHAIR_X"]+'"></div>',yCrosshairTpl:'<div class="'+u["CROSSHAIR_Y"]+'"></div>',title:null,showTitle:!0,region:null,crosshairsRegion:null,containerClassName:u["CONTAINER_CLASS"],crosshairs:null,offset:10,position:"right",domStyles:null,defaultStyles: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["v"])(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,l=this.get("position"),u=this.get("region"),h=this.getContainer(),p=this.getBBox(),f=p.width,d=p.height;u&&(t=Object(c["k"])(u));var v=g(e,n,i,f,d,l,t);Object(o["e"])(h,{left:Object(c["l"])(v.x+a),top:Object(c["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["C"])(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(c["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(c["l"])(i),top:Object(c["l"])(e.y),height:Object(c["l"])(e.height)}):Object(o["e"])(n,{top:Object(c["l"])(i),left:Object(c["l"])(e.x),width:Object(c["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["j"])(t,(function(t){var i=a["a"].toCSSGradient(t.color),l=Object(r["a"])(Object(r["a"])({},t),{color:i}),c=Object(s["eb"])(e,l),u=Object(o["b"])(c);n.appendChild(u)})),this.applyChildrenStyles(n,this.get("domStyles")))},e.prototype.clearItemDoms=function(){this.get("listDom")&&Object(c["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}(l["a"]),y=m},"0e81":function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("el-table",{staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList}},[t._l(t.tableHeader,(function(e,i){return n("el-table-column",{key:i,attrs:{fixed:e.fixed,"show-overflow-tooltip":e.tooltip,width:e.width,"min-width":e.minWidth,align:e.align,prop:e.prop,label:e.label,formatter:e.formatter,sortable:e.sortable},scopedSlots:t._u([{key:"default",fn:function(i){return[e.formatter?n("span",{domProps:{innerHTML:t._s(e.formatter(i.row))}}):n("span",[t._v(t._s(i.row[e.prop]))])]}}],null,!0)})}))],2),n("div",{staticClass:"clearfix"},[n("dm-pagination",{staticClass:"fr mb0",attrs:{"hide-on-single-page":"",background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"prev, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)},r=[],a=(n("7514"),n("c5f6"),n("fab6")),o=n("ed08"),s={name:"AuditListModule",mixins:[a["c"]],props:{listParams:{type:Object,default:function(){return{}}},tableList:{type:Object,default:function(){return[]}},auditType:{type:Object,default:function(){return[]}},auditStatus:{type:Object,default:function(){return[]}},total:{type:Number,default:0}},data:function(){var t=this;return{tableHeader:[{label:"审核记录ID",prop:"auditLogId",align:"left",fixed:"left",minWidth:"120"},{label:"提交审核时间",minWidth:"120",align:"left",formatter:function(t){return Object(o["l"])(t.submitReviewTime)}},{label:"审核内容",prop:"auditContext",align:"left",minWidth:"140"},{label:"提交人",prop:"submitter",align:"left",minWidth:"120"},{label:"审核类型",minWidth:"120",align:"left",formatter:function(e){var n=t.auditType.find((function(t){return t.value==e.auditType}));return n?n.label:"--"}},{label:"审核人",prop:"reviewer",align:"left",minWidth:"120"},{label:"审核时间",minWidth:"120",align:"left",formatter:function(t){return Object(o["l"])(t.reviewTime)}},{label:"审核状态",align:"left",minWidth:"120",formatter:function(e){var n=t.auditStatus[e.auditStatus]||{};return'<span class="state-point '.concat(n.cl,'">').concat(n.label||"--","</span>")}},{label:"备注",prop:"remark",align:"left",minWidth:"140",formatter:function(t){return t.remark||"--"}}]}},methods:{getTableList:function(){this.$emit("getTableList")}}},l=s,c=n("2877"),u=Object(c["a"])(l,i,r,!1,null,null,null);e["a"]=u.exports},"10ac":function(t,e,n){},1138:function(t,e,n){"use strict";n("2388")},1183:function(t,e,n){"use strict";n.d(e,"e",(function(){return O})),n.d(e,"b",(function(){return I})),n.d(e,"a",(function(){return G})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return H})),n.d(e,"f",(function(){return i}));var i={};function r(t){return Math.min.apply(null,t)}function a(t){return Math.max.apply(null,t)}function o(t,e,n,i){var r=t-n,a=e-i;return Math.sqrt(r*r+a*a)}function s(t,e){return Math.abs(t-e)<.001}function l(t,e){var n=r(t),i=r(e),o=a(t),s=a(e);return{x:n,y:i,width:o-n,height:s-i}}function c(t,e,n,i){return{minX:r([t,n]),maxX:a([t,n]),minY:r([e,i]),maxY:a([e,i])}}function u(t){return(t+2*Math.PI)%(2*Math.PI)}n.r(i),n.d(i,"distance",(function(){return o})),n.d(i,"isNumberEqual",(function(){return s})),n.d(i,"getBBoxByArray",(function(){return l})),n.d(i,"getBBoxRange",(function(){return c})),n.d(i,"piMod",(function(){return u}));var h=n("6711"),p={box:function(t,e,n,i){return l([t,n],[e,i])},length:function(t,e,n,i){return o(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,a){var s=(n-t)*(r-t)+(i-e)*(a-e);if(s<0)return o(t,e,r,a);var l=(n-t)*(n-t)+(i-e)*(i-e);return s>l?o(n,i,r,a):this.pointToLine(t,e,n,i,r,a)},pointToLine:function(t,e,n,i,r,a){var o=[n-t,i-e];if(h["exactEquals"](o,[0,0]))return Math.sqrt((r-t)*(r-t)+(a-e)*(a-e));var s=[-o[1],o[0]];h["normalize"](s,s);var l=[r-t,a-e];return Math.abs(h["dot"](l,s))},tangentAngle:function(t,e,n,i){return Math.atan2(i-e,n-t)}},f=1e-4;function d(t,e,n,i,r,a){var s,l=1/0,c=[n,i],u=20;a&&a>200&&(u=a/10);for(var h=1/u,p=h/10,d=0;d<=u;d++){var g=d*h,v=[r.apply(null,t.concat([g])),r.apply(null,e.concat([g]))],m=o(c[0],c[1],v[0],v[1]);m<l&&(s=g,l=m)}if(0===s)return{x:t[0],y:e[0]};if(1===s){var y=t.length;return{x:t[y-1],y:e[y-1]}}l=1/0;for(d=0;d<32;d++){if(p<f)break;var b=s-p,x=s+p;v=[r.apply(null,t.concat([b])),r.apply(null,e.concat([b]))],m=o(c[0],c[1],v[0],v[1]);if(b>=0&&m<l)s=b,l=m;else{var O=[r.apply(null,t.concat([x])),r.apply(null,e.concat([x]))],j=o(c[0],c[1],O[0],O[1]);x<=1&&j<l?(s=x,l=j):p*=.5}}return{x:r.apply(null,t.concat([s])),y:r.apply(null,e.concat([s]))}}function g(t,e){for(var n=0,i=t.length,r=0;r<i;r++){var a=t[r],s=e[r],l=t[(r+1)%i],c=e[(r+1)%i];n+=o(a,s,l,c)}return n/2}function v(t,e,n,i){var r=1-i;return r*r*t+2*i*r*e+i*i*n}function m(t,e,n){var i=t+n-2*e;if(s(i,0))return[.5];var r=(t-e)/i;return r<=1&&r>=0?[r]:[]}function y(t,e,n,i){return 2*(1-i)*(e-t)+2*i*(n-e)}function b(t,e,n,i,r,a,o){var s=v(t,n,r,o),l=v(e,i,a,o),c=p.pointAt(t,e,n,i,o),u=p.pointAt(n,i,r,a,o);return[[t,e,c.x,c.y,s,l],[s,l,u.x,u.y,r,a]]}function x(t,e,n,i,r,a,s){if(0===s)return(o(t,e,n,i)+o(n,i,r,a)+o(t,e,r,a))/2;var l=b(t,e,n,i,r,a,.5),c=l[0],u=l[1];return c.push(s-1),u.push(s-1),x.apply(null,c)+x.apply(null,u)}var O={box:function(t,e,n,i,r,a){var o=m(t,n,r)[0],s=m(e,i,a)[0],c=[t,r],u=[e,a];return void 0!==o&&c.push(v(t,n,r,o)),void 0!==s&&u.push(v(e,i,a,s)),l(c,u)},length:function(t,e,n,i,r,a){return x(t,e,n,i,r,a,3)},nearestPoint:function(t,e,n,i,r,a,o,s){return d([t,n,r],[e,i,a],o,s,v)},pointDistance:function(t,e,n,i,r,a,s,l){var c=this.nearestPoint(t,e,n,i,r,a,s,l);return o(c.x,c.y,s,l)},interpolationAt:v,pointAt:function(t,e,n,i,r,a,o){return{x:v(t,n,r,o),y:v(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),l=y(e,i,a,o),c=Math.atan2(l,s);return u(c)}};function j(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 w(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 C(t,e,n,i){var r,a,o,l=-3*t+9*e-9*n+3*i,c=6*t-12*e+6*n,u=3*e-3*t,h=[];if(s(l,0))s(c,0)||(r=-u/c,r>=0&&r<=1&&h.push(r));else{var p=c*c-4*l*u;s(p,0)?h.push(-c/(2*l)):p>0&&(o=Math.sqrt(p),r=(-c+o)/(2*l),a=(-c-o)/(2*l),r>=0&&r<=1&&h.push(r),a>=0&&a<=1&&h.push(a))}return h}function M(t,e,n,i,r,a,o,s,l){var c=j(t,n,r,o,l),u=j(e,i,a,s,l),h=p.pointAt(t,e,n,i,l),f=p.pointAt(n,i,r,a,l),d=p.pointAt(r,a,o,s,l),g=p.pointAt(h.x,h.y,f.x,f.y,l),v=p.pointAt(f.x,f.y,d.x,d.y,l);return[[t,e,h.x,h.y,g.x,g.y,c,u],[c,u,v.x,v.y,d.x,d.y,o,s]]}function S(t,e,n,i,r,a,o,s,l){if(0===l)return g([t,n,r,o],[e,i,a,s]);var c=M(t,e,n,i,r,a,o,s,.5),u=c[0],h=c[1];return u.push(l-1),h.push(l-1),S.apply(null,u)+S.apply(null,h)}var I={extrema:C,box:function(t,e,n,i,r,a,o,s){for(var c=[t,o],u=[e,s],h=C(t,n,r,o),p=C(e,i,a,s),f=0;f<h.length;f++)c.push(j(t,n,r,o,h[f]));for(f=0;f<p.length;f++)u.push(j(e,i,a,s,p[f]));return l(c,u)},length:function(t,e,n,i,r,a,o,s){return S(t,e,n,i,r,a,o,s,3)},nearestPoint:function(t,e,n,i,r,a,o,s,l,c,u){return d([t,n,r,o],[e,i,a,s],l,c,j,u)},pointDistance:function(t,e,n,i,r,a,s,l,c,u,h){var p=this.nearestPoint(t,e,n,i,r,a,s,l,c,u,h);return o(p.x,p.y,c,u)},interpolationAt:j,pointAt:function(t,e,n,i,r,a,o,s,l){return{x:j(t,n,r,o,l),y:j(e,i,a,s,l)}},divide:function(t,e,n,i,r,a,o,s,l){return M(t,e,n,i,r,a,o,s,l)},tangentAngle:function(t,e,n,i,r,a,o,s,l){var c=w(t,n,r,o,l),h=w(e,i,a,s,l);return u(Math.atan2(h,c))}};function k(t,e){var n=Math.abs(t);return e>0?n:-1*n}var T={box:function(t,e,n,i){return{x:t-n,y:e-i,width:2*n,height:2*i}},length:function(t,e,n,i){return Math.PI*(3*(n+i)-Math.sqrt((3*n+i)*(n+3*i)))},nearestPoint:function(t,e,n,i,r,a){var o=n,s=i;if(0===o||0===s)return{x:t,y:e};for(var l,c,u=r-t,h=a-e,p=Math.abs(u),f=Math.abs(h),d=o*o,g=s*s,v=Math.PI/4,m=0;m<4;m++){l=o*Math.cos(v),c=s*Math.sin(v);var y=(d-g)*Math.pow(Math.cos(v),3)/o,b=(g-d)*Math.pow(Math.sin(v),3)/s,x=l-y,O=c-b,j=p-y,w=f-b,C=Math.hypot(O,x),M=Math.hypot(w,j),S=C*Math.asin((x*w-O*j)/(C*M)),I=S/Math.sqrt(d+g-l*l-c*c);v+=I,v=Math.min(Math.PI/2,Math.max(0,v))}return{x:t+k(l,u),y:e+k(c,h)}},pointDistance:function(t,e,n,i,r,a){var s=this.nearestPoint(t,e,n,i,r,a);return o(s.x,s.y,r,a)},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 u(o)}};function A(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 L(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 P(t,e,n){return Math.atan(-e/t*Math.tan(n))}function B(t,e,n){return Math.atan(e/(t*Math.tan(n)))}function E(t,e,n,i,r,a){return n*Math.cos(r)*Math.cos(a)-i*Math.sin(r)*Math.sin(a)+t}function F(t,e,n,i,r,a){return n*Math.sin(r)*Math.cos(a)+i*Math.cos(r)*Math.sin(a)+e}function D(t,e,n,i){var r=Math.atan2(i*t,n*e);return(r+2*Math.PI)%(2*Math.PI)}function _(t,e,n){return{x:t*Math.cos(n),y:e*Math.sin(n)}}function R(t,e,n){var i=Math.cos(n),r=Math.sin(n);return[t*i-e*r,t*r+e*i]}var G={box:function(t,e,n,i,r,a,o){for(var s=P(n,i,r),l=1/0,c=-1/0,u=[a,o],h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var p=s+h;a<o?a<p&&p<o&&u.push(p):o<p&&p<a&&u.push(p)}for(h=0;h<u.length;h++){var f=E(t,e,n,i,r,u[h]);f<l&&(l=f),f>c&&(c=f)}var d=B(n,i,r),g=1/0,v=-1/0,m=[a,o];for(h=2*-Math.PI;h<=2*Math.PI;h+=Math.PI){var y=d+h;a<o?a<y&&y<o&&m.push(y):o<y&&y<a&&m.push(y)}for(h=0;h<m.length;h++){var b=F(t,e,n,i,r,m[h]);b<g&&(g=b),b>v&&(v=b)}return{x:l,y:g,width:c-l,height:v-g}},length:function(t,e,n,i,r,a,o){},nearestPoint:function(t,e,n,i,r,a,o,s,l){var c=R(s-t,l-e,-r),u=c[0],h=c[1],p=T.nearestPoint(0,0,n,i,u,h),f=D(n,i,p.x,p.y);f<a?p=_(n,i,a):f>o&&(p=_(n,i,o));var d=R(p.x,p.y,r);return{x:d[0]+t,y:d[1]+e}},pointDistance:function(t,e,n,i,r,a,s,l,c){var u=this.nearestPoint(t,e,n,i,l,c);return o(u.x,u.y,l,c)},pointAt:function(t,e,n,i,r,a,o,s){var l=(o-a)*s+a;return{x:E(t,e,n,i,r,l),y:F(t,e,n,i,r,l)}},tangentAngle:function(t,e,n,i,r,a,o,s){var l=(o-a)*s+a,c=A(t,e,n,i,r,a,o,l),h=L(t,e,n,i,r,a,o,l);return u(Math.atan2(h,c))}};function Y(t){for(var e=0,n=[],i=0;i<t.length-1;i++){var r=t[i],a=t[i+1],s=o(r[0],r[1],a[0],a[1]),l={from:r,to:a,length:s};n.push(l),e+=s}return{segments:n,totalLength:e}}function N(t){if(t.length<2)return 0;for(var e=0,n=0;n<t.length-1;n++){var i=t[n],r=t[n+1];e+=o(i[0],i[1],r[0],r[1])}return e}function z(t,e){if(e>1||e<0||t.length<2)return null;var n=Y(t),i=n.segments,r=n.totalLength;if(0===r)return{x:t[0][0],y:t[0][1]};for(var a=0,o=null,s=0;s<i.length;s++){var l=i[s],c=l.from,u=l.to,h=l.length/r;if(e>=a&&e<=a+h){var f=(e-a)/h;o=p.pointAt(c[0],c[1],u[0],u[1],f);break}a+=h}return o}function V(t,e){if(e>1||e<0||t.length<2)return 0;for(var n=Y(t),i=n.segments,r=n.totalLength,a=0,o=0,s=0;s<i.length;s++){var l=i[s],c=l.from,u=l.to,h=l.length/r;if(e>=a&&e<=a+h){o=Math.atan2(u[1]-c[1],u[0]-c[0]);break}a+=h}return o}function X(t,e,n){for(var i=1/0,r=0;r<t.length-1;r++){var a=t[r],o=t[r+1],s=p.pointDistance(a[0],a[1],o[0],o[1],e,n);s<i&&(i=s)}return i}var H={box:function(t){for(var e=[],n=[],i=0;i<t.length;i++){var r=t[i];e.push(r[0]),n.push(r[1])}return l(e,n)},length:function(t){return N(t)},pointAt:function(t,e){return z(t,e)},pointDistance:function(t,e,n){return X(t,e,n)},tangentAngle:function(t,e){return V(t,e)}}},1243:function(t,e,n){"use strict";var i={};n.r(i),n.d(i,"easeLinear",(function(){return T})),n.d(i,"easeQuad",(function(){return P})),n.d(i,"easeQuadIn",(function(){return A})),n.d(i,"easeQuadOut",(function(){return L})),n.d(i,"easeQuadInOut",(function(){return P})),n.d(i,"easeCubic",(function(){return F})),n.d(i,"easeCubicIn",(function(){return B})),n.d(i,"easeCubicOut",(function(){return E})),n.d(i,"easeCubicInOut",(function(){return F})),n.d(i,"easePoly",(function(){return G})),n.d(i,"easePolyIn",(function(){return _})),n.d(i,"easePolyOut",(function(){return R})),n.d(i,"easePolyInOut",(function(){return G})),n.d(i,"easeSin",(function(){return X})),n.d(i,"easeSinIn",(function(){return z})),n.d(i,"easeSinOut",(function(){return V})),n.d(i,"easeSinInOut",(function(){return X})),n.d(i,"easeExp",(function(){return U})),n.d(i,"easeExpIn",(function(){return W})),n.d(i,"easeExpOut",(function(){return q})),n.d(i,"easeExpInOut",(function(){return U})),n.d(i,"easeCircle",(function(){return Q})),n.d(i,"easeCircleIn",(function(){return $})),n.d(i,"easeCircleOut",(function(){return Z})),n.d(i,"easeCircleInOut",(function(){return Q})),n.d(i,"easeBounce",(function(){return ct})),n.d(i,"easeBounceIn",(function(){return lt})),n.d(i,"easeBounceOut",(function(){return ct})),n.d(i,"easeBounceInOut",(function(){return ut})),n.d(i,"easeBack",(function(){return dt})),n.d(i,"easeBackIn",(function(){return pt})),n.d(i,"easeBackOut",(function(){return ft})),n.d(i,"easeBackInOut",(function(){return dt})),n.d(i,"easeElastic",(function(){return bt})),n.d(i,"easeElasticIn",(function(){return yt})),n.d(i,"easeElasticOut",(function(){return bt})),n.d(i,"easeElasticInOut",(function(){return xt}));var r,a,o=n("9ab4"),s=n("7b46"),l=n("330d"),c=n("b2cb"),u=n("8937"),h=0,p=0,f=0,d=1e3,g=0,v=0,m=0,y="object"===typeof performance&&performance.now?performance:Date,b="object"===typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function x(){return v||(b(O),v=y.now()+m)}function O(){v=0}function j(){this._call=this._time=this._next=null}function w(t,e,n){var i=new j;return i.restart(t,e,n),i}function C(){x(),++h;var t,e=r;while(e)(t=v-e._time)>=0&&e._call.call(null,t),e=e._next;--h}function M(){v=(g=y.now())+m,h=p=0;try{C()}finally{h=0,I(),v=0}}function S(){var t=y.now(),e=t-g;e>d&&(m-=e,g=t)}function I(){var t,e,n=r,i=1/0;while(n)n._call?(i>n._time&&(i=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:r=e);a=t,k(i)}function k(t){if(!h){p&&(p=clearTimeout(p));var e=t-v;e>24?(t<1/0&&(p=setTimeout(M,t-y.now()-m)),f&&(f=clearInterval(f))):(f||(g=y.now(),f=setInterval(S,d)),h=1,b(M))}}function T(t){return+t}function A(t){return t*t}function L(t){return t*(2-t)}function P(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}function B(t){return t*t*t}function E(t){return--t*t*t+1}function F(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}j.prototype=w.prototype={constructor:j,restart:function(t,e,n){if("function"!==typeof t)throw new TypeError("callback is not a function");n=(null==n?x():+n)+(null==e?0:+e),this._next||a===this||(a?a._next=this:r=this,a=this),this._call=t,this._time=n,k()},stop:function(){this._call&&(this._call=null,this._time=1/0,k())}};var D=3,_=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(D),R=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(D),G=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}(D),Y=Math.PI,N=Y/2;function z(t){return 1===+t?1:1-Math.cos(t*N)}function V(t){return Math.sin(t*N)}function X(t){return(1-Math.cos(Y*t))/2}function H(t){return 1.0009775171065494*(Math.pow(2,-10*t)-.0009765625)}function W(t){return H(1-+t)}function q(t){return 1-H(t)}function U(t){return((t*=2)<=1?H(1-t):2-H(t-1))/2}function $(t){return 1-Math.sqrt(1-t*t)}function Z(t){return Math.sqrt(1- --t*t)}function Q(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}var J=4/11,K=6/11,tt=8/11,et=3/4,nt=9/11,it=10/11,rt=15/16,at=21/22,ot=63/64,st=1/J/J;function lt(t){return 1-ct(1-t)}function ct(t){return(t=+t)<J?st*t*t:t<tt?st*(t-=K)*t+et:t<it?st*(t-=nt)*t+rt:st*(t-=at)*t+ot}function ut(t){return((t*=2)<=1?1-ct(1-t):ct(t-1)+1)/2}var ht=1.70158,pt=function t(e){function n(t){return(t=+t)*t*(e*(t-1)+t)}return e=+e,n.overshoot=t,n}(ht),ft=function t(e){function n(t){return--t*t*((t+1)*e+t)+1}return e=+e,n.overshoot=t,n}(ht),dt=function t(e){function n(t){return((t*=2)<1?t*t*((e+1)*t-e):(t-=2)*t*((e+1)*t+e)+2)/2}return e=+e,n.overshoot=t,n}(ht),gt=2*Math.PI,vt=1,mt=.3,yt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function r(t){return e*H(- --t)*Math.sin((i-t)/n)}return r.amplitude=function(e){return t(e,n*gt)},r.period=function(n){return t(e,n)},r}(vt,mt),bt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function r(t){return 1-e*H(t=+t)*Math.sin((t+i)/n)}return r.amplitude=function(e){return t(e,n*gt)},r.period=function(n){return t(e,n)},r}(vt,mt),xt=function t(e,n){var i=Math.asin(1/(e=Math.max(1,e)))*(n/=gt);function r(t){return((t=2*t-1)<0?e*H(-t)*Math.sin((i-t)/n):2-e*H(t)*Math.sin((i+t)/n))/2}return r.amplitude=function(e){return t(e,n*gt)},r.period=function(n){return t(e,n)},r}(vt,mt),Ot=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t};function jt(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function wt(){}var Ct=.7,Mt=1/Ct,St="\\s*([+-]?\\d+)\\s*",It="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",kt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Tt=/^#([0-9a-f]{3,8})$/,At=new RegExp("^rgb\\("+[St,St,St]+"\\)$"),Lt=new RegExp("^rgb\\("+[kt,kt,kt]+"\\)$"),Pt=new RegExp("^rgba\\("+[St,St,St,It]+"\\)$"),Bt=new RegExp("^rgba\\("+[kt,kt,kt,It]+"\\)$"),Et=new RegExp("^hsl\\("+[It,kt,kt]+"\\)$"),Ft=new RegExp("^hsla\\("+[It,kt,kt,It]+"\\)$"),Dt={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 _t(){return this.rgb().formatHex()}function Rt(){return Zt(this).formatHsl()}function Gt(){return this.rgb().formatRgb()}function Yt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=Tt.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?Nt(e):3===n?new Ht(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?zt(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?zt(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=At.exec(t))?new Ht(e[1],e[2],e[3],1):(e=Lt.exec(t))?new Ht(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=Pt.exec(t))?zt(e[1],e[2],e[3],e[4]):(e=Bt.exec(t))?zt(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=Et.exec(t))?$t(e[1],e[2]/100,e[3]/100,1):(e=Ft.exec(t))?$t(e[1],e[2]/100,e[3]/100,e[4]):Dt.hasOwnProperty(t)?Nt(Dt[t]):"transparent"===t?new Ht(NaN,NaN,NaN,0):null}function Nt(t){return new Ht(t>>16&255,t>>8&255,255&t,1)}function zt(t,e,n,i){return i<=0&&(t=e=n=NaN),new Ht(t,e,n,i)}function Vt(t){return t instanceof wt||(t=Yt(t)),t?(t=t.rgb(),new Ht(t.r,t.g,t.b,t.opacity)):new Ht}function Xt(t,e,n,i){return 1===arguments.length?Vt(t):new Ht(t,e,n,null==i?1:i)}function Ht(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}function Wt(){return"#"+Ut(this.r)+Ut(this.g)+Ut(this.b)}function qt(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function Ut(t){return t=Math.max(0,Math.min(255,Math.round(t)||0)),(t<16?"0":"")+t.toString(16)}function $t(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new Jt(t,e,n,i)}function Zt(t){if(t instanceof Jt)return new Jt(t.h,t.s,t.l,t.opacity);if(t instanceof wt||(t=Yt(t)),!t)return new Jt;if(t instanceof Jt)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,l=(a+r)/2;return s?(o=e===a?(n-i)/s+6*(n<i):n===a?(i-e)/s+2:(e-n)/s+4,s/=l<.5?a+r:2-a-r,o*=60):s=l>0&&l<1?0:o,new Jt(o,s,l,t.opacity)}function Qt(t,e,n,i){return 1===arguments.length?Zt(t):new Jt(t,e,n,null==i?1:i)}function Jt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}function Kt(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function te(t,e,n,i,r){var 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}Ot(wt,Yt,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:_t,formatHex:_t,formatHsl:Rt,formatRgb:Gt,toString:Gt}),Ot(Ht,Xt,jt(wt,{brighter:function(t){return t=null==t?Mt:Math.pow(Mt,t),new Ht(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?Ct:Math.pow(Ct,t),new Ht(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Wt,formatHex:Wt,formatRgb:qt,toString:qt})),Ot(Jt,Qt,jt(wt,{brighter:function(t){return t=null==t?Mt:Math.pow(Mt,t),new Jt(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?Ct:Math.pow(Ct,t),new Jt(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Ht(Kt(t>=240?t-240:t+120,r,i),Kt(t,r,i),Kt(t<120?t+240:t-120,r,i),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return t=isNaN(t)?1:Math.max(0,Math.min(1,t)),(1===t?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ee=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<e-1?t[i+2]:2*a-r;return te((n-i/e)*e,o,r,a,s)}},ne=function(t){var e=t.length;return function(n){var i=Math.floor(((n%=1)<0?++n:n)*e),r=t[(i+e-1)%e],a=t[i%e],o=t[(i+1)%e],s=t[(i+2)%e];return te((n-i/e)*e,r,a,o,s)}},ie=function(t){return function(){return t}};function re(t,e){return function(n){return t+n*e}}function ae(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 oe(t){return 1===(t=+t)?se:function(e,n){return n-e?ae(e,n,t):ie(isNaN(e)?n:e)}}function se(t,e){var n=e-t;return n?re(t,n):ie(isNaN(t)?e:t)}var le=function t(e){var n=oe(e);function i(t,e){var i=n((t=Xt(t)).r,(e=Xt(e)).r),r=n(t.g,e.g),a=n(t.b,e.b),o=se(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 ce(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;n<r;++n)i=Xt(e[n]),a[n]=i.r||0,o[n]=i.g||0,s[n]=i.b||0;return a=t(a),o=t(o),s=t(s),i.opacity=1,function(t){return i.r=a(t),i.g=o(t),i.b=s(t),i+""}}}ce(ee),ce(ne);var ue=function(t,e){e||(e=[]);var n,i=t?Math.min(e.length,t.length):0,r=e.slice();return function(a){for(n=0;n<i;++n)r[n]=t[n]*(1-a)+e[n]*a;return r}};function he(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}var pe=function(t,e){return(he(e)?ue:fe)(t,e)};function fe(t,e){var n,i=e?e.length:0,r=t?Math.min(i,t.length):0,a=new Array(r),o=new Array(i);for(n=0;n<r;++n)a[n]=je(t[n],e[n]);for(;n<i;++n)o[n]=e[n];return function(t){for(n=0;n<r;++n)o[n]=a[n](t);return o}}var de=function(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}},ge=function(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}},ve=function(t,e){var n,i={},r={};for(n in null!==t&&"object"===typeof t||(t={}),null!==e&&"object"===typeof e||(e={}),e)n in t?i[n]=je(t[n],e[n]):r[n]=e[n];return function(t){for(n in i)r[n]=i[n](t);return r}},me=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ye=new RegExp(me.source,"g");function be(t){return function(){return t}}function xe(t){return function(e){return t(e)+""}}var Oe=function(t,e){var n,i,r,a=me.lastIndex=ye.lastIndex=0,o=-1,s=[],l=[];t+="",e+="";while((n=me.exec(t))&&(i=ye.exec(e)))(r=i.index)>a&&(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,l.push({i:o,x:ge(n,i)})),a=ye.lastIndex;return a<e.length&&(r=e.slice(a),s[o]?s[o]+=r:s[++o]=r),s.length<2?l[0]?xe(l[0].x):be(e):(e=l.length,function(t){for(var n,i=0;i<e;++i)s[(n=l[i]).i]=n.x(t);return s.join("")})},je=function(t,e){var n,i=typeof e;return null==e||"boolean"===i?ie(e):("number"===i?ge:"string"===i?(n=Yt(e))?(e=n,le):Oe:e instanceof Yt?le:e instanceof Date?de:he(e)?ue:Array.isArray(e)?fe:"function"!==typeof e.valueOf&&"function"!==typeof e.toString||isNaN(e)?ve:ge)(t,e)},we=n("b6fb"),Ce=function(t){return["fill","stroke","fillStyle","strokeStyle"].includes(t)},Me=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},Se=[1,0,0,0,1,0,0,0,1];function Ie(t,e,n){var i={},r=e.fromAttrs,a=e.toAttrs;if(!t.destroyed){var o;for(var s in a)if(!Object(u["E"])(r[s],a[s]))if("path"===s){var l=a[s],c=r[s];l.length>c.length?(l=we["parsePathString"](a[s]),c=we["parsePathString"](r[s]),c=we["fillPathByDiff"](c,l),c=we["formatPath"](c,l),e.fromAttrs.path=c,e.toAttrs.path=l):e.pathFormatted||(l=we["parsePathString"](a[s]),c=we["parsePathString"](r[s]),c=we["formatPath"](c,l),e.fromAttrs.path=c,e.toAttrs.path=l,e.pathFormatted=!0),i[s]=[];for(var h=0;h<l.length;h++){for(var p=l[h],f=c[h],d=[],g=0;g<p.length;g++)Object(u["I"])(p[g])&&f&&Object(u["I"])(f[g])?(o=je(f[g],p[g]),d.push(o(n))):d.push(p[g]);i[s].push(d)}}else if("matrix"===s){var v=pe(r[s]||Se,a[s]||Se),m=v(n);i[s]=m}else Ce(s)&&Me(a[s])?i[s]=a[s]:Object(u["F"])(a[s])||(o=je(r[s],a[s]),i[s]=o(n));t.attr(i)}}function ke(t,e,n){var r,a=e.startTime,o=e.delay;if(n<a+o||e._paused)return!1;var s=e.duration,l=e.easing;if(n=n-a-e.delay,e.repeat)r=n%s/s,r=i[l](r);else{if(r=n/s,!(r<1))return e.onFrame?t.attr(e.onFrame(1)):t.attr(e.toAttrs),!0;r=i[l](r)}if(e.onFrame){var c=e.onFrame(r);t.attr(c)}else Ie(t,e,r);return!1}var Te=function(){function t(t){this.animators=[],this.current=0,this.timer=null,this.canvas=t}return t.prototype.initTimer=function(){var t,e,n,i=this,r=!1;this.timer=w((function(a){if(i.current=a,i.animators.length>0){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=ke(t,n,a),r&&(e.splice(s,1),r=!1,n.callback&&n.callback())}0===e.length&&i.removeAnimator(o)}var l=i.canvas.get("autoDraw");l||i.canvas.draw()}}))},t.prototype.addAnimator=function(t){this.animators.push(t)},t.prototype.removeAnimator=function(t){this.animators.splice(t,1)},t.prototype.isAnimating=function(){return!!this.animators.length},t.prototype.stop=function(){this.timer&&this.timer.stop()},t.prototype.stopAllAnimations=function(t){void 0===t&&(t=!0),this.animators.forEach((function(e){e.stopAnimate(t)})),this.animators=[],this.canvas.draw()},t.prototype.getTime=function(){return this.current},t}(),Ae=Te,Le=n("e5e2"),Pe=40,Be=0,Ee=["mousedown","mouseup","dblclick","mouseout","mouseover","mousemove","mouseleave","mouseenter","touchstart","touchmove","touchend","dragenter","dragover","dragleave","drop","contextmenu","mousewheel"];function Fe(t,e,n){n.name=e,n.target=t,n.currentTarget=t,n.delegateTarget=t,t.emit(e,n)}function De(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 _e=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"])(Ee,(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"])(Ee,(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 Le["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,l=s.get("el");l.style.cursor=i.attr("cursor")||s.get("cursor")}},t.prototype._onmousedown=function(t,e,n){n.button===Be&&(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===Be){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,l=n.timeStamp,c=l-this.mousedownTimeStamp,u=o.clientX-t.clientX,h=o.clientY-t.clientY,p=u*u+h*h;c>120||p>Pe?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,Fe(i,t,o);var s=i.getParent();while(s)s.emitDelegation(t,o),o.propagationStopped||De(s,t,o),o.propagationPath.push(s),s=s.getParent()}else{var l=this.canvas;Fe(l,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}(),Re=_e,Ge="px",Ye=Object(s["a"])(),Ne=Ye&&"firefox"===Ye.name,ze=function(t){function e(e){var n=t.call(this,e)||this;return n.initContainer(),n.initDom(),n.initEvents(),n.initTimeline(),n}return Object(o["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["cursor"]="default",e["supportCSSTransform"]=!1,e},e.prototype.initContainer=function(){var t=this.get("container");Object(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 Re({canvas:this});t.init(),this.set("eventController",t)},e.prototype.initTimeline=function(){var t=new Ae(this);this.set("timeline",t)},e.prototype.setDOMSize=function(t,e){var n=this.get("el");c["c"]&&(n.style.width=t+Ge,n.style.height=e+Ge)},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(Ne&&!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}(l["a"]);e["a"]=ze},1418:function(t,e,n){"use strict";n("3cf4")},"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}},"1b72":function(t,e,n){"use strict";n("3622")},"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"}},2388:function(t,e,n){},"29ab":function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("d177"),o=n("41c8");function s(t,e){return(e-t)*Math.random()+t}var l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["e"](t),n=r["p"](e);return this.adjustData(e,n),e},e.prototype.adjustDim=function(t,e,n){var i=this,a=this.groupData(n,t);return r["j"](a,(function(n,r){return i.adjustGroup(n,t,parseFloat(r),e)}))},e.prototype.getAdjustOffset=function(t){var e=t.pre,n=t.next,i=(n-e)*a["c"];return s(e+i,n-i)},e.prototype.adjustGroup=function(t,e,n,i){var a=this,o=this.getAdjustRange(e,n,i);return r["j"](t,(function(t){t[e]=a.getAdjustOffset(o)})),t},e}(o["a"]);e["a"]=l},"29f2":function(t,e,n){"use strict";n("ad88")},"2bbc":function(t,e,n){},"2e60":function(t,e,n){"use strict";var i=n("9ab4"),r=n("7fa2"),a=n("b2cb"),o=function(t){function e(e){var n=t.call(this)||this;n.destroyed=!1;var i=n.getDefaultCfg();return n.cfg=Object(a["i"])(i,e),n}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){return{}},e.prototype.get=function(t){return this.cfg[t]},e.prototype.set=function(t,e){this.cfg[t]=e},e.prototype.destroy=function(){this.cfg={destroyed:!0},this.off(),this.destroyed=!0},e}(r["a"]);e["a"]=o},"2ef1":function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"c",(function(){return p})),n.d(e,"d",(function(){return g})),n.d(e,"e",(function(){return j})),n.d(e,"b",(function(){return B}));var i=n("8937"),r=/[MLHVQTCSAZ]([^MLHVQTCSAZ]*)/gi,a=/[^\s\,]+/gi;function o(t){var e=t||[];return Object(i["z"])(e)?e:Object(i["M"])(e)?(e=e.match(r),Object(i["j"])(e,(function(t,n){if(t=t.match(a),t[0].length>1){var r=t[0].charAt(0);t.splice(1,0,t[0].substr(1)),t[0]=r}Object(i["j"])(t,(function(e,n){isNaN(e)||(t[n]=+e)})),e[n]=t})),e):void 0}var s=o;function l(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}var c="\t\n\v\f\r   ᠎             　\u2028\u2029",u=new RegExp("([a-z])["+c+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+c+"]*,?["+c+"]*)+)","ig"),h=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+c+"]*,?["+c+"]*","ig");function p(t){if(!t)return null;if(Object(i["z"])(t))return t;var e={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},n=[];return String(t).replace(u,(function(t,i,r){var a=[],o=i.toLowerCase();if(r.replace(h,(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 f=/[a-z]/;function d(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function g(t){var e=p(t);if(!e||!e.length)return[["M",0,0]];for(var n=!1,i=0;i<e.length;i++){var r=e[i][0];if(f.test(r)||["V","H","T","S"].indexOf(r)>=0){n=!0;break}}if(!n)return e;var a=[],o=0,s=0,l=0,c=0,u=0,h=e[0];"M"!==h[0]&&"m"!==h[0]||(o=+h[1],s=+h[2],l=o,c=s,u++,a[0]=["M",o,s]);i=u;for(var g=e.length;i<g;i++){var v=e[i],m=a[i-1],y=[],b=(r=v[0],r.toUpperCase());if(r!==b)switch(y[0]=b,b){case"A":y[1]=v[1],y[2]=v[2],y[3]=v[3],y[4]=v[4],y[5]=v[5],y[6]=+v[6]+o,y[7]=+v[7]+s;break;case"V":y[1]=+v[1]+s;break;case"H":y[1]=+v[1]+o;break;case"M":l=+v[1]+o,c=+v[2]+s;break;default:for(var x=1,O=v.length;x<O;x++)y[x]=+v[x]+(x%2?o:s)}else y=e[i];switch(b){case"Z":o=+l,s=+c;break;case"H":o=y[1],y=["L",o,s];break;case"V":s=y[1],y=["L",o,s];break;case"T":o=y[1],s=y[2];var j=d([m[1],m[2]],[m[3],m[4]]);y=["Q",j[0],j[1],o,s];break;case"S":o=y[y.length-2],s=y[y.length-1];var w=m.length,C=d([m[w-4],m[w-3]],[m[w-2],m[w-1]]);y=["C",C[0],C[1],y[1],y[2],o,s];break;case"M":l=y[y.length-2],c=y[y.length-1];break;default:o=y[y.length-2],s=y[y.length-1]}a.push(y)}return a}function v(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function m(t,e){return v(t)*v(e)?(t[0]*e[0]+t[1]*e[1])/(v(t)*v(e)):1}function y(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(m(t,e))}function b(t,e){return t[0]===e[0]&&t[1]===e[1]}function x(t,e){var n=e[1],r=e[2],a=Object(i["V"])(Object(i["hb"])(e[3]),2*Math.PI),o=e[4],s=e[5],l=t[0],c=t[1],u=e[6],h=e[7],p=Math.cos(a)*(l-u)/2+Math.sin(a)*(c-h)/2,f=-1*Math.sin(a)*(l-u)/2+Math.cos(a)*(c-h)/2,d=p*p/(n*n)+f*f/(r*r);d>1&&(n*=Math.sqrt(d),r*=Math.sqrt(d));var g=n*n*(f*f)+r*r*(p*p),v=g?Math.sqrt((n*n*(r*r)-g)/g):1;o===s&&(v*=-1),isNaN(v)&&(v=0);var x=r?v*n*f/r:0,O=n?v*-r*p/n:0,j=(l+u)/2+Math.cos(a)*x-Math.sin(a)*O,w=(c+h)/2+Math.sin(a)*x+Math.cos(a)*O,C=[(p-x)/n,(f-O)/r],M=[(-1*p-x)/n,(-1*f-O)/r],S=y([1,0],C),I=y(C,M);return m(C,M)<=-1&&(I=Math.PI),m(C,M)>=1&&(I=0),0===s&&I>0&&(I-=2*Math.PI),1===s&&I<0&&(I+=2*Math.PI),{cx:j,cy:w,rx:b(t,[u,h])?0:n,ry:b(t,[u,h])?0:r,startAngle:S,endAngle:S+I,xRotation:a,arcFlag:o,sweepFlag:s}}function O(t,e){return[e[0]+(e[0]-t[0]),e[1]+(e[1]-t[1])]}function j(t){t=s(t);for(var e=[],n=null,i=null,r=null,a=0,o=t.length,l=0;l<o;l++){var c=t[l];i=t[l+1];var u=c[0],h={command:u,prePoint:n,params:c,startTangent:null,endTangent:null};switch(u){case"M":r=[c[1],c[2]],a=l;break;case"A":var p=x(n,c);h["arcParams"]=p;break;default:break}if("Z"===u)n=r,i=t[a+1];else{var f=c.length;n=[c[f-2],c[f-1]]}i&&"Z"===i[0]&&(i=t[a],e[a]&&(e[a].prePoint=n)),h["currentPoint"]=n,e[a]&&b(n,e[a].currentPoint)&&(e[a].prePoint=h.prePoint);var d=i?[i[i.length-2],i[i.length-1]]:null;h["nextPoint"]=d;var g=h.prePoint;if(["L","H","V"].includes(u))h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]];else if("Q"===u){var v=[c[1],c[2]];h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]}else if("T"===u){var m=e[l-1];v=O(m.currentPoint,g);"Q"===m.command?(h.command="Q",h.startTangent=[g[0]-v[0],g[1]-v[1]],h.endTangent=[n[0]-v[0],n[1]-v[1]]):(h.command="TL",h.startTangent=[g[0]-n[0],g[1]-n[1]],h.endTangent=[n[0]-g[0],n[1]-g[1]])}else if("C"===u){var y=[c[1],c[2]],j=[c[3],c[4]];h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-j[0],n[1]-j[1]]}else if("S"===u){m=e[l-1],y=O(m.currentPoint,g),j=[c[1],c[2]];"C"===m.command?(h.command="C",h.startTangent=[g[0]-y[0],g[1]-y[1]],h.endTangent=[n[0]-j[0],n[1]-j[1]]):(h.command="SQ",h.startTangent=[g[0]-j[0],g[1]-j[1]],h.endTangent=[n[0]-j[0],n[1]-j[1]])}else if("A"===u){var w=.001,C=h["arcParams"]||{},M=C.cx,S=void 0===M?0:M,I=C.cy,k=void 0===I?0:I,T=C.rx,A=void 0===T?0:T,L=C.ry,P=void 0===L?0:L,B=C.sweepFlag,E=void 0===B?0:B,F=C.startAngle,D=void 0===F?0:F,_=C.endAngle,R=void 0===_?0:_;0===E&&(w*=-1);var G=A*Math.cos(D-w)+S,Y=P*Math.sin(D-w)+k;h.startTangent=[G-r[0],Y-r[1]];var N=A*Math.cos(D+R+w)+S,z=P*Math.sin(D+R-w)+k;h.endTangent=[g[0]-N,g[1]-z]}e.push(h)}return e}var w=function(t,e,n){return t>=e&&t<=n};function C(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},l=o.x*s.y-o.y*s.x,c=l*l,u=o.x*o.x+o.y*o.y,h=s.x*s.x+s.y*s.y,p=null;if(c>r*u*h){var f=(a.x*s.y-a.y*s.x)/l,d=(a.x*o.y-a.y*o.x)/l;w(f,0,1)&&w(d,0,1)&&(p={x:t.x+f*o.x,y:t.y+f*o.y})}return p}var M=1e-6;function S(t){return Math.abs(t)<M?0:t<0?-1:1}function I(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function k(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var a=0;a<r;a++){var o=t[a],s=t[(a+1)%r];if(I(o,s,[e,n]))return!0;S(o[1]-n)>0!==S(s[1]-n)>0&&S(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}function T(t){for(var e=[],n=t.length,i=0;i<n-1;i++){var r=t[i],a=t[i+1];e.push({from:{x:r[0],y:r[1]},to:{x:a[0],y:a[1]}})}if(e.length>1){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 A(t,e){var n=!1;return Object(i["j"])(t,(function(t){if(C(t.from,t.to,e.from,e.to))return n=!0,!1})),n}function L(t){var e=t.map((function(t){return t[0]})),n=t.map((function(t){return t[1]}));return{minX:Math.min.apply(null,e),maxX:Math.max.apply(null,e),minY:Math.min.apply(null,n),maxY:Math.max.apply(null,n)}}function P(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function B(t,e){if(t.length<2||e.length<2)return!1;var n=L(t),r=L(e);if(!P(n,r))return!1;var a=!1;if(Object(i["j"])(e,(function(e){if(k(t,e[0],e[1]))return a=!0,!1})),a)return!0;if(Object(i["j"])(t,(function(t){if(k(e,t[0],t[1]))return a=!0,!1})),a)return!0;var o=T(t),s=T(e),l=!1;return Object(i["j"])(s,(function(t){if(A(o,t))return l=!0,!1})),l}},"2f5e":function(t,e,n){"use strict";e["a"]={fontFamily:'\n  "-apple-system", BlinkMacSystemFont, "Segoe UI", Roboto,"Helvetica Neue",\n  Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",\n  SimSun, "sans-serif"',textColor:"#2C3542",activeTextColor:"#333333",uncheckedColor:"#D8D8D8",lineColor:"#416180",regionColor:"#CCD7EB",verticalAxisRotate:-Math.PI/4,horizontalAxisRotate:Math.PI/4}},"2fb7":function(t,e,n){"use strict";n("f462")},3157:function(t,e,n){"use strict";n.r(e);var i,r,a,o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[n("p",{staticClass:"fw500 gray01 title"},[t._v("图文分析 - "+t._s(t.$route.query.title))]),n("div",{staticClass:"pb40 pl20 pr20",attrs:{id:"container"}}),n("p",{staticClass:"instru"},[t._v("说明")]),n("ul",[n("li",[t._v("1. 所有统计数据均来自微信接口，每天早上9点统计前一天数据。")]),n("li",[t._v("2. 过小的阅读量（阅读人数+原文页阅读人数+分享转发人数+分享转发次数+收藏次数 >=3的结果才会得到统计）的图文消息无法统计。")]),n("li",[t._v("3. 由于微信限制，图文统计只展示自发送起7天内的数据。")]),n("li",[t._v("4. 此处统计为该条图文的合计数据，如该图文群发了多次，则包含历史数据。")])])])},s=[],l=(n("ac6a"),n("9ab4")),c=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 u,h,p,f,d={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"})(u||(u={})),function(t){t["BEFORE_DRAW_ANIMATE"]="beforeanimate",t["AFTER_DRAW_ANIMATE"]="afteranimate"}(h||(h={})),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"}(p||(p={})),function(t){t["ACTIVE"]="active",t["INACTIVE"]="inactive",t["SELECTED"]="selected",t["DEFAULT"]="default"}(f||(f={}));var g=["color","shape","size"],v="_origin",m=1,y=1,b=.25,x={};function O(t){var e=x[t];if(!e)throw new Error("G engine '"+t+"' is not exist, please register it at first.");return e}function j(t,e){x[t]=e}var w=n("7c8a");function C(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 M(t){return"number"===typeof t&&!isNaN(t)}function S(t,e,n,i){var r=n,a=i;if(e){var o=C(t);r=o.width?o.width:r,a=o.height?o.height:a}return{width:Math.max(M(r)?r:m,m),height:Math.max(M(a)?a:y,y)}}function I(t){var e=t.parentNode;e&&e.removeChild(t)}var k=n("7fa2"),T=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(l["b"])(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}(k["a"]),A=T,L=n("6855"),P=n("eecd"),B=function(t,e){return Object(c["M"])(e)?e:t.invert(t.scale(e))},E=function(){function t(t){this.names=[],this.scales=[],this.linear=!1,this.values=[],this.callback=function(){return[]},this._parseCfg(t)}return t.prototype.mapping=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.map((function(e,n){return t._toOriginParam(e,t.scales[n])}));return this.callback.apply(this,i)},t.prototype.getLinearValue=function(t){var e=this.values.length-1,n=Math.floor(e*t),i=e*t-n,r=this.values[n],a=n===e?r:this.values[n+1];return r+(a-r)*i},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),i=[],r=0;r<n;r+=1)i.push(e[r]);return i},t.prototype.getFields=function(){return this.scales.map((function(t){return t.field}))},t.prototype.getScale=function(t){return this.scales[this.names.indexOf(t)]},t.prototype.defaultCallback=function(){for(var t=this,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return 0===e.length?this.values:e.map((function(e,n){var i=t.scales[n];return"identity"===i.type?i.values[0]:t._getAttributeValue(i,e)}))},t.prototype._parseCfg=function(t){var e=this,n=t.type,i=void 0===n?"base":n,r=t.names,a=void 0===r?[]:r,o=t.scales,s=void 0===o?[]:o,l=t.values,u=void 0===l?[]:l,h=t.callback;this.type=i,this.scales=s,this.values=u,this.names=a,this.callback=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(h){var i=h.apply(void 0,t);if(!Object(c["G"])(i))return[i]}return e.defaultCallback.apply(e,t)}},t.prototype._getAttributeValue=function(t,e){if(t.isCategory&&!this.linear){var n=t.translate(e);return this.values[n%this.values.length]}var i=t.scale(e);return this.getLinearValue(i)},t.prototype._toOriginParam=function(t,e){return e.isLinear?t:Object(c["z"])(t)?t.map((function(t){return B(e,t)})):B(e,t)},t}(),F=E,D=function(t,e){return D=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])},D(t,e)};function _(t,e){function n(){this.constructor=t}D(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var R=n("e945"),G=function(t){function e(e){var n=t.call(this,e)||this;return n.type="color",n.names=["color"],Object(c["M"])(n.values)&&(n.linear=!0),n.gradient=R["a"].gradient(n.values),n}return _(e,t),e.prototype.getLinearValue=function(t){return this.gradient(t)},e}(F),Y=G,N=function(t){function e(e){var n=t.call(this,e)||this;return n.type="opacity",n.names=["opacity"],n}return _(e,t),e}(F),z=N,V=function(t){function e(e){var n=t.call(this,e)||this;return n.names=["x","y"],n.type="position",n}return _(e,t),e.prototype.mapping=function(t,e){var n=this.scales,i=n[0],r=n[1];return Object(c["G"])(t)||Object(c["G"])(e)?[]:[Object(c["z"])(t)?t.map((function(t){return i.scale(t)})):i.scale(t),Object(c["z"])(e)?e.map((function(t){return r.scale(t)})):r.scale(e)]},e}(F),X=V,H=function(t){function e(e){var n=t.call(this,e)||this;return n.type="shape",n.names=["shape"],n}return _(e,t),e.prototype.getLinearValue=function(t){var e=Math.round((this.values.length-1)*t);return this.values[e]},e}(F),W=H,q=function(t){function e(e){var n=t.call(this,e)||this;return n.type="size",n.names=["size"],n}return _(e,t),e}(F),U=q,$=n("f2fb"),Z={},Q=function(t){return Z[t.toLowerCase()]},J=function(t,e){if(Q(t))throw new Error("Attribute type '"+t+"' existed.");Z[t.toLowerCase()]=e};J("Color",Y),J("Opacity",z),J("Position",X),J("Shape",W),J("Size",U);
/*! *****************************************************************************
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 K=function(t,e){return K=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])},K(t,e)};function tt(t,e){function n(){this.constructor=t}K(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function et(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i}var nt=n("e897"),it=function(){function t(t){this.type="coordinate",this.isRect=!1,this.isHelix=!1,this.isPolar=!1,this.isReflectX=!1,this.isReflectY=!1;var e=t.start,n=t.end,i=t.matrix,r=void 0===i?[1,0,0,0,1,0,0,0,1]:i,a=t.isTransposed,o=void 0!==a&&a;this.start=e,this.end=n,this.matrix=r,this.originalMatrix=et(r),this.isTransposed=o}return t.prototype.initial=function(){this.center={x:(this.start.x+this.end.x)/2,y:(this.start.y+this.end.y)/2},this.width=Math.abs(this.end.x-this.start.x),this.height=Math.abs(this.end.y-this.start.y)},t.prototype.update=function(t){Object(c["b"])(this,t),this.initial()},t.prototype.convertDim=function(t,e){var n,i=this[e],r=i.start,a=i.end;return this.isReflect(e)&&(n=[a,r],r=n[0],a=n[1]),r+t*(a-r)},t.prototype.invertDim=function(t,e){var n,i=this[e],r=i.start,a=i.end;return this.isReflect(e)&&(n=[a,r],r=n[0],a=n[1]),(t-r)/(a-r)},t.prototype.applyMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=[t,e,n];return nt["d"].transformMat3(r,r,i),r},t.prototype.invertMatrix=function(t,e,n){void 0===n&&(n=0);var i=this.matrix,r=nt["b"].invert([0,0,0,0,0,0,0,0,0],i),a=[t,e,n];return r&&nt["d"].transformMat3(a,a,r),a},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,i=e.y,r=this.applyMatrix(n,i,1);return{x:r[0],y:r[1]}},t.prototype.invert=function(t){var e=this.invertMatrix(t.x,t.y,1);return this.invertPoint({x:e[0],y:e[1]})},t.prototype.rotate=function(t){var e=this.matrix,n=this.center;return nt["a"].leftTranslate(e,e,[-n.x,-n.y]),nt["a"].leftRotate(e,e,t),nt["a"].leftTranslate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){return"x"===t?this.isReflectX=!this.isReflectX:this.isReflectY=!this.isReflectY,this},t.prototype.scale=function(t,e){var n=this.matrix,i=this.center;return nt["a"].leftTranslate(n,n,[-i.x,-i.y]),nt["a"].leftScale(n,n,[t,e]),nt["a"].leftTranslate(n,n,[i.x,i.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return nt["a"].leftTranslate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.getRadius=function(){return this.radius},t.prototype.isReflect=function(t){return"x"===t?this.isReflectX:this.isReflectY},t.prototype.resetMatrix=function(t){this.matrix=t||et(this.originalMatrix)},t}(),rt=it,at=function(t){function e(e){var n=t.call(this,e)||this;return n.isRect=!0,n.type="cartesian",n.initial(),n}return tt(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=this.start,n=this.end;this.x={start:e.x,end:n.x},this.y={start:e.y,end:n.y}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;return this.isTransposed&&(e=[i,n],n=e[0],i=e[1]),{x:this.convertDim(n,"x"),y:this.convertDim(i,"y")}},e.prototype.invertPoint=function(t){var e,n=this.invertDim(t.x,"x"),i=this.invertDim(t.y,"y");return this.isTransposed&&(e=[i,n],n=e[0],i=e[1]),{x:n,y:i}},e}(rt),ot=at,st=function(t){function e(e){var n=t.call(this,e)||this;n.isHelix=!0,n.type="helix";var i=e.startAngle,r=void 0===i?1.25*Math.PI:i,a=e.endAngle,o=void 0===a?7.25*Math.PI:a,s=e.innerRadius,l=void 0===s?0:s,c=e.radius;return n.startAngle=r,n.endAngle=o,n.innerRadius=l,n.radius=c,n.initial(),n}return tt(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);var e=(this.endAngle-this.startAngle)/(2*Math.PI)+1,n=Math.min(this.width,this.height)/2;this.radius&&this.radius>=0&&this.radius<=1&&(n*=this.radius),this.d=Math.floor(n*(1-this.innerRadius)/e),this.a=this.d/(2*Math.PI),this.x={start:this.startAngle,end:this.endAngle},this.y={start:this.innerRadius*n,end:this.innerRadius*n+.99*this.d}},e.prototype.convertPoint=function(t){var e,n=t.x,i=t.y;this.isTransposed&&(e=[i,n],n=e[0],i=e[1]);var r=this.convertDim(n,"x"),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=nt["c"].subtract([0,0],[t.x,t.y],[this.center.x,this.center.y]),r=nt["a"].angleTo(i,[1,0],!0),a=r*this.a;nt["c"].length(i)<a&&(a=nt["c"].length(i));var o=Math.floor((nt["c"].length(i)-a)/n);r=2*o*Math.PI+r;var s=this.a*r,l=nt["c"].length(i)-s;l=Object(c["J"])(l,0)?0:l;var u=this.invertDim(r,"x"),h=this.invertDim(l,"y");return u=Object(c["J"])(u,0)?0:u,h=Object(c["J"])(h,0)?0:h,this.isTransposed&&(e=[h,u],u=e[0],h=e[1]),{x:u,y:h}},e}(rt),lt=st,ct=function(t){function e(e){var n=t.call(this,e)||this;n.isPolar=!0,n.type="polar";var i=e.startAngle,r=void 0===i?-Math.PI/2:i,a=e.endAngle,o=void 0===a?3*Math.PI/2:a,s=e.innerRadius,l=void 0===s?0:s,c=e.radius;return n.startAngle=r,n.endAngle=o,n.innerRadius=l,n.radius=c,n.initial(),n}return tt(e,t),e.prototype.initial=function(){t.prototype.initial.call(this);while(this.endAngle<this.startAngle)this.endAngle+=2*Math.PI;var e,n=this.getOneBox(),i=n.maxX-n.minX,r=n.maxY-n.minY,a=Math.abs(n.minX)/i,o=Math.abs(n.minY)/r;this.height/r>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=this.getCenter(),n=[t.x-e.x,t.y-e.y],i=[1,0,0,0,1,0,0,0,1];nt["a"].leftRotate(i,i,this.startAngle);var r=[1,0,0];nt["d"].transformMat3(r,r,i);var a=[r[0],r[1]],o=nt["a"].angleTo(a,n,this.endAngle<this.startAngle);Object(c["J"])(o,2*Math.PI)&&(o=0);var s=nt["c"].length(n),l=o/(this.endAngle-this.startAngle);l=this.endAngle-this.startAngle>0?l:-l;var u=this.invertDim(s,"y"),h={x:0,y:0};return h.x=this.isTransposed?u:l,h.y=this.isTransposed?l:u,h},e.prototype.getCenter=function(){return this.circleCenter},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(Math.abs(e-t)>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],i=[0,Math.sin(t),Math.sin(e)],r=Math.min(t,e);r<Math.max(t,e);r+=Math.PI/18)n.push(Math.cos(r)),i.push(Math.sin(r));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,i),maxY:Math.max.apply(Math,i)}},e}(rt),ut=ct,ht={},pt=function(t){return ht[t.toLowerCase()]},ft=function(t,e){ht[t.toLowerCase()]=e};ft("rect",ot),ft("cartesian",ot),ft("polar",ut),ft("helix",lt);var dt=n("d7b4"),gt=dt["Axis"].Line,vt=dt["Axis"].Circle,mt=dt["Grid"].Line,yt=dt["Grid"].Circle,bt=dt["Legend"].Category,xt=dt["Legend"].Continuous,Ot=dt["Tooltip"].Html;function jt(t){if(Object(c["D"])(t))return null;var e=t[0].x,n=t[0].x,i=t[0].y,r=t[0].y;return Object(c["j"])(t,(function(t){e=e>t.x?t.x:e,n=n<t.x?t.x:n,i=i>t.y?t.y:i,r=r<t.y?t.y:r})),{minX:e,maxX:n,minY:i,maxY:r,centerX:(e+n)/2,centerY:(i+r)/2}}function wt(t,e,n,i){return{x:t+n*Math.cos(i),y:e+n*Math.sin(i)}}function Ct(t,e,n,i,r,a){void 0===a&&(a=0);var o=wt(t,e,n,i),s=wt(t,e,n,r),l=wt(t,e,a,i),c=wt(t,e,a,r);if(r-i===2*Math.PI){var u=wt(t,e,n,i+Math.PI),h=wt(t,e,a,i+Math.PI),p=[["M",o.x,o.y],["A",n,n,0,1,1,u.x,u.y],["A",n,n,0,1,1,s.x,s.y],["M",l.x,l.y]];return a&&(p.push(["A",a,a,0,1,0,h.x,h.y]),p.push(["A",a,a,0,1,0,c.x,c.y])),p.push(["M",o.x,o.y]),p.push(["Z"]),p}var f=r-i<=Math.PI?0:1,d=[["M",o.x,o.y],["A",n,n,0,f,1,s.x,s.y],["L",c.x,c.y]];return a&&d.push(["A",a,a,0,f,0,l.x,l.y]),d.push(["L",o.x,o.y]),d.push(["Z"]),d}function Mt(t,e,n,i,r){var a=wt(t,e,n,i),o=wt(t,e,n,r);if(Object(c["J"])(r-i,2*Math.PI)){var s=wt(t,e,n,i+Math.PI);return[["M",a.x,a.y],["A",n,n,0,1,1,s.x,s.y],["A",n,n,0,1,1,a.x,a.y],["A",n,n,0,1,0,s.x,s.y],["A",n,n,0,1,0,a.x,a.y],["Z"]]}var l=r-i<=Math.PI?0:1;return[["M",a.x,a.y],["A",n,n,0,l,1,o.x,o.y]]}function St(t,e){var n,i,r=t.points,a=jt(r),o=e.startAngle,s=e.endAngle,l=s-o;return e.isTransposed?(n=a.maxY*l,i=a.minY*l):(n=a.maxX*l,i=a.minX*l),n+=o,i+=o,{startAngle:i,endAngle:n}}function It(t,e){if(Object(c["I"])(t)&&Object(c["I"])(e))return[t,e];var n,i,r=-1,a=0,o=0,s=t.length-1,l=0;while(++r<t.length)n=s,s=r,l+=i=t[n]*e[s]-t[s]*e[n],a+=(t[n]+t[s])*i,o+=(e[n]+e[s])*i;return l*=3,[a/l,o/l]}function kt(t,e){var n=t.attr(),i=e.attr();return Object(c["j"])(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i}function Tt(t,e,n){var i=Math.min(e,n),r=Math.max(e,n);return t>=i&&t<=r}function At(t,e,n){if(Object(c["M"])(t))return t.padEnd(e,n);if(Object(c["z"])(t)){var i=t.length;if(i<e)for(var r=e-i,a=0;a<r;a++)t.push(n)}return t}function Lt(t,e){return e.forEach((function(e){delete t[e]})),t}function Pt(t,e,n){void 0===e&&(e=[]),void 0===n&&(n={});for(var i=0,r=t;i<r.length;i++){var a=r[i];n[a]||(e.push(a),n[a]=!0)}return e}var Bt=function(){function t(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),this.x=t,this.y=e,this.height=i,this.width=n}return t.fromRange=function(e,n,i,r){return new t(e,n,i-e,r-n)},t.fromObject=function(e){return new t(e.minX,e.minY,e.width,e.height)},Object.defineProperty(t.prototype,"minX",{get:function(){return this.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.x+this.width},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.y+this.height},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tl",{get:function(){return{x:this.x,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tr",{get:function(){return{x:this.maxX,y:this.y}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bl",{get:function(){return{x:this.x,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"br",{get:function(){return{x:this.maxX,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return{x:this.x+this.width/2,y:this.minY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return{x:this.maxX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return{x:this.x+this.width/2,y:this.maxY}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"left",{get:function(){return{x:this.minX,y:this.y+this.height/2}},enumerable:!1,configurable:!0}),t.prototype.isEqual=function(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height},t.prototype.contains=function(t){return t.minX>=this.minX&&t.maxX<=this.maxX&&t.minY>=this.minY&&t.maxY<=this.maxY},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.add=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(c["j"])(t,(function(t){n.x=Math.min(t.x,n.x),n.y=Math.min(t.y,n.y),n.width=Math.max(t.maxX,n.maxX)-n.x,n.height=Math.max(t.maxY,n.maxY)-n.y})),n},t.prototype.merge=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.clone();return Object(c["j"])(t,(function(t){n.x=Math.max(t.x,n.x),n.y=Math.max(t.y,n.y),n.width=Math.min(t.maxX,n.maxX)-n.x,n.height=Math.min(t.maxY,n.maxY)-n.y})),n},t.prototype.cut=function(e,n){var i=e.width,a=e.height;switch(n){case r.TOP:case r.TOP_LEFT:case r.TOP_RIGHT:return t.fromRange(this.minX,this.minY+a,this.maxX,this.maxY);case r.RIGHT:case r.RIGHT_TOP:case r.RIGHT_BOTTOM:return t.fromRange(this.minX,this.minY,this.maxX-i,this.maxY);case r.BOTTOM:case r.BOTTOM_LEFT:case r.BOTTOM_RIGHT:return t.fromRange(this.minX,this.minY,this.maxX,this.maxY-a);case r.LEFT:case r.LEFT_TOP:case r.LEFT_BOTTOM:return t.fromRange(this.minX+i,this.minY,this.maxX,this.maxY);default:return this}},t.prototype.shrink=function(e){var n=e[0],i=e[1],r=e[2],a=e[3];return new t(this.x+a,this.y+n,this.width-a-i,this.height-n-r)},t.prototype.expand=function(e){var n=e[0],i=e[1],r=e[2],a=e[3];return new t(this.x-a,this.y-n,this.width+a+i,this.height+n+r)},t.prototype.exceed=function(t){return[Math.max(-this.minY+t.minY,0),Math.max(this.maxX-t.maxX,0),Math.max(this.maxY-t.maxY,0),Math.max(-this.minX+t.minX,0)]},t.prototype.collide=function(t){return this.minX<t.maxX&&this.maxX>t.minX&&this.minY<t.maxY&&this.maxY>t.minY},t.prototype.size=function(){return this.width*this.height},t.prototype.isPointIn=function(t){return t.x>=this.minX&&t.x<=this.maxX&&t.y>=this.minY&&t.y<=this.maxY},t}();function Et(t){return[[t.minX,t.minY],[t.maxX,t.minY],[t.maxX,t.maxY],[t.minX,t.maxY]]}function Ft(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 Dt(t){if(t.isPolar){var e=t.startAngle,n=t.endAngle;return n-e===2*Math.PI}return!1}function _t(t,e){var n=t.getCenter();return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function Rt(t,e){var n=!1;if(t)if("theta"===t.type){var i=t.start,r=t.end;n=Tt(e.x,i.x,r.x)&&Tt(e.y,i.y,r.y)}else{var a=t.invert(e);n=Tt(a.x,0,1)&&Tt(a.y,0,1)}return n}function Gt(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)}function Yt(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,l=t.endAngle,c=t.getCenter(),u=t.getRadius();return{type:"path",startState:{path:Ct(c.x,c.y,u+e,s,s)},endState:function(t){var n=(l-s)*t+s,i=Ct(c.x,c.y,u+e,s,n);return{path:i}},attrs:{path:Ct(c.x,c.y,u+e,s,l)}}}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 Nt(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 Bt.fromRange(o-e,s-e,o+r+e,s+a+e)}var zt=/^(?:(?!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 Vt(t){var e="linear";return zt.test(t)?e="timeCat":Object(c["M"])(t)&&(e="cat"),e}function Xt(t,e,n){var i=e||[];if(Object(c["I"])(t)||Object(c["G"])(Object(c["n"])(i,t))&&Object(c["D"])(n)){var r=Object($["c"])("identity");return new r({field:t.toString(),values:[t]})}var a=Object(c["nb"])(i,t),o=Object(c["q"])(n,"type",Vt(a[0])),s=Object($["c"])(o);return new s(Object(l["a"])({field:t,values:a},n))}function Ht(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 Wt(t){return t.alias||t.field}function qt(t,e,n){var i,r=t.values,a=r.length;if(1===a)i=[.5,1];else{var o=1,s=0;Dt(e)?e.isTransposed?(o=Object(c["q"])(n,"widthRatio.multiplePie",1/1.3),s=1/a*o,i=[s/2,1-s/2]):i=[0,1-1/a]:(s=1/a/2,i=[s,1-s])}return i}function Ut(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 Zt(t,e){var n={start:{x:0,y:0},end:{x:0,y:0}};t.isRect?n=Ut(e):t.isPolar&&(n=$t(t));var i=n.start,r=n.end;return{start:t.convert(i),end:t.convert(r)}}function Qt(t){var e=t.start,n=t.end;return e.x===n.x}function Jt(t,e){var n=t.start,i=t.end,r=Qt(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 Kt(t,e){return Object(c["q"])(t,["components","axis",e],{})}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],l=a.y>i.y?nt["c"].angle(o,s):-1*nt["c"].angle(o,s),c=l+(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:l,endAngle:c}}function ee(t,e){return Object(c["A"])(t)?!1!==t&&{}:Object(c["q"])(t,[e])}function ne(t,e){return Object(c["q"])(t,"position",e)}function ie(t,e){return Object(c["q"])(e,["title","text"],Wt(t))}var re=function(){function t(t,e){this.destroyed=!1,this.facets=[],this.view=t,this.cfg=Object(c["h"])({},this.getDefaultCfg(),e)}return t.prototype.init=function(){this.container||(this.container=this.createContainer());var t=this.view.getData();this.facets=this.generateFacets(t)},t.prototype.render=function(){this.renderViews()},t.prototype.update=function(){},t.prototype.clear=function(){this.clearFacetViews()},t.prototype.destroy=function(){this.clear(),this.container&&(this.container.remove(!0),this.container=void 0),this.destroyed=!0,this.view=void 0,this.facets=[]},t.prototype.facetToView=function(t){var e=t.region,n=t.data,i=t.padding,r=void 0===i?this.cfg.padding:i,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(c["j"])(this.facets,(function(e){e.view&&(t.view.removeView(e.view),e.view=void 0)}))},t.prototype.getFieldValues=function(t,e){var n=[],i={};return Object(c["j"])(t,(function(t){var r=t[e];Object(c["G"])(r)||i[r]||(n.push(r),i[r]=!0)})),n},t.prototype.getRegion=function(t,e,n,i){var r=1/(0===e?1:e),a=1/(0===t?1:t),o={x:r*n,y:a*i},s={x:r*(n+1),y:a*(i+1)};return{start:o,end:s}},t.prototype.getDefaultCfg=function(){return{eachView:void 0,showTitle:!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(c["q"])(i,"type","rect");if("rect"===a&&r.length){Object(c["G"])(n.axes)&&(n.axes={});var o=n.axes,s=r[0].getXYFields(),l=s[0],u=s[1],h=ee(o,l),p=ee(o,u);!1!==h&&(n.axes[l]=this.getXAxisOption(l,o,h,e)),!1!==p&&(n.axes[u]=this.getYAxisOption(u,o,p,e))}},t.prototype.getFacetDataFilter=function(t){return function(e){return Object(c["k"])(t,(function(t){var n=t.field,i=t.value;return!(!Object(c["G"])(i)&&n)||e[n]===i}))}},t}(),ae={},oe=function(t){return ae[Object(c["Q"])(t)]},se=function(t,e){ae[Object(c["Q"])(t)]=e},le=function(){function t(t,e){this.context=t,this.cfg=e,t.addAction(this)}return t.prototype.applyCfg=function(t){Object(c["b"])(this,t)},t.prototype.init=function(){this.applyCfg(this.cfg)},t.prototype.destroy=function(){this.context.removeAction(this),this.context=null},t}(),ce=le,ue=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(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}(ce),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,e,n){pe[t]={ActionClass:e,cfg:n}}function ge(t,e){var n=new he(e);return n.callback=t,n.name="callback",n}function ve(t,e){var n=[];if(t.length){n.push(["M",t[0].x,t[0].y]);for(var i=1,r=t.length;i<r;i+=1){var a=t[i];n.push(["L",a.x,a.y])}e&&n.push(["Z"])}return n}function me(t,e){for(var n=[t[0]],i=1,r=t.length;i<r;i+=2){var a=e.convert({x:t[i],y:t[i+1]});n.push(a.x,a.y)}return n}function ye(t,e){var n=e.isTransposed,i=t[1],r=t[6],a=t[7],o=e.convert({x:r,y:a}),s=n?0:1;return["A",i,i,0,0,s,o.x,o.y]}function be(t,e,n){var i=n.isTransposed,r=n.startAngle,a=n.endAngle,o="a"===t[0].toLowerCase()?{x:t[6],y:t[7]}:{x:t[1],y:t[2]},s={x:e[1],y:e[2]},l=[],c=i?"y":"x",u=Math.abs(s[c]-o[c])*(a-r),h=s[c]>=o[c]?1:0,p=u>Math.PI?1:0,f=n.convert(s),d=_t(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);l.push(["A",d,d,0,p,h,v.x,v.y]),l.push(["A",d,d,0,p,h,f.x,f.y])}else l.push(["A",d,d,0,p,h,f.x,f.y]);return l}function xe(t){Object(c["j"])(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 Oe=function(t,e,n,i){var r,a,o,s,l=[],c=!!i;if(c){o=[1/0,1/0],s=[-1/0,-1/0];for(var u=0,h=t.length;u<h;u++){var p=t[u];o=nt["c"].min([0,0],o,p),s=nt["c"].max([0,0],s,p)}o=nt["c"].min([0,0],o,i[0]),s=nt["c"].max([0,0],s,i[1])}u=0;for(var f=t.length;u<f;u++){p=t[u];if(n)r=t[u?u-1:f-1],a=t[(u+1)%f];else{if(0===u||u===f-1){l.push(p);continue}r=t[u-1],a=t[u+1]}var d=[0,0];d=nt["c"].sub(d,a,r),d=nt["c"].scale(d,d,e);var g=nt["c"].distance(p,r),v=nt["c"].distance(p,a),m=g+v;0!==m&&(g/=m,v/=m);var y=nt["c"].scale([0,0],d,-g),b=nt["c"].scale([0,0],d,v),x=nt["c"].add([0,0],p,y),O=nt["c"].add([0,0],p,b);c&&(x=nt["c"].max([0,0],x,o),x=nt["c"].min([0,0],x,s),O=nt["c"].max([0,0],O,o),O=nt["c"].min([0,0],O,s)),l.push(x),l.push(O)}return n&&l.push(l.shift()),l};function je(t,e,n){for(var i=!!e,r=[],a=0,o=t.length;a<o;a+=2)r.push([t[a],t[a+1]]);var s,l,c,u=Oe(r,.4,i,n),h=r.length,p=[];for(a=0;a<h-1;a++)s=u[2*a],l=u[2*a+1],c=r[a+1],p.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]]);return i&&(s=u[h],l=u[h+1],c=r[0],p.push(["C",s[0],s[1],l[0],l[1],c[0],c[1]])),p}function we(t,e){return ve(t,e)}function Ce(t,e,n){var i=[],r=t[0],a=null;if(t.length<=2)return we(t,e);for(var o=0,s=t.length;o<s;o++){var l=t[o];a&&a.x===l.x&&a.y===l.y||(i.push(l.x),i.push(l.y),a=l)}var c=n||[[0,0],[1,1]],u=je(i,e,c);return u.unshift(["M",r.x,r.y]),u}function Me(t,e){var n=[];return Object(c["j"])(e,(function(e){var i=e[0];switch(i.toLowerCase()){case"m":case"l":case"c":n.push(me(e,t));break;case"a":n.push(ye(e,t));break;case"z":default:n.push(e);break}})),n}function Se(t,e){var n,i,r,a,o=[];return Object(c["j"])(e,(function(s,l){var c=s[0];switch(c.toLowerCase()){case"m":case"c":case"q":o.push(me(s,t));break;case"l":n=e[l-1],i=s,r=t.isTransposed,a=r?n[n.length-2]===i[1]:n[n.length-1]===i[2],a?o=o.concat(be(n,i,t)):o.push(me(s,t));break;case"a":o.push(ye(s,t));break;case"z":default:o.push(s);break}})),xe(o),o}var Ie=n("2ef1");function ke(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?r:null}function Te(t,e){var n=t.event,i=n.target,r=i.getCanvasBBox();return r.width>=e||r.height>=e?i.attr("path"):null}function Ae(t){var e,n=t.event,i=n.target;return i&&(e=i.get("element")),e}function Le(t){var e,n=t.event,i=n.target;return i&&(e=i.get("delegateObject")),e}function Pe(t){var e=t.event.gEvent;return!(e&&e.fromShape&&e.toShape&&e.fromShape.get("element")===e.toShape.get("element"))}function Be(t){return t&&t.component&&t.component.isList()}function Ee(t){return t&&t.component&&t.component.isSlider()}function Fe(t){var e=t.event,n=e.target;return n&&"mask"===n.get("name")}function De(t,e){var n=t.event.target;if("path"===n.get("type")){var i=Te(t,e);if(!i)return;return He(t.view,i)}var r=ke(t,e);return r?Ve(t.view,r):null}function _e(t,e,n){var i=ke(t,n);if(!i)return null;var r=t.view,a=Je(r,e,{x:i.x,y:i.y}),o=Je(r,e,{x:i.maxX,y:i.maxY}),s={minX:a.x,minY:a.y,maxX:o.x,maxY:o.y};return Ve(e,s)}function Re(t){var e=t.geometries,n=[];return Object(c["j"])(e,(function(t){var e=t.elements;n=n.concat(e)})),t.views&&t.views.length&&Object(c["j"])(t.views,(function(t){n=n.concat(Re(t))})),n}function Ge(t,e,n){var i=Re(t);return i.filter((function(t){return Ne(t,e)===n}))}function Ye(t,e){var n=t.geometries,i=[];return Object(c["j"])(n,(function(t){var n=t.getElementsBy((function(t){return t.hasState(e)}));i=i.concat(n)})),i}function Ne(t,e){var n,i=t.getModel(),r=i.data;return n=Object(c["z"])(r)?r[0][e]:r[e],n}function ze(t,e){return!(e.minX>t.maxX||e.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}function Ve(t,e){var n=Re(t),i=[];return Object(c["j"])(n,(function(t){var n=t.shape,r=n.getCanvasBBox();ze(e,r)&&i.push(t)})),i}function Xe(t){var e=[];return Object(c["j"])(t,(function(t){var n=t[0];if("A"!==n)for(var i=1;i<t.length;i+=2)e.push([t[i],t[i+1]]);else{var r=t.length;e.push([t[r-2],t[r-1]])}})),e}function He(t,e){var n=Re(t),i=Xe(e),r=n.filter((function(t){var e,n=t.shape;if("path"===n.get("type"))e=Xe(n.attr("path"));else{var r=n.getCanvasBBox();e=Et(r)}return Object(Ie["b"])(i,e)}));return r}function We(t){return t.getComponents().map((function(t){return t.component}))}function qe(t,e){var n=e.x-t.x,i=e.y-t.y;return Math.sqrt(n*n+i*i)}function Ue(t,e){if(t.length<=2)return we(t,!1);var n=t[0],i=[];Object(c["j"])(t,(function(t){i.push(t.x),i.push(t.y)}));var r=je(i,e,null);return r.unshift(["M",n.x,n.y]),r}function $e(t,e){return t.x<=e.x&&t.maxX>=e.x&&t.y<=e.y&&t.maxY>e.y}function Ze(t){var e=t.parent,n=null;return e&&(n=e.views.filter((function(e){return e!==t}))),n}function Qe(t,e){var n=t.getCoordinate();return n.invert(e)}function Je(t,e,n){var i=Qe(t,n);return e.getCoordinate().convert(i)}function Ke(t,e,n,i){var r=!1;return Object(c["j"])(t,(function(t){if(t[n]===e[n]&&t[i]===e[i])return r=!0,!1})),r}function tn(t,e){var n=t.getScaleByField(e);return!n&&t.views&&Object(c["j"])(t.views,(function(t){if(n=tn(t,e),n)return!1})),n}var en=function(){function t(t){this.actions=[],this.event=null,this.cacheMap={},this.view=t}return t.prototype.cache=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(1===t.length)return this.cacheMap[t[0]];2===t.length&&(this.cacheMap[t[0]]=t[1])},t.prototype.getAction=function(t){return this.actions.find((function(e){return e.name===t}))},t.prototype.addAction=function(t){this.actions.push(t)},t.prototype.removeAction=function(t){var e=this.actions,n=this.actions.indexOf(t);n>=0&&e.splice(n,1)},t.prototype.getCurrentPoint=function(){var t=this.event;if(t){if(t.target instanceof HTMLElement){var e=this.view.getCanvas(),n=e.getPointByClient(t.clientX,t.clientY);return n}return{x:t.x,y:t.y}}return null},t.prototype.getCurrentShape=function(){return Object(c["q"])(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=We(this.view),n=this.getCurrentPoint();return!!n&&!!e.find((function(e){var i=e.getBBox();return t?e.get("name")===t&&$e(i,n):$e(i,n)}))},t.prototype.destroy=function(){this.view=null,this.event=null,Object(c["j"])(this.actions.slice(),(function(t){t.destroy()})),this.actions=null,this.cacheMap=null},t}(),nn=en,rn=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}(),an=rn;function on(t,e){var n=t.split(":"),i=n[0],r=e.getAction(i)||fe(i,e);if(!r)throw new Error("There is no action named "+i);var a=n[1];return{action:r,methodName:a}}function sn(t){var e=t.action,n=t.methodName;if(!e[n])throw new Error("Action("+e.name+") doesn't have a method called "+n);e[n]()}var ln={START:"start",SHOW_ENABLE:"showEnable",END:"end",ROLLBACK:"rollback",PROCESSING:"processing"},cn=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(l["b"])(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(c["j"])(this.steps,(function(e,n){Object(c["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.bindEvent(e.trigger,i)}))}))},e.prototype.clearEvents=function(){var t=this;Object(c["j"])(this.steps,(function(e,n){Object(c["j"])(e,(function(e){var i=t.getActionCallback(n,e);i&&t.offEvent(e.trigger,i)}))}))},e.prototype.initContext=function(){var t=this.view,e=new nn(t);this.context=e;var n=this.steps;Object(c["j"])(n,(function(t){Object(c["j"])(t,(function(t){if(Object(c["F"])(t.action))t.actionObject={action:ge(t.action,e),methodName:"execute"};else if(Object(c["M"])(t.action))t.actionObject=on(t.action,e);else if(Object(c["z"])(t.action)){var n=t.action;t.actionObject=[],Object(c["j"])(n,(function(n){t.actionObject.push(on(n,e))}))}}))}))},e.prototype.isAllowStep=function(t){var e=this.currentStepName,n=this.steps;if(e===t)return!0;if(t===ln.SHOW_ENABLE)return!0;if(t===ln.PROCESSING)return e===ln.START;if(t===ln.START)return e!==ln.PROCESSING;if(t===ln.END)return e===ln.PROCESSING||e===ln.START;if(t===ln.ROLLBACK){if(n[ln.END])return e===ln.END;if(e===ln.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!==ln.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 s=function(r){i.event=r,n.isAllowExecute(t,e)?(Object(c["z"])(a)?Object(c["j"])(a,(function(t){i.event=r,sn(t)})):(i.event=r,sn(a)),n.afterExecute(t,e),e.callback&&(i.event=r,e.callback(i))):i.event=null};e.debounce?r[o]=Object(c["g"])(s,e.debounce.wait,e.debounce.immediate):e.throttle?r[o]=Object(c["fb"])(s,e.throttle.wait,{leading:e.throttle.leading,trailing:e.throttle.trailing}):r[o]=s}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}(an),un=cn,hn={};function pn(t){return hn[Object(c["Q"])(t)]}function fn(t,e){hn[Object(c["Q"])(t)]=e}function dn(t,e,n){var i=pn(t);if(!i)return null;if(Object(c["L"])(i)){var r=Object(c["U"])(Object(c["e"])(i),n);return new un(e,r)}var a=i;return new a(e,n)}function gn(t){return{title:{autoRotate:!0,position:"center",spacing:t.axisTitleSpacing,style:{fill:t.axisTitleTextFillColor,fontSize:t.axisTitleTextFontSize,lineHeight:t.axisTitleTextLineHeight,textBaseline:"middle",fontFamily:t.fontFamily}},label:{autoRotate:!1,autoEllipsis:!1,autoHide:{type:"equidistance",cfg:{minGap:6}},offset:t.axisLabelOffset,style:{fill:t.axisLabelFillColor,fontSize:t.axisLabelFontSize,lineHeight:t.axisLabelLineHeight,fontFamily:t.fontFamily}},line:{style:{lineWidth:t.axisLineBorder,stroke:t.axisLineBorderColor}},grid:{line:{type:"line",style:{stroke:t.axisGridBorderColor,lineWidth:t.axisGridBorder,lineDash:t.axisGridLineDash}},alignTick:!0,animate:!0},tickLine:{style:{lineWidth:t.axisTickLineBorder,stroke:t.axisTickLineBorderColor},alignTick:!0,length:t.axisTickLineLength},subTickLine:null,animate:!0}}function vn(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"}},flipPage:!0,animate:!1,maxItemWidth:200,itemSpacing:t.legendItemSpacing,itemMarginBottom:t.legendItemMarginBottom,padding:t.legendPadding}}function mn(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=gn(t),r=vn(t);return{background:t.backgroundColor,defaultColor:t.brandColor,padding:"auto",fontFamily:t.fontFamily,columnWidthRatio:.5,maxColumnWidth:null,minColumnWidth:null,roseWidthRatio:.9999999,multiplePieWidthRatio:1/1.3,colors10:t.paletteQualitative10,colors20:t.paletteQualitative20,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=St(t.getModel(),e),r=i.startAngle,a=i.endAngle,o=(r+a)/2,s=7.5,l=s*Math.cos(o),c=s*Math.sin(o);return{matrix:nt["a"].transform(null,[["t",l,c]])}}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(l["a"])(Object(l["a"])({},n.line.default),{lineCap:null,lineDash:[1,1]})},active:{style:Object(l["a"])(Object(l["a"])({},n.line.active),{lineCap:null,lineDash:[1,1]})},inactive:{style:Object(l["a"])(Object(l["a"])({},n.line.inactive),{lineCap:null,lineDash:[1,1]})},selected:{style:Object(l["a"])(Object(l["a"])({},n.line.selected),{lineCap:null,lineDash:[1,1]})}},dash:{default:{style:Object(l["a"])(Object(l["a"])({},n.line.default),{lineCap:null,lineDash:[5.5,1]})},active:{style:Object(l["a"])(Object(l["a"])({},n.line.active),{lineCap:null,lineDash:[5.5,1]})},inactive:{style:Object(l["a"])(Object(l["a"])({},n.line.inactive),{lineCap:null,lineDash:[5.5,1]})},selected:{style:Object(l["a"])(Object(l["a"])({},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}}}},components:{axis:{common:i,top:Object(c["h"])({},i,{position:"top",grid:null,title:null,verticalLimitLength:.5}),bottom:Object(c["h"])({},i,{position:"bottom",grid:null,title:null,verticalLimitLength:.5}),left:Object(c["h"])({},i,{position:"left",title:null,line:null,tickLine:null,verticalLimitLength:1/3}),right:Object(c["h"])({},i,{position:"right",title:null,line:null,tickLine:null,verticalLimitLength:1/3}),circle:Object(c["h"])({},i,{title:null,grid:Object(c["h"])({},i.grid,{line:{type:"line"}})}),radius:Object(c["h"])({},i,{title:null,grid:Object(c["h"])({},i.grid,{line:{type:"circle"}})})},legend:{common:r,right:Object(c["h"])({},r,{layout:"vertical",padding:t.legendVerticalPadding}),left:Object(c["h"])({},r,{layout:"vertical",padding:t.legendVerticalPadding}),top:Object(c["h"])({},r,{layout:"horizontal",padding:t.legendHorizontalPadding}),bottom:Object(c["h"])({},r,{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[""+dt["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:t.tooltipContainerBorderRadius+"px",color:t.tooltipTextFillColor,fontSize:t.tooltipTextFontSize+"px",fontFamily:t.fontFamily,lineHeight:t.tooltipTextLineHeight+"px",padding:"0 12px 0 12px"},e[""+dt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={marginBottom:"12px",marginTop:"12px"},e[""+dt["TOOLTIP_CSS_CONST"].LIST_CLASS]={margin:0,listStyleType:"none",padding:0},e[""+dt["TOOLTIP_CSS_CONST"].LIST_ITEM_CLASS]={listStyleType:"none",padding:0,marginBottom:"12px",marginTop:"12px",marginLeft:0,marginRight:0},e[""+dt["TOOLTIP_CSS_CONST"].MARKER_CLASS]={width:"8px",height:"8px",borderRadius:"50%",display:"inline-block",marginRight:"8px"},e[""+dt["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]}},scrollbar:{common:{padding:[8,8,8,8]}}},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 yn={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},bn={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"],On=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#6F5EF9","#D3CEFD","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],jn=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"transparent":e,i=t.paletteQualitative10,r=void 0===i?xn:i,a=t.paletteQualitative20,o=void 0===a?On:a,s=t.paletteSemanticRed,l=void 0===s?"#F4664A":s,c=t.paletteSemanticGreen,u=void 0===c?"#30BF78":c,h=t.paletteSemanticYellow,p=void 0===h?"#FAAD14":h,f=t.fontFamily,d=void 0===f?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n    "Noto Color Emoji"':f,g=t.brandColor,v=void 0===g?r[0]:g;return{backgroundColor:n,brandColor:v,paletteQualitative10:r,paletteQualitative20:o,paletteSemanticRed:l,paletteSemanticGreen:u,paletteSemanticYellow:p,fontFamily:d,axisLineBorderColor:yn[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:yn[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:yn[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:yn[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:yn[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:yn[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:yn[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:v,legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:yn[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],sliderRailFillColor:yn[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:yn[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:yn[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:yn[25],annotationArcBorderColor:yn[15],annotationArcBorder:1,annotationLineBorderColor:yn[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:yn[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:yn[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:yn[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"rgb(255, 255, 255)",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 0px 10px #aeaeae",tooltipContainerBorderRadius:3,tooltipTextFillColor:yn[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:yn[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:bn[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:yn[65],overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:bn[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:yn[25],pointFillColor:v,pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:bn[100],pointBorderOpacity:1,pointActiveBorderColor:yn[100],pointSelectedBorder:2,pointSelectedBorderColor:yn[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:v,hollowPointBorderOpacity:.95,hollowPointFillColor:bn[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:yn[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:yn[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:v,lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:v,areaFillOpacity:.25,areaActiveFillColor:v,areaActiveFillOpacity:.5,areaSelectedFillColor:v,areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:v,hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:yn[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:yn[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:v,intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:yn[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:yn[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:v,hollowIntervalBorderOpacity:1,hollowIntervalFillColor:bn[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:yn[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:yn[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}};jn();function wn(t){var e=t.styleSheet,n=void 0===e?{}:e,i=Object(l["c"])(t,["styleSheet"]),r=jn(n);return Object(c["h"])({},mn(r),i)}var Cn=wn({}),Mn={default:Cn};function Sn(t){return Object(c["q"])(Mn,Object(c["Q"])(t),Mn.default)}function In(t,e){Mn[Object(c["Q"])(t)]=wn(e)}function kn(t,e,n){var i=n.translate(t),r=n.translate(e);return Object(c["J"])(i,r)}function Tn(t,e){var n=e.coordinate,i=e.getXScale(),r=i.range,a=r[r.length-1],o=r[0],s=n.invert(t),l=s.x;return n.isPolar&&l>(1+a)/2&&(l=o),i.translate(i.invert(l))}function An(t,e,n){var i=n.coordinate,r=n.getYScale(),a=r.field,o=i.invert(e),s=r.invert(o.y),l=Object(c["m"])(t,(function(t){var e=t[v];return e[a][0]<=s&&e[a][1]>=s}));return l||t[t.length-1]}var Ln=Object(c["T"])((function(t){if(t.isCategory)return 1;for(var e=t.values,n=e.length,i=t.translate(e[0]),r=i,a=0;a<n;a++){var o=e[a],s=t.translate(o);s<i&&(i=s),s>r&&(r=s)}return(r-i)/(n-1)}));function Pn(t,e,n){var i=n;if(!n){var r=e.getAttribute("position"),a=r.getFields();i=a[0]}var o=e.scales;return o[i]?o[i].getText(t[i]):Object(c["v"])(t,i)?t[i]:i}function Bn(t){var e=Object(c["mb"])(t.attributes);return Object(c["l"])(e,(function(t){return Object(c["f"])(g,t.type)}))}function En(t){for(var e,n=Bn(t),i=0,r=n;i<r.length;i++){var a=r[i],o=a.getScale(a.type);if(o&&o.isLinear){e=o;break}}var s=t.getXScale(),l=t.getYScale();return e||l||s}function Fn(t,e){var n=e.field,i=t[n];if(Object(c["z"])(i)){var r=i.map((function(t){return e.getText(t)}));return r.join("-")}return e.getText(i)}function Dn(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=En(e);return Wt(a)}function _n(t,e,n){if(0===e.length)return null;var i=n.type,r=n.getXScale(),a=n.getYScale(),o=r.field,s=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),d=1/0,g=0;g<e.length;g++){var m=e[g],y=m[v],b=Math.pow(y[o]-p,2)+Math.pow(y[s]-f,2);b<d&&(d=b,l=m)}return l}var x=e[0],O=e[e.length-1],j=Tn(t,n),w=x[v][o],C=x[v][s],M=O[v][o],S=a.isLinear&&Object(c["z"])(C);if(Object(c["z"])(w)){for(g=0;g<e.length;g++){var I=e[g];y=I[v];if(r.translate(y[o][0])<=j&&r.translate(y[o][1])>=j){if(!S){l=I;break}Object(c["z"])(l)||(l=[]),l.push(I)}}Object(c["z"])(l)&&(l=An(l,t,n))}else{var k=void 0;if(r.isLinear||"timeCat"===r.type){if((j>r.translate(M)||j<r.translate(w))&&(j>r.max||j<r.min))return null;var T=0,A=e.length-1,L=void 0;while(T<=A){L=Math.floor((T+A)/2);var P=e[L][v][o];if(kn(P,j,r))return e[L];r.translate(P)<=r.translate(j)?(T=L+1,O=e[L],k=e[L+1]):(0===A&&(O=e[0]),A=L-1)}}else{for(g=0;g<e.length;g++){I=e[g],y=I[v];if(kn(y[o],j,r)){if(!S){l=I;break}Object(c["z"])(l)||(l=[]),l.push(I)}else r.translate(y[o])<=j&&(O=I,k=e[g+1])}Object(c["z"])(l)&&(l=An(l,t,n))}O&&k&&Math.abs(r.translate(O[v][o])-j)>Math.abs(r.translate(k[v][o])-j)&&(O=k)}var B=Ln(n.getXScale());return!l&&Math.abs(r.translate(O[v][o])-j)<=B/2&&(l=O),l}function Rn(t,e,n){void 0===n&&(n="");var i,r,a=t[v],o=Pn(a,e,n),s=e.tooltipOption,u=e.theme.defaultColor,h=[];function p(e,n){if(!Object(c["G"])(n)&&""!==n){var i={title:o,data:a,mappingData:t,name:e,value:n,color:t.color||u,marker:!0};h.push(i)}}if(Object(c["K"])(s)){var f=s.fields,d=s.callback;if(d){var g=f.map((function(e){return t[v][e]})),m=d.apply(void 0,g),y=Object(l["a"])({data:t[v],mappingData:t,title:o,color:t.color||u,marker:!0},m);h.push(y)}else for(var b=e.scales,x=0,O=f;x<O.length;x++){var j=O[x];if(!Object(c["G"])(a[j])){var w=b[j];i=Wt(w),r=w.getText(a[j]),p(i,r)}}}else{var C=En(e);Object(c["G"])(a[C.field])||(r=Fn(a,C),i=Dn(a,e),p(i,r))}return h}function Gn(t){return!Object(c["I"])(t)&&!Object(c["z"])(t)}function Yn(t){void 0===t&&(t=0);var e=Object(c["z"])(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(l["d"])(e,e);break;case 3:e=Object(l["d"])(e,[e[1]]);break;default:e=e.slice(0,4);break}return e}var Nn={};function zn(t,e){Nn[t]=e}function Vn(){return Object.keys(Nn)}function Xn(t){return Nn[t]}var Hn=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(c["db"])(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,o=Object(l["a"])({start:t,end:e},r),s=pt(a?"polar":i);return this.coordinate=new s(o),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(l["a"])({type:"rect",actions:[],cfg:{}},t)},t.prototype.execActions=function(t){var e=this,n=this.option.actions;Object(c["j"])(n,(function(n){var i,r=n[0],a=n.slice(1),o=!!Object(c["G"])(t)||t.includes(r);o&&(i=e.coordinate)[r].apply(i,a)}))},t}(),Wn=Hn,qn=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 L["Event"](n,{}),i)},Object.defineProperty(t.prototype,"target",{get:function(){return this.gEvent.target},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"event",{get:function(){return this.gEvent.originalEvent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"x",{get:function(){return this.gEvent.x},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.gEvent.y},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientX",{get:function(){return this.gEvent.clientX},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"clientY",{get:function(){return this.gEvent.clientY},enumerable:!1,configurable:!0}),t.prototype.toString=function(){return"[Event (type="+this.type+")]"},t.prototype.clone=function(){return new t(this.view,this.gEvent,this.data)},t}(),Un=qn;function $n(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 Zn=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,s={type:o.type};o.isCategory&&(s.values=o.values),r=Object(c["h"])(s,a.scaleDef,n)}var l=Xt(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,s=[];Object(c["j"])(i,(function(t){var e=n.getScale(t);o=Object(c["I"])(e.max)?Math.max(o,e.max):o,a=Object(c["I"])(e.min)?Math.min(a,e.min):a,Object(c["j"])(e.values,(function(t){s.includes(t)||s.push(t)}))})),Object(c["j"])(i,(function(i){var r=n.getScale(i);if(r.isContinuous)r.change({min:a,max:o,values:s});else if(r.isCategory){var l=r.range,u=n.getScaleMeta(i);s&&!Object(c["q"])(u,["scaleDef","range"])&&(l=qt(Object(c["h"])({},r,{values:s}),t,e)),r.change({values:s,range:l})}}))}))},t.prototype.cacheScale=function(t,e,n){var i=this.getScaleMeta(n);i&&i.scale.type===t.type?(Ht(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(c["P"])(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(c["q"])(n,["sync"]);return!0===r?i:!1===r?void 0:r},t.prototype.getScaleMeta=function(t){return this.scales.get(t)},t}(),Qn=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=t[0],n=t[1],i=t[2],r=t[3];return this.top=Math.max(this.top,e),this.right=Math.max(this.right,n),this.bottom=Math.max(this.bottom,i),this.left=Math.max(this.left,r),this},t.prototype.shrink=function(t){var e=t[0],n=t[1],i=t[2],r=t[3];return this.top+=e,this.right+=n,this.bottom+=i,this.left+=r,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(l["d"])([void 0],this.getPadding())))},t}();function Jn(t){var e=t.padding;if(!Gn(e))return new(Qn.bind.apply(Qn,Object(l["d"])([void 0],Yn(e))));var n=t.viewBBox,i=new Qn,r=[],o=[],s=[];return Object(c["j"])(t.getComponents(),(function(t){var e=t.type;e===a.AXIS?r.push(t):[a.LEGEND,a.SLIDER,a.SCROLLBAR].includes(e)?o.push(t):e!==a.GRID&&e!==a.TOOLTIP&&s.push(t)})),Object(c["j"])(r,(function(t){var e=t.component,r=e.getLayoutBBox(),a=new Bt(r.x,r.y,r.width,r.height),o=a.exceed(n);i.max(o)})),Object(c["j"])(o,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),a=e.get("padding"),o=new Bt(r.x,r.y,r.width,r.height).expand(a);i.inc(o,n)})),Object(c["j"])(s,(function(t){var e=t.component,n=t.direction,r=e.getLayoutBBox(),a=new Bt(r.x,r.y,r.width,r.height);i.inc(a,n)})),i}function Kn(t,e,n){var i=n.instance();e.forEach((function(t){t.autoPadding=i.max(t.autoPadding.getPadding())}))}var ti=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=Vn(),n.scalePool=new Zn,n.layoutFunc=$n,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(c["kb"])("view"):i,a=e.parent,o=e.canvas,s=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,m=e.options,y=e.limitInPlot,b=e.syncViewPadding;return n.parent=a,n.canvas=o,n.backgroundGroup=s,n.middleGroup=u,n.foregroundGroup=h,n.region=f,n.padding=d,n.appendPadding=g,n.options=Object(l["a"])(Object(l["a"])({},n.options),m),n.limitInPlot=y,n.id=r,n.syncViewPadding=b,n.themeObject=Object(c["K"])(v)?Object(c["h"])({},Sn("default"),wn(v)):Sn(v),n.init(),n}return Object(l["b"])(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){void 0===t&&(t=!1),this.emit(u.BEFORE_RENDER),this.paint(t),this.emit(u.AFTER_RENDER),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this;this.emit(u.BEFORE_CLEAR),this.filteredData=[],this.coordinateInstance=void 0,this.isDataChanged=!1,this.isCoordinateChanged=!1;for(var e=this.geometries,n=0;n<e.length;n++)e[n].clear(),e[n].container.remove(!0);this.geometries=[];var i=this.controllers;for(n=0;n<i.length;n++)"annotation"===i[n].name?i[n].clear(!0):i[n].clear();this.createdScaleKeys.forEach((function(e,n){t.getRootView().scalePool.deleteScale(n)})),this.createdScaleKeys.clear();var r=this.views;for(n=0;n<r.length;n++)r[n].clear();this.emit(u.AFTER_CLEAR)},e.prototype.destroy=function(){this.emit(u.BEFORE_DESTROY);var e=this.interactions;Object(c["j"])(e,(function(t){t&&t.destroy()})),this.clear();for(var n=this.controllers,i=0,r=n.length;i<r;i++){var a=n[i];a.destroy()}this.backgroundGroup.remove(!0),this.middleGroup.remove(!0),this.foregroundGroup.remove(!0),t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.geometries,i=0,r=n.length;i<r;i++){var a=n[i];a.changeVisible(e)}var o=this.controllers;for(i=0,r=o.length;i<r;i++){var s=o[i];s.changeVisible(e)}return this.foregroundGroup.set("visible",e),this.middleGroup.set("visible",e),this.backgroundGroup.set("visible",e),this.getCanvas().draw(),this},e.prototype.data=function(t){return Object(c["bb"])(this.options,"data",t),this.isDataChanged=!0,this},e.prototype.source=function(t){return this.data(t)},e.prototype.filter=function(t,e){return Object(c["F"])(e)?(Object(c["bb"])(this.options,["filters",t],e),this):(!e&&Object(c["q"])(this.options,["filters",t])&&delete this.options.filters[t],this)},e.prototype.axis=function(t,e){return Object(c["A"])(t)?Object(c["bb"])(this.options,["axes"],t):Object(c["bb"])(this.options,["axes",t],e),this},e.prototype.legend=function(t,e){return Object(c["A"])(t)?Object(c["bb"])(this.options,["legends"],t):Object(c["M"])(t)?Object(c["bb"])(this.options,["legends",t],e):Object(c["bb"])(this.options,["legends"],t),this},e.prototype.scale=function(t,e){var n=this;return Object(c["M"])(t)?Object(c["bb"])(this.options,["scales",t],e):Object(c["K"])(t)&&Object(c["j"])(t,(function(t,e){Object(c["bb"])(n.options,["scales",e],t)})),this},e.prototype.tooltip=function(t){return Object(c["bb"])(this.options,"tooltip",t),this},e.prototype.annotation=function(){return this.getController("annotation")},e.prototype.guide=function(){return this.annotation()},e.prototype.coordinate=function(t,e){return Object(c["M"])(t)?Object(c["bb"])(this.options,"coordinate",{type:t,cfg:e}):Object(c["bb"])(this.options,"coordinate",t),this.coordinateController.update(this.options.coordinate),this.coordinateController},e.prototype.coord=function(t,e){return this.coordinate(t,e)},e.prototype.facet=function(t,e){this.facetInstance&&this.facetInstance.destroy();var n=oe(t);if(!n)throw new Error("facet '"+t+"' is not exist!");return this.facetInstance=new n(this,Object(l["a"])(Object(l["a"])({},e),{type:t})),this},e.prototype.animate=function(t){return Object(c["bb"])(this.options,"animate",t),this},e.prototype.updateOptions=function(t){return this.clear(),Object(c["U"])(this.options,t),this.views.forEach((function(t){return t.destroy()})),this.views=[],this.initOptions(),this.coordinateBBox=this.viewBBox,this},e.prototype.option=function(t,n){if(e.prototype[t])throw new Error("Can't use built in variable name \""+t+'", please change another one.');return Object(c["bb"])(this.options,t,n),this},e.prototype.theme=function(t){return this.themeObject=Object(c["K"])(t)?Object(c["h"])({},this.themeObject,wn(t)):Sn(t),this},e.prototype.interaction=function(t,e){var n=this.interactions[t];n&&n.destroy();var i=dn(t,this,e);return i&&(i.init(),this.interactions[t]=i),this},e.prototype.removeInteraction=function(t){var e=this.interactions[t];e&&(e.destroy(),this.interactions[t]=void 0)},e.prototype.changeData=function(t){this.isDataChanged=!0,this.emit(u.BEFORE_CHANGE_DATA),this.data(t),this.paint(!0);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.changeData(t)}this.emit(u.AFTER_CHANGE_DATA)},e.prototype.createView=function(t){this.parent&&this.parent.parent;var n={data:this.options.data,scales:Object(c["e"])(this.options.scales),axes:Object(c["e"])(this.options.axes),coordinate:Object(c["e"])(this.coordinateController.getOption()),tooltip:Object(c["e"])(this.options.tooltip),legends:Object(c["e"])(this.options.legends),animate:this.options.animate,visible:this.visible},i=new e(Object(l["a"])(Object(l["a"])({parent:this,canvas:this.canvas,backgroundGroup:this.backgroundGroup.addGroup({zIndex:d.BG}),middleGroup:this.middleGroup.addGroup({zIndex:d.MID}),foregroundGroup:this.foregroundGroup.addGroup({zIndex:d.FORE}),theme:this.themeObject,padding:this.padding},t),{options:Object(l["a"])(Object(l["a"])({},n),Object(c["q"])(t,"options",{}))}));return this.views.push(i),i},e.prototype.view=function(t){return this.createView(t)},e.prototype.removeView=function(t){var e=Object(c["Z"])(this.views,(function(e){return e===t}))[0];return e&&e.destroy(),e},e.prototype.getCoordinate=function(){return this.coordinateInstance},e.prototype.getTheme=function(){return this.themeObject},e.prototype.getXScale=function(){var t=this.geometries[0];return t?t.getXScale():null},e.prototype.getYScales=function(){var t={};return this.geometries.map((function(e){var n=e.getYScale(),i=n.field;if(!t[i])return t[i]=!0,n}))},e.prototype.getScalesByDim=function(t){for(var e=this.geometries,n={},i=0,r=e.length;i<r;i++){var a=e[i],o="x"===t?a.getXScale():a.getYScale();o&&!n[o.field]&&(n[o.field]=o)}return n},e.prototype.getScaleByField=function(t,e){var n=e||this.getScaleKey(t);return this.getRootView().scalePool.getScale(n)},e.prototype.getOptions=function(){return this.options},e.prototype.getData=function(){return this.filteredData},e.prototype.getLayer=function(t){return t===i.BG?this.backgroundGroup:t===i.MID?this.middleGroup:(i.FORE,this.foregroundGroup)},e.prototype.isPointInPlot=function(t){return Rt(this.getCoordinate(),t)},e.prototype.getLegendAttributes=function(){return Object(c["p"])(this.geometries.map((function(t){return t.getGroupAttributes()})))},e.prototype.getGroupScales=function(){var t=this.geometries.map((function(t){return t.getGroupScales()}));return Pt(Object(c["p"])(t))},e.prototype.getCanvas=function(){return this.getRootView().canvas},e.prototype.getRootView=function(){var t=this;while(1){if(!t.parent)break;t=t.parent}return t},e.prototype.getXY=function(t){var e,n,i=this.getCoordinate(),r=this.getScalesByDim("x"),a=this.getScalesByDim("y");if(Object(c["j"])(t,(function(t,i){r[i]&&(e=r[i].scale(t)),a[i]&&(n=a[i].scale(t))})),!Object(c["G"])(e)&&!Object(c["G"])(n))return i.convert({x:e,y:n})},e.prototype.getController=function(t){return Object(c["m"])(this.controllers,(function(e){return e.name===t}))},e.prototype.showTooltip=function(t){var e=this.getController("tooltip");return e&&e.showTooltip(t),this},e.prototype.hideTooltip=function(){var t=this.getController("tooltip");return t&&t.hideTooltip(),this},e.prototype.lockTooltip=function(){var t=this.getController("tooltip");return t&&t.lockTooltip(),this},e.prototype.unlockTooltip=function(){var t=this.getController("tooltip");return t&&t.unlockTooltip(),this},e.prototype.isTooltipLocked=function(){var t=this.getController("tooltip");return t&&t.isTooltipLocked()},e.prototype.getTooltipItems=function(t){var e=this.getController("tooltip");return e?e.getTooltipItems(t):[]},e.prototype.getSnapRecords=function(t){for(var e=this.geometries,n=[],i=0,r=e.length;i<r;i++){var a=e[i],o=a.dataArray;a.sort(o);for(var s=void 0,l=0,c=o.length;l<c;l++){var u=o[l];s=_n(t,u,a),s&&n.push(s)}}var h=this.views;for(i=0,r=h.length;i<r;i++){var p=h[i],f=p.getSnapRecords(t);n=n.concat(f)}return n},e.prototype.getComponents=function(){for(var t=[],e=this.controllers,n=0,i=e.length;n<i;n++){var r=e[n];t=t.concat(r.getComponents())}return t},e.prototype.filterData=function(t){var e=this.options.filters;return 0===Object(c["cb"])(e)?t:Object(c["l"])(t,(function(t,n){var i=Object.keys(e);return i.every((function(i){var r=e[i];return r(t[i],t,n)}))}))},e.prototype.filterFieldData=function(t,e){var n=this.options.filters,i=Object(c["q"])(n,t);return Object(c["N"])(i)?e:e.filter((function(e,n){return i(e[t],e,n)}))},e.prototype.adjustCoordinate=function(){var t=this.getCoordinate(),e=t.start,n=t.end,i=this.coordinateBBox.bl,r=this.coordinateBBox.tr;Object(c["E"])(e,i)&&Object(c["E"])(n,r)?this.isCoordinateChanged=!1:(this.isCoordinateChanged=!0,this.coordinateInstance=this.coordinateController.adjust(i,r))},e.prototype.paint=function(t){this.renderDataRecursive(t),this.syncScale(),this.emit(u.BEFORE_PAINT),this.renderPaddingRecursive(t),this.renderLayoutRecursive(t),this.renderBackgroundStyleShape(),this.renderPaintRecursive(t),this.emit(u.AFTER_PAINT),this.isDataChanged=!1},e.prototype.renderBackgroundStyleShape=function(){if(!this.parent){var t=Object(c["q"])(this.themeObject,"background");if(t){this.backgroundStyleRectShape||(this.backgroundStyleRectShape=this.backgroundGroup.addShape("rect",{attrs:{},zIndex:-1,capture:!1}),this.backgroundStyleRectShape.toBack());var e=this.viewBBox,n=e.x,i=e.y,r=e.width,a=e.height;this.backgroundStyleRectShape.attr({fill:t,x:n,y:i,width:r,height:a})}else this.backgroundStyleRectShape&&(this.backgroundStyleRectShape.remove(!0),this.backgroundStyleRectShape=void 0)}},e.prototype.renderPaddingRecursive=function(t){this.calculateViewBBox(),this.adjustCoordinate(),this.initComponents(t),this.autoPadding=Jn(this).shrink(Yn(this.appendPadding)),this.coordinateBBox=this.viewBBox.shrink(this.autoPadding.getPadding()),this.adjustCoordinate();for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.renderPaddingRecursive(t)}},e.prototype.renderLayoutRecursive=function(t){var e=!0===this.syncViewPadding?Kn:Object(c["F"])(this.syncViewPadding)?this.syncViewPadding:void 0;e&&(e(this,this.views,Qn),this.views.forEach((function(t){t.coordinateBBox=t.viewBBox.shrink(t.autoPadding.getPadding()),t.adjustCoordinate()}))),this.doLayout();for(var n=this.views,i=0,r=n.length;i<r;i++){var a=n[i];a.renderLayoutRecursive(t)}},e.prototype.renderPaintRecursive=function(t){var e=this.middleGroup;if(this.limitInPlot){var n=Yt(this.coordinateInstance),i=n.type,r=n.attrs;e.setClip({type:i,attrs:r})}else e.setClip(void 0);this.paintGeometries(t),this.renderComponents(t);for(var a=this.views,o=0,s=a.length;o<s;o++){var l=a[o];l.renderPaintRecursive(t)}},e.prototype.createScale=function(t,e,n,i){var r=Object(c["q"])(this.options.scales,[t]),a=Object(l["a"])(Object(l["a"])({},r),n);return this.parent?this.parent.createScale(t,e,a,i):this.scalePool.createScale(t,e,a,i)},e.prototype.renderDataRecursive=function(t){this.doFilterData(),this.createCoordinate(),this.initGeometries(t),this.renderFacet(t);for(var e=this.views,n=0,i=e.length;n<i;n++){var r=e[n];r.renderDataRecursive(t)}},e.prototype.calculateViewBBox=function(){var t,e,n,i;if(this.parent){var r=this.parent.coordinateBBox;t=r.x,e=r.y,n=r.width,i=r.height}else t=0,e=0,n=this.canvas.get("width"),i=this.canvas.get("height");var a=this.region,o=a.start,s=a.end,l=new Bt(t+n*o.x,e+i*o.y,n*(s.x-o.x),i*(s.y-o.y));this.viewBBox&&this.viewBBox.isEqual(l)||(this.viewBBox=new Bt(t+n*o.x,e+i*o.y,n*(s.x-o.x),i*(s.y-o.y))),this.coordinateBBox=this.viewBBox},e.prototype.initEvents=function(){this.foregroundGroup.on("*",this.onDelegateEvents),this.middleGroup.on("*",this.onDelegateEvents),this.backgroundGroup.on("*",this.onDelegateEvents),this.canvas.on("*",this.onCanvasEvent)},e.prototype.initComponentController=function(){for(var t=this.usedControllers,e=0,n=t.length;e<n;e++){var i=t[e],r=Xn(i);r&&this.controllers.push(new r(this))}},e.prototype.createViewEvent=function(t){var e=t.shape,n=t.name,i=e?e.get("origin"):null,r=new Un(this,t,i);return r.type=n,r},e.prototype.doPlotEvent=function(t){var e=t.type,n=t.x,i=t.y,r={x:n,y:i},a=["mousedown","mouseup","mousemove","mouseleave","mousewheel","touchstart","touchmove","touchend","touchcancel","click","dblclick","contextmenu"];if(a.includes(e)){var o=this.isPointInPlot(r);if(o){var s="plot:"+e;t.type=s,this.emit(s,t),"mouseleave"!==e&&"touchend"!==e||(this.isPreMouseInPlot=!1)}"mousemove"===e||"touchmove"===e?(this.isPreMouseInPlot&&!o?("mousemove"===e&&(t.type=p.MOUSE_LEAVE,this.emit(p.MOUSE_LEAVE,t)),t.type=p.LEAVE,this.emit(p.LEAVE,t)):!this.isPreMouseInPlot&&o&&("mousemove"===e&&(t.type=p.MOUSE_ENTER,this.emit(p.MOUSE_ENTER,t)),t.type=p.ENTER,this.emit(p.ENTER,t)),this.isPreMouseInPlot=o):"mouseleave"!==e&&"touchend"!==e||this.isPreMouseInPlot&&("mouseleave"===e&&(t.type=p.MOUSE_LEAVE,this.emit(p.MOUSE_LEAVE,t)),t.type=p.LEAVE,this.emit(p.LEAVE,t),this.isPreMouseInPlot=!1)}},e.prototype.doFilterData=function(){var t=this.options.data;this.filteredData=this.filterData(t)},e.prototype.initGeometries=function(t){this.createOrUpdateScales();for(var e=this.getCoordinate(),n=Object(c["q"])(this.options,"scales",{}),i=this.geometries,r=0,a=i.length;r<a;r++){var o=i[r];o.scales=this.getGeometryScales();var s={coordinate:e,scaleDefs:n,data:this.filteredData,theme:this.themeObject,isDataChanged:this.isDataChanged,isCoordinateChanged:this.isCoordinateChanged};t?o.update(s):o.init(s)}this.adjustScales()},e.prototype.createOrUpdateScales=function(){for(var t=this.getScaleFields(),e=this.getGroupedFields(),n=this.getOptions(),i=n.data,r=n.scales,a=void 0===r?{}:r,o=this.filteredData,s=0,l=t.length;s<l;s++){var c=t[s],u=a[c],h=this.getScaleKey(c);this.createScale(c,e.includes(c)?i:o,u,h),this.createdScaleKeys.set(h,!0)}},e.prototype.syncScale=function(){this.getRootView().scalePool.sync(this.getCoordinate(),this.theme)},e.prototype.getGeometryScales=function(){for(var t=this.getScaleFields(),e={},n=0;n<t.length;n++){var i=t[n];e[i]=this.getScaleByField(i)}return e},e.prototype.getScaleFields=function(){for(var t=[],e={},n=this.geometries,i=0;i<n.length;i++){var r=n[i],a=r.getScaleFields();Pt(a,t,e)}return t},e.prototype.getGroupedFields=function(){for(var t=[],e={},n=this.geometries,i=0;i<n.length;i++){var r=n[i],a=r.getGroupFields();Pt(a,t,e)}return t},e.prototype.adjustScales=function(){this.adjustCategoryScaleRange()},e.prototype.adjustCategoryScaleRange=function(){var t=this,e=Object(l["d"])([this.getXScale()],this.getYScales()).filter((function(t){return!!t})),n=this.getCoordinate(),i=this.options.scales;Object(c["j"])(e,(function(e){var r=e.field,a=e.values,o=e.isCategory,s=e.isIdentity;(o||s)&&a&&!Object(c["q"])(i,[r,"range"])&&(e.range=qt(e,n,t.theme))}))},e.prototype.initComponents=function(t){for(var e=this.controllers,n=0;n<e.length;n++){var i=e[n];t?i.update():(i.clear(),i.render())}},e.prototype.doLayout=function(){this.layoutFunc(this)},e.prototype.createCoordinate=function(){var t=this.coordinateBBox.bl,e=this.coordinateBBox.tr;this.coordinateInstance=this.coordinateController.create(t,e)},e.prototype.paintGeometries=function(t){for(var e=this.options.animate,n=this.getCoordinate(),i={x:this.viewBBox.x,y:this.viewBBox.y,minX:this.viewBBox.minX,minY:this.viewBBox.minY,maxX:this.viewBBox.maxX,maxY:this.viewBBox.maxY,width:this.viewBBox.width,height:this.viewBBox.height},r=this.geometries,a=0;a<r.length;a++){var o=r[a];o.coordinate=n,o.canvasRegion=i,e||o.animate(!1),o.paint(t)}},e.prototype.renderComponents=function(t){for(var e=0;e<this.getComponents().length;e++){var n=this.getComponents()[e];n.component.render()}},e.prototype.renderFacet=function(t){this.facetInstance&&(t?this.facetInstance.update():(this.facetInstance.clear(),this.facetInstance.init(),this.facetInstance.render()))},e.prototype.initOptions=function(){var t=this,e=this.options,n=e.geometries,i=void 0===n?[]:n,r=e.interactions,a=void 0===r?[]:r,o=e.views,s=void 0===o?[]:o,u=e.annotations,h=void 0===u?[]:u,p=e.coordinate,f=e.events,d=e.facets;this.coordinateController?p&&this.coordinateController.update(p):this.coordinateController=new Wn(p);for(var g=0;g<i.length;g++){var v=i[g];this.createGeometry(v)}for(var m=0;m<a.length;m++){var y=a[m],b=y.type,x=y.cfg;this.interaction(b,x)}for(var O=0;O<s.length;O++){var j=s[O];this.createView(j)}for(var w=this.getController("annotation"),C=0;C<h.length;C++){var M=h[C];w.annotation(M)}f&&Object(c["j"])(f,(function(e,n){t.on(n,e)})),d&&Object(c["j"])(d,(function(e){var n=e.type,i=Object(l["c"])(e,["type"]);t.facet(n,i)}))},e.prototype.createGeometry=function(t){var e=t.type,n=t.cfg,i=void 0===n?{}:n;if(this[e]){var r=this[e](i);Object(c["j"])(t,(function(t,e){Object(c["F"])(r[e])&&r[e](t)}))}},e.prototype.getScaleKey=function(t){return this.id+"-"+t},e}(A);function ei(t,e){ti.prototype[t.toLowerCase()]=function(t){void 0===t&&(t={});var n=Object(l["a"])({container:this.middleGroup.addGroup(),labelsContainer:this.foregroundGroup.addGroup()},t),i=new e(n);return this.geometries.push(i),i}}var ni=ti,ii=function(t){function e(e){var n=this,i=e.container,r=e.width,a=e.height,o=e.autoFit,s=void 0!==o&&o,u=e.padding,h=e.appendPadding,p=e.renderer,f=void 0===p?"canvas":p,g=e.pixelRatio,v=e.localRefresh,m=void 0===v||v,y=e.visible,b=void 0===y||y,x=e.supportCSSTransform,j=void 0!==x&&x,C=e.defaultInteractions,M=void 0===C?["tooltip","legend-filter","legend-active","continuous-filter","ellipsis-text"]:C,I=e.options,k=e.limitInPlot,T=e.theme,A=e.syncViewPadding,L=Object(c["M"])(i)?document.getElementById(i):i,P=Object(w["b"])('<div style="position:relative;"></div>');L.appendChild(P);var B=S(L,s,r,a),E=O(f),F=new E.Canvas(Object(l["a"])({container:P,pixelRatio:g,localRefresh:m,supportCSSTransform:j},B));return n=t.call(this,{parent:null,canvas:F,backgroundGroup:F.addGroup({zIndex:d.BG}),middleGroup:F.addGroup({zIndex:d.MID}),foregroundGroup:F.addGroup({zIndex:d.FORE}),padding:u,appendPadding:h,visible:b,options:I,limitInPlot:k,theme:T,syncViewPadding:A})||this,n.onResize=Object(c["g"])((function(){n.forceFit()}),300),n.ele=L,n.canvas=F,n.width=B.width,n.height=B.height,n.autoFit=s,n.localRefresh=m,n.renderer=f,n.wrapperElement=P,n.updateCanvasStyle(),n.bindAutoFit(),n.initDefaultInteractions(M),n}return Object(l["b"])(e,t),e.prototype.initDefaultInteractions=function(t){var e=this;Object(c["j"])(t,(function(t){e.interaction(t)}))},e.prototype.changeSize=function(t,e){return this.width===t&&this.height===e||(this.emit(u.BEFORE_CHANGE_SIZE),this.width=t,this.height=e,this.canvas.changeSize(t,e),this.render(!0),this.emit(u.AFTER_CHANGE_SIZE)),this},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.unbindAutoFit(),this.canvas.destroy(),I(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=S(this.ele,!0,this.width,this.height),e=t.width,n=t.height;this.changeSize(e,n)}},e.prototype.updateCanvasStyle=function(){Object(w["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}(ni),ri=ii,ai=function(){function t(t){this.visible=!0,this.components=[],this.view=t}return t.prototype.clear=function(t){Object(c["j"])(this.components,(function(t){t.component.destroy()})),this.components=[]},t.prototype.destroy=function(){this.clear()},t.prototype.getComponents=function(){return this.components},t.prototype.changeVisible=function(t){this.visible!==t&&(this.components.forEach((function(e){t?e.component.show():e.component.hide()})),this.visible=t)},t}();function oi(t){for(var e=[],n=function(n){var i=t[n],r=Object(c["m"])(e,(function(t){return t.color===i.color&&t.name===i.name&&t.value===i.value&&t.title===i.title}));r||e.push(i)},i=0;i<t.length;i++)n(i);return e}var si=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isLocked=!1,e}return Object(l["b"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"tooltip"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.isVisible=function(){var t=this.view.getOptions().tooltip;return!1!==t},e.prototype.render=function(){},e.prototype.showTooltip=function(t){if(this.point=t,this.isVisible()){var e=this.view,n=this.getTooltipItems(t);if(n.length){var i=this.getTitle(n),r={x:n[0].x,y:n[0].y};e.emit("tooltip:show",Un.fromData(e,"tooltip:show",Object(l["a"])({items:n,title:i},t)));var a=this.getTooltipCfg(),o=a.follow,s=a.showMarkers,u=a.showCrosshairs,h=a.showContent,p=a.marker,f=this.items,d=this.title;if(Object(c["E"])(d,i)&&Object(c["E"])(f,n)?(this.tooltip&&o&&(this.tooltip.update(t),this.tooltip.show()),this.tooltipMarkersGroup&&this.tooltipMarkersGroup.show()):(e.emit("tooltip:change",Un.fromData(e,"tooltip:change",Object(l["a"])({items:n,title:i},t))),h&&(this.tooltip||this.renderTooltip(),this.tooltip.update(Object(c["U"])({},a,{items:n,title:i},o?t:{})),this.tooltip.show()),s&&this.renderTooltipMarkers(n,p)),this.items=n,this.title=i,u){var g=Object(c["q"])(a,["crosshairs","follow"],!1);this.renderCrosshairs(g?t:r,a)}}else this.hideTooltip()}},e.prototype.hideTooltip=function(){var t=this.getTooltipCfg().follow;if(t){var e=this.tooltipMarkersGroup;e&&e.hide();var n=this.xCrosshair,i=this.yCrosshair;n&&n.hide(),i&&i.hide();var r=this.tooltip;r&&r.hide(),this.view.emit("tooltip:hide",Un.fromData(this.view,"tooltip:hide",{})),this.point=null}else this.point=null},e.prototype.lockTooltip=function(){this.isLocked=!0,this.tooltip&&this.tooltip.setCapture(!0)},e.prototype.unlockTooltip=function(){this.isLocked=!1;var t=this.getTooltipCfg();this.tooltip&&this.tooltip.setCapture(t.capture)},e.prototype.isTooltipLocked=function(){return this.isLocked},e.prototype.clear=function(){var t=this,e=t.tooltip,n=t.xCrosshair,i=t.yCrosshair,r=t.tooltipMarkersGroup;e&&(e.hide(),e.clear()),n&&n.clear(),i&&i.clear(),r&&r.clear(),this.reset()},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),this.xCrosshair&&this.xCrosshair.destroy(),this.yCrosshair&&this.yCrosshair.destroy(),this.guideGroup&&this.guideGroup.remove(!0),this.reset()},e.prototype.reset=function(){this.items=null,this.title=null,this.tooltipMarkersGroup=null,this.tooltipCrosshairsGroup=null,this.xCrosshair=null,this.yCrosshair=null,this.tooltip=null,this.guideGroup=null,this.isLocked=!1,this.point=null},e.prototype.changeVisible=function(t){if(this.visible!==t){var e=this,n=e.tooltip,i=e.tooltipMarkersGroup,r=e.xCrosshair,a=e.yCrosshair;t?(n&&n.show(),i&&i.show(),r&&r.show(),a&&a.show()):(n&&n.hide(),i&&i.hide(),r&&r.hide(),a&&a.hide()),this.visible=t}},e.prototype.getTooltipItems=function(t){var e=this.findItemsFromView(this.view,t);if(e.length){e=Object(c["p"])(e);for(var n=0,i=e;n<i.length;n++)for(var r=i[n],a=0,o=r;a<o.length;a++){var s=o[a],l=s.mappingData,u=l.x,h=l.y;s.x=Object(c["z"])(u)?u[u.length-1]:u,s.y=Object(c["z"])(h)?h[h.length-1]:h}var p=this.getTooltipCfg().shared;if(!1===p&&e.length>1){for(var f=e[0],d=Math.abs(t.y-f[0].y),g=0,v=e;g<v.length;g++){var m=v[g],y=Math.abs(t.y-m[0].y);y<=d&&(f=m,d=y)}e=[f]}return oi(Object(c["p"])(e))}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 Bt(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(c["q"])(i,["components","tooltip"],{}),a=Object(c["q"])(n,"enterable",r.enterable);return Object(c["h"])({},r,n,{capture:!(!a&&!this.isLocked)})},e.prototype.processCustomContent=function(t){if(Object(c["A"])(t)||!Object(c["q"])(t,"customContent"))return t;var e=t.customContent,n=function(t,n){var i=e(t,n)||"";return Object(c["M"])(i)?'<div class="g2-tooltip">'+i+"</div>":i};return Object(l["a"])(Object(l["a"])({},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 Ot(Object(l["a"])(Object(l["a"])({parent:t.get("el").parentNode,region:e},n),{visible:!1,crosshairs:null}));i.init(),this.tooltip=i},e.prototype.renderTooltipMarkers=function(t,e){for(var n=this.getTooltipMarkersGroup(),i=0,r=t;i<r.length;i++){var a=r[i],o=a.x,s=a.y,c=Object(l["a"])(Object(l["a"])({fill:a.color,symbol:"circle",shadowColor:a.color},e),{x:o,y:s});n.addShape("marker",{attrs:c})}},e.prototype.renderCrosshairs=function(t,e){var n=Object(c["q"])(e,["crosshairs","type"],"x");"x"===n?(this.yCrosshair&&this.yCrosshair.hide(),this.renderXCrosshairs(t,e)):"y"===n?(this.xCrosshair&&this.xCrosshair.hide(),this.renderYCrosshairs(t,e)):"xy"===n&&(this.renderXCrosshairs(t,e),this.renderYCrosshairs(t,e))},e.prototype.renderXCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(Rt(n,t)){var i,r;if(n.isRect)n.isTransposed?(i={x:n.start.x,y:t.y},r={x:n.end.x,y:t.y}):(i={x:t.x,y:n.end.y},r={x:t.x,y:n.start.y});else{var a=Gt(n,t),o=n.getCenter(),s=n.getRadius();r=wt(o.x,o.y,s,a),i=o}var l=Object(c["h"])({start:i,end:r,container:this.getTooltipCrosshairsGroup()},Object(c["q"])(e,"crosshairs",{}),this.getCrosshairsText("x",t,e));delete l.type;var u=this.xCrosshair;u?u.update(l):(u=new dt["Crosshair"].Line(l),u.init()),u.render(),u.show(),this.xCrosshair=u}},e.prototype.renderYCrosshairs=function(t,e){var n=this.getViewWithGeometry(this.view).getCoordinate();if(Rt(n,t)){var i,r;if(n.isRect){var a=void 0,o=void 0;n.isTransposed?(a={x:t.x,y:n.end.y},o={x:t.x,y:n.start.y}):(a={x:n.start.x,y:t.y},o={x:n.end.x,y:t.y}),i={start:a,end:o},r="Line"}else i={center:n.getCenter(),radius:_t(n,t),startAngle:n.startAngle,endAngle:n.endAngle},r="Circle";i=Object(c["h"])({container:this.getTooltipCrosshairsGroup()},i,Object(c["q"])(e,"crosshairs",{}),this.getCrosshairsText("y",t,e)),delete i.type;var s=this.yCrosshair;s?n.isRect&&"circle"===s.get("type")||!n.isRect&&"line"===s.get("type")?(s=new dt["Crosshair"][r](i),s.init()):s.update(i):(s=new dt["Crosshair"][r](i),s.init()),s.render(),s.show(),this.yCrosshair=s}},e.prototype.getCrosshairsText=function(t,e,n){var i=Object(c["q"])(n,["crosshairs","text"]),r=Object(c["q"])(n,["crosshairs","follow"]),a=this.items;if(i){var o=this.getViewWithGeometry(this.view),s=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=s.data[l.field],p=s.data[u.field];var d="x"===t?h:p;return Object(c["F"])(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.getTooltipItemsByHitShape=function(t,e,n){var i=[],r=t.container,a=r.getShape(e.x,e.y);if(a&&a.get("visible")&&a.get("origin")){var o=a.get("origin").mappingData,s=Rn(o,t,n);s.length&&i.push(s)}return i},e.prototype.getTooltipItemsByFindData=function(t,e,n){var i=[],r=t.dataArray;if(!Object(c["D"])(r)){t.sort(r);for(var a=0,o=r;a<o.length;a++){var s=o[a],l=_n(e,s,t);if(l){var u=t.getElementId(l),h=t.elementsMap[u];if("heatmap"===t.type||h.visible){var p=Rn(l,t,n);p.length&&i.push(p)}}}}return i},e.prototype.findItemsFromView=function(t,e){if(!1===t.getOptions().tooltip)return[];for(var n=[],i=t.geometries,r=this.getTooltipCfg(),a=r.shared,o=r.title,s=r.reversed,l=0,c=i;l<c.length;l++){var u=c[l];if(u.visible&&!1!==u.tooltipOption){var h=u.type,p=void 0;p=["point","edge","polygon"].includes(h)?this.getTooltipItemsByHitShape(u,e,o):["area","line","path","heatmap"].includes(h)||!1!==a?this.getTooltipItemsByFindData(u,e,o):this.getTooltipItemsByHitShape(u,e,o),p.length&&(s&&p.reverse(),n.push(p))}}for(var f=0,d=t.views;f<d.length;f++){var g=d[f];n=n.concat(this.findItemsFromView(g,e))}return n},e.prototype.getViewWithGeometry=function(t){var e=this;return t.geometries.length?t:Object(c["m"])(t.views,(function(t){return e.getViewWithGeometry(t)}))},e}(ai),li=si,ci={};function ui(t){return ci[t.toLowerCase()]}function hi(t,e){ci[t.toLowerCase()]=e}var pi={appear:{duration:450,easing:"easeQuadOut"},update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},fi={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"}}},di={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 gi(t,e){return{delay:Object(c["F"])(t.delay)?t.delay(e):t.delay,easing:Object(c["F"])(t.easing)?t.easing(e):t.easing,duration:Object(c["F"])(t.duration)?t.duration(e):t.duration,callback:t.callback}}function vi(t,e,n){var i=fi[t];return i&&(Object(c["F"])(i)&&(i=i(e)),i=Object(c["h"])({},pi,i),n)?i[n]:i}function mi(t,e,n){var i=Object(c["q"])(t.get("origin"),"data",v),r=e.animation,a=gi(e,i);if(r){var o=ui(r);o&&o(t,a,n)}else t.animate(n.toAttrs,a)}function yi(t,e,n,i,r){if(di[n]){var a=di[n](i),o=ui(Object(c["q"])(a,"animation",""));if(o){var s=Object(l["a"])(Object(l["a"])(Object(l["a"])({},pi.appear),a),e);t.stopAnimate(),o(t,s,{coordinate:i,minYPoint:r,toAttrs:null})}}}var bi="element-background",xi=function(t){function e(e){var n=t.call(this,e)||this;n.states=[];var i=e.shapeFactory,r=e.container,a=e.offscreenGroup,o=e.visible,s=void 0===o||o;return n.shapeFactory=i,n.container=r,n.offscreenGroup=a,n.visible=s,n}return Object(l["b"])(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?mi(i,r,{coordinate:n.coordinate,toAttrs:Object(l["a"])({},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=void 0,this.model=void 0,this.data=void 0,this.offscreenGroup=void 0,this.statesStyle=void 0,t.prototype.destroy.call(this)},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e),e?(this.shape&&this.shape.show(),this.labelShape&&this.labelShape.forEach((function(t){t.show()}))):(this.shape&&this.shape.hide(),this.labelShape&&this.labelShape.forEach((function(t){t.hide()})))},e.prototype.setState=function(t,e){var n=this,i=n.states,r=n.shapeFactory,a=n.model,o=n.shape,s=n.shapeType,l=i.indexOf(t);if(e){if(l>-1)return;i.push(t),"active"!==t&&"selected"!==t||o.toFront()}else{if(-1===l)return;i.splice(l,1),"active"!==t&&"selected"!==t||o.toBack()}var c=r.drawShape(s,a,this.getOffscreenGroup());i.length?this.syncShapeStyle(o,c,i,null):this.syncShapeStyle(o,c,["reset"],null),c.remove(!0);var u={state:t,stateStatus:e,element:this,target:this.container};this.container.emit("statechange",u),Object(dt["propagationDelegate"])(this.shape,"statechange",u)},e.prototype.clearStates=function(){var t=this,e=this.states;Object(c["j"])(e,(function(e){t.setState(e,!1)})),this.states=[]},e.prototype.hasState=function(t){return this.states.includes(t)},e.prototype.getStates=function(){return this.states},e.prototype.getData=function(){return this.data},e.prototype.getModel=function(){return this.model},e.prototype.getBBox=function(){var t=this,e=t.shape,n=t.labelShape,i={x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0};return e&&(i=e.getCanvasBBox()),n&&n.forEach((function(t){var e=t.getCanvasBBox();i.x=Math.min(e.x,i.x),i.y=Math.min(e.y,i.y),i.minX=Math.min(e.minX,i.minX),i.minY=Math.min(e.minY,i.minY),i.maxX=Math.max(e.maxX,i.maxX),i.maxY=Math.max(e.maxY,i.maxY)})),i.width=i.maxX-i.minX,i.height=i.maxY-i.minY,i},e.prototype.getStatesStyle=function(){if(!this.statesStyle){var t=this,e=t.shapeType,n=t.geometry,i=t.shapeFactory,r=n.stateOption,a=i.defaultShapeType,o=i.theme[e]||i.theme[a];this.statesStyle=Object(c["h"])({},o,r)}return this.statesStyle},e.prototype.getStateStyle=function(t,e){var n=this.getStatesStyle(),i=Object(c["q"])(n,[t,"style"],{}),r=i[e]||i;return Object(c["F"])(r)?r(this):r},e.prototype.getAnimateCfg=function(t){var e=this,n=this.animate;if(n){var i=n[t];return i?Object(l["a"])(Object(l["a"])({},i),{callback:function(){var t;Object(c["F"])(i.callback)&&i.callback(),null===(t=e.geometry)||void 0===t||t.emit(h.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,o=i.shapeType;if(this.shape=r.drawShape(o,t,a),this.shape){this.setShapeInfo(this.shape,t);var s=this.shape.cfg.name;s?Object(c["M"])(s)&&(this.shape.cfg.name=["element",s]):this.shape.cfg.name=["element",this.shapeFactory.geometryType];var u=e?"enter":"appear",p=this.getAnimateCfg(u);p&&(null===(n=this.geometry)||void 0===n||n.emit(h.BEFORE_DRAW_ANIMATE),mi(this.shape,p,{coordinate:r.coordinate,toAttrs:Object(l["a"])({},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 s=t.get("clipShape"),l=e.get("clipShape");if(this.syncShapeStyle(s,l,n,i),t.isGroup())for(var u=t.get("children"),p=e.get("children"),f=0;f<u.length;f++)this.syncShapeStyle(u[f],p[f],n,i,r+f);else{if(!Object(c["D"])(n)&&!Object(c["E"])(n,["reset"])){var d=t.get("name");Object(c["z"])(d)&&(d=d[1]),Object(c["j"])(n,(function(t){if(e.get("name")!==bi){var n=o.getStateStyle(t,d||r);e.attr(n)}}))}var g=kt(t,e);this.animate?i?(null===(a=this.geometry)||void 0===a||a.emit(h.BEFORE_DRAW_ANIMATE),mi(t,i,{coordinate:this.shapeFactory.coordinate,toAttrs:g,shapeModel:this.model})):Object(c["D"])(n)?(t.stopAnimate(),t.animate(g,{duration:300})):t.attr(g):t.attr(g)}}},e.prototype.getShapeType=function(t){var e=Object(c["q"])(t,"shape");return Object(c["z"])(e)?e[0]:e},e}(A),Oi=xi,ji={},wi={};function Ci(t){return ji[t.toLowerCase()]}function Mi(t,e){ji[t.toLowerCase()]=e}function Si(t){return wi[t.toLowerCase()]}function Ii(t,e){wi[t.toLowerCase()]=e}var ki={coordinate:null,defaultShapeType:null,theme:null,getShapePoints:function(t,e){var n=this.getShape(t);return n.getPoints?n.getPoints(e):this.getDefaultPoints(e)},getShape:function(t){var e=this[t]||this[this.defaultShapeType];return e.coordinate=this.coordinate,e},getDefaultPoints:function(){return[]},getDefaultStyle:function(t){return Object(c["q"])(t,[this.defaultShapeType,"default","style"],{})},getMarker:function(t,e){var n=this.getShape(t);if(!n.getMarker){var i=this.defaultShapeType;n=this.getShape(i)}var r=this.theme,a=Object(c["q"])(r,[t,"default"],{}),o=n.getMarker(e);return Object(c["h"])({},a,o)},drawShape:function(t,e,n){var i=this.getShape(t);return i.draw(e,n)}},Ti={coordinate:null,parsePath:function(t){var e=this.coordinate,n=Object(Ie["c"])(t);return n=e.isPolar?Se(e,n):Me(e,n),n},parsePoint:function(t){var e=this.coordinate;return e.convert(t)},parsePoints:function(t){var e=this.coordinate;return t.map((function(t){return e.convert(t)}))},draw:function(t,e){}},Ai={};function Li(t,e){var n=Object(c["lb"])(t),i=Object(l["a"])(Object(l["a"])(Object(l["a"])({},ki),e),{geometryType:t});return Ai[n]=i,i}function Pi(t,e,n){var i=Object(c["lb"])(t),r=Ai[i],a=Object(l["a"])(Object(l["a"])({},Ti),n);return r[e]=a,a}function Bi(t){var e=Object(c["lb"])(t);return Ai[e]}function Ei(t,e,n){if(void 0===n&&(n={}),!e)return[t];var i=Object(c["u"])(t,e),r=[];if(1===e.length&&n[e[0]])for(var a=n[e[0]],o=0,s=a;o<s.length;o++){var l=s[o],u=i["_"+l];u&&r.push(u)}else for(var h in i)if(i.hasOwnProperty(h)){var p=i[h];r.push(p)}return r}function Fi(t,e){return Object(c["db"])(["color","shape","size","x","y","isInCircle","data","style","defaultStyle","points","mappingData"],(function(n){return!Object(c["E"])(t[n],e[n])}))}function Di(t){return Object(c["z"])(t)?t:t.split("*")}function _i(t,e){var n=[];return Object(c["j"])(e,(function(e,i){var r=i.split(" ")[0];r===t&&n.push(e)})),n}var Ri=function(t){function e(e){var n=t.call(this,e)||this;n.type="base",n.attributes={},n.elements=[],n.elementsMap={},n.animateOption=!0,n.attributeOption={},n.lastElementsMap={},n.generatePoints=!1,n.beforeMappingData=null,n.adjusts={},n.idFields=[],n.hasSorted=!1,n.isCoordinateChanged=!1;var i=e.container,r=e.labelsContainer,a=e.coordinate,o=e.data,s=e.sortable,l=void 0!==s&&s,c=e.visible,u=void 0===c||c,h=e.theme,p=e.scales,f=void 0===p?{}:p,d=e.scaleDefs,g=void 0===d?{}:d,v=e.intervalPadding,m=e.dodgePadding,y=e.maxColumnWidth,b=e.minColumnWidth,x=e.columnWidthRatio,O=e.roseWidthRatio,j=e.multiplePieWidthRatio,w=e.zIndexReversed;return n.container=i,n.labelsContainer=r,n.coordinate=a,n.data=o,n.sortable=l,n.visible=u,n.userTheme=h,n.scales=f,n.scaleDefs=g,n.intervalPadding=v,n.dodgePadding=m,n.maxColumnWidth=y,n.minColumnWidth=b,n.columnWidthRatio=x,n.roseWidthRatio=O,n.multiplePieWidthRatio=j,n.zIndexReversed=w,n}return Object(l["b"])(e,t),e.prototype.position=function(t){var e=t;Object(c["L"])(t)||(e={fields:Di(t)});var n=Object(c["q"])(e,"fields");return 1===n.length&&(n.unshift("1"),Object(c["bb"])(e,"fields",n)),Object(c["bb"])(this.attributeOption,"position",e),this},e.prototype.color=function(t,e){return this.createAttrOption("color",t,e),this},e.prototype.shape=function(t,e){return this.createAttrOption("shape",t,e),this},e.prototype.size=function(t,e){return this.createAttrOption("size",t,e),this},e.prototype.adjust=function(t){var e=t;return(Object(c["M"])(t)||Object(c["L"])(t))&&(e=[t]),Object(c["j"])(e,(function(t,n){Object(c["K"])(t)||(e[n]={type:t})})),this.adjustOption=e,this},e.prototype.style=function(t,e){if(Object(c["M"])(t)){var n=Di(t);this.styleOption={fields:n,callback:e}}else{var i=t,r=(n=i.fields,i.callback),a=i.cfg;this.styleOption=n||r||a?t:{cfg:t}}return this},e.prototype.tooltip=function(t,e){if(Object(c["M"])(t)){var n=Di(t);this.tooltipOption={fields:n,callback:e}}else this.tooltipOption=t;return this},e.prototype.animate=function(t){return this.animateOption=t,this},e.prototype.label=function(t,e,n){if(Object(c["M"])(t)){var i={},r=Di(t);i.fields=r,Object(c["F"])(e)?i.callback=e:Object(c["L"])(e)&&(i.cfg=e),n&&(i.cfg=n),this.labelOption=i}else this.labelOption=t;return this},e.prototype.state=function(t){return this.stateOption=t,this},e.prototype.customInfo=function(t){return this.customOption=t,this},e.prototype.init=function(t){void 0===t&&(t={}),this.setCfg(t),this.initAttributes(),this.processData(this.data),this.adjustScale()},e.prototype.update=function(t){void 0===t&&(t={});var e=t.data,n=t.isDataChanged,i=t.isCoordinateChanged,r=this,a=r.attributeOption,o=r.lastAttributeOption;Object(c["E"])(a,o)?!e||!n&&Object(c["E"])(e,this.data)?this.setCfg(t):(this.setCfg(t),this.initAttributes(),this.processData(e)):this.init(t),this.adjustScale(),this.isCoordinateChanged=i},e.prototype.paint=function(t){var e=this;void 0===t&&(t=!1),this.animateOption&&(this.animateOption=Object(c["h"])({},vi(this.type,this.coordinate),this.animateOption)),this.defaultSize=void 0,this.elements=[],this.elementsMap={};var n=this.getOffscreenGroup();n.clear();for(var i=this.beforeMappingData,r=this.beforeMapping(i),a=[],o=0,s=r.length;o<s;o++){var u=r[o],h=this.mapping(u);a.push(h),this.createElements(h,o,t)}if(this.canDoGroupAnimation(t)){var p=this.container,f=this.type,d=this.coordinate,g=Object(c["q"])(this.animateOption,"appear"),v=this.getYScale(),m=d.convert({x:0,y:v.scale(this.getYMinValue())});yi(p,g,f,d,m)}this.labelOption&&this.renderLabels(Object(c["p"])(a),t),this.dataArray=a,Object(c["j"])(this.lastElementsMap,(function(t){t.animate=e.animateOption,t.destroy()})),this.lastElementsMap=this.elementsMap,this.lastAttributeOption=Object(l["a"])({},this.attributeOption),!1===this.visible&&this.changeVisible(!1)},e.prototype.clear=function(){var t=this,e=t.container,n=t.geometryLabel,i=t.offscreenGroup;e&&e.clear(),n&&n.clear(),i&&i.clear(),this.scaleDefs=void 0,this.attributes={},this.scales={},this.elementsMap={},this.lastElementsMap={},this.elements=[],this.adjusts={},this.dataArray=null,this.beforeMappingData=null,this.lastAttributeOption=void 0,this.defaultSize=void 0,this.idFields=[],this.groupScales=void 0,this.hasSorted=!1,this.isCoordinateChanged=!1},e.prototype.destroy=function(){this.clear();var e=this.container;e.remove(!0),this.offscreenGroup&&(this.offscreenGroup.remove(!0),this.offscreenGroup=null),this.geometryLabel&&(this.geometryLabel.destroy(),this.geometryLabel=null),this.theme=void 0,this.shapeFactory=void 0,t.prototype.destroy.call(this)},e.prototype.getGroupScales=function(){return this.groupScales},e.prototype.getAttribute=function(t){return this.attributes[t]},e.prototype.getXScale=function(){return this.getAttribute("position").scales[0]},e.prototype.getYScale=function(){return this.getAttribute("position").scales[1]},e.prototype.getGroupAttributes=function(){var t=[];return Object(c["j"])(this.attributes,(function(e){g.includes(e.type)&&t.push(e)})),t},e.prototype.getDefaultValue=function(t){var e,n=this.getAttribute(t);return n&&Object(c["D"])(n.scales)&&(e=n.values[0]),e},e.prototype.getAttributeValues=function(t,e){for(var n=[],i=t.scales,r=0,a=i.length;r<a;r++){var o=i[r],s=o.field;o.isIdentity?n.push(o.values):n.push(e[s])}return t.mapping.apply(t,n)},e.prototype.getAdjust=function(t){return this.adjusts[t]},e.prototype.getShapeMarker=function(t,e){var n=this.getShapeFactory();return n.getMarker(t,e)},e.prototype.getElementsBy=function(t){return this.elements.filter((function(e){return t(e)}))},e.prototype.getElementId=function(t){t=Object(c["z"])(t)?t[0]:t;var e=t[v];if(this.idFields.length){for(var n=e[this.idFields[0]],i=1;i<this.idFields.length;i++)n+="-"+e[this.idFields[i]];return n}var r,a,o=this.type,s=this.getXScale(),l=this.getYScale(),u=s.field||"x",h=l.field||"y",p=e[h];r="identity"===s.type?s.values[0]:e[u],a="interval"===o||"schema"===o?""+r:"line"===o||"area"===o||"path"===o?o:r+"-"+p;for(var f=this.groupScales,d=(i=0,f.length);i<d;i++){var g=f[i],m=g.field;a=a+"-"+e[m]}var y=this.getAdjust("dodge");if(y){var b=y.dodgeBy;b&&(a=a+"-"+e[b])}return this.getAdjust("jitter")&&(a=a+"-"+t.x+"-"+t.y),a},e.prototype.getScaleFields=function(){var t=[],e={},n=this,i=n.attributeOption,r=n.labelOption,a=n.tooltipOption;for(var o in i)if(i.hasOwnProperty(o)){var s=i[o];s.fields?Pt(s.fields,t,e):s.values&&Pt(s.values,t,e)}return r&&r.fields&&Pt(r.fields,t,e),Object(c["K"])(a)&&a.fields&&Pt(a.fields,t,e),t},e.prototype.changeVisible=function(e){t.prototype.changeVisible.call(this,e);for(var n=this.elements,i=0,r=n.length;i<r;i++){var a=n[i];a.changeVisible(e)}e?(this.container&&this.container.show(),this.labelsContainer&&this.labelsContainer.show()):(this.container&&this.container.hide(),this.labelsContainer&&this.labelsContainer.hide())},e.prototype.getGroupFields=function(){for(var t=[],e={},n=0,i=g.length;n<i;n++){var r=g[n],a=this.attributeOption[r];a&&a.fields&&Pt(a.fields,t,e)}return t},e.prototype.getXYFields=function(){var t=this.attributeOption.position.fields,e=t[0],n=t[1];return[e,n]},e.prototype.getShapes=function(){return this.elements.map((function(t){return t.shape}))},e.prototype.getOffscreenGroup=function(){if(!this.offscreenGroup){var t=this.container.getGroupBase();this.offscreenGroup=new t({})}return this.offscreenGroup},e.prototype.sort=function(t){if(!this.hasSorted)for(var e=this.getXScale(),n=e.field,i=0;i<t.length;i++){var r=t[i];r.sort((function(t,i){return e.translate(t[v][n])-e.translate(i[v][n])}))}this.hasSorted=!0},e.prototype.adjustScale=function(){var t=this.getYScale();t&&this.getAdjust("stack")&&this.updateStackRange(t,this.beforeMappingData)},e.prototype.getShapeFactory=function(){var t=this.shapeType;if(Bi(t))return this.shapeFactory||(this.shapeFactory=Object(c["e"])(Bi(t))),this.shapeFactory.coordinate=this.coordinate,this.shapeFactory.theme=this.theme.geometries[t]||{},this.shapeFactory},e.prototype.createShapePointsCfg=function(t){var e,n=this.getXScale(),i=this.getYScale(),r=this.normalizeValues(t[n.field],n);return e=i?this.normalizeValues(t[i.field],i):t.y?t.y:.1,{x:r,y:e,y0:i?i.scale(this.getYMinValue()):void 0}},e.prototype.createElement=function(t,e){void 0===e&&(e=!1);var n=this.container,i=this.getDrawCfg(t),r=this.getShapeFactory(),a=new Oi({shapeFactory:r,container:n,offscreenGroup:this.getOffscreenGroup()});return a.animate=this.animateOption,a.geometry=this,a.draw(i,e),a},e.prototype.getDrawCfg=function(t){var e=t[v],n={mappingData:t,data:e,x:t.x,y:t.y,color:t.color,size:t.size,isInCircle:this.coordinate.isPolar,customInfo:this.customOption},i=t.shape;!i&&this.getShapeFactory()&&(i=this.getShapeFactory().defaultShapeType),n.shape=i;var r=this.theme.geometries[this.shapeType];n.defaultStyle=Object(c["q"])(r,[i,"default"],{}).style,!n.defaultStyle&&this.getShapeFactory()&&(n.defaultStyle=this.getShapeFactory().getDefaultStyle(r));var a=this.styleOption;return a&&(n.style=this.getStyleCfg(a,e)),this.generatePoints&&(n.points=t.points,n.nextPoints=t.nextPoints),n},e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);for(var i=this,r=i.lastElementsMap,a=i.elementsMap,o=i.elements,s=0,l=t.length;s<l;s++){var c=t[s],u=this.getElementId(c);a[u]&&(u=u+"-"+e+"-"+s);var h=r[u];if(h){var p=this.getDrawCfg(c),f=h.getModel();(this.isCoordinateChanged||Fi(p,f))&&(h.animate=this.animateOption,h.update(p)),delete r[u]}else h=this.createElement(c,n);o.push(h),a[u]=h}if(this.zIndexReversed){var d=o.length;o.forEach((function(t,e){t.shape.setZIndex(d-e)}))}return o},e.prototype.getLabelType=function(){var t=this,e=t.labelOption,n=t.coordinate,i=t.type,r=n.type,a=n.isTransposed,o=Object(c["q"])(e,["cfg","type"]);return o||(o="polar"===r?a?"pie":"polar":"theta"===r?"pie":"interval"===i||"polygon"===i?"interval":"base"),o},e.prototype.getYMinValue=function(){var t,e=this.getYScale(),n=e.min,i=e.max;return t=n>=0?n:i<=0?i:0,t},e.prototype.createAttrOption=function(t,e,n){if(Object(c["G"])(e)||Object(c["K"])(e))Object(c["K"])(e)&&Object(c["E"])(Object.keys(e),["values"])?Object(c["bb"])(this.attributeOption,t,{fields:e.values}):Object(c["bb"])(this.attributeOption,t,e);else{var i={};Object(c["I"])(e)?i.values=[e]:i.fields=Di(e),n&&(Object(c["F"])(n)?i.callback=n:i.values=n),Object(c["bb"])(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 o={},s=function(e){if(i.hasOwnProperty(e)){var s=i[e];if(!s)return{value:void 0};var c=Object(l["a"])({},s),u=c.callback,h=c.values,p=c.fields,f=void 0===p?[]:p,d=f.map((function(n){var i=t.scales[n];return i.isCategory&&!o[n]&&g.includes(e)&&(t.groupScales.push(i),o[n]=!0),i}));c.scales=d,"position"!==e&&1===d.length&&"identity"===d[0].type?c.values=d[0].values:u||h||("size"===e?c.values=r.sizes:"shape"===e?c.values=r.shapes[a]||[]:"color"===e&&(d.length?c.values=d[0].values.length<=10?r.colors10:r.colors20:c.values=r.colors10));var v=Q(e);n[e]=new v(c)}};for(var c in i){var u=s(c);if("object"===typeof u)return u.value}},e.prototype.processData=function(t){this.hasSorted=!1;for(var e=this.getAttribute("position").scales,n=e.filter((function(t){return t.isCategory})),i=this.groupData(t),r=[],a=0,o=i.length;a<o;a++){for(var s=i[a],l=[],c=0,u=s.length;c<u;c++){var h=s[c],p={};for(var f in h)p[f]=h[f];p[v]=h;for(var d=0,g=n;d<g.length;d++){var m=g[d],y=m.field;p[y]=m.translate(p[y])}l.push(p)}r.push(l)}var b=this.adjustData(r);return this.beforeMappingData=b,b},e.prototype.adjustData=function(t){var e=this.adjustOption,n=this,i=n.intervalPadding,r=n.dodgePadding,a=n.theme,o=this.maxColumnWidth||a.maxColumnWidth,s=this.minColumnWidth||a.minColumnWidth,u=this.columnWidthRatio||a.columnWidthRatio,h=t;if(e){var p=this.getXScale(),f=this.getYScale(),d=p.field,g=f?f.field:null,v=Ft(this.coordinate),m=p.values.length,y=this.getAttribute("size"),b=void 0;y&&(b=y.values[0]);for(var x=0,O=e.length;x<O;x++){var j=e[x],w=Object(l["a"])({xField:d,yField:g,intervalPadding:i,dodgePadding:r,xDimensionLength:v,groupNum:m,defaultSize:b,maxColumnWidth:o,minColumnWidth:s,columnWidthRatio:u},j),C=j.type;if("dodge"===C){var M=[];if(p.isCategory||"identity"===p.type)M.push("x");else{if(f)throw new Error("dodge is not support linear attribute, please use category attribute!");M.push("y")}w.adjustNames=M,w.dodgeRatio=u}else if("stack"===C){var S=this.coordinate;if(!f){w.height=S.getHeight();var I=this.getDefaultValue("size")||3;w.size=I}!S.isTransposed&&Object(c["G"])(w.reverseOrder)&&(w.reverseOrder=!0)}var k=Object(P["getAdjust"])(C),T=new k(w);h=T.process(h),this.adjusts[C]=T}}return h},e.prototype.groupData=function(t){for(var e=this.getGroupScales(),n=this.scaleDefs,i={},r=[],a=0;a<e.length;a++){var o=e[a],s=o.field;r.push(s),Object(c["q"])(n,[s,"values"])&&(i[s]=n[s].values)}return Ei(t,r,i)},e.prototype.updateStackRange=function(t,e){for(var n=Object(c["p"])(e),i=t.field,r=t.min,a=t.max,o=0;o<n.length;o++){var s=n[o],l=Math.min.apply(null,s[i]),u=Math.max.apply(null,s[i]);l<r&&(r=l),u>a&&(a=u)}var h=this.scaleDefs,p={};r<t.min&&!Object(c["q"])(h,[i,"min"])&&(p.min=r),a>t.max&&!Object(c["q"])(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;n<i;n++){var r=e[n];this.generateShapePoints(r);var a=e[n+1];a&&(this.generateShapePoints(a),r[0].nextPoints=a[0].points)}return e},e.prototype.generateShapePoints=function(t){for(var e=this.getShapeFactory(),n=this.getAttribute("shape"),i=0;i<t.length;i++){var r=t[i],a=this.createShapePointsCfg(r),o=n?this.getAttributeValues(n,r):null,s=e.getShapePoints(o,a);r.points=s}},e.prototype.normalizeValues=function(t,e){var n=[];if(Object(c["z"])(t))for(var i=0;i<t.length;i++){var r=t[i];n.push(e.scale(r))}else n=e.scale(t);return n},e.prototype.mapping=function(t){for(var e=this.attributes,n=[],i=0;i<t.length;i++){var r=t[i],a={_origin:r[v],points:r.points,nextPoints:r.nextPoints};for(var o in e)if(e.hasOwnProperty(o)){var s=e[o],l=s.names,u=this.getAttributeValues(s,r);if(l.length>1)for(var h=0;h<u.length;h+=1){var p=u[h],f=l[h];a[f]=Object(c["z"])(p)&&1===p.length?p[0]:p}else a[l[0]]=1===u.length?u[0]:u}this.convertPoint(a),n.push(a)}return n},e.prototype.convertPoint=function(t){var e,n,i,r=t.x,a=t.y,o=this.coordinate;if(Object(c["z"])(r)&&Object(c["z"])(a)){e=[],n=[];for(var s=0,l=0,u=r.length,h=a.length;s<u&&l<h;s+=1,l+=1)i=o.convert({x:r[s],y:a[l]}),e.push(i.x),n.push(i.y)}else if(Object(c["z"])(a)){n=[];for(var p=0;p<a.length;p++){var f=a[p];i=o.convert({x:r,y:f}),e&&e!==i.x?(Object(c["z"])(e)||(e=[e]),e.push(i.x)):e=i.x,n.push(i.y)}}else if(Object(c["z"])(r)){e=[];for(p=0;p<r.length;p++){var d=r[p];i=o.convert({x:d,y:a}),n&&n!==i.y?(Object(c["z"])(n)||(n=[n]),n.push(i.y)):n=i.y,e.push(i.x)}}else{var g=o.convert({x:r,y:a});e=g.x,n=g.y}t.x=e,t.y=n},e.prototype.getStyleCfg=function(t,e){var n=t.fields,i=void 0===n?[]:n,r=t.callback,a=t.cfg;if(a)return a;var o=i.map((function(t){return e[t]}));return r.apply(void 0,o)},e.prototype.setCfg=function(t){var e=this,n=t.coordinate,i=t.data,r=t.theme,a=t.scaleDefs;n&&(this.coordinate=n),i&&(this.data=i),a&&(this.scaleDefs=a,this.idFields=[],Object(c["j"])(a,(function(t,n){t&&t.key&&e.idFields.push(n)}))),r&&(this.theme=this.userTheme?Object(c["h"])({},r,this.userTheme):r)},e.prototype.renderLabels=function(t,e){void 0===e&&(e=!1);var n=this.geometryLabel;if(!n){var i=this.getLabelType(),r=Ci(i);n=new r(this),this.geometryLabel=n}n.render(t,e);var a=n.labelsRenderer.shapesMap;Object(c["j"])(this.elementsMap,(function(t,e){var n=_i(e,a);if(n.length){t.labelShape=n;for(var i=0;i<n.length;i++)for(var r=n[i],o=r.getChildren(),s=0;s<o.length;s++){var l=o[s];l.cfg.name=["element","label"],l.cfg.element=t}}}))},e.prototype.canDoGroupAnimation=function(t){return!t&&this.animateOption&&(void 0===Object(c["q"])(this.animateOption,"appear")||Object(c["q"])(this.animateOption,"appear")&&void 0===Object(c["q"])(this.animateOption,["appear","animation"]))},e}(A),Gi=Ri,Yi=nt["a"].transform;function Ni(t,e,n){var i=Yi(t.getMatrix(),[["t",e,n]]);t.setMatrix(i)}function zi(t,e){var n=t.attr(),i=n.x,r=n.y,a=Yi(t.getMatrix(),[["t",-i,-r],["r",e],["t",i,r]]);return a}function Vi(t,e){var n=zi(t,e);t.setMatrix(n)}function Xi(t){return t.find((function(t){return"text"===t.get("type")}))}function Hi(t,e,n){void 0===n&&(n=[0,0,0,0]);var i=t.getChildren()[0];if(i){var r=i.clone();e.rotate&&Vi(r,-e.rotate);var a=r.getCanvasBBox(),o=a.x,s=a.y,l=a.width,u=a.height;r.destroy();var h=n;return Object(c["G"])(h)?h=[2,2,2,2]:Object(c["I"])(h)&&(h=new Array(4).fill(h)),{x:o-h[3],y:s-h[0],width:l+h[1]+h[3],height:u+h[0]+h[2],rotation:e.rotate||0}}}function Wi(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 qi(t,e){var n=t.getBBox();return Object(c["db"])(e,(function(t){var e=t.getBBox();return Wi(n,e,2)>0}))}function Ui(t,e,n){var i=n.data,r=n.origin,a=n.animateCfg,o=n.coordinate,s=Object(c["q"])(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(l,c){var u=e.getChildByIndex(c);if(u){l.set("data",i),l.set("origin",r),l.set("animateCfg",a),l.set("coordinate",o);var h=kt(l,u);s?mi(l,s,{toAttrs:h,coordinate:o}):l.attr(h),u.isGroup()&&Ui(l,u,n)}else t.removeChild(l),l.remove(!0)})),Object(c["j"])(e.getChildren(),(function(e,n){n>=t.getCount()&&(e.destroyed||t.add(e))}))}var $i=function(){function t(t){this.shapesMap={},this.lastShapesMap={};var e=t.layout,n=t.container;this.layout=e,this.container=n}return t.prototype.render=function(t,e,n){var i=this;void 0===n&&(n=!1),this.shapesMap={};var r=this.container,a=this.createOffscreenGroup();if(t.length){for(var o=0,s=t;o<s.length;o++){var u=s[o];u&&this.renderLabel(u,a)}this.doLayout(t,e),this.renderLabelLine(t),this.renderLabelBackground(t),this.adjustLabel(t)}var h=this.lastShapesMap,p=this.shapesMap;Object(c["j"])(p,(function(t,e){if(t.destroyed)delete p[e];else{if(h[e]){var a=t.get("data"),o=t.get("origin"),s=t.get("coordinate"),u=t.get("animateCfg"),f=h[e];Ui(f,p[e],{data:a,origin:o,animateCfg:u,coordinate:s}),i.shapesMap[e]=f}else{r.add(t);var d=Object(c["q"])(t.get("animateCfg"),n?"enter":"appear");d&&mi(t,d,{toAttrs:Object(l["a"])({},t.attr()),coordinate:t.get("coordinate")})}delete h[e]}})),Object(c["j"])(h,(function(t){var e=Object(c["q"])(t.get("animateCfg"),"leave");e?mi(t,e,{toAttrs:null,coordinate:t.get("coordinate")}):t.remove(!0)})),this.lastShapesMap=p,a.destroy()},t.prototype.clear=function(){this.container.clear(),this.shapesMap={},this.lastShapesMap={}},t.prototype.destroy=function(){this.container.destroy(),this.shapesMap=null,this.lastShapesMap=null},t.prototype.renderLabel=function(t,e){var n,i=t.id,r=t.elementId,a=t.data,o=t.mappingData,s=t.coordinate,u=t.animate,h=t.content,p={id:i,elementId:r,data:a,origin:Object(l["a"])(Object(l["a"])({},o),{data:o[v]}),coordinate:s},f=e.addGroup(Object(l["a"])({name:"label",animateCfg:!1!==this.animate&&null!==u&&!1!==u&&Object(c["h"])({},this.animate,u)},p));if(h.isGroup&&h.isGroup()||h.isShape&&h.isShape()){var d=h.getCanvasBBox(),g=d.width,m=d.height,y=Object(c["q"])(t,"textAlign","left"),b=t.x,x=t.y-m/2;"center"===y?b-=g/2:"right"!==y&&"end"!==y||(b-=g),Ni(h,b,x),n=h,f.add(h)}else{var O=Object(c["q"])(t,["style","fill"]);n=f.addShape("text",Object(l["a"])({attrs:Object(l["a"])(Object(l["a"])({x:t.x,y:t.y,textAlign:t.textAlign,textBaseline:Object(c["q"])(t,"textBaseline","middle"),text:t.content},t.style),{fill:Object(c["H"])(O)?t.color:O})},p))}t.rotate&&Vi(n,t.rotate),this.shapesMap[i]=f},t.prototype.doLayout=function(t,e){var n=this;if(this.layout){var i=Object(c["z"])(this.layout)?this.layout:[this.layout];Object(c["j"])(i,(function(i){var r=Si(Object(c["q"])(i,"type",""));if(r){var a=[],o=[];Object(c["j"])(n.shapesMap,(function(t,n){a.push(t),o.push(e[t.get("elementId")])})),r(t,a,o,n.region,i.cfg)}}))}},t.prototype.renderLabelLine=function(t){var e=this;Object(c["j"])(t,(function(t){var n=Object(c["q"])(t,"coordinate");if(t&&n){var i=n.getCenter(),r=n.getRadius();if(t.labelLine){var a=Object(c["q"])(t,"labelLine",{}),o=t.id,s=a.path;if(!s){var u=wt(i.x,i.y,r,t.angle);s=[["M",u.x,u.y],["L",t.x,t.y]]}var h=e.shapesMap[o];h.destroyed||h.addShape("path",{capture:!1,attrs:Object(l["a"])({path:s,stroke:t.color?t.color:Object(c["q"])(t,["style","fill"],"#000"),fill:null},a.style),id:o,origin:t.mappingData,data:t.data,coordinate:t.coordinate})}}}))},t.prototype.renderLabelBackground=function(t){var e=this;Object(c["j"])(t,(function(t){var n=Object(c["q"])(t,"coordinate"),i=Object(c["q"])(t,"background");if(i&&n){var r=t.id,a=e.shapesMap[r];if(!a.destroyed){var o=a.getChildren()[0];if(o){var s=Hi(a,t,i.padding),u=s.rotation,h=Object(l["c"])(s,["rotation"]),p=a.addShape("rect",{attrs:Object(l["a"])(Object(l["a"])({},h),i.style||{}),id:r,origin:t.mappingData,data:t.data,coordinate:t.coordinate});if(p.setZIndex(-1),u){var f=o.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){var e=this;Object(c["j"])(t,(function(t){if(t){var n=t.id,i=e.shapesMap[n];if(!i.destroyed){var r=i.findAll((function(t){return"path"!==t.get("type")}));Object(c["j"])(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}(),Zi=$i;function Qi(t){var e=0;return Object(c["j"])(t,(function(t){e+=t})),e/t.length}var Ji=function(){function t(t){this.geometry=t}return t.prototype.getLabelItems=function(t){var e=this,n=[],i=this.getLabelCfgs(t);return Object(c["j"])(t,(function(t,r){var a=i[r];if(!a||Object(c["G"])(t.x)||Object(c["G"])(t.y))n.push(null);else{var o=Object(c["z"])(a.content)?a.content:[a.content];a.content=o;var s=o.length;Object(c["j"])(o,(function(i,r){if(Object(c["G"])(i)||""===i)n.push(null);else{var o=Object(l["a"])(Object(l["a"])({},a),e.getLabelPoint(a,t,r));o.textAlign||(o.textAlign=e.getLabelAlign(o,r,s)),o.offset<=0&&(o.labelLine=null),n.push(o)}}))}})),n},t.prototype.render=function(t,e){void 0===e&&(e=!1);var n=this.getLabelItems(t),i=this.getLabelsRenderer(),r=this.getGeometryShapes();i.render(n,r,e)},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(c["q"])(r,"innerLabels",{}):Object(c["q"])(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(c["h"])({},i,a.innerLabels,t):Object(c["h"])({},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,l={x:0,y:0};return l[o]=e>0||1===n?i*s:i*s*-1,l},t.prototype.getLabelPoint=function(t,e,n){var i=this.getCoordinate(),r=t.content.length;function a(e,n,i){void 0===i&&(i=!1);var r=e;return Object(c["z"])(r)&&(r=1===t.content.length?i?Qi(r):r.length<=2?r[e.length-1]:Qi(r):r[n]),r}var o={content:t.content[n],x:0,y:0,start:{x:0,y:0},color:"#fff"},s=Object(c["z"])(e.shape)?e.shape[0]:e.shape,l="funnel"===s||"pyramid"===s;if("polygon"===this.geometry.type){var u=It(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(c["q"])(e,"nextPoints"),p=Object(c["q"])(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"===s){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[v],o=e.getElementId(t);return"line"===n||"area"===n?o+=" "+a[i.field]:"path"===n&&(o+=" "+a[i.field]+"-"+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 Zi({container:e,layout:Object(c["q"])(n,["cfg","layout"],{type:this.defaultLayout})}),this.labelsRenderer=o),o.region=i,o.animate=!!r&&vi("label",a),o},t.prototype.getLabelCfgs=function(t){var e=this,n=this.geometry,i=n.labelOption,r=n.scales,a=n.coordinate,o=i,s=o.fields,u=o.callback,h=o.cfg,p=s.map((function(t){return r[t]})),f=[];return Object(c["j"])(t,(function(t,n){var i,r=t[v],o=e.getLabelText(r,p);if(u){var d=s.map((function(t){return r[t]}));if(i=u.apply(void 0,d),Object(c["G"])(i))return void f.push(null)}var g=Object(l["a"])(Object(l["a"])({id:e.getLabelId(t),elementId:e.geometry.getElementId(t),data:r,mappingData:t,coordinate:a},h),i);Object(c["F"])(g.position)&&(g.position=g.position(r,t,n));var m=e.getLabelOffset(g.offset||0),y=e.getDefaultLabelCfg(m,g.position);g=Object(c["h"])({},y,g),g.offset=e.getLabelOffset(g.offset||0);var b=g.content;Object(c["F"])(b)?g.content=b(r,t,n):Object(c["N"])(b)&&(g.content=o[0]),f.push(g)})),f},t.prototype.getLabelText=function(t,e){var n=[];return Object(c["j"])(e,(function(e){var i=t[e.field];i=Object(c["z"])(i)?i.map((function(t){return e.getText(t)})):e.getText(i),Object(c["G"])(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(c["I"])(t)&&(n=t),e.isTransposed?e.applyMatrix(n,0):e.applyMatrix(0,n)},t.prototype.getGeometryShapes=function(){var t=this.geometry,e={};return Object(c["j"])(t.elementsMap,(function(t,n){e[n]=t.shape})),Object(c["j"])(t.getOffscreenGroup().getChildren(),(function(n){var i=t.getElementId(n.get("origin").mappingData);e[i]=n})),e},t}(),Ki=Ji;n("5977");function tr(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(l["d"])([e],r)).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]]}},nr=["line","cross","tick","plus","hyphen"];function ir(t,e){var n=t.symbol;Object(c["M"])(n)&&-1!==nr.indexOf(n)&&(t.style=Object(c["h"])({},t.style,{lineWidth:1,stroke:e,fill:null}))}function rr(t){var e=t.symbol;Object(c["M"])(e)&&er[e]&&(t.symbol=er[e])}function ar(t){return t.startsWith(r.LEFT)||t.startsWith(r.RIGHT)?"vertical":"horizontal"}function or(t,e,n,i,r){var a=n.getScale(n.type);if(a.isCategory){var o=a.field,s=e.getAttribute("color"),l=e.getAttribute("shape"),u=t.getTheme().defaultColor,h=e.coordinate.isPolar;return a.getTicks().map((function(n){var p,f=n.text,d=n.value,g=f,v=a.invert(d),m=0===t.filterFieldData(o,[(p={},p[o]=v,p)]).length;Object(c["j"])(t.views,(function(t){var e;t.filterFieldData(o,[(e={},e[o]=v,e)]).length||(m=!0)}));var y=tr(s,v,u),b=tr(l,v,"point"),x=e.getShapeMarker(b,{color:y,isInPolar:h});return x=Object(c["h"])({},i,x,r),ir(x,y),rr(x),{id:v,name:g,value:v,marker:x,unchecked:m}}))}return[]}function sr(t,e,n){return n.map((function(n){var i=Object(c["h"])({},t,e,n.marker);return rr(i),n.marker=i,n}))}var lr={100:"#000",95:"#0D0D0D",85:"#262626",65:"#595959",45:"#8C8C8C",25:"#BFBFBF",15:"#D9D9D9",6:"#F0F0F0"},cr={100:"#FFFFFF",95:"#F2F2F2",85:"#D9D9D9",65:"#A6A6A6",45:"#737373",25:"#404040",15:"#262626",6:"#0F0F0F"},ur=["#5B8FF9","#5AD8A6","#5D7092","#F6BD16","#E86452","#6DC8EC","#945FB9","#FF9845","#1E9493","#FF99C3"],hr=["#5B8FF9","#CDDDFD","#5AD8A6","#CDF3E4","#5D7092","#CED4DE","#F6BD16","#FCEBB9","#E86452","#F8D0CB","#6DC8EC","#D3EEF9","#945FB9","#DECFEA","#FF9845","#FFE0C7","#1E9493","#BBDEDE","#FF99C3","#FFE0ED"],pr=function(t){void 0===t&&(t={});var e=t.backgroundColor,n=void 0===e?"#141414":e,i=t.paletteQualitative10,r=void 0===i?ur:i,a=t.paletteQualitative20,o=void 0===a?hr:a,s=t.paletteSemanticRed,l=void 0===s?"#F4664A":s,c=t.paletteSemanticGreen,u=void 0===c?"#30BF78":c,h=t.paletteSemanticYellow,p=void 0===h?"#FAAD14":h,f=t.fontFamily,d=void 0===f?'"-apple-system", "Segoe UI", Roboto, "Helvetica Neue", Arial,\n    "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",\n    "Noto Color Emoji"':f,g=t.brandColor,v=void 0===g?r[0]:g;return{backgroundColor:n,brandColor:v,paletteQualitative10:r,paletteQualitative20:o,paletteSemanticRed:l,paletteSemanticGreen:u,paletteSemanticYellow:p,fontFamily:d,axisLineBorderColor:cr[25],axisLineBorder:1,axisLineDash:null,axisTitleTextFillColor:cr[65],axisTitleTextFontSize:12,axisTitleTextLineHeight:12,axisTitleTextFontWeight:"normal",axisTitleSpacing:12,axisTickLineBorderColor:cr[25],axisTickLineLength:4,axisTickLineBorder:1,axisSubTickLineBorderColor:cr[15],axisSubTickLineLength:2,axisSubTickLineBorder:1,axisLabelFillColor:cr[45],axisLabelFontSize:12,axisLabelLineHeight:12,axisLabelFontWeight:"normal",axisLabelOffset:8,axisGridBorderColor:cr[15],axisGridBorder:1,axisGridLineDash:null,legendTitleTextFillColor:cr[45],legendTitleTextFontSize:12,legendTitleTextLineHeight:21,legendTitleTextFontWeight:"normal",legendMarkerColor:ur[0],legendMarkerSpacing:8,legendMarkerSize:4,legendCircleMarkerSize:4,legendSquareMarkerSize:4,legendLineMarkerSize:5,legendItemNameFillColor:cr[65],legendItemNameFontSize:12,legendItemNameLineHeight:12,legendItemNameFontWeight:"normal",legendItemSpacing:24,legendItemMarginBottom:12,legendSpacing:16,legendPadding:[8,8,8,8],legendHorizontalPadding:[8,0,8,0],legendVerticalPadding:[0,8,0,8],sliderRailFillColor:cr[15],sliderRailBorder:0,sliderRailBorderColor:null,sliderRailWidth:100,sliderRailHeight:12,sliderLabelTextFillColor:cr[45],sliderLabelTextFontSize:12,sliderLabelTextLineHeight:12,sliderLabelTextFontWeight:"normal",sliderHandlerFillColor:lr[6],sliderHandlerWidth:10,sliderHandlerHeight:14,sliderHandlerBorder:1,sliderHandlerBorderColor:lr[25],annotationArcBorderColor:cr[15],annotationArcBorder:1,annotationLineBorderColor:cr[25],annotationLineBorder:1,annotationLineDash:null,annotationTextFillColor:cr[65],annotationTextFontSize:12,annotationTextLineHeight:12,annotationTextFontWeight:"normal",annotationTextBorderColor:null,annotationTextBorder:0,annotationRegionFillColor:cr[100],annotationRegionFillOpacity:.06,annotationRegionBorder:0,annotationRegionBorderColor:null,annotationDataMarkerLineLength:16,tooltipCrosshairsBorderColor:cr[25],tooltipCrosshairsBorder:1,tooltipCrosshairsLineDash:null,tooltipContainerFillColor:"#1f1f1f",tooltipContainerFillOpacity:.95,tooltipContainerShadow:"0px 2px 4px rgba(0,0,0,.5)",tooltipContainerBorderRadius:3,tooltipTextFillColor:cr[65],tooltipTextFontSize:12,tooltipTextLineHeight:12,tooltipTextFontWeight:"bold",labelFillColor:cr[65],labelFillColorDark:"#2c3542",labelFillColorLight:"#ffffff",labelFontSize:12,labelLineHeight:12,labelFontWeight:"normal",labelBorderColor:null,labelBorder:0,innerLabelFillColor:lr[100],innerLabelFontSize:12,innerLabelLineHeight:12,innerLabelFontWeight:"normal",innerLabelBorderColor:null,innerLabelBorder:0,overflowLabelFillColor:cr[65],overflowLabelFillColorDark:"#2c3542",overflowLabelFillColorLight:"#ffffff",overflowLabelFontSize:12,overflowLabelLineHeight:12,overflowLabelFontWeight:"normal",overflowLabelBorderColor:lr[100],overflowLabelBorder:1,labelLineBorder:1,labelLineBorderColor:cr[25],pointFillColor:ur[0],pointFillOpacity:.95,pointSize:4,pointBorder:1,pointBorderColor:lr[100],pointBorderOpacity:1,pointActiveBorderColor:cr[100],pointSelectedBorder:2,pointSelectedBorderColor:cr[100],pointInactiveFillOpacity:.3,pointInactiveBorderOpacity:.3,hollowPointSize:4,hollowPointBorder:1,hollowPointBorderColor:ur[0],hollowPointBorderOpacity:.95,hollowPointFillColor:lr[100],hollowPointActiveBorder:1,hollowPointActiveBorderColor:cr[100],hollowPointActiveBorderOpacity:1,hollowPointSelectedBorder:2,hollowPointSelectedBorderColor:cr[100],hollowPointSelectedBorderOpacity:1,hollowPointInactiveBorderOpacity:.3,lineBorder:2,lineBorderColor:ur[0],lineBorderOpacity:1,lineActiveBorder:3,lineSelectedBorder:3,lineInactiveBorderOpacity:.3,areaFillColor:ur[0],areaFillOpacity:.25,areaActiveFillColor:ur[0],areaActiveFillOpacity:.5,areaSelectedFillColor:ur[0],areaSelectedFillOpacity:.5,areaInactiveFillOpacity:.3,hollowAreaBorderColor:ur[0],hollowAreaBorder:2,hollowAreaBorderOpacity:1,hollowAreaActiveBorder:3,hollowAreaActiveBorderColor:cr[100],hollowAreaSelectedBorder:3,hollowAreaSelectedBorderColor:cr[100],hollowAreaInactiveBorderOpacity:.3,intervalFillColor:ur[0],intervalFillOpacity:.95,intervalActiveBorder:1,intervalActiveBorderColor:cr[100],intervalActiveBorderOpacity:1,intervalSelectedBorder:2,intervalSelectedBorderColor:cr[100],intervalSelectedBorderOpacity:1,intervalInactiveBorderOpacity:.3,intervalInactiveFillOpacity:.3,hollowIntervalBorder:2,hollowIntervalBorderColor:ur[0],hollowIntervalBorderOpacity:1,hollowIntervalFillColor:lr[100],hollowIntervalActiveBorder:2,hollowIntervalActiveBorderColor:cr[100],hollowIntervalSelectedBorder:3,hollowIntervalSelectedBorderColor:cr[100],hollowIntervalSelectedBorderOpacity:1,hollowIntervalInactiveBorderOpacity:.3}},fr=pr(),dr=n("53c8"),gr=n("bfb1");function vr(t){return!t&&(null===t||void 0===t||isNaN(t))}function mr(t){if(Object(c["z"])(t))return vr(t[1].y);var e=t.y;return Object(c["z"])(e)?vr(e[0]):vr(e)}function yr(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;r<a;r++){var o=t[r];mr(o)||i.push(o)}return[i]}var s=[],l=[];for(r=0,a=t.length;r<a;r++){o=t[r];mr(o)?l.length&&((1!==l.length||n)&&s.push(l),l=[]):l.push(o)}return l.length&&s.push(l),s}function br(t,e,n,i){void 0===i&&(i="");var r=t.style,a=void 0===r?{}:r,o=t.defaultStyle,s=t.color,u=t.size,h=Object(l["a"])(Object(l["a"])({},o),a);return s&&(e&&(a.stroke||(h.stroke=s)),n&&(a.fill||(h.fill=s))),i&&Object(c["G"])(a[i])&&!Object(c["G"])(u)&&(h[i]=u),h}function xr(t){return Object(c["h"])({},{fill:"#CCD6EC",fillOpacity:.3},Object(c["q"])(t,["background","style"]))}function Or(t){var e=t.x,n=Object(c["z"])(t.y)?t.y:[t.y];return n.map((function(t,n){return{x:Object(c["z"])(e)?e[n]:e,y:t}}))}var jr={line:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dot:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},dash:function(t,e,n){return[["M",t-n,e],["L",t+n,e]]},smooth:function(t,e,n){return[["M",t-n,e],["A",n/2,n/2,0,1,1,t,e],["A",n/2,n/2,0,1,0,t+n,e]]},hv:function(t,e,n){return[["M",t-n-1,e-2.5],["L",t,e-2.5],["L",t,e+2.5],["L",t+n+1,e+2.5]]},vh:function(t,e,n){return[["M",t-n-1,e+2.5],["L",t,e+2.5],["L",t,e-2.5],["L",t+n+1,e-2.5]]},hvh:function(t,e,n){return[["M",t-(n+1),e+2.5],["L",t-n/2,e+2.5],["L",t-n/2,e-2.5],["L",t+n/2,e-2.5],["L",t+n/2,e+2.5],["L",t+n+1,e+2.5]]},vhv:function(t,e){return[["M",t-5,e+2.5],["L",t-5,e],["L",t,e],["L",t,e-3],["L",t,e+3],["L",t+6.5,e+3]]}};function wr(t,e){var n=t.color;return{symbol:jr[e],style:{lineWidth:2,r:6,stroke:n}}}function Cr(t,e,n){for(var i=t.isStack,r=t.connectNulls,a=t.isInCircle,o=t.showSinglePoint,s=br(t,!0,!1,"lineWidth"),l=yr(t.points,r,o),c=[],u=0,h=l.length;u<h;u++){var p=l[u];c=c.concat(Ir(p,a,i,e,n,s))}return s.path=c,s}function Mr(t,e,n,i,r){return 1===t.length?[["M",t[0].x,t[0].y-r.lineWidth/2],["L",t[0].x,t[0].y],["L",t[0].x,t[0].y+r.lineWidth/2]]:(n?(e&&t.length&&t.push({x:t[0].x,y:t[0].y}),a=Ce(t,!1,i)):(a=we(t,!1),e&&a.push(["Z"])),a);var a}function Sr(t,e,n,i,r,a){var o=[],s=[];Object(c["j"])(t,(function(t){var e=Or(t);o.push(e[1]),s.push(e[0])}));var l=Mr(o,e,i,r,a),u=Mr(s,e,i,r,a);return n?l:l.concat(u)}function Ir(t,e,n,i,r,a){if(t.length){var o=t[0];return Object(c["z"])(o.y)?Sr(t,e,n,i,r,a):Mr(t,e,i,r,a)}return[]}Li("line",{defaultShapeType:"line"});Object(c["j"])(["line","dot","dash","smooth"],(function(t){Pi("line",t,{draw:function(e,n){var i,r="smooth"===t;if(r){var a=this.coordinate,o=a.start,s=a.end;i=[[o.x,s.y],[s.x,o.y]]}var l=Cr(e,r,i),c=n.addShape({type:"path",attrs:l,name:"line"});return c},getMarker:function(e){return wr(e,t)}})}));var kr=function(t){function e(e){var n=t.call(this,e)||this;n.type="path",n.shapeType="line";var i=e.connectNulls,r=void 0!==i&&i,a=e.showSinglePoint,o=void 0===a||a;return n.connectNulls=r,n.showSinglePoint=o,n}return Object(l["b"])(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var i=this,r=i.lastElementsMap,a=i.elementsMap,o=i.elements,s=i.container,l=this.getElementId(t),c=this.getShapeInfo(t),u=r[l];if(u){var h=u.getModel();(this.isCoordinateChanged||Fi(h,c))&&(u.animate=this.animateOption,u.update(c)),delete r[l]}else{var p=this.getShapeFactory();u=new Oi({shapeFactory:p,container:s,offscreenGroup:this.getOffscreenGroup()}),u.geometry=this,u.animate=this.animateOption,u.draw(c,n)}return o.push(u),a[l]=u,o},e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var a=t[i];e.push({x:a.x,y:a.y}),n.push(a[v])}return{points:e,data:n}},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]),n=this.getPointsAndData(t),i=n.points,r=n.data;return e.mappingData=t,e.data=r,e.isStack=!!this.getAdjust("stack"),e.points=i,e.connectNulls=this.connectNulls,e.showSinglePoint=this.showSinglePoint,e},e}(Gi),Tr=kr;function Ar(t,e,n,i,r){var a=[];if(t.length){for(var o=[],s=[],l=0,u=t.length;l<u;l++){var h=t[l];o.push(h[1]),s.push(h[0])}s=s.reverse(),Object(c["j"])([o,s],(function(t,l){var c=[],u=i.parsePoints(t),h=u[0];1===o.length&&1===s.length?c=0===l?[["M",h.x-.5,h.y],["L",h.x+.5,h.y]]:[["L",h.x+.5,h.y],["L",h.x-.5,h.y]]:(e&&u.push({x:h.x,y:h.y}),c=n?Ce(u,!1,r):we(u,!1),l>0&&(c[0][0]="L")),a=a.concat(c)})),a.push(["Z"])}return a}function Lr(t,e,n,i,r){for(var a=br(t,e,!e,"lineWidth"),o=t.connectNulls,s=t.isInCircle,l=t.points,c=t.showSinglePoint,u=yr(l,o,c),h=[],p=0,f=u.length;p<f;p++){var d=u[p];h=h.concat(Ar(d,s,n,i,r))}return a.path=h,a}function Pr(t){var e=t.start,n=t.end;return[[e.x,n.y],[n.x,e.y]]}Li("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=t.x,n=t.y0,i=Object(c["z"])(t.y)?t.y:[n,t.y];return i.map((function(t){return{x:e,y:t}}))}});Pi("area","area",{draw:function(t,e){var n=Lr(t,!1,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}});var Br=function(t){function e(e){var n=t.call(this,e)||this;n.type="area",n.shapeType="area",n.generatePoints=!0,n.startOnZero=!0;var i=e.startOnZero,r=void 0===i||i,a=e.sortable,o=void 0!==a&&a,s=e.showSinglePoint,l=void 0!==s&&s;return n.startOnZero=r,n.sortable=o,n.showSinglePoint=l,n}return Object(l["b"])(e,t),e.prototype.getPointsAndData=function(t){for(var e=[],n=[],i=0,r=t.length;i<r;i++){var a=t[i];e.push(a.points),n.push(a[v])}return{points:e,data:n}},e.prototype.getYMinValue=function(){if(this.startOnZero)return t.prototype.getYMinValue.call(this);var e=this.getYScale();return e.min},e}(Tr),Er=Br;Li("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return Or(t)}});Pi("edge","line",{draw:function(t,e){var n=br(t,!0,!1,"lineWidth"),i=we(this.parsePoints(t.points),this.coordinate.isPolar);return e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},n),{path:i})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var Fr=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e}return Object(l["b"])(e,t),e}(Gi),Dr=Fr,_r=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="heatmap",e.paletteCache={},e}return Object(l["b"])(e,t),e.prototype.createElements=function(t,e,n){void 0===n&&(n=!1);var i=this.prepareRange(t),r=this.prepareSize(),a=Object(c["q"])(this.styleOption,["style","shadowBlur"]);return Object(c["I"])(a)||(a=r/2),this.prepareGreyScaleBlurredCircle(r,a),this.drawWithRange(t,i,r,a),null},e.prototype.clear=function(){t.prototype.clear.call(this),this.clearShadowCanvasCtx(),this.paletteCache={}},e.prototype.prepareRange=function(t){var e=this.getAttribute("color"),n=e.getFields()[0],i=1/0,r=-1/0;return t.forEach((function(t){var e=t[v][n];e>r&&(r=e),e<i&&(i=e)})),i===r&&(i=r-1),[i,r]},e.prototype.prepareSize=function(){var t=this.getDefaultValue("size");return Object(c["I"])(t)||(t=this.getDefaultSize()),t},e.prototype.prepareGreyScaleBlurredCircle=function(t,e){var n=this.getGrayScaleBlurredCanvas(),i=t+e,r=n.getContext("2d");n.width=n.height=2*i,r.clearRect(0,0,n.width,n.height),r.shadowOffsetX=r.shadowOffsetY=2*i,r.shadowBlur=e,r.shadowColor="black",r.beginPath(),r.arc(-i,-i,t,0,2*Math.PI,!0),r.closePath(),r.fill()},e.prototype.drawWithRange=function(t,e,n,i){var r=this.coordinate,a=r.start,o=r.end,s=this.coordinate.getWidth(),l=this.coordinate.getHeight(),c=this.getAttribute("color"),u=c.getFields()[0];this.clearShadowCanvasCtx();var h=this.getShadowCanvasCtx();e&&(t=t.filter((function(t){return t[v][u]<=e[1]&&t[v][u]>=e[0]})));for(var p=this.scales[u],f=0,d=t;f<d.length;f++){var g=d[f],m=this.getDrawCfg(g),y=m.x,b=m.y,x=p.scale(g[v][u]);this.drawGrayScaleBlurredCircle(y-a.x,b-o.y,n+i,x,h)}var O=h.getImageData(0,0,s,l);this.clearShadowCanvasCtx(),this.colorize(O),h.putImageData(O,0,0);var j=this.getImageShape();j.attr("x",a.x),j.attr("y",o.y),j.attr("width",s),j.attr("height",l),j.attr("img",h.canvas),j.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;r<n.length;r+=4){var a=n[r];if(Object(c["I"])(a)){var o=i[a]?i[a]:R["a"].rgb2arr(e.gradient(a/256));n[r-3]=o[0],n[r-2]=o[1],n[r-1]=o[2],n[r]=a}}},e.prototype.getImageShape=function(){var t=this.imageShape;if(t)return t;var e=this.container;return t=e.addShape({type:"image",attrs:{}}),this.imageShape=t,t},e.prototype.getShapeInfo=function(t){var e=this.getDrawCfg(t[0]);return Object(l["a"])(Object(l["a"])({},e),{mappingData:t,data:this.getData(t)})},e.prototype.getData=function(t){return t.map((function(t){return t[v]}))},e}(Gi),Rr=_r;function Gr(t,e){void 0===e&&(e=!1);var n,i,r,a,o=t.x,s=t.y,l=t.y0,u=t.size;Object(c["z"])(s)?(n=s[0],i=s[1]):(n=l,i=s),Object(c["z"])(o)?(r=o[0],a=o[1]):(r=o-u/2,a=o+u/2);var h=[{x:r,y:n},{x:r,y:i}];return e?h.push({x:a,y:(i+n)/2}):h.push({x:a,y:i},{x:a,y:n}),h}function Yr(t,e){void 0===e&&(e=!0);var n=[],i=t[0];n.push(["M",i.x,i.y]);for(var r=1,a=t.length;r<a;r++)n.push(["L",t[r].x,t[r].y]);return e&&(n.push(["L",i.x,i.y]),n.push(["z"])),n}function Nr(t,e){var n=0,i=0,r=0,a=0;return Object(c["z"])(t)?1===t.length?n=i=r=a=t[0]:2===t.length?(n=r=t[0],i=a=t[1]):3===t.length?(n=t[0],i=a=t[1],r=t[2]):(n=t[0],i=t[1],r=t[2],a=t[3]):n=i=r=a=t,n+i>e&&(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 zr(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},o=Object(c["q"])(t,["background","style","radius"]);if(o){var s=n.isTransposed?Math.abs(e[0].y-e[2].y):e[2].x-e[1].x,l=n.isTransposed?n.getWidth():n.getHeight(),u=Nr(o,Math.min(s,l)),h=u[0],p=u[1],f=u[2],d=u[3];i.push(["M",r.x,a.y+h]),0!==h&&i.push(["A",h,h,0,0,1,r.x+h,a.y]),i.push(["L",a.x-p,a.y]),0!==p&&i.push(["A",p,p,0,0,1,a.x,a.y+p]),i.push(["L",a.x,r.y-f]),0!==f&&i.push(["A",f,f,0,0,1,a.x-f,r.y]),i.push(["L",r.x+d,r.y]),0!==d&&i.push(["A",d,d,0,0,1,r.x,r.y-d])}else i.push(["M",r.x,r.y]),i.push(["L",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 g=n.getCenter(),v=St(t,n),m=v.startAngle,y=v.endAngle;if("theta"===n.type||n.isTransposed){var b=function(t){return Math.pow(t,2)};h=Math.sqrt(b(g.x-e[0].x)+b(g.y-e[0].y)),p=Math.sqrt(b(g.x-e[2].x)+b(g.y-e[2].y));i=Ct(g.x,g.y,h,n.startAngle,n.endAngle,p)}else i=Ct(g.x,g.y,n.getRadius(),m,y)}return i}function Vr(t,e,n){var i=n.getWidth(),r=n.getHeight(),a="rect"===n.type,o=[],s=(t[2].x-t[1].x)/2,l=n.isTransposed?s*r/i:s*i/r;return"round"===e?(a?(o.push(["M",t[0].x,t[0].y+l]),o.push(["L",t[1].x,t[1].y-l]),o.push(["A",s,s,0,0,1,t[2].x,t[2].y-l]),o.push(["L",t[3].x,t[3].y+l]),o.push(["A",s,s,0,0,1,t[0].x,t[0].y+l])):(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=Yr(t),o}function Xr(t,e,n){var i=[];return Object(c["G"])(e)?n?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[2].x,t[2].y],["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}Li("interval",{defaultShapeType:"rect",getDefaultPoints:function(t){return Gr(t)}});Pi("interval","rect",{draw:function(t,e){var n=br(t,!1,!0),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var a=xr(t),o=zr(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},a),{path:o}),zIndex:-1,name:bi})}var s=this.parsePath(Vr(t.points,n.lineCap,this.coordinate)),c=i.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},n),{path:s}),name:"interval"});return r?i:c},getMarker:function(t){var e=t.color,n=t.isInPolar;return n?{symbol:"circle",style:{r:4.5,fill:e}}:{symbol:"square",style:{r:4,fill:e}}}});function Hr(t,e){var n=t.length,i=t;Object(c["M"])(i[0])&&(i=t.map((function(t){return e.translate(t)})));for(var r=i[1]-i[0],a=2;a<n;a++){var o=i[a]-i[a-1];r>o&&(r=o)}return r}function Wr(t,e){if(e){var n=Object(c["p"])(t),i=Object(c["nb"])(n,e);return i.length}return t.length}function qr(t){var e=t.theme,n=t.coordinate,i=t.getXScale(),r=i.values,a=t.beforeMappingData,o=r.length,s=Ft(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=Hr(r,i);o=(i.max-i.min)/v,r.length>o&&(o=r.length)}var m=i.range,y=1/o,b=1;if(n.isPolar?b=n.isTransposed&&o>1?d:g:(i.isLinear&&(y*=m[1]-m[0]),b=f),!Object(c["G"])(l)&&l>=0){var x=l/s;y=(1-(o-1)*x)/o}else y*=b;if(t.getAdjust("dodge")){var O=t.getAdjust("dodge"),j=O.dodgeBy,w=Wr(a,j);if(!Object(c["G"])(u)&&u>=0){var C=u/s;y=(y-C*(w-1))/w}else!Object(c["G"])(l)&&l>=0?(y*=b,y/=w):y/=w;y=y>=0?y:0}if(!Object(c["G"])(h)&&h>=0){var M=h/s;y>M&&(y=M)}if(!Object(c["G"])(p)&&p>=0){var S=p/s;y<S&&(y=S)}return y}var Ur=function(t){function e(e){var n=t.call(this,e)||this;n.type="interval",n.shapeType="interval",n.generatePoints=!0;var i=e.background;return n.background=i,n}return Object(l["b"])(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var a=this.coordinate,o=Ft(a);n/=o}else this.defaultSize||(this.defaultSize=qr(this)),n=this.defaultSize;return i.size=n,i},e.prototype.adjustScale=function(){t.prototype.adjustScale.call(this);var e=this.getYScale();if("theta"===this.coordinate.type)e.change({nice:!1,min:0,max:Math.max(Math.max.apply(null,e.values),e.max)});else{var n=this.scaleDefs,i=e.field,r=e.min,a=e.max,o=e.type;"time"!==o&&(r>0&&!Object(c["q"])(n,[i,"min"])&&e.change({min:0}),a<=0&&!Object(c["q"])(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}(Gi),$r=Ur,Zr=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(l["b"])(e,t),e}(Tr),Qr=Zr,Jr=["circle","square","bowtie","diamond","hexagon","triangle","triangle-down"],Kr=["cross","tick","plus","hyphen","line"];function ta(t,e,n,i,r){var a=br(e,r,!r,"r"),o=t.parsePoints(e.points),s=o[0];if(e.isStack)s=o[1];else if(o.length>1){for(var c=n.addGroup(),u=0,h=o;u<h.length;u++){var p=h[u];c.addShape({type:"marker",attrs:Object(l["a"])(Object(l["a"])(Object(l["a"])({},a),{symbol:er[i]||i}),p)})}return c}return n.addShape({type:"marker",attrs:Object(l["a"])(Object(l["a"])(Object(l["a"])({},a),{symbol:er[i]||i}),s)})}Li("point",{defaultShapeType:"hollow-circle",getDefaultPoints:function(t){return Or(t)}});Object(c["j"])(Jr,(function(t){Pi("point","hollow-"+t,{draw:function(e,n){return ta(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 ea=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(l["b"])(e,t),e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return Object(l["a"])(Object(l["a"])({},n),{isStack:!!this.getAdjust("stack")})},e}(Gi),na=ea;function ia(t){var e=t[0],n=1,i=[["M",e.x,e.y]];while(n<t.length){var r=t[n];r.x===t[n-1].x&&r.y===t[n-1].y||(i.push(["L",r.x,r.y]),r.x===e.x&&r.y===e.y&&n<t.length-1&&(e=t[n+1],i.push(["Z"]),i.push(["M",e.x,e.y]),n++)),n++}return Object(c["E"])(Object(c["P"])(i),e)||i.push(["L",e.x,e.y]),i.push(["Z"]),i}Li("polygon",{defaultShapeType:"polygon",getDefaultPoints:function(t){var e=[];return Object(c["j"])(t.x,(function(n,i){var r=t.y[i];e.push({x:n,y:r})})),e}});Pi("polygon","polygon",{draw:function(t,e){if(!Object(c["D"])(t.points)){var n=br(t,!0,!0),i=this.parsePath(ia(t.points));return e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},n),{path:i}),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}});var ra=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e}return Object(l["b"])(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=i.x,a=i.y;if(!Object(c["z"])(r)||!Object(c["z"])(a)){var o=this.getXScale(),s=this.getYScale(),l=o.values.length,u=s.values.length,h=.5/l,p=.5/u;o.isCategory&&s.isCategory?(r=[r-h,r-h,r+h,r+h],a=[a-p,a+p,a+p,a-p]):Object(c["z"])(r)?(n=r,r=[n[0],n[0],n[1],n[1]],a=[a-p/2,a+p/2,a+p/2,a-p/2]):Object(c["z"])(a)&&(n=a,a=[n[0],n[1],n[1],n[0]],r=[r-h/2,r-h/2,r+h/2,r+h/2]),i.x=r,i.y=a}return i},e}(Gi),aa=ra,oa=(Li("schema",{defaultShapeType:""}),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e}return Object(l["b"])(e,t),e.prototype.createShapePointsCfg=function(e){var n,i=t.prototype.createShapePointsCfg.call(this,e),r=this.getAttribute("size");if(r){n=this.getAttributeValues(r,e)[0];var a=this.coordinate,o=Ft(a);n/=o}else this.defaultSize||(this.defaultSize=qr(this)),n=this.defaultSize;return i.size=n,i},e}(Gi)),sa=oa;function la(t,e){return["C",1*t.x/2+1*e.x/2,t.y,1*t.x/2+1*e.x/2,e.y,e.x,e.y]}function ca(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var i=["Q"];return Object(c["j"])(n,(function(t){i.push(t.x,t.y)})),i}function ua(t,e,n){var i=ca(e,n),r=[["M",t.x,t.y]];return r.push(i),r}function ha(t,e){var n=ca(t[1],e),i=ca(t[3],e),r=[["M",t[0].x,t[0].y]];return r.push(i),r.push(["L",t[3].x,t[3].y]),r.push(["L",t[2].x,t[2].y]),r.push(n),r.push(["L",t[1].x,t[1].y]),r.push(["L",t[0].x,t[0].y]),r.push(["Z"]),r}function pa(t,e){var n=la(t,e),i=[["M",t.x,t.y]];return i.push(n),i}Pi("area","line",{draw:function(t,e){var n=Lr(t,!0,!1,this),i=e.addShape({type:"path",attrs:n,name:"area"});return i},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),Pi("area","smooth",{draw:function(t,e){var n=this.coordinate,i=Lr(t,!1,!0,this,Pr(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,fill:e}}}}),Pi("area","smooth-line",{draw:function(t,e){var n=this.coordinate,i=Lr(t,!0,!0,this,Pr(n)),r=e.addShape({type:"path",attrs:i,name:"area"});return r},getMarker:function(t){var e=t.color;return{symbol:function(t,e,n){return void 0===n&&(n=5.5),[["M",t-n,e-4],["L",t+n,e-4],["L",t+n,e+4],["L",t-n,e+4],["Z"]]},style:{r:5,stroke:e,fill:null}}}}),Pi("edge","arc",{draw:function(t,e){var n,i=br(t,!0,!1,"lineWidth"),r=t.points,a=r.length>2?"weight":"normal";if(t.isInCircle){var o={x:0,y:1};return"normal"===a?n=ua(r[0],r[1],o):(i.fill=i.stroke,n=ha(r,o)),n=this.parsePath(n),e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},i),{path:n})})}if("normal"===a)return r=this.parsePoints(r),n=Mt((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(l["a"])(Object(l["a"])({},i),{path:n})});var s=la(r[1],r[3]),c=la(r[2],r[0]);return n=[["M",r[0].x,r[0].y],["L",r[1].x,r[1].y],s,["L",r[3].x,r[3].y],["L",r[2].x,r[2].y],c,["Z"]],n=this.parsePath(n),i.fill=i.stroke,e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},i),{path:n})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Pi("edge","smooth",{draw:function(t,e){var n=br(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(pa(i[0],i[1]));return e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}});var fa=1/3;function da(t,e){var n=[];n.push({x:t.x,y:t.y*(1-fa)+e.y*fa}),n.push({x:e.x,y:t.y*(1-fa)+e.y*fa}),n.push(e);var i=[["M",t.x,t.y]];return Object(c["j"])(n,(function(t){i.push(["L",t.x,t.y])})),i}function ga(t){var e=t.x,n=t.y,i=t.y0;return Object(c["z"])(n)?n.map((function(t,n){return{x:Object(c["z"])(e)?e[n]:e,y:t}})):[{x:e,y:i},{x:e,y:n}]}function va(t){var e,n,i=t.x,r=t.y,a=t.y0,o=t.size;Object(c["z"])(r)?(e=r[0],n=r[1]):(e=a,n=r);var s=i+o/2,l=i-o/2;return[{x:i,y:e},{x:i,y:n},{x:l,y:e},{x:s,y:e},{x:l,y:n},{x:s,y:n}]}function ma(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]]}Pi("edge","vhv",{draw:function(t,e){var n=br(t,!0,!1,"lineWidth"),i=t.points,r=this.parsePath(da(i[0],i[1]));return e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},n),{path:r})})},getMarker:function(t){return{symbol:"circle",style:{r:4.5,fill:t.color}}}}),Pi("interval","funnel",{getPoints:function(t){return t.size=2*t.size,Gr(t)},draw:function(t,e){var n=br(t,!1,!0),i=this.parsePath(Xr(t.points,t.nextPoints,!1)),r=e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Pi("interval","hollow-rect",{draw:function(t,e){var n=br(t,!0,!1),i=e,r=null===t||void 0===t?void 0:t.background;if(r){i=e.addGroup();var a=xr(t),o=zr(t,this.parsePoints(t.points),this.coordinate);i.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},a),{path:o}),zIndex:-1,name:bi})}var s=this.parsePath(Yr(t.points)),c=i.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},n),{path:s}),name:"interval"});return r?i:c},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}}}}),Pi("interval","line",{getPoints:function(t){return ga(t)},draw:function(t,e){var n=br(t,!0,!1,"lineWidth"),i=Lt(Object(l["a"])({},n),["fill"]),r=this.parsePath(Yr(t.points,!1)),a=e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},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}}}}),Pi("interval","pyramid",{getPoints:function(t){return t.size=2*t.size,Gr(t,!0)},draw:function(t,e){var n=br(t,!1,!0),i=this.parsePath(Xr(t.points,t.nextPoints,!0)),r=e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},n),{path:i}),name:"interval"});return r},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}}),Pi("interval","tick",{getPoints:function(t){return va(t)},draw:function(t,e){var n=br(t,!0,!1),i=this.parsePath(ma(t.points)),r=e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},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 ya=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 l=(o+r)/2;i=[{x:l,y:a},{x:l,y:s}];break;case"vhv":var c=(a+s)/2;i=[{x:r,y:c},{x:o,y:c}];break;default:break}return i};function ba(t,e){var n=[];return Object(c["j"])(t,(function(i,r){var a=t[r+1];if(n.push(i),a){var o=ya(i,a,e);n=n.concat(o)}})),n}function xa(t){return t.map((function(t,e){return 0===e?["M",t.x,t.y]:["L",t.x,t.y]}))}function Oa(t,e){var n=yr(t.points,t.connectNulls,t.showSinglePoint),i=[];return Object(c["j"])(n,(function(t){var n=ba(t,e);i=i.concat(xa(n))})),Object(l["a"])(Object(l["a"])({},br(t,!0,!1,"lineWidth")),{path:i})}function ja(t){var e=Object(c["z"])(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 wa(t,e,n){var i,r=n/2;if(Object(c["z"])(e)){var a=ja(e),o=a.min,s=a.max,l=a.median,u=a.min1,h=a.max1,p=t-r,f=t+r;i=[[p,s],[f,s],[t,s],[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(c["G"])(e)?.5:e;var d=ja(t),g=(o=d.min,s=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],[s,e],[s,g],[s,v],[l,g],[l,v]]}return i.map((function(t){return{x:t[0],y:t[1]}}))}function Ca(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 Ma(t){var e=Object(c["z"])(t)?t:[t],n=e.sort((function(t,e){return e-t}));return At(n,4,n[n.length-1])}function Sa(t,e,n){var i=Ma(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 Ia(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 ka(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(c["c"])(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(c["j"])(["hv","vh","hvh","vhv"],(function(t){Pi("line",t,{draw:function(e,n){var i=Oa(e,t),r=n.addShape({type:"path",attrs:i,name:"line"});return r},getMarker:function(e){return wr(e,t)}})})),Object(c["j"])(Kr,(function(t){Pi("point",t,{draw:function(e,n){return ta(this,e,n,t,!0)},getMarker:function(e){var n=e.color;return{symbol:er[t],style:{r:4.5,stroke:n,fill:null}}}})})),Pi("point","image",{draw:function(t,e){var n=br(t,!1,!1,"r").r,i=this.parsePoints(t.points),r=i[0];if(t.isStack)r=i[1];else if(i.length>1){for(var a=e.addGroup(),o=0,s=i;o<s.length;o++){var l=s[o];a.addShape("image",{attrs:{x:l.x-n/2,y:l.y-n,width:n,height:n,img:t.shape[1]}})}return a}return e.addShape("image",{attrs:{x:r.x-n/2,y:r.y-n,width:n,height:n,img:t.shape[1]}})},getMarker:function(t){var e=t.color;return{symbol:"circle",style:{r:4.5,fill:e}}}}),Object(c["j"])(Jr,(function(t){Pi("point",t,{draw:function(e,n){return ta(this,e,n,t,!1)},getMarker:function(e){var n=e.color;return{symbol:er[t]||t,style:{r:4.5,fill:n}}}})})),Pi("schema","box",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return wa(e,n,i)},draw:function(t,e){var n=br(t,!0,!1),i=this.parsePath(Ca(t.points)),r=e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},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=wa(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}}}}),Pi("schema","candle",{getPoints:function(t){var e=t.x,n=t.y,i=t.size;return Sa(e,n,i)},draw:function(t,e){var n=br(t,!0,!0),i=this.parsePath(Ia(t.points)),r=e.addShape("path",{attrs:Object(l["a"])(Object(l["a"])({},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=Sa(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}}}}),Pi("polygon","square",{draw:function(t,e){if(!Object(c["D"])(t.points)){var n=br(t,!0,!0),i=this.parsePoints(t.points);return e.addShape("rect",{attrs:Object(l["a"])(Object(l["a"])({},n),ka(i,t.size)),name:"polygon"})}},getMarker:function(t){var e=t.color;return{symbol:"square",style:{r:4,fill:e}}}});var Ta=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(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){var r,a=t.prototype.getLabelOffsetPoint.call(this,e,n,i),o=this.getCoordinate().isTransposed,s=o?"x":"y",c=this.getLabelValueDir(e.mappingData);return Object(l["a"])(Object(l["a"])({},a),(r={},r[s]=a[s]*c,r))},e.prototype.getThemedLabelCfg=function(t){var e=this.geometry,n=this.getDefaultLabelCfg(),i=e.theme;return Object(c["h"])({},n,i.labels,"middle"===t.position?{offset:0}:{},t)},e.prototype.setLabelPosition=function(t,e,n,i){var r,a,o,s,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(c["z"])(e.shape)?e.shape[0]:e.shape;if("funnel"===g||"pyramid"===g){var v=Object(c["q"])(e,"nextPoints"),m=Object(c["q"])(e,"points");if(v){var y=l.convert(m[0]),b=l.convert(m[1]),x=l.convert(v[0]),O=l.convert(v[1]);u?(r=Math.min(x.y,y.y),o=Math.max(x.y,y.y),a=(b.x+O.x)/2,s=(y.x+x.x)/2):(r=Math.min((b.y+O.y)/2,(y.y+x.y)/2),o=Math.max((b.y+O.y)/2,(y.y+x.y)/2),a=O.x,s=y.x)}else r=Math.min(f.y,p.y),o=Math.max(f.y,p.y),a=f.x,s=p.x}else r=Math.min(f.y,p.y),o=Math.max(f.y,p.y),a=f.x,s=p.x;switch(i){case"right":t.x=a,t.y=(r+o)/2,t.textAlign=Object(c["q"])(t,"textAlign",d>0?"left":"right");break;case"left":t.x=s,t.y=(r+o)/2,t.textAlign=Object(c["q"])(t,"textAlign",d>0?"left":"right");break;case"bottom":u&&(t.x=(a+s)/2),t.y=o,t.textAlign=Object(c["q"])(t,"textAlign","center"),t.textBaseline=Object(c["q"])(t,"textBaseline",d>0?"bottom":"top");break;case"middle":u&&(t.x=(a+s)/2),t.y=(r+o)/2,t.textAlign=Object(c["q"])(t,"textAlign","center"),t.textBaseline=Object(c["q"])(t,"textBaseline","middle");break;case"top":u&&(t.x=(a+s)/2),t.y=r,t.textAlign=Object(c["q"])(t,"textAlign","center"),t.textBaseline=Object(c["q"])(t,"textBaseline",d>0?"bottom":"top");break;default:break}},e}(Ki),Aa=Ta,La=Math.PI/2,Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.getLabelOffset=function(t){var e=this.getCoordinate(),n=0;if(Object(c["I"])(t))n=t;else if(Object(c["M"])(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(c["R"])(n,(function(t){if(t&&i){var e=i.scale(Object(c["q"])(t.data,i.field));return Object(l["a"])(Object(l["a"])({},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),l=t.labelEmit,c=this.getCirclePoint(s,o,i,l);return 0===c.r?c.content="":(c.content=a,c.angle=s,c.color=e.color),c.rotate=t.autoRotate?this.getLabelRotate(s,o,l):t.rotate,c.start={x:i.x,y:i.y},c},e.prototype.getArcPoint=function(t,e){return void 0===e&&(e=0),Object(c["z"])(t.x)||Object(c["z"])(t.y)?{x:Object(c["z"])(t.x)?t.x[e]:t.x,y:Object(c["z"])(t.y)?t.y[e]:t.y}:{x:t.x,y:t.y}},e.prototype.getPointAngle=function(t){return Gt(this.getCoordinate(),t)},e.prototype.getCirclePoint=function(t,e,n,i){var r=this.getCoordinate(),a=r.getCenter(),o=_t(r,n);if(0===o)return Object(l["a"])(Object(l["a"])({},a),{r:o});var s=t;if(r.isTransposed&&o>e&&!i){var c=Math.asin(e/(2*o));s=t+2*c}else o+=e;return{x:a.x+o*Math.cos(s),y:a.y+o*Math.sin(s),r:o}},e.prototype.getLabelRotate=function(t,e,n){var i=t+La;return n&&(i-=La),i&&(i>La?i-=Math.PI:i<-La&&(i+=Math.PI)),i},e.prototype.getMiddlePoint=function(t){var e=this.getCoordinate(),n=t.length,i={x:0,y:0};return Object(c["j"])(t,(function(t){i.x+=t.x,i.y+=t.y})),i.x/=n,i.y/=n,i=e.convert(i),i},e.prototype.isToMiddle=function(t){return t.x.length>2},e}(Ki),Ba=Pa,Ea=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.defaultLayout="distribute",e}return Object(l["b"])(e,t),e.prototype.getDefaultLabelCfg=function(e,n){var i=t.prototype.getDefaultLabelCfg.call(this,e,n);return Object(c["h"])({},i,Object(c["q"])(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(c["z"])(t.x)?t.x[0]:t.x,y:t.y[0]},r={x:Object(c["z"])(t.x)?t.x[1]:t.x,y:t.y[1]},a=Gt(n,i);if(t.points&&t.points[0].y===t.points[1].y)e=a;else{var o=Gt(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(l["a"])(Object(l["a"])({},wt(i.x,i.y,r,t)),{angle:t,r:r})},e}(Ba),Fa=Ea,Da=4;function _a(t,e,n,i,r,a){var o,s=!0,l=i.start,u=i.end,h=Math.min(l.y,u.y),p=Math.abs(l.y-u.y),f=0,d=Number.MIN_VALUE,g=e.map((function(t){return t.y>f&&(f=t.y),t.y<d&&(d=t.y),{size:n,targets:[t.y-h]}}));d-=h,f-h>p&&(p=f-h);while(s){g.forEach((function(t){var e=(Math.min.apply(d,t.targets)+Math.max.apply(d,t.targets))/2;t.pos=Math.min(Math.max(d,e-t.size/2),p-t.size)})),s=!1,o=g.length;while(o--)if(o>0){var v=g[o-1],m=g[o];v.pos+v.size>m.pos&&(v.size+=m.size,v.targets=v.targets.concat(m.targets),v.pos+v.size>p&&(v.pos=p-v.size),g.splice(o,1),s=!0)}}o=0,g.forEach((function(t){var i=h+n/2;t.targets.forEach((function(){e[o].y=t.pos+i,i+=n,o++}))}));for(var y={},b=0,x=t;b<x.length;b++){var O=x[b];y[O.get("id")]=O}e.forEach((function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e<n)t.x=r.x;else{var i=Math.sqrt(e-n);t.x=a?r.x+i:r.x-i}var o=y[t.id];o.attr("x",t.x),o.attr("y",t.y);var s=Object(c["m"])(o.getChildren(),(function(t){return"text"===t.get("type")}));s&&(s.attr("y",t.y),s.attr("x",t.x))}))}function Ra(t,e,n,i){if(t.length&&e.length){var r=t[0]?t[0].offset:0,a=e[0].get("coordinate"),o=a.getRadius(),s=a.getCenter();if(r>0){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})),_a(e,t,l,p,s,n)}))}Object(c["j"])(t,(function(t){if(t&&t.labelLine){var e=t.offset,n=t.angle,i=wt(s.x,s.y,o,n),r=wt(s.x,s.y,o+e/2,n),a=t.x+Object(c["q"])(t,"offsetX",0),l=t.y+Object(c["q"])(t,"offsetY",0),u={x:a-Math.cos(n)*Da,y:l-Math.sin(n)*Da};Object(c["K"])(t.labelLine)||(t.labelLine={}),t.labelLine.path=["M "+i.x,i.y+" Q"+r.x,r.y+" "+u.x,u.y].join(",")}}))}}function Ga(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,l=Math.abs(o-s),c=0,u=Number.MIN_VALUE,h=i.map((function(t){return t.y>c&&(c=t.y),t.y<u&&(u=t.y),{content:t.content,size:e,targets:[t.y-o],pos:null}}));u-=o,c-o>l&&(l=c-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),l-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>l&&(p.pos=l-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 Ya=4;function Na(t,e){var n=e.getCenter(),i=e.getRadius();if(t&&t.labelLine){var r=t.angle,a=t.offset,o=wt(n.x,n.y,i,r),s=t.x+Object(c["q"])(t,"offsetX",0)*(Math.cos(r)>0?1:-1),l=t.y+Object(c["q"])(t,"offsetY",0)*(Math.sin(r)>0?1:-1),u={x:s-Math.cos(r)*Ya,y:l-Math.sin(r)*Ya},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(c["K"])(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&&r<Math.PI/2&&u.y>o.y&&(v=1),r>=Math.PI/2&&r<Math.PI&&o.y>u.y&&(v=1),(r<-Math.PI/2||r>=Math.PI&&r<1.5*Math.PI)&&o.y>u.y&&(v=1);var m=a/2>4?4:Math.max(a/2-1,0),y=wt(n.x,n.y,i+m,r),b=wt(n.x,n.y,i+a/2,g),x=0;p.push("M "+o.x+" "+o.y),p.push("L "+y.x+" "+y.y),p.push("A "+n.x+" "+n.y+" 0 "+x+" "+v+" "+b.x+" "+b.y),p.push("L "+u.x+" "+u.y)}else{y=wt(n.x,n.y,i+(a/2>4?4:Math.max(a/2-1,0)),r);var O=o.x<n.x?1:-1;p.push("M "+u.x+" "+u.y);var j=(o.y-n.y)/(o.x-n.x),w=(u.y-n.y)/(u.x-n.x);Math.abs(j-w)>Math.pow(Math.E,-16)&&p.push.apply(p,["C",u.x+4*O,u.y,2*y.x-o.x,2*y.y-o.y,o.x,o.y]),p.push("L "+o.x+" "+o.y)}t.labelLine.path=p.join(" ")}}function za(t,e,n,i){var r=Object(c["l"])(t,(function(t){return!Object(c["G"])(t)})),a=e[0]&&e[0].get("coordinate");if(a){for(var o=a.getCenter(),s=a.getRadius(),l={},u=0,h=e;u<h.length;u++){var p=h[u];l[p.get("id")]=p}var f=Object(c["q"])(r[0],"labelHeight",14),d=Object(c["q"])(r[0],"offset",0);if(!(d<=0)){var g="left",v="right",m=Object(c["t"])(r,(function(t){return t.x<o.x?g:v})),y=a.start,b=a.end,x=Math.min(2*(s+d+f),a.getHeight()),O=x/2,j={minX:y.x,maxX:b.x,minY:o.y-O,maxY:o.y+O};Object(c["j"])(m,(function(t,e){var n=Math.floor(x/f);t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(c["j"])(t,(function(t,e){e+1>n&&(l[t.id].set("visible",!1),t.invisible=!0)}))),Ga(t,f,j)})),Object(c["j"])(m,(function(t,e){Object(c["j"])(t,(function(t){var n=e===v,i=l[t.id],r=i.getChildByIndex(0);if(r){var c=s+d,u=t.y-o.y,h=Math.pow(c,2),p=Math.pow(u,2),f=h-p>0?h-p:0,g=Math.sqrt(f),m=Math.abs(Math.cos(t.angle)*c);t.x=n?o.x+Math.max(g,m):o.x-Math.max(g,m)}r&&(r.attr("y",t.y),r.attr("x",t.x)),Na(t,a)}))}))}}}var Va=4,Xa=4,Ha=4;function Wa(t,e,n){var i=e.getCenter(),r=e.getRadius(),a={x:t.x-(n?Ha:-Ha),y:t.y},o=wt(i.x,i.y,r+Va,t.angle),s={x:a.x,y:a.y},l={x:o.x,y:o.y},u=wt(i.x,i.y,r,t.angle),h="";if(a.y!==o.y){var p=n?4:-4;s.y=a.y,t.angle<0&&t.angle>=-Math.PI/2&&(s.x=Math.max(o.x,a.x-p),a.y<o.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-p))),t.angle>0&&t.angle<Math.PI/2&&(s.x=Math.max(o.x,a.x-p),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.max(l.x,s.x-p))),t.angle>Math.PI/2&&(s.x=Math.min(o.x,a.x-p),a.y>o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-p))),t.angle<-Math.PI/2&&(s.x=Math.min(o.x,a.x-p),a.y<o.y?l.y=s.y:(l.y=o.y,l.x=Math.min(l.x,s.x-p)))}h=["M "+a.x+","+a.y,"L "+s.x+","+s.y,"L "+l.x+","+l.y,"L "+o.x+","+o.y,"L "+u.x+","+u.y].join(" "),t.labelLine=Object(c["h"])({},t.labelLine,{path:h})}function qa(t,e,n,i){var r=e[0]&&e[0].get("coordinate");if(r){for(var a=r.getCenter(),o=r.getRadius(),s={},l=0,u=e;l<u.length;l++){var h=u[l];s[h.get("id")]=h}var p=Object(c["q"])(t[0],"labelHeight",14),f=Math.max(Object(c["q"])(t[0],"offset",0),Va);Object(c["j"])(t,(function(t){var e=Object(c["q"])(s,t.id);if(e){var n=t.x>a.x||t.x===a.x&&t.y>a.y,i=Object(c["G"])(t.offsetX)?Xa:t.offsetX,r=wt(a.x,a.y,o+Va,t.angle),l=f+i;t.x=a.x+(n?1:-1)*(o+l),t.y=r.y}}));var d=r.start,g=r.end,v="left",m="right",y=Object(c["t"])(t,(function(t){return t.x<a.x?v:m})),b=2*(o+f)+p;Object(c["j"])(y,(function(t){var e=t.length*p;e>b&&(b=Math.min(e,Math.abs(d.y-g.y)))}));var x={minX:d.x,maxX:g.x,minY:a.y-b/2,maxY:a.y+b/2};Object(c["j"])(y,(function(t,e){var n=b/p;t.length>n&&(t.sort((function(t,e){return e.percent-t.percent})),Object(c["j"])(t,(function(t,e){e>n&&(s[t.id].set("visible",!1),t.invisible=!0)}))),Ga(t,p,x)}));var O=x.minY,j=x.maxY;Object(c["j"])(y,(function(t,e){var n=e===m;Object(c["j"])(t,(function(t){var e=Object(c["q"])(s,t&&t.id);if(e)if(t.y<O||t.y>j)e.set("visible",!1);else{var i=e.getChildByIndex(0),a=i.getCanvasBBox(),o={x:n?a.x:a.maxX,y:a.y+a.height/2};Ni(i,t.x-o.x,t.y-o.y),t.labelLine&&Wa(t,r,n)}}))}))}}function Ua(t,e,n,i){Object(c["j"])(e,(function(t){var e=i.minX,n=i.minY,r=i.maxX,a=i.maxY,o=t.getCanvasBBox(),s=o.minX,l=o.minY,c=o.maxX,u=o.maxY,h=o.x,p=o.y,f=o.width,d=o.height,g=h,v=p;(s<e||c<e)&&(g=e),(l<n||u<n)&&(v=n),s>r?g=r-f:c>r&&(g-=c-r),l>a?v=a-d:u>a&&(v-=u-a),g===h&&v===p||Ni(t,g-h,v-p)}))}function $a(t,e,n,i){Object(c["j"])(e,(function(t,e){var i=t.getCanvasBBox(),r=n[e].getBBox();(i.minX<r.minX||i.minY<r.minY||i.maxX>r.maxX||i.maxY>r.maxY)&&t.remove(!0)}))}var Za=100,Qa=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 l=a;l<=o;l++)if(n[s][l]){e=!1;break}}else if(n[s][a]||n[s][o]){e=!1;break}}else n[s]={};return e},t.prototype.fillGap=function(t){for(var e=this.bitmap,n=Math.round(t.minX),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 Ja(t,e,n){void 0===n&&(n=Za);var i,r=-1,a=t.attr(),o=a.x,s=a.y,l=t.getCanvasBBox(),c=Math.sqrt(l.width*l.width+l.height*l.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(l))return e.fillGap(l),!0;var d=!1,g=0,v={};while(Math.min(Math.abs(h),Math.abs(p))<c&&g<n)if(i=f(u+=r),h=~~i[0],p=~~i[1],(h||p)&&!v[h+"-"+p]&&(t.attr({x:o+h,y:s+p}),h+p<0&&t.attr("textAlign","right"),g++,e.hasGap(t.getCanvasBBox()))){e.fillGap(t.getCanvasBBox()),d=!0,v[h+"-"+p]=!0;break}return d}function Ka(t,e,n,i){var r=t.getCanvasBBox(),a=r.width,o=r.height,s={x:e,y:n,textAlign:"center"};switch(i){case 0:s.y-=o+1,s.x+=1,s.textAlign="left";break;case 1:s.y-=o+1,s.x-=1,s.textAlign="right";break;case 2:s.y+=o+1,s.x-=1,s.textAlign="right";break;case 3:s.y+=o+1,s.x+=1,s.textAlign="left";break;case 5:s.y-=2*o+2;break;case 6:s.y+=2*o+2;break;case 7:s.x+=a+1,s.textAlign="left";break;case 8:s.x-=a+1,s.textAlign="right";break;default:break}return t.attr(s),t.getCanvasBBox()}function to(t,e,n,i){var r=new Qa;Object(c["j"])(e,(function(t){var e=t.find((function(t){return"text"===t.get("type")}));Ja(e,r)||t.remove(!0)})),r.destroy()}function eo(t,e,n,i){var r=new Qa;Object(c["j"])(e,(function(t){for(var e=t.find((function(t){return"text"===t.get("type")})),n=e.attr(),i=n.x,a=n.y,o=!1,s=0;s<=8;s++){var l=Ka(e,i,a,s);if(r.hasGap(l)){r.fillGap(l),o=!0;break}}o||t.remove(!0)})),r.destroy()}var no=nt["c"].dot;function io(t){if(t.length>4)return[];var e=function(t,e){return[e.x-t.x,e.y-t.y]},n=e(t[0],t[1]),i=e(t[1],t[2]);return[n,i]}function ro(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 ao(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?[ro(e[0],n,e[0]),ro(e[1],n,e[0]),ro(e[2],n,e[0]),ro(e[3],n,e[0])]:e}function oo(t,e){if(t.length>4)return{min:0,max:0};var n=[];return t.forEach((function(t){n.push(no([t.x,t.y],e))})),{min:Math.min.apply(Math,n),max:Math.max.apply(Math,n)}}function so(t,e){return t.max>e.min&&t.min<e.max}function lo(t,e,n){return void 0===n&&(n=0),!(e.x>t.x+t.width+n||e.x+e.width<t.x-n||e.y>t.y+t.height+n||e.y+e.height<t.y-n)}function co(t,e){if(!t.rotation&&!e.rotation)return lo(t,e);for(var n=ao(t),i=ao(e),r=Object(l["d"])(io(n),io(i)),a=0;a<r.length;a++){var o=r[a],s=oo(n,o),c=oo(i,o);if(!so(s,c))return!1}return!0}function uo(t,e,n,i){for(var r=0;r<e.length;r++){var a=e[r];if(e[r].get("visible"))for(var o=r+1;o<e.length;o++){var s=e[o];if(a&&s&&a!==s&&s.get("visible")){var l=Hi(a,t[r],Object(c["q"])(t[r],"background.padding")),u=Hi(s,t[o],Object(c["q"])(t[o],"background.padding"));co(l,u)&&e[o].set("visible",!1)}}}}var ho,po={"#5B8FF9":!0},fo=function(t){var e=R["a"].toRGB(t).toUpperCase();if(po[e])return po[e];var n=R["a"].rgb2arr(e),i=n[0],r=n[1],a=n[2],o=(299*i+587*r+114*a)/1e3<128;return o};function go(t,e,n){if(0!==n.length){var i=n[0].get("element"),r=i.geometry.theme,a=r.labels||{},o=a.fillColorLight,s=a.fillColorDark;n.forEach((function(t,n){var i=e[n],a=i.find((function(t){return"text"===t.get("type")})),l=Bt.fromObject(t.getBBox()),c=Bt.fromObject(a.getCanvasBBox()),u=!l.contains(c),h=t.attr("fill"),p=fo(h);u?a.attr(r.overflowLabels.style):p?o&&a.attr("fill",o):s&&a.attr("fill",s)}))}}function vo(t,e,n){var i=t.coordinate,r=Xi(e),a=Bt.fromObject(r.getCanvasBBox()),o=Bt.fromObject(n.getBBox());return i.isTransposed?o.height>=a.height:o.width>=a.width}function mo(t,e,n){var i=!!t.getAdjust("stack");return i||e.every((function(e,i){var r=n[i];return vo(t,e,r)}))}function yo(t,e,n){var i=t.coordinate,r=Bt.fromObject(n.getBBox()),a=Xi(e);i.isTransposed?a.attr({x:r.minX+r.width/2,textAlign:"center"}):a.attr({y:r.minY+r.height/2,textBaseline:"middle"})}function bo(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=mo(a,e,n);o&&n.forEach((function(t,n){var i=e[n];yo(a,i,t)}))}}}function xo(t){var e=500,n=[],i=Math.max(Math.floor(t.length/e),1);return Object(c["j"])(t,(function(t,e){e%i===0?n.push(t):t.set("visible",!1)})),n}function Oo(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,s=xo(e),l=a.getXYFields()[0],u=[],h=[],p=Object(c["t"])(s,(function(t){return t.get("data")[l]})),f=Object(c["jb"])(Object(c["R"])(s,(function(t){return t.get("data")[l]})));s.forEach((function(t){t.set("visible",!0)}));var d=function(t){t&&(t.length&&h.push(t.pop()),h.push.apply(h,t))};Object(c["cb"])(f)>0&&(o=f.shift(),d(p[o])),Object(c["cb"])(f)>0&&(o=f.pop(),d(p[o])),Object(c["j"])(f.reverse(),(function(t){d(p[t])}));while(h.length>0){var g=h.shift();g.get("visible")&&(qi(g,u)?g.set("visible",!1):u.push(g))}}}}function jo(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,r),i}function wo(t,e,n){return t.some((function(t){return n(t,e)}))}function Co(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 Mo(t,e){return wo(t,e,(function(t,e){var n=Xi(t),i=Xi(e);return Co(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function So(t,e,n,i,r){var a,o;if(0!==n.length){var s=null===(a=n[0])||void 0===a?void 0:a.get("element"),l=null===s||void 0===s?void 0:s.geometry;if(l&&"point"===l.type){var u=l.getXYFields(),h=u[0],p=u[1],f=Object(c["t"])(e,(function(t){return t.get("data")[h]})),d=[],g=r&&r.offset||(null===(o=t[0])||void 0===o?void 0:o.offset)||12;Object(c["R"])(Object(c["O"])(f).reverse(),(function(t){var e=jo(l,f[t]);while(e.length){var n=e.shift(),i=Xi(n);if(wo(d,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[p]===e.get("data")[p]})))i.set("visible",!1);else{var r=Mo(d,n),a=!1;r&&(i.attr("y",i.attr("y")+2*g),a=Mo(d,n)),a?i.set("visible",!1):d.push(n)}}}))}}}function Io(t,e){var n=t.getXYFields()[1],i=[],r=e.sort((function(t,e){return t.get("data")[n]-t.get("data")[n]}));return r.length>0&&i.push(r.shift()),r.length>0&&i.push(r.pop()),i.push.apply(i,r),i}function ko(t,e,n){return t.some((function(t){return n(t,e)}))}function To(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 Ao(t,e){return ko(t,e,(function(t,e){var n=Xi(t),i=Xi(e);return To(n.getCanvasBBox(),i.getCanvasBBox(),2)>0}))}function Lo(t,e,n,i,r){var a,o;if(0!==n.length){var s=null===(a=n[0])||void 0===a?void 0:a.get("element"),l=null===s||void 0===s?void 0:s.geometry;if(l&&!(["path","line","area"].indexOf(l.type)<0)){var u=l.getXYFields(),h=u[0],p=u[1],f=Object(c["t"])(e,(function(t){return t.get("data")[h]})),d=[],g=r&&r.offset||(null===(o=t[0])||void 0===o?void 0:o.offset)||12;Object(c["R"])(Object(c["O"])(f).reverse(),(function(t){var e=Io(l,f[t]);while(e.length){var n=e.shift(),i=Xi(n);if(ko(d,n,(function(t,e){return t.get("data")[h]===e.get("data")[h]&&t.get("data")[p]===e.get("data")[p]})))i.set("visible",!1);else{var r=Ao(d,n),a=!1;r&&(i.attr("y",i.attr("y")+2*g),a=Ao(d,n)),a?i.set("visible",!1):d.push(n)}}}))}}}function Po(){return ho||(ho=document.createElement("canvas").getContext("2d")),ho}var Bo=Object(c["T"])((function(t,e){void 0===e&&(e={});var n=e.fontSize,i=e.fontFamily,r=e.fontWeight,a=e.fontStyle,o=e.fontVariant,s=Po();return s.font=[a,o,r,n+"px",i].join(" "),s.measureText(Object(c["M"])(t)?t:"").width}),(function(t,e){return void 0===e&&(e={}),Object(l["d"])([t],Object(c["mb"])(e)).join("")})),Eo=function(t,e,n){var i,r=16,a=Bo("...",n);i=Object(c["M"])(t)?t:Object(c["ib"])(t);var o,s,l=e,u=[];if(Bo(t,n)<=e)return t;while(1){if(o=i.substr(0,r),s=Bo(o,n),s+a>l&&s>l)break;if(u.push(o),l-=s,i=i.substr(r),!i)return u.join("")}while(1){if(o=i.substr(0,1),s=Bo(o,n),s+a>l)break;if(u.push(o),l-=s,i=i.substr(1),!i)return u.join("")}return u.join("")+"..."};function Fo(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",s=(null===r||void 0===r?void 0:r.margin)||0,l=e[0].get("coordinate");if(l){var u=Nt(l,s),h=u.minX,p=u.minY,f=u.maxX,d=u.maxY;Object(c["j"])(e,(function(t){var e=t.getCanvasBBox(),n=e.minX,i=e.minY,r=e.maxX,s=e.maxY,l=e.x,u=e.y,g=e.width,v=e.height,m=l,y=u;if(a.indexOf("left")>=0&&(n<h||r<h)&&(m=h),a.indexOf("top")>=0&&(i<p||s<p)&&(y=p),a.indexOf("right")>=0&&(n>f?m=f-g:r>f&&(m-=r-f)),a.indexOf("bottom")>=0&&(i>d?y=d-v:s>d&&(y-=s-d)),m!==l||y!==u){var b=m-l;if("translate"===o)Ni(t,b,y-u);else if("ellipsis"===o){var x=t.findAll((function(t){return"text"===t.get("type")}));x.forEach((function(t){var e=Object(c["X"])(t.attr(),["fontSize","fontFamily","fontWeight","fontStyle","fontVariant"]),n=t.getCanvasBBox(),i=Eo(t.attr("text"),n.width-Math.abs(b),e);t.attr("text",i)}))}else t.hide()}}))}}}function Do(t,e,n){var i={fillOpacity:Object(c["G"])(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),strokeOpacity:Object(c["G"])(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity"),opacity:Object(c["G"])(t.attr("opacity"))?1:t.attr("opacity")};t.attr({fillOpacity:0,strokeOpacity:0,opacity:0}),t.animate(i,e)}function _o(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 Ro(t,e,n){var i,r=e[0],a=e[1];return t.applyToMatrix([r,a,1]),"x"===n?(t.setMatrix(nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,1],["t",r,a]])),i=nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",100,1],["t",r,a]])):"y"===n?(t.setMatrix(nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",1,.01],["t",r,a]])),i=nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",1,100],["t",r,a]])):"xy"===n&&(t.setMatrix(nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,.01],["t",r,a]])),i=nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",100,100],["t",r,a]])),i}function Go(t,e,n,i,r){var a,o,s=n.start,l=n.end,c=n.getWidth(),u=n.getHeight();"y"===r?(a=s.x+c/2,o=i.y<s.y?i.y:s.y):"x"===r?(a=i.x>s.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+l.x)/2,o=(s.y+l.y)/2));var h=Ro(t,[a,o],r);t.animate({matrix:h},e)}function Yo(t,e,n){var i=n.coordinate,r=n.minYPoint;Go(t,e,i,r,"x")}function No(t,e,n){var i=n.coordinate,r=n.minYPoint;Go(t,e,i,r,"y")}function zo(t,e,n){var i=n.coordinate,r=n.minYPoint;Go(t,e,i,r,"xy")}function Vo(t,e,n){var i=t.getTotalLength();t.attr("lineDash",[i]),t.animate((function(t){return{lineDashOffset:(1-t)*i}}),e)}function Xo(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 Ho(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 l=nt["a"].transform(t.getMatrix(),[["t",-o,-s],["s",.01,1],["t",o,s]]);t.setMatrix(l),t.animate({matrix:nt["a"].transform(t.getMatrix(),[["t",-o,-s],["s",100,1],["t",o,s]])},e)}function Wo(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 l=nt["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,.01],["t",a,s]]);t.setMatrix(l),t.animate({matrix:nt["a"].transform(t.getMatrix(),[["t",-a,-s],["s",1,100],["t",a,s]])},e)}function qo(t,e){var n,i=Object(dr["getArcParams"])(t,e),r=i.startAngle,a=i.endAngle;return!Object(c["J"])(r,.5*-Math.PI)&&r<.5*-Math.PI&&(r+=2*Math.PI),!Object(c["J"])(a,.5*-Math.PI)&&a<.5*-Math.PI&&(a+=2*Math.PI),0===e[5]&&(n=[a,r],r=n[0],a=n[1]),Object(c["J"])(r,1.5*Math.PI)&&(r=-.5*Math.PI),Object(c["J"])(a,-.5*Math.PI)&&(a=1.5*Math.PI),{startAngle:r,endAngle:a}}function Uo(t){var e;return"M"===t[0]||"L"===t[0]?e=[t[1],t[2]]:"a"!==t[0]&&"A"!==t[0]||(e=[t[t.length-2],t[t.length-1]]),e}function $o(t){var e,n,i,r=t.filter((function(t){return"A"===t[0]||"a"===t[0]})),a=r[0],o=r.length>1?r[1]:r[0],s=t.indexOf(a),l=t.indexOf(o),u=Uo(t[s-1]),h=Uo(t[l-1]),p=qo(u,a),f=p.startAngle,d=p.endAngle,g=qo(h,o),v=g.startAngle,m=g.endAngle;Object(c["J"])(f,v)&&Object(c["J"])(d,m)?(n=f,i=d):(n=Math.min(f,v),i=Math.max(d,m));var y=a[1],b=r[r.length-1][1];return y<b?(e=[b,y],y=e[0],b=e[1]):y===b&&(b=0),{startAngle:n,endAngle:i,radius:y,innerRadius:b}}function Zo(t,e,n){var i=n.toAttrs,r=n.coordinate,a=i.path||[],o=a.map((function(t){return t[0]}));if(!(a.length<1)){var s=$o(a),u=s.startAngle,h=s.endAngle,p=s.radius,f=s.innerRadius,d=$o(t.attr("path")),g=d.startAngle,v=d.endAngle,m=r.getCenter(),y=u-g,b=h-v;t.animate((function(t){var e=g+t*y,n=v+t*b;return Object(l["a"])(Object(l["a"])({},i),{path:Object(c["E"])(o,["M","A","A","Z"])?Mt(m.x,m.y,p,e,n):Ct(m.x,m.y,p,e,n,f)})}),Object(l["a"])(Object(l["a"])({},e),{callback:function(){t.attr("path",a)}}))}}function Qo(t,e,n){var i=Yt(n.coordinate,20),r=i.type,a=i.startState,o=i.endState,s=t.setClip({type:r,attrs:a});s.animate(o,Object(l["a"])(Object(l["a"])({},e),{callback:function(){t&&!t.get("destroyed")&&t.set("clipShape",null),s.remove(!0)}}))}function Jo(t,e,n){if(t.isGroup())Object(c["j"])(t.getChildren(),(function(t){Jo(t,e,n)}));else{var i=t.getBBox(),r=(i.minX+i.maxX)/2,a=(i.minY+i.maxY)/2;if(t.applyToMatrix([r,a,1]),"zoomIn"===n){var o=nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,.01],["t",r,a]]);t.setMatrix(o),t.animate({matrix:nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",100,100],["t",r,a]])},e)}else t.animate({matrix:nt["a"].transform(t.getMatrix(),[["t",-r,-a],["s",.01,.01],["t",r,a]])},Object(l["a"])(Object(l["a"])({},e),{callback:function(){t.remove(!0)}}))}}function Ko(t,e,n){Jo(t,e,"zoomIn")}function ts(t,e,n){Jo(t,e,"zoomOut")}function es(t){return[r.TOP,r.BOTTOM].includes(t)?{offsetX:0,offsetY:t===r.TOP?-8:8,style:{textAlign:"center",textBaseline:t===r.TOP?"bottom":"top"}}:[r.LEFT,r.RIGHT].includes(t)?{offsetX:t===r.LEFT?-8:8,offsetY:0,style:{textAlign:t===r.LEFT?"right":"left",textBaseline:"middle",rotate:Math.PI/2}}:{}}function ns(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var is=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.getDefaultCfg=function(){return Object(c["h"])({},t.prototype.getDefaultCfg.call(this),{type:"circle",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.getRegion=function(t,e){var n=.5,i={x:.5,y:.5},r=2*Math.PI/t,a=-1*Math.PI/2+r*e,o=n/(1+1/Math.sin(r/2)),s=ns(i,n-o,a),l=5*Math.PI/4,c=1*Math.PI/4;return{start:ns(s,o,l),end:ns(s,o,c)}},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg,i=n.fields,r=n.type,a=i[0];if(!a)throw new Error("No `fields` specified!");var o=this.getFieldValues(t,a),s=o.length,l=[];return o.forEach((function(n,i){var u=[{field:a,value:n,values:o}],h=Object(c["l"])(t,e.getFacetDataFilter(u)),p={type:r,data:h,region:e.getRegion(s,i),columnValue:n,columnField:a,columnIndex:i,columnValuesLength:s,rowValue:null,rowField:null,rowIndex:0,rowValuesLength:1};l.push(p)})),l},e.prototype.getXAxisOption=function(t,e,n,i){return n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;Object(c["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,a=Object(c["q"])(t.cfg.title,"formatter"),o=Object(c["h"])({position:["50%","0%"],content:a?a(n):n},es(r.TOP),t.cfg.title);i.annotation().text(o)}))},e}(re),rs=is,as=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.getDefaultCfg=function(){return Object(c["h"])({},t.prototype.getDefaultCfg.call(this),{type:"list",cols:null,showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=this.cfg.cols,r=n[0];if(!r)throw new Error("No `fields` specified!");var a=this.getFieldValues(t,r),o=a.length;i=i||o;var s=this.getPageCount(o,i),l=[];return a.forEach((function(n,u){var h=e.getRowCol(u,i),p=h.row,f=h.col,d=[{field:r,value:n,values:a}],g=Object(c["l"])(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(s,i,f,p),columnValue:n,rowValue:n,columnField:r,rowField:null,columnIndex:f,rowIndex:p,columnValuesLength:i,rowValuesLength:s,total:o};l.push(v)})),l},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1&&i.columnValuesLength*i.rowIndex+i.columnIndex+1+i.columnValuesLength<=i.total?Object(l["a"])(Object(l["a"])({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(l["a"])(Object(l["a"])({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(c["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,a=Object(c["q"])(t.cfg.title,"formatter"),o=Object(c["h"])({position:["50%","0%"],content:a?a(n):n},es(r.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.getPageCount=function(t,e){return Math.floor((t+e-1)/e)},e.prototype.getRowCol=function(t,e){var n=Math.floor(t/e),i=t%e;return{row:n,col:i}},e}(re),os=as,ss=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.getDefaultCfg=function(){return Object(c["h"])({},t.prototype.getDefaultCfg.call(this),{type:"matrix",showTitle:!1,columnTitle:Object(l["a"])({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(l["a"])({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.generateFacets=function(t){for(var e=this.cfg,n=e.fields,i=e.type,r=n.length,a=r,o=[],s=0;s<a;s++)for(var l=n[s],c=0;c<r;c++){var u=n[c],h={type:i,data:t,region:this.getRegion(r,a,s,c),columnValue:l,rowValue:u,columnField:l,rowField:u,columnIndex:s,rowIndex:c,columnValuesLength:a,rowValuesLength:r};o.push(h)}return o},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(l["a"])(Object(l["a"])({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(l["a"])(Object(l["a"])({},n),{title:null,label:null}):n},e.prototype.renderTitle=function(){var t=this;Object(c["j"])(this.facets,(function(e,n){var i=e.columnIndex,a=e.rowIndex,o=e.columnValuesLength,s=(e.rowValuesLength,e.columnValue),l=e.rowValue,u=e.view;if(0===a){var h=Object(c["q"])(t.cfg.columnTitle,"formatter"),p=Object(c["h"])({position:["50%","0%"],content:h?h(s):s},es(r.TOP),t.cfg.columnTitle);u.annotation().text(p)}if(i===o-1){h=Object(c["q"])(t.cfg.rowTitle,"formatter"),p=Object(c["h"])({position:["100%","50%"],content:h?h(l):l},es(r.RIGHT),t.cfg.rowTitle);u.annotation().text(p)}}))},e}(re),ls=ss,cs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.getDefaultCfg=function(){return Object(c["h"])({},t.prototype.getDefaultCfg.call(this),{type:"mirror",showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this),transpose:!1})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.beforeEachView=function(t,e){this.cfg.transpose?e.columnIndex%2===0?t.coordinate().transpose().reflect("x"):t.coordinate().transpose():e.rowIndex%2!==0&&t.coordinate().reflect("y")},e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.generateFacets=function(t){var e,n,i=this,r=this.cfg.fields[0],a=[],o=1,s=1,l=[""],u=[""];return this.cfg.transpose?(e=r,l=this.getFieldValues(t,e).slice(0,2),o=l.length):(n=r,u=this.getFieldValues(t,n).slice(0,2),s=u.length),l.forEach((function(r,h){u.forEach((function(p,f){var d=[{field:e,value:r,values:l},{field:n,value:p,values:u}],g=Object(c["l"])(t,i.getFacetDataFilter(d)),v={type:i.cfg.type,data:g,region:i.getRegion(s,o,h,f),columnValue:r,rowValue:p,columnField:e,rowField:n,columnIndex:h,rowIndex:f,columnValuesLength:o,rowValuesLength:s};a.push(v)}))})),a},e.prototype.getXAxisOption=function(t,e,n,i){return 1===i.columnIndex||1===i.rowIndex?Object(l["a"])(Object(l["a"])({},n),{label:null,title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return n},e.prototype.renderTitle=function(){var t=this;Object(c["j"])(this.facets,(function(e,n){var i=e.columnValue,a=e.rowValue,o=e.view,s=Object(c["q"])(t.cfg.title,"formatter");if(t.cfg.transpose){var l=Object(c["h"])({position:["50%","0%"],content:s?s(i):i},es(r.TOP),t.cfg.title);o.annotation().text(l)}else{l=Object(c["h"])({position:["100%","50%"],content:s?s(a):a},es(r.RIGHT),t.cfg.title);o.annotation().text(l)}}))},e}(re),us=cs,hs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.getDefaultCfg=function(){return Object(c["h"])({},t.prototype.getDefaultCfg.call(this),{type:"rect",columnTitle:Object(l["a"])({},t.prototype.getDefaultTitleCfg.call(this)),rowTitle:Object(l["a"])({},t.prototype.getDefaultTitleCfg.call(this))})},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.generateFacets=function(t){var e=this,n=this.cfg.fields,i=n[0],r=n[1],a=[],o=1,s=1,l=[""],u=[""];return i&&(l=this.getFieldValues(t,i),o=l.length),r&&(u=this.getFieldValues(t,r),s=u.length),l.forEach((function(n,h){u.forEach((function(p,f){var d=[{field:i,value:n,values:l},{field:r,value:p,values:u}],g=Object(c["l"])(t,e.getFacetDataFilter(d)),v={type:e.cfg.type,data:g,region:e.getRegion(s,o,h,f),columnValue:n,rowValue:p,columnField:i,rowField:r,columnIndex:h,rowIndex:f,columnValuesLength:o,rowValuesLength:s};a.push(v)}))})),a},e.prototype.renderTitle=function(){var t=this;Object(c["j"])(this.facets,(function(e,n){var i=e.columnIndex,a=e.rowIndex,o=e.columnValuesLength,s=e.columnValue,l=e.rowValue,u=e.view;if(0===a){var h=Object(c["q"])(t.cfg.columnTitle,"formatter"),p=Object(c["h"])({position:["50%","0%"],content:h?h(s):s},es(r.TOP),t.cfg.columnTitle);u.annotation().text(p)}if(i===o-1){h=Object(c["q"])(t.cfg.rowTitle,"formatter"),p=Object(c["h"])({position:["100%","50%"],content:h?h(l):l},es(r.RIGHT),t.cfg.rowTitle);u.annotation().text(p)}}))},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(l["a"])(Object(l["a"])({},n),{title:null,label:null}):i.columnIndex!==Math.floor((i.columnValuesLength-1)/2)?Object(l["a"])(Object(l["a"])({},n),{title:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.columnIndex?Object(l["a"])(Object(l["a"])({},n),{title:null,label:null}):i.rowIndex!==Math.floor((i.rowValuesLength-1)/2)?Object(l["a"])(Object(l["a"])({},n),{title:null}):n},e}(re),ps=hs,fs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.afterChartRender=function(){e.facets&&e.cfg.line&&(e.container.clear(),e.drawLines(e.facets))},e}return Object(l["b"])(e,t),e.prototype.afterEachView=function(t,e){this.processAxis(t,e)},e.prototype.beforeEachView=function(t,e){},e.prototype.init=function(){t.prototype.init.call(this),this.view.on(u.AFTER_RENDER,this.afterChartRender)},e.prototype.getDefaultCfg=function(){return Object(c["h"])({},t.prototype.getDefaultCfg.call(this),{type:"tree",line:{style:{lineWidth:1,stroke:"#ddd"},smooth:!1},showTitle:!0,title:t.prototype.getDefaultTitleCfg.call(this)})},e.prototype.generateFacets=function(t){var e=this.cfg.fields;if(!e.length)throw new Error("Please specify for the fields for rootFacet!");var n=[],i={type:this.cfg.type,data:t,region:null,rowValuesLength:this.getRows(),columnValuesLength:1,rowIndex:0,columnIndex:0,rowField:"",columnField:"",rowValue:"",columnValue:""};return n.push(i),i.children=this.getChildFacets(t,1,n),this.setRegion(n),n},e.prototype.setRegion=function(t){var e=this;this.forceColIndex(t),t.forEach((function(t){t.region=e.getRegion(t.rowValuesLength,t.columnValuesLength,t.columnIndex,t.rowIndex)}))},e.prototype.getRegion=function(t,e,n,i){var r=1/e,a=1/t,o={x:r*n,y:a*i},s={x:o.x+r,y:o.y+2*a/3};return{start:o,end:s}},e.prototype.forceColIndex=function(t){var e=this,n=[],i=0;t.forEach((function(t){e.isLeaf(t)&&(n.push(t),t.columnIndex=i,i++)})),n.forEach((function(t){t.columnValuesLength=n.length}));for(var r=this.cfg.fields.length,a=r-1;a>=0;a--)for(var o=this.getFacetsByLevel(t,a),s=0,l=o;s<l.length;s++){var c=l[s];this.isLeaf(c)||(c.originColIndex=c.columnIndex,c.columnIndex=this.getRegionIndex(c.children),c.columnValuesLength=n.length)}},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<e)){var o=[],s=r[e-1],l=this.getFieldValues(t,s);return l.forEach((function(r,a){var c=[{field:s,value:r,values:l}],u=t.filter(i.getFacetDataFilter(c));if(u.length){var h={type:i.cfg.type,data:u,region:null,columnValue:r,rowValue:"",columnField:s,rowField:"",columnIndex:a,rowValuesLength:i.getRows(),columnValuesLength:1,rowIndex:e,children:i.getChildFacets(u,e+1,n)};o.push(h),n.push(h)}})),o}},e.prototype.render=function(){t.prototype.render.call(this),this.cfg.showTitle&&this.renderTitle()},e.prototype.renderTitle=function(){var t=this;Object(c["j"])(this.facets,(function(e){var n=e.columnValue,i=e.view,a=Object(c["q"])(t.cfg.title,"formatter"),o=Object(c["h"])({position:["50%","0%"],content:a?a(n):n},es(r.TOP),t.cfg.title);i.annotation().text(o)}))},e.prototype.drawLines=function(t){var e=this;t.forEach((function(t){if(!e.isLeaf(t)){var n=t.children;e.addFacetLines(t,n)}}))},e.prototype.addFacetLines=function(t,e){var n=this,i=t.view,r=i.coordinateBBox,a={x:r.x+r.width/2,y:r.y+r.height};e.forEach((function(t){var e=t.view.coordinateBBox,i={x:e.bl.x+(e.tr.x-e.bl.x)/2,y:e.tr.y},r={x:a.x,y:a.y+(i.y-a.y)/2},o={x:i.x,y:r.y};n.drawLine([a,r,o,i])}))},e.prototype.getPath=function(t){var e=[],n=this.cfg.line.smooth;return n?(e.push(["M",t[0].x,t[0].y]),e.push(["C",t[1].x,t[1].y,t[2].x,t[2].y,t[3].x,t[3].y])):t.forEach((function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e.prototype.drawLine=function(t){var e=this.getPath(t),n=this.cfg.line.style;this.container.addShape("path",{attrs:Object(c["b"])({path:e},n)})},e.prototype.getXAxisOption=function(t,e,n,i){return i.rowIndex!==i.rowValuesLength-1?Object(l["a"])(Object(l["a"])({},n),{title:null,label:null}):n},e.prototype.getYAxisOption=function(t,e,n,i){return 0!==i.originColIndex&&0!==i.columnIndex?Object(l["a"])(Object(l["a"])({},n),{title:null,label:null}):n},e}(re),ds=fs;function gs(t){var e=Object(l["d"])(t);e.sort((function(t,e){return t-e}));var n=e.length;return 0===n?0:n%2===1?e[(n-1)/2]:(e[n/2]+e[n/2-1])/2}function vs(t){var e=Object(c["Y"])(t,(function(t,e){return t+(isNaN(e)||!Object(c["I"])(e)?0:e)}),0);return 0===t.length?0:e/t.length}function ms(t,e){var n;switch(t){case"start":return 0;case"end":return 1;case"median":n=e.isCategory?gs(e.values.map((function(t,e){return e}))):gs(e.values);break;case"mean":n=e.isCategory?(e.values.length-1)/2:vs(e.values);break;case"min":n=e.isCategory?0:e[t];break;case"max":n=e.isCategory?e.values.length-1:e[t];break;default:n=t;break}return e.scale(n)}var ys=["regionFilter","shape"],bs=function(t){function e(e){var n=t.call(this,e)||this;return n.cache=new Map,n.foregroundContainer=n.view.getLayer(i.FORE).addGroup(),n.backgroundContainer=n.view.getLayer(i.BG).addGroup(),n.option=[],n}return Object(l["b"])(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return"annotation"},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.layout=function(){this.update()},e.prototype.render=function(){},e.prototype.update=function(){var t=this;this.onAfterRender((function(){var e=new Map;Object(c["j"])(t.option,(function(n){if(Object(c["x"])(ys,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}})),t.cache=t.syncCache(e)}));var e=new Map;Object(c["j"])(this.option,(function(n){if(!Object(c["x"])(ys,n.type)){var i=t.updateOrCreate(n);i&&e.set(t.getCacheKey(n),i)}})),this.cache=this.syncCache(e)},e.prototype.clear=function(e){void 0===e&&(e=!1),t.prototype.clear.call(this),this.clearComponents(),this.foregroundContainer.clear(),this.backgroundContainer.clear(),e&&(this.option=[])},e.prototype.destroy=function(){this.clear(!0),this.foregroundContainer.remove(!0),this.backgroundContainer.remove(!0)},e.prototype.getComponents=function(){var t=[];return this.cache.forEach((function(e){t.push(e)})),t},e.prototype.clearComponents=function(){this.getComponents().forEach((function(t){t.component.destroy()})),this.cache.clear()},e.prototype.onAfterRender=function(t){this.view.getOptions().animate?this.view.geometries.forEach((function(e){e.animateOption&&e.once(h.AFTER_DRAW_ANIMATE,(function(){t()}))})):this.view.getRootView().once(u.AFTER_RENDER,(function(){t()}))},e.prototype.createAnnotation=function(t){var e=t.type,n=dt["Annotation"][Object(c["lb"])(e)];if(n){var o=this.getAnnotationTheme(e),s=this.getAnnotationCfg(e,t,o),l=new n(s);return{component:l,layer:this.isTop(s)?i.FORE:i.BG,direction:r.NONE,type:a.ANNOTATION,extra:t}}},e.prototype.annotation=function(t){this.option.push(t)},e.prototype.arc=function(t){return this.annotation(Object(l["a"])({type:"arc"},t)),this},e.prototype.image=function(t){return this.annotation(Object(l["a"])({type:"image"},t)),this},e.prototype.line=function(t){return this.annotation(Object(l["a"])({type:"line"},t)),this},e.prototype.region=function(t){return this.annotation(Object(l["a"])({type:"region"},t)),this},e.prototype.text=function(t){return this.annotation(Object(l["a"])({type:"text"},t)),this},e.prototype.dataMarker=function(t){return this.annotation(Object(l["a"])({type:"dataMarker"},t)),this},e.prototype.dataRegion=function(t){this.annotation(Object(l["a"])({type:"dataRegion"},t))},e.prototype.regionFilter=function(t){this.annotation(Object(l["a"])({type:"regionFilter"},t))},e.prototype.shape=function(t){this.annotation(Object(l["a"])({type:"shape"},t))},e.prototype.html=function(t){this.annotation(Object(l["a"])({type:"html"},t))},e.prototype.parsePosition=function(t){var e=this.view.getXScale(),n=this.view.getScalesByDim("y"),i=Object(c["F"])(t)?t.call(null,e,n):t,r=0,a=0;if(Object(c["z"])(i)){var o=i[0],s=i[1];if(Object(c["M"])(o)&&-1!==o.indexOf("%")&&!isNaN(o.slice(0,-1)))return this.parsePercentPosition(i);r=ms(o,e),a=ms(s,Object.values(n)[0])}else if(!Object(c["G"])(i))for(var l=0,u=Object(c["O"])(i);l<u.length;l++){var h=u[l],p=i[h];h===e.field&&(r=ms(p,e)),n[h]&&(a=ms(p,n[h]))}return this.view.getCoordinate().convert({x:r,y:a})},e.prototype.getRegionPoints=function(t,e){var n,i=this,r=this.view.getXScale(),a=this.view.getScalesByDim("y"),o=Object.values(a)[0],s=r.field,l=this.view.getData(),u=Object(c["z"])(t)?t[0]:t[s],h=Object(c["z"])(e)?e[0]:e[s],p=[];return Object(c["j"])(l,(function(t,e){if(t[s]===u&&(n=e),e>=n){var r=i.parsePosition([t[s],t[o.field]]);r&&p.push(r)}if(t[s]===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,l=i.getHeight()*n+o.y;return{x:s,y:l}},e.prototype.getCoordinateBBox=function(){var t=this.view.getCoordinate(),e=t.start,n=t.end,i=t.getWidth(),r=t.getHeight(),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(),o={};if(Object(c["G"])(e))return null;if("arc"===t){var s=e,u=s.start,h=s.end,p=this.parsePosition(u),f=this.parsePosition(h),d=Gt(r,p),g=Gt(r,f);d>g&&(g=2*Math.PI+g),o={center:r.getCenter(),radius:_t(r,p),startAngle:d,endAngle:g}}else if("image"===t){var v=e;u=v.start,h=v.end;o={start:this.parsePosition(u),end:this.parsePosition(h),src:e.src}}else if("line"===t){var m=e;u=m.start,h=m.end;o={start:this.parsePosition(u),end:this.parsePosition(h),text:Object(c["q"])(e,"text",null)}}else if("region"===t){var y=e;u=y.start,h=y.end;o={start:this.parsePosition(u),end:this.parsePosition(h)}}else if("text"===t){var b=this.view.getData(),x=e,O=x.position,j=x.content,w=Object(l["c"])(x,["position","content"]),C=j;Object(c["F"])(j)&&(C=j(b)),o=Object(l["a"])(Object(l["a"])(Object(l["a"])({},this.parsePosition(O)),w),{content:C})}else if("dataMarker"===t){var M=e,S=(O=M.position,M.point),I=M.line,k=M.text,T=M.autoAdjust,A=M.direction;o=Object(l["a"])(Object(l["a"])({},this.parsePosition(O)),{coordinateBBox:this.getCoordinateBBox(),point:S,line:I,text:k,autoAdjust:T,direction:A})}else if("dataRegion"===t){var L=e,P=(u=L.start,h=L.end,L.region),B=(k=L.text,L.lineLength);o={points:this.getRegionPoints(u,h),region:P,text:k,lineLength:B}}else if("regionFilter"===t){var E=e,F=(u=E.start,h=E.end,E.apply),D=E.color,_=this.view.geometries,R=[],G=function(t){t&&(t.isGroup()?t.getChildren().forEach((function(t){return G(t)})):R.push(t))};Object(c["j"])(_,(function(t){F?Object(c["f"])(F,t.type)&&Object(c["j"])(t.elements,(function(t){G(t.shape)})):Object(c["j"])(t.elements,(function(t){G(t.shape)}))})),o={color:D,shapes:R,start:this.parsePosition(u),end:this.parsePosition(h)}}else if("shape"===t){var Y=e,N=Y.render,z=Object(l["c"])(Y,["render"]),V=function(t){if(Object(c["F"])(e.render))return N(t,i.view,{parsePosition:i.parsePosition.bind(i)})};o=Object(l["a"])(Object(l["a"])({},z),{render:V})}else if("html"===t){var X=e,H=X.html,W=(O=X.position,z=Object(l["c"])(X,["html","position"]),function(t){return Object(c["F"])(H)?H(t,i.view):H});o=Object(l["a"])(Object(l["a"])(Object(l["a"])({},z),this.parsePosition(O)),{parent:a.get("el").parentNode,html:W})}var q=Object(c["h"])({},n,Object(l["a"])(Object(l["a"])({},o),{top:e.top,style:e.style,offsetX:e.offsetX,offsetY:e.offsetY}));return"html"!==t&&(q.container=this.getComponentContainer(q)),q.animate=this.view.getOptions().animate&&q.animate&&Object(c["q"])(e,"animate",q.animate),q.animateOption=Object(c["h"])({},pi,q.animateOption,e.animateOption),q},e.prototype.isTop=function(t){return Object(c["q"])(t,"top",!0)},e.prototype.getComponentContainer=function(t){return this.isTop(t)?this.foregroundContainer:this.backgroundContainer},e.prototype.getAnnotationTheme=function(t){return Object(c["q"])(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);Lt(r,["container"]),e.component.update(r),Object(c["x"])(ys,t.type)&&e.component.render()}else e=this.createAnnotation(t),e&&(e.component.init(),Object(c["x"])(ys,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(c["m"])(e.option,(function(t){return i===e.getCacheKey(t)}))||(t.component.destroy(),n.delete(i))})),n},e.prototype.getCacheKey=function(t){return t},e}(ai),xs=bs;function Os(t,e){return Object(c["q"])(t,["components","axis",e,"grid"],{})}function js(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 l=e.value,c=(l+s)/2;r.push({points:[t.convert("y"===n?{x:0,y:c}:{x:c,y:0}),t.convert("y"===n?{x:1,y:c}:{x:c,y:1})]})}return a}),a[0]),r}function ws(t,e,n,i,r){var a=e.values.length,o=[],s=n.getTicks();return s.reduce((function(e,n){var s=e?e.value:n.value,l=n.value,u=(s+l)/2;return"x"===r?o.push({points:[t.convert({x:i?l:u,y:0}),t.convert({x:i?l:u,y:1})]}):o.push({points:Object(c["R"])(Array(a+1),(function(e,n){return t.convert({x:n/a,y:i?l:u})}))}),n}),s[0]),o}function Cs(t,e){var n=Object(c["q"])(e,"grid");if(null===n)return!1;var i=Object(c["q"])(t,"grid");return!(void 0===n&&null===i)}var Ms=["container"],Ss=Object(l["a"])(Object(l["a"])({},pi),{appear:null}),Is=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.axisContainer=n.view.getLayer(i.BG).addGroup(),n}return Object(l["b"])(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(c["j"])(this.getComponents(),(function(n){var i,r=n.component,o=n.direction,s=n.type,l=n.extra,c=l.dim,u=l.scale,h=l.alignTick;if(s===a.AXIS)e.isPolar?"x"===c?i=e.isTransposed?Zt(e,o):te(e):"y"===c&&(i=e.isTransposed?te(e):Zt(e,o)):i=Zt(e,o);else if(s===a.GRID)if(e.isPolar){var p=void 0;p=e.isTransposed?"x"===c?ws(e,t.view.getYScales()[0],u,h,c):js(e,u,c,h):"x"===c?js(e,u,c,h):ws(e,t.view.getXScale(),u,h,c),i={items:p,center:t.view.getCoordinate().getCenter()}}else i={items:js(e,u,c,h)};r.update(i)}))},e.prototype.update=function(){this.option=this.view.getOptions().axes;var t=new Map;this.updateXAxes(t),this.updateYAxes(t);var e=new Map;this.cache.forEach((function(n,i){t.has(i)?e.set(i,n):n.component.destroy()})),this.cache=e},e.prototype.clear=function(){t.prototype.clear.call(this),this.cache.clear(),this.gridContainer.clear(),this.axisContainer.clear()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.gridContainer.remove(!0),this.axisContainer.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,s="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);Lt(f,Ms),p.component.update(f),t.set(u,p)}else p=this.createLineAxis(e,n,o,a,s),this.cache.set(u,p),t.set(u,p);var d=this.cache.get(h);if(d){f=this.getLineGridCfg(e,n,a,s);Lt(f,Ms),d.component.update(f),t.set(h,d)}else d=this.createLineGrid(e,n,o,a,s),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);Lt(f,Ms),p.component.update(f),t.set(u,p)}else{if(l.isTransposed){if(Object(c["N"])(n))return;p=this.createLineAxis(e,n,o,r.RADIUS,s)}else p=this.createCircleAxis(e,n,o,a,s);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,s):this.getLineGridCfg(e,n,r.CIRCLE,s);Lt(f,Ms),d.component.update(f),t.set(h,d)}else{if(l.isTransposed){if(Object(c["N"])(n))return;d=this.createCircleGrid(e,n,o,r.RADIUS,s)}else d=this.createLineGrid(e,n,o,r.CIRCLE,s);d&&(this.cache.set(h,d),t.set(h,d))}}}}},e.prototype.updateYAxes=function(t){var e=this,n=this.view.getYScales();Object(c["j"])(n,(function(n,a){if(n&&!n.isIdentity){var o=n.field,s=ee(e.option,o);if(!1!==s){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(s,0===a?r.LEFT:r.RIGHT),g=e.cache.get(h);if(g){var v=e.getLineAxisCfg(n,s,d);Lt(v,Ms),g.component.update(v),t.set(h,g)}else g=e.createLineAxis(n,s,l,d,u),e.cache.set(h,g),t.set(h,g);var m=e.cache.get(p);if(m){v=e.getLineGridCfg(n,s,d,u);Lt(v,Ms),m.component.update(v),t.set(p,m)}else m=e.createLineGrid(n,s,l,d,u),m&&(e.cache.set(p,m),t.set(p,m))}else if(f.isPolar){g=e.cache.get(h);if(g){v=f.isTransposed?e.getCircleAxisCfg(n,s,r.CIRCLE):e.getLineAxisCfg(n,s,r.RADIUS);Lt(v,Ms),g.component.update(v),t.set(h,g)}else{if(f.isTransposed){if(Object(c["N"])(s))return;g=e.createCircleAxis(n,s,l,r.CIRCLE,u)}else g=e.createLineAxis(n,s,l,r.RADIUS,u);e.cache.set(h,g),t.set(h,g)}m=e.cache.get(p);if(m){v=f.isTransposed?e.getLineGridCfg(n,s,r.CIRCLE,u):e.getCircleGridCfg(n,s,r.RADIUS,u);Lt(v,Ms),m.component.update(v),t.set(p,m)}else{if(f.isTransposed){if(Object(c["N"])(s))return;m=e.createLineGrid(n,s,l,r.CIRCLE,u)}else m=e.createCircleGrid(n,s,l,r.RADIUS,u);m&&(e.cache.set(p,m),t.set(p,m))}}}}}))},e.prototype.createLineAxis=function(t,e,n,i,o){var s={component:new gt(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 s=this.getLineGridCfg(t,e,i,o);if(s){var l={component:new mt(s),layer:n,direction:r.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(c["q"])(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.createCircleAxis=function(t,e,n,i,r){var o={component:new vt(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 s=this.getCircleGridCfg(t,e,i,o);if(s){var l={component:new yt(s),layer:n,direction:r.NONE,type:a.GRID,extra:{dim:o,scale:t,alignTick:Object(c["q"])(s,"alignTick",!0)}};return l.component.init(),l}},e.prototype.getLineAxisCfg=function(t,e,n){var i=this.axisContainer,r=this.view.getCoordinate(),a=Zt(r,n),o=ie(t,e),s=Kt(this.view.getTheme(),n),u=Object(c["q"])(e,["title"])?Object(c["h"])({title:{style:{text:o}}},{title:Object(c["q"])(Kt(this.view.getTheme(),"common"),"title")},e):e,h=Object(c["h"])(Object(l["a"])(Object(l["a"])({container:i},a),{ticks:t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}})),verticalFactor:r.isPolar?-1*Jt(a,r.getCenter()):Jt(a,r.getCenter()),theme:s}),s,u),p=this.getAnimateCfg(h),f=p.animate,d=p.animateOption;h.animateOption=d,h.animate=f;var g=Qt(a),v=Object(c["q"])(h,"verticalLimitLength",g?1/3:.5);if(v<=1){var m=this.view.getCanvas().get("width"),y=this.view.getCanvas().get("height");h.verticalLimitLength=v*(g?m:y)}return h},e.prototype.getLineGridCfg=function(t,e,n,i){if(Cs(Kt(this.view.getTheme(),n),e)){var r=Os(this.view.getTheme(),n),a=Object(c["h"])({container:this.gridContainer},r,Object(c["q"])(e,"grid"),this.getAnimateCfg(e));return a.items=js(this.view.getCoordinate(),t,i,Object(c["q"])(a,"alignTick",!0)),a}},e.prototype.getCircleAxisCfg=function(t,e,n){var i=this.axisContainer,a=this.view.getCoordinate(),o=t.getTicks().map((function(t){return{id:""+t.tickValue,name:t.text,value:t.value}}));t.isCategory||Math.abs(a.endAngle-a.startAngle)!==2*Math.PI||o.pop();var s=ie(t,e),u=Kt(this.view.getTheme(),r.CIRCLE),h=Object(c["q"])(e,["title"])?Object(c["h"])({title:{style:{text:s}}},{title:Object(c["q"])(Kt(this.view.getTheme(),"common"),"title")},e):e,p=Object(c["h"])(Object(l["a"])(Object(l["a"])({container:i},te(this.view.getCoordinate())),{ticks:o,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(Cs(Kt(this.view.getTheme(),n),e)){var a=Os(this.view.getTheme(),r.RADIUS),o=Object(c["h"])({container:this.gridContainer,center:this.view.getCoordinate().getCenter()},a,Object(c["q"])(e,"grid"),this.getAnimateCfg(e)),s=Object(c["q"])(o,"alignTick",!0),l="x"===i?this.view.getYScales()[0]:this.view.getXScale();return o.items=ws(this.view.getCoordinate(),l,t,s,i),o}},e.prototype.getId=function(t,e){var n=this.view.getCoordinate();return t+"-"+e+"-"+n.type},e.prototype.getAnimateCfg=function(t){return{animate:this.view.getOptions().animate&&Object(c["q"])(t,"animate"),animateOption:t&&t.animateOption?Object(c["h"])({},Ss,t.animateOption):Ss}},e}(ai),ks=Is;function Ts(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 As(t,e){return Object(c["A"])(t)?!1!==t&&{}:Object(c["q"])(t,[e],t)}function Ls(t){return Object(c["q"])(t,"position",r.BOTTOM)}var Ps=function(t){function e(e){var n=t.call(this,e)||this;return n.container=n.view.getLayer(i.FORE).addGroup(),n}return Object(l["b"])(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(c["j"])(this.components,(function(e){var n=e.component,i=e.direction,r=ar(i),a=t.getCategoryLegendSizeCfg(r),o=n.get("maxWidth"),s=n.get("maxHeight");n.update({maxWidth:Math.min(a.maxWidth,o||0),maxHeight:Math.min(a.maxHeight,s||0)});var l=n.get("padding"),c=n.getLayoutBBox(),u=new Bt(c.x,c.y,c.width,c.height).expand(l),h=Ts(t.view.viewBBox,u,i),p=h[0],f=h[1],d=Ts(t.layoutBBox,u,i),g=d[0],v=d[1],m=0,y=0;i.startsWith("top")||i.startsWith("bottom")?(m=p,y=v):(m=g,y=f),n.setLocation({x:m+l[3],y:y+l[0]}),t.layoutBBox=t.layoutBBox.cut(u,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 s=void 0,l=As(t.option,r.field);!1!==l&&(Object(c["q"])(l,"custom")?s=t.getCategoryCfg(n,i,r,l,!0):r.isLinear?s=t.getContinuousCfg(n,i,r,l):r.isCategory&&(s=t.getCategoryCfg(n,i,r,l))),s&&(Lt(s,["container"]),o.direction=Ls(l),o.component.update(s),e[a]=!0)}else{var u=t.createFieldLegend(n,i,r);u&&(u.component.init(),t.components.push(u),e[a]=!0)}};if(Object(c["q"])(this.option,"custom")){var r="global-custom",o=this.getComponentById(r);if(o){var s=this.getCategoryCfg(void 0,void 0,void 0,this.option,!0);Lt(s,["container"]),o.component.update(s),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=Ls(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(c["j"])(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(c["j"])(t.views,(function(t){n=n.concat(e.getGeometries(t))})),n},e.prototype.loopLegends=function(t){var e=this.view.getRootView()===this.view;if(e){var n=this.getGeometries(this.view),i={};Object(c["j"])(n,(function(e){var n=e.getGroupAttributes();Object(c["j"])(n,(function(n){var r=n.getScale(n.type);r&&"identity"!==r.type&&!i[r.field]&&(t(e,n,r),i[r.field]=!0)}))}))}},e.prototype.createFieldLegend=function(t,e,n){var r,o=As(this.option,n.field),s=i.FORE,l=Ls(o);if(!1!==o&&(Object(c["q"])(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:s,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 bt(r)},e.prototype.createContinuousLegend=function(t,e,n,i){var r=this.getContinuousCfg(t,e,n,i);return new xt(r)},e.prototype.createCategoryLegend=function(t,e,n,i){var r=this.getCategoryCfg(t,e,n,i);return new bt(r)},e.prototype.getContinuousCfg=function(t,e,n,i){var r=n.getTicks(),a=Object(c["m"])(r,(function(t){return 0===t.value})),o=Object(c["m"])(r,(function(t){return 1===t.value})),s=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||s.push({value:n.min,attrValue:e.mapping(n.invert(0)).join(""),color:e.mapping(n.invert(0)).join(""),scaleValue:0}),o||s.push({value:n.max,attrValue:e.mapping(n.invert(1)).join(""),color:e.mapping(n.invert(1)).join(""),scaleValue:1}),s.sort((function(t,e){return t.value-e.value}));var l={min:Object(c["w"])(s).value,max:Object(c["P"])(s).value,colors:[],rail:{type:e.type},track:{}};"size"===e.type&&(l.track={style:{fill:"size"===e.type?this.view.getTheme().defaultColor:void 0}}),"color"===e.type&&(l.colors=s.map((function(t){return t.attrValue})));var u=this.container,h=Ls(i),p=ar(h),f=Object(c["q"])(i,"title");return f&&(f=Object(c["h"])({text:Wt(n)},f)),l.container=u,l.layout=p,l.title=f,l.animateOption=pi,this.mergeLegendCfg(l,i,"continuous")},e.prototype.getCategoryCfg=function(t,e,n,i,a){var o=this.container,s=Object(c["q"])(i,"position",r.BOTTOM),l=Object(c["q"])(this.view.getTheme(),["components","legend",s,"marker"]),u=Object(c["q"])(i,"marker"),h=ar(s),p=a?sr(l,u,i.items):or(this.view,t,e,l,u),f=Object(c["q"])(i,"title");f&&(f=Object(c["h"])({text:n?Wt(n):""},f));var d=this.getCategoryLegendSizeCfg(h);d.container=o,d.layout=h,d.items=p,d.title=f,d.animateOption=pi;var g=this.mergeLegendCfg(d,i,s);g.reversed&&g.items.reverse();var v=Object(c["q"])(g,"maxItemWidth");return v&&v<=1&&(g.maxItemWidth=this.view.viewBBox.width*v),g},e.prototype.mergeLegendCfg=function(t,e,n){var i=n.split("-")[0],r=Object(c["q"])(this.view.getTheme(),["components","legend",i],{});return Object(c["h"])({},r,t,e)},e.prototype.getId=function(t){return this.name+"-"+t},e.prototype.getComponentById=function(t){return Object(c["m"])(this.components,(function(e){return e.id===t}))},e.prototype.getCategoryLegendSizeCfg=function(t){var e=this.view.viewBBox,n=e.width,i=e.height;return"vertical"===t?{maxWidth:n*b,maxHeight:i}:{maxWidth:n,maxHeight:i*b}},e}(ai),Bs=Ps,Es=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=c["W"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t[0],i=t[1];n.start=e,n.end=i,n.changeViewData(e,i)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(c["fb"])(n.onValueChange,20,{leading:!0}),n.width=0,n.view.on(u.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(u.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(l["b"])(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(u.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(u.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(c["G"])(this.start)&&(this.start=e,this.end=n);var i=this.view.getOptions().data;this.option&&!Object(c["D"])(i)?this.slider?this.slider=this.updateSlider():(this.slider=this.createSlider(),this.slider.component.on("sliderchange",this.onChangeFn)):this.slider&&(this.slider.component.destroy(),this.slider=void 0)},e.prototype.layout=function(){var t=this;if(this.option&&!this.width&&(this.measureSlider(),setTimeout((function(){t.view.destroyed||t.changeViewData(t.start,t.end)}),0)),this.slider){var e=this.view.coordinateBBox.width,n=this.slider.component.get("padding"),i=n[0],a=(n[1],n[2],n[3]),o=this.slider.component.getLayoutBBox(),s=new Bt(o.x,o.y,Math.min(o.width,e),o.height).expand(n),c=this.getMinMaxText(this.start,this.end),u=c.minText,h=c.maxText,p=Ts(this.view.viewBBox,s,r.BOTTOM),f=(p[0],p[1]),d=Ts(this.view.coordinateBBox,s,r.BOTTOM),g=d[0];d[1];this.slider.component.update(Object(l["a"])(Object(l["a"])({},this.getSliderCfg()),{x:g+a,y:f+i,width:this.width,start:this.start,end:this.end,minText:u,maxText:h})),this.view.viewBBox=this.view.viewBBox.cut(s,r.BOTTOM)}},e.prototype.update=function(){this.render()},e.prototype.createSlider=function(){var t=this.getSliderCfg(),e=new dt["Slider"](Object(l["a"])({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(l["a"])(Object(l["a"])({},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(c["K"])(this.option)){var e=Object(l["a"])({data:this.getData()},Object(c["q"])(this.option,"trendCfg",{}));t=Object(c["h"])({},t,this.getThemeOptions(),this.option),t=Object(l["a"])(Object(l["a"])({},t),{trendCfg:e})}return t.start=Object(c["c"])(Math.min(Object(c["G"])(t.start)?0:t.start,Object(c["G"])(t.end)?1:t.end),0,1),t.end=Object(c["c"])(Math.max(Object(c["G"])(t.start)?0:t.start,Object(c["G"])(t.end)?1:t.end),0,1),t},e.prototype.getData=function(){var t=this.view.getOptions().data,e=this.view.getYScales()[0],n=this.view.getGroupScales();if(n.length){var i=n[0],r=i.field,a=i.ticks;return t.reduce((function(t,n){return n[r]===a[0]&&t.push(n[e.field]),t}),[])}return t.map((function(t){return t[e.field]||0}))},e.prototype.getThemeOptions=function(){var t=this.view.getTheme();return Object(c["q"])(t,["components","slider","common"],{})},e.prototype.getMinMaxText=function(t,e){var n=this.view.getOptions().data,i=this.view.getXScale(),r=!0,a=Object(c["nb"])(n,i.field),o=r?a:a.reverse(),s=Object(c["cb"])(n);if(!i||!s)return{};var l=Object(c["cb"])(o),u=Math.floor(t*(l-1)),h=Math.floor(e*(l-1)),p=Object(c["q"])(o,[u]),f=Object(c["q"])(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=!0,a=Object(c["nb"])(n,i.field),o=r?a:a.reverse(),s=Object(c["cb"])(n);if(i&&s){var l=Object(c["cb"])(o),u=Math.floor(t*(l-1)),h=Math.floor(e*(l-1));this.view.filter(i.field,(function(t,e){var n=o.indexOf(t);return!(n>-1)||Tt(n,u,h)})),this.view.render(!0)}},e.prototype.getComponents=function(){return this.slider?[this.slider]:[]},e.prototype.clear=function(){this.slider&&(this.slider.component.destroy(),this.slider=void 0),this.width=0,this.start=void 0,this.end=void 0},e}(ai),Fs=Es,Ds=0,_s=8,Rs=32,Gs=20,Ys=function(t){function e(e){var n=t.call(this,e)||this;return n.onChangeFn=c["W"],n.resetMeasure=function(){n.clear()},n.onValueChange=function(t){var e=t.ratio,i=n.getValidScrollbarCfg().animate;n.ratio=Object(c["c"])(e,0,1);var r=n.view.getOptions().animate;i||n.view.animate(!1),n.changeViewData(n.getScrollRange(),!0),n.view.animate(r)},n.container=n.view.getLayer(i.FORE).addGroup(),n.onChangeFn=Object(c["fb"])(n.onValueChange,20,{leading:!0}),n.trackLen=0,n.thumbLen=0,n.ratio=0,n.view.on(u.BEFORE_CHANGE_DATA,n.resetMeasure),n.view.on(u.BEFORE_CHANGE_SIZE,n.resetMeasure),n}return Object(l["b"])(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(u.BEFORE_CHANGE_DATA,this.resetMeasure),this.view.off(u.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 Bt(i.x,i.y,Math.min(i.width,e),i.height).expand(n),o=this.getScrollbarComponentCfg(),s=void 0,c=void 0;if(o.isHorizontal){var u=Ts(this.view.viewBBox,a,r.BOTTOM),h=(u[0],u[1]),p=Ts(this.view.coordinateBBox,a,r.BOTTOM),f=p[0];p[1];s=f,c=h}else{var d=Ts(this.view.viewBBox,a,r.RIGHT),g=(d[0],h=d[1],Ts(this.view.viewBBox,a,r.RIGHT));f=g[0],g[1];s=f,c=h}s+=n[3],c+=n[0],this.trackLen?this.scrollbar.component.update(Object(l["a"])(Object(l["a"])({},o),{x:s,y:c,trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio})):this.scrollbar.component.update(Object(l["a"])(Object(l["a"])({},o),{x:s,y:c})),this.view.viewBBox=this.view.viewBBox.cut(a,o.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.getThemeOptions=function(){var t=this.view.getTheme();return Object(c["q"])(t,["components","slider","common"],{})},e.prototype.measureScrollbar=function(){var t=this.view.getXScale(),e=this.view.getYScales().slice();this.data=this.view.getOptions().data,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(c["c"])(this.ratio,0,1)),e=Math.min(t+this.step-1,this.cnt-1);return[t,e]},e.prototype.changeViewData=function(t,e){var n=this,i=t[0],r=t[1],a=this.getValidScrollbarCfg().type,o="vertical"!==a,s=Object(c["nb"])(this.data,this.xScaleCfg.field),l=o?s:s.reverse();this.yScalesCfg.forEach((function(t){n.view.scale(t.field,{formatter:t.formatter,type:t.type,min:t.min,max:t.max})})),this.view.filter(this.xScaleCfg.field,(function(t){var e=l.indexOf(t);return!(e>-1)||Tt(e,i,r)})),this.view.render(!0)},e.prototype.createScrollbar=function(){var t=this.getValidScrollbarCfg().type,e="vertical"!==t,n=new dt["Scrollbar"](Object(l["a"])(Object(l["a"])({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(l["a"])(Object(l["a"])({},t),{trackLen:this.trackLen,thumbLen:this.thumbLen,thumbOffset:(this.trackLen-this.thumbLen)*this.ratio}):Object(l["a"])({},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.view.getOptions().data,n=Object(c["nb"])(e,t.field);return Object(c["cb"])(n)},e.prototype.getScrollbarComponentCfg=function(){var t=this.view,e=t.coordinateBBox,n=t.viewBBox,i=(this.view.getXScale(),this.getValidScrollbarCfg()),r=i.type,a=i.padding,o=i.width,s=i.height,u="vertical"!==r,h=a[0],p=a[1],f=a[2],d=a[3],g=u?{x:e.minX+d,y:n.maxY-s-f}:{x:n.maxX-o-p,y:e.minY+h},v=this.getStep(),m=this.getCnt(),y=u?e.width-d-p:e.height-h-f,b=Math.max(y*Object(c["c"])(v/m,0,1),Gs);return Object(l["a"])(Object(l["a"])({},this.getThemeOptions()),{x:g.x,y:g.y,size:u?s:o,isHorizontal:u,trackLen:y,thumbLen:b,thumbOffset:0})},e.prototype.getValidScrollbarCfg=function(){var t={type:"horizontal",categorySize:Rs,width:_s,height:_s,padding:[0,0,0,0],animate:!0};return Object(c["K"])(this.option)&&(t=Object(l["a"])(Object(l["a"])({},t),this.option)),Object(c["K"])(this.option)&&this.option.padding||(t.padding="horizontal"===t.type?[Ds,0,Ds,0]:[0,Ds,0,Ds]),t},e}(ai),Ns=Ys,zs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.show=function(){var t=this.context.view,e=this.context.event,n=t.getTooltipItems({x:e.x,y:e.y});if(!Object(c["E"])(n,this.items)&&(this.items=n,n.length)){var i=t.getXScale().field,r=n[0].data[i],a=[],o=t.geometries;if(Object(c["j"])(o,(function(t){if("interval"===t.type||"schema"===t.type){var e=t.getElementsBy((function(t){var e=t.getData();return e[i]===r}));a=a.concat(e)}})),a.length){var s=t.getCoordinate(),l=a[0].shape.getCanvasBBox(),u=a[0].shape.getCanvasBBox(),h=l;Object(c["j"])(a,(function(t){var e=t.shape.getCanvasBBox();s.isTransposed?(e.minY<l.minY&&(l=e),e.maxY>u.maxY&&(u=e)):(e.minX<l.minX&&(l=e),e.maxX>u.maxX&&(u=e)),h.x=Math.min(e.minX,h.minX),h.y=Math.min(e.minY,h.minY),h.width=Math.max(e.maxX,h.maxX)-h.x,h.height=Math.max(e.maxY,h.maxY)-h.y}));var p=t.backgroundGroup,f=t.coordinateBBox,d=void 0;if(s.isRect){var g=t.getXScale(),v=g.isLinear?0:.25,m=void 0,y=void 0,b=void 0,x=void 0;s.isTransposed?(m=f.minX,y=Math.min(u.minY,l.minY)-v*u.height,b=f.width,x=h.height+2*v*u.height):(m=Math.min(l.minX,u.minX)-v*l.width,y=Math.min(f.minY,l.minY),b=h.width+2*v*l.width,x=f.height),d=[["M",m,y],["L",m+b,y],["L",m+b,y+x],["L",m,y+x],["Z"]]}else{var O=Object(c["w"])(a),j=Object(c["P"])(a),w=St(O.getModel(),s).startAngle,C=St(j.getModel(),s).endAngle,M=s.getCenter(),S=s.getRadius(),I=s.innerRadius*S;d=Ct(M.x,M.y,S,w,C,I)}this.regionPath?(this.regionPath.attr("path",d),this.regionPath.show()):this.regionPath=p.addShape({type:"path",name:"active-region",capture:!1,attrs:{path:d,fill:"#CCD6EC",opacity:.3}})}}},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}(ce),Vs=zs,Xs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(l["b"])(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(c["q"])(t.view.getOptions(),"tooltip.showDelay",16);if(a-r>o){var s=this.location,l={x:e.x,y:e.y};s&&Object(c["E"])(s,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}(ce),Hs=Xs,Ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.showTooltip=function(t,e){var n=Ze(t);Object(c["j"])(n,(function(n){var i=Je(t,n,e);n.showTooltip(i)}))},e.prototype.hideTooltip=function(t){var e=Ze(t);Object(c["j"])(e,(function(t){t.hideTooltip()}))},e}(Hs),qs=Ws,Us=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.timeStamp=0,e}return Object(l["b"])(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(c["E"])(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(l["a"])({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(c["q"])(r,["components","tooltip","domStyles"],{}),o=new Ot({parent:n.get("el").parentNode,region:i,visible:!1,crosshairs:null,domStyles:Object(l["a"])({},Object(c["h"])({},a,(t={},t[dt["TOOLTIP_CSS_CONST"].CONTAINER_CLASS]={"max-width":"50%"},t[dt["TOOLTIP_CSS_CONST"].TITLE_CLASS]={"word-break":"break-all"},t)))});o.init(),o.setCapture(!1),this.tooltip=o},e}(ce),$s=Us,Zs=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e}return Object(l["b"])(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=Ye(t,this.stateName);Object(c["j"])(n,(function(t){e.setElementState(t,!1)}))},e}(ce),Qs=Zs;function Js(t){return Object(c["q"])(t.get("delegateObject"),"item")}var Ks=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreListItemStates=["unchecked"],e}return Object(l["b"])(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=Re(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=tn(i,e),a=Ne(t,e);return!Object(c["G"])(a)&&n.name===r.getText(a)},e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this;Object(c["j"])(t,(function(t){r.isMathItem(t,e,n)&&t.setState(r.stateName,i)}))},e.prototype.setStateEnable=function(t){var e=Ae(this.context);if(e)Pe(this.context)&&this.setStateByElement(e,t);else{var n=Le(this.context);if(Be(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&&Js(a.fromShape)===Js(a.toShape))return;this.setStateByComponent(r,i,t)}}}},e.prototype.toggle=function(){var t=Ae(this.context);if(t){var e=t.hasState(this.stateName);this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Qs),tl=Ks,el=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l["b"])(e,t),e.prototype.active=function(){this.setState()},e}(tl),nl=el,il=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cache={},e}return Object(l["b"])(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){t.addShape({type:"path",attrs:{opacity:.4,fill:e.shape.attr("fill"),path:this.getLinkPath(e,n)}})},e.prototype.linkByElement=function(t){var e=this,n=this.context.view,i=this.getColorScale(n,t);if(i){var r=Ne(t,i.field);if(!this.cache[r]){var a=Ge(n,i.field,r),o=this.linkGroup,s=o.addGroup();this.cache[r]=s;var l=a.length;Object(c["j"])(a,(function(t,n){if(n<l-1){var i=a[n+1];e.addLinkShape(s,t,i)}}))}}},e.prototype.removeLink=function(t){var e=this.getColorScale(this.context.view,t);if(e){var n=Ne(t,e.field);this.cache[n]&&(this.cache[n].remove(),this.cache[n]=null)}},e.prototype.link=function(){var t=this.context;this.linkGroup||(this.linkGroup=t.view.foregroundGroup.addGroup({capture:!1}));var e=Ae(t);e&&this.linkByElement(e)},e.prototype.unlink=function(){var t=Ae(this.context);t&&this.removeLink(t)},e.prototype.clear=function(){this.linkGroup&&this.linkGroup.clear(),this.cache={}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.linkGroup&&this.linkGroup.remove()},e}(ce),rl=il,al=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.startPoint=null,e.endPoint=null,e.isStarted=!1,e.effectSiblings=!1,e.effectByRecord=!1,e}return Object(l["b"])(e,t),e.prototype.getCurrentPoint=function(){var t=this.context.event;return{x:t.x,y:t.y}},e.prototype.start=function(){this.clear(),this.startPoint=this.getCurrentPoint(),this.isStarted=!0},e.prototype.getIntersectElements=function(){var t=null;if(Fe(this.context))t=De(this.context,10);else{var e=this.startPoint,n=this.isStarted?this.getCurrentPoint():this.endPoint;if(!e||!n)return;var i={minX:Math.min(e.x,n.x),minY:Math.min(e.y,n.y),maxX:Math.max(e.x,n.x),maxY:Math.max(e.y,n.y)},r=this.context.view;t=Ve(r,i)}return t},e.prototype.setStateEnable=function(t){if(this.effectSiblings&&!this.effectByRecord)this.setSiblingsState(t);else{var e=Re(this.context.view),n=this.getIntersectElements();n&&n.length?this.effectByRecord?this.setSiblingsStateByRecord(n,t):this.setElementsState(n,t,e):this.clear()}},e.prototype.setSiblingsStateByRecord=function(t,e){var n=this,i=this.context.view,r=Ze(i),a=t.map((function(t){return t.getModel().data})),o=i.getXScale().field,s=i.getYScales()[0].field;Object(c["j"])(r,(function(t){var i=Re(t),r=i.filter((function(t){var e=t.getModel().data;return Ke(a,e,o,s)}));n.setElementsState(r,e,i)}))},e.prototype.setSiblingsState=function(t){var e=this,n=this.context.view,i=Ze(n);Fe(this.context)&&Object(c["j"])(i,(function(n){var i=Re(n),r=_e(e.context,n,10);r&&r.length?e.setElementsState(r,t,i):e.clearViewState(n)}))},e.prototype.setElementsState=function(t,e,n){var i=this;Object(c["j"])(n,(function(n){t.includes(n)?i.setElementState(n,e):i.setElementState(n,!1)}))},e.prototype.end=function(){this.isStarted=!1,this.endPoint=this.getCurrentPoint()},e.prototype.clear=function(){var t=this,e=this.context.view;if(this.effectSiblings){var n=Ze(e);Object(c["j"])(n,(function(e){t.clearViewState(e)}))}else this.clearViewState(e)},e}(Qs),ol=al,sl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l["b"])(e,t),e.prototype.active=function(){this.setState()},e}(ol),ll=sl,cl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.setStateEnable=function(t){var e=Ae(this.context);if(e){if(!Pe(this.context))return;t?(this.clear(),this.setElementState(e,!0)):this.hasState(e)&&this.setElementState(e,!1)}},e.prototype.toggle=function(){var t=Ae(this.context);if(t){var e=this.hasState(t);e||this.clear(),this.setElementState(t,!e)}},e.prototype.reset=function(){this.setStateEnable(!1)},e}(Qs),ul=cl,hl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l["b"])(e,t),e.prototype.active=function(){this.setState()},e}(ul),pl=hl,fl="inactive",dl="active";function gl(t){var e=Re(t);Object(c["j"])(e,(function(t){t.hasState(dl)&&t.setState(dl,!1),t.hasState(fl)&&t.setState(fl,!1)}))}function vl(t,e,n){Object(c["j"])(t,(function(t){e(t)?(t.hasState(fl)&&t.setState(fl,!1),t.setState(dl,n)):(t.hasState(dl)&&t.setState(dl,!1),t.setState(fl,n))}))}var ml=f.INACTIVE,yl=f.ACTIVE,bl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=yl,e}return Object(l["b"])(e,t),e.prototype.setElementsStateByItem=function(t,e,n,i){var r=this,a=function(t){return r.isMathItem(t,e,n)};this.setHighlightBy(t,a,i)},e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(ml)&&t.setState(ml,!1),t.setState(yl,!0)):t.hasState(yl)||t.setState(ml,!0)},e.prototype.setHighlightBy=function(t,e,n){var i=this;if(n)Object(c["j"])(t,(function(t){i.setElementHighlight(t,e)}));else{var r=Ye(this.context.view,yl),a=!0;Object(c["j"])(r,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(c["j"])(t,(function(t){e(t)&&(t.hasState(yl)&&t.setState(yl,!1),t.setState(ml,!0))}))}},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Re(n);this.setHighlightBy(i,(function(e){return t===e}),e)},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.context.view;gl(t)},e}(tl),xl=bl,Ol=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=t.geometry.getAttribute("color");if(i){var r=n.getScaleByField(i.getFields()[0]),a=Ne(t,r.field),o=Re(n),s=o.filter((function(t){return Ne(t,r.field)===a}));this.setHighlightBy(o,(function(t){return s.includes(t)}),e)}},e}(xl),jl=Ol,wl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.setElementHighlight=function(t,e){e(t)?(t.hasState(ml)&&t.setState(ml,!1),t.setState(yl,!0)):(t.setState(ml,!0),t.hasState(yl)&&t.setState(yl,!1))},e.prototype.setStateByElement=function(t,e){var n=this.context.view,i=n.getXScale(),r=Ne(t,i.field),a=Re(n),o=a.filter((function(t){return Ne(t,i.field)===r}));this.setHighlightBy(a,(function(t){return o.includes(t)}),e)},e.prototype.toggle=function(){var t=Ae(this.context);if(t){var e=t.hasState(this.stateName);this.setStateByElement(t,!e)}},e}(xl),Cl=wl,Ml=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l["b"])(e,t),e.prototype.clearViewState=function(t){gl(t)},e.prototype.highlight=function(){this.setState()},e.prototype.setElementsState=function(t,e,n){vl(n,(function(e){return t.indexOf(e)>=0}),e)},e}(ol),Sl=Ml,Il=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l["b"])(e,t),e.prototype.highlight=function(){this.setState()},e.prototype.setElementState=function(t,e){var n=this.context.view,i=Re(n);vl(i,(function(e){return t===e}),e)},e.prototype.clear=function(){var t=this.context.view;gl(t)},e}(ul),kl=Il,Tl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(l["b"])(e,t),e.prototype.selected=function(){this.setState()},e}(ol),Al=Tl,Ll=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(l["b"])(e,t),e.prototype.selected=function(){this.setState()},e}(tl),Pl=Ll,Bl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(l["b"])(e,t),e.prototype.selected=function(){this.setState()},e}(ul),El=Bl,Fl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="",e.ignoreItemStates=[],e}return Object(l["b"])(e,t),e.prototype.getTriggerListInfo=function(){var t=Le(this.context),e=null;return Be(t)&&(e={item:t.item,list:t.component}),e},e.prototype.getAllowComponents=function(){var t=this,e=this.context.view,n=We(e),i=[];return Object(c["j"])(n,(function(e){e.isList()&&t.allowSetStateByElement(e)&&i.push(e)})),i},e.prototype.hasState=function(t,e){return t.hasState(e,this.stateName)},e.prototype.clearAllComponentsState=function(){var t=this,e=this.getAllowComponents();Object(c["j"])(e,(function(e){e.clearItemsState(t.stateName)}))},e.prototype.allowSetStateByElement=function(t){var e=t.get("field");if(!e)return!1;if(this.cfg&&this.cfg.componentNames){var n=t.get("name");if(-1===this.cfg.componentNames.indexOf(n))return!1}var i=this.context.view,r=tn(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=tn(r,i),o=Ne(e,i),s=a.getText(o);this.setItemsState(t,s,n)},e.prototype.setStateEnable=function(t){var e=this,n=Ae(this.context);if(n){var i=this.getAllowComponents();Object(c["j"])(i,(function(i){e.setStateByElement(i,n,t)}))}else{var r=Le(this.context);if(Be(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(c["j"])(r,(function(r){r.name===e&&i.setItemState(t,r,n)}))},e.prototype.setItemState=function(t,e,n){t.setItemState(e,this.stateName,n)},e.prototype.setState=function(){this.setStateEnable(!0)},e.prototype.reset=function(){this.setStateEnable(!1)},e.prototype.toggle=function(){var t=this.getTriggerListInfo();if(t&&t.item){var e=t.list,n=t.item,i=this.hasState(e,n);this.setItemState(e,n,!i)}},e.prototype.clear=function(){var t=this.getTriggerListInfo();t?t.list.clearItemsState(this.stateName):this.clearAllComponentsState()},e}(ce),Dl=Fl,_l=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="active",e}return Object(l["b"])(e,t),e.prototype.active=function(){this.setState()},e}(Dl),Rl=_l,Gl="inactive",Yl="active";function Nl(t){var e=t.getItems();Object(c["j"])(e,(function(e){t.hasState(e,Yl)&&t.setItemState(e,Yl,!1),t.hasState(e,Gl)&&t.setItemState(e,Gl,!1)}))}var zl="inactive",Vl="active",Xl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName=Vl,e.ignoreItemStates=["unchecked"],e}return Object(l["b"])(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(c["j"])(i,(function(n){e(n)?(t.hasState(n,zl)&&t.setItemState(n,zl,!1),t.setItemState(n,Vl,!0)):t.hasState(n,Vl)||t.setItemState(n,zl,!0)}));else{var r=t.getItemsByState(Vl),a=!0;Object(c["j"])(r,(function(t){if(!e(t))return a=!1,!1})),a?this.clear():Object(c["j"])(i,(function(n){e(n)&&(t.hasState(n,Vl)&&t.setItemState(n,Vl,!1),t.setItemState(n,zl,!0))}))}},e.prototype.highlight=function(){this.setState()},e.prototype.clear=function(){var t=this.getTriggerListInfo();if(t)Nl(t.list);else{var e=this.getAllowComponents();Object(c["j"])(e,(function(t){t.clearItemsState(Vl),t.clearItemsState(zl)}))}},e}(Dl),Hl=Xl,Wl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="selected",e}return Object(l["b"])(e,t),e.prototype.selected=function(){this.setState()},e}(Dl),ql=Wl,Ul=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stateName="unchecked",e}return Object(l["b"])(e,t),e.prototype.unchecked=function(){this.setState()},e}(Dl),$l=Ul,Zl=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(l["b"])(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:"+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(l["a"])({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(){this.starting=!0,this.moving=!1,this.points=[this.getCurrentPoint()],this.maskShape||(this.maskShape=this.createMask(),this.maskShape.set("capture",!1)),this.updateMask(),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(c["j"])(r,(function(t){t.x+=n,t.y+=i})),this.updateMask(),this.emitEvent("change"),this.preMovePoint=t}},e.prototype.updateMask=function(){var t=this.getMaskAttrs();this.maskShape.attr(t)},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}(ce),Ql=Zl,Jl=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="circle",e}return Object(l["b"])(e,t),e.prototype.getMaskAttrs=function(){var t=this.points,e=Object(c["P"])(this.points),n=0,i=0,r=0;if(t.length){var a=t[0];n=qe(a,e)/2,i=(e.x+a.x)/2,r=(e.y+a.y)/2}return{x:i,y:r,r:n}},e}(Ql),Kl=Jl,tc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shapeType="rect",e}return Object(l["b"])(e,t),e.prototype.getRegion=function(){var t=this.points;return{start:Object(c["w"])(t),end:Object(c["P"])(t)}},e.prototype.getMaskAttrs=function(){var t=this.getRegion(),e=t.start,n=t.end,i=Math.min(e.x,n.x),r=Math.min(e.y,n.y),a=Math.abs(n.x-e.x),o=Math.abs(n.y-e.y);return{x:i,y:r,width:a,height:o}},e}(Ql),ec=tc;function nc(t){t.x=Object(c["c"])(t.x,0,1),t.y=Object(c["c"])(t.y,0,1)}var ic=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dim="x",e.inPlot=!0,e}return Object(l["b"])(e,t),e.prototype.getRegion=function(){var t=null,e=null,n=this.points,i=this.dim,r=this.context.view.getCoordinate(),a=r.invert(Object(c["w"])(n)),o=r.invert(Object(c["P"])(n));return this.inPlot&&(nc(a),nc(o)),"x"===i?(t=r.convert({x:a.x,y:0}),e=r.convert({x:o.x,y:1})):(t=r.convert({x:0,y:a.y}),e=r.convert({x:1,y:o.y})),{start:t,end:e}},e}(ec),rc=ic,ac=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.getMaskPath=function(){var t=this.points,e=[];return t.length&&(Object(c["j"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e.push(["L",t[0].x,t[0].y])),e},e.prototype.getMaskAttrs=function(){return{path:this.getMaskPath()}},e.prototype.addPoint=function(){this.resize()},e}(Ql),oc=ac,sc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.getMaskPath=function(){var t=this.points;return Ue(t,!0)},e}(oc),lc=sc,cc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(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}(ce),uc=cc,hc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(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(c["j"])(t.views,(function(t){i.filterView(t,e,n)}))},e.prototype.filter=function(){var t=Le(this.context);if(t){var e=this.context.view,n=t.component,i=n.get("field");if(Be(t)){if(i){var r=n.getItemsByState("unchecked"),a=tn(e,i),o=r.map((function(t){return t.name}));o.length?this.filterView(e,i,(function(t){var e=a.getText(t);return!o.includes(e)})):this.filterView(e,i,null),e.render(!0)}}else if(Ee(t)){var s=n.getValue(),l=s[0],c=s[1];this.filterView(e,i,(function(t){return t>=l&&t<=c})),e.render(!0)}}},e}(ce),pc=hc;function fc(t,e,n,i){var r=Math.min(n[e],i[e]),a=Math.max(n[e],i[e]),o=t.range,s=o[0],l=o[1];if(r<s&&(r=s),a>l&&(a=l),r===l&&a===l)return null;var c=t.invert(r),u=t.invert(a);if(t.isCategory){var h=t.values.indexOf(c),p=t.values.indexOf(u),f=t.values.slice(h,p+1);return function(t){return f.includes(t)}}return function(t){return t>=c&&t<=u}}var dc=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(l["b"])(e,t),e.prototype.hasDim=function(t){return this.dims.includes(t)},e.prototype.start=function(){var t=this.context;this.isStarted=!0,this.startPoint=t.getCurrentPoint()},e.prototype.filter=function(){var t,e;if(Fe(this.context)){var n=this.context.event.target,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.view,a=r.getCoordinate(),o=a.invert(e),s=a.invert(t);if(this.hasDim("x")){var l=r.getXScale(),c=fc(l,"x",o,s);this.filterView(r,l.field,c)}if(this.hasDim("y")){var u=r.getYScales()[0];c=fc(u,"y",o,s);this.filterView(r,u.field,c)}this.reRender(r)}},e.prototype.end=function(){this.isStarted=!1},e.prototype.reset=function(){var t=this.context.view;if(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)},e.prototype.filterView=function(t,e,n){t.filter(e,n)},e.prototype.reRender=function(t){t.render(!0)},e}(ce),gc=dc,vc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.filterView=function(t,e,n){var i=Ze(t);Object(c["j"])(i,(function(t){t.filter(e,n)}))},e.prototype.reRender=function(t){var e=Ze(t);Object(c["j"])(e,(function(t){t.render(!0)}))},e}(gc),mc=vc,yc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(l["b"])(e,t),e.prototype.filter=function(){var t=Le(this.context),e=this.context.view,n=Re(e);if(Fe(this.context)){var i=De(this.context,10);i&&Object(c["j"])(n,(function(t){i.includes(t)?t.show():t.hide()}))}else if(t){var r=t.component,a=r.get("field");if(Be(t)){if(a){var o=r.getItemsByState("unchecked"),s=tn(e,a),l=o.map((function(t){return t.name}));Object(c["j"])(n,(function(t){var e=Ne(t,a),n=s.getText(e);l.indexOf(n)>=0?t.hide():t.show()}))}}else if(Ee(t)){var u=r.getValue(),h=u[0],p=u[1];Object(c["j"])(n,(function(t){var e=Ne(t,a);e>=h&&e<=p?t.show():t.hide()}))}}},e.prototype.clear=function(){var t=Re(this.context.view);Object(c["j"])(t,(function(t){t.show()}))},e.prototype.reset=function(){this.clear()},e}(ce),bc=yc,xc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.byRecord=!1,e}return Object(l["b"])(e,t),e.prototype.filter=function(){Fe(this.context)&&(this.byRecord?this.filterByRecord():this.filterByBBox())},e.prototype.filterByRecord=function(){var t=this.context.view,e=De(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=Ze(t);Object(c["j"])(a,(function(t){var e=Re(t);Object(c["j"])(e,(function(t){var e=t.getModel().data;Ke(r,e,n,i)?t.show():t.hide()}))}))}},e.prototype.filterByBBox=function(){var t=this,e=this.context.view,n=Ze(e);Object(c["j"])(n,(function(e){var n=_e(t.context,e,10),i=Re(e);n&&Object(c["j"])(i,(function(t){n.includes(t)?t.show():t.hide()}))}))},e.prototype.reset=function(){var t=Ze(this.context.view);Object(c["j"])(t,(function(t){var e=Re(t);Object(c["j"])(e,(function(t){t.show()}))}))},e}(ce),Oc=xc,jc=10,wc=5,Cc=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(l["b"])(e,t),e.prototype.getButtonCfg=function(){return Object(c["h"])(this.buttonCfg,this.cfg)},e.prototype.drawButton=function(){var t=this.getButtonCfg(),e=this.context.view.foregroundGroup.addGroup({name:t.name}),n=e.addShape({type:"text",name:"button-text",attrs:Object(l["a"])({text:t.text},t.textStyle)}),i=n.getBBox(),r=Yn(t.padding),a=e.addShape({type:"rect",name:"button-rect",attrs:Object(l["a"])({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=nt["a"].transform(null,[["t",n.x-r.width-jc,n.y+r.height+wc]]);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}(ce),Mc=Cc,Sc=4,Ic=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.starting=!1,e.dragStart=!1,e}return Object(l["b"])(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}):qe(t,this.startPoint)>Sc&&(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}(ce),kc=Ic,Tc=5,Ac=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(l["b"])(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=qe(t,e);if(n>Tc&&!this.isMoving&&(this.isMoving=!0),this.isMoving){var i=this.context.view,r=nt["a"].transform(this.startMatrix,[["t",e.x-t.x,e.y-t.y]]);i.backgroundGroup.setMatrix(r),i.foregroundGroup.setMatrix(r),i.middleGroup.setMatrix(r)}}},e.prototype.end=function(){this.isMoving&&(this.isMoving=!1),this.startMatrix=null,this.starting=!1,this.startPoint=null},e.prototype.reset=function(){this.starting=!1,this.startPoint=null,this.isMoving=!1;var t=this.context.view;t.backgroundGroup.resetMatrix(),t.foregroundGroup.resetMatrix(),t.middleGroup.resetMatrix(),this.isMoving=!1},e}(ce),Lc=Ac,Pc="x",Bc="y",Ec=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dims=[Pc,Bc],e.cfgFields=["dims"],e.cacheScaleDefs={},e}return Object(l["b"])(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(Pc),this.resetDim(Bc);var t=this.context.view;t.render(!0)},e}(ce),Fc=Ec,Dc=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(l["b"])(e,t),e.prototype.start=function(){var t=this;this.startPoint=this.context.getCurrentPoint(),this.starting=!0;var e=this.dims;Object(c["j"])(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,s=a.y-r.y,l=this.context.view,u=this.dims;Object(c["j"])(u,(function(e){t.translateDim(e,{x:-1*o,y:-1*s})})),l.render(!0)}},e.prototype.translateDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.translateLinear(t,n,e)}},e.prototype.translateLinear=function(t,e,n){var i=this.context.view,r=this.startCache[t],a=r.min,o=r.max,s=o-a,l=n[t]*s;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:a,max:o}),i.scale(e.field,{nice:!1,min:a+l,max:o+l})},e.prototype.reset=function(){t.prototype.reset.call(this),this.startPoint=null,this.starting=!1},e}(Fc),_c=Dc,Rc=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.zoomRatio=.05,e}return Object(l["b"])(e,t),e.prototype.zoomIn=function(){this.zoom(this.zoomRatio)},e.prototype.zoom=function(t){var e=this,n=this.dims;Object(c["j"])(n,(function(n){e.zoomDim(n,t)})),this.context.view.render(!0)},e.prototype.zoomOut=function(){this.zoom(-1*this.zoomRatio)},e.prototype.zoomDim=function(t,e){if(this.hasDim(t)){var n=this.getScale(t);n.isLinear&&this.zoomLinear(t,n,e)}},e.prototype.zoomLinear=function(t,e,n){var i=this.context.view;this.cacheScaleDefs[t]||(this.cacheScaleDefs[t]={nice:e.nice,min:e.min,max:e.max});var r=this.cacheScaleDefs[t],a=r.max-r.min,o=e.min,s=e.max,l=n*a,c=o-l,u=s+l,h=u-c,p=h/a;u>c&&p<100&&p>.01&&i.scale(e.field,{nice:!1,min:o-l,max:s+l})},e}(Fc),Gc=Rc;function Yc(t){return t.isInPlot()}function Nc(t){return t.gEvent.preventDefault(),t.gEvent.originalEvent.deltaY>0}In("dark",mn(fr)),j("canvas",dr),j("svg",gr),ei("Polygon",aa),ei("Interval",$r),ei("Schema",sa),ei("Path",Tr),ei("Point",na),ei("Line",Qr),ei("Area",Er),ei("Edge",Dr),ei("Heatmap",Rr),Mi("base",Ki),Mi("interval",Aa),Mi("pie",Fa),Mi("polar",Ba),Ii("overlap",eo),Ii("distribute",Ra),Ii("fixed-overlap",to),Ii("hide-overlap",uo),Ii("limit-in-shape",$a),Ii("limit-in-canvas",Ua),Ii("limit-in-plot",Fo),Ii("pie-outer",za),Ii("adjust-color",go),Ii("interval-adjust-position",bo),Ii("interval-hide-overlap",Oo),Ii("point-adjust-position",So),Ii("pie-spider",qa),Ii("path-adjust-position",Lo),hi("fade-in",Do),hi("fade-out",_o),hi("grow-in-x",Yo),hi("grow-in-xy",zo),hi("grow-in-y",No),hi("scale-in-x",Ho),hi("scale-in-y",Wo),hi("wave-in",Qo),hi("zoom-in",Ko),hi("zoom-out",ts),hi("position-update",Xo),hi("sector-path-update",Zo),hi("path-in",Vo),se("rect",ps),se("mirror",us),se("list",os),se("matrix",ls),se("circle",rs),se("tree",ds),zn("axis",ks),zn("legend",Bs),zn("tooltip",li),zn("annotation",xs),zn("slider",Fs),zn("scrollbar",Ns),de("tooltip",Hs),de("sibling-tooltip",qs),de("ellipsis-text",$s),de("element-active",nl),de("element-single-active",pl),de("element-range-active",ll),de("element-highlight",xl),de("element-highlight-by-x",Cl),de("element-highlight-by-color",jl),de("element-single-highlight",kl),de("element-range-highlight",Sl),de("element-sibling-highlight",Sl,{effectSiblings:!0,effectByRecord:!0}),de("element-selected",Pl),de("element-single-selected",El),de("element-range-selected",Al),de("element-link-by-color",rl),de("active-region",Vs),de("list-active",Rl),de("list-selected",ql),de("list-highlight",Hl),de("list-unchecked",$l),de("legend-item-highlight",Hl,{componentNames:["legend"]}),de("axis-label-highlight",Hl,{componentNames:["axis"]}),de("rect-mask",ec),de("x-rect-mask",rc,{dim:"x"}),de("y-rect-mask",rc,{dim:"y"}),de("circle-mask",Kl),de("path-mask",oc),de("smooth-path-mask",lc),de("cursor",uc),de("data-filter",pc),de("brush",gc),de("brush-x",gc,{dims:["x"]}),de("brush-y",gc,{dims:["y"]}),de("sibling-filter",mc),de("sibling-x-filter",mc),de("sibling-y-filter",mc),de("element-filter",bc),de("element-sibling-filter",Oc),de("element-sibling-filter-record",Oc,{byRecord:!0}),de("view-drag",kc),de("view-move",Lc),de("scale-translate",_c),de("scale-zoom",Gc),de("reset-button",Mc,{name:"reset-button",text:"reset"}),fn("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"}]}),fn("ellipsis-text",{start:[{trigger:"legend-item-name:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"legend-item-name:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:mousemove",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}},{trigger:"axis-label:touchstart",action:"ellipsis-text:show",throttle:{wait:50,leading:!0,trailing:!1}}],end:[{trigger:"legend-item-name:mouseleave",action:"ellipsis-text:hide"},{trigger:"legend-item-name:touchend",action:"ellipsis-text:hide"},{trigger:"axis-label:mouseleave",action:"ellipsis-text:hide"},{trigger:"axis-label:touchend",action:"ellipsis-text:hide"}]}),fn("element-active",{start:[{trigger:"element:mouseenter",action:"element-active:active"}],end:[{trigger:"element:mouseleave",action:"element-active:reset"}]}),fn("element-selected",{start:[{trigger:"element:click",action:"element-selected:toggle"}]}),fn("element-highlight",{start:[{trigger:"element:mouseenter",action:"element-highlight:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight:reset"}]}),fn("element-highlight-by-x",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-x:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-x:reset"}]}),fn("element-highlight-by-color",{start:[{trigger:"element:mouseenter",action:"element-highlight-by-color:highlight"}],end:[{trigger:"element:mouseleave",action:"element-highlight-by-color:reset"}]}),fn("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"]}]}),fn("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"]}]}),fn("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"]}]}),fn("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"]}]}),fn("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"]}]}),fn("brush",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Yc,action:["brush:start","rect-mask:start","rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Yc,action:["rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Yc,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"]}]}),fn("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"]}]}),fn("brush-x",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Yc,action:["brush-x:start","x-rect-mask:start","x-rect-mask:show"]}],processing:[{trigger:"mousemove",isEnable:Yc,action:["x-rect-mask:resize"]}],end:[{trigger:"mouseup",isEnable:Yc,action:["brush-x:filter","brush-x:end","x-rect-mask:end","x-rect-mask:hide"]}],rollback:[{trigger:"dblclick",action:["brush-x:reset"]}]}),fn("element-path-highlight",{showEnable:[{trigger:"plot:mouseenter",action:"cursor:crosshair"},{trigger:"plot:mouseleave",action:"cursor:default"}],start:[{trigger:"mousedown",isEnable:Yc,action:"path-mask:start"},{trigger:"mousedown",isEnable:Yc,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"}]}),fn("element-single-selected",{start:[{trigger:"element:click",action:"element-single-selected:toggle"}]}),fn("legend-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","data-filter:filter"]}]}),fn("continuous-filter",{start:[{trigger:"legend:valuechanged",action:"data-filter:filter"}]}),fn("continuous-visible-filter",{start:[{trigger:"legend:valuechanged",action:"element-filter:filter"}]}),fn("legend-visible-filter",{showEnable:[{trigger:"legend-item:mouseenter",action:"cursor:pointer"},{trigger:"legend-item:mouseleave",action:"cursor:default"}],start:[{trigger:"legend-item:click",action:["list-unchecked:toggle","element-filter:filter"]}]}),fn("active-region",{start:[{trigger:"plot:mousemove",action:"active-region:show"}],end:[{trigger:"plot:mouseleave",action:"active-region:hide"}]}),fn("view-zoom",{start:[{trigger:"plot:mousewheel",isEnable:function(t){return Nc(t.event)},action:"scale-zoom:zoomOut",throttle:{wait:100,leading:!0,trailing:!1}},{trigger:"plot:mousewheel",isEnable:function(t){return!Nc(t.event)},action:"scale-zoom:zoomIn",throttle:{wait:100,leading:!0,trailing:!1}}]}),fn("sibling-tooltip",{start:[{trigger:"plot:mousemove",action:"sibling-tooltip:show"}],end:[{trigger:"plot:mouseleave",action:"sibling-tooltip:hide"}]});var zc=n("4cfb"),Vc=zc["a"].getAnalysisChart,Xc={name:"ImgTextAnalysis",data:function(){return{data:[],height:400,init:!1}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"微信群发",breadPath:"/wechat/mass/list"},{breadName:"图文分析"}])},mounted:function(){this.getData()},methods:{initChart:function(t){var e=new ri({container:"container",autoFit:!0,height:500});e.data(t),e.scale("value",{nice:!0}),e.legend({position:"top"}),e.interval().position("time*value").color("name",(function(t,e){return"阅读次数"==t?"#517EFF":"分享次数"==t?"#13C2C2":"#FACC14"})).adjust([{type:"dodge",marginRatio:0}]),e.render()},getData:function(){var t=this;if(!this.loading){this.loading=!0;var e={msgDataId:this.$route.query.msgDataId,itemIndex:this.$route.query.idx};Vc(e).then((function(e){t.loading=!1;var n=e.result||[],i=[];n.forEach((function(t){i.push({name:"阅读次数",time:t.refDate+" ",value:t.intPageReadCount}),i.push({name:"分享次数",time:t.refDate+" ",value:t.shareCount}),i.push({name:"收藏次数",time:t.refDate+" ",value:t.addToFavCount})})),t.initChart(i)})).finally((function(){t.loading=!1}))}}}},Hc=Xc,Wc=(n("4502"),n("2877")),qc=Object(Wc["a"])(Hc,o,s,!1,null,"30a4fc7a",null);e["default"]=qc.exports},"31a1":function(t,e,n){"use strict";var i=n("9ab4"),r=n("ccaf"),a=n("6928"),o=function(t){function e(e){return t.call(this,e)||this}return Object(i["b"])(e,t),e.prototype._isInBBox=function(t,e){var n=this.getBBox();return n.minX<=t&&n.maxX>=t&&n.minY<=e&&n.maxY>=e},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e),this.clearCacheBBox()},e.prototype.getBBox=function(){var t=this.cfg.bbox;return t||(t=this.calculateBBox(),this.set("bbox",t)),t},e.prototype.getCanvasBBox=function(){var t=this.cfg.canvasBBox;return t||(t=this.calculateCanvasBBox(),this.set("canvasBBox",t)),t},e.prototype.applyMatrix=function(e){t.prototype.applyMatrix.call(this,e),this.set("canvasBBox",null)},e.prototype.calculateCanvasBBox=function(){var t=this.getBBox(),e=this.getTotalMatrix(),n=t.minX,i=t.minY,r=t.maxX,o=t.maxY;if(e){var s=Object(a["c"])(e,[t.minX,t.minY]),l=Object(a["c"])(e,[t.maxX,t.minY]),c=Object(a["c"])(e,[t.minX,t.maxY]),u=Object(a["c"])(e,[t.maxX,t.maxY]);n=Math.min(s[0],l[0],c[0],u[0]),r=Math.max(s[0],l[0],c[0],u[0]),i=Math.min(s[1],l[1],c[1],u[1]),o=Math.max(s[1],l[1],c[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,m=void 0===v?0:v,y=n-f+g,b=r+f+g,x=i-f+m,O=o+f+m;n=Math.min(n,y),r=Math.max(r,b),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"),l=n("3665"),c="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["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{container:null,shapesMap:{},group:null,capture:!0,isRegister:!1,isUpdating:!1,isInit:!0})},e.prototype.remove=function(){this.clear();var t=this.get("group");t.remove()},e.prototype.clear=function(){var t=this.get("group");t.clear(),this.set("shapesMap",{}),this.clearOffScreenCache(),this.set("isInit",!0)},e.prototype.getChildComponentById=function(t){var e=this.getElementById(t),n=e&&e.get("component");return n},e.prototype.getElementById=function(t){return this.get("shapesMap")[t]},e.prototype.getElementByLocalId=function(t){var e=this.getElementId(t);return this.getElementById(e)},e.prototype.getElementsByName=function(t){var e=[];return Object(r["j"])(this.get("shapesMap"),(function(n){n.get("name")===t&&e.push(n)})),e},e.prototype.getContainer=function(){return this.get("container")},e.prototype.updateInner=function(t){this.offScreenRender(),this.get("updateAutoRender")&&this.render()},e.prototype.render=function(){var t=this.get("offScreenGroup");t||(t=this.offScreenRender());var e=this.get("group");this.updateElements(t,e),this.deleteElements(),this.applyOffset(),this.get("eventInitted")||(this.initEvent(),this.set("eventInitted",!0)),this.set("isInit",!1)},e.prototype.show=function(){var t=this.get("group");t.show(),this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("group");t.hide(),this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.get("group");e.set("capture",t),this.set("capture",t)},e.prototype.destroy=function(){this.removeEvent(),this.remove(),t.prototype.destroy.call(this)},e.prototype.getBBox=function(){return this.get("group").getCanvasBBox()},e.prototype.getLayoutBBox=function(){var t=this.get("group"),e=this.getInnerLayoutBBox(),n=t.getTotalMatrix();return n&&(e=Object(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["c"])(e,["id","component"]),o=new r(Object(i["a"])(Object(i["a"])({},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["G"])(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"),l=t.getChildren().slice(0);Object(r["j"])(l,(function(t){var l=t.get("id"),p=i.getElementById(l),f=t.get("name");if(p)if(t.get("isComponent")){var d=t.get("component"),g=p.get("component"),v=Object(r["X"])(d.cfg,Object(r["i"])(Object(r["O"])(d.cfg),h));g.update(v),p.set(c,"update")}else{var m=i.getReplaceAttrs(p,t);a&&o.update?i.updateAnimation(f,p,m,o.update):p.attr(m),t.isGroup()&&i.updateElements(t,p),Object(r["j"])(u,(function(e){p.set(e,t.get(e))})),Object(s["m"])(p,t),n=p,p.set(c,"update")}else{e.add(t);var y=e.getChildren();if(y.splice(y.length-1,1),n){var b=y.indexOf(n);y.splice(b+1,0,t)}else y.unshift(t);if(i.registerElement(t),t.set(c,"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["j"])(e,(function(t){t.set(c,null)}))},e.prototype.clearOffScreenCache=function(){var t=this.get("offScreenGroup");t&&t.destroy(),this.set("offScreenGroup",null),this.set("offScreenBBox",null)},e.prototype.getDelegateObject=function(){var t,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["U"])(e.delegateObject,n)},e.prototype.getReplaceAttrs=function(t,e){var n=t.attr(),i=e.attr();return Object(r["j"])(n,(function(t,e){void 0===i[e]&&(i[e]=void 0)})),i},e.prototype.registerNewGroup=function(t){var e=this,n=t.getChildren();Object(r["j"])(n,(function(t){e.registerElement(t),t.set(c,"add"),t.isGroup()&&e.registerNewGroup(t)}))},e.prototype.deleteElements=function(){var t=this,e=this.get("shapesMap"),n=[];Object(r["j"])(e,(function(t,e){!t.get(c)||t.destroyed?n.push([e,t]):t.set(c,null)}));var i=this.get("animate"),a=this.get("animateOption");Object(r["j"])(n,(function(n){var o=n[0],s=n[1];if(!s.destroyed){var l=s.get("name");if(i&&a.leave){var c=Object(r["U"])({callback:function(){t.removeElement(s)}},a.leave);t.removeAnimation(l,s,c)}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}(l["a"]);e["a"]=p},"330d":function(t,e,n){"use strict";var i=n("9ab4"),r=n("ccaf"),a=n("b2cb"),o={},s="_INDEX";function l(t,e){if(t.set("canvas",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){l(t,e)}))}}function c(t,e){if(t.set("timeline",e),t.isGroup()){var n=t.get("children");n.length&&n.forEach((function(t){c(t,e)}))}}function u(t,e,n){void 0===n&&(n=!0),n?e.destroy():(e.set("parent",null),e.set("canvas",null)),Object(a["j"])(t.getChildren(),e)}function h(t){return function(e,n){var i=t(e,n);return 0===i?e[s]-n[s]:i}}var p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.isCanvas=function(){return!1},e.prototype.getBBox=function(){var t=1/0,e=-1/0,n=1/0,i=-1/0,r=[],o=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));s.length>0?(Object(a["a"])(s,(function(t){var e=t.getBBox();r.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,o),i=Math.max.apply(null,o)):(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,r=[],o=[],s=this.getChildren().filter((function(t){return t.get("visible")&&(!t.isGroup()||t.isGroup()&&t.getChildren().length>0)}));s.length>0?(Object(a["a"])(s,(function(t){var e=t.getCanvasBBox();r.push(e.minX,e.maxX),o.push(e.minY,e.maxY)})),t=Math.min.apply(null,r),e=Math.max.apply(null,r),n=Math.min.apply(null,o),i=Math.max.apply(null,o)):(t=0,e=0,n=0,i=0);var l={x:t,y:n,minX:t,minY:n,maxX:e,maxY:i,width:e-t,height:i-n};return l},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["children"]=[],e},e.prototype.onAttrChange=function(e,n,i){if(t.prototype.onAttrChange.call(this,e,n,i),"matrix"===e){var r=this.getTotalMatrix();this._applyChildrenMarix(r)}},e.prototype.applyMatrix=function(e){var n=this.getTotalMatrix();t.prototype.applyMatrix.call(this,e);var i=this.getTotalMatrix();i!==n&&this._applyChildrenMarix(i)},e.prototype._applyChildrenMarix=function(t){var e=this.getChildren();Object(a["a"])(e,(function(e){e.applyMatrix(t)}))},e.prototype.addShape=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0],i=t[1];Object(a["f"])(n)?i=n:i["type"]=n;var r=o[i.type];r||(r=Object(a["k"])(i.type),o[i.type]=r);var s=this.getShapeBase(),l=new s[r](i);return this.add(l),l},e.prototype.addGroup=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n,i=t[0],r=t[1];if(Object(a["d"])(i))n=new i(r||{parent:this});else{var o=i||{},s=this.getGroupBase();n=new s(o)}return this.add(n),n},e.prototype.getCanvas=function(){var t;return t=this.isCanvas()?this:this.get("canvas"),t},e.prototype.getShape=function(t,e,n){if(!Object(a["b"])(this))return null;var i,r=this.getChildren();if(this.isCanvas())i=this._findShape(r,t,e,n);else{var o=[t,e,1];o=this.invertFromMatrix(o),this.isClipped(o[0],o[1])||(i=this._findShape(r,o[0],o[1],n))}return i},e.prototype._findShape=function(t,e,n,i){for(var r=null,o=t.length-1;o>=0;o--){var s=t[o];if(Object(a["b"])(s)&&(s.isGroup()?r=s.getShape(e,n,i):s.isHit(e,n)&&(r=s)),r)break}return r},e.prototype.add=function(t){var e=this.getCanvas(),n=this.getChildren(),i=this.get("timeline"),r=t.getParent();r&&u(r,t,!1),t.set("parent",this),e&&l(t,e),i&&c(t,i),n.push(t),t.onCanvasChange("add"),this._applyElementMatrix(t)},e.prototype._applyElementMatrix=function(t){var e=this.getTotalMatrix();e&&t.applyMatrix(e)},e.prototype.getChildren=function(){return this.get("children")},e.prototype.sort=function(){var t=this.getChildren();Object(a["a"])(t,(function(t,e){return t[s]=e,t})),t.sort(h((function(t,e){return t.get("zIndex")-e.get("zIndex")}))),this.onCanvasChange("sort")},e.prototype.clear=function(){if(this.set("clearing",!0),!this.destroyed){for(var t=this.getChildren(),e=t.length-1;e>=0;e--)t[e].destroy();this.set("children",[]),this.onCanvasChange("clear"),this.set("clearing",!1)}},e.prototype.destroy=function(){this.get("destroyed")||(this.clear(),t.prototype.destroy.call(this))},e.prototype.getFirst=function(){return this.getChildByIndex(0)},e.prototype.getLast=function(){var t=this.getChildren();return this.getChildByIndex(t.length-1)},e.prototype.getChildByIndex=function(t){var e=this.getChildren();return e[t]},e.prototype.getCount=function(){var t=this.getChildren();return t.length},e.prototype.contain=function(t){var e=this.getChildren();return e.indexOf(t)>-1},e.prototype.removeChild=function(t,e){void 0===e&&(e=!0),this.contain(t)&&t.remove(e)},e.prototype.findAll=function(t){var e=[],n=this.getChildren();return Object(a["a"])(n,(function(n){t(n)&&e.push(n),n.isGroup()&&(e=e.concat(n.findAll(t)))})),e},e.prototype.find=function(t){var e=null,n=this.getChildren();return Object(a["a"])(n,(function(n){if(t(n)?e=n:n.isGroup()&&(e=n.find(t)),e)return!1})),e},e.prototype.findById=function(t){return this.find((function(e){return e.get("id")===t}))},e.prototype.findByClassName=function(t){return this.find((function(e){return e.get("className")===t}))},e.prototype.findAllByName=function(t){return this.findAll((function(e){return e.get("name")===t}))},e}(r["a"]);e["a"]=p},"333b":function(t,e,n){"use strict";n("10ac")},3622:function(t,e,n){},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["b"])(e,t),e.prototype.getDefaultCfg=function(){return{id:"",name:"",type:"",locationType:"none",offsetX:0,offsetY:0,animate:!1,capture:!0,updateAutoRender:!1,animateOption:{appear:null,update:{duration:400,easing:"easeQuadInOut"},enter:{duration:400,easing:"easeQuadInOut"},leave:{duration:350,easing:"easeQuadIn"}},events:null,defaultCfg:{},visible:!0}},e.prototype.clear=function(){},e.prototype.update=function(t){var e=this,n=this.get("defaultCfg");Object(a["j"])(t,(function(t,i){var r=e.get(i),o=t;r!==t&&(Object(a["K"])(t)&&n[i]&&(o=Object(a["h"])({},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["v"])(t,"visible")&&(t.visible?this.show():this.hide()),Object(a["v"])(t,"capture")&&this.setCapture(t.capture)},e.prototype.getLayoutBBox=function(){return this.getBBox()},e.prototype.getLocationType=function(){return this.get("locationType")},e.prototype.getOffset=function(){return{offsetX:this.get("offsetX"),offsetY:this.get("offsetY")}},e.prototype.setOffset=function(t,e){this.update({offsetX:t,offsetY:e})},e.prototype.setLocation=function(t){var e=Object(i["a"])({},t);this.update(e)},e.prototype.getLocation=function(){var t=this,e={},n=this.get("locationType"),i=o[n];return Object(a["j"])(i,(function(n){e[n]=t.get(n)})),e},e.prototype.isList=function(){return!1},e.prototype.isSlider=function(){return!1},e.prototype.init=function(){},e.prototype.initCfg=function(){var t=this,e=this.get("defaultCfg");Object(a["j"])(e,(function(e,n){var i=t.get(n);if(Object(a["K"])(i)){var r=Object(a["h"])({},e,i);t.set(n,r)}}))},e}(r["Base"]);e["a"]=s},"3b21":function(t,e,n){},"3cf4":function(t,e,n){},"40a0":function(t,e,n){"use strict";n("2bbc")},"41c8":function(t,e,n){"use strict";var i=n("8937"),r=n("d177"),a=function(){function t(t){var e=t.xField,n=t.yField,i=t.adjustNames,r=void 0===i?["x","y"]:i;this.adjustNames=r,this.xField=e,this.yField=n}return t.prototype.isAdjust=function(t){return this.adjustNames.indexOf(t)>=0},t.prototype.getAdjustRange=function(t,e,n){var i,r,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["j"](t,(function(t,e){i["j"](r,(function(i,r){n.adjustDim(r,i,t,e)}))}))},t.prototype.groupData=function(t,e){return i["j"](t,(function(t){void 0===t[e]&&(t[e]=r["a"])})),i["t"](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={},s=[];if(n&&this.isAdjust("x")&&s.push(n),a&&this.isAdjust("y")&&s.push(a),s.forEach((function(e){o[e]=i["nb"](t,e).sort((function(t,e){return t-e}))})),!a&&this.isAdjust("y")){var l="y";o[l]=[r["a"],1]}return o},t}();e["a"]=a},"435d":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{staticClass:"img-text-form"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.imgTextList.length,expression:"imgTextList.length"}],staticClass:"editor-list border1"},[n("div",{staticClass:"editor-list-box"},[t._l(t.imgTextList,(function(e,i){return n("div",{key:i},[0===i?n("div",{staticClass:"editor-list-first",class:{active:0===t.activeClass},on:{click:function(n){return t.choice(e,i,!0)}}},[n("div",{staticClass:"editor-list-first_inner",style:"background-image: url("+e.imageUrl+")"},[n("p",{staticClass:"ellipsis-100"},[n("span",[t._v(t._s(e.wechatTitle||"标题"))])])])]):n("div",{staticClass:"editor-list-item",class:{active:t.activeClass===i},on:{mouseenter:function(t){e.toolbar=!0},mouseleave:function(t){e.toolbar=!1},click:function(n){return t.choice(e,i,!0)}}},[n("div",{staticClass:"clearfix editor-list-item_inner"},[n("p",{staticClass:"fl text"},[n("span",{staticClass:"ellipsis-100"},[t._v(t._s(e.wechatTitle||"标题"))])]),n("div",{staticClass:"fr",style:"background-image: url("+e.imageUrl+")"}),n("p",{staticClass:"editor-list-item_move clearfix",class:{show:e.toolbar}},[n("i",{directives:[{name:"show",rawName:"v-show",value:0!==i,expression:"i !== 0"}],staticClass:"el-icon-upload2 fl pl10",on:{click:function(n){return n.stopPropagation(),t.moveTop(e,i)}}}),n("i",{directives:[{name:"show",rawName:"v-show",value:i!==t.imgTextList.length-1,expression:"i !== imgTextList.length - 1"}],staticClass:"el-icon-download fl pl10",on:{click:function(n){return n.stopPropagation(),t.moveBottom(e,i)}}}),t.isAdd?n("i",{staticClass:"el-icon-delete fr",on:{click:function(n){return n.stopPropagation(),t.deleteItem(e,i)}}}):t._e()])])])])})),t.imgTextList.length<7&&t.isAdd?n("div",{staticClass:"editor-list-add",on:{click:t.addTextToList}},[n("i",{staticClass:"el-icon-plus"})]):t._e()],2)]),n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.rightLoading,expression:"rightLoading"}],staticClass:"editor-content"},[n("div",{staticStyle:{"min-height":"600px"}},[t.currentAreaId&&t.activeImgText&&t.hasloadedJsReady?n("editor",{ref:"iftEditor",staticStyle:{width:"654px"},attrs:{"active-img-text":t.activeImgText,"fwh-appid":t.fwhAppid},on:{update:t.updateContent,"update:activeImgText":function(e){t.activeImgText=e},"update:active-img-text":function(e){t.activeImgText=e}}}):t._e()],1),t.currentAreaId&&t.activeImgText?n("paper-cover",{staticStyle:{width:"654px"},attrs:{"active-img-text":t.activeImgText},on:{"update:activeImgText":function(e){t.activeImgText=e},"update:active-img-text":function(e){t.activeImgText=e}}}):t._e()],1),n("div",{staticClass:"btn-wrap_fixed"},[n("el-button",{staticClass:"w85",attrs:{type:"primary",loading:t.loading},on:{click:t.submitForm}},[t._v("保存")]),n("el-button",{staticClass:"w85",on:{click:function(e){return t.$router.push({path:"/wechat/img-text/list",query:{aId:t.currentAreaId}})}}},[t._v("返回")])],1),n("fix-tips",{attrs:{title:"QA说明"}},[n("ul",{staticClass:"tips-ul"},[n("li",[n("p",{staticClass:"Q"},[t._v("微信图文编辑保存时为什么会出现不合法媒体ID的提示？")]),n("p",{staticClass:"A"},[t._v("图文在GIC侧编辑保存时，图文中的封面图与原图文（微信侧）中不一致，将会导致无法发送。如需发送，需在GIC侧重新编辑图文，从素材库或本地文件重新上传封面图即可。")])]),n("li",[n("p",{staticClass:"Q"},[t._v("图文在编辑保存时，校验失败是怎么回事？")]),n("p",{staticClass:"A"},[t._v("请检查该公众号图文群发是否有超链接功能，若该公众号图文群发无超链接功能，而图文加入了超链接时则会出现检验失败的情况，此时删除文中的超链接即可。")])]),n("li",[n("p",{staticClass:"Q"},[t._v("为什么我发送的图文里会有广告？")]),n("p",{staticClass:"A"},[t._v("发送图文的公众号在微信原生后台开启了广告配置的功能，从而导致发送图文中存在广告，如需关闭广告，请在微信原生后台-流量主功能出进行配置。")])]),n("li",{staticStyle:{"margin-bottom":"24px"}},[n("p",{staticClass:"Q"},[t._v("为什么我发的图文出现了别人的内容？")]),n("p",{staticClass:"A"},[t._v("由于微信平台拥有原创保护监测机制，如果所发送的图文中，图文内容与已申请原创申明的图文内容高度相似时，图文发送后，微信会将图文链接更换为原创内容的链接，请注意保证图文的原创性。")])]),n("li",[n("a",{attrs:{href:"https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&key=1463730026&version=1&lang=zh_CN&platform=2&token=1734190417",target:"_blank"}},[t._v("《微信公众平台原创声明及相关功能使用条款》"),n("i",{staticClass:"iconfont-market4 icon-jiantou",staticStyle:{position:"relative",top:"2px"}})])])])])],1)},r=[],a=(n("8e6e"),n("c5f6"),n("ac6a"),n("456d"),n("a481"),n("6762"),n("2fdb"),n("4917"),n("ade3")),o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"fix-tips",class:{show:t.show}},[n("div",{staticClass:"show-icon",on:{click:function(e){return t.changeShow(!0)}}},[n("i",{staticClass:"iconfont-market4 icon-zhinengwenda"})]),n("div",{staticClass:"content",class:{fadeInRight:t.show}},[n("p",{staticClass:"title"},[t._v("\n      "+t._s(t.title)+"\n      "),n("i",{staticClass:"el-icon-close fr gray02 cursor fz16 hover-btn",on:{click:function(e){return t.changeShow(!1)}}})]),n("div",{staticStyle:{"overflow-y":"auto",height:"575px",padding:"0 20px"}},[t._t("default")],2)]),n("div",{staticClass:"mask",on:{click:function(e){return t.changeShow(!1)}}})])},s=[],l={name:"FixTips",props:["title"],data:function(){return{show:!1}},methods:{changeShow:function(t){this.show=t}}},c=l,u=(n("bb5d"),n("2877")),h=Object(u["a"])(c,o,s,!1,null,"3faf7baf",null),p=h.exports,f=n("cf45"),d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:!t.show,expression:"!show"}],staticStyle:{"min-height":"600px",margin:"0px auto 0","padding-top":"10px"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticStyle:{position:"relative"}},[n("div",{staticStyle:{height:"160px",position:"absolute","z-index":"3",top:"40px",width:"100%"},attrs:{id:"extra-block"}},[n("div",{attrs:{id:"mytool"}},[n("div",{staticClass:"single-option",on:{click:function(e){t.imgSelectVisible=!0}}},[n("i",{staticClass:"icon-tupian iconfont-market4"}),n("span",[t._v("图片")])])]),n("div",{staticClass:"title-author"},[n("el-input",{staticClass:"title mb10",attrs:{maxlength:"40",placeholder:"请在这里输入标题"},model:{value:t.activeImgText.wechatTitle,callback:function(e){t.$set(t.activeImgText,"wechatTitle",e)},expression:"activeImgText.wechatTitle"}}),n("el-input",{staticClass:"author",attrs:{maxlength:"10",placeholder:"请输入作者"},model:{value:t.activeImgText.authorName,callback:function(e){t.$set(t.activeImgText,"authorName",e)},expression:"activeImgText.authorName"}})],1)]),n("textarea",{attrs:{id:"mytextarea"}})]),n("div",{staticClass:"hidden"},[n("img-select-dialog",{ref:"selectImg",attrs:{"dialog-visible":t.imgSelectVisible,"fwh-appid":t.fwhAppid,"refresh-type":""},on:{"update:dialogVisible":function(e){t.imgSelectVisible=e},"update:dialog-visible":function(e){t.imgSelectVisible=e},selectImgBack:t.backImg}})],1)])},g=[],v=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{staticStyle:{"z-index":"9999"},attrs:{title:"图片选择器",visible:t.dialogVisible,width:"800px","append-to-body":"","lock-scroll":!0},on:{"update:visible":function(e){t.dialogVisible=e},close:t.close}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("div",{staticClass:"mb10 overflow-hidden"},[n("el-input",{staticClass:"w240",attrs:{clearable:"",placeholder:"请输入图片名称"},on:{change:t.refresh},model:{value:t.listParams.search,callback:function(e){t.$set(t.listParams,"search",e)},expression:"listParams.search"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),n("el-button",{staticClass:"fr",attrs:{icon:"el-icon-refresh"},on:{click:t.refresh}},[t._v("刷新")])],1),n("div",{staticClass:"g-block"},[n("div",{staticClass:"group-list"},[n("span",{staticClass:"grp"},[t._v("分组")]),n("ul",{staticClass:"hasPd",class:{isOpen:t.isOpen}},t._l(t.groupList,(function(e){return n("li",{key:e.imageGroupId,class:{active:t.listParams.imageGroupId===e.imageGroupId},attrs:{li:""},on:{click:function(n){return t.changeGroupId(e)}}},[t._v(t._s(e.groupName))])})),0),n("span",{staticClass:"showMore",on:{click:function(e){t.isOpen=!t.isOpen}}},[n("i",{class:t.isOpen?"el-icon-arrow-up":"el-icon-arrow-down"})])]),n("div",{directives:[{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.next,expression:"next"},{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticStyle:{overflow:"auto",height:"425px"}},[n("ul",{staticClass:"clearfix img-list"},t._l(t.tableList,(function(e){return n("li",{key:e.imageId,class:{selected:t.selectedData.imageId===e.imageId},on:{dblclick:function(n){t.selectedData=e,t.addItem()},click:function(n){t.selectedData=e}}},[n("div",[n("img",{attrs:{src:e.imageUrl,draggable:"false"}})]),n("p",[t._v(t._s(e.title))])])})),0),t.tableList.length?t._e():n("div",{staticClass:"el-table__empty-block",staticStyle:{height:"400px","min-height":"auto"}},[n("span",{staticClass:"el-table__empty-text"},[t._v("暂无数据")])]),t.nomore&&t.tableList.length?n("div",{staticStyle:{"text-align":"center","padding-bottom":"10px"}},[n("span",{staticClass:"el-table__empty-text"},[t._v("没有更多")])]):t._e()])])]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.handleClose}},[t._v("关闭")]),n("el-button",{attrs:{type:"primary"},on:{click:t.addItem}},[t._v("确认")])],1)])},m=[],y=n("4cfb"),b=y["a"].getImgList,x=y["a"].getGroupList,O=[{groupName:"全部",imageGroupId:""},{groupName:"未分组",imageGroupId:0}],j={name:"ImgSelectDialog",props:{dialogVisible:{type:Boolean,default:!1},fwhAppid:{type:String,require:!0},refreshType:{default:!1,type:Boolean}},data:function(){return{loading:!1,selectedData:{},tableList:[],groupList:[],isOpen:!1,listParams:{currentPage:1,pageSize:8,imageGroupId:"",search:"",fwhAppid:""},total:0,nomore:!1}},methods:{refresh:function(){this.selectedData={},this.tableList=[],this.nomore=!1,this.listParams.currentPage=1,this.getTableList()},next:function(){this.listParams.currentPage+=1,this.getTableList()},getTableList:function(){var t=this;this.loading||this.nomore||(this.loading=!0,this.listParams.fwhAppid=this.fwhAppid||"",b(this.listParams).then((function(e){t.loading=!1;var n=e.result.result||[];t.tableList=t.tableList.concat(n),t.total=e.result.totalCount||0,n.length<t.listParams.pageSize?t.nomore=!0:t.nomore=!1})).finally((function(){t.loading=!1})))},close:function(){this.refreshType&&(this.nomore=!1,this.loading=!1,this.tableList=[],this.listParams.imageGroupId="",this.listParams.currentPage=1,this.listParams.search=""),this.selectedData={},this.$emit("update:dialogVisible",!1)},addItem:function(){this.selectedData.imageId?(this.$emit("selectImgBack",this.selectedData),this.close()):this.$message({type:"warning",message:"未选择图片"})},getGroupList:function(){var t=this;x({fwhAppid:this.fwhAppid}).then((function(e){t.groupList=O.concat(e.result||[])}))},changeGroupId:function(t){var e=t.imageGroupId;this.listParams.imageGroupId=e,this.refresh()},getData:function(){this.getTableList(),this.getGroupList()}},watch:{dialogVisible:{handler:function(t){t&&this.refreshType&&(this.getTableList(),this.getGroupList())},immediate:!0}}},w=j,C=(n("1418"),Object(u["a"])(w,v,m,!1,null,"6e17bf33",null)),M=C.exports,S=n("ed08"),I="/app-market",k=null,T={name:"Editor",components:{imgSelectDialog:M},props:{activeImgText:function(){return{}},fwhAppid:{required:!0,type:String}},data:function(){return{show:!1,imgSelectVisible:!1}},mounted:function(){window.tinymce&&(this.show=!1,this.initArea(this.activeImgText.wechatContent))},beforeDestroy:function(){clearInterval(k)},methods:{formatDateTimeByType:S["h"],_getContent:function(){return tinymce.editors["mytextarea"].getContent()},_setContent:function(t){setTimeout((function(){tinymce.editors["mytextarea"].setContent(t)}),300)},destroyEditor:function(){tinyMCE.editors["mytextarea"].destroy()},initArea:function(t){var e=this,n=this;this.$emit("update:loadedJs",!0),tinymce.init({selector:"#mytextarea",placeholder:"请输入正文内容",branding:!1,elementpath:!1,language:"zh_CN",menubar:!1,plugins:"preview searchreplace autolink directionality visualblocks visualchars link template code codesample table charmap hr pagebreak nonbreaking anchor insertdatetime advlist lists wordcount imagetools textpattern help autosave bdmap indent2em autoresize lineheight formatpainter axupimgs",toolbar:"undo redo removeformat | fontsizeselect backcolor bold italic underline strikethrough forecolor bnlist alignment link table blockquote |         styleselect | anchor subscript superscript charmap hr insertdatetime | bdmap indent2em lineheight formatpainter axupimgs |         code preview",toolbar_groups:{bnlist:{icon:"unordered-list",tooltip:"序号列表",items:"bullist numlist"},alignment:{icon:"align-left",tooltip:"alignment",items:"alignleft aligncenter alignright alignjustify outdent indent"}},height:850,min_height:600,content_css:["".concat(I,"/static/vendor/tinymce/js/tinymce/tiny-reset.css")],fontsize_formats:"12px 14px 16px 18px 24px 36px 48px 56px 72px",font_formats:"微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Arial Black=arial black,avant garde;Book Antiqua=book antiqua,palatino;",importcss_append:!0,setup:function(t){t.on("input",(function(t){n.updateContent()})),t.on("change",(function(t){n.updateContent()}))},custom_elements:"~mp-miniprogram"}),setTimeout((function(){e._setContent(t)}),300),this.show=!0},updateContent:function(){this.activeImgText.wechatContent=this._getContent()},backImg:function(t){tinymce.editors["mytextarea"].insertContent('<img src="'.concat(t.imageUrl,'" draggable="false"></img>')),this.updateContent()}}},A=T,L=(n("333b"),n("94ec"),Object(u["a"])(A,d,g,!1,null,"5b751a4b",null)),P=L.exports,B=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"block-center",staticStyle:{"padding-bottom":"80px"}},[n("p",{staticClass:"fm bt"},[t._v("封面和摘要")]),n("div",{staticClass:"paper clearfix"},[n("el-popover",{attrs:{"open-delay":"200","popper-class":"option-dropdown",trigger:"hover"}},[n("ul",[n("li",{on:{click:t.uploadImg}},[t._v("本地上传")]),n("li",{on:{click:function(e){t.imgSelectVisible=!0}}},[t._v("素材库")])]),n("div",{staticClass:"paper-left fl",attrs:{slot:"reference"},slot:"reference"},[t.activeImgText.imageUrl?n("div",{staticClass:"img-cont"},[n("img",{attrs:{src:t.activeImgText.imageUrl,draggable:"false"}})]):[n("p",{staticClass:"p-i"},[n("i",{staticClass:"el-icon-plus"})]),n("p",[t._v("选择封面")])]],2)]),n("dm-input",{staticClass:"fl abstract",staticStyle:{width:"432px",height:"90px"},attrs:{type:"textarea",maxlength:"120",rows:4,placeholder:"选填，如果不填写会默认抓取正文前64个字","byte-type":"1","is-gic-four":!0},model:{value:t.activeImgText.remark,callback:function(e){t.$set(t.activeImgText,"remark","string"===typeof e?e.trim():e)},expression:"activeImgText.remark"}})],1),n("p",{staticClass:"fm mt20"},[t._v("文章设置")]),n("div",{staticClass:"mt20 pop-content"},[n("div",[n("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:t.linkFlagChange},model:{value:t.activeImgText.linkFlag,callback:function(e){t.$set(t.activeImgText,"linkFlag",e)},expression:"activeImgText.linkFlag"}}),n("el-popover",{attrs:{placement:"top",width:"440",trigger:"click"},on:{show:t.showLinkPop,hide:t.hideLinkPop},model:{value:t.linkPop,callback:function(e){t.linkPop=e},expression:"linkPop"}},[n("div",{staticStyle:{padding:"14px"}},[n("p",{staticClass:"gray02 mb20"},[t._v("原文链接")]),n("dm-input",{staticClass:"mb30",attrs:{"byte-type":1,maxlength:100},model:{value:t.activeImgText.linkUrl,callback:function(e){t.$set(t.activeImgText,"linkUrl",e)},expression:"activeImgText.linkUrl"}}),n("div",{staticClass:"text-center"},[n("el-button",{staticClass:"w64",attrs:{type:"primary",disabled:!t.activeImgText.linkUrl},on:{click:t.saveLinkUrl}},[t._v("确认")]),n("el-button",{staticClass:"w64",on:{click:function(e){t.linkPop=!1,t.hideLinkPop()}}},[t._v("取消")])],1)],1),n("span",{staticClass:"pop-content-label",attrs:{slot:"reference"},on:{click:function(e){t.activeImgText.linkFlag=1}},slot:"reference"},[t._v("原文链接"),n("i",{staticClass:"el-icon-arrow-right ml5 fz12 gray01"})])])],1),n("p",{directives:[{name:"show",rawName:"v-show",value:t.activeImgText.linkFlag,expression:"activeImgText.linkFlag"}],staticClass:"ml5"},[t._v(t._s(t.activeImgText.originalUrl))])]),n("div",{staticClass:"mt10 pop-content"},[n("div",[n("el-checkbox",{attrs:{"true-label":1,"false-label":0},on:{change:function(e){e&&(t.activeImgTextShow=!0)}},model:{value:t.activeImgText.openComment,callback:function(e){t.$set(t.activeImgText,"openComment",e)},expression:"activeImgText.openComment"}}),n("el-popover",{attrs:{placement:"top",width:"280",trigger:"click"},model:{value:t.activeImgTextShow,callback:function(e){t.activeImgTextShow=e},expression:"activeImgTextShow"}},[n("div",{staticStyle:{padding:"14px"}},[n("p",{staticClass:"gray02 mb25"},[t._v("留言")]),n("el-radio",{staticClass:"mb20",attrs:{label:0},model:{value:t.activeImgText.onlyFansCanComment,callback:function(e){t.$set(t.activeImgText,"onlyFansCanComment",e)},expression:"activeImgText.onlyFansCanComment"}},[t._v("所有人均可留言")]),n("br"),n("el-radio",{attrs:{label:1},model:{value:t.activeImgText.onlyFansCanComment,callback:function(e){t.$set(t.activeImgText,"onlyFansCanComment",e)},expression:"activeImgText.onlyFansCanComment"}},[t._v("仅关注后可留言")])],1),n("span",{staticClass:"pop-content-label",attrs:{slot:"reference"},slot:"reference"},[t._v("留言"),n("i",{staticClass:"el-icon-arrow-right ml5 fz12 gray01"})])])],1),n("p",{directives:[{name:"show",rawName:"v-show",value:t.activeImgText.openComment,expression:"activeImgText.openComment"}],staticClass:"ml5"},[t._v(t._s(t.activeImgText.onlyFansCanComment?"仅关注后可留言":"所有人均可留言"))])]),n("p",{staticClass:"gray03 ml20 fz13 mt5",staticStyle:{"line-height":"18px"}},[t._v("微信对自2018年3月起新建的公众号已关闭留言功能，开启选项前请注意确认当前公众号是否拥有留言功能，没有时将导致创建失败。检查方式：登陆公众后台-新建群发消息-文章是否拥有留言开关")]),n("div",{staticClass:"hidden"},[n("file",{ref:"fileUpload",staticClass:"inline-block",attrs:{label:"上传图片",tips:"",url:t.uploadUrl,"upload-params":t.uploadParams},on:{beforeUpload:t.beforeUpload,backImg:t.backImg}}),n("img-select-dialog",{ref:"selectImg",attrs:{"dialog-visible":t.imgSelectVisible,"fwh-appid":t.fwhAppid},on:{"update:dialogVisible":function(e){t.imgSelectVisible=e},"update:dialog-visible":function(e){t.imgSelectVisible=e},selectImgBack:t.backImg}})],1)])},E=[],F=(n("7f7f"),n("3b2b"),n("d91e")),D={name:"PaperCover",components:{file:F["a"],imgSelectDialog:M},props:{activeImgText:function(){}},data:function(){return{linkPop:!1,activeImgTextShow:!1,imgSelectVisible:!1,uploadUrl:y["b"],uploadParams:{fwhAppid:"",title:""},fwhAppid:""}},mounted:function(){var t=this;this.fwhAppid=Object(S["j"])("aId"),this.$nextTick((function(){t.$refs.selectImg.getData()}))},methods:{linkFlagChange:function(t){t&&(this.linkPop=!0)},showLinkPop:function(){this.$set(this.activeImgText,"linkUrl",this.activeImgText.originalUrl)},hideLinkPop:function(){var t=this;this.activeImgText.originalUrl||setTimeout((function(){t.activeImgText.linkFlag=0}),0)},saveLinkUrl:function(){var t=new RegExp("(https?|ftp|file)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]");t.test(this.activeImgText.linkUrl)?(this.activeImgText.originalUrl=this.activeImgText.linkUrl,this.linkPop=!1,this.activeImgText.linkFlag=1):this.$tips({message:"请输入正确的url",type:"error"})},backImg:function(t){this.activeImgText.wechatImageUrl=t.wechatUrl,this.activeImgText.wechatImageMediaId=t.wechatMediaId,this.activeImgText.imageFieldCode=t.imageFieldId,this.activeImgText.imageUrl=t.imageUrl},beforeUpload:function(t){var e=t.target.files[0].name,n=e.lastIndexOf(".");this.uploadParams.title=e.slice(0,n),this.uploadParams.fwhAppid=Object(S["j"])("aId")},uploadImg:function(){this.$refs.fileUpload.$el.querySelector("input").click()}}},_=D,R=(n("55ed"),Object(u["a"])(_,B,E,!1,null,"1f83dfad",null)),G=R.exports;function Y(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function N(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?Y(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var z=y["a"].saveImagetext,V=y["a"].getImageTxt,X={wechatTitle:"",wechatImageUrl:"",wechatItemMediaUrl:"",wechatImageMediaId:"",imageFieldCode:"",imageUrl:"",imageType:0,originalUrl:"",authorName:"",openComment:0,onlyFansCanComment:0,remark:"",wechatContent:"",linkFlag:!1,linkUrl:"",toolbar:!1},H={name:"ImgTextForm",components:{editor:P,paperCover:G,fixTips:p},data:function(){return{loading:!1,infoLoading:!1,rightLoading:!1,imageTextId:this.$route.query.imageTextId,activeClass:0,activeImgText:void 0,imgTextList:[],fwhAppid:this.$route.query.aId,applicationId:this.$route.query.applicationId,isAdd:"add"===this.$route.meta.type,isEdit:"edit"===this.$route.meta.type,wechatMediaId:"",hasloadedJsReady:!1}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"图文",breadPath:"/wechat/img-text/list"},{breadName:"".concat(this.isAdd?"新建":"编辑","图文")}]),this.$store.commit("updateExtraHideLeft","hide")},mounted:function(){var t=this;this.currentAreaId&&this.checkJs((function(){t.isAdd?(t.imgTextList.push(N({},X)),t.choice(t.imgTextList[0],0)):t.getInfo()})),this.$store.commit("updateExtraHideLeft","hide"),this.toggleEmpty(1)},beforeDestroy:function(){this.$refs.iftEditor&&this.$refs.iftEditor.destroyEditor()},destroyed:function(){this.$store.commit("updateExtraHideLeft",""),this.toggleEmpty()},methods:{toggleEmpty:f["e"],checkJs:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;window.tinymce?(this.hasloadedJsReady=!0,t&&t()):this.checkJs(t)},choice:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=this.activeClass;this.activeClass=e,this.activeImgText=this.imgTextList[e],i&&(this.rightLoading=!0,this.imgTextList[r].wechatContent=this.$refs.iftEditor._getContent(),this.$refs.iftEditor._setContent(this.activeImgText.wechatContent),setTimeout((function(){n.rightLoading=!1}),400))},addTextToList:function(){this.imgTextList.push(N({},X))},deleteItem:function(t,e){var n=this;Object(f["c"])("<div>确认删除该图文项？</div>",(function(){n.imgTextList.splice(e,1)}))},moveTop:function(t,e){Object(S["n"])(this.imgTextList,e)},moveBottom:function(t,e){Object(S["d"])(this.imgTextList,e)},dealText:function(t){return t},submitForm:function(){var t=this;if(!this.loading){var e=Object.keys(this.imgTextList).map((function(e){return t.imgTextList[e]}));new Promise((function(t,n){for(var i=0,r=e.length;i<r;i++){if(!e[i].wechatTitle){n("标题不能为空");break}if(!e[i].wechatImageUrl){n("请上传图文封面");break}if(e[i].linkFlag&&!e[i].originalUrl){n("请填写原文链接");break}if(!e[i].wechatContent.replace(/<(?!img).*?>/g,"")){n("请填写内容");break}}t()})).then((function(n){var i=e.map((function(t){return t.originalUrl=t.linkFlag?t.originalUrl:"",delete t.linkFlag,delete t.linkUrl,delete t.imageTextItemId,t})),r={fwhAppid:t.fwhAppid,wechatImageTextItemList:i};t.isEdit&&(r.imageTextId=t.imageTextId,r.wechatMediaId=t.wechatMediaId),t.loading=!0,z(r,{type:t.isAdd?"save":"update"}).then((function(e){if(t.loading=!1,t.$tips({message:"保存成功",type:"success"}),t.isAdd){var n=Object(S["o"])(window.location.href,"imageTextId",e.result);n=n.replace("add","edit"),window.history.replaceState({path:n},"",n),t.isAdd=!1,t.isEdit=!0,t.imageTextId=e.result,t.$emit("updateBread",[{breadName:"微信营销"},{breadName:"图文",breadPath:"/wechat/img-text/list"},{breadName:"编辑图文"}])}t.getInfo(t.activeClass)})).finally((function(){t.loading=!1}))})).catch((function(e){t.$tips({message:e,type:"error"})}))}},getInfo:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=this.imageTextId;this.infoLoading||(n?(this.infoLoading=!0,V({imageTextId:n}).then((function(n){t.wechatMediaId=n.result.wechatMediaId,t.imgTextList=n.result.wechatImageTextItemList.map((function(t){return t.linkFlag=Number(!!t.originalUrl),t.linkUrl=t.originalUrl,t.wechatContent=t.wechatContent.replace(/data-src/g,"src"),t})),t.$forceUpdate(),setTimeout((function(){t.choice(t.imgTextList[e],e)}),500)})).finally((function(){t.infoLoading=!1}))):this.$tips({message:"图文id不能为空",type:"error"}))}}},W=H,q=(n("a6d8"),Object(u["a"])(W,i,r,!1,null,"24f4d8e2",null));e["default"]=q.exports},4502:function(t,e,n){"use strict";n("bf16")},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 y})),n.d(e,"Line",(function(){return w})),n.d(e,"Marker",(function(){return k})),n.d(e,"Path",(function(){return X})),n.d(e,"Polygon",(function(){return q})),n.d(e,"Polyline",(function(){return $})),n.d(e,"Rect",(function(){return tt})),n.d(e,"Text",(function(){return nt}));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 y})),n.d(i,"Line",(function(){return w})),n.d(i,"Marker",(function(){return k})),n.d(i,"Path",(function(){return X})),n.d(i,"Polygon",(function(){return q})),n.d(i,"Polyline",(function(){return $})),n.d(i,"Rect",(function(){return tt})),n.d(i,"Text",(function(){return nt}));var r=n("9ab4"),a=n("6855"),o=n("7326"),s=n("f5e5"),l=n("c2ad"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return l["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,l=i.x+i.width+r,c=i.y+i.height+r;return{x:o,minX:o,y:s,minY:s,width:i.width+e,height:i.height+e,maxX:l,maxY:c}},e.prototype.isFill=function(){return!!this.attrs["fill"]||this.isClipShape()},e.prototype.isStroke=function(){return!!this.attrs["stroke"]},e.prototype._applyClip=function(t,e){e&&(t.save(),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=c,h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,r:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),s=a.x,l=a.y,c=a.r,u=r/2,h=Object(o["b"])(s,l,t,e);return i&&n?h<=c+u:i?h<=c:!!n&&(h>=c-u&&h<=c+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["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),o=r/2,s=a.x,l=a.y,c=a.rx,u=a.ry,h=(t-s)*(t-s),p=(e-l)*(e-l);return i&&n?f(h,p,c+o,u+o)<=1:i?f(h,p,c,u)<=1:!!n&&(f(h,p,c-o,u-o)>=1&&f(h,p,c+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,l=r>a?a/r:1;t.save(),t.translate(n,i),t.scale(s,l),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 m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0})},e.prototype.initAttrs=function(t){this._setImage(t.img)},e.prototype.isStroke=function(){return!1},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._afterLoading=function(){if(!0===this.get("toDraw")){var t=this.get("canvas");t?t.draw():this.createPath(this.get("context"))}},e.prototype._setImage=function(t){var e=this,n=this.attrs;if(Object(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,l=e.sy,c=e.swidth,u=e.sheight,h=e.img;(h instanceof Image||v(h))&&(Object(o["i"])(s)||Object(o["i"])(l)||Object(o["i"])(c)||Object(o["i"])(u)?t.drawImage(h,n,i,r,a):t.drawImage(h,s,l,c,u,n,i,r,a))},e}(u),y=m,b=n("1183");function x(t,e,n,i,r,a,o){var s=Math.min(t,n),l=Math.max(t,n),c=Math.min(e,i),u=Math.max(e,i),h=r/2;return a>=s-h&&a<=l+h&&o>=c-h&&o<=u+h&&b["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["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow()},e.prototype.setArrow=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2,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,l=a.x2,c=a.y2;return x(o,s,l,c,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,l={dx:0,dy:0},c={dx:0,dy:0};o&&o.d&&(l=O["c"](n,i,r,a,e.startArrow.d)),s&&s.d&&(c=O["c"](n,i,r,a,e.endArrow.d)),t.beginPath(),t.moveTo(n+l.dx,i+l.dy),t.lineTo(r-c.dx,a-c.dy)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr(),e=t.x1,n=t.y1,i=t.x2,r=t.y2;return b["c"].length(e,n,i,r)},e.prototype.getPoint=function(t){var e=this.attr(),n=e.x1,i=e.y1,r=e.x2,a=e.y2;return b["c"].pointAt(n,i,r,a,t)},e}(u),w=j,C=n("8937"),M=n("2ef1"),S={circle:function(t,e,n){return[["M",t-n,e],["A",n,n,0,1,0,t+n,e],["A",n,n,0,1,0,t-n,e]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["Z"]]},"triangle-down":function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.initAttrs=function(t){this._resetParamsCache()},e.prototype._resetParamsCache=function(){this.set("paramsCache",{})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["symbol","x","y","r","radius"].indexOf(e)&&this._resetParamsCache()},e.prototype.isOnlyHitBox=function(){return!0},e.prototype._getR=function(t){return Object(C["G"])(t.r)?t.radius:t.r},e.prototype._getPath=function(){var t,n,i=this.attr(),r=i.x,a=i.y,s=i.symbol||"circle",l=this._getR(i);if(Object(o["h"])(s))t=s,n=t(r,a,l),n=Object(M["d"])(n);else{if(t=e.Symbols[s],!t)return null;n=t(r,a,l)}return n},e.prototype.createPath=function(t){var e=this._getPath(),n=this.get("paramsCache");Object(s["e"])(this,t,{path:e},n)},e.Symbols=S,e}(u),k=I;function T(t,e,n){var i=Object(a["getOffScreenContext"])();return t.createPath(i),i.isPointInPath(e,n)}var A=1e-6;function L(t){return Math.abs(t)<A?0:t<0?-1:1}function P(t,e,n){return(n[0]-t[0])*(e[1]-t[1])===(e[0]-t[0])*(n[1]-t[1])&&Math.min(t[0],e[0])<=n[0]&&n[0]<=Math.max(t[0],e[0])&&Math.min(t[1],e[1])<=n[1]&&n[1]<=Math.max(t[1],e[1])}function B(t,e,n){var i=!1,r=t.length;if(r<=2)return!1;for(var a=0;a<r;a++){var o=t[a],s=t[(a+1)%r];if(P(o,s,[e,n]))return!0;L(o[1]-n)>0!==L(s[1]-n)>0&&L(e-(n-o[1])*(o[0]-s[0])/(o[1]-s[1])-o[0])<0&&(i=!i)}return i}var E=n("e897"),F=n("9fe7");function D(t,e,n,i,r,a,s,l){var c=(Math.atan2(l-e,s-t)+2*Math.PI)%(2*Math.PI);if(c<i||c>r)return!1;var u={x:t+n*Math.cos(c),y:e+n*Math.sin(c)};return Object(o["b"])(u.x,u.y,s,l)<=a/2}var _=E["a"].transform;function R(t){for(var e=!1,n=t.length,i=0;i<n;i++){var r=t[i],a=r[0];if("C"===a||"A"===a||"Q"===a){e=!0;break}}return e}function G(t,e,n,i,r){for(var a=!1,s=e/2,l=0;l<t.length;l++){var c=t[l],u=c.currentPoint,h=c.params,p=c.prePoint,f=c.box;if(!f||Object(o["e"])(f.x-s,f.y-s,f.width+e,f.height+e,n,i)){switch(c.command){case"L":case"Z":a=x(p[0],p[1],u[0],u[1],e,n,i);break;case"Q":var d=b["e"].pointDistance(p[0],p[1],h[1],h[2],h[3],h[4],n,i);a=d<=e/2;break;case"C":var g=b["b"].pointDistance(p[0],p[1],h[1],h[2],h[3],h[4],h[5],h[6],n,i,r);a=g<=e/2;break;case"A":var v=c.arcParams,m=v.cx,y=v.cy,O=v.rx,j=v.ry,w=v.startAngle,C=v.endAngle,M=v.xRotation,S=[n,i,1],I=O>j?O:j,k=O>j?1:O/j,T=O>j?j/O:1,A=_(null,[["t",-m,-y],["r",-M],["s",1/k,1/T]]);F["transformMat3"](S,S,A),a=D(0,0,I,w,C,e,S[0],S[1]);break;default:break}if(a)break}}return a}function Y(t){for(var e=t.length,n=[],i=[],r=[],a=0;a<e;a++){var o=t[a],s=o[0];"M"===s?(r.length&&(i.push(r),r=[]),r.push([o[1],o[2]])):"Z"===s?r.length&&(n.push(r),r=[]):r.push([o[1],o[2]])}return r.length>0&&i.push(r),{polygons:n,polylines:i}}var N=Object(r["a"])({hasArc:R,extractPolygons:Y,isPointInStroke:G},a["PathUtil"]);function z(t,e,n){for(var i=!1,r=0;r<t.length;r++){var a=t[r];if(i=B(a,e,n),i)break}return i}var V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this._setPathArr(t.path),this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),"path"===e&&this._setPathArr(n),this.setArrow()},e.prototype._setPathArr=function(t){this.attrs.path=Object(M["d"])(t);var e=N.hasArc(t);this.set("hasArc",e),this.set("paramsCache",{}),this.set("segments",null),this.set("curve",null),this.set("tCache",null),this.set("totalLength",null)},e.prototype.getSegments=function(){var t=this.get("segements");return t||(t=Object(M["e"])(this.attr("path")),this.set("segments",t)),t},e.prototype.setArrow=function(){var t=this.attr(),e=t.startArrow,n=t.endArrow;if(e){var i=this.getStartTangent();O["b"](this,t,i[0][0],i[0][1],i[1][0],i[1][1])}if(n){i=this.getEndTangent();O["a"](this,t,i[0][0],i[0][1],i[1][0],i[1][1])}},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.getSegments(),o=this.get("hasArc"),s=!1;if(n){var l=this.getTotalLength();s=N.isPointInStroke(a,r,t,e,l)}if(!s&&i)if(o)s=T(this,t,e);else{var c=this.attr("path"),u=N.extractPolygons(c);s=z(u.polygons,t,e)||z(u.polylines,t,e)}return s},e.prototype.createPath=function(t){var e=this.attr(),n=this.get("paramsCache");Object(s["e"])(this,t,e,n)},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.get("totalLength");return Object(C["G"])(t)?(this._calculateCurve(),this._setTcache(),this.get("totalLength")):t},e.prototype.getPoint=function(t){var e,n,i=this.get("tCache");i||(this._calculateCurve(),this._setTcache(),i=this.get("tCache"));var r=this.get("curve");if(!i||0===i.length)return r?{x:r[0][1],y:r[0][2]}:null;Object(C["j"])(i,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)}));var a=r[n];if(Object(C["G"])(a)||Object(C["G"])(n))return null;var o=a.length,s=r[n+1];return b["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",N.pathToCurve(t))},e.prototype._setTcache=function(){var t,e,n,i,r=0,a=0,o=[],s=this.get("curve");s&&(Object(C["j"])(s,(function(t,e){n=s[e+1],i=t.length,n&&(r+=b["b"].length(t[i-2],t[i-1],n[1],n[2],n[3],n[4],n[5],n[6])||0)})),this.set("totalLength",r),0!==r?(Object(C["j"])(s,(function(l,c){n=s[c+1],i=l.length,n&&(t=[],t[0]=a/r,e=b["b"].length(l[i-2],l[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),X=V;function H(t,e,n,i,r){var a=t.length;if(a<2)return!1;for(var o=0;o<a-1;o++){var s=t[o][0],l=t[o][1],c=t[o+1][0],u=t[o+1][1];if(x(s,l,c,u,e,n,i))return!0}if(r){var h=t[0],p=t[a-1];if(x(h[0],h[1],p[0],p[1],e,n,i))return!0}return!1}var W=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr().points,o=!1;return n&&(o=H(a,r,t,e,!0)),!o&&i&&(o=B(a,t,e)),o},e.prototype.createPath=function(t){var e=this.attr(),n=e.points;if(!(n.length<2)){t.beginPath();for(var i=0;i<n.length;i++){var r=n[i];0===i?t.moveTo(r[0],r[1]):t.lineTo(r[0],r[1])}t.closePath()}},e}(u),q=W,U=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.initAttrs=function(t){this.setArrow()},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),this.setArrow(),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.setArrow=function(){var t=this.attr(),e=this.attrs,n=e.points,i=e.startArrow,r=e.endArrow,a=n.length,o=n[0][0],s=n[0][1],l=n[a-1][0],c=n[a-1][1];i&&O["b"](this,t,n[1][0],n[1][1],o,s),r&&O["a"](this,t,n[a-2][0],n[a-2][1],l,c)},e.prototype.isFill=function(){return!1},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){if(!n||!r)return!1;var a=this.attr().points;return H(a,r,t,e,!1)},e.prototype.isStroke=function(){return!0},e.prototype.createPath=function(t){var e=this.attr(),n=e.points,i=e.startArrow,r=e.endArrow,a=n.length;if(!(n.length<2)){var o=n[0][0],s=n[0][1],l=n[a-1][0],c=n[a-1][1];if(i&&i.d){var u=O["c"](o,s,n[1][0],n[1][1],i.d);o+=u.dx,s+=u.dy}if(r&&r.d){u=O["c"](n[a-2][0],n[a-2][1],l,c,r.d);l-=u.dx,c-=u.dy}t.beginPath(),t.moveTo(o,s);for(var h=0;h<a-1;h++){var p=n[h];t.lineTo(p[0],p[1])}t.lineTo(l,c)}},e.prototype.afterDrawPath=function(t){var e=this.get("startArrowShape"),n=this.get("endArrowShape");e&&e.draw(t),n&&n.draw(t)},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(C["G"])(e)?(this.set("totalLength",b["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(C["j"])(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),b["c"].pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,a=[];Object(C["j"])(t,(function(o,s){t[s+1]&&(n=[],n[0]=r/e,i=b["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),$=U,Z=n("af40");function Q(t,e,n,i,r,a,s){var l=r/2;return Object(o["e"])(t-l,e-l,n,r,a,s)||Object(o["e"])(t+n-l,e-l,r,i,a,s)||Object(o["e"])(t+l,e+i-l,n,r,a,s)||Object(o["e"])(t-l,e+l,r,i,a,s)}function J(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)||D(t+n-r,e+r,r,1.5*Math.PI,2*Math.PI,a,o,s)||D(t+n-r,e+i-r,r,0,.5*Math.PI,a,o,s)||D(t+r,e+i-r,r,.5*Math.PI,Math.PI,a,o,s)||D(t+r,e+r,r,Math.PI,1.5*Math.PI,a,o,s)}var K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.isInStrokeOrPath=function(t,e,n,i,r){var a=this.attr(),s=a.x,l=a.y,c=a.width,u=a.height,h=a.radius;if(h){var p=!1;return n&&(p=J(s,l,c,u,h,r,t,e)),!p&&i&&(p=T(this,t,e)),p}var f=r/2;return i&&n?Object(o["e"])(s-f,l-f,c+f,u+f,t,e):i?Object(o["e"])(s,l,c,u,t,e):n?Q(s,l,c,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(Z["a"])(o),l=s[0],c=s[1],u=s[2],h=s[3];t.moveTo(n+l,i),t.lineTo(n+r-c,i),0!==c&&t.arc(n+r-c,i+c,c,-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+l),0!==l&&t.arc(n+l,i+l,l,Math.PI,1.5*Math.PI),t.closePath()}},e}(u),tt=K,et=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.isOnlyHitBox=function(){return!0},e.prototype.initAttrs=function(t){this._assembleFont(),t.text&&this._setText(t.text)},e.prototype._assembleFont=function(){var t=this.attrs;t.font=Object(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,l=r.x,c=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=c+r*(h+u)-p+u,"middle"===s&&(i+=p-u-(p-u)/2),"top"===s&&(i+=p-u),n?t.fillText(e,l,i):t.strokeText(e,l,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 o=n.text;e?t.fillText(o,i,r):t.strokeText(o,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),nt=et},"4cfb":function(t,e,n){"use strict";n.d(e,"b",(function(){return f}));n("8e6e"),n("ac6a"),n("456d");var i=n("ade3"),r=n("71f6"),a=n("f121");function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function s(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){Object(i["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var l={getMassList:"/teletext/list",getMassDetail:{url:"/teletext/get/{teletextId}",method:"get",rest:!0},stopWechatMass:{url:"/teletext/disable/{teletextId}",method:"get",rest:!0},addWechatMass:{url:"/teletext/save",method:"post",useFormData:!0},wechatMassPreview:{url:"/teletext/wechat-mass-preview",method:"post",useFormData:!0},getAnalysisChart:"/teletext/summary/list",checkMemberCount:"/teletext/check-member-count"},c={getImgList:"/teletext/image/list",getGroupList:"/teletext/image/group/list",saveGroup:{url:"/teletext/image/group/{type}",method:"get",rest:!0},delGroup:"/teletext/image/group/delete",delImg:{url:"/teletext/image/delete",method:"post",useFormData:!0},moveImg:"/teletext/image/update",moveMuti:{url:"/teletext/image/move",methods:"post"}},u={getImgTextList:"/teletext/imagetext/list",getImgTextItem:{url:"/teletext/imagetext/items/{imageTextId}",method:"get",rest:!0},delImgText:{url:"/teletext/imagetext/delete/{imageTextId}",method:"get",rest:!0},syncImgText:"/teletext/imagetext/sync",getSyncCount:"/teletext/imagetext/count",toggleComment:"/teletext/imagetext/comment",getImageTxt:"/teletext/imagetext/get",saveImagetext:{url:"/teletext/imagetext/{type}",method:"post",rest:!0,headers:{"Content-Type":"application/json"}}},h={refreshComment:"/teletext/comment/refresh",getCommentList:"/teletext/comment/list",setCommentType:"/teletext/comment/mark",replyComment:"/teletext/comment/reply",delReply:{url:"/teletext/comment/delete/{imageTextItemId}",rest:!0}},p={auditList:{url:"/{moduleCode}/audit-log-page",method:"post",rest:!0,useFormData:!0},getAuditInfo:"/teletext/setting/get",auditSave:"/teletext/setting/switch"};l=Object(r["a"])(l,a["e"]),c=Object(r["a"])(c,a["e"]),u=Object(r["a"])(u,a["e"]),h=Object(r["a"])(h,a["e"]),p=Object(r["a"])(p,a["e"]),e["a"]=s(s(s(s(s({},l),p),c),h),u);var f=a["e"]+"/teletext/image/upload"},"4f5a":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"pages"},[n("p",{staticClass:"pages-title mb30"},[t._v("审核配置")]),n("el-form",{ref:"ruleForm",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"200px"}},[n("el-form-item",{attrs:{label:"新建微信群发是否需要审核"}},[n("el-switch",{on:{change:t.submitForm},model:{value:t.ruleForm.auditSettingFlag,callback:function(e){t.$set(t.ruleForm,"auditSettingFlag",e)},expression:"ruleForm.auditSettingFlag"}})],1)],1)],1)},r=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),o=n("4cfb");function s(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function l(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?s(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var c=o["a"].getAuditInfo,u=o["a"].auditSave,h={name:"WechatAppConfig",data:function(){return{loading:!1,ruleForm:{auditSettingFlag:!1}}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"审核记录"}])},mounted:function(){this.getDetail()},methods:{submitForm:function(t){var e=this,n=l(l({},this.ruleForm),{},{fwhAppid:this.currentAreaId});this.loading=!0,u(n).then((function(t){e.loading=!1,e.getDetail(),e.$tips({message:"保存成功",type:"success"})})).finally((function(){e.loading=!1}))},getDetail:function(){var t=this;this.loading||(this.loading=!0,c({fwhAppid:this.currentAreaId}).then((function(e){t.loading=!1,t.ruleForm.auditSettingFlag=e.result||!1})).finally((function(){t.loading=!1})))}}},p=h,f=n("2877"),d=Object(f["a"])(p,i,r,!1,null,null,null);e["default"]=d.exports},5284:function(t,e,n){},"53c8":function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return c}));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 l=n("9c29");n.d(e,"getArcParams",(function(){return l["a"]}));var c="0.5.6"},"55ed":function(t,e,n){"use strict";n("96fa")},5611:function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return r}));var i={0:{label:"图文",value:0},1:{label:"文本",value:1},2:{label:"图片",value:2},3:{label:"小程序卡片",value:3}},r={0:{label:"待发送",value:0,cl:"state-point-loading"},1:{label:"已发送",value:1,cl:"state-point-success"},2:{label:"已失效",value:2,cl:"state-point-default"}}},5977:function(t,e){},"59b0":function(t,e){},"610f":function(t,e,n){},6711:function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return a})),n.d(e,"fromValues",(function(){return o})),n.d(e,"copy",(function(){return s})),n.d(e,"set",(function(){return l})),n.d(e,"add",(function(){return c})),n.d(e,"subtract",(function(){return u})),n.d(e,"multiply",(function(){return h})),n.d(e,"divide",(function(){return p})),n.d(e,"ceil",(function(){return f})),n.d(e,"floor",(function(){return d})),n.d(e,"min",(function(){return g})),n.d(e,"max",(function(){return v})),n.d(e,"round",(function(){return m})),n.d(e,"scale",(function(){return y})),n.d(e,"scaleAndAdd",(function(){return b})),n.d(e,"distance",(function(){return x})),n.d(e,"squaredDistance",(function(){return O})),n.d(e,"length",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return C})),n.d(e,"inverse",(function(){return M})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return I})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return T})),n.d(e,"random",(function(){return A})),n.d(e,"transformMat2",(function(){return L})),n.d(e,"transformMat2d",(function(){return P})),n.d(e,"transformMat3",(function(){return B})),n.d(e,"transformMat4",(function(){return E})),n.d(e,"rotate",(function(){return F})),n.d(e,"angle",(function(){return D})),n.d(e,"zero",(function(){return _})),n.d(e,"str",(function(){return R})),n.d(e,"exactEquals",(function(){return G})),n.d(e,"equals",(function(){return Y})),n.d(e,"len",(function(){return N})),n.d(e,"sub",(function(){return z})),n.d(e,"mul",(function(){return V})),n.d(e,"div",(function(){return X})),n.d(e,"dist",(function(){return H})),n.d(e,"sqrDist",(function(){return W})),n.d(e,"sqrLen",(function(){return q})),n.d(e,"forEach",(function(){return U}));var i=n("c94d");function r(){var t=new i["a"](2);return i["a"]!=Float32Array&&(t[0]=0,t[1]=0),t}function a(t){var e=new i["a"](2);return e[0]=t[0],e[1]=t[1],e}function o(t,e){var n=new i["a"](2);return n[0]=t,n[1]=e,n}function s(t,e){return t[0]=e[0],t[1]=e[1],t}function l(t,e,n){return t[0]=e,t[1]=n,t}function c(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function u(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function h(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function p(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function f(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t}function d(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t}function g(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function v(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}function m(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t}function y(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function x(t,e){var n=e[0]-t[0],i=e[1]-t[1];return Math.hypot(n,i)}function O(t,e){var n=e[0]-t[0],i=e[1]-t[1];return n*n+i*i}function j(t){var e=t[0],n=t[1];return Math.hypot(e,n)}function w(t){var e=t[0],n=t[1];return e*e+n*n}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t}function S(t,e){var n=e[0],i=e[1],r=n*n+i*i;return r>0&&(r=1/Math.sqrt(r)),t[0]=e[0]*r,t[1]=e[1]*r,t}function I(t,e){return t[0]*e[0]+t[1]*e[1]}function k(t,e,n){var i=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=i,t}function T(t,e,n,i){var r=e[0],a=e[1];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t}function A(t,e){e=e||1;var n=2*i["c"]()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t}function L(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r,t[1]=n[1]*i+n[3]*r,t}function P(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t}function B(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[3]*r+n[6],t[1]=n[1]*i+n[4]*r+n[7],t}function E(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[4]*r+n[12],t[1]=n[1]*i+n[5]*r+n[13],t}function F(t,e,n,i){var r=e[0]-n[0],a=e[1]-n[1],o=Math.sin(i),s=Math.cos(i);return t[0]=r*s-a*o+n[0],t[1]=r*o+a*s+n[1],t}function D(t,e){var n=t[0],i=t[1],r=e[0],a=e[1],o=Math.sqrt(n*n+i*i)*Math.sqrt(r*r+a*a),s=o&&(n*r+i*a)/o;return Math.acos(Math.min(Math.max(s,-1),1))}function _(t){return t[0]=0,t[1]=0,t}function R(t){return"vec2("+t[0]+", "+t[1]+")"}function G(t,e){return t[0]===e[0]&&t[1]===e[1]}function Y(t,e){var n=t[0],r=t[1],a=e[0],o=e[1];return Math.abs(n-a)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(r-o)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(o))}var N=j,z=u,V=h,X=p,H=x,W=O,q=w,U=function(){var t=r();return function(e,n,i,r,a,o){var s,l;for(n||(n=2),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],a(t,t,o),e[s]=t[0],e[s+1]=t[1];return e}}()},6855:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return m}));var i=n("b6fb");n.d(e,"PathUtil",(function(){return i}));var r=n("e1c6");for(var a in r)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o=n("b5d5");for(var a in o)["default","Event","Base","AbstractCanvas","AbstractGroup","AbstractShape","PathUtil","getBBoxMethod","getTextHeight","assembleFont","isAllowCapture","multiplyVec2","invert","getOffScreenContext","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);var s=n("e5e2");n.d(e,"Event",(function(){return s["a"]}));var l=n("2e60");n.d(e,"Base",(function(){return l["a"]}));var c=n("1243");n.d(e,"AbstractCanvas",(function(){return c["a"]}));var u=n("f83c");n.d(e,"AbstractGroup",(function(){return u["a"]}));var h=n("31a1");n.d(e,"AbstractShape",(function(){return h["a"]}));var p=n("d4c6");n.d(e,"getBBoxMethod",(function(){return p["a"]}));var f=n("bc88");n.d(e,"getTextHeight",(function(){return f["b"]})),n.d(e,"assembleFont",(function(){return f["a"]}));var d=n("b2cb");n.d(e,"isAllowCapture",(function(){return d["b"]}));var g=n("6928");n.d(e,"multiplyVec2",(function(){return g["c"]})),n.d(e,"invert",(function(){return g["a"]}));var v=n("96de");n.d(e,"getOffScreenContext",(function(){return v["a"]}));var m="0.5.4"},"68de":function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return p})),n.d(e,"Circle",(function(){return g})),n.d(e,"Dom",(function(){return m})),n.d(e,"Ellipse",(function(){return b})),n.d(e,"Image",(function(){return O})),n.d(e,"Line",(function(){return C})),n.d(e,"Marker",(function(){return k})),n.d(e,"Path",(function(){return A})),n.d(e,"Polygon",(function(){return P})),n.d(e,"Polyline",(function(){return E})),n.d(e,"Rect",(function(){return _})),n.d(e,"Text",(function(){return X}));var i={};n.r(i),n.d(i,"Base",(function(){return p})),n.d(i,"Circle",(function(){return g})),n.d(i,"Dom",(function(){return m})),n.d(i,"Ellipse",(function(){return b})),n.d(i,"Image",(function(){return O})),n.d(i,"Line",(function(){return C})),n.d(i,"Marker",(function(){return k})),n.d(i,"Path",(function(){return A})),n.d(i,"Polygon",(function(){return P})),n.d(i,"Polyline",(function(){return E})),n.d(i,"Rect",(function(){return _})),n.d(i,"Text",(function(){return X}));var r=n("9ab4"),a=n("6855"),o=n("00f9"),s=n("73ec"),l=n("7349"),c=n("22f9"),u=n("e73e"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="svg",e.canFill=!1,e.canStroke=!1,e}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{lineWidth:1,lineAppendWidth:0,strokeOpacity:1,fillOpacity:1})},e.prototype.afterAttrsChange=function(e){t.prototype.afterAttrsChange.call(this,e);var n=this.get("canvas");if(n&&n.get("autoDraw")){var i=n.get("context");this.draw(i,e)}},e.prototype.getShapeBase=function(){return i},e.prototype.getGroupBase=function(){return u["a"]},e.prototype.onCanvasChange=function(t){Object(l["b"])(this,t)},e.prototype.calculateBBox=function(){var t=this.get("el"),e=null;if(t)e=t.getBBox();else{var n=Object(a["getBBoxMethod"])(this.get("type"));n&&(e=n(this))}if(e){var i=e.x,r=e.y,o=e.width,s=e.height,l=this.getHitLineWidth(),c=l/2,u=i-c,h=r-c,p=i+o+c,f=r+s+c;return{x:u,y:h,minX:u,minY:h,maxX:p,maxY:f,width:o+l,height:s+l}}return{x:0,y:0,minX:0,minY:0,maxX:0,maxY:0,width:0,height:0}},e.prototype.isFill=function(){var t=this.attr(),e=t.fill,n=t.fillStyle;return(e||n||this.isClipShape())&&this.canFill},e.prototype.isStroke=function(){var t=this.attr(),e=t.stroke,n=t.strokeStyle;return(e||n)&&this.canStroke},e.prototype.draw=function(t,e){var n=this.get("el");this.get("destroyed")?n&&n.parentNode.removeChild(n):(n||Object(s["a"])(this),Object(o["a"])(this,t),this.createPath(t,e),this.shadow(t,e),this.strokeAndFill(t,e),this.transform(e))},e.prototype.createPath=function(t,e){},e.prototype.strokeAndFill=function(t,e){var n=e||this.attr(),i=n.fill,r=n.fillStyle,a=n.stroke,o=n.strokeStyle,s=n.fillOpacity,l=n.strokeOpacity,u=n.lineWidth,h=this.get("el");this.canFill&&(e?"fill"in n?this._setColor(t,"fill",i):"fillStyle"in n&&this._setColor(t,"fill",r):this._setColor(t,"fill",i||r),s&&h.setAttribute(c["b"]["fillOpacity"],s)),this.canStroke&&u>0&&(e?"stroke"in n?this._setColor(t,"stroke",a):"strokeStyle"in n&&this._setColor(t,"stroke",o):this._setColor(t,"stroke",a||o),l&&h.setAttribute(c["b"]["strokeOpacity"],l),u&&h.setAttribute(c["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(c["b"][e],"url(#"+r+")")}else if(/^[p,P]{1}[\s]*\(/.test(n)){r=t.find("pattern",n);r||(r=t.addPattern(n)),i.setAttribute(c["b"][e],"url(#"+r+")")}else i.setAttribute(c["b"][e],n);else i.setAttribute(c["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,l=i.shadowColor;(r||a||s||l)&&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["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,r:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["j"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):c["b"][e]&&i.setAttribute(c["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["b"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");if(Object(f["j"])(e||n,(function(t,e){c["b"][e]&&i.setAttribute(c["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),m=v,y=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="ellipse",e.canFill=!0,e.canStroke=!0,e}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,rx:0,ry:0})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["j"])(e||n,(function(t,e){"x"===e||"y"===e?i.setAttribute("c"+e,t):c["b"][e]&&i.setAttribute(c["b"][e],t)}))},e}(p),b=y,x=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="image",e.canFill=!1,e.canStroke=!1,e}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(f["j"])(e||i,(function(t,e){"img"===e?n._setImage(i.img):c["b"][e]&&r.setAttribute(c["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["M"])(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["M"])(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"),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="line",e.canFill=!1,e.canStroke=!0,e}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x1:0,y1:0,x2:0,y2:0,startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["j"])(e||n,(function(e,r){if("startArrow"===r||"endArrow"===r)if(e){var a=Object(f["K"])(e)?t.addArrow(n,c["b"][r]):t.getDefaultArrow(n,c["b"][r]);i.setAttribute(c["b"][r],"url(#"+a+")")}else i.removeAttribute(c["b"][r]);else c["b"][r]&&i.setAttribute(c["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),C=w,M={circle:function(t,e,n){return[["M",t,e],["m",-n,0],["a",n,n,0,1,0,2*n,0],["a",n,n,0,1,0,2*-n,0]]},square:function(t,e,n){return[["M",t-n,e-n],["L",t+n,e-n],["L",t+n,e+n],["L",t-n,e+n],["Z"]]},diamond:function(t,e,n){return[["M",t-n,e],["L",t,e-n],["L",t+n,e],["L",t,e+n],["Z"]]},triangle:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e+i],["L",t,e-i],["L",t+n,e+i],["z"]]},triangleDown:function(t,e,n){var i=n*Math.sin(1/3*Math.PI);return[["M",t-n,e-i],["L",t+n,e-i],["L",t,e+i],["Z"]]}},S={get:function(t){return M[t]},register:function(t,e){M[t]=e},remove:function(t){delete M[t]},getAll:function(){return M}},I=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="marker",e.canFill=!0,e.canStroke=!0,e}return Object(r["b"])(e,t),e.prototype.createPath=function(t){var e=this.get("el");e.setAttribute("d",this._assembleMarker())},e.prototype._assembleMarker=function(){var t=this._getPath();return Object(f["z"])(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["F"])(a)?a:S.get(a),t?t(n,i,r):null},e.symbolsFactory=S,e}(p),k=I,T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="path",e.canFill=!0,e.canStroke=!0,e}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");Object(f["j"])(e||i,(function(e,a){if("path"===a&&Object(f["z"])(e))r.setAttribute("d",n._formatPath(e));else if("startArrow"===a||"endArrow"===a)if(e){var o=Object(f["K"])(e)?t.addArrow(i,c["b"][a]):t.getDefaultArrow(i,c["b"][a]);r.setAttribute(c["b"][a],"url(#"+o+")")}else r.removeAttribute(c["b"][a]);else c["b"][a]&&r.setAttribute(c["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),A=T,L=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polygon",e.canFill=!0,e.canStroke=!0,e}return Object(r["b"])(e,t),e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["j"])(e||n,(function(t,e){"points"===e&&Object(f["z"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):c["b"][e]&&i.setAttribute(c["b"][e],t)}))},e}(p),P=L,B=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="polyline",e.canFill=!0,e.canStroke=!0,e}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{startArrow:!1,endArrow:!1})},e.prototype.onAttrChange=function(e,n,i){t.prototype.onAttrChange.call(this,e,n,i),-1!==["points"].indexOf(e)&&this._resetCache()},e.prototype._resetCache=function(){this.set("totalLength",null),this.set("tCache",null)},e.prototype.createPath=function(t,e){var n=this.attr(),i=this.get("el");Object(f["j"])(e||n,(function(t,e){"points"===e&&Object(f["z"])(t)&&t.length>=2?i.setAttribute("points",t.map((function(t){return t[0]+","+t[1]})).join(" ")):c["b"][e]&&i.setAttribute(c["b"][e],t)}))},e.prototype.getTotalLength=function(){var t=this.attr().points,e=this.get("totalLength");return Object(f["G"])(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["j"])(r,(function(i,r){t>=i[0]&&t<=i[1]&&(e=(t-i[0])/(i[1]-i[0]),n=r)})),j["c"].pointAt(i[n][0],i[n][1],i[n+1][0],i[n+1][1],e)},e.prototype._setTcache=function(){var t=this.attr().points;if(t&&0!==t.length){var e=this.getTotalLength();if(!(e<=0)){var n,i,r=0,a=[];Object(f["j"])(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),E=B;function F(t){var e=0,n=0,i=0,r=0;return Object(f["z"])(t)?1===t.length?e=n=i=r=t[0]:2===t.length?(e=i=t[0],n=r=t[1]):3===t.length?(e=t[0],n=r=t[1],i=t[2]):(e=t[0],n=t[1],i=t[2],r=t[3]):e=n=i=r=t,{r1:e,r2:n,r3:i,r4:r}}var D=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="rect",e.canFill=!0,e.canStroke=!0,e}return Object(r["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,width:0,height:0,radius:0})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el"),a=!1,o=["x","y","width","height","radius"];Object(f["j"])(e||i,(function(t,e){-1===o.indexOf(e)||a?-1===o.indexOf(e)&&c["b"][e]&&r.setAttribute(c["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=F(a);Object(f["z"])(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,R=n("7b46"),G=.3,Y={top:"before-edge",middle:"central",bottom:"after-edge",alphabetic:"baseline",hanging:"hanging"},N={top:"text-before-edge",middle:"central",bottom:"text-after-edge",alphabetic:"alphabetic",hanging:"hanging"},z={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["b"])(e,t),e.prototype.getDefaultAttrs=function(){var e=t.prototype.getDefaultAttrs.call(this);return Object(r["a"])(Object(r["a"])({},e),{x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"})},e.prototype.createPath=function(t,e){var n=this,i=this.attr(),r=this.get("el");this._setFont(),Object(f["j"])(e||i,(function(t,e){"text"===e?n._setText(""+t):"matrix"===e&&t?Object(o["c"])(n):c["b"][e]&&r.setAttribute(c["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",N[n]||"alphabetic"):t.setAttribute("alignment-baseline",Y[n]||"baseline"),t.setAttribute("text-anchor",z[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,l="";Object(f["j"])(o,(function(t,e){0===e?"alphabetic"===a?l+='<tspan x="'+i+'" dy="'+-s+'em">'+t+"</tspan>":"top"===a?l+='<tspan x="'+i+'" dy="0.9em">'+t+"</tspan>":"middle"===a?l+='<tspan x="'+i+'" dy="'+-(s-1)/2+'em">'+t+"</tspan>":"bottom"===a?l+='<tspan x="'+i+'" dy="-'+(s+G)+'em">'+t+"</tspan>":"hanging"===a&&(l+='<tspan x="'+i+'" dy="'+(-(s-1)-G)+'em">'+t+"</tspan>"):l+='<tspan x="'+i+'" dy="1em">'+t+"</tspan>"})),e.innerHTML=l}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],l=t[5],c=t[6],u=t[7],h=t[8],p=e[0],f=e[1],d=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],x=e[8];return n[0]=p*i+f*o+d*c,n[1]=p*r+f*s+d*u,n[2]=p*a+f*l+d*h,n[3]=g*i+v*o+m*c,n[4]=g*r+v*s+m*u,n[5]=g*a+v*l+m*h,n[6]=y*i+b*o+x*c,n[7]=y*r+b*s+x*u,n[8]=y*a+b*l+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],l=t[6],c=t[7],u=t[8],h=u*o-s*c,p=-u*a+s*l,f=c*a-o*l,d=n*h+i*p+r*f;return d?(d=1/d,e[0]=h*d,e[1]=(-u*i+r*c)*d,e[2]=(s*i-r*o)*d,e[3]=p*d,e[4]=(u*n-r*l)*d,e[5]=(-s*n+r*a)*d,e[6]=f*d,e[7]=(-c*n+i*l)*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}))},"70b1":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[n("el-form",{ref:"ruleForm",staticClass:"mass-form pt10 pb10",attrs:{model:t.ruleForm,rules:t.rules,"label-width":"120px"}},[n("el-form-item",{staticClass:"mass-input",attrs:{label:"计划名称",prop:"title"}},[n("dm-input",{staticClass:"w380",attrs:{"byte-type":1,maxlength:20},model:{value:t.ruleForm.title,callback:function(e){t.$set(t.ruleForm,"title",e)},expression:"ruleForm.title"}})],1),n("el-form-item",{attrs:{label:"数据对话"}},[n("activity-select",{attrs:{"act-id":t.ruleForm.mktActivityId,width:"380"},on:{"update:actId":function(e){return t.$set(t.ruleForm,"mktActivityId",e)},"update:act-id":function(e){return t.$set(t.ruleForm,"mktActivityId",e)}}})],1),n("el-form-item",{staticClass:"is-required",attrs:{label:"发送时间",prop:"sendType"}},[n("el-radio-group",{model:{value:t.ruleForm.sendType,callback:function(e){t.$set(t.ruleForm,"sendType",e)},expression:"ruleForm.sendType"}},t._l(t.sendType,(function(e){return n("el-radio",{key:e.value,attrs:{label:e.value}},[t._v(t._s(e.label))])})),1)],1),1===t.ruleForm.sendType?n("el-form-item",{attrs:{label:"",prop:"sendTimeStr"}},[n("el-date-picker",{staticStyle:{width:"380px"},attrs:{"popper-class":"hide-right-now w380",type:"datetime","picker-options":t.pickerOptions,placeholder:"选择日期时间"},model:{value:t.ruleForm.sendTimeStr,callback:function(e){t.$set(t.ruleForm,"sendTimeStr",e)},expression:"ruleForm.sendTimeStr"}})],1):t._e(),n("el-form-item",{staticClass:"is-required",attrs:{label:"发送人群"}},[t.wechatId?n("dm-new-people",{ref:"newPeople",attrs:{"force-show-save":"","waiting-save":t.waitingSave,"region-id":t.wechatId,resource:2},on:{"update:waitingSave":function(e){t.waitingSave=e},"update:waiting-save":function(e){t.waitingSave=e},"pass-people-data":t.receivePeopleData,"reset-condition":function(e){t.ruleForm.memberSearchId=""}}}):t._e()],1),n("el-form-item",{staticClass:"is-required",attrs:{label:"发送内容"}},[t.ruleForm.teletextId&&t.currentAreaIds.length?n("dm-market-event-new",{ref:"mk",attrs:{max:"1","app-code":"teletext","fix-fwh":"","fwh-ids":t.currentAreaIds,mode:t.mode,"relation-id":t.ruleForm.teletextId,"dash-width":"380"},on:{redrawReady:t.redrawReady}}):t._e()],1),n("el-form-item",{staticClass:"pt10"},[n("el-button",{staticClass:"specter",attrs:{type:"primary"},on:{click:function(e){return t.checkForm(1)}}},[t._v("预览")]),t.currentAreaDelete?t._e():n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.checkForm(2)}}},[t._v("确认新建")]),n("el-button",{on:{click:function(e){return t.$router.go(-1)}}},[t._v("返回")])],1)],1)],1)},r=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("ade3")),o=(n("96cf"),n("1da1")),s=n("008b"),l=n("ed08"),c=n("cf45"),u=n("2934"),h=n("4cfb");function p(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function f(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?p(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var d=u["a"].getRelationId,g=u["a"].getMemberCount,v=u["a"].getWechatIdByAppid,m=h["a"].addWechatMass,y=h["a"].checkMemberCount,b=h["a"].wechatMassPreview,x={name:"WechatMassForm",components:{activitySelect:s["a"]},data:function(){var t=function(t,e,n){new Date(e).getTime()<(new Date).getTime()&&n(new Error("发送时间不能小于当前时间")),n()};return{loading:!1,sendType:[{label:"立即发送",value:0},{label:"定时发送",value:1}],mode:[1,2,3],newDraw:!1,wechatId:"",ruleForm:{teletextId:"",title:"",sendType:0,sendTimeStr:"",memberSearchId:"",sendCount:0,mktActivityId:""},rules:{title:[{required:!0,message:"请输入计划名称",trigger:"blur"}],sendTimeStr:[{required:!0,message:"请输入发送时间",trigger:"blur"},{validator:t,trigger:"blur"}]},waitingSave:!0,selectedScenes:[],pickerOptions:{disabledDate:function(t){return Date.now()>=t.getTime()+864e5}}}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"微信群发",breadPath:"/wechat/mass/list"},{breadName:"新建群发任务"}])},mounted:function(){this.currentAreaId&&(this.getRelationId(),this.getWechatIdByAppid())},methods:{submitForm:function(){var t=Object(o["a"])(regeneratorRuntime.mark((function t(e){var n,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(!this.loading){t.next=2;break}return t.abrupt("return");case 2:if(n=f(f({},this.ruleForm),{},{fwhAppid:this.currentAreaId}),0===n.sendType?delete n.sendTimeStr:n.sendTimeStr=Object(l["h"])(n.sendTimeStr),this.loading=!0,t.prev=5,1!=e){t.next=10;break}return t.next=9,b(n);case 9:this.$tips({message:"操作成功",type:"success"});case 10:if(2!=e){t.next=15;break}return t.next=13,m(n);case 13:i=t.sent,this.$tips({message:i.message||"操作成功",type:"success"});case 15:this.loading=!1,this.$router.push("/wechat/mass/list"),t.next=22;break;case 19:t.prev=19,t.t0=t["catch"](5),this.loading=!1;case 22:case"end":return t.stop()}}),t,this,[[5,19]])})));function e(e){return t.apply(this,arguments)}return e}(),checkForm:function(t){var e=this;this.$refs.ruleForm.validate((function(n){n?e.ruleForm.memberSearchId?e.waitingSave?e.$tips({message:"人群筛选器处于编辑状态，请保存",type:"error"}):1==e.$refs.mk.getSaveList().length?(e.loading=!0,1==t&&y({memberSearchId:e.ruleForm.memberSearchId,fwhAppId:e.currentAreaId}).then((function(n){e.loading=!1,Object(c["c"])("<div>确认新建预览？</div><div>预览将不会保存群发信息, 且只发送一个会员, 每日调用次数100</div>",(function(){e.submitForm(t)}),(function(){}))})).catch((function(){e.loading=!1})),2==t&&g({memberSearchId:e.ruleForm.memberSearchId,appCode:e.$store.getters.moduleCode,areaId:e.currentAreaId}).then((function(n){e.loading=!1;var i=n.result||0;i?Object(c["c"])("<div>合计发送 ".concat(i," 人，确认发送？</div>"),(function(){e.submitForm(t)}),(function(){})):e.$tips({message:"发送人数为0，请重新选择发送人群",type:"warning"})})).finally((function(){e.loading=!1}))):e.$tips({message:"请保存通知内容",type:"error"}):e.$tips({message:"请保存人群筛选器",type:"error"}):PublicMethods.jumpToFormError()}))},getRelationId:function(){var t=this;d().then((function(e){t.ruleForm.teletextId=e.result||""})).catch((function(){}))},getWechatIdByAppid:function(){var t=this;v({appId:this.currentAreaId}).then((function(e){t.wechatId=e.result||""})).catch((function(){}))},redrawReady:function(){this.newDraw||(this.newDraw=!0,this.$route.query.useId&&this.$refs.mk.saveItem({gicTemplateId:this.$route.query.useId,type:1,sendType:1}))},receivePeopleData:function(t){this.ruleForm.memberSearchId=t.peopleId,this.$refs.ruleForm.validateField("memberSearchId")}}},O=x,j=(n("1138"),n("2877")),w=Object(j["a"])(O,i,r,!1,null,"3595a2ac",null);e["default"]=w.exports},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 l})),n.d(e,"j",(function(){return c}));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.maxX<t.minX||e.minY>t.maxY||e.maxY<t.minY)}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 c(t,e){return t[0]===e[0]&&t[1]===e[1]}n.d(e,"i",(function(){return i["G"]})),n.d(e,"k",(function(){return i["M"]})),n.d(e,"h",(function(){return i["F"]})),n.d(e,"g",(function(){return i["z"]})),n.d(e,"c",(function(){return i["j"]})),n.d(e,"o",(function(){return i["hb"]})),n.d(e,"m",(function(){return i["V"]})),n.d(e,"n",(function(){return i["ab"]})),n.d(e,"a",(function(){return i["d"]}))},7349:function(t,e,n){"use strict";n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return o}));var i=n("00f9"),r=n("73ec");function a(t,e){e.forEach((function(e){e.draw(t)}))}function o(t,e){var n=t.get("canvas");if(n&&n.get("autoDraw")){var a=n.get("context"),o=t.getParent(),s=o?o.getChildren():[n],l=t.get("el");if("remove"===e){var c=t.get("isClipShape");if(c){var u=l&&l.parentNode,h=u&&u.parentNode;u&&h&&h.removeChild(u)}else l&&l.parentNode&&l.parentNode.removeChild(l)}else if("show"===e)l.setAttribute("visibility","visible");else if("hide"===e)l.setAttribute("visibility","hidden");else if("zIndex"===e)Object(r["c"])(l,s.indexOf(t));else if("sort"===e){var p=t.get("children");p&&p.length&&Object(r["d"])(t,(function(t,e){return p.indexOf(t)-p.indexOf(e)?1:0}))}else"clear"===e?l&&(l.innerHTML=""):"matrix"===e?Object(i["c"])(t):"clip"===e?Object(i["a"])(t,a):"attr"===e||"add"===e&&t.draw(a)}}},"73db":function(t,e,n){},"73ec":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return s})),n.d(e,"c",(function(){return l}));var i=n("8937"),r=n("22f9");function a(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function o(t){var e=r["a"][t.type],n=t.getParent();if(!e)throw new Error("the type "+t.type+" is not supported by svg");var i=a(e);if(t.get("id")&&(i.id=t.get("id")),t.set("el",i),t.set("attrs",{}),n){var o=n.get("el");o||(o=n.createDom(),n.set("el",o)),o.appendChild(i)}return i}function s(t,e){var n=t.get("el"),r=Object(i["gb"])(n.children).sort(e),a=document.createDocumentFragment();r.forEach((function(t){a.appendChild(t)})),n.appendChild(a)}function l(t,e){var n=t.parentNode,i=Array.from(n.childNodes).filter((function(t){return 1===t.nodeType&&"defs"!==t.nodeName.toLowerCase()})),r=i[e],a=i.indexOf(t);if(r){if(a>e)n.insertBefore(t,r);else if(a<e){var o=i[e+1];o?n.insertBefore(t,o):n.appendChild(t)}}else n.appendChild(t)}},7418:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[n("div",{staticClass:"pb20 clearfix flex-center"},[n("el-input",{staticClass:"vertical-middle w300 mrAuto",attrs:{clearable:"",placeholder:"请输创建人/计划名称"},on:{change:t.refresh},model:{value:t.listParams.search,callback:function(e){t.$set(t.listParams,"search",e)},expression:"listParams.search"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t.currentAreaDelete?t._e():n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.$router.push("/wechat/mass/add")}}},[t._v("新建微信群发")])],1),n("el-table",{ref:"asyncTree",staticClass:"wechat-mass-list",staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList,"max-height":t.mainHeight(52)}},[n("el-table-column",{attrs:{type:"expand",width:"5"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.imgTextItem.length?n("div",{staticClass:"expand"},t._l(e.row.imgTextItem,(function(i,r){return n("div",{key:r},[n("div",{staticClass:"cell blue",staticStyle:{width:"210px"}},[n("a",{staticClass:"ellipsis-100",attrs:{title:i.wechatTitle,href:i.wechatItemMediaUrl,target:"_blank"}},[t._v(t._s(i.wechatTitle))]),1==e.row.sendStatus?n("div",{staticClass:"option",staticStyle:{width:"104px"}},[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.$router.push("/wechat/mass/analysis?msgDataId="+e.row.msgDataId+"&title="+i.wechatTitle+"&idx="+r)}}},[t._v("统计")]),1==e.row.openComment?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.$router.push("/wechat/img-text/comment?msgDataId="+e.row.msgDataId+"&title="+i.wechatTitle+"&idx="+r)}}},[t._v("留言管理")]):t._e()],1):t._e()])])})),0):t._e()]}}])}),t._l(t.tableHeader.filter((function(t){return 1===t.team})),(function(e,i){return n("el-table-column",{key:i,attrs:{fixed:e.fixed,"show-overflow-tooltip":e.tooltip,width:e.width,"min-width":e.minWidth,align:e.align,prop:e.prop,label:e.label,formatter:e.formatter,sortable:e.sortable},scopedSlots:t._u([{key:"default",fn:function(i){return[e.formatter?n("span",{domProps:{innerHTML:t._s(e.formatter(i.row))}}):e.famount?n("span",[t._v(t._s(t._f("amountFormat")(i.row[e.prop],null,0,null)))]):n("span",[t._v(t._s(i.row[e.prop]))])]}}],null,!0)})})),n("el-table-column",{attrs:{label:"内容",align:"left",width:"180px"},scopedSlots:t._u([{key:"default",fn:function(e){return[0===e.row.messageType?n("div",{staticClass:"blue cursor"},[e.row.itemLength>1?n("span",{staticClass:"link",on:{click:function(n){return t.refreshNodeBy(e.row)}}},[t._v("多个图文")]):n("el-tooltip",{attrs:{"open-delay":"200",content:e.row.contentText,placement:"top"}},[n("a",{attrs:{target:"_blank",href:e.row.contentUrl}},[t._v(t._s(t._f("limitNum")(e.row.contentText)))])])],1):t._e(),1===e.row.messageType?n("div",[n("el-tooltip",{attrs:{"open-delay":"200",content:e.row.contentText,placement:"top"}},[n("p",{staticClass:"gray02"},[t._v(t._s(t._f("limitNum")(e.row.contentText)))])])],1):t._e(),2===e.row.messageType?n("div",[n("dm-preview-img",{staticClass:"vertical-middle",attrs:{img:e.row.contentUrl,width:"60",height:"60"}})],1):t._e()]}}])}),t._l(t.tableHeader.filter((function(t){return 1!==t.team})),(function(e,i){return n("el-table-column",{key:"teamss"+i,attrs:{fixed:e.fixed,"show-overflow-tooltip":e.tooltip,width:e.width,"min-width":e.minWidth,align:e.align,prop:e.prop,label:e.label,formatter:e.formatter,sortable:e.sortable},scopedSlots:t._u([{key:"default",fn:function(i){return[e.formatter?n("span",{staticStyle:{display:"inline-block"},domProps:{innerHTML:t._s(e.formatter(i.row))}}):e.famount?n("span",[t._v(t._s(t._f("amountFormat")(i.row[e.prop],null,0,null)))]):n("span",[t._v(t._s(i.row[e.prop]))]),n("el-tooltip",{attrs:{"open-delay":"200",content:i.row.remark,placement:"top"}},[e.tips&&2===i.row.sendStatus&&i.row.remark?n("span",[n("i",{staticClass:"el-icon-info unuse-icon"})]):t._e()]),e.timmer&&0===i.row.sendStatus?n("time-count",{staticClass:"primary-color fz12",staticStyle:{display:"block"},attrs:{"default-val":i.row.sendTime,"auto-start":!0}}):t._e()]}}],null,!0)},[1===e.customHeader?n("template",{slot:"header"},[n("el-tooltip",{attrs:{content:"在返回成功时，意味着群发任务提交成功，并不意味着此时群发已经结束，所以，仍有可能在后续的发送过程中出现异常情况导致用户未收到消息，如消息有时会进行审核、服务器不稳定等。此外，群发任务一般需要较长的时间才能全部发送完毕，请耐心等待。",placement:"top"}},[n("span",{staticClass:"tooltip-icon"},[t._v("计划发送人数")])])],1):t._e()],2)})),n("el-table-column",{attrs:{label:"操作",align:"left",width:"180px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.$router.push("/wechat/mass/info?id="+e.row.teletextId)}}},[t._v("详情")]),0==e.row.sendStatus||1==e.row.sendStatus?n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.stopOne(e.row)}}},[t._v("禁用")]):t._e(),0===e.row.messageType&&1==e.row.itemLength&&1==e.row.sendStatus?n("el-popover",{attrs:{"popper-class":"option-dropdown",trigger:"hover"}},[n("ul",[n("li",{on:{click:function(n){return t.$router.push("/wechat/mass/analysis?msgDataId="+e.row.msgDataId+"&title="+e.row.contentText+"&idx=0")}}},[n("span",[t._v("统计")])]),1==e.row.openComment?n("li",{on:{click:function(n){return t.$router.push("/wechat/img-text/comment?msgDataId="+e.row.msgDataId+"&idx=0")}}},[n("span",[t._v("留言管理")])]):t._e()]),n("el-button",{staticClass:"ml16",attrs:{slot:"reference",type:"text"},slot:"reference"},[t._v("更多"),n("i",{staticClass:"ml5 el-icon-arrow-down"})])],1):t._e()]}}])})],2),n("div",{staticClass:"clearfix"},[t.tableList.length?n("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1)},r=[],a=(n("8e6e"),n("20d6"),n("7f7f"),n("ade3")),o=(n("ac6a"),n("456d"),n("fab6")),s=n("ed08"),l=n("cf87"),c=n("cf45"),u=n("83b4"),h=n("5611"),p=n("4cfb");function f(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function d(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?f(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var g=p["a"].getMassList,v=p["a"].stopWechatMass,m=p["a"].getImgTextItem,y={name:"WechatMassList",components:{timeCount:u["a"]},mixins:[o["c"],l["a"],o["b"]],data:function(){return{loading:!1,listParams:{search:"",messageType:"",status:"",currentPage:1,pageSize:20},cacheRoute:["/wechat/img-text/add","/wechat/img-text/edit"],total:0,messageType:Object.keys(h["a"]).map((function(t){return h["a"][t]})),statusList:Object.keys(h["b"]).map((function(t){return h["b"][t]})),tableList:[],tableHeader:[{label:"计划名称",minWidth:"170",align:"left",tooltip:!0,fixed:"left",team:1,formatter:function(t){return'<span p-key="teletextId" title="'.concat(t.teletextId,'">').concat(t.title,"</span>")}},{label:"创建时间",align:"left",width:"130",team:1,formatter:function(t){return Object(s["l"])(t.createTime)}},{label:"创建人",prop:"creatorName",align:"left",width:"130",team:1},{label:"发送时间",align:"left",width:"130",team:1,formatter:function(t){return t.sendType?Object(s["l"])(t.sendTime):Object(s["l"])(t.createTime)||"--"}},{label:"群发类型",minWidth:"120",align:"left",formatter:function(t){var e=h["a"][t.messageType];return e?e.label:"--"}},{label:"计划发送人数",prop:"sendCount",align:"left",minWidth:"120",customHeader:1},{label:"实际送达人数",align:"left",minWidth:"120",formatter:function(t){return isNaN(t.successCount)?"--":t.successCount}},{label:"数据对话",prop:"mktActivityName",align:"left",minWidth:"140"},{label:"状态",align:"left",minWidth:"120",timmer:!0,tips:!0,formatter:function(t){var e=t.sendStatus,n=h["b"][e];return n?'<span class="state-point '.concat(n.cl,'">').concat(n.label,"</span>"):'<span class="state-point state-point-default">未知状态</span>'}}]}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"微信群发"}])},mounted:function(){this.getTableList()},activated:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"微信群发"}]),this.getTableList()},methods:{getTableList:function(){var t=this;if(!this.loading){this.loading=!0;var e=d(d({},this.listParams),{},{fwhAppid:this.currentAreaId});g(e).then((function(e){var n=e.result||{};t.tableList=n.result||[],t.tableList=n.result.map((function(t){return t.loaded=!1,t.loading=!1,t.imgTextItem=[],t}))||[],t.total=n.totalCount})).finally((function(e){t.loading=!1}))}},stopOne:function(t){var e=this,n=t.teletextId;t.name;Object(c["c"])("<div>确认禁用？</div><div>禁用后该计划会直接失败</div>",(function(){e.loading=!0,v({fwhAppid:e.currentAreaId},{teletextId:n}).then((function(t){e.loading=!1,e.getTableList()})).finally((function(){e.loading=!1}))}))},refreshNodeBy:function(t){var e=this;if(!this.loading){var n=t.teletextId,i=this.tableList.findIndex((function(t){return t.teletextId===n}));0!==this.tableList[i].imgTextItem.length||this.tableList[i].loaded?this.$refs.asyncTree.toggleRowExpansion(t):(this.loading=!0,m({fwhAppid:this.currentAreaId},{imageTextId:this.tableList[i].imageTextId}).then((function(n){e.loading=!1,n.result&&n.result.length?(e.$set(e.tableList[i],"imgTextItem",n.result),e.tableList[i].loaded=!0,e.tableList[i].imgTextItem=n.result||[],e.$refs.asyncTree.toggleRowExpansion(t)):e.$tips({message:"该图文未获取到子项",type:"error"})})).finally((function(){e.loading=!1})))}}},filters:{limitNum:function(t){return t?t.length>30?t.slice(0,30)+"...":t:"--"}}},b=y,x=(n("40a0"),n("2877")),O=Object(x["a"])(b,i,r,!1,null,"d5c18d28",null);e["default"]=O.exports},"75ed":function(t,e,n){"use strict";var i=n("9ab4"),r=n("7c8a"),a=n("8937"),o=n("e546"),s=n("3665"),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{container:null,containerTpl:"<div></div>",updateAutoRender:!0,containerClassName:"",parent:null})},e.prototype.getContainer=function(){return this.get("container")},e.prototype.show=function(){var t=this.get("container");t.style.display="",this.set("visible",!0)},e.prototype.hide=function(){var t=this.get("container");t.style.display="none",this.set("visible",!1)},e.prototype.setCapture=function(t){var e=this.getContainer(),n=t?"auto":"none";e.style.pointerEvents=n,this.set("capture",t)},e.prototype.getBBox=function(){var t=this.getContainer(),e=parseFloat(t.style.left)||0,n=parseFloat(t.style.top)||0;return 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["G"])(t)){t=this.createDom();var e=this.get("parent");Object(a["M"])(e)&&(e=document.getElementById(e),this.set("parent",e)),e.appendChild(t),this.set("container",t)}else Object(a["M"])(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["h"])({},e,t):e,this.set("domStyles",t)},e.prototype.applyStyles=function(){var t=this.get("domStyles");if(t){var e=this.getContainer();this.applyChildrenStyles(e,t);var n=this.get("containerClassName");if(n&&Object(o["h"])(e,n)){var i=t[n];Object(r["e"])(e,i)}}},e.prototype.applyChildrenStyles=function(t,e){Object(a["j"])(e,(function(e,n){var i=t.getElementsByClassName(n);Object(a["j"])(i,(function(t){Object(r["e"])(t,e)}))}))},e.prototype.applyStyle=function(t,e){var n=this.get("domStyles");Object(r["e"])(e,n[t])},e.prototype.createDom=function(){var t=this.get("containerTpl");return Object(r["b"])(t)},e.prototype.initEvent=function(){},e.prototype.removeDom=function(){var t=this.get("container");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.removeEvent=function(){},e.prototype.updateInner=function(t){Object(a["v"])(t,"domStyles")&&(this.resetStyles(),this.applyStyles()),this.resetPosition()},e.prototype.resetPosition=function(){},e}(s["a"]);e["a"]=l},"7b46":function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return d}));var i=function(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i},r=function(){function t(t,e,n){this.name=t,this.version=e,this.os=n,this.type="browser"}return t}(),a=function(){function e(e){this.version=e,this.type="node",this.name="node",this.os=t.platform}return e}(),o=function(){function t(t,e,n,i){this.name=t,this.version=e,this.os=n,this.bot=i,this.type="bot-device"}return t}(),s=function(){function t(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return t}(),l=function(){function t(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return t}(),c=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,u=/(nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,h=3,p=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FBAV\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["searchbot",c]],f=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function d(t){return t?v(t):"undefined"===typeof document&&"undefined"!==typeof navigator&&"ReactNative"===navigator.product?new l:"undefined"!==typeof navigator?v(navigator.userAgent):y()}function g(t){return""!==t&&p.reduce((function(e,n){var i=n[0],r=n[1];if(e)return e;var a=r.exec(t);return!!a&&[i,a]}),!1)}function v(t){var e=g(t);if(!e)return null;var n=e[0],a=e[1];if("searchbot"===n)return new s;var l=a[1]&&a[1].split(/[._]/).slice(0,3);l?l.length<h&&(l=i(l,b(h-l.length))):l=[];var c=l.join("."),p=m(t),f=u.exec(t);return f&&f[1]?new o(n,c,p,f[1]):new r(n,c,p)}function m(t){for(var e=0,n=f.length;e<n;e++){var i=f[e],r=i[0],a=i[1],o=a.exec(t);if(o)return r}return null}function y(){var e="undefined"!==typeof t&&t.version;return e?new a(t.version.slice(1)):null}function b(t){for(var e=[],n=0;n<t;n++)e.push("0");return e}}).call(this,n("f28c"))},"7c50":function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var i=n("9ab4"),r=n("8937"),a=n("31e6"),o={opacity:0},s={stroke:"#C5C5C5",strokeOpacity:.85},l={fill:"#CACED4",opacity:.85},c=n("2ef1"),u=n("f2fb");function h(t){return Object(r["R"])(t,(function(t,e){var n=0===e?"M":"L",i=t[0],r=t[1];return[n,i,r]}))}function p(t){return h(t)}function f(t){if(t.length<=2)return p(t);var e=[];Object(r["j"])(t,(function(t){Object(r["E"])(t,e.slice(e.length-2))||e.push(t[0],t[1])}));var n=Object(c["a"])(e,!1),i=Object(r["w"])(t),a=i[0],o=i[1];return n.unshift(["M",a,o]),n}function d(t,e,n,i){void 0===i&&(i=!0);var a=new u["b"]({values:t}),o=new u["a"]({values:Object(r["R"])(t,(function(t,e){return e}))}),s=Object(r["R"])(t,(function(t,i){return[o.scale(i)*e,n-a.scale(t)*n]}));return i?f(s):p(s)}function g(t,e){var n=new u["b"]({values:t}),i=Math.max(0,n.min);return e-n.scale(i)*e}function v(t,e,n,r){var a=Object(i["d"])(t),o=g(r,n);return a.push(["L",e,o]),a.push(["L",0,o]),a.push(["Z"]),a}var m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"trend",x:0,y:0,width:200,height:16,smooth:!0,isArea:!1,data:[],backgroundStyle:o,lineStyle:s,areaStyle:l})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,r=e.height,a=e.data,o=e.smooth,s=e.isArea,l=e.backgroundStyle,c=e.lineStyle,u=e.areaStyle;this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(i["a"])({x:0,y:0,width:n,height:r},l)});var h=d(a,n,r,o);if(this.addShape(t,{id:this.getElementId("line"),type:"path",attrs:Object(i["a"])({path:h},c)}),s){var p=v(h,n,r,a);this.addShape(t,{id:this.getElementId("area"),type:"path",attrs:Object(i["a"])({path:p},u)})}},e.prototype.applyOffset=function(){var t=this.cfg,e=t.x,n=t.y;this.moveElementTo(this.get("group"),{x:e,y:n})},e}(a["a"]),y={fill:"#416180",opacity:.05},b={fill:"#5B8FF9",opacity:.15,cursor:"move"},x=10,O={width:x,height:24},j={textBaseline:"middle",fill:"#000",opacity:.45},w="sliderchange",C={fill:"#F7F7F7",stroke:"#BFBFBF",radius:2,opacity:1,cursor:"ew-resize",highLightFill:"#FFF"},M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"handler",x:0,y:0,width:10,height:24,style:C})},e.prototype.renderInner=function(t){var e=this.cfg,n=e.width,i=e.height,r=e.style,a=r.fill,o=r.stroke,s=r.radius,l=r.opacity,c=r.cursor;this.addShape(t,{type:"rect",id:this.getElementId("background"),attrs:{x:0,y:0,width:n,height:i,fill:a,stroke:o,radius:s,opacity:l,cursor:c}});var u=1/3*n,h=2/3*n,p=1/4*i,f=3/4*i;this.addShape(t,{id:this.getElementId("line-left"),type:"line",attrs:{x1:u,y1:p,x2:u,y2:f,stroke:o,cursor:c}}),this.addShape(t,{id:this.getElementId("line-right"),type:"line",attrs:{x1:h,y1:p,x2:h,y2:f,stroke:o,cursor:c}})},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.bindEvents=function(){var t=this;this.get("group").on("mouseenter",(function(){var e=t.get("style").highLightFill;t.getElementByLocalId("background").attr("fill",e),t.draw()})),this.get("group").on("mouseleave",(function(){var e=t.get("style").fill;t.getElementByLocalId("background").attr("fill",e),t.draw()}))},e.prototype.draw=function(){var t=this.get("container").get("canvas");t&&t.draw()},e}(a["a"]),S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.onMouseDown=function(t){return function(n){e.currentTarget=t;var i=n.originalEvent;i.stopPropagation(),i.preventDefault(),e.prevX=Object(r["q"])(i,"touches.0.pageX",i.pageX),e.prevY=Object(r["q"])(i,"touches.0.pageY",i.pageY);var a=e.getContainerDOM();a.addEventListener("mousemove",e.onMouseMove),a.addEventListener("mouseup",e.onMouseUp),a.addEventListener("mouseleave",e.onMouseUp),a.addEventListener("touchmove",e.onMouseMove),a.addEventListener("touchend",e.onMouseUp),a.addEventListener("touchcancel",e.onMouseUp)}},e.onMouseMove=function(t){var n=e.cfg.width,i=[e.get("start"),e.get("end")];t.stopPropagation(),t.preventDefault();var a=Object(r["q"])(t,"touches.0.pageX",t.pageX),o=Object(r["q"])(t,"touches.0.pageY",t.pageY),s=a-e.prevX,l=e.adjustOffsetRange(s/n);e.updateStartEnd(l),e.updateUI(e.getElementByLocalId("foreground"),e.getElementByLocalId("minText"),e.getElementByLocalId("maxText")),e.prevX=a,e.prevY=o,e.draw(),e.emit(w,[e.get("start"),e.get("end")].sort()),e.delegateEmit("valuechanged",{originValue:i,value:[e.get("start"),e.get("end")]})},e.onMouseUp=function(){e.currentTarget&&(e.currentTarget=void 0);var t=e.getContainerDOM();t&&(t.removeEventListener("mousemove",e.onMouseMove),t.removeEventListener("mouseup",e.onMouseUp),t.removeEventListener("mouseleave",e.onMouseUp),t.removeEventListener("touchmove",e.onMouseMove),t.removeEventListener("touchend",e.onMouseUp),t.removeEventListener("touchcancel",e.onMouseUp))},e}return Object(i["b"])(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.get("start"),i=this.get("end"),a=Object(r["c"])(n,t,e),o=Object(r["c"])(i,t,e);this.get("isInit")||n===a&&i===o||this.setValue([a,o])},e.prototype.getRange=function(){return{min:this.get("minLimit")||0,max:this.get("maxLimit")||1}},e.prototype.setValue=function(t){var e=this.getRange();if(Object(r["z"])(t)&&2===t.length){var n=[this.get("start"),this.get("end")];this.update({start:Object(r["c"])(t[0],e.min,e.max),end:Object(r["c"])(t[1],e.min,e.max)}),this.get("updateAutoRender")||this.render(),this.delegateEmit("valuechanged",{originValue:n,value:t})}},e.prototype.getValue=function(){return[this.get("start"),this.get("end")]},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"slider",x:0,y:0,width:100,height:16,backgroundStyle:{},foregroundStyle:{},handlerStyle:{},textStyle:{},defaultCfg:{backgroundStyle:y,foregroundStyle:b,handlerStyle:O,textStyle:j}})},e.prototype.update=function(e){var n=e.start,a=e.end,o=Object(i["a"])({},e);Object(r["G"])(n)||(o.start=Object(r["c"])(n,0,1)),Object(r["G"])(a)||(o.end=Object(r["c"])(a,0,1)),t.prototype.update.call(this,o),this.minHandler=this.getChildComponentById(this.getElementId("minHandler")),this.maxHandler=this.getChildComponentById(this.getElementId("maxHandler")),this.trend=this.getChildComponentById(this.getElementId("trend"))},e.prototype.init=function(){this.set("start",Object(r["c"])(this.get("start"),0,1)),this.set("end",Object(r["c"])(this.get("end"),0,1)),t.prototype.init.call(this)},e.prototype.render=function(){t.prototype.render.call(this),this.updateUI(this.getElementByLocalId("foreground"),this.getElementByLocalId("minText"),this.getElementByLocalId("maxText"))},e.prototype.renderInner=function(t){var e=this.cfg,n=(e.start,e.end,e.width),a=e.height,o=e.trendCfg,s=void 0===o?{}:o,l=e.minText,c=e.maxText,u=e.backgroundStyle,h=void 0===u?{}:u,p=e.foregroundStyle,f=void 0===p?{}:p,d=e.textStyle,g=void 0===d?{}:d,v=e.handlerStyle,y=void 0===v?{}:v;Object(r["cb"])(Object(r["q"])(s,"data"))&&(this.trend=this.addComponent(t,Object(i["a"])({component:m,id:this.getElementId("trend"),x:0,y:0,width:n,height:a},s))),this.addShape(t,{id:this.getElementId("background"),type:"rect",attrs:Object(i["a"])({x:0,y:0,width:n,height:a},h)});this.addShape(t,{id:this.getElementId("minText"),type:"text",attrs:Object(i["a"])({y:a/2,textAlign:"right",text:l,silent:!1},g)}),this.addShape(t,{id:this.getElementId("maxText"),type:"text",attrs:Object(i["a"])({y:a/2,textAlign:"left",text:c,silent:!1},g)}),this.addShape(t,{id:this.getElementId("foreground"),name:"foreground",type:"rect",attrs:Object(i["a"])({y:0,height:a},f)});var b=Object(r["q"])(y,"height",24);this.minHandler=this.addComponent(t,Object(i["a"])({component:M,id:this.getElementId("minHandler"),name:"handler-min",x:0,y:(a-b)/2,width:n,height:b,cursor:"ew-resize"},y)),this.maxHandler=this.addComponent(t,Object(i["a"])({component:M,id:this.getElementId("maxHandler"),name:"handler-max",x:0,y:(a-b)/2,width:n,height:b,cursor:"ew-resize"},y))},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.updateUI=function(t,e,n){var i=this.cfg,a=i.start,o=i.end,s=i.width,l=i.minText,c=i.maxText,u=i.handlerStyle,h=i.height,p=a*s,f=o*s;this.trend&&(this.trend.update({width:s,height:h}),this.get("updateAutoRender")||this.trend.render()),t.attr("x",p),t.attr("width",f-p);var d=Object(r["q"])(u,"width",x);e.attr("text",l),n.attr("text",c);var g=this._dodgeText([p,f],e,n),v=g[0],m=g[1];this.minHandler&&(this.minHandler.update({x:p-d/2}),this.get("updateAutoRender")||this.minHandler.render()),Object(r["j"])(v,(function(t,n){return e.attr(n,t)})),this.maxHandler&&(this.maxHandler.update({x:f-d/2}),this.get("updateAutoRender")||this.maxHandler.render()),Object(r["j"])(m,(function(t,e){return n.attr(e,t)}))},e.prototype.bindEvents=function(){var t=this.get("group");t.on("handler-min:mousedown",this.onMouseDown("minHandler")),t.on("handler-min:touchstart",this.onMouseDown("minHandler")),t.on("handler-max:mousedown",this.onMouseDown("maxHandler")),t.on("handler-max:touchstart",this.onMouseDown("maxHandler"));var e=t.findById(this.getElementId("foreground"));e.on("mousedown",this.onMouseDown("foreground")),e.on("touchstart",this.onMouseDown("foreground"))},e.prototype.adjustOffsetRange=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":var r=0-n,a=1-n;return Math.min(a,Math.max(r,t));case"maxHandler":r=0-i,a=1-i;return Math.min(a,Math.max(r,t));case"foreground":r=0-n,a=1-i;return Math.min(a,Math.max(r,t))}},e.prototype.updateStartEnd=function(t){var e=this.cfg,n=e.start,i=e.end;switch(this.currentTarget){case"minHandler":n+=t;break;case"maxHandler":i+=t;break;case"foreground":n+=t,i+=t;break}this.set("start",n),this.set("end",i)},e.prototype._dodgeText=function(t,e,n){var i,a,o=this.cfg,s=o.handlerStyle,l=o.width,c=2,u=Object(r["q"])(s,"width",x),h=t[0],p=t[1],f=!1;h>p&&(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-c?{x:h+u/2+c,textAlign:"left"}:{x:h-u/2-c,textAlign:"right"},m=g.width>l-p-c?{x:p-u/2-c,textAlign:"right"}:{x:p+u/2+c,textAlign:"left"};return f?[m,v]:[v,m]},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 l(){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 c(t){r||l();var e=o.test(t)&&RegExp.$1;e&&e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var i=n.childNodes[0];return n.removeChild(i),i}function u(t,e,n){var i;try{i=window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.style[e]}catch(r){}finally{i=void 0===i?n:i}return i}function h(t,e){var n=u(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)}function 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,l=parseFloat(u(t,"marginBottom"))||0;return n+i+o+r+a+s+l}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,l=parseFloat(u(t,"marginLeft"))||0;return n+i+o+r+a+l+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 c})),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 Y})),n.d(e,"Circle",(function(){return z})),n.d(e,"Base",(function(){return g}));var i={};n.r(i),n.d(i,"getDefault",(function(){return y})),n.d(i,"ellipsisHead",(function(){return b})),n.d(i,"ellipsisTail",(function(){return x})),n.d(i,"ellipsisMiddle",(function(){return O}));var r={};n.r(r),n.d(r,"getDefault",(function(){return k})),n.d(r,"reserveFirst",(function(){return T})),n.d(r,"reserveLast",(function(){return A})),n.d(r,"reserveBoth",(function(){return L})),n.d(r,"equidistance",(function(){return P})),n.d(r,"equidistanceWithReverseBoth",(function(){return B}));var a={};n.r(a),n.d(a,"getDefault",(function(){return D})),n.d(a,"fixedAngle",(function(){return _})),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"),l=n("e897"),c=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["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["a"])({},e),{name:"axis",ticks:[],line:{},tickLine:{},subTickLine:null,title:null,label:{},verticalFactor:1,verticalLimitLength:null,overlapOrder:["autoRotate","autoEllipsis","autoHide"],tickStates:{},optimize:{},defaultCfg:{line:{style:{lineWidth:1,stroke: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},title:{autoRotate:!0,spacing:5,position:"center",style:{fontSize:12,fill:f["a"].textColor,textBaseline:"middle",fontFamily:f["a"].fontFamily,textAlign:"center"}},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(c["U"])(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(c["j"])(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(c["j"])(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(c["l"])(n,(function(n){return e.hasState(n,t)}))},e.prototype.getSidePoint=function(t,e){var n=this,i=n.getSideVector(e,t);return{x:t.x+i[0],y:t.y+i[1]}},e.prototype.getTextAnchor=function(t){var e;return Object(c["J"])(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(c["J"])(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(c["U"])({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(c["j"])(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;a<r-1;a++)for(var o=t[a],s=t[a+1],l=0;l<i;l++){var c=(l+1)/(i+1),u=(1-c)*o.tickValue+c*s.tickValue,h=this.getTickPoint(u),p=this.getSidePoint(h,n.length);e.push({startPoint:h,endPoint:p,tickValue:u,id:"sub-"+o.id+"-"+l})}return e},e.prototype.getTickLineAttrs=function(t,e,n,i){var r=this.get(e).style,a={points:[t.startPoint,t.endPoint]},o=Object(c["q"])(this.get("theme"),["tickLine","style"],{});r=Object(c["F"])(r)?Object(c["U"])({},o,r(a,n,i)):r;var l=t.startPoint,u=t.endPoint;return Object(s["a"])({x1:l.x,y1:l.y,x2:u.x,y2:u.y},r)},e.prototype.drawTick=function(t,e,n,i,r){this.addShape(e,{type:"line",id:this.getElementId(t.id),name:"axis-"+n,attrs:this.getTickLineAttrs(t,n,i,r)})},e.prototype.drawTickLines=function(t){var e=this,n=this.get("ticks"),i=this.get("subTickLine"),r=this.getTickLineItems(n),a=this.addGroup(t,{name:"axis-tickline-group",id:this.getElementId("tickline-group")}),o=this.get("tickLine");if(Object(c["j"])(r,(function(n,i){if(o.displayWithLabel){var s=e.getElementId("label-"+n.tickId);t.findById(s)&&e.drawTick(n,a,"tickLine",i,r)}else e.drawTick(n,a,"tickLine",i,r)})),i){var s=this.getSubTickLineItems(r);Object(c["j"])(s,(function(t,n){e.drawTick(t,a,"subTickLine",n,s)}))}},e.prototype.processTicks=function(){var t=this,e=this.get("ticks");Object(c["j"])(e,(function(e){e.point=t.getTickPoint(e.value),Object(c["G"])(e.id)&&(e.id=e.name)}))},e.prototype.drawTicks=function(t){var e=this;this.optimizeTicks(),this.processTicks(),this.get("label")&&this.drawLabels(t),this.get("tickLine")&&this.drawTickLines(t);var n=this.get("ticks");Object(c["j"])(n,(function(n){e.applyTickStates(n,t)}))},e.prototype.optimizeTicks=function(){var t=this.get("optimize"),e=this.get("ticks");if(t&&t.enable&&t.threshold>0){var n=Object(c["cb"])(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.rotate,o=i.formatter,s=this.getSidePoint(t.point,r),l=this.getSideVector(r,s),u=o?o(t.name,t,e):t.name,p=i.style;p=Object(c["F"])(p)?Object(c["q"])(this.get("theme"),["label","style"],{}):p;var f=Object(c["U"])({x:s.x,y:s.y,text:u,textAlign:this.getTextAnchor(l),textBaseline:this.getTextBaseline(l)},p);return a&&(f.matrix=Object(h["e"])(s,a)),f},e.prototype.drawLabels=function(t){var e=this,n=this.get("ticks"),i=this.addGroup(t,{name:"axis-label-group",id:this.getElementId("label-group")});Object(c["j"])(n,(function(t,r){e.addShape(i,{type:"text",name:"axis-label",id:e.getElementId("label-"+t.id),attrs:e.getLabelAttrs(t,r,n),delegateObject:{tick:t,item:t,index:r}})})),this.processOverlap(i);var r=i.getChildren(),a=Object(c["q"])(this.get("theme"),["label","style"],{}),o=this.get("label"),s=o.style,l=o.formatter;if(Object(c["F"])(s)){var u=r.map((function(t){return Object(c["q"])(t.get("delegateObject"),"tick")}));Object(c["j"])(r,(function(t,e){var n=t.get("delegateObject").tick,i=l?l(n.name,n,e):n.name,r=Object(c["U"])({},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(c["U"])({x:f.x,y:f.y,text:t.text},e),g=t.rotate,v=g;if(Object(c["G"])(g)&&o){var m=this.getAxisVector(p),y=[1,0];v=l["a"].angleTo(m,y,!0)}if(v){var b=Object(h["e"])(f,v);d.matrix=b}return d},e.prototype.drawTitle=function(t){this.addShape(t,{type:"text",id:this.getElementId("title"),name:"axis-title",attrs:this.getTitleAttrs()})},e.prototype.applyTickStates=function(t,e){var n=this.getItemStates(t);if(n.length){var i=this.get("tickStates"),r=this.getElementId("label-"+t.id),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),l=e.findById(s);if(l){var c=Object(p["a"])(t,"tickLine",i);c&&l.attr(c)}}},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 l=Object(p["a"])(t,"tickLine",n);l&&o.attr(l)}}else r&&r.attr(i.style),o&&o.attr(a.style)},e}(u["a"]),g=d,v=n("060b");function m(t,e,n,i){var r=e.getChildren(),a=!1;return Object(c["j"])(r,(function(e){var r=Object(v["a"])(t,e,n,i);a=a||r})),a}function y(){return x}function b(t,e,n){return m(t,e,n,"head")}function x(t,e,n){return m(t,e,n,"tail")}function O(t,e,n){return m(t,e,n,"middle")}var j=n("e546");function w(t){var e=t.attr("matrix");return e&&1!==e[0]}function C(t){var e=w(t)?Object(h["d"])(t.attr("matrix")):0;return e%360}function M(t,e,n,i){var r=!1,a=C(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 l=Math.abs(Math.cos(a));r=Object(j["i"])(l,0,Math.PI/180)?s.width+i>o:s.height/l+i>o}else{l=Math.abs(Math.sin(a));r=Object(j["i"])(l,0,Math.PI/180)?s.width+i>o:s.height/l+i>o}return r}function S(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,l=a[0],c=l,u=1;u<s;u++){var h=a[u],p=(h.getBBox(),M(t,c,h,r));p?(h.hide(),o=!0):c=h}return o}function I(t,e,n){var i=(null===n||void 0===n?void 0:n.minGap)||0,r=e.getChildren().slice();if(r.length<2)return!1;var a=!1,o=r[0],s=o.getBBox(),l=r[1],c=r.length,u=C(o),h=t?Math.abs(l.attr("y")-o.attr("y")):Math.abs(l.attr("x")-o.attr("x")),p=0;if(t){var f=Math.abs(Math.cos(u));if(Object(j["i"])(f,0,Math.PI/180)){var d=Object(v["b"])(r);p=(d+i)/h}else p=(s.height/f+i)/h}else{f=Math.abs(Math.sin(u));if(Object(j["i"])(f,0,Math.PI/180)){d=Object(v["b"])(r);p=(d+i)/h}else p=(s.height/f+i)/h}if(p>1){p=Math.ceil(p);for(var g=0;g<c;g++)g%p!==0&&(r[g].hide(),a=!0)}return a}function k(){return P}function T(t,e,n,i){return S(t,e,!1,i)}function A(t,e,n,i){return S(t,e,!0,i)}function L(t,e,n,i){var r=(null===i||void 0===i?void 0:i.minGap)||0,a=e.getChildren().slice();if(a.length<=2)return!1;for(var o=!1,s=a.length,l=a[0],c=a[s-1],u=l,h=1;h<s-1;h++){var p=a[h],f=(p.getBBox(),M(t,u,p,r));f?(p.hide(),o=!0):u=p}var d=M(t,u,c,r);return d&&(u.hide(),o=!0),o}function P(t,e,n,i){var r=I(t,e,i);return S(t,e,!1)&&(r=!0),r}function B(t,e,n,i){var r=e.getChildren().slice(),a=I(t,e,i);if(r.length>2){var o=r[0],s=r[r.length-1];o.get("visible")||(o.show(),S(t,e,!1,i)&&(a=!0)),s.get("visible")||(s.show(),S(t,e,!0,i)&&(a=!0))}return a}function E(t,e){Object(c["j"])(t,(function(t){var n=t.attr("x"),i=t.attr("y"),r=Object(h["e"])({x:n,y:i},e);t.attr("matrix",r)}))}function F(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 l=i(n,a);E(r,l)}return o}function D(){return _}function _(t,e,n,i){return F(t,e,n,(function(){return Object(c["I"])(i)?i:t?f["a"].verticalAxisRotate:f["a"].horizontalAxisRotate}))}function R(t,e,n){return F(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 G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["a"])({},e),{type:"line",locationType:"region",start:null,end:null})},e.prototype.getLinePath=function(){var t=this.get("start"),e=this.get("end"),n=[];return n.push(["M",t.x,t.y]),n.push(["L",e.x,e.y]),n},e.prototype.getInnerLayoutBBox=function(){var e=this.get("start"),n=this.get("end"),i=t.prototype.getInnerLayoutBBox.call(this),r=Math.min(e.x,n.x,i.x),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(c["J"])(t.x,e.x)},e.prototype.isHorizontal=function(){var t=this.get("start"),e=this.get("end");return Object(c["J"])(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=l["c"].normalize([0,0],e),i=this.get("verticalFactor"),r=[n[1],-1*n[0]];return l["c"].scale([0,0],r,t*i)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.processOverlap=function(t){var e=this,n=this.isVertical(),i=this.isHorizontal();if(n||i){var r=this.get("label"),a=this.get("title"),o=this.get("verticalLimitLength"),s=r.offset,l=o,u=0,h=0;a&&(u=a.style.fontSize,h=a.spacing),l&&(l=l-s-h-u);var p=this.get("overlapOrder");if(Object(c["j"])(p,(function(n){r[n]&&e.canProcessOverlap(n)&&e.autoProcessOverlap(n,r[n],t,l)})),a&&Object(c["G"])(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(c["G"])(e.rotate)},e.prototype.autoProcessOverlap=function(t,e,n,i){var r=this,a=this.isVertical(),s=!1,l=o[t];if(!0===e){this.get("label");s=l.getDefault()(a,n,i)}else if(Object(c["F"])(e))s=e(a,n,i);else if(Object(c["K"])(e)){var u=e;l[u.type]&&(s=l[u.type](a,n,i,u.cfg))}else l[e]&&(s=l[e](a,n,i));if("autoRotate"===t){if(s){var h=n.getChildren(),p=this.get("verticalFactor");Object(c["j"])(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(c["j"])(f,(function(t){t.get("visible")||(r.get("isRegister")&&r.unregisterElement(t),t.remove())}))}},e}(g),Y=G,N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(s["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(s["a"])(Object(s["a"])({},e),{type:"circle",locationType:"circle",center:null,radius:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getLinePath=function(){var t=this.get("center"),e=t.x,n=t.y,i=this.get("radius"),r=i,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 l=this.getCirclePoint(a),c=this.getCirclePoint(o),u=Math.abs(o-a)>Math.PI?1:0,h=a>o?0:1;s=[["M",e,n],["L",l.x,l.y],["A",i,r,0,u,h,c.x,c.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=l["c"].length(i);return l["c"].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}(g),z=N},"7d4e":function(t,e,n){"use strict";n("5284")},"7fa2":function(t,e,n){"use strict";var i="*",r=function(){function t(){this._events={}}return t.prototype.on=function(t,e,n){return this._events[t]||(this._events[t]=[]),this._events[t].push({callback:e,once:!!n}),this},t.prototype.once=function(t,e){return this.on(t,e,!0),this},t.prototype.emit=function(t){for(var e=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var a=this._events[t]||[],o=this._events[i]||[],s=function(i){for(var r=i.length,a=0;a<r;a++)if(i[a]){var o=i[a],s=o.callback,l=o.once;l&&(i.splice(a,1),0===i.length&&delete e._events[t],r--,a--),s.apply(e,n)}};s(a),s(o)},t.prototype.off=function(t,e){if(t)if(e){for(var n=this._events[t]||[],i=n.length,r=0;r<i;r++)n[r].callback===e&&(n.splice(r,1),i--,r--);0===n.length&&delete this._events[t]}else delete this._events[t];else this._events={};return this},t.prototype.getEvents=function(){return this._events},t}();e["a"]=r},8937:function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"x",(function(){return o})),n.d(e,"i",(function(){return u})),n.d(e,"m",(function(){return A})),n.d(e,"n",(function(){return P})),n.d(e,"p",(function(){return E})),n.d(e,"r",(function(){return D})),n.d(e,"Y",(function(){return z})),n.d(e,"Z",(function(){return X})),n.d(e,"jb",(function(){return q})),n.d(e,"nb",(function(){return U})),n.d(e,"w",(function(){return $})),n.d(e,"P",(function(){return Z})),n.d(e,"l",(function(){return l})),n.d(e,"k",(function(){return J})),n.d(e,"db",(function(){return tt})),n.d(e,"s",(function(){return ot})),n.d(e,"t",(function(){return it})),n.d(e,"u",(function(){return at})),n.d(e,"c",(function(){return lt})),n.d(e,"o",(function(){return ut})),n.d(e,"J",(function(){return dt})),n.d(e,"V",(function(){return vt})),n.d(e,"hb",(function(){return bt})),n.d(e,"v",(function(){return Ot})),n.d(e,"O",(function(){return j})),n.d(e,"mb",(function(){return wt})),n.d(e,"Q",(function(){return St})),n.d(e,"eb",(function(){return kt})),n.d(e,"lb",(function(){return At})),n.d(e,"z",(function(){return m})),n.d(e,"A",(function(){return Ft})),n.d(e,"B",(function(){return _t})),n.d(e,"F",(function(){return d})),n.d(e,"G",(function(){return v})),n.d(e,"H",(function(){return Gt})),n.d(e,"I",(function(){return pt})),n.d(e,"K",(function(){return y})),n.d(e,"L",(function(){return k})),n.d(e,"M",(function(){return H})),n.d(e,"N",(function(){return Xt})),n.d(e,"C",(function(){return Wt})),n.d(e,"ab",(function(){return qt})),n.d(e,"d",(function(){return Ut})),n.d(e,"e",(function(){return Jt})),n.d(e,"g",(function(){return te})),n.d(e,"T",(function(){return ee})),n.d(e,"h",(function(){return ae})),n.d(e,"j",(function(){return x})),n.d(e,"y",(function(){return se})),n.d(e,"D",(function(){return ue})),n.d(e,"E",(function(){return pe})),n.d(e,"R",(function(){return de})),n.d(e,"S",(function(){return ve})),n.d(e,"U",(function(){return Zt})),n.d(e,"b",(function(){return Zt})),n.d(e,"q",(function(){return me})),n.d(e,"bb",(function(){return ye})),n.d(e,"X",(function(){return xe})),n.d(e,"fb",(function(){return Oe})),n.d(e,"gb",(function(){return je})),n.d(e,"ib",(function(){return Ct})),n.d(e,"kb",(function(){return Ce})),n.d(e,"W",(function(){return Me})),n.d(e,"cb",(function(){return Se})),n.d(e,"a",(function(){return ke}));var i=function(t){return null!==t&&"function"!==typeof t&&isFinite(t.length)},r=i,a=function(t,e){return!!r(t)&&t.indexOf(e)>-1},o=a,s=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];e(a,i)&&n.push(a)}return n},l=s,c=function(t,e){return void 0===e&&(e=[]),l(t,(function(t){return!o(e,t)}))},u=c,h={}.toString,p=function(t,e){return h.call(t)==="[object "+e+"]"},f=p,d=function(t){return f(t,"Function")},g=function(t){return null===t||void 0===t},v=g,m=function(t){return Array.isArray?Array.isArray(t):f(t,"Array")},y=function(t){var e=typeof t;return null!==t&&"object"===e||"function"===e};function b(t,e){var n;if(t)if(m(t)){for(var i=0,r=t.length;i<r;i++)if(n=e(t[i],i),!1===n)break}else if(y(t))for(var a in t)if(t.hasOwnProperty(a)&&(n=e(t[a],a),!1===n))break}var x=b,O=Object.keys?function(t){return Object.keys(t)}:function(t){var e=[];return x(t,(function(n,i){d(t)&&"prototype"===i||e.push(i)})),e},j=O;function w(t,e){var n=j(e),i=n.length;if(v(t))return!i;for(var r=0;r<i;r+=1){var a=n[r];if(e[a]!==t[a]||!(a in t))return!1}return!0}var C=w,M=function(t){return"object"===typeof t&&null!==t},S=M,I=function(t){if(!S(t)||!f(t,"Object"))return!1;if(null===Object.getPrototypeOf(t))return!0;var e=t;while(null!==Object.getPrototypeOf(e))e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},k=I;function T(t,e){if(!m(t))return null;var n;if(d(e)&&(n=e),k(e)&&(n=function(t){return C(t,e)}),n)for(var i=0;i<t.length;i+=1)if(n(t[i]))return t[i];return null}var A=T;var L=function(t,e){for(var n=null,i=0;i<t.length;i++){var r=t[i],a=r[e];if(!v(a)){n=m(a)?a[0]:a;break}}return n},P=L,B=function(t){if(!m(t))return[];for(var e=[],n=0;n<t.length;n++)e=e.concat(t[n]);return e},E=B,F=function(t){var e=t.filter((function(t){return!isNaN(t)}));if(!e.length)return{min:0,max:0};if(m(t[0])){for(var n=[],i=0;i<t.length;i++)n=n.concat(t[i]);e=n}var r=Math.max.apply(null,e),a=Math.min.apply(null,e);return{min:a,max:r}},D=F,_=Array.prototype,R=(_.splice,_.indexOf,Array.prototype.splice),G=function(t,e){if(!r(t))return[];var n=t?e.length:0,i=n-1;while(n--){var a=void 0,o=e[n];n!==i&&o===a||(a=o,R.call(t,o,1))}return t},Y=G,N=function(t,e,n){if(!m(t)&&!k(t))return t;var i=n;return x(t,(function(t,n){i=e(i,t,n)})),i},z=N,V=function(t,e){var n=[];if(!r(t))return n;var i=-1,a=[],o=t.length;while(++i<o){var s=t[i];e(s,i,t)&&(n.push(s),a.push(i))}return Y(t,a),n},X=V,H=function(t){return f(t,"String")};var W=function(t){var e=[];return x(t,(function(t){o(e,t)||e.push(t)})),e},q=W,U=function(t,e){for(var n=[],i={},r=0;r<t.length;r++){var a=t[r],o=a[e];if(!v(o)){m(o)||(o=[o]);for(var s=0;s<o.length;s++){var l=o[s];i[l]||(n.push(l),i[l]=!0)}}}return n};function $(t){if(r(t))return t[0]}function Z(t){if(r(t)){var e=t;return e[e.length-1]}}var Q=function(t,e){for(var n=0;n<t.length;n++)if(!e(t[n],n))return!1;return!0},J=Q,K=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n],n))return!0;return!1},tt=K,et=Object.prototype.hasOwnProperty;function nt(t,e){if(!e||!m(t))return{};for(var n,i={},r=d(e)?e:function(t){return t[e]},a=0;a<t.length;a++){var o=t[a];n=r(o),et.call(i,n)?i[n].push(o):i[n]=[o]}return i}var it=nt,rt=function(t,e){if(!e)return{0:t};if(!d(e)){var n=m(e)?e:e.replace(/\s+/g,"").split("*");e=function(t){for(var e="_",i=0,r=n.length;i<r;i++)e+=t[n[i]]&&t[n[i]].toString();return e}}var i=it(t,e);return i},at=rt,ot=function(t,e){if(!e)return[t];var n=at(t,e),i=[];for(var r in n)i.push(n[r]);return i};var st=function(t,e,n){return t<e?e:t>n?n:t},lt=st,ct=function(t,e){var n=e.toString(),i=n.indexOf(".");if(-1===i)return Math.round(t);var r=n.substr(i+1).length;return r>20&&(r=20),parseFloat(t.toFixed(r))},ut=ct,ht=function(t){return f(t,"Number")},pt=ht,ft=(Number.isInteger&&Number.isInteger,1e-5);function dt(t,e,n){return void 0===n&&(n=ft),Math.abs(t-e)<n}var gt=function(t,e){return(t%e+e)%e},vt=gt,mt=(Math.PI,parseInt,Math.PI/180),yt=function(t){return mt*t},bt=yt,xt=function(t,e){return t.hasOwnProperty(e)},Ot=xt,jt=Object.values?function(t){return Object.values(t)}:function(t){var e=[];return x(t,(function(n,i){d(t)&&"prototype"===i||e.push(n)})),e},wt=jt,Ct=function(t){return v(t)?"":t.toString()},Mt=function(t){return Ct(t).toLowerCase()},St=Mt;function It(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,(function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]})):t}var kt=It,Tt=function(t){var e=Ct(t);return e.charAt(0).toUpperCase()+e.substring(1)},At=Tt,Lt={}.toString,Pt=function(t){return Lt.call(t).replace(/^\[object /,"").replace(/]$/,"")},Bt=Pt,Et=function(t){return f(t,"Boolean")},Ft=Et,Dt=function(t){return f(t,"Date")},_t=Dt,Rt=function(t){return null===t},Gt=Rt,Yt=Object.prototype,Nt=function(t){var e=t&&t.constructor,n="function"===typeof e&&e.prototype||Yt;return t===n},zt=Nt,Vt=function(t){return void 0===t},Xt=Vt,Ht=function(t){return t instanceof Element||t instanceof HTMLDocument},Wt=Ht;function qt(t){var e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return setTimeout(t,16)};return e(t)}function Ut(t){var e=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.msCancelAnimationFrame||clearTimeout;e(t)}function $t(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function Zt(t,e,n,i){return e&&$t(t,e),n&&$t(t,n),i&&$t(t,i),t}var Qt=function(t){if("object"!==typeof t||null===t)return t;var e;if(m(t)){e=[];for(var n=0,i=t.length;n<i;n++)"object"===typeof t[n]&&null!=t[n]?e[n]=Qt(t[n]):e[n]=t[n]}else for(var r in e={},t)"object"===typeof t[r]&&null!=t[r]?e[r]=Qt(t[r]):e[r]=t[r];return e},Jt=Qt;function Kt(t,e,n){var i;return function(){var r=this,a=arguments,o=function(){i=null,n||t.apply(r,a)},s=n&&!i;clearTimeout(i),i=setTimeout(o,e),s&&t.apply(r,a)}}var te=Kt,ee=function(t,e){if(!d(t))throw new TypeError("Expected a function");var n=function(){for(var i=[],r=0;r<arguments.length;r++)i[r]=arguments[r];var a=e?e.apply(this,i):i[0],o=n.cache;if(o.has(a))return o.get(a);var s=t.apply(this,i);return o.set(a,s),s};return n.cache=new Map,n},ne=5;function ie(t,e,n,i){for(var r in n=n||0,i=i||ne,e)if(e.hasOwnProperty(r)){var a=e[r];null!==a&&k(a)?(k(t[r])||(t[r]={}),n<i?ie(t[r],a,n+1,i):t[r]=e[r]):m(a)?(t[r]=[],t[r]=t[r].concat(a)):void 0!==a&&(t[r]=a)}}var re=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0;i<e.length;i+=1)ie(t,e[i]);return t},ae=re,oe=function(t,e){if(!r(t))return-1;var n=Array.prototype.indexOf;if(n)return n.call(t,e);for(var i=-1,a=0;a<t.length;a++)if(t[a]===e){i=a;break}return i},se=oe,le=Object.prototype.hasOwnProperty;function ce(t){if(v(t))return!0;if(r(t))return!t.length;var e=Bt(t);if("Map"===e||"Set"===e)return!t.size;if(zt(t))return!Object.keys(t).length;for(var n in t)if(le.call(t,n))return!1;return!0}var ue=ce,he=function(t,e){if(t===e)return!0;if(!t||!e)return!1;if(H(t)||H(e))return!1;if(r(t)||r(e)){if(t.length!==e.length)return!1;for(var n=!0,i=0;i<t.length;i++)if(n=he(t[i],e[i]),!n)break;return n}if(S(t)||S(e)){var a=Object.keys(t),o=Object.keys(e);if(a.length!==o.length)return!1;for(n=!0,i=0;i<a.length;i++)if(n=he(t[a[i]],e[a[i]]),!n)break;return n}return!1},pe=he,fe=function(t,e){if(!r(t))return t;for(var n=[],i=0;i<t.length;i++){var a=t[i];n.push(e(a,i))}return n},de=fe,ge=function(t){return t},ve=function(t,e){void 0===e&&(e=ge);var n={};return y(t)&&!v(t)&&Object.keys(t).forEach((function(i){n[i]=e(t[i],i)})),n},me=function(t,e,n){var i=0,r=H(e)?e.split("."):e;while(t&&i<r.length)t=t[r[i++]];return void 0===t||i<r.length?n:t},ye=function(t,e,n){var i=t,r=H(e)?e.split("."):e;return r.forEach((function(t,e){e<r.length-1?(y(i[t])||(i[t]=pt(r[e+1])?[]:{}),i=i[t]):i[t]=n})),t},be=Object.prototype.hasOwnProperty,xe=function(t,e){if(null===t||!k(t))return{};var n={};return x(e,(function(e){be.call(t,e)&&(n[e]=t[e])})),n},Oe=function(t,e,n){var i,r,a,o,s=0;n||(n={});var l=function(){s=!1===n.leading?0:Date.now(),i=null,o=t.apply(r,a),i||(r=a=null)},c=function(){var c=Date.now();s||!1!==n.leading||(s=c);var u=e-(c-s);return r=this,a=arguments,u<=0||u>e?(i&&(clearTimeout(i),i=null),s=c,o=t.apply(r,a),i||(r=a=null)):i||!1===n.trailing||(i=setTimeout(l,u)),o};return c.cancel=function(){clearTimeout(i),s=0,i=r=a=null},c},je=function(t){return r(t)?Array.prototype.slice.call(t):[]},we={},Ce=function(t){return t=t||"g",we[t]?we[t]+=1:we[t]=1,t+we[t]},Me=function(){};function Se(t){return v(t)?0:r(t)?t.length:Object.keys(t).length}var Ie=function(){function t(){this.map={}}return t.prototype.has=function(t){return void 0!==this.map[t]},t.prototype.get=function(t,e){var n=this.map[t];return void 0===n?e:n},t.prototype.set=function(t,e){this.map[t]=e},t.prototype.clear=function(){this.map={}},t.prototype.delete=function(t){delete this.map[t]},t.prototype.size=function(){return Object.keys(this.map).length},t}(),ke=Ie},"8e9c":function(t,e,n){"use strict";n("04e2")},"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 c})),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["a"].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["a"].transform(e||r,[["t",t.x,t.y]]):null}function s(t){var e=[1,0,0],n=[0,0,0];return i["d"].transformMat3(n,e,t),Math.atan2(n[1],n[0])}function l(t,e){var n=[0,0];return i["c"].transformMat3(n,e,t),n}function c(t,e){var n=l(t,[e.minX,e.minY]),i=l(t,[e.maxX,e.minY]),r=l(t,[e.minX,e.maxY]),a=l(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]),c=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:c,minX:o,minY:c,maxX:s,maxY:u,width:s-o,height:u-c}}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)}},"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,l=e.dodgeBy,c=e.intervalPadding,u=e.dodgePadding,h=e.xDimensionLength,p=e.groupNum,f=e.defaultSize,d=e.maxColumnWidth,g=e.minColumnWidth,v=e.columnWidthRatio;return n.marginRatio=r,n.dodgeRatio=s,n.dodgeBy=l,n.intervalPadding=c,n.dodgePadding=u,n.xDimensionLegenth=h,n.groupNum=p,n.defaultSize=f,n.maxColumnWidth=d,n.minColumnWidth=g,n.columnWidthRatio=v,n}return Object(i["b"])(e,t),e.prototype.process=function(t){var e=r["e"](t),n=r["p"](e),i=this.dodgeBy,a=i?r["s"](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.getDistribution(t),s=this.groupData(n,t);return r["j"](s,(function(n,s){var l;l=1===e.length?{pre:e[0]-1,next:e[0]+1}:a.getAdjustRange(t,parseFloat(s),e),r["j"](n,(function(e){var n=e[t],r=o[n],s=r.indexOf(i);e[t]=a.getDodgeOffset(l,s,r.length)}))})),[]},e.prototype.getDodgeOffset=function(t,e,n){var i,a=this,o=a.dodgeRatio,s=a.marginRatio,l=a.intervalPadding,c=a.dodgePadding,u=t.pre,h=t.next,p=h-u;if(!r["G"](l)&&r["G"](c)&&l>=0){var f=this.getIntervalOnlyOffset(n,e);i=u+f}else if(!r["G"](c)&&r["G"](l)&&c>=0){f=this.getDodgeOnlyOffset(n,e);i=u+f}else if(!r["G"](l)&&!r["G"](c)&&l>=0&&c>=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,l=n.dodgeRatio,c=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,p=a/o,f=(1-(s-1)*p)/s*l/(t-1),d=((1-p*(s-1))/s-f*(t-1))/t;if(d=r["G"](h)?d:1/s/t*h,!r["G"](c)){var g=c/o;d=Math.min(d,g)}if(!r["G"](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 m=((.5+e)*d+e*f+.5*p)*s-p/2;return m},e.prototype.getDodgeOnlyOffset=function(t,e){var n=this,i=n.defaultSize,a=n.dodgePadding,o=n.xDimensionLegenth,s=n.groupNum,l=n.marginRatio,c=n.maxColumnWidth,u=n.minColumnWidth,h=n.columnWidthRatio,p=a/o,f=1*l/(s-1),d=((1-f*(s-1))/s-p*(t-1))/t;if(d=h?1/s/t*h:d,!r["G"](c)){var g=c/o;d=Math.min(d,g)}if(!r["G"](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 m=((.5+e)*d+e*p+.5*f)*s-f/2;return m},e.prototype.getIntervalAndDodgeOffset=function(t,e){var n=this,i=n.intervalPadding,r=n.dodgePadding,a=n.xDimensionLegenth,o=n.groupNum,s=i/a,l=r/a,c=((1-s*(o-1))/o-l*(t-1))/t,u=((.5+e)*c+e*l+.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["j"](e,(function(e,n){var a=r["nb"](e,t);a.length||a.push(0),r["j"](a,(function(t){i[t]||(i[t]=[]),i[t].push(n)}))})),n[t]=i),i},e}(o["a"]);e["a"]=s},"94ec":function(t,e,n){"use strict";n("3b21")},"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}},"96fa":function(t,e,n){},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["j"])(n,(function(e,n){t[n]&&e[r]&&(a||(a={}),Object(i["U"])(a,e[r]))})),a}},"9ab4":function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return s}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var i=function(t,e){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},i(t,e)};function r(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var a=function(){return a=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},a.apply(this,arguments)};function o(t,e){var n={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(n[i]=t[i]);if(null!=t&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(t);r<i.length;r++)e.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(t,i[r])&&(n[i[r]]=t[i[r]])}return n}Object.create;function s(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i}Object.create},"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]<t[1]*e[0]?-1:1)*Math.acos(a(t,e))}function s(t,e){var n=e[1],r=e[2],s=Object(i["m"])(Object(i["o"])(e[3]),2*Math.PI),l=e[4],c=e[5],u=t[0],h=t[1],p=e[6],f=e[7],d=Math.cos(s)*(u-p)/2+Math.sin(s)*(h-f)/2,g=-1*Math.sin(s)*(u-p)/2+Math.cos(s)*(h-f)/2,v=d*d/(n*n)+g*g/(r*r);v>1&&(n*=Math.sqrt(v),r*=Math.sqrt(v));var m=n*n*(g*g)+r*r*(d*d),y=m?Math.sqrt((n*n*(r*r)-m)/m):1;l===c&&(y*=-1),isNaN(y)&&(y=0);var b=r?y*n*g/r:0,x=n?y*-r*d/n:0,O=(u+p)/2+Math.cos(s)*b-Math.sin(s)*x,j=(h+f)/2+Math.sin(s)*b+Math.cos(s)*x,w=[(d-b)/n,(g-x)/r],C=[(-1*d-b)/n,(-1*g-x)/r],M=o([1,0],w),S=o(w,C);return a(w,C)<=-1&&(S=Math.PI),a(w,C)>=1&&(S=0),0===c&&S>0&&(S-=2*Math.PI),1===c&&S<0&&(S+=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:M,endAngle:M+S,xRotation:s,arcFlag:l,sweepFlag:c}}},"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,l=Math.PI;function c(t,e,n,i,c,u,h){var p=e.stroke,f=e.lineWidth,d=n-c,g=i-u,v=s(g,d),m=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:{path:"M"+10*o(l/6)+","+10*a(l/6)+" L0,0 L"+10*o(l/6)+",-"+10*a(l/6),stroke:p,lineWidth:f}});m.translate(c,u),m.rotateAtPoint(c,u,v),t.set(h?"startArrowShape":"endArrowShape",m)}function u(t,e,n,l,c,u,h){var p=e.startArrow,f=e.endArrow,d=e.stroke,g=e.lineWidth,v=h?p:f,m=v.d,y=v.fill,b=v.stroke,x=v.lineWidth,O=Object(i["c"])(v,["d","fill","stroke","lineWidth"]),j=n-c,w=l-u,C=s(w,j);m&&(c-=o(C)*m,u-=a(C)*m);var M=new r["Path"]({type:"path",canvas:t.get("canvas"),isArrowShape:!0,attrs:Object(i["a"])(Object(i["a"])({},O),{stroke:b||d,lineWidth:x||g,fill:y})});M.translate(c,u),M.rotateAtPoint(c,u,C),t.set(h?"startArrowShape":"endArrowShape",M)}function h(t,e,n,i,r){var l=s(i-e,n-t);return{dx:o(l)*r,dy:a(l)*r}}function p(t,e,n,i,r,a){"object"===typeof e.startArrow?u(t,e,n,i,r,a,!0):e.startArrow?c(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?c(t,e,n,i,r,a,!1):t.set("startArrowShape",null)}},"9fe7":function(t,e,n){"use strict";n.r(e),n.d(e,"create",(function(){return r})),n.d(e,"clone",(function(){return a})),n.d(e,"length",(function(){return o})),n.d(e,"fromValues",(function(){return s})),n.d(e,"copy",(function(){return l})),n.d(e,"set",(function(){return c})),n.d(e,"add",(function(){return u})),n.d(e,"subtract",(function(){return h})),n.d(e,"multiply",(function(){return p})),n.d(e,"divide",(function(){return f})),n.d(e,"ceil",(function(){return d})),n.d(e,"floor",(function(){return g})),n.d(e,"min",(function(){return v})),n.d(e,"max",(function(){return m})),n.d(e,"round",(function(){return y})),n.d(e,"scale",(function(){return b})),n.d(e,"scaleAndAdd",(function(){return x})),n.d(e,"distance",(function(){return O})),n.d(e,"squaredDistance",(function(){return j})),n.d(e,"squaredLength",(function(){return w})),n.d(e,"negate",(function(){return C})),n.d(e,"inverse",(function(){return M})),n.d(e,"normalize",(function(){return S})),n.d(e,"dot",(function(){return I})),n.d(e,"cross",(function(){return k})),n.d(e,"lerp",(function(){return T})),n.d(e,"hermite",(function(){return A})),n.d(e,"bezier",(function(){return L})),n.d(e,"random",(function(){return P})),n.d(e,"transformMat4",(function(){return B})),n.d(e,"transformMat3",(function(){return E})),n.d(e,"transformQuat",(function(){return F})),n.d(e,"rotateX",(function(){return D})),n.d(e,"rotateY",(function(){return _})),n.d(e,"rotateZ",(function(){return R})),n.d(e,"angle",(function(){return G})),n.d(e,"zero",(function(){return Y})),n.d(e,"str",(function(){return N})),n.d(e,"exactEquals",(function(){return z})),n.d(e,"equals",(function(){return V})),n.d(e,"sub",(function(){return X})),n.d(e,"mul",(function(){return H})),n.d(e,"div",(function(){return W})),n.d(e,"dist",(function(){return q})),n.d(e,"sqrDist",(function(){return U})),n.d(e,"len",(function(){return $})),n.d(e,"sqrLen",(function(){return Z})),n.d(e,"forEach",(function(){return Q}));var i=n("c94d");function r(){var t=new i["a"](3);return i["a"]!=Float32Array&&(t[0]=0,t[1]=0,t[2]=0),t}function a(t){var e=new i["a"](3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function o(t){var e=t[0],n=t[1],i=t[2];return Math.hypot(e,n,i)}function s(t,e,n){var r=new i["a"](3);return r[0]=t,r[1]=e,r[2]=n,r}function l(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t}function c(t,e,n,i){return t[0]=e,t[1]=n,t[2]=i,t}function u(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t}function h(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t}function p(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t}function f(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t}function d(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t}function g(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t}function v(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t}function m(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t}function y(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t}function b(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t}function x(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t}function O(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return Math.hypot(n,i,r)}function j(t,e){var n=e[0]-t[0],i=e[1]-t[1],r=e[2]-t[2];return n*n+i*i+r*r}function w(t){var e=t[0],n=t[1],i=t[2];return e*e+n*n+i*i}function C(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t}function M(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t}function S(t,e){var n=e[0],i=e[1],r=e[2],a=n*n+i*i+r*r;return a>0&&(a=1/Math.sqrt(a)),t[0]=e[0]*a,t[1]=e[1]*a,t[2]=e[2]*a,t}function I(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function k(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[0],s=n[1],l=n[2];return t[0]=r*l-a*s,t[1]=a*o-i*l,t[2]=i*s-r*o,t}function T(t,e,n,i){var r=e[0],a=e[1],o=e[2];return t[0]=r+i*(n[0]-r),t[1]=a+i*(n[1]-a),t[2]=o+i*(n[2]-o),t}function A(t,e,n,i,r,a){var o=a*a,s=o*(2*a-3)+1,l=o*(a-2)+a,c=o*(a-1),u=o*(3-2*a);return t[0]=e[0]*s+n[0]*l+i[0]*c+r[0]*u,t[1]=e[1]*s+n[1]*l+i[1]*c+r[1]*u,t[2]=e[2]*s+n[2]*l+i[2]*c+r[2]*u,t}function L(t,e,n,i,r,a){var o=1-a,s=o*o,l=a*a,c=s*o,u=3*a*s,h=3*l*o,p=l*a;return t[0]=e[0]*c+n[0]*u+i[0]*h+r[0]*p,t[1]=e[1]*c+n[1]*u+i[1]*h+r[1]*p,t[2]=e[2]*c+n[2]*u+i[2]*h+r[2]*p,t}function P(t,e){e=e||1;var n=2*i["c"]()*Math.PI,r=2*i["c"]()-1,a=Math.sqrt(1-r*r)*e;return t[0]=Math.cos(n)*a,t[1]=Math.sin(n)*a,t[2]=r*e,t}function B(t,e,n){var i=e[0],r=e[1],a=e[2],o=n[3]*i+n[7]*r+n[11]*a+n[15];return o=o||1,t[0]=(n[0]*i+n[4]*r+n[8]*a+n[12])/o,t[1]=(n[1]*i+n[5]*r+n[9]*a+n[13])/o,t[2]=(n[2]*i+n[6]*r+n[10]*a+n[14])/o,t}function E(t,e,n){var i=e[0],r=e[1],a=e[2];return t[0]=i*n[0]+r*n[3]+a*n[6],t[1]=i*n[1]+r*n[4]+a*n[7],t[2]=i*n[2]+r*n[5]+a*n[8],t}function F(t,e,n){var i=n[0],r=n[1],a=n[2],o=n[3],s=e[0],l=e[1],c=e[2],u=r*c-a*l,h=a*s-i*c,p=i*l-r*s,f=r*p-a*h,d=a*u-i*p,g=i*h-r*u,v=2*o;return u*=v,h*=v,p*=v,f*=2,d*=2,g*=2,t[0]=s+u+f,t[1]=l+h+d,t[2]=c+p+g,t}function D(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0],a[1]=r[1]*Math.cos(i)-r[2]*Math.sin(i),a[2]=r[1]*Math.sin(i)+r[2]*Math.cos(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function _(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[2]*Math.sin(i)+r[0]*Math.cos(i),a[1]=r[1],a[2]=r[2]*Math.cos(i)-r[0]*Math.sin(i),t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function R(t,e,n,i){var r=[],a=[];return r[0]=e[0]-n[0],r[1]=e[1]-n[1],r[2]=e[2]-n[2],a[0]=r[0]*Math.cos(i)-r[1]*Math.sin(i),a[1]=r[0]*Math.sin(i)+r[1]*Math.cos(i),a[2]=r[2],t[0]=a[0]+n[0],t[1]=a[1]+n[1],t[2]=a[2]+n[2],t}function G(t,e){var n=t[0],i=t[1],r=t[2],a=e[0],o=e[1],s=e[2],l=Math.sqrt(n*n+i*i+r*r),c=Math.sqrt(a*a+o*o+s*s),u=l*c,h=u&&I(t,e)/u;return Math.acos(Math.min(Math.max(h,-1),1))}function Y(t){return t[0]=0,t[1]=0,t[2]=0,t}function N(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"}function z(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]}function V(t,e){var n=t[0],r=t[1],a=t[2],o=e[0],s=e[1],l=e[2];return Math.abs(n-o)<=i["b"]*Math.max(1,Math.abs(n),Math.abs(o))&&Math.abs(r-s)<=i["b"]*Math.max(1,Math.abs(r),Math.abs(s))&&Math.abs(a-l)<=i["b"]*Math.max(1,Math.abs(a),Math.abs(l))}var X=h,H=p,W=f,q=O,U=j,$=o,Z=w,Q=function(){var t=r();return function(e,n,i,r,a,o){var s,l;for(n||(n=3),i||(i=0),l=r?Math.min(r*n+i,e.length):e.length,s=i;s<l;s+=n)t[0]=e[s],t[1]=e[s+1],t[2]=e[s+2],a(t,t,o),e[s]=t[0],e[s+1]=t[1],e[s+2]=t[2];return e}}()},a6d8:function(t,e,n){"use strict";n("73db")},ad88:function(t,e,n){},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 l(t,e){var n=t.match(s);Object(i["c"])(n,(function(t){var n=t.split(":");e.addColorStop(n[0],n[1])}))}function c(t,e,n){var i,a,o=r.exec(n),s=parseFloat(o[1])%360*(Math.PI/180),c=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<Math.PI?(i={x:u.maxX,y:u.minY},a={x:u.minX,y:u.maxY}):Math.PI<=s&&s<1.5*Math.PI?(i={x:u.maxX,y:u.maxY},a={x:u.minX,y:u.minY}):(i={x:u.minX,y:u.maxY},a={x:u.maxX,y:u.minY});var h=Math.tan(s),p=h*h,f=(a.x-i.x+h*(a.y-i.y))/(p+1)+i.x,d=h*(a.x-i.x+h*(a.y-i.y))/(p+1)+i.y,g=t.createLinearGradient(i.x,i.y,f,d);return l(c,g),g}function u(t,e,n){var i=a.exec(n),r=parseFloat(i[1]),o=parseFloat(i[2]),c=parseFloat(i[3]),u=i[4];if(0===c){var h=u.match(s);return h[h.length-1].split(":")[1]}var p=e.getBBox(),f=p.maxX-p.minX,d=p.maxY-p.minY,g=Math.sqrt(f*f+d*d)/2,v=t.createRadialGradient(p.minX+f*r,p.minY+d*o,0,p.minX+f/2,p.minY+d/2,c*g);return l(u,v),v}function h(t,e,n){if(e.get("patternSource")&&e.get("patternSource")===n)return e.get("pattern");var i,r,a=o.exec(n),s=a[1],l=a[2];function c(){i=t.createPattern(r,s),e.set("pattern",i),e.set("patternSource",n)}switch(s){case"a":s="repeat";break;case"x":s="repeat-x";break;case"y":s="repeat-y";break;case"n":s="no-repeat";break;default:s="no-repeat"}return r=new Image,l.match(/^data:/i)||(r.crossOrigin="Anonymous"),r.src=l,r.complete?c():(r.onload=c,r.src=r.src),i}function p(t,e,n){if(Object(i["k"])(n)){if("("===n[1]||"("===n[2]){if("l"===n[0])return c(t,e,n);if("r"===n[0])return u(t,e,n);if("p"===n[0])return h(t,e,n)}return n}}function f(t){var e=0,n=0,r=0,a=0;return Object(i["g"])(t)?1===t.length?e=n=r=a=t[0]:2===t.length?(e=r=t[0],n=a=t[1]):3===t.length?(e=t[0],n=a=t[1],r=t[2]):(e=t[0],n=t[1],r=t[2],a=t[3]):e=n=r=a=t,[e,n,r,a]}},b182:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855");function a(t,e){if(e){var n=Object(r["invert"])(e);return Object(r["multiplyVec2"])(n,t)}return t}function o(t,e,n){var i=t.getTotalMatrix();if(i){var r=a([e,n,1],i),o=r[0],s=r[1];return[o,s]}return[e,n]}function s(t,e,n){if(t.isCanvas&&t.isCanvas())return!0;if(!Object(r["isAllowCapture"])(t)||!1===t.cfg.isInView)return!1;if(t.cfg.clipShape){var i=o(t,e,n),a=i[0],s=i[1];if(t.isClipped(a,s))return!1}var l=t.cfg.cacheCanvasBBox||t.getCanvasBBox();return e>=l.minX&&e<=l.maxX&&n>=l.minY&&n<=l.maxY}function l(t,e,n){if(!s(t,e,n))return null;for(var i=null,r=t.getChildren(),a=r.length,c=a-1;c>=0;c--){var u=r[c];if(u.isGroup())i=l(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 c=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["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e["renderer"]="canvas",e["autoDraw"]=!0,e["localRefresh"]=!0,e["refreshElements"]=[],e["clipView"]=!0,e["quickHit"]=!1,e},e.prototype.onCanvasChange=function(t){"attr"!==t&&"sort"!==t&&"changeSize"!==t||(this.set("refreshElements",[this]),this.draw())},e.prototype.getShapeBase=function(){return c},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")?l(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}(r["AbstractCanvas"]);e["a"]=f},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["G"]})),n.d(e,"d",(function(){return i["F"]})),n.d(e,"h",(function(){return i["M"]})),n.d(e,"f",(function(){return i["K"]})),n.d(e,"i",(function(){return i["U"]})),n.d(e,"a",(function(){return i["j"]})),n.d(e,"k",(function(){return i["lb"]}));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}},b5d5:function(t,e){},b6fb:function(t,e,n){"use strict";n.r(e),n.d(e,"catmullRomToBezier",(function(){return l})),n.d(e,"fillPath",(function(){return B})),n.d(e,"fillPathByDiff",(function(){return _})),n.d(e,"formatPath",(function(){return Y})),n.d(e,"intersection",(function(){return T})),n.d(e,"parsePathArray",(function(){return v})),n.d(e,"parsePathString",(function(){return s})),n.d(e,"pathToAbsolute",(function(){return u})),n.d(e,"pathToCurve",(function(){return d})),n.d(e,"rectPath",(function(){return j}));var i=n("8937"),r="\t\n\v\f\r   ᠎             　\u2028\u2029",a=new RegExp("([a-z])["+r+",]*((-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?["+r+"]*,?["+r+"]*)+)","ig"),o=new RegExp("(-?\\d*\\.?\\d*(?:e[\\-+]?\\d+)?)["+r+"]*,?["+r+"]*","ig"),s=function(t){if(!t)return null;if(Object(i["z"])(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(a,(function(i,r,a){var s=[],l=r.toLowerCase();if(a.replace(o,(function(t,e){e&&s.push(+e)})),"m"===l&&s.length>2&&(n.push([r].concat(s.splice(0,2))),l="l",r="m"===r?"l":"L"),"o"===l&&1===s.length&&n.push([r,s[0]]),"r"===l)n.push([r].concat(s));else while(s.length>=e[l])if(n.push([r].concat(s.splice(0,e[l]))),!e[l])break;return t})),n},l=function(t,e){for(var n=[],i=0,r=t.length;r-2*!e>i;i+=2){var 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},c=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),l=t+n*Math.cos(-r*o),c=e+n*Math.sin(-i*o),u=e+n*Math.sin(-r*o);a=[["M",s,c],["A",n,n,0,+(r-i>180),0,l,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;g<v;g++){if(i.push(f=[]),d=t[g],e=d[0],e!==e.toUpperCase())switch(f[0]=e.toUpperCase(),f[0]){case"A":f[1]=d[1],f[2]=d[2],f[3]=d[3],f[4]=d[4],f[5]=d[5],f[6]=+d[6]+r,f[7]=+d[7]+a;break;case"V":f[1]=+d[1]+a;break;case"H":f[1]=+d[1]+r;break;case"R":n=[r,a].concat(d.slice(1));for(var m=2,y=n.length;m<y;m++)n[m]=+n[m]+r,n[++m]=+n[m]+a;i.pop(),i=i.concat(l(n,p));break;case"O":i.pop(),n=c(r,a,d[1],d[2]),n.push(n[0]),i=i.concat(n);break;case"U":i.pop(),i=i.concat(c(r,a,d[1],d[2],d[3])),f=["U"].concat(i[i.length-1].slice(-2));break;case"M":o=+d[1]+r,u=+d[2]+a;break;default:for(m=1,y=d.length;m<y;m++)f[m]=+d[m]+(m%2?r:a)}else if("R"===e)n=[r,a].concat(d.slice(1)),i.pop(),i=i.concat(l(n,p)),f=["R"].concat(d.slice(-2));else if("O"===e)i.pop(),n=c(r,a,d[1],d[2]),n.push(n[0]),i=i.concat(n);else if("U"===e)i.pop(),i=i.concat(c(r,a,d[1],d[2],d[3])),f=["U"].concat(i[i.length-1].slice(-2));else for(var b=0,x=d.length;b<x;b++)f[b]=d[b];if(e=e.toUpperCase(),"O"!==e)switch(f[0]){case"Z":r=+o,a=+u;break;case"H":r=f[1];break;case"V":a=f[1];break;case"M":o=f[f.length-2],u=f[f.length-1];break;default:r=f[f.length-2],a=f[f.length-1]}}return i},h=function(t,e,n,i){return[t,e,n,i,n,i]},p=function(t,e,n,i,r,a){var o=1/3,s=2/3;return[o*t+s*n,o*e+s*i,o*r+s*n,o*a+s*i,r,a]},f=function(t,e,n,i,r,a,o,s,l,c){n===i&&(n+=1);var u,h,p,d,g,v=120*Math.PI/180,m=Math.PI/180*(+r||0),y=[],b=function(t,e,n){var i=t*Math.cos(n)-e*Math.sin(n),r=t*Math.sin(n)+e*Math.cos(n);return{x:i,y:r}};if(c)h=c[0],p=c[1],d=c[2],g=c[3];else{u=b(t,e,-m),t=u.x,e=u.y,u=b(s,l,-m),s=u.x,l=u.y,t===s&&e===l&&(s+=1,l+=1);var x=(t-s)/2,O=(e-l)/2,j=x*x/(n*n)+O*O/(i*i);j>1&&(j=Math.sqrt(j),n*=j,i*=j);var w=n*n,C=i*i,M=(a===o?-1:1)*Math.sqrt(Math.abs((w*C-w*O*O-C*x*x)/(w*O*O+C*x*x)));d=M*n*O/i+(t+s)/2,g=M*-i*x/n+(e+l)/2,h=Math.asin(((e-g)/i).toFixed(9)),p=Math.asin(((l-g)/i).toFixed(9)),h=t<d?Math.PI-h:h,p=s<d?Math.PI-p:p,h<0&&(h=2*Math.PI+h),p<0&&(p=2*Math.PI+p),o&&h>p&&(h-=2*Math.PI),!o&&p>h&&(p-=2*Math.PI)}var S=p-h;if(Math.abs(S)>v){var I=p,k=s,T=l;p=h+v*(o&&p>h?1:-1),s=d+n*Math.cos(p),l=g+i*Math.sin(p),y=f(s,l,n,i,r,0,o,k,T,[p,I,d,g])}S=p-h;var A=Math.cos(h),L=Math.sin(h),P=Math.cos(p),B=Math.sin(p),E=Math.tan(S/4),F=4/3*n*E,D=4/3*i*E,_=[t,e],R=[t+F*L,e-D*A],G=[s+F*B,l-D*P],Y=[s,l];if(R[0]=2*_[0]-R[0],R[1]=2*_[1]-R[1],c)return[R,G,Y].concat(y);y=[R,G,Y].concat(y).join().split(",");for(var N=[],z=0,V=y.length;z<V;z++)N[z]=z%2?b(y[z-1],y[z],m).y:b(y[z],y[z+1],m).x;return N},d=function(t,e){var n,i=u(t),r=e&&u(e),a={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},o={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},s=[],l=[],c="",d="",g=function(t,e,n){var i,r;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(!(t[0]in{T:1,Q:1})&&(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(f.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":"C"===n||"S"===n?(i=2*e.x-e.bx,r=2*e.y-e.by):(i=e.x,r=e.y),t=["C",i,r].concat(t.slice(1));break;case"T":"Q"===n||"T"===n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(p(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(p(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(h(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(h(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(h(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(h(e.x,e.y,e.X,e.Y));break;default:break}return t},v=function(t,e){if(t[e].length>7){t[e].shift();var a=t[e];while(a.length)s[e]="A",r&&(l[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)}},m=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 y=0;y<n;y++){i[y]&&(c=i[y][0]),"C"!==c&&(s[y]=c,y&&(d=s[y-1])),i[y]=g(i[y],a,d),"A"!==s[y]&&"C"===c&&(s[y]="C"),v(i,y),r&&(r[y]&&(c=r[y][0]),"C"!==c&&(l[y]=c,y&&(d=l[y-1])),r[y]=g(r[y],o,d),"A"!==l[y]&&"C"===c&&(l[y]="C"),v(r,y)),m(i,r,a,o,y),m(r,i,o,a,y);var b=i[y],x=r&&r[y],O=b.length,j=r&&x.length;a.x=b[O-2],a.y=b[O-1],a.bx=parseFloat(b[O-4])||a.x,a.by=parseFloat(b[O-3])||a.y,o.bx=r&&(parseFloat(x[j-4])||o.x),o.by=r&&(parseFloat(x[j-3])||o.y),o.x=r&&x[j-2],o.y=r&&x[j-1]}return r?[i,r]:i},g=/,?([a-z]),?/gi,v=function(t){return t.join(",").replace(g,"$1")},m=function(t,e,n,i,r){var a=-3*e+9*n-9*i+3*r,o=t*a+6*e-12*n+6*i;return t*o-3*e+3*n},y=function(t,e,n,i,r,a,o,s,l){null===l&&(l=1),l=l>1?1:l<0?0:l;for(var c=l/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;d<u;d++){var g=c*h[d]+c,v=m(g,t,n,r,o),y=m(g,e,i,a,s),b=v*v+y*y;f+=p[d]*Math.sqrt(b)}return c*f},b=function(t,e,n,i,r,a,o,s){for(var l,c,u,h,p=[],f=[[],[]],d=0;d<2;++d)if(0===d?(c=6*t-12*n+6*r,l=-3*t+9*n-9*r+3*o,u=3*n-3*t):(c=6*e-12*i+6*a,l=-3*e+9*i-9*a+3*s,u=3*i-3*e),Math.abs(l)<1e-12){if(Math.abs(c)<1e-12)continue;h=-u/c,h>0&&h<1&&p.push(h)}else{var g=c*c-4*u*l,v=Math.sqrt(g);if(!(g<0)){var m=(-c+v)/(2*l);m>0&&m<1&&p.push(m);var y=(-c-v)/(2*l);y>0&&y<1&&p.push(y)}}var b,x=p.length,O=x;while(x--)h=p[x],b=1-h,f[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*r+h*h*h*o,f[1][x]=b*b*b*e+3*b*b*h*i+3*b*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.min(r,o)||Math.min(t,n)>Math.max(r,o)||Math.max(e,i)<Math.min(a,s)||Math.min(e,i)>Math.max(a,s))){var l=(t*i-e*n)*(r-o)-(t-n)*(r*s-a*o),c=(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=l/u,p=c/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},w=function(t,e,n,i){return null===t&&(t=e=n=i=0),null===e&&(e=t.y,n=t.width,i=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:i,h:i,x2:t+n,y2:e+i,cx:t+n/2,cy:e+i/2,r1:Math.min(n,i)/2,r2:Math.max(n,i)/2,r0:Math.sqrt(n*n+i*i)/2,path:j(t,e,n,i),vb:[t,e,n,i].join(" ")}},C=function(t,e){return t=w(t),e=w(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)},M=function(t,e,n,r,a,o,s,l){Object(i["z"])(t)||(t=[t,e,n,r,a,o,s,l]);var c=b.apply(null,t);return w(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},S=function(t,e,n,i,r,a,o,s,l){var c=1-l,u=Math.pow(c,3),h=Math.pow(c,2),p=l*l,f=p*l,d=u*t+3*h*l*n+3*c*l*l*r+f*o,g=u*e+3*h*l*i+3*c*l*l*a+f*s,v=t+2*l*(n-t)+p*(r-2*n+t),m=e+2*l*(i-e)+p*(a-2*i+e),y=n+2*l*(r-n)+p*(o-2*r+n),b=i+2*l*(a-i)+p*(s-2*a+i),x=c*t+l*n,O=c*e+l*i,j=c*r+l*o,w=c*a+l*s,C=90-180*Math.atan2(v-y,m-b)/Math.PI;return{x:d,y:g,m:{x:v,y:m},n:{x:y,y:b},start:{x:x,y:O},end:{x:j,y:w},alpha:C}},I=function(t,e,n){var i=M(t),r=M(e);if(!C(i,r))return n?0:[];for(var a=y.apply(0,t),o=y.apply(0,e),s=~~(a/8),l=~~(o/8),c=[],u=[],h={},p=n?0:[],f=0;f<s+1;f++){var d=S.apply(0,t.concat(f/s));c.push({x:d.x,y:d.y,t:f/s})}for(f=0;f<l+1;f++){d=S.apply(0,e.concat(f/l));u.push({x:d.x,y:d.y,t:f/l})}for(f=0;f<s;f++)for(var g=0;g<l;g++){var v=c[f],m=c[f+1],b=u[g],O=u[g+1],j=Math.abs(m.x-v.x)<.001?"y":"x",w=Math.abs(O.x-b.x)<.001?"y":"x",I=x(v.x,v.y,m.x,m.y,b.x,b.y,O.x,O.y);if(I){if(h[I.x.toFixed(4)]===I.y.toFixed(4))continue;h[I.x.toFixed(4)]=I.y.toFixed(4);var k=v.t+Math.abs((I[j]-v[j])/(m[j]-v[j]))*(m.t-v.t),T=b.t+Math.abs((I[w]-b[w])/(O[w]-b[w]))*(O.t-b.t);k>=0&&k<=1&&T>=0&&T<=1&&(n?p+=1:p.push({x:I.x,y:I.y,t1:k,t2:T}))}}return p},k=function(t,e,n){var i,r,a,o,s,l,c,u,h,p;t=d(t),e=d(e);for(var f=n?0:[],g=0,v=t.length;g<v;g++){var m=t[g];if("M"===m[0])i=s=m[1],r=l=m[2];else{"C"===m[0]?(h=[i,r].concat(m.slice(1)),i=h[6],r=h[7]):(h=[i,r,i,r,s,l,s,l],i=s,r=l);for(var y=0,b=e.length;y<b;y++){var x=e[y];if("M"===x[0])a=c=x[1],o=u=x[2];else{"C"===x[0]?(p=[a,o].concat(x.slice(1)),a=p[6],o=p[7]):(p=[a,o,a,o,c,u,c,u],a=c,o=u);var O=I(h,p,n);if(n)f+=O;else{for(var j=0,w=O.length;j<w;j++)O[j].segment1=g,O[j].segment2=y,O[j].bez1=h,O[j].bez2=p;f=f.concat(O)}}}}}return f},T=function(t,e){return k(t,e)};function A(t,e){var n=[],i=[];function r(t,e){if(1===t.length)n.push(t[0]),i.push(t[0]);else{for(var a=[],o=0;o<t.length-1;o++)0===o&&n.push(t[0]),o===t.length-2&&i.push(t[o+1]),a[o]=[(1-e)*t[o][0]+e*t[o+1][0],(1-e)*t[o][1]+e*t[o+1][1]];r(a,e)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function L(t,e,n){var i=[[t[1],t[2]]];n=n||2;var r=[];"A"===e[0]?(i.push(e[6]),i.push(e[7])):"C"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]]),i.push([e[5],e[6]])):"S"===e[0]||"Q"===e[0]?(i.push([e[1],e[2]]),i.push([e[3],e[4]])):i.push([e[1],e[2]]);for(var a=i,o=1/n,s=0;s<n-1;s++){var l=o/(1-o*s),c=A(a,l);r.push(c.left),a=c.right}r.push(a);var u=r.map((function(t){var e=[];return 4===t.length&&(e.push("C"),e=e.concat(t[2])),t.length>=3&&(3===t.length&&e.push("Q"),e=e.concat(t[1])),2===t.length&&e.push("L"),e=e.concat(t[t.length-1]),e}));return u}var P=function(t,e,n){if(1===n)return[[].concat(t)];var i=[];if("L"===e[0]||"C"===e[0]||"Q"===e[0])i=i.concat(L(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},B=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<i-n;o++)t.push(t[0]);return t}for(o=0;o<i;o++){var s=Math.floor(r*o);a[s]=(a[s]||0)+1}var l=a.reduce((function(e,i,r){return r===n?e.concat(t[n]):e.concat(P(t[r],t[r+1],i))}),[]);return l.unshift(t[0]),"Z"!==e[i]&&"z"!==e[i]||l.push("Z"),l},E=function(t,e){if(t.length!==e.length)return!1;var n=!0;return Object(i["j"])(t,(function(t,i){if(t!==e[i])return n=!1,!1})),n};function F(t,e,n){var i=null,r=n;return e<r&&(r=e,i="add"),t<r&&(r=t,i="del"),{type:i,min:r}}var D=function(t,e){var n,i,r=t.length,a=e.length,o=0;if(0===r||0===a)return null;for(var s=[],l=0;l<=r;l++)s[l]=[],s[l][0]={min:l};for(var c=0;c<=a;c++)s[0][c]={min:c};for(l=1;l<=r;l++){n=t[l-1];for(c=1;c<=a;c++){i=e[c-1],o=E(n,i)?0:1;var u=s[l-1][c].min+1,h=s[l][c-1].min+1,p=s[l-1][c-1].min+o;s[l][c]=F(u,h,p)}}return s},_=function(t,e){var n=D(t,e),i=t.length,r=e.length,a=[],o=1,s=1;if(n[i][r].min!==i){for(var l=1;l<=i;l++){var c=n[l][l].min;s=l;for(var u=o;u<=r;u++)n[l][u].min<c&&(c=n[l][u].min,s=u);o=s,n[l][o].type&&a.push({index:l-1,type:n[l][o].type})}for(l=a.length-1;l>=0;l--)o=a[l].index,"add"===a[l].type?t.splice(o,0,[].concat(t[o])):t.splice(o,1)}i=t.length;var h=r-i;if(i<r)for(l=0;l<h;l++)"z"===t[i-1][0]||"Z"===t[i-1][0]?t.splice(i-2,0,t[i-2]):t.push(t[i-1]),i+=1;return t};function R(t,e,n){for(var i,r=[].concat(t),a=1/(n+1),o=G(e)[0],s=1;s<=n;s++)a*=s,i=Math.floor(t.length*a),0===i?r.unshift([o[0]*a+t[i][0]*(1-a),o[1]*a+t[i][1]*(1-a)]):r.splice(i,0,[o[0]*a+t[i][0]*(1-a),o[1]*a+t[i][1]*(1-a)]);return r}function G(t){var e=[];switch(t[0]){case"M":e.push([t[1],t[2]]);break;case"L":e.push([t[1],t[2]]);break;case"A":e.push([t[6],t[7]]);break;case"Q":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"T":e.push([t[1],t[2]]);break;case"C":e.push([t[5],t[6]]),e.push([t[1],t[2]]),e.push([t[3],t[4]]);break;case"S":e.push([t[3],t[4]]),e.push([t[1],t[2]]);break;case"H":e.push([t[1],t[1]]);break;case"V":e.push([t[1],t[1]]);break;default:}return e}var Y=function(t,e){if(t.length<=1)return t;for(var n,i=0;i<e.length;i++)if(t[i][0]!==e[i][0])switch(n=G(t[i]),e[i][0]){case"M":t[i]=["M"].concat(n[0]);break;case"L":t[i]=["L"].concat(n[0]);break;case"A":t[i]=[].concat(e[i]),t[i][6]=n[0][0],t[i][7]=n[0][1];break;case"Q":if(n.length<2){if(!(i>0)){t[i]=e[i];break}n=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 y})),n.d(e,"Image",(function(){return x})),n.d(e,"DataMarker",(function(){return j})),n.d(e,"DataRegion",(function(){return C})),n.d(e,"RegionFilter",(function(){return S})),n.d(e,"Shape",(function(){return k})),n.d(e,"Html",(function(){return P}));var i=n("9ab4"),r=n("8937"),a=n("31e6"),o=n("060b"),s=n("8ea8"),l=n("e546");function c(t,e){var n=e.x,a=e.y,c=e.content,u=e.style,h=e.id,p=e.name,f=e.rotate,d=e.maxLength,g=e.autoEllipsis,v=e.isVertical,m=e.ellipsisPosition,y=e.background,b=t.addGroup({id:h+"-group",name:p+"-group",attrs:{x:n,y:a}}),x=b.addShape({type:"text",id:h,name:p,attrs:Object(i["a"])({x:0,y:0,text:c},u)}),O=Object(l["c"])(Object(r["q"])(y,"padding",0));if(d&&g){var j=d-(O[1]+O[3]);Object(o["a"])(!v,x,j,m)}if(y){var w=Object(r["q"])(y,"style",{}),C=x.getCanvasBBox(),M=C.minX,S=C.minY,I=C.width,k=C.height,T=b.addShape("rect",{id:h+"-bg",name:h+"-bg",attrs:Object(i["a"])({x:M-O[3],y:S-O[0],width:I+O[1]+O[3],height:k+O[0]+O[2]},w)});T.toBack()}Object(s["c"])(b,n,a),Object(s["b"])(b,f,n,a)}var u=n("2f5e"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"line",locationType:"region",start:null,end:null,style:{},text:null,defaultCfg:{style:{fill:u["a"].textColor,fontSize:12,textAlign:"center",textBaseline:"bottom",fontFamily:u["a"].fontFamily},text:{position:"center",autoRotate:!0,content:null,offsetX:0,offsetY:0,style:{stroke:u["a"].lineColor,lineWidth:1}}}})},e.prototype.renderInner=function(t){this.renderLine(t),this.get("text")&&this.renderLabel(t)},e.prototype.renderLine=function(t){var e=this.get("start"),n=this.get("end"),r=this.get("style");this.addShape(t,{type:"line",id:this.getElementId("line"),name:"annotation-line",attrs:Object(i["a"])({x1:e.x,y1:e.y,x2:n.x,y2:n.y},r)})},e.prototype.getLabelPoint=function(t,e,n){var i;return i="start"===n?0:"center"===n?.5:Object(r["M"])(n)&&-1!==n.indexOf("%")?parseInt(n,10)/100:Object(r["I"])(n)?n:1,(i>1||i<0)&&(i=1),{x:Object(l["g"])(t.x,e.x,i),y:Object(l["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,l=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,m=this.getLabelPoint(n,i,r),y=m.x+s,b=m.y+l,x={id:this.getElementId("line-text"),name:"annotation-line-text",x:y,y:b,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])}c(t,x)},e}(a["a"]),p=h,f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{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",l=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:l,autoEllipsis:u,isVertical:h,ellipsisPosition:p,background:f,rotate:d};c(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["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"arc",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,style:{stroke:"#999",lineWidth:1}})},e.prototype.renderInner=function(t){this.renderArc(t)},e.prototype.getArcPath=function(){var t=this.getLocation(),e=t.center,n=t.radius,i=t.startAngle,r=t.endAngle,a=Object(l["e"])(e,n,i),o=Object(l["e"])(e,n,r),s=r-i>Math.PI?1:0,c=[["M",a.x,a.y]];if(r-i===2*Math.PI){var u=Object(l["e"])(e,n,i+Math.PI);c.push(["A",n,n,0,s,1,u.x,u.y]),c.push(["A",n,n,0,s,1,o.x,o.y])}else c.push(["A",n,n,0,s,1,o.x,o.y]);return c},e.prototype.renderArc=function(t){var e=this.getArcPath(),n=this.get("style");this.addShape(t,{type:"path",id:this.getElementId("arc"),name:"annotation-arc",attrs:Object(i["a"])({path:e},n)})},e}(a["a"]),v=g,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"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(l["k"])({start:e,end:n});this.addShape(t,{type:"rect",id:this.getElementId("region"),name:"annotation-region",attrs:Object(i["a"])({x:a.x,y:a.y,width:a.width,height:a.height},r)})},e}(a["a"]),y=m,b=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"image",locationType:"region",start:null,end:null,src:null,style:{}})},e.prototype.renderInner=function(t){this.renderImage(t)},e.prototype.getImageAttrs=function(){var t=this.get("start"),e=this.get("end"),n=this.get("style"),r=Object(l["k"])({start:t,end:e}),a=this.get("src");return Object(i["a"])({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=b,O=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"dataMarker",locationType:"point",x:0,y:0,point:{},line:{},text:{},direction:"upward",autoAdjust:!0,coordinateBBox:null,defaultCfg:{point:{display:!0,style:{r:3,fill:"#FFFFFF",stroke:"#1890FF",lineWidth:2}},line:{display:!0,length:20,style:{stroke:u["a"].lineColor,lineWidth:1}},text:{content:"",display:!0,style:{fill:u["a"].textColor,opacity:.65,fontSize:12,textAlign:"start",fontFamily:u["a"].fontFamily}}}})},e.prototype.renderInner=function(t){Object(r["q"])(this.get("line"),"display")&&this.renderLine(t),Object(r["q"])(this.get("text"),"display")&&this.renderText(t),Object(r["q"])(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["c"])(e,["x","y","text"]),s=this.get("text"),l=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:l,maxLength:u,autoEllipsis:h,isVertival:p,ellipsisPosition:f};c(t,d)},e.prototype.autoAdjust=function(t){var e=this.get("direction"),n=this.get("x"),i=this.get("y"),a=Object(r["q"])(this.get("line"),"length",0),o=this.get("coordinateBBox"),l=t.getBBox(),c=l.minX,u=l.maxX,h=l.minY,p=l.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+c<=o.minX){var v=o.minX-(n+c);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 m=void 0,y=void 0;"upward"===e&&i+h<=o.minY?(m="top",y=1):(m="bottom",y=-1),d.attr("textBaseline",m),g&&g.attr("path",[["M",0,0],["L",0,a*y]]),Object(s["c"])(f,f.attr("x"),(a+2)*y)}}},e.prototype.getShapeAttrs=function(){var t=Object(r["q"])(this.get("line"),"display"),e=Object(r["q"])(this.get("point"),"style",{}),n=Object(r["q"])(this.get("line"),"style",{}),a=Object(r["q"])(this.get("text"),"style",{}),o=this.get("direction"),s=t?Object(r["q"])(this.get("line"),"length",0):0,l="upward"===o?-1:1;return{point:Object(i["a"])({x:0,y:0},e),line:Object(i["a"])({path:[["M",0,0],["L",0,s*l]]},n),text:Object(i["a"])({x:0,y:(s+2)*l,text:Object(r["q"])(this.get("text"),"content",""),textBaseline:"upward"===o?"bottom":"top"},a)}},e}(a["a"]),j=O,w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"dataRegion",locationType:"points",points:[],lineLength:0,region:{},text:{},defaultCfg:{region:{style:{lineWidth:0,fill:u["a"].regionColor,opacity:.4}},text:{content:"",style:{textAlign:"center",textBaseline:"bottom",fontSize:12,fill:u["a"].textColor,fontFamily:u["a"].fontFamily}}}})},e.prototype.renderInner=function(t){var e=Object(r["q"])(this.get("region"),"style",{}),n=(Object(r["q"])(this.get("text"),"style",{}),this.get("lineLength")||0),a=this.get("points");if(a.length){var o=Object(l["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["a"])({path:s},e)});var u=Object(i["a"])({id:this.getElementId("text"),name:"annotation-text",x:(o.minX+o.maxX)/2,y:o.minY-n},this.get("text"));c(t,u)}},e}(a["a"]),C=w,M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"regionFilter",locationType:"region",start:null,end:null,color:null,shape:[]})},e.prototype.renderInner=function(t){var e=this,n=this.get("start"),i=this.get("end"),a=this.addGroup(t,{id:this.getElementId("region-filter"),capture:!1});Object(r["j"])(this.get("shapes"),(function(t,n){var i=t.get("type"),o=Object(r["e"])(t.attr());e.adjustShapeAttrs(o),e.addShape(a,{id:e.getElementId("shape-"+i+"-"+n),capture:!1,type:i,attrs:o})}));var o=Object(l["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"]),S=M,I=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"shape",draw:r["W"]})},e.prototype.renderInner=function(t){var e=this.get("render");Object(r["F"])(e)&&e(t)},e}(a["a"]),k=I,T=n("7c8a"),A=n("75ed"),L=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"annotation",type:"html",locationType:"point",x:0,y:0,containerTpl:'<div class="g2-html-annotation"></div>',alignX:"left",alignY:"top",html:"",zIndex:7})},e.prototype.render=function(){var t=this.getContainer(),e=this.get("html");Object(l["a"])(t);var n=Object(r["F"])(e)?e(t):e;Object(r["C"])(n)?t.appendChild(n):Object(r["M"])(n)&&t.appendChild(Object(T["b"])(n)),this.resetPosition()},e.prototype.resetPosition=function(){var t=this.getContainer(),e=this.getLocation(),n=e.x,i=e.y,r=this.get("alignX"),a=this.get("alignY"),o=this.get("offsetX"),s=this.get("offsetY"),l=Object(T["d"])(t),c=Object(T["c"])(t),u={x:n,y:i};"middle"===r?u.x-=Math.round(l/2):"right"===r&&(u.x-=Math.round(l)),"middle"===a?u.y-=Math.round(c/2):"bottom"===a&&(u.y-=Math.round(c)),o&&(u.x+=o),s&&(u.y+=s),Object(T["e"])(t,{position:"absolute",left:u.x+"px",top:u.y+"px",zIndex:this.get("zIndex")})},e}(A["a"]),P=L},b988:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[n("div",{staticClass:"pb20 clearfix flex-center"},[n("span",{staticClass:"gray01 fz16 mrAuto"},[t._v("图片（共"+t._s(t.total)+"条）")]),n("span",{staticClass:"gray03 mr10"},[t._v("大小不超过2M")]),t.currentAreaDelete?t._e():n("file",{staticClass:"inline-block",attrs:{label:"上传图片",tips:"",url:t.uploadUrl,"upload-params":t.uploadParams},on:{beforeUpload:t.beforeUpload,backImg:t.getTableList}})],1),n("div",{staticClass:"group-list"},[n("span",[t._v("分组")]),n("ul",{staticClass:"hasPd"},t._l(t.groupList,(function(e){return n("li",{key:e.imageGroupId,class:{active:e.imageGroupId===t.listParams.imageGroupId},attrs:{li:""},on:{click:function(n){return t.changeGroupId(e)}}},[t._v(t._s(e.groupName))])})),0),t.currentAreaDelete?t._e():n("div",{staticClass:"btn"},[n("el-button",{on:{click:function(e){t.addGroupVisible=!0}}},[t._v("新建分组")]),n("el-button",{staticClass:"ml10",on:{click:function(e){t.groupListVisible=!0}}},[t._v("分组管理")])],1)]),n("div",{directives:[{name:"show",rawName:"v-show",value:t.tableList.length,expression:"tableList.length"}],staticClass:"select-content"},[n("el-checkbox",{attrs:{indeterminate:t.isIndeterminate,value:t.selectAll},on:{change:t.handleSelectAll}},[t._v("已选择 "+t._s(t.selectList.length)+" 项内容")]),t.selectList.length?[n("el-button",{staticClass:"ml20",attrs:{type:"text"},on:{click:function(e){return t.handleSelectAll(!1)}}},[t._v("取消选择")]),n("div",{staticClass:"fr ts2"},[n("el-button",{attrs:{type:"text"},on:{click:t.delMuti}},[t._v("删除")]),n("el-button",{staticStyle:{"margin-left":"16px"},attrs:{type:"text"},on:{click:function(e){return t.moveShow({})}}},[t._v("移动分组")])],1)]:t._e()],2),t.tableList.length?n("div",{style:"max-height:"+t.mainHeight(184)+"px;overflow-y: auto;"},t._l(t.tableList,(function(e,i){return n("img-item",{key:i,attrs:{data:e,"select-list":t.selectList},on:{select:t.selectOne,del:t.del,move:t.moveShow}})})),1):n("div",{staticClass:"el-table__empty-block"},[n("div",{staticClass:"el-table__empty-text"},[t._v("暂无数据")])]),n("div",{staticClass:"clearfix"},[t.tableList.length?n("dm-pagination",{staticClass:"fr mb0",attrs:{"hide-on-single-page":"",background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1),n("add-group-dialog",{attrs:{"dialog-visible":t.addGroupVisible},on:{"update:dialogVisible":function(e){t.addGroupVisible=e},"update:dialog-visible":function(e){t.addGroupVisible=e},addGroupSuccess:t.getGroupList}}),n("group-list-dialog",{attrs:{"dialog-visible":t.groupListVisible},on:{"update:dialogVisible":function(e){t.groupListVisible=e},"update:dialog-visible":function(e){t.groupListVisible=e},groupFresh:function(e){return t.getGroupList(1)}}}),n("el-dialog",{attrs:{title:"移动分组",visible:t.move.visible,width:"500px"},on:{"update:visible":function(e){return t.$set(t.move,"visible",e)},close:t.moveClose}},[n("div",{staticClass:"group-list g2"},[n("ul",t._l(t.groupList.filter((function(t){return""!==t.imageGroupId&&-1!==t.imageGroupId})),(function(e,i){return n("li",{key:i,class:{active:e.imageGroupId===t.move.imageGroupId},on:{click:function(n){t.move.imageGroupId=e.imageGroupId}}},[t._v(t._s(e.groupName))])})),0)]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.moveClose}},[t._v("取消")]),t.move.muti?n("el-button",{attrs:{type:"primary"},on:{click:t.moveMutiGroup}},[t._v("确认")]):n("el-button",{attrs:{type:"primary"},on:{click:t.moveSingleGroup}},[t._v("确认")])],1)])],1)},r=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("7f7f"),n("ade3")),o=(n("7514"),n("d91e")),s=n("ed08"),l=n("fab6"),c=n("cf87"),u=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"img-item",on:{mouseover:function(e){return t.toggle(!0)},mouseout:function(e){return t.toggle(!1)}}},[n("dm-el-image-view",{staticClass:"pointer",attrs:{draggable:!1,src:t.data.imageUrl||t.defaultUrl,fit:"fill"}}),t.isEdit?t._e():n("a",{staticClass:"title ellipsis-80",attrs:{href:"javascript:;",title:t.data.title}},[t._v(t._s(t.data.title))]),n("el-input",{directives:[{name:"show",rawName:"v-show",value:t.isEdit,expression:"isEdit"}],ref:"input",staticClass:"mt10",attrs:{maxlength:"40"},on:{blur:t.handleMoveImg},model:{value:t.fileName,callback:function(e){t.fileName=e},expression:"fileName"}}),n("div",{staticClass:"hv",class:{show:t.show}},[n("div",[n("el-checkbox",{staticClass:"checkbox",class:{select:t.select},on:{change:t.checkboxChange},model:{value:t.select,callback:function(e){t.select=e},expression:"select"}}),n("el-popover",{attrs:{"popper-class":"option-dropdown img-item",placement:"bottom",width:"105",trigger:"hover"}},[n("ul",{on:{mouseover:function(e){return t.toggle(!0)},mouseout:function(e){return t.toggle(!1)}}},[n("li",{on:{click:t.changeIsedit}},[t._v("重命名")]),n("li",{on:{click:function(e){return t.$emit("move",t.data)}}},[t._v("移动分组")]),n("li",{on:{click:t.delOne}},[t._v("删除")])]),n("i",{staticClass:"iconfont-market4 icon-gengduo",attrs:{slot:"reference"},slot:"reference"})])],1)])],1)},h=[],p=(n("6762"),n("2fdb"),n("cf45")),f=n("01d4"),d=n("4cfb"),g=d["a"].moveImg,v={name:"ImgItem",props:{data:{type:Object,default:function(){return{}}},selectList:{type:Array,requird:!0}},data:function(){return{loading:!1,fileName:"",show:"",defaultUrl:f["default"],select:!1,isEdit:!1}},methods:{toggle:function(t){this.show=t},checkboxChange:function(t){this.select=!this.select,this.$emit("select",this.data.imageId)},changeIsedit:function(){var t=this;this.isEdit=!0,setTimeout((function(){t.fileName=t.data.title,t.$refs.input.focus()}))},handleMoveImg:function(){var t=this,e=this.data,n=e.imageId,i=e.imageGroupId,r=e.title;if(this.fileName!==r){var a={title:this.fileName,groupId:i,fwhAppid:this.currentAreaId,imageId:n};this.loading=!0,g(a).then((function(e){t.loading=!1,t.$tips({message:"重命名成功",type:"success"}),t.data.title=t.fileName})).finally((function(){t.loading=!1})),this.isEdit=!1}else this.isEdit=!1},delOne:function(){var t=this;Object(p["c"])("<div>确认删除该素材？</div>",(function(){t.$emit("del",t.data.imageId)}))}},watch:{selectList:{handler:function(t){t.includes(this.data.imageId)?this.select=!0:this.select=!1},deep:!0}}},m=v,y=(n("2fb7"),n("8e9c"),n("2877")),b=Object(y["a"])(m,u,h,!1,null,"66e66df6",null),x=b.exports,O=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"新建分组",visible:t.dialogVisible,width:"400px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[n("p",{staticClass:"mb20 gray02"},[t._v("请输入分组名称")]),n("dm-input",{attrs:{type:"text","byte-type":1,maxlength:10},model:{value:t.groupName,callback:function(e){t.groupName=e},expression:"groupName"}})],1),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:t.handleClose}},[t._v("取消")]),n("el-button",{attrs:{type:"primary",disabled:!t.groupName},on:{click:t.submit}},[t._v("确认新建")])],1)])},j=[],w=d["a"].saveGroup,C={name:"AddGroup",props:{dialogVisible:{type:Boolean,default:!1}},data:function(){return{groupName:"",loading:!1}},methods:{submit:function(){var t=this;if(!this.loading){this.loading=!0;var e="/save";w({groupName:this.groupName,fwhAppid:this.currentAreaId},{type:e}).then((function(e){t.loading=!1,t.handleClose(),t.$tips({message:"新建成功",type:"success"}),t.$emit("addGroupSuccess")})).finally((function(){t.loading=!1}))}},handleClose:function(){this.groupName="",this.loading=!1,this.$emit("update:dialogVisible",!1)}}},M=C,S=Object(y["a"])(M,O,j,!1,null,null,null),I=S.exports,k=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"分组管理",visible:t.dialogVisible,width:"500px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"g-block"},[n("ul",{staticClass:"g-list"},t._l(t.groupList,(function(e,i){return n("li",{key:i},[n("p",{directives:[{name:"show",rawName:"v-show",value:!e.isEdit,expression:"!group.isEdit"}]},[t._v(t._s(e.groupName))]),n("dm-input",{directives:[{name:"show",rawName:"v-show",value:e.isEdit,expression:"group.isEdit"}],staticClass:"w300",attrs:{type:"text","byte-type":1,maxlength:10},model:{value:e.groupName,callback:function(n){t.$set(e,"groupName",n)},expression:"group.groupName"}}),n("div",{staticClass:"line-h33 inline-block fr"},[e.isEdit?[n("span",{staticClass:"hover-btn deep fr ml20",on:{click:function(t){e.isEdit=!1}}},[t._v("取消")]),n("span",{staticClass:"hover-btn deep fr",attrs:{disabled:!e.groupName},on:{click:function(n){return t.submit(e,i)}}},[t._v("保存")])]:[n("span",{staticClass:"hover-btn deep fr ml20",on:{click:function(n){return t.del(e,i)}}},[t._v("删除")]),n("span",{staticClass:"hover-btn deep fr",attrs:{disabled:!e.groupName},on:{click:function(t){e.isEdit=!0}}},[t._v("修改")])]],2)],1)})),0)]),n("div",{staticClass:"mt10 pl10 pr10"},[t.groupList.length<=20?n("el-button",{staticClass:"dashed width100",attrs:{icon:"el-icon-plus"},on:{click:t.pushGroup}},[t._v("添加分组")]):t._e()],1)])},T=[],A=d["a"].saveGroup,L=d["a"].getGroupList,P=d["a"].delGroup,B={name:"AddGroup",props:{dialogVisible:{type:Boolean,default:!1}},data:function(){return{loading:!1,groupList:[]}},methods:{pushGroup:function(){this.groupList.push({groupName:"",imageGroupId:"",isEdit:!0})},del:function(t,e){var n=this,i=t.imageGroupId;this.loading||Object(p["c"])("<div>确认删除？</div><div>该分组内的图片将会被移动至未分组中</div>",(function(){n.loading=!0,P({imageGroupId:i}).then((function(t){n.loading=!1,n.groupList.splice(e,1),n.$tips({message:"删除成功",type:"success"})})).finally((function(){n.loading=!1}))}))},getGroupList:function(){var t=this;if(!this.loading){var e={fwhAppid:this.currentAreaId};this.loading=!0,L(e).then((function(e){t.loading=!1;var n=e.result||[];t.groupList=n.map((function(t){return t.isEdit=!1,t}))})).catch((function(){t.loading=!1,t.groupList=[]}))}},submit:function(t,e){var n=this,i=t.groupName,r=t.imageGroupId;if(i){var a="";a=r?"update/".concat(r):"save",this.loading=!0,A({groupName:i,fwhAppid:this.currentAreaId},{type:a}).then((function(t){n.loading=!1,n.$tips({message:"操作成功",type:"success"}),n.groupList[e].isEdit=!1})).finally((function(){n.loading=!1}))}else this.$tips({message:"分组名称不能为空",type:"error"})},handleClose:function(){this.groupName="",this.loading=!1,this.$emit("update:dialogVisible",!1),this.$emit("groupFresh")}},watch:{dialogVisible:function(t){t&&this.getGroupList()}}},E=B,F=(n("7d4e"),Object(y["a"])(E,k,T,!1,null,"2a072726",null)),D=F.exports;function _(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function R(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?_(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var G=d["a"].getImgList,Y=d["a"].getGroupList,N=d["a"].delImg,z=d["a"].moveImg,V=d["a"].moveMuti,X=[{groupName:"全部",imageGroupId:""},{groupName:"未分组",imageGroupId:-1}],H={name:"ImgList",components:{imgItem:x,file:o["a"],addGroupDialog:I,groupListDialog:D},mixins:[l["c"],c["a"],l["b"]],data:function(){return{loading:!1,cacheRoute:["/wechat/mass/add","/wechat/mass/info","/wechat/mass/analysis","/wechat/img-text/comment"],listParams:{search:"",currentPage:1,pageSize:20,imageGroupId:""},total:0,tableList:[],groupList:[],selectList:[],addGroupVisible:!1,groupListVisible:!1,move:{visible:!1,imageGroupId:"",imageId:"",title:"",muti:0},uploadUrl:d["b"],uploadParams:{fwhAppid:"",imageGroupId:"",title:""},isIndeterminate:!1,selectAll:!1}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"图片"}])},mounted:function(){this.init()},activated:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"图片"}]),this.init()},methods:{changeGroupId:function(t){var e=t.imageGroupId;this.uploadParams.imageGroupId=e,this.listParams.imageGroupId=e,this.refresh()},getGroupList:function(t){var e=this,n={fwhAppid:this.currentAreaId};Y(n).then((function(n){var i=n.result?n.result:[];e.groupList=X.concat(i),t&&!i.find((function(t){return t.imageGroupId===e.listParams.imageGroupId}))&&""!==e.listParams.imageGroupId&&(e.listParams.imageGroupId="",e.uploadParams.imageGroupId="",e.refresh())})).catch((function(){e.groupList=Object(s["c"])(X)}))},getTableList:function(){var t=this;if(!this.loading){this.loading=!0;var e=R(R({},this.listParams),{},{fwhAppid:this.currentAreaId});G(e).then((function(e){t.loading=!1;var n=e.result;t.tableList=n.result||[],t.total=n.totalCount,t.selectList=[],0===t.tableList.length&&1!==t.listParams.currentPage&&(t.listParams.currentPage-=1,t.getTableList())})).finally((function(){t.loading=!1}))}},handleSelectAll:function(t){this.selectList=t?this.tableList.map((function(t){return t.imageId})):[],this.selectAll=t},selectOne:function(t){var e=this.selectList.indexOf(t);-1!==e?this.selectList.splice(e,1):this.selectList.push(t)},moveMutiGroup:function(){var t=this;if(!this.loading){this.loading=!0;var e=this.selectList.join();V({imageId:e,fwhAppid:this.currentAreaId,imageGroupId:this.move.imageGroupId||0}).then((function(e){t.loading=!1,t.$tips({message:"分组移动成功",type:"success"}),t.moveClose(),t.getTableList()})).finally((function(){t.loading=!1}))}},moveSingleGroup:function(){var t=this;if(!this.loading){var e=this.move,n=e.imageId,i=e.imageGroupId,r=e.title,a={title:r,groupId:i||0,fwhAppid:this.currentAreaId,imageId:n};this.loading=!0,z(a).then((function(e){t.loading=!1,t.$tips({message:"分组移动成功",type:"success"}),t.moveClose(),t.getTableList()})).finally((function(){t.loading=!1}))}},moveClose:function(){this.move.visible=!1,this.move.imageGroupId="",this.move.imageId="",this.move.title=""},moveShow:function(t){var e=t.groupId,n=t.imageId,i=t.title;this.move.visible=!0,this.move.imageGroupId=e||0,this.move.imageId=n||"",this.move.title=i||"",this.move.muti=n?0:1},delMuti:function(){var t=this;Object(p["c"])("<div>确认删除选中的".concat(this.selectList.length,"条素材？</div>"),(function(){var e=t.selectList.join();t.del(e)}))},del:function(t){var e=this;this.loading=!0,N({fwhAppid:this.currentAreaId,imageId:t}).then((function(t){e.loading=!1,e.$tips({message:"删除成功",type:"success"}),e.getTableList()})).finally((function(){e.loading=!1}))},beforeUpload:function(t){var e=t.target.files[0].name,n=e.lastIndexOf(".");this.uploadParams.title=e.slice(0,n),this.uploadParams.imageGroupId=this.uploadParams.imageGroupId||-1},init:function(){this.getTableList(),this.getGroupList(),this.uploadParams.fwhAppid=this.currentAreaId}},watch:{selectList:{handler:function(t){t.length===this.tableList.length?(this.selectAll=!0,this.isIndeterminate=!1):(0!==t.length?this.isIndeterminate=!0:this.isIndeterminate=!1,this.selectAll=!1)},deep:!0}}},W=H,q=(n("29f2"),Object(y["a"])(W,i,r,!1,null,"79a010b6",null));e["default"]=q.exports},ba66:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{staticClass:"p20 mass-info"},[n("p",{staticClass:"title mb20"},[t._v("基本信息")]),n("el-row",{staticClass:"info"},[n("el-col",{attrs:{span:8}},[n("label",[t._v("计划名称：")]),t._v(t._s(t.info.title||"--"))]),n("el-col",{attrs:{span:8}},[n("label",[t._v("数据对话：")]),n("activity-select",{attrs:{"show-type":"text","act-id":t.info.mktActivityId},on:{"update:actId":function(e){return t.$set(t.info,"mktActivityId",e)},"update:act-id":function(e){return t.$set(t.info,"mktActivityId",e)}}})],1),n("el-col",{attrs:{span:8}},[n("label",[t._v("发送时间：")]),t._v(t._s(t.formatDateTimeByType(t.info.sendTime)||"--"))]),n("el-col",{attrs:{span:8}},[n("label",[t._v("创建人：")]),t._v(t._s(t.info.creatorName||"--"))]),n("el-col",{attrs:{span:8}},[n("label",[t._v("计划发送：")]),t._v(t._s(t._f("amountFormat")(t.info.sendCount,null,0,null)))]),n("el-col",{attrs:{span:8}},[n("label",[t._v("送达人数：")]),t._v(t._s(t._f("amountFormat")(t.info.successCount,null,0,null)))])],1),n("p",{staticClass:"title mt20 mb20"},[t._v("发送人群")]),t.info.memberSearchId?n("dm-new-people",{ref:"newPeople",attrs:{"region-id":t.currentAreaId,resource:3,"reback-flag":t.rebackFlag,"re-id":t.info.memberSearchId}}):n("p",{staticClass:"all-new-people"},[t._v("全部人群")]),n("p",{staticClass:"title mt40 mb20"},[t._v("发送内容")]),t.info.teletextId&&t.currentAreaIds.length?n("dm-market-event-new",{ref:"mk",staticClass:"mk-view",attrs:{max:"1","app-code":"teletext","read-only":"",mode:t.mode,"relation-id":t.info.teletextId,"dash-width":"380"}}):t._e()],1)},r=[],a=n("008b"),o=n("ed08"),s=n("4cfb"),l=s["a"].getMassDetail,c={name:"WechatMassInfo",components:{activitySelect:a["a"]},data:function(){return{loading:!1,id:this.$route.query.id,rebackFlag:!1,info:{},mode:[1,2,3]}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"微信群发",breadPath:"/wechat/mass/list"},{breadName:"微信群发详情"}])},mounted:function(){this.getDetail()},methods:{formatDateTimeByType:o["h"],getDetail:function(){var t=this;this.loading||(this.$emit("updateLoading",!0),this.loading=!0,l({fwhAppid:this.currentAreaId},{teletextId:this.id}).then((function(e){t.info=e.result||{},t.info.memberSearchId&&(t.rebackFlag=!0),t.loading=!1,t.$emit("updateLoading",!1)})).finally((function(){t.loading=!1,t.$emit("updateLoading",!1)})))}}},u=c,h=(n("e649"),n("2877")),p=Object(h["a"])(u,i,r,!1,null,"0764c1c6",null);e["default"]=p.exports},bb31:function(t,e){},bb5d:function(t,e,n){"use strict";n("d4d5")},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 l})),n.d(e,"NAME_CLASS",(function(){return c})),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",l="g2-tooltip-value",c="g2-tooltip-name",u="g2-tooltip-crosshair-x",h="g2-tooltip-crosshair-y"},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 l}));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<e&&(a=e)}))}else a=n.measureText(t).width;return n.restore(),a}function l(t){var e=t.fontSize,n=t.fontFamily,i=t.fontWeight,r=t.fontStyle,a=t.fontVariant;return[r,a,i,e+"px",n].join(" ").trim()}},be4e:function(t,e){},be80:function(t,e,n){},bf16:function(t,e,n){},bfb1:function(t,e,n){"use strict";n.r(e),n.d(e,"version",(function(){return l}));var i=n("68de");n.d(e,"Shape",(function(){return i}));var r=n("6855");for(var a in r)["default","Canvas","Group","Shape","version"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(a);var o=n("c029");n.d(e,"Canvas",(function(){return o["a"]}));var s=n("e73e");n.d(e,"Group",(function(){return s["a"]}));var l="0.5.6"},c029:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("22f9"),o=n("7349"),s=n("00f9"),l=n("73ec"),c=n("68de"),u=n("e73e"),h=n("8937"),p=/^l\s*\(\s*([\d.]+)\s*\)\s*(.*)/i,f=/^r\s*\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)\s*\)\s*(.*)/i,d=/[\d.]+:(#[^\s]+|[^)]+\))/gi;function g(t){var e=t.match(d);if(!e)return"";var n="";return e.sort((function(t,e){return t=t.split(":"),e=e.split(":"),Number(t[0])-Number(e[0])})),Object(h["j"])(e,(function(t){t=t.split(":"),n+='<stop offset="'+t[0]+'" stop-color="'+t[1]+'"></stop>'})),n}function v(t,e){var n,i,r=p.exec(t),a=Object(h["V"])(Object(h["hb"])(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<Math.PI?(n={x:1,y:0},i={x:0,y:1}):Math.PI<=a&&a<1.5*Math.PI?(n={x:1,y:1},i={x:0,y:0}):(n={x:0,y:1},i={x:1,y:0});var s=Math.tan(a),l=s*s,c=(i.x-n.x+s*(i.y-n.y))/(l+1)+n.x,u=s*(i.x-n.x+s*(i.y-n.y))/(l+1)+n.y;e.setAttribute("x1",n.x),e.setAttribute("y1",n.y),e.setAttribute("x2",c),e.setAttribute("y2",u),e.innerHTML=g(o)}function m(t,e){var n=f.exec(t),i=parseFloat(n[1]),r=parseFloat(n[2]),a=parseFloat(n[3]),o=n[4];e.setAttribute("cx",i),e.setAttribute("cy",r),e.setAttribute("r",a),e.innerHTML=g(o)}var y=function(){function t(t){this.cfg={};var e=null,n=Object(h["kb"])("gradient_");return"l"===t.toLowerCase()[0]?(e=Object(l["b"])("linearGradient"),v(t,e)):(e=Object(l["b"])("radialGradient"),m(t,e)),e.setAttribute("id",n),this.el=e,this.id=n,this.cfg=t,this}return t.prototype.match=function(t,e){return this.cfg===e},t}(),b=y,x={shadowColor:"color",shadowOpacity:"opacity",shadowBlur:"blur",shadowOffsetX:"dx",shadowOffsetY:"dy"},O={x:"-40%",y:"-40%",width:"200%",height:"200%"},j=function(){function t(t){this.type="filter",this.cfg={},this.type="filter";var e=Object(l["b"])("filter");return Object(h["j"])(O,(function(t,n){e.setAttribute(n,t)})),this.el=e,this.id=Object(h["kb"])("filter_"),this.el.id=this.id,this.cfg=t,this._parseShadow(t,e),this}return t.prototype.match=function(t,e){if(this.type!==t)return!1;var n=!0,i=this.cfg;return Object(h["j"])(Object.keys(i),(function(t){if(i[t]!==e[t])return n=!1,!1})),n},t.prototype.update=function(t,e){var n=this.cfg;return n[x[t]]=e,this._parseShadow(n,this.el),this},t.prototype._parseShadow=function(t,e){var n='<feDropShadow\n      dx="'+(t.dx||0)+'"\n      dy="'+(t.dy||0)+'"\n      stdDeviation="'+(t.blur?t.blur/10:0)+'"\n      flood-color="'+(t.color?t.color:"#000")+'"\n      flood-opacity="'+(t.opacity?t.opacity:1)+'"\n      />';e.innerHTML=n},t}(),w=j,C=function(){function t(t,e){this.cfg={};var n=Object(l["b"])("marker"),i=Object(h["kb"])("marker_");n.setAttribute("id",i);var r=Object(l["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["z"])(i)&&(i=i.map((function(t){return t.join(" ")})).join("")),e.setAttribute("d",i),n.appendChild(e),r&&n.setAttribute("refX",""+r/t)},t.prototype.update=function(t){var e=this.child;e.attr?e.attr("fill",t):e.setAttribute("fill",t)},t}(),M=C,S=function(){function t(t){this.type="clip",this.cfg={};var e=Object(l["b"])("clipPath");this.el=e,this.id=Object(h["kb"])("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}(),I=S,k=/^p\s*\(\s*([axyn])\s*\)\s*(.*)/i,T=function(){function t(t){this.cfg={};var e=Object(l["b"])("pattern");e.setAttribute("patternUnits","userSpaceOnUse");var n=Object(l["b"])("image");e.appendChild(n);var i=Object(h["kb"])("pattern_");e.id=i,this.el=e,this.id=i,this.cfg=t;var r=k.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}(),A=T,L=function(){function t(t){var e=Object(l["b"])("defs"),n=Object(h["kb"])("defs_");e.id=n,t.appendChild(e),this.children=[],this.defaultArrow={},this.el=e,this.canvas=t}return t.prototype.find=function(t,e){for(var n=this.children,i=null,r=0;r<n.length;r++)if(n[r].match(t,e)){i=n[r].id;break}return i},t.prototype.findById=function(t){for(var e=this.children,n=null,i=0;i<e.length;i++)if(e[i].id===t){n=e[i];break}return n},t.prototype.add=function(t){this.children.push(t),t.canvas=this.canvas,t.parent=this},t.prototype.getDefaultArrow=function(t,e){var n=t.stroke||t.strokeStyle;if(this.defaultArrow[n])return this.defaultArrow[n].id;var i=new M(t,e);return this.defaultArrow[n]=i,this.el.appendChild(i.el),this.add(i),i.id},t.prototype.addGradient=function(t){var e=new b(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addArrow=function(t,e){var n=new M(t,e);return this.el.appendChild(n.el),this.add(n),n.id},t.prototype.addShadow=function(t){var e=new w(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addPattern=function(t){var e=new A(t);return this.el.appendChild(e.el),this.add(e),e.id},t.prototype.addClip=function(t){var e=new I(t);return this.el.appendChild(e.el),this.add(e),e.id},t}(),P=L,B=function(t){function e(e){return t.call(this,Object(i["a"])(Object(i["a"])({},e),{autoDraw:!0,renderer:"svg"}))||this}return Object(i["b"])(e,t),e.prototype.getShapeBase=function(){return c},e.prototype.getGroupBase=function(){return u["a"]},e.prototype.getShape=function(t,e,n){var i=n.target||n.srcElement;if(!a["a"][i.tagName]){var r=i.parentNode;while(r&&!a["a"][r.tagName])r=r.parentNode;i=r}return this.find((function(t){return t.get("el")===i}))},e.prototype.createDom=function(){var t=Object(l["b"])("svg"),e=new P(t);return t.setAttribute("width",""+this.get("width")),t.setAttribute("height",""+this.get("height")),this.set("context",e),t},e.prototype.onCanvasChange=function(t){var e=this.get("context"),n=this.get("el");if("sort"===t){var i=this.get("children");i&&i.length&&Object(l["d"])(this,(function(t,e){return i.indexOf(t)-i.indexOf(e)?1:0}))}else if("clear"===t){if(n){n.innerHTML="";var r=e.el;r.innerHTML="",n.appendChild(r)}}else"matrix"===t?Object(s["c"])(this):"clip"===t?Object(s["a"])(this,e):"changeSize"===t&&(n.setAttribute("width",""+this.get("width")),n.setAttribute("height",""+this.get("height")))},e.prototype.draw=function(){var t=this.get("context"),e=this.getChildren();Object(s["a"])(this,t),e.length&&Object(o["a"])(t,e)},e}(r["AbstractCanvas"]);e["a"]=B},c2ad:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("4799"),o=n("f5e5"),s=n("8937"),l=n("7326"),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.onCanvasChange=function(t){Object(o["h"])(this,t)},e.prototype.getShapeBase=function(){return a},e.prototype.getGroupBase=function(){return e},e.prototype._applyClip=function(t,e){e&&(t.save(),Object(o["a"])(t,e),e.createPath(t),t.restore(),t.clip(),e._afterDraw())},e.prototype.cacheCanvasBBox=function(){var t=this.cfg.children,e=[],n=[];Object(s["j"])(t,(function(t){var i=t.cfg.cacheCanvasBBox;i&&t.cfg.isInView&&(e.push(i.minX,i.maxX),n.push(i.minY,i.maxY))}));var i=null;if(e.length){var r=Math.min.apply(null,e),a=Math.max.apply(null,e),o=Math.min.apply(null,n),c=Math.max.apply(null,n);i={minX:r,minY:o,x:r,y:o,maxX:a,maxY:c,width:a-r,height:c-o};var u=this.cfg.canvas;if(u){var h=u.getViewRange();this.set("isInView",Object(l["f"])(i,h))}}else this.set("isInView",!1);this.set("cacheCanvasBBox",i)},e.prototype.draw=function(t,e){var n=this.cfg.children,i=!e||this.cfg.refresh;n.length&&i&&(t.save(),Object(o["a"])(t,this),this._applyClip(t,this.getClip()),Object(o["d"])(t,n,e),t.restore(),this.cacheCanvasBBox()),this.cfg.refresh=null,this.set("hasChanged",!1)},e.prototype.skipDraw=function(){this.set("cacheCanvasBBox",null),this.set("hasChanged",!1)},e}(r["AbstractGroup"]);e["a"]=c},c771:function(t,e,n){"use strict";n.r(e),n.d(e,"Base",(function(){return l})),n.d(e,"Circle",(function(){return h})),n.d(e,"Line",(function(){return f}));var i=n("9ab4"),r=n("8937"),a=n("31e6"),o=n("2f5e"),s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"grid",line:{},alternateColor:null,capture:!1,items:[],closed:!1,defaultCfg:{line:{type:"line",style:{lineWidth:1,stroke:o["a"].lineColor}}}})},e.prototype.getLineType=function(){var t=this.get("line")||this.get("defaultCfg").line;return t.type},e.prototype.renderInner=function(t){this.drawGrid(t)},e.prototype.getAlternatePath=function(t,e){var n=this.getGridPath(t),i=e.slice(0).reverse(),r=this.getGridPath(i,!0),a=this.get("closed");return a?n=n.concat(r):(r[0][0]="L",n=n.concat(r),n.push(["Z"])),n},e.prototype.getPathStyle=function(){return this.get("line").style},e.prototype.drawGrid=function(t){var e=this,n=this.get("line"),i=this.get("items"),a=this.get("alternateColor"),o=null;Object(r["j"])(i,(function(s,l){var c=s.id||l;if(n){var u=e.getPathStyle();u=Object(r["F"])(u)?u(s,l,i):u;var h=e.getElementId("line-"+c),p=e.getGridPath(s.points);e.addShape(t,{type:"path",name:"grid-line",id:h,attrs:Object(r["U"])({path:p},u)})}if(a&&l>0){var f=e.getElementId("region-"+c),d=l%2===0;if(Object(r["M"])(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"]),l=s;function c(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["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{type:"circle",center:null,closed:!0})},e.prototype.getGridPath=function(t,e){var n=this.getLineType(),i=this.get("closed"),a=[];if(t.length)if("circle"===n){var o=this.get("center"),s=t[0],l=c(o.x,o.y,s.x,s.y),u=e?0:1;i?(a.push(["M",o.x,o.y-l]),a.push(["A",l,l,0,0,u,o.x,o.y+l]),a.push(["A",l,l,0,0,u,o.x,o.y-l]),a.push(["Z"])):Object(r["j"])(t,(function(t,e){0===e?a.push(["M",t.x,t.y]):a.push(["A",l,l,0,0,u,t.x,t.y])}))}else Object(r["j"])(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}(l),h=u,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{type:"line"})},e.prototype.getGridPath=function(t){var e=[];return Object(r["j"])(t,(function(t,n){0===n?e.push(["M",t.x,t.y]):e.push(["L",t.x,t.y])})),e},e}(l),f=p},c94d:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return a}));var i=1e-6,r="undefined"!==typeof Float32Array?Float32Array:Array,a=Math.random;Math.PI;Math.hypot||(Math.hypot=function(){var t=0,e=arguments.length;while(e--)t+=arguments[e]*arguments[e];return Math.sqrt(t)})},ccaf:function(t,e,n){"use strict";var i=n("9ab4"),r=n("8937"),a=n("e897"),o=n("b2cb"),s=n("6928"),l=n("2e60"),c=a["a"].transform,u="matrix",h=["zIndex","capture","visible","type"],p=["repeat"],f=":",d="*";function g(t){for(var e=[],n=0;n<t.length;n++)Object(r["z"])(t[n])?e.push([].concat(t[n])):e.push(t[n]);return e}function v(t,e){var n={},i=e.attrs;for(var r in t)n[r]=i[r];return n}function m(t,e){var n={},i=e.attr();return Object(r["j"])(t,(function(t,e){-1!==p.indexOf(e)||Object(r["E"])(i[e],t)||(n[e]=t)})),n}function y(t,e){if(e.onFrame)return t;var n=e.startTime,i=e.delay,a=e.duration,o=Object.prototype.hasOwnProperty;return Object(r["j"])(t,(function(t){n+i<t.startTime+t.delay+t.duration&&a>t.delay&&Object(r["j"])(e.toAttrs,(function(e,n){o.call(t.toAttrs,n)&&(delete t.toAttrs[n],delete t.fromAttrs[n])}))})),t}var b=function(t){function e(e){var n=t.call(this,e)||this;n.attrs={};var i=n.getDefaultAttrs();return Object(r["U"])(i,e.attrs),n.attrs=i,n.initAttrs(i),n.initAnimate(),n}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){return{visible:!0,capture:!0,zIndex:0}},e.prototype.getDefaultAttrs=function(){return{matrix:this.getDefaultMatrix(),opacity:1}},e.prototype.onCanvasChange=function(t){},e.prototype.initAttrs=function(t){},e.prototype.initAnimate=function(){this.set("animable",!0),this.set("animating",!1)},e.prototype.isGroup=function(){return!1},e.prototype.getParent=function(){return this.get("parent")},e.prototype.getCanvas=function(){return this.get("canvas")},e.prototype.attr=function(){for(var t,e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e[0],a=e[1];if(!i)return this.attrs;if(Object(r["K"])(i)){for(var o in i)this.setAttr(o,i[o]);return this.afterAttrsChange(i),this}return 2===e.length?(this.setAttr(i,a),this.afterAttrsChange((t={},t[i]=a,t)),this):this.attrs[i]},e.prototype.isClipped=function(t,e){var n=this.getClip();return n&&!n.isHit(t,e)},e.prototype.setAttr=function(t,e){var n=this.attrs[t];n!==e&&(this.attrs[t]=e,this.onAttrChange(t,e,n))},e.prototype.onAttrChange=function(t,e,n){"matrix"===t&&this.set("totalMatrix",null)},e.prototype.afterAttrsChange=function(t){if(this.cfg.isClipShape){var e=this.cfg.applyTo;e&&e.onCanvasChange("clip")}else this.onCanvasChange("attr")},e.prototype.show=function(){return this.set("visible",!0),this.onCanvasChange("show"),this},e.prototype.hide=function(){return this.set("visible",!1),this.onCanvasChange("hide"),this},e.prototype.setZIndex=function(t){this.set("zIndex",t);var e=this.getParent();return e&&e.sort(),this},e.prototype.toFront=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.push(this),this.onCanvasChange("zIndex")}},e.prototype.toBack=function(){var t=this.getParent();if(t){var e=t.getChildren(),n=(this.get("el"),e.indexOf(this));e.splice(n,1),e.unshift(this),this.onCanvasChange("zIndex")}},e.prototype.remove=function(t){void 0===t&&(t=!0);var e=this.getParent();e?(Object(o["j"])(e.getChildren(),this),e.get("clearing")||this.onCanvasChange("remove")):this.onCanvasChange("remove"),t&&this.destroy()},e.prototype.resetMatrix=function(){this.attr(u,this.getDefaultMatrix()),this.onCanvasChange("matrix")},e.prototype.getMatrix=function(){return this.attr(u)},e.prototype.setMatrix=function(t){this.attr(u,t),this.onCanvasChange("matrix")},e.prototype.getTotalMatrix=function(){var t=this.cfg.totalMatrix;if(!t){var e=this.attr("matrix"),n=this.cfg.parentMatrix;t=n&&e?Object(s["b"])(n,e):e||n,this.set("totalMatrix",t)}return t},e.prototype.applyMatrix=function(t){var e=this.attr("matrix"),n=null;n=t&&e?Object(s["b"])(t,e):e||t,this.set("totalMatrix",n),this.set("parentMatrix",t)},e.prototype.getDefaultMatrix=function(){return null},e.prototype.applyToMatrix=function(t){var e=this.attr("matrix");return e?Object(s["c"])(e,t):t},e.prototype.invertFromMatrix=function(t){var e=this.attr("matrix");if(e){var n=Object(s["a"])(e);if(n)return Object(s["c"])(n,t)}return t},e.prototype.setClip=function(t){var e=this.getCanvas(),n=null;if(t){var i=this.getShapeBase(),a=Object(r["lb"])(t.type),o=i[a];o&&(n=new o({type:t.type,isClipShape:!0,applyTo:this,attrs:t.attrs,canvas:e}))}return this.set("clipShape",n),this.onCanvasChange("clip"),n},e.prototype.getClip=function(){var t=this.cfg.clipShape;return t||null},e.prototype.clone=function(){var t=this,e=this.attrs,n={};Object(r["j"])(e,(function(t,i){Object(r["z"])(e[i])?n[i]=g(e[i]):n[i]=e[i]}));var i=this.constructor,a=new i({attrs:n});return Object(r["j"])(h,(function(e){a.set(e,t.get(e))})),a},e.prototype.destroy=function(){var e=this.destroyed;e||(this.attrs={},t.prototype.destroy.call(this))},e.prototype.isAnimatePaused=function(){return this.get("_pause").isPaused},e.prototype.animate=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=this.isCanvas&&this.isCanvas();if(n||this.get("canvas")){this.set("animating",!0);var i=this.get("timeline");i||(i=this.get("canvas").get("timeline"),this.set("timeline",i));var a=this.get("animations")||[];i.timer||i.initTimer();var o,s,l,c,u,h=t[0],p=t[1],f=t[2],d=void 0===f?"easeLinear":f,g=t[3],b=void 0===g?r["W"]:g,x=t[4],O=void 0===x?0:x;Object(r["F"])(h)?(o=h,h={}):Object(r["K"])(h)&&h.onFrame&&(o=h.onFrame,s=h.repeat),Object(r["K"])(p)?(u=p,p=u.duration,d=u.easing||"easeLinear",O=u.delay||0,s=u.repeat||s||!1,b=u.callback||r["W"],l=u.pauseCallback||r["W"],c=u.resumeCallback||r["W"]):(Object(r["I"])(b)&&(O=b,b=null),Object(r["F"])(d)?(b=d,d="easeLinear"):d=d||"easeLinear");var j=m(h,this),w={fromAttrs:v(j,this),toAttrs:j,duration:p,easing:d,repeat:s,callback:b,pauseCallback:l,resumeCallback:c,delay:O,startTime:i.getTime(),id:Object(r["kb"])(),onFrame:o,pathFormatted:!1};a.length>0?a=y(a,w):i.addAnimator(this),a.push(w),this.set("animations",a),this.set("_pause",{isPaused:!1})}},e.prototype.stopAnimate=function(t){var e=this;void 0===t&&(t=!0);var n=this.get("animations");Object(r["j"])(n,(function(n){t&&(n.onFrame?e.attr(n.onFrame(1)):e.attr(n.toAttrs)),n.callback&&n.callback()})),this.set("animating",!1),this.set("animations",[])},e.prototype.pauseAnimate=function(){var t=this.get("timeline"),e=this.get("animations"),n=t.getTime();return Object(r["j"])(e,(function(t){t._paused=!0,t._pauseTime=n,t.pauseCallback&&t.pauseCallback()})),this.set("_pause",{isPaused:!0,pauseTime:n}),this},e.prototype.resumeAnimate=function(){var t=this.get("timeline"),e=t.getTime(),n=this.get("animations"),i=this.get("_pause").pauseTime;return Object(r["j"])(n,(function(t){t.startTime=t.startTime+(e-i),t._paused=!1,t._pauseTime=null,t.resumeCallback&&t.resumeCallback()})),this.set("_pause",{isPaused:!1}),this.set("animations",n),this},e.prototype.emitDelegation=function(t,e){var n,i=this,a=e.propagationPath;this.getEvents();"mouseenter"===t?n=e.fromShape:"mouseleave"===t&&(n=e.toShape);for(var s=function(t){var s=a[t],c=s.get("name");if(c){if((s.isGroup()||s.isCanvas&&s.isCanvas())&&n&&Object(o["g"])(s,n))return"break";Object(r["z"])(c)?Object(r["j"])(c,(function(t){i.emitDelegateEvent(s,t,e)})):l.emitDelegateEvent(s,c,e)}},l=this,c=0;c<a.length;c++){var u=s(c);if("break"===u)break}},e.prototype.emitDelegateEvent=function(t,e,n){var i=this.getEvents(),r=e+f+n.type;(i[r]||i[d])&&(n.name=r,n.currentTarget=t,n.delegateTarget=this,n.delegateObject=t.get("delegateObject"),this.emit(r,n))},e.prototype.translate=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var n=this.getMatrix(),i=c(n,[["t",t,e]]);return this.setMatrix(i),this},e.prototype.move=function(t,e){var n=this.attr("x")||0,i=this.attr("y")||0;return this.translate(t-n,e-i),this},e.prototype.moveTo=function(t,e){return this.move(t,e)},e.prototype.scale=function(t,e){var n=this.getMatrix(),i=c(n,[["s",t,e||t]]);return this.setMatrix(i),this},e.prototype.rotate=function(t){var e=this.getMatrix(),n=c(e,[["r",t]]);return this.setMatrix(n),this},e.prototype.rotateAtStart=function(t){var e=this.attr(),n=e.x,i=e.y,r=this.getMatrix(),a=c(r,[["t",-n,-i],["r",t],["t",n,i]]);return this.setMatrix(a),this},e.prototype.rotateAtPoint=function(t,e,n){var i=this.getMatrix(),r=c(i,[["t",-t,-e],["r",n],["t",t,e]]);return this.setMatrix(r),this},e}(l["a"]);e["a"]=b},cf87:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("ac6a"),n("6762"),n("2fdb");var i={beforeRouteLeave:function(t,e,n){if(e.meta.keepAlive&&this.cacheRoute&&!this.cacheRoute.includes(t.path)){var i=this.$vnode.parent.componentInstance.keys.indexOf(this.$route.fullPath),r=this.$vnode.parent.componentInstance.keys[i],a=this.$vnode.parent.componentInstance.cache;delete a[r]}n()}}},d159:function(t,e,n){"use strict";n("610f")},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},d4c6:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));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}},l=n("1183");function c(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=c(e,r)),i&&(a=i.getCanvasBBox(),e=c(e,a)),e}var h=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],a=0;a<n.length;a++){var o=n[a];i.push(o[0]),r.push(o[1])}var s=l["f"].getBBoxByArray(i,r),c=s.x,h=s.y,p=s.width,f=s.height,d={minX:c,minY:h,maxX:c+p,maxY:h+f};return d=u(t,d),{x:d.minX,y:d.minY,width:d.maxX-d.minX,height:d.maxY-d.minY}},p=function(t){for(var e=t.attr(),n=e.points,i=[],r=[],a=0;a<n.length;a++){var o=n[a];i.push(o[0]),r.push(o[1])}return l["f"].getBBoxByArray(i,r)},f=n("bc88"),d=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.text,a=e.fontSize,o=e.lineHeight,s=e.font;s||(s=Object(f["a"])(e));var l,c=Object(f["c"])(r,s);if(c){var u=e.textAlign,h=e.textBaseline,p=Object(f["b"])(r,a,o),d={x:n,y:i-p};u&&("end"===u||"right"===u?d.x-=c:"center"===u&&(d.x-=c/2)),h&&("top"===h?d.y+=p:"middle"===h&&(d.y+=p/2)),l={x:d.x,y:d.y,width:c,height:p}}else l={x:n,y:i,width:0,height:0};return l},g=n("2ef1"),v=n("8937");function m(t,e){for(var n=[],i=[],r=[],a=0;a<t.length;a++){var o=t[a],s=o.currentPoint,c=o.params,u=o.prePoint,h=void 0;switch(o.command){case"Q":h=l["e"].box(u[0],u[1],c[1],c[2],c[3],c[4]);break;case"C":h=l["b"].box(u[0],u[1],c[1],c[2],c[3],c[4],c[5],c[6]);break;case"A":var p=o.arcParams;h=l["a"].box(p.cx,p.cy,p.rx,p.ry,p.xRotation,p.startAngle,p.endAngle);break;default:n.push(s[0]),i.push(s[1]);break}h&&(o.box=h,n.push(h.x,h.x+h.width),i.push(h.y,h.y+h.height)),e&&("L"===o.command||"M"===o.command)&&o.prePoint&&o.nextPoint&&r.push(o)}n=n.filter((function(t){return!Number.isNaN(t)})),i=i.filter((function(t){return!Number.isNaN(t)}));var f=Math.min.apply(null,n),d=Math.min.apply(null,i),g=Math.max.apply(null,n),v=Math.max.apply(null,i);if(0===r.length)return{x:f,y:d,width:g-f,height:v-d};for(a=0;a<r.length;a++){o=r[a],s=o.currentPoint;var m=void 0;s[0]===f?(m=y(o,e),f-=m.xExtra):s[0]===g&&(m=y(o,e),g+=m.xExtra),s[1]===d?(m=y(o,e),d-=m.yExtra):s[1]===v&&(m=y(o,e),v+=m.yExtra)}return{x:f,y:d,width:g-f,height:v-d}}function y(t,e){var n=t.prePoint,i=t.currentPoint,r=t.nextPoint,a=Math.pow(i[0]-n[0],2)+Math.pow(i[1]-n[1],2),o=Math.pow(i[0]-r[0],2)+Math.pow(i[1]-r[1],2),s=Math.pow(n[0]-r[0],2)+Math.pow(n[1]-r[1],2),l=Math.acos((a+o-s)/(2*Math.sqrt(a)*Math.sqrt(o)));if(!l||0===Math.sin(l)||Object(v["J"])(l,0))return{xExtra:0,yExtra:0};var c=Math.abs(Math.atan2(r[1]-i[1],r[0]-i[0])),u=Math.abs(Math.atan2(r[0]-i[0],r[1]-i[1]));c=c>Math.PI/2?Math.PI-c:c,u=u>Math.PI/2?Math.PI-u:u;var h={xExtra:Math.cos(l/2-c)*(e/2*(1/Math.sin(l/2)))-e/2||0,yExtra:Math.cos(u-l/2)*(e/2*(1/Math.sin(l/2)))-e/2||0};return h}var b=function(t){var e=t.attr(),n=e.path,i=e.stroke,r=i?e.lineWidth:0,a=t.get("segments")||Object(g["e"])(n),o=m(a,r),s=o.x,l=o.y,c=o.width,h=o.height,p={minX:s,minY:l,maxX:s+c,maxY:l+h};return p=u(t,p),{x:p.minX,y:p.minY,width:p.maxX-p.minX,height:p.maxY-p.minY}},x=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),l=Math.min(i,a),c=Math.max(i,a),h={minX:o,maxX:s,minY:l,maxY:c};return h=u(t,h),{x:h.minX,y:h.minY,width:h.maxX-h.minX,height:h.maxY-h.minY}},O=function(t){var e=t.attr(),n=e.x,i=e.y,r=e.rx,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",b),r("line",x),r("ellipse",O)},d4d5:function(t,e,n){},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("e5b1");n.d(e,"Legend",(function(){return s}));var l=n("0a1f");n.d(e,"Tooltip",(function(){return l}));n("3665"),n("31e6"),n("75ed");var c=n("7c50");n.d(e,"Slider",(function(){return c["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()}},d91e:function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("label",{staticClass:"el-button el-button--primary el-button--medium",class:{"is-disabled":t.disabled||t.unuse}},[t.iconClass?n("i",{staticClass:"mr5",class:t.iconClass}):t._e(),t._v("\n    "+t._s(t.disabled?"上传中...":t.label)+"\n    "),n("input",{directives:[{name:"upload",rawName:"v-upload",value:this,expression:"this"}],ref:"uploader",staticStyle:{display:"none"},attrs:{type:"file",disabled:t.disabled||t.unuse,accept:t.acceptType},on:{change:function(e){t.$emit("beforeUpload",e)}}})]),n("span",{staticClass:"fz12 gray",style:t.tipsStyle},[t._v(" "+t._s(t.tips))])])},r=[],a=n("f121"),o={name:"DmUpload",props:{model:{type:Object,default:function(){return{code:"",imgUrl:"",wxImg:""}}},uploadParams:{type:Object,default:function(){return{}}},width:{type:String,default:"auto"},tips:{type:String,default:"图片建议尺寸：100*100"},className:{type:String,default:""},label:{type:String,default:"上传"},acceptType:{type:String,default:"image/gif, image/jpeg,image/png"},fileType:{type:String,default:"file"},showImg:{type:Boolean,default:!0},tipsStyle:Object,url:{type:String,default:a["f"]},limit:{type:Object,default:function(){return{}}},unuse:{type:Boolean,default:!1},iconClass:{type:String,default:""}},data:function(){return{disabled:!1,loading:!1}},watch:{model:{handler:function(t){this.$emit("update:model",this.model),this.$emit("backImg",this.model)},deep:!0}}},s=o,l=(n("1b72"),n("2877")),c=Object(l["a"])(s,i,r,!1,null,"ef27ee92",null);e["a"]=c.exports},d92d:function(t,e,n){},d972:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[n("p",{staticClass:"gray01 fz16 mb20"},[t._v("图文标题")]),n("div",{staticClass:"pb20 clearfix flex-center"},[n("span",{staticClass:"mrAuto"}),n("el-button",{attrs:{type:"primary"},on:{click:t.refreshComment}},[t._v("获取最新评论")])],1),n("el-table",{ref:"asyncTree",staticStyle:{width:"100%"},attrs:{"tooltip-effect":"dark",data:t.tableList,"expand-row-keys":t.expends,"row-key":t.getRowKeys}},[[n("el-table-column",{attrs:{type:"expand",width:"5"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.wxReplyJson?n("dl",{staticClass:"expand"},[n("dd",[t._v("回复"),n("span",{staticClass:"fz12 ml10"},[t._v(t._s(t.formatDateTimeByType(1e3*e.row.wxReplyJson.create_time)))])]),n("dt",{staticClass:"word-break"},[t._v(t._s(e.row.wxReplyJson.content))])]):t._e()]}}])}),n("el-table-column",{attrs:{label:"评论人","min-width":"180",fixed:"left"},scopedSlots:t._u([{key:"default",fn:function(t){return[n("member-info",{attrs:{"member-name":t.row.memberNickName,"member-image":t.row.memberImageUrl,"hide-phone":""}})]}}])}),n("el-table-column",{attrs:{label:"评论时间","min-width":"120"},scopedSlots:t._u([{key:"default",fn:function(e){return n("span",{domProps:{innerHTML:t._s(t.listTime(1e3*e.row.wxCommentTime))}})}}])}),n("el-table-column",{attrs:{prop:"wxContent",label:"评论内容","min-width":"140"}}),n("el-table-column",{attrs:{align:"left","min-width":"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-switch",{attrs:{value:e.row.wxCommentType,"active-value":1,"inactive-value":0},on:{change:function(n){t.toggleCommentType(n,e.row)}}})]}}])},[n("template",{slot:"header"},[n("el-tooltip",{attrs:{content:"精选评论会在图文页底部精选留言区域显示",placement:"top"}},[n("span",{staticClass:"tooltip-icon cursor"},[t._v("设为精选评论")])])],1)],2),n("el-table-column",{attrs:{label:"操作",align:"left",width:"140px",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[e.row.wxReplyJson?t._e():n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.showReply(e.row)}}},[t._v("回复")]),n("dm-delete",{on:{confirm:function(n){return t.delData(e.row)}}},[n("el-button",{attrs:{type:"text"}},[t._v("删除")])],1)]}}])})]],2),n("div",{staticClass:"clearfix"},[t.tableList.length?n("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1),n("el-dialog",{attrs:{title:"回复",visible:t.reply.visible,width:"500px"},on:{"update:visible":function(e){return t.$set(t.reply,"visible",e)},close:t.replyClose}},[n("div",{staticClass:"reply"},[t.reply.createTime?n("div",{staticClass:"content"},[n("p",{domProps:{innerHTML:t._s(t.formatDateTimeByType(1e3*t.reply.createTime))}}),n("p",{staticClass:"gray01"},[t._v(t._s(t.reply.content))])]):[n("el-input",{attrs:{type:"textarea",rows:4,placeholder:"请输入内容",maxlength:"200"},model:{value:t.reply.content,callback:function(e){t.$set(t.reply,"content",e)},expression:"reply.content"}}),t.currentAreaDelete?t._e():n("div",{staticClass:"text-center mt20"},[n("el-button",{attrs:{type:"primary",disabled:!t.reply.content},on:{click:t.replyComment}},[t._v("添加回复")])],1)]],2)])],1)},r=[],a=n("fab6"),o=n("ed08"),s=n("4cfb"),l=s["a"].getCommentList,c=s["a"].setCommentType,u=s["a"].replyComment,h=s["a"].delReply,p=s["a"].refreshComment,f={name:"WechatMassList",mixins:[a["c"]],data:function(){return{loading:!1,listParams:{currentPage:1,pageSize:20,msgDataId:this.$route.query.msgDataId,itemIndex:this.$route.query.idx,wxCommentType:""},expends:[],reply:{visible:!1,commentId:""},total:0,tableList:[],formatDateTimeByType:o["h"]}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"图文",breadPath:"/wechat/img-text/list"},{breadName:"评论管理"}])},mounted:function(){this.getTableList()},methods:{listTime:o["l"],refreshComment:function(){var t=this;this.loading=!0;var e=this.listParams,n=e.itemIndex,i=e.msgDataId;p({msgDataId:i,itemIndex:n,fwhAppid:this.currentAreaId}).then((function(e){t.loading=!1,t.$tips({message:"已获取最新评论",type:"success"}),t.getTableList()})).finally((function(){t.loading=!1}))},toggleCommentType:function(t,e){var n=this,i=e.commentId;this.loading=!1,c({commentId:i,commentType:t}).then((function(t){n.loading=!1,n.$tips({message:"操作成功",type:"success"}),n.getTableList()})).finally((function(){n.loading=!1}))},replyClose:function(){this.reply={visible:!1,commentId:""}},getExpends:function(){var t=this.tableList.filter((function(t){return t.wxReplyJson})).map((function(t){return t.commentId}));this.expends=t},getRowKeys:function(t){return t.commentId},replyComment:function(){var t=this,e=this.reply,n=e.commentId,i=e.content;u({commentId:n,content:i}).then((function(e){t.$tips({message:"回复成功",type:"success"}),t.replyClose(),t.getTableList()}))},showReply:function(t){var e=t.commentId;this.reply.commentId=e,this.reply.visible=!0},delData:function(t){var e=this,n=t.imageTextId;this.loading=!0,h({fwhAppid:this.currentAreaId},{imageTextItemId:n}).then((function(t){e.loading=!1,e.$tips({message:"删除成功",type:"success"}),e.getTableList()})).finally((function(){e.loading=!1}))},getTableList:function(){var t=this;this.loading||(this.loading=!0,l(this.listParams).then((function(e){t.loading=!1;var n=e.result||{};t.tableList=n.result.map((function(t){return t.wxReplyJson=t.wxReplyJson?JSON.parse(t.wxReplyJson):"",t}))||[],t.getExpends()})).finally((function(){t.loading=!1})))}}},d=f,g=(n("f948"),n("2877")),v=Object(g["a"])(d,i,r,!1,null,"4032a876",null);e["default"]=v.exports},deef:function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var i=n("9ab4"),r=n("7c8a"),a=n("8937"),o=n("31e6"),s={trackColor:"rgba(0,0,0,0)",thumbColor:"rgba(0,0,0,0.15)",size:8,lineCap:"round"},l={default:s,hover:{thumbColor:"rgba(0,0,0,0.2)"}},c=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.clearEvents=a["W"],e.onStartEvent=function(t){return function(n){e.isMobile=t,n.originalEvent.preventDefault();var i=t?Object(a["q"])(n.originalEvent,"touches.0.clientX"):n.clientX,r=t?Object(a["q"])(n.originalEvent,"touches.0.clientY"):n.clientY;e.startPos=e.cfg.isHorizontal?i:r,e.bindLaterEvent()}},e.bindLaterEvent=function(){var t=e.getContainerDOM(),n=[];n=e.isMobile?[Object(r["a"])(t,"touchmove",e.onMouseMove),Object(r["a"])(t,"touchend",e.onMouseUp),Object(r["a"])(t,"touchcancel",e.onMouseUp)]:[Object(r["a"])(t,"mousemove",e.onMouseMove),Object(r["a"])(t,"mouseup",e.onMouseUp),Object(r["a"])(t,"mouseleave",e.onMouseUp)],e.clearEvents=function(){n.forEach((function(t){t.remove()}))}},e.onMouseMove=function(t){var n=e.cfg,i=n.isHorizontal,r=n.thumbOffset;t.preventDefault();var o=e.isMobile?Object(a["q"])(t,"touches.0.clientX"):t.clientX,s=e.isMobile?Object(a["q"])(t,"touches.0.clientY"):t.clientY,l=i?o:s,c=l-e.startPos;e.startPos=l,e.updateThumbOffset(r+c)},e.onMouseUp=function(t){t.preventDefault(),e.clearEvents()},e.onTrackClick=function(t){var n=e.cfg,i=n.isHorizontal,r=n.x,a=n.y,o=n.thumbLen,s=e.getContainerDOM(),l=s.getBoundingClientRect(),c=t.clientX,u=t.clientY,h=i?c-l.left-r-o/2:u-l.top-a-o/2,p=e.validateRange(h);e.updateThumbOffset(p)},e.onThumbMouseOver=function(){var t=e.cfg.theme.hover.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e.onThumbMouseOut=function(){var t=e.cfg.theme.default.thumbColor;e.getElementByLocalId("thumb").attr("stroke",t),e.draw()},e}return Object(i["b"])(e,t),e.prototype.setRange=function(t,e){this.set("minLimit",t),this.set("maxLimit",e);var n=this.getValue(),i=Object(a["c"])(n,t,e);n===i||this.get("isInit")||this.setValue(i)},e.prototype.getRange=function(){var t=this.get("minLimit")||0,e=this.get("maxLimit")||1;return{min:t,max:e}},e.prototype.setValue=function(t){var e=this.getRange(),n=this.getValue();this.update({thumbOffset:(this.get("trackLen")-this.get("thumbLen"))*Object(a["c"])(t,e.min,e.max)}),this.delegateEmit("valuechange",{originalValue:n,value:this.getValue()})},e.prototype.getValue=function(){return Object(a["c"])(this.get("thumbOffset")/(this.get("trackLen")-this.get("thumbLen")),0,1)},e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"scrollbar",isHorizontal:!0,minThumbLen:20,thumbOffset:0,theme:l})},e.prototype.renderInner=function(t){this.renderTrackShape(t),this.renderThumbShape(t)},e.prototype.applyOffset=function(){this.moveElementTo(this.get("group"),{x:this.get("x"),y:this.get("y")})},e.prototype.initEvent=function(){this.bindEvents()},e.prototype.renderTrackShape=function(t){var e=this.cfg,n=e.trackLen,i=e.theme,r=void 0===i?{default:{}}:i,a=r.default,o=a.lineCap,s=a.trackColor,l=a.size,c=this.get("isHorizontal")?{x1:0+l/2,y1:l/2,x2:n-l/2,y2:l/2,lineWidth:l,stroke:s,lineCap:o}:{x1:l/2,y1:0+l/2,x2:l/2,y2:n-l/2,lineWidth:l,stroke:s,lineCap:o};return this.addShape(t,{id:this.getElementId("track"),name:"track",type:"line",attrs:c})},e.prototype.renderThumbShape=function(t){var e=this.cfg,n=e.thumbOffset,i=e.thumbLen,r=e.theme,a=void 0===r?{default:{}}:r,o=a.default,s=o.size,l=o.lineCap,c=o.thumbColor,u=this.get("isHorizontal")?{x1:n+s/2,y1:s/2,x2:n+i-s/2,y2:s/2,lineWidth:s,stroke:c,lineCap:l,cursor:"default"}:{x1:s/2,y1:n+s/2,x2:s/2,y2:n+i-s/2,lineWidth:s,stroke:c,lineCap:l,cursor:"default"};return this.addShape(t,{id:this.getElementId("thumb"),name:"thumb",type:"line",attrs:u})},e.prototype.bindEvents=function(){var t=this.get("group");t.on("mousedown",this.onStartEvent(!1)),t.on("mouseup",this.onMouseUp),t.on("touchstart",this.onStartEvent(!0)),t.on("touchend",this.onMouseUp);var e=t.findById(this.getElementId("track"));e.on("click",this.onTrackClick);var n=t.findById(this.getElementId("thumb"));n.on("mouseover",this.onThumbMouseOver),n.on("mouseout",this.onThumbMouseOut)},e.prototype.getContainerDOM=function(){var t=this.get("container"),e=t&&t.get("canvas");return e&&e.get("container")},e.prototype.validateRange=function(t){var e=this.cfg,n=e.thumbLen,i=e.trackLen,r=t;return t+n>i?r=i-n:t+n<n&&(r=0),r},e.prototype.draw=function(){var t=this.get("container"),e=t&&t.get("canvas");e&&e.draw()},e.prototype.updateThumbOffset=function(t){var e=this.cfg,n=e.thumbOffset,i=e.isHorizontal,r=e.thumbLen,a=e.size,o=this.validateRange(t);if(o!==n){var s=this.getElementByLocalId("thumb");i?s.attr({x1:o+a/2,x2:o+r-a/2}):s.attr({y1:o+a/2,y2:o+r-a/2}),this.emitOffsetChange(o)}},e.prototype.emitOffsetChange=function(t){var e=this.cfg,n=e.thumbOffset,i=e.trackLen,r=e.thumbLen;this.cfg.thumbOffset=t,this.emit("scrollchange",{thumbOffset:t,ratio:Object(a["c"])(t/(i-r),0,1)}),this.delegateEmit("valuechange",{originalValue:n,value:t})},e}(o["a"])},e1c6:function(t,e){},e2b6:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[n("div",{staticClass:"pb20 clearfix flex-center"},[n("el-input",{staticClass:"vertical-middle w300  mrAuto",attrs:{clearable:"",placeholder:"请输图文标题/作者"},on:{change:t.refresh},model:{value:t.listParams.search,callback:function(e){t.$set(t.listParams,"search",e)},expression:"listParams.search"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})]),t.currentAreaDelete?t._e():[n("el-tooltip",{attrs:{content:"将微信侧的图文通过接口同步至GIC平台",placement:"top"}},[n("i",{staticClass:"el-icon-question gray03 mr8 cursor"})]),n("el-button",{on:{click:function(e){t.syncImgTextDialog=!0}}},[t._v("同步图文")]),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.toForm({})}}},[t._v("新建图文")])]],2),n("div",{staticClass:"imitation-table",staticStyle:{width:"100%"}},[n("el-row",{staticClass:"thead"},[n("el-col",{attrs:{span:9}},[t._v("内容")]),n("el-col",{attrs:{span:5}},[t._v("作者")]),n("el-col",{attrs:{span:5}},[t._v("更新时间")]),n("el-col",{attrs:{span:5}},[t._v("操作")])],1),n("div",{staticClass:"tbody",style:"max-height:"+t.mainHeight(119)+"px;overflow-y: auto;"},t._l(t.tableList,(function(e,i){return n("div",{key:i,staticClass:"td"},[t._l(e.child,(function(i,r){return n("el-row",{key:r,class:{mt10:0!==r,hide:!e.isOpen&&0!==r}},[n("el-col",{attrs:{span:9}},[n("div",{staticClass:"wechat-img"},[n("dm-preview-img",{staticClass:"vertical-middle mr10",attrs:{img:i.imageUrl,width:"140",height:"60"}}),n("p",{staticClass:"ellipsis-100 shrink blue"},[n("a",{staticClass:"cursor",attrs:{title:i.wechatTitle,href:""+(i.wechatItemMediaUrl?i.wechatItemMediaUrl:"javascrpt:;"),target:"_blank"}},[t._v(t._s(i.wechatTitle))])])],1)]),n("el-col",{attrs:{span:5}},[t._v(t._s(i.authorName||"--"))]),n("el-col",{attrs:{span:5},domProps:{innerHTML:t._s(t.listTime(i.updateTime))}}),0===r?n("el-col",{attrs:{span:5}},[n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.toForm(i)}}},[t._v("编辑")]),n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.delData(i)}}},[t._v("删除")]),n("el-button",{attrs:{type:"text"},on:{click:function(e){return t.$router.push("/wechat/mass/add?useId="+i.imageTextId)}}},[t._v("使用")])],1):t._e()],1)})),e.hasChild?n("div",{staticClass:"btn-i",on:{click:function(n){return t.handleGetImgTextItem(e,i)}}},[n("i",{class:e.isOpen?"el-icon-arrow-up":"el-icon-arrow-down"})]):t._e()],2)})),0),0===t.tableList.length?n("div",{staticClass:"el-table__empty-block",staticStyle:{width:"100%"}},[n("span",{staticClass:"el-table__empty-text"},[t._v("暂无数据")])]):t._e(),n("div",{staticClass:"clearfix"},[t.tableList.length?n("dm-pagination",{staticClass:"fr mb0",attrs:{background:"","current-page":t.listParams.currentPage,"page-sizes":[20,40,60,80],"page-size":t.listParams.pageSize,layout:"total, sizes, prev, pager, next",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}}):t._e()],1)],1),n("sync-img-text-dialog",{attrs:{"dialog-visible":t.syncImgTextDialog},on:{"update:dialogVisible":function(e){t.syncImgTextDialog=e},"update:dialog-visible":function(e){t.syncImgTextDialog=e},sycnSuccess:t.getTableList}})],1)},r=[],a=(n("8e6e"),n("ac6a"),n("456d"),n("2909")),o=n("ade3"),s=n("fab6"),l=n("cf45"),c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-dialog",{attrs:{title:"同步微信图文",visible:t.dialogVisible,width:"420px"},on:{"update:visible":function(e){t.dialogVisible=e},close:t.handleClose}},[n("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"text-center"},[n("p",{staticClass:"gray01 mb15"},[t._v("\n      微信图文共 "+t._s(t.total)+" 条\n      "),n("el-button",{staticClass:"ml15",attrs:{type:"text"},on:{click:t.getTotal}},[t._v("刷新"),n("i",{staticClass:"icon-zhongzhi iconfont-market4 fz12 ml5"})])],1),n("p",{staticClass:"mb30 gray03 fz12"},[t._v("同步全部图文可能会需要比较久的时间，请耐心等待")]),n("el-select",{staticClass:"w240",attrs:{placeholder:"请选择同步条数"},model:{value:t.num,callback:function(e){t.num=e},expression:"num"}},[t._l(t.list,(function(e,i){return n("el-option",{key:i,attrs:{value:e,disabled:e>t.total}},[t._v(t._s(e)+"条")])})),n("el-option",{attrs:{value:"全部"}},[t._v("全部")])],2),n("div",{staticClass:"mt30"},[n("el-button",{attrs:{disabled:!t.num||0===t.total,loading:t.syncLoading,type:"primary"},on:{click:t.handleSyncImgText}},[t._v("立即同步")])],1)],1)])},u=[],h=n("4cfb"),p=h["a"].syncImgText,f=h["a"].getSyncCount,d={name:"SyncImgText",props:{dialogVisible:{type:Boolean,default:!1}},data:function(){return{num:"",total:0,loading:!1,syncLoading:!1,list:[5,10,20]}},methods:{getTotal:function(){var t=this;this.loading=!0,f({fwhAppid:this.currentAreaId}).then((function(e){t.total=e.result||0,t.loading=!1})).catch((function(){t.total=0,t.loading=!1}))},handleSyncImgText:function(){var t=this,e={num:"全部"===this.num?this.total:this.num,fwhAppid:this.currentAreaId};this.syncLoading=!0,p(e).then((function(e){t.syncLoading=!1,t.handleClose(),t.$tips({message:"同步成功",type:"success"}),t.$emit("sycnSuccess")})).finally((function(){t.syncLoading=!1}))},handleClose:function(){this.num="",this.total=0,this.loading=!1,this.syncLoading=!1,this.$emit("update:dialogVisible",!1)}},watch:{dialogVisible:function(t){t&&this.getTotal()}}},g=d,v=n("2877"),m=Object(v["a"])(g,c,u,!1,null,null,null),y=m.exports,b=n("ed08");function x(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function O(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?x(Object(n),!0).forEach((function(e){Object(o["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var j=h["a"].getImgTextList,w=h["a"].getImgTextItem,C=h["a"].delImgText,M={name:"ImgTextList",components:{syncImgTextDialog:y},mixins:[s["c"],s["b"]],data:function(){return{loading:!1,syncImgTextDialog:!1,listParams:{search:"",currentPage:1,pageSize:20},tableList:[],total:0,tableHeader:[{label:"内容",align:"left",minWidth:"250",formatter:function(t){return"\n              "}},{label:"作者",prop:"authorName",align:"left",minWidth:"120"},{label:"留言",prop:"remark",align:"left",minWidth:"120"},{label:"更新时间",align:"left",minWidth:"110",formatter:function(t){return Object(b["l"])(t.updateTime)}}]}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"图文"}])},mounted:function(){this.currentAreaId&&this.getTableList()},methods:{listTime:b["l"],toForm:function(t){var e=t.imageTextId;e?this.$router.push({path:"/wechat/img-text/edit",query:{aId:this.currentAreaId,imageTextId:e}}):this.$router.push({path:"/wechat/img-text/add",query:{aId:this.currentAreaId}})},getTableList:function(){var t=this;if(!this.loading){this.loading=!0;var e=O(O({},this.listParams),{fwhAppid:this.currentAreaId});j(e).then((function(e){var n=e.result||{};t.total=n.totalCount,t.tableList=n.result.map((function(t){var e=O({},t);return t.hasChild=t.itemNum>1,t.isOpen=!1,t.child=[e],t}))||[],t.tableList=[].concat(Object(a["a"])(t.tableList),Object(a["a"])(t.tableList),Object(a["a"])(t.tableList),Object(a["a"])(t.tableList))})).finally((function(){t.loading=!1}))}},handleGetImgTextItem:function(t,e){var n=this,i=t.imageTextId,r=t.isOpen,a=t.child;r||1!==a.length?this.tableList[e].isOpen=!r:(this.loading=!0,w({fwhAppid:this.currentAreaId},{imageTextId:i}).then((function(t){1===t.result.length?n.tableList[e].hasChild=!1:(n.tableList[e].child=t.result,n.tableList[e].isOpen=!0),n.loading=!1})).finally((function(){n.loading=!1})))},delData:function(t){var e=this,n=t.imageTextId;Object(l["c"])("<div>确认删除？</div><div>删除图文将同步删除微信侧该图文素材</div>",(function(){e.loading=!0,C({fwhAppid:e.currentAreaId},{imageTextId:n}).then((function(t){e.loading=!1,e.$tips({message:"删除成功",type:"success"}),e.getTableList()})).finally((function(){e.loading=!1}))}))}}},S=M,I=(n("d159"),Object(v["a"])(S,i,r,!1,null,"503e22be",null));e["default"]=I.exports},e546:function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return a})),n.d(e,"h",(function(){return o})),n.d(e,"k",(function(){return s})),n.d(e,"j",(function(){return l})),n.d(e,"b",(function(){return c})),n.d(e,"g",(function(){return u})),n.d(e,"e",(function(){return h})),n.d(e,"i",(function(){return f})),n.d(e,"d",(function(){return g})),n.d(e,"m",(function(){return v})),n.d(e,"l",(function(){return m})),n.d(e,"f",(function(){return y}));var i=n("8937");function r(t){var e=0,n=0,r=0,a=0;return Object(i["I"])(t)?e=n=r=a=t:Object(i["z"])(t)&&(e=t[0],r=Object(i["G"])(t[1])?t[0]:t[1],a=Object(i["G"])(t[2])?t[0]:t[2],n=Object(i["G"])(t[3])?r:t[3]),[e,r,a,n]}function a(t){for(var e=t.childNodes,n=e.length,i=n-1;i>=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 l(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 c(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)<n};function d(t,e){var n=Math.max(t.minX,e.minX),i=Math.max(t.minY,e.minY),r=Math.min(t.maxX,e.maxX),a=Math.min(t.maxY,e.maxY);return c(n,i,r-n,a-i)}function g(t){var e,n=t.getClip(),r=n&&n.getBBox();if(t.isGroup()){var a=1/0,o=-1/0,s=1/0,l=-1/0,u=t.getChildren();u.length>0?Object(i["j"])(u,(function(t){if(t.get("visible")){if(t.isGroup()&&0===t.get("children").length)return!0;var e=g(t),n=t.applyToMatrix([e.minX,e.minY,1]),i=t.applyToMatrix([e.minX,e.maxY,1]),r=t.applyToMatrix([e.maxX,e.minY,1]),c=t.applyToMatrix([e.maxX,e.maxY,1]),u=Math.min(n[0],i[0],r[0],c[0]),h=Math.max(n[0],i[0],r[0],c[0]),p=Math.min(n[1],i[1],r[1],c[1]),f=Math.max(n[1],i[1],r[1],c[1]);u<a&&(a=u),h>o&&(o=h),p<s&&(s=p),f>l&&(l=f)}})):(a=0,o=0,s=0,l=0),e=c(a,s,o-a,l-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 m(t){return t+"px"}function y(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)}}},e5b1:function(t,e,n){"use strict";n.r(e),n.d(e,"Category",(function(){return d})),n.d(e,"Continuous",(function(){return y})),n.d(e,"Base",(function(){return p}));var i=n("9ab4"),r=n("8937"),a=n("060b"),o=n("8ea8"),s=n("9778"),l=n("2f5e"),c=n("31e6"),u=n("e546"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"legend",layout:"horizontal",locationType:"point",x:0,y:0,offsetX:0,offsetY:0,title:null,background:null})},e.prototype.getLayoutBBox=function(){var e=t.prototype.getLayoutBBox.call(this),n=this.get("maxWidth"),i=this.get("maxHeight"),r=e.width,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["a"])({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["a"])({text:o,x:e.x,y:e.y},a)}),l=s.getBBox();this.set("currentPoint",{x:e.x,y:l.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}(c["a"]),p=h,f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.currentPageIndex=1,e.totalPagesCnt=1,e.pageWidth=0,e.pageHeight=0,e.startX=0,e.startY=0,e.onNavigationBack=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex>1){e.currentPageIndex-=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e.onNavigationAfter=function(){var t=e.getElementByLocalId("item-group");if(e.currentPageIndex<e.totalPagesCnt){e.currentPageIndex+=1,e.updateNavigation();var n=e.getCurrentNavigationMatrix();e.get("animate")?t.animate({matrix:n},100):t.attr({matrix:n})}},e}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{name:"legend",type:"category",itemSpacing:24,itemMarginBottom:8,maxItemWidth:null,itemWidth:null,itemHeight:null,itemName:{},itemValue:null,maxWidth:null,maxHeight:null,marker:{},items:[],itemStates:{},itemBackground:{},defaultCfg:{title:{spacing:5,style:{fill:l["a"].textColor,fontSize:12,textAlign:"start",textBaseline:"top"}},background:{padding:5,style:{stroke:l["a"].lineColor}},itemBackground:{style:{opacity:0,fill:"#fff"}},itemName:{spacing:16,style:{fill:l["a"].textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},marker:{spacing:8,style:{r:6,symbol:"circle"}},itemValue:{alignRight:!1,formatter:null,style:{fill:l["a"].textColor,fontSize:12,textAlign:"start",textBaseline:"middle"}},itemStates:{active:{nameStyle:{opacity:.8}},unchecked:{nameStyle:{fill:l["a"].uncheckedColor},markerStyle:{fill:l["a"].uncheckedColor,stroke:l["a"].uncheckedColor}},inactive:{nameStyle:{fill:l["a"].uncheckedColor},markerStyle:{opacity:.2}}}}})},e.prototype.isList=function(){return!0},e.prototype.getItems=function(){return this.get("items")},e.prototype.setItems=function(t){this.update({items:t})},e.prototype.updateItem=function(t,e){Object(r["U"])(t,e),this.clear(),this.render()},e.prototype.clearItems=function(){var t=this.getElementByLocalId("item-group");t&&t.clear()},e.prototype.setItemState=function(t,e,n){t[e]=n;var i=this.getElementByLocalId("item-"+t.id);if(i){var r=this.getItems(),a=r.indexOf(t),o=this.createOffScreenGroup(),s=this.drawItem(t,a,this.getItemHeight(),o);this.updateElements(s,i),this.clearUpdateStatus(i)}},e.prototype.hasState=function(t,e){return!!t[e]},e.prototype.getItemStates=function(t){var e=this.get("itemStates"),n=[];return Object(r["j"])(e,(function(e,i){t[i]&&n.push(i)})),n},e.prototype.clearItemsState=function(t){var e=this,n=this.getItemsByState(t);Object(r["j"])(n,(function(n){e.setItemState(n,t,!1)}))},e.prototype.getItemsByState=function(t){var e=this,n=this.getItems();return Object(r["l"])(n,(function(n){return e.hasState(n,t)}))},e.prototype.drawLegendContent=function(t){this.processItems(),this.drawItems(t)},e.prototype.processItems=function(){var t=this.get("items");Object(r["j"])(t,(function(t){t.id||(t.id=t.name)}))},e.prototype.drawItems=function(t){var e=this,n=this.addGroup(t,{id:this.getElementId("item-container-group"),name:"legend-item-container-group"}),i=this.addGroup(n,{id:this.getElementId("item-group"),name:"legend-item-group"}),a=this.getItemHeight(),o=this.get("itemWidth"),s=this.get("itemSpacing"),l=this.get("itemMarginBottom"),c=this.get("currentPoint"),u=c.x,h=c.y,p=this.get("layout"),f=this.get("items"),d=!1,g=0,v=this.get("maxWidth"),m=this.get("maxHeight");Object(r["j"])(f,(function(t,n){var r=e.drawItem(t,n,a,i),f=r.getBBox(),y=o||f.width;y>g&&(g=y),"horizontal"===p?(v&&v<c.x+y-u&&(d=!0,c.x=u,c.y+=a+l),e.moveElementTo(r,c),c.x+=y+s):(m&&m<c.y+a+l-h&&(d=!0,c.x+=g+s,c.y=h,g=0),e.moveElementTo(r,c),c.y+=a+l)})),d&&this.get("flipPage")&&(this.pageHeight=0,this.pageWidth=0,this.totalPagesCnt=1,this.startX=u,this.startY=h,this.adjustNavigation(t,i))},e.prototype.getItemHeight=function(){var t=this.get("itemHeight");if(!t){var e=this.get("itemName");e&&(t=e.style.fontSize)}return t},e.prototype.drawMarker=function(t,e,n,a){var o=Object(i["a"])(Object(i["a"])(Object(i["a"])({x:0,y:a/2},e.style),{symbol:Object(r["q"])(n.marker,"symbol","circle")}),Object(r["q"])(n.marker,"style",{})),s=this.addShape(t,{type:"marker",id:this.getElementId("item-"+n.id+"-marker"),name:"legend-item-marker",attrs:o}),l=s.getBBox();s.attr("x",l.width/2);var c=s.attr(),u=c.stroke,h=c.fill;return u&&s.set("isStroke",!0),h&&s.set("isFill",!0),s},e.prototype.drawItemText=function(t,e,n,r,a,o,s){var l=n.formatter,c=Object(i["a"])({x:o,y:a/2,text:l?l(r[e],r,s):r[e]},n.style);return this.addShape(t,{type:"text",id:this.getElementId("item-"+r.id+"-"+e),name:"legend-item-"+e,attrs:c})},e.prototype.drawItem=function(t,e,n,o){var s="item-"+t.id,l=this.addGroup(o,{name:"legend-item-container",id:this.getElementId("item-container-"+s),delegateObject:{item:t,index:e}}),c=this.addGroup(l,{name:"legend-item",id:this.getElementId(s),delegateObject:{item:t,index:e}}),u=this.get("marker"),h=this.get("itemName"),p=this.get("itemValue"),f=this.get("itemBackground"),d=this.getLimitItemWidth(),g=0;if(u){var v=this.drawMarker(c,u,t,n);g=v.getBBox().maxX+u.spacing}if(h){var m=this.drawItemText(c,"name",h,t,n,g,e);d&&Object(a["a"])(!0,m,Object(r["c"])(d-g,0,d)),g=m.getBBox().maxX+h.spacing}if(p){var y=this.drawItemText(c,"value",p,t,n,g,e);d&&(p.alignRight?(y.attr({textAlign:"right",x:d}),Object(a["a"])(!0,y,Object(r["c"])(d-g,0,d),"head")):Object(a["a"])(!0,y,Object(r["c"])(d-g,0,d)))}if(f){var b=c.getBBox(),x=this.addShape(c,{type:"rect",name:"legend-item-background",id:this.getElementId(s+"-background"),attrs:Object(i["a"])({x:0,y:0,width:b.width,height:n},f.style)});x.toBack()}return this.applyItemStates(t,c),c},e.prototype.adjustNavigation=function(t,e){var n=this,i=this.startX,a=this.startY,o=this.get("layout"),s=e.findAll((function(t){return"legend-item"===t.get("name")})),l=this.get("maxWidth"),c=this.get("maxHeight"),u=this.get("itemWidth"),h=this.get("itemSpacing"),p=this.getItemHeight(),f=this.drawNavigation(t,o,"00/00",12),d=f.getBBox(),g={x:i,y:a},v=1,m=0,y=0,b=0;if("horizontal"===o)this.pageHeight=p,Object(r["j"])(s,(function(t){var e=t.getBBox(),r=u||e.width;(m&&m<g.x+r+h||l<g.x+r+h+d.width)&&(1===v&&(m=g.x+h,n.pageWidth=m,n.moveElementTo(f,{x:l-h-d.width-d.minX,y:g.y+p/2-d.height/2-d.minY})),v+=1,g.x=i,g.y+=p),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:r+h,height:p}}),g.x+=r+h}));else{var x=this.get("itemMarginBottom");Object(r["j"])(s,(function(t){var e=t.getBBox();e.width>y&&(y=e.width)})),b=y,y+=h,l&&(y=Math.min(l,y),b=Math.min(l,b)),this.pageWidth=y,this.pageHeight=c-Math.max(d.height,p+x);var O=Math.floor(this.pageHeight/(p+x));Object(r["j"])(s,(function(t,e){0!==e&&e%O===0&&(v+=1,g.x+=y,g.y=a),n.moveElementTo(t,g),t.getParent().setClip({type:"rect",attrs:{x:g.x,y:g.y,width:y,height:p}}),g.y+=p+x})),this.totalPagesCnt=v,this.moveElementTo(f,{x:i+b/2-d.width/2-d.minX,y:c-d.height-d.minY})}this.pageHeight&&this.pageWidth&&e.getParent().setClip({type:"rect",attrs:{x:this.startX,y:this.startY,width:this.pageWidth,height:this.pageHeight}}),this.totalPagesCnt=v,this.currentPageIndex>this.totalPagesCnt&&(this.currentPageIndex=1),this.updateNavigation(f),e.attr("matrix",this.getCurrentNavigationMatrix())},e.prototype.drawNavigation=function(t,e,n,i){var r={x:0,y:0},a=this.addGroup(t,{id:this.getElementId("navigation-group"),name:"legend-navigation"}),o=this.drawArrow(a,r,"navigation-arrow-left","horizontal"===e?"up":"left",i);o.on("click",this.onNavigationBack);var s=o.getBBox();r.x+=s.width+2;var l=this.addShape(a,{type:"text",id:this.getElementId("navigation-text"),name:"navigation-text",attrs:{x:r.x,y:r.y+i/2,text:n,fontSize:12,fill:"#ccc",textBaseline:"middle"}}),c=l.getBBox();r.x+=c.width+2;var u=this.drawArrow(a,r,"navigation-arrow-right","horizontal"===e?"down":"right",i);return u.on("click",this.onNavigationAfter),a},e.prototype.updateNavigation=function(t){var e=this.currentPageIndex+"/"+this.totalPagesCnt,n=t?t.getChildren()[1]:this.getElementByLocalId("navigation-text"),i=t?t.findById(this.getElementId("navigation-arrow-left")):this.getElementByLocalId("navigation-arrow-left"),r=t?t.findById(this.getElementId("navigation-arrow-right")):this.getElementByLocalId("navigation-arrow-right"),a=n.getBBox();n.attr("text",e);var o=n.getBBox();n.attr("x",n.attr("x")-(o.width-a.width)/2),i.attr("opacity",1===this.currentPageIndex?.45:1),i.attr("cursor",1===this.currentPageIndex?"not-allowed":"pointer"),r.attr("opacity",this.currentPageIndex===this.totalPagesCnt?.45:1),r.attr("cursor",this.currentPageIndex===this.totalPagesCnt?"not-allowed":"pointer")},e.prototype.drawArrow=function(t,e,n,i,r){var a=e.x,s=e.y,l={right:90*Math.PI/180,left:270*Math.PI/180,up:0,down:180*Math.PI/180},c=this.addShape(t,{type:"path",id:this.getElementId(n),name:n,attrs:{path:[["M",a+r/2,s],["L",a,s+r],["L",a+r,s+r],["Z"]],fill:"#000",cursor:"pointer"}});return c.attr("matrix",Object(o["e"])({x:a+r/2,y:s+r/2},l[i])),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["j"])(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),d=f,g=1.4,v=.4,m=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(i["a"])(Object(i["a"])({},e),{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:l["a"].textColor,textBaseline:"middle",fontFamily:l["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:l["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];r<n&&(r=n),e.setValue([n,r])})),t.on("legend-handler-max:drag",(function(t){var n=e.getValueByCanvasPoint(t.x,t.y),i=e.getCurrentValue(),r=i[0];r>n&&(r=n),e.setValue([r,n])}))},e.prototype.bindRailEvent=function(t){},e.prototype.bindTrackEvent=function(t){var e=this,n=null;t.on("legend-track:dragstart",(function(t){n={x:t.x,y:t.y}})),t.on("legend-track:drag",(function(t){if(n){var i=e.getValueByCanvasPoint(n.x,n.y),r=e.getValueByCanvasPoint(t.x,t.y),a=e.getCurrentValue(),o=a[1]-a[0],s=e.getRange(),l=r-i;l<0?a[0]+l>s.min?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.min,s.min+o]):l>0&&(l>0&&a[1]+l<s.max?e.setValue([a[0]+l,a[1]+l]):e.setValue([s.max-o,s.max])),n={x:t.x,y:t.y}}})),t.on("legend-track:dragend",(function(t){n=null}))},e.prototype.drawLabels=function(t){this.drawLabel("min",t),this.drawLabel("max",t)},e.prototype.drawLabel=function(t,e){var n=this.get("label"),r=n.style,a=n.align,o=this.get(t),s=this.getLabelAlignAttrs(t,a),l="label-"+t;this.addShape(e,{type:"text",id:this.getElementId(l),name:"legend-label-"+t,attrs:Object(i["a"])(Object(i["a"])({x:0,y:0,text:o},r),s)})},e.prototype.getLabelAlignAttrs=function(t,e){var n=this.isVertical(),i="center",r="middle";return n?(i="start",r="rail"!==e?"min"===t?"top":"bottom":"top"):"rail"!==e?(r="top",i="min"===t?"start":"end"):(i="start",r="middle"),{textAlign:i,textBaseline:r}},e.prototype.getRailPath=function(t,e,n,i){var r=this.get("rail"),a=r.size,o=r.defaultLength,s=r.type,l=this.isVertical(),c=o,u=n,h=i;u||(u=l?a:c),h||(h=l?c:a);var p=[];return"color"===s?(p.push(["M",t,e]),p.push(["L",t+u,e]),p.push(["L",t+u,e+h]),p.push(["L",t,e+h]),p.push(["Z"])):(p.push(["M",t+u,e]),p.push(["L",t+u,e+h]),p.push(["L",t,e+h]),p.push(["Z"])),p},e.prototype.drawRail=function(t){var e=this.get("rail"),n=e.style;this.addShape(t,{type:"path",id:this.getElementId("rail"),name:"legend-rail",attrs:Object(i["a"])({path:this.getRailPath(0,0)},n)})},e.prototype.getTrackColor=function(t){var e,n=t.length;if(!n)return null;if(1===n)return t[0];e=this.isVertical()?"l(90)":"l(0)";for(var i=0;i<n;i++){var r=i/(n-1);e+=" "+r+":"+t[i]}return e},e.prototype.getTrackPath=function(t){var e=this.getRailShape(t),n=e.attr("path");return Object(r["e"])(n)},e.prototype.getClipTrackAttrs=function(t){var e,n,i,r,a=this.getCurrentValue(),o=a[0],s=a[1],l=this.getRailBBox(t),c=this.getPointByValue(o,t),u=this.getPointByValue(s,t),h=this.isVertical();return h?(e=l.minX,n=c.y,i=l.width,r=u.y-c.y):(e=c.x,n=l.minY,i=u.x-c.x,r=l.height),{x:e,y:n,width:i,height:r}},e.prototype.getTrackAttrs=function(t){var e=this.get("track"),n=this.get("colors"),i=this.getTrackPath(t);return Object(r["U"])({path:i,fill:this.getTrackColor(n)},e.style)},e.prototype.resetTrackClip=function(t){var e=t||this.get("group"),n=this.getElementId("track"),i=e.findById(n),r=i.getClip(),a=this.getClipTrackAttrs(t);r?r.attr(a):i.setClip({type:"rect",attrs:a})},e.prototype.resetTrack=function(t){var e=this.getElementId("track"),n=t.findById(e),i=this.getTrackAttrs(t);n?n.attr(i):this.addShape(t,{type:"path",id:e,draggable:this.get("slidable"),name:"legend-track",attrs:i})},e.prototype.getPointByValue=function(t,e){var n=this.getRange(),i=n.min,r=n.max,a=(t-i)/(r-i),o=this.getRailBBox(e),s=this.isVertical(),l={x:0,y:0};return s?(l.x=o.minX+o.width/2,l.y=Object(u["g"])(o.minY,o.maxY,a)):(l.x=Object(u["g"])(o.minX,o.maxX,a),l.y=o.minY+o.height/2),l},e.prototype.getRailShape=function(t){var e=t||this.get("group");return e.findById(this.getElementId("rail"))},e.prototype.getRailBBox=function(t){var e=this.getRailShape(t),n=e.getBBox();return n},e.prototype.getRailCanvasBBox=function(){var t=this.get("group"),e=t.findById(this.getElementId("rail")),n=e.getCanvasBBox();return n},e.prototype.isVertical=function(){return"vertical"===this.get("layout")},e.prototype.getValueByCanvasPoint=function(t,e){var n,i=this.getRange(),r=i.min,a=i.max,o=this.getRailCanvasBBox(),s=this.isVertical(),l=this.get("step");n=s?(e-o.minY)/o.height:(t-o.minX)/o.width;var c=Object(u["g"])(r,a,n);if(l){var h=Math.round((c-r)/l);c=r+h*l}return c>a&&(c=a),c<r&&(c=r),c},e.prototype.getCurrentValue=function(){var t=this.get("value");return t||(t=[this.get("min"),this.get("max")]),t},e.prototype.resetHandlers=function(t){var e=this.getCurrentValue(),n=e[0],i=e[1];this.resetHandler(t,"min",n),this.resetHandler(t,"max",i)},e.prototype.getHandlerPath=function(t,e){var n=this.isVertical(),i=[],r=t.size,a=e.x,o=e.y,s=r*g,l=r/2,c=r/6;if(n){var u=a+s*v;i.push(["M",a,o]),i.push(["L",u,o+l]),i.push(["L",a+s,o+l]),i.push(["L",a+s,o-l]),i.push(["L",u,o-l]),i.push(["Z"]),i.push(["M",u,o+c]),i.push(["L",a+s-2,o+c]),i.push(["M",u,o-c]),i.push(["L",a+s-2,o-c])}else{var h=o+s*v;i.push(["M",a,o]),i.push(["L",a-l,h]),i.push(["L",a-l,o+s]),i.push(["L",a+l,o+s]),i.push(["L",a+l,h]),i.push(["Z"]),i.push(["M",a-c,h]),i.push(["L",a-c,o+s-2]),i.push(["M",a+c,h]),i.push(["L",a+c,o+s-2])}return i},e.prototype.resetHandler=function(t,e,n){var r=this.getPointByValue(n,t),a=this.get("handler"),o=this.getHandlerPath(a,r),s=this.getElementId("handler-"+e),l=t.findById(s),c=this.isVertical();l?l.attr("path",o):this.addShape(t,{type:"path",name:"legend-handler-"+e,draggable:!0,id:s,attrs:Object(i["a"])(Object(i["a"])({path:o},a.style),{cursor:c?"ns-resize":"ew-resize"})})},e.prototype.fixedElements=function(t){var e=t.findById(this.getElementId("rail")),n=t.findById(this.getElementId("label-min")),i=t.findById(this.getElementId("label-max")),r=this.getDrawPoint();this.isVertical()?this.fixedVertail(n,i,e,r):this.fixedHorizontal(n,i,e,r)},e.prototype.fitRailLength=function(t,e,n,i){var a=this.isVertical(),o=a?"height":"width",s=this.get("label"),l=s.align,c=s.spacing,u=this.get("max"+Object(r["lb"])(o));if(u){var h="rail"===l?n[o]+t[o]+e[o]+2*c:n[o],p=h-u;p>0&&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(),l=t.getBBox(),c=e.getBBox(),u=s.height;this.fitRailLength(l,c,s,n),s=n.getBBox(),"rail"===a?(t.attr({x:i.x,y:i.y+u/2}),this.changeRailPosition(n,i.x+l.width+o,i.y),e.attr({x:i.x+l.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+l.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(),l=t.getBBox(),c=e.getBBox();if(this.fitRailLength(l,c,s,n),s=n.getBBox(),"rail"===a)t.attr({x:i.x,y:i.y}),this.changeRailPosition(n,i.x,i.y+l.height+o),e.attr({x:i.x,y:i.y+l.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(l.width,c.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),y=m},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},e649:function(t,e,n){"use strict";n("d92d")},e73e:function(t,e,n){"use strict";var i=n("9ab4"),r=n("6855"),a=n("8937"),o=n("68de"),s=n("7349"),l=n("00f9"),c=n("22f9"),u=n("73ec"),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(i["b"])(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(l["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["j"])(e||n,(function(t,e){c["b"][e]&&i.setAttribute(c["b"][e],t)})),Object(l["c"])(this)},e}(r["AbstractGroup"]);e["a"]=h},e897:function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return R})),n.d(e,"d",(function(){return G})),n.d(e,"a",(function(){return r}));var i={};n.r(i),n.d(i,"create",(function(){return o})),n.d(i,"fromMat4",(function(){return s})),n.d(i,"clone",(function(){return l})),n.d(i,"copy",(function(){return c})),n.d(i,"fromValues",(function(){return u})),n.d(i,"set",(function(){return h})),n.d(i,"identity",(function(){return p})),n.d(i,"transpose",(function(){return f})),n.d(i,"invert",(function(){return d})),n.d(i,"adjoint",(function(){return g})),n.d(i,"determinant",(function(){return v})),n.d(i,"multiply",(function(){return m})),n.d(i,"translate",(function(){return y})),n.d(i,"rotate",(function(){return b})),n.d(i,"scale",(function(){return x})),n.d(i,"fromTranslation",(function(){return O})),n.d(i,"fromRotation",(function(){return j})),n.d(i,"fromScaling",(function(){return w})),n.d(i,"fromMat2d",(function(){return C})),n.d(i,"fromQuat",(function(){return M})),n.d(i,"normalFromMat4",(function(){return S})),n.d(i,"projection",(function(){return I})),n.d(i,"str",(function(){return k})),n.d(i,"frob",(function(){return T})),n.d(i,"add",(function(){return A})),n.d(i,"subtract",(function(){return L})),n.d(i,"multiplyScalar",(function(){return P})),n.d(i,"multiplyScalarAndAdd",(function(){return B})),n.d(i,"exactEquals",(function(){return E})),n.d(i,"equals",(function(){return F})),n.d(i,"mul",(function(){return D})),n.d(i,"sub",(function(){return _}));var r={};n.r(r),n.d(r,"leftTranslate",(function(){return Y})),n.d(r,"leftRotate",(function(){return N})),n.d(r,"leftScale",(function(){return z})),n.d(r,"transform",(function(){return X})),n.d(r,"direction",(function(){return H})),n.d(r,"angleTo",(function(){return W})),n.d(r,"vertical",(function(){return q}));var a=n("c94d");function o(){var t=new a["a"](9);return a["a"]!=Float32Array&&(t[1]=0,t[2]=0,t[3]=0,t[5]=0,t[6]=0,t[7]=0),t[0]=1,t[4]=1,t[8]=1,t}function s(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[4],t[4]=e[5],t[5]=e[6],t[6]=e[8],t[7]=e[9],t[8]=e[10],t}function l(t){var e=new a["a"](9);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e}function c(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function u(t,e,n,i,r,o,s,l,c){var u=new a["a"](9);return u[0]=t,u[1]=e,u[2]=n,u[3]=i,u[4]=r,u[5]=o,u[6]=s,u[7]=l,u[8]=c,u}function h(t,e,n,i,r,a,o,s,l,c){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t[4]=a,t[5]=o,t[6]=s,t[7]=l,t[8]=c,t}function p(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function f(t,e){if(t===e){var n=e[1],i=e[2],r=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=i,t[7]=r}else t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8];return t}function d(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=u*o-s*c,p=-u*a+s*l,f=c*a-o*l,d=n*h+i*p+r*f;return d?(d=1/d,t[0]=h*d,t[1]=(-u*i+r*c)*d,t[2]=(s*i-r*o)*d,t[3]=p*d,t[4]=(u*n-r*l)*d,t[5]=(-s*n+r*a)*d,t[6]=f*d,t[7]=(-c*n+i*l)*d,t[8]=(o*n-i*a)*d,t):null}function g(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8];return t[0]=o*u-s*c,t[1]=r*c-i*u,t[2]=i*s-r*o,t[3]=s*l-a*u,t[4]=n*u-r*l,t[5]=r*a-n*s,t[6]=a*c-o*l,t[7]=i*l-n*c,t[8]=n*o-i*a,t}function v(t){var e=t[0],n=t[1],i=t[2],r=t[3],a=t[4],o=t[5],s=t[6],l=t[7],c=t[8];return e*(c*a-o*l)+n*(-c*r+o*s)+i*(l*r-a*s)}function m(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=n[0],f=n[1],d=n[2],g=n[3],v=n[4],m=n[5],y=n[6],b=n[7],x=n[8];return t[0]=p*i+f*o+d*c,t[1]=p*r+f*s+d*u,t[2]=p*a+f*l+d*h,t[3]=g*i+v*o+m*c,t[4]=g*r+v*s+m*u,t[5]=g*a+v*l+m*h,t[6]=y*i+b*o+x*c,t[7]=y*r+b*s+x*u,t[8]=y*a+b*l+x*h,t}function y(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=n[0],f=n[1];return t[0]=i,t[1]=r,t[2]=a,t[3]=o,t[4]=s,t[5]=l,t[6]=p*i+f*o+c,t[7]=p*r+f*s+u,t[8]=p*a+f*l+h,t}function b(t,e,n){var i=e[0],r=e[1],a=e[2],o=e[3],s=e[4],l=e[5],c=e[6],u=e[7],h=e[8],p=Math.sin(n),f=Math.cos(n);return t[0]=f*i+p*o,t[1]=f*r+p*s,t[2]=f*a+p*l,t[3]=f*o-p*i,t[4]=f*s-p*r,t[5]=f*l-p*a,t[6]=c,t[7]=u,t[8]=h,t}function x(t,e,n){var i=n[0],r=n[1];return t[0]=i*e[0],t[1]=i*e[1],t[2]=i*e[2],t[3]=r*e[3],t[4]=r*e[4],t[5]=r*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t}function O(t,e){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=e[0],t[7]=e[1],t[8]=1,t}function j(t,e){var n=Math.sin(e),i=Math.cos(e);return t[0]=i,t[1]=n,t[2]=0,t[3]=-n,t[4]=i,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function w(t,e){return t[0]=e[0],t[1]=0,t[2]=0,t[3]=0,t[4]=e[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t}function C(t,e){return t[0]=e[0],t[1]=e[1],t[2]=0,t[3]=e[2],t[4]=e[3],t[5]=0,t[6]=e[4],t[7]=e[5],t[8]=1,t}function M(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=n+n,s=i+i,l=r+r,c=n*o,u=i*o,h=i*s,p=r*o,f=r*s,d=r*l,g=a*o,v=a*s,m=a*l;return t[0]=1-h-d,t[3]=u-m,t[6]=p+v,t[1]=u+m,t[4]=1-c-d,t[7]=f-g,t[2]=p-v,t[5]=f+g,t[8]=1-c-h,t}function S(t,e){var n=e[0],i=e[1],r=e[2],a=e[3],o=e[4],s=e[5],l=e[6],c=e[7],u=e[8],h=e[9],p=e[10],f=e[11],d=e[12],g=e[13],v=e[14],m=e[15],y=n*s-i*o,b=n*l-r*o,x=n*c-a*o,O=i*l-r*s,j=i*c-a*s,w=r*c-a*l,C=u*g-h*d,M=u*v-p*d,S=u*m-f*d,I=h*v-p*g,k=h*m-f*g,T=p*m-f*v,A=y*T-b*k+x*I+O*S-j*M+w*C;return A?(A=1/A,t[0]=(s*T-l*k+c*I)*A,t[1]=(l*S-o*T-c*M)*A,t[2]=(o*k-s*S+c*C)*A,t[3]=(r*k-i*T-a*I)*A,t[4]=(n*T-r*S+a*M)*A,t[5]=(i*S-n*k-a*C)*A,t[6]=(g*w-v*j+m*O)*A,t[7]=(v*x-d*w-m*b)*A,t[8]=(d*j-g*x+m*y)*A,t):null}function I(t,e,n){return t[0]=2/e,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/n,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t}function k(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"}function T(t){return Math.hypot(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])}function A(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[4]=e[4]+n[4],t[5]=e[5]+n[5],t[6]=e[6]+n[6],t[7]=e[7]+n[7],t[8]=e[8]+n[8],t}function L(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[4]=e[4]-n[4],t[5]=e[5]-n[5],t[6]=e[6]-n[6],t[7]=e[7]-n[7],t[8]=e[8]-n[8],t}function P(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[4]=e[4]*n,t[5]=e[5]*n,t[6]=e[6]*n,t[7]=e[7]*n,t[8]=e[8]*n,t}function B(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t[2]=e[2]+n[2]*i,t[3]=e[3]+n[3]*i,t[4]=e[4]+n[4]*i,t[5]=e[5]+n[5]*i,t[6]=e[6]+n[6]*i,t[7]=e[7]+n[7]*i,t[8]=e[8]+n[8]*i,t}function E(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]&&t[3]===e[3]&&t[4]===e[4]&&t[5]===e[5]&&t[6]===e[6]&&t[7]===e[7]&&t[8]===e[8]}function F(t,e){var n=t[0],i=t[1],r=t[2],o=t[3],s=t[4],l=t[5],c=t[6],u=t[7],h=t[8],p=e[0],f=e[1],d=e[2],g=e[3],v=e[4],m=e[5],y=e[6],b=e[7],x=e[8];return Math.abs(n-p)<=a["b"]*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(i-f)<=a["b"]*Math.max(1,Math.abs(i),Math.abs(f))&&Math.abs(r-d)<=a["b"]*Math.max(1,Math.abs(r),Math.abs(d))&&Math.abs(o-g)<=a["b"]*Math.max(1,Math.abs(o),Math.abs(g))&&Math.abs(s-v)<=a["b"]*Math.max(1,Math.abs(s),Math.abs(v))&&Math.abs(l-m)<=a["b"]*Math.max(1,Math.abs(l),Math.abs(m))&&Math.abs(c-y)<=a["b"]*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-b)<=a["b"]*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(h-x)<=a["b"]*Math.max(1,Math.abs(h),Math.abs(x))}var D=m,_=L,R=n("6711"),G=n("9fe7");function Y(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromTranslation(r,n),i.multiply(t,r,e)}function N(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromRotation(r,n),i.multiply(t,r,e)}function z(t,e,n){var r=[0,0,0,0,0,0,0,0,0];return i.fromScaling(r,n),i.multiply(t,r,e)}function V(t,e,n){return i.multiply(t,n,e)}function X(t,e){for(var n=t?[].concat(t):[1,0,0,0,1,0,0,0,1],i=0,r=e.length;i<r;i++){var a=e[i];switch(a[0]){case"t":Y(n,n,[a[1],a[2]]);break;case"s":z(n,n,[a[1],a[2]]);break;case"r":N(n,n,a[1]);break;case"m":V(n,n,a[1]);break;default:break}}return n}function H(t,e){return t[0]*e[1]-e[0]*t[1]}function W(t,e,n){var i=R.angle(t,e),r=H(t,e)>=0;return n?r?2*Math.PI-i:i:r?i:2*Math.PI-i}function q(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t}},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,l=function(t){return/^[r,R,L,l]{1}[\s]*\(/.test(t)},c=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=c()),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},m=function(t){var e=Object(i["M"])(t)?t.split("-"):t,n=Object(i["R"])(e,(function(t){return f(-1===t.indexOf("#")?v(t):t)}));return function(t){return g(n,t)}},y=function(t){if(l(t)){var e,n=void 0;if("l"===t[0]){var r=a.exec(t),c=+r[1]+90;n=r[2],e="linear-gradient("+c+"deg, "}else if("r"===t[0]){e="radial-gradient(";r=o.exec(t);n=r[4]}var u=n.match(s);return Object(i["j"])(u,(function(t,n){var i=t.split(":");e+=i[1]+" "+100*i[0]+"%",n!==u.length-1&&(e+=", ")})),e+=")",e}return t};e["a"]={rgb2arr:f,gradient:m,toRGB:Object(i["T"])(v),toCSSGradient:y}},eeca:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("container",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],staticClass:"p20"},[n("div",{staticClass:"pb20 clearfix flex-center"},[t._v("\n    提交审核时间："),n("el-date-picker",{staticClass:"w350 mr10",attrs:{type:"daterange","range-separator":"~","start-placeholder":"开始日期","end-placeholder":"结束日期"},on:{change:t.refresh},model:{value:t.dateTime,callback:function(e){t.dateTime=e},expression:"dateTime"}}),n("el-select",{staticClass:"dm-select mr10 w140",attrs:{clearable:"",placeholder:"所有审核类型"},on:{change:t.refresh},model:{value:t.listParams.auditType,callback:function(e){t.$set(t.listParams,"auditType",e)},expression:"listParams.auditType"}},t._l(t.auditType,(function(t,e){return n("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1),n("el-select",{staticClass:"dm-select mr10 w140",attrs:{clearable:"",placeholder:"所有审核状态"},on:{change:t.refresh},model:{value:t.listParams.auditStatus,callback:function(e){t.$set(t.listParams,"auditStatus",e)},expression:"listParams.auditStatus"}},t._l(t.auditStatus,(function(t,e){return n("el-option",{key:e,attrs:{label:t.label,value:t.value}})})),1),n("el-input",{staticClass:"vertical-middle w300 mrAuto",attrs:{clearable:"",placeholder:"请输活动名称/审核记录ID"},on:{change:t.refresh},model:{value:t.listParams.search,callback:function(e){t.$set(t.listParams,"search",e)},expression:"listParams.search"}},[n("i",{staticClass:"el-input__icon el-icon-search",attrs:{slot:"prefix"},slot:"prefix"})])],1),n("audit-table",t._b({ref:"audit",on:{getTableList:t.getTableList}},"audit-table",t.auditParams,!1))],1)},r=[],a=(n("8e6e"),n("ade3")),o=(n("ac6a"),n("456d"),n("fab6")),s=n("5e0a"),l=n("0e81"),c=n("5611"),u=n("4cfb");function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function p(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?h(Object(n),!0).forEach((function(e){Object(a["a"])(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}var f=u["a"].auditList,d={name:"AuditList",components:{auditTable:l["a"]},mixins:[o["c"],o["a"]],data:function(){return{loading:!1,dateTime:[,],listParams:{search:"",auditType:"",auditStatus:"",submitBeginTime:"",submitEndTime:"",currentPage:1,pageSize:20},auditType:Object.keys(c["a"]).map((function(t){return c["a"][t]})),auditStatus:Object.keys(s["a"]).map((function(t){return s["a"][t]})),tableList:[]}},created:function(){this.$emit("updateBread",[{breadName:"微信营销"},{breadName:"审核记录"}])},mounted:function(){this.getTableList()},methods:{getTableList:function(){var t=this;if(!this.loading){this.loading=!0,this.formatterTimeFunc("submitBeginTime","submitEndTime","dateTime");var e=p(p({},this.listParams),{fwhAppid:this.currentAreaId});f(e,{moduleCode:this.$store.getters.moduleCode}).then((function(e){t.loading=!1;var n=e.result;t.tableList=n.result||[],t.total=n.totalCount,0===t.tableList.length&&1!==t.listParams.currentPage&&(t.listParams.currentPage-=1,t.getTableList())})).finally((function(){t.loading=!1}))}}},computed:{auditParams:function(){var t=this.listParams,e=this.total,n=this.tableList,i=this.auditType,r=this.auditStatus;return{tableList:n,listParams:t,total:e,auditType:i,auditStatus:r}}}},g=d,v=n("2877"),m=Object(v["a"])(g,i,r,!1,null,null,null);e["default"]=m.exports},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"])},f05a:function(t,e,n){"use strict";var i=n("000e"),r=n("8937"),a=n("41c8"),o=r["a"],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,l=void 0===s?10:s,c=e.reverseOrder,u=void 0!==c&&c;return n.adjustNames=r,n.height=o,n.size=l,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,l=s?this.reverse(t):t,c=new o,u=new o;return l.map((function(t){return t.map((function(t){var e,o=r["q"](t,n,0),s=r["q"](t,[a]),l=o.toString();if(s=r["z"](s)?s[1]:s,!r["G"](s)){var h=s>=0?c:u;h.has(l)||h.set(l,0);var p=h.get(l),f=s+p;return h.set(l,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,l="y",c=s?this.reverse(t):t,u=new o;return c.map((function(t){return t.map((function(t){var n,o=e.size,s=t[r],c=2*o/a;u.has(s)||u.set(s,c/2);var h=u.get(s);return u.set(s,h+c),Object(i["a"])(Object(i["a"])({},t),(n={},n[l]=h,n))}))}))},e}(a["a"]);e["a"]=s},f28c:function(t,e){var n,i,r=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function l(t){if(i===clearTimeout)return clearTimeout(t);if((i===o||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(function(){try{n="function"===typeof setTimeout?setTimeout:a}catch(t){n=a}try{i="function"===typeof clearTimeout?clearTimeout:o}catch(t){i=o}})();var c,u=[],h=!1,p=-1;function f(){h&&c&&(h=!1,c.length?u=c.concat(u):p=-1,u.length&&d())}function d(){if(!h){var t=s(f);h=!0;var e=u.length;while(e){c=u,u=[];while(++p<e)c&&c[p].run();p=-1,e=u.length}c=null,h=!1,l(t)}}function g(t,e){this.fun=t,this.array=e}function v(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new g(t,e)),1!==u.length||h||s(d)},g.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},f2fb:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"b",(function(){return lt})),n.d(e,"c",(function(){return wt}));var i={};n.r(i),n.d(i,"default",(function(){return X})),n.d(i,"assign",(function(){return j})),n.d(i,"format",(function(){return N})),n.d(i,"parse",(function(){return z})),n.d(i,"defaultI18n",(function(){return I})),n.d(i,"setGlobalDateI18n",(function(){return T})),n.d(i,"setGlobalDateMasks",(function(){return Y}));var r=n("8937"),a={};function o(t){return a[t]}function s(t,e){a[t]=e}var l=function(){function t(t){this.type="base",this.isCategory=!1,this.isLinear=!1,this.isContinuous=!1,this.isIdentity=!1,this.values=[],this.range=[0,1],this.ticks=[],this.__cfg__=t,this.initCfg(),this.init()}return t.prototype.translate=function(t){return t},t.prototype.change=function(t){Object(r["b"])(this.__cfg__,t),this.init()},t.prototype.clone=function(){return this.constructor(this.__cfg__)},t.prototype.getTicks=function(){var t=this;return Object(r["R"])(this.ticks,(function(e,n){return Object(r["K"])(e)?e:{text:t.getText(e,n),tickValue:e,value:t.scale(e)}}))},t.prototype.getText=function(t,e){var n=this.formatter,i=n?n(t,e):t;return Object(r["G"])(i)||!Object(r["F"])(i.toString)?"":i.toString()},t.prototype.getConfig=function(t){return this.__cfg__[t]},t.prototype.init=function(){Object(r["b"])(this,this.__cfg__),this.setDomain(),Object(r["D"])(this.getConfig("ticks"))&&(this.ticks=this.calculateTicks())},t.prototype.initCfg=function(){},t.prototype.setDomain=function(){},t.prototype.calculateTicks=function(){var t=this.tickMethod,e=[];if(Object(r["M"])(t)){var n=o(t);if(!n)throw new Error("There is no method to to calculate ticks!");e=n(this)}else Object(r["F"])(t)&&(e=t(this));return e},t.prototype.rangeMin=function(){return Object(r["w"])(this.range)},t.prototype.rangeMax=function(){return Object(r["P"])(this.range)},t.prototype.calcPercent=function(t,e,n){return Object(r["I"])(t)?(t-e)/(n-e):NaN},t.prototype.calcValue=function(t,e,n){return e+t*(n-e)},t}(),c=l,u=n("9ab4"),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cat",e.isCategory=!0,e.cache=new Map,e}return Object(u["b"])(e,t),e.prototype.translate=function(t){if(this.cache.has(t))return this.cache.get(t);var e=Object(r["y"])(this.values,t);return-1===e&&(e=Object(r["I"])(t)?t:NaN),this.cache.set(t,e),e},e.prototype.scale=function(t){var e=this.translate(t),n=this.calcPercent(e,this.min,this.max);return this.calcValue(n,this.rangeMin(),this.rangeMax())},e.prototype.invert=function(t){var e=this.max-this.min,n=this.calcPercent(t,this.rangeMin(),this.rangeMax()),i=Math.round(e*n)+this.min;return i<this.min||i>this.max?NaN:this.values[i]},e.prototype.getText=function(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var a=e;return Object(r["I"])(e)&&!this.values.includes(e)&&(a=this.values[a]),t.prototype.getText.apply(this,Object(u["d"])([a],n))},e.prototype.initCfg=function(){this.tickMethod="cat"},e.prototype.setDomain=function(){if(Object(r["G"])(this.getConfig("min"))&&(this.min=0),Object(r["G"])(this.getConfig("max"))){var t=this.values.length;this.max=t>1?t-1:t}this.cache&&this.cache.clear()},e}(c),p=h,f=/d{1,4}|M{1,4}|YY(?:YY)?|S{1,3}|Do|ZZ|Z|([HhMsDm])\1?|[aA]|"[^"]*"|'[^']*'/g,d="[1-9]\\d?",g="\\d\\d",v="\\d{3}",m="\\d{4}",y="[^\\s]+",b=/\[([^]*?)\]/gm;function x(t,e){for(var n=[],i=0,r=t.length;i<r;i++)n.push(t[i].substr(0,e));return n}var O=function(t){return function(e,n){var i=n[t].map((function(t){return t.toLowerCase()})),r=i.indexOf(e.toLowerCase());return r>-1?r:null}};function j(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var i=0,r=e;i<r.length;i++){var a=r[i];for(var o in a)t[o]=a[o]}return t}var w=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],C=["January","February","March","April","May","June","July","August","September","October","November","December"],M=x(C,3),S=x(w,3),I={dayNamesShort:S,dayNames:w,monthNamesShort:M,monthNames:C,amPm:["am","pm"],DoFn:function(t){return t+["th","st","nd","rd"][t%10>3?0:(t-t%10!==10?1:0)*t%10]}},k=j({},I),T=function(t){return k=j(k,t)},A=function(t){return t.replace(/[|\\{()[^$+*?.-]/g,"\\$&")},L=function(t,e){void 0===e&&(e=2),t=String(t);while(t.length<e)t="0"+t;return t},P={D:function(t){return String(t.getDate())},DD:function(t){return L(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return String(t.getDay())},dd:function(t){return L(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return String(t.getMonth()+1)},MM:function(t){return L(t.getMonth()+1)},MMM:function(t,e){return e.monthNamesShort[t.getMonth()]},MMMM:function(t,e){return e.monthNames[t.getMonth()]},YY:function(t){return L(String(t.getFullYear()),4).substr(2)},YYYY:function(t){return L(t.getFullYear(),4)},h:function(t){return String(t.getHours()%12||12)},hh:function(t){return L(t.getHours()%12||12)},H:function(t){return String(t.getHours())},HH:function(t){return L(t.getHours())},m:function(t){return String(t.getMinutes())},mm:function(t){return L(t.getMinutes())},s:function(t){return String(t.getSeconds())},ss:function(t){return L(t.getSeconds())},S:function(t){return String(Math.round(t.getMilliseconds()/100))},SS:function(t){return L(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return L(t.getMilliseconds(),3)},a:function(t,e){return t.getHours()<12?e.amPm[0]:e.amPm[1]},A:function(t,e){return t.getHours()<12?e.amPm[0].toUpperCase():e.amPm[1].toUpperCase()},ZZ:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+L(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)},Z:function(t){var e=t.getTimezoneOffset();return(e>0?"-":"+")+L(Math.floor(Math.abs(e)/60),2)+":"+L(Math.abs(e)%60,2)}},B=function(t){return+t-1},E=[null,d],F=[null,y],D=["isPm",y,function(t,e){var n=t.toLowerCase();return n===e.amPm[0]?0:n===e.amPm[1]?1:null}],_=["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+y,function(t){return parseInt(t,10)}],M:["month",d,B],MM:["month",g,B],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",m],S:["millisecond","\\d",function(t){return 100*+t}],SS:["millisecond",g,function(t){return 10*+t}],SSS:["millisecond",v],d:E,dd:E,ddd:F,dddd:F,MMM:["month",y,O("monthNamesShort")],MMMM:["month",y,O("monthNames")],a:D,A:D,ZZ:_,Z:_},G={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"},Y=function(t){return j(G,t)},N=function(t,e,n){if(void 0===e&&(e=G["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=G[e]||e;var i=[];e=e.replace(b,(function(t,e){return i.push(e),"@@@"}));var r=j(j({},k),n);return e=e.replace(f,(function(e){return P[e](t,r)})),e.replace(/@@@/g,(function(){return i.shift()}))};function z(t,e,n){if(void 0===n&&(n={}),"string"!==typeof e)throw new Error("Invalid format in fecha parse");if(e=G[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(b,(function(t,e){return o.push(A(e)),"@@@"})),l={},c={};s=A(s).replace(f,(function(t){var e=R[t],n=e[0],i=e[1],r=e[3];if(l[n])throw new Error("Invalid format. "+n+" specified twice in format");return l[n]=!0,r&&(c[r]=!0),a.push(e),"("+i+")"})),Object.keys(c).forEach((function(t){if(!l[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=j(j({},k),n),p=1;p<u.length;p++){var d=a[p-1],g=d[0],v=d[2],m=v?v(u[p],h):+u[p];if(null==m)return null;r[g]=m}1===r.isPm&&null!=r.hour&&12!==+r.hour?r.hour=+r.hour+12:0===r.isPm&&12===+r.hour&&(r.hour=0);for(var y=new Date(r.year,r.month,r.day,r.hour,r.minute,r.second,r.millisecond),x=[["month","getMonth"],["day","getDate"],["hour","getHours"],["minute","getMinutes"],["second","getSeconds"]],O=(p=0,x.length);p<O;p++)if(l[x[p][0]]&&r[x[p][0]]!==y[x[p][1]]())return null;return null==r.timezoneOffset?y:new Date(Date.UTC(r.year,r.month,r.day,r.hour,r.minute-r.timezoneOffset,r.second,r.millisecond))}var V={format:N,parse:z,defaultI18n:I,setGlobalDateI18n:T,setGlobalDateMasks:Y},X=V,H=function(t){return function(e,n,i,a){var o=Object(r["G"])(i)?0:i,s=Object(r["G"])(a)?e.length:a;while(o<s){var l=o+s>>>1;t(e[l])>n?s=l:o=l+1}return o}},W="format";function q(t,e){var n=i[W]||X[W];return n(t,e)}function U(t){return Object(r["M"])(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),Object(r["B"])(t)&&(t=t.getTime()),t}var $=1e3,Z=60*$,Q=60*Z,J=24*Q,K=31*J,tt=365*J,et=[["HH:mm:ss",$],["HH:mm:ss",10*$],["HH:mm:ss",30*$],["HH:mm",Z],["HH:mm",10*Z],["HH:mm",30*Z],["HH",Q],["HH",6*Q],["HH",12*Q],["YYYY-MM-DD",J],["YYYY-MM-DD",4*J],["YYYY-WW",7*J],["YYYY-MM",K],["YYYY-MM",4*K],["YYYY-MM",6*K],["YYYY",380*J]];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["P"])(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["b"])(e,t),e.prototype.translate=function(t){t=U(t);var e=this.values.indexOf(t);return-1===e&&(e=Object(r["I"])(t)&&t<this.values.length?t:NaN),e},e.prototype.getText=function(t,e){var n=this.translate(t);if(n>-1){var i=this.values[n],r=this.formatter;return i=r?r(i,e):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["j"])(e,(function(t,n){e[n]=U(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["b"])(e,t),e.prototype.scale=function(t){if(Object(r["G"])(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["w"])(e),i=Object(r["P"])(e);n<this.min&&(this.min=n),i>this.max&&(this.max=i),Object(r["G"])(this.minLimit)||(this.min=n),Object(r["G"])(this.maxLimit)||(this.max=i)},e.prototype.setDomain=function(){var t=Object(r["r"])(this.values),e=t.min,n=t.max;Object(r["G"])(this.min)&&(this.min=e),Object(r["G"])(this.max)&&(this.max=n),this.min>this.max&&(this.min=e,this.max=n)},e.prototype.calculateTicks=function(){var e=this,n=t.prototype.calculateTicks.call(this);return this.nice||(n=Object(r["l"])(n,(function(t){return t>=e.min&&t<=e.max}))),n},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;return(t-n)/(e-n)},e.prototype.getInvertPercent=function(t){return(t-this.rangeMin())/(this.rangeMax()-this.rangeMin())},e}(c),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["b"])(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),lt=st;function ct(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["G"])(n)&&(n=Math.max.apply(null,t));var i=n;return Object(r["j"])(t,(function(t){t>0&&t<i&&(i=t)})),i===n&&(i=n/e),i>1&&(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["b"])(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<s)return t/s*o}else e=ut(n,this.min);var l=(t-r)/a,c=l*(i-e)+e;return Math.pow(n,c)},e.prototype.initCfg=function(){this.tickMethod="log",this.base=10,this.tickCount=6,this.nice=!0},e.prototype.setDomain=function(){t.prototype.setDomain.call(this);var e=this.min;if(e<0)throw new Error("When you use log scale, the minimum value must be greater than zero!");0===e&&(this.positiveMin=ht(this.values,this.base,this.max))},e.prototype.getScalePercent=function(t){var e=this.max,n=this.min;if(e===n)return 0;if(t<=0)return 0;var i,r=this.base,a=this.positiveMin;return a&&(n=1*a/r),i=t<a?t/a/(ut(r,e)-ut(r,n)):(ut(r,t)-ut(r,n))/(ut(r,e)-ut(r,n)),i},e}(ot),ft=pt,dt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="pow",e}return Object(u["b"])(e,t),e.prototype.invert=function(t){var e=this.getInvertPercent(t),n=this.exponent,i=ct(n,this.max),r=ct(n,this.min),a=e*(i-r)+r,o=a>=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=(ct(i,t)-ct(i,n))/(ct(i,e)-ct(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["b"])(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["M"])(n)||Object(r["B"])(n))&&(n=this.translate(n)),t.prototype.scale.call(this,n)},e.prototype.translate=function(t){return U(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["G"])(e)&&Object(r["I"])(e)||(this.min=this.translate(this.min)),Object(r["G"])(n)&&Object(r["I"])(n)||(this.max=this.translate(this.max)),t&&t.length){var i=[],a=1/0,o=a,s=0;Object(r["j"])(t,(function(t){var e=U(t);if(isNaN(e))throw new TypeError("Invalid Time: "+t+" in time scale!");a>e?(o=a,a=e):o>e&&(o=e),s<e&&(s=e),i.push(e)})),t.length>1&&(this.minTickInterval=o-a),Object(r["G"])(e)&&(this.min=a),Object(r["G"])(n)&&(this.max=s)}},e}(lt),mt=vt,yt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantize",e}return Object(u["b"])(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["P"])(e);if(a<0)return Object(r["w"])(e);var o=e[a],s=e[a+1],l=a/(n-1),c=(a+1)/(n-1);return o+(i-l)/(c-l)*(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["P"])(e)!==this.max&&e.push(this.max),Object(r["w"])(e)!==this.min&&e.unshift(this.min)),e},e.prototype.getScalePercent=function(t){var e=this.ticks;if(t<Object(r["w"])(e))return 0;if(t>Object(r["P"])(e))return 1;var n=0;return Object(r["j"])(e,(function(e,i){if(!(t>=e))return!1;n=i})),n/(e.length-1)},e}(ot),bt=yt,xt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="quantile",e}return Object(u["b"])(e,t),e.prototype.initCfg=function(){this.tickMethod="quantile",this.tickCount=5,this.nice=!0},e}(bt),Ot=xt,jt={};function wt(t){return jt[t]}function Ct(t,e){if(wt(t))throw new Error("type '"+t+"' existed.");jt[t]=e}var Mt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="identity",e.isIdentity=!0,e}return Object(u["b"])(e,t),e.prototype.calculateTicks=function(){return this.values},e.prototype.scale=function(t){return this.values[0]!==t&&Object(r["I"])(t)?t:this.range[0]},e.prototype.invert=function(t){var e=this.range;return t<e[0]||t>e[1]?NaN:this.values[0]},e}(c),St=Mt,It=[1,5,2,2.5,4,3],kt=100*Number.EPSILON;function Tt(t,e){return(t%e+e)%e}function At(t,e,n,i,a,o){var s=Object(r["cb"])(e),l=Object(r["y"])(e,t),c=0,u=Tt(i,o);return(u<kt||o-u<kt)&&i<=0&&a>=0&&(c=1),1-l/(s-1)-n+c}function Lt(t,e,n){var i=Object(r["cb"])(e),a=Object(r["y"])(e,t),o=1;return 1-a/(i-1)-n+o}function Pt(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 Bt(t,e){return t>=e?2-(t-1)/(e-1):1}function Et(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 Ft(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 Dt(){return 1}function _t(t,e,n,i,a,o){if(void 0===n&&(n=5),void 0===i&&(i=!0),void 0===a&&(a=It),void 0===o&&(o=[.25,.2,.5,.05]),"number"!==typeof t||"number"!==typeof e)return{min:0,max:0,ticks:[]};if(t===e||1===n)return{min:t,max:e,ticks:[t]};var s={score:-2,lmin:0,lmax:0,lstep:0},l=1;while(l<1/0){for(var c=0,u=a;c<u.length;c++){var h=u[c],p=Lt(h,a,l);if(Number.isNaN(p))throw new Error("NaN");if(o[0]*p+o[1]+o[2]+o[3]<s.score){l=1/0;break}var f=2;while(f<1/0){var d=Bt(f,n);if(o[0]*p+o[1]+o[2]*d+o[3]<s.score)break;var g=(e-t)/(f+1)/l/h,v=Math.ceil(Math.log10(g));while(v<1/0){var m=l*h*Math.pow(10,v),y=Ft(t,e,m*(f-1));if(o[0]*p+o[1]*y+o[2]*d+o[3]<s.score)break;var b=Math.floor(e/m)*l-(f-1)*l,x=Math.ceil(t/m)*l;if(b>x)v+=1;else{for(var O=b;O<=x;O+=1){var j=O*(m/l),w=j+m*(f-1),C=m,M=At(h,a,l,j,w,C),S=Et(t,e,j,w),I=Pt(f,n,t,e,j,w),k=Dt(),T=o[0]*M+o[1]*S+o[2]*I+o[3]*k;T>s.score&&(!i||j<=t&&w>=e)&&(s.lmin=j,s.lmax=w,s.lstep=C,s.score=T)}v+=1}}f+=1}}l+=1}for(var A=Number.isInteger(s.lstep)?0:Math.ceil(Math.abs(Math.log10(s.lstep))),L=[],P=s.lmin;P<=s.lmax;P+=s.lstep)L.push(P);var B=A?Object(r["R"])(L,(function(t){return Number.parseFloat(t.toFixed(A))})):L;return{min:Math.min(t,Object(r["w"])(B)),max:Math.max(e,Object(r["P"])(B)),ticks:B}}function Rt(t){var e=t.values,n=t.tickInterval,i=t.tickCount,a=e;if(Object(r["I"])(n))return Object(r["l"])(a,(function(t,e){return e%n===0}));var o=t.min,s=t.max;if(Object(r["G"])(o)&&(o=0),Object(r["G"])(s)&&(s=e.length-1),Object(r["I"])(i)&&i<s-o){var l=_t(o,s,i,!1,[1,2,5,3,4,7,6,8,9]).ticks,c=Object(r["l"])(l,(function(t){return t>=o&&t<=s}));return c.map((function(t){return e[t]}))}return e.slice(o,s+1)}function Gt(t){var e=t.min,n=t.max,i=t.nice,r=t.tickCount,a=new Xt;return a.domain([e,n]),i&&a.nice(r),a.ticks(r)}var Yt=5,Nt=Math.sqrt(50),zt=Math.sqrt(10),Vt=Math.sqrt(2),Xt=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=Yt);var i,r=this._domain.slice(),a=0,o=this._domain.length-1,s=this._domain[a],l=this._domain[o];return l<s&&(e=[l,s],s=e[0],l=e[1],n=[o,a],a=n[0],o=n[1]),i=Wt(s,l,t),i>0?(s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i,i=Wt(s,l,t)):i<0&&(s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i,i=Wt(s,l,t)),i>0?(r[a]=Math.floor(s/i)*i,r[o]=Math.ceil(l/i)*i,this.domain(r)):i<0&&(r[a]=Math.ceil(s*i)/i,r[o]=Math.floor(l*i)/i,this.domain(r)),this},t.prototype.ticks=function(t){return void 0===t&&(t=Yt),Ht(this._domain[0],this._domain[this._domain.length-1],t||Yt)},t}();function Ht(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=e<t)&&(r=t,t=e,e=r),0===(o=Wt(t,e,n))||!isFinite(o))return[];if(o>0){t=Math.ceil(t/o),e=Math.floor(e/o),a=new Array(r=Math.ceil(e-t+1));while(++s<r)a[s]=(t+s)*o}else{t=Math.floor(t*o),e=Math.ceil(e*o),a=new Array(r=Math.ceil(t-e+1));while(++s<r)a[s]=(t-s)/o}return i&&a.reverse(),a}function Wt(t,e,n){var i=(e-t)/Math.max(0,n),r=Math.floor(Math.log(i)/Math.LN10),a=i/Math.pow(10,r);return r>=0?(a>=Nt?10:a>=zt?5:a>=Vt?2:1)*Math.pow(10,r):-Math.pow(10,-r)/(a>=Nt?10:a>=zt?5:a>=Vt?2:1)}function qt(t,e,n){var i;return i="ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e),i*e}function Ut(t,e,n){var i=qt(t,n,"floor"),a=qt(e,n,"ceil");i=Object(r["o"])(i,n),a=Object(r["o"])(a,n);for(var o=[],s=i;s<=a;s+=n){var l=Object(r["o"])(s,n);o.push(l)}return{min:i,max:a,ticks:o}}function $t(t,e,n){var i,a=t.minLimit,o=t.maxLimit,s=t.min,l=t.max,c=t.tickCount,u=void 0===c?5:c,h=Object(r["G"])(a)?Object(r["G"])(e)?s:e:a,p=Object(r["G"])(o)?Object(r["G"])(n)?l: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<u;g++)d.push(h+f*g);return d}function Zt(t){var e=t.min,n=t.max,i=t.tickInterval,a=t.minLimit,o=t.maxLimit,s=Gt(t);return Object(r["G"])(a)&&Object(r["G"])(o)?i?Ut(e,n,i).ticks:s:$t(t,Object(r["w"])(s),Object(r["P"])(s))}function Qt(t){var e=t.min,n=t.max,i=t.tickCount,a=t.nice,o=t.tickInterval,s=t.minLimit,l=t.maxLimit,c=_t(e,n,i,a).ticks;return Object(r["G"])(s)&&Object(r["G"])(l)?o?Ut(e,n,o).ticks:c:$t(t,Object(r["w"])(c),Object(r["P"])(c))}function Jt(t){var e,n=t.base,i=t.tickCount,r=t.min,a=t.max,o=t.values,s=ut(n,a);if(r>0)e=Math.floor(ut(n,r));else{var l=ht(o,n,a);e=Math.floor(ut(n,l))}for(var c=s-e,u=Math.ceil(c/i),h=[],p=e;p<s+u;p+=u)h.push(Math.pow(n,p));return r<=0&&h.unshift(0),h}function Kt(t,e,n){void 0===n&&(n=5);var i={max:0,min:0,ticks:[]};if(t===e)return{max:e,min:t,ticks:[t]};var r=1.5,a=.5+1.5*r,o=e-t,s=o/n,l=Math.pow(10,Math.floor(Math.log10(s))),c=l<1?Math.ceil(Math.abs(Math.log10(l))):0,u=l;2*l-s<r*(s-u)&&(u=2*l,5*l-s<a*(s-u)&&(u=5*l,10*l-s<r*(s-u)&&(u=10*l)));var h=Math.ceil(e/u),p=Math.floor(t/u);i.max=Math.max(h*u,e),i.min=Math.min(p*u,t);var f=Number.parseFloat((p*u).toFixed(c));while(f<e)i.ticks.push(f),f+=u,c&&(f=Number.parseFloat(f.toFixed(c)));return i.ticks.push(f),i}function te(t){var e=t.exponent,n=t.tickCount,i=Math.ceil(ct(e,t.max)),r=Math.floor(ct(e,t.min)),a=Kt(r,i,n).ticks;return a.map((function(t){var n=t>=0?1:-1;return Math.pow(t,e)*n}))}function ee(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 ne(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;a<e;a++){var o=a/(e-1);r.push(ee(i,o))}return r}function ie(t){var e=t.min,n=t.max,i=t.tickCount,a=t.tickInterval,o=t.minLimit,s=t.maxLimit,l=Kt(e,n,i).ticks;return Object(r["G"])(o)&&Object(r["G"])(s)?a?Ut(e,n,a).ticks:l:$t(t,Object(r["w"])(l),Object(r["P"])(l))}function re(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickInterval,a=t.tickCount;if(r)a=Math.ceil((n-e)/r);else{r=nt(e,n,a)[1];var o=(n-e)/r,s=o/a;s>1&&(r*=Math.ceil(s)),i&&r<i&&(r=i)}for(var l=[],c=e;c<n+r;c+=r)l.push(c);return l}function ae(t){var e=Rt(t),n=Object(r["P"])(t.values);return n!==Object(r["P"])(e)&&e.push(n),e}function oe(t){return new Date(t).getFullYear()}function se(t){return new Date(t,0,1).getTime()}function le(t){return new Date(t).getMonth()}function ce(t,e){var n=oe(t),i=oe(e),r=le(t),a=le(e);return 12*(i-n)+(a-r)%12}function ue(t,e){return new Date(t,e,1).getTime()}function he(t,e){return Math.ceil((e-t)/J)}function pe(t,e){return Math.ceil((e-t)/Q)}function fe(t,e){return Math.ceil((e-t)/6e4)}function de(t){var e=t.min,n=t.max,i=t.minTickInterval,r=t.tickCount,a=t.tickInterval,o=[];a||(a=(n-e)/r,i&&a<i&&(a=i));var s=oe(e);if(a>tt)for(var l=oe(n),c=Math.ceil(a/tt),u=s;u<=l+c;u+=c)o.push(se(u));else if(a>K){var h=Math.ceil(a/K),p=le(e),f=ce(e,n);for(u=0;u<=f+h;u+=h)o.push(ue(s,u+p))}else if(a>J){var d=new Date(e),g=d.getFullYear(),v=d.getMonth(),m=d.getDate(),y=Math.ceil(a/J),b=he(e,n);for(u=0;u<b+y;u+=y)o.push(new Date(g,v,m+u).getTime())}else if(a>Q){d=new Date(e),g=d.getFullYear(),v=d.getMonth(),y=d.getDate();var x=d.getHours(),O=Math.ceil(a/Q),j=pe(e,n);for(u=0;u<=j+O;u+=O)o.push(new Date(g,v,y,x+u).getTime())}else if(a>Z){var w=fe(e,n),C=Math.ceil(a/Z);for(u=0;u<=w+C;u+=C)o.push(e+u*Z)}else{var M=a;M<$&&(M=$);var S=Math.floor(e/$)*$,I=Math.ceil((n-e)/$),k=Math.ceil(M/$);for(u=0;u<I+k;u+=k)o.push(S+u*$)}return o.length,o}s("cat",Rt),s("time-cat",ae),s("wilkinson-extended",Qt),s("r-pretty",ie),s("time",re),s("time-pretty",de),s("log",Jt),s("pow",te),s("quantile",ne),s("d3-linear",Zt),Ct("cat",p),Ct("category",p),Ct("identity",St),Ct("linear",lt),Ct("log",ft),Ct("pow",gt),Ct("time",mt),Ct("timeCat",rt),Ct("quantize",bt),Ct("quantile",Ot)},f462:function(t,e,n){},f5e5:function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),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 m})),n.d(e,"f",(function(){return b})),n.d(e,"g",(function(){return x}));var i=n("8937"),r=n("af40"),a=n("9c29"),o=n("7326"),s=n("9f27"),l={fill:"fillStyle",stroke:"strokeStyle",opacity:"globalAlpha"};function c(t,e){var n=e.attr();for(var a in n){var o=n[a],s=l[a]?l[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["z"])(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<e.length;i++){var r=e[i];r.cfg.visible?r.draw(t,n):r.skipDraw()}}function h(t,e,n){var r=t.get("refreshElements");Object(i["j"])(r,(function(e){if(e!==t){var n=e.cfg.parent;while(n&&n!==t&&!n.cfg.refresh)n.cfg.refresh=!0,n=n.cfg.parent}})),r[0]===t?d(e,n):p(e,n)}function p(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.cfg.visible)if(i.cfg.hasChanged)i.cfg.refresh=!0,i.isGroup()&&d(i.cfg.children,e);else if(i.cfg.refresh)i.isGroup()&&p(i.cfg.children,e);else{var r=g(i,e);i.cfg.refresh=r,r&&i.isGroup()&&p(i.cfg.children,e)}}}function f(t){for(var e=0;e<t.length;e++){var n=t[e];n.cfg.hasChanged=!1,n.isGroup()&&!n.destroyed&&f(n.cfg.children)}}function d(t,e){for(var n=0;n<t.length;n++){var i=t[n];i.cfg.refresh=!0,i.isGroup()&&d(i.get("children"),e)}}function g(t,e){var n=t.cfg.cacheCanvasBBox,i=t.cfg.isInView&&n&&Object(o["f"])(n,e);return i}function v(t,e,n,i){var r=n.path,o=n.startArrow,l=n.endArrow;if(r){var c=[0,0],u=[0,0],h={dx:0,dy:0};e.beginPath();for(var p=0;p<r.length;p++){var f=r[p],d=f[0];if(0===p&&o&&o.d){var g=t.getStartTangent();h=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],o.d)}else if(p===r.length-2&&"Z"===r[p+1][0]&&l&&l.d){var v=r[p+1];if("Z"===v[0]){g=t.getEndTangent();h=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],l.d)}}else if(p===r.length-1&&l&&l.d&&"Z"!==r[0]){g=t.getEndTangent();h=s["c"](g[0][0],g[0][1],g[1][0],g[1][1],l.d)}var m=h.dx,y=h.dy;switch(d){case"M":e.moveTo(f[1]-m,f[2]-y),u=[f[1],f[2]];break;case"L":e.lineTo(f[1]-m,f[2]-y);break;case"Q":e.quadraticCurveTo(f[1],f[2],f[3]-m,f[4]-y);break;case"C":e.bezierCurveTo(f[1],f[2],f[3],f[4],f[5]-m,f[6]-y);break;case"A":var b=void 0;i?(b=i[p],b||(b=Object(a["a"])(c,f),i[p]=b)):b=Object(a["a"])(c,f);var x=b.cx,O=b.cy,j=b.rx,w=b.ry,C=b.startAngle,M=b.endAngle,S=b.xRotation,I=b.sweepFlag;if(e.ellipse)e.ellipse(x,O,j,w,S,C,M,1-I);else{var k=j>w?j:w,T=j>w?1:j/w,A=j>w?w/j:1;e.translate(x,O),e.rotate(S),e.scale(T,A),e.arc(0,0,k,C,M,1-I),e.scale(1/T,1/A),e.rotate(-S),e.translate(-x,-O)}break;case"Z":e.closePath();break;default:break}if("Z"===d)c=u;else{var L=f.length;c=[f[L-2],f[L-1]]}}}}function m(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 y(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 b(t){if(!t.length)return null;var e=[],n=[],r=[],a=[];return Object(i["j"])(t,(function(t){var i=y(t);i&&(e.push(i.minX),n.push(i.minY),r.push(i.maxX),a.push(i.maxY))})),{minX:Math.min.apply(null,e),minY:Math.min.apply(null,n),maxX:Math.max.apply(null,r),maxY:Math.max.apply(null,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["p"](t),n=this,a=n.xField,o=n.yField,s=this.getXValuesMaxMap(e),l=Math.max.apply(Math,Object.keys(s).map((function(t){return s[t]})));return r["R"](t,(function(t){return r["R"](t,(function(t){var e,n,c=t[o],u=t[a];if(r["z"](c)){var h=(l-s[u])/2;return Object(i["a"])(Object(i["a"])({},t),(e={},e[o]=r["R"](c,(function(t){return h+t})),e))}var p=(l-c)/2;return Object(i["a"])(Object(i["a"])({},t),(n={},n[o]=[p,c+p],n))}))}))},e.prototype.getXValuesMaxMap=function(t){var e=this,n=this,i=n.xField,a=n.yField,o=r["t"](t,(function(t){return t[i]}));return r["S"](o,(function(t){return e.getDimMaxValue(t,a)}))},e.prototype.getDimMaxValue=function(t,e){var n=r["R"](t,(function(t){return r["q"](t,e,[])})),i=r["p"](n);return Math.max.apply(Math,i)},e}(a["a"]);e["a"]=o},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["b"])(e,t),e.prototype.isGroup=function(){return!0},e.prototype.isEntityGroup=function(){return!1},e.prototype.clone=function(){for(var e=t.prototype.clone.call(this),n=this.getChildren(),i=0;i<n.length;i++){var r=n[i];e.add(r.clone())}return e},e}(r["a"]);e["a"]=a},f948:function(t,e,n){"use strict";n("be80")},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 w}));var i,r=n("9ab4"),a=n("e546"),o=n("8937"),s=n("31e6"),l=n("8ea8"),c=n("2f5e"),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{name:"crosshair",type:"base",line:{},text:null,textBackground:{},capture:!1,defaultCfg:{line:{style:{lineWidth:1,stroke:c["a"].lineColor}},text:{position:"start",offset:10,autoRotate:!1,content:null,style:{fill:c["a"].textColor,textAlign:"center",textBaseline:"middle",fontFamily:c["a"].fontFamily}},textBackground:{padding:5,style:{stroke:c["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["G"])(a)){var s=this.getTextPoint(),c=null;if(i){var u=this.getRotateAngle();c=Object(l["e"])(s,u)}this.addShape(t,{type:"text",name:"crosshair-text",id:this.getElementId("text"),attrs:Object(r["a"])(Object(r["a"])(Object(r["a"])({},s),{text:a,matrix:c}),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["a"])({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),l=i.style,c=this.addShape(t,{type:"rect",name:"crosshair-text-background",id:this.getElementId("text-background"),attrs:Object(r["a"])({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")},l)});c.toBack()}},e}(s["a"]),h=u,p=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{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["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{type:"circle",locationType:"circle",center:null,radius:100,startAngle:-Math.PI/2,endAngle:3*Math.PI/2})},e.prototype.getRotateAngle=function(){var t=this.getLocation(),e=t.startAngle,n=t.endAngle,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,l=i.endAngle,c="start"===e?s:l,u=this.getRotateAngle()-Math.PI,h=Object(a["e"])(r,o,c),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,l=e.y;o=[["M",s,l-n],["A",n,n,0,1,1,s,l+n],["A",n,n,0,1,1,s,l-n],["Z"]]}else{var c=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",c.x,c.y],["A",n,n,0,h,p,u.x,u.y]]}return o},e}(h),g=d,v=n("7c8a"),m=n("75ed"),y="g2-crosshair",b=y+"-line",x=y+"-text",O=(i={},i[""+y]={position:"relative"},i[""+b]={position:"absolute",backgroundColor:"rgba(0, 0, 0, 0.25)"},i[""+x]={position:"absolute",color:c["a"].textColor,fontFamily:c["a"].fontFamily},i),j=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r["b"])(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return Object(r["a"])(Object(r["a"])({},e),{name:"crosshair",type:"html",locationType:"region",start:{x:0,y:0},end:{x:0,y:0},capture:!1,text:null,containerTpl:'<div class="'+y+'"></div>',crosshairTpl:'<div class="'+b+'"></div>',textTpl:'<span class="'+x+'">{content}</span>',domStyles:null,containerClassName:y,defaultStyles:O,defaultCfg:{text:{position:"start",content:null,align:"center",offset:10}}})},e.prototype.render=function(){this.resetText(),this.resetPosition()},e.prototype.initCrossHair=function(){var t=this.getContainer(),e=this.get("crosshairTpl"),n=Object(v["b"])(e);t.appendChild(n),this.applyStyle(b,n),this.set("crosshairEl",n)},e.prototype.getTextPoint=function(){var t=this.getLocation(),e=t.start,n=t.end,i=this.get("text"),r=i.position,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["eb"])(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["v"])(e,"text")&&this.resetText(),t.prototype.updateInner.call(this,e)},e}(m["a"]),w=j}}]);