!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=567)}([function(t,e,n){"use strict";t.exports=n(796)},function(t,e,n){var r=n(20),o=n(94),i=n(57),a=n(58),s=n(73),u=function(t,e,n){var c,l,f,p,h=t&u.F,d=t&u.G,v=t&u.S,m=t&u.P,g=t&u.B,y=d?r:v?r[e]||(r[e]={}):(r[e]||{}).prototype,b=d?o:o[e]||(o[e]={}),x=b.prototype||(b.prototype={});d&&(n=e);for(c in n)l=!h&&y&&void 0!==y[c],f=(l?y:n)[c],p=g&&l?s(f,r):m&&"function"==typeof f?s(Function.call,f):f,y&&a(y,c,f,t&u.U),b[c]!=f&&i(b,c,p),m&&x[c]!=f&&(x[c]=f)};r.core=o,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){t.exports=n(797)()},function(t,e,n){"use strict";e.__esModule=!0;var r=n(857),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default||function(t){for(var e=1;e1){for(var l=new Array(u),f=0;f0?o(r(t),9007199254740991):0}},function(t,e,n){t.exports=n(466),t.exports.routerRedux=n(433)},function(t,e,n){"use strict";var r=function(t,e,n,r,o,i,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error(e.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},function(t,e,n){var r=n(82);t.exports=function(t){return Object(r(t))}},function(t,e,n){function r(t,e){if(null==t)return{};var n,r,a={},s=i(t);for(r=0;r=0||(a[n]=t[n]);if(o){var u=o(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(a[n]=t[n])}return a}var o=n(413),i=n(42);t.exports=r},function(t,e,n){"use strict";var r=n(18),o=(n.n(r),n(1202));n.n(o),n(156)},function(t,e,n){"use strict";function r(t){var e=void 0,n=function(n){return function(){e=null,t.apply(void 0,P()(n))}},r=function(){for(var t=arguments.length,r=Array(t),o=0;o=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a},R=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o=936&&!this.state.widerPadding&&this.setState({widerPadding:!0},function(){t.updateWiderPaddingCalled=!0}),this.container.offsetWidth<936&&this.state.widerPadding&&this.setState({widerPadding:!1},function(){t.updateWiderPaddingCalled=!0})}}},{key:"isContainGrid",value:function(){var t=void 0;return y.Children.forEach(this.props.children,function(e){e&&e.type&&e.type===S&&(t=!0)}),t}},{key:"getAction",value:function(t){return t&&t.length?t.map(function(e,n){return y.createElement("li",{style:{width:100/t.length+"%"},key:"action-"+n},y.createElement("span",null,e))}):null}},{key:"getCompatibleHoverable",value:function(){var t=this.props,e=t.noHovering,n=t.hoverable;return"noHovering"in this.props?!e||n:!!n}},{key:"render",value:function(){var t,e=this.props,n=e.prefixCls,r=void 0===n?"ant-card":n,o=e.className,a=e.extra,u=e.bodyStyle,c=(e.noHovering,e.hoverable,e.title),l=e.loading,f=e.bordered,p=void 0===f||f,h=e.type,d=e.cover,v=e.actions,m=e.tabList,g=e.children,b=e.activeTabKey,_=e.defaultActiveTabKey,O=R(e,["prefixCls","className","extra","bodyStyle","noHovering","hoverable","title","loading","bordered","type","cover","actions","tabList","children","activeTabKey","defaultActiveTabKey"]),S=x()(r,o,(t={},s()(t,r+"-loading",l),s()(t,r+"-bordered",p),s()(t,r+"-hoverable",this.getCompatibleHoverable()),s()(t,r+"-wider-padding",this.state.widerPadding),s()(t,r+"-padding-transition",this.updateWiderPaddingCalled),s()(t,r+"-contain-grid",this.isContainGrid()),s()(t,r+"-contain-tabs",m&&m.length),s()(t,r+"-type-"+h,!!h),t)),C=y.createElement("div",{className:r+"-loading-content"},y.createElement(E.a,{gutter:8},y.createElement(M.a,{span:22},y.createElement("div",{className:r+"-loading-block"}))),y.createElement(E.a,{gutter:8},y.createElement(M.a,{span:8},y.createElement("div",{className:r+"-loading-block"})),y.createElement(M.a,{span:15},y.createElement("div",{className:r+"-loading-block"}))),y.createElement(E.a,{gutter:8},y.createElement(M.a,{span:6},y.createElement("div",{className:r+"-loading-block"})),y.createElement(M.a,{span:18},y.createElement("div",{className:r+"-loading-block"}))),y.createElement(E.a,{gutter:8},y.createElement(M.a,{span:13},y.createElement("div",{className:r+"-loading-block"})),y.createElement(M.a,{span:9},y.createElement("div",{className:r+"-loading-block"}))),y.createElement(E.a,{gutter:8},y.createElement(M.a,{span:4},y.createElement("div",{className:r+"-loading-block"})),y.createElement(M.a,{span:3},y.createElement("div",{className:r+"-loading-block"})),y.createElement(M.a,{span:16},y.createElement("div",{className:r+"-loading-block"}))),y.createElement(E.a,{gutter:8},y.createElement(M.a,{span:8},y.createElement("div",{className:r+"-loading-block"})),y.createElement(M.a,{span:6},y.createElement("div",{className:r+"-loading-block"})),y.createElement(M.a,{span:8},y.createElement("div",{className:r+"-loading-block"})))),k=void 0!==b,T=s()({},k?"activeKey":"defaultActiveKey",k?b:_),P=void 0,N=m&&m.length?y.createElement(j.a,i()({},T,{className:r+"-head-tabs",size:"large",onChange:this.onTabChange}),m.map(function(t){return y.createElement(j.a.TabPane,{tab:t.tab,key:t.key})})):null;(c||a||N)&&(P=y.createElement("div",{className:r+"-head"},y.createElement("div",{className:r+"-head-wrapper"},c&&y.createElement("div",{className:r+"-head-title"},c),a&&y.createElement("div",{className:r+"-extra"},a)),N));var A=d?y.createElement("div",{className:r+"-cover"},d):null,D=y.createElement("div",{className:r+"-body",style:u},l?C:g),I=v&&v.length?y.createElement("ul",{className:r+"-actions"},this.getAction(v)):null,L=Object(w.a)(O,["onTabChange"]);return y.createElement("div",i()({},L,{className:S,ref:this.saveRef}),P,A,D,I)}}]),e}(y.Component);e.a=L;L.Grid=S,L.Meta=k,I([function(){return function(t,e,n){var o=n.value,i=!1;return{configurable:!0,get:function(){if(i||this===t.prototype||this.hasOwnProperty(e))return o;var n=r(o.bind(this));return i=!0,Object.defineProperty(this,e,{value:n,configurable:!0,writable:!0}),i=!1,n}}}}()],L.prototype,"updateWiderPadding",null)},function(t,e,n){t.exports=n(418)},function(t,e,n){t.exports=n(445)},function(t,e,n){"use strict";var r=n(258);e.a=r.b},function(t,e,n){"use strict";var r=n(258);e.a=r.a},function(t,e,n){"use strict";var r=n(18),o=(n.n(r),n(362));n.n(o)},function(t,e,n){"use strict";var r=n(18),o=(n.n(r),n(362));n.n(o)},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){function r(t){return o(t)||i(t)||a()}var o=n(788),i=n(789),a=n(795);t.exports=r},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var o=n(866),i=r(o),a=n(867),s=r(a),u="function"==typeof s.default&&"symbol"==typeof i.default?function(t){return typeof t}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":typeof t};e.default="function"==typeof s.default&&"symbol"===u(i.default)?function(t){return void 0===t?"undefined":u(t)}:function(t){return t&&"function"==typeof s.default&&t.constructor===s.default&&t!==s.default.prototype?"symbol":void 0===t?"undefined":u(t)}},function(t,e,n){var r=n(490),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){"use strict";var r=n(18),o=(n.n(r),n(1165));n.n(o),n(28)},function(t,e){function n(t){return t&&t.__esModule?t:{default:t}}t.exports=n},function(t,e,n){var r=n(303)("wks"),o=n(211),i=n(60).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){function n(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}t.exports=n},function(t,e,n){var r=n(34),o=n(117);t.exports=n(33)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(20),o=n(57),i=n(63),a=n(118)("src"),s=Function.toString,u=(""+s).split("toString");n(94).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var c="function"==typeof n;c&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(c&&(i(n,a)||o(n,a,t[e]?""+t[e]:u.join(String(e)))),t===r?t[e]=n:s?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},function(t,e,n){var r=n(1),o=n(22),i=n(82),a=/"/g,s=function(t,e,n,r){var o=String(i(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(r).replace(a,""")+'"'),s+">"+o+""};t.exports=function(t,e){var n={};n[t]=e(s),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e,n){function r(t,e,n){return e in t?o(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=n(301);t.exports=r},function(t,e,n){"use strict";function r(t,e){for(var n=i()({},t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},e=t.arrowWidth,n=void 0===e?5:e,o=t.horizontalArrowShift,i=void 0===o?16:o,a=t.verticalArrowShift,s=void 0===a?12:a,u=t.autoAdjustOverflow,c=void 0===u||u,l={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(i+n),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(s+n)]},topRight:{points:["br","tc"],offset:[i+n,-4]},rightTop:{points:["tl","cr"],offset:[4,-(s+n)]},bottomRight:{points:["tr","bc"],offset:[i+n,4]},rightBottom:{points:["bl","cr"],offset:[4,s+n]},bottomLeft:{points:["tl","bc"],offset:[-(i+n),4]},leftBottom:{points:["br","cl"],offset:[-4,s+n]}};return Object.keys(l).forEach(function(e){l[e]=t.arrowPointAtCenter?m()({},l[e],{overflow:r(c),targetOffset:D}):m()({},k[e],{overflow:r(c)})}),l}var i=n(10),a=n.n(i),s=n(4),u=n.n(s),c=n(8),l=n.n(c),f=n(5),p=n.n(f),h=n(6),d=n.n(h),v=n(3),m=n.n(v),g=n(0),y=n.n(g),b=n(50),x=n.n(b),_=n(2),w=n.n(_),O=n(152),S={adjustX:1,adjustY:1},C=[0,0],k={left:{points:["cr","cl"],overflow:S,offset:[-4,0],targetOffset:C},right:{points:["cl","cr"],overflow:S,offset:[4,0],targetOffset:C},top:{points:["bc","tc"],overflow:S,offset:[0,-4],targetOffset:C},bottom:{points:["tc","bc"],overflow:S,offset:[0,4],targetOffset:C},topLeft:{points:["bl","tl"],overflow:S,offset:[0,-4],targetOffset:C},leftTop:{points:["tr","tl"],overflow:S,offset:[-4,0],targetOffset:C},topRight:{points:["br","tr"],overflow:S,offset:[0,-4],targetOffset:C},rightTop:{points:["tl","tr"],overflow:S,offset:[4,0],targetOffset:C},bottomRight:{points:["tr","br"],overflow:S,offset:[0,4],targetOffset:C},rightBottom:{points:["bl","br"],overflow:S,offset:[4,0],targetOffset:C},bottomLeft:{points:["tl","bl"],overflow:S,offset:[0,4],targetOffset:C},leftBottom:{points:["br","bl"],overflow:S,offset:[-4,0],targetOffset:C}},j=function(t){function e(){var n,r,o;u()(this,e);for(var i=arguments.length,a=Array(i),s=0;s=0||o.indexOf("Bottom")>=0?a.top=i.height-e.offset[1]+"px":(o.indexOf("Top")>=0||o.indexOf("bottom")>=0)&&(a.top=-e.offset[1]+"px"),o.indexOf("left")>=0||o.indexOf("Right")>=0?a.left=i.width-e.offset[0]+"px":(o.indexOf("right")>=0||o.indexOf("Left")>=0)&&(a.left=-e.offset[0]+"px"),t.style.transformOrigin=a.left+" "+a.top}},n.saveTooltip=function(t){n.tooltip=t},n.state={visible:!!t.visible||!!t.defaultVisible},n}return d()(e,t),l()(e,[{key:"componentWillReceiveProps",value:function(t){"visible"in t&&this.setState({visible:t.visible})}},{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"getPlacements",value:function(){var t=this.props,e=t.builtinPlacements,n=t.arrowPointAtCenter,r=t.autoAdjustOverflow;return e||o({arrowPointAtCenter:n,verticalArrowShift:8,autoAdjustOverflow:r})}},{key:"isHoverTrigger",value:function(){var t=this.props.trigger;return!t||"hover"===t||!!Array.isArray(t)&&t.indexOf("hover")>=0}},{key:"getDisabledCompatibleChildren",value:function(t){if((t.type.__ANT_BUTTON||"button"===t.type)&&t.props.disabled&&this.isHoverTrigger()){var e=I(t.props.style,["position","left","right","top","bottom","float","display","zIndex"]),n=e.picked,r=e.omitted,o=m()({display:"inline-block"},n,{cursor:"not-allowed"}),i=m()({},r,{pointerEvents:"none"}),a=Object(g.cloneElement)(t,{style:i,className:null});return g.createElement("span",{style:o,className:t.props.className},a)}return t}},{key:"isNoTitle",value:function(){var t=this.props,e=t.title,n=t.overlay;return!e&&!n}},{key:"render",value:function(){var t=this.props,e=this.state,n=t.prefixCls,r=t.title,o=t.overlay,i=t.openClassName,s=t.getPopupContainer,u=t.getTooltipContainer,c=t.children,l=e.visible;"visible"in t||!this.isNoTitle()||(l=!1);var f=this.getDisabledCompatibleChildren(g.isValidElement(c)?c:g.createElement("span",null,c)),p=f.props,h=P()(p.className,a()({},i||n+"-open",!0));return g.createElement(M,m()({},this.props,{getTooltipContainer:s||u,ref:this.saveTooltip,builtinPlacements:this.getPlacements(),overlay:o||r||"",visible:l,onVisibleChange:this.onVisibleChange,onPopupAlign:this.onPopupAlign}),l?Object(g.cloneElement)(f,{className:h}):f)}}]),e}(g.Component);e.a=R;R.defaultProps={prefixCls:"ant-tooltip",placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0}},function(t,e,n){"use strict";function r(t){return void 0===t||null===t?"":t}function o(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.getAttribute("id")||t.getAttribute("data-reactid")||t.getAttribute("name");if(e&&L[n])return L[n];var r=window.getComputedStyle(t),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=R.map(function(t){return t+":"+r.getPropertyValue(t)}).join(";"),u={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return e&&n&&(L[n]=u),u}function i(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;F||(F=document.createElement("textarea"),document.body.appendChild(F)),t.getAttribute("wrap")?F.setAttribute("wrap",t.getAttribute("wrap")):F.removeAttribute("wrap");var i=o(t,e),a=i.paddingSize,s=i.borderSize,u=i.boxSizing,c=i.sizingStyle;F.setAttribute("style",c+";"+I),F.value=t.value||t.placeholder||"";var l=Number.MIN_SAFE_INTEGER,f=Number.MAX_SAFE_INTEGER,p=F.scrollHeight,h=void 0;if("border-box"===u?p+=s:"content-box"===u&&(p-=a),null!==n||null!==r){F.value=" ";var d=F.scrollHeight-a;null!==n&&(l=d*n,"border-box"===u&&(l=l+a+s),p=Math.max(l,p)),null!==r&&(f=d*r,"border-box"===u&&(f=f+a+s),h=p>f?"":"hidden",p=Math.min(f,p))}return r||(h="hidden"),{height:p,minHeight:l,maxHeight:f,overflowY:h}}function a(t){return window.requestAnimationFrame?window.requestAnimationFrame(t):window.setTimeout(t,1)}function s(t){window.cancelAnimationFrame?window.cancelAnimationFrame(t):window.clearTimeout(t)}var u=n(3),c=n.n(u),l=n(10),f=n.n(l),p=n(4),h=n.n(p),d=n(8),v=n.n(d),m=n(5),g=n.n(m),y=n(6),b=n.n(y),x=n(0),_=n(2),w=n.n(_),O=n(7),S=n.n(O),C=n(62),k=function(t){function e(){h()(this,e);var t=g()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.handleKeyDown=function(e){var n=t.props,r=n.onPressEnter,o=n.onKeyDown;13===e.keyCode&&r&&r(e),o&&o(e)},t.saveInput=function(e){t.input=e},t}return b()(e,t),v()(e,[{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"getInputClassName",value:function(){var t,e=this.props,n=e.prefixCls,r=e.size,o=e.disabled;return S()(n,(t={},f()(t,n+"-sm","small"===r),f()(t,n+"-lg","large"===r),f()(t,n+"-disabled",o),t))}},{key:"renderLabeledInput",value:function(t){var e,n=this.props;if(!n.addonBefore&&!n.addonAfter)return t;var r=n.prefixCls+"-group",o=r+"-addon",i=n.addonBefore?x.createElement("span",{className:o},n.addonBefore):null,a=n.addonAfter?x.createElement("span",{className:o},n.addonAfter):null,s=S()(n.prefixCls+"-wrapper",f()({},r,i||a)),u=S()(n.prefixCls+"-group-wrapper",(e={},f()(e,n.prefixCls+"-group-wrapper-sm","small"===n.size),f()(e,n.prefixCls+"-group-wrapper-lg","large"===n.size),e));return i||a?x.createElement("span",{className:u,style:n.style},x.createElement("span",{className:s},i,x.cloneElement(t,{style:null}),a)):x.createElement("span",{className:s},i,t,a)}},{key:"renderLabeledIcon",value:function(t){var e,n=this.props;if(!("prefix"in n||"suffix"in n))return t;var r=n.prefix?x.createElement("span",{className:n.prefixCls+"-prefix"},n.prefix):null,o=n.suffix?x.createElement("span",{className:n.prefixCls+"-suffix"},n.suffix):null,i=S()(n.className,n.prefixCls+"-affix-wrapper",(e={},f()(e,n.prefixCls+"-affix-wrapper-sm","small"===n.size),f()(e,n.prefixCls+"-affix-wrapper-lg","large"===n.size),e));return x.createElement("span",{className:i,style:n.style},r,x.cloneElement(t,{style:null,className:this.getInputClassName()}),o)}},{key:"renderInput",value:function(){var t=this.props,e=t.value,n=t.className,o=Object(C.a)(this.props,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix"]);return"value"in this.props&&(o.value=r(e),delete o.defaultValue),this.renderLabeledIcon(x.createElement("input",c()({},o,{className:S()(this.getInputClassName(),n),onKeyDown:this.handleKeyDown,ref:this.saveInput})))}},{key:"render",value:function(){return this.renderLabeledInput(this.renderInput())}}]),e}(x.Component),j=k;k.defaultProps={prefixCls:"ant-input",type:"text",disabled:!1},k.propTypes={type:w.a.string,id:w.a.oneOfType([w.a.string,w.a.number]),size:w.a.oneOf(["small","default","large"]),maxLength:w.a.oneOfType([w.a.string,w.a.number]),disabled:w.a.bool,value:w.a.any,defaultValue:w.a.any,className:w.a.string,addonBefore:w.a.node,addonAfter:w.a.node,prefixCls:w.a.string,autosize:w.a.oneOfType([w.a.bool,w.a.object]),onPressEnter:w.a.func,onKeyDown:w.a.func,onKeyUp:w.a.func,onFocus:w.a.func,onBlur:w.a.func,prefix:w.a.node,suffix:w.a.node};var E=function(t){var e,n=t.prefixCls,r=void 0===n?"ant-input-group":n,o=t.className,i=void 0===o?"":o,a=S()(r,(e={},f()(e,r+"-lg","large"===t.size),f()(e,r+"-sm","small"===t.size),f()(e,r+"-compact",t.compact),e),i);return x.createElement("span",{className:a,style:t.style},t.children)},M=E,T=n(16),P=n(27),N=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o0){var d=[];t=s.map(function(t){t.path=t.path||"";var e=t.path.replace(/^\//,"");return Object.keys(c).forEach(function(t){e=e.replace(":"+t,c[t])}),e&&d.push(e),p.createElement(T,{separator:n,key:t.breadcrumbName||e},h(t,c,s,d))})}else l&&(t=p.Children.map(l,function(t,e){return t?(Object(C.a)(t.type&&t.type.__ANT_BREADCRUMB_ITEM,"Breadcrumb only accepts Breadcrumb.Item as it's children"),Object(p.cloneElement)(t,{separator:n,key:e})):t}));return p.createElement("div",{className:N()(a,r),style:i},t)}}]),e}(p.Component),D=A;A.defaultProps={prefixCls:"ant-breadcrumb",separator:"/"},A.propTypes={prefixCls:S.a.string,separator:S.a.node,routes:S.a.array,params:S.a.object,linkRender:S.a.func,nameRender:S.a.func},D.Item=T;var I=D,R=n(61),L=n.n(R),F=n(13),z=n.n(F),V=n(11),Y=n.n(V),B=n(12),W=n.n(B),H=n(14),U=n.n(H),G=n(15),q=n.n(G),K=n(42),X=n.n(K),Z=(n(156),n(157)),$=n(332),Q=n.n($),J=n(1230),tt=n.n(J),et=n(546),nt=Z.a.TabPane,rt=function(t){function e(){var t,n,r;Y()(this,e);for(var o=arguments.length,a=new Array(o),u=0;u=i)return t;switch(t){case"%s":return String(e[r++]);case"%d":return Number(e[r++]);case"%j":try{return JSON.stringify(e[r++])}catch(t){return"[Circular]"}break;default:return t}}),s=e[r];r-1?zt[s](e)||o.push(r(i.messages.types[s],t.fullField,t.type)):s&&(void 0===e?"undefined":At()(e))!==t.type&&o.push(r(i.messages.types[s],t.fullField,t.type))}function v(t,e,n,o,i){var a="number"==typeof t.len,s="number"==typeof t.min,u="number"==typeof t.max,c=e,l=null,f="number"==typeof e,p="string"==typeof e,h=Array.isArray(e);if(f?l="number":p?l="string":h&&(l="array"),!l)return!1;(p||h)&&(c=e.length),a?c!==t.len&&o.push(r(i.messages[l].len,t.fullField,t.len)):s&&!u&&ct.max?o.push(r(i.messages[l].max,t.fullField,t.max)):s&&u&&(ct.max)&&o.push(r(i.messages[l].range,t.fullField,t.min,t.max))}function m(t,e,n,o,i){t[Bt]=Array.isArray(t[Bt])?t[Bt]:[],-1===t[Bt].indexOf(e)&&o.push(r(i.messages[Bt],t.fullField,t[Bt].join(", ")))}function g(t,e,n,o,i){if(t.pattern)if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(e)||o.push(r(i.messages.pattern.mismatch,t.fullField,e,t.pattern));else if("string"==typeof t.pattern){var a=new RegExp(t.pattern);a.test(e)||o.push(r(i.messages.pattern.mismatch,t.fullField,e,t.pattern))}}function y(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e,"string")&&!t.required)return n();Ut.required(t,e,r,a,o,"string"),i(e,"string")||(Ut.type(t,e,r,a,o),Ut.range(t,e,r,a,o),Ut.pattern(t,e,r,a,o),!0===t.whitespace&&Ut.whitespace(t,e,r,a,o))}n(a)}function b(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),void 0!==e&&Ut.type(t,e,r,a,o)}n(a)}function x(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),void 0!==e&&(Ut.type(t,e,r,a,o),Ut.range(t,e,r,a,o))}n(a)}function _(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),void 0!==e&&Ut.type(t,e,r,a,o)}n(a)}function w(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),i(e)||Ut.type(t,e,r,a,o)}n(a)}function O(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),void 0!==e&&(Ut.type(t,e,r,a,o),Ut.range(t,e,r,a,o))}n(a)}function S(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),void 0!==e&&(Ut.type(t,e,r,a,o),Ut.range(t,e,r,a,o))}n(a)}function C(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e,"array")&&!t.required)return n();Ut.required(t,e,r,a,o,"array"),i(e,"array")||(Ut.type(t,e,r,a,o),Ut.range(t,e,r,a,o))}n(a)}function k(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),void 0!==e&&Ut.type(t,e,r,a,o)}n(a)}function j(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),e&&Ut[ee](t,e,r,a,o)}n(a)}function E(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e,"string")&&!t.required)return n();Ut.required(t,e,r,a,o),i(e,"string")||Ut.pattern(t,e,r,a,o)}n(a)}function M(t,e,n,r,o){var a=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e)&&!t.required)return n();Ut.required(t,e,r,a,o),i(e)||(Ut.type(t,e,r,a,o),e&&Ut.range(t,e.getTime(),r,a,o))}n(a)}function T(t,e,n,r,o){var i=[],a=Array.isArray(e)?"array":void 0===e?"undefined":At()(e);Ut.required(t,e,r,i,o,a),n(i)}function P(t,e,n,r,o){var a=t.type,s=[];if(t.required||!t.required&&r.hasOwnProperty(t.field)){if(i(e,a)&&!t.required)return n();Ut.required(t,e,r,s,o,a),i(e,a)||Ut.type(t,e,r,s,o)}n(s)}function N(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}function A(t){this.rules=null,this._messages=ue,this.define(t)}function D(t){return t instanceof de}function I(t){return D(t)?t:new de(t)}function R(t){return t.displayName||t.name||"WrappedComponent"}function L(t,e){return t.displayName="Form("+R(e)+")",t.WrappedComponent=e,me()(t,e)}function F(t){return t}function z(t){return Array.prototype.concat.apply([],t)}function V(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments[1],n=arguments[2],r=arguments[3],o=arguments[4];if(n(t,e))o(t,e);else{if(void 0===e)return;if(Array.isArray(e))e.forEach(function(e,i){return V(t+"["+i+"]",e,n,r,o)});else{if("object"!==(void 0===e?"undefined":At()(e)))return void console.error(r);Object.keys(e).forEach(function(i){var a=e[i];V(t+(t?".":"")+i,a,n,r,o)})}}}function Y(t,e,n){var r={};return V(void 0,t,e,n,function(t,e){r[t]=e}),r}function B(t,e,n){var r=t.map(function(t){var e=rt()({},t,{trigger:t.trigger||[]});return"string"==typeof e.trigger&&(e.trigger=[e.trigger]),e});return e&&r.push({trigger:n?[].concat(n):[],rules:e}),r}function W(t){return t.filter(function(t){return!!t.rules&&t.rules.length}).map(function(t){return t.trigger}).reduce(function(t,e){return t.concat(e)},[])}function H(t){if(!t||!t.target)return t;var e=t.target;return"checkbox"===e.type?e.checked:e.value}function U(t){return t?t.map(function(t){return t&&t.message?t.message:t}):t}function G(t,e,n){var r=t,o=e,i=n;return void 0===n&&("function"==typeof r?(i=r,o={},r=void 0):Array.isArray(r)?"function"==typeof o?(i=o,o={}):o=o||{}:(i=o,o=r||{},r=void 0)),{names:r,options:o,callback:i}}function q(t){return 0===Object.keys(t).length}function K(t){return!!t&&t.some(function(t){return t.rules&&t.rules.length})}function X(t,e){return 0===t.lastIndexOf(e,0)}function Z(t,e){return 0===e.indexOf(t)&&-1!==[".","["].indexOf(e[t.length])}function $(t){return new ge(t)}function Q(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=t.validateMessages,r=t.onFieldsChange,o=t.onValuesChange,i=t.mapProps,a=void 0===i?F:i,s=t.mapPropsToFields,u=t.fieldNameProp,c=t.fieldMetaProp,l=t.fieldDataProp,f=t.formPropName,p=void 0===f?"form":f,h=t.withRef;return function(t){return L(Pt()({displayName:"Form",mixins:e,getInitialState:function(){var t=this,e=s&&s(this.props);return this.fieldsStore=$(e||{}),this.instances={},this.cachedBind={},this.clearedFieldMetaCache={},["getFieldsValue","getFieldValue","setFieldsInitialValue","getFieldsError","getFieldError","isFieldValidating","isFieldsValidating","isFieldsTouched","isFieldTouched"].forEach(function(e){return t[e]=function(){var n;return(n=t.fieldsStore)[e].apply(n,arguments)}}),{submitting:!1}},componentWillReceiveProps:function(t){s&&this.fieldsStore.updateFields(s(t))},onCollectCommon:function(t,e,n){var r=this.fieldsStore.getFieldMeta(t);if(r[e])r[e].apply(r,Mt()(n));else if(r.originalProps&&r.originalProps[e]){var i;(i=r.originalProps)[e].apply(i,Mt()(n))}var a=r.getValueFromEvent?r.getValueFromEvent.apply(r,Mt()(n)):H.apply(void 0,Mt()(n));if(o&&a!==this.fieldsStore.getFieldValue(t)){var s=this.fieldsStore.getAllValues(),u={};s[t]=a,Object.keys(s).forEach(function(t){return he()(u,t,s[t])}),o(this.props,he()({},t,a),u)}var c=this.fieldsStore.getField(t);return{name:t,field:rt()({},c,{value:a,touched:!0}),fieldMeta:r}},onCollect:function(t,e){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o2?n-2:0),o=2;o1&&void 0!==arguments[1]?arguments[1]:{};if(!t)throw new Error("Must call `getFieldProps` with valid name string!");delete this.clearedFieldMetaCache[t];var r=rt()({name:t,trigger:be,valuePropName:"value",validate:[]},n),o=r.rules,i=r.trigger,a=r.validateTrigger,s=void 0===a?i:a,f=r.validate,p=this.fieldsStore.getFieldMeta(t);"initialValue"in r&&(p.initialValue=r.initialValue);var h=rt()({},this.fieldsStore.getFieldValuePropValue(r),{ref:this.getCacheBind(t,t+"__ref",this.saveRef)});u&&(h[u]=t);var d=B(f,o,s),v=W(d);v.forEach(function(n){h[n]||(h[n]=e.getCacheBind(t,n,e.onCollectValidate))}),i&&-1===v.indexOf(i)&&(h[i]=this.getCacheBind(t,i,this.onCollect));var m=rt()({},p,r,{validate:d});return this.fieldsStore.setFieldMeta(t,m),c&&(h[c]=m),l&&(h[l]=this.fieldsStore.getField(t)),h},getFieldInstance:function(t){return this.instances[t]},getRules:function(t,e){return z(t.validate.filter(function(t){return!e||t.trigger.indexOf(e)>=0}).map(function(t){return t.rules}))},setFields:function(t){var e=this,n=this.fieldsStore.flattenRegisteredFields(t);if(this.fieldsStore.setFields(n),r){var o=Object.keys(n).reduce(function(t,n){return he()(t,n,e.fieldsStore.getField(n))},{});r(this.props,o,this.fieldsStore.getNestedAllFields())}this.forceUpdate()},resetFields:function(t){var e=this,n=this.fieldsStore.resetFields(t);if(Object.keys(n).length>0&&this.setFields(n),t){(Array.isArray(t)?t:[t]).forEach(function(t){return delete e.clearedFieldMetaCache[t]})}else this.clearedFieldMetaCache={}},setFieldsValue:function(t){var e=this.fieldsStore.fieldsMeta,n=this.fieldsStore.flattenRegisteredFields(t),r=Object.keys(n).reduce(function(t,r){var o=e[r];if(o){var i=n[r];t[r]={value:i}}return t},{});if(this.setFields(r),o){var i=this.fieldsStore.getAllValues();o(this.props,t,i)}},saveRef:function(t,e,n){if(!n)return this.clearedFieldMetaCache[t]={field:this.fieldsStore.getField(t),meta:this.fieldsStore.getFieldMeta(t)},this.fieldsStore.clearField(t),delete this.instances[t],void delete this.cachedBind[t];this.recoverClearedField(t);var r=this.fieldsStore.getFieldMeta(t);if(r){var o=r.ref;if(o){if("string"==typeof o)throw new Error("can not set ref string for "+t);o(n)}}this.instances[t]=n},validateFieldsInternal:function(t,e,r){var o=this,i=e.fieldNames,a=e.action,s=e.options,u=void 0===s?{}:s,c={},l={},f={},p={};if(t.forEach(function(t){var e=t.name;if(!0!==u.force&&!1===t.dirty)return void(t.errors&&he()(p,e,{errors:t.errors}));var n=o.fieldsStore.getFieldMeta(e),r=rt()({},t);r.errors=void 0,r.validating=!0,r.dirty=!0,c[e]=o.getRules(n,a),l[e]=r.value,f[e]=r}),this.setFields(f),Object.keys(l).forEach(function(t){l[t]=o.fieldsStore.getFieldValue(t)}),r&&q(f))return void r(q(p)?null:p,this.fieldsStore.getFieldsValue(i));var h=new ce(c);n&&h.messages(n),h.validate(l,u,function(t){var e=rt()({},p);t&&t.length&&t.forEach(function(t){var n=t.field;Ct()(e,n)||he()(e,n,{errors:[]}),fe()(e,n.concat(".errors")).push(t)});var n=[],a={};Object.keys(c).forEach(function(t){var r=fe()(e,t),i=o.fieldsStore.getField(t);i.value!==l[t]?n.push({name:t}):(i.errors=r&&r.errors,i.value=l[t],i.validating=!1,i.dirty=!1,a[t]=i)}),o.setFields(a),r&&(n.length&&n.forEach(function(t){var n=t.name,r=[{message:n+" need to revalidate",field:n}];he()(e,n,{expired:!0,errors:r})}),r(q(e)?null:e,o.fieldsStore.getFieldsValue(i)))})},validateFields:function(t,e,n){var r=this,o=G(t,e,n),i=o.names,a=o.callback,s=o.options,u=i?this.fieldsStore.getValidFieldsFullName(i):this.fieldsStore.getValidFieldsName(),c=u.filter(function(t){return K(r.fieldsStore.getFieldMeta(t).validate)}).map(function(t){var e=r.fieldsStore.getField(t);return e.value=r.fieldsStore.getFieldValue(t),e});if(!c.length)return void(a&&a(null,this.fieldsStore.getFieldsValue(u)));"firstFields"in s||(s.firstFields=u.filter(function(t){return!!r.fieldsStore.getFieldMeta(t).validateFirst})),this.validateFieldsInternal(c,{fieldNames:u,options:s},a)},isSubmitting:function(){return this.state.submitting},submit:function(t){var e=this,n=function(){e.setState({submitting:!1})};this.setState({submitting:!0}),t(n)},render:function(){var e=this.props,n=e.wrappedComponentRef,r=jt()(e,["wrappedComponentRef"]),o=it()({},p,this.getForm());h?o.ref="wrappedComponent":n&&(o.ref=n);var i=a.call(this,rt()({},o,r));return vt.a.createElement(t,i)}}),t)}}function J(t,e){var n=window.getComputedStyle,r=n?n(t):t.currentStyle;if(r)return r[e.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()})]}function tt(t){for(var e=t,n=void 0;"body"!==(n=e.nodeName.toLowerCase());){var r=J(e,"overflowY");if(e!==t&&("auto"===r||"scroll"===r)&&e.scrollHeight>e.clientHeight)return e;e=e.parentNode}return"body"===n?e.ownerDocument:e}function et(t){return xe(rt()({},t),[we])}var nt=n(3),rt=n.n(nt),ot=n(10),it=n.n(ot),at=n(4),st=n.n(at),ut=n(8),ct=n.n(ut),lt=n(5),ft=n.n(lt),pt=n(6),ht=n.n(pt),dt=n(0),vt=n.n(dt),mt=n(2),gt=n.n(mt),yt=n(7),bt=n.n(yt),xt=n(17),_t=n.n(xt),wt=n(352),Ot=n.n(wt),St=n(560),Ct=n.n(St),kt=n(50),jt=n.n(kt),Et=n(178),Mt=n.n(Et),Tt=n(32),Pt=n.n(Tt),Nt=n(51),At=n.n(Nt),Dt=/%[sdj%]/g,It=function(){},Rt=p,Lt=h,Ft={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,url:new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},zt={integer:function(t){return zt.number(t)&&parseInt(t,10)===t},float:function(t){return zt.number(t)&&!zt.integer(t)},array:function(t){return Array.isArray(t)},regexp:function(t){if(t instanceof RegExp)return!0;try{return!!new RegExp(t)}catch(t){return!1}},date:function(t){return"function"==typeof t.getTime&&"function"==typeof t.getMonth&&"function"==typeof t.getYear},number:function(t){return!isNaN(t)&&"number"==typeof t},object:function(t){return"object"===(void 0===t?"undefined":At()(t))&&!zt.array(t)},method:function(t){return"function"==typeof t},email:function(t){return"string"==typeof t&&!!t.match(Ft.email)&&t.length<255},url:function(t){return"string"==typeof t&&!!t.match(Ft.url)},hex:function(t){return"string"==typeof t&&!!t.match(Ft.hex)}},Vt=d,Yt=v,Bt="enum",Wt=m,Ht=g,Ut={required:Rt,whitespace:Lt,type:Vt,range:Yt,enum:Wt,pattern:Ht},Gt=y,qt=b,Kt=x,Xt=_,Zt=w,$t=O,Qt=S,Jt=C,te=k,ee="enum",ne=j,re=E,oe=M,ie=T,ae=P,se={string:Gt,method:qt,number:Kt,boolean:Xt,regexp:Zt,integer:$t,float:Qt,array:Jt,object:te,enum:ne,pattern:re,date:oe,url:ae,hex:ae,email:ae,required:ie},ue=N();A.prototype={messages:function(t){return t&&(this._messages=f(N(),t)),this._messages},define:function(t){if(!t)throw new Error("Cannot configure a schema with no rules");if("object"!==(void 0===t?"undefined":At()(t))||Array.isArray(t))throw new Error("Rules must be an object");this.rules={};var e=void 0,n=void 0;for(e in t)t.hasOwnProperty(e)&&(n=t[e],this.rules[e]=Array.isArray(n)?n:[n])},validate:function(t){function e(t){var e=void 0,n=void 0,r=[],o={};for(e=0;e1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],a=t,s=o,u=i;if("function"==typeof s&&(u=s,s={}),!this.rules||0===Object.keys(this.rules).length)return void(u&&u());if(s.messages){var p=this.messages();p===ue&&(p=N()),f(p,s.messages),s.messages=p}else s.messages=this.messages();var h=void 0,d=void 0,v={};(s.keys||Object.keys(this.rules)).forEach(function(e){h=n.rules[e],d=a[e],h.forEach(function(r){var o=r;"function"==typeof o.transform&&(a===t&&(a=rt()({},a)),d=a[e]=o.transform(d)),o="function"==typeof o?{validator:o}:rt()({},o),o.validator=n.getValidationMethod(o),o.field=e,o.fullField=o.fullField||e,o.type=n.getType(o),o.validator&&(v[e]=v[e]||[],v[e].push({rule:o,value:d,source:a,field:e}))})});var m={};c(v,s,function(t,e){function n(t,e){return rt()({},e,{fullField:i.fullField+"."+t})}function o(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=o;if(Array.isArray(u)||(u=[u]),u.length&&It("async-validator:",u),u.length&&i.message&&(u=[].concat(i.message)),u=u.map(l(i)),s.first&&u.length)return m[i.field]=1,e(u);if(a){if(i.required&&!t.value)return u=i.message?[].concat(i.message).map(l(i)):s.error?[s.error(i,r(s.messages.required,i.field))]:[],e(u);var c={};if(i.defaultField)for(var f in t.value)t.value.hasOwnProperty(f)&&(c[f]=i.defaultField);c=rt()({},c,t.rule.fields);for(var p in c)if(c.hasOwnProperty(p)){var h=Array.isArray(c[p])?c[p]:[c[p]];c[p]=h.map(n.bind(null,p))}var d=new A(c);d.messages(s.messages),t.rule.options&&(t.rule.options.messages=s.messages,t.rule.options.error=s.error),d.validate(t.value,t.rule.options||s,function(t){e(t&&t.length?u.concat(t):t)})}else e(u)}var i=t.rule,a=!("object"!==i.type&&"array"!==i.type||"object"!==At()(i.fields)&&"object"!==At()(i.defaultField));a=a&&(i.required||!i.required&&t.value),i.field=t.field;var u=i.validator(i,t.value,o,t.source,s);u&&u.then&&u.then(function(){return o()},function(t){return o(t)})},function(t){e(t)})},getType:function(t){if(void 0===t.type&&t.pattern instanceof RegExp&&(t.type="pattern"),"function"!=typeof t.validator&&t.type&&!se.hasOwnProperty(t.type))throw new Error(r("Unknown rule type %s",t.type));return t.type||"string"},getValidationMethod:function(t){if("function"==typeof t.validator)return t.validator;var e=Object.keys(t),n=e.indexOf("message");return-1!==n&&e.splice(n,1),1===e.length&&"required"===e[0]?se.required:se[this.getType(t)]||!1}},A.register=function(t,e){if("function"!=typeof e)throw new Error("Cannot register a validator by type, validator is not a function");se[t]=e},A.messages=ue;var ce=A,le=(n(26),n(355)),fe=n.n(le),pe=n(561),he=n.n(pe),de=function t(e){st()(this,t),rt()(this,e)},ve=n(220),me=n.n(ve),ge=function(){function t(e){st()(this,t),ye.call(this),this.fields=this.flattenFields(e),this.fieldsMeta={}}return ct()(t,[{key:"updateFields",value:function(t){this.fields=this.flattenFields(t)}},{key:"flattenFields",value:function(t){return Y(t,function(t,e){return D(e)},"You must wrap field data with `createFormField`.")}},{key:"flattenRegisteredFields",value:function(t){var e=this.getAllFieldsName();return Y(t,function(t){return e.indexOf(t)>=0},"You cannot set field before registering it.")}},{key:"setFields",value:function(t){var e=this,n=this.fieldsMeta,r=rt()({},this.fields,t),o={};Object.keys(n).forEach(function(t){return o[t]=e.getValueFromFields(t,r)}),Object.keys(o).forEach(function(t){var n=o[t],i=e.getFieldMeta(t);if(i&&i.normalize){var a=i.normalize(n,e.getValueFromFields(t,e.fields),o);a!==n&&(r[t]=rt()({},r[t],{value:a}))}}),this.fields=r}},{key:"resetFields",value:function(t){var e=this.fields;return(t?this.getValidFieldsFullName(t):this.getAllFieldsName()).reduce(function(t,n){var r=e[n];return r&&"value"in r&&(t[n]={}),t},{})}},{key:"setFieldMeta",value:function(t,e){this.fieldsMeta[t]=e}},{key:"getFieldMeta",value:function(t){return this.fieldsMeta[t]=this.fieldsMeta[t]||{},this.fieldsMeta[t]}},{key:"getValueFromFields",value:function(t,e){var n=e[t];if(n&&"value"in n)return n.value;var r=this.getFieldMeta(t);return r&&r.initialValue}},{key:"getValidFieldsName",value:function(){var t=this,e=this.fieldsMeta;return e?Object.keys(e).filter(function(e){return!t.getFieldMeta(e).hidden}):[]}},{key:"getAllFieldsName",value:function(){var t=this.fieldsMeta;return t?Object.keys(t):[]}},{key:"getValidFieldsFullName",value:function(t){var e=Array.isArray(t)?t:[t];return this.getValidFieldsName().filter(function(t){return e.some(function(e){return t===e||X(t,e)&&[".","["].indexOf(t[e.length])>=0})})}},{key:"getFieldValuePropValue",value:function(t){var e=t.name,n=t.getValueProps,r=t.valuePropName,o=this.getField(e),i="value"in o?o.value:t.initialValue;return n?n(i):it()({},r,i)}},{key:"getField",value:function(t){return rt()({},this.fields[t],{name:t})}},{key:"getNotCollectedFields",value:function(){var t=this;return this.getValidFieldsName().filter(function(e){return!t.fields[e]}).map(function(e){return{name:e,dirty:!1,value:t.getFieldMeta(e).initialValue}}).reduce(function(t,e){return he()(t,e.name,I(e))},{})}},{key:"getNestedAllFields",value:function(){var t=this;return Object.keys(this.fields).reduce(function(e,n){return he()(e,n,I(t.fields[n]))},this.getNotCollectedFields())}},{key:"getFieldMember",value:function(t,e){return this.getField(t)[e]}},{key:"getNestedFields",value:function(t,e){return(t||this.getValidFieldsName()).reduce(function(t,n){return he()(t,n,e(n))},{})}},{key:"getNestedField",value:function(t,e){var n=this.getValidFieldsFullName(t);if(0===n.length||1===n.length&&n[0]===t)return e(t);var r="["===n[0][t.length],o=r?t.length:t.length+1;return n.reduce(function(t,n){return he()(t,n.slice(o),e(n))},r?[]:{})}},{key:"isValidNestedFieldName",value:function(t){return this.getAllFieldsName().every(function(e){return!Z(e,t)&&!Z(t,e)})}},{key:"clearField",value:function(t){delete this.fields[t],delete this.fieldsMeta[t]}}]),t}(),ye=function(){var t=this;this.setFieldsInitialValue=function(e){var n=t.flattenRegisteredFields(e),r=t.fieldsMeta;Object.keys(n).forEach(function(e){r[e]&&t.setFieldMeta(e,rt()({},t.getFieldMeta(e),{initialValue:n[e]}))})},this.getAllValues=function(){var e=t.fieldsMeta,n=t.fields;return Object.keys(e).reduce(function(e,r){return he()(e,r,t.getValueFromFields(r,n))},{})},this.getFieldsValue=function(e){return t.getNestedFields(e,t.getFieldValue)},this.getFieldValue=function(e){var n=t.fields;return t.getNestedField(e,function(e){return t.getValueFromFields(e,n)})},this.getFieldsError=function(e){return t.getNestedFields(e,t.getFieldError)},this.getFieldError=function(e){return t.getNestedField(e,function(e){return U(t.getFieldMember(e,"errors"))})},this.isFieldValidating=function(e){return t.getFieldMember(e,"validating")},this.isFieldsValidating=function(e){return(e||t.getValidFieldsName()).some(function(e){return t.isFieldValidating(e)})},this.isFieldTouched=function(e){return t.getFieldMember(e,"touched")},this.isFieldsTouched=function(e){return(e||t.getValidFieldsName()).some(function(e){return t.isFieldTouched(e)})}},be="onChange",xe=Q,_e={getForm:function(){return{getFieldsValue:this.fieldsStore.getFieldsValue,getFieldValue:this.fieldsStore.getFieldValue,getFieldInstance:this.getFieldInstance,setFieldsValue:this.setFieldsValue,setFields:this.setFields,setFieldsInitialValue:this.fieldsStore.setFieldsInitialValue,getFieldDecorator:this.getFieldDecorator,getFieldProps:this.getFieldProps,getFieldsError:this.fieldsStore.getFieldsError,getFieldError:this.fieldsStore.getFieldError,isFieldValidating:this.fieldsStore.isFieldValidating,isFieldsValidating:this.fieldsStore.isFieldsValidating,isFieldsTouched:this.fieldsStore.isFieldsTouched,isFieldTouched:this.fieldsStore.isFieldTouched,isSubmitting:this.isSubmitting,submit:this.submit,validateFields:this.validateFields,resetFields:this.resetFields}}},we={getForm:function(){return rt()({},_e.getForm.call(this),{validateFieldsAndScroll:this.validateFieldsAndScroll})},validateFieldsAndScroll:function(t,e,n){var r=this,o=G(t,e,n),i=o.names,a=o.callback,s=o.options,u=function(t,e){if(t){var n=r.fieldsStore.getValidFieldsName(),o=void 0,i=void 0,u=!0,c=!1,l=void 0;try{for(var f,p=n[Symbol.iterator]();!(u=(f=p.next()).done);u=!0){var h=f.value;if(Ct()(t,h)){var d=r.getFieldInstance(h);if(d){var v=_t.a.findDOMNode(d),m=v.getBoundingClientRect().top;(void 0===i||i>m)&&(i=m,o=v)}}}}catch(t){c=!0,l=t}finally{try{!u&&p.return&&p.return()}finally{if(c)throw l}}if(o){var g=s.container||tt(o);Ot()(o,g,rt()({onlyScrollIfNeeded:!0},s.scroll))}}"function"==typeof a&&a(t,e)};return this.validateFields(i,s,u)}},Oe=et,Se=n(62),Ce=n(78),ke=n(88),je=n(543),Ee=n(544),Me=function(t){function e(){st()(this,e);var t=ft()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments));return t.state={helpShow:!1},t.onHelpAnimEnd=function(e,n){t.setState({helpShow:n})},t.onLabelClick=function(e){var n=t.props.label,r=t.props.id||t.getId();if(r){if(1!==document.querySelectorAll('[id="'+r+'"]').length){"string"==typeof n&&e.preventDefault();var o=xt.findDOMNode(t),i=o.querySelector('[id="'+r+'"]');i&&i.focus&&i.focus()}}},t}return ht()(e,t),ct()(e,[{key:"componentDidMount",value:function(){Object(Ce.a)(this.getControls(this.props.children,!0).length<=1,"`Form.Item` cannot generate `validateStatus` and `help` automatically, while there are more than one `getFieldDecorator` in it.")}},{key:"getHelpMsg",value:function(){var t=this.props,e=this.getOnlyControl();if(void 0===t.help&&e){var n=this.getField().errors;return n?n.map(function(t){return t.message}).join(", "):""}return t.help}},{key:"getControls",value:function(t,n){for(var r=[],o=dt.Children.toArray(t),i=0;i0));i++){var a=o[i];(!a.type||a.type!==e&&"FormItem"!==a.type.displayName)&&a.props&&("data-__meta"in a.props?r.push(a):a.props.children&&(r=r.concat(this.getControls(a.props.children,n))))}return r}},{key:"getOnlyControl",value:function(){var t=this.getControls(this.props.children,!1)[0];return void 0!==t?t:null}},{key:"getChildProp",value:function(t){var e=this.getOnlyControl();return e&&e.props&&e.props[t]}},{key:"getId",value:function(){return this.getChildProp("id")}},{key:"getMeta",value:function(){return this.getChildProp("data-__meta")}},{key:"getField",value:function(){return this.getChildProp("data-__field")}},{key:"renderHelp",value:function(){var t=this.props.prefixCls,e=this.getHelpMsg(),n=e?dt.createElement("div",{className:t+"-explain",key:"help"},e):null;return dt.createElement(ke.a,{transitionName:"show-help",component:"",transitionAppear:!0,key:"help",onEnd:this.onHelpAnimEnd},n)}},{key:"renderExtra",value:function(){var t=this.props,e=t.prefixCls,n=t.extra;return n?dt.createElement("div",{className:e+"-extra"},n):null}},{key:"getValidateStatus",value:function(){if(!this.getOnlyControl())return"";var t=this.getField();if(t.validating)return"validating";if(t.errors)return"error";var e="value"in t?t.value:this.getMeta().initialValue;return void 0!==e&&null!==e&&""!==e?"success":""}},{key:"renderValidateWrapper",value:function(t,e,n){var r=this.props,o=this.getOnlyControl,i=void 0===r.validateStatus&&o?this.getValidateStatus():r.validateStatus,a=this.props.prefixCls+"-item-control";return i&&(a=bt()(this.props.prefixCls+"-item-control",{"has-feedback":r.hasFeedback||"validating"===i,"has-success":"success"===i,"has-warning":"warning"===i,"has-error":"error"===i,"is-validating":"validating"===i})),dt.createElement("div",{className:a},dt.createElement("span",{className:this.props.prefixCls+"-item-children"},t),e,n)}},{key:"renderWrapper",value:function(t){var e=this.props,n=e.prefixCls,r=e.wrapperCol,o=bt()(n+"-item-control-wrapper",r&&r.className);return dt.createElement(Ee.a,rt()({},r,{className:o,key:"wrapper"}),t)}},{key:"isRequired",value:function(){var t=this.props.required;if(void 0!==t)return t;if(this.getOnlyControl()){return((this.getMeta()||{}).validate||[]).filter(function(t){return!!t.rules}).some(function(t){return t.rules.some(function(t){return t.required})})}return!1}},{key:"renderLabel",value:function(){var t=this.props,e=t.prefixCls,n=t.label,r=t.labelCol,o=t.colon,i=t.id,a=this.context,s=this.isRequired(),u=bt()(e+"-item-label",r&&r.className),c=bt()(it()({},e+"-item-required",s)),l=n;return o&&!a.vertical&&"string"==typeof n&&""!==n.trim()&&(l=n.replace(/[\uff1a|:]\s*$/,"")),n?dt.createElement(Ee.a,rt()({},r,{className:u,key:"label"}),dt.createElement("label",{htmlFor:i||this.getId(),className:c,title:"string"==typeof n?n:"",onClick:this.onLabelClick},l)):null}},{key:"renderChildren",value:function(){var t=this.props.children;return[this.renderLabel(),this.renderWrapper(this.renderValidateWrapper(t,this.renderHelp(),this.renderExtra()))]}},{key:"renderFormItem",value:function(t){var e,n=this.props,r=n.prefixCls,o=n.style,i=(e={},it()(e,r+"-item",!0),it()(e,r+"-item-with-help",!!this.getHelpMsg()||this.state.helpShow),it()(e,r+"-item-no-colon",!n.colon),it()(e,""+n.className,!!n.className),e);return dt.createElement(je.a,{className:bt()(i),style:o},t)}},{key:"render",value:function(){var t=this.renderChildren();return this.renderFormItem(t)}}]),e}(dt.Component),Te=Me;Me.defaultProps={hasFeedback:!1,prefixCls:"ant-form",colon:!0},Me.propTypes={prefixCls:gt.a.string,label:gt.a.oneOfType([gt.a.string,gt.a.node]),labelCol:gt.a.object,help:gt.a.oneOfType([gt.a.node,gt.a.bool]),validateStatus:gt.a.oneOf(["","success","warning","error","validating"]),hasFeedback:gt.a.bool,wrapperCol:gt.a.object,className:gt.a.string,id:gt.a.string,children:gt.a.node,colon:gt.a.bool},Me.contextTypes={vertical:gt.a.bool};var Pe=function(t){function e(t){st()(this,e);var n=ft()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return Object(Ce.a)(!t.form,"It is unnecessary to pass `form` to `Form` after antd@1.7.0."),n}return ht()(e,t),ct()(e,[{key:"getChildContext",value:function(){return{vertical:"vertical"===this.props.layout}}},{key:"render",value:function(){var t,e=this.props,n=e.prefixCls,r=e.hideRequiredMark,o=e.className,i=void 0===o?"":o,a=e.layout,s=bt()(n,(t={},it()(t,n+"-horizontal","horizontal"===a),it()(t,n+"-vertical","vertical"===a),it()(t,n+"-inline","inline"===a),it()(t,n+"-hide-required-mark",r),t),i),u=Object(Se.a)(this.props,["prefixCls","className","layout","form","hideRequiredMark"]);return dt.createElement("form",rt()({},u,{className:s}))}}]),e}(dt.Component),Ne=Pe;Pe.defaultProps={prefixCls:"ant-form",layout:"horizontal",hideRequiredMark:!1,onSubmit:function(t){t.preventDefault()}},Pe.propTypes={prefixCls:gt.a.string,layout:gt.a.oneOf(["horizontal","inline","vertical"]),children:gt.a.any,onSubmit:gt.a.func,hideRequiredMark:gt.a.bool},Pe.childContextTypes={vertical:gt.a.bool},Pe.Item=Te,Pe.createFormField=I,Pe.create=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Oe(rt()({fieldNameProp:"id"},t,{fieldMetaProp:"data-__meta",fieldDataProp:"data-__field"}))};e.a=Ne},function(t,e,n){var r=n(48);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){"use strict";var r=n(22);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(60),o=n(31),i=n(148),a=n(131),s=n(130),u=function(t,e,n){var c,l,f,p=t&u.F,h=t&u.G,d=t&u.S,v=t&u.P,m=t&u.B,g=t&u.W,y=h?o:o[e]||(o[e]={}),b=y.prototype,x=h?r:d?r[e]:(r[e]||{}).prototype;h&&(n=e);for(c in n)(l=!p&&x&&void 0!==x[c])&&s(y,c)||(f=l?x[c]:n[c],y[c]=h&&"function"!=typeof x[c]?n[c]:m&&l?i(f,r):g&&x[c]==f?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(f):v&&"function"==typeof f?i(Function.call,f):f,v&&((y.virtual||(y.virtual={}))[c]=f,t&u.R&&b&&!b[c]&&a(b,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){"use strict";function r(){return o.apply(this,arguments)}function o(){return o=R()(D.a.mark(function t(){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/project/notice"));case 1:case"end":return t.stop()}},t,this)})),o.apply(this,arguments)}function i(){return a.apply(this,arguments)}function a(){return a=R()(D.a.mark(function t(){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/activities"));case 1:case"end":return t.stop()}},t,this)})),a.apply(this,arguments)}function s(t){return u.apply(this,arguments)}function u(){return u=R()(D.a.mark(function t(e){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/rule?".concat(Object(L.stringify)(e))));case 1:case"end":return t.stop()}},t,this)})),u.apply(this,arguments)}function c(t){return l.apply(this,arguments)}function l(){return l=R()(D.a.mark(function t(e){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/rule",{method:"POST",body:N()({},e,{method:"delete"})}));case 1:case"end":return t.stop()}},t,this)})),l.apply(this,arguments)}function f(t){return p.apply(this,arguments)}function p(){return p=R()(D.a.mark(function t(e){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/rule",{method:"POST",body:N()({},e,{method:"post"})}));case 1:case"end":return t.stop()}},t,this)})),p.apply(this,arguments)}function h(t){return d.apply(this,arguments)}function d(){return d=R()(D.a.mark(function t(e){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/forms",{method:"POST",body:e}));case 1:case"end":return t.stop()}},t,this)})),d.apply(this,arguments)}function v(){return m.apply(this,arguments)}function m(){return m=R()(D.a.mark(function t(){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/fake_chart_data"));case 1:case"end":return t.stop()}},t,this)})),m.apply(this,arguments)}function g(){return y.apply(this,arguments)}function y(){return y=R()(D.a.mark(function t(){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/tags"));case 1:case"end":return t.stop()}},t,this)})),y.apply(this,arguments)}function b(){return x.apply(this,arguments)}function x(){return x=R()(D.a.mark(function t(){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/profile/basic"));case 1:case"end":return t.stop()}},t,this)})),x.apply(this,arguments)}function _(){return w.apply(this,arguments)}function w(){return w=R()(D.a.mark(function t(){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/profile/advanced"));case 1:case"end":return t.stop()}},t,this)})),w.apply(this,arguments)}function O(t){return S.apply(this,arguments)}function S(){return S=R()(D.a.mark(function t(e){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/fake_list?".concat(Object(L.stringify)(e))));case 1:case"end":return t.stop()}},t,this)})),S.apply(this,arguments)}function C(t){return k.apply(this,arguments)}function k(){return k=R()(D.a.mark(function t(e){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/login/account",{method:"POST",body:e}));case 1:case"end":return t.stop()}},t,this)})),k.apply(this,arguments)}function j(t){return E.apply(this,arguments)}function E(){return E=R()(D.a.mark(function t(e){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/register",{method:"POST",body:e}));case 1:case"end":return t.stop()}},t,this)})),E.apply(this,arguments)}function M(){return T.apply(this,arguments)}function T(){return T=R()(D.a.mark(function t(){return D.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(F.a)("/api/notices"));case 1:case"end":return t.stop()}},t,this)})),T.apply(this,arguments)}e.k=r,e.f=i,e.l=s,e.n=c,e.a=f,e.e=h,e.c=v,e.m=g,e.h=b,e.g=_,e.i=O,e.b=C,e.d=j,e.j=M;var P=n(21),N=n.n(P),A=n(43),D=n.n(A),I=n(324),R=n.n(I),L=n(862),F=(n.n(L),n(325))},function(t,e,n){"use strict";var r=n(26),o=n.n(r),i={};e.a=function(t,e){t||i[e]||(o()(!1,e),i[e]=!0)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(){}return t}();e.Applicator=r},function(t,e,n){"use strict";var r=n(3),o=n.n(r),i=n(10),a=n.n(i),s=n(4),u=n.n(s),c=n(8),l=n.n(c),f=n(5),p=n.n(f),h=n(6),d=n.n(h),v=n(0),m=(n.n(v),n(2)),g=n.n(m),y=n(542),b=n(7),x=n.n(b),_=n(116),w=n(175),O=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o0?r:n)(t)}},function(t,e,n){var r=n(1),o=n(94),i=n(22);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],a={};a[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(t,e,n){var r=n(73),o=n(159),i=n(38),a=n(35),s=n(288);t.exports=function(t,e){var n=1==t,u=2==t,c=3==t,l=4==t,f=6==t,p=5==t||f,h=e||s;return function(e,s,d){for(var v,m,g=i(e),y=o(g),b=r(s,d,3),x=a(y.length),_=0,w=n?h(e,x):u?h(e,0):void 0;x>_;_++)if((p||_ in y)&&(v=y[_],m=b(v,_,g),t))if(n)w[_]=m;else if(m)switch(t){case 3:return!0;case 5:return v;case 6:return _;case 2:w.push(v)}else if(l)return!1;return f?-1:c||l?l:w}}},function(t,e,n){var r=n(106);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";function r(t){var e=[];return O.a.Children.forEach(t,function(t){e.push(t)}),e}function o(t,e){var n=null;return t&&t.forEach(function(t){n||t&&t.key===e&&(n=t)}),n}function i(t,e,n){var r=null;return t&&t.forEach(function(t){if(t&&t.key===e&&t.props[n]){if(r)throw new Error("two child with same key for children");r=t}}),r}function a(t,e,n){var r=t.length===e.length;return r&&t.forEach(function(t,o){var i=e[o];t&&i&&(t&&!i||!t&&i?r=!1:t.key!==i.key?r=!1:n&&t.props[n]!==i.props[n]&&(r=!1))}),r}function s(t,e){var n=[],r={},i=[];return t.forEach(function(t){t&&o(e,t.key)?i.length&&(r[t.key]=i,i=[]):i.push(t)}),e.forEach(function(t){t&&r.hasOwnProperty(t.key)&&(n=n.concat(r[t.key])),n.push(t)}),n=n.concat(i)}function u(t){var e=t.children;return O.a.isValidElement(e)&&!e.key?O.a.cloneElement(e,{key:R}):e}function c(){}var l=n(3),f=n.n(l),p=n(10),h=n.n(p),d=n(4),v=n.n(d),m=n(8),g=n.n(m),y=n(5),b=n.n(y),x=n(6),_=n.n(x),w=n(0),O=n.n(w),S=n(2),C=n.n(S),k=n(51),j=n.n(k),E=n(17),M=n.n(E),T=n(460),P={isAppearSupported:function(t){return t.transitionName&&t.transitionAppear||t.animation.appear},isEnterSupported:function(t){return t.transitionName&&t.transitionEnter||t.animation.enter},isLeaveSupported:function(t){return t.transitionName&&t.transitionLeave||t.animation.leave},allowAppearCallback:function(t){return t.transitionAppear||t.animation.appear},allowEnterCallback:function(t){return t.transitionEnter||t.animation.enter},allowLeaveCallback:function(t){return t.transitionLeave||t.animation.leave}},N=P,A={enter:"transitionEnter",appear:"transitionAppear",leave:"transitionLeave"},D=function(t){function e(){return v()(this,e),b()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return _()(e,t),g()(e,[{key:"componentWillUnmount",value:function(){this.stop()}},{key:"componentWillEnter",value:function(t){N.isEnterSupported(this.props)?this.transition("enter",t):t()}},{key:"componentWillAppear",value:function(t){N.isAppearSupported(this.props)?this.transition("appear",t):t()}},{key:"componentWillLeave",value:function(t){N.isLeaveSupported(this.props)?this.transition("leave",t):t()}},{key:"transition",value:function(t,e){var n=this,r=M.a.findDOMNode(this),o=this.props,i=o.transitionName,a="object"===(void 0===i?"undefined":j()(i));this.stop();var s=function(){n.stopper=null,e()};if((T.b||!o.animation[t])&&i&&o[A[t]]){var u=a?i[t]:i+"-"+t,c=u+"-active";a&&i[t+"Active"]&&(c=i[t+"Active"]),this.stopper=Object(T.a)(r,{name:u,active:c},s)}else this.stopper=o.animation[t](r,s)}},{key:"stop",value:function(){var t=this.stopper;t&&(this.stopper=null,t.stop())}},{key:"render",value:function(){return this.props.children}}]),e}(O.a.Component);D.propTypes={children:C.a.any};var I=D,R="rc_animate_"+Date.now(),L=function(t){function e(t){v()(this,e);var n=b()(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t));return F.call(n),n.currentlyAnimatingKeys={},n.keysToEnter=[],n.keysToLeave=[],n.state={children:r(u(t))},n.childrenRefs={},n}return _()(e,t),g()(e,[{key:"componentDidMount",value:function(){var t=this,e=this.props.showProp,n=this.state.children;e&&(n=n.filter(function(t){return!!t.props[e]})),n.forEach(function(e){e&&t.performAppear(e.key)})}},{key:"componentWillReceiveProps",value:function(t){var e=this;this.nextProps=t;var n=r(u(t)),a=this.props;a.exclusive&&Object.keys(this.currentlyAnimatingKeys).forEach(function(t){e.stop(t)});var c=a.showProp,l=this.currentlyAnimatingKeys,f=a.exclusive?r(u(a)):this.state.children,p=[];c?(f.forEach(function(t){var e=t&&o(n,t.key),r=void 0;(r=e&&e.props[c]||!t.props[c]?e:O.a.cloneElement(e||t,h()({},c,!0)))&&p.push(r)}),n.forEach(function(t){t&&o(f,t.key)||p.push(t)})):p=s(f,n),this.setState({children:p}),n.forEach(function(t){var n=t&&t.key;if(!t||!l[n]){var r=t&&o(f,n);if(c){var a=t.props[c];if(r){!i(f,n,c)&&a&&e.keysToEnter.push(n)}else a&&e.keysToEnter.push(n)}else r||e.keysToEnter.push(n)}}),f.forEach(function(t){var r=t&&t.key;if(!t||!l[r]){var a=t&&o(n,r);if(c){var s=t.props[c];if(a){!i(n,r,c)&&s&&e.keysToLeave.push(r)}else s&&e.keysToLeave.push(r)}else a||e.keysToLeave.push(r)}})}},{key:"componentDidUpdate",value:function(){var t=this.keysToEnter;this.keysToEnter=[],t.forEach(this.performEnter);var e=this.keysToLeave;this.keysToLeave=[],e.forEach(this.performLeave)}},{key:"isValidChildByKey",value:function(t,e){var n=this.props.showProp;return n?i(t,e,n):o(t,e)}},{key:"stop",value:function(t){delete this.currentlyAnimatingKeys[t];var e=this.childrenRefs[t];e&&e.stop()}},{key:"render",value:function(){var t=this,e=this.props;this.nextProps=e;var n=this.state.children,r=null;n&&(r=n.map(function(n){if(null===n||void 0===n)return n;if(!n.key)throw new Error("must set key for children");return O.a.createElement(I,{key:n.key,ref:function(e){return t.childrenRefs[n.key]=e},animation:e.animation,transitionName:e.transitionName,transitionEnter:e.transitionEnter,transitionAppear:e.transitionAppear,transitionLeave:e.transitionLeave},n)}));var o=e.component;if(o){var i=e;return"string"==typeof o&&(i=f()({className:e.className,style:e.style},e.componentProps)),O.a.createElement(o,i,r)}return r[0]||null}}]),e}(O.a.Component);L.isAnimate=!0,L.propTypes={component:C.a.any,componentProps:C.a.object,animation:C.a.object,transitionName:C.a.oneOfType([C.a.string,C.a.object]),transitionEnter:C.a.bool,transitionAppear:C.a.bool,exclusive:C.a.bool,transitionLeave:C.a.bool,onEnd:C.a.func,onEnter:C.a.func,onLeave:C.a.func,onAppear:C.a.func,showProp:C.a.string},L.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:c,onEnter:c,onLeave:c,onAppear:c};var F=function(){var t=this;this.performEnter=function(e){t.childrenRefs[e]&&(t.currentlyAnimatingKeys[e]=!0,t.childrenRefs[e].componentWillEnter(t.handleDoneAdding.bind(t,e,"enter")))},this.performAppear=function(e){t.childrenRefs[e]&&(t.currentlyAnimatingKeys[e]=!0,t.childrenRefs[e].componentWillAppear(t.handleDoneAdding.bind(t,e,"appear")))},this.handleDoneAdding=function(e,n){var o=t.props;if(delete t.currentlyAnimatingKeys[e],!o.exclusive||o===t.nextProps){var i=r(u(o));t.isValidChildByKey(i,e)?"appear"===n?N.allowAppearCallback(o)&&(o.onAppear(e),o.onEnd(e,!0)):N.allowEnterCallback(o)&&(o.onEnter(e),o.onEnd(e,!0)):t.performLeave(e)}},this.performLeave=function(e){t.childrenRefs[e]&&(t.currentlyAnimatingKeys[e]=!0,t.childrenRefs[e].componentWillLeave(t.handleDoneLeaving.bind(t,e)))},this.handleDoneLeaving=function(e){var n=t.props;if(delete t.currentlyAnimatingKeys[e],!n.exclusive||n===t.nextProps){var o=r(u(n));if(t.isValidChildByKey(o,e))t.performEnter(e);else{var i=function(){N.allowLeaveCallback(n)&&(n.onLeave(e),n.onEnd(e,!1))};a(t.state.children,o,n.showProp)?i():t.setState({children:o},i)}}}};e.a=L},function(t,e){function n(t){return null!=t&&"object"==typeof t}t.exports=n},function(t,e,n){"use strict";var r=n(18),o=(n.n(r),n(1078));n.n(o)},function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function o(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o=0;s--)(o=t[s])&&(a=(i<3?o(a):i>3?o(e,n,a):o(e,n))||a);return i>3&&a&&Object.defineProperty(e,n,a),a}function a(t,e){return function(n,r){e(n,r,t)}}function s(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function u(t,e,n,r){return new(n||(n=Promise))(function(o,i){function a(t){try{u(r.next(t))}catch(t){i(t)}}function s(t){try{u(r.throw(t))}catch(t){i(t)}}function u(t){t.done?o(t.value):new n(function(e){e(t.value)}).then(a,s)}u((r=r.apply(t,e||[])).next())})}function c(t,e){function n(t){return function(e){return r([t,e])}}function r(n){if(o)throw new TypeError("Generator is already executing.");for(;u;)try{if(o=1,i&&(a=i[2&n[0]?"return":n[0]?"throw":"next"])&&!(a=a.call(i,n[1])).done)return a;switch(i=0,a&&(n=[0,a.value]),n[0]){case 0:case 1:a=n;break;case 4:return u.label++,{value:n[1],done:!1};case 5:u.label++,i=n[1],n=[0];continue;case 7:n=u.ops.pop(),u.trys.pop();continue;default:if(a=u.trys,!(a=a.length>0&&a[a.length-1])&&(6===n[0]||2===n[0])){u=0;continue}if(3===n[0]&&(!a||n[1]>a[0]&&n[1]=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function p(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)a.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return a}function h(){for(var t=[],e=0;e1||o(t,e)})})}function o(t,e){try{i(l[t](e))}catch(t){u(f[0][3],t)}}function i(t){t.value instanceof d?Promise.resolve(t.value.v).then(a,s):u(f[0][2],t)}function a(t){o("next",t)}function s(t){o("throw",t)}function u(t,e){t(e),f.shift(),f.length&&o(f[0][0],f[0][1])}if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c,l=n.apply(t,e||[]),f=[];return c={},r("next"),r("throw"),r("return"),c[Symbol.asyncIterator]=function(){return this},c}function m(t){function e(e,o){t[e]&&(n[e]=function(n){return(r=!r)?{value:d(t[e](n)),done:"return"===e}:o?o(n):n})}var n,r;return n={},e("next"),e("throw",function(t){throw t}),e("return"),n[Symbol.iterator]=function(){return this},n}function g(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator];return e?e.call(t):"function"==typeof f?f(t):t[Symbol.iterator]()}function y(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function b(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function x(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.__extends=r,n.d(e,"__assign",function(){return w}),e.__rest=o,e.__decorate=i,e.__param=a,e.__metadata=s,e.__awaiter=u,e.__generator=c,e.__exportStar=l,e.__values=f,e.__read=p,e.__spread=h,e.__await=d,e.__asyncGenerator=v,e.__asyncDelegator=m,e.__asyncValues=g,e.__makeTemplateObject=y,e.__importStar=b,e.__importDefault=x;var _=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])},w=Object.assign||function(t){for(var e,n=1,r=arguments.length;nn;)o[n]=e[n++];return o},Mt=function(t,e,n){Y(t,e,{get:function(){return this._d[n]}})},Tt=function(t){var e,n,r,o,i,a,s=w(t),u=arguments.length,l=u>1?arguments[1]:void 0,f=void 0!==l,p=j(s);if(void 0!=p&&!O(p)){for(a=p.call(s),r=[],e=0;!(i=a.next()).done;e++)r.push(i.value);s=r}for(f&&u>2&&(l=c(l,arguments[2],2)),e=0,n=v(s.length),o=kt(this,n);n>e;e++)o[e]=f?l(s[e],e):s[e];return o},Pt=function(){for(var t=0,e=arguments.length,n=kt(this,e);e>t;)n[t]=arguments[t++];return n},Nt=!!U&&i(function(){ht.call(new U(1))}),At=function(){return ht.apply(Nt?ft.call(Ct(this)):Ct(this),arguments)},Dt={copyWithin:function(t,e){return F.call(Ct(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return Q(Ct(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return L.apply(Ct(this),arguments)},filter:function(t){return jt(this,Z(Ct(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return J(Ct(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){X(Ct(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Ct(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Ct(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ct.apply(Ct(this),arguments)},lastIndexOf:function(t){return at.apply(Ct(this),arguments)},map:function(t){return _t(Ct(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(Ct(this),arguments)},reduceRight:function(t){return ut.apply(Ct(this),arguments)},reverse:function(){for(var t,e=this,n=Ct(e).length,r=Math.floor(n/2),o=0;o1?arguments[1]:void 0)},sort:function(t){return lt.call(Ct(this),t)},subarray:function(t,e){var n=Ct(this),r=n.length,o=g(t,r);return new(N(n,n[gt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:g(e,r))-o))}},It=function(t,e){return jt(this,ft.call(Ct(this),t,e))},Rt=function(t){Ct(this);var e=St(arguments[1],1),n=this.length,r=w(t),o=v(r.length),i=0;if(o+e>n)throw W("Wrong length!");for(;i255?255:255&r),o.v[h](n*e+o.o,r,wt)},M=function(t,e){Y(t,e,{get:function(){return j(this,e)},set:function(t){return E(this,e,t)},enumerable:!0})};b?(d=n(function(t,n,r,o){l(t,d,c,"_d");var i,a,s,u,f=0,h=0;if(_(n)){if(!(n instanceof q||"ArrayBuffer"==(u=x(n))||"SharedArrayBuffer"==u))return bt in n?Et(d,n):Tt.call(d,n);i=n,h=St(r,e);var g=n.byteLength;if(void 0===o){if(g%e)throw W("Wrong length!");if((a=g-h)<0)throw W("Wrong length!")}else if((a=v(o)*e)+h>g)throw W("Wrong length!");s=a/e}else s=m(n),a=s*e,i=new q(a);for(p(t,"_d",{b:i,o:h,l:a,e:s,v:new K(i)});f=0&&t.splice(n,1)}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=d({},t),n=new Promise(function(t,n){e.resolve=t,e.reject=n});return e.promise=n,e}function s(t){for(var e=[],n=0;n1&&void 0!==arguments[1])||arguments[1],n=void 0,r=new Promise(function(r){n=setTimeout(function(){return r(e)},t)});return r[b]=function(){return clearTimeout(n)},r}function c(){var t,e=!0,n=void 0,r=void 0;return t={},t[g]=!0,t.isRunning=function(){return e},t.result=function(){return n},t.error=function(){return r},t.setRunning=function(t){return e=t},t.setResult=function(t){return n=t},t.setError=function(t){return r=t},t}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(){return++t}}function f(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:S,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",r=arguments[3],o={name:n,next:t,throw:e,return:C};return r&&(o[y]=!0),"undefined"!=typeof Symbol&&(o[Symbol.iterator]=function(){return o}),o}function p(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";"undefined"==typeof window?console.log("redux-saga "+t+": "+e+"\n"+(n&&n.stack||n)):console[t](e,n)}function h(t,e){return function(){return t.apply(void 0,arguments)}}e.__esModule=!0;var d=Object.assign||function(t){for(var e=1;e0)for(n=0;n0?"future":"past"];return C(n)?n(e):n.replace(/%s/i,e)}function I(t,e){var n=t.toLowerCase();Lr[n]=Lr[n+"s"]=Lr[e]=t}function R(t){return"string"==typeof t?Lr[t]||Lr[t.toLowerCase()]:void 0}function L(t){var e,n,r={};for(n in t)c(t,n)&&(e=R(n))&&(r[e]=t[n]);return r}function F(t,e){Fr[t]=e}function z(t){var e=[];for(var n in t)e.push({unit:n,priority:Fr[n]});return e.sort(function(t,e){return t.priority-e.priority}),e}function V(t,e,n){var r=""+Math.abs(t),o=e-r.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+r}function Y(t,e,n,r){var o=r;"string"==typeof r&&(o=function(){return this[r]()}),t&&(Br[t]=o),e&&(Br[e[0]]=function(){return V(o.apply(this,arguments),e[1],e[2])}),n&&(Br[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function B(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function W(t){var e,n,r=t.match(zr);for(e=0,n=r.length;e=0&&Vr.test(t);)t=t.replace(Vr,n),Vr.lastIndex=0,r-=1;return t}function G(t,e,n){ao[t]=C(e)?e:function(t,r){return t&&n?n:e}}function q(t,e){return c(ao,t)?ao[t](e._strict,e._locale):new RegExp(K(t))}function K(t){return X(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,o){return e||n||r||o}))}function X(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Z(t,e){var n,r=e;for("string"==typeof t&&(t=[t]),a(e)&&(r=function(t,n){n[e]=x(t)}),n=0;n=0&&isFinite(s.getFullYear())&&s.setFullYear(t),s}function xt(t){var e=new Date(Date.UTC.apply(null,arguments));return t<100&&t>=0&&isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t),e}function _t(t,e,n){var r=7+e-n;return-(7+xt(t,0,r).getUTCDay()-e)%7+r-1}function wt(t,e,n,r,o){var i,a,s=(7+n-r)%7,u=_t(t,r,o),c=1+7*(e-1)+s+u;return c<=0?(i=t-1,a=J(i)+c):c>J(t)?(i=t+1,a=c-J(t)):(i=t,a=c),{year:i,dayOfYear:a}}function Ot(t,e,n){var r,o,i=_t(t.year(),e,n),a=Math.floor((t.dayOfYear()-i-1)/7)+1;return a<1?(o=t.year()-1,r=a+St(o,e,n)):a>St(t.year(),e,n)?(r=a-St(t.year(),e,n),o=t.year()+1):(o=t.year(),r=a),{week:r,year:o}}function St(t,e,n){var r=_t(t,e,n),o=_t(t+1,e,n);return(J(t)-r+o)/7}function Ct(t){return Ot(t,this._week.dow,this._week.doy).week}function kt(){return this._week.dow}function jt(){return this._week.doy}function Et(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")}function Mt(t){var e=Ot(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")}function Tt(t,e){return"string"!=typeof t?t:isNaN(t)?(t=e.weekdaysParse(t),"number"==typeof t?t:null):parseInt(t,10)}function Pt(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Nt(t,e){return t?n(this._weekdays)?this._weekdays[t.day()]:this._weekdays[this._weekdays.isFormat.test(e)?"format":"standalone"][t.day()]:n(this._weekdays)?this._weekdays:this._weekdays.standalone}function At(t){return t?this._weekdaysShort[t.day()]:this._weekdaysShort}function Dt(t){return t?this._weekdaysMin[t.day()]:this._weekdaysMin}function It(t,e,n){var r,o,i,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=f([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?"dddd"===e?(o=yo.call(this._weekdaysParse,a),-1!==o?o:null):"ddd"===e?(o=yo.call(this._shortWeekdaysParse,a),-1!==o?o:null):(o=yo.call(this._minWeekdaysParse,a),-1!==o?o:null):"dddd"===e?-1!==(o=yo.call(this._weekdaysParse,a))?o:-1!==(o=yo.call(this._shortWeekdaysParse,a))?o:(o=yo.call(this._minWeekdaysParse,a),-1!==o?o:null):"ddd"===e?-1!==(o=yo.call(this._shortWeekdaysParse,a))?o:-1!==(o=yo.call(this._weekdaysParse,a))?o:(o=yo.call(this._minWeekdaysParse,a),-1!==o?o:null):-1!==(o=yo.call(this._minWeekdaysParse,a))?o:-1!==(o=yo.call(this._weekdaysParse,a))?o:(o=yo.call(this._shortWeekdaysParse,a),-1!==o?o:null)}function Rt(t,e,n){var r,o,i;if(this._weekdaysParseExact)return It.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(o=f([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(o,"").replace(".",".?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(o,"").replace(".",".?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(o,"").replace(".",".?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[r].test(t))return r;if(n&&"ddd"===e&&this._shortWeekdaysParse[r].test(t))return r;if(n&&"dd"===e&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function Lt(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=Tt(t,this.localeData()),this.add(t-e,"d")):e}function Ft(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")}function zt(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=Pt(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7}function Vt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(c(this,"_weekdaysRegex")||(this._weekdaysRegex=Mo),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function Yt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(c(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=To),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Bt(t){return this._weekdaysParseExact?(c(this,"_weekdaysRegex")||Wt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(c(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Po),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wt(){function t(t,e){return e.length-t.length}var e,n,r,o,i,a=[],s=[],u=[],c=[];for(e=0;e<7;e++)n=f([2e3,1]).day(e),r=this.weekdaysMin(n,""),o=this.weekdaysShort(n,""),i=this.weekdays(n,""),a.push(r),s.push(o),u.push(i),c.push(r),c.push(o),c.push(i);for(a.sort(t),s.sort(t),u.sort(t),c.sort(t),e=0;e<7;e++)s[e]=X(s[e]),u[e]=X(u[e]),c[e]=X(c[e]);this._weekdaysRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Ht(){return this.hours()%12||12}function Ut(){return this.hours()||24}function Gt(t,e){Y(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function qt(t,e){return e._meridiemParse}function Kt(t){return"p"===(t+"").toLowerCase().charAt(0)}function Xt(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}function Zt(t){return t?t.toLowerCase().replace("_","-"):t}function $t(t){for(var e,n,r,o,i=0;i0;){if(r=Qt(o.slice(0,e).join("-")))return r;if(n&&n.length>=e&&_(o,n,!0)>=e-1)break;e--}i++}return No}function Qt(e){var n=null;if(!Ro[e]&&void 0!==t&&t&&t.exports)try{n=No._abbr;!function(){var t=new Error('Cannot find module "./locale"');throw t.code="MODULE_NOT_FOUND",t}(),Jt(n)}catch(t){}return Ro[e]}function Jt(t,e){var n;return t&&(n=i(e)?ne(t):te(t,e),n?No=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),No._abbr}function te(t,e){if(null!==e){var n,r=Io;if(e.abbr=t,null!=Ro[t])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ro[t]._config;else if(null!=e.parentLocale)if(null!=Ro[e.parentLocale])r=Ro[e.parentLocale]._config;else{if(null==(n=Qt(e.parentLocale)))return Lo[e.parentLocale]||(Lo[e.parentLocale]=[]),Lo[e.parentLocale].push({name:t,config:e}),null;r=n._config}return Ro[t]=new E(j(r,e)),Lo[t]&&Lo[t].forEach(function(t){te(t.name,t.config)}),Jt(t),Ro[t]}return delete Ro[t],null}function ee(t,e){if(null!=e){var n,r,o=Io;r=Qt(t),null!=r&&(o=r._config),e=j(o,e),n=new E(e),n.parentLocale=Ro[t],Ro[t]=n,Jt(t)}else null!=Ro[t]&&(null!=Ro[t].parentLocale?Ro[t]=Ro[t].parentLocale:null!=Ro[t]&&delete Ro[t]);return Ro[t]}function ne(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return No;if(!n(t)){if(e=Qt(t))return e;t=[t]}return $t(t)}function re(){return Nr(Ro)}function oe(t){var e,n=t._a;return n&&-2===h(t).overflow&&(e=n[co]<0||n[co]>11?co:n[lo]<1||n[lo]>ut(n[uo],n[co])?lo:n[fo]<0||n[fo]>24||24===n[fo]&&(0!==n[po]||0!==n[ho]||0!==n[vo])?fo:n[po]<0||n[po]>59?po:n[ho]<0||n[ho]>59?ho:n[vo]<0||n[vo]>999?vo:-1,h(t)._overflowDayOfYear&&(elo)&&(e=lo),h(t)._overflowWeeks&&-1===e&&(e=mo),h(t)._overflowWeekday&&-1===e&&(e=go),h(t).overflow=e),t}function ie(t,e,n){return null!=t?t:null!=e?e:n}function ae(t){var n=new Date(e.now());return t._useUTC?[n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()]:[n.getFullYear(),n.getMonth(),n.getDate()]}function se(t){var e,n,r,o,i,a=[];if(!t._d){for(r=ae(t),t._w&&null==t._a[lo]&&null==t._a[co]&&ue(t),null!=t._dayOfYear&&(i=ie(t._a[uo],r[uo]),(t._dayOfYear>J(i)||0===t._dayOfYear)&&(h(t)._overflowDayOfYear=!0),n=xt(i,0,t._dayOfYear),t._a[co]=n.getUTCMonth(),t._a[lo]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=r[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[fo]&&0===t._a[po]&&0===t._a[ho]&&0===t._a[vo]&&(t._nextDay=!0,t._a[fo]=0),t._d=(t._useUTC?xt:bt).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[fo]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(h(t).weekdayMismatch=!0)}}function ue(t){var e,n,r,o,i,a,s,u;if(e=t._w,null!=e.GG||null!=e.W||null!=e.E)i=1,a=4,n=ie(e.GG,t._a[uo],Ot(Ce(),1,4).year),r=ie(e.W,1),((o=ie(e.E,1))<1||o>7)&&(u=!0);else{i=t._locale._week.dow,a=t._locale._week.doy;var c=Ot(Ce(),i,a);n=ie(e.gg,t._a[uo],c.year),r=ie(e.w,c.week),null!=e.d?((o=e.d)<0||o>6)&&(u=!0):null!=e.e?(o=e.e+i,(e.e<0||e.e>6)&&(u=!0)):o=i}r<1||r>St(n,i,a)?h(t)._overflowWeeks=!0:null!=u?h(t)._overflowWeekday=!0:(s=wt(n,r,o,i,a),t._a[uo]=s.year,t._dayOfYear=s.dayOfYear)}function ce(t){var e,n,r,o,i,a,s=t._i,u=Fo.exec(s)||zo.exec(s);if(u){for(h(t).iso=!0,e=0,n=Yo.length;e0&&h(t).unusedInput.push(a),s=s.slice(s.indexOf(r)+r.length),c+=r.length),Br[i]?(r?h(t).empty=!1:h(t).unusedTokens.push(i),Q(i,r,t)):t._strict&&!r&&h(t).unusedTokens.push(i);h(t).charsLeftOver=u-c,s.length>0&&h(t).unusedInput.push(s),t._a[fo]<=12&&!0===h(t).bigHour&&t._a[fo]>0&&(h(t).bigHour=void 0),h(t).parsedDateParts=t._a.slice(0),h(t).meridiem=t._meridiem,t._a[fo]=ye(t._locale,t._a[fo],t._meridiem),se(t),oe(t)}function ye(t,e,n){var r;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?(r=t.isPM(n),r&&e<12&&(e+=12),r||12!==e||(e=0),e):e}function be(t){var e,n,r,o,i;if(0===t._f.length)return h(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;othis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Ge(){if(!i(this._isDSTShifted))return this._isDSTShifted;var t={};if(m(t,this),t=we(t),t._a){var e=t._isUTC?f(t._a):Ce(t._a);this._isDSTShifted=this.isValid()&&_(t._a,e.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted}function qe(){return!!this.isValid()&&!this._isUTC}function Ke(){return!!this.isValid()&&this._isUTC}function Xe(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}function Ze(t,e){var n,r,o,i=t,s=null;return Ae(t)?i={ms:t._milliseconds,d:t._days,M:t._months}:a(t)?(i={},e?i[e]=t:i.milliseconds=t):(s=$o.exec(t))?(n="-"===s[1]?-1:1,i={y:0,d:x(s[lo])*n,h:x(s[fo])*n,m:x(s[po])*n,s:x(s[ho])*n,ms:x(De(1e3*s[vo]))*n}):(s=Qo.exec(t))?(n="-"===s[1]?-1:(s[1],1),i={y:$e(s[2],n),M:$e(s[3],n),w:$e(s[4],n),d:$e(s[5],n),h:$e(s[6],n),m:$e(s[7],n),s:$e(s[8],n)}):null==i?i={}:"object"==typeof i&&("from"in i||"to"in i)&&(o=Je(Ce(i.from),Ce(i.to)),i={},i.ms=o.milliseconds,i.M=o.months),r=new Ne(i),Ae(t)&&c(t,"_locale")&&(r._locale=t._locale),r}function $e(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Qe(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Je(t,e){var n;return t.isValid()&&e.isValid()?(e=Le(e,t),t.isBefore(e)?n=Qe(t,e):(n=Qe(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tn(t,e){return function(n,r){var o,i;return null===r||isNaN(+r)||(S(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),n="string"==typeof n?+n:n,o=Ze(n,r),en(this,o,t),this}}function en(t,n,r,o){var i=n._milliseconds,a=De(n._days),s=De(n._months);t.isValid()&&(o=null==o||o,s&&ht(t,rt(t,"Month")+s*r),a&&ot(t,"Date",rt(t,"Date")+a*r),i&&t._d.setTime(t._d.valueOf()+i*r),o&&e.updateOffset(t,a||s))}function nn(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function rn(t,n){var r=t||Ce(),o=Le(r,this).startOf("day"),i=e.calendarFormat(this,o)||"sameElse",a=n&&(C(n[i])?n[i].call(this,r):n[i]);return this.format(a||this.localeData().calendar(i,this,Ce(r)))}function on(){return new g(this)}function an(t,e){var n=y(t)?t:Ce(t);return!(!this.isValid()||!n.isValid())&&(e=R(i(e)?"millisecond":e),"millisecond"===e?this.valueOf()>n.valueOf():n.valueOf()9999?H(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):C(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",H(n,"Z")):H(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function mn(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",o=e+'[")]';return this.format(n+r+"-MM-DD[T]HH:mm:ss.SSS"+o)}function gn(t){t||(t=this.isUtc()?e.defaultFormatUtc:e.defaultFormat);var n=H(this,t);return this.localeData().postformat(n)}function yn(t,e){return this.isValid()&&(y(t)&&t.isValid()||Ce(t).isValid())?Ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function bn(t){return this.from(Ce(),t)}function xn(t,e){return this.isValid()&&(y(t)&&t.isValid()||Ce(t).isValid())?Ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function _n(t){return this.to(Ce(),t)}function wn(t){var e;return void 0===t?this._locale._abbr:(e=ne(t),null!=e&&(this._locale=e),this)}function On(){return this._locale}function Sn(t){switch(t=R(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t&&this.weekday(0),"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this}function Cn(t){return void 0===(t=R(t))||"millisecond"===t?this:("date"===t&&(t="day"),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms"))}function kn(){return this._d.valueOf()-6e4*(this._offset||0)}function jn(){return Math.floor(this.valueOf()/1e3)}function En(){return new Date(this.valueOf())}function Mn(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function Tn(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function Pn(){return this.isValid()?this.toISOString():null}function Nn(){return d(this)}function An(){return l({},h(this))}function Dn(){return h(this).overflow}function In(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}function Rn(t,e){Y(0,[t,t.length],0,e)}function Ln(t){return Yn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function Fn(t){return Yn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function zn(){return St(this.year(),1,4)}function Vn(){var t=this.localeData()._week;return St(this.year(),t.dow,t.doy)}function Yn(t,e,n,r,o){var i;return null==t?Ot(this,r,o).year:(i=St(t,r,o),e>i&&(e=i),Bn.call(this,t,e,n,r,o))}function Bn(t,e,n,r,o){var i=wt(t,e,n,r,o),a=xt(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}function Wn(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)}function Hn(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")}function Un(t,e){e[vo]=x(1e3*("0."+t))}function Gn(){return this._isUTC?"UTC":""}function qn(){return this._isUTC?"Coordinated Universal Time":""}function Kn(t){return Ce(1e3*t)}function Xn(){return Ce.apply(null,arguments).parseZone()}function Zn(t){return t}function $n(t,e,n,r){var o=ne(),i=f().set(r,e);return o[n](i,t)}function Qn(t,e,n){if(a(t)&&(e=t,t=void 0),t=t||"",null!=e)return $n(t,e,n,"month");var r,o=[];for(r=0;r<12;r++)o[r]=$n(t,r,n,"month");return o}function Jn(t,e,n,r){"boolean"==typeof t?(a(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,a(e)&&(n=e,e=void 0),e=e||"");var o=ne(),i=t?o._week.dow:0;if(null!=n)return $n(e,(n+i)%7,r,"day");var s,u=[];for(s=0;s<7;s++)u[s]=$n(e,(s+i)%7,r,"day");return u}function tr(t,e){return Qn(t,e,"months")}function er(t,e){return Qn(t,e,"monthsShort")}function nr(t,e,n){return Jn(t,e,n,"weekdays")}function rr(t,e,n){return Jn(t,e,n,"weekdaysShort")}function or(t,e,n){return Jn(t,e,n,"weekdaysMin")}function ir(){var t=this._data;return this._milliseconds=ci(this._milliseconds),this._days=ci(this._days),this._months=ci(this._months),t.milliseconds=ci(t.milliseconds),t.seconds=ci(t.seconds),t.minutes=ci(t.minutes),t.hours=ci(t.hours),t.months=ci(t.months),t.years=ci(t.years),this}function ar(t,e,n,r){var o=Ze(e,n);return t._milliseconds+=r*o._milliseconds,t._days+=r*o._days,t._months+=r*o._months,t._bubble()}function sr(t,e){return ar(this,t,e,1)}function ur(t,e){return ar(this,t,e,-1)}function cr(t){return t<0?Math.floor(t):Math.ceil(t)}function lr(){var t,e,n,r,o,i=this._milliseconds,a=this._days,s=this._months,u=this._data;return i>=0&&a>=0&&s>=0||i<=0&&a<=0&&s<=0||(i+=864e5*cr(pr(s)+a),a=0,s=0),u.milliseconds=i%1e3,t=b(i/1e3),u.seconds=t%60,e=b(t/60),u.minutes=e%60,n=b(e/60),u.hours=n%24,a+=b(n/24),o=b(fr(a)),s+=o,a-=cr(pr(o)),r=b(s/12),s%=12,u.days=a,u.months=s,u.years=r,this}function fr(t){return 4800*t/146097}function pr(t){return 146097*t/4800}function hr(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if("month"===(t=R(t))||"year"===t)return e=this._days+r/864e5,n=this._months+fr(e),"month"===t?n:n/12;switch(e=this._days+Math.round(pr(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return 24*e+r/36e5;case"minute":return 1440*e+r/6e4;case"second":return 86400*e+r/1e3;case"millisecond":return Math.floor(864e5*e)+r;default:throw new Error("Unknown unit "+t)}}function dr(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*x(this._months/12):NaN}function vr(t){return function(){return this.as(t)}}function mr(){return Ze(this)}function gr(t){return t=R(t),this.isValid()?this[t+"s"]():NaN}function yr(t){return function(){return this.isValid()?this._data[t]:NaN}}function br(){return b(this.days()/7)}function xr(t,e,n,r,o){return o.relativeTime(e||1,!!n,t,r)}function _r(t,e,n){var r=Ze(t).abs(),o=Ci(r.as("s")),i=Ci(r.as("m")),a=Ci(r.as("h")),s=Ci(r.as("d")),u=Ci(r.as("M")),c=Ci(r.as("y")),l=o<=ki.ss&&["s",o]||o0,l[4]=n,xr.apply(null,l)}function wr(t){return void 0===t?Ci:"function"==typeof t&&(Ci=t,!0)}function Or(t,e){return void 0!==ki[t]&&(void 0===e?ki[t]:(ki[t]=e,"s"===t&&(ki.ss=e-1),!0))}function Sr(t){if(!this.isValid())return this.localeData().invalidDate();var e=this.localeData(),n=_r(this,!t,e);return t&&(n=e.pastFuture(+this,n)),e.postformat(n)}function Cr(t){return(t>0)-(t<0)||+t}function kr(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,r=ji(this._milliseconds)/1e3,o=ji(this._days),i=ji(this._months);t=b(r/60),e=b(t/60),r%=60,t%=60,n=b(i/12),i%=12;var a=n,s=i,u=o,c=e,l=t,f=r?r.toFixed(3).replace(/\.?0+$/,""):"",p=this.asSeconds();if(!p)return"P0D";var h=p<0?"-":"",d=Cr(this._months)!==Cr(p)?"-":"",v=Cr(this._days)!==Cr(p)?"-":"",m=Cr(this._milliseconds)!==Cr(p)?"-":"";return h+"P"+(a?d+a+"Y":"")+(s?d+s+"M":"")+(u?v+u+"D":"")+(c||l||f?"T":"")+(c?m+c+"H":"")+(l?m+l+"M":"")+(f?m+f+"S":"")}var jr,Er;Er=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),n=e.length>>>0,r=0;r68?1900:2e3)};var yo,bo=nt("FullYear",!0);yo=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;ethis?this:t:v()}),Ko=function(){return Date.now?Date.now():+new Date},Xo=["year","quarter","month","week","day","hour","minute","second","millisecond"];Ie("Z",":"),Ie("ZZ",""),G("Z",ro),G("ZZ",ro),Z(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=Re(ro,t)});var Zo=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var $o=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Qo=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;Ze.fn=Ne.prototype,Ze.invalid=Pe;var Jo=tn(1,"add"),ti=tn(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",e.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ei=O("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});Y(0,["gg",2],0,function(){return this.weekYear()%100}),Y(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Rn("gggg","weekYear"),Rn("ggggg","weekYear"),Rn("GGGG","isoWeekYear"),Rn("GGGGG","isoWeekYear"),I("weekYear","gg"),I("isoWeekYear","GG"),F("weekYear",1),F("isoWeekYear",1),G("G",eo),G("g",eo),G("GG",Kr,Hr),G("gg",Kr,Hr),G("GGGG",Qr,Gr),G("gggg",Qr,Gr),G("GGGGG",Jr,qr),G("ggggg",Jr,qr),$(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=x(t)}),$(["gg","GG"],function(t,n,r,o){n[o]=e.parseTwoDigitYear(t)}),Y("Q",0,"Qo","quarter"),I("quarter","Q"),F("quarter",7),G("Q",Wr),Z("Q",function(t,e){e[co]=3*(x(t)-1)}),Y("D",["DD",2],"Do","date"),I("date","D"),F("date",9),G("D",Kr),G("DD",Kr,Hr),G("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Z(["D","DD"],lo),Z("Do",function(t,e){e[lo]=x(t.match(Kr)[0])});var ni=nt("Date",!0);Y("DDD",["DDDD",3],"DDDo","dayOfYear"),I("dayOfYear","DDD"),F("dayOfYear",4),G("DDD",$r),G("DDDD",Ur),Z(["DDD","DDDD"],function(t,e,n){n._dayOfYear=x(t)}),Y("m",["mm",2],0,"minute"),I("minute","m"),F("minute",14),G("m",Kr),G("mm",Kr,Hr),Z(["m","mm"],po);var ri=nt("Minutes",!1);Y("s",["ss",2],0,"second"),I("second","s"),F("second",15),G("s",Kr),G("ss",Kr,Hr),Z(["s","ss"],ho);var oi=nt("Seconds",!1);Y("S",0,0,function(){return~~(this.millisecond()/100)}),Y(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Y(0,["SSS",3],0,"millisecond"),Y(0,["SSSS",4],0,function(){return 10*this.millisecond()}),Y(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),Y(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),Y(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),Y(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),Y(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),I("millisecond","ms"),F("millisecond",16),G("S",$r,Wr),G("SS",$r,Hr),G("SSS",$r,Ur);var ii;for(ii="SSSS";ii.length<=9;ii+="S")G(ii,to);for(ii="S";ii.length<=9;ii+="S")Z(ii,Un);var ai=nt("Milliseconds",!1);Y("z",0,0,"zoneAbbr"),Y("zz",0,0,"zoneName");var si=g.prototype;si.add=Jo,si.calendar=rn,si.clone=on,si.diff=pn,si.endOf=Cn,si.format=gn,si.from=yn,si.fromNow=bn,si.to=xn,si.toNow=_n,si.get=it,si.invalidAt=Dn,si.isAfter=an,si.isBefore=sn,si.isBetween=un,si.isSame=cn,si.isSameOrAfter=ln,si.isSameOrBefore=fn,si.isValid=Nn,si.lang=ei,si.locale=wn,si.localeData=On,si.max=qo,si.min=Go,si.parsingFlags=An,si.set=at,si.startOf=Sn,si.subtract=ti,si.toArray=Mn,si.toObject=Tn,si.toDate=En,si.toISOString=vn,si.inspect=mn,si.toJSON=Pn,si.toString=dn,si.unix=jn,si.valueOf=kn,si.creationData=In,si.year=bo,si.isLeapYear=et,si.weekYear=Ln,si.isoWeekYear=Fn,si.quarter=si.quarters=Wn,si.month=dt,si.daysInMonth=vt,si.week=si.weeks=Et,si.isoWeek=si.isoWeeks=Mt,si.weeksInYear=Vn,si.isoWeeksInYear=zn,si.date=ni,si.day=si.days=Lt,si.weekday=Ft,si.isoWeekday=zt,si.dayOfYear=Hn,si.hour=si.hours=Do,si.minute=si.minutes=ri,si.second=si.seconds=oi,si.millisecond=si.milliseconds=ai,si.utcOffset=ze,si.utc=Ye,si.local=Be,si.parseZone=We,si.hasAlignedHourOffset=He,si.isDST=Ue,si.isLocal=qe,si.isUtcOffset=Ke,si.isUtc=Xe,si.isUTC=Xe,si.zoneAbbr=Gn,si.zoneName=qn,si.dates=O("dates accessor is deprecated. Use date instead.",ni),si.months=O("months accessor is deprecated. Use month instead",dt),si.years=O("years accessor is deprecated. Use year instead",bo),si.zone=O("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Ve),si.isDSTShifted=O("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Ge);var ui=E.prototype;ui.calendar=M,ui.longDateFormat=T,ui.invalidDate=P,ui.ordinal=N,ui.preparse=Zn,ui.postformat=Zn,ui.relativeTime=A,ui.pastFuture=D,ui.set=k,ui.months=ct,ui.monthsShort=lt,ui.monthsParse=pt,ui.monthsRegex=gt,ui.monthsShortRegex=mt,ui.week=Ct,ui.firstDayOfYear=jt,ui.firstDayOfWeek=kt,ui.weekdays=Nt,ui.weekdaysMin=Dt,ui.weekdaysShort=At,ui.weekdaysParse=Rt,ui.weekdaysRegex=Vt,ui.weekdaysShortRegex=Yt,ui.weekdaysMinRegex=Bt,ui.isPM=Kt,ui.meridiem=Xt,Jt("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===x(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),e.lang=O("moment.lang is deprecated. Use moment.locale instead.",Jt),e.langData=O("moment.langData is deprecated. Use moment.localeData instead.",ne);var ci=Math.abs,li=vr("ms"),fi=vr("s"),pi=vr("m"),hi=vr("h"),di=vr("d"),vi=vr("w"),mi=vr("M"),gi=vr("y"),yi=yr("milliseconds"),bi=yr("seconds"),xi=yr("minutes"),_i=yr("hours"),wi=yr("days"),Oi=yr("months"),Si=yr("years"),Ci=Math.round,ki={ss:44,s:45,m:45,h:22,d:26,M:11},ji=Math.abs,Ei=Ne.prototype;return Ei.isValid=Te,Ei.abs=ir,Ei.add=sr,Ei.subtract=ur,Ei.as=hr,Ei.asMilliseconds=li,Ei.asSeconds=fi,Ei.asMinutes=pi,Ei.asHours=hi,Ei.asDays=di,Ei.asWeeks=vi,Ei.asMonths=mi,Ei.asYears=gi,Ei.valueOf=dr,Ei._bubble=lr,Ei.clone=mr,Ei.get=gr,Ei.milliseconds=yi,Ei.seconds=bi,Ei.minutes=xi,Ei.hours=_i,Ei.days=wi,Ei.weeks=br,Ei.months=Oi,Ei.years=Si,Ei.humanize=Sr,Ei.toISOString=kr,Ei.toString=kr,Ei.toJSON=kr,Ei.locale=wn,Ei.localeData=On,Ei.toIsoString=O("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",kr),Ei.lang=ei,Y("X",0,0,"unix"),Y("x",0,0,"valueOf"),G("x",eo),G("X",oo),Z("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t,10))}),Z("x",function(t,e,n){n._d=new Date(x(t))}),e.version="2.22.1",function(t){jr=t}(Ce),e.fn=si,e.min=je,e.max=Ee,e.now=Ko,e.utc=f,e.unix=Kn,e.months=tr,e.isDate=s,e.locale=Jt,e.invalid=v,e.duration=Ze,e.isMoment=y,e.weekdays=nr,e.parseZone=Xn,e.localeData=ne,e.isDuration=Ae,e.monthsShort=er,e.weekdaysMin=or,e.defineLocale=te,e.updateLocale=ee,e.locales=re,e.weekdaysShort=rr,e.normalizeUnits=R,e.relativeTimeRounding=wr,e.relativeTimeThreshold=Or,e.calendarFormat=nn,e.prototype=si,e.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"},e})}).call(e,n(87)(t))},function(t,e){t.exports=function(t,e,n,r){var o=n?n.call(r,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),u=0;u1&&void 0!==arguments[1]?arguments[1]:[],n={};return a.Util.each(t,function(t,r){-1===a.Util.indexOf(e,r)&&(n[r]=t)}),n},length:o})},function(e,n){e.exports=t},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}var o=n(5),i=r(o),a=n(2),s=r(a),u=n(34),c=r(u),l=n(28),f=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(l),p=s.default.mix(f,{G2:i.default,Util:s.default,Shape:o.Shape,Animate:o.Animate,PathUtil:o.PathUtil,track:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];i.default.track(t)},setTheme:function(t){var e=t;"string"==typeof t&&c.default[t]&&(e=c.default[t]),i.default.Global.setTheme(e)}});e.default=p,t.exports=e.default},function(t,e,n){!function(e,n){t.exports=n()}("undefined"!=typeof self&&self,function(){return function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=169)}([function(t,e,n){function r(t,e){for(var n in e)e.hasOwnProperty(n)&&"constructor"!==n&&void 0!==e[n]&&(t[n]=e[n])}function o(t,e,n){n=n||0;for(var r in e)if(e.hasOwnProperty(r)){var s=e[r];null!==s&&a.isPlainObject(s)?(a.isPlainObject(t[r])||(t[r]={}),n20&&(o=20),parseFloat(t.toFixed(o))},mix:function(t,e,n,o){return e&&r(t,e),n&&r(t,n),o&&r(t,o),t},inArray:function(t,e){return t.indexOf(e)>=0},wrapBehavior:function(t,e){if(t["_wrap_"+e])return t["_wrap_"+e];var n=function(n){t[e](n)};return t["_wrap_"+e]=n,n},getWrapBehavior:function(t,e){return t["_wrap_"+e]},toAllPadding:function(t){var e=0,n=0,r=0,o=0;return a.isNumber(t)||a.isString(t)?e=n=r=o=t:a.isArray(t)?(e=t[0],r=a.isNil(t[1])?t[0]:t[1],o=a.isNil(t[2])?t[0]:t[2],n=a.isNil(t[3])?r:t[3]):a.isObject(t)&&(e=t.top||0,r=t.right||0,o=t.bottom||0,n=t.left||0),[e,r,o,n]},substitute:function(t,e){return t&&e?t.replace(/\\?\{([^{}]+)\}/g,function(t,n){return"\\"===t.charAt(0)?t.slice(1):void 0===e[n]?"":e[n]}):t}};a.deepMix=function(){for(var t=a.toArray(arguments),e=t[0],n=1;n0){var a=n.strokeOpacity;r.isNil(a)||1===a||(t.globalAlpha=a),t.stroke()}}},isPointInPath:function(){return!1},isHitBox:function(){return!0},isHit:function(t,e){var n=this,r=[t,e,1];if(n.invert(r),n.isHitBox()){var o=n.getBBox();if(o&&!i.box(o.minX,o.maxX,o.minY,o.maxY,r[0],r[1]))return!1}var a=n.__attrs.clip;return a?!!a.inside(t,e)&&n.isPointInPath(r[0],r[1]):n.isPointInPath(r[0],r[1])},calculateBox:function(){return null},getHitLineWidth:function(){var t=this.__attrs,e=t.lineAppendWidth||0;return(t.lineWidth||0)+e},clearTotalMatrix:function(){this.__cfg.totalMatrix=null,this.__cfg.region=null},clearBBox:function(){this.__cfg.box=null,this.__cfg.region=null},getBBox:function(){var t=this.__cfg.box;return t||(t=this.calculateBox(),t&&(t.x=t.minX,t.y=t.minY,t.width=t.maxX-t.minX,t.height=t.maxY-t.minY),this.__cfg.box=t),t}}),t.exports=a},function(t,e,n){var r=n(52),o=n(53),i=n(32),a=n(54);t.exports={line:function(t,e,n,o,i,a,s){var u=r.box(t,e,n,o,i);if(!this.box(u.minX,u.maxX,u.minY,u.maxY,a,s))return!1;var c=r.pointDistance(t,e,n,o,a,s);return!isNaN(c)&&c<=i/2},polyline:function(t,e,n,r){var o=t.length-1;if(o<1)return!1;for(var i=0;i=0;return n?o?2*Math.PI-r:r:o?r:2*Math.PI-r},a.vertical=function(t,e,n){return n?(t[0]=e[1],t[1]=-1*e[0]):(t[0]=-1*e[1],t[1]=e[0]),t},o.translate=function(t,e,n){var r=new Array(9);return o.fromTranslation(r,n),o.multiply(t,r,e)},o.rotate=function(t,e,n){var r=new Array(9);return o.fromRotation(r,n),o.multiply(t,r,e)},o.scale=function(t,e,n){var r=new Array(9);return o.fromScaling(r,n),o.multiply(t,r,e)},t.exports={mat3:o,vec2:a,vec3:i,transform:function(t,e){return t=r.clone(t),r.each(e,function(e){switch(e[0]){case"t":o.translate(t,t,[e[1],e[2]]);break;case"s":o.scale(t,t,[e[1],e[2]]);break;case"r":o.rotate(t,t,e[1]);break;case"m":o.multiply(t,t,e[1]);break;default:return!1}}),t}}},function(t,e){function n(t){return null!=t&&"object"==(void 0===t?"undefined":r(t))}var r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)};t.exports=n},function(t,e,n){var r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)},o=n(56),a="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,s=o||a||Function("return this")();t.exports=s},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){function r(t){return null==t?void 0===t?u:s:c&&c in Object(t)?i(t):a(t)}var o=n(11),i=n(117),a=n(118),s="[object Null]",u="[object Undefined]",c=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){var e=void 0===t?"undefined":r(t);return null!=t&&("object"==e||"function"==e)}var r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)};t.exports=n},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!o(t)}var o=n(22),i=n(61);t.exports=r},function(t,e,n){function r(t,e){var n=i(t,e);return o(n)?n:void 0}var o=n(125),i=n(128);t.exports=r},function(t,e,n){var r=n(5),o=r.Symbol;t.exports=o},function(t,e,n){var r=n(124),o=n(33),i=n(129),a=n(130),s=n(131),u=n(7),c=n(60),l=c(r),f=c(o),p=c(i),h=c(a),d=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||o&&"[object Map]"!=v(new o)||i&&"[object Promise]"!=v(i.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(t){var e=u(t),n="[object Object]"==e?t.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case p:return"[object Promise]";case h:return"[object Set]";case d:return"[object WeakMap]"}return e}),t.exports=v},function(t,e,n){function r(t,e,n,r){var a=!n;n||(n={});for(var s=-1,u=e.length;++sn?n:t}}},function(t,e){function n(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}var r=Object.prototype;t.exports=n},function(t,e,n){(function(t){var r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)},o=n(5),a=n(133),s="object"==r(e)&&e&&!e.nodeType&&e,u=s&&"object"==r(t)&&t&&!t.nodeType&&t,c=u&&u.exports===s,l=c?o.Buffer:void 0,f=l?l.isBuffer:void 0,p=f||a;t.exports=p}).call(e,n(35)(t))},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e,n){"use strict";function r(t,e){return function(n){return t+n*e}}function o(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function i(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(u.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?o(e,n,t):Object(u.a)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?r(t,n):Object(u.a)(isNaN(t)?e:t)}e.c=i,e.b=a,e.a=s;var u=n(94)},function(t,e,n){function r(t){if(!i(t))return!1;var e=o(t);return e==s||e==u||e==a||e==c}var o=n(7),i=n(8),a="[object AsyncFunction]",s="[object Function]",u="[object GeneratorFunction]",c="[object Proxy]";t.exports=r},function(t,e,n){var r=n(134),o=n(24),i=n(36),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},function(t,e){function n(t){return function(e){return t(e)}}t.exports=n},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=0&&y=0&&u<=1&&s.push(u);else{var p=i*i-4*o*a;c.isNumberEqual(p,0)?s.push(-i/(2*o)):p>0&&(f=Math.sqrt(p),u=(-i+f)/(2*o),l=(-i-f)/(2*o),u>=0&&u<=1&&s.push(u),l>=0&&l<=1&&s.push(l))}return s}function s(t,e,n,r,o){return t*(t*(-3*e+9*n-9*r+3*o)+6*e-12*n+6*r)-3*e+3*n}function u(t,e,n,r,o,i,a,u,l){c.isNil(l)&&(l=1),l=l>1?1:l<0?0:l;for(var f=l/2,p=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],d=0,v=0;v<12;v++){var m=f*p[v]+f,g=s(m,t,n,o,a),y=s(m,e,r,i,u),b=g*g+y*y;d+=h[v]*Math.sqrt(b)}return f*d}var c=n(0),l=n(3).vec2;t.exports={at:r,derivativeAt:o,projectPoint:function(t,e,n,r,o,a,s,u,c,l){var f={};return i(t,e,n,r,o,a,s,u,c,l,f),f},pointDistance:i,extrema:a,len:u}},function(t,e,n){var r=n(10),o=n(5),i=r(o,"Map");t.exports=i},function(t,e,n){var r=n(132),o=n(4),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){(function(t){var r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)},o=n(56),a="object"==r(e)&&e&&!e.nodeType&&e,s=a&&"object"==r(t)&&t&&!t.nodeType&&t,u=s&&s.exports===a,c=u&&o.process,l=function(){try{return c&&c.binding&&c.binding("util")}catch(t){}}();t.exports=l}).call(e,n(35)(t))},function(t,e){function n(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n2&&(n.push([r].concat(i.splice(0,2))),a="l",r="m"===r?"l":"L"),"o"===a&&1===i.length&&n.push([r,i[0]]),"r"===a)n.push([r].concat(i));else for(;i.length>=e[a]&&(n.push([r].concat(i.splice(0,e[a]))),e[a]););}),n},l=function(t,e){for(var n=[],r=0,o=t.length;o-2*!e>r;r+=2){var i=[{x:+t[r-2],y:+t[r-1]},{x:+t[r],y:+t[r+1]},{x:+t[r+2],y:+t[r+3]},{x:+t[r+4],y:+t[r+5]}];e?r?o-4===r?i[3]={x:+t[0],y:+t[1]}:o-2===r&&(i[2]={x:+t[0],y:+t[1]},i[3]={x:+t[2],y:+t[3]}):i[0]={x:+t[o-2],y:+t[o-1]}:o-4===r?i[3]=i[2]:r||(i[0]={x:+t[r],y:+t[r+1]}),n.push(["C",(-i[0].x+6*i[1].x+i[2].x)/6,(-i[0].y+6*i[1].y+i[2].y)/6,(i[1].x+6*i[2].x-i[3].x)/6,(i[1].y+6*i[2].y-i[3].y)/6,i[2].x,i[2].y])}return n},f=function(t,e,n,r,o){var i=[];if(null===o&&null===r&&(r=n),t=+t,e=+e,n=+n,r=+r,null!==o){var a=Math.PI/180,s=t+n*Math.cos(-r*a),u=t+n*Math.cos(-o*a);i=[["M",s,e+n*Math.sin(-r*a)],["A",n,n,0,+(o-r>180),0,u,e+n*Math.sin(-o*a)]]}else i=[["M",t,e],["m",0,-r],["a",n,r,0,1,1,0,2*r],["a",n,r,0,1,1,0,-2*r],["z"]];return i},p=function(t){if(!(t=c(t))||!t.length)return[["M",0,0]];var e=[],n=0,r=0,o=0,i=0,a=0,s=void 0,u=void 0;"M"===t[0][0]&&(n=+t[0][1],r=+t[0][2],o=n,i=r,a++,e[0]=["M",n,r]);for(var p,h,d=3===t.length&&"M"===t[0][0]&&"R"===t[1][0].toUpperCase()&&"Z"===t[2][0].toUpperCase(),v=a,m=t.length;v1&&(w=Math.sqrt(w),r*=w,o*=w);var O=r*r,S=o*o,C=(a===s?-1:1)*Math.sqrt(Math.abs((O*S-O*_*_-S*x*x)/(O*_*_+S*x*x)));g=C*r*_/o+(e+u)/2,y=C*-o*x/r+(n+c)/2,v=Math.asin(((n-y)/o).toFixed(9)),m=Math.asin(((c-y)/o).toFixed(9)),v=em&&(v-=2*Math.PI),!s&&m>v&&(m-=2*Math.PI)}var k=m-v;if(Math.abs(k)>f){var j=m,E=u,M=c;m=v+f*(s&&m>v?1:-1),u=g+r*Math.cos(m),c=y+o*Math.sin(m),h=t(u,c,r,o,i,0,s,E,M,[m,j,g,y])}k=m-v;var T=Math.cos(v),P=Math.sin(v),N=Math.cos(m),A=Math.sin(m),D=Math.tan(k/4),I=4/3*r*D,R=4/3*o*D,L=[e,n],F=[e+I*P,n-R*T],z=[u+I*A,c-R*N],V=[u,c];if(F[0]=2*L[0]-F[0],F[1]=2*L[1]-F[1],l)return[F,z,V].concat(h);h=[F,z,V].concat(h).join().split(",");for(var Y=[],B=0,W=h.length;B7){t[e].shift();for(var o=t[e];o.length;)n[e]="A",i&&(r[e]="A"),t.splice(e++,0,["C"].concat(o.splice(0,6)));t.splice(e,1)}},l=function(t,e,n,r,o){t&&e&&"M"===t[o][0]&&"M"!==e[o][0]&&(e.splice(o,0,["M",r.x,r.y]),n.bx=0,n.by=0,n.x=t[o][1],n.y=t[o][2])},f="",m="",g=0,y=Math.max(o.length,i&&i.length||0);g1?1:u<0?0:u;for(var c=u/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],f=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,h=0;h<12;h++){var d=c*l[h]+c,v=b(d,t,n,o,a),m=b(d,e,r,i,s),g=v*v+m*m;p+=f[h]*Math.sqrt(g)}return c*p},_=function(t,e,n,r,o,i,a,s){for(var u=[],c=[[],[]],l=void 0,f=void 0,p=void 0,h=void 0,d=0;d<2;++d)if(0===d?(f=6*t-12*n+6*o,l=-3*t+9*n-9*o+3*a,p=3*n-3*t):(f=6*e-12*r+6*i,l=-3*e+9*r-9*i+3*s,p=3*r-3*e),Math.abs(l)<1e-12){if(Math.abs(f)<1e-12)continue;(h=-p/f)>0&&h<1&&u.push(h)}else{var v=f*f-4*p*l,m=Math.sqrt(v);if(!(v<0)){var g=(-f+m)/(2*l);g>0&&g<1&&u.push(g);var y=(-f-m)/(2*l);y>0&&y<1&&u.push(y)}}for(var b=u.length,x=b,_=void 0;b--;)h=u[b],_=1-h,c[0][b]=_*_*_*t+3*_*_*h*n+3*_*h*h*o+h*h*h*a,c[1][b]=_*_*_*e+3*_*_*h*r+3*_*h*h*i+h*h*h*s;return c[0][x]=t,c[1][x]=e,c[0][x+1]=a,c[1][x+1]=s,c[0].length=c[1].length=x+2,{min:{x:Math.min.apply(0,c[0]),y:Math.min.apply(0,c[1])},max:{x:Math.max.apply(0,c[0]),y:Math.max.apply(0,c[1])}}},w=function(t,e,n,r,o,i,a,s){if(!(Math.max(t,n)Math.max(o,a)||Math.max(e,r)Math.max(i,s))){var u=(t*r-e*n)*(o-a)-(t-n)*(o*s-i*a),c=(t*r-e*n)*(i-s)-(e-r)*(o*s-i*a),l=(t-n)*(i-s)-(e-r)*(o-a);if(l){var f=u/l,p=c/l,h=+f.toFixed(2),d=+p.toFixed(2);if(!(h<+Math.min(t,n).toFixed(2)||h>+Math.max(t,n).toFixed(2)||h<+Math.min(o,a).toFixed(2)||h>+Math.max(o,a).toFixed(2)||d<+Math.min(e,r).toFixed(2)||d>+Math.max(e,r).toFixed(2)||d<+Math.min(i,s).toFixed(2)||d>+Math.max(i,s).toFixed(2)))return{x:f,y:p}}}},O=function(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height},S=function(t,e,n,r,o){if(o)return[["M",+t+ +o,e],["l",n-2*o,0],["a",o,o,0,0,1,o,o],["l",0,r-2*o],["a",o,o,0,0,1,-o,o],["l",2*o-n,0],["a",o,o,0,0,1,-o,-o],["l",0,2*o-r],["a",o,o,0,0,1,o,-o],["z"]];var i=[["M",t,e],["l",n,0],["l",0,r],["l",-n,0],["z"]];return i.parsePathArray=y,i},C=function(t,e,n,r){return null===t&&(t=e=n=r=0),null===e&&(e=t.y,n=t.width,r=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:r,h:r,x2:t+n,y2:e+r,cx:t+n/2,cy:e+r/2,r1:Math.min(n,r)/2,r2:Math.max(n,r)/2,r0:Math.sqrt(n*n+r*r)/2,path:S(t,e,n,r),vb:[t,e,n,r].join(" ")}},k=function(t,e){return t=C(t),e=C(e),O(e,t.x,t.y)||O(e,t.x2,t.y)||O(e,t.x,t.y2)||O(e,t.x2,t.y2)||O(t,e.x,e.y)||O(t,e.x2,e.y)||O(t,e.x,e.y2)||O(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},j=function(t,e,n,r,i,a,s,u){o.isArray(t)||(t=[t,e,n,r,i,a,s,u]);var c=_.apply(null,t);return C(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)},E=function(t,e,n,r,o,i,a,s,u){var c=1-u,l=Math.pow(c,3),f=Math.pow(c,2),p=u*u,h=p*u,d=l*t+3*f*u*n+3*c*u*u*o+h*a,v=l*e+3*f*u*r+3*c*u*u*i+h*s,m=t+2*u*(n-t)+p*(o-2*n+t),g=e+2*u*(r-e)+p*(i-2*r+e),y=n+2*u*(o-n)+p*(a-2*o+n),b=r+2*u*(i-r)+p*(s-2*i+r);return{x:d,y:v,m:{x:m,y:g},n:{x:y,y:b},start:{x:c*t+u*n,y:c*e+u*r},end:{x:c*o+u*a,y:c*i+u*s},alpha:90-180*Math.atan2(m-y,g-b)/Math.PI}},M=function(t,e,n){var r=j(t),o=j(e);if(!k(r,o))return n?0:[];for(var i=x.apply(0,t),a=x.apply(0,e),s=~~(i/8),u=~~(a/8),c=[],l=[],f={},p=n?0:[],h=0;h=0&&P<=1&&N>=0&&N<=1&&(n?p++:p.push({x:T.x,y:T.y,t1:P,t2:N}))}}return p},T=function(t,e,n){t=m(t),e=m(e);for(var r=void 0,o=void 0,i=void 0,a=void 0,s=void 0,u=void 0,c=void 0,l=void 0,f=void 0,p=void 0,h=n?0:[],d=0,v=t.length;d=0&&e._call.call(null,t),e=e._next;--m}function c(){_=(x=O.now())+w,m=g=0;try{u()}finally{m=0,f(),_=0}}function l(){var t=O.now(),e=t-x;e>b&&(w-=e,x=t)}function f(){for(var t,e,n=h,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:h=e);d=t,p(r)}function p(t){if(!m){g&&(g=clearTimeout(g));t-_>24?(t<1/0&&(g=setTimeout(c,t-O.now()-w)),y&&(y=clearInterval(y))):(y||(x=O.now(),y=setInterval(l,b)),m=1,S(c))}}e.b=r,e.a=a,e.c=s,e.d=u;var h,d,v="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)},m=0,g=0,y=0,b=1e3,x=0,_=0,w=0,O="object"===("undefined"==typeof performance?"undefined":v(performance))&&performance.now?performance:Date,S="object"===("undefined"==typeof window?"undefined":v(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};a.prototype=s.prototype={constructor:a,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||d===this||(d?d._next=this:h=this,d=this),this._call=t,this._time=n,p()},stop:function(){this._call&&(this._call=null,this._time=1/0,p())}}},function(t,e,n){"use strict";var r=n(15),o=n(92),a=n(95),s=n(96),u=n(31),c=n(97),l=n(98),f=n(94),p="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)};e.a=function(t,e){var n,i=void 0===e?"undefined":p(e);return null==e||"boolean"===i?Object(f.a)(e):("number"===i?u.a:"string"===i?(n=Object(r.a)(e))?(e=n,o.a):l.a:e instanceof r.a?o.a:e instanceof Date?s.a:Array.isArray(e)?a.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?c.a:u.a)(t,e)}},function(t,e,n){"use strict";function r(){}function o(t){var e;return t=(t+"").trim().toLowerCase(),(e=_.exec(t))?(e=parseInt(e[1],16),new c(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=w.exec(t))?i(parseInt(e[1],16)):(e=O.exec(t))?new c(e[1],e[2],e[3],1):(e=S.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=C.exec(t))?a(e[1],e[2],e[3],e[4]):(e=k.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=j.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=E.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):M.hasOwnProperty(t)?i(M[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function i(t){return new c(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function s(t){return t instanceof r||(t=o(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function u(t,e,n,r){return 1===arguments.length?s(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new h(t,e,n,r)}function f(t){if(t instanceof h)return new h(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=o(t)),!t)return new h;if(t instanceof h)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,a=Math.min(e,n,i),s=Math.max(e,n,i),u=NaN,c=s-a,l=(s+a)/2;return c?(u=e===s?(n-i)/c+6*(n0&&l<1?0:u,new h(u,c,l,t.opacity)}function p(t,e,n,r){return 1===arguments.length?f(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function d(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return m}),n.d(e,"c",function(){return g}),e.e=o,e.h=s,e.g=u,e.b=c,e.f=p;var v=n(50),m=.7,g=1/m,y="\\s*([+-]?\\d+)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3})$/,w=/^#([0-9a-f]{6})$/,O=new RegExp("^rgb\\("+[y,y,y]+"\\)$"),S=new RegExp("^rgb\\("+[x,x,x]+"\\)$"),C=new RegExp("^rgba\\("+[y,y,y,b]+"\\)$"),k=new RegExp("^rgba\\("+[x,x,x,b]+"\\)$"),j=new RegExp("^hsl\\("+[b,x,x]+"\\)$"),E=new RegExp("^hsla\\("+[b,x,x,b]+"\\)$"),M={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(v.a)(r,o,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(v.a)(c,u,Object(v.b)(r,{brighter:function(t){return t=null==t?g:Math.pow(g,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?m:Math.pow(m,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){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+")")}})),Object(v.a)(h,p,Object(v.b)(r,{brighter:function(t){return t=null==t?g:Math.pow(g,t),new h(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?m:Math.pow(m,t),new h(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new c(d(t>=240?t-240:t+120,o,r),d(t,o,r),d(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[o],a=t[o+1],s=o>0?t[o-1]:2*i-a,u=o=0&&d=0?[o]:[]}var a=n(0),s=n(3).vec2;t.exports={at:r,projectPoint:function(t,e,n,r,i,a,s,u){var c={};return o(t,e,n,r,i,a,s,u,c),c},pointDistance:o,extrema:i}},function(t,e,n){function r(t,e,n,r){return{x:Math.cos(r)*n+t,y:Math.sin(r)*n+e}}function o(t,e,n,r){var o=void 0,i=void 0;return r?tn&&(o=2*Math.PI-t+e,i=t-n):(o=t-e,i=n-t),o>i?n:e}function i(t,e,n,r){var i=0;return n-e>=2*Math.PI&&(i=2*Math.PI),e=u.mod(e,2*Math.PI),n=u.mod(n,2*Math.PI)+i,t=u.mod(t,2*Math.PI),r?e>=n?t>n&&tn?t:o(t,e,n):e<=n?ee||tt.x&&(d=t.x),vt.y&&(m=t.y),g-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){function r(t){return null==t?"":o(t)}var o=n(136);t.exports=r},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e-1&&t%1==0&&t1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++rp))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var v=-1,m=!0,g=n&u?new o:void 0;for(l.set(t,e),l.set(e,t);++v]*>/,s={tr:document.createElement("tbody"),tbody:o,thead:o,tfoot:o,td:i,th:i,"*":document.createElement("div")};t.exports={getBoundingClientRect:function(t,e){if(t&&t.getBoundingClientRect){var n=t.getBoundingClientRect(),r=document.documentElement.clientTop,o=document.documentElement.clientLeft;return{top:n.top-r,bottom:n.bottom-r,left:n.left-o,right:n.right-o}}return e||null},getStyle:function(t,e,n){try{return window.getComputedStyle?window.getComputedStyle(t,null)[e]:t.currentStyle[e]}catch(t){return r.isNil(n)?null:n}},modifyCSS:function(t,e){if(t)for(var n in e)e.hasOwnProperty(n)&&(t.style[n]=e[n]);return t},createDom:function(t){var e=a.test(t)&&RegExp.$1;e in s||(e="*");var n=s[e];t=t.replace(/(^\s*)|(\s*$)/g,""),n.innerHTML=""+t;var r=n.childNodes[0];return n.removeChild(r),r},getRatio:function(){return window.devicePixelRatio?window.devicePixelRatio:2},getWidth:function(t,e){var n=this.getStyle(t,"width",e);return"auto"===n&&(n=t.offsetWidth),parseFloat(n)},getHeight:function(t,e){var n=this.getStyle(t,"height",e);return"auto"===n&&(n=t.offsetHeight),parseFloat(n)},getOuterHeight:function(t,e){var n=this.getHeight(t,e),r=parseFloat(this.getStyle(t,"borderTopWidth"))||0,o=parseFloat(this.getStyle(t,"paddingTop"))||0,i=parseFloat(this.getStyle(t,"paddingBottom"))||0;return n+r+(parseFloat(this.getStyle(t,"borderBottomWidth"))||0)+o+i},getOuterWidth:function(t,e){var n=this.getWidth(t,e),r=parseFloat(this.getStyle(t,"borderLeftWidth"))||0,o=parseFloat(this.getStyle(t,"paddingLeft"))||0,i=parseFloat(this.getStyle(t,"paddingRight"))||0;return n+r+(parseFloat(this.getStyle(t,"borderRightWidth"))||0)+o+i},addEventListener:function(t,e,n){if(t){if(t.addEventListener)return t.addEventListener(e,n,!1),{remove:function(){t.removeEventListener(e,n,!1)}};if(t.attachEvent)return t.attachEvent("on"+e,n),{remove:function(){t.detachEvent("on"+e,n)}}}},requestAnimationFrame:function(t){return(window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(t){return setTimeout(t,16)})(t)}}},function(t,e,n){var r=n(0),o=function(t,e,n,r){this.type=t,this.target=null,this.currentTarget=null,this.bubbles=n,this.cancelable=r,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.removed=!1,this.event=e};r.augment(o,{preventDefault:function(){this.defaultPrevented=this.cancelable&&!0},stopPropagation:function(){this.propagationStopped=!0},remove:function(){this.remove=!0},clone:function(){return r.clone(this)},toString:function(){return"[Event (type="+this.type+")]"}}),t.exports=o},function(t,e,n){function r(t,e,n){for(var r=void 0,o=t.length-1;o>=0;o--){var i=t[o];if(i.__cfg.visible&&i.__cfg.capture&&(i.isGroup?r=i.getShape(e,n):i.isHit(e,n)&&(r=i)),r)break}return r}function o(t){return function(e,n){var r=t(e,n);return 0===r?e[l]-n[l]:r}}function i(t){if(!t.__cfg&&t!==f){var e=t.superclass.constructor;e&&!e.__cfg&&i(e),t.__cfg={},a.merge(t.__cfg,e.__cfg),a.merge(t.__cfg,t.CFG)}}var a=n(0),s=n(90),u=n(263),c={},l="_INDEX",f=function t(e){t.superclass.constructor.call(this,e),this.set("children",[]),this._beforeRenderUI(),this._renderUI(),this._bindUI()};a.extend(f,s),a.augment(f,{isGroup:!0,canFill:!0,canStroke:!0,getDefaultCfg:function(){return i(this.constructor),a.merge({},this.constructor.__cfg)},_beforeRenderUI:function(){},_renderUI:function(){},_bindUI:function(){},addShape:function(t,e){var n=this.get("canvas");e=e||{};var r=c[t];if(r||(r=a.upperFirst(t),c[t]=r),e.attrs){var o=e.attrs;if("text"===t){var i=n.get("fontFamily");i&&(o.fontFamily=o.fontFamily?o.fontFamily:i)}}e.canvas=n,e.type=t;var s=new u[r](e);return this.add(s),s},addGroup:function(t,e){var n=this.get("canvas"),r=void 0;if(e=a.merge({},e),a.isFunction(t))e?(e.canvas=n,e.parent=this,r=new t(e)):r=new t({canvas:n,parent:this}),this.add(r);else if(a.isObject(t))t.canvas=n,r=new f(t),this.add(r);else{if(void 0!==t)return!1;r=new f,this.add(r)}return r},renderBack:function(t,e){var n=this.get("backShape"),r=this.getBBox();return a.merge(e,{x:r.minX-t[3],y:r.minY-t[0],width:r.width+t[1]+t[3],height:r.height+t[0]+t[2]}),n?n.attr(e):n=this.addShape("rect",{zIndex:-1,attrs:e}),this.set("backShape",n),this.sort(),n},removeChild:function(t,e){if(arguments.length>=2)this.contain(t)&&t.remove(e);else{if(1===arguments.length){if(!a.isBoolean(t))return this.contain(t)&&t.remove(!0),this;e=t}0===arguments.length&&(e=!0),f.superclass.remove.call(this,e)}return this},add:function(t){var e=this,n=e.get("children");if(a.isArray(t))a.each(t,function(t){var n=t.get("parent");n&&n.removeChild(t,!1),e.__setEvn(t)}),n.push.apply(n,t);else{var r=t,o=r.get("parent");o&&o.removeChild(r,!1),e.__setEvn(r),n.push(r)}return e},contain:function(t){return this.get("children").indexOf(t)>-1},getChildByIndex:function(t){return this.get("children")[t]},getFirst:function(){return this.getChildByIndex(0)},getLast:function(){var t=this.get("children").length-1;return this.getChildByIndex(t)},__setEvn:function(t){var e=this;t.__cfg.parent=e,t.__cfg.context=e.__cfg.context,t.__cfg.canvas=e.__cfg.canvas;var n=t.__attrs.clip;n&&(n.setSilent("parent",e),n.setSilent("context",e.get("context")));var r=t.__cfg.children;r&&a.each(r,function(e){t.__setEvn(e)})},getBBox:function(){var t=this,e=1/0,n=-1/0,r=1/0,o=-1/0,i=t.get("children");a.each(i,function(t){if(t.get("visible")){var i=t.getBBox();if(!i)return!0;var a=[i.minX,i.minY,1],s=[i.minX,i.maxY,1],u=[i.maxX,i.minY,1],c=[i.maxX,i.maxY,1];t.apply(a),t.apply(s),t.apply(u),t.apply(c);var l=Math.min(a[0],s[0],u[0],c[0]),f=Math.max(a[0],s[0],u[0],c[0]),p=Math.min(a[1],s[1],u[1],c[1]),h=Math.max(a[1],s[1],u[1],c[1]);ln&&(n=f),po&&(o=h)}});var s={minX:e,minY:r,maxX:n,maxY:o};return s.x=s.minX,s.y=s.minY,s.width=s.maxX-s.minX,s.height=s.maxY-s.minY,s},drawInner:function(t){for(var e=this.get("children"),n=0;n-1){var o=e[n];"fillStyle"===n&&(o=s.parseStyle(o,this)),"strokeStyle"===n&&(o=s.parseStyle(o,this)),"lineDash"===n&&t.setLineDash?r.isArray(o)?t.setLineDash(o):r.isString(o)&&t.setLineDash(o.split(" ")):t[n]=o}},drawInner:function(){},show:function(){return this.set("visible",!0),this},hide:function(){return this.set("visible",!1),this},remove:function(t){if(void 0===t&&(t=!0),this.get("parent")){var e=this.get("parent"),n=e.get("children");r.remove(n,this)}return t&&this.destroy(),this},destroy:function(){if(!this.get("destroyed")){if(this.get("animating")){var t=this.get("animateTimer");t&&t.stop()}this.__cfg={},this.__attrs=null,this.removeEvent(),this.set("destroyed",!0)}},__setZIndex:function(t){return this.__cfg.zIndex=t,r.isNil(this.get("parent"))||this.get("parent").sort(),t},__setAttrs:function(t){return this.attr(t),t},setZIndex:function(t){return this.__cfg.zIndex=t,t},clone:function(){return r.clone(this)},getBBox:function(){return{minX:0,maxX:0,minY:0,maxY:0}}}),t.exports=l},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"b",function(){return o});var r=Math.PI/180,o=180/Math.PI},function(t,e,n){"use strict";function r(t){return function(e){var n,r,i=e.length,a=new Array(i),s=new Array(i),u=new Array(i);for(n=0;nl&&(c=e.slice(l,c),p[f]?p[f]+=c:p[++f]=c),(n=n[0])===(u=u[0])?p[f]?p[f]+=u:p[++f]=u:(p[++f]=null,h.push({i:f,x:Object(i.a)(n,u)})),l=s.lastIndex;return l=0&&o<.5*Math.PI?(u={x:a.minX,y:a.minY},c={x:a.maxX,y:a.maxY}):.5*Math.PI<=o&&o1){var r=e[0].charAt(0);e.splice(1,0,e[0].substr(1)),e[0]=r}s.each(e,function(t,n){isNaN(t)||(e[n]=+t)}),t[n]=e}),t):void 0},parseStyle:function(t,e){if(s.isString(t)){if("("===t[1]||"("===t[2]){if("l"===t[0])return o(t,e);if("r"===t[0])return i(t,e);if("p"===t[0])return a(t,e)}return t}},numberToColor:function(t){var e=d[t];if(!e){for(var n=t.toString(16),r=n.length;r<6;r++)n="0"+n;e="#"+n,d[t]=e}return e}}},function(t,e,n){var r=n(0),o=n(1),i=n(2),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,r:0,lineWidth:1},r.extend(a,o),r.augment(a,{canFill:!0,canStroke:!0,type:"circle",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.r,o=this.getHitLineWidth(),i=o/2+r;return{minX:e-i,minY:n-i,maxX:e+i,maxY:n+i}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,r=n.x,o=n.y,a=n.r;return i.circle(r,o,a,t,e)},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,o=n.y,a=n.r,s=this.getHitLineWidth();return i.arcline(r,o,a,0,2*Math.PI,!1,s,t,e)},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,o=e.r;t=t||self.get("context"),t.beginPath(),t.arc(n,r,o,0,2*Math.PI,!1)}}),t.exports=a},function(t,e,n){var r=n(0),o=n(1),i=n(2),a=n(3).mat3,s=n(3).vec3,u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={x:0,y:0,rx:1,ry:1,lineWidth:1},r.extend(u,o),r.augment(u,{canFill:!0,canStroke:!0,type:"ellipse",getDefaultAttrs:function(){return{lineWidth:1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.rx,o=t.ry,i=this.getHitLineWidth(),a=r+i/2,s=o+i/2;return{minX:e-a,minY:n-s,maxX:e+a,maxY:n+s}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,r=n.x,o=n.y,u=n.rx,c=n.ry,l=u>c?u:c,f=u>c?1:u/c,p=u>c?c/u:1,h=[t,e,1],d=[1,0,0,0,1,0,0,0,1];a.scale(d,d,[f,p]),a.translate(d,d,[r,o]);var v=a.invert([],d);return s.transformMat3(h,h,v),i.circle(0,0,l,h[0],h[1])},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,o=n.y,u=n.rx,c=n.ry,l=this.getHitLineWidth(),f=u>c?u:c,p=u>c?1:u/c,h=u>c?c/u:1,d=[t,e,1],v=[1,0,0,0,1,0,0,0,1];a.scale(v,v,[p,h]),a.translate(v,v,[r,o]);var m=a.invert([],v);return s.transformMat3(d,d,m),i.arcline(0,0,f,0,2*Math.PI,!1,l,d[0],d[1])},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,o=e.rx,i=e.ry;t=t||self.get("context");var s=o>i?o:i,u=o>i?1:o/i,c=o>i?i/o:1,l=[1,0,0,0,1,0,0,0,1];a.scale(l,l,[u,c]),a.translate(l,l,[n,r]),t.beginPath(),t.save(),t.transform(l[0],l[1],l[3],l[4],l[6],l[7]),t.arc(0,0,s,0,2*Math.PI),t.restore(),t.closePath()}}),t.exports=u},function(t,e,n){var r=n(0),o=n(1),i=n(103),a=n(99),s=n(16),u=n(46),c=n(32),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={path:null,lineWidth:1,curve:null,tCache:null,startArrow:!1,endArrow:!1},r.extend(l,o),r.augment(l,{canFill:!0,canStroke:!0,type:"path",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},__afterSetAttrPath:function(t){var e=this;if(r.isNil(t))return e.setSilent("segments",null),void e.setSilent("box",void 0);var n=a.parsePath(t),o=void 0,s=[];if(r.isArray(n)&&0!==n.length&&("M"===n[0][0]||"m"===n[0][0])){for(var u=n.length,c=0;ci&&(i=e.maxX),e.minYs&&(s=e.maxY))}),{minX:o,minY:a,maxX:i,maxY:s}},isPointInPath:function(t,e){var n=this,r=n.hasFill(),o=n.hasStroke();return r&&o?n.__isPointInFill(t,e)||n.__isPointInStroke(t,e):r?n.__isPointInFill(t,e):!!o&&n.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this,r=n.get("context");if(r)return n.createPath(),r.isPointInPath(t,e)},__isPointInStroke:function(t,e){var n=this,o=n.get("segments");if(!r.isEmpty(o))for(var i=n.getHitLineWidth(),a=0,s=o.length;a=e[0]&&t<=e[1]&&(n=(t-e[0])/(e[1]-e[0]),o=r)});var a=i[o];if(r.isNil(a)||r.isNil(o))return null;var s=a.length,u=i[o+1];return{x:c.at(a[s-2],u[1],u[3],u[5],1-n),y:c.at(a[s-1],u[2],u[4],u[6],1-n)}},createPath:function(t){var e=this,n=e.__attrs,o=e.get("segments");if(r.isArray(o)){t=t||e.get("context"),t.beginPath();var i=n.path,a=void 0,u=void 0,c=!1;("z"===i[i.length-1]||"Z"===i[i.length-1]||n.fill)&&(c=!0);var l=o.length;l>1&&!c&&(a=o[0].endPoint,u=o[1].endPoint,s.addStartArrow(t,n,u.x,u.y,a.x,a.y));for(var f=0,p=l;f1&&!c&&(a=o[l-2].endPoint,u=o[l-1].endPoint,s.addEndArrow(t,n,a.x,a.y,u.x,u.y))}}}),t.exports=l},function(t,e,n){function r(t,e,n){return{x:n.x+t,y:n.y+e}}function o(t,e){return{x:e.x+(e.x-t.x),y:e.y+(e.y-t.y)}}function i(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])}function a(t,e){return(t[0]*e[0]+t[1]*e[1])/(i(t)*i(e))}function s(t,e){return(t[0]*e[1]1&&(o*=Math.sqrt(g),i*=Math.sqrt(g));var y=Math.sqrt((o*o*(i*i)-o*o*(m*m)-i*i*(v*v))/(o*o*(m*m)+i*i*(v*v)));n===r&&(y*=-1),isNaN(y)&&(y=0);var b=y*o*m/i,x=y*-i*v/o,_=(f+h)/2+Math.cos(l)*b-Math.sin(l)*x,w=(p+d)/2+Math.sin(l)*b+Math.cos(l)*x,O=s([1,0],[(v-b)/o,(m-x)/i]),S=[(v-b)/o,(m-x)/i],C=[(-1*v-b)/o,(-1*m-x)/i],k=s(S,C);return a(S,C)<=-1&&(k=Math.PI),a(S,C)>=1&&(k=0),0===r&&k>0&&(k-=2*Math.PI),1===r&&k<0&&(k+=2*Math.PI),[t,_,w,o,i,O,k,l,r]}var c=n(0),l=n(2),f=n(32),p=n(53),h=n(264),d=n(3).vec3,v=n(3).mat3,m=["m","l","c","a","q","h","v","t","s","z"],g=function(t,e,n){this.preSegment=e,this.isLast=n,this.init(t,e)};c.augment(g,{init:function(t,e){var n=t[0];e=e||{endPoint:{x:0,y:0}};var i=m.indexOf(n)>=0,a=i?n.toUpperCase():n,s=t,c=void 0,l=void 0,f=void 0,p=void 0,h=e.endPoint,d=s[1],v=s[2];switch(a){default:break;case"M":p=i?r(d,v,h):{x:d,y:v},this.command="M",this.params=[h,p],this.subStart=p,this.endPoint=p;break;case"L":p=i?r(d,v,h):{x:d,y:v},this.command="L",this.params=[h,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-h.x,p.y-h.y]},this.startTangent=function(){return[h.x-p.x,h.y-p.y]};break;case"H":p=i?r(d,0,h):{x:d,y:h.y},this.command="L",this.params=[h,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-h.x,p.y-h.y]},this.startTangent=function(){return[h.x-p.x,h.y-p.y]};break;case"V":p=i?r(0,d,h):{x:h.x,y:d},this.command="L",this.params=[h,p],this.subStart=e.subStart,this.endPoint=p,this.endTangent=function(){return[p.x-h.x,p.y-h.y]},this.startTangent=function(){return[h.x-p.x,h.y-p.y]};break;case"Q":i?(c=r(d,v,h),l=r(s[3],s[4],h)):(c={x:d,y:v},l={x:s[3],y:s[4]}),this.command="Q",this.params=[h,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[h.x-c.x,h.y-c.y]};break;case"T":l=i?r(d,v,h):{x:d,y:v},"Q"===e.command?(c=o(e.params[1],h),this.command="Q",this.params=[h,c,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-c.x,l.y-c.y]},this.startTangent=function(){return[h.x-c.x,h.y-c.y]}):(this.command="TL",this.params=[h,l],this.subStart=e.subStart,this.endPoint=l,this.endTangent=function(){return[l.x-h.x,l.y-h.y]},this.startTangent=function(){return[h.x-l.x,h.y-l.y]});break;case"C":i?(c=r(d,v,h),l=r(s[3],s[4],h),f=r(s[5],s[6],h)):(c={x:d,y:v},l={x:s[3],y:s[4]},f={x:s[5],y:s[6]}),this.command="C",this.params=[h,c,l,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-l.x,f.y-l.y]},this.startTangent=function(){return[h.x-c.x,h.y-c.y]};break;case"S":i?(l=r(d,v,h),f=r(s[3],s[4],h)):(l={x:d,y:v},f={x:s[3],y:s[4]}),"C"===e.command?(c=o(e.params[2],h),this.command="C",this.params=[h,c,l,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-l.x,f.y-l.y]},this.startTangent=function(){return[h.x-c.x,h.y-c.y]}):(this.command="SQ",this.params=[h,l,f],this.subStart=e.subStart,this.endPoint=f,this.endTangent=function(){return[f.x-l.x,f.y-l.y]},this.startTangent=function(){return[h.x-l.x,h.y-l.y]});break;case"A":var g=d,y=v,b=s[3],x=s[4],_=s[5];p=i?r(s[6],s[7],h):{x:s[6],y:s[7]},this.command="A",this.params=u(h,p,x,_,g,y,b),this.subStart=e.subStart,this.endPoint=p;break;case"Z":this.command="Z",this.params=[h,e.subStart],this.subStart=e.subStart,this.endPoint=e.subStart}},isInside:function(t,e,n){var r=this,o=r.command,i=r.params,a=r.box;if(a&&!l.box(a.minX,a.maxX,a.minY,a.maxY,t,e))return!1;switch(o){default:break;case"M":return!1;case"TL":case"L":case"Z":return l.line(i[0].x,i[0].y,i[1].x,i[1].y,n,t,e);case"SQ":case"Q":return l.quadraticline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,n,t,e);case"C":return l.cubicline(i[0].x,i[0].y,i[1].x,i[1].y,i[2].x,i[2].y,i[3].x,i[3].y,n,t,e);case"A":var s=i,u=s[1],c=s[2],f=s[3],p=s[4],h=s[5],m=s[6],g=s[7],y=s[8],b=f>p?f:p,x=f>p?1:f/p,_=f>p?p/f:1;s=[t,e,1];var w=[1,0,0,0,1,0,0,0,1];return v.translate(w,w,[-u,-c]),v.rotate(w,w,-g),v.scale(w,w,[1/x,1/_]),d.transformMat3(s,s,w),l.arcline(0,0,b,h,h+m,1-y,n,s[0],s[1])}return!1},draw:function(t){var e=this.command,n=this.params,r=void 0,o=void 0,i=void 0;switch(e){default:break;case"M":t.moveTo(n[1].x,n[1].y);break;case"TL":case"L":t.lineTo(n[1].x,n[1].y);break;case"SQ":case"Q":r=n[1],o=n[2],t.quadraticCurveTo(r.x,r.y,o.x,o.y);break;case"C":r=n[1],o=n[2],i=n[3],t.bezierCurveTo(r.x,r.y,o.x,o.y,i.x,i.y);break;case"A":var a=n,s=a[1],u=a[2],c=s,l=u,f=a[3],p=a[4],h=a[5],d=a[6],v=a[7],m=a[8],g=f>p?f:p,y=f>p?1:f/p,b=f>p?p/f:1;t.translate(c,l),t.rotate(v),t.scale(y,b),t.arc(0,0,g,h,h+d,1-m),t.scale(1/y,1/b),t.rotate(-v),t.translate(-c,-l);break;case"Z":t.closePath()}},getBBox:function(t){var e=t/2,n=this.params,r=void 0,o=void 0,i=void 0,a=void 0;switch(this.command){default:case"M":case"Z":break;case"TL":case"L":this.box={minX:Math.min(n[0].x,n[1].x)-e,maxX:Math.max(n[0].x,n[1].x)+e,minY:Math.min(n[0].y,n[1].y)-e,maxY:Math.max(n[0].y,n[1].y)+e};break;case"SQ":case"Q":for(o=p.extrema(n[0].x,n[1].x,n[2].x),i=0,a=o.length;iO&&(O=k)}var j=h.yExtrema(g,l,d),E=1/0,M=-1/0,T=[b,x];for(i=2*-Math.PI;i<=2*Math.PI;i+=Math.PI){var P=j+i;1===y?bM&&(M=N)}this.box={minX:w-e,maxX:O+e,minY:E-e,maxY:M+e}}}}),t.exports=g},function(t,e,n){var r=n(0),o=n(1),i=n(2),a=function t(e){t.superclass.constructor.call(this,e)};a.ATTRS={x:0,y:0,text:null,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom",lineHeight:null,textArr:null},r.extend(a,o),r.augment(a,{canFill:!0,canStroke:!0,type:"text",getDefaultAttrs:function(){return{lineWidth:1,lineCount:1,fontSize:12,fontFamily:"sans-serif",fontStyle:"normal",fontWeight:"normal",fontVariant:"normal",textAlign:"start",textBaseline:"bottom"}},initTransform:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1]);var t=this.__attrs.fontSize;t&&+t<12&&this.transform([["t",-1*this.__attrs.x,-1*this.__attrs.y],["s",+t/12,+t/12],["t",this.__attrs.x,this.__attrs.y]])},__assembleFont:function(){var t=this.__attrs,e=t.fontSize,n=t.fontFamily,r=t.fontWeight,o=t.fontStyle,i=t.fontVariant;t.font=[o,i,r,e+"px",n].join(" ")},__afterSetAttrFontSize:function(){this.__assembleFont()},__afterSetAttrFontFamily:function(){this.__assembleFont()},__afterSetAttrFontWeight:function(){this.__assembleFont()},__afterSetAttrFontStyle:function(){this.__assembleFont()},__afterSetAttrFontVariant:function(){this.__assembleFont()},__afterSetAttrFont:function(){},__afterSetAttrText:function(){var t=this.__attrs,e=t.text,n=void 0;if(r.isString(e)&&-1!==e.indexOf("\n")){n=e.split("\n");var o=n.length;t.lineCount=o,t.textArr=n}},__getTextHeight:function(){var t=this.__attrs,e=t.lineCount,n=1*t.fontSize;if(e>1){return n*e+this.__getSpaceingY()*(e-1)}return n},__afterSetAttrAll:function(t){var e=this;("fontSize"in t||"fontWeight"in t||"fontStyle"in t||"fontVariant"in t||"fontFamily"in t)&&e.__assembleFont(),"text"in t&&e.__afterSetAttrText(t.text)},isHitBox:function(){return!1},calculateBox:function(){var t=this,e=t.__attrs,n=e.x,r=e.y,o=t.measureText();if(!o)return{minX:n,minY:r,maxX:n,maxY:r};var i=t.__getTextHeight(),a=e.textAlign,s=e.textBaseline,u=t.getHitLineWidth(),c={x:n,y:r-i};a&&("end"===a||"right"===a?c.x-=o:"center"===a&&(c.x-=o/2)),s&&("top"===s?c.y+=i:"middle"===s&&(c.y+=i/2)),this.set("startPoint",c);var l=u/2;return{minX:c.x-l,minY:c.y-l,maxX:c.x+o+l,maxY:c.y+i+l}},__getSpaceingY:function(){var t=this.__attrs,e=t.lineHeight,n=1*t.fontSize;return e?e-n:.14*n},isPointInPath:function(t,e){var n=this,r=n.getBBox();if(n.hasFill()||n.hasStroke())return i.box(r.minX,r.maxX,r.minY,r.maxY,t,e)},drawInner:function(t){var e=this,n=e.__attrs,o=n.text;if(o){var i=n.textArr,a=1*n.fontSize,s=e.__getSpaceingY(),u=n.x,c=n.y,l=n.textBaseline,f=void 0;if(i){var p=e.getBBox();f=p.maxY-p.minY}var h=void 0;if(t.beginPath(),e.hasFill()){var d=n.fillOpacity;r.isNil(d)||1===d||(t.globalAlpha=d),i?r.each(i,function(e,n){h=c+n*(s+a)-f+a,"middle"===l&&(h+=f-a-(f-a)/2),"top"===l&&(h+=f-a),t.fillText(e,u,h)}):t.fillText(o,u,c)}e.hasStroke()&&(i?r.each(i,function(e,n){h=c+n*(s+a)-f+a,"middle"===l&&(h+=f-a-(f-a)/2),"top"===l&&(h+=f-a),t.strokeText(e,u,h)}):t.strokeText(o,u,c))}},measureText:function(){var t=this,e=t.__attrs,n=e.text,o=e.font,i=e.textArr,a=void 0,s=0;if(!r.isNil(n)){var u=document.createElement("canvas").getContext("2d");return u.save(),u.font=o,i?r.each(i,function(t){a=u.measureText(t).width,ss&&(s=e),nu&&(u=n)});var c=o/2;return{minX:i-c,minY:a-c,maxX:s+c,maxY:u+c}},isPointInPath:function(t,e){var n=this,r=n.hasFill(),o=n.hasStroke();return r&&o?n.__isPointInFill(t,e)||n.__isPointInStroke(t,e):r?n.__isPointInFill(t,e):!!o&&n.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this,r=n.get("context");return n.createPath(),r.isPointInPath(t,e)},__isPointInStroke:function(t,e){var n=this,r=n.__attrs,o=r.points;if(o.length<2)return!1;var a=this.getHitLineWidth(),s=o.slice(0);return o.length>=3&&s.push(o[0]),i.polyline(s,a,t,e)},createPath:function(t){var e=this,n=e.__attrs,o=n.points;o.length<2||(t=t||e.get("context"),t.beginPath(),r.each(o,function(e,n){0===n?t.moveTo(e[0],e[1]):t.lineTo(e[0],e[1])}),t.closePath())}}),t.exports=a},function(t,e,n){var r=n(0),o=n(1),i=n(2),a=n(16),s=n(52),u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={points:null,lineWidth:1,startArrow:!1,endArrow:!1,tCache:null},r.extend(u,o),r.augment(u,{canStroke:!0,type:"polyline",tCache:null,getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this,e=t.__attrs,n=this.getHitLineWidth(),o=e.points;if(!o||0===o.length)return null;var i=1/0,a=1/0,s=-1/0,u=-1/0;r.each(o,function(t){var e=t[0],n=t[1];es&&(s=e),nu&&(u=n)});var c=n/2;return{minX:i-c,minY:a-c,maxX:s+c,maxY:u+c}},__setTcache:function(){var t=this,e=t.__attrs,n=e.points,o=0,i=0,a=[],u=void 0,c=void 0;n&&0!==n.length&&(r.each(n,function(t,e){n[e+1]&&(o+=s.len(t[0],t[1],n[e+1][0],n[e+1][1]))}),o<=0||(r.each(n,function(t,e){n[e+1]&&(u=[],u[0]=i/o,c=s.len(t[0],t[1],n[e+1][0],n[e+1][1]),i+=c,u[1]=i/o,a.push(u))}),this.tCache=a))},isPointInPath:function(t,e){var n=this,r=n.__attrs;if(n.hasStroke()){var o=r.points;if(o.length<2)return!1;var a=r.lineWidth;return i.polyline(o,a,t,e)}return!1},createPath:function(t){var e=this,n=e.__attrs,r=n.points,o=void 0,i=void 0;if(!(r.length<2)){for(t=t||e.get("context"),t.beginPath(),a.addStartArrow(t,n,r[1][0],r[1][1],r[0][0],r[0][1]),t.moveTo(r[0][0],r[0][1]),i=1,o=r.length-1;i=e[0]&&t<=e[1]&&(i=(t-e[0])/(e[1]-e[0]),a=n)}),{x:s.at(n[a][0],n[a+1][0],i),y:s.at(n[a][1],n[a+1][1],i)}}}),t.exports=u},function(t,e,n){function r(t,e,n){return t+e*Math.cos(n)}function o(t,e,n){return t+e*Math.sin(n)}var i=n(0),a=n(1),s=n(2),u=n(54),c=n(16),l=function t(e){t.superclass.constructor.call(this,e)};l.ATTRS={x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1},i.extend(l,a),i.augment(l,{canStroke:!0,type:"arc",getDefaultAttrs:function(){return{x:0,y:0,r:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this.__attrs,e=t.x,n=t.y,r=t.r,o=t.startAngle,i=t.endAngle,a=t.clockwise,s=this.getHitLineWidth(),c=s/2,l=u.box(e,n,r,o,i,a);return l.minX-=c,l.minY-=c,l.maxX+=c,l.maxY+=c,l},isPointInPath:function(t,e){var n=this.__attrs,r=n.x,o=n.y,i=n.r,a=n.startAngle,u=n.endAngle,c=n.clockwise,l=this.getHitLineWidth();return!!this.hasStroke()&&s.arcline(r,o,i,a,u,c,l,t,e)},createPath:function(t){var e=this.__attrs,n=e.x,i=e.y,a=e.r,s=e.startAngle,u=e.endAngle,l=e.clockwise,f=void 0,p=void 0,h=void 0,d=void 0,v=void 0;t=t||self.get("context"),t.beginPath(),e.startArrow&&(f=Math.PI/180,l&&(f*=-1),p=r(n,a,s+f),h=o(i,a,s+f),d=r(n,a,s),v=o(i,a,s),c.addStartArrow(t,e,p,h,d,v)),t.arc(n,i,a,s,u,l),e.endArrow&&(f=Math.PI/180,l&&(f*=-1),p=r(n,a,u+f),h=o(i,a,u+f),d=r(n,a,u),v=o(i,a,u),c.addEndArrow(t,e,d,v,p,h))}}),t.exports=l},function(t,e,n){var r=n(0),o=n(1),i=n(2),a=n(54),s=n(3).vec2,u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={x:0,y:0,rs:0,re:0,startAngle:0,endAngle:0,clockwise:!1,lineWidth:1},r.extend(u,o),r.augment(u,{canFill:!0,canStroke:!0,type:"fan",getDefaultAttrs:function(){return{clockwise:!1,lineWidth:1,rs:0,re:0}},calculateBox:function(){var t=this,e=t.__attrs,n=e.x,r=e.y,o=e.rs,i=e.re,s=e.startAngle,u=e.endAngle,c=e.clockwise,l=this.getHitLineWidth(),f=a.box(n,r,o,s,u,c),p=a.box(n,r,i,s,u,c),h=Math.min(f.minX,p.minX),d=Math.min(f.minY,p.minY),v=Math.max(f.maxX,p.maxX),m=Math.max(f.maxY,p.maxY),g=l/2;return{minX:h-g,minY:d-g,maxX:v+g,maxY:m+g}},isPointInPath:function(t,e){var n=this.hasFill(),r=this.hasStroke();return n&&r?this.__isPointInFill(t,e)||this.__isPointInStroke(t,e):n?this.__isPointInFill(t,e):!!r&&this.__isPointInStroke(t,e)},__isPointInFill:function(t,e){var n=this.__attrs,o=n.x,i=n.y,u=n.rs,c=n.re,l=n.startAngle,f=n.endAngle,p=n.clockwise,h=[1,0],d=[t-o,e-i],v=s.angleTo(h,d),m=a.nearAngle(v,l,f,p);if(r.isNumberEqual(v,m)){var g=s.squaredLength(d);if(u*u<=g&&g<=c*c)return!0}return!1},__isPointInStroke:function(t,e){var n=this.__attrs,r=n.x,o=n.y,a=n.rs,s=n.re,u=n.startAngle,c=n.endAngle,l=n.clockwise,f=this.getHitLineWidth(),p={x:Math.cos(u)*a+r,y:Math.sin(u)*a+o},h={x:Math.cos(u)*s+r,y:Math.sin(u)*s+o},d={x:Math.cos(c)*a+r,y:Math.sin(c)*a+o},v={x:Math.cos(c)*s+r,y:Math.sin(c)*s+o};return!!i.line(p.x,p.y,h.x,h.y,f,t,e)||(!!i.line(d.x,d.y,v.x,v.y,f,t,e)||(!!i.arcline(r,o,a,u,c,l,f,t,e)||!!i.arcline(r,o,s,u,c,l,f,t,e)))},createPath:function(t){var e=this.__attrs,n=e.x,r=e.y,o=e.rs,i=e.re,a=e.startAngle,s=e.endAngle,u=e.clockwise,c={x:Math.cos(a)*o+n,y:Math.sin(a)*o+r},l={x:Math.cos(a)*i+n,y:Math.sin(a)*i+r},f={x:Math.cos(s)*o+n,y:Math.sin(s)*o+r};t=t||self.get("context"),t.beginPath(),t.moveTo(c.x,c.y),t.lineTo(l.x,l.y),t.arc(n,r,i,a,s,u),t.lineTo(f.x,f.y),t.arc(n,r,o,s,a,!u),t.closePath()}}),t.exports=u},function(t,e,n){var r=n(0),o=n(1),i=n(2),a=n(16),s=n(32),u=function t(e){t.superclass.constructor.call(this,e)};u.ATTRS={p1:null,p2:null,p3:null,p4:null,lineWidth:1,startArrow:!1,endArrow:!1},r.extend(u,o),r.augment(u,{canStroke:!0,type:"cubic",getDefaultAttrs:function(){return{lineWidth:1,startArrow:!1,endArrow:!1}},calculateBox:function(){var t=this.__attrs,e=t.p1,n=t.p2,o=t.p3,i=t.p4,a=this.getHitLineWidth(),u=void 0,c=void 0;if(r.isNil(e)||r.isNil(n)||r.isNil(o)||r.isNil(i))return null;var l=a/2,f=s.extrema(e[0],n[0],o[0],i[0]);for(u=0,c=f.length;u');t.appendChild(n),this.set("canvasDOM",n)}},_setInitSize:function(){this.changeSize(this.get("width"),this.get("height"))},_reSize:function(){var t=this.get("canvasDOM"),e=this.get("widthCanvas"),n=this.get("heightCanvas"),r=this.get("widthStyle"),o=this.get("heightStyle");t.style.width=r,t.style.height=o,t.setAttribute("width",e),t.setAttribute("height",n)},getWidth:function(){var t=this.get("pixelRatio");return this.get("width")*t},getHeight:function(){var t=this.get("pixelRatio");return this.get("height")*t},changeSize:function(t,e){var n=this.get("pixelRatio"),r=t*n,o=e*n;this.set("widthCanvas",r),this.set("heightCanvas",o),this.set("widthStyle",t+"px"),this.set("heightStyle",e+"px"),this.set("width",t),this.set("height",e),this._reSize()},getPointByClient:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),o=r.right-r.left,i=r.bottom-r.top;return{x:(t-r.left)*(n.width/o),y:(e-r.top)*(n.height/i)}},getClientByPoint:function(t,e){var n=this.get("el"),r=n.getBoundingClientRect(),o=r.right-r.left,i=r.bottom-r.top;return{clientX:t/(n.width/o)+r.left,clientY:e/(n.height/i)+r.top}},beforeDraw:function(){var t=this.get("context"),e=this.get("el");t&&t.clearRect(0,0,e.width,e.height)},_beginDraw:function(){this.setSilent("toDraw",!0)},_endDraw:function(){this.setSilent("toDraw",!1)},draw:function(){function t(){e.setSilent("animateHandler",r.requestAnimationFrame(function(){e.setSilent("animateHandler",void 0),e.get("toDraw")&&t()})),e.beforeDraw();try{var n=e.get("context");a.superclass.draw.call(e,n)}catch(t){console.warn("error in draw canvas, detail as:"),console.warn(t),e._endDraw()}e._endDraw()}var e=this;e.get("destroyed")||(e.get("animateHandler")?this._beginDraw():t())},destroy:function(){var t=this.get("containerDOM"),e=this.get("canvasDOM");e&&t&&t.removeChild(e),a.superclass.destroy.call(this)}}),t.exports=a},function(t,e){var n,r="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,n){function r(t){var e=a.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(e?t[u]=n:delete t[u]),o}var o=n(11),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,u=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e,n){function r(t){return!0===t||!1===t||i(t)&&o(t)==a}var o=n(7),i=n(4),a="[object Boolean]";t.exports=r},function(t,e){function n(t){return null==t}t.exports=n},function(t,e,n){function r(t){return"number"==typeof t||i(t)&&o(t)==a}var o=n(7),i=n(4),a="[object Number]";t.exports=r},function(t,e,n){function r(t){if(null==t)return!0;if(u(t)&&(s(t)||"string"==typeof t||"function"==typeof t.splice||c(t)||f(t)||a(t)))return!t.length;var e=i(t);if(e==p||e==h)return!t.size;if(l(t))return!o(t).length;for(var n in t)if(v.call(t,n))return!1;return!0}var o=n(58),i=n(12),a=n(34),s=n(6),u=n(9),c=n(19),l=n(18),f=n(23),p="[object Map]",h="[object Set]",d=Object.prototype,v=d.hasOwnProperty;t.exports=r},function(t,e,n){var r=n(59),o=r(Object.keys,Object);t.exports=o},function(t,e,n){var r=n(10),o=n(5),i=r(o,"DataView");t.exports=i},function(t,e,n){function r(t){return!(!a(t)||i(t))&&(o(t)?d:c).test(s(t))}var o=n(22),i=n(126),a=n(8),s=n(60),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,h=f.hasOwnProperty,d=RegExp("^"+p.call(h).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e,n){function r(t){return!!i&&i in t}var o=n(127),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(5),o=r["__core-js_shared__"];t.exports=o},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){var r=n(10),o=n(5),i=r(o,"Promise");t.exports=i},function(t,e,n){var r=n(10),o=n(5),i=r(o,"Set");t.exports=i},function(t,e,n){var r=n(10),o=n(5),i=r(o,"WeakMap");t.exports=i},function(t,e,n){function r(t){return i(t)&&o(t)==a}var o=n(7),i=n(4),a="[object Arguments]";t.exports=r},function(t,e){function n(){return!1}t.exports=n},function(t,e,n){function r(t){return a(t)&&i(t.length)&&!!s[o(t)]}var o=n(7),i=n(61),a=n(4),s={};s["[object Float32Array]"]=s["[object Float64Array]"]=s["[object Int8Array]"]=s["[object Int16Array]"]=s["[object Int32Array]"]=s["[object Uint8Array]"]=s["[object Uint8ClampedArray]"]=s["[object Uint16Array]"]=s["[object Uint32Array]"]=!0,s["[object Arguments]"]=s["[object Array]"]=s["[object ArrayBuffer]"]=s["[object Boolean]"]=s["[object DataView]"]=s["[object Date]"]=s["[object Error]"]=s["[object Function]"]=s["[object Map]"]=s["[object Number]"]=s["[object Object]"]=s["[object RegExp]"]=s["[object Set]"]=s["[object String]"]=s["[object WeakMap]"]=!1,t.exports=r},function(t,e,n){function r(t){var e=++i;return o(t)+e}var o=n(62),i=0;t.exports=r},function(t,e,n){function r(t){if("string"==typeof t)return t;if(a(t))return i(t,r)+"";if(s(t))return l?l.call(t):"";var e=t+"";return"0"==e&&1/t==-u?"-0":e}var o=n(11),i=n(37),a=n(6),s=n(137),u=1/0,c=o?o.prototype:void 0,l=c?c.toString:void 0;t.exports=r},function(t,e,n){function r(t){return"symbol"==(void 0===t?"undefined":o(t))||s(t)&&a(t)==u}var o="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)},a=n(7),s=n(4),u="[object Symbol]";t.exports=r},function(t,e,n){function r(t){return o(t,i)}var o=n(139),i=4;t.exports=r},function(t,e,n){function r(t,e,n,A,D,I){var R,L=e&C,F=e&k,z=e&j;if(n&&(R=D?n(t,A,D,I):n(t)),void 0!==R)return R;if(!w(t))return t;var V=b(t);if(V){if(R=m(t),!L)return l(t,R)}else{var Y=v(t),B=Y==M||Y==T;if(x(t))return c(t,L);if(Y==P||Y==E||B&&!D){if(R=F||B?{}:y(t),!L)return F?p(t,u(R,t)):f(t,s(R,t))}else{if(!N[Y])return D?t:{};R=g(t,Y,L)}}I||(I=new o);var W=I.get(t);if(W)return W;if(I.set(t,R),O(t))return t.forEach(function(o){R.add(r(o,e,n,o,t,I))}),R;if(_(t))return t.forEach(function(o,i){R.set(i,r(o,e,n,i,t,I))}),R;var H=z?F?d:h:F?keysIn:S,U=V?void 0:H(t);return i(U||t,function(o,i){U&&(i=o,o=t[i]),a(R,i,r(o,e,n,i,t,I))}),R}var o=n(38),i=n(64),a=n(39),s=n(162),u=n(164),c=n(68),l=n(30),f=n(167),p=n(169),h=n(72),d=n(170),v=n(12),m=n(171),g=n(172),y=n(76),b=n(6),x=n(19),_=n(177),w=n(8),O=n(179),S=n(14),C=1,k=2,j=4,E="[object Arguments]",M="[object Function]",T="[object GeneratorFunction]",P="[object Object]",N={};N[E]=N["[object Array]"]=N["[object ArrayBuffer]"]=N["[object DataView]"]=N["[object Boolean]"]=N["[object Date]"]=N["[object Float32Array]"]=N["[object Float64Array]"]=N["[object Int8Array]"]=N["[object Int16Array]"]=N["[object Int32Array]"]=N["[object Map]"]=N["[object Number]"]=N[P]=N["[object RegExp]"]=N["[object Set]"]=N["[object String]"]=N["[object Symbol]"]=N["[object Uint8Array]"]=N["[object Uint8ClampedArray]"]=N["[object Uint16Array]"]=N["[object Uint32Array]"]=!0,N["[object Error]"]=N[M]=N["[object WeakMap]"]=!1,t.exports=r},function(t,e){function n(){this.__data__=[],this.size=0}t.exports=n},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)}var o=n(26),i=Array.prototype,a=i.splice;t.exports=r},function(t,e,n){function r(t){var e=this.__data__,n=o(e,t);return n<0?void 0:e[n][1]}var o=n(26);t.exports=r},function(t,e,n){function r(t){return o(this.__data__,t)>-1}var o=n(26);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(26);t.exports=r},function(t,e,n){function r(){this.__data__=new o,this.size=0}var o=n(25);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;t.exports=n},function(t,e,n){function r(t,e,n){if(!c(n))return!1;var r=void 0===e?"undefined":o(e);return!!("number"==r?s(n)&&u(e,n.length):"string"==r&&e in n)&&a(n[e],t)}var o="function"==typeof Symbol&&"symbol"===i(Symbol.iterator)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":i(t)},a=n(20),s=n(9),u=n(67),c=n(8);t.exports=r},function(t,e,n){var r=n(190),o=n(77),i=o(function(t,e,n){r(t,e,n)});t.exports=i},function(t,e,n){function r(t,e,n,f,p){t!==e&&a(e,function(a,c){if(u(a))p||(p=new o),s(t,e,c,n,r,f,p);else{var h=f?f(l(t,c),a,c+"",t,e,p):void 0;void 0===h&&(h=a),i(t,c,h)}},c)}var o=n(38),i=n(79),a=n(80),s=n(192),u=n(8),c=n(29),l=n(81);t.exports=r},function(t,e){function n(t){return function(e,n,r){for(var o=-1,i=Object(e),a=r(e),s=a.length;s--;){var u=a[t?s:++o];if(!1===n(i[u],u,i))break}return e}}t.exports=n},function(t,e,n){function r(t,e,n,r,b,x,_){var w=g(t,n),O=g(e,n),S=_.get(O);if(S)return void o(t,n,S);var C=x?x(w,O,n+"",t,e,_):void 0,k=void 0===C;if(k){var j=l(O),E=!j&&p(O),M=!j&&!E&&m(O);C=O,j||E||M?l(w)?C=w:f(w)?C=s(w):E?(k=!1,C=i(O,!0)):M?(k=!1,C=a(O,!0)):C=[]:v(O)||c(O)?(C=w,c(w)?C=y(w):(!d(w)||r&&h(w))&&(C=u(O))):k=!1}k&&(_.set(O,C),b(C,O,r,x,_),_.delete(O)),o(t,n,C)}var o=n(79),i=n(68),a=n(75),s=n(30),u=n(76),c=n(34),l=n(6),f=n(193),p=n(19),h=n(22),d=n(8),v=n(194),m=n(23),g=n(81),y=n(195);t.exports=r},function(t,e,n){function r(t){return i(t)&&o(t)}var o=n(9),i=n(4);t.exports=r},function(t,e,n){function r(t){if(!a(t)||o(t)!=s)return!1;var e=i(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&l.call(n)==p}var o=n(7),i=n(42),a=n(4),s="[object Object]",u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,p=l.call(Object);t.exports=r},function(t,e,n){function r(t){return o(t,i(t))}var o=n(13),i=n(29);t.exports=r},function(t,e,n){var r=n(197),o=r("toUpperCase");t.exports=o},function(t,e,n){function r(t){return function(e){e=s(e);var n=i(e)?a(e):void 0,r=n?n[0]:e.charAt(0),u=n?o(n,1).join(""):e.slice(1);return r[t]()+u}}var o=n(198),i=n(82),a=n(83),s=n(62);t.exports=r},function(t,e,n){function r(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&n>=r?t:o(t,e,n)}var o=n(199);t.exports=r},function(t,e){function n(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r-1;)h!==t&&l.call(h,d,1),l.call(t,d,1);return t}var o=n(37),i=n(205),a=n(209),s=n(24),u=n(30),c=Array.prototype,l=c.splice;t.exports=r},function(t,e,n){function r(t,e,n){return e===e?a(t,e,n):o(t,i,n)}var o=n(206),i=n(207),a=n(208);t.exports=r},function(t,e){function n(t,e,n,r){for(var o=t.length,i=n+(r?1:-1);r?i--:++i-1?(null===t.get("canvas")&&(t=r.clone(t)),t.set("parent",e.get("parent")),t.set("context",e.get("context")),t.inside=function(n,r){var o=[n,r,1];return t.invert(o,e.get("canvas")),t.__isPointInFill(o[0],o[1])},t):null},__setAttrTrans:function(t){return this.transform(t)}}},function(t,e,n){function r(t){return 1===t[0]&&0===t[1]&&0===t[3]&&1===t[4]&&0===t[6]&&0===t[7]}function o(t){return 0===t[1]&&0===t[3]&&0===t[6]&&0===t[7]}function i(t,e){r(e)||(o(e)?(t[0]*=e[0],t[4]*=e[4]):s.multiply(t,t,e))}var a=n(0),s=n(3).mat3,u=n(3).vec3;t.exports={initTransform:function(){this.attr("matrix",[1,0,0,0,1,0,0,0,1])},translate:function(t,e){var n=this.attr("matrix");return s.translate(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotate:function(t){var e=this.attr("matrix");return s.rotate(e,e,t),this.clearTotalMatrix(),this.attr("matrix",e),this},scale:function(t,e){var n=this.attr("matrix");return s.scale(n,n,[t,e]),this.clearTotalMatrix(),this.attr("matrix",n),this},rotateAtStart:function(t){var e=this.attr("x"),n=this.attr("y");Math.abs(t)>2*Math.PI&&(t=t/180*Math.PI),this.transform([["t",-e,-n],["r",t],["t",e,n]])},move:function(t,e){var n=this.get("x")||0,r=this.get("y")||0;this.translate(t-n,e-r),this.set("x",t),this.set("y",e)},transform:function(t){var e=this,n=e.attr("matrix");return a.each(t,function(t){switch(t[0]){case"t":e.translate(t[1],t[2]);break;case"s":e.scale(t[1],t[2]);break;case"r":e.rotate(t[1]);break;case"m":e.attr("matrix",s.multiply([],n,t[1])),e.clearTotalMatrix()}}),e},setTransform:function(t){return this.attr("matrix",[1,0,0,0,1,0,0,0,1]),this.transform(t)},getMatrix:function(){return this.attr("matrix")},setMatrix:function(t){return this.attr("matrix",t),this.clearTotalMatrix(),this},apply:function(t,e){var n=void 0;return n=e?this._getMatrixByRoot(e):this.attr("matrix"),u.transformMat3(t,t,n),this},_getMatrixByRoot:function(t){var e=this;t=t||e;for(var n=e,r=[];n!==t;)r.unshift(n),n=n.get("parent");r.unshift(n);var o=[1,0,0,0,1,0,0,0,1];return a.each(r,function(t){s.multiply(o,t.attr("matrix"),o)}),o},getTotalMatrix:function(){var t=this.__cfg.totalMatrix;if(!t){t=[1,0,0,0,1,0,0,0,1];var e=this.__cfg.parent;if(e){i(t,e.getTotalMatrix())}i(t,this.attr("matrix")),this.__cfg.totalMatrix=t}return t},clearTotalMatrix:function(){},invert:function(t){var e=this.getTotalMatrix();if(o(e))t[0]/=e[0],t[1]/=e[4];else{var n=s.invert([],e);n&&u.transformMat3(t,t,n)}return this},resetTransform:function(t){var e=this.attr("matrix");r(e)||t.transform(e[0],e[1],e[3],e[4],e[6],e[7])}}},function(t,e,n){var r=n(45),o={};o.create=function(){var t=new r.ARRAY_TYPE(9);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},o.fromMat4=function(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},o.clone=function(t){var e=new r.ARRAY_TYPE(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},o.copy=function(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},o.fromValues=function(t,e,n,o,i,a,s,u,c){var l=new r.ARRAY_TYPE(9);return l[0]=t,l[1]=e,l[2]=n,l[3]=o,l[4]=i,l[5]=a,l[6]=s,l[7]=u,l[8]=c,l},o.set=function(t,e,n,r,o,i,a,s,u,c){return t[0]=e,t[1]=n,t[2]=r,t[3]=o,t[4]=i,t[5]=a,t[6]=s,t[7]=u,t[8]=c,t},o.identity=function(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},o.transpose=function(t,e){if(t===e){var n=e[1],r=e[2],o=e[5];t[1]=e[3],t[2]=e[6],t[3]=n,t[5]=e[7],t[6]=r,t[7]=o}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},o.invert=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=l*a-s*c,p=-l*i+s*u,h=c*i-a*u,d=n*f+r*p+o*h;return d?(d=1/d,t[0]=f*d,t[1]=(-l*r+o*c)*d,t[2]=(s*r-o*a)*d,t[3]=p*d,t[4]=(l*n-o*u)*d,t[5]=(-s*n+o*i)*d,t[6]=h*d,t[7]=(-c*n+r*u)*d,t[8]=(a*n-r*i)*d,t):null},o.adjoint=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8];return t[0]=a*l-s*c,t[1]=o*c-r*l,t[2]=r*s-o*a,t[3]=s*u-i*l,t[4]=n*l-o*u,t[5]=o*i-n*s,t[6]=i*c-a*u,t[7]=r*u-n*c,t[8]=n*a-r*i,t},o.determinant=function(t){var e=t[0],n=t[1],r=t[2],o=t[3],i=t[4],a=t[5],s=t[6],u=t[7],c=t[8];return e*(c*i-a*u)+n*(-c*o+a*s)+r*(u*o-i*s)},o.multiply=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],p=n[0],h=n[1],d=n[2],v=n[3],m=n[4],g=n[5],y=n[6],b=n[7],x=n[8];return t[0]=p*r+h*a+d*c,t[1]=p*o+h*s+d*l,t[2]=p*i+h*u+d*f,t[3]=v*r+m*a+g*c,t[4]=v*o+m*s+g*l,t[5]=v*i+m*u+g*f,t[6]=y*r+b*a+x*c,t[7]=y*o+b*s+x*l,t[8]=y*i+b*u+x*f,t},o.mul=o.multiply,o.translate=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],p=n[0],h=n[1];return t[0]=r,t[1]=o,t[2]=i,t[3]=a,t[4]=s,t[5]=u,t[6]=p*r+h*a+c,t[7]=p*o+h*s+l,t[8]=p*i+h*u+f,t},o.rotate=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=e[3],s=e[4],u=e[5],c=e[6],l=e[7],f=e[8],p=Math.sin(n),h=Math.cos(n);return t[0]=h*r+p*a,t[1]=h*o+p*s,t[2]=h*i+p*u,t[3]=h*a-p*r,t[4]=h*s-p*o,t[5]=h*u-p*i,t[6]=c,t[7]=l,t[8]=f,t},o.scale=function(t,e,n){var r=n[0],o=n[1];return t[0]=r*e[0],t[1]=r*e[1],t[2]=r*e[2],t[3]=o*e[3],t[4]=o*e[4],t[5]=o*e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t},o.fromTranslation=function(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},o.fromRotation=function(t,e){var n=Math.sin(e),r=Math.cos(e);return t[0]=r,t[1]=n,t[2]=0,t[3]=-n,t[4]=r,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},o.fromScaling=function(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},o.fromMat2d=function(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},o.fromQuat=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=n+n,s=r+r,u=o+o,c=n*a,l=r*a,f=r*s,p=o*a,h=o*s,d=o*u,v=i*a,m=i*s,g=i*u;return t[0]=1-f-d,t[3]=l-g,t[6]=p+m,t[1]=l+g,t[4]=1-c-d,t[7]=h-v,t[2]=p-m,t[5]=h+v,t[8]=1-c-f,t},o.normalFromMat4=function(t,e){var n=e[0],r=e[1],o=e[2],i=e[3],a=e[4],s=e[5],u=e[6],c=e[7],l=e[8],f=e[9],p=e[10],h=e[11],d=e[12],v=e[13],m=e[14],g=e[15],y=n*s-r*a,b=n*u-o*a,x=n*c-i*a,_=r*u-o*s,w=r*c-i*s,O=o*c-i*u,S=l*v-f*d,C=l*m-p*d,k=l*g-h*d,j=f*m-p*v,E=f*g-h*v,M=p*g-h*m,T=y*M-b*E+x*j+_*k-w*C+O*S;return T?(T=1/T,t[0]=(s*M-u*E+c*j)*T,t[1]=(u*k-a*M-c*C)*T,t[2]=(a*E-s*k+c*S)*T,t[3]=(o*E-r*M-i*j)*T,t[4]=(n*M-o*k+i*C)*T,t[5]=(r*k-n*E-i*S)*T,t[6]=(v*O-m*w+g*_)*T,t[7]=(m*x-d*O-g*b)*T,t[8]=(d*w-v*x+g*y)*T,t):null},o.str=function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},o.frob=function(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2)+Math.pow(t[2],2)+Math.pow(t[3],2)+Math.pow(t[4],2)+Math.pow(t[5],2)+Math.pow(t[6],2)+Math.pow(t[7],2)+Math.pow(t[8],2))},o.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t[3]=e[3]+n[3],t[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},o.subtract=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t[3]=e[3]-n[3],t[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},o.sub=o.subtract,o.multiplyScalar=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t[3]=e[3]*n,t[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},o.multiplyScalarAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t[3]=e[3]+n[3]*r,t[4]=e[4]+n[4]*r,t[5]=e[5]+n[5]*r,t[6]=e[6]+n[6]*r,t[7]=e[7]+n[7]*r,t[8]=e[8]+n[8]*r,t},o.exactEquals=function(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]},o.equals=function(t,e){var n=t[0],o=t[1],i=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],p=e[0],h=e[1],d=e[2],v=e[3],m=e[4],g=e[5],y=t[6],b=e[7],x=e[8];return Math.abs(n-p)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(p))&&Math.abs(o-h)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(h))&&Math.abs(i-d)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(d))&&Math.abs(a-v)<=r.EPSILON*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(s-m)<=r.EPSILON*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(u-g)<=r.EPSILON*Math.max(1,Math.abs(u),Math.abs(g))&&Math.abs(c-y)<=r.EPSILON*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(l-b)<=r.EPSILON*Math.max(1,Math.abs(l),Math.abs(b))&&Math.abs(f-x)<=r.EPSILON*Math.max(1,Math.abs(f),Math.abs(x))},t.exports=o},function(t,e,n){var r=n(45),o={};o.create=function(){var t=new r.ARRAY_TYPE(3);return t[0]=0,t[1]=0,t[2]=0,t},o.clone=function(t){var e=new r.ARRAY_TYPE(3);return e[0]=t[0],e[1]=t[1],e[2]=t[2],e},o.fromValues=function(t,e,n){var o=new r.ARRAY_TYPE(3);return o[0]=t,o[1]=e,o[2]=n,o},o.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t},o.set=function(t,e,n,r){return t[0]=e,t[1]=n,t[2]=r,t},o.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t[2]=e[2]+n[2],t},o.subtract=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t[2]=e[2]-n[2],t},o.sub=o.subtract,o.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t[2]=e[2]*n[2],t},o.mul=o.multiply,o.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t[2]=e[2]/n[2],t},o.div=o.divide,o.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t[2]=Math.ceil(e[2]),t},o.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t[2]=Math.floor(e[2]),t},o.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t[2]=Math.min(e[2],n[2]),t},o.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t[2]=Math.max(e[2],n[2]),t},o.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t[2]=Math.round(e[2]),t},o.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t[2]=e[2]*n,t},o.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t[2]=e[2]+n[2]*r,t},o.distance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return Math.sqrt(n*n+r*r+o*o)},o.dist=o.distance,o.squaredDistance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1],o=e[2]-t[2];return n*n+r*r+o*o},o.sqrDist=o.squaredDistance,o.length=function(t){var e=t[0],n=t[1],r=t[2];return Math.sqrt(e*e+n*n+r*r)},o.len=o.length,o.squaredLength=function(t){var e=t[0],n=t[1],r=t[2];return e*e+n*n+r*r},o.sqrLen=o.squaredLength,o.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t[2]=-e[2],t},o.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t[2]=1/e[2],t},o.normalize=function(t,e){var n=e[0],r=e[1],o=e[2],i=n*n+r*r+o*o;return i>0&&(i=1/Math.sqrt(i),t[0]=e[0]*i,t[1]=e[1]*i,t[2]=e[2]*i),t},o.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]},o.cross=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=n[0],s=n[1],u=n[2];return t[0]=o*u-i*s,t[1]=i*a-r*u,t[2]=r*s-o*a,t},o.lerp=function(t,e,n,r){var o=e[0],i=e[1],a=e[2];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t[2]=a+r*(n[2]-a),t},o.hermite=function(t,e,n,r,o,i){var a=i*i,s=a*(2*i-3)+1,u=a*(i-2)+i,c=a*(i-1),l=a*(3-2*i);return t[0]=e[0]*s+n[0]*u+r[0]*c+o[0]*l,t[1]=e[1]*s+n[1]*u+r[1]*c+o[1]*l,t[2]=e[2]*s+n[2]*u+r[2]*c+o[2]*l,t},o.bezier=function(t,e,n,r,o,i){var a=1-i,s=a*a,u=i*i,c=s*a,l=3*i*s,f=3*u*a,p=u*i;return t[0]=e[0]*c+n[0]*l+r[0]*f+o[0]*p,t[1]=e[1]*c+n[1]*l+r[1]*f+o[1]*p,t[2]=e[2]*c+n[2]*l+r[2]*f+o[2]*p,t},o.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI,o=2*r.RANDOM()-1,i=Math.sqrt(1-o*o)*e;return t[0]=Math.cos(n)*i,t[1]=Math.sin(n)*i,t[2]=o*e,t},o.transformMat4=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=n[3]*r+n[7]*o+n[11]*i+n[15];return a=a||1,t[0]=(n[0]*r+n[4]*o+n[8]*i+n[12])/a,t[1]=(n[1]*r+n[5]*o+n[9]*i+n[13])/a,t[2]=(n[2]*r+n[6]*o+n[10]*i+n[14])/a,t},o.transformMat3=function(t,e,n){var r=e[0],o=e[1],i=e[2];return t[0]=r*n[0]+o*n[3]+i*n[6],t[1]=r*n[1]+o*n[4]+i*n[7],t[2]=r*n[2]+o*n[5]+i*n[8],t},o.transformQuat=function(t,e,n){var r=e[0],o=e[1],i=e[2],a=n[0],s=n[1],u=n[2],c=n[3],l=c*r+s*i-u*o,f=c*o+u*r-a*i,p=c*i+a*o-s*r,h=-a*r-s*o-u*i;return t[0]=l*c+h*-a+f*-u-p*-s,t[1]=f*c+h*-s+p*-a-l*-u,t[2]=p*c+h*-u+l*-s-f*-a,t},o.rotateX=function(t,e,n,r){var o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[0],i[1]=o[1]*Math.cos(r)-o[2]*Math.sin(r),i[2]=o[1]*Math.sin(r)+o[2]*Math.cos(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},o.rotateY=function(t,e,n,r){var o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[2]*Math.sin(r)+o[0]*Math.cos(r),i[1]=o[1],i[2]=o[2]*Math.cos(r)-o[0]*Math.sin(r),t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},o.rotateZ=function(t,e,n,r){var o=[],i=[];return o[0]=e[0]-n[0],o[1]=e[1]-n[1],o[2]=e[2]-n[2],i[0]=o[0]*Math.cos(r)-o[1]*Math.sin(r),i[1]=o[0]*Math.sin(r)+o[1]*Math.cos(r),i[2]=o[2],t[0]=i[0]+n[0],t[1]=i[1]+n[1],t[2]=i[2]+n[2],t},o.forEach=function(){var t=o.create();return function(e,n,r,o,i,a){var s,u;for(n||(n=3),r||(r=0),u=o?Math.min(o*n+r,e.length):e.length,s=r;s1?0:Math.acos(i)},o.str=function(t){return"vec3("+t[0]+", "+t[1]+", "+t[2]+")"},o.exactEquals=function(t,e){return t[0]===e[0]&&t[1]===e[1]&&t[2]===e[2]},o.equals=function(t,e){var n=t[0],o=t[1],i=t[2],a=e[0],s=e[1],u=e[2];return Math.abs(n-a)<=r.EPSILON*Math.max(1,Math.abs(n),Math.abs(a))&&Math.abs(o-s)<=r.EPSILON*Math.max(1,Math.abs(o),Math.abs(s))&&Math.abs(i-u)<=r.EPSILON*Math.max(1,Math.abs(i),Math.abs(u))},t.exports=o},function(t,e,n){var r=n(45),o={};o.create=function(){var t=new r.ARRAY_TYPE(2);return t[0]=0,t[1]=0,t},o.clone=function(t){var e=new r.ARRAY_TYPE(2);return e[0]=t[0],e[1]=t[1],e},o.fromValues=function(t,e){var n=new r.ARRAY_TYPE(2);return n[0]=t,n[1]=e,n},o.copy=function(t,e){return t[0]=e[0],t[1]=e[1],t},o.set=function(t,e,n){return t[0]=e,t[1]=n,t},o.add=function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},o.subtract=function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},o.sub=o.subtract,o.multiply=function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},o.mul=o.multiply,o.divide=function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},o.div=o.divide,o.ceil=function(t,e){return t[0]=Math.ceil(e[0]),t[1]=Math.ceil(e[1]),t},o.floor=function(t,e){return t[0]=Math.floor(e[0]),t[1]=Math.floor(e[1]),t},o.min=function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},o.max=function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t},o.round=function(t,e){return t[0]=Math.round(e[0]),t[1]=Math.round(e[1]),t},o.scale=function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},o.scaleAndAdd=function(t,e,n,r){return t[0]=e[0]+n[0]*r,t[1]=e[1]+n[1]*r,t},o.distance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return Math.sqrt(n*n+r*r)},o.dist=o.distance,o.squaredDistance=function(t,e){var n=e[0]-t[0],r=e[1]-t[1];return n*n+r*r},o.sqrDist=o.squaredDistance,o.length=function(t){var e=t[0],n=t[1];return Math.sqrt(e*e+n*n)},o.len=o.length,o.squaredLength=function(t){var e=t[0],n=t[1];return e*e+n*n},o.sqrLen=o.squaredLength,o.negate=function(t,e){return t[0]=-e[0],t[1]=-e[1],t},o.inverse=function(t,e){return t[0]=1/e[0],t[1]=1/e[1],t},o.normalize=function(t,e){var n=e[0],r=e[1],o=n*n+r*r;return o>0&&(o=1/Math.sqrt(o),t[0]=e[0]*o,t[1]=e[1]*o),t},o.dot=function(t,e){return t[0]*e[0]+t[1]*e[1]},o.cross=function(t,e,n){var r=e[0]*n[1]-e[1]*n[0];return t[0]=t[1]=0,t[2]=r,t},o.lerp=function(t,e,n,r){var o=e[0],i=e[1];return t[0]=o+r*(n[0]-o),t[1]=i+r*(n[1]-i),t},o.random=function(t,e){e=e||1;var n=2*r.RANDOM()*Math.PI;return t[0]=Math.cos(n)*e,t[1]=Math.sin(n)*e,t},o.transformMat2=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o,t[1]=n[1]*r+n[3]*o,t},o.transformMat2d=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[2]*o+n[4],t[1]=n[1]*r+n[3]*o+n[5],t},o.transformMat3=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[3]*o+n[6],t[1]=n[1]*r+n[4]*o+n[7],t},o.transformMat4=function(t,e,n){var r=e[0],o=e[1];return t[0]=n[0]*r+n[4]*o+n[12],t[1]=n[1]*r+n[5]*o+n[13],t},o.forEach=function(){var t=o.create();return function(e,n,r,o,i,a){var s,u;for(n||(n=2),r||(r=0),u=o?Math.min(o*n+r,e.length):e.length,s=r;s4&&void 0!==arguments[4]?arguments[4]:0,m=this,g=m.get("canvas"),y=function(t){var e={M:null,attrs:{}};for(var n in t)"transform"===n?e.M=r.transform(m.getMatrix(),t[n]):"matrix"===n?e.M=t[n]:f[n]||(e.attrs[n]=t[n]);return e}(t),b=y.attrs,x=y.M,_=function(t){var e={};for(var n in t)e[n]=m.attr(n);return e}(b),w=i.clone(m.getMatrix()),O=t.repeat,S=m.get("animateTimer");S&&S.stop(),i.isNumber(u)&&(v=u,u=null),i.isFunction(n)?(u=n,n="easeLinear"):n=n||"easeLinear",m.setSilent("animating",!0),m.setSilent("animateCfg",{toAttrs:b,toM:x,callback:u}),S=s.timer(function(t){O?p(t):h(t)},v),m.setSilent("animateTimer",S)}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(236);n.d(e,"easeLinear",function(){return r.a});var o=n(237);n.d(e,"easeQuad",function(){return o.b}),n.d(e,"easeQuadIn",function(){return o.a}),n.d(e,"easeQuadOut",function(){return o.c}),n.d(e,"easeQuadInOut",function(){return o.b});var i=n(238);n.d(e,"easeCubic",function(){return i.b}),n.d(e,"easeCubicIn",function(){return i.a}),n.d(e,"easeCubicOut",function(){return i.c}),n.d(e,"easeCubicInOut",function(){return i.b});var a=n(239);n.d(e,"easePoly",function(){return a.b}),n.d(e,"easePolyIn",function(){return a.a}),n.d(e,"easePolyOut",function(){return a.c}),n.d(e,"easePolyInOut",function(){return a.b});var s=n(240);n.d(e,"easeSin",function(){return s.b}),n.d(e,"easeSinIn",function(){return s.a}),n.d(e,"easeSinOut",function(){return s.c}),n.d(e,"easeSinInOut",function(){return s.b});var u=n(241);n.d(e,"easeExp",function(){return u.b}),n.d(e,"easeExpIn",function(){return u.a}),n.d(e,"easeExpOut",function(){return u.c}),n.d(e,"easeExpInOut",function(){return u.b});var c=n(242);n.d(e,"easeCircle",function(){return c.b}),n.d(e,"easeCircleIn",function(){return c.a}),n.d(e,"easeCircleOut",function(){return c.c}),n.d(e,"easeCircleInOut",function(){return c.b});var l=n(243);n.d(e,"easeBounce",function(){return l.c}),n.d(e,"easeBounceIn",function(){return l.a}),n.d(e,"easeBounceOut",function(){return l.c}),n.d(e,"easeBounceInOut",function(){return l.b});var f=n(244);n.d(e,"easeBack",function(){return f.b}),n.d(e,"easeBackIn",function(){return f.a}),n.d(e,"easeBackOut",function(){return f.c}),n.d(e,"easeBackInOut",function(){return f.b});var p=n(245);n.d(e,"easeElastic",function(){return p.c}),n.d(e,"easeElasticIn",function(){return p.a}),n.d(e,"easeElasticOut",function(){return p.c}),n.d(e,"easeElasticInOut",function(){return p.b})},function(t,e,n){"use strict";function r(t){return+t}e.a=r},function(t,e,n){"use strict";function r(t){return t*t}function o(t){return t*(2-t)}function i(t){return((t*=2)<=1?t*t:--t*(2-t)+1)/2}e.a=r,e.c=o,e.b=i},function(t,e,n){"use strict";function r(t){return t*t*t}function o(t){return--t*t*t+1}function i(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}e.a=r,e.c=o,e.b=i},function(t,e,n){"use strict";n.d(e,"a",function(){return r}),n.d(e,"c",function(){return o}),n.d(e,"b",function(){return i});var r=function t(e){function n(t){return Math.pow(t,e)}return e=+e,n.exponent=t,n}(3),o=function t(e){function n(t){return 1-Math.pow(1-t,e)}return e=+e,n.exponent=t,n}(3),i=function t(e){function n(t){return((t*=2)<=1?Math.pow(t,e):2-Math.pow(2-t,e))/2}return e=+e,n.exponent=t,n}(3)},function(t,e,n){"use strict";function r(t){return 1-Math.cos(t*s)}function o(t){return Math.sin(t*s)}function i(t){return(1-Math.cos(a*t))/2}e.a=r,e.c=o,e.b=i;var a=Math.PI,s=a/2},function(t,e,n){"use strict";function r(t){return Math.pow(2,10*t-10)}function o(t){return 1-Math.pow(2,-10*t)}function i(t){return((t*=2)<=1?Math.pow(2,10*t-10):2-Math.pow(2,10-10*t))/2}e.a=r,e.c=o,e.b=i},function(t,e,n){"use strict";function r(t){return 1-Math.sqrt(1-t*t)}function o(t){return Math.sqrt(1- --t*t)}function i(t){return((t*=2)<=1?1-Math.sqrt(1-t*t):Math.sqrt(1-(t-=2)*t)+1)/2}e.a=r,e.c=o,e.b=i},function(t,e,n){"use strict";function r(t){return 1-o(1-t)}function o(t){return(t=+t)w?Math.pow(t,1/3):t/_+b}function s(t){return t>x?t*t*t:_*(t-b)}function u(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t){if(t instanceof p)return new p(t.h,t.c,t.l,t.opacity);t instanceof i||(t=r(t));var e=Math.atan2(t.b,t.a)*v.b;return new p(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function f(t,e,n,r){return 1===arguments.length?l(t):new p(t,e,n,null==r?1:r)}function p(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=o,e.b=f;var h=n(50),d=n(49),v=n(91),m=.95047,g=1,y=1.08883,b=4/29,x=6/29,_=3*x*x,w=x*x*x;Object(h.a)(i,o,Object(h.b)(d.a,{brighter:function(t){return new i(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new i(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=g*s(t),e=m*s(e),n=y*s(n),new d.b(u(3.2404542*e-1.5371385*t-.4985314*n),u(-.969266*e+1.8760108*t+.041556*n),u(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(h.a)(p,f,Object(h.b)(d.a,{brighter:function(t){return new p(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new p(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t){if(t instanceof i)return new i(t.h,t.s,t.l,t.opacity);t instanceof s.b||(t=Object(s.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(m*r+d*e-v*n)/(m+d-v),a=r-o,c=(h*(n-o)-f*a)/p,l=Math.sqrt(c*c+a*a)/(h*o*(1-o)),g=l?Math.atan2(c,a)*u.b-120:NaN;return new i(g<0?g+360:g,l,o,t.opacity)}function o(t,e,n,o){return 1===arguments.length?r(t):new i(t,e,n,null==o?1:o)}function i(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=o;var a=n(50),s=n(49),u=n(91),c=-.14861,l=1.78277,f=-.29227,p=-.90649,h=1.97294,d=h*p,v=h*l,m=l*f-p*c;Object(a.a)(i,o,Object(a.b)(s.a,{brighter:function(t){return t=null==t?s.c:Math.pow(s.c,t),new i(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?s.d:Math.pow(s.d,t),new i(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*u.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new s.b(255*(e+n*(c*r+l*o)),255*(e+n*(f*r+p*o)),255*(e+n*(h*r)),this.opacity)}}))},function(t,e,n){"use strict";e.a=function(t,e){return t=+t,e-=t,function(n){return Math.round(t+e*n)}}},function(t,e,n){"use strict";function r(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,s,u){if(t!==i||r!==a){var c=s.push("translate(",null,e,null,n);u.push({i:c-4,x:Object(o.a)(t,i)},{i:c-2,x:Object(o.a)(r,a)})}else(i||a)&&s.push("translate("+i+e+a+n)}function s(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(o.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function u(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(o.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function c(t,e,n,r,a,s){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(o.a)(t,n)},{i:u-2,x:Object(o.a)(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],o=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,o),s(e.rotate,n.rotate,r,o),u(e.skewX,n.skewX,r,o),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,o),e=n=null,function(t){for(var e,n=-1,i=o.length;++nf)throw new Error("too late; already scheduled");return n}function o(t,e){var n=i(t,e);if(n.state>h)throw new Error("too late; already started");return n}function i(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function a(t,e,n){function r(t){n.state=p,n.timer.restart(o,n.delay,n.time),n.delay<=t&&o(t-n.delay)}function o(r){var l,f,m,y;if(n.state!==p)return a();for(l in c)if(y=c[l],y.name===n.name){if(y.state===d)return Object(u.b)(o);y.state===v?(y.state=g,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete c[l]):+l1){var g=h[1];g.change({nice:!1,min:0,max:Math.max.apply(null,g.values)})}s.scales=h;var y=new c[u](s);e[i]=y}},e.prototype._processData=function(){for(var t=this,e=this.get("data"),n=[],r=this._groupData(e),o=0;oi&&(i=c)}(oe.max)&&e.change({min:o,max:i})},e.prototype._adjust=function(t){var e=this,n=e.get("adjusts"),r=e.getYScale(),o=e.getXScale(),i=o.field,a=r?r.field:null;l.each(n,function(n){var s=l.mix({xField:i,yField:a},n),u=l.upperFirst(n.type);if("Dodge"===u){var c=[];if(o.isCategory||o.isIdentity)c.push("x");else{if(r)throw new Error("dodge is not support linear attribute, please use category attribute!");c.push("y")}s.adjustNames=c}else if("Stack"===u){var f=e.get("coord");if(!r){s.height=f.getHeight();var h=e.getDefaultValue("size")||3;s.size=h}!f.isTransposed&&l.isNil(s.reverseOrder)&&(s.reverseOrder=!0)}new p[u](s).processAdjust(t),"Stack"===u&&r&&e._updateStackRange(a,r,t)})},e.prototype.setCoord=function(t){this.set("coord",t);var e=this.getAttr("position");this.get("shapeContainer").setMatrix(t.matrix),e&&(e.coord=t)},e.prototype.paint=function(){var t=this,e=t.get("dataArray"),n=[],r=t.getShapeFactory();r.setCoord(t.get("coord"));var o=t.get("shapeContainer");t._beforeMapping(e);for(var i=0;i=0?e:0},e.prototype._normalizeValues=function(t,e){var n=[];if(l.isArray(t))for(var r=0;r1)for(var p=0;p0)l.each(n,function(n){e+="-"+t[n]});else{var r=this.get("type"),o=this.getXScale(),i=this.getYScale(),a=o.field||"x",s=i.field||"y",u=t[s],c=void 0;c=o.isIdentity?o.value:t[a],e+="interval"===r||"schema"===r?"-"+c:"line"===r||"area"===r||"path"===r?"-"+r:"-"+c+"-"+u;var f=this._getGroupScales();l.isEmpty(f)||l.each(f,function(n){var r=n.field;"identity"!==n.type&&(e+="-"+t[r])})}return e},e.prototype.getDrawCfg=function(t){var e=this,n={origin:t,x:t.x,y:t.y,color:t.color,size:t.size,shape:t.shape,isInCircle:e.isInCircle(),opacity:t.opacity},r=e.get("styleOptions");return r&&r.style&&(n.style=e.getCallbackCfg(r.fields,r.style,t._origin)),this.get("generatePoints")&&(n.points=t.points,n.nextPoints=t.nextPoints),this.get("animate")&&(n._id=e._getShapeId(t._origin)),n},e.prototype.appendShapeInfo=function(t,e){t&&(t.setSilent("index",e),t.setSilent("coord",this.get("coord")),this.get("animate")&&this.get("animateCfg")&&t.setSilent("animateCfg",this.get("animateCfg")))},e.prototype.drawPoint=function(t,e,n,r){var o=t.shape,i=this.getDrawCfg(t),a=n.drawShape(o,i,e);this.appendShapeInfo(a,r)},e.prototype.getAttr=function(t){return this.get("attrs")[t]},e.prototype.getXScale=function(){return this.getAttr("position").scales[0]},e.prototype.getYScale=function(){return this.getAttr("position").scales[1]},e.prototype.getShapes=function(){var t=[],e=this.get("shapeContainer"),n=e.get("children");return l.each(n,function(e){e.get("origin")&&t.push(e)}),t},e.prototype.getAttrsForLegend=function(){var t=this.get("attrs"),e=[];return l.each(t,function(t){-1!==y.indexOf(t.type)&&e.push(t)}),e},e.prototype.getFieldsForLegend=function(){var t=[],e=this.get("attrOptions");return l.each(y,function(n){var r=e[n];r&&r.field&&l.isString(r.field)&&(t=t.concat(r.field.split("*")))}),l.uniq(t)},e.prototype.changeVisible=function(t,e){var n=this.get("shapeContainer");n.set("visible",t);var r=this.get("labelContainer");if(r&&r.set("visible",t),!e){n.get("canvas").draw()}},e.prototype.reset=function(){this.set("attrOptions",{}),this.clearInner()},e.prototype.clearInner=function(){this.clearActivedShapes(),this.clearSelected();var t=this.get("shapeContainer");t&&t.clear();var e=this.get("labelContainer");e&&e.remove(),this.set("attrs",{}),this.set("groupScales",null),this.set("labelContainer",null),this.set("xDistance",null),this.set("isStacked",null)},e.prototype.clear=function(){this.clearInner(),this.set("scales",{})},e.prototype.destroy=function(){this.clear();var e=this.get("shapeContainer");e&&e.remove(),this.offEvents(),t.prototype.destroy.call(this)},e.prototype.bindEvents=function(){this.get("view")&&(this._bindActiveAction(),this._bindSelectedAction())},e.prototype.offEvents=function(){this.get("view")&&(this._offActiveAction(),this._offSelectedAction())},e}(u);t.exports=b},function(t,e,n){function r(t){return null!=t&&i(t.length)&&!o(t)}var o=n(59),i=n(60);t.exports=r},function(t,e,n){var r=n(0),o=n(18),i=n(2).PathUtil,a={},s={_coord:null,draw:function(t,e){return this.drawShape?this.drawShape(t,e):null},setCoord:function(t){this._coord=t},parsePath:function(t,e){var n=this._coord;return t=i.parsePathString(t),t=n.isPolar&&!1!==e?o.convertPolarPath(n,t):o.convertNormalPath(n,t)},parsePoint:function(t){return this._coord.convertPoint(t)},parsePoints:function(t){var e=this._coord,n=[];return r.each(t,function(t){n.push(e.convertPoint(t))}),n}},u={defaultShapeType:null,setCoord:function(t){this._coord=t},getShape:function(t){var e=this;r.isArray(t)&&(t=t[0]);var n=e[t]||e[e.defaultShapeType];return n._coord=e._coord,n},getShapePoints:function(t,e){var n=this.getShape(t);return(n.getPoints||n.getShapePoints||this.getDefaultPoints)(e)},getDefaultPoints:function(){return[]},getMarkerCfg:function(t,e){var n=this.getShape(t);if(!n.getMarkerCfg){var r=this.defaultShapeType;n=this.getShape(r)}return n.getMarkerCfg(e)},getSelectedCfg:function(){return{}},drawShape:function(t,e,n){var r=this.getShape(t),o=r.draw(e,n);return o&&(o.setSilent("origin",e.origin),o._id=e.yIndex?e._id+e.yIndex:e._id,o.name=this.name),o}};a.registerFactory=function(t,e){var n=r.upperFirst(t),o=r.assign({},u,e);return a[n]=o,o.name=t,o},a.registerShape=function(t,e,n){var o=r.upperFirst(t),i=a[o],u=r.assign({},s,n);return i[e]=u,u},a.getShapeFactory=function(t){var e=this;return t=t||"point",e[r.upperFirst(t)]},t.exports=a},function(t,e,n){"use strict";function r(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function o(t){return Object(a.selection)().transition(t)}function i(){return++S}e.a=r,e.b=o,e.c=i;var a=n(6),s=n(408),u=n(421),c=n(422),l=n(423),f=n(424),p=n(425),h=n(426),d=n(427),v=n(428),m=n(429),g=n(430),y=n(431),b=n(432),x=n(433),_=n(434),w=n(435),O=n(51),S=0,C=a.selection.prototype;r.prototype=o.prototype={constructor:r,select:m.a,selectAll:g.a,filter:p.a,merge:h.a,selection:y.a,transition:w.a,call:C.call,nodes:C.nodes,node:C.node,size:C.size,empty:C.empty,each:C.each,on:d.a,attr:s.a,attrTween:u.a,style:b.a,styleTween:x.a,text:_.a,remove:v.a,tween:O.a,delay:c.a,duration:l.a,ease:f.a}},function(t,e,n){function r(t,e){var n=i(t,e);return o(n)?n:void 0}var o=n(170),i=n(176);t.exports=r},function(t,e,n){var r=n(4),o=r.Symbol;t.exports=o},function(t,e,n){function r(t){return a(t)?o(t):i(t)}var o=n(97),i=n(100),a=n(12);t.exports=r},function(t,e,n){function r(t,e){if(!t.length)return[];for(var n=[],r=0,o=t.length;r=s[l]?1:0,h=f>Math.PI?1:0,d=n.convertPoint(u),v=o(n,d);if(v>=.5)if(f===2*Math.PI){var m={x:(u.x+s.x)/2,y:(u.y+s.y)/2},g=n.convertPoint(m);c.push(["A",v,v,0,h,p,g.x,g.y]),c.push(["A",v,v,0,h,p,d.x,d.y])}else c.push(["A",v,v,0,h,p,d.x,d.y]);return c}function s(t){u.each(t,function(e,n){if("a"===e[0].toLowerCase()){var r=t[n-1],o=t[n+1];o&&"a"===o[0].toLowerCase()?r&&"l"===r[0].toLowerCase()&&(r[0]="M"):r&&"a"===r[0].toLowerCase()&&o&&"l"===o[0].toLowerCase()&&(o[0]="M")}})}var u=n(0),c=n(344),l={getLinePath:function(t,e){return r(t,e)},getSplinePath:function(t,e,n){var r=[],o=t[0],i=null;if(t.length<=2)return l.getLinePath(t,e);u.each(t,function(t){i&&i.x===t.x&&i.y===t.y||(r.push(t.x),r.push(t.y),i=t)}),n=n||[[0,0],[1,1]];var a=c.catmullRom2bezier(r,e,n);return a.unshift(["M",o.x,o.y]),a},getPointRadius:function(t,e){return o(t,e)},getPointAngle:function(t,e){var n=t.getCenter();return Math.atan2(e.y-n.y,e.x-n.x)},convertNormalPath:function(t,e){var n=[];return u.each(e,function(e){switch(e[0].toLowerCase()){case"m":case"l":case"c":n.push(i(e,t));break;case"z":default:n.push(e)}}),n},convertPolarPath:function(t,e){var n=[],r=void 0,o=void 0,c=void 0,l=void 0;return u.each(e,function(s,u){switch(s[0].toLowerCase()){case"m":case"c":case"q":n.push(i(s,t));break;case"l":r=e[u-1],o=s,c=t.isTransposed,l=c?r[r.length-2]===o[1]:r[r.length-1]===o[2],l?n=n.concat(a(r,o,t)):n.push(i(s,t));break;case"z":default:n.push(s)}}),s(n),n}};t.exports=l},function(t,e,n){"use strict";var r=n(87);n.d(e,"a",function(){return r.e}),n.d(e,"f",function(){return r.g}),n.d(e,"d",function(){return r.f});var o=n(409);n.d(e,"e",function(){return o.a}),n.d(e,"c",function(){return o.b});var i=n(410);n.d(e,"b",function(){return i.a})},function(t,e,n){function r(t){return"function"==typeof t?t:null==t?s:"object"==(void 0===t?"undefined":o(t))?u(t)?a(t[0],t[1]):i(t):c(t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(243),a=n(252),s=n(36),u=n(3),c=n(260);t.exports=r},function(t,e,n){function r(t){return null==t?"":o(t)}var o=n(257);t.exports=r},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){return i.isString(e)?e:t.invert(t.scale(e))}var i=n(0),a=function(){function t(e){r(this,t),this.type="base",this.name=null,this.method=null,this.values=[],this.scales=[],this.linear=null,i.mix(this,e)}return t.prototype.get=function(t){return this[t]},t.prototype.set=function(t,e){this[t]=e},t.prototype._getAttrValue=function(t,e){var n=this.values;if(t.isCategory&&!this.linear){return n[t.translate(e)%n.length]}var r=t.scale(e);return this.getLinearValue(r)},t.prototype.getLinearValue=function(t){var e=this.values,n=e.length-1,r=Math.floor(n*t),o=n*t-r,i=e[r];return i+((r===n?i:e[r+1])-i)*o},t.prototype.callback=function(t){var e=this,n=e.scales[0];return"identity"===n.type?n.value:e._getAttrValue(n,t)},t.prototype.getNames=function(){for(var t=this.scales,e=this.names,n=Math.min(t.length,e.length),r=[],o=0;o=0},t.prototype.processAdjust=function(t){var e=this,n=o.Array.merge(t);e.adjDataArray=t,e.mergeData=n,e.adjustData(t,n),e.adjFrames=null,e.mergeData=null},t.prototype._getDimValues=function(t){var e=this,n={},r=[];if(e.xField&&e.isAdjust("x")&&r.push(e.xField),e.yField&&e.isAdjust("y")&&r.push(e.yField),o.each(r,function(e){var r=o.Array.values(t,e);r.sort(function(t,e){return t-e}),n[e]=r}),!e.yField&&e.isAdjust("y")){var i=[0,1];n.y=i}return n},t.prototype.adjustData=function(t,e){var n=this,r=n._getDimValues(e);o.each(t,function(e,i){o.each(r,function(r,o){n.adjustDim(o,r,e,t.length,i)})})},t.prototype.adjustDim=function(){},t.prototype.getAdjustRange=function(t,e,n){var r=this,o=n.indexOf(e),i=n.length,a=void 0,s=void 0;return!r.yField&&r.isAdjust("y")?(a=0,s=1):i>1?(a=0===o?n[0]:n[o-1],s=o===i-1?n[i-1]:n[o+1],0!==o?a+=(e-a)/2:a-=(s-e)/2,o!==i-1?s-=(s-e)/2:s+=(e-n[i-2])/2):(a=0===e?0:e-.5,s=0===e?1:e+.5),{pre:a,next:s}},t.prototype.groupData=function(t,e){var n={};return o.each(t,function(t){var r=t[e];void 0===r&&(r=t[e]=0),n[r]||(n[r]=[]),n[r].push(t)}),n},t}();t.exports=i},function(t,e,n){"use strict";function r(t,e){return function(n){return t+n*e}}function o(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}function i(t,e){var n=e-t;return n?r(t,n>180||n<-180?n-360*Math.round(n/360):n):Object(u.a)(isNaN(t)?e:t)}function a(t){return 1==(t=+t)?s:function(e,n){return n-e?o(e,n,t):Object(u.a)(isNaN(e)?n:e)}}function s(t,e){var n=e-t;return n?r(t,n):Object(u.a)(isNaN(t)?e:t)}e.c=i,e.b=a,e.a=s;var u=n(152)},function(t,e,n){t.exports={Axis:n(462),Guide:n(468),Label:n(75),Legend:n(475),Plot:n(480),Tooltip:n(481)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){function r(t,e,n){var r=t[e];s.call(t,e)&&i(r,n)&&(void 0!==n||e in t)||o(t,e,n)}var o=n(58),i=n(35),a=Object.prototype,s=a.hasOwnProperty;t.exports=r},function(t,e){function n(t,e){return t===e||t!==t&&e!==e}t.exports=n},function(t,e){function n(t){return t}t.exports=n},function(t,e){function n(t,e){return!!(e=null==e?r:e)&&("number"==typeof t||o.test(t))&&t>-1&&t%1==0&&tn)&&(t.min=n),(s.isNil(t.max)||t.max=t.min&&e<=t.max&&n.push(e)}),n.length||(n.push(t.min),n.push(t.max)),t.ticks=n}},e.prototype.scale=function(t){if(null===t||void 0===t)return NaN;var e=this.max,n=this.min;if(e===n)return 0;var r=(t-n)/(e-n),o=this.rangeMin();return o+r*(this.rangeMax()-o)},e.prototype.invert=function(t){var e=(t-this.rangeMin())/(this.rangeMax()-this.rangeMin());return this.min+e*(this.max-this.min)},e}(a);t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(0),i=n(2).MatrixUtil,a=i.mat3,s=i.vec3,u=function(){function t(e){r(this,t);var n=this.getDefaultCfg();o.mix(this,n,e),this.init()}return t.prototype.getDefaultCfg=function(){return{isTransposed:!1,matrix:[1,0,0,0,1,0,0,0,1]}},t.prototype.init=function(){var t=this.start,e=this.end,n={x:(t.x+e.x)/2,y:(t.y+e.y)/2};this.center=n,this.width=Math.abs(e.x-t.x),this.height=Math.abs(e.y-t.y)},t.prototype._swapDim=function(t){var e=this[t];if(e){var n=e.start;e.start=e.end,e.end=n}},t.prototype.getCenter=function(){return this.center},t.prototype.getWidth=function(){return this.width},t.prototype.getHeight=function(){return this.height},t.prototype.convertDim=function(t,e){var n=this[e],r=n.start;return r+t*(n.end-r)},t.prototype.invertDim=function(t,e){var n=this[e],r=n.start;return(t-r)/(n.end-r)},t.prototype.convertPoint=function(t){return t},t.prototype.invertPoint=function(t){return t},t.prototype.applyMatrix=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,o=[t,e,n];return s.transformMat3(o,o,r),o},t.prototype.invertMatrix=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.matrix,o=a.invert([],r),i=[t,e,n];return s.transformMat3(i,i,o),i},t.prototype.convert=function(t){var e=this.convertPoint(t),n=e.x,r=e.y,o=this.applyMatrix(n,r,1);return{x:o[0],y:o[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 a.translate(e,e,[-n.x,-n.y]),a.rotate(e,e,t),a.translate(e,e,[n.x,n.y]),this},t.prototype.reflect=function(t){switch(t){case"x":this._swapDim("x");break;case"y":this._swapDim("y");break;default:this._swapDim("y")}return this},t.prototype.scale=function(t,e){var n=this.matrix,r=this.center;return a.translate(n,n,[-r.x,-r.y]),a.scale(n,n,[t,e]),a.translate(n,n,[r.x,r.y]),this},t.prototype.translate=function(t,e){var n=this.matrix;return a.translate(n,n,[t,e]),this},t.prototype.transpose=function(){return this.isTransposed=!this.isTransposed,this},t}();t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(75),u=s.LabelsRenderer,c=n(2),l=c.Group,f=n(464),p=n(1),h=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){return{_id:null,zIndex:4,ticks:null,line:null,tickLine:null,subTickCount:0,subTickLine:null,grid:null,label:{textStyle:{},autoRotate:!0,formatter:null},title:{autoRotate:!0,textStyle:{}},autoPaint:!0}},e.prototype._beforeRenderUI=function(){var t=this.get("title"),e=this.get("label"),n=this.get("grid");t&&this.setSilent("title",a.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:p.fontFamily,textAlign:"center"},offset:48},t)),e&&this.setSilent("label",a.deepMix({autoRotate:!0,textStyle:{fontSize:12,fill:"#ccc",textBaseline:"middle",fontFamily:p.fontFamily},offset:10},e)),n&&this.setSilent("grid",a.deepMix({lineStyle:{lineWidth:1,stroke:"#C0D0E0"}},n))},e.prototype._renderUI=function(){this.get("label")&&this.renderLabels(),this.get("autoPaint")&&this.paint(),a.isNil(this.get("title"))||this.renderTitle(),this.sort()},e.prototype._parseTicks=function(t){t=t||[];for(var e=t.length,n=0;n3&&void 0!==arguments[3]?arguments[3]:"",o=this.get("tickItems"),i=this.get("subTickItems"),a=this.getTickEnd(e,n,t),s={x1:e.x,y1:e.y,x2:a.x,y2:a.y};o||(o=[]),i||(i=[]),"sub"===r?i.push(s):o.push(s),this.set("tickItems",o),this.set("subTickItems",i)},e.prototype._renderLine=function(){var t=this.get("line"),e=void 0;if(t){e=this.getLinePath(),t=a.mix({path:e},t);var n=this.addShape("path",{attrs:t});n.name="axis-line",this.get("appendInfo")&&n.setSilent("appendInfo",this.get("appendInfo")),this.set("lineShape",n)}},e.prototype._processTicks=function(){var t=this,e=t.get("label"),n=t.get("subTickCount"),r=t.get("tickLine"),o=t.get("ticks");if(o=t._parseTicks(o),a.each(o,function(n,o){var i=t.getTickPoint(n.value,o);r&&t._addTickItem(o,i,r.length),e&&t.addLabel(n,i,o)}),n){var i=t.get("subTickLine");a.each(o,function(e,a){if(a>0){var s=e.value-o[a-1].value;s/=t.get("subTickCount")+1;for(var u=1;u<=n;u++){var c={text:"",value:a?o[a-1].value+u*s:u*s},l=t.getTickPoint(c.value),f=void 0;f=i&&i.length?i.length:parseInt(.6*r.length,10),t._addTickItem(u-1,l,f,"sub")}}})}},e.prototype._addTickLine=function(t,e){var n=this,r=a.mix({},e),o=[];a.each(t,function(t){o.push(["M",t.x1,t.y1]),o.push(["L",t.x2,t.y2])}),delete r.length,r.path=o;var i=n.addShape("path",{attrs:r});i.name="axis-ticks",i._id=n.get("_id")+"-ticks",i.set("coord",n.get("coord")),n.get("appendInfo")&&i.setSilent("appendInfo",n.get("appendInfo"))},e.prototype._renderTicks=function(){var t=this,e=t.get("tickItems"),n=t.get("subTickItems");if(!a.isEmpty(e)){var r=t.get("tickLine");t._addTickLine(e,r)}if(!a.isEmpty(n)){var o=t.get("subTickLine")||t.get("tickLine");t._addTickLine(n,o)}},e.prototype._renderGrid=function(){var t=this.get("grid");t&&(t.coord=this.get("coord"),t.appendInfo=this.get("appendInfo"),this.set("gridGroup",this.addGroup(f,t)))},e.prototype.paint=function(){this._renderLine(),this._processTicks(),this._renderTicks(),this._renderGrid();var t=this.get("label");t&&t.autoRotate&&this.autoRotateLabels()},e.prototype.parseTick=function(t,e,n){return{text:t,value:e/(n-1)}},e.prototype.getTextAnchor=function(t){var e=Math.abs(t[1]/t[0]);return e>=1?"center":t[0]>0?"start":"end"},e.prototype.getMaxLabelWidth=function(t){var e=t.get("children"),n=0;return a.each(e,function(t){var e=t.getBBox(),r=e.width;n-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){var r=n(186),o=n(98),i=n(99),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},function(t,e,n){function r(t){var e=this.__data__=new o(t);this.size=e.size}var o=n(40),i=n(194),a=n(195),s=n(196),u=n(197),c=n(198);r.prototype.clear=i,r.prototype.delete=a,r.prototype.get=s,r.prototype.has=u,r.prototype.set=c,t.exports=r},function(t,e,n){var r=n(15),o=n(4),i=r(o,"Map");t.exports=i},function(t,e,n){function r(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),r.a.hasOwnProperty(e)?{space:r.a[e],local:t}:t}},function(t,e,n){"use strict";n.d(e,"b",function(){return r});var r="http://www.w3.org/1999/xhtml";e.a={svg:"http://www.w3.org/2000/svg",xhtml:r,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},function(t,e,n){"use strict";function r(){}e.a=function(t){return null==t?r:function(){return this.querySelector(t)}}},function(t,e,n){"use strict";e.a=function(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}},function(t,e,n){"use strict";function r(t,e,n){return t=o(t,e,n),function(e){var n=e.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||t.call(this,e)}}function o(t,e,n){return function(r){var o=l;l=r;try{t.call(this,this.__data__,e,n)}finally{l=o}}}function i(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}})}function a(t){return function(){var e=this.__on;if(e){for(var n,r=0,o=-1,i=e.length;r=0&&e._call.call(null,t),e=e._next;--v}function u(){x=(b=w.now())+_,v=m=0;try{s()}finally{v=0,l(),x=0}}function c(){var t=w.now(),e=t-b;e>y&&(_-=e,b=t)}function l(){for(var t,e,n=p,r=1/0;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:p=e);h=t,f(r)}function f(t){if(!v){m&&(m=clearTimeout(m));t-x>24?(t<1/0&&(m=setTimeout(u,t-w.now()-_)),g&&(g=clearInterval(g))):(g||(b=w.now(),g=setInterval(c,y)),v=1,O(u))}}e.b=r,e.a=i,e.c=a;var p,h,d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v=0,m=0,g=0,y=1e3,b=0,x=0,_=0,w="object"===("undefined"==typeof performance?"undefined":d(performance))&&performance.now?performance:Date,O="object"===("undefined"==typeof window?"undefined":d(window))&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};i.prototype=a.prototype={constructor:i,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?r():+n)+(null==e?0:+e),this._next||h===this||(h?h._next=this:p=this,h=this),this._call=t,this._time=n,f()},stop:function(){this._call&&(this._call=null,this._time=1/0,f())}}},function(t,e,n){"use strict";var r=(n(86),n(153),n(89),n(151),n(154),n(50));n.d(e,"a",function(){return r.a});var o=(n(155),n(411),n(156));n.d(e,"c",function(){return o.a});var i=n(412);n.d(e,"d",function(){return i.a}),n.d(e,"e",function(){return i.b});var a=(n(415),n(150));n.d(e,"b",function(){return a.a});n(416),n(417),n(418),n(419),n(420)},function(t,e,n){"use strict";var r=n(19),o=n(150),i=n(153),a=n(154),s=n(50),u=n(155),c=n(156),l=n(152),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.a=function(t,e){var n,p=void 0===e?"undefined":f(e);return null==e||"boolean"===p?Object(l.a)(e):("number"===p?s.a:"string"===p?(n=Object(r.a)(e))?(e=n,o.a):c.a:e instanceof r.a?o.a:e instanceof Date?a.a:Array.isArray(e)?i.a:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?u.a:s.a)(t,e)}},function(t,e,n){"use strict";function r(){}function o(t){var e;return t=(t+"").trim().toLowerCase(),(e=_.exec(t))?(e=parseInt(e[1],16),new c(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1)):(e=w.exec(t))?i(parseInt(e[1],16)):(e=O.exec(t))?new c(e[1],e[2],e[3],1):(e=S.exec(t))?new c(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=C.exec(t))?a(e[1],e[2],e[3],e[4]):(e=k.exec(t))?a(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=j.exec(t))?l(e[1],e[2]/100,e[3]/100,1):(e=E.exec(t))?l(e[1],e[2]/100,e[3]/100,e[4]):M.hasOwnProperty(t)?i(M[t]):"transparent"===t?new c(NaN,NaN,NaN,0):null}function i(t){return new c(t>>16&255,t>>8&255,255&t,1)}function a(t,e,n,r){return r<=0&&(t=e=n=NaN),new c(t,e,n,r)}function s(t){return t instanceof r||(t=o(t)),t?(t=t.rgb(),new c(t.r,t.g,t.b,t.opacity)):new c}function u(t,e,n,r){return 1===arguments.length?s(t):new c(t,e,n,null==r?1:r)}function c(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function l(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new h(t,e,n,r)}function f(t){if(t instanceof h)return new h(t.h,t.s,t.l,t.opacity);if(t instanceof r||(t=o(t)),!t)return new h;if(t instanceof h)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,a=Math.min(e,n,i),s=Math.max(e,n,i),u=NaN,c=s-a,l=(s+a)/2;return c?(u=e===s?(n-i)/c+6*(n0&&l<1?0:u,new h(u,c,l,t.opacity)}function p(t,e,n,r){return 1===arguments.length?f(t):new h(t,e,n,null==r?1:r)}function h(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function d(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}e.a=r,n.d(e,"d",function(){return m}),n.d(e,"c",function(){return g}),e.e=o,e.h=s,e.g=u,e.b=c,e.f=p;var v=n(88),m=.7,g=1/m,y="\\s*([+-]?\\d+)\\s*",b="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",x="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_=/^#([0-9a-f]{3})$/,w=/^#([0-9a-f]{6})$/,O=new RegExp("^rgb\\("+[y,y,y]+"\\)$"),S=new RegExp("^rgb\\("+[x,x,x]+"\\)$"),C=new RegExp("^rgba\\("+[y,y,y,b]+"\\)$"),k=new RegExp("^rgba\\("+[x,x,x,b]+"\\)$"),j=new RegExp("^hsl\\("+[b,x,x]+"\\)$"),E=new RegExp("^hsla\\("+[b,x,x,b]+"\\)$"),M={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Object(v.a)(r,o,{displayable:function(){return this.rgb().displayable()},toString:function(){return this.rgb()+""}}),Object(v.a)(c,u,Object(v.b)(r,{brighter:function(t){return t=null==t?g:Math.pow(g,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?m:Math.pow(m,t),new c(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},toString:function(){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+")")}})),Object(v.a)(h,p,Object(v.b)(r,{brighter:function(t){return t=null==t?g:Math.pow(g,t),new h(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?m:Math.pow(m,t),new h(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,o=2*n-r;return new c(d(t>=240?t-240:t+120,o,r),d(t,o,r),d(t<120?t+240:t-120,o,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}))},function(t,e,n){"use strict";function r(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}e.b=r,e.a=function(t,e,n){t.prototype=e.prototype=n,n.constructor=t}},function(t,e,n){"use strict";function r(t,e,n,r,o){var i=t*t,a=i*t;return((1-3*t+3*i-a)*e+(4-6*i+3*a)*n+(1+3*t+3*i-3*a)*r+a*o)/6}e.a=r,e.b=function(t){var e=t.length-1;return function(n){var o=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[o],a=t[o+1],s=o>0?t[o-1]:2*i-a,u=op))return!1;var d=l.get(t);if(d&&l.get(e))return d==e;var v=-1,m=!0,g=n&u?new o:void 0;for(l.set(t,e),l.set(e,t);++v0&&n(l)?e>1?r(l,e-1,n,a,s):o(s,l):a||(s[s.length]=l)}return s}var o=n(66),i=n(263);t.exports=r},function(t,e,n){function r(t,e,n){return e===e?a(t,e,n):o(t,i,n)}var o=n(269),i=n(270),a=n(271);t.exports=r},function(t,e,n){function r(t){var e=o(t),n=e%1;return e===e?n?e-n:e:0}var o=n(272);t.exports=r},function(t,e,n){function r(t){if("number"==typeof t)return t;if(i(t))return a;if(o(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=o(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(s,"");var n=c.test(t);return n||l.test(t)?f(t.slice(2),n?2:8):u.test(t)?a:+t}var o=n(10),i=n(28),a=NaN,s=/^\s+|\s+$/g,u=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,l=/^0o[0-7]+$/i,f=parseInt;t.exports=r},function(t,e,n){function r(t){return"number"==typeof t||i(t)&&o(t)==a}var o=n(9),i=n(5),a="[object Number]";t.exports=r},function(t,e){function n(t){return null==t}t.exports=n},function(t,e,n){function r(t){return"string"==typeof t||!i(t)&&a(t)&&o(t)==s}var o=n(9),i=n(3),a=n(5),s="[object String]";t.exports=r},function(t,e,n){function r(t){return function(e){e=s(e);var n=i(e)?a(e):void 0,r=n?n[0]:e.charAt(0),u=n?o(n,1).join(""):e.slice(1);return r[t]()+u}}var o=n(284),i=n(128),a=n(129),s=n(21);t.exports=r},function(t,e){function n(t){return r.test(t)}var r=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=n},function(t,e,n){function r(t){return i(t)?a(t):o(t)}var o=n(286),i=n(128),a=n(287);t.exports=r},function(t,e,n){function r(t,e,n){for(var r=-1,i=t.length;++r=l){var m=e?null:u(t);if(m)return c(m);h=!1,f=s,v=new o}else v=e?[]:d;t:for(;++r0&&f.each(t,function(t){n.lineToLabel(t,e)})},e.prototype.lineToLabel=function(t,e){var n=this,r=n.get("coord"),o={x:t.x-t._offset.x,y:t.y-t._offset.y},i={x:(o.x+t.x)/2,y:(o.y+t.y)/2},a=n.get("lineGroup");a||(a=n.addGroup({elCls:"x-line-group"}),n.set("lineGroup",a));var s=a.addShape("path",{attrs:f.mix({path:["M"+o.x,o.y+" Q"+i.x,i.y+" "+t.x,t.y].join(","),fill:null,stroke:t.color},e)});s.name="labelLine",s._id=t._id&&t._id.replace("glabel","glabelline"),s.set("coord",r)},e.prototype.getLabelPoint=function(t,e,n){function r(e,n){return f.isArray(e)&&(e=1===t.length?e.length<=2?e[e.length-1]:a(e):e[n]),e}var o=this,i=o.get("coord"),s={x:r(e.x,n),y:r(e.y,n),text:t[n]};if(e&&e.nextPoints&&("funnel"===e.shape||"pyramid"===e.shape)){var u=-1/0;e.nextPoints.forEach(function(t){t=i.convert(t),t.x>u&&(u=t.x)}),s.x=(s.x+u)/2}"pyramid"===e.shape&&!e.nextPoints&&e.points&&e.points.forEach(function(t){t=i.convert(t),-1===e.x.indexOf(t.x)&&(s.x=(s.x+t.x)/2)});var c=o.getLabelOffset(s,n,t.length);return o.transLabelPoint(s),s.x+=c.x,s.y+=c.y,s.color=e.color,s._offset=c,s},e.prototype.transLabelPoint=function(t){var e=this,n=e.get("coord"),r=n.applyMatrix(t.x,t.y,1);t.x=r[0],t.y=r[1]},e.prototype.getOffsetVector=function(){var t=this,e=t.get("label"),n=e.offset||0,r=t.get("coord");return r.isTransposed?r.applyMatrix(n,0):r.applyMatrix(0,n)},e.prototype.getDefaultOffset=function(){var t=this,e=t.get("coord"),n=t.getOffsetVector();return e.isTransposed?n[0]:n[1]},e.prototype.getLabelOffset=function(t,e,n){var r=this,o=r.getDefaultOffset(),i=r.get("coord"),a=i.isTransposed,s=a?"x":"y",u=a?1:-1,c={x:0,y:0};return c[s]=e>0||1===n?o*u:o*u*-1,c},e.prototype.getLabelAlign=function(t,e,n){var r=this,o="center";if(r.get("coord").isTransposed){var i=r.getDefaultOffset();o=i<0?"right":0===i?"center":"left",n>1&&0===e&&("right"===o?o="left":"left"===o&&(o="right"))}return o},e.prototype.showLabels=function(t){var e=this,n=e.getLabelsItems(t),r=e.get("label");n=e.adjustItems(n),e.resetLabels(n),r.labelLine&&e.drawLines(n,r.labelLine)},e.prototype.destroy=function(){this.removeLabels(),t.prototype.destroy.call(this)},e}(u);f.assign(h.prototype,c.LabelsRenderer),t.exports=h},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(2),u=s.DomUtil,c=s.Group,l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){return{zIndex:6,items:null,textStyle:null,formatter:null,htmlTemplate:null,_containerTpl:'
',_itemTpl:'
{text}
'}},e.prototype._renderUI=function(){this._drawLabels()},e.prototype._drawLabels=function(){var t=this,e=t.get("items");a.each(e,function(e,n){t._addLabel(e,n)})},e.prototype._addLabel=function(t,e){var n=this._getLabelCfg(t,e);return this._createText(n)},e.prototype._getLabelCfg=function(t,e){var n=this.get("textStyle")||{},r=this.get("formatter"),o=this.get("htmlTemplate");if(!a.isObject(t)){var i=t;t={},t.text=i}return a.isFunction(n)&&(n=n(t.text,t,e)),r&&(t.text=r(t.text,t,e)),a.isFunction(o)&&(t.text=o(t.text,t,e)),a.isNil(t.text)&&(t.text=""),t.text=t.text+"",a.mix({},t,n,{x:t.x||0,y:t.y||0})},e.prototype._createText=function(t){var e=this.get("htmlTemplate"),n=this.get("customDiv"),r=void 0;if(!e){var o=t.point;return delete t.point,r=this.addShape("text",{attrs:t}),r.setSilent("origin",o),r.name="label",this.get("appendInfo")&&r.setSilent("appendInfo",this.get("appendInfo")),r}if(!n){var i=this.get("_containerTpl"),a=this.get("canvas").get("el").parentNode;n=u.createDom(i),a.style.position="relative",a.appendChild(n),this.set("customDiv",n)}var s=this._createDom(t);n.appendChild(s),this._setCustomPosition(t,s)},e.prototype._setCustomPosition=function(t,e){var n=t.textAlign||"left",r=t.y,o=t.x,i=u.getOuterWidth(e);r-=u.getOuterHeight(e)/2,"center"===n?o-=i/2:"right"===n&&(o-=i),e.style.top=parseInt(r,10)+"px",e.style.left=parseInt(o,10)+"px"},e.prototype._createDom=function(t){var e=this.get("_itemTpl"),n=this.get("htmlTemplate");a.isString(n)&&(t.text=a.substitute(n,{text:t.text}));var r=a.substitute(e,{text:t.text});return u.createDom(r)},e.prototype.getLabels=function(){var t=this.get("customDiv");return t?a.toArray(t.childNodes):this.get("children")},e.prototype.addLabel=function(t){var e=this.get("items"),n=e.length;return e.push(t),this._addLabel(t,n)},e.prototype.changeLabel=function(t,e){if(t){var n=this.get("htmlTemplate"),r=a.indexOf(this.getLabels(),t),o=this._getLabelCfg(e,r);if(n){var i=this._createDom(o);t.innerHTML=i.innerHTML,this._setCustomPosition(o,t)}else if(t._id=e._id,t.attr("text",o.text),t.attr("x")!==o.x||t.attr("y")!==o.y){var s=t.get("attrs").rotate;s?(t.rotateAtStart(-s),t.attr(o),t.rotateAtStart(s)):t.attr(o)}}},e.prototype.clear=function(){var e=this.get("customDiv");e&&(e.innerHTML=""),t.prototype.clear.call(this)},e.prototype.setItems=function(t){this.clear(),this.set("items",t),this._drawLabels()},e.prototype.remove=function(){var e=this.get("customDiv");e&&e.parentNode.removeChild(e),t.prototype.remove.call(this)},e}(c);t.exports=l},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(134),s=n(18),u=n(0),c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getPointRauis=function(t,e){return s.getPointRadius(t,e)},e.prototype.getCirclePoint=function(t,e,n){var r=this,o=r.get("coord"),i=o.getCenter(),a=r._isEmitLabels(),s=r.getPointRauis(o,n);if(o.isTransposed&&s>e&&!a){t+=2*Math.asin(e/(2*s))}else s+=e;return{x:i.x+s*Math.cos(t),y:i.y+s*Math.sin(t),angle:t,r:s}},e.prototype.getArcPoint=function(t,e){var n=this,r=void 0;return e=e||0,r=u.isArray(t.x)||u.isArray(t.y)?{x:u.isArray(t.x)?t.x[e]:t.x,y:u.isArray(t.y)?t.y[e]:t.y}:t,n.transLabelPoint(r),r},e.prototype.getPointAngle=function(t){var e=this,n=e.get("coord");return s.getPointAngle(n,t)},e.prototype.getMiddlePoint=function(t){var e=this,n=e.get("coord"),r=t.length,o={x:0,y:0};return u.each(t,function(t){o.x+=t.x,o.y+=t.y}),o.x/=r,o.y/=r,o=n.convert(o)},e.prototype._isToMiddle=function(t){return t.x.length>2},e.prototype.getLabelPoint=function(t,e,n){var r=this,o=t[n],i=1,a=void 0;r._isToMiddle(e)?a=r.getMiddlePoint(e.points):(1===t.length&&0===n?n=1:0===n&&(i=-1),a=r.getArcPoint(e,n));var s=r.getDefaultOffset();s*=i;var u=r.getPointAngle(a),c=r.getCirclePoint(u,s,a);return c.text=o,c.angle=u,c.color=e.color,c.rotate=r.getLabelRotate(u,s,e),c},e.prototype._isEmitLabels=function(){return this.get("label").labelEmit},e.prototype.getLabelRotate=function(t){var e=this,n=void 0;return n=180*t/Math.PI,n+=90,e._isEmitLabels()&&(n-=90),n&&(n>90?n-=180:n<-90&&(n+=180)),n/180*Math.PI},e.prototype.getLabelAlign=function(t){var e=this,n=e.get("coord"),r=void 0;if(e._isEmitLabels())r=t.angle<=Math.PI/2&&t.angle>-Math.PI/2?"left":"right";else if(n.isTransposed){var o=n.getCenter(),i=e.getDefaultOffset();r=Math.abs(t.x-o.x)<1?"center":t.angle>Math.PI||t.angle<=0?i>0?"left":"right":i>0?"right":"left"}else r="center";return r},e}(a);t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),s=n(138),u=n(0),c=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return u.assign(i,s),i}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="path",e.shapeType="line",e},e.prototype.getDrawCfg=function(e){var n=t.prototype.getDrawCfg.call(this,e);return n.isStack=this.hasStack(),n},e.prototype.draw=function(t,e,n,r){var o=this,i=this.splitData(t),a=this.getDrawCfg(t[0]);a.origin=t,u.each(i,function(t,i){if(!u.isEmpty(t)){a.splitedIndex=i,a.points=t;var s=n.drawShape(a.shape,a,e);o.appendShapeInfo(s,r+i)}})},e}(a);t.exports=c},function(t,e,n){var r=n(0),o=n(1);t.exports={splitData:function(t){if(!t.length)return[];var e=[],n=[],i=this.getYScale(),a=i.field,s=void 0;return r.each(t,function(t){s=t._origin?t._origin[a]:t[a],o.connectNulls?r.isNil(s)||n.push(t):r.isArray(s)&&r.isNil(s[0])||r.isNil(s)?n.length&&(e.push(n),n=[]):n.push(t)}),n.length&&e.push(n),e}}},function(t,e,n){function r(t,e){var n=t.length;i.isString(t[0])&&(t=t.map(function(t){return e.translate(t)}));for(var r=t[1]-t[0],o=2;oa&&(r=a)}return r}var o=n(1),i=n(0),a={getDefalutSize:function(){var t=this.get("defaultSize");if(!t){var e=this.get("coord"),n=this.getXScale(),i=n.values,a=this.get("dataArray"),s=void 0;if(n.isLinear&&i.length>1){i.sort();var u=r(i,n);s=(n.max-n.min)/u,i.length>s&&(s=i.length)}else s=i.length;var c=n.range,l=1/s,f=1;if(this.isInCircle()?f=e.isTransposed&&s>1?o.widthRatio.multiplePie:o.widthRatio.rose:(n.isLinear&&(l*=c[1]-c[0]),f=o.widthRatio.column),l*=f,this.hasAdjust("dodge")){l/=this._getDodgeCount(a)}t=l,this.set("defaultSize",t)}return t},_getDodgeCount:function(t){var e=this.get("adjusts"),n=void 0,r=t.length;if(i.each(e,function(t){"dodge"===t.type&&(n=t.dodgeBy)}),n){var o=i.Array.merge(t);r=i.Array.values(o,n).length}return r},getDimWidth:function(t){var e=this.get("coord"),n=e.convertPoint({x:0,y:0}),r=e.convertPoint({x:"x"===t?1:0,y:"x"===t?0:1}),o=0;return n&&r&&(o=Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))),o},_getWidth:function(){var t=this.get("coord");return this.isInCircle()&&!t.isTransposed?(t.endAngle-t.startAngle)*t.radius:this.getDimWidth("x")},_toNormalizedSize:function(t){return t/this._getWidth()},_toCoordSize:function(t){return this._getWidth()*t},getNormalizedSize:function(t){var e=this.getAttrValue("size",t);return e=i.isNil(e)?this.getDefalutSize():this._toNormalizedSize(e)},getSize:function(t){var e=this.getAttrValue("size",t);if(i.isNil(e)){var n=this.getDefalutSize();e=this._toCoordSize(n)}return e}};t.exports=a},function(t,e,n){"use strict";var r=n(7);e.a=function(t){return"string"==typeof t?new r.a([[document.querySelector(t)]],[document.documentElement]):new r.a([[t]],r.c)}},function(t,e,n){"use strict";function r(){return[]}e.a=function(t){return null==t?r:function(){return this.querySelectorAll(t)}}},function(t,e,n){"use strict";var r=function(t){return function(){return this.matches(t)}};if("undefined"!=typeof document){var o=document.documentElement;if(!o.matches){var i=o.webkitMatchesSelector||o.msMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector;r=function(t){return function(){return i.call(this,t)}}}}e.a=r},function(t,e,n){"use strict";function r(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}e.a=r;var o=n(144),i=n(7);e.b=function(){return new i.a(this._enter||this._groups.map(o.a),this._parents)},r.prototype={constructor:r,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}}},function(t,e,n){"use strict";e.a=function(t){return new Array(t.length)}},function(t,e,n){"use strict";function r(t){return function(){this.style.removeProperty(t)}}function o(t,e,n){return function(){this.style.setProperty(t,e,n)}}function i(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function a(t,e){return t.style.getPropertyValue(e)||Object(s.a)(t).getComputedStyle(t,null).getPropertyValue(e)}e.b=a;var s=n(81);e.a=function(t,e,n){return arguments.length>1?this.each((null==e?r:"function"==typeof e?i:o)(t,e,null==n?"":n)):a(this.node(),t)}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=(n(401),n(14));n.d(e,"transition",function(){return r.b});var o=n(447);n.d(e,"active",function(){return o.a});var i=n(147);n.d(e,"interrupt",function(){return i.a})},function(t,e,n){"use strict";var r=n(8);e.a=function(t,e){var n,o,i,a=t.__transition,s=!0;if(a){e=null==e?null:e+"";for(i in a)(n=a[i]).name===e?(o=n.state>r.d&&n.statel&&(c=e.slice(l,c),p[f]?p[f]+=c:p[++f]=c),(n=n[0])===(u=u[0])?p[f]?p[f]+=u:p[++f]=u:(p[++f]=null,h.push({i:f,x:Object(i.a)(n,u)})),l=s.lastIndex;return l=0},t.exports=o},function(t,e){function n(t){var e=1;if(t===1/0||t===-1/0)throw new Error("Not support Infinity!");if(t<1){for(var n=0;t<1;)e/=10,t*=10,n++;e.toString().length>i&&(e=parseFloat(e.toFixed(n)))}else for(;t>10;)e*=10,t/=10;return e}function r(t,e){var n=t.length;if(0===n)return NaN;var r=t[0];if(e=t[n-1])return t[n-1];for(var o=1;ot[n-1])return NaN;if(ei){u=t/parseInt(1/o)*(o>0?1:-1)}return u},snapMultiple:function(t,e,n){return("ceil"===n?Math.ceil(t/e):"floor"===n?Math.floor(t/e):Math.round(t/e))*e},snapTo:function(t,e){var n=r(t,e),i=o(t,e);if(isNaN(n)||isNaN(i)){if(t[0]>=e)return t[0];var a=t[t.length-1];if(a<=e)return a}return Math.abs(e-n)1?t/(this.values.length-1):t,e+r*(n-e)},e.prototype.invert=function(t){if(s.isString(t))return t;var e=this.rangeMin(),n=this.rangeMax();tn&&(t=n);var r=(t-e)/(n-e),o=Math.round(r*(this.values.length-1))%this.values.length;return o=o||0,this.values[o]},e}(a);t.exports=c},function(t,e,n){function r(t){var e=[];return i.each(t,function(t){i.isArray(t)?e=e.concat(t):e.push(t)}),e}function o(t,e){var n=void 0;for(n=e;n>0&&t%n!=0;n--);if(1===n)for(n=e;n>0&&(t-1)%n!=0;n--);return n}var i=n(0);t.exports=function(t){var e={},n=[],i=t.maxCount||8,a=r(t.data),s=a.length,u=o(s-1,i-1)+1;2===u?u=i:u3?0:(t-t%10!=10)*t%10]}};var x={D:function(t){return t.getDate()},DD:function(t){return s(t.getDate())},Do:function(t,e){return e.DoFn(t.getDate())},d:function(t){return t.getDay()},dd:function(t){return s(t.getDay())},ddd:function(t,e){return e.dayNamesShort[t.getDay()]},dddd:function(t,e){return e.dayNames[t.getDay()]},M:function(t){return t.getMonth()+1},MM:function(t){return s(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 String(t.getFullYear()).substr(2)},YYYY:function(t){return t.getFullYear()},h:function(t){return t.getHours()%12||12},hh:function(t){return s(t.getHours()%12||12)},H:function(t){return t.getHours()},HH:function(t){return s(t.getHours())},m:function(t){return t.getMinutes()},mm:function(t){return s(t.getMinutes())},s:function(t){return t.getSeconds()},ss:function(t){return s(t.getSeconds())},S:function(t){return Math.round(t.getMilliseconds()/100)},SS:function(t){return s(Math.round(t.getMilliseconds()/10),2)},SSS:function(t){return s(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?"-":"+")+s(100*Math.floor(Math.abs(e)/60)+Math.abs(e)%60,4)}},_={D:[l,function(t,e){t.day=e}],Do:[new RegExp(l.source+h.source),function(t,e){t.day=parseInt(e,10)}],M:[l,function(t,e){t.month=e-1}],YY:[l,function(t,e){var n=new Date,r=+(""+n.getFullYear()).substr(0,2);t.year=""+(e>68?r-1:r)+e}],h:[l,function(t,e){t.hour=e}],m:[l,function(t,e){t.minute=e}],s:[l,function(t,e){t.second=e}],YYYY:[p,function(t,e){t.year=e}],S:[/\d/,function(t,e){t.millisecond=100*e}],SS:[/\d{2}/,function(t,e){t.millisecond=10*e}],SSS:[f,function(t,e){t.millisecond=e}],d:[l,v],ddd:[h,v],MMM:[h,a("monthNamesShort")],MMMM:[h,a("monthNames")],a:[h,function(t,e,n){var r=e.toLowerCase();r===n.amPm[0]?t.isPm=!1:r===n.amPm[1]&&(t.isPm=!0)}],ZZ:[/([\+\-]\d\d:?\d\d|Z)/,function(t,e){"Z"===e&&(e="+00:00");var n,r=(e+"").match(/([\+\-]|\d\d)/gi);r&&(n=60*r[1]+parseInt(r[2],10),t.timezoneOffset="+"===r[0]?n:-n)}]};_.dd=_.d,_.dddd=_.ddd,_.DD=_.D,_.mm=_.m,_.hh=_.H=_.HH=_.h,_.MM=_.M,_.ss=_.s,_.A=_.a,u.masks={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",shortTime:"HH:mm",mediumTime:"HH:mm:ss",longTime:"HH:mm:ss.SSS"},u.format=function(t,e,n){var r=n||u.i18n;if("number"==typeof t&&(t=new Date(t)),"[object Date]"!==Object.prototype.toString.call(t)||isNaN(t.getTime()))throw new Error("Invalid Date in fecha.format");e=u.masks[e]||e||u.masks.default;var o=[];return e=e.replace(d,function(t,e){return o.push(e),"??"}),e=e.replace(c,function(e){return e in x?x[e](t,r):e.slice(1,e.length-1)}),e.replace(/\?\?/g,function(){return o.shift()})},u.parse=function(t,e,n){var r=n||u.i18n;if("string"!=typeof e)throw new Error("Invalid format in fecha.parse");if(e=u.masks[e]||e,t.length>1e3)return!1;var o=!0,i={};if(e.replace(c,function(e){if(_[e]){var n=_[e],a=t.search(n[0]);~a?t.replace(n[0],function(e){return n[1](i,e,r),t=t.substr(a+e.length),e}):o=!1}return _[e]?"":e.slice(1,e.length-1)}),!o)return!1;var a=new Date;!0===i.isPm&&null!=i.hour&&12!=+i.hour?i.hour=+i.hour+12:!1===i.isPm&&12==+i.hour&&(i.hour=0);var s;return null!=i.timezoneOffset?(i.minute=+(i.minute||0)-+i.timezoneOffset,s=new Date(Date.UTC(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0))):s=new Date(i.year||a.getFullYear(),i.month||0,i.day||1,i.hour||0,i.minute||0,i.second||0,i.millisecond||0),s},void 0!==t&&t.exports?t.exports=u:void 0!==(r=function(){return u}.call(e,n,e,t))&&(t.exports=r)}()},function(t,e,n){var r=n(0);t.exports={toTimeStamp:function(t){return r.isString(t)&&(t=t.indexOf("T")>0?new Date(t).getTime():new Date(t.replace(/-/gi,"/")).getTime()),r.isDate(t)&&(t=t.getTime()),t}}},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(1),u=n(2),c=u.Group,l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){return{title:{fill:"#333",textBaseline:"middle"},itemFormatter:null,useHtml:!1,inPlot:!1,hoverable:!0}},e.prototype._beforeRenderUI=function(){var t=this.addGroup();t.set("viewId",this.get("viewId")),this.set("itemsGroup",t)},e.prototype._renderUI=function(){this._renderTitle()},e.prototype._renderTitle=function(){var t=this.get("title");if(t&&t.text){var e=this.addShape("text",{attrs:a.mix({x:0,y:0,fill:"#333",textBaseline:"middle",fontFamily:s.fontFamily},t)});e.name="legend-title",this.get("appendInfo")&&e.setSilent("appendInfo",this.get("appendInfo")),this.set("titleShape",e)}},e.prototype.getCheckedCount=function(){var t=this.get("itemsGroup"),e=t.get("children");return a.filter(e,function(t){return t.get("checked")}).length},e.prototype.setItems=function(t){this.set("items",t),this.clearItems(),this._renderUI()},e.prototype.addItem=function(t){this.get("items").push(t),this.clearItems(),this._renderUI()},e.prototype.clearItems=function(){this.get("itemsGroup").clear()},e.prototype.getWidth=function(){return this.getBBox().width},e.prototype.getHeight=function(){return this.getBBox().height},e}(c);t.exports=l},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(1),u=n(165),c=n(2),l=c.Event,f=c.Group,p=n(478),h=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"continuous-legend",items:null,layout:"vertical",width:156,height:20,titleGap:22,textStyle:{fill:"#333",textAlign:"center",textBaseline:"middle",fontFamily:s.fontFamily},slidable:!0,inRange:{fill:"#4E7CCC"},_range:[0,100],middleAttr:{fill:"#fff",fillOpacity:0},outRangeStyle:{fill:"#D9D9D9"},numberFormatter:null,labelOffset:10})},e.prototype._calStartPoint=function(){var t={x:0,y:this.get("titleGap")-12},e=this.get("titleShape");if(e){var n=e.getBBox();t.y+=n.height}return t},e.prototype._beforeRenderUI=function(){var e=this.get("items");a.isArray(e)&&!a.isEmpty(e)&&(t.prototype._beforeRenderUI.call(this),this.set("firstItem",e[0]),this.set("lastItem",e[e.length-1]))},e.prototype._formatItemValue=function(t){var e=this.get("numberFormatter");e&&(t=e(t));var n=this.get("itemFormatter");return n&&(t=n.call(this,t)),t},e.prototype._renderUI=function(){t.prototype._renderUI.call(this),this.get("slidable")?this._renderSlider():this._renderBackground()},e.prototype._renderSlider=function(){var t=new f,e=new f,n=new f,r=this._calStartPoint(),o=this.addGroup(p,{minHandleElement:t,maxHandleElement:e,backgroundElement:n,middleAttr:this.get("middleAttr"),layout:this.get("layout"),range:this.get("_range"),width:this.get("width"),height:this.get("height")});o.translate(r.x,r.y),this.set("slider",o),this._renderSliderShape().attr("clip",o.get("middleHandleElement")),this._renderTrigger()},e.prototype._addBackground=function(t,e,n){return t.addShape(e,{attrs:a.mix({},n,this.get("outRangeStyle"))}),t.addShape(e,{attrs:n})},e.prototype._renderTrigger=function(){var t=this.get("firstItem"),e=this.get("lastItem"),n=this.get("layout"),r=this.get("textStyle"),o=this.get("inRange"),i=this.get("type"),s=void 0,u=void 0;"color-legend"===i?(s={fill:t.attrValue},u={fill:e.attrValue}):(s=a.mix({},o),u=a.mix({},o));var c=a.mix({text:this._formatItemValue(t.value)+""},r),l=a.mix({text:this._formatItemValue(e.value)+""},r);"vertical"===n?(this._addVerticalTrigger("min",s,c),this._addVerticalTrigger("max",u,l)):(this._addHorizontalTrigger("min",s,c),this._addHorizontalTrigger("max",u,l))},e.prototype._addVerticalTrigger=function(t,e,n){var r=this.get("slider"),o=r.get(t+"HandleElement"),i=this.get("width"),s=o.addShape("polygon",{attrs:a.mix({points:[[i/2+12,0],[i/2+1,0],[i/2+12,"min"===t?12:-12]]},e)}),u=o.addShape("text",{attrs:a.mix(n,{x:i+8,y:"max"===t?-4:4,textAlign:"start",lineHeight:1,textBaseline:"middle"})}),c=this.get("layout"),l="vertical"===c?"ns-resize":"ew-resize";s.attr("cursor",l),u.attr("cursor",l),this.set(t+"ButtonElement",s),this.set(t+"TextElement",u)},e.prototype._addHorizontalTrigger=function(t,e,n){var r=this.get("slider"),o=r.get(t+"HandleElement"),i=o.addShape("polygon",{attrs:a.mix({points:[[0,0],[0,12],["min"===t?-12:12,12]]},e)}),s=o.addShape("text",{attrs:a.mix(n,{x:"min"===t?-16:16,y:6,textAlign:"min"===t?"end":"start",textBaseline:"middle"})}),u=this.get("layout"),c="vertical"===u?"ns-resize":"ew-resize";i.attr("cursor",c),s.attr("cursor",c),this.set(t+"ButtonElement",i),this.set(t+"TextElement",s)},e.prototype._bindUI=function(){var t=this;if(t.get("slidable")){t.get("slider").on("sliderchange",function(e){var n=e.range,r=1*t.get("firstItem").value,o=1*t.get("lastItem").value,i=r+n[0]/100*(o-r),a=r+n[1]/100*(o-r);t._updateElement(i,a);var s=new l("itemfilter",e,!0,!0);s.range=[i,a],t.emit("itemfilter",s)})}},e.prototype._updateElement=function(t,e){var n=this.get("minTextElement"),r=this.get("maxTextElement");if(e>1&&(t=parseInt(t,10),e=parseInt(e,10)),n.attr("text",this._formatItemValue(t)+""),r.attr("text",this._formatItemValue(e)+""),"color-legend"===this.get("type")&&this.get("attr")){var o=this.get("attr"),i=this.get("minButtonElement"),a=this.get("maxButtonElement");i.attr("fill",o.mapping(t).join("")),a.attr("fill",o.mapping(e).join(""))}},e}(u);t.exports=h},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(56),s=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="rect",e},e.prototype.generateFacets=function(t){var e=this,n=e.fields,r=[],o=1,i=1,a=n[0],s=n[1],u=[""],c=[""];return a&&(u=e.getFieldValues(a,t),i=u.length),s&&(c=e.getFieldValues(s,t),o=c.length),u.forEach(function(n,l){c.forEach(function(f,p){var h=[{field:a,value:n,values:u},{field:s,value:f,values:c}],d=e.getFilter(h),v=t.filter(d),m={type:e.type,colValue:n,rowValue:f,colField:a,rowField:s,colIndex:l,rowIndex:p,cols:i,rows:o,data:v,region:e.getRegion(o,i,l,p)};r.push(m)})}),r},e.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1?(e[t].title=null,e[t].label=null):n.colIndex!==parseInt((n.cols-1)/2)&&(e[t].title=null)},e.prototype.setYAxis=function(t,e,n){0!==n.colIndex?(e[t].title=null,e[t].label=null):n.rowIndex!==parseInt((n.rows-1)/2)&&(e[t].title=null)},e.prototype.renderTitle=function(t,e){0===e.rowIndex&&this.drawColTitle(t,e),e.colIndex===e.cols-1&&this.drawRowTitle(t,e)},e}(a);t.exports=s},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(56),s=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="list",e.cols=null,e},e.prototype.generateFacets=function(t){var e=this,n=e.fields,r=n[0];if(!r)throw"Please specify for the field for facet!";var o=e.getFieldValues(r,t),i=o.length,a=e.cols||i,s=parseInt((i+a-1)/a),u=[];return o.forEach(function(n,c){var l=parseInt(c/a),f=c%a,p=[{field:r,value:n,values:o}],h=e.getFilter(p),d=t.filter(h),v={type:e.type,count:i,colValue:n,colField:r,rowField:null,rowValue:n,colIndex:f,rowIndex:l,cols:a,rows:s,data:d,region:e.getRegion(s,a,f,l)};u.push(v)}),u},e.prototype.setXAxis=function(t,e,n){n.rowIndex!==n.rows-1&&n.cols*n.rowIndex+n.colIndex+1+n.cols<=n.count&&(e[t].label=null,e[t].title=null)},e.prototype.setYAxis=function(t,e,n){0!==n.colIndex&&(e[t].title=null,e[t].label=null)},e}(a);t.exports=s},function(t,e,n){var r=n(2),o=n(90),i=n(326),a=n(1),s=n(159),u=n(76),c=n(0),l={version:a.version,Animate:o,Chart:i,Global:a,Scale:s,Shape:u,Util:c,G:r,DomUtil:r.DomUtil,MatrixUtil:r.MatrixUtil,PathUtil:r.PathUtil};l.track=function(t){a.trackable=t},n(492),"undefined"!=typeof window&&(window.G2?console.warn("There are multiple versions of G2. Version "+l.version+"'s reference is 'window.G2_3'"):window.G2=l),t.exports=l},function(t,e,n){function r(t){return!(!a(t)||i(t))&&(o(t)?d:c).test(s(t))}var o=n(59),i=n(174),a=n(10),s=n(93),u=/[\\^$.*+?()[\]{}|]/g,c=/^\[object .+?Constructor\]$/,l=Function.prototype,f=Object.prototype,p=l.toString,h=f.hasOwnProperty,d=RegExp("^"+p.call(h).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=r},function(t,e){var n,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"===("undefined"==typeof window?"undefined":r(window))&&(n=window)}t.exports=n},function(t,e,n){function r(t){var e=a.call(t,u),n=t[u];try{t[u]=void 0;var r=!0}catch(t){}var o=s.call(t);return r&&(e?t[u]=n:delete t[u]),o}var o=n(16),i=Object.prototype,a=i.hasOwnProperty,s=i.toString,u=o?o.toStringTag:void 0;t.exports=r},function(t,e){function n(t){return o.call(t)}var r=Object.prototype,o=r.toString;t.exports=n},function(t,e,n){function r(t){return!!i&&i in t}var o=n(175),i=function(){var t=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=r},function(t,e,n){var r=n(4),o=r["__core-js_shared__"];t.exports=o},function(t,e){function n(t,e){return null==t?void 0:t[e]}t.exports=n},function(t,e,n){function r(t){return o(function(e,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=t.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),e=Object(e);++r0){if(++e>=r)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var r=800,o=16,i=Date.now;t.exports=n},function(t,e,n){function r(t,e,n){if(!u(n))return!1;var r=void 0===e?"undefined":o(e);return!!("number"==r?a(n)&&s(e,n.length):"string"==r&&e in n)&&i(n[e],t)}var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(35),a=n(12),s=n(37),u=n(10);t.exports=r},function(t,e){function n(t,e){for(var n=-1,r=Array(t);++n-1}var o=n(41);t.exports=r},function(t,e,n){function r(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}var o=n(41);t.exports=r},function(t,e,n){function r(){this.__data__=new o,this.size=0}var o=n(40);t.exports=r},function(t,e){function n(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}t.exports=n},function(t,e){function n(t){return this.__data__.get(t)}t.exports=n},function(t,e){function n(t){return this.__data__.has(t)}t.exports=n},function(t,e,n){function r(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length=r?t:o(t,e,n)}var o=n(285);t.exports=r},function(t,e){function n(t,e,n){var r=-1,o=t.length;e<0&&(e=-e>o?0:o+e),n=n>o?o:n,n<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var i=Array(o);++re}t.exports=n},function(t,e,n){function r(t,e){return t&&t.length?o(t,i(e,2),a):void 0}var o=n(130),i=n(20),a=n(293);t.exports=r},function(t,e){function n(t,e){return t-1}var o=n(121);t.exports=r},function(t,e){function n(t,e,n){for(var r=-1,o=null==t?0:t.length;++rt.x?t.x:e,n=nt.y?t.y:r,o=o0?o.maxX:o.minX;var c=[s,u,1];t.apply(c),t.attr({transform:[["t",-s,-u],["s",.01,1],["t",s,u]]});var l={transform:[["t",-s,-u],["s",100,1],["t",s,u]]},f=a(e,r,n,l);t.animate(l,f.duration,f.easing,f.callback,f.delay)}function c(t,e){var n={lineWidth:0,opacity:0},r=t._id,o=t.get("index"),i=a(e,o,r,n);t.animate(n,i.duration,i.easing,function(){t.remove()},i.delay)}function l(t,e,n){var r=t._id,o=t.get("index"),i=void 0,s=void 0;if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,s=n.getCenter().y;else{var u=t.getBBox();i=(u.minX+u.maxX)/2,s=(u.minY+u.maxY)/2}var c=[i,s,1];t.apply(c),t.attr({transform:[["t",-i,-s],["s",.01,.01],["t",i,s]]});var l={transform:[["t",-i,-s],["s",100,100],["t",i,s]]},f=a(e,o,r,l);t.animate(l,f.duration,f.easing,f.callback,f.delay)}function f(t,e,n){var r=t._id,o=t.get("index"),i=void 0,s=void 0;if(n.isPolar&&"point"!==t.name)i=n.getCenter().x,s=n.getCenter().y;else{var u=t.getBBox();i=(u.minX+u.maxX)/2,s=(u.minY+u.maxY)/2}var c=[i,s,1];t.apply(c);var l={transform:[["t",-i,-s],["s",.01,.01],["t",i,s]]},f=a(e,o,r,l);t.animate(l,f.duration,f.easing,function(){t.remove()},f.delay)}function p(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),o=x.pathToAbsolute(t.attr("path"));t.attr("path",[o[0]]);var i={path:o},s=a(e,r,n,i);t.animate(i,s.duration,s.easing,s.callback,s.delay)}}function h(t,e){if("path"===t.get("type")){var n=t._id,r=t.get("index"),o=x.pathToAbsolute(t.attr("path")),i={path:[o[0]]},s=a(e,r,n,i);t.animate(i,s.duration,s.easing,function(){t.remove()},s.delay)}}function d(t,e,n,o,i){var s=r(n),u=t.get("canvas"),c=t._id,l=t.get("index"),f=void 0;o?(s.attr("startAngle",o),s.attr("endAngle",o),f={endAngle:i}):f=s.endState,s.set("canvas",u),t.attr("clip",s),t.setSilent("animating",!0);var p=a(e,l,c,f);s.animate(f,p.duration,p.easing,function(){t&&!t.get("destroyed")&&(t.attr("clip",null),t.setSilent("cacheShape",null),t.setSilent("animating",!1),s.remove())},p.delay)}function v(t,e){var n=t._id,r=t.get("index"),o=y.isNil(t.attr("fillOpacity"))?1:t.attr("fillOpacity"),i=y.isNil(t.attr("strokeOpacity"))?1:t.attr("strokeOpacity");t.attr("fillOpacity",0),t.attr("strokeOpacity",0);var s={fillOpacity:o,strokeOpacity:i},u=a(e,r,n,s);t.animate(s,u.duration,u.easing,u.callback,u.delay)}function m(t,e){var n=t._id,r=t.get("index"),o={fillOpacity:0,strokeOpacity:0},i=a(e,r,n,o);t.animate(o,i.duration,i.easing,function(){t.remove()},i.delay)}function g(t,e,n){var r=i(t,n),o=r.endAngle;d(t,e,n,r.startAngle,o)}var y=n(0),b=n(2),x=b.PathUtil;t.exports={enter:{clipIn:d,zoomIn:l,pathIn:p,scaleInY:s,scaleInX:u,fanIn:g,fadeIn:v},leave:{lineWidthOut:c,zoomOut:f,pathOut:h,fadeOut:m},appear:{clipIn:d,zoomIn:l,pathIn:p,scaleInY:s,scaleInX:u,fanIn:g,fadeIn:v},update:{fadeIn:v,fanIn:g}}},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){var n=!1;return c.each(t,function(t){var r=[].concat(t.values),o=[].concat(e.values);if(t.type===e.type&&t.field===e.field&&r.sort().toString()===o.sort().toString())return void(n=!0)}),n}function s(t,e){return{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)}}function u(t,e){return c.isEqualWith(t,e,function(t,e){return t===e})}var c=n(0),l=n(327),f=n(2),p=f.Canvas,h=f.DomUtil,d=n(32),v=n(158),m=n(487),g=n(1),y=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return c.mix(e,{id:null,forceFit:!1,container:null,wrapperEl:null,canvas:null,width:500,height:500,pixelRatio:null,padding:g.plotCfg.padding,backPlot:null,frontPlot:null,plotBackground:null,background:null,autoPaddingAppend:5,views:[]})},e.prototype.init=function(){this._initCanvas(),this._initPlot(),this._initEvents(),t.prototype.init.call(this);var e=new v.Tooltip({chart:this,options:{}});this.set("tooltipController",e);var n=new v.Legend({chart:this});this.set("legendController",n),this.set("_id","chart"),this.emit("afterinit")},e.prototype._isAutoPadding=function(){var t=this.get("padding");return c.isArray(t)?-1!==t.indexOf("auto"):"auto"===t},e.prototype._getAutoPadding=function(){for(var t=this.get("padding"),e=this.get("frontPlot"),n=e.getBBox(),r=this.get("backPlot"),o=r.getBBox(),i=s(n,o),a=[0-i.minY,i.maxX-this.get("width"),i.maxY-this.get("height"),0-i.minX],u=c.toAllPadding(t),l=0;l');t.appendChild(o),this.set("wrapperEl",o),this.get("forceFit")&&(n=h.getWidth(t,n),this.set("width",n));var i=new p({containerDOM:o,width:n,height:r,pixelRatio:this.get("pixelRatio")});this.set("canvas",i)},e.prototype._initPlot=function(){this._initPlotBack();var t=this.get("canvas"),e=t.addGroup({zIndex:1}),n=t.addGroup({zIndex:2}),r=t.addGroup({zIndex:3});this.set("backPlot",e),this.set("middlePlot",n),this.set("frontPlot",r)},e.prototype._initPlotBack=function(){var t=this.get("canvas"),e=t.addGroup(d.Plot,{padding:this.get("padding"),plotBackground:c.mix({},g.plotBackground,this.get("plotBackground")),background:c.mix({},g.background,this.get("background"))});this.set("plot",e),this.set("plotRange",e.get("plotRange"))},e.prototype._initEvents=function(){this.get("forceFit")&&window.addEventListener("resize",c.wrapBehavior(this,"_initForceFitEvent"))},e.prototype._initForceFitEvent=function(){var t=setTimeout(c.wrapBehavior(this,"forceFit"),200);clearTimeout(this.get("resizeTimer")),this.set("resizeTimer",t)},e.prototype._renderLegends=function(){var t=this.get("options"),e=t.legends;if(c.isNil(e)||!1!==e){var n=this.get("legendController");if(n.options=e||{},n.plotRange=this.get("plotRange"),e&&e.custom)n.addCustomLegend();else{var r=this.getAllGeoms(),o=[];c.each(r,function(t){var e=t.get("view"),r=t.getAttrsForLegend();c.each(r,function(r){var i=r.type,s=r.getScale(i);if(s.field&&"identity"!==s.type&&!a(o,s)){o.push(s);var u=e.getFilteredValues(s.field);n.addLegend(s,r,t,u)}})})}n.alignLegends()}},e.prototype._renderTooltips=function(){var t=this.get("options");if(c.isNil(t.tooltip)||!1!==t.tooltip){var e=this.get("tooltipController");e.options=t.tooltip||{},e.renderTooltip()}},e.prototype.getAllGeoms=function(){var t=[];t=t.concat(this.get("geoms"));var e=this.get("views");return c.each(e,function(e){t=t.concat(e.get("geoms"))}),t},e.prototype.forceFit=function(){var t=this;if(t&&!t.destroyed){var e=t.get("container"),n=t.get("width"),r=h.getWidth(e,n);if(0!==r&&r!==n){var o=t.get("height");t.changeSize(r,o)}return t}},e.prototype.resetPlot=function(){var t=this.get("plot"),e=this.get("padding");u(e,t.get("padding"))||(t.set("padding",e),t.repaint())},e.prototype.changeSize=function(t,e){var n=this;n.get("canvas").changeSize(t,e);var r=this.get("plot");return n.set("width",t),n.set("height",e),r.repaint(),this.set("keepPadding",!0),n.repaint(),this.set("keepPadding",!1),this.emit("afterchangesize"),n},e.prototype.changeWidth=function(t){return this.changeSize(t,this.get("height"))},e.prototype.changeHeight=function(t){return this.changeSize(this.get("width"),t)},e.prototype.facet=function(t,e){var n=m[c.upperFirst(t)];if(!n)throw new Error("Not support such type of facets as: "+t);var r=this.get("facets");r&&r.destroy(),e.chart=this;var o=new n(e);this.set("facets",o)},e.prototype.view=function(t){t=t||{},t.parent=this,t.backPlot=this.get("backPlot"),t.middlePlot=this.get("middlePlot"),t.frontPlot=this.get("frontPlot"),t.canvas=this.get("canvas"),c.isNil(t.animate)&&(t.animate=this.get("animate")),t.options=c.mix({},this._getSharedOptions(),t.options);var e=new l(t);return e.set("_id","view"+this.get("views").length),this.get("views").push(e),this.emit("addview",{view:e}),e},e.prototype.removeView=function(t){var e=this.get("views");c.Array.remove(e,t),t.destroy()},e.prototype._getSharedOptions=function(){var t=this.get("options"),e={};return c.each(["scales","coord","axes"],function(n){e[n]=c.cloneDeep(t[n])}),e},e.prototype.getViewRegion=function(){var t=this.get("plotRange");return{start:t.bl,end:t.tr}},e.prototype.legend=function(t,e){var n=this.get("options");n.legends||(n.legends={});var r={};return!1===t?n.legends=!1:c.isObject(t)?r=t:c.isString(t)?r[t]=e:r=e,c.mix(n.legends,r),this},e.prototype.tooltip=function(t,e){var n=this.get("options");return n.tooltip||(n.tooltip={}),!1===t?n.tooltip=!1:c.isObject(t)?c.mix(n.tooltip,t):c.mix(n.tooltip,e),this},e.prototype.clear=function(){this.emit("beforeclear");for(var e=this.get("views");e.length>0;){e.shift().destroy()}t.prototype.clear.call(this);var n=this.get("canvas");return this.resetPlot(),n.draw(),this.emit("afterclear"),this},e.prototype.clearInner=function(){var e=this.get("views");c.each(e,function(t){t.clearInner()});var n=this.get("tooltipController");if(n&&n.clear(),!this.get("keepLegend")){var r=this.get("legendController");r&&r.clear()}t.prototype.clearInner.call(this)},e.prototype.drawComponents=function(){t.prototype.drawComponents.call(this),this.get("keepLegend")||this._renderLegends()},e.prototype.render=function(){if(!this.get("keepPadding")&&this._isAutoPadding()){this.beforeRender(),this.drawComponents();var e=this._getAutoPadding(),n=this.get("plot");u(n.get("padding"),e)||(n.set("padding",e),n.repaint())}t.prototype.render.call(this),this._renderTooltips()},e.prototype.repaint=function(){this.get("keepPadding")||this.resetPlot(),t.prototype.repaint.call(this)},e.prototype.changeVisible=function(t){var e=this.get("wrapperEl"),n=t?"":"none";e.style.display=n},e.prototype.toDataURL=function(){return this.get("canvas").get("el").toDataURL("image/png")},e.prototype.downloadImage=function(t){var e=this.toDataURL(),n=document.createElement("a");n.addEventListener("click",function(){n.download=(t||"chart")+".png",n.href=e.replace("image/png","image/octet-stream")});var r=document.createEvent("MouseEvents");return r.initEvent("click",!1,!1),n.dispatchEvent(r),e},e.prototype.showTooltip=function(t){var e=this.getViewsByPoint(t);if(e.length){this.get("tooltipController").showTooltip(t,e)}return this},e.prototype.hideTooltip=function(){return this.get("tooltipController").hideTooltip(),this},e.prototype.getTooltipItems=function(t){var e=this,n=e.getViewsByPoint(t),r=[];return c.each(n,function(e){var n=e.get("geoms");c.each(n,function(e){var n=e.get("dataArray"),o=[];c.each(n,function(n){var r=e.findPoint(t,n);if(r){var i=e.getTipItems(r);o=o.concat(i)}}),r=r.concat(o)})}),r},e.prototype.destroy=function(){this.emit("beforedestroy"),clearTimeout(this.get("resizeTimer"));var e=this.get("canvas"),n=this.get("wrapperEl");n.parentNode.removeChild(n),t.prototype.destroy.call(this),e.destroy(),window.removeEventListener("resize",c.getWrapBehavior(this,"_initForceFitEvent")),this.emit("afterdestroy")},e}(l);t.exports=y},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t){var e=t.startAngle,n=t.endAngle;return!(!f.isNil(e)&&!f.isNil(n)&&n-e<2*Math.PI)}function s(t,e,n){var r=(t-e)/(n-e);return r>=0&&r<=1}function u(t,e){var n=!1;if(t){if("theta"===t.type){var r=t.start,o=t.end;n=s(e.x,r.x,o.x)&&s(e.y,r.y,o.y)}else{var i=t.invert(e);n=i.x>=0&&i.y>=0&&i.x<=1&&i.y<=1}}return n}var c=n(73),l=n(329),f=n(0),p=n(158),h=n(1),d=n(486),v={};f.each(l,function(t,e){var n=f.lowerFirst(e);v[n]=function(e){var n=new t(e);return this.addGeom(n),n}});var m=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return f.mix(i,v),i.init(),i}return i(e,t),e.prototype.getDefaultCfg=function(){return{viewContainer:null,coord:null,start:{x:0,y:0},end:{x:1,y:1},geoms:[],scales:{},options:{},scaleController:null,padding:0,parent:null,tooltipEnable:!0,animate:!0,visible:!0}},e.prototype.init=function(){this._initViewPlot(),this.get("data")&&this._initData(this.get("data")),this._initOptions(),this._initControllers(),this._bindEvents()},e.prototype._initOptions=function(){var t=this,e=f.mix({},t.get("options"));e.scales||(e.scales={}),e.coord||(e.coord={}),!1===e.animate&&this.set("animate",!1),(!1===e.tooltip||f.isNull(e.tooltip))&&this.set("tooltipEnable",!1),e.geoms&&e.geoms.length&&f.each(e.geoms,function(e){t._createGeom(e)});var n=t.get("scaleController");n&&(n.defs=e.scales);var r=t.get("coordController");r&&r.reset(e.coord),this.set("options",e)},e.prototype._createGeom=function(t){var e=t.type,n=void 0;this[e]&&(n=this[e](),f.each(t,function(t,e){if(n[e])if(f.isObject(t)&&t.field)if("label"===t)n[e](t.field,t.callback,t.cfg);else{var r=void 0;f.each(t,function(t,e){"field"!==e&&(r=t)}),n[e](t.field,r)}else n[e](t)}))},e.prototype._initControllers=function(){var t=this.get("options"),e=new p.Scale({defs:t.scales}),n=new p.Coord(t.coord);this.set("scaleController",e),this.set("coordController",n);var r=new p.Axis;this.set("axisController",r);var o=new p.Guide({options:t.guides||[]});this.set("guideController",o)},e.prototype._initViewPlot=function(){this.get("viewContainer")||this.set("viewContainer",this.get("middlePlot"))},e.prototype._initGeoms=function(){for(var t=this.get("geoms"),e=this.get("filteredData"),n=this.get("coord"),r=this.get("_id"),o=0;o0;){e.shift().destroy()}},e.prototype._drawGeoms=function(){for(var t=this.get("geoms"),e=this.get("coord"),n=0;n0)||"time"===i.type||i.change({min:0})}}},e.prototype._setCatScalesRange=function(){var t=this,e=t.get("coord"),n=t.getXScale(),r=t.getYScales(),o=[];n&&o.push(n),o=o.concat(r);var i=e.isPolar&&a(e),s=t.get("scaleController"),u=s.defs;f.each(o,function(t){if((t.isCategory||t.isIdentity)&&t.values&&(!u[t.field]||!u[t.field].range)){var n=t.values.length,r=void 0;if(1===n)r=[.5,1];else{var o=1,a=0;i?e.isTransposed?(o=h.widthRatio.multiplePie,a=1/n*o,r=[a/2,1-a/2]):r=[0,1-1/n]:(a=1/n*1/2,r=[a,1-a])}t.range=r}})},e.prototype.getXScale=function(){var t=this.get("geoms"),e=null;return f.isEmpty(t)||(e=t[0].getXScale()),e},e.prototype.getYScales=function(){for(var t=this.get("geoms"),e=[],n=0;n=0?"positive":"negative";i[d][h]||(i[d][h]=0),l[r]=[i[d][h],p+i[d][h]],i[d][h]+=p}},e}(s);t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(30),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getAdjustOffset=function(t,e){var n=Math.random(),r=e-t;return t+.05*r+.9*r*n},e.prototype._adjustGroup=function(t,e,n,r){var o=this,i=o.getAdjustRange(e,n,r);a.each(t,function(t){t[e]=o.getAdjustOffset(i.pre,i.next)})},e.prototype.adjustDim=function(t,e,n){var r=this,o=r.groupData(n,t);a.each(o,function(n,o){o=parseFloat(o),r._adjustGroup(n,t,o,e)})},e}(s);t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(30),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.assign(e,{cacheMax:null,adjustNames:["y"]})},e.prototype._getMax=function(t){var e=this,n=e.mergeData,r=a.maxBy(n,function(e){var n=e[t];return a.isArray(n)?Math.max.apply(null,n):n}),o=r[t];return a.isArray(o)?Math.max.apply(null,o):o},e.prototype._getXValuesMax=function(){var t=this,e=t.yField,n=t.xField,r={},o=t.mergeData;return a.each(o,function(t){var o=t[n],i=t[e],s=a.isArray(i)?Math.max.apply(null,i):i;r[o]=r[o]||0,r[o]=t.length;s--)i[s].remove()}},addLabel:function(t,e){var n=this,r=n.get("labelsGroup"),o={},i=void 0;return r&&(o.text=t,o.x=e.x,o.y=e.y,o.point=e,o.textAlign=e.textAlign,e.rotate&&(o.rotate=e.rotate),i=r.addLabel(o)),i},removeLabels:function(){var t=this.get("labelsGroup");t&&t.remove(),this.set("labelsGroup",null)}}},function(t,e,n){function r(t,e,n,r){var o=[],i=void 0,s=void 0,u=!!r,c=void 0,l=void 0;if(u){c=[1/0,1/0],l=[-1/0,-1/0];for(var f=0,p=t.length;ff&&(f=t.y),t.yc&&(c=f-u);i;)for(h.forEach(function(t){var e=(Math.min.apply(p,t.targets)+Math.max.apply(p,t.targets))/2;t.pos=Math.min(Math.max(p,e-t.size/2),c-t.size)}),i=!1,l=h.length;l--;)if(l>0){var d=h[l-1],v=h[l];d.pos+d.size>v.pos&&(d.size+=v.size,d.targets=d.targets.concat(v.targets),d.pos+d.size>c&&(d.pos=c-d.size),h.splice(l,1),i=!0)}l=0,h.forEach(function(n){var r=u+e/2;n.targets.forEach(function(){t[l].y=n.pos+r,r+=e,l++})}),t.forEach(function(t){var e=t.r*t.r,n=Math.pow(Math.abs(t.y-r.y),2);if(e0&&(t=e._distribute(t,n)),t},e.prototype._distribute=function(t,e){var n=this,r=n.get("coord"),o=r.getRadius(),i=n.get("label").labelHeight,a=r.getCenter(),u=o+e,c=2*u+2*i,l={start:r.start,end:r.end},f=n.get("geom");if(f){var p=f.get("view");l=p.getViewRegion()}var h=[[],[]];return t.forEach(function(t){"right"===t.textAlign?h[0].push(t):h[1].push(t)}),h.forEach(function(t,e){var n=parseInt(c/i,10);t.length>n&&(t.sort(function(t,e){return e["..percent"]-t["..percent"]}),t.splice(n,t.length-n)),t.sort(function(t,e){return t.y-e.y}),s(t,i,l,a,e)}),h[0].concat(h[1])},e.prototype.lineToLabel=function(t,e){var n=this,r=n.get("coord"),o=r.getRadius(),i=n.getDefaultOffset(),s=t.orignAngle||t.angle,c=r.getCenter(),l=a(c,s,o+2.5),f=a(c,s,o+i/2),p=n.get("lineGroup");p||(p=n.addGroup({elCls:"x-line-group"}),n.set("lineGroup",p));var h=p.addShape("path",{attrs:u.mix({path:["M"+l.x,l.y+" Q"+f.x,f.y+" "+t.x,t.y].join(","),fill:null,stroke:t.color},e)});h.name="labelLine",h._id=t._id&&t._id.replace("glabel","glabelline"),h.set("coord",r)},e.prototype.getLabelRotate=function(t,e){var n=void 0;return e<0&&(n=180*t/Math.PI,n>90&&(n-=180),n<-90&&(n+=180)),n/180*Math.PI},e.prototype.getLabelAlign=function(t){var e=this,n=e.get("coord"),r=n.getCenter(),o=void 0;return o=t.angle<=Math.PI/2&&t.x>=r.x?"left":"right",e.getDefaultOffset()<=0&&(o="right"===o?"left":"right"),o},e.prototype.getArcPoint=function(t){return t},e.prototype.getPointAngle=function(t){var e=this,n=e.get("coord"),r={x:u.isArray(t.x)?t.x[0]:t.x,y:t.y[0]};e.transLabelPoint(r);var o={x:u.isArray(t.x)?t.x[1]:t.x,y:t.y[1]};e.transLabelPoint(o);var i=void 0,a=l.getPointAngle(n,r);if(t.points&&t.points[0].y===t.points[1].y)i=a;else{var s=l.getPointAngle(n,o);a>=s&&(s+=2*Math.PI),i=a+(s-a)/2}return i},e.prototype.getCirclePoint=function(t,e){var n=this,r=n.get("coord"),o=r.getCenter(),i=r.getRadius()+e,s=a(o,t,i);return s.angle=t,s.r=i,s},e}(c);t.exports=p},function(t,e,n){function r(t){var e=p.shape.hollowArea;return c.mix({},e,{stroke:t.color,lineWidth:t.size,strokeOpacity:t.opacity},t.style)}function o(t){var e=p.shape.area;return c.mix({},e,{fill:t.color,stroke:t.color,lineWidth:t.size,fillOpacity:t.opacity},t.style)}function i(t,e,n){var r=[],o=[],i=[],a=[],s=t.isInCircle;return c.each(t.points,function(t){i.push(t[1]),a.push(t[0])}),s||(a=a.reverse()),o.push(i,a),c.each(o,function(o,i){var a=[];o=n.parsePoints(o);var u=o[0];s&&o.push({x:u.x,y:u.y}),a=e?f.getSplinePath(o,!1,t.constraint):f.getLinePath(o,!1),!s&&i>0&&(a[0][0]="L"),r=r.concat(a)}),r.push(["Z"]),r}function a(t){return{symbol:function(t,e,n,r){r.save(),r.lineWidth=2,r.strokeStyle=r.fillStyle,r.moveTo(t-5.5,e-4),r.lineTo(t+5.5,e-4),r.stroke(),r.restore(),r.moveTo(t-5.5,e-4),r.lineTo(t+5.5,e-4),r.lineTo(t+5.5,e+4),r.lineTo(t-5.5,e+4),r.closePath()},radius:5,fill:t.color,fillOpacity:.3}}function s(t,e){if("line"===t||"smoothLine"===t){return{lineWidth:(e.lineWidth||0)+1}}var n=e.fillOpacity||e.opacity||1;return{fillOpacity:n-.15,strokeOpacity:n-.15}}function u(t,e,n){var r=t._coord,o=r.convertPoint(e.points[0][1]);return n.addShape("circle",{attrs:c.mix({x:o.x,y:o.y,r:2,fill:e.color},e.style)})}var c=n(0),l=n(13),f=n(18),p=n(1),h=l.registerFactory("area",{defaultShapeType:"area",getDefaultPoints:function(t){var e=[],n=t.x,r=t.y,o=t.y0;return r=c.isArray(r)?r:[o,r],c.each(r,function(t){e.push({x:n,y:t})}),e},getActiveCfg:function(t,e){return s(t,e)},drawShape:function(t,e,n){var r=this.getShape(t),o=void 0;return o=1===e.points.length&&p.showSinglePoint?u(this,e,n):r.draw(e,n),o&&(o.set("origin",e.origin),o._id=e.splitedIndex?e._id+e.splitedIndex:e._id,o.name=this.name),o},getSelectedCfg:function(t,e){return e&&e.style?e.style:this.getActiveCfg(t,e)}});l.registerShape("area","area",{draw:function(t,e){var n=o(t),r=i(t,!1,this);return e.addShape("path",{attrs:c.mix(n,{path:r})})},getMarkerCfg:function(t){return a(t)}}),l.registerShape("area","smooth",{draw:function(t,e){var n=o(t),r=this._coord;t.constraint=[[r.start.x,r.end.y],[r.end.x,r.start.y]];var a=i(t,!0,this);return e.addShape("path",{attrs:c.mix(n,{path:a})})},getMarkerCfg:function(t){return a(t)}}),l.registerShape("area","line",{draw:function(t,e){var n=r(t),o=i(t,!1,this);return e.addShape("path",{attrs:c.mix(n,{path:o})})},getMarkerCfg:function(t){return a(t)}}),l.registerShape("area","smoothLine",{draw:function(t,e){var n=r(t),o=i(t,!0,this);return e.addShape("path",{attrs:c.mix(n,{path:o})})},getMarkerCfg:function(t){return a(t)}}),h.spline=h.smooth,t.exports=h},function(t,e,n){function r(t){var e=h.shape.edge;return l.mix({},e,{stroke:t.color,lineWidth:t.size,strokeOpacity:t.opacity,opacity:t.opacity},t.style)}function o(t,e){var n=[];n.push({x:t.x,y:.5*t.y+1*e.y/2}),n.push({y:.5*t.y+1*e.y/2,x:e.x}),n.push(e);var r=["C"];return l.each(n,function(t){r.push(t.x,t.y)}),r}function i(t,e){var n=[];n.push({x:e.x,y:e.y}),n.push(t);var r=["Q"];return l.each(n,function(t){r.push(t.x,t.y)}),r}function a(t,e){var n=o(t,e),r=[["M",t.x,t.y]];return r.push(n),r}function s(t,e,n){var r=i(e,n),o=[["M",t.x,t.y]];return o.push(r),o}function u(t,e){var n=i(t[1],e),r=i(t[3],e),o=[["M",t[0].x,t[0].y]];return o.push(r),o.push(["L",t[3].x,t[3].y]),o.push(["L",t[2].x,t[2].y]),o.push(n),o.push(["L",t[1].x,t[1].y]),o.push(["L",t[0].x,t[0].y]),o.push(["Z"]),o}function c(t,e){var n=[];n.push({y:t.y*(1-v)+e.y*v,x:t.x}),n.push({y:t.y*(1-v)+e.y*v,x:e.x}),n.push(e);var r=[["M",t.x,t.y]];return l.each(n,function(t){r.push(["L",t.x,t.y])}),r}var l=n(0),f=n(13),p=n(77),h=n(1),d=n(18),v=1/3,m=f.registerFactory("edge",{defaultShapeType:"line",getDefaultPoints:function(t){return p.splitPoints(t)},getActiveCfg:function(t,e){return{lineWidth:(e.lineWidth||0)+1}}});f.registerShape("edge","line",{draw:function(t,e){var n=this.parsePoints(t.points),o=r(t),i=d.getLinePath(n);return e.addShape("path",{attrs:l.mix(o,{path:i})})},getMarkerCfg:function(t){return l.mix({symbol:"circle",radius:4.5},r(t))}}),f.registerShape("edge","vhv",{draw:function(t,e){var n=t.points,o=r(t),i=c(n[0],n[1]);return i=this.parsePath(i),e.addShape("path",{attrs:l.mix(o,{path:i})})},getMarkerCfg:function(t){return l.mix({symbol:"circle",radius:4.5},r(t))}}),f.registerShape("edge","smooth",{draw:function(t,e){var n=t.points,o=r(t),i=a(n[0],n[1]);return i=this.parsePath(i),e.addShape("path",{attrs:l.mix(o,{path:i})})},getMarkerCfg:function(t){return l.mix({symbol:"circle",radius:4.5},r(t))}}),f.registerShape("edge","arc",{draw:function(t,e){var n=t.points,i=n.length>2?"weight":"normal",a=r(t),c=void 0,f=void 0;if(t.isInCircle){var p={x:0,y:1};"normal"===i?f=s(n[0],n[1],p):(a.fill=a.stroke,f=u(n,p)),f=this.parsePath(f),c=e.addShape("path",{attrs:l.mix(a,{path:f})})}else if("normal"===i)n=this.parsePoints(n),c=e.addShape("arc",{attrs:l.mix(a,{x:(n[1].x+n[0].x)/2,y:n[0].y,r:Math.abs(n[1].x-n[0].x)/2,startAngle:Math.PI,endAngle:2*Math.PI})});else{f=[["M",n[0].x,n[0].y],["L",n[1].x,n[1].y]];var h=o(n[1],n[3]),d=o(n[2],n[0]);f.push(h),f.push(["L",n[3].x,n[3].y]),f.push(["L",n[2].x,n[2].y]),f.push(d),f.push(["Z"]),f=this.parsePath(f),a.fill=a.stroke,c=e.addShape("path",{attrs:l.mix(a,{path:f})})}return c},getMarkerCfg:function(t){return l.mix({symbol:"circle",radius:4.5},r(t))}}),t.exports=m},function(t,e,n){function r(t,e){var n=t.x,r=t.y,o=t.y0,i=t.size,a=o,s=r;m.isArray(r)&&(s=r[1],a=r[0]);var u=void 0,c=void 0;m.isArray(n)?(u=n[0],c=n[1]):(u=n-i/2,c=n+i/2);var l=[];return l.push({x:u,y:a},{x:u,y:s}),e?l.push({x:c,y:(s+a)/2}):l.push({x:c,y:s},{x:c,y:a}),l}function o(t){for(var e=[],n=0;n0;)r-=2*Math.PI;r=r/Math.PI/2*n;var c=i-t+r-2*t;u.push(["M",c,e]);for(var l=0,f=0;f1?t[1]:e;return{min:e,max:n,min1:r,max1:t.length>3?t[3]:n,median:t.length>2?t[2]:r}}function o(t,e){p.each(t,function(t){e.push({x:t[0],y:t[1]})})}function i(t){var e=d.shape.schema;return p.mix({},e,{stroke:t.color,strokeOpacity:t.opacity},t.style)}function a(t){var e=d.shape.schema;return p.mix({},e,{fill:t.color,stroke:t.color,fillOpacity:t.opacity},t.style)}function s(t,e,n){var i=[],a=void 0,s=void 0;return p.isArray(e)?(s=r(e),a=[[t-n/2,s.max],[t+n/2,s.max],[t,s.max],[t,s.max1],[t-n/2,s.min1],[t-n/2,s.max1],[t+n/2,s.max1],[t+n/2,s.min1],[t,s.min1],[t,s.min],[t-n/2,s.min],[t+n/2,s.min],[t-n/2,s.median],[t+n/2,s.median]]):(e=e||.5,s=r(t),a=[[s.min,e-n/2],[s.min,e+n/2],[s.min,e],[s.min1,e],[s.min1,e-n/2],[s.min1,e+n/2],[s.max1,e+n/2],[s.max1,e-n/2],[s.max1,e],[s.max,e],[s.max,e-n/2],[s.max,e+n/2],[s.median,e-n/2],[s.median,e+n/2]]),o(a,i),i}function u(t){p.isArray(t)||(t=[t]);var e=t.sort(function(t,e){return t(1+r.rangeMax())/2&&(i=r.rangeMin()),e=r.invert(i),r.isCategory&&(e=r.translate(e)),e},_getOriginByPoint:function(t){var e=this.getXScale(),n=this.getYScale(),r=e.field,o=n.field,i=this.get("coord"),a=i.invert(t),s=e.invert(a.x),u=n.invert(a.y),c={};return c[r]=s,c[o]=u,c},_getScale:function(t){var e=this,n=e.get("scales"),r=null;return o.each(n,function(e){if(e.field===t)return r=e,!1}),r},_getTipValueScale:function(){var t=this.getAttrsForLegend(),e=void 0;o.each(t,function(t){var n=t.getScale(t.type);if(n.isLinear)return e=n,!1});var n=this.getXScale(),r=this.getYScale();return!e&&r&&"..y"===r.field?n:e||r||n},_getTipTitleScale:function(t){var e=this;if(t)return e._getScale(t);var n=e.getAttr("position"),r=n.getFields(),i=void 0;return o.each(r,function(t){if(-1===t.indexOf(".."))return i=t,!1}),e._getScale(i)},_filterValue:function(t,e){var n=this.get("coord"),r=this.getYScale(),i=r.field,a=n.invert(e),s=a.y;s=r.invert(s);var u=t[t.length-1];return o.each(t,function(t){var e=t._origin;if(e[i][0]<=s&&e[i][1]>=s)return u=t,!1}),u},getXDistance:function(){var t=this,e=t.get("xDistance");if(!e){var n=t.getXScale();if(n.isCategory)e=1;else{var r=n.values,i=n.translate(r[0]),a=i;o.each(r,function(t){t=n.translate(t),ta&&(a=t)});var s=r.length;e=(a-i)/(s-1)}t.set("xDistance",e)}return e},findPoint:function(t,e){var n=this,r=n.get("type"),i=n.getXScale(),a=n.getYScale(),s=i.field,u=a.field,c=null;if(o.indexOf(["heatmap"],r)>-1){var l=n.get("coord"),f=l.invert(t),p=i.invert(f.x),h=a.invert(f.y),d=1/0;return o.each(e,function(t){var e=Math.pow(t._origin[s]-p,2)+Math.pow(t._origin[u]-h,2);e=g){if(!_)return c=t,!1;o.isArray(c)||(c=[]),c.push(t)}}),o.isArray(c)&&(c=this._filterValue(c,t));else{var w=void 0;if(i.isLinear||"timeCat"===i.type){if((g>i.translate(x)||gi.max||gMath.abs(i.translate(w._origin[s])-g)&&(m=w)}var j=n.getXDistance();return!c&&Math.abs(i.translate(m._origin[s])-g)<=j/2&&(c=m),c},getTipTitle:function(t,e){var n="",r=this._getTipTitleScale(e);if(r){var o=t[r.field];n=r.getText(o)}else if("heatmap"===this.get("type")){var i=this.getXScale(),a=this.getYScale(),s=i.getText(t[i.field]),u=a.getText(t[a.field]);n="( "+s+", "+u+" )"}return n},getTipValue:function(t,e){var n=void 0;if(n=t[e.field],o.isArray(n)){var r=[];o.each(n,function(t){r.push(e.getText(t))}),n=r.join("-")}else n=e.getText(n);return n},getTipName:function(t){var e=void 0,n=void 0,i=this._getGroupScales();if(i.length&&o.each(i,function(t){return n=t,!1}),n){var a=n.field;e=n.getText(t[a])}else{e=r(this._getTipValueScale())}return e},getTipItems:function(t,e){function n(e,n,r){if(!o.isNil(n)&&""!==n){var s={title:u,point:t,name:e||u,value:n,color:t.color||a,marker:!0};s.size=i._getIntervalSize(t),l.push(o.mix({},s,r))}}var i=this,s=t._origin,u=i.getTipTitle(s,e),c=i.get("tooltipCfg"),l=[],f=void 0,p=void 0;if(c){var h=c.fields,d=c.cfg,v=[];if(o.each(h,function(t){v.push(s[t])}),d){o.isFunction(d)&&(d=d.apply(null,v));var m=o.mix({},{point:t,title:u,color:t.color||a,marker:!0},d);m.size=i._getIntervalSize(t),l.push(m)}else o.each(h,function(t){if(!o.isNil(s[t])){var e=i._getScale(t);f=r(e),p=e.getText(s[t]),n(f,p)}})}else{var g=i._getTipValueScale();o.isNil(s[g.field])||(p=i.getTipValue(s,g),f=i.getTipName(s),n(f,p))}return l},isShareTooltip:function(){var t=this.get("shareTooltip"),e=this.get("type"),n=this.get("view"),r=void 0;if(r=n.get("parent")?n.get("parent").get("options"):n.get("options"),"interval"===e){var i=this.get("coord"),a=i.type;("theta"===a||"polar"===a&&i.isTransposed)&&(t=!1)}else this.getYScale()&&!o.inArray(["contour","point","polygon","edge"],e)||(t=!1);return r.tooltip&&o.isBoolean(r.tooltip.shared)&&(t=r.tooltip.shared),t}};t.exports=s},function(t,e,n){function r(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return a.isEqual(n,r)}function o(t,e){if(!t)return!0;if(t.length!==e.length)return!0;var n=!1;return a.each(e,function(e,o){if(!r(e,t[o]))return n=!0,!1}),n}function i(t,e){var n={};return a.each(t,function(t,r){var o=e.__attrs[r];a.isArray(o)&&(o=a.cloneDeep(o)),n[r]=o}),n}var a=n(0),s={_isAllowActive:function(){var t=this.get("allowActive");if(!a.isNil(t))return t;var e=this.get("view"),n=this.isShareTooltip();return!1===e.get("options").tooltip||!n},_onMouseenter:function(t){var e=this,n=t.shape,r=e.get("shapeContainer");n&&r.contain(n)&&e._isAllowActive()&&e.setShapesActived(n)},_onMouseleave:function(){var t=this,e=t.get("view"),n=e.get("canvas");t.get("activeShapes")&&(t.clearActivedShapes(),n.draw())},_bindActiveAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.on(n+":mouseenter",a.wrapBehavior(t,"_onMouseenter")),e.on(n+":mouseleave",a.wrapBehavior(t,"_onMouseleave"))},_offActiveAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.off(n+":mouseenter",a.getWrapBehavior(t,"_onMouseenter")),e.off(n+":mouseleave",a.getWrapBehavior(t,"_onMouseleave"))},_setActiveShape:function(t){var e=this,n=e.get("activedOptions")||{},r=t.get("origin"),o=r.shape||e.getDefaultValue("shape");a.isArray(o)&&(o=o[0]);var s=e.get("shapeFactory"),u=a.mix({},t.__attrs,{origin:r}),c=s.getActiveCfg(o,u);n.style&&a.mix(c,n.style);var l=i(c,t);t.setSilent("_originAttrs",l),n.animate?t.animate(c,300):t.attr(c),t.setZIndex(1)},setShapesActived:function(t){var e=this;a.isArray(t)||(t=[t]);var n=e.get("activeShapes");if(o(n,t)){var r=e.get("view"),i=r.get("canvas"),s=e.get("shapeContainer"),u=e.get("activedOptions");u&&u.highlight?(a.each(t,function(t){t.get("animating")&&t.stopAnimate()}),e.highlightShapes(t)):(n&&e.clearActivedShapes(),a.each(t,function(t){t.get("animating")&&t.stopAnimate(),t.get("visible")&&!t.get("selected")&&e._setActiveShape(t)})),e.set("activeShapes",t),s.sort(),i.draw()}},clearActivedShapes:function(){var t=this,e=t.get("shapeContainer"),n=t.get("activedOptions"),r=n&&n.animate;if(e&&!e.get("destroyed")){var o=t.get("activeShapes");a.each(o,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");r?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null)}});if(t.get("preHighlightShapes")){var i=e.get("children");a.each(i,function(t){if(!t.get("selected")){var e=t.get("_originAttrs");e&&(r?(t.stopAnimate(),t.animate(e,300)):t.attr(e),t.setZIndex(0),t.set("_originAttrs",null))}})}e.get("children").sort(function(t,e){return t._INDEX-e._INDEX}),t.set("activeShapes",null),t.set("preHighlightShapes",null)}},getGroupShapesByPoint:function(t){var e=this,n=e.get("shapeContainer"),r=[];if(n){var o=e.getXScale().field,i=e.getShapes(),s=e._getOriginByPoint(t);a.each(i,function(t){var e=t.get("origin");if(t.get("visible")&&e){e._origin[o]===s[o]&&r.push(t)}})}return r},getSingleShapeByPoint:function(t){var e=this,n=e.get("shapeContainer"),r=n.get("canvas"),o=r.get("pixelRatio"),i=void 0;if(n&&(i=n.getShape(t.x*o,t.y*o)),i&&i.get("origin"))return i},highlightShapes:function(t,e){var n=this;a.isArray(t)||(t=[t]);var r=n.get("activeShapes");if(o(r,t)){r&&n.clearActivedShapes();var s=n.getShapes(),u=n.get("activedOptions"),c=u&&u.animate,l=u&&u.style;a.each(s,function(n){var r={};n.stopAnimate(),-1!==a.indexOf(t,n)?(a.mix(r,l,e),n.setZIndex(1)):(a.mix(r,{fillOpacity:.3}),n.setZIndex(0));var o=i(r,n);n.setSilent("_originAttrs",o),c?n.animate(r,300):n.attr(r)}),n.set("preHighlightShapes",t),n.set("activeShapes",t)}}};t.exports=s},function(t,e,n){function r(t,e){if(i.isNil(t)||i.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return i.isEqual(n,r)}function o(t,e){var n={};return i.each(t,function(t,r){"transform"===r&&(r="matrix");var o=e.__attrs[r];i.isArray(o)&&(o=i.cloneDeep(o)),n[r]=o}),n}var i=n(0),a={_isAllowSelect:function(){var t=this.get("allowSelect");if(!i.isNil(t))return t;var e=this.get("type"),n=this.get("coord"),r=n&&n.type;return"interval"===e&&"theta"===r},_onClick:function(t){var e=this;if(e._isAllowSelect()){e.clearActivedShapes();var n=t.shape,r=e.get("shapeContainer");n&&!n.get("animating")&&r.contain(n)&&e.setShapeSelected(n)}},_bindSelectedAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.on(n+":click",i.wrapBehavior(t,"_onClick"))},_offSelectedAction:function(){var t=this,e=t.get("view"),n=t.get("type");e.off(n+":click",i.getWrapBehavior(t,"_onClick"))},_setShapeStatus:function(t,e){var n=this,r=n.get("view"),a=n.get("selectedOptions")||{},s=!1!==a.animate,u=r.get("canvas");t.set("selected",e);var c=t.get("origin");if(e){var l=c.shape||n.getDefaultValue("shape");i.isArray(l)&&(l=l[0]);var f=n.get("shapeFactory"),p=i.mix({geom:n,point:c},a),h=f.getSelectedCfg(l,p);i.mix(h,p.style),t.get("_originAttrs")||(t.get("animating")&&t.stopAnimate(),t.set("_originAttrs",o(h,t))),s?t.animate(h,300):(t.attr(h),u.draw())}else{var d=t.get("_originAttrs");t.set("_originAttrs",null),s?t.animate(d,300):(t.attr(d),u.draw())}},setShapeSelected:function(t){var e=this,n=e._getSelectedShapes(),o=e.get("selectedOptions")||{},a=!1!==o.cancelable;if("multiple"===o.mode)-1===i.indexOf(n,t)?(n.push(t),e._setShapeStatus(t,!0)):a&&(i.Array.remove(n,t),e._setShapeStatus(t,!1));else{var s=n[0];a&&(t=r(s,t)?null:t),r(s,t)||(s&&e._setShapeStatus(s,!1),t&&e._setShapeStatus(t,!0))}},clearSelected:function(){var t=this,e=t.get("shapeContainer");if(e&&!e.get("destroyed")){var n=t._getSelectedShapes();i.each(n,function(e){t._setShapeStatus(e,!1),e.set("_originAttrs",null)})}},setSelected:function(t){var e=this,n=e.getShapes();return i.each(n,function(n){var r=n.get("origin");r&&r._origin===t&&e.setShapeSelected(n)}),this},_getSelectedShapes:function(){var t=this,e=t.getShapes(),n=[];return i.each(e,function(t){t.get("selected")&&n.push(t)}),t.set("selectedShapes",n),n}};t.exports=a},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),s=n(0),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="point",e.shapeType="point",e.generatePoints=!0,e},e.prototype.drawPoint=function(t,e,n,r){var o=this,i=t.shape,a=o.getDrawCfg(t),u=void 0;if(s.isArray(t.y)){var c=o.hasStack();s.each(t.y,function(t,s){a.y=t,a.yIndex=s,c&&0===s||(u=n.drawShape(i,a,e),o.appendShapeInfo(u,r+s))})}else s.isNil(t.y)||(u=n.drawShape(i,a,e),o.appendShapeInfo(u,r))},e}(a),c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"jitter"}],e},e}(u),l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(u);u.Jitter=c,u.Stack=l,t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(137),s=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="line",e.sortable=!0,e},e}(a),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(s);s.Stack=u,t.exports=s},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),s=n(0),u=n(139),c=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return s.assign(i,u),i}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="interval",e.shapeType="interval",e.generatePoints=!0,e},e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},e.prototype.clearInner=function(){t.prototype.clearInner.call(this),this.set("defaultSize",null)},e}(a),l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(c),f=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(c),p=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"symmetric"}],e},e}(c);c.Stack=l,c.Dodge=f,c.Symmetric=p,t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),s=n(138),u=n(0),c=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return u.assign(i,s),i}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="area",e.shapeType="area",e.generatePoints=!0,e.sortable=!0,e},e.prototype.draw=function(t,e,n,r){var o=this,i=this.getDrawCfg(t[0]),a=this.splitData(t);i.origin=t,u.each(a,function(t,a){i.splitedIndex=a;var s=t.map(function(t){return t.points});i.points=s;var u=n.drawShape(i.shape,i,e);o.appendShapeInfo(u,r+a)})},e}(a),l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"stack"}],e},e}(c);c.Stack=l,t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),s=n(0),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="polygon",e.shapeType="polygon",e.generatePoints=!0,e},e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e),r=this,o=n.x,i=n.y,a=void 0;if(!s.isArray(o)||!s.isArray(i)){var u=r.getXScale(),c=r.getYScale(),l=u.values?u.values.length:u.ticks.length,f=c.values?c.values.length:c.ticks.length,p=.5/l,h=.5/f;u.isCategory&&c.isCategory?(o=[o-p,o-p,o+p,o+p],i=[i-h,i+h,i+h,i-h]):s.isArray(o)?(a=o,o=[a[0],a[0],a[1],a[1]],i=[i-h/2,i+h/2,i+h/2,i-h/2]):s.isArray(i)&&(a=i,i=[a[0],a[1],a[1],a[0]],o=[o-p/2,o-p/2,o+p/2,o+p/2]),n.x=o,n.y=i}return n},e}(a);t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),s=n(0),u=n(139),c=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return s.assign(i,u),i}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="schema",e.shapeType="schema",e.generatePoints=!0,e},e.prototype.createShapePointsCfg=function(e){var n=t.prototype.createShapePointsCfg.call(this,e);return n.size=this.getNormalizedSize(e),n},e}(a),l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.hasDefaultAdjust=!0,e.adjusts=[{type:"dodge"}],e},e}(c);c.Dodge=l,t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),s=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="edge",e.shapeType="edge",e.generatePoints=!0,e},e}(a);t.exports=s},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(11),s=n(74),u=n(0),c={},l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="heatmap",e},e.prototype._prepareRange=function(){var t=this,e=t.get("mappedData"),n=t.getAttr("color"),r=n.field,o=1/0,i=-1/0;e.forEach(function(t){var e=t._origin[r];e>i&&(i=e),e=t[0]}));for(var f=e._getScale(s),p=0;p1){var h=l(u);for(n=0;n-1){var x=t[m.parentIndex[b]],_=Math.atan2(m.x-x.x,m.y-x.y),w=Math.atan2(v.x-x.x,v.y-x.y),O=w-_;O<0&&(O+=2*Math.PI);var S=w-O/2,C=s(g,{x:x.x+x.radius*Math.sin(S),y:x.y+x.radius*Math.cos(S)});C>2*x.radius&&(C=2*x.radius),(null===y||y.width>C)&&(y={circle:x,width:C,p1:m,p2:v})}null!==y&&(p.push(y),c+=a(y.circle.radius,y.width),v=m)}}else{var k=t[0];for(n=1;nMath.abs(k.radius-t[n].radius)){j=!0;break}j?c=f=0:(c=k.radius*k.radius*Math.PI,p.push({circle:k,p1:{x:k.x,y:k.y+k.radius},p2:{x:k.x-U,y:k.y+k.radius},width:2*k.radius}))}return f/=2,e&&(e.area=c+f,e.arcArea=c,e.polygonArea=f,e.arcs=p,e.innerPoints=u,e.intersectionPoints=r),c+f}function o(t,e){for(var n=0;ne[n].radius+U)return!1;return!0}function i(t){for(var e=[],n=0;n=t+e)return 0;if(n<=Math.abs(t-e))return Math.PI*Math.min(t,e)*Math.min(t,e);var r=t-(n*n-e*e+t*t)/(2*n),o=e-(n*n-t*t+e*e)/(2*n);return a(t,r)+a(e,o)}function c(t,e){var n=s(t,e),r=t.radius,o=e.radius;if(n>=r+o||n<=Math.abs(r-o))return[];var i=(r*r-o*o+n*n)/(2*n),a=Math.sqrt(r*r-i*i),u=t.x+i*(e.x-t.x)/n,c=t.y+i*(e.y-t.y)/n,l=-(e.y-t.y)*(a/n),f=-(e.x-t.x)*(a/n);return[{x:u+l,y:c-f},{x:u-l,y:c+f}]}function l(t){for(var e={x:0,y:0},n=0;n0)throw"Initial bisect points must have opposite signs";if(0===a)return e;if(0===s)return n;for(var c=0;c=0&&(e=l),Math.abs(u)=v[d-1].fx){var E=!1;if(_.fx>j.fx?(g(w,1+p,x,-p,j),w.fx=t(w),w.fx=1)break;for(m=1;mu+i*o*c||l>=h)f=o;else{if(Math.abs(p)<=-a*c)return o;p*(f-s)>=0&&(f=s),s=o,h=l}return 0}var u=n.fx,c=d(n.fxprime,e),l=u,f=u,p=c,h=0;o=o||1,i=i||1e-6,a=a||.1;for(var v=0;v<10;++v){if(g(r.x,1,n.x,o,e),l=r.fx=t(r.x,r.fxprime),p=d(r.fxprime,e),l>u+i*o*c||v&&l>=f)return s(h,o,f);if(Math.abs(p)<=-a*c)return o;if(p>=0)return s(o,h,l);f=l,h=o,o*=2}return o}function x(t,e,n){var r,o,i,a={x:e.slice(),fx:0,fxprime:e.slice()},s={x:e.slice(),fx:0,fxprime:e.slice()},u=e.slice(),c=1;n=n||{},i=n.maxIterations||20*e.length,a.fx=t(a.x,a.fxprime),r=a.fxprime.slice(),m(r,a.fxprime,-1);for(var l=0;le}),e=0;e=Math.min(e[i].size,e[a].size)?l=1:t.size<=1e-10&&(l=-1),o[i][a]=o[a][i]=l}),{distances:r,constraints:o}}function C(t,e,n,r){var o,i=0;for(o=0;o0&&d<=f||p<0&&d>=f||(i+=2*v*v,e[2*o]+=4*v*(a-c),e[2*o+1]+=4*v*(s-l),e[2*u]+=4*v*(c-a),e[2*u+1]+=4*v*(l-s))}return i}function k(t,e){var n=E(t,e),r=e.lossFunction||M;if(t.length>=8){var o=j(t,e);r(o,t)+1e-8=Math.min(s[d].size,s[v].size)&&(h=0),u[d].push({set:v,size:p.size,weight:h}),u[v].push({set:d,size:p.size,weight:h})}var m=[];for(i in u)if(u.hasOwnProperty(i)){var g=0;for(l=0;l0){var o=t[0].x,i=t[0].y;for(r=0;r1){var a,u,c=Math.atan2(t[1].x,t[1].y)-e,l=Math.cos(c),f=Math.sin(c);for(r=0;r2){for(var p=Math.atan2(t[2].x,t[2].y)-e;p<0;)p+=2*Math.PI;for(;p>2*Math.PI;)p-=2*Math.PI;if(p>Math.PI){var h=t[1].y/(1e-10+t[1].x);for(r=0;r0){var x=m(h,{lossFunction:g});s&&(x=A(x,a,f)),y=D(x,n,r,o),b=V(y,h)}var _={};h.forEach(function(t){t.label&&(_[t.sets]=t.label)}),t.selectAll("svg").data([y]).enter().append("svg");var w=t.select("svg").attr("width",n).attr("height",r),O={},S=!1;w.selectAll(".venn-area path").each(function(t){var n=e.select(this).attr("d");1==t.sets.length&&n&&(S=!0,O[t.sets[0]]=W(n))});var C=function(t){return function(e){return H(t.sets.map(function(t){var o=O[t],i=y[t];return o||(o={x:n/2,y:r/2,radius:1}),i||(i={x:n/2,y:r/2,radius:1}),{x:o.x*(1-e)+i.x*e,y:o.y*(1-e)+i.y*e,radius:o.radius*(1-e)+i.radius*e}}))}},k=w.selectAll(".venn-area").data(h,function(t){return t.sets}),j=k.enter().append("g").attr("class",function(t){return"venn-area venn-"+(1==t.sets.length?"circle":"intersection")}).attr("data-venn-sets",function(t){return t.sets.join("_")}),E=j.append("path"),M=j.append("text").attr("class","label").text(function(t){return p(t)}).attr("text-anchor","middle").attr("dy",".35em").attr("x",n/2).attr("y",r/2);c&&(E.style("fill-opacity","0").filter(function(t){return 1==t.sets.length}).style("fill",function(t){return v(t.sets)}).style("fill-opacity",".25"),M.style("fill",function(t){return 1==t.sets.length?v(t.sets):"#444"}));var T=t;S?(T=t.transition("venn").duration(i),T.selectAll("path").attrTween("d",C)):T.selectAll("path").attr("d",function(t){return H(t.sets.map(function(t){return y[t]}))});var P=T.selectAll("text").filter(function(t){return t.sets in b}).text(function(t){return p(t)}).attr("x",function(t){return Math.floor(b[t.sets].x)}).attr("y",function(t){return Math.floor(b[t.sets].y)});u&&(S?"on"in P?P.on("end",R(y,p)):P.each("end",R(y,p)):P.each(R(y,p)));var N=k.exit().transition("venn").duration(i).remove();N.selectAll("path").attrTween("d",C);var I=N.selectAll("text").attr("x",n/2).attr("y",r/2);return null!==l&&(M.style("font-size","0px"),P.style("font-size",l),I.style("font-size","0px")),{circles:y,textCentres:b,nodes:k,enter:j,update:T,exit:N}}var n=600,r=350,o=15,i=1e3,a=Math.PI/2,s=!0,u=!0,c=!0,l=null,f=null,p={},h=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf"],d=0,v=function(t){if(t in p)return p[t];var e=p[t]=h[d];return d+=1,d>=h.length&&(d=0),e},m=_,g=M;return t.wrap=function(e){return arguments.length?(u=e,t):u},t.width=function(e){return arguments.length?(n=e,t):n},t.height=function(e){return arguments.length?(r=e,t):r},t.padding=function(e){return arguments.length?(o=e,t):o},t.colours=function(e){return arguments.length?(v=e,t):v},t.fontSize=function(e){return arguments.length?(l=e,t):l},t.duration=function(e){return arguments.length?(i=e,t):i},t.layoutFunction=function(e){return arguments.length?(m=e,t):m},t.normalize=function(e){return arguments.length?(s=e,t):s},t.styled=function(e){return arguments.length?(c=e,t):c},t.orientation=function(e){return arguments.length?(a=e,t):a},t.orientationOrder=function(e){return arguments.length?(f=e,t):f},t.lossFunction=function(e){return arguments.length?(g=e,t):g},t}function R(t,n){return function(){for(var r,o=e.select(this),i=o.datum(),a=t[i.sets[0]].radius||50,s=n(i)||"",u=s.split(/\s+/).reverse(),c=(s.length+u.length)/3,l=u.pop(),f=[l],p=0,h=o.text(null).append("tspan").text(l);;){if(!(l=u.pop()))break;f.push(l),r=f.join(" "),h.text(r),r.length>c&&h.node().getComputedTextLength()>a&&(f.pop(),h.text(f.join(" ")),f=[l],h=o.append("tspan").text(l),p++)}var d=.35-1.1*p/2,v=o.attr("x"),m=o.attr("y");o.selectAll("tspan").attr("x",v).attr("y",m).attr("dy",function(t,e){return d+1.1*e+"em"})}}function L(t,e,n){var r,o,i=e[0].radius-s(e[0],t);for(r=1;r=u&&(a=o[n],u=c)}var f=y(function(n){return-1*L({x:n[0],y:n[1]},t,e)},[a.x,a.y],{maxIterations:500,minErrorDelta:1e-10}).x,p={x:f[0],y:f[1]},h=!0;for(n=0;nt[n].radius){h=!1;break}for(n=0;n0&&console.log("WARNING: area "+i+" not represented on screen")}return n}function Y(t,e){function n(t){for(var e=0;eu;i.push("\nA",u,u,0,c?1:0,1,s.p1.x,s.p1.y)}return i.join(" ")}var U=1e-10,G=1e-10;t.intersectionArea=r,t.circleCircleIntersection=c,t.circleOverlap=u,t.circleArea=a,t.distance=s,t.venn=_,t.greedyLayout=E,t.scaleSolution=D,t.normalizeSolution=A,t.bestInitialLayout=k,t.lossFunction=M,t.disjointCluster=P,t.distanceFromIntersectArea=w,t.VennDiagram=I,t.wrapText=R,t.computeTextCentres=V,t.computeTextCentre=F,t.sortAreas=Y,t.circlePath=B,t.circleFromPath=W,t.intersectionAreaPath=H,Object.defineProperty(t,"__esModule",{value:!0})})},function(t,e,n){"use strict";var r=n(48),o=n(140);e.a=function(t){return Object(o.a)(Object(r.a)(t).call(document.documentElement))}},function(t,e,n){"use strict";var r=n(7),o=n(80);e.a=function(t){"function"!=typeof t&&(t=Object(o.a)(t));for(var e=this._groups,n=e.length,i=new Array(n),a=0;a=S&&(S=O+1);!(w=x[S])&&++S=0;)(r=o[i])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this}},function(t,e,n){"use strict";function r(t,e){return te?1:t>=e?0:NaN}var o=n(7);e.a=function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=r);for(var n=this._groups,i=n.length,a=new Array(i),s=0;s1?this.each((null==e?r:"function"==typeof e?i:o)(t,e)):this.node()[t]}},function(t,e,n){"use strict";function r(t){return t.trim().split(/^|\s+/)}function o(t){return t.classList||new i(t)}function i(t){this._node=t,this._names=r(t.getAttribute("class")||"")}function a(t,e){for(var n=o(t),r=-1,i=e.length;++r=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}},e.a=function(t,e){var n=r(t+"");if(arguments.length<2){for(var i=o(this.node()),a=-1,s=n.length;++a=0&&(n=t.slice(r+1),t=t.slice(0,r)),t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}function a(t,e){for(var n,r=0,o=t.length;r0)for(var n,r,o=new Array(n),i=0;iw?Math.pow(t,1/3):t/_+b}function s(t){return t>x?t*t*t:_*(t-b)}function u(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function c(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function l(t){if(t instanceof p)return new p(t.h,t.c,t.l,t.opacity);t instanceof i||(t=r(t));var e=Math.atan2(t.b,t.a)*v.b;return new p(e<0?e+360:e,Math.sqrt(t.a*t.a+t.b*t.b),t.l,t.opacity)}function f(t,e,n,r){return 1===arguments.length?l(t):new p(t,e,n,null==r?1:r)}function p(t,e,n,r){this.h=+t,this.c=+e,this.l=+n,this.opacity=+r}e.a=o,e.b=f;var h=n(88),d=n(87),v=n(149),m=.95047,g=1,y=1.08883,b=4/29,x=6/29,_=3*x*x,w=x*x*x;Object(h.a)(i,o,Object(h.b)(d.a,{brighter:function(t){return new i(this.l+18*(null==t?1:t),this.a,this.b,this.opacity)},darker:function(t){return new i(this.l-18*(null==t?1:t),this.a,this.b,this.opacity)},rgb:function(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,n=isNaN(this.b)?t:t-this.b/200;return t=g*s(t),e=m*s(e),n=y*s(n),new d.b(u(3.2404542*e-1.5371385*t-.4985314*n),u(-.969266*e+1.8760108*t+.041556*n),u(.0556434*e-.2040259*t+1.0572252*n),this.opacity)}})),Object(h.a)(p,f,Object(h.b)(d.a,{brighter:function(t){return new p(this.h,this.c,this.l+18*(null==t?1:t),this.opacity)},darker:function(t){return new p(this.h,this.c,this.l-18*(null==t?1:t),this.opacity)},rgb:function(){return r(this).rgb()}}))},function(t,e,n){"use strict";function r(t){if(t instanceof i)return new i(t.h,t.s,t.l,t.opacity);t instanceof s.b||(t=Object(s.h)(t));var e=t.r/255,n=t.g/255,r=t.b/255,o=(m*r+d*e-v*n)/(m+d-v),a=r-o,c=(h*(n-o)-f*a)/p,l=Math.sqrt(c*c+a*a)/(h*o*(1-o)),g=l?Math.atan2(c,a)*u.b-120:NaN;return new i(g<0?g+360:g,l,o,t.opacity)}function o(t,e,n,o){return 1===arguments.length?r(t):new i(t,e,n,null==o?1:o)}function i(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}e.a=o;var a=n(88),s=n(87),u=n(149),c=-.14861,l=1.78277,f=-.29227,p=-.90649,h=1.97294,d=h*p,v=h*l,m=l*f-p*c;Object(a.a)(i,o,Object(a.b)(s.a,{brighter:function(t){return t=null==t?s.c:Math.pow(s.c,t),new i(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?s.d:Math.pow(s.d,t),new i(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=isNaN(this.h)?0:(this.h+120)*u.a,e=+this.l,n=isNaN(this.s)?0:this.s*e*(1-e),r=Math.cos(t),o=Math.sin(t);return new s.b(255*(e+n*(c*r+l*o)),255*(e+n*(f*r+p*o)),255*(e+n*(h*r)),this.opacity)}}))},function(t,e,n){"use strict"},function(t,e,n){"use strict";function r(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}function a(t,r,i,a,s,u){if(t!==i||r!==a){var c=s.push("translate(",null,e,null,n);u.push({i:c-4,x:Object(o.a)(t,i)},{i:c-2,x:Object(o.a)(r,a)})}else(i||a)&&s.push("translate("+i+e+a+n)}function s(t,e,n,a){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),a.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Object(o.a)(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}function u(t,e,n,a){t!==e?a.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Object(o.a)(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}function c(t,e,n,r,a,s){if(t!==n||e!==r){var u=a.push(i(a)+"scale(",null,",",null,")");s.push({i:u-4,x:Object(o.a)(t,n)},{i:u-2,x:Object(o.a)(e,r)})}else 1===n&&1===r||a.push(i(a)+"scale("+n+","+r+")")}return function(e,n){var r=[],o=[];return e=t(e),n=t(n),a(e.translateX,e.translateY,n.translateX,n.translateY,r,o),s(e.rotate,n.rotate,r,o),u(e.skewX,n.skewX,r,o),c(e.scaleX,e.scaleY,n.scaleX,n.scaleY,r,o),e=n=null,function(t){for(var e,n=-1,i=o.length;++n=0&&(t=t.slice(0,e)),!t||"start"===t})}function o(t,e,n){var o,a,s=r(e)?i.g:i.h;return function(){var r=s(this,t),i=r.on;i!==o&&(a=(o=i).copy()).on(e,n),r.on=a}}var i=n(8);e.a=function(t,e){var n=this._id;return arguments.length<2?Object(i.f)(this.node(),n).on.on(t):this.each(o(n,t,e))}},function(t,e,n){"use strict";function r(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}e.a=function(){return this.on("end.remove",r(this._id))}},function(t,e,n){"use strict";var r=n(6),o=n(14),i=n(8);e.a=function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=Object(r.selector)(t));for(var a=this._groups,s=a.length,u=new Array(s),c=0;co.c&&n.name===e)return new r.a([[t]],i,e,+a)}return null}},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(0),i=n(1),a=n(159),s=/^(?:(?!0000)[0-9]{4}([-\/.]+)(?:(?:0?[1-9]|1[0-2])\1(?:0?[1-9]|1[0-9]|2[0-8])|(?:0?[13-9]|1[0-2])\1(?:29|30)|(?:0?[13578]|1[02])\1(?:31))|(?:[0-9]{2}(?:0[48]|[2468][048]|[13579][26])|(?:0[48]|[2468][048]|[13579][26])00)([-\/.]?)0?2\2(?:29))(\s+([01]|([01][0-9]|2[0-3])):([0-9]|[0-5][0-9]):([0-9]|[0-5][0-9]))?$/,u={LINEAR:"linear",CAT:"cat",TIME:"time"},c=function(){function t(e){r(this,t),this.defs={},o.assign(this,e)}return t.prototype._getDef=function(t){var e=this.defs,n=null;return(i.scales[t]||e[t])&&(n=o.mix({},i.scales[t]),o.each(e[t],function(t,e){o.isNil(t)?delete n[e]:n[e]=t})),n},t.prototype._getDefaultType=function(t,e){var n=u.LINEAR,r=o.Array.firstValue(e,t);return o.isArray(r)&&(r=r[0]),s.test(r)?n=u.TIME:o.isString(r)&&(n=u.CAT),n},t.prototype._getScaleCfg=function(t,e,n){var r={field:e},i=o.Array.values(n,e);if(r.values=i,!a.isCategory(t)&&"time"!==t){var s=o.Array.getRange(i);r.min=s.min,r.max=s.max,r.nice=!0}return"time"===t&&(r.nice=!1),r},t.prototype.createScale=function(t,e){var n=this,r=n._getDef(t),i=void 0;if(!e||!e.length)return i=r&&r.type?a[r.type](r):a.identity({value:t,field:t.toString(),values:[t]});var s=o.Array.firstValue(e,t);if(o.isNumber(t)||o.isNil(s)&&!r)i=a.identity({value:t,field:t.toString(),values:[t]});else{var u=void 0;r&&(u=r.type),u=u||n._getDefaultType(t,e);var c=n._getScaleCfg(u,t,e);r&&o.mix(c,r),i=a[u](c)}return i},t}();t.exports=c},function(t,e,n){var r=n(0),o=n(160),i=n(1);t.exports=function(t){var e=t.min,n=t.max,a=t.interval,s=[],u=t.minCount||5,c=t.maxCount||7,l=u===c,f=r.isNil(t.minLimit)?-1/0:t.minLimit,p=r.isNil(t.maxLimit)?1/0:t.maxLimit,h=(u+c)/2,d=h,v=t.snapArray?t.snapArray:l?i.snapCountArray:i.snapArray;if(e===f&&n===p&&l&&(a=(n-e)/(d-1)),r.isNil(e)&&(e=0),r.isNil(n)&&(n=0),n===e&&(0===e?n=1:e>0?e=0:n=0,n-e<5&&!a&&n-e>=1&&(a=1)),r.isNil(a)){var m=(n-e)/(h-1);a=o.snapFactorTo(m,v,"ceil"),c!==u&&(d=parseInt((n-e)/a,10),d>c&&(d=c),de&&(_-=a),n=r.fixedBase(x,a),e=r.fixedBase(_,a)}n=Math.min(n,p),e=Math.max(e,f),s.push(e);for(var w=1;wn?(i=o,o=n):i>n&&(i=n),a1&&(e.minTickInterval=i-o),(s.isNil(e.min)||e._toTimeStamp(e.min)>o)&&(e.min=o),(s.isNil(e.max)||e._toTimeStamp(e.max)y&&(y=e);var O=y/w,S=r(m);if(O>.51){for(var C=Math.ceil(O),k=r(g),j=S;j<=k+C;j+=C)n.push(o(j));y=null}else if(O>.0834){for(var E=Math.ceil(O/.0834),M=i(m),T=a(m,g),P=0;P<=T+E;P+=E)n.push(s(S,P+M));y=null}else if(y>.5*_){var N=new Date(m),A=N.getFullYear(),D=N.getMonth(m),I=N.getDate(),R=Math.ceil(y/_),L=u(m,g);y=R*_;for(var F=0;Fd){var z=new Date(m),V=z.getFullYear(),Y=z.getMonth(m),B=z.getDate(),W=z.getHours(),H=p.snapTo(h,Math.ceil(y/d)),U=c(m,g);y=H*d;for(var G=0;G<=U+H;G+=H)n.push(new Date(V,Y,B,W+G).getTime())}else if(y>6e4){var q=l(m,g),K=Math.ceil(y/6e4);y=6e4*K;for(var X=0;X<=q+K;X+=K)n.push(m+6e4*X)}else{y<1e3&&(y=1e3),m=1e3*Math.floor(m/1e3);var Z=Math.ceil((g-m)/1e3),$=Math.ceil(y/1e3);y=1e3*$;for(var Q=0;Q-1?r/(this.values.length-1):0,e+o*(n-e)},e.prototype.getText=function(t){var e="",n=this.translate(t);e=n>-1?this.values[n]:t;var r=this.formatter;return e=parseInt(e,10),e=r?r(e):u.format(e,this.mask)},e.prototype.getTicks=function(){var t=this,e=this.ticks,n=[];return s.each(e,function(e){var r=void 0;r=s.isObject(e)?e:{text:s.isString(e)?e:t.getText(e),tickValue:e,value:t.scale(e)},n.push(r)}),n},e.prototype._toTimeStamp=function(t){return l.toTimeStamp(t)},e}(a);t.exports=f},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){return 1===t?1:Math.log(e)/Math.log(t)}var s=n(53),u=n(0),c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return u.mix({},e,{type:"log",base:2,tickCount:10,_minTick:null})},e.prototype.calculateTicks=function(){var t=this,e=t.base,n=void 0;if(t.min<0)throw new Error("The minimum value must be greater than zero!");var r=a(e,t.max);if(t.min>0)n=Math.floor(a(e,t.min));else{var o=t.values,i=t.max;u.each(o,function(t){t>0&&t1&&(i=1),n=Math.floor(a(e,i)),t._minTick=n,t.positiveMin=i}for(var s=r-n,c=t.tickCount,l=Math.ceil(s/c),f=[],p=n;p=0?Math.floor(a(e,t.min)):0)>r){var o=r;r=n,n=o}for(var i=r-n,s=t.tickCount,u=Math.ceil(i/s),c=[],l=n;ll/a?(p=l/a,h={x:o.x-(.5-u)*l,y:o.y-(.5-c)*p*s}):(p=f/s,h={x:o.x-(.5-u)*p*a,y:o.y-(.5-c)*f}),t?t>0&&t<=1?t*=p:(t<=0||t>p)&&(t=p):t=p;var d={start:n,end:r},v={start:e*t,end:t};this.x=d,this.y=v,this.radius=t,this.circleCentre=h,this.center=h},e.prototype.getCenter=function(){return this.circleCentre},e.prototype.getOneBox=function(){var t=this.startAngle,e=this.endAngle;if(e-t>=2*Math.PI)return{minX:-1,maxX:1,minY:-1,maxY:1};for(var n=[0,Math.cos(t),Math.cos(e)],r=[0,Math.sin(t),Math.sin(e)],o=5*-Math.PI/2;o<3*Math.PI/2;o+=Math.PI/2)t<=o&&o<=e&&(n.push(Math.cos(o)),r.push(Math.sin(o)));return{minX:Math.min.apply(Math,n),maxX:Math.max.apply(Math,n),minY:Math.min.apply(Math,r),maxY:Math.max.apply(Math,r)}},e.prototype.getRadius=function(){return this.radius},e.prototype.convertPoint=function(t){var e=this.getCenter(),n=this.isTransposed?t.y:t.x,r=this.isTransposed?t.x:t.y;return n=this.convertDim(n,"x"),r=this.convertDim(r,"y"),{x:e.x+Math.cos(n)*r,y:e.y+Math.sin(n)*r}},e.prototype.invertPoint=function(t){var e=this.getCenter(),n=[t.x-e.x,t.y-e.y],r=this.x,o=[1,0,0,0,1,0,0,0,1];c.rotate(o,o,r.start);var i=[1,0,0];f.transformMat3(i,i,o),i=[i[0],i[1]];var s=l.angleTo(i,n,r.end0?p:-p;var h=this.invertDim(u,"y"),d={};return d.x=this.isTransposed?h:p,d.y=this.isTransposed?p:h,d},e}(s);t.exports=p},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(54),u=n(2).MatrixUtil,c=u.vec2,l=function(t){function e(n){r(this,e);var i=o(this,t.call(this,n));return i._init(),i}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{startAngle:1.25*Math.PI,endAngle:7.25*Math.PI,innerRadius:0,type:"helix",isHelix:!0})},e.prototype._init=function(){var t=this.width,e=this.height,n=this.radius,r=this.innerRadius,o=this.startAngle,i=this.endAngle,a=(i-o)/(2*Math.PI)+1,s=Math.min(t,e)/2;n&&n>=0&&n<=1&&(s*=n);var u=Math.floor(s*(1-r)/a),c=u/(2*Math.PI),l={start:o,end:i},f={start:r*s,end:r*s+.99*u};this.a=c,this.d=u,this.x=l,this.y=f},e.prototype.getCenter=function(){return this.center},e.prototype.convertPoint=function(t){var e=this.a,n=this.center,r=void 0,o=void 0;this.isTransposed?(r=t.y,o=t.x):(r=t.x,o=t.y);var i=this.convertDim(r,"x"),a=e*i,s=this.convertDim(o,"y");return{x:n.x+Math.cos(i)*(a+s),y:n.y+Math.sin(i)*(a+s)}},e.prototype.invertPoint=function(t){var e=this.center,n=this.a,r=this.d+this.y.start,o=c.subtract([],[t.x,t.y],[e.x,e.y]),i=c.angleTo(o,[1,0],!0),s=i*n;c.length(o)0){e=t.slice(0);var n=e[0],r=e[e.length-1];0!==n.value&&e.unshift({value:0}),1!==r.value&&e.push({value:1})}return e}function i(t,e,n){var r=[];return t.length<1?r:(t.length>=2&&e&&n&&r.push({text:"",tickValue:"",value:0}),0!==t[0].value&&r.push({text:"",tickValue:"",value:0}),r=r.concat(t),1!==r[r.length-1].value&&r.push({text:"",tickValue:"",value:1}),r)}var a=n(0),s=n(32),u=s.Axis,c=n(2).MatrixUtil.vec2,l=n(1),f=function(){function t(e){r(this,t),this.visible=!0,this.container=null,this.coord=null,this.options=null,this.axes=[],a.mix(this,e)}return t.prototype._isHide=function(t){var e=this.options;return!(!e||!1!==e[t])},t.prototype._getMiddleValue=function(t,e,n,r){if(0===t&&!r)return 0;if(1===t)return 1;var o=e[n+1].value;return r||1!==o?(t+o)/2:1},t.prototype._getLineRange=function(t,e,n,r){var o=void 0,i=void 0,a=void 0,s=e.field,u=this.options,c="";return u[s]&&u[s].position&&(c=u[s].position),"x"===n?(o={x:0,y:"top"===c?1:0},i={x:1,y:"top"===c?1:0},a=!1):(r?(o={x:"left"===c?0:1,y:0},i={x:"left"===c?0:1,y:1}):(o={x:"right"===c?1:0,y:0},i={x:"right"===c?1:0,y:1}),a=!0),o=t.convert(o),i=t.convert(i),{start:o,end:i,isVertical:a}},t.prototype._getLineCfg=function(t,e,n,r){var o=void 0,i=this._getLineRange(t,e,n,r),a=i.isVertical,s=i.start,u=i.end,c=t.center;return t.isTransposed&&(a=!a),o=a&&s.x>c.x||!a&&s.y>c.y?1:-1,{isVertical:a,factor:o,start:s,end:u}},t.prototype._getCircleCfg=function(t){var e={},n=t.x,r=t.y,o=r.start>r.end,i=void 0;i=t.isTransposed?{x:o?0:1,y:0}:{x:0,y:o?0:1},i=t.convert(i);var a=t.circleCentre,s=[i.x-a.x,i.y-a.y],u=[1,0],l=void 0;l=i.y>a.y?c.angle(s,u):-1*c.angle(s,u);var f=l+(n.end-n.start);return e.startAngle=l,e.endAngle=f,e.center=a,e.radius=Math.sqrt(Math.pow(i.x-a.x,2)+Math.pow(i.y-a.y,2)),e.inner=t.innerRadius||0,e},t.prototype._getRadiusCfg=function(t){var e=t.x.start,n=e<0?-1:1,r=void 0,o=void 0;return t.isTransposed?(r={x:0,y:0},o={x:1,y:0}):(r={x:0,y:0},o={x:0,y:1}),{factor:n,start:t.convert(r),end:t.convert(o)}},t.prototype._getAxisPosition=function(t,e,n,r){var o="",i=this.options;if(i[r]&&i[r].position)o=i[r].position;else{var a=t.type;t.isRect?"x"===e?o="bottom":"y"===e&&(o=n?"right":"left"):o="helix"===a?"helix":"x"===e?t.isTransposed?"radius":"circle":t.isTransposed?"circle":"radius"}return o},t.prototype._getAxisDefaultCfg=function(t,e,n,r){var o=this,i={},s=o.options,u=e.field;return i=a.deepMix({},l.axis[r],i,s[u]),i.title&&a.deepMix(i,{title:{text:e.alias||u}}),i.ticks=e.getTicks(),t.isPolar&&!e.isCategory&&"x"===n&&Math.abs(t.endAngle-t.startAngle)===2*Math.PI&&i.ticks.pop(),i.coord=t,i.label&&a.isNil(i.label.autoRotate)&&(i.label.autoRotate=!0),i},t.prototype._getAxisCfg=function(t,e,n,r){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",u=arguments[5],c=this,l=c._getAxisPosition(t,r,s,e.field),f=c._getAxisDefaultCfg(t,e,r,l);if(!a.isEmpty(f.grid)&&n){var p=[],h=o(n.getTicks());if(h.length){var d=i(f.ticks,e.isLinear,"center"===f.grid.align);a.each(d,function(n,o){var i=[],l=n.value;if("center"===f.grid.align&&(l=c._getMiddleValue(l,d,o,e.isLinear)),!a.isNil(l)){var v=t.x,m=t.y;a.each(h,function(e){var n="x"===r?l:e.value,o="x"===r?e.value:l,a=t.convert({x:n,y:o});if(t.isPolar){var s=t.circleCentre;m.start>m.end&&(o=1-o),a.flag=v.start>v.end?0:1,a.radius=Math.sqrt(Math.pow(a.x-s.x,2)+Math.pow(a.y-s.y,2))}i.push(a)}),p.push({_id:u+"-"+r+s+"-grid-"+n.tickValue,points:i})}})}f.grid.items=p}return f},t.prototype._getHelixCfg=function(t){for(var e={},n=t.a,r=t.startAngle,o=t.endAngle,i=[],a=0;a<=100;a++){var s=t.convert({x:a/100,y:0});i.push(s.x),i.push(s.y)}var u=t.convert({x:0,y:0});return e.a=n,e.startAngle=r,e.endAngle=o,e.crp=i,e.axisStart=u,e.center=t.center,e.inner=t.y.start,e},t.prototype._drawAxis=function(t,e,n,r,o,i,s){var c=this.container,l=void 0,f=void 0;"cartesian"===t.type?(l=u.Line,f=this._getLineCfg(t,e,r,s)):"helix"===t.type&&"x"===r?(l=u.Helix,f=this._getHelixCfg(t)):"x"===r?(l=u.Circle,f=this._getCircleCfg(t)):(l=u.Line,f=this._getRadiusCfg(t));var p=this._getAxisCfg(t,e,n,r,s,o);p=a.mix({},p,f),"y"===r&&i&&"circle"===i.get("type")&&(p.circle=i),p._id=o+"-"+r,a.isNil(s)||(p._id=o+"-"+r+s);var h=c.addGroup(l,p);return this.axes.push(h),h},t.prototype.createAxis=function(t,e,n){var r=this,o=this.coord,i=o.type;if("theta"!==i&&("polar"!==i||!o.isTransposed)){var s=void 0;t&&!r._isHide(t.field)&&(s=r._drawAxis(o,t,e[0],"x",n)),a.isEmpty(e)||"helix"===i||a.each(e,function(e,i){r._isHide(e.field)||r._drawAxis(o,e,t,"y",n,s,i)})}},t.prototype.changeVisible=function(t){var e=this.axes;a.each(e,function(e){e.set("visible",t)})},t.prototype.clear=function(){var t=this.axes;a.each(t,function(t){t.remove()}),this.axes=[]},t}();t.exports=f},function(t,e,n){t.exports={Line:n(463),Circle:n(465),Helix:n(466),PolyLine:n(467)}},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(55),s=n(0),u=n(2),c=u.MatrixUtil,l=c.vec2,f=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return s.mix({},e,{x:null,y:null,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},isVertical:!1,start:null,end:null})},e.prototype._getAvgLabelLength=function(t){var e=t.get("children");return e[1].attr("x")-e[0].attr("x")},e.prototype.getSideVector=function(t){var e=this,n=e.get("factor"),r=e.get("isVertical"),o=e.get("start"),i=e.get("end"),a=e.getAxisVector(),s=l.normalize([],a),u=!1;(r&&o.yi.x)&&(u=!0);var c=l.vertical([],s,u);return l.scale([],c,t*n)},e.prototype.getAxisVector=function(){var t=this.get("start"),e=this.get("end");return[e.x-t.x,e.y-t.y]},e.prototype.getLinePath=function(){var t=this,e=t.get("start"),n=t.get("end"),r=[];return r.push(["M",e.x,e.y]),r.push(["L",n.x,n.y]),r},e.prototype.getTickEnd=function(t,e){var n=this,r=n.getSideVector(e);return{x:t.x+r[0],y:t.y+r[1]}},e.prototype.getTickPoint=function(t){var e=this,n=e.get("start"),r=e.get("end"),o=r.x-n.x,i=r.y-n.y;return{x:n.x+o*t,y:n.y+i*t}},e.prototype.renderTitle=function(){var t=this,e=t.get("title"),n=t.getTickPoint(.5),r=e.offset;if(s.isNil(r)){r=20;var o=t.get("labelsGroup");if(o){r+=t.getMaxLabelWidth(o)+(t.get("label").offset||t.get("_labelOffset"))}}var i=e.textStyle,a=s.mix({},i);if(e.text){var u=t.getAxisVector();if(e.autoRotate&&s.isNil(i.rotate)){var c=0;if(!s.snapEqual(u[1],0)){var f=[1,0],p=[u[0],u[1]];c=l.angleTo(p,f,!0)}a.rotate=c*(180/Math.PI)}else s.isNil(i.rotate)||(a.rotate=i.rotate/180*Math.PI);var h=t.getSideVector(r),d=void 0,v=e.position;d="start"===v?{x:this.get("start").x+h[0],y:this.get("start").y+h[1]}:"end"===v?{x:this.get("end").x+h[0],y:this.get("end").y+h[1]}:{x:n.x+h[0],y:n.y+h[1]},a.x=d.x,a.y=d.y,a.text=e.text;var m=t.addShape("Text",{zIndex:2,attrs:a});m.name="axis-title",t.get("appendInfo")&&m.setSilent("appendInfo",t.get("appendInfo"))}},e.prototype.autoRotateLabels=function(){var t=this,e=t.get("labelsGroup"),n=t.get("title");if(e){var r=t.get("label").offset,o=n?n.offset:48;if(o<0)return;var i=t.getAxisVector(),a=void 0,u=void 0;if(s.snapEqual(i[0],0)&&n&&n.text)(u=t.getMaxLabelWidth(e))>o-r-12&&(a=-1*Math.acos((o-r-12)/u));else if(s.snapEqual(i[1],0)&&e.getCount()>1){var c=Math.abs(t._getAvgLabelLength(e));u=t.getMaxLabelWidth(e),u>c&&(a=Math.asin(1.25*(o-r-12)/u))}if(a){var l=t.get("factor");s.each(e.get("children"),function(t){t.rotateAtStart(a),s.snapEqual(i[1],0)&&(l>0?t.attr("textAlign","left"):t.attr("textAlign","right"))})}}},e}(a);t.exports=f},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(2),s=a.Group,u=n(0),c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){return{zIndex:1,type:"line",lineStyle:null,items:null,alternateColor:null,matrix:null,hideFirstLine:!1,hideLastLine:!1}},e.prototype._renderUI=function(){t.prototype._renderUI.call(this),this._drawLines()},e.prototype._drawLines=function(){var t=this,e=t.get("lineStyle"),n=t.get("items");n&&n.length&&(t._precessItems(n),t._drawGridLines(n,e))},e.prototype._precessItems=function(t){var e=this,n=void 0;u.each(t,function(t,r){n&&e.get("alternateColor")&&e._drawAlternativeBg(t,n,r),n=t})},e.prototype._drawGridLines=function(t,e){var n=this,r=this.get("type"),o=void 0,i=void 0,a=void 0,s=void 0,c=t.length;"line"===r||"polygon"===r?u.each(t,function(t,l){n.get("hideFirstLine")&&0===l||n.get("hideLastLine")&&l===c-1||(s=t.points,i=[],"line"===r?(i.push(["M",s[0].x,s[0].y]),i.push(["L",s[s.length-1].x,s[s.length-1].y])):u.each(s,function(t,e){0===e?i.push(["M",t.x,t.y]):i.push(["L",t.x,t.y])}),a=u.mix({},e,{path:i}),o=n.addShape("path",{attrs:a}),o.name="axis-grid",o._id=t._id,o.set("coord",n.get("coord")),n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo")))}):u.each(t,function(t,r){n.get("hideFirstLine")&&0===r||n.get("hideLastLine")&&r===c-1||(s=t.points,i=[],u.each(s,function(t,e){var n=t.radius;0===e?i.push(["M",t.x,t.y]):i.push(["A",n,n,0,0,t.flag,t.x,t.y])}),a=u.mix({},e,{path:i}),o=n.addShape("path",{attrs:a}),o.name="axis-grid",o._id=t._id,o.set("coord",n.get("coord")),n.get("appendInfo")&&o.setSilent("appendInfo",n.get("appendInfo")))})},e.prototype._drawAlternativeBg=function(t,e,n){var r=this,o=r.get("alternateColor"),i=void 0,a=void 0,s=void 0;u.isString(o)?a=o:u.isArray(o)&&(a=o[0],s=o[1]),n%2==0?s&&(i=r._getBackItem(e.points,t.points,s)):a&&(i=r._getBackItem(e.points,t.points,a));var c=r.addShape("Path",{attrs:i});c.name="axis-grid-rect",c._id=t._id&&t._id.replace("grid","grid-rect"),c.set("coord",r.get("coord")),r.get("appendInfo")&&c.setSilent("appendInfo",r.get("appendInfo"))},e.prototype._getBackItem=function(t,e,n){var r=[],o=this.get("type");if("line"===o)r.push(["M",t[0].x,t[0].y]),r.push(["L",t[t.length-1].x,t[t.length-1].y]),r.push(["L",e[e.length-1].x,e[e.length-1].y]),r.push(["L",e[0].x,e[0].y]),r.push(["Z"]);else if("polygon"===o){u.each(t,function(t,e){0===e?r.push(["M",t.x,t.y]):r.push(["L",t.x,t.y])});for(var i=e.length-1;i>=0;i--)r.push(["L",e[i].x,e[i].y]);r.push(["Z"])}else{var a=t[0].flag;u.each(t,function(t,e){var n=t.radius;0===e?r.push(["M",t.x,t.y]):r.push(["A",n,n,0,0,t.flag,t.x,t.y])});for(var s=e.length-1;s>=0;s--){var c=e[s],l=c.radius;s===e.length-1?r.push(["M",c.x,c.y]):r.push(["A",l,l,0,0,1===a?0:1,c.x,c.y])}}return{fill:n,path:r}},e}(s);t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(55),u=n(2).MatrixUtil.vec2,c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"circle",tickInterval:null,startAngle:-Math.PI/2,endAngle:3*Math.PI/2,line:{lineWidth:1,stroke:"#C0D0E0"},tickLine:{lineWidth:1,stroke:"#C0D0E0",length:5},_labelOffset:5})},e.prototype.parseTick=function(t,e,n){return{text:t,value:e/n}},e.prototype._getCirclePoint=function(t,e){var n=this,r=n.get("center");return e=e||n.get("radius"),{x:r.x+Math.cos(t)*e,y:r.y+Math.sin(t)*e}},e.prototype.getTickPoint=function(t){var e=this,n=e.get("startAngle"),r=e.get("endAngle"),o=n+(r-n)*t;return e._getCirclePoint(o)},e.prototype.getSideVector=function(t,e){var n=this,r=n.get("center"),o=[e.x-r.x,e.y-r.y];if(!a.isNil(t)){var i=u.length(o);u.scale(o,o,t/i)}return o},e.prototype.getSidePoint=function(t,e){var n=this,r=n.getSideVector(e,t);return{x:t.x+r[0],y:t.y+r[1]}},e.prototype.getTickEnd=function(t,e){var n=this,r=n.get("tickLine");return e=e||r.length,n.getSidePoint(t,e)},e.prototype.getTextAnchor=function(t){var e=void 0;return a.snapEqual(t[0],0)?e="center":t[0]>0?e="left":t[0]<0&&(e="right"),e},e.prototype.getLinePath=function(){var t=this,e=t.get("center"),n=e.x,r=e.y,o=t.get("radius"),i=o,a=t.get("startAngle"),s=t.get("endAngle"),u=t.get("inner"),c=[];if(Math.abs(s-a)===2*Math.PI)c=[["M",n,r],["m",0,-i],["a",o,i,0,1,1,0,2*i],["a",o,i,0,1,1,0,-2*i],["z"]];else{var l=t._getCirclePoint(a),f=t._getCirclePoint(s),p=Math.abs(s-a)>Math.PI?1:0,h=a>s?0:1;if(u){var d=t.getSideVector(u*o,l),v=t.getSideVector(u*o,f),m={x:d[0]+n,y:d[1]+r},g={x:v[0]+n,y:v[1]+r};c=[["M",m.x,m.y],["L",l.x,l.y],["A",o,i,0,p,h,f.x,f.y],["L",g.x,g.y],["A",o*u,i*u,0,p,Math.abs(h-1),m.x,m.y]]}else c=[["M",n,r],["L",l.x,l.y],["A",o,i,0,p,h,f.x,f.y],["L",n,r]]}return c},e.prototype.addLabel=function(e,n,r){var o=this,i=o.get("label").offset||o.get("_labelOffset")||.001;n=o.getSidePoint(n,i),t.prototype.addLabel.call(this,e,n,r)},e.prototype.autoRotateLabels=function(){var t=this,e=t.get("ticks"),n=t.get("labelsGroup");if(n&&e.length>12){var r=t.get("radius"),o=t.get("startAngle"),i=t.get("endAngle"),s=i-o,u=s/(e.length-1),c=Math.sin(u/2)*r*2,l=t.getMaxLabelWidth(n);a.each(n.get("children"),function(t,n){var r=e[n],i=r.value*s+o,a=i%(2*Math.PI);lMath.PI&&(i-=Math.PI),i-=Math.PI/2,t.attr("textAlign","center")):a>Math.PI/2?i-=Math.PI:a1||s<0)&&(s=1);var c={x:t.x+(e.x-t.x)*s,y:t.y+(e.y-t.y)*s};if(r.offsetX&&(c.x+=r.offsetX),r.offsetY&&(c.y+=r.offsetY),c.text=r.content,c=a.mix({},c,i),r.autoRotate&&a.isNil(i.rotate)){var l=u.angleTo([e.x-t.x,e.y-t.y],[1,0],1);c.rotate=l}else a.isNil(i.rotate)||(c.rotate=i.rotate*Math.PI/180);var f=n.addShape("Text",{attrs:c});f.name="guide-line-text",this.appendInfo&&f.setSilent("appendInfo",this.appendInfo)},e}(s);t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(23),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"text",position:null,content:null,style:{fill:"#999",fontSize:12,fontWeight:500,textAlign:"center"},offsetX:null,offsetY:null})},e.prototype.render=function(t,e){var n=this,r=n.position,o=n.parsePoint(t,r),i=a.mix({},this.style);n.offsetX&&(o.x+=n.offsetX),n.offsetY&&(o.y+=n.offsetY),i.rotate&&(i.rotate=i.rotate*Math.PI/180);var s=e.addShape("Text",{zIndex:n.zIndex,attrs:a.mix({text:n.content},i,o)});s.name="guide-text",n.appendInfo&&s.setSilent("appendInfo",n.appendInfo),n.el=s},e}(s);t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(23),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"image",zIndex:1,start:null,end:null,src:null,offsetX:null,offsetY:null})},e.prototype.render=function(t,e){var n=this,r=n.parsePoint(t,n.start),o={x:r.x,y:r.y};if(o.img=n.src,n.end){var i=n.parsePoint(t,n.end);o.width=Math.abs(i.x-r.x),o.height=Math.abs(r.y-i.y)}else n.width&&(o.width=n.width),n.height&&(o.height=n.height);n.offsetX&&(o.x+=n.offsetX),n.offsetY&&(o.y+=n.offsetY);var a=e.addShape("Image",{zIndex:1,attrs:o});a.name="guide-image",n.appendInfo&&a.setSilent("appendInfo",n.appendInfo),n.el=a},e}(s);t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(23),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"region",zIndex:1,start:null,end:null,style:{lineWidth:0,fill:"#CCD7EB",opacity:.4}})},e.prototype.render=function(t,e){var n=this,r=n.style,o=n._getPath(t),i=e.addShape("path",{zIndex:n.zIndex,attrs:a.mix({path:o},r)});i.name="guide-region",n.appendInfo&&i.setSilent("appendInfo",n.appendInfo),n.el=i},e.prototype._getPath=function(t){var e=this,n=e.parsePoint(t,e.start),r=e.parsePoint(t,e.end),o=[];return o.push(["M",n.x,n.y]),o.push(["L",r.x,n.y]),o.push(["L",r.x,r.y]),o.push(["L",n.x,r.y]),o.push(["z"]),o},e}(s);t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(2),u=s.DomUtil,c=n(23),l=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"html",zIndex:7,position:null,alignX:"middle",alignY:"middle",offsetX:null,offsetY:null,html:null})},e.prototype.render=function(t,e){var n=this,r=n.parsePoint(t,n.position),o=e.get("canvas").get("el").parentNode,i=u.createDom('
');o.appendChild(i);var s=n.html;a.isFunction(s)&&(s=s(n.xScales,n.yScales));var c=u.createDom(s);i.appendChild(c),n._setDomPosition(i,c,r),n.el=i},e.prototype._setDomPosition=function(t,e,n){var r=this,o=r.alignX,i=r.alignY,s=u.getOuterWidth(e),c=u.getOuterHeight(e),l={x:n.x,y:n.y};"middle"===o&&"top"===i?l.x-=a.round(s/2):"middle"===o&&"bottom"===i?(l.x-=a.round(s/2),l.y-=a.round(c)):"left"===o&&"bottom"===i?l.y-=a.round(c):"left"===o&&"middle"===i?l.y-=a.round(c/2):"left"===o&&"top"===i?(l.x=n.x,l.y=n.y):"right"===o&&"bottom"===i?(l.x-=a.round(s),l.y-=a.round(c)):"right"===o&&"middle"===i?(l.x-=a.round(s),l.y-=a.round(c/2)):"right"===o&&"top"===i?l.x-=a.round(s):(l.x-=a.round(s/2),l.y-=a.round(c/2)),r.offsetX&&(l.x+=r.offsetX),r.offsetY&&(l.y+=r.offsetY),u.modifyCSS(t,{position:"absolute",top:Math.round(l.y)+"px",left:Math.round(l.x)+"px",visibility:"visible",zIndex:r.zIndex})},e.prototype.remove=function(){var t=this,e=t.el;e&&e.parentNode.removeChild(e)},e}(c);t.exports=l},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(23),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"arc",start:null,end:null,style:{stroke:"#999",lineWidth:1}})},e.prototype.render=function(t,e){var n=this,r=n.parsePoint(t,n.start),o=n.parsePoint(t,n.end),i=t.getCenter(),s=Math.sqrt((r.x-i.x)*(r.x-i.x)+(r.y-i.y)*(r.y-i.y)),u=Math.atan2(r.y-i.y,r.x-i.x),c=Math.atan2(o.y-i.y,o.x-i.x),l=e.addShape("arc",{zIndex:n.zIndex,attrs:a.mix({x:i.x,y:i.y,r:s,startAngle:u,endAngle:c},n.style)});l.name="guide-arc",n.appendInfo&&l.setSilent("appendInfo",n.appendInfo),n.el=l},e}(s);t.exports=u},function(t,e,n){t.exports={Category:n(476),Color:n(477),Size:n(479)}},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){return t.getElementsByClassName(e)[0]}function s(t,e){var n=t.className;return n=n.split(" "),n.indexOf(e)>-1?t:t.parentNode?t.parentNode.className===g?t.parentNode:s(t.parentNode,e):null}function u(t,e){var n=null,r=e instanceof v?e.get("value"):e;return l.each(t,function(t){if(t.value===r)return n=t,!1}),n}function c(t,e){return t.findBy(function(t){return t.name===e})}var l=n(0),f=n(165),p=n(2),h=p.DomUtil,d=p.Event,v=p.Group,m=n(1),g="g2-legend",y="g2-legend-list",b="g2-legend-list-item",x="g2-legend-marker",_=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return l.mix({},e,{type:"category-legend",items:null,itemGap:5,titleGap:15,itemMarginBottom:8,itemsGroup:null,layout:"horizontal",allowAllCanceled:!1,backPadding:[0,0,0,0],checkable:!0,unCheckColor:"#ccc",background:{fill:"#fff",fillOpacity:0},itemWidth:null,textStyle:{fill:"#333",fontSize:12,textAlign:"start",textBaseline:"middle",fontFamily:m.fontFamily},_wordSpaceing:8,useHtml:!1,autoPosition:!0,container:null,containerTpl:'

    ',_defaultItemTpl:'
  • {value}
  • ',itemTpl:null,clickable:!0,selectedMode:"multiple",reversed:!1,autoWrap:!0})},e.prototype._beforeRenderUI=function(){t.prototype._beforeRenderUI.call(this)},e.prototype._renderUI=function(){this.get("useHtml")?this._renderHTML():(t.prototype._renderUI.call(this),this._renderItems(),this.get("autoWrap")&&this._adjustItems(),this._renderBack())},e.prototype._bindUI=function(){this.get("hoverable")&&(this.on("mousemove",l.wrapBehavior(this,"_onMousemove")),this.on("mouseleave",l.wrapBehavior(this,"_onMouseleave"))),this.get("clickable")&&this.on("click",l.wrapBehavior(this,"_onClick"))},e.prototype._getLegendItem=function(t){var e=t.get("parent");return e&&"legendGroup"===e.name?e:null},e.prototype._onMousemove=function(t){var e=this._getLegendItem(t.currentTarget);if(e&&e.get("checked")){var n=this.get("items"),r=new d("itemhover",t,!0,!0);r.item=u(n,e),r.checked=e.get("checked"),this.emit("itemhover",r)}else e||this.emit("itemunhover",t)},e.prototype._onMouseleave=function(t){this.emit("itemunhover",t)},e.prototype._onClick=function(t){var e=this._getLegendItem(t.currentTarget),n=this.get("items");if(e&&!e.get("destroyed")){var r=e.get("checked");if(!this.get("allowAllCanceled")&&r&&1===this.getCheckedCount())return;var o=this.get("selectedMode"),i=u(n,e),a=new d("itemclick",t,!0,!0);a.item=i,a.currentTarget=e,a.checked="single"===o||!r;var s=this.get("unCheckColor"),f=this.get("textStyle").fill,p=void 0,h=void 0,v=void 0;if("single"===o){var m=this.get("itemsGroup"),g=m.get("children");l.each(g,function(t){p=c(t,"legend-marker"),h=c(t,"legend-text"),v=c(t,"legend-item"),t!==e?(p.attr("fill")&&p.attr("fill",s),p.attr("stroke")&&p.attr("stroke",s),h.attr("fill",s),p.setSilent("checked",!1),h.setSilent("checked",!1),v.setSilent("checked",!1),t.setSilent("checked",!1)):(p.attr("fill")&&p.attr("fill",i.marker.fill),p.attr("stroke")&&p.attr("stroke",i.marker.stroke),h.attr("fill",f),p.setSilent("checked",!0),h.setSilent("checked",!0),v.setSilent("checked",!0),t.setSilent("checked",!0))})}else p=c(e,"legend-marker"),h=c(e,"legend-text"),v=c(e,"legend-item"),p.attr("fill")&&p.attr("fill",r?s:i.marker.fill),p.attr("stroke")&&p.attr("stroke",r?s:i.marker.stroke),h.attr("fill",r?s:f),e.setSilent("checked",!r),p.setSilent("checked",!r),h.setSilent("checked",!r),v.setSilent("checked",!r);this.emit("itemclick",a)}},e.prototype._renderHTML=function(){var t=this,e=this,n=e.get("canvas"),r=n.get("el").parentNode,o=this.get("title"),i=e.get("containerTpl"),c=h.createDom(i),f=a(c,"g2-legend-title"),p=a(c,y),d=e.get("unCheckColor"),v=e.get("selectedMode"),_=m.legend.html,w=e.get("container");if(/^\#/.test(w)){var O=w.replace("#","");w=document.getElementById(O),w.appendChild(c)}else{var S=e.get("position"),C=e.get("canvas"),k={};k="left"===S||"right"===S?{maxHeight:(e.get("maxLength")||C.get("height"))+"px"}:{maxWidth:(e.get("maxLength")||C.get("width"))+"px"},h.modifyCSS(c,l.mix({},_[g],k,e.get(g))),r.appendChild(c)}h.modifyCSS(p,l.mix({},_[y],e.get(y))),f&&(o&&o.text?(f.innerHTML=o.text,h.modifyCSS(f,l.mix({},_["g2-legend-title"],e.get("g2-legend-title")))):c.removeChild(f));var j=e.get("items"),E=e.get("_defaultItemTpl"),M=e.get("itemTpl");M&&M!==E&&(E=M),e.get("reversed")&&j.reverse();var T=e.get("position"),P=l.mix({},_[b],{display:"right"===T||"left"===T?"block":"inline-block"},e.get(b)),N=l.mix({},_[x],e.get(x));if(l.each(j,function(t,n){var r=t.checked,o=e._formatItemValue(t.value),i=t.marker.fill||t.marker.stroke,s=r?i:d,u=void 0;u=l.isFunction(E)?E(o,s,r,n):E;var c=l.substitute(u,{index:n,checked:r?"checked":"unChecked",value:o,color:s,originColor:i,originValue:t.value}),f=h.createDom(c),v=a(f,x);h.modifyCSS(f,P),v&&h.modifyCSS(v,N),r||(f.style.color=d,v&&(v.style.backgroundColor=d)),p.appendChild(f)}),e.get("clickable")){var A=p.childNodes;c.onclick=function(n){var r=n.target,o=r.className;if(o=o.split(" "),!(o.indexOf(g)>-1||o.indexOf(y)>-1)){var i=s(r,b),c=a(i,"g2-legend-text"),f=a(i,x),p=u(j,i.getAttribute("data-value"));if(p){var h=i.className,m=i.getAttribute("data-color");if("single"===v)p.checked=!0,l.each(A,function(t){if(t!==i){a(t,x).style.backgroundColor=d,t.className=l.replace(t.className,"checked","unChecked"),t.style.color=d;u(j,t.getAttribute("data-value")).checked=!1}else c&&(c.style.color=e.get("textStyle").fill),f&&(f.style.backgroundColor=m),i.className=l.replace(h,"unChecked","checked")});else{var _=h.includes("checked"),w=0;if(l.each(A,function(t){t.className.includes("checked")&&w++}),!t.get("allowAllCanceled")&&_&&1===w)return;p.checked=!p.checked,_?(f&&(f.style.backgroundColor=d),i.className=l.replace(h,"checked","unChecked"),i.style.color=d):(f&&(f.style.backgroundColor=m),i.className=l.replace(h,"unChecked","checked"),i.style.color=e.get("textStyle").fill)}e.emit("itemclick",{item:p,currentTarget:i,checked:"single"===v||p.checked})}}}}e.get("hoverable")&&(c.onmousemove=function(t){var n=t.target,r=n.className;if(r=r.split(" "),!(r.indexOf(g)>-1||r.indexOf(y)>-1)){var o=s(n,b),i=o.className,a=u(j,o.getAttribute("data-value"));a&&i.includes("checked")?e.emit("itemhover",{item:a,currentTarget:o,checked:a.checked}):a||e.emit("itemunhover",t)}},c.onmouseout=function(t){e.emit("itemunhover",t)}),e.set("legendWrapper",c)},e.prototype._renderItems=function(){var t=this,e=t.get("items");t.get("reversed")&&e.reverse(),l.each(e,function(e,n){t._addItem(e,n)})},e.prototype._renderBack=function(){var t=this.get("backPadding"),e=this.get("background");this.renderBack(t,e)},e.prototype._formatItemValue=function(t){var e=this.get("itemFormatter");return e&&(t=e.call(this,t)),t},e.prototype._getNextX=function(){var t=this.get("layout"),e=this.get("itemGap"),n=this.get("itemsGroup"),r=this.get("itemWidth"),o=n.get("children"),i=0;return"horizontal"===t&&l.each(o,function(t){i+=(r||t.getBBox().width)+e}),i},e.prototype._getNextY=function(){var t=this.get("itemMarginBottom"),e=this.get("titleShape")?this.get("titleGap"):0,n=this.get("layout"),r=this.get("itemsGroup"),o=this.get("titleShape"),i=r.get("children"),a=e;return o&&(a+=o.getBBox().height),"vertical"===n&&l.each(i,function(e){a+=e.getBBox().height+t}),a},e.prototype._addItem=function(t){var e=this.get("itemsGroup"),n=this._getNextX(),r=this._getNextY(),o=this.get("unCheckColor"),i=e.addGroup({x:n,y:r,value:t.value,checked:t.checked});i.set("viewId",e.get("viewId"));var a=this.get("textStyle"),s=this.get("_wordSpaceing"),u=0;if(t.marker){var c=l.mix({},t.marker,{x:t.marker.radius+n,y:r});t.checked||(c.fill&&(c.fill=o),c.stroke&&(c.stroke=o));var f=i.addShape("marker",{type:"marker",attrs:c});f.attr("cursor","pointer"),f.name="legend-marker",u+=f.getBBox().width+s}var p=l.mix({},a,{x:u+n,y:r,text:this._formatItemValue(t.value)});t.checked||l.mix(p,{fill:o});var h=i.addShape("text",{attrs:p});h.attr("cursor","pointer"),h.name="legend-text",this.get("appendInfo")&&h.setSilent("appendInfo",this.get("appendInfo"));var d=i.getBBox(),v=this.get("itemWidth"),m=i.addShape("rect",{attrs:{x:n,y:r-d.height/2,fill:"#fff",fillOpacity:0,width:v||d.width,height:d.height}});return m.attr("cursor","pointer"),m.setSilent("origin",t),m.name="legend-item",this.get("appendInfo")&&m.setSilent("appendInfo",this.get("appendInfo")),i.name="legendGroup",i},e.prototype._adjustHorizontal=function(){var t=this.get("itemsGroup"),e=t.get("children"),n=this.get("maxLength"),r=this.get("itemGap"),o=this.get("itemMarginBottom"),i=this.get("titleShape")?this.get("titleGap"):0,a=0,s=0,u=void 0,c=void 0,f=void 0,p=this.get("itemWidth");t.getBBox().width>n&&l.each(e,function(t){f=t.getBBox(),u=p||f.width,c=f.height+o,n-sr&&l.each(n,function(t){h=t.getBBox(),f=h.width,p=h.height,u?d=u+o:f>d&&(d=f+o),r-c-1}return!1},e.prototype._getRange=function(t,e){var n=t+e;return n=n>100?100:n,n=n<0?0:n},e.prototype._updateStatus=function(t,e){var n="x"===t?this.get("width"):this.get("height");t=a.upperFirst(t);var r=this.get("range"),o=this.get("page"+t),i=this.get("currentTarget"),s=this.get("rangeStash"),u=this.get("layout"),c="vertical"===u?-1:1,l=e["page"+t],f=l-o,p=f/n*100*c,h=void 0;r[1]<=r[0]?(this._isElement(i,"minHandleElement")||this._isElement(i,"maxHandleElement"))&&(r[0]=this._getRange(p,r[0]),r[1]=this._getRange(p,r[0])):(this._isElement(i,"minHandleElement")&&(r[0]=this._getRange(p,r[0])),this._isElement(i,"maxHandleElement")&&(r[1]=this._getRange(p,r[1]))),this._isElement(i,"middleHandleElement")&&(h=s[1]-s[0],r[0]=this._getRange(p,r[0]),r[1]=r[0]+h,r[1]>100&&(r[1]=100,r[0]=r[1]-h)),this.emit("sliderchange",{range:r}),this.set("page"+t,l),this._renderUI(),this.get("canvas").draw()},e.prototype._onMouseDown=function(t){var e=t.currentTarget,n=t.event,r=this.get("range");n.stopPropagation(),n.preventDefault(),this.set("pageX",n.pageX),this.set("pageY",n.pageY),this.set("currentTarget",e),this.set("rangeStash",[r[0],r[1]]),this._bindCanvasEvents()},e.prototype._bindCanvasEvents=function(){var t=this.get("canvas").get("containerDOM");this.onMouseMoveListener=c.addEventListener(t,"mousemove",a.wrapBehavior(this,"_onCanvasMouseMove")),this.onMouseUpListener=c.addEventListener(t,"mouseup",a.wrapBehavior(this,"_onCanvasMouseUp"))},e.prototype._onCanvasMouseMove=function(t){"horizontal"===this.get("layout")?this._updateStatus("x",t):this._updateStatus("y",t)},e.prototype._onCanvasMouseUp=function(){this._removeDocumentEvents()},e.prototype._removeDocumentEvents=function(){this.onMouseMoveListener.remove(),this.onMouseUpListener.remove()},e}(u);t.exports=l},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(1),u=n(166),c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return a.mix({},e,{type:"size-legend",width:100,height:200,_circleStyle:{stroke:"#4E7CCC",fill:"#fff",fillOpacity:0},textStyle:{fill:"#333",textAlign:"start",textBaseline:"middle",fontFamily:s.fontFamily}})},e.prototype._renderSliderShape=function(){var t=this.get("slider"),e=t.get("backgroundElement"),n=this.get("width"),r=this.get("height"),o=this.get("inRange"),i=this.get("layout"),s="vertical"===i?[[0,0],[n,0],[n,r]]:[[0,r],[n,0],[n,r]];return this._addBackground(e,"Polygon",a.mix({points:s},o))},e.prototype._addCircle=function(t,e,n,r,o){var i=this.addGroup(),s=this.get("_circleStyle"),u=this.get("textStyle"),c=this.get("titleShape"),l=this.get("titleGap");c&&(l+=c.getBBox().height),i.addShape("circle",{attrs:a.mix({x:t,y:e+l,r:0===n?1:n},s)}),i.addShape("text",{attrs:a.mix({x:o+5,y:e+l,text:0===r?"0":r},u)})},e.prototype._renderBackground=function(){var t=this,e=1*this.get("firstItem").attrValue,n=1*this.get("lastItem").attrValue,r=(e+n)/2;t._addCircle(n,n,n,r,2*n),t._addCircle(n,2*n+8+r,r,(e+r)/2,2*n),t._addCircle(n,2*(n+8+r)+e,e,e,2*n)},e}(u);t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(0),s=n(2),u=s.Group,c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){return{type:"plotBack",padding:null,background:null,plotRange:null,plotBackground:null}},e.prototype._beforeRenderUI=function(){this._calculateRange()},e.prototype._renderUI=function(){this._renderBackground(),this._renderPlotBackground()},e.prototype._renderBackground=function(){var t=this,e=t.get("background");if(e){var n=this.get("canvas"),r=t.get("width")||n.get("width"),o=t.get("height")||n.get("height"),i={x:0,y:0,width:r,height:o},s=t.get("backgroundShape");s?s.attr(i):(s=this.addShape("rect",{attrs:a.mix(i,e)}),this.set("backgroundShape",s))}},e.prototype._renderPlotBackground=function(){var t=this,e=t.get("plotBackground");if(e){var n=t.get("plotRange"),r=n.br.x-n.bl.x,o=n.br.y-n.tr.y,i=n.tl,s={x:i.x,y:i.y,width:r,height:o},u=t.get("plotBackShape");u?u.attr(s):(e.image?(s.img=e.image,u=t.addShape("image",{attrs:s})):(a.mix(s,e),u=t.addShape("rect",{attrs:s})),t.set("plotBackShape",u))}},e.prototype._convert=function(t,e){if(a.isString(t))if("auto"===t)t=0;else if(-1!==t.indexOf("%")){var n=this.get("canvas"),r=this.get("width")||n.get("width"),o=this.get("height")||n.get("height");t=parseInt(t,10)/100,t=e?t*r:t*o}return t},e.prototype._calculateRange=function(){var t=this,e=t.get("plotRange");a.isNil(e)&&(e={});var n=t.get("padding"),r=this.get("canvas"),o=t.get("width")||r.get("width"),i=t.get("height")||r.get("height"),s=a.toAllPadding(n),u=t._convert(s[0],!1),c=t._convert(s[1],!0),l=t._convert(s[2],!1),f=t._convert(s[3],!0),p=Math.min(f,o-c),h=Math.max(f,o-c),d=Math.min(i-l,u),v=Math.max(i-l,u);e.tl={x:p,y:d},e.tr={x:h,y:d},e.bl={x:p,y:v},e.br={x:h,y:v},e.cc={x:(h+p)/2,y:(v+d)/2},this.set("plotRange",e)},e.prototype.repaint=function(){return this._calculateRange(),this._renderBackground(),this._renderPlotBackground(),this},e}(u);t.exports=c},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e){return t.getElementsByClassName(e)[0]}function s(t,e,n,r,o){var i=n.clientWidth,a=n.clientHeight;return t+i+20>r?(t-=i+20,t=t<0?0:t):t+=20,e+a+20>o?(e-=a+20,e=t<0?0:e):e+=20,[t,e]}function u(t,e,n,r,o){var i=r.clientWidth,a=r.clientHeight,s=0,u=0,c=20;if(o){var l=o.getBBox();s=l.width,u=l.height,t=l.x,e=l.y,c=5}switch(n){case"inside":t=t+s/2-i/2,e=e+u/2-a/2;break;case"top":t=t+s/2-i/2,e=e-a-c;break;case"left":t=t-i-c,e=e+u/2-a/2;break;case"right":t=t+s+c,e=e+u/2-a/2;break;case"bottom":default:t=t+s/2-i/2,e=e+u+c}return[t,e]}function c(t,e,n,r){var o=n.clientWidth,i=n.clientHeight;return t+o>r.tr.x&&(t-=o+40),tr.bl.y&&(e-=i+40),e
      ',itemTpl:'
    • {name}: {value}
    • ',inPlot:!0,follow:!0,enterable:!1}},e.prototype._initTooltipWrapper=function(){var t=this,e=t.get("containerTpl"),n=t.get("canvas").get("el").parentNode,r=void 0;if(/^\#/.test(e)){var o=e.replace("#","");r=document.getElementById(o)}else r=d.createDom(e),d.modifyCSS(r,t.get("g2-tooltip")),n.appendChild(r),n.style.position="relative";t.set("container",r)},e.prototype._init=function(){var t=this.get("crosshairs"),e=this.get("frontPlot"),n=this.get("backPlot"),r=void 0;t&&("rect"===t.type?(this.set("crosshairs",l.deepMix({},p.tooltipCrosshairsRect,t)),r=n.addGroup({zIndex:0})):(this.set("crosshairs",l.deepMix({},p.tooltipCrosshairsLine,t)),r=e.addGroup())),this.set("crosshairsGroup",r),this._initTooltipWrapper()},e.prototype._clearDom=function(){var t=this.get("container"),e=a(t,"g2-tooltip-title"),n=a(t,"g2-tooltip-list");e&&(e.innerHTML=""),n&&(n.innerHTML="")},e.prototype._addItem=function(t,e){var n=this.get("itemTpl"),r=l.substitute(n,l.mix({index:e},t)),o=d.createDom(r);d.modifyCSS(o,this.get("g2-tooltip-list-item"));var i=a(o,"g2-tooltip-marker");return i&&d.modifyCSS(i,this.get("g2-tooltip-marker")),o},e.prototype._renderTooltip=function(){var t=this,e=t.get("showTitle"),n=t.get("titleContent"),r=t.get("container"),o=a(r,"g2-tooltip-title"),i=a(r,"g2-tooltip-list"),s=t.get("items");t._clearDom(),o&&e&&(d.modifyCSS(o,t.get("g2-tooltip-title")),o.innerHTML=n),i&&(d.modifyCSS(i,t.get("g2-tooltip-list")),l.each(s,function(e,n){i.appendChild(t._addItem(e,n))}))},e.prototype._clearCrosshairsGroup=function(){var t=this.get("crosshairsGroup");this.set("crossLineShapeX",null),this.set("crossLineShapeY",null),this.set("crosshairsRectShape",null),t.clear()},e.prototype._renderCrosshairs=function(){var t=this.get("crosshairs"),e=this.get("canvas"),n=this.get("plotRange"),r=this.get("isTransposed");if(t)switch(this._clearCrosshairsGroup(),t.type){case"x":this._renderHorizontalLine(e,n);break;case"y":this._renderVerticalLine(e,n);break;case"cross":this._renderHorizontalLine(e,n),this._renderVerticalLine(e,n);break;case"rect":this._renderBackground(e,n);break;default:r?this._renderHorizontalLine(e,n):this._renderVerticalLine(e,n)}},e.prototype._addCrossLineShape=function(t,e){var n=this.get("crosshairsGroup"),r=n.addShape("line",{attrs:t});return r.hide(),this.set("crossLineShape"+e,r),r},e.prototype._renderVerticalLine=function(t,e){var n=this.get("crosshairs"),r=n.style,o=l.mix({x1:0,y1:e?e.bl.y:t.get("height"),x2:0,y2:e?e.tl.y:0},r);this._addCrossLineShape(o,"Y")},e.prototype._renderHorizontalLine=function(t,e){var n=this.get("crosshairs"),r=n.style,o=l.mix({x1:e?e.bl.x:t.get("width"),y1:0,x2:e?e.br.x:0,y2:0},r);this._addCrossLineShape(o,"X")},e.prototype._renderBackground=function(t,e){var n=this.get("crosshairs"),r=n.style,o=this.get("crosshairsGroup"),i=l.mix({x:e?e.tl.x:0,y:e?e.tl.y:t.get("height"),width:e?e.br.x-e.bl.x:t.get("width"),height:e?Math.abs(e.tl.y-e.bl.y):t.get("height")},r),a=o.addShape("rect",{attrs:i});return a.hide(),this.set("crosshairsRectShape",a),a},e.prototype.isContentChange=function(t,e){var n=this.get("titleContent"),r=this.get("items"),o=!(t===n&&r.length===e.length);return o||l.each(e,function(t,e){var n=r[e];if(o=t.value!==n.value||t.color!==n.color||t.name!==n.name||t.title!==n.title)return!1}),o},e.prototype.setContent=function(t,e){var n=+new Date;return this.set("items",e),this.set("titleContent",t),this.set("timeStamp",n),this._renderTooltip(),this},e.prototype.setMarkers=function(t,e){var n=this,r=n.get("markerGroup"),o=n.get("frontPlot");r?r.clear():(r=o.addGroup({zIndex:1,capture:!1}),n.set("markerGroup",r)),l.each(t,function(t){r.addShape("marker",{color:t.color,attrs:l.mix({},e,{x:t.x,y:t.y})})}),this.set("markerItems",t)},e.prototype.clearMarkers=function(){var t=this.get("markerGroup");t&&t.clear()},e.prototype.setPosition=function(t,e,n){var r=this.get("container"),o=this.get("crossLineShapeX"),i=this.get("crossLineShapeY"),a=this.get("crosshairsRectShape"),f=t,p=e,h=this.get("canvas").get("el"),v=d.getWidth(h),m=d.getHeight(h),g=this.get("offset"),y=void 0;if(this.get("position")?(y=u(t,e,this.get("position"),r,n),t=y[0],e=y[1]):this.get("position")||(y=s(t,e,r,v,m),t=y[0],e=y[1]),this.get("inPlot")){y=c(t,e,r,this.get("plotRange")),t=y[0],e=y[1]}if(this.get("x")!==t||this.get("y")!==e){var b=this.get("markerItems");if(l.isEmpty(b)||(f=b[0].x,p=b[0].y),i&&i.move(f,0),o&&o.move(0,p),a){var x=this.get("isTransposed"),_=this.get("items"),w=_[0],O=_[_.length-1],S=x?"y":"x",C=x?"height":"width",k=w[S];if(_.length>1&&w[S]>O[S]&&(k=O[S]),this.get("crosshairs").width)a.attr(S,k-this.get("crosshairs").width/2),a.attr(C,this.get("crosshairs").width);else if(l.isArray(w.point[S])&&!w.size){var j=w.point[S][1]-w.point[S][0];a.attr(S,w.point[S][0]),a.attr(C,j)}else g=3*w.size/4,a.attr(S,k-g),1===_.length?a.attr(C,3*w.size/2):a.attr(C,Math.abs(O[S]-w[S])+2*g)}var E=this.get("follow");r.style.left=E?t+"px":0,r.style.top=E?e+"px":0}},e.prototype.show=function(){var e=this.get("crossLineShapeX"),n=this.get("crossLineShapeY"),r=this.get("crosshairsRectShape"),o=this.get("markerGroup"),i=this.get("container"),a=this.get("canvas");e&&e.show(),n&&n.show(),r&&r.show(),o&&o.show(),t.prototype.show.call(this),i.style.visibility="visible",a.draw()},e.prototype.hide=function(){var e=this,n=e.get("container"),r=e.get("crossLineShapeX"),o=e.get("crossLineShapeY"),i=this.get("crosshairsRectShape"),a=e.get("markerGroup"),s=e.get("canvas");n.style.visibility="hidden",r&&r.hide(),o&&o.hide(),i&&i.hide(),a&&a.hide(),t.prototype.hide.call(this),s.draw()},e.prototype.destroy=function(){var e=this,n=e.get("crossLineShapeX"),r=e.get("crossLineShapeY"),o=e.get("markerGroup"),i=e.get("crosshairsRectShape"),a=e.get("container"),s=e.get("containerTpl");a&&!/^\#/.test(s)&&a.parentNode.removeChild(a),n&&n.remove(),r&&r.remove(),o&&o.remove(),i&&i.remove(),t.prototype.destroy.call(this)},e}(f);t.exports=v},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=n(0),i=n(32),a=i.Guide,s=n(1),u=function(){function t(e){r(this,t),this.guides=[],this.options=[],this.xScales=null,this.yScales=null,this.container=null,o.mix(this,e)}return t.prototype._creatGuides=function(){var t=this,e=this.options,n=this.xScales,r=this.yScales;return e.forEach(function(e){var i=e.type,u=o.deepMix({xScales:n,yScales:r},s.guide[i],e);i=o.upperFirst(i);var c=new a[i](u);t.guides.push(c)}),t.guides},t.prototype.line=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(o.mix({type:"line"},t)),this},t.prototype.arc=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(o.mix({type:"arc"},t)),this},t.prototype.text=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(o.mix({type:"text"},t)),this},t.prototype.image=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(o.mix({type:"image"},t)),this},t.prototype.region=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(o.mix({type:"region"},t)),this},t.prototype.html=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this.options.push(o.mix({type:"html"},t)),this},t.prototype.render=function(t){var e=this,n=e._creatGuides(),r=e.backContainer;o.each(n,function(n){n.top&&(r=e.frontContainer),n.render(t,r)})},t.prototype.clear=function(){this.options=[],this.reset()},t.prototype.changeVisible=function(t){var e=this.guides;o.each(e,function(e){e.setVisible(t)})},t.prototype.reset=function(){var t=this.guides;o.each(t,function(t){t.remove()}),this.guides=[]},t}();t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e,n){return!a.isNil(n)&&(t=n.translate(t),e=n.translate(e),n.isCategory?t===e:Math.abs(t-e)<=1)}function i(t,e){var n=void 0;return a.each(t,function(t){if(t.get("visible")){if(t.getYScale().field===e)return void(n=t)}}),n}var a=n(0),s=n(1),u=n(32),c=u.Legend,l=n(76),f=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,p=function(){function t(e){r(this,t),this.options={},a.mix(this,e),this.clear();var n=this.chart;this.container=n.get("frontPlot"),this.plotRange=n.get("plotRange")}return t.prototype.clear=function(){var t=this.legends;this.backRange=null,a.each(t,function(t){a.each(t,function(t){t.remove()})}),this.legends={}},t.prototype.getBackRange=function(){var t=this.backRange;if(!t){if(t=this.chart.get("backPlot").getBBox(),t.minX===1/0){var e=this.plotRange;t={minX:e.tl.x,minY:e.tl.y,maxX:e.br.x,maxY:e.br.y}}this.backRange=t}return t},t.prototype._isFieldInView=function(t,e,n){var r=!1,o=n.get("scales"),i=o[t];return i&&i.values&&(r=a.inArray(i.values,e)),r},t.prototype._bindClickEvent=function(t,e,n){var r=this,o=r.chart,i=o.get("views"),s=e.field,u=r.options;t.on("itemclick",function(e){if(u.onClick)u.onClick(e);else{var c=e.item,l=e.checked,f="single"===t.get("selectedMode"),p=c.dataValue;l?(n.push(p),r._isFieldInView(s,p,o)&&o.filter(s,function(t){return f?t===p:a.inArray(n,t)}),a.each(i,function(t){r._isFieldInView(s,p,t)&&t.filter(s,function(t){return f?t===p:a.inArray(n,t)})})):f||(a.Array.remove(n,p),r._isFieldInView(s,p,o)&&o.filter(s,function(t){return a.inArray(n,t)}),a.each(i,function(t){r._isFieldInView(s,p,t)&&t.filter(s,function(t){return a.inArray(n,t)})})),o.set("keepLegend",!0),o.set("keepPadding",!0),o.repaint(),o.set("keepPadding",!1),o.set("keepLegend",!1)}})},t.prototype._filterLabels=function(t,e,n){if(t.get("gLabel"))t.get("gLabel").set("visible",n);else{var r=e.get("labelCfg");if(r&&r.fields&&r.fields.length>0){var o=e.getXScale(),i=e.getYScale(),s=o.field,u=i.field,c=t.get("origin")._origin,l=e.get("labelContainer"),f=l.get("labelsGroup").get("children");a.each(f,function(e){var r=e.get("origin")||[];r[s]===c[s]&&r[u]===c[u]&&(e.set("visible",n),t.set("gLabel",e))})}}},t.prototype._bindFilterEvent=function(t,e){var n=this,r=this.chart,o=e.field;t.on("itemfilter",function(t){var e=t.range;r.filterShape(function(t,r,i){if(t[o]){var a=t[o]>=e[0]&&t[o]<=e[1];return n._filterLabels(r,i,a),a}return!0});for(var i=r.getAllGeoms()||[],a=0;a1){var x=Array(v.callback.length-1).fill("");p.color=v.mapping.apply(v,[f].concat(x)).join("")||s.defaultColor}else p.color=v.mapping(f).join("")||s.defaultColor;if(m&&b)if(b.callback&&b.callback.length>1){var _=Array(b.callback.length-1).fill("");y=b.mapping.apply(b,[f].concat(_)).join("")}else y=b.mapping(f).join("");var w=l.getShapeFactory(g),O=w.getMarkerCfg(y,p);a.isFunction(y)&&(O.symbol=y),d.push({value:u,dataValue:f,checked:h,marker:O})});var O=a.deepMix({},s.legend[o],f[u]||f,{viewId:b.get("_id"),maxLength:w,items:d});O.title&&a.deepMix(O,{title:{text:t.alias||t.field}});var S=h.addGroup(c.Category,O);return i._bindClickEvent(S,t,r),p[o].push(S),S},t.prototype._addContinuousLegend=function(t,e,n){var r=this,o=r.legends;o[n]=o[n]||[];var i=r.container,u=t.field,l=t.getTicks(),f=[],p=void 0,h=void 0,d=void 0;a.each(l,function(n){var r=n.value,o=t.invert(r),i=e.mapping(o).join("");f.push({value:n.tickValue,attrValue:i,scaleValue:r}),0===r&&(h=!0),1===r&&(d=!0)}),h||f.push({value:t.min,attrValue:e.mapping(0).join(""),scaleValue:0}),d||f.push({value:t.max,attrValue:e.mapping(1).join(""),scaleValue:1});var v=r.options,m=s.legend[n];(v&&!1===v.slidable||v[u]&&!1===v[u].slidable)&&(m=a.mix({},m,s.legend.gradient));var g=a.deepMix({},m,v[u]||v,{items:f,attr:e,numberFormatter:t.formatter});return g.title&&a.deepMix(g,{title:{text:t.alias||t.field}}),"color"===e.type?p=i.addGroup(c.Color,g):"size"===e.type&&(p=i.addGroup(c.Size,g)),r._bindFilterEvent(p,t),o[n].push(p),p},t.prototype.addLegend=function(t,e,n,r){var o=this,i=o.options,a=t.field,u=i[a];if(!1===u)return null;if(u&&u.custom)o.addCustomLegend(a);else{var c=i.position||s.defaultLegendPosition;u&&u.position&&(c=u.position);var l=void 0;l=t.isLinear?o._addContinuousLegend(t,e,c):o._addCategroyLegend(t,e,n,r,c),o._bindHoverEvent(l,a)}},t.prototype.addCustomLegend=function(t){var e=this,n=e.chart,r=e.container,o=e.options;t&&(o=o[t]);var u=o.position||s.defaultLegendPosition,l=e.legends;l[u]=l[u]||[];var f=o.items;if(f){var p=n.getAllGeoms();a.each(f,function(t){var e=i(p,t.value);a.isObject(t.marker)?t.marker.radius=t.marker.radius||4.5:t.marker={symbol:t.marker?t.marker:"circle",fill:t.fill,radius:4.5},t.checked=!!a.isNil(t.checked)||t.checked,t.geom=e});var h=n.get("canvas"),d=e.plotRange,v="right"===u||"left"===u?d.bl.y-d.tr.y:h.get("width"),m=a.deepMix({},s.legend[u],o,{maxLength:v,items:f}),g=r.addGroup(c.Category,m);l[u].push(g),g.on("itemclick",function(t){o.onClick&&o.onClick(t)}),e._bindHoverEvent(g)}},t.prototype.alignLegends=function(){var t=this,e=t.legends;return a.each(e,function(e,n){var r=t._getRegion(e);a.each(e,function(o,i){var a=e[i-1];o.get("useHtml")&&!o.get("autoPosition")||t._alignLegend(o,a,r,n)})}),this},t}();t.exports=p},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){var n=-1;return u.each(t,function(t,r){if(t.title===e.title&&t.name===e.name&&t.value===e.value&&t.color===e.color)return n=r,!1}),n}function i(t,e){if(!t)return!1;var n="";return!!t.className&&(n=u.isNil(t.className.baseVal)?t.className:t.className.baseVal,-1!==n.indexOf(e))}function a(t,e){for(var n=t.parentNode,r=!1;n&&n!==document.body;){if(i(n,e)){r=!0;break}n=n.parentNode}return r}function s(t){var e=[];return u.each(t,function(t){var n=o(e,t);-1===n?e.push(t):e[n]=t}),e}var u=n(0),c=n(1),l=n(32),f=l.Tooltip,p=n(2).MatrixUtil,h=p.vec2,d=["line","area","path","areaStack"],v=["line","area"],m=function(){function t(e){r(this,t),u.assign(this,e),this.timeStamp=0}return t.prototype._normalizeEvent=function(t){var e=this.chart,n=this._getCanvas(),r=n.getPointByClient(t.clientX,t.clientY),o=n.get("pixelRatio");r.x=r.x/o,r.y=r.y/o;var i=e.getViewsByPoint(r);return r.views=i,r},t.prototype._getCanvas=function(){return this.chart.get("canvas")},t.prototype._getTriggerEvent=function(){var t=this.options,e=t.triggerOn,n=void 0;return e&&"mousemove"!==e?"click"===e?n="plotclick":"none"===e&&(n=null):n="plotmove",n},t.prototype._getDefaultTooltipCfg=function(){var t=this,e=t.options,n=u.mix({},c.tooltip),r=t.chart,o=r.getAllGeoms().filter(function(t){return t.get("visible")}),i=[];u.each(o,function(t){var e=t.get("type"),n=t.get("adjusts"),r=!1;n&&u.each(n,function(t){if("symmetric"===t.type||"Symmetric"===t.type)return r=!0,!1}),-1!==u.indexOf(i,e)||r||i.push(e)});var a=void 0;return o.length&&o[0].get("coord")&&"cartesian"===o[0].get("coord").type&&1===i.length&&("interval"===i[0]&&!1!==e.shared?a={zIndex:0,crosshairs:c.tooltipCrosshairsRect}:u.indexOf(v,i[0])>-1&&(a={crosshairs:c.tooltipCrosshairsLine})),u.mix(n,a,{isTransposed:!(!o.length||!o[0].get("coord"))&&o[0].get("coord").isTransposed})},t.prototype._bindEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.on(e,u.wrapBehavior(this,"onMouseMove")),t.on("plotleave",u.wrapBehavior(this,"onMouseOut")))},t.prototype._offEvent=function(){var t=this.chart,e=this._getTriggerEvent();e&&(t.off(e,u.getWrapBehavior(this,"onMouseMove")),t.off("plotleave",u.getWrapBehavior(this,"onMouseOut")))},t.prototype._setTooltip=function(t,e,n,r){var o=this,i=o.tooltip,a=o.prePoint;if(!a||a.x!==t.x||a.y!==t.y){e=s(e),o.prePoint=t;var l=o.chart,f=u.isArray(t.x)?t.x[t.x.length-1]:t.x,p=u.isArray(t.y)?t.y[t.y.length-1]:t.y;i.get("visible")||l.emit("tooltip:show",{x:f,y:p,tooltip:i});var h=e[0],d=h.title||h.name;i.isContentChange(d,e)&&(l.emit("tooltip:change",{tooltip:i,x:f,y:p,items:e}),d=e[0].title||e[0].name,i.setContent(d,e),u.isEmpty(n)?i.clearMarkers():!0===o.options.hideMarkers?i.set("markerItems",n):i.setMarkers(n,c.tooltipMarker)),i.setPosition(f,p,r),i.show()}},t.prototype.hideTooltip=function(){var t=this.tooltip,e=this.chart,n=this._getCanvas();this.prePoint=null,t.hide(),e.emit("tooltip:hide",{tooltip:t}),n.draw()},t.prototype.onMouseMove=function(t){if(!u.isEmpty(t.views)){var e=this.timeStamp,n=+new Date,r={x:t.x,y:t.y};if(n-e>16){var o=void 0;t.shape&&u.inArray(["point","interval","polygon","schema"],t.shape.name)&&(o=t.shape),this.showTooltip(r,t.views,o),this.timeStamp=n}}},t.prototype.onMouseOut=function(t){var e=this.tooltip,n=this._getCanvas();e.get("visible")&&(t&&t.target!==n||t&&t.toElement&&(i(t.toElement,"g2-tooltip")||a(t.toElement,"g2-tooltip"))||this.hideTooltip())},t.prototype.renderTooltip=function(){var t=this;if(!t.tooltip){var e=t.chart,n=t._getCanvas(),r=t._getDefaultTooltipCfg(),o=t.options;o=u.deepMix({plotRange:e.get("plotRange"),capture:!1,canvas:n,frontPlot:e.get("frontPlot"),backPlot:e.get("backPlot")},r,o),o.crosshairs&&"rect"===o.crosshairs.type&&(o.zIndex=0),o.visible=!1,!1===o.shared&&u.isNil(o.position)&&(o.position="top");var i=new f(o);t.tooltip=i;var a=t._getTriggerEvent();if(!i.get("enterable")&&"plotmove"===a){var s=i.get("container");s&&(s.onmousemove=function(n){var r=t._normalizeEvent(n);e.emit(a,r)})}t._bindEvent()}},t.prototype.showTooltip=function(t,e,n){var r=this;if(!u.isEmpty(e)&&t){this.tooltip||this.renderTooltip();var o=r.options,i=[],a=[];if(u.each(e,function(e){if(!e.get("tooltipEnable"))return!0;var n=e.get("geoms"),r=e.get("coord");u.each(n,function(e){var n=e.get("type");if(e.get("visible")&&!1!==e.get("tooltipCfg")){var s=e.get("dataArray");if(e.isShareTooltip()||!1===o.shared&&u.inArray(["area","line","path"],n))u.each(s,function(s){var c=e.findPoint(t,s);if(c){var l=e.getTipItems(c,o.title);-1!==u.indexOf(d,n)&&u.each(l,function(t){var e=t.point;if(e&&e.x&&e.y){var n=u.isArray(e.x)?e.x[e.x.length-1]:e.x,o=u.isArray(e.y)?e.y[e.y.length-1]:e.y;e=r.applyMatrix(n,o,1),t.x=e[0],t.y=e[1],t.showMarker=!0,i.push(t)}}),a=a.concat(l)}});else{var c=e.get("shapeContainer"),l=c.get("canvas"),f=l.get("pixelRatio"),p=c.getShape(t.x*f,t.y*f);p&&p.get("visible")&&p.get("origin")&&(a=e.getTipItems(p.get("origin"),o.title))}}}),u.each(a,function(t){var e=t.point,n=u.isArray(e.x)?e.x[e.x.length-1]:e.x,o=u.isArray(e.y)?e.y[e.y.length-1]:e.y;e=r.applyMatrix(n,o,1),t.x=e[0],t.y=e[1]})}),a.length){var s=a[0];if(!a.every(function(t){return t.title===s.title})){var c=s,l=1/0;a.forEach(function(e){var n=h.distance([t.x,t.y],[e.x,e.y]);n1){var f=a[0],p=Math.abs(t.y-f.y);u.each(a,function(e){Math.abs(t.y-e.y)<=p&&(f=e,p=Math.abs(t.y-e.y))}),f&&f.x&&f.y&&(i=[f]),a=[f]}r._setTooltip(t,a,i,n)}else r.hideTooltip()}},t.prototype.clear=function(){var t=this.tooltip;t&&t.destroy(),this.tooltip=null,this.prePoint=null,this._offEvent()},t}();t.exports=m},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(a.isNil(t)||a.isNil(e))return!1;var n=t.get("origin"),r=e.get("origin");return a.isNil(n)&&a.isNil(r)?a.isEqual(t,e):a.isEqual(n,r)}function i(t){t.shape&&t.shape.get("origin")&&(t.data=t.shape.get("origin"))}var a=n(0),s=function(){function t(e){r(this,t),this.view=null,this.canvas=null,a.assign(this,e),this._init()}return t.prototype._init=function(){this.pixelRatio=this.canvas.get("pixelRatio")},t.prototype._getShapeEventObj=function(t){return{x:t.x/this.pixelRatio,y:t.y/this.pixelRatio,target:t.target,toElement:t.event.toElement||t.event.relatedTarget}},t.prototype._getShape=function(t,e){return this.view.get("canvas").getShape(t,e)},t.prototype._getPointInfo=function(t){var e=this.view,n={x:t.x/this.pixelRatio,y:t.y/this.pixelRatio},r=e.getViewsByPoint(n);return n.views=r,n},t.prototype._getEventObj=function(t,e,n){return{x:e.x,y:e.y,target:t.target,toElement:t.event.toElement||t.event.relatedTarget,views:n}},t.prototype.bindEvents=function(){var t=this.canvas;t.on("mousedown",a.wrapBehavior(this,"onDown")),t.on("mousemove",a.wrapBehavior(this,"onMove")),t.on("mouseleave",a.wrapBehavior(this,"onOut")),t.on("mouseup",a.wrapBehavior(this,"onUp")),t.on("click",a.wrapBehavior(this,"onClick")),t.on("dblclick",a.wrapBehavior(this,"onClick")),t.on("touchstart",a.wrapBehavior(this,"onTouchstart")),t.on("touchmove",a.wrapBehavior(this,"onTouchmove")),t.on("touchend",a.wrapBehavior(this,"onTouchend"))},t.prototype._triggerShapeEvent=function(t,e,n){if(t&&t.name&&!t.get("destroyed")){var r=this.view;if(r.isShapeInView(t)){var o=t.name+":"+e;n.view=r,n.appendInfo=t.get("appendInfo"),r.emit(o,n);var i=r.get("parent");i&&i.emit(o,n)}}},t.prototype.onDown=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,i(n),e.emit("mousedown",n),this._triggerShapeEvent(this.currentShape,"mousedown",n)},t.prototype.onMove=function(t){var e=this,n=e.view,r=e.currentShape;r&&r.get("destroyed")&&(r=null,e.currentShape=null);var a=e._getShape(t.x,t.y),s=e._getShapeEventObj(t);if(s.shape=a,i(s),n.emit("mousemove",s),e._triggerShapeEvent(a,"mousemove",s),r&&!o(r,a)){var u=e._getShapeEventObj(t);u.shape=r,u.toShape=a,i(u),e._triggerShapeEvent(r,"mouseleave",u)}if(a&&!o(r,a)){var c=e._getShapeEventObj(t);c.shape=a,c.fromShape=r,i(c),e._triggerShapeEvent(a,"mouseenter",c)}e.currentShape=a;var l=e._getPointInfo(t);0===(e.curViews||[]).length&&l.views.length&&n.emit("plotenter",e._getEventObj(t,l,l.views)),l.views.length&&(s=e._getEventObj(t,l,l.views),s.shape=a,i(s),n.emit("plotmove",s)),e.curViews=l.views},t.prototype.onOut=function(t){var e=this,n=e.view,r=e._getPointInfo(t),o=e.curViews||[],i=e._getEventObj(t,r,o);0!==r.views.length||i.toElement&&"CANVAS"===i.toElement.tagName||n.emit("plotleave",i)},t.prototype.onUp=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,e.emit("mouseup",n),this._triggerShapeEvent(this.currentShape,"mouseup",n)},t.prototype.onClick=function(t){var e=this,n=e.view,r=e._getShape(t.x,t.y),o=e._getShapeEventObj(t);o.shape=r,i(o),n.emit("click",o),e._triggerShapeEvent(r,t.type,o),e.currentShape=r;var s=e._getPointInfo(t),u=s.views;if(!a.isEmpty(u)){var c=e._getEventObj(t,s,u);if(e.currentShape){var l=e.currentShape;c.shape=l,i(c)}n.emit("plotclick",c),"dblclick"===t.type&&(n.emit("plotdblclick",c),n.emit("dblclick",o))}},t.prototype.onTouchstart=function(t){var e=this.view,n=this._getShape(t.x,t.y),r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("touchstart",r),this._triggerShapeEvent(n,"touchstart",r),this.currentShape=n},t.prototype.onTouchmove=function(t){var e=this.view,n=this._getShape(t.x,t.y),r=this._getShapeEventObj(t);r.shape=n,i(r),e.emit("touchmove",r),this._triggerShapeEvent(n,"touchmove",r),this.currentShape=n},t.prototype.onTouchend=function(t){var e=this.view,n=this._getShapeEventObj(t);n.shape=this.currentShape,i(n),e.emit("touchend",n),this._triggerShapeEvent(this.currentShape,"touchend",n)},t.prototype.clearEvents=function(){var t=this.canvas;t.off("mousemove",a.getWrapBehavior(this,"onMove")),t.off("mouseleave",a.getWrapBehavior(this,"onOut")),t.off("mousedown",a.getWrapBehavior(this,"onDown")),t.off("mouseup",a.getWrapBehavior(this,"onUp")),t.off("click",a.getWrapBehavior(this,"onClick")),t.off("dblclick",a.getWrapBehavior(this,"onClick")),t.off("touchstart",a.getWrapBehavior(this,"onTouchstart")),t.off("touchmove",a.getWrapBehavior(this,"onTouchmove")),t.off("touchend",a.getWrapBehavior(this,"onTouchend"))},t}();t.exports=s},function(t,e,n){function r(t,e){var n=[];if(!1===t.get("animate"))return[];var o=t.get("children");return u.each(o,function(t){if(t.isGroup)n=n.concat(r(t,e));else if(t.isShape&&t._id){var o=t._id;o=o.split("-")[0],o===e&&n.push(t)}}),n}function o(t){var e={};return u.each(t,function(t){if(t._id&&!t.isClip){var n=t._id;e[n]={_id:n,type:t.get("type"),attrs:u.cloneDeep(t.__attrs),name:t.name,index:t.get("index"),animateCfg:t.get("animateCfg"),coord:t.get("coord")}}}),e}function i(t,e,n,r){return r?c.Action[n][r]:c.getAnimation(t,e,n)}function a(t,e,n){var r=c.getAnimateCfg(t,e);return n&&n[e]?u.deepMix({},r,n[e]):r}function s(t,e,n,r){var o=void 0,s=void 0,c=!1;if(r){var l=[],f=[];u.each(e,function(e){var n=t[e._id];n?(e.setSilent("cacheShape",n),l.push(e),delete t[e._id]):f.push(e)}),u.each(t,function(t){var e=t.name,r=t.coord,l=t._id,f=t.attrs,h=t.index,d=t.type;if(s=a(e,"leave",t.animateCfg),o=i(e,r,"leave",s.animation),u.isFunction(o)){var v=n.addShape(d,{attrs:f,index:h});if(v._id=l,v.name=e,r&&"label"!==e){var m=v.getMatrix(),g=p.multiply([],m,r.matrix);v.setMatrix(g)}c=!0,o(v,s,r)}}),u.each(l,function(t){var e=t.name,n=t.get("coord"),r=t.get("cacheShape").attrs;if(!u.isEqual(r,t.__attrs)){if(s=a(e,"update",t.get("animateCfg")),o=i(e,n,"update",s.animation),u.isFunction(o))o(t,s,n);else{var l=u.cloneDeep(t.__attrs);t.attr(r),t.animate(l,s.duration,s.easing,function(){t.setSilent("cacheShape",null)})}c=!0}}),u.each(f,function(t){var e=t.name,n=t.get("coord");s=a(e,"enter",t.get("animateCfg")),o=i(e,n,"enter",s.animation),u.isFunction(o)&&(o(t,s,n),c=!0)})}else u.each(e,function(t){var e=t.name,n=t.get("coord");s=a(e,"appear",t.get("animateCfg")),o=i(e,n,"appear",s.animation),u.isFunction(o)&&(o(t,s,n),c=!0)});return c}var u=n(0),c=n(90),l=n(2),f=l.MatrixUtil,p=f.mat3;t.exports={execAnimation:function(t,e){var n=t.get("middlePlot"),i=t.get("backPlot"),a=t.get("_id"),u=t.get("canvas"),c=u.get(a+"caches")||[];0===c.length&&(e=!1);var l=r(n,a),f=r(i,a),p=l.concat(f);u.setSilent(a+"caches",o(p));var h=void 0;(h=e?s(c,p,u,e):s(c,l,u,e))||u.draw()}}},function(t,e,n){var r={};r.Rect=n(167),r.List=n(168),r.Circle=n(488),r.Tree=n(489),r.Mirror=n(490),r.Matrix=n(491),t.exports=r},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function a(t,e,n){return{x:t.x+e*Math.cos(n),y:t.y+e*Math.sin(n)}}var s=n(56),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="circle",e},e.prototype.getRegion=function(t,e){var n=2*Math.PI/t,r=-1*Math.PI/2+n*e,o=.5/(1+1/Math.sin(n/2)),i={x:.5,y:.5},s=a(i,.5-o,r),u=5*Math.PI/4,c=1*Math.PI/4;return{start:a(s,o,u),end:a(s,o,c)}},e.prototype.generateFacets=function(t){var e=this,n=e.fields,r=n[0];if(!r)throw"Please specify for the field for facet!";var o=e.getFieldValues(r,t),i=o.length,a=[];return o.forEach(function(n,s){var u=[{field:r,value:n,values:o}],c=e.getFilter(u),l=t.filter(c),f={type:e.type,colValue:n,colField:r,colIndex:s,cols:i,rows:1,rowIndex:0,data:l,region:e.getRegion(i,s)};a.push(f)}),a},e}(s);t.exports=u},function(t,e,n){function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var a=n(57),s=n(56),u=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.getDefaultCfg=function(){var e=t.prototype.getDefaultCfg.call(this);return e.type="tree",e.line={lineWidth:1,stroke:"#ddd"},e.lineSmooth=!1,e},e.prototype.generateFacets=function(t){var e=this;if(!e.fields.length)throw"Please specify for the fields for facet!";var n=[],r=e.getRootFacet(t);return n.push(r),r.children=e.getChildFacets(t,1,n),e.setRegion(n),n},e.prototype.getRootFacet=function(t){var e=this;return{type:e.type,rows:e.getRows(),rowIndex:0,colIndex:0,colValue:e.rootTitle,data:t}},e.prototype.getRows=function(){return this.fields.length+1},e.prototype.getChildFacets=function(t,e,n){var r=this,o=r.fields;if(!(o.length=0;i--)for(var a=e.getFacetsByLevel(t,i),s=0;s1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];v.default.each(e,function(e){var r=e.prop,o=e.event,i=n[r];if(v.default.isFunction(i))t.on(o,i);else if(v.default.isObject(i))for(var a in i)void 0!==i[a]&&t.on(a+":"+o,i[a])})}function s(t,e){a(t,C,e)}function u(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2],r=arguments[3];v.default.each(e,function(e){var o=e.prop,i=e.event,a=n[o],s=r[o],u=void 0;if(!v.default.shallowEqual(a,s))if(v.default.isFunction(a)&&v.default.isFunction(s))t.off(i,a),t.on(i,s);else if(v.default.isObject(a)&&v.default.isObject(s)){for(u in a)Object.prototype.hasOwnProperty.call(a,u)&&t.off(u+":"+i,a[u]);for(u in s)Object.prototype.hasOwnProperty.call(s,u)&&t.on(u+":"+i,s[u])}})}function c(t,e,n){u(t,C,e,n)}function l(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];v.default.each(e,function(e){var r=e.prop,o=e.event,i=n[r];if(v.default.isFunction(i))t.off(o,i);else if(v.default.isObject(i))for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&t.off(a+":"+o,i[a])})}function f(t,e){l(t,C,e)}Object.defineProperty(e,"__esModule",{value:!0});for(var p=n(1),h=r(p),d=n(2),v=r(d),m=[{prop:"onPlotMove",event:"plotmove"},{prop:"onPlotEnter",event:"plotenter"},{prop:"onPlotLeave",event:"plotleave"},{prop:"onPlotClick",event:"plotclick"},{prop:"onPlotDblClick",event:"plotdblclick"},{prop:"onItemSelected",event:"itemselected"},{prop:"onItemUnselected",event:"itemunselected"},{prop:"onItemSelectedChange",event:"itemselectedchange"},{prop:"onTooltipChange",event:"tooltip:change"},{prop:"onTooltipShow",event:"tooltip:show"},{prop:"onTooltipHide",event:"tooltip:hide"}],g=["mouseenter","mousemove","mouseleave","click","dblclick","mousedown","mouseup","touchstart","touchmove","touchend"],y=["Mouseenter","Mousemove","Mouseleave","Click","Dblclick","Mousedown","Mouseup","Touchstart","Touchmove","Touchend"],b=["point","area","line","path","interval","schema","polygon","edge","axis-title","axis-label","axis-ticks","axis-line","axis-grid","legend-title","legend-item","legend-marker","legend-text","guide-text","guide-region","guide-line","guide-image","label"],x=["onPoint","onArea","onLine","onPath","onInterval","onSchema","onPolygon","onEdge","onAxisTitle","onAxisLabel","onAxisTicks","onAxisLine","onAxisGrid","onLegendTitle","onLegendItem","onLegendMarker","onLegendText","onGuideText","onGuideRegion","onGuideLine","onGuideImage","onLabel"],_=[],w=0;w=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e1?e-1:0),r=1;r2?n-2:0),o=2;o2?r-2:0);for(var o=2;o=15.3.0");var p=function(t){function e(){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return a(e,t),s(e,[{key:"render",value:function(){var t=this.props,e=t.width,n=t.height,r=t.placeholder;return c.default.createElement("div",{style:{width:e,height:n}},r)}}]),e}(c.default.PureComponent||c.default.Component);p.propTypes={width:f.default.oneOfType([f.default.string,f.default.number]),height:f.default.oneOfType([f.default.string,f.default.number]),placeholder:f.default.node},p.defaultProps={width:"100%",placeholder:c.default.createElement("div",{style:{position:"relative",top:"48%",textAlign:"center"}},"\u6682\u65e0\u6570\u636e")},e.default=p},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){var e=!0;return null==t&&(e=!1),!!e}Object.defineProperty(e,"__esModule",{value:!0});var u=Object.assign||function(t){for(var e=1;e` must be wrapped in ``"),this.id=this.context.createId(),this.context.addElement(this.name,this.id,this.props,this.context.getParentInfo(),this.context.getViewId())}}]),e}(f.default);d.contextTypes={addElement:h.default.func,updateElement:h.default.func,deleteElement:h.default.func,createId:h.default.func,getParentInfo:h.default.func,getViewId:h.default.func},d.childContextTypes={addElement:h.default.func,updateElement:h.default.func,deleteElement:h.default.func,createId:h.default.func,getParentInfo:h.default.func,getViewId:h.default.func},e.default=d},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n(0),u=r(s),c=n(1),l=r(c),f=function(t){function e(t){return o(this,e),i(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,t,"Legend"))}return a(e,t),e}(u.default);f.contextTypes={addElement:l.default.func,updateElement:l.default.func,deleteElement:l.default.func,createId:l.default.func,getParentInfo:l.default.func,getViewId:l.default.func},f.childContextTypes={addElement:l.default.func,updateElement:l.default.func,deleteElement:l.default.func,createId:l.default.func,getParentInfo:l.default.func,getViewId:l.default.func},f.defaultProps={visible:!0},e.default=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(0),o=function(t){return t&&t.__esModule?t:{default:t}}(r);e.default=o.default.generateBaseTypedComponent("Tooltip")},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=function(){function t(t,e){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e`"),o!==f&&!f)return void t.axis(r,!1);c.Util.shallowEqual(a,p)||t.axis(r,p)},updateAxises:function(t,e){if(e)for(var n in e)e[n]&&e[n].props&&e[n].updateProps&&this.updateAxis(t,e[n])},updateTooltip:function(t,e){if(e.tooltip){var n=e.tooltip.props,r=e.tooltip.updateProps;null==n&&null==r||c.Util.shallowEqual(n,r)||t.tooltip(a({},r))}},updateCoord:function(t,e){var n=e.coord;if(n){var r=n.props,i=n.updateProps;if(null!=r&&null!=i){var a=c.Util.without(i,y.concat(["type"]));if(!c.Util.shallowEqual(r,i)){var s=t.coord(i.type,a);n.g2Instance=s,c.Prop.init(y,i,function(t,e){s[e].apply(s,o(t))})}}}},updateLegend:function(t,e){var n=e.props,r=e.updateProps;if(r&&!c.Util.shallowEqual(n,r)){var a=r.name,s=r.visible,u=i(r,["name","visible"]),l=s?u:s;t.legend.apply(t,o(a?[a,l]:[l]))}},updateLegends:function(t,e){if(null!=e)for(var n in e)e[n]&&this.updateLegend(t,e[n])},updateLabel:function(t,e,n){if(null!=e&&null!=n){var r=e.content,o=i(e,["content"]),a=n.content,s=i(n,["content"]);c.Util.shallowEqual(o,s)&&c.Util.shallowEqual(r,a)||(c.Util.isArray(a)?t.label(a[0],a[1],s):t.label(a,s))}},updateGeom:function(t,e){var n=e.props,r=e.updateProps;if(n&&r&&n.type===r.type){var a=e.g2Instance;if(c.Util.shallowEqual(n,r))return void(e.label&&this.updateLabel(a,e.label.props,e.label.updateProps));var s=n.adjust,u=i(n,["adjust"]),l=r.adjust,f=i(r,["adjust"]);(s||l)&&a.adjust(l),c.Prop.update(b,u,f,function(t,e){a[e].apply(a,o(t))}),e.label&&this.updateLabel(a,e.label.props,e.label.updateProps)}},updateGeoms:function(t,e){if(null==e)return!1;for(var n in e)e[n]&&this.updateGeom(t,e[n]);return!1},isTypedGuideChanged:function(t){return!c.Util.shallowEqual(t.props,t.updateProps)},updateGuide:function(t,e){if(e&&e.elements){var n=e.elements,r=!1;for(var o in n)if(n[o]&&(n[o].updateProps||this.isTypedGuideChanged(n[o]))){r=!0;break}r&&(v.default.mergeGuide(e,!0),t.guide().clear(),h.default.guide(t,e))}},updateView:function(t,e){if(e&&e.props&&e.updateProps&&"Facet"!==e.parentInfo.name){var n=e.g2Instance,r=e.props,o=e.updateProps,i=r.scale,a=r.data,s=r.animate,u=r.axis,l=r.filter,f=o.scale,p=o.animate,h=o.data,d=o.axis,v=o.filter;s!==p&&n.animate(p),a!==h&&n.changeData(h),c.Util.shallowEqual(i,f)||n.scale(f),c.Util.shallowEqual(l,v)||v.forEach(function(t){n.filter(t[0],t[1])}),u!==d&&n.axis(d),this.updateCoord(n,e),this.updateAxises(n,e.axises),this.updateGeoms(n,e.geoms),this.updateGuide(n,e.guide)}},updateViews:function(t,e){var n=e.views;if(n)for(var r in n){var o=n[r];o&&(o.needReExecute||this.needReExecute(o))?(h.default.synchronizeG2View(o.g2Instance,o),n[r].needReExecute=!1):this.updateView(t,o)}},updateFacet:function(t,e){var n=e.facet;if(n){var r=n.props,o=n.updateProps;if(null!=r&&null!=o){var a=r.type,s=i(r,["type"]),u=o.type,l=i(o,["type"]);a===u&&c.Util.shallowEqual(s,l)||(n.props=o,h.default.facet(t,e))}}}};e.default=x},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var a=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1],n=arguments[2];o.default.each(t,function(t){var r=e[t];void 0!==r&&(o.default.isArray(r)||(r=[r]),n(r,t))})},update:function(t,e,n,r){var i=void 0,a=void 0;o.default.each(t,function(t){i=e[t],a=n[t],o.default.shallowEqual(a,i)||(o.default.isArray(a)||(a=[a]),r(a,t))})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={}},function(t,e,n){"use strict";var r=function(t,e,n,r,o,i,a,s){if(void 0===e)throw new Error("invariant requires an error message argument");if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],l=0;u=new Error(e.replace(/%s/g,function(){return c[l++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}};t.exports=r},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,u=r(t),c=1;c0?"-"+p:p,y=l()(h,r+"-divider",r+"-divider-"+a,(e={},s()(e,r+"-divider-with-text"+g,d),s()(e,r+"-divider-dashed",!!v),e));return u.createElement("div",i()({className:y},m),d&&u.createElement("span",{className:r+"-divider-inner-text"},d))}e.a=r;var o=n(3),i=n.n(o),a=n(10),s=n.n(a),u=n(0),c=(n.n(u),n(7)),l=n.n(c),f=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=n(3),u=n.n(s),c=n(4),l=n.n(c),f=n(8),p=n.n(f),h=n(5),d=n.n(h),v=n(6),m=n.n(v),g=n(0),y=n.n(g),b=n(2),x=n.n(b),_=n(17),w=n.n(_),O=n(152),S={adjustX:1,adjustY:1},C=[0,0],k={topLeft:{points:["bl","tl"],overflow:S,offset:[0,-4],targetOffset:C},topCenter:{points:["bc","tc"],overflow:S,offset:[0,-4],targetOffset:C},topRight:{points:["br","tr"],overflow:S,offset:[0,-4],targetOffset:C},bottomLeft:{points:["tl","bl"],overflow:S,offset:[0,4],targetOffset:C},bottomCenter:{points:["tc","bc"],overflow:S,offset:[0,4],targetOffset:C},bottomRight:{points:["tr","br"],overflow:S,offset:[0,4],targetOffset:C}},j=k,E=Object.assign||function(t){for(var e=1;en.offsetWidth&&(n.style.minWidth=r.offsetWidth+"px",t.trigger&&t.trigger._component&&t.trigger._component.alignInstance&&t.trigger._component.alignInstance.forceAlign())}},this.saveTrigger=function(e){t.trigger=e}},P=M,N=P,A=n(7),D=n.n(A),I=n(78),R=function(t){function e(){return l()(this,e),d()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return m()(e,t),p()(e,[{key:"getTransitionName",value:function(){var t=this.props,e=t.placement,n=void 0===e?"":e,r=t.transitionName;return void 0!==r?r:n.indexOf("top")>=0?"slide-down":"slide-up"}},{key:"componentDidMount",value:function(){var t=this.props.overlay,e=t.props;Object(I.a)(!e.mode||"vertical"===e.mode,'mode="'+e.mode+"\" is not supported for Dropdown's Menu.")}},{key:"render",value:function(){var t=this.props,e=t.children,n=t.prefixCls,r=t.overlay,o=t.trigger,i=t.disabled,a=g.Children.only(e),s=g.Children.only(r),c=g.cloneElement(a,{className:D()(a.props.className,n+"-trigger"),disabled:i}),l=s.props.selectable||!1,f=g.cloneElement(s,{mode:"vertical",selectable:l});return g.createElement(N,u()({},this.props,{transitionName:this.getTransitionName(),trigger:i?[]:o,overlay:f}),c)}}]),e}(g.Component),L=R;R.defaultProps={prefixCls:"ant-dropdown",mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft"};var F=n(27),z=n(16),V=this&&this.__rest||function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(t);o=r.F1&&e<=r.F12)return!1;switch(e){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},r.isCharacterKey=function(t){if(t>=r.ZERO&&t<=r.NINE)return!0;if(t>=r.NUM_ZERO&&t<=r.NUM_MULTIPLY)return!0;if(t>=r.A&&t<=r.Z)return!0;if(-1!==window.navigation.userAgent.indexOf("WebKit")&&0===t)return!0;switch(t){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}},e.a=r},function(t,e,n){"use strict";var r=n(3),o=n.n(r),i=n(4),a=n.n(i),s=n(8),u=n.n(s),c=n(5),l=n.n(c),f=n(6),p=n.n(f),h=n(0),d=(n.n(h),n(2)),v=n.n(d),m=function(t){function e(){return a()(this,e),l()(this,(e.__proto__||Object.getPrototypeOf(e)).apply(this,arguments))}return p()(e,t),u()(e,[{key:"getLocale",value:function(){var t=this.props,e=t.componentName,n=t.defaultLocale,r=this.context.antLocale,i=r&&r[e];return o()({},"function"==typeof n?n():n,i||{})}},{key:"getLocaleCode",value:function(){var t=this.context.antLocale,e=t&&t.locale;return t&&t.exist&&!e?"en-us":e}},{key:"render",value:function(){return this.props.children(this.getLocale(),this.getLocaleCode())}}]),e}(h.Component);e.a=m,m.contextTypes={antLocale:v.a.object}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){t.exports=!1},function(t,e,n){var r=n(377),o=n(272);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(83),o=Math.max,i=Math.min;t.exports=function(t,e){return t=r(t),t<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(19),o=n(378),i=n(272),a=n(271)("IE_PROTO"),s=function(){},u=function(){var t,e=n(269)("iframe"),r=i.length;for(e.style.display="none",n(273).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("