@progress/kendo-react-charts 4.11.0-dev.202111172052 → 4.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing"),require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["@progress/kendo-drawing","react","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl"],e):"object"==typeof exports?exports.KendoReactCharts=e(require("@progress/kendo-drawing"),require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):t.KendoReactCharts=e(t.KendoDrawing,t.React,t.PropTypes,t.KendoLicensing,t.ReactDOM,t.KendoReactIntl)}(window,(function(t,e,r,i,o,n){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(i,o,function(e){return t[e]}.bind(null,o));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=46)}([function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(34),l=r(35),c=r(9),h=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.optionsStore=r.optionsStore,i.childStore=p.default(l.optionsReducer),i}return o(e,t),e.prototype.render=function(){var t=this,e=this.props.children;return void 0!==e?a.Children.map(e,(function(e){return a.isValidElement(e)?t.renderChildren(e):e})):null},e.prototype.componentDidMount=function(){this.dispatch()},e.prototype.componentDidUpdate=function(){this.dispatch()},e.prototype.dispatch=function(){var t=this.props,e=t._chartKey,r=t._chartCollectionIdxKey,i=t._parentStore,o=(t.children,s(t,["_chartKey","_chartCollectionIdxKey","_parentStore","children"]));(i||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:r,payload:Object.assign({},o,this.childStore.getState())})},e.prototype.renderChildren=function(t){var e=t.props.children,r=n({},t.props,{_parentStore:this.childStore});return a.cloneElement(t,r,e)},e.contextType=c.ChartContext,e}(a.Component);e.default=h},function(t,e){t.exports=r},function(t,e,r){"use strict";r.r(e),r.d(e,"BrowserSupportService",(function(){return o})),r.d(e,"canUseDOM",(function(){return n})),r.d(e,"canUseRef",(function(){return s})),r.d(e,"classNames",(function(){return a})),r.d(e,"cloneDate",(function(){return l})),r.d(e,"clone",(function(){return c})),r.d(e,"cloneObject",(function(){return h})),r.d(e,"cloneValue",(function(){return u})),r.d(e,"cloneArray",(function(){return f})),r.d(e,"Draggable",(function(){return C})),r.d(e,"focusFirstFocusableChild",(function(){return k})),r.d(e,"FormComponent",(function(){return j})),r.d(e,"getTabIndex",(function(){return M})),r.d(e,"getter",(function(){return I})),r.d(e,"guid",(function(){return B})),r.d(e,"Keys",(function(){return L})),r.d(e,"noop",(function(){return V})),r.d(e,"getScrollbarWidth",(function(){return z})),r.d(e,"setScrollbarWidth",(function(){return D})),r.d(e,"setter",(function(){return U})),r.d(e,"mapTree",(function(){return W})),r.d(e,"mapTreeItem",(function(){return K})),r.d(e,"extendDataItem",(function(){return X})),r.d(e,"getItemPath",(function(){return Y})),r.d(e,"validatePackage",(function(){return Z})),r.d(e,"hasRelativeStackingContext",(function(){return $})),r.d(e,"dispatchEvent",(function(){return Q})),r.d(e,"AsyncFocusBlur",(function(){return et})),r.d(e,"createPropsContext",(function(){return ot})),r.d(e,"withPropsContext",(function(){return nt})),r.d(e,"useDir",(function(){return st})),r.d(e,"useAsyncFocusBlur",(function(){return J})),r.d(e,"useDraggable",(function(){return at})),r.d(e,"useRtl",(function(){return pt})),r.d(e,"useMouse",(function(){return lt})),r.d(e,"useCustomComponent",(function(){return ct})),r.d(e,"usePropsContext",(function(){return rt})),r.d(e,"Icon",(function(){return dt})),r.d(e,"SvgIcon",(function(){return mt})),r.d(e,"Typography",(function(){return Tt}));var i=function(){return"undefined"!=typeof document?document:{}},o=function(){function t(){}return Object.defineProperty(t.prototype,"scrollbarWidth",{get:function(){var t=i();if(!this.scrollbar&&t&&t.createElement){var e=t.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",t.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,t.body.removeChild(e)}return this.scrollbar},enumerable:!0,configurable:!0}),t}(),n=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),s=function(t){return"string"!=typeof Comment&&(function(t){return Boolean("function"==typeof t&&!!t.prototype.isReactComponent)}(t)||function(t){return Boolean(t.$$typeof&&"function"==typeof t.render)}(t))},a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?a.apply(void 0,t):"object"==typeof t?Object.keys(t).map((function(e,r){return t[r]||t[e]&&e||null})).filter((function(t){return null!==t})).join(" "):t})).filter((function(t){return!!t})).join(" ")},p=r(1),l=function(t){return t?new Date(t.getTime()):null};function c(t){var e={};return h(t,e),e}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];e[r]=u(i,e[r])}}function u(t,e){if(Array.isArray(t))return f(t);if(t instanceof Date)return l(t);if(p.isValidElement(t))return p.cloneElement(t,t.props);if(t&&"object"==typeof t){var r=e||{};return h(t,r),r}return t}function f(t){return t.map((function(t){return u(t,void 0)}))}var d=r(3),v=function(t,e){return function(r){return e(t(r))}},y=function(t,e,r){return t.addEventListener&&t.addEventListener(e,r)},g=function(t,e,r){return t&&t.removeEventListener&&t.removeEventListener(e,r)},m=function(){},x=function(t){return t.preventDefault()},b=/touch/;function _(t){return t.type.match(b)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var w=function(t){var e=this,r=t.press;void 0===r&&(r=m);var i=t.drag;void 0===i&&(i=m);var o=t.release;void 0===o&&(o=m);var n=t.mouseOnly;void 0===n&&(n=!1),this._pressHandler=v(_,r),this._dragHandler=v(_,i),this._releaseHandler=v(_,o),this._ignoreMouse=!1,this._mouseOnly=n,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var r=t.which;r&&r>1||e._ignoreMouse||(y(e.document,"mousemove",e._mousemove),y(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){g(e.document,"mousemove",e._mousemove),g(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(y(e.document,"pointermove",e._pointermove),y(e.document,"pointerup",e._pointerup),y(e.document,"pointercancel",e._pointerup),y(e.document,"contextmenu",x),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(g(e.document,"pointermove",e._pointermove),g(e.document,"pointerup",e._pointerup),g(e.document,"pointercancel",e._pointerup),g(e.document,"contextmenu",x),e._releaseHandler(t))}},O={document:{configurable:!0}};w.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},O.document.get=function(){return this._element?this._element.ownerDocument:document},w.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},w.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?y(t,"pointerdown",this._pointerdown):(y(t,"mousedown",this._mousedown),this._mouseOnly||(y(t,"touchstart",this._touchstart),y(t,"touchmove",this._touchmove),y(t,"touchend",this._touchend)))},w.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return g(t,"pointerdown",this._pointerdown),g(this.document,"pointermove",this._pointermove),g(this.document,"pointerup",this._pointerup),g(this.document,"contextmenu",x),void g(this.document,"pointercancel",this._pointerup);g(t,"mousedown",this._mousedown),this._mouseOnly||(g(t,"touchstart",this._touchstart),g(t,"touchmove",this._touchmove),g(t,"touchend",this._touchend))},w.prototype._usePointers=function(){return!this._mouseOnly&&w.supportPointerEvent()},w.prototype.update=function(t){var e=t.press;void 0===e&&(e=m);var r=t.drag;void 0===r&&(r=m);var i=t.release;void 0===i&&(i=m);var o=t.mouseOnly;void 0===o&&(o=!1),this._pressHandler=v(_,e),this._dragHandler=v(_,r),this._releaseHandler=v(_,i),this._mouseOnly=o},w.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(w.prototype,O),w.default=w;var S,P=w,A=(S=function(t,e){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.element=null,e.draggable=new P({press:function(t){e.element&&e.props.onPress&&e.props.onPress.call(void 0,{target:e,event:t,element:e.element})},drag:function(t){e.element&&e.props.onDrag&&e.props.onDrag.call(void 0,{target:e,event:t,element:e.element})},release:function(t){e.element&&e.props.onRelease&&e.props.onRelease.call(void 0,{target:e,event:t})}}),e.childRef=function(t){var r=e.props.childRef;e.element=t,r&&"function"==typeof r&&r(t)},e}return A(e,t),e.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},e.prototype.componentWillUnmount=function(){this.draggable.destroy()},e.prototype.render=function(){return p.cloneElement(p.Children.only(this.props.children),{ref:this.childRef})},e.propTypes={children:d.element.isRequired},e}(p.Component),k=function(t){if(t){if((t instanceof HTMLInputElement||-1!==t.tabIndex)&&t.focus)return void t.focus();var e=t.querySelector('input, [tabindex]:not([tabindex="-1"])');e&&e.focus&&e.focus()}},j=function(){},M=function(t,e,r){var i="string"==typeof t?parseInt(t,void 0):t;if(NaN!==i)return void 0!==i?i:e?r?void 0:-1:0},T=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function E(t){var e=[];return t.replace(T,(function(t,r,i,o){e.push(void 0!==r?r:i||o)})),e}var R={};function I(t){if(R[t])return R[t];var e=E(t);return R[t]=function(t){for(var r=t,i=0;i<e.length&&r;i++)r=r[e[i]];return r},R[t]}R.undefined=function(){};var B=function(){var t,e,r="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},L={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},V=function(){},z=function(){return!(!n||!document.body)&&(new o).scrollbarWidth},D=function(){if(!n||!document.body)return!1;var t=(new o).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",t+"px")},N={undefined:function(t){return t}},F=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function U(t){if(N[t])return N[t];var e=E(t);return N[t]=function(t,r,i){for(var o=t,n=e.length-1,s=0;s<n&&o;s++)o=o[e[s]]=o[e[s]]||F(e[s+1],i);o[e[n]]=r},N[t]}var H=function(){return(H=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function G(t,e,r){var i;return r?H({},t,((i={})[e]=r.length?r.slice():void 0,i)):t&&t[e]?t[e].slice():[]}var W=function(t,e,r){return t.map((function(t){return function t(e,r,i){if(e[r]){var o=G(e,r).map((function(e){return t(e,r,i)}));return i(G(e,r,o))}return i(e)}(t,e,r)})).slice()},K=function(t,e,r,i){for(var o=t,n=[],s=0;s<e.length;s++)o=o[e[s]],o=Array.isArray(o)?o:o[r],n.push(o);var a=n.length>1?n[n.length-2]:t,p=e[e.length-1],l=i(a[p]);a.splice(p,1,l)},X=function(t,e,r){var i;return Object.assign({},t,t[e]?((i={})[e]=t[e].slice(),i):{},r||{})},Y=function(t,e,r){var i=[],o=e.slice();if(o.length){var n=t[o.shift()||0];for(i.push(n);o.length&&r;)n=n[r][o.shift()||0],i.push(n)}return i},q=r(12);function Z(t){if(void 0!==q)q.validatePackage(t);else{var e="License activation failed for "+t.name+"\n";e+="The @progress/kendo-licensing script is not loaded.\n",e+="See "+t.licensingDocsUrl+" for more information.\n",console.warn(e)}}var $=function(t){if(!n)return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var r=e.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(r);var i=10!==r.children[0].getBoundingClientRect().top;return e.body.removeChild(r),i};function Q(t,e,r,i){if(t){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:r};t.call(void 0,Object.assign(o,i))}}function J(t){var e=t.onFocus,r=t.onBlur,i=t.onSyncFocus,o=t.onSyncBlur,n=p.useRef(!1),s=p.useRef(0),a=p.useCallback((function(t){clearTimeout(s.current),s.current=window.setTimeout((function(){return t()}))}),[s]),l=p.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(s.current),i&&i.call.apply(i,[void 0].concat(t)),n.current||(n.current=!0,e&&e.call.apply(e,[void 0].concat(t)))}),[n,e,i]),c=p.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o&&o.call.apply(o,[void 0].concat(t)),a((function(){n.current&&r&&(n.current=!1,r.call.apply(r,[void 0].concat(t)))}))}),[n,a,r,o]);return p.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:l,onBlur:c}}var tt=function(){return(tt=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},et=function(t){var e=t.children,r=J({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return e.call(void 0,tt({},r))},rt=function(t,e){return p.useContext(t)(e)},it=function(){return(it=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ot=function(){return p.createContext((function(t){return t}))},nt=function(t,e){return p.forwardRef((function(r,i){var o=rt(t,r);return p.createElement(e,it({},o,{ref:i}))}))};function st(t,e,r){var i=p.useState(e),o=i[0],n=i[1];return p.useEffect((function(){if(!o&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),o}function at(t,e){var r=e.onPress,i=e.onDrag,o=e.onRelease,n=p.useMemo((function(){return new P({press:r,drag:i,release:o})}),[]);p.useEffect((function(){var e=t.current;if(e)return n.bindTo(e),function(){n.destroy()}}),[]),p.useEffect((function(){n.update({press:r,drag:i,release:o})}),[r,i,o])}function pt(t,e,r){var i=p.useState(e),o=i[0],n=i[1];return p.useEffect((function(){if(!o&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),o}var lt=function(t,e,r){void 0===r&&(r={});var i=p.useCallback((function(i){r.onMouseDown&&r.onMouseDown.call(void 0,i),t.onMouseDown&&t.onMouseDown.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseDown,t.onMouseDown,e]),o=p.useCallback((function(i){r.onMouseUp&&r.onMouseUp.call(void 0,i),t.onMouseUp&&t.onMouseUp.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseUp,t.onMouseUp,e]);return{onClick:p.useCallback((function(i){r.onClick&&r.onClick.call(void 0,i),t.onClick&&t.onClick.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onClick,t.onClick,e]),onMouseUp:o,onMouseDown:i,onDoubleClick:p.useCallback((function(i){r.onDoubleClick&&r.onDoubleClick.call(void 0,i),t.onDoubleClick&&t.onDoubleClick.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onDoubleClick,t.onDoubleClick,e]),onMouseEnter:p.useCallback((function(i){r.onMouseEnter&&r.onMouseEnter.call(void 0,i),t.onMouseEnter&&t.onMouseEnter.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseEnter,t.onMouseEnter,e]),onMouseLeave:p.useCallback((function(i){r.onMouseLeave&&r.onMouseLeave.call(void 0,i),t.onMouseLeave&&t.onMouseLeave.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseLeave,t.onMouseLeave,e]),onMouseMove:p.useCallback((function(i){r.onMouseMove&&r.onMouseMove.call(void 0,i),t.onMouseMove&&t.onMouseMove.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseMove,t.onMouseMove,e]),onMouseOut:p.useCallback((function(i){r.onMouseOut&&r.onMouseOut.call(void 0,i),t.onMouseOut&&t.onMouseOut.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseOut,t.onMouseOut,e]),onMouseOver:p.useCallback((function(i){r.onMouseOver&&r.onMouseOver.call(void 0,i),t.onMouseOver&&t.onMouseOver.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseOver,t.onMouseOver,e])}},ct=function(t){return p.isValidElement(t)?[t.type,t.props]:[t,{}]},ht={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ut=function(){return(ut=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ft=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r},dt=p.forwardRef((function(t,e){var r=t.className,i=t.name,o=t.themeColor,n=t.size,s=t.flip,l=t.style,c=ft(t,["className","name","themeColor","size","flip","style"]),h=p.useRef(null),u=p.useRef(null);p.useImperativeHandle(h,(function(){return{element:u.current}})),p.useImperativeHandle(e,(function(){return h.current}));var f=p.useMemo((function(){return o||vt.themeColor}),[o]),d=p.useMemo((function(){return n||vt.size}),[n]),v=p.useMemo((function(){return s||vt.flip}),[s]),y=p.useMemo((function(){return a("k-icon","k-i-"+i,"k-color-"+f,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},ht[d],r)}),[i,f,d,v,r]),g=lt(t,h);return p.createElement("span",ut({ref:u},c,g,{className:y,style:l,role:"presentation"}))}));dt.propTypes={style:d.object,classNames:d.string,name:d.string,themeColor:d.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:d.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:d.oneOf(["default","horizontal","vertical","both"])};var vt={size:"default",themeColor:"inherit",flip:"default"};dt.displayName="KendoIcon";var yt=function(){return(yt=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},gt=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r},mt=p.forwardRef((function(t,e){var r=t.children,i=t.className,o=t.svgClassName,n=t.icon,s=t.flip,l=t.size,c=t.style,h=t.svgStyle,u=t.themeColor,f=t.viewBox,d=gt(t,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=p.useRef(null);p.useImperativeHandle(e,(function(){return{element:v.current}}));var y=p.useMemo((function(){return n?n.name:xt.icon}),[n]),g=p.useMemo((function(){return u||xt.themeColor}),[u]),m=p.useMemo((function(){return l||xt.size}),[l]),x=p.useMemo((function(){return s||xt.flip}),[s]),b=p.useMemo((function(){return f||xt.viewBox}),[f]),_=p.useMemo((function(){return a("k-svg-icon","k-color-"+g,"k-svg-i-"+y,{"k-flip-h":"horizontal"===x||"both"===x,"k-flip-v":"vertical"===x||"both"===x},ht[m],i)}),[y,g,m,x,i]),w=p.useMemo((function(){return t.width&&t.height?yt({width:t.width,height:t.height},c):t.width?yt({width:t.width,height:t.width},c):t.height?yt({width:t.height,height:t.height},c):yt({},c)}),[t.width,t.height,c]);return p.createElement("span",{className:_,style:w,ref:v},p.createElement("svg",yt({className:o,style:h,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:b,dangerouslySetInnerHTML:n?{__html:n.content}:void 0},d),n?void 0:r))}));mt.propTypes={style:d.object,classNames:d.string,children:d.any,icon:d.object,themeColor:d.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:d.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:d.oneOf(["default","horizontal","vertical","both"])};var xt={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};mt.displayName="KendoSvgIcon";var bt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},_t={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},wt={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},Ot={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},St={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Pt={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},At={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ct={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},kt=function(){return(kt=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},jt=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r},Mt=function(t){var e=p.forwardRef((function(e,r){var i=e.className,o=e.fontSize,n=e.fontWeight,s=e.textAlign,a=e.textTransform,l=e.themeColor,c=e.margin,h=jt(e,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),u=p.useRef(null),f=p.useRef(null);p.useImperativeHandle(u,(function(){return{element:f.current,props:e}})),p.useImperativeHandle(r,(function(){return u.current}));var d=t,v=function(){if(void 0!==c){if("string"==typeof c)return[wt[c]];if("number"==typeof c&&c>=0&&c<=24)return["k-m-"+c];if("object"==typeof c){var t=[];return Object.keys(c).forEach((function(e){var r,i;null!==c[e]&&void 0!==c[e]&&t.push((r=e,i=c[e],""+St[r]+("string"==typeof i?Ot[i]:i)))})),t.join(" ")}}};return p.createElement(d,kt({ref:f,className:["k-"+("p"===t?"paragraph":t),bt[o],_t[n],Pt[s],At[a],Ct[l],v(),i].filter((function(t){return void 0!==t})).join(" ")},h),e.children)}));return e.propTypes={style:d.object,className:d.string,fontSize:d.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:d.oneOf(["light","normal","bold"]),margin:d.oneOfType([d.number,d.object,d.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:d.oneOf(["left","right","center","justify"]),textTransform:d.oneOf(["lowercase","uppercase","capitalize"]),themeColor:d.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography"+t.toUpperCase(),e},Tt={h1:Mt("h1"),h2:Mt("h2"),h3:Mt("h3"),h4:Mt("h4"),h5:Mt("h5"),h6:Mt("h6"),p:Mt("p"),code:Mt("code"),pre:Mt("pre")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){this.target=t};e.BaseEvent=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasParent=function(t,e){for(var r=t;r&&r!==e;)r=r.parentNode;return!!r},e.validateChildren=function(t,e,r,i){var o=t[e];if(o&&Array.isArray(o))for(var n=0,s=o;n<s.length;n++){var a=s[n];if(!a.type||a.type!==i)return new Error(r+" children should be Array of type "+i.displayName+".")}return null};e.toggle=function(t){return void 0!==t&&!t}},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prevented=!1,e}return o(e,t),e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(r(5).BaseEvent);e.PreventableEvent=n},function(t,e,r){"use strict";r.r(e),r.d(e,"autoMajorUnit",(function(){return Yt})),r.d(e,"Point",(function(){return qt})),r.d(e,"Box",(function(){return $t})),r.d(e,"Ring",(function(){return Jt})),r.d(e,"Sector",(function(){return te})),r.d(e,"ShapeBuilder",(function(){return re})),r.d(e,"ShapeElement",(function(){return pe})),r.d(e,"ChartElement",(function(){return oe})),r.d(e,"BoxElement",(function(){return se})),r.d(e,"RootElement",(function(){return ue})),r.d(e,"FloatElement",(function(){return de})),r.d(e,"Text",(function(){return ge})),r.d(e,"TextBox",(function(){return be})),r.d(e,"Title",(function(){return we})),r.d(e,"AxisLabel",(function(){return Se})),r.d(e,"Axis",(function(){return Me})),r.d(e,"Note",(function(){return Ae})),r.d(e,"CategoryAxis",(function(){return Qe})),r.d(e,"DateCategoryAxis",(function(){return ar})),r.d(e,"DateValueAxis",(function(){return yr})),r.d(e,"NumericAxis",(function(){return dr})),r.d(e,"LogarithmicAxis",(function(){return br})),r.d(e,"PolarAxis",(function(){return Pr})),r.d(e,"RadarCategoryAxis",(function(){return Or})),r.d(e,"RadarNumericAxis",(function(){return jr})),r.d(e,"RadarLogarithmicAxis",(function(){return Tr})),r.d(e,"CurveProcessor",(function(){return Rr})),r.d(e,"Gradients",(function(){return le})),r.d(e,"rectToBox",(function(){return me})),r.d(e,"ChartAxis",(function(){return Ir})),r.d(e,"ChartPane",(function(){return Vr})),r.d(e,"ChartPlotArea",(function(){return zr})),r.d(e,"findAxisByName",(function(){return Br})),r.d(e,"Aggregates",(function(){return Fr})),r.d(e,"AreaChart",(function(){return Ri})),r.d(e,"AreaSegment",(function(){return ji})),r.d(e,"AxisGroupRangeTracker",(function(){return Ii})),r.d(e,"Bar",(function(){return Di})),r.d(e,"BarChart",(function(){return Xi})),r.d(e,"BarLabel",(function(){return Li})),r.d(e,"BoxPlotChart",(function(){return ro})),r.d(e,"BoxPlot",(function(){return to})),r.d(e,"BubbleChart",(function(){return co})),r.d(e,"Bullet",(function(){return vo})),r.d(e,"BulletChart",(function(){return go})),r.d(e,"CandlestickChart",(function(){return Qi})),r.d(e,"Candlestick",(function(){return qi})),r.d(e,"CategoricalChart",(function(){return ci})),r.d(e,"CategoricalErrorBar",(function(){return si})),r.d(e,"CategoricalPlotArea",(function(){return wn})),r.d(e,"Chart",(function(){return ha})),r.d(e,"ChartContainer",(function(){return Po})),r.d(e,"ClipAnimation",(function(){return Si})),r.d(e,"ClusterLayout",(function(){return Hi})),r.d(e,"Crosshair",(function(){return Oo})),r.d(e,"CrosshairTooltip",(function(){return _o})),r.d(e,"DefaultAggregates",(function(){return $o})),r.d(e,"DonutChart",(function(){return ds})),r.d(e,"DonutPlotArea",(function(){return vs})),r.d(e,"DonutSegment",(function(){return us})),r.d(e,"ErrorBarBase",(function(){return ni})),r.d(e,"ErrorRangeCalculator",(function(){return Xr})),r.d(e,"Highlight",(function(){return Sn})),r.d(e,"SharedTooltip",(function(){return Gn})),r.d(e,"Legend",(function(){return Bn})),r.d(e,"LegendItem",(function(){return Rn})),r.d(e,"LegendLayout",(function(){return En})),r.d(e,"LineChart",(function(){return ki})),r.d(e,"LinePoint",(function(){return di})),r.d(e,"LineSegment",(function(){return yi})),r.d(e,"Pane",(function(){return ko})),r.d(e,"PieAnimation",(function(){return qn})),r.d(e,"PieChart",(function(){return ls})),r.d(e,"PieChartMixin",(function(){return ss})),r.d(e,"PiePlotArea",(function(){return cs})),r.d(e,"PieSegment",(function(){return ns})),r.d(e,"PlotAreaBase",(function(){return Ko})),r.d(e,"PlotAreaEventsMixin",(function(){return Xo})),r.d(e,"PlotAreaFactory",(function(){return Vn})),r.d(e,"PointEventsMixin",(function(){return hi})),r.d(e,"RangeBar",(function(){return Jo})),r.d(e,"RangeBarChart",(function(){return en})),r.d(e,"RangeAreaPoint",(function(){return nn})),r.d(e,"RangeAreaChart",(function(){return hn})),r.d(e,"ScatterChart",(function(){return so})),r.d(e,"ScatterErrorBar",(function(){return io})),r.d(e,"ScatterLineChart",(function(){return $n})),r.d(e,"Selection",(function(){return Fn})),r.d(e,"SeriesAggregator",(function(){return qo})),r.d(e,"SeriesBinder",(function(){return Gr})),r.d(e,"SplineSegment",(function(){return _i})),r.d(e,"SplineAreaSegment",(function(){return Ei})),r.d(e,"StackWrap",(function(){return Wi})),r.d(e,"Tooltip",(function(){return Un})),r.d(e,"OHLCChart",(function(){return fn})),r.d(e,"OHLCPoint",(function(){return un})),r.d(e,"WaterfallChart",(function(){return yn})),r.d(e,"WaterfallSegment",(function(){return vn})),r.d(e,"XYPlotArea",(function(){return ts})),r.d(e,"MousewheelZoom",(function(){return Tn})),r.d(e,"ZoomSelection",(function(){return Mn})),r.d(e,"Pannable",(function(){return kn})),r.d(e,"anyHasZIndex",(function(){return Pi})),r.d(e,"appendIfNotNull",(function(){return jo})),r.d(e,"areNumbers",(function(){return Zi})),r.d(e,"bindSegments",(function(){return To})),r.d(e,"categoriesCount",(function(){return pi})),r.d(e,"countNumbers",(function(){return Dr})),r.d(e,"equalsIgnoreCase",(function(){return Eo})),r.d(e,"evalOptions",(function(){return ai})),r.d(e,"filterSeriesByType",(function(){return Ro})),r.d(e,"getDateField",(function(){return Io})),r.d(e,"getField",(function(){return Ur})),r.d(e,"hasGradientOverlay",(function(){return Vi})),r.d(e,"hasValue",(function(){return oo})),r.d(e,"isDateAxis",(function(){return Bo})),r.d(e,"segmentVisible",(function(){return Mo})),r.d(e,"singleItemOrArray",(function(){return Lo})),r.d(e,"createOutOfRangePoints",(function(){return No})),r.d(e,"ChartService",(function(){return Z})),r.d(e,"DomEventsBuilder",(function(){return Q})),r.d(e,"FormatService",(function(){return K})),r.d(e,"IntlService",(function(){return U})),r.d(e,"TemplateService",(function(){return et})),r.d(e,"Sparkline",(function(){return ma})),r.d(e,"Navigator",(function(){return Aa})),r.d(e,"NavigatorHint",(function(){return wa})),r.d(e,"StockChart",(function(){return ka})),r.d(e,"constants",(function(){return i})),r.d(e,"Gauge",(function(){return Na})),r.d(e,"LinearGauge",(function(){return cp})),r.d(e,"LinearPointer",(function(){return $a})),r.d(e,"ArrowLinearPointer",(function(){return rp})),r.d(e,"BarLinearPointer",(function(){return ap})),r.d(e,"LinearScale",(function(){return Xa})),r.d(e,"RadialGauge",(function(){return Cp})),r.d(e,"RadialPointer",(function(){return Sp})),r.d(e,"RadialScale",(function(){return gp})),r.d(e,"ArcGauge",(function(){return Ip})),r.d(e,"RangePointer",(function(){return Rp})),r.d(e,"ArcScale",(function(){return jp})),r.d(e,"CircularGauge",(function(){return Bp})),r.d(e,"Barcode",(function(){return wl})),r.d(e,"addClass",(function(){return _})),r.d(e,"removeClass",(function(){return O})),r.d(e,"alignPathToPixel",(function(){return P})),r.d(e,"clockwise",(function(){return A})),r.d(e,"convertableToNumber",(function(){return j})),r.d(e,"deepExtend",(function(){return E})),r.d(e,"elementStyles",(function(){return V})),r.d(e,"getSpacing",(function(){return z})),r.d(e,"getTemplate",(function(){return rt})),r.d(e,"getter",(function(){return nt})),r.d(e,"grep",(function(){return st})),r.d(e,"hasClasses",(function(){return at})),r.d(e,"HashMap",(function(){return lt})),r.d(e,"inArray",(function(){return ct})),r.d(e,"interpolateValue",(function(){return ht})),r.d(e,"InstanceObserver",(function(){return ft})),r.d(e,"isArray",(function(){return b})),r.d(e,"isFunction",(function(){return M})),r.d(e,"isNumber",(function(){return C})),r.d(e,"isObject",(function(){return R})),r.d(e,"isString",(function(){return k})),r.d(e,"map",(function(){return dt})),r.d(e,"mousewheelDelta",(function(){return vt})),r.d(e,"FontLoader",(function(){return Rt})),r.d(e,"setDefaultOptions",(function(){return It})),r.d(e,"sparseArrayLimits",(function(){return Bt})),r.d(e,"styleValue",(function(){return I})),r.d(e,"find",(function(){return Lt})),r.d(e,"elementScale",(function(){return Nt})),r.d(e,"autoTextColor",(function(){return Ft})),r.d(e,"createHashSet",(function(){return Xt})),r.d(e,"append",(function(){return gt})),r.d(e,"bindEvents",(function(){return mt})),r.d(e,"Class",(function(){return S.Class})),r.d(e,"defined",(function(){return xt})),r.d(e,"deg",(function(){return bt})),r.d(e,"elementOffset",(function(){return _t})),r.d(e,"elementSize",(function(){return wt})),r.d(e,"eventElement",(function(){return Ot})),r.d(e,"eventCoordinates",(function(){return St})),r.d(e,"last",(function(){return Pt})),r.d(e,"limitValue",(function(){return At})),r.d(e,"logToConsole",(function(){return S.logToConsole})),r.d(e,"objectKey",(function(){return Ct})),r.d(e,"rad",(function(){return kt})),r.d(e,"round",(function(){return jt})),r.d(e,"unbindEvents",(function(){return Mt})),r.d(e,"valueOrDefault",(function(){return Tt})),r.d(e,"chartBaseTheme",(function(){return kl}));var i={};r.r(i),r.d(i,"NAVIGATOR_AXIS",(function(){return Sa})),r.d(i,"NAVIGATOR_PANE",(function(){return Oa}));var o="arc",n="#000",s="bottom",a="center",p="circle",l="date",c=/\{\d+:?/,h="left",u=Number.MAX_VALUE,f=-Number.MAX_VALUE,d="right",v="top",y="value",g="#fff",m="x",x="y";function b(t){return Array.isArray(t)}function _(t,e){for(var r=b(e)?e:[e],i=0;i<r.length;i++){var o=r[i];-1===t.className.indexOf(o)&&(t.className+=" "+o)}}var w=/\s+/g;function O(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(w," "))}var S=r(0);function P(t){var e=.5;t.options.stroke&&S.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var r=0;r<t.segments.length;r++)t.segments[r].anchor().round(0).translate(e,e);return t}function A(t,e){return-t.x*e.y+t.y*e.x<0}function C(t){return"number"==typeof t&&!isNaN(t)}function k(t){return"string"==typeof t}function j(t){return C(t)||k(t)&&isFinite(t)}function M(t){return"function"==typeof t}function T(t,e){for(var r in e){var i=e[r],o=typeof i,n=void 0;if((n="object"===o&&null!==i?i.constructor:null)&&n!==Array)if(i instanceof Date)t[r]=new Date(i.getTime());else if(M(i.clone))t[r]=i.clone();else{var s=t[r];t[r]="object"==typeof s&&s||{},T(t[r],i)}else"undefined"!==o&&(t[r]=i)}return t}function E(t){for(var e=arguments,r=arguments.length,i=1;i<r;i++)T(t,e[i]);return t}function R(t){return"object"==typeof t}function I(t){return C(t)?t+"px":t}var B=/width|height|top|left|bottom|right/i;function L(t){return B.test(t)}function V(t,e){var r=k(e)?[e]:e;if(b(r)){for(var i={},o=window.getComputedStyle(t),n=0;n<r.length;n++){var s=r[n];i[s]=L(s)?parseFloat(o[s]):o[s]}return i}if(R(e))for(var a in e)t.style[a]=I(e[a])}function z(t,e){void 0===e&&(e=0);var r={top:0,right:0,bottom:0,left:0};return"number"==typeof t?r.top=r[d]=r[s]=r[h]=t:(r.top=t.top||e,r[d]=t[d]||e,r[s]=t[s]||e,r[h]=t[h]||e),r}var D={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},N=function(){},F={implementation:{configurable:!0}};N.register=function(t){D=t},F.implementation.get=function(){return D},Object.defineProperties(N,F);var U=N,H=/\{(\d+)(:[^\}]+)?\}/g,G=function(t){this._intlService=t},W={intl:{configurable:!0}};W.intl.get=function(){return this._intlService||U.implementation},W.intl.set=function(t){this._intlService=t},G.prototype.auto=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=this.intl;return k(t)&&t.match(c)?i.format.apply(i,[t].concat(e)):i.toString(e[0],t)},G.prototype.localeAuto=function(t,e,r){var i=this.intl;return k(t)&&t.match(c)?t.replace(H,(function(t,o,n){var s=e[parseInt(o,10)];return i.toString(s,n?n.substring(1):"",r)})):i.toString(e[0],t,r)},Object.defineProperties(G.prototype,W);var K=G,X=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new K(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Y={intl:{configurable:!0}};Y.intl.get=function(){return this._intlService||U.implementation},Y.intl.set=function(t){this._intlService=t,this.format.intl=t},X.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},X.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(X.prototype,Y);var q,Z=X,$=function(){};$.register=function(t){q=t},$.create=function(t,e){if(q)return q.create(t,e)};var Q=$,J={compile:function(t){return t}},tt=function(){};tt.register=function(t){J=t},tt.compile=function(t){return J.compile(t)};var et=tt;function rt(t){var e;return void 0===t&&(t={}),t.template?t.template=e=et.compile(t.template):M(t.content)&&(e=t.content),e}var it=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,ot={};function nt(t){if(ot[t])return ot[t];var e=[];return t.replace(it,(function(t,r,i,o){e.push(S.drawing.util.defined(r)?r:i||o)})),ot[t]=function(t){for(var r=t,i=0;i<e.length&&r;i++)r=r[e[i]];return r},ot[t]}function st(t,e){for(var r=t.length,i=[],o=0;o<r;o++)e(t[o])&&i.push(t[o]);return i}function at(t,e){if(t.className)for(var r=e.split(" "),i=0;i<r.length;i++)if(-1!==t.className.indexOf(r[i]))return!0}ot[void 0]=function(t){return t};var pt=function(){this._map={}};pt.prototype.get=function(t){return this._map[this._key(t)]},pt.prototype.set=function(t,e){this._map[this._key(t)]=e},pt.prototype._key=function(t){return t instanceof Date?t.getTime():t};var lt=pt;function ct(t,e){if(e)return-1!==e.indexOf(t)}function ht(t,e,r){return S.drawing.util.round(t+(e-t)*r,3)}var ut=function(t,e){this.observer=t,this.handlerMap=E({},this.handlerMap,e)};ut.prototype.trigger=function(t,e){var r,i=this.observer,o=this.handlerMap;return o[t]?r=this.callObserver(o[t],e):i.trigger&&(r=this.callObserver("trigger",t,e)),r},ut.prototype.callObserver=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return this.observer[t].apply(this.observer,e)},ut.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var ft=ut;function dt(t,e){for(var r=t.length,i=[],o=0;o<r;o++){var n=e(t[o]);S.drawing.util.defined(n)&&i.push(n)}return i}function vt(t){var e=0;return t.wheelDelta&&(e=(e=-t.wheelDelta/120)>0?Math.ceil(e):Math.floor(e)),t.detail&&(e=S.drawing.util.round(t.detail/3)),e}var yt=S.drawing.util,gt=yt.append,mt=yt.bindEvents,xt=yt.defined,bt=yt.deg,_t=yt.elementOffset,wt=yt.elementSize,Ot=yt.eventElement,St=yt.eventCoordinates,Pt=yt.last,At=yt.limitValue,Ct=yt.objectKey,kt=yt.rad,jt=yt.round,Mt=yt.unbindEvents,Tt=yt.valueOrDefault,Et=function(){};Et.fetchFonts=function(t,e,r){void 0===r&&(r={depth:0});!t||r.depth>5||!document.fonts||Object.keys(t).forEach((function(i){var o=t[i];"dataSource"!==i&&"$"!==i[0]&&o&&("font"===i?e.push(o):"object"==typeof o&&(r.depth++,Et.fetchFonts(o,e,r),r.depth--))}))},Et.loadFonts=function(t,e){var r=[];if(t.length>0&&document.fonts){try{r=t.map((function(t){return document.fonts.load(t)}))}catch(t){Object(S.logToConsole)(t)}Promise.all(r).then(e,e)}else e()},Et.preloadFonts=function(t,e){var r=[];Et.fetchFonts(t,r),Et.loadFonts(r,e)};var Rt=Et;function It(t,e){var r=t.prototype;r.options?r.options=E({},r.options,e):r.options=e}function Bt(t){for(var e=u,r=f,i=0,o=t.length;i<o;i++){var n=t[i];null!==n&&isFinite(n)&&(e=Math.min(e,n),r=Math.max(r,n))}return{min:e===u?void 0:e,max:r===f?void 0:r}}function Lt(t,e){for(var r=0;r<t.length;r++){var i=t[r];if(e(i,r,t))return i}}var Vt=S.geometry.Matrix,zt=/matrix\((.*)\)/;function Dt(t){var e=getComputedStyle(t).transform;return"none"===e?Vt.unit():function(t){var e=t.match(zt);if(null===e||2!==e.length)return Vt.unit();var r=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Vt,[null].concat(r)))}(e)}function Nt(t){if(!t)return Vt.unit();for(var e=Dt(t),r=t.parentElement;r;){var i=Dt(r);e=e.multiplyCopy(i),r=r.parentElement}return e.b=e.c=e.e=e.f=0,e}var Ft=function(t){return new S.Color(t).isDark()?g:n},Ut={},Ht=function(t){this._index={},this._values=t?t.slice(0):[];for(var e=0;e<this._values.length;e++)this._index[this._values[e]]=e},Gt={size:{configurable:!0}};Ht.prototype.values=function(){return this._values.filter((function(t){return t!==Ut}))},Ht.prototype.has=function(t){return void 0!==this._index[t]},Ht.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Ht.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Ut,delete this._index[t])},Ht.prototype.clear=function(){this._index={},this._values=[]},Gt.size.get=function(){return this._values.length},Object.defineProperties(Ht.prototype,Gt);var Wt=function(t){this._set=new Set(t)},Kt={size:{configurable:!0}};function Xt(t){return"function"==typeof Set?new Wt(t):new Ht(t)}function Yt(t,e){var r=jt(e-t,9);if(0===r){if(0===e)return.1;r=Math.abs(e)}var i=Math.pow(10,Math.floor(Math.log(r)/Math.log(10))),o=jt(r/i,10);return jt(i*(o<1.904762?.2:o<4.761904?.5:o<9.523809?1:2),10)}Wt.prototype.values=function(){return Array.from(this._set)},Wt.prototype.has=function(t){return this._set.has(t)},Wt.prototype.add=function(t){this._set.add(t)},Wt.prototype.delete=function(t){this._set.delete(t)},Wt.prototype.clear=function(){this._set.clear()},Kt.size.get=function(){return this._set.size},Object.defineProperties(Wt.prototype,Kt);var qt=function(t){function e(e,r){t.call(this),this.x=e||0,this.y=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var r=kt(e),i=Math.cos(r),o=Math.sin(r),n=t.x,s=t.y,a=this.x,p=this.y;return this.x=jt(n+(a-n)*i+(p-s)*o,3),this.y=jt(s+(p-s)*i-(a-n)*o,3),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},e.onCircle=function(t,r,i){var o=kt(r);return new e(t.x-i*Math.cos(o),t.y-i*Math.sin(o))},e}(S.Class);function Zt(t,e,r,i,o){var n=kt(o);return new qt(r+(t-r)*Math.cos(n)+(e-i)*Math.sin(n),i-(t-r)*Math.sin(n)+(e-i)*Math.cos(n))}var $t=function(t){function e(e,r,i,o){t.call(this),this.x1=e||0,this.y1=r||0,this.x2=i||0,this.y2=o||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var r=this.height(),i=this.width();return xt(t)&&(this.x1=t,this.x2=this.x1+i),xt(e)&&(this.y1=e,this.y2=this.y1+r),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var r=b(t),i=r?t[0]:t.x,o=r?t[1]:t.y;return this.wrap(new e(i,o,i,o)),this},e.prototype.snapTo=function(t,e){return e!==m&&e||(this.x1=t.x1,this.x2=t.x2),e!==x&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var r=this.height(),i=this.width(),o=e===v||e===s?x:m,n=o===x?r:i;if(e===a){var p=t.center(),l=this.center();this.x1+=p.x-l.x,this.y1+=p.y-l.y}else this[o+1]=e===v||e===h?t[o+1]-n:t[o+2];return this.x2=this.x1+i,this.y2=this.y1+r,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=z(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=z(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new qt(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new qt(this.x1,this.y1),new qt(this.x2,this.y1),new qt(this.x2,this.y2),new qt(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),r=this.height(),i=this.center(),o=i.x,n=i.y,s=Zt(0,0,o,n,t),a=Zt(e,0,o,n,t),p=Zt(e,r,o,n,t),l=Zt(0,r,o,n,t);return e=Math.max(s.x,a.x,p.x,l.x)-Math.min(s.x,a.x,p.x,l.x),r=Math.max(s.y,a.y,p.y,l.y)-Math.min(s.y,a.y,p.y,l.y),this.x2=this.x1+e,this.y2=this.y1+r,this},e.prototype.toRect=function(){return new S.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,r){var i=e+1,o=e+2,n=e===m?"width":"height",p=this[n]();ct(r,[h,v])?(this[i]=t[i],this[o]=this[i]+p):ct(r,[d,s])?(this[o]=t[o],this[i]=this[o]-p):r===a&&(this[i]=t[i]+(t[n]()-p)/2,this[o]=this[i]+p)},e}(S.Class);function Qt(t,e){return t-e}var Jt=function(t){function e(e,r,i,o,n){t.call(this),this.center=e,this.innerRadius=r,this.radius=i,this.startAngle=o,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var r=kt(t),i=Math.cos(r),o=Math.sin(r),n=e?this.innerRadius:this.radius,s=jt(this.center.x-i*n,3),a=jt(this.center.y-o*n,3);return new qt(s,a)},e.prototype.adjacentBox=function(t,e,r){var i=this.clone().expand(t),o=i.middle(),n=i.point(o),s=e/2,a=r/2,p=Math.sin(kt(o)),l=Math.cos(kt(o)),c=n.x-s,h=n.y-a;return Math.abs(p)<.9&&(c+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(h+=a*-p/Math.abs(p)),new $t(c,h,c+e,h+r)},e.prototype.containsPoint=function(t){var e=this.center,r=this.innerRadius,i=this.radius,o=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,p=new qt(s,a),l=this.point(o),c=new qt(l.x-e.x,l.y-e.y),h=this.point(n),u=new qt(h.x-e.x,h.y-e.y),f=jt(s*s+a*a,3);return(c.equals(p)||A(c,p))&&!A(u,p)&&f>=r*r&&f<=i*i},e.prototype.getBBox=function(){var t,e=new $t(u,u,f,f),r=jt(this.startAngle%360),i=jt((r+this.angle)%360),o=this.innerRadius,n=[0,90,180,270,r,i].sort(Qt),s=n.indexOf(r),a=n.indexOf(i);t=r===i?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var l=this.point(t[p]);e.wrapPoint(l),e.wrapPoint(l,o)}return o||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(S.Class),te=function(t){function e(e,r,i,o){t.call(this,e,0,r,i,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(Jt),ee=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var r=t.startAngle+180,i=t.angle+r;t.angle>0&&r===i&&(i+=.001);var o=new S.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new S.geometry.Arc(o,{startAngle:r,endAngle:i,radiusX:n,radiusY:n}),p=S.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(i);p.lineTo(l.x,l.y),p.arc(i,r,s,s,!0)}else p.lineTo(o.x,o.y);return p},e}(S.Class);ee.current=new ee;var re=ee,ie=function(t){function e(e){t.call(this),this.children=[],this.options=E({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,r=this.children,i=0;i<r.length;i++){var o=r[i];o.reflow(t),e=e?e.wrap(o.box):o.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var r=this.children,i=r.length,o=0;o<i;o++)r[o].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,r=0;r<arguments.length;r++){var i=t[r];e.children.push(i),i.parent=e}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,r=0;r<e;r++)t[r].renderVisual()},e.prototype.createVisual=function(){this.visual=new S.drawing.Group({zIndex:this.options.zIndex,visible:Tt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=S.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):xt(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,r=t.options.zIndex||0,i=this.visual.children,o=i.length;for(e=0;e<o;e++){var n=i[e];if(Tt(n.options.zIndex,0)>r)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,r=e.length,i=0;i<r;i++){var o=e[i];t(o),o.traverse&&o.traverse(t)}},e.prototype.closest=function(t){for(var e=this,r=!1;e&&!r;)(r=t(e))||(e=e.parent);if(r)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible)},e.prototype.toggleHighlight=function(t,e){var r=this,i=(this.options||{}).highlight||{},o=i.visual,n=this._highlight;if(!n){var s={fill:{color:g,opacity:e||.2},stroke:{color:g,width:1,opacity:e||.2}};if(o){if(!(n=this._highlight=o(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return r.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);xt(n.options.zIndex)||(n.options.zIndex=Tt(i.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,r){var i=new S.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(r),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(S.Class);ie.prototype.options={};var oe=ie,ne=function(t){function e(e){t.call(this,e),this.options.margin=z(this.options.margin),this.options.padding=z(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var r,i=this,o=this.options,n=o.width,s=o.height,a=o.shrinkToFit,p=n&&s,l=o.margin,c=o.padding,h=o.border.width,u=function(){i.align(e,m,o.align),i.align(e,x,o.vAlign),i.paddingBox=r.clone().unpad(l).unpad(h)},f=e.clone();p&&(f.x2=f.x1+n,f.y2=f.y1+s),a&&f.unpad(l).unpad(h).unpad(c),t.prototype.reflow.call(this,f),r=p?this.box=new $t(0,0,n,s):this.box,a&&p?(u(),f=this.contentBox=this.paddingBox.clone().unpad(c)):(f=this.contentBox=r.clone(),r.pad(c).pad(h).pad(l),u()),this.translateChildren(r.x1-f.x1+l.left+h+c.left,r.y1-f.y1+l.top+h+c.top);for(var d=this.children,v=0;v<d.length;v++){var y=d[v];y.reflow(y.box)}},e.prototype.align=function(t,e,r){this.box.align(t,e,r)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(S.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:Tt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(oe);It(ne,{align:h,vAlign:v,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var se=ne,ae=function(t){function e(e,r){t.call(this,e),this.pointData=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,r=t.type,i=t.rotation,o=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,l=this.visualStyle();if(r===p)a=new S.drawing.Circle(new S.geometry.Circle([jt(e.x1+n,3),jt(e.y1+s,3)],Math.min(n,s)),l);else if("triangle"===r)a=S.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],l).close();else if("cross"===r)(a=new S.drawing.MultiPath(l)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var c=e.toRect();if("roundedRect"===r){var h=Tt(t.borderRadius,c.width()/5);c.setCornerRadius(h)}a=S.drawing.Path.fromRect(c,l)}return i&&a.transform(S.geometry.transform().rotate(-i,[o.x,o.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,r=this.pointData||{};return e?e({value:r.value,dataItem:r.dataItem,sender:this.getSender(),series:r.series,category:r.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(se);It(ae,{type:p,align:a,vAlign:a});var pe=ae,le={glass:{type:"linear",rotation:0,stops:[{offset:0,color:g,opacity:0},{offset:.25,color:g,opacity:.3},{offset:1,color:g,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:g,opacity:.55},{offset:.65,color:g,opacity:0},{offset:.95,color:g,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:g,opacity:.06},{offset:.83,color:g,opacity:.2},{offset:.95,color:g,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:g,opacity:0},{offset:.5,color:g,opacity:.3},{offset:.99,color:g,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:g,opacity:.2},{offset:.15,color:g,opacity:.15},{offset:.17,color:g,opacity:.35},{offset:.85,color:g,opacity:.05},{offset:.87,color:g,opacity:.15},{offset:.99,color:g,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function ce(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var r=Math.min(t.x1,e.x1),i=Math.max(t.x1,e.x1),o=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),c=[];return c[0]=new $t(i,s,o,a),c[1]=new $t(r,a,i,p),c[2]=new $t(o,a,n,p),c[3]=new $t(i,p,o,l),t.x1===r&&t.y1===s||e.x1===r&&e.y1===s?(c[4]=new $t(r,s,i,a),c[5]=new $t(o,p,n,l)):(c[4]=new $t(o,s,n,a),c[5]=new $t(r,p,i,l)),st(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var he=function(t){function e(e){t.call(this,e);var r=this.options;r.width=parseInt(r.width,10),r.height=parseInt(r.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,r=new $t(0,0,t.width,t.height);this.box=r.unpad(t.margin);for(var i=0;i<e.length;i++)e[i].reflow(r),r=ce(r,e[i].box)||new $t},e.prototype.createVisual=function(){this.visual=new S.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},r=this.box.clone().pad(t.margin).unpad(e.width),i=S.drawing.Path.fromRect(r.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(i)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,r=this.gradients,i=Ct(t),o=le[t.gradient];if(r[i])e=r[i];else{var n=Object.assign({},o,t);"linear"===o.type?e=new S.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,r=t.innerRadius/t.radius*100,i=e.length,o=[],n=0;n<i;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-r)+r)/100,o.push(s)}return o}(n)),(e=new S.drawing.RadialGradient(n)).supportVML=!1!==o.supportVML),r[i]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new $t(0,0,t.width,t.height)},e}(oe);It(he,{width:600,height:400,background:g,border:{color:n,width:0},margin:z(5),zIndex:-2});var ue=he,fe=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=m,this.elementAxis=x,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=x,this.elementAxis=m,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,r=this.groupAxis,i=this.elementSizeField,o=this.groupSizeField,n=this.groupOptions(),s=n.groups,a=n.groupsSize,p=n.maxGroupElementsSize,l=s.length,c=t[r+1]+this.alignStart(a,t[o]());if(l){for(var h=c,u=0;u<l;u++){for(var f=s[u],d=f.groupElements,v=t[e+1],y=d.length,g=0;g<y;g++){var m=d[g],x=this.elementSize(m),b=h+this.alignStart(x[o],f.groupSize),_=new $t;_[r+1]=b,_[r+2]=b+x[o],_[e+1]=v,_[e+2]=v+x[i],m.reflow(_),v+=x[i]+this.elementSpacing}h+=f.groupSize+this.groupSpacing}t[r+1]=c,t[r+2]=c+a,t[e+2]=t[e+1]+p}},e.prototype.alignStart=function(t,e){var r=0,i=this.options.align;return i===d||i===s?r=e-t:i===a&&(r=(e-t)/2),r},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,r=this.elementSizeField,i=this.groupSizeField,o=this.elementSpacing,n=this.groupSpacing,s=jt(t[r]()),a=e.length,p=[],l=0,c=0,h=0,u=0,f=[],d=0;d<a;d++){var v=e[d];v.box||v.reflow(t);var y=this.elementSize(v);this.options.wrap&&jt(c+o+y[r])>s&&(p.push({groupElements:f,groupSize:l,groupElementsSize:c}),u=Math.max(u,c),h+=n+l,l=0,c=0,f=[]),l=Math.max(l,y[i]),c>0&&(c+=o),c+=y[r],f.push(v)}return p.push({groupElements:f,groupSize:l,groupElementsSize:c}),{groups:p,groupsSize:h+=l,maxGroupElementsSize:u=Math.max(u,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(oe);It(fe,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var de=fe,ve=S.drawing.Text,ye=function(t){function e(e,r){t.call(this,r),this.content=e,this.reflow(new $t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=e.size=S.drawing.util.measureText(this.content,{font:e.font});this.baseline=r.baseline,this.box=new $t(t.x1,t.y1,t.x1+r.width,t.y1+r.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,r=t.color,i=t.opacity,o=t.cursor;this.visual=new ve(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:r,opacity:i},cursor:o})},e}(oe);It(ye,{font:"12px sans-serif",color:n});var ge=ye;function me(t){var e=t.origin,r=t.bottomRight();return new $t(e.x,e.y,r.x,r.y)}var xe=/\n/m,be=function(t){function e(e,r,i){t.call(this,r),this.content=e,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new $t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(xe),r=new de({vertical:!0,align:t.align,wrap:!1}),i=E({},t,{opacity:1,animation:null});this.container=r,this.append(r);for(var o=0;o<e.length;o++){var n=new ge(e[o].trim(),i);r.append(n)}},e.prototype.reflow=function(e){var r=this.options,i=r.visual;if(this.container.options.align=r.align,i&&!this._boxReflow){var o=e;o.hasSize()||(this._boxReflow=!0,this.reflow(o),this._boxReflow=!1,o=this.box);var n=this.visual=i(this.visualContext(o));n&&(o=me(n.clippedBBox()||new S.geometry.Rect),n.options.zIndex=r.zIndex),this.box=this.contentBox=this.paddingBox=o}else if(t.prototype.reflow.call(this,e),r.rotation){var s=z(r.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new S.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=S.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!xt(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else t.prototype.renderVisual.call(this)},e.prototype.visualContext=function(t){var e=this,r={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return e._boxReflow=!0,e.reflow(t),e._boxReflow=!1,e.getDefaultVisual()}};return this.data&&Object.assign(r,this.data),r},e.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},e.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,m,t.align),this.align(this.targetBox,x,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),r=e.x,i=e.y,o=this.rotatedBox.center();return S.geometry.transform().translate(o.x-r,o.y-i).rotate(t,[r,i])},e}(se),_e=function(t){function e(e){t.call(this,e),this.append(new be(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,m)},e.buildTitle=function(t,r,i){var o,n=t;return"string"==typeof t&&(n={text:t}),(n=Object.assign({visible:!0},i,n))&&n.visible&&n.text&&(o=new e(n),r.append(o)),o},e}(oe);It(_e,{color:n,position:v,align:a,margin:z(5),padding:z(5)});var we=_e,Oe=function(t){function e(e,r,i,o,n){t.call(this,r,n),this.text=r,this.value=e,this.index=i,this.dataItem=o,this.reflow(new $t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var r=t.prototype.visualContext.call(this,e);return r.value=this.value,r.dataItem=this.dataItem,r.format=this.options.format,r.culture=this.options.culture,r},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:Ot(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),r=this.rotationTransform();this.box=me(e.bbox(r.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,r=e.rotation;if(!r)return null;if(e.alignRotation===a)return t.prototype.rotationTransform.call(this);var i=S.geometry.transform().rotate(r).matrix(),o=this.normalBox.toRect(),n=this.targetBox.toRect(),p=e.rotationOrigin||v,l=p===v||p===s?m:x,c=p===v||p===s?x:m,u=p===v||p===h?n.origin:n.bottomRight(),f=o.topLeft().transformCopy(i),d=o.topRight().transformCopy(i),y=o.bottomRight().transformCopy(i),g=o.bottomLeft().transformCopy(i),b=S.geometry.Rect.fromPoints(f,d,y,g),_={};_[c]=n.origin[c]-b.origin[c];var w,O,P=Math.abs(f[c]+_[c]-u[c]),A=Math.abs(d[c]+_[c]-u[c]);jt(P,10)===jt(A,10)?(w=f,O=d):A<P?(w=d,O=y):(w=f,O=g);var C=w[l]+(O[l]-w[l])/2;return _[l]=n.center()[l]-C,S.geometry.transform().translate(_.x,_.y).rotate(r)},e}(be);It(Oe,{_autoReflow:!1});var Se=Oe,Pe=function(t){function e(e,r,i){t.call(this,r),this.fields=e,this.chartService=i,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hide=function(){this.options.visible=!1},e.prototype.show=function(){this.options.visible=!0},e.prototype.render=function(){var t=this,e=this.options;if(e.visible){var r,i,o=e.label,n=e.icon,s=new $t,a=function(){return t},l=n.size,c=this.fields.text;if(xt(o)&&o.visible){var h=rt(o);h?c=h(this.fields):o.format&&(c=this.chartService.format.auto(o.format,c)),o.color||(o.color="inside"===o.position?"#fff":n.background),this.label=new be(c,E({},o)),this.label.aliasFor=a,"inside"!==o.position||xt(l)||(n.type===p?l=Math.max(this.label.box.width(),this.label.box.height()):(r=this.label.box.width(),i=this.label.box.height()),s.wrap(this.label.box))}n.width=r||l||7,n.height=i||l||7;var u=new pe(E({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new $t),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,r,i,o=this.options,n=this.label,a=this.marker,p=this.wrapperBox,l=t.center(),c=o.line.length,u=o.position;o.visible&&(ct(u,[h,d])?u===h?(i=p.alignTo(t,u).translate(-c,t.center().y-p.center().y),o.line.visible&&(e=[t.x1,l.y],this.linePoints=[e,[i.x2,l.y]],r=i.clone().wrapPoint(e))):(i=p.alignTo(t,u).translate(c,t.center().y-p.center().y),o.line.visible&&(e=[t.x2,l.y],this.linePoints=[e,[i.x1,l.y]],r=i.clone().wrapPoint(e))):u===s?(i=p.alignTo(t,u).translate(t.center().x-p.center().x,c),o.line.visible&&(e=[l.x,t.y2],this.linePoints=[e,[l.x,i.y1]],r=i.clone().wrapPoint(e))):(i=p.alignTo(t,u).translate(t.center().x-p.center().x,-c),o.line.visible&&(e=[l.x,t.y1],this.linePoints=[e,[l.x,i.y2]],r=i.clone().wrapPoint(e))),a&&a.reflow(i),n&&(n.reflow(i),a&&("outside"===o.label.position&&n.box.alignTo(a.box,u),n.reflow(n.box))),this.contentBox=i,this.targetBox=t,this.box=r||i)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},e.prototype.renderVisual=function(){var e=this,r=this.options,i=r.visual;r.visible&&i?(this.visual=i(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:r.background,border:r.background,icon:r.icon,label:r.label,line:r.line,position:r.position,visible:r.visible},createVisual:function(){e.createVisual(),e.renderChildren();var t=e.visual;return delete e.visual,t}})),this.addVisual()):t.prototype.renderVisual.call(this)},e.prototype.createLine=function(){var t=this.options.line;if(this.linePoints){var e=S.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});P(e),this.visual.append(e)}},e.prototype.click=function(t,e){var r=this.eventArgs(e);t.trigger("noteClick",r)||e.preventDefault()},e.prototype.over=function(t,e){var r=this.eventArgs(e);t.trigger("noteHover",r)||e.preventDefault()},e.prototype.out=function(t,e){var r=this.eventArgs(e);t.trigger("noteLeave",r)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:Ot(t),text:xt(e.label)?e.label.text:"",visual:this.visual})},e}(se);It(Pe,{icon:{visible:!0,type:p},label:{position:"inside",visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:v,zIndex:2});var Ae=Pe;function Ce(t,e){var r=t.tickX,i=t.tickY,o=t.position,n=new S.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(r,o).lineTo(r+e.size,o):n.moveTo(o,i).lineTo(o,i+e.size),P(n),n}function ke(t,e){var r=t.lineStart,i=t.lineEnd,o=t.position,n=new S.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(r,o).lineTo(i,o):n.moveTo(o,r).lineTo(o,i),P(n),n}var je=function(t){function e(e,r){void 0===r&&(r=new Z),t.call(this,e),this.chartService=r,this.options.visible||(this.options=E({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=E({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=E({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;R(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this.options,e=t.vertical?d:a,r=E({},t.labels,{align:e,zIndex:t.zIndex}),i=Math.max(1,r.step);if(this.clearLabels(),r.visible){this.normalizeLabelRotation(r),"auto"===r.rotation&&(r.rotation=0,t.autoRotateLabels=!0);for(var o=this.labelsRange(),n=o.min;n<o.max;n+=i){var s={index:n,count:o.max},p=this.createAxisLabel(n,r,s);p&&(this.append(p),this.labels.push(p))}}},e.prototype.clearLabels=function(){this.children=st(this.children,(function(t){return!(t instanceof Se)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=st(this.children,(function(e){return e!==t.title})),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,r=t.vertical,i=t.labels.mirror,o=i?e.x1:e.x2,n=i?e.y2:e.y1,s=t.line.width||0;return r?new $t(o,e.y1,o,e.y2-s):new $t(e.x1,n,e.x2-s,n)},e.prototype.createTitle=function(){var t=this.options,e=E({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var r=new be(e.text,e);this.append(r),this.title=r}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,r=e.data||[];this.notes=[];for(var i=0;i<r.length;i++){var o=E({},e,r[i]);o.value=this.parseNoteValue(o.value);var n=new Ae({value:o.value,text:o.label.text,dataItem:o},o,this.chartService);n.options.visible&&(xt(n.options.position)?t.vertical&&!ct(n.options.position,[h,d])?n.options.position=t.reverse?h:d:t.vertical||ct(n.options.position,[v,s])||(n.options.position=t.reverse?s:v):t.vertical?n.options.position=t.reverse?h:d:n.options.position=t.reverse?s:v,this.append(n),this.notes.push(n))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new S.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,r=this.lineBox(),i=e.labels.mirror,o=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function s(e,o,s){var a=e.length,p=Math.max(1,o.step);if(o.visible)for(var l=o.skip;l<a;l+=p)xt(s)&&l%s==0||(n.tickX=i?r.x2:r.x2-o.size,n.tickY=i?r.y1-o.size:r.y1,n.position=e[l],t.append(Ce(n,o)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,o/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,r=this.lineBox();if(e.width>0&&e.visible){var i=new S.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});i.moveTo(r.x1,r.y1).lineTo(r.x2,r.y2),t._alignLines&&P(i);var o=this._lineGroup=new S.drawing.Group;o.append(i),this.visual.append(o),this.createTicks(o)}},e.prototype.getActualTickSize=function(){var t=this.options,e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e},e.prototype.createBackground=function(){var t=this.options,e=this.box,r=t.background;r&&(this._backgroundPath=S.drawing.Path.fromRect(e.toRect(),{fill:{color:r},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,r=e.plotBands||[],i=e.vertical,o=this.plotArea;if(0!==r.length){for(var n=this._plotbandGroup=new S.drawing.Group({zIndex:-1}),s=st(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<r.length;a++){var p=r[a],l=void 0,c=void 0,u=p.label,f=void 0;if(i?(l=(s||o.axisX).lineBox(),c=t.getSlot(p.from,p.to,!0)):(l=t.getSlot(p.from,p.to,!0),c=(s||o.axisY).lineBox()),u&&(u.vAlign=u.position||h,f=t.createPlotBandLabel(u,p,new $t(l.x1,c.y1,l.x2,c.y2))),0!==l.width()&&0!==c.height()){var d=new S.geometry.Rect([l.x1,c.y1],[l.width(),c.height()]),v=S.drawing.Path.fromRect(d,{fill:{color:p.color,opacity:p.opacity},stroke:null});n.append(v),f&&n.append(f)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,r){if(!1===t.visible)return null;var i,o=t.text;if(xt(t)&&t.visible){var n=rt(t);n?o=n({text:o,item:e}):t.format&&(o=this.chartService.format.auto(t.format,o)),t.color||(t.color=this.options.labels.color)}return(i=new be(o,t)).reflow(r),i.renderVisual(),i.visual},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,i=e.majorGridLines,o=e.minorUnit,n=e.vertical,s=t.options.line.visible,a=i.visible?e.majorUnit:0,p=t.lineBox(),l=p[n?"y1":"x1"],c={lineStart:p[n?"x1":"y1"],lineEnd:p[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function f(t,e,r){var i=t.length,o=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<i;n+=o){var a=jt(t[n]);ct(a,h)||n%r==0||s&&l===a||(c.position=a,u.append(ke(c,e)),h.push(a))}}return f(this.getMajorTickPositions(),i),f(this.getMinorTickPositions(),r,a/o),u.children},e.prototype.reflow=function(t){for(var e=this.options,r=this.labels,i=this.title,o=e.vertical,n=r.length,s=o?"width":"height",a=i?i.box[s]():0,p=this.getActualTickSize()+e.margin+a,l=((this.getRoot()||{}).box||t)[s](),c=0,h=0;h<n;h++){var u=r[h].box[s]();u+p<=l&&(c=Math.max(c,u))}this.box=o?new $t(t.x1,t.y1,t.x1+c+p,t.y2):new $t(t.x1,t.y1,t.x2,t.y1+c+p),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,r=this.labelsBetweenTicks(),i=t.vertical,o=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],p=this.labelTickIndex(a),l=i?a.box.height():a.box.width(),c=n[p],h=n[p+1],u=void 0,f=void 0;if(i){if(r)u=c+(h-c)/2-l/2;else u=c-l/2;f=u}else r?(u=c,f=h):f=(u=c-l/2)+l;this.positionLabel(a,o,u,f)}},e.prototype.positionLabel=function(t,e,r,i){void 0===i&&(i=r);var o,n=this.options,a=n.vertical,p=this.lineBox(),l=this.getActualTickSize()+n.margin;if(a){var c=p.x2;e?(c+=l,t.options.rotationOrigin=h):(c-=l+t.box.width(),t.options.rotationOrigin=d),o=t.box.move(c,r)}else{var u=p.y1;e?(u-=l+t.box.height(),t.options.rotationOrigin=s):(u+=l,t.options.rotationOrigin=v),o=new $t(r,u,i,u+t.box.height())}t.reflow(o)},e.prototype.autoRotateLabelAngle=function(t,e){return t.width()<e?0:t.height()>e?-90:-45},e.prototype.autoRotateLabels=function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var t=this.getMajorTickPositions(),e=this.labels,r=Math.min(e.length,t.length-1),i=0,o=0;o<r;o++){var n=Math.abs(t[o+1]-t[o]),s=e[o].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(i=a),-90===i)break}if(0!==i){for(var p=0;p<e.length;p++)e[p].options.rotation=i,e[p].reflow(new $t);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,r=t.labels.mirror,i=t.vertical;e&&(i?(e.options.align=r?d:h,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=r?v:s),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],r=e.options.value,i=void 0;xt(r)?(this.shouldRenderNote(r)?e.show():e.hide(),i=this.noteSlot(r)):e.hide(),e.reflow(i||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),r=this.options.vertical,i=r?x:m;this.box.snapTo(e,i),r?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[i+1]-=this.lineBox()[i+1]-e[i+1],this.box[i+2]-=this.lineBox()[i+2]-e[i+2]},e.prototype.axisLabelText=function(t,e,r){var i,o=this,n=rt(e),s=function(){return e.format?o.chartService.format.localeAuto(e.format,[t],e.culture):t};n?i=n(Object.assign({},r,{get text(){return s()},value:t,format:e.format,culture:e.culture})):i=s();return i},e.prototype.slot=function(t,e,r){var i=this.getSlot(t,e,r);if(i)return i.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var r=this.options.vertical?x:m;if(this.chartService.isPannable(r)){var i=this.maxLabelOffset();t[r+1]-=i.start,t[r+2]+=i.end}else{e[0].options.visible&&t.wrap(e[0].box);var o=e[e.length-1];o.options.visible&&t.wrap(o.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,r=t.reverse,i=this.labelsBetweenTicks(),o=this.getLabelsTickPositions(),n=e?x:m,s=this.labels,a=r?1:0,p=r?0:1,l=0,c=0,h=0;h<s.length;h++){var u=s[h],f=this.labelTickIndex(u),d=void 0,v=void 0;i?(d=o[f+a],v=o[f+p]):d=v=o[f],l=Math.max(l,d-u.box[n+1]),c=Math.max(c,u.box[n+2]-v)}return{start:l,end:c}},e.prototype.limitRange=function(t,e,r,i,o){var n=this.options;if(t<r&&o<0&&(!xt(n.min)||n.min<=r)||i<e&&o>0&&(!xt(n.max)||i<=n.max))return null;if(e<r&&o>0||i<t&&o<0)return{min:t,max:e};var s=e-t,a=t,p=e;return t<r&&o<0?(a=At(t,r,i),p=At(t+s,r+s,i)):e>i&&o>0&&(p=At(e,r,i),a=At(e-s,r,i-s)),{min:a,max:p}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(oe);It(je,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:"outside",size:4,skip:0,step:1},minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:n,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Me=je,Te="days",Ee="years",Re={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function Ie(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Be(t,e){return new Date(t.getTime()+e)}function Le(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Ve(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function ze(t,e,r,i){var o=t;if(t){var n=Le(t),s=n.getHours();r===Ee?Ve(o=new Date(n.getFullYear()+e,0,1),0):"months"===r?Ve(o=new Date(n.getFullYear(),n.getMonth()+e,1),s):"weeks"===r?Ve(o=ze(function(t,e){void 0===e&&(e=0);var r=0,i=t.getDay();if(!isNaN(i))for(;i!==e;)0===i?i=6:i--,r++;return Be(t,864e5*-r)}(n,i),7*e,Te),s):r===Te?Ve(o=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):"hours"===r?o=function(t,e){var r=new Date(t);r.setMinutes(0,0,0);var i=6e4*(t.getTimezoneOffset()-r.getTimezoneOffset());return Be(r,i+36e5*e)}(n,e):"minutes"===r?(o=Be(n,6e4*e)).getSeconds()>0&&o.setSeconds(0):"seconds"===r?o=Be(n,1e3*e):"milliseconds"===r&&(o=Be(n,e)),"milliseconds"!==r&&o.getMilliseconds()>0&&o.setMilliseconds(0)}return o}function De(t,e,r){return ze(Le(t),0,e,r)}function Ne(t,e,r){var i=Le(t);return i&&De(i,e,r).getTime()===i.getTime()?i:ze(i,1,e,r)}function Fe(t,e){return t&&e?t.getTime()-e.getTime():-1}function Ue(t,e){return t.getTime()-e}function He(t){if(b(t)){for(var e=[],r=0;r<t.length;r++)e.push(He(t[r]));return e}if(t)return Le(t).getTime()}function Ge(t,e){return t&&e?He(t)===He(e):t===e}function We(t,e,r){return Ie(t,e)/Re[r]}function Ke(t,e,r,i){var o=Le(t),n=Le(e);return("months"===r?o.getMonth()-n.getMonth()+12*(o.getFullYear()-n.getFullYear())+We(o,new Date(o.getFullYear(),o.getMonth()),Te)/new Date(o.getFullYear(),o.getMonth()+1,0).getDate():r===Ee?o.getFullYear()-n.getFullYear()+Ke(o,new Date(o.getFullYear(),0),"months",1)/12:r===Te||"weeks"===r?We(o,n,r):Ue(o,e)/Re[r])/i}function Xe(t,e,r){return r===Ee?e.getFullYear()-t.getFullYear():"months"===r?12*Xe(t,e,Ee)+e.getMonth()-t.getMonth():r===Te?Math.floor(Ue(e,t)/864e5):Math.floor(Ue(e,t)/Re[r])}function Ye(t,e){return k(e)&&t.parseDate(e)||Le(e)}function qe(t,e){if(b(e)){for(var r=[],i=0;i<e.length;i++)r.push(Ye(t,e[i]));return r}return Ye(t,e)}function Ze(t,e){return C(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var $e=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this._ticks={}},e.prototype.categoriesHash=function(){return""},e.prototype.clone=function(){var t=new e(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],r=xt(t.min),i=xt(t.max);if(t.srcCategories=t.categories=e,(r||i)&&e.length){var o,n=r?Math.floor(t.min):0;o=i?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,o)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:C(t.min)?t.min%1:0,max:C(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0)}},e.prototype.totalRangeIndices=function(t){var e,r=this.options,i=C(r.min)?r.min:0;if(e=C(r.max)?r.max:C(r.min)?i+r.categories.length:this.totalRange().max||1,t){var o=this.totalRange();i=At(i,0,o.max),e=At(e,0,o.max)}return{min:i,max:e}},e.prototype.range=function(){var t=this.options;return{min:C(t.min)?t.min:0,max:C(t.max)?t.max:this.totalRange().max}},e.prototype.roundedRange=function(){return this.range()},e.prototype.totalRange=function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},e.prototype.scaleOptions=function(){var t=this.rangeIndices(),e=t.min,r=t.max,i=this.lineBox();return{scale:(this.options.vertical?i.height():i.width())/(r-e||1)*(this.options.reverse?-1:1),box:i,min:e,max:r}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this.box,e=this.labels;if(e.length>0){var r=this.options.vertical?x:m,i=t[r+1],o=t[r+2],n=e[0],s=Pt(e);(n.box[r+1]>o||n.box[r+2]<i)&&(n.options.visible=!1),(s.box[r+1]>o||s.box[r+2]<i)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),r=e.min,i=e.max,o=Math.ceil(i),n=Math.floor(r),s=[];n<=o;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,i=e.reverse,o=this.scaleOptions(),n=o.scale,s=o.box,a=o.min,p=s[(r?x:m)+(i?2:1)],l=this.tickIndices(t),c=[],h=0;h<l.length;h++)c.push(p+jt(n*(l[h]-a),3));return c},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,r=this.rangeIndices(),i=this.lineBox(),o=i.getHash()+r.min+","+r.max+t.reverse+t.justified;if(e._hash!==o){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=o,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,i),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),i):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var r=this.options.vertical?x:m,i=function(t){return e[r+1]<=t&&t<=e[r+2]},o=t.length-1,n=0;!i(t[n])&&n<=o;)n++;for(var s=o;!i(t[s])&&s>=0;)s--;return t.slice(n,s+1)},e.prototype.getSlot=function(t,e,r){var i=this.options,o=i.reverse,n=i.justified,s=i.vertical,a=this.scaleOptions(),p=a.scale,l=a.box,c=a.min,h=s?x:m,u=l[h+(o?2:1)],f=l.clone(),d=!xt(e),v=Tt(t,0),y=Tt(e,v);y=Math.max(y-1,v);var g=u+(v-c)*p,b=u+((y=Math.max(v,y))+1-c)*p;return d&&n&&(b=g),r&&(g=At(g,l[h+1],l[h+2]),b=At(b,l[h+1],l[h+2])),f[h+1]=o?b:g,f[h+2]=o?g:b,f},e.prototype.limitSlot=function(t){var e=this.options.vertical?x:m,r=this.lineBox(),i=t.clone();return i[e+1]=At(t[e+1],r[e+1],r[e+2]),i[e+2]=At(t[e+2],r[e+1],r[e+2]),i},e.prototype.slot=function(e,r,i){var o=Math.floor(this.options.min||0),n=e,s=r;return"string"==typeof n?n=this.categoryIndex(n):C(n)&&(n-=o),"string"==typeof s?s=this.categoryIndex(s):C(s)&&(s-=o),t.prototype.slot.call(this,n,s,i)},e.prototype.pointCategoryIndex=function(t){var e=this.options,r=e.reverse,i=e.justified,o=e.vertical?x:m,n=this.scaleOptions(),s=n.scale,a=n.box,p=n.min,l=n.max,c=r?l:p,h=a[o+1],u=a[o+2],f=t[o];if(f<h||f>u)return null;var d=c+(f-h)/s,v=d%1;return i?d=Math.round(d):0===v&&d>0&&d--,Math.floor(d)},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},e.prototype.categoryIndex=function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},e.prototype.categoryAt=function(t,e){var r=this.options;return(e?r.srcCategories:r.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,r=this.lineBox(),i=e.vertical?r.height():r.width(),o=e.categories.length,n=jt(t/(i/o),10);return{min:n,max:o+n}},e.prototype.zoomRange=function(t){var e=this.totalRangeIndices(),r=this.totalRange(),i=r.min,o=r.max,n=At(e.min+t,i,o),s=At(e.max-t,i,o);if(s-n>0)return{min:n,max:s}},e.prototype.scaleRange=function(t){var e=this.options.categories.length,r=t*e;return{min:-r,max:e+r}},e.prototype.labelsCount=function(){var t=this.labelsRange();return t.max-t.min},e.prototype.labelsRange=function(){var t=this.options,e=t.justified,r=t.labels,i=this.totalRangeIndices(!0),o=i.min,n=i.max,s=Math.floor(o);return e?(o=Math.ceil(o),n=Math.floor(n)):(o=Math.floor(o),n=Math.ceil(n)),{min:(o>r.skip?r.skip+r.step*Math.ceil((o-r.skip)/r.step):r.skip)-s,max:(t.categories.length?n+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e,r){var i=this.options,o=i.dataItems?i.dataItems[t]:null,n=Tt(i.categories[t],"");r.dataItem=o;var s=this.axisLabelText(n,e,r);return new Se(n,s,t,o,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,r=t-Math.floor(e.min||0);return this.getSlot(r)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this.notes,e=this.box;if(t&&t.length)for(var r=this.options.vertical?x:m,i=e[r+1],o=e[r+2],n=0;n<t.length;n++){var s=t[n];s.box&&(o<s.box[r+1]||s.box[r+2]<i)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),r=this.scaleOptions().scale,i=jt(t/r,10),o=this.totalRange(),n=e.min+i,s=e.max+i;return this.limitRange(n,s,0,o.max,i)},e.prototype.pointsRange=function(t,e){var r=this.options,i=r.reverse,o=r.vertical?x:m,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,p=s.box[o+(i?2:1)],l=t[o]-p,c=e[o]-p,h=n.min+l/a,u=n.min+c/a,f=Math.min(h,u),d=Math.max(h,u);if(d-f>=.01)return{min:f,max:d}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var r=e.length,i=0;i<r;i++)if(Ge(e[i],t))return i;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return C(t.min)&&(e=Math.floor(t.min)),{min:e,max:C(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new lt,e=this.options.srcCategories,r=0;r<e.length;r++)t.set(e[r],r)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(Me);It($e,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var Qe=$e,Je={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},tr=["milliseconds","seconds","minutes","hours",Te,"weeks","months",Ee];function er(t){var e=t._range;return e||((e=t._range=Bt(t)).min=Le(e.min),e.max=Le(e.max)),e}var rr=function(t){this.options=t};rr.prototype.displayIndices=function(){return{min:0,max:1}},rr.prototype.displayRange=function(){return{}},rr.prototype.total=function(){return{}},rr.prototype.valueRange=function(){return{}},rr.prototype.valueIndex=function(){return-1},rr.prototype.values=function(){return[]},rr.prototype.totalIndex=function(){return-1},rr.prototype.valuesCount=function(){return 0},rr.prototype.totalCount=function(){return 0},rr.prototype.dateAt=function(){return null};var ir=function(t,e,r){this.options=r,r.baseUnitStep=r.baseUnitStep||1;var i=r.roundToBaseUnit,o=r.justified;this.start=ze(t,0,r.baseUnit,r.weekStartDay);var n=this.roundToTotalStep(e),s=!o&&Ge(e,n)&&!r.justifyEnd;this.end=this.roundToTotalStep(e,!o,s?1:0);var a=r.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=i?this.valueStart:a;var p=r.max;if(p){var l=!o&&Ge(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,l),this.displayEnd=i?this.roundToTotalStep(p,!o):r.max}else this.valueEnd=n,this.displayEnd=i||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function or(t,e,r){for(var i,o,n,s=er(t.categories),a=(t.max||s.max)-(t.min||s.min),p=t.autoBaseUnitSteps,l=t.maxDateGroups,c="fit"===t.baseUnit,h=e?tr.indexOf(e):0,u=c?tr[h++]:t.baseUnit,f=a/Re[u],d=f;!o||f>=l;){i=i||p[u].slice(0);do{n=i.shift()}while(n&&e===u&&n<r);if(n)f=d/(o=n);else{if(u===Pt(tr)){o=Math.ceil(d/l);break}if(!c){f>l&&(o=Math.ceil(d/l));break}u=tr[h++]||Pt(tr),d=a/Re[u],i=null}}t.baseUnitStep=o,t.baseUnit=u}function nr(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!ct(e,tr)&&function(t){for(var e,r,i=t.categories,o=xt(i)?i.length:0,n=u,s=0;s<o;s++){var a=i[s];if(a&&e){var p=Ie(a,e);p>0&&(r=(n=Math.min(n,p))>=31536e6?Ee:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Te:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=a}t.baseUnit=r||Te}(t),"fit"!==e&&"auto"!==t.baseUnitStep||or(t),t}ir.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},ir.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,r=t.baseUnitStep,i=Ke(this.displayStart,this.valueStart,e,r),o=Ke(this.displayEnd,this.valueStart,e,r);this._indices={min:i,max:o}}return this._indices},ir.prototype.total=function(){return{min:this.start,max:this.end}},ir.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},ir.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},ir.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Ke(t,this.valueStart,e.baseUnit,e.baseUnitStep))},ir.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Ke(t,this.start,e.baseUnit,e.baseUnitStep))},ir.prototype.dateIndex=function(t){var e=this.options;return Ke(t,this.valueStart,e.baseUnit,e.baseUnitStep)},ir.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},ir.prototype.values=function(){var t=this._values;if(!t){var e=this.options,r=this.valueRange();this._values=t=[];for(var i=r.min;i<=r.max;)t.push(i),i=ze(i,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},ir.prototype.dateAt=function(t,e){var r=this.options;return ze(e?this.start:this.valueStart,r.baseUnitStep*t,r.baseUnit,r.weekStartDay)},ir.prototype.roundToTotalStep=function(t,e,r){var i=this.options,o=i.baseUnit,n=i.baseUnitStep,s=i.weekStartDay,a=this.start,p=Ke(t,a,o,n),l=e?Math.ceil(p):Math.floor(p);return r&&(l+=r),ze(a,l*n,o,s)};var sr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.categoriesHash=function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},e.prototype.initUserOptions=function(t){return t},e.prototype.initFields=function(){t.prototype.initFields.call(this);var e=this.chartService,r=e.intl,i=this.options,o=i.categories||[];if(o._parsed||((o=qe(r,o))._parsed=!0),i=E({roundToBaseUnit:!0},i,{categories:o,min:Ye(r,i.min),max:Ye(r,i.max),weekStartDay:Ze(i,r)}),e.panning&&e.isPannable(i.vertical?x:m)&&(i.roundToBaseUnit=!1),i.userSetBaseUnit=i.userSetBaseUnit||i.baseUnit,i.userSetBaseUnitStep=i.userSetBaseUnitStep||i.baseUnitStep,this.options=i,i.srcCategories=o,o.length>0){var n=er(o),s=i.maxDivisions;if(this.dataRange=new ir(n.min,n.max,nr(i)),s){var a=this.dataRange.displayRange(),p=Object.assign({},i,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),l=this.dataRange.options;or(p,l.baseUnit,l.baseUnitStep),this.divisionRange=new ir(n.min,n.max,p)}else this.divisionRange=this.dataRange}else i.baseUnit=i.baseUnit||Te,this.dataRange=this.divisionRange=new rr(i);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var r=this.dataRange,i=this.divisionRange,o=i.valuesCount();if(!this.options.maxDivisions||!o)return t.prototype.tickIndices.call(this,e);var n=[],s=i.values(),a=0;this.options.justified||(s=s.concat(i.dateAt(o)),a=.5);for(var p=0;p<s.length;p++)if(n.push(r.dateIndex(s[p])+a),1!==e&&p>=1){var l=n.length-1;n.splice(p,0,n[l-1]+(n[l]-n[l-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),r=this.options.categories||[];return Fe(t,e.min)>=0&&Fe(t,e.max)<=0&&r.length},e.prototype.parseNoteValue=function(t){return Ye(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,r=e.baseUnit,i=e.weekStartDay,o=e.vertical,n=this.lineBox(),s=o?n.height():n.width(),a=this.range(),p=s/(a.max-a.min),l=jt(t/p,10);if(a.min&&a.max){var c=Be(e.min||a.min,l),h=Be(e.max||a.max,l);a={min:ze(c,0,r,i),max:ze(h,0,r,i)}}return a},e.prototype.scaleRange=function(t){var e=Math.abs(t),r=this.range(),i=r.min,o=r.max;if(i&&o){for(;e--;){var n=Ue(i,o),s=Math.round(.1*n);t<0?(i=Be(i,s),o=Be(o,-s)):(i=Be(i,-s),o=Be(o,s))}r={min:i,max:o}}return r},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,r=this.lineBox(),i=e.vertical?r.height():r.width(),o=this.dataRange.displayRange(),n=o.min,s=o.max,a=this.dataRange.total(),p=jt(t/(i/(s-n)),10)*(e.reverse?-1:1),l=Be(n,p),c=Be(s,p),h=this.limitRange(He(l),He(c),He(a.min),He(a.max),p);return h?(h.min=Le(h.min),h.max=Le(h.max),h.baseUnit=e.baseUnit,h.baseUnitStep=e.baseUnitStep||1,h.userSetBaseUnit=e.userSetBaseUnit,h.userSetBaseUnitStep=e.userSetBaseUnitStep,h):void 0},e.prototype.pointsRange=function(e,r){if(this.isEmpty())return null;var i=t.prototype.pointsRange.call(this,e,r),o=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),s=Ue(o.max,o.min)/(n.max-n.min),a=this.options;return{min:Be(o.min,i.min*s),max:Be(o.min,i.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.zoomRange=function(t){if(this.isEmpty())return null;var e=this.options,r="fit"===e.userSetBaseUnit,i=this.dataRange.total(),o=this.dataRange.displayRange(),n=o.min,s=o.max,a=this.dataRange.options,p=a.weekStartDay,l=a.baseUnit,c=a.baseUnitStep,h=ze(n,t*c,l,p),u=ze(s,-t*c,l,p);if(r){var f,d,v=e.autoBaseUnitSteps,y=e.maxDateGroups,g=Pt(v[l])*y*Re[l],m=Ue(s,n),x=Ue(u,h),b=tr.indexOf(l);if(x<Re[l]&&"milliseconds"!==l)l=tr[b-1],h=Be(n,d=(m-(y-1)*(f=Pt(v[l]))*Re[l])/2),u=Be(s,-d);else if(x>g&&l!==Ee){var _=0;do{b++,l=tr[b],_=0,d=2*Re[l];do{f=v[l][_],_++}while(_<v[l].length&&d*f<m)}while(l!==Ee&&d*f<m);(d=(d*f-m)/2)>0&&(h=Be(n,-d),u=Be(s,d),h=Be(h,At(u,i.min,i.max)-u),u=Be(u,At(h,i.min,i.max)-h))}}return h<i.min&&(h=i.min),u>i.max&&(u=i.max),h&&u&&Ue(u,h)>0?{min:h,max:u,baseUnit:e.userSetBaseUnit||e.baseUnit,baseUnitStep:e.userSetBaseUnitStep||e.baseUnitStep}:void 0},e.prototype.range=function(){return this.dataRange.displayRange()},e.prototype.createLabels=function(){t.prototype.createLabels.call(this),this.createRangeLabels()},e.prototype.clearLabels=function(){t.prototype.clearLabels.call(this),this.rangeLabels=[]},e.prototype.arrangeLabels=function(){this.arrangeRangeLabels(),t.prototype.arrangeLabels.call(this)},e.prototype.arrangeRangeLabels=function(){var t=this.options,e=this.rangeLabels;if(0!==e.length){var r=this.lineBox(),i=t.vertical,o=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var s=i?r.y1-n.box.height()/2:r.x1;this.positionLabel(n,o,s)}var a=e[1];if(a){var p=i?r.y2-a.box.height()/2:r.x2;this.positionLabel(a,o,p)}}},e.prototype.autoRotateLabels=function(){t.prototype.autoRotateLabels.call(this),this.autoRotateRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){t.prototype.hideOutOfRangeLabels.call(this),this.hideOverlappingLabels()},e.prototype.hideOverlappingLabels=function(){var t=this.rangeLabels,e=this.labels;if(0!==t.length){var r=t[0];if(r&&r.options.visible)for(var i=0;i<e.length;i++){if(!s(r,e[i]))break}var o=t[1];if(o&&o.options.visible)for(var n=e.length-1;n>0;--n){if(!s(o,e[n]))break}}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box))&&(e.options.visible=!1,!0)}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),r=this.rangeLabels,i=0;i<r.length;i++){var o=r[i];o.options.visible&&e.wrap(o.box)}return e},e.prototype.createAxisLabel=function(t,e,r){void 0===r&&(r={});var i=this.options,o=i.dataItems&&!i.maxDivisions?i.dataItems[t]:null,n=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,r.dataItem=o;var a=this.axisLabelText(n,e,r);if(a)return new Se(n,a,t,o,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,r=e.displayStart,i=e.displayEnd,o=this.options,n=Object.assign({},o.labels,o.rangeLabels,{align:a,zIndex:o.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,o.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var p=function(e,r,i){if(i){var o=new Se(r,i,e,null,n);t.append(o),t.rangeLabels.push(o)}};p(0,r,this.axisLabelText(r,n,{index:0,count:2})),p(1,i,this.axisLabelText(i,n,{index:1,count:2}))}},e.prototype.autoRotateRangeLabels=function(){var t=this,e=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===e.length){var r=function(e,r,i){var o=2*Math.abs(r[i+1]-r[i]),n=t.autoRotateLabelAngle(e.box,o);0!==n&&(e.options.rotation=n,e.reflow(new $t))},i=this.getMajorTickPositions();r(e[0],i,0),r(e[1],i,i.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,r){var i=this.dataRange,o=t,n=e;o instanceof Date&&(o=i.dateIndex(o)),n instanceof Date&&(n=i.dateIndex(n));var s=this.getSlot(o,n,r);if(s)return s.toRect()},e.prototype.getSlot=function(e,r,i){var o=e,n=r;return"object"==typeof o&&(o=this.categoryIndex(o)),"object"==typeof n&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,o,n,i)},e.prototype.valueRange=function(){var t=er(this.options.srcCategories);return{min:Le(t.min),max:Le(t.max)}},e.prototype.categoryAt=function(t,e){return this.dataRange.dateAt(t,e)},e.prototype.categoriesCount=function(){return this.dataRange.valuesCount()},e.prototype.rangeIndices=function(){return this.dataRange.displayIndices()},e.prototype.labelsBetweenTicks=function(){return!this.divisionRange.options.justified},e.prototype.prepareUserOptions=function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},e.prototype.totalIndex=function(t){return this.dataRange.totalIndex(t)},e.prototype.currentRangeIndices=function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalRange=function(){return this.dataRange.total()},e.prototype.totalCount=function(){return this.dataRange.totalCount()},e.prototype.isEmpty=function(){return!this.options.srcCategories.length},e.prototype.roundedRange=function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var t=this.options,e=er(t.srcCategories);return new ir(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(Qe);It(sr,{type:l,labels:{dateFormats:Je},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var ar=sr;function pr(t,e){return jt(Math.floor(t/e)*e,10)}function lr(t,e){return jt(Math.ceil(t/e)*e,10)}function cr(t){return Math.max(Math.min(t,3e5),-3e5)}var hr=Math.pow(10,-9),ur=function(t){function e(e,r,i,o){t.call(this,Object.assign({},i,{seriesMin:e,seriesMax:r}),o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=function(t,e,r){var i=r.narrowRange,o=function(t,e,r){if(!t&&!e)return 0;var i;if(t>=0&&e>=0){var o=t===e?0:t;if(!1===r||!r&&(e-o)/e>.2)return 0;i=Math.max(0,o-(e-o)/2)}else i=t;return i}(t,e,i),n=function(t,e,r){if(!t&&!e)return 1;var i;if(t<=0&&e<=0){var o=t===e?0:e,n=Math.abs((o-t)/o);if(!1===r||!r&&n>.2)return 0;i=Math.min(0,o-(t-o)/2)}else i=e;return i}(t,e,i),s=Yt(o,n),a={majorUnit:s};!1!==r.roundToMajorUnit&&(o<0&&fr(o,s,1/3)&&(o-=s),n>0&&fr(n,s,1/3)&&(n+=s));return a.min=pr(o,s),a.max=lr(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:xt(e.min)?Math.min(t.min,e.min):t.min,max:xt(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var r,i,o=e;if(e){!function(t,e){for(var r=0;r<e.length;r++){var i=e[r];null===t[i]&&(t[i]=void 0)}}(e,["min","max"]),r=xt(e.min),i=xt(e.max);var n=r||i;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=pr(t.min,e.majorUnit),t.max=lr(t.max,e.majorUnit)):n&&(o=E(t,e),t.majorUnit=Yt(o.min,o.max))}t.minorUnit=(o.majorUnit||t.majorUnit)/5;var s=E(t,o);s.min>=s.max&&(r&&!i?s.max=s.min+s.majorUnit:!r&&i&&(s.min=s.max-s.majorUnit));return s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,r=e.max-e.min;return Math.floor(jt(r/t,3))+1},e.prototype.getTickPositions=function(t,e){var r=this.options,i=r.vertical,o=r.reverse,n=this.lineBox(),s=t*((i?n.height():n.width())/(r.max-r.min)),a=this.getDivisions(t),p=(i?-1:1)*(o?-1:1),l=[],c=n[(i?x:m)+(1===p?1:2)],h=0;e&&(h=e/t);for(var u=0;u<a;u++)u%h!=0&&l.push(jt(c,3)),c+=s*p;return l},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,r){void 0===r&&(r=!1);var i,o,n=this.options,s=n.vertical,a=n.reverse,p=s?x:m,l=this.lineBox(),c=l[p+(a?2:1)],h=(a?-1:1)*((s?l.height():l.width())/(n.max-n.min)),u=new $t(l.x1,l.y1,l.x1,l.y1),f=t,d=e;return xt(f)||(f=d||0),xt(d)||(d=f||0),r&&(f=Math.max(Math.min(f,n.max),n.min),d=Math.max(Math.min(d,n.max),n.min)),s?(i=n.max-Math.max(f,d),o=n.max-Math.min(f,d)):(i=Math.min(f,d)-n.min,o=Math.max(f,d)-n.min),u[p+1]=cr(c+h*(a?o:i)),u[p+2]=cr(c+h*(a?i:o)),u},e.prototype.getValue=function(t){var e=this.options,r=e.vertical,i=e.reverse,o=Number(e.max),n=Number(e.min),s=r?x:m,a=this.lineBox(),p=a[s+(i?2:1)],l=r?a.height():a.width(),c=(i?-1:1)*(t[s]-p),h=c*((o-n)/l);return c<0||c>l?null:jt(r?o-h:n+h,10)},e.prototype.translateRange=function(t){var e=this.options,r=e.vertical,i=e.reverse,o=e.max,n=e.min,s=this.lineBox(),a=r?s.height():s.width(),p=jt(t/(a/(o-n)),10);return!r&&!i||r&&i||(p=-p),{min:n+p,max:o+p,offset:p}},e.prototype.scaleRange=function(t){var e=this.options,r=-t*e.majorUnit;return{min:e.min-r,max:e.max+r}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var i=this.options,o=jt(i.min+t*i.majorUnit,10),n=this.axisLabelText(o,e,r);return new Se(o,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),i=this.getValue(e),o=Math.min(r,i),n=Math.max(r,i);if(this.isValidRange(o,n))return{min:o,max:n}},e.prototype.zoomRange=function(t){var e=this.totalMin,r=this.totalMax,i=this.scaleRange(t),o=At(i.min,e,r),n=At(i.max,e,r);if(this.isValidRange(o,n))return{min:o,max:n}},e.prototype.isValidRange=function(t,e){return e-t>hr},e}(Me);function fr(t,e,r){var i=jt(Math.abs(t%e),10);return 0===i||i>e*(1-r)}It(ur,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var dr=ur,vr=function(t){function e(e,r,i,o){var n=Le(e),s=Le(r),a=o.intl,p=i||{};p=function(t,e,r){var i=r.min||t,o=r.max||e,n=r.baseUnit||(o&&i?function(t){var e="hours";t>=31536e6?e=Ee:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Te);return e}(Ie(o,i)):"hours"),s=Re[n],a=r.weekStartDay||0,p=De(He(i)-1,n,a)||Le(o),l=Ne(He(o)+1,n,a),c=(r.majorUnit?r.majorUnit:void 0)||lr(Yt(p.getTime(),l.getTime()),s)/s,h=Xe(p,l,n),u=lr(h,c)-h,f=Math.floor(u/2),d=u-f;r.baseUnit||delete r.baseUnit;return r.baseUnit=r.baseUnit||n,r.min=r.min||ze(p,-f,n,a),r.max=r.max||ze(l,d,n,a),r.minorUnit=r.minorUnit||c/5,r.majorUnit=c,r}(n,s,p=E(p||{},{min:Ye(a,p.min),max:Ye(a,p.max),axisCrossingValue:qe(a,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:Ze(p,a)})),t.call(this,p,o),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var l=p.weekStartDay||0;this.totalMin=He(De(He(n)-1,p.baseUnit,l)),this.totalMax=He(Ne(He(s)+1,p.baseUnit,l))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){var e=this.options;return Math.floor(Xe(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,i=this.lineBox(),o=(r?-1:1)*(e.reverse?-1:1),n=i[(r?x:m)+(1===o?1:2)],s=this.getDivisions(t),a=Ue(e.max,e.min),p=(r?i.height():i.width())/a,l=e.weekStartDay||0,c=[n],h=1;h<s;h++){var u=n+Ue(ze(e.min,h*t,e.baseUnit,l),e.min)*p*o;c.push(jt(u,3))}return c},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,r){return dr.prototype.getSlot.call(this,Ye(this.intlService,t),Ye(this.intlService,e),r)},e.prototype.getValue=function(t){var e=dr.prototype.getValue.call(this,t);return null!==e?Le(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var i=this.options,o=t*i.majorUnit,n=i.weekStartDay||0,s=i.min;o>0&&(s=ze(s,o,i.baseUnit,n));var a=e.dateFormats[i.baseUnit];e.format=e.format||a;var p=this.axisLabelText(s,e,r);return new Se(s,p,t,null,e)},e.prototype.translateRange=function(t,e){var r=this.options,i=r.baseUnit,o=r.weekStartDay||0,n=this.lineBox(),s=r.vertical?n.height():n.width(),a=this.range(),p=s/Ue(a.max,a.min),l=jt(t/p,10)*(r.reverse?-1:1),c=Be(r.min,l),h=Be(r.max,l);return e||(c=ze(c,0,i,o),h=ze(h,0,i,o)),{min:c,max:h,offset:l}},e.prototype.scaleRange=function(t){for(var e=this.options,r=e.min,i=e.max,o=Math.abs(t);o--;){var n=Ue(r,i),s=Math.round(.1*n);t<0?(r=Be(r,s),i=Be(i,-s)):(r=Be(r,-s),i=Be(i,s))}return{min:r,max:i}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Fe(t,e.min)>=0&&Fe(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),r=this.limitRange(He(e.min),He(e.max),this.totalMin,this.totalMax,e.offset);if(r)return{min:Le(r.min),max:Le(r.max)}},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),i=this.getValue(e),o=Math.min(r,i),n=Math.max(r,i);return{min:Le(o),max:Le(n)}},e.prototype.zoomRange=function(t){var e=this.scaleRange(t);return{min:Le(At(He(e.min),this.totalMin,this.totalMax)),max:Le(At(He(e.max),this.totalMin,this.totalMax))}},e}(Me);It(vr,{type:l,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:Je}});var yr=vr,gr=function(t){function e(e,r,i,o){var n=E({majorUnit:10,min:e,max:r},i),s=n.majorUnit,a=function(t,e){var r,i=jt(xr(t,e),10)%1;r=t<=0?e:0!==i&&(i<.3||i>.9)?Math.pow(e,xr(t,e)+.2):Math.pow(e,Math.ceil(xr(t,e)));return r}(r,s),p=function(t,e,r){var i=r.majorUnit,o=t;t<=0?o=e<=1?Math.pow(i,-2):1:r.narrowRange||(o=Math.pow(i,Math.floor(xr(t,i))));return o}(e,r,n),l=function(t,e,r,i){var o=r.min,n=r.max;xt(r.axisCrossingValue)&&r.axisCrossingValue<=0&&mr();xt(i.max)?i.max<=0&&mr():n=e;xt(i.min)?i.min<=0&&mr():o=t;return{min:o,max:n}}(p,a,n,i);n.max=l.max,n.min=l.min,n.minorUnit=i.minorUnit||jt(s-1,10),t.call(this,n,o),this.totalMin=xt(i.min)?Math.min(p,i.min):p,this.totalMax=xt(i.max)?Math.max(a,i.max):a,this.logMin=jt(xr(l.min,s),10),this.logMax=jt(xr(l.max,s),10),this.seriesMin=e,this.seriesMax=r,this.createLabels()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return this.options.min},e.prototype.getSlot=function(t,e,r){var i,o,n=this.options,s=this.logMin,a=this.logMax,p=n.reverse,l=n.vertical,c=n.majorUnit,h=l?x:m,u=this.lineBox(),f=u[h+(p?2:1)],d=(p?-1:1)*((l?u.height():u.width())/(a-s)),v=new $t(u.x1,u.y1,u.x1,u.y1),y=t,g=e;return xt(y)||(y=g||1),xt(g)||(g=y||1),y<=0||g<=0?null:(r&&(y=Math.max(Math.min(y,n.max),n.min),g=Math.max(Math.min(g,n.max),n.min)),y=xr(y,c),g=xr(g,c),l?(i=a-Math.max(y,g),o=a-Math.min(y,g)):(i=Math.min(y,g)-s,o=Math.max(y,g)-s),v[h+1]=cr(f+d*(p?o:i)),v[h+2]=cr(f+d*(p?i:o)),v)},e.prototype.getValue=function(t){var e=this.options,r=this.logMin,i=this.logMax,o=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),p=n===o?1:-1,l=1===p?1:2,c=n?a.height():a.width(),h=(i-r)/c,u=n?x:m,f=a[u+l],d=p*(t[u]-f);if(d<0||d>c)return null;var v=r+d*h;return jt(Math.pow(s,v),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.scaleRange=function(t){var e=this.options.majorUnit,r=-t;return{min:Math.pow(e,this.logMin-r),max:Math.pow(e,this.logMax+r)}},e.prototype.translateRange=function(t){var e=this.options,r=this.logMin,i=this.logMax,o=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),p=n?a.height():a.width(),l=jt(t/(p/(i-r)),10);return!n&&!o||n&&o||(l=-l),{min:Math.pow(s,r+l),max:Math.pow(s,i+l),offset:l}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),{step:1,skip:0}),t},e.prototype.createTicks=function(t){var e=this.options,r=e.majorTicks,i=e.minorTicks,o=e.vertical,n=e.labels.mirror,s=this.lineBox(),a={vertical:o};function p(e,r){a.tickX=n?s.x2:s.x2-r.size,a.tickY=n?s.y1-r.size:s.y1,a.position=e,t.append(Ce(a,r))}return r.visible&&this.traverseMajorTicksPositions(p,r),i.visible&&this.traverseMinorTicksPositions(p,i),[]},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,i=e.majorGridLines,o=e.vertical,n=t.lineBox(),s={lineStart:n[o?"x1":"y1"],lineEnd:n[o?"x2":"y2"],vertical:o},a=[],p=this.gridLinesVisual();function l(t,e){ct(t,a)||(s.position=t,p.append(ke(s,e)),a.push(t))}return i.visible&&this.traverseMajorTicksPositions(l,i),r.visible&&this.traverseMinorTicksPositions(l,r),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var r=this._lineOptions(),i=r.lineStart,o=r.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step){t(jt(i+o*(a-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var r=this.options,i=r.min,o=r.max,n=r.minorUnit,s=r.majorUnit,a=this._lineOptions(),p=a.lineStart,l=a.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var f=this._minorIntervalOptions(u),d=e.skip;d<n;d+=e.step){var v=f.value+d*f.minorStep;if(v>o)break;if(v>=i)t(jt(p+l*(xr(v,s)-c),10),e)}},e.prototype.createAxisLabel=function(t,e,r){var i=Math.ceil(this.logMin+t),o=Math.pow(this.options.majorUnit,i),n=this.axisLabelText(o,e,r);return new Se(o,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),i=this.getValue(e);return{min:Math.min(r,i),max:Math.max(r,i)}},e.prototype.zoomRange=function(t){var e=this.options,r=this.totalMin,i=this.totalMax,o=this.scaleRange(t),n=At(o.min,r,i),s=At(o.max,r,i),a=e.majorUnit,p=s>n&&e.min&&e.max&&jt(xr(e.max,a)-xr(e.min,a),10)<1,l=!(e.min===r&&e.max===i)&&jt(xr(s,a)-xr(n,a),10)>=1;if(p||l)return{min:n,max:s}},e.prototype._minorIntervalOptions=function(t){var e=this.options,r=e.minorUnit,i=e.majorUnit,o=Math.pow(i,t);return{value:o,minorStep:(Math.pow(i,t+1)-o)/r}},e.prototype._lineOptions=function(){var t=this.options,e=t.reverse,r=t.vertical,i=r?x:m,o=this.lineBox(),n=r===e?1:-1,s=1===n?1:2;return{step:n*((r?o.height():o.width())/(this.logMax-this.logMin)),lineStart:o[i+s],lineBox:o}},e}(Me);function mr(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function xr(t,e){return Math.log(t)/Math.log(e)}It(gr,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var br=gr,_r={createGridLines:function(t){var e,r,i=this.options,o=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return i.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,o,i.majorGridLines)),i.minorGridLines.visible&&(r=this.minorGridLineAngles(t,s),gt(n,this.renderMinorGridLines(r,o,i.minorGridLines,t,s))),n},renderMajorGridLines:function(t,e,r){return this.renderGridLines(t,e,r)},renderMinorGridLines:function(t,e,r,i,o){var n=this.radiusCallback&&this.radiusCallback(e,i,o);return this.renderGridLines(t,e,r,n)},renderGridLines:function(t,e,r,i){for(var o={stroke:{width:r.width,color:r.color,dashType:r.dashType}},n=this.box.center(),s=new S.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),p=0;p<t.length;p++){var l=new S.drawing.Path(o);i&&(s.radius=i(t[p])),l.moveTo(s.center).lineTo(s.pointAt(t[p]+180)),a.append(l)}return a.children},gridLineAngles:function(t,e,r,i,o){var n=this,s=this.intervals(e,r,i,o),a=t.options,p=a.visible&&!1!==(a.line||{}).visible;return dt(s,(function(t){var e=n.intervalAngle(t);if(!p||90!==e)return e}))}},wr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.range=function(){return{min:0,max:this.options.categories.length}},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.lineBox=function(){return this.box},e.prototype.reflowLabels=function(){for(var t=this.labels,e=this.options.labels,r=e.skip||0,i=e.step||1,o=new $t,n=0;n<t.length;n++){t[n].reflow(o);var s=t[n].box;t[n].reflow(this.getSlot(r+n*i).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,r,i){void 0===i&&(i=!1);for(var o=this.options,n=o.categories.length/t||1,s=360/n,a=r||1,p=[],l=0,c=e||0;c<n;c+=a)l=o.reverse?360-c*s:c*s,l=jt(l,3)%360,i&&ct(l,i)||p.push(l);return p},e.prototype.majorIntervals=function(){return this.intervals(1)},e.prototype.minorIntervals=function(){return this.intervals(.5)},e.prototype.intervalAngle=function(t){return(360+t+this.options.startAngle)%360},e.prototype.majorAngles=function(){var t=this;return dt(this.majorIntervals(),(function(e){return t.intervalAngle(e)}))},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var r=this.options,i=r.minorGridLines,o=r.majorGridLines,n=e?this.intervals(1,o.skip,o.step):null;return this.gridLineAngles(t,.5,i.skip,i.step,n)},e.prototype.radiusCallback=function(t,e,r){if(e.options.type!==o){var i=kt(360/(2*this.options.categories.length)),n=Math.cos(i)*t,s=this.majorAngles(),a=function(e){return!r&&ct(e,s)?t:n};return a}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new S.drawing.Group({zIndex:-1}),r=0;r<t.length;r++){var i=t[r],o=this.plotBandSlot(i),n=this.getSlot(i.from),s=i.from-Math.floor(i.from);o.startAngle+=s*n.angle;var a=Math.ceil(i.to)-i.to;o.angle-=(a+s)*n.angle;var p=re.current.createRing(o,{fill:{color:i.color,opacity:i.opacity},stroke:{opacity:i.opacity}});e.append(p)}this.appendVisual(e)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var r=this.options,i=r.justified,o=this.box,n=this.majorAngles(),s=n.length,a=360/s,p=t;r.reverse&&!i&&(p=(p+1)%s);var l=n[p=At(Math.floor(p),0,s-1)];i&&(l-=a/2)<0&&(l+=360);var c=a*(At(Math.ceil(e||p),p,s-1)-p+1);return new Jt(o.center(),0,o.height()/2,l,c)},e.prototype.slot=function(t,e){var r=this.getSlot(t,e),i=r.startAngle+180,o=i+r.angle;return new S.geometry.Arc([r.center.x,r.center.y],{startAngle:i,endAngle:o,radiusX:r.radius,radiusY:r.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,r=null,i=0;i<e;i++){if(this.getSlot(i).containsPoint(t)){r=i;break}}return r},e}(Qe);It(wr,{startAngle:90,labels:{margin:z(10)},majorGridLines:{visible:!0},justified:!0}),E(wr.prototype,_r);var Or=wr,Sr=function(t){function e(e,r){t.call(this,e,r);var i=this.options;i.minorUnit=i.minorUnit||i.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return dr.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,r=this.options.labels,i=r.skip||0,o=r.step||1,n=new $t,s=this.intervals(t.majorUnit,i,o),a=0;a<e.length;a++){e[a].reflow(n);var p=e[a].box;e[a].reflow(this.getSlot(s[a]).adjacentBox(0,p.width(),p.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,r,i){void 0===i&&(i=!1);for(var o=this.options.min,n=this.getDivisions(t),s=[],a=r||1,p=e||0;p<n;p+=a){var l=(360+o+p*t)%360;i&&ct(l,i)||s.push(l)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var r=this.options,i=r.minorGridLines,o=r.majorGridLines,n=e?this.intervals(r.majorUnit,o.skip,o.step):null;return this.gridLineAngles(t,r.minorUnit,i.skip,i.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var r=this.options,i=this.box,o=r.startAngle,n=At(t,r.min,r.max),s=At(e||n,n,r.max);if(r.reverse&&(n*=-1,s*=-1),(s=(540-s-o)%360)<(n=(540-n-o)%360)){var a=n;n=s,s=a}return new Jt(i.center(),0,i.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var r,i,o=this.options,n=360-o.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),p=Math.max(t,e);return o.reverse?(r=a,i=p):(r=360-p,i=360-a),r=(r+n)%360,i=(i+n)%360,new S.geometry.Arc([s.center.x,s.center.y],{startAngle:r,endAngle:i,radiusX:s.radius,radiusY:s.radius})},e.prototype.getValue=function(t){var e=this.options,r=this.box.center(),i=t.x-r.x,o=t.y-r.y,n=Math.round(bt(Math.atan2(o,i))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Me);It(Sr,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:z(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),E(Sr.prototype,_r,{createPlotBands:Or.prototype.createPlotBands,majorAngles:Or.prototype.majorAngles,range:dr.prototype.range,labelsCount:dr.prototype.labelsCount,createAxisLabel:dr.prototype.createAxisLabel});var Pr=Sr;function Ar(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var Cr={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,r=t.plotBands;void 0===r&&(r=[]);for(var i=this.plotArea.polarAxis,n=i.majorAngles(),s=i.box.center(),a=this._plotbandGroup=new S.drawing.Group({zIndex:-1}),p=0;p<r.length;p++){var l=r[p],c={fill:{color:l.color,opacity:l.opacity},stroke:{opacity:l.opacity}},h=this.getSlot(l.from,l.to,!0),u=new Jt(s,s.y-h.y2,s.y-h.y1,0,360),f=void 0;f=e===o?re.current.createRing(u,c):S.drawing.Path.fromPoints(this.plotBandPoints(u,n),c).close(),a.append(f)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var r=[],i=[],o=[t.center.x,t.center.y],n=new S.geometry.Circle(o,t.innerRadius),s=new S.geometry.Circle(o,t.radius),a=0;a<e.length;a++)r.push(n.pointAt(e[a]+180)),i.push(s.pointAt(e[a]+180));return r.reverse(),r.push(r[0]),i.push(i[0]),i.concat(r)},createGridLines:function(t){var e=this.options,r=this.radarMajorGridLinePositions(),i=t.majorAngles(),o=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(o,r,i,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();gt(n,this.renderGridLines(o,s,i,e.minorGridLines))}return n},renderGridLines:function(t,e,r,i){var n={stroke:{width:i.width,color:i.color,dashType:i.dashType}},s=i.skip;void 0===s&&(s=0);var a=i.step;void 0===a&&(a=0);for(var p=this.gridLinesVisual(),l=s;l<e.length;l+=a){var c=t.y-e[l];if(c>0){var h=new S.geometry.Circle([t.x,t.y],c);if(i.type===o)p.append(new S.drawing.Circle(h,n));else{for(var u=new S.drawing.Path(n),f=0;f<r.length;f++)u.lineTo(h.pointAt(r[f]+180));u.close(),p.append(u)}}}return p.children},getValue:function(t){var e=this.lineBox(),r=this.plotArea.polarAxis,i=r.majorAngles(),n=r.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==o&&i.length>1){var p=t.x-n.x,l=t.y-n.y,c=(bt(Math.atan2(l,p))+540)%360;i.sort((function(t,e){return Ar(t,c)-Ar(e,c)}));var h=90-Ar(i[0],i[1])/2,u=180-Ar(c,i[0])-h;a=s*(Math.sin(kt(u))/Math.sin(kt(h)))}return this.axisType().prototype.getValue.call(this,new qt(e.x1,e.y2-a))}},kr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.radarMinorGridLinePositions=function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},e.prototype.axisType=function(){return t},e}(dr);E(kr.prototype,Cr);var jr=kr,Mr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),this.options.majorGridLines),t},e.prototype.radarMinorGridLinePositions=function(){var t=[];return this.traverseMinorTicksPositions((function(e){t.push(e)}),this.options.minorGridLines),t},e.prototype.axisType=function(){return t},e}(br);E(Mr.prototype,Cr);var Tr=Mr;function Er(t){return t<=0?-1:1}var Rr=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.process=function(t){var e=t.slice(0),r=[],i=this.closed,o=e.length;if(o>2&&(this.removeDuplicates(0,e),o=e.length),o<2||2===o&&e[0].equals(e[1]))return r;var n,s,a=e[0],p=e[1],l=e[2];for(r.push(new S.geometry.Segment(a));a.equals(e[o-1]);)i=!0,e.pop(),o--;if(2===o){var c=this.tangent(a,p,m,x);return Pt(r).controlOut(this.firstControlPoint(c,a,p,m,x)),r.push(new S.geometry.Segment(p,this.secondControlPoint(c,a,p,m,x))),r}if(i){a=e[o-1],p=e[0],l=e[1];var h=this.controlPoints(a,p,l);n=h[1],s=h[0]}else{var u=this.tangent(a,p,m,x);n=this.firstControlPoint(u,a,p,m,x)}for(var f=n,d=0;d<=o-3;d++)if(this.removeDuplicates(d,e),d+3<=(o=e.length)){a=e[d],p=e[d+1],l=e[d+2];var v=this.controlPoints(a,p,l);Pt(r).controlOut(f),f=v[1];var y=v[0];r.push(new S.geometry.Segment(p,y))}if(i){a=e[o-2],p=e[o-1],l=e[0];var g=this.controlPoints(a,p,l);Pt(r).controlOut(f),r.push(new S.geometry.Segment(p,g[0])),Pt(r).controlOut(g[1]),r.push(new S.geometry.Segment(l,s))}else{var b=this.tangent(p,l,m,x);Pt(r).controlOut(f),r.push(new S.geometry.Segment(l,this.secondControlPoint(b,p,l,m,x)))}return r},e.prototype.removeDuplicates=function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},e.prototype.invertAxis=function(t,e,r){var i=!1;if(t.x===e.x)i=!0;else if(e.x===r.x)(e.y<r.y&&t.y<=e.y||r.y<e.y&&e.y<=t.y)&&(i=!0);else{var o=this.lineFunction(t,e),n=this.calculateFunction(o,r.x);t.y<=e.y&&r.y<=n||e.y<=t.y&&r.y>=n||(i=!0)}return i},e.prototype.isLine=function(t,e,r){var i=this.lineFunction(t,e),o=this.calculateFunction(i,r.x);return t.x===e.x&&e.x===r.x||jt(o,1)===jt(r.y,1)},e.prototype.lineFunction=function(t,e){var r=(e.y-t.y)/(e.x-t.x);return[t.y-r*t.x,r]},e.prototype.controlPoints=function(t,e,r){var i,o=m,n=x,s=!1,a=!1;if(this.isLine(t,e,r))i=this.tangent(t,e,m,x);else{var p={x:this.isMonotonicByField(t,e,r,m),y:this.isMonotonicByField(t,e,r,x)};if(p.x&&p.y)i=this.tangent(t,r,m,x),s=!0;else if(this.invertAxis(t,e,r)&&(o=x,n=m),p[o])i=0;else i=.01*(r[n]<t[n]&&t[n]<=e[n]||t[n]<r[n]&&e[n]<=t[n]?Er((r[n]-t[n])*(e[o]-t[o])):-Er((r[o]-t[o])*(e[n]-t[n]))),a=!0}var l=this.secondControlPoint(i,t,e,o,n);if(a){var c=o;o=n,n=c}var h=this.firstControlPoint(i,e,r,o,n);return s&&(this.restrictControlPoint(t,e,l,i),this.restrictControlPoint(e,r,h,i)),[l,h]},e.prototype.restrictControlPoint=function(t,e,r,i){t.y<e.y?e.y<r.y?(r.x=t.x+(e.y-t.y)/i,r.y=e.y):r.y<t.y&&(r.x=e.x-(e.y-t.y)/i,r.y=t.y):r.y<e.y?(r.x=t.x-(t.y-e.y)/i,r.y=e.y):t.y<r.y&&(r.x=e.x+(t.y-e.y)/i,r.y=t.y)},e.prototype.tangent=function(t,e,r,i){var o,n=e[r]-t[r],s=e[i]-t[i];return o=0===n?0:s/n,o},e.prototype.isMonotonicByField=function(t,e,r,i){return r[i]>e[i]&&e[i]>t[i]||r[i]<e[i]&&e[i]<t[i]},e.prototype.firstControlPoint=function(t,e,r,i,o){var n=e[i],s=.333*(r[i]-n);return this.point(n+s,e[o]+s*t,i,o)},e.prototype.secondControlPoint=function(t,e,r,i,o){var n=e[i],s=r[i],a=.333*(s-n);return this.point(s-a,r[o]-a*t,i,o)},e.prototype.point=function(t,e,r,i){var o=new S.geometry.Point;return o[r]=t,o[i]=e,o},e.prototype.calculateFunction=function(t,e){for(var r=t.length,i=0,o=0;o<r;o++)i+=Math.pow(e,o)*t[o];return i},e}(S.Class),Ir=function(t){function e(e){t.call(this),this._axis=e,this.options=e.options}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this._axis,r=e.getCategory?e.getCategory(t):e.getValue(t);return r},e.prototype.slot=function(t,e,r){return void 0===r&&(r=!0),this._axis.slot(t,e,r)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(S.Class);function Br(t,e){for(var r=0;r<e.length;r++)if(e[r].options.name===t)return e[r].prepareUserOptions(),new Ir(e[r])}var Lr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Lr.prototype.findAxisByName=function(t){return Br(t,this._pane.axes)};var Vr=Lr,zr=function(t){function e(e){t.call(this),this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(S.Class);function Dr(t){for(var e=t.length,r=0,i=0;i<e;i++){C(t[i])&&r++}return r}var Nr={min:function(t){for(var e=t.length,r=u,i=0;i<e;i++){var o=t[i];C(o)&&(r=Math.min(r,o))}return r===u?t[0]:r},max:function(t){for(var e=t.length,r=f,i=0;i<e;i++){var o=t[i];C(o)&&(r=Math.max(r,o))}return r===f?t[0]:r},sum:function(t){for(var e=t.length,r=0,i=0;i<e;i++){var o=t[i];C(o)&&(r+=o)}return r},sumOrNull:function(t){var e=null;return Dr(t)&&(e=Nr.sum(t)),e},count:function(t){for(var e=t.length,r=0,i=0;i<e;i++){var o=t[i];null!==o&&xt(o)&&r++}return r},avg:function(t){var e=Dr(t),r=t[0];return e>0&&(r=Nr.sum(t)/e),r},first:function(t){for(var e=t.length,r=0;r<e;r++){var i=t[r];if(null!==i&&xt(i))return i}return t[0]}},Fr=Nr;function Ur(t,e){return null===e?e:nt(t)(e)}var Hr=function(t){function e(){t.call(this),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,r){void 0===e&&(e=[y]),void 0===r&&(r={});for(var i=0;i<t.length;i++){var o=t[i];this._valueFields[o]=e,this._otherFields[o]=r,this._nullValue[o]=this._makeValue(e,null),this._undefinedValue[o]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[y]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[y]},e.prototype.bindPoint=function(t,e,r){var i,o,n=t.data,s=xt(r)?r:n[e],a={valueFields:{value:s}},p=this.valueFields(t),l=this._otherFields[t.type];if(null===s)o=this._nullValue[t.type];else if(xt(s)){if(Array.isArray(s)){var c=s.slice(p.length);o=this._bindFromArray(s,p),i=this._bindFromArray(c,l)}else if("object"==typeof s){var h=this.sourceFields(t,p),u=this.sourceFields(t,l);o=this._bindFromObject(s,p,h),i=this._bindFromObject(s,l,u)}}else o=this._undefinedValue[t.type];return xt(o)&&(1===p.length?a.valueFields.value=o[p[0]]:a.valueFields=o),a.fields=i||{},a},e.prototype._makeValue=function(t,e){for(var r={},i=t.length,o=0;o<i;o++){r[t[o]]=e}return r},e.prototype._bindFromArray=function(t,e){var r={};if(e)for(var i=Math.min(e.length,t.length),o=0;o<i;o++)r[e[o]]=t[o];return r},e.prototype._bindFromObject=function(t,e,r){void 0===r&&(r=e);var i={};if(e)for(var o=e.length,n=0;n<o;n++){var s=e[n],a=r[n];null!==a&&(i[s]=Ur(a,t))}return i},e.prototype.sourceFields=function(t,e){var r=[];if(e)for(var i=e.length,o=0;o<i;o++){var n=e[o],s=n===y?"field":n+"Field";r.push(null!==t[s]?t[s]||n:null)}return r},e}(S.Class);Hr.current=new Hr;var Gr=Hr,Wr=/percent(?:\w*)\((\d+)\)/,Kr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Xr=function(t){function e(e,r,i){t.call(this),this.initGlobalRanges(e,r,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,r){var i=e.data,o=Kr.exec(t);if(o){this.valueGetter=this.createValueGetter(e,r);var n=this.getAverage(i),s=this.getStandardDeviation(i,n,!1),a=o[1]?parseFloat(o[1]):1,p={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,r);var l=this.getStandardError(i,this.getAverage(i));this.globalRange=function(t){return{low:t-l,high:t+l}}}},e.prototype.createValueGetter=function(t,e){var r,i=t.data,o=Gr.current,n=o.valueFields(t),s=xt(i[0])?i[0]:{};if(b(s))r=nt("["+(e?n.indexOf(e):0)+"]");else if(C(s))r=nt();else if("object"==typeof s){r=nt(o.sourceFields(t,n)[n.indexOf(e)])}return r},e.prototype.getErrorRange=function(t,e){var r,i,o;if(!xt(e))return null;if(this.globalRange)return this.globalRange(t);if(b(e))r=t-e[0],i=t+e[1];else if(C(o=parseFloat(e)))r=t-o,i=t+o;else{if(!(o=Wr.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(o[1])/100);r=t-Math.abs(n),i=t+Math.abs(n)}return{low:r,high:i}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,r){for(var i=t.length,o=r?e.count-1:e.count,n=0,s=0;s<i;s++){var a=this.valueGetter(t[s]);C(a)&&(n+=Math.pow(a-e.value,2))}return Math.sqrt(n/o)},e.prototype.getAverage=function(t){for(var e=t.length,r=0,i=0,o=0;o<e;o++){var n=this.valueGetter(t[o]);C(n)&&(r+=n,i++)}return{value:r/i,count:i}},e}(S.Class),Yr=S.support.browser||{},qr=Yr.msie?.001:0,Zr="zero",$r="bar",Qr="column",Jr="line",ti="pie",ei="verticalLine",ri=[$r,Qr,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],ii="DOMMouseScroll mousewheel",oi=function(t){function e(e,r,i,o,n,s){t.call(this,s),this.low=e,this.high=r,this.isVertical=i,this.chart=o,this.series=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,r=this.options.endCaps,i=this.isVertical,o=this.getAxis().getSlot(this.low,this.high),n=t.center(),s=this.getCapsWidth(t,i),a=i?n.x:n.y,p=a-s,l=a+s;i?(e=[new qt(n.x,o.y1),new qt(n.x,o.y2)],r&&e.push(new qt(p,o.y1),new qt(l,o.y1),new qt(p,o.y2),new qt(l,o.y2)),this.box=new $t(p,o.y1,l,o.y2)):(e=[new qt(o.x1,n.y),new qt(o.x2,n.y)],r&&e.push(new qt(o.x1,p),new qt(o.x1,l),new qt(o.x2,p),new qt(o.x2,l)),this.box=new $t(o.x1,p,o.x2,l)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var r=e?t.width():t.height();return Math.min(Math.floor(r/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,r=e.visual;r?this.visual=r({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:e.endCaps,color:e.color,line:e.line},createVisual:function(){t.createDefaultVisual();var e=t.visual;return delete t.visual,e}}):this.createDefaultVisual()},e.prototype.createDefaultVisual=function(){var e=this.options,r=this.linePoints,i={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var o=0;o<r.length;o+=2){var n=new S.drawing.Path(i).moveTo(r[o].x,r[o].y).lineTo(r[o+1].x,r[o+1].y);P(n),this.visual.append(n)}},e}(oe);It(oi,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var ni=oi,si=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(ni);function ai(t,e,r,i){void 0===r&&(r={}),void 0===i&&(i=!1);var o=r.defaults=r.defaults||{},n=r.depth=r.depth||0,s=!1;if(r.excluded=r.excluded||[],n>5)return null;for(var a in t)if(!ct(a,r.excluded)&&t.hasOwnProperty(a)){var p=t[a];M(p)?(s=!0,i||(t[a]=Tt(p(e),o[a]))):R(p)&&(i||(r.defaults=o[a]),r.depth++,s=ai(p,e,r,i)||s,r.depth--)}return s}function pi(t){for(var e=t.length,r=0,i=0;i<e;i++)r=Math.max(r,t[i].data.length);return r}var li=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(r.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},i,{vertical:!this.options.invertAxes},t)}return r},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&C(t.value)){for(var e=t.categoryIx,r=this.categoryPoints[e],i=[],o=0,n=0;n<r.length;n++){var s=r[n];if(s){var a=t.series.stack,p=s.series.stack;if(a&&p&&a.group!==p.group)continue;C(s.value)&&(o+=Math.abs(s.value),i.push(Math.abs(s.value)))}}if(o>0)return t.value/o}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var r=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var i=this.plotValue(t),o=i>=0,n=e,s=!1,a=0;a<r.length;a++){var p=r[a];if(t===p)break;var l=t.series.stack,c=p.series.stack;if(l&&c){if("string"==typeof l&&l!==c)continue;if(l.group&&l.group!==c.group)continue}var h=this.plotValue(p);(h>=0&&o||h<0&&!o)&&(n+=h,i+=h,s=!0,this.options.isStacked100&&(i=Math.min(i,1)))}return s&&(n-=e),[n,i]}var u=t.series,f=this.seriesValueAxis(u),d=this.categoryAxisCrossingValue(f);return[d,j(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var r=u,i=f,o=0;o<this.categoryPoints.length;o++){var n=this.categoryPoints[o];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var p=this.plotRange(a,0)[1];xt(p)&&isFinite(p)&&(i=Math.max(i,p),r=Math.min(r,p))}}}return{min:r,max:i}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,r=t.series,i={};if(e)for(var o=0;o<r.length;o++){var n=r[o],s=n.axis,a=s+n.stack,p=i[a];if(!p){p=this.stackLimits(s,n.stack);var l=this.errorTotals;l&&(l.negative.length&&(p.min=Math.min(p.min,Bt(l.negative).min)),l.positive.length&&(p.max=Math.max(p.max,Bt(l.positive).max))),p.min!==u||p.max!==f?i[a]=p:p=null}p&&(this.valueAxisRanges[s]=p)}},e.prototype.addErrorBar=function(t,e,r){var i,o=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,p=e.fields.errorLow,l=e.fields.errorHigh;C(p)&&C(l)?i={low:p,high:l}:a&&xt(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Xr(a.value,n,y),i=this.seriesErrorRanges[s].getErrorRange(o,a.value)),i&&(t.low=i.low,t.high=i.high,this.addPointErrorBar(t,r))},e.prototype.addPointErrorBar=function(t,e){var r=!this.options.invertAxes,i=t.options.errorBars,o=t.series,n=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var p={categoryIx:e,series:o};this.updateRange({value:n},p),this.updateRange({value:s},p)}var l=new si(n,s,r,this,o,i);t.errorBars=[l],t.append(l)},e.prototype.stackedErrorRange=function(t,e){var r=this.plotRange(t,0)[1]-t.value,i=t.low+r,o=t.high+r;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},i<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,i)),o>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,o)),{low:i,high:o}},e.prototype.addValue=function(t,e){var r=e.categoryIx,i=e.series,o=e.seriesIx,n=this.categoryPoints[r];n||(this.categoryPoints[r]=n=[]);var s=this.seriesPoints[o];s||(this.seriesPoints[o]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,xt(a.dataItem)||(a.dataItem=i.data[r]),this.addErrorBar(a,t,r)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,r,i,o,n){var s={defaults:o._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[n];xt(a)||(this._evalSeries[n]=a=ai(t,{},s,!0));var p=t;return a&&ai(p=E({},p),{value:e,category:r,index:i,series:o,dataItem:o.data[i]},s),p},e.prototype.updateRange=function(t,e){var r=e.series.axis,i=t.value,o=this.valueAxisRanges[r];isFinite(i)&&null!==i&&((o=this.valueAxisRanges[r]=o||{min:u,max:f}).min=Math.min(o.min,i),o.max=Math.max(o.max,i))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,r=t.axis,i=r?e.namedValueAxes[r]:e.valueAxis;if(!i)throw new Error("Unable to locate value axis with name "+r);return i},e.prototype.reflow=function(t){var e=this,r=this.categorySlots=[],i=this.points,o=this.categoryAxis,n=0;this.traverseDataPoints((function(t,s){var a=s.categoryIx,p=s.series,l=e.seriesValueAxis(p),c=i[n++],h=r[a];if(h||(r[a]=h=e.categorySlot(o,a,l)),c){var u=e.plotRange(c,l.startValue()),f=e.valueSlot(l,u);if(f){var d=e.pointSlot(h,f);c.aboveAxis=e.aboveAxis(c,l),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,d)}else c.visible=!1}})),this.reflowCategories(r),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},e.prototype.valueSlot=function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},e.prototype.limitPoints=function(){for(var t=this.categoryPoints,e=t[0].concat(Pt(t)),r=0;r<e.length;r++)e[r]&&this.limitPoint(e[r])},e.prototype.limitPoint=function(t){var e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)},e.prototype.aboveAxis=function(t,e){var r=this.categoryAxisCrossingValue(e),i=t.value;return e.options.reverse?i<r:i>=r},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,r=t.options;return[].concat(r.axisCrossingValues||r.axisCrossingValue)[e.axisIndex||0]||0},e.prototype.reflowPoint=function(t,e){t.reflow(e)},e.prototype.reflowCategories=function(){},e.prototype.pointSlot=function(t,e){var r=this.options.invertAxes,i=r?e:t,o=r?t:e;return new $t(i.x1,o.y1,i.x2,o.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=pi(e),i=e.length,o=0;o<i;o++)this._outOfRangeCallback(e[o],"_outOfRangeMinPoint",o,t);for(var n=0;n<r;n++)for(var s=0;s<i;s++){var a=e[s],p=this.categoryAxis.categoryAt(n);t(this._bindPoint(a,s,n),{category:p,categoryIx:n,categoriesCount:r,series:a,seriesIx:s})}for(var l=0;l<i;l++)this._outOfRangeCallback(e[l],"_outOfRangeMaxPoint",l,t)},e.prototype._outOfRangeCallback=function(t,e,r,i){var o=t[e];if(o){var n=o.categoryIx;i(this._bindPoint(t,r,n,o.item),{category:o.category,categoryIx:n,series:t,seriesIx:r,dataItem:o.item})}},e.prototype._bindPoint=function(t,e,r,i){this._bindCache||(this._bindCache=[]);var o=this._bindCache[e];o||(o=this._bindCache[e]=[]);var n=o[r];return n||(n=o[r]=Gr.current.bindPoint(t,r,i)),n},e.prototype.formatPointValue=function(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)},e.prototype.pointValue=function(t){return t.valueFields.value},e}(oe);It(li,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var ci=li,hi={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:Ot(t),originalEvent:t,point:this}}},ui={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&xt(e)&&null!==e&&(this.note=new Ae({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},fi=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,r=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),r.visible){var i=rt(r),o=this.pointData(),n=this.value;i?n=i(o):r.format&&(n=this.formatValue(r.format)),this.label=new be(n,E({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Tt(r.zIndex,this.series.zIndex)},r),o),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}},e.prototype.markerBorder=function(){var t=this.options.markers,e=t.background,r=E({color:this.color},t.border);return xt(r.color)||(r.color=new S.Color(e).brightness(.8).toHex()),r},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new pe({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:this.series.opacity||t.opacity,zIndex:Tt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,r=this.aboveAxis,i=e.vertical;this.render(),this.box=t;var o=t.clone();if(i?r?o.y1-=o.height():o.y2+=o.height():r?o.x1+=o.width():o.x2-=o.width(),this._childBox=o,this.marker&&this.marker.reflow(o),this.reflowLabel(o),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(o);if(this.note){var s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new $t(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,r=this.label,i=e.labels.position;r&&(i="below"===(i="above"===i?v:i)?s:i,r.reflow(t),r.box.alignTo(this.markerBox(),i),r.reflow(r.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,r=this.options.markers,i=r.size+(r.border.width||0)+(t.border.width||0),o=new pe({type:r.type,width:i,height:i,rotation:r.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Tt(t.border.opacity,1)},opacity:Tt(t.opacity,1)});return o.reflow(this._childBox),o.getElement()},e.prototype.highlightVisual=function(){return(this.marker||{}).visual},e.prototype.highlightVisualArgs=function(){var t,e,r=this.marker;if(r)e=r.paddingBox.toRect(),t=r.visual;else{var i=this.options.markers.size,o=i/2,n=this.box.center();e=new S.geometry.Rect([n.x-o,n.y-o],[i,i])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){var r,i,o=t.x2+5;return this.aboveAxis?(r=t.y1,i=s):(r=t.y2,i=v),{point:new qt(o,r),align:{horizontal:"left",vertical:i}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.markerBox().overlaps(t)},e.prototype.unclipElements=function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}},e}(oe);fi.prototype.defaults={vertical:!0,markers:{visible:!0,background:g,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:z(3),padding:z(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},E(fi.prototype,hi),E(fi.prototype,ui);var di=fi,vi=function(t){function e(e,r,i){t.call(this),this.linePoints=e,this.series=r,this.seriesIx=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],r=0,i=t.length;r<i;r++)t[r]&&!1!==t[r].visible&&e.push(t[r]._childBox.toRect().center());return e},e.prototype.createVisual=function(){var t=this,e=this.series.visual;e?(this.visual=e({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return t.segmentVisual(),t.visual}}),this.visual&&!xt(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,r=e.color,i=e._defaults;M(r)&&i&&(r=i.color);var o=S.drawing.Path.fromPoints(this.points(),{stroke:{color:r,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&o.close(),this.visual=o},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(oe);It(vi,{closed:!1});var yi=vi;function gi(t,e,r,i,o){var n=t.box,s=new S.geometry.Point;return s[e]=n[e+r],s[i]=n[i+o],s}var mi={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,r=e.justified,i=e.vertical,o=e.reverse,n=i?m:x,s=i?x:m,a=o?2:1,p=a,l=gi(t[0],n,a,s,p),c=[l],h=1;h<t.length;h++){var u=gi(t[h],n,a,s,p);if(l[n]!==u[n]){var f=new S.geometry.Point;f[n]=l[n],f[s]=u[s],c.push(f,u)}l=u}return r?l!==Pt(c)&&c.push(l):c.push(gi(Pt(t),n,a,s,o?1:2)),c}},xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(yi);E(xi.prototype,mi);var bi=xi,_i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,r=t.color;M(r)&&e&&(r=e.color);var i=new Rr(this.options.closed).process(this.points()),o=new S.drawing.Path({stroke:{color:r,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});o.segments.push.apply(o.segments,i),this.visual=o},e}(yi),wi={renderSegments:function(){var t,e=this.options,r=this.seriesPoints,i=e.series,o=r.length;this._segments=[];for(var n=0;n<o;n++){for(var s=i[n],a=this.sortPoints(r[n]),p=a.length,l=[],c=0;c<p;c++){var h=a[c];h?l.push(h):"interpolate"!==this.seriesMissingValues(s)&&(l.length>1&&(t=this.createSegment(l,s,n,t),this._addSegment(t)),l=[])}l.length>1&&(t=this.createSegment(l,s,n,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?Zr:e||"interpolate"},getNearestPoint:function(t,e,r){for(var i,o=new qt(t,e),n=this.seriesPoints[r],s=u,a=0;a<n.length;a++){var p=n[a];if(p&&xt(p.value)&&null!==p.value&&!1!==p.visible){var l=p.box.center().distanceTo(o);l<s&&(i=p,s=l)}}return i}},Oi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(ht(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,r=e.segments,i=r[1].anchor(),o=r[2].anchor();e.suspend(),i.setX(t),e.resume(),o.setX(t)},e}(S.drawing.Animation);It(Oi,{duration:600}),S.drawing.AnimationFactory.current.register("clip",Oi);var Si=Oi;function Pi(t){for(var e=0;e<t.length;e++)if(xt(t[e].zIndex))return!0}var Ai={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),r=S.drawing.Path.fromRect(e.toRect());this.visual.clip(r),this.animation=new Si(r,{box:e}),Pi(this.options.series)&&this._setChildrenAnimation(r)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),r=0;r<e.length;r++){var i=e[r];i&&i.visual&&xt(i.visual.options.zIndex)&&i.visual.clip(t)}}},Ci=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return di},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=this.seriesMissingValues(o),a=t.valueFields.value;if(!xt(a)||null===a){if(s!==Zr)return null;a=0}var p=this.pointOptions(o,n);p=this.evalPointOptions(p,a,i,r,o,n);var l=t.fields.color||o.color;M(o.color)&&(l=p.color);var c=new di(a,p);return c.color=l,this.append(c),c},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var r=t.categoryIx,i=this.categoryPoints[r],o=0;o<i.length;o++){var n=i[o];if(t===n)break;e+=this.plotValue(n),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,r){var i=e.style;return new("step"===i?bi:"smooth"===i?_i:yi)(t,e,r)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e.concat(this._segments)},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(ci);E(Ci.prototype,wi,Ai);var ki=Ci,ji=function(t){function e(e,r,i,o,n){t.call(this,e,r,i),this.prevSegment=o,this.stackPoints=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,r=t.line||{},i=t.color;M(i)&&e&&(i=e.color),this.visual=new S.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:i,opacity:t.opacity},stroke:null}),r.width>0&&!1!==r.visible&&this.createStroke({stroke:E({color:i,opacity:t.opacity,lineCap:"butt"},r)})},e.prototype.strokeSegments=function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.points())},e.prototype.stackSegments=function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},e.prototype.segmentsFromPoints=function(t){return t.map((function(t){return new S.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new S.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},e.prototype.hasStackSegment=function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},e.prototype.createFill=function(t){var e=this.strokeSegments(),r=e.slice(0),i=this.hasStackSegment();if(i){var o=this.stackSegments();gt(r,o)}var n=new S.drawing.Path(t);n.segments.push.apply(n.segments,r),!i&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,r=e.options.invertAxes,i=e.seriesValueAxis(this.series),o=e.categoryAxisCrossingValue(i),n=i.getSlot(o,o,!0),s=this.strokeSegments(),a=s[0].anchor(),p=Pt(s).anchor(),l=r?n.x1:n.y1;r?t.lineTo(l,p.y).lineTo(l,a.y):t.lineTo(p.x,l).lineTo(a.x,l)},e}(yi),Mi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(ji);E(Mi.prototype,mi);var Ti=Mi,Ei=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){var t=new Rr(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],r=t.length-1;r>=0;r--){var i=t[r];e.push(new S.geometry.Segment(i.anchor(),i.controlOut(),i.controlIn()))}return e},e}(ji),Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r,i){var o,n,s=this.options.isStacked,a=(e.line||{}).style;s&&r>0&&i&&("gap"!==this.seriesMissingValues(e)?(n=i.linePoints,o=i):n=this._gapStackPoints(t,r,a));return new("step"===a?Ti:"smooth"===a?Ei:ji)(t,e,r,o,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var r=this._stackPoints;if(r)for(var i=0;i<r.length;i++){var o=r[i],n=this.categoryAxis.getSlot(o.categoryIx);o.reflow(n)}},e.prototype._gapStackPoints=function(t,e,r){var i=this.seriesPoints,o=t[0].categoryIx,n=t.length;o<0&&(o=0,n--);var s=o+n,a=this.seriesOptions[0]._outOfRangeMinPoint?1:0,p=[];this._stackPoints=this._stackPoints||[];for(var l=o;l<s;l++){var c=l+a,h=e,u=void 0;do{u=i[--h][c]}while(h>0&&!u);if(u)"step"!==r&&l>o&&!i[h][c-1]&&p.push(this._previousSegmentPoint(l,c,c-1,h)),p.push(u),"step"!==r&&l+1<s&&!i[h][c+1]&&p.push(this._previousSegmentPoint(l,c,c+1,h));else{var f=this._createGapStackPoint(l);this._stackPoints.push(f),p.push(f)}}return p},e.prototype._previousSegmentPoint=function(t,e,r,i){for(var o,n=this.seriesPoints,s=i;s>0&&!o;)o=n[--s][r];return o?o=n[s][e]:(o=this._createGapStackPoint(t),this._stackPoints.push(o)),o},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),r=new di(0,e);return r.categoryIx=t,r.series={},r},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zr},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(ki),Ii=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var r in t){var i=t[r],o=e[r];e[r]=o=o||{min:u,max:f},o.min=Math.min(o.min,i.min),o.max=Math.max(o.max,i.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(S.Class),Bi=function(t){function e(e,r,i){t.call(this,r),this.textBox=new be(e,this.options,i),this.append(this.textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){this.textBox.options.noclip=this.options.noclip},e.prototype.reflow=function(t){var e=this.options,r=e.vertical,i=e.aboveAxis,o=this.children[0],n=o.options,p=o.box,l=o.options.padding,c=t;n.align=r?a:h,n.vAlign=r?v:a,"insideEnd"===e.position?r?(n.vAlign=v,!i&&p.height()<t.height()&&(n.vAlign=s)):n.align=i?d:h:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?r?n.vAlign=i?s:v:n.align=i?h:d:"outsideEnd"===e.position&&(r?c=i?new $t(t.x1,t.y1-p.height(),t.x2,t.y1):new $t(t.x1,t.y2,t.x2,t.y2+p.height()):(n.align=a,c=i?new $t(t.x2,t.y1,t.x2+p.width(),t.y2):new $t(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(r?l.left=l.right=(c.width()-o.contentBox.width())/2:l.top=l.bottom=(c.height()-o.contentBox.height())/2),o.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?x:m,r=e+"1",i=e+"2",o=this.children[0],n=this.parent.box;if(n[r]<t[r]||t[i]<n[i]){var s=o.paddingBox.clone();s[r]=Math.max(n[r],t[r]),s[i]=Math.min(n[i],t[i]),this.reflow(s)}},e}(oe);It(Bi,{position:"outsideEnd",margin:z(3),padding:z(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Li=Bi;function Vi(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var zi=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var r,i=this.pointData(),o=rt(e);r=o?o(i):this.formatValue(e.format),this.label=new Li(r,E({vertical:t.vertical},e),i),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var r=0;r<this.errorBars.length;r++)this.errorBars[r].reflow(t)},e.prototype.createVisual=function(){var e=this,r=this.box,i=this.options,o=i.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),o){var n=this.rectVisual=o({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:r.toRect(),createVisual:function(){var t=new S.drawing.Group;return e.createRect(t),t},options:i});n&&this.visual.append(n)}else r.width()>0&&r.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,r=e.border,i=xt(r.opacity)?r.opacity:e.opacity,o=this.box.toRect();o.size.width=Math.round(o.size.width);var n=this.rectVisual=S.drawing.Path.fromRect(o,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:r.width,opacity:i,dashType:r.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(P(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Vi(e)){var p=this.createGradientOverlay(n,{baseColor:this.color},E({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return P(S.drawing.Path.fromRect(this.box.toRect(),t))},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.getBorderColor=function(){var t=this.color,e=this.options.border,r=e._brightness||.8,i=e.color;return xt(i)||(i=new S.Color(t).brightness(r).toHex()),i},e.prototype.tooltipAnchor=function(){var t,e,r=this.options,i=this.box,o=this.aboveAxis,n=this.owner.pane.clipBox()||i,a=h,p=v;if(r.vertical)t=Math.min(i.x2,n.x2)+5,o?e=Math.max(i.y1,n.y1):(e=Math.min(i.y2,n.y2),p=s);else{var l=Math.max(i.x1,n.x1),c=Math.min(i.x2,n.x2);r.isStacked?(p=s,o?(a=d,t=c):t=l,e=Math.max(i.y1,n.y1)-5):(o?t=c+5:(t=l-5,a=d),e=Math.max(i.y1,n.y1))}return{point:new qt(t,e),align:{horizontal:a,vertical:p}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(oe);E(zi.prototype,hi),E(zi.prototype,ui),zi.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Di=zi;function Ni(t,e){t.forEach(e)}function Fi(t,e){for(var r=t.length,i=r-1;i>=0;i--)e(t[i],i-r-1)}var Ui=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Fi:Ni}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=e.vertical,i=e.gap,o=e.spacing,n=this.children,s=n.length,a=r?x:m,p=s+i+o*(s-1),l=(r?t.height():t.width())/p,c=t[a+1]+l*(i/2);this.forEach(n,(function(e,r){var i=(e.box||t).clone();i[a+1]=c,i[a+2]=c+l,e.reflow(i),r<s-1&&(c+=l*o),c+=l}))},e}(oe);It(Ui,{vertical:!1,gap:0,spacing:0});var Hi=Ui,Gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?m:x,r=this.children,i=r.length,o=this.box=new $t,n=0;n<i;n++){var s=r[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(o=this.box=a.clone()),s.reflow(a),o.wrap(a)}}},e}(oe);It(Gi,{vertical:!0});var Wi=Gi,Ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Di},e.prototype.clusterType=function(){return Hi},e.prototype.stackType=function(){return Wi},e.prototype.stackLimits=function(e,r){return t.prototype.stackLimits.call(this,e,r)},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=this.options,a=this.children,p=s.isStacked,l=this.pointValue(t),c=this.pointOptions(o,n),h=c.labels;p&&"outsideEnd"===h.position&&(h.position="insideEnd"),c.isStacked=p;var u=t.fields.color||o.color;l<0&&c.negativeColor&&(u=c.negativeColor),c=this.evalPointOptions(c,l,i,r,o,n),M(o.color)&&(u=c.color);var f=new(this.pointType())(l,c);f.color=u;var d=a[r];d||(d=new(this.clusterType())({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(d));p?this.getStackWrap(o,d).append(f):d.append(f);return f},e.prototype.getStackWrap=function(t,e){var r,i=t.stack,o=i&&i.group||i,n=e.children;if("string"==typeof o){for(var s=0;s<n.length;s++)if(n[s]._stackGroup===o){r=n[s];break}}else r=n[0];r||((r=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=o,e.append(r));return r},e.prototype.categorySlot=function(t,e,r){var i=this.options,o=t.getSlot(e),n=r.startValue();if(i.isStacked){var s=r.getSlot(n,n,!0),a=i.invertAxes?m:x;o[a+1]=o[a+2]=s[a+1]}return o},e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,i=0;i<r;i++)e[i].reflow(t[i])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),Pi(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var r=t[e],i=r.visual;i&&xt(i.options.zIndex)&&(r.options.animation=this.options.animation,r.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,r=e.animation||{};if(e.isStacked){var i=this.seriesValueAxis(e.series[0]);t=i.getSlot(i.startValue())}else t=this.categoryAxis.getSlot(0);r.origin=new S.geometry.Point(t.x1,t.y1),r.vertical=!e.invertAxes},e}(ci);It(Ki,{animation:{type:$r}});var Xi=Ki,Yi=function(t){function e(e,r){t.call(this,r),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.value,i=this.owner.seriesValueAxis(e),o=i.getSlot(r.open,r.close),n=i.getSlot(r.low,r.high);o.x1=n.x1=t.x1,o.x2=n.x2=t.x2,this.realBody=o;var s=n.center().x,a=[];a.push([[s,n.y1],[s,o.y1]]),a.push([[s,o.y2],[s,n.y2]]),this.lines=a,this.box=n.clone().wrap(o),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},e.prototype.reflowNote=function(){this.note&&this.note.reflow(this.box)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},e.prototype.mainVisual=function(t){var e=new S.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var r=S.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&r.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:Tt(e.border.opacity,e.opacity)}),P(r),t.append(r),Vi(e)&&t.append(this.createGradientOverlay(r,{baseColor:this.color},E({end:e.vertical?void 0:[0,1]},e.overlay)))},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.lines,e.line)},e.prototype.drawLines=function(t,e,r,i){if(r)for(var o={stroke:{color:i.color||this.color,opacity:Tt(i.opacity,e.opacity),width:i.width,dashType:i.dashType,lineCap:"butt"}},n=0;n<r.length;n++){var s=S.drawing.Path.fromPoints(r[n],o);P(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return xt(e)||(e=new S.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=S.drawing.Path.fromRect(this.box.toRect(),{fill:{color:g,opacity:0},stroke:null});this.visual.append(t)},e.prototype.createHighlight=function(){var t=this.options.highlight,e=this.color;this.color=t.color||this.color;var r=this.mainVisual(E({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,r},e.prototype.highlightVisual=function(){return this._mainVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},e.prototype.tooltipAnchor=function(){var t=this.box,e=this.owner.pane.clipBox()||t;return{point:new qt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:h,vertical:v}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(oe);It(Yi,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),E(Yi.prototype,hi),E(Yi.prototype,ui);var qi=Yi;function Zi(t){return Dr(t)===t.length}var $i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,i=0;i<r;i++)e[i].reflow(t[i])},e.prototype.addValue=function(t,e){var r,i=e.categoryIx,o=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=Zi(this.splitValue(l)),h=n.data[i],u=this.categoryPoints[i];u||(this.categoryPoints[i]=u=[]),c&&(r=this.createPoint(t,e));var f=a[i];f||(f=new Hi({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(l,e),f.append(r),r.categoryIx=i,r.category=o,r.series=n,r.seriesIx=s,r.owner=this,r.dataItem=h,r.noteText=t.fields.noteText),this.points.push(r),u.push(r)},e.prototype.pointType=function(){return qi},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=this.pointType(),a=t.valueFields,p=E({},o),l=t.fields.color||o.color;p=this.evalPointOptions(p,a,i,r,o,n),"candlestick"===o.type&&a.open>a.close&&(l=t.fields.downColor||o.downColor||o.color),M(o.color)&&(l=p.color),p.vertical=!this.options.invertAxes;var c=new s(a,p);return c.color=l,c},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var r=e.series.axis,i=this.splitValue(t),o=this.valueAxisRanges[r];o=this.valueAxisRanges[r]=o||{min:u,max:f},o=this.valueAxisRanges[r]={min:Math.min.apply(Math,i.concat([o.min])),max:Math.max.apply(Math,i.concat([o.max]))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.open,r.high,r.low,r.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(ci);E($i.prototype,Ai);var Qi=$i,Ji=function(t){function e(e,r){t.call(this,e,r),this.createNote()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,r,i=this.options,o=this.value,n=this.owner.seriesValueAxis(i);this.boxSlot=r=n.getSlot(o.q1,o.q3),this.realBody=r,this.reflowBoxSlot(t),this.whiskerSlot=e=n.getSlot(o.lower,o.upper),this.reflowWhiskerSlot(t);var s=n.getSlot(o.median);if(o.mean){var a=n.getSlot(o.mean);this.meanPoints=this.calcMeanPoints(t,a)}this.whiskerPoints=this.calcWhiskerPoints(r,e),this.medianPoints=this.calcMedianPoints(t,s),this.box=e.clone().wrap(r),this.reflowNote()},e.prototype.reflowBoxSlot=function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},e.prototype.calcMeanPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.calcWhiskerPoints=function(t,e){var r=e.center().x;return[[[r-5,e.y1],[r+5,e.y1],[r,e.y1],[r,t.y1]],[[r-5,e.y2],[r+5,e.y2],[r,e.y2],[r,t.y2]]]},e.prototype.calcMedianPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.renderOutliers=function(t){for(var e=this.value,r=e.outliers||[],i=3*Math.abs(e.q3-e.q1),o=[],n=t.markers||{},s=0;s<r.length;s++){var a=r[s],p=E({},(n=a<e.q3+i&&a>e.q1-i?t.outliers:t.extremes).border);xt(p.color)||(xt(this.color)?p.color=this.color:p.color=new S.Color(n.background).brightness(.8).toHex());var l=new pe({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:p,opacity:n.opacity});l.value=a,o.push(l)}return this.reflowOutliers(o),o},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),r=this.box.center(),i=0;i<t.length;i++){var o=t[i].value,n=e.getSlot(o);this.options.vertical?n.move(r.x):n.move(void 0,r.y),this.box=this.box.wrap(n),t[i].reflow(n)}},e.prototype.mainVisual=function(e){for(var r=t.prototype.mainVisual.call(this,e),i=this.renderOutliers(e),o=0;o<i.length;o++){var n=i[o].getElement();n&&r.append(n)}return r},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)},e.prototype.getBorderColor=function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:t.prototype.getBorderColor.call(this)},e}(qi);It(Ji,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:g,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:g,border:{width:2,opacity:1},opacity:0}}),E(Ji.prototype,hi);var to=Ji,eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowBoxSlot=function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},e.prototype.calcMeanPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e.prototype.calcWhiskerPoints=function(t,e){var r=e.center().y;return[[[e.x1,r-5],[e.x1,r+5],[e.x1,r],[t.x1,r]],[[e.x2,r-5],[e.x2,r+5],[e.x2,r],[t.x2,r]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(to),ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var r,i=e.categoryIx,o=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=Zi(this.splitValue(l)),h=n.data[i],u=this.categoryPoints[i];u||(this.categoryPoints[i]=u=[]),c&&(r=this.createPoint(t,e));var f=a[i];f||(f=new Hi({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(l,e),f.append(r),r.categoryIx=i,r.category=o,r.series=n,r.seriesIx=s,r.owner=this,r.dataItem=h),this.points.push(r),u.push(r)},e.prototype.pointType=function(){return this.options.invertAxes?eo:to},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var r=e.series.axis,i=this.valueAxisRanges[r],o=this.splitValue(t).concat(this.filterOutliers(t.outliers));xt(t.mean)&&(o=o.concat(t.mean)),i=this.valueAxisRanges[r]=i||{min:u,max:f},i=this.valueAxisRanges[r]={min:Math.min.apply(Math,o.concat([i.min])),max:Math.max.apply(Math,o.concat([i.max]))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.lower,r.q1,r.median,r.q3,r.upper,r.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,r=[],i=0;i<e;i++){var o=t[i];xt(o)&&null!==o&&r.push(o)}return r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Qi),io=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x},e}(ni);function oo(t){return xt(t)&&null!==t}var no=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.addErrorBar=function(t,e,r){var i,o=t.value[e],n=e+"Value",s=e+"ErrorLow",a=e+"ErrorHigh",p=r.seriesIx,l=r.series,c=t.options.errorBars,h=r[s],u=r[a];C(o)&&(C(h)&&C(u)&&(i={low:h,high:u}),c&&xt(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new Xr(c[n],l,e),i=this.seriesErrorRanges[e][p].getErrorRange(o,c[n])),i&&this.addPointErrorBar(i,t,e))},e.prototype.addPointErrorBar=function(t,e,r){var i=t.low,o=t.high,n=e.series,s=e.options.errorBars,a=r===x,p={};e[r+"Low"]=i,e[r+"High"]=o,e.errorBars=e.errorBars||[];var l=new io(i,o,a,this,n,s);e.errorBars.push(l),e.append(l),p[r]=i,this.updateRange(p,n),p[r]=o,this.updateRange(p,n)},e.prototype.addValue=function(t,e){var r,i=t.x,o=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),p=this.seriesPoints[n],l=t;oo(i)&&oo(o)||(l=this.createMissingValue(l,a)),l&&((r=this.createPoint(l,e))&&(Object.assign(r,e),this.addErrorBar(r,m,e),this.addErrorBar(r,x,e)),this.updateRange(l,e.series)),this.points.push(r),p.push(r)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var r=this.chartService.intl,i=e.xAxis,o=e.yAxis,n=t.x,s=t.y,a=this.xAxisRanges[i],p=this.yAxisRanges[o];oo(n)&&(a=this.xAxisRanges[i]=a||{min:u,max:f},k(n)&&(n=Ye(r,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),oo(s)&&(p=this.yAxisRanges[o]=p||{min:u,max:f},k(s)&&(s=Ye(r,s)),p.min=Math.min(p.min,s),p.max=Math.max(p.max,s))},e.prototype.evalPointOptions=function(t,e,r){var i=r.series,o=r.seriesIx,n={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[o];xt(s)||(this._evalSeries[o]=s=ai(t,{},n,!0));var a=t;return s&&ai(a=E({},t),{value:e,series:i,dataItem:r.dataItem},n),a},e.prototype.pointType=function(){return di},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return r},e.prototype.createPoint=function(t,e){var r=e.series,i=this.pointOptions(r,e.seriesIx),o=e.color||r.color;i=this.evalPointOptions(i,t,e),M(r.color)&&(o=i.color);var n=new di(t,i);return n.color=o,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,i=this.plotArea,o=e?i.namedXAxes[e]:i.axisX,n=r?i.namedYAxes[r]:i.axisY;if(!o)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+r);return{x:o,y:n}},e.prototype.reflow=function(t){var e=this,r=this.points,i=!this.options.clip,o=0;this.traverseDataPoints((function(t,n){var s=r[o++],a=e.seriesAxes(n.series),p=a.x.getSlot(t.x,t.x,i),l=a.y.getSlot(t.y,t.y,i);if(s)if(p&&l){var c=e.pointSlot(p,l);s.reflow(c)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new $t(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=this.seriesPoints,i=0;i<e.length;i++){var o=e[i];r[i]||(r[i]=[]);for(var n=0;n<o.data.length;n++){var s=this._bindPoint(o,i,n),a=s.valueFields,p=s.fields;t(a,E({pointIx:n,series:o,seriesIx:i,dataItem:o.data[n],owner:this},p))}}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e},e}(oe);It(no,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),E(no.prototype,Ai,{_bindPoint:ci.prototype._bindPoint});var so=no,ao=function(t){function e(e,r){t.call(this,e,r),this.category=e.category}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,r=this.options.markers,i=this.box.center(),o=(r.size+r.border.width+e.width)/2,n=new S.drawing.Group,s=new S.drawing.Circle(new S.geometry.Circle([i.x,i.y+o/5+e.width/2],o+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:r.background,stops:[{offset:0,color:r.background,opacity:.3},{offset:1,color:r.background,opacity:0}]})}),a=new S.drawing.Circle(new S.geometry.Circle([i.x,i.y],o),{stroke:{color:e.color||new S.Color(r.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:r.background,opacity:t.opacity}});return n.append(s,a),n},e}(di);ao.prototype.defaults=E({},ao.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),ao.prototype.defaults.highlight.zIndex=void 0;var po=ao,lo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=f,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,r){null!==e.size&&(e.size>0||e.size<0&&r.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,r)):(this.points.push(null),this.seriesPoints[r.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return po},e.prototype.createPoint=function(t,e){var r=e.series,i=r.data.length,o=e.pointIx*(600/i),n={delay:o,duration:600-o,type:"bubble"},s=e.color||r.color;t.size<0&&r.negativeValues.visible&&(s=Tt(r.negativeValues.color,s));var a=E({labels:{animation:{delay:o,duration:600-o}}},this.pointOptions(r,e.seriesIx),{markers:{type:p,border:r.border,opacity:r.opacity,animation:n}});a=this.evalPointOptions(a,t,e),M(r.color)&&(s=a.color),a.markers.background=s;var l=new po(t,a);return l.color=s,this.append(l),l},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,r=Math.min(t.width(),t.height()),i=0;i<e.length;i++)for(var o=e[i],n=this.seriesPoints[i],s=(o.minSize||Math.max(.02*r,10))/2,a=(o.maxSize||.2*r)/2,p=Math.PI*s*s,l=(Math.PI*a*a-p)/this._maxSize,c=0;c<n.length;c++){var h=n[c];if(h){var u=Math.abs(h.value.size)*l,f=Math.sqrt((p+u)/Math.PI),d=Tt(h.options.zIndex,0)+(1-f/a);E(h.options,{zIndex:d,markers:{size:2*f,zIndex:d},labels:{zIndex:d+1}})}}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y,r.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(so);It(lo,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var co=lo,ho=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(pe);E(ho.prototype,hi);var uo=ho,fo=function(t){function e(e,r){t.call(this,r),this.aboveAxis=this.options.aboveAxis,this.color=r.color||g,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,xt(this.value.target)&&(this.target=new uo({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:v,align:d}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,r=this.target,i=this.owner,o=e.invertAxes,n=i.seriesValueAxis(this.options),s=i.categorySlot(i.categoryAxis,e.categoryIx,n),a=n.getSlot(this.value.target),p=o?a:s,l=o?s:a;if(r){var c=new $t(p.x1,l.y1,p.x2,l.y2);r.options.height=o?c.height():e.target.line.width,r.options.width=o?e.target.line.width:c.width(),r.reflow(c)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,r=S.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&r.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:Tt(e.border.opacity,e.opacity)}),this.bodyVisual=r,P(r),this.visual.append(r)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=S.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return S.drawing.Path.fromRect(this.box.toRect(),t)},e.prototype.highlightVisual=function(){return this.bodyVisual},e.prototype.highlightVisualArgs=function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(oe);fo.prototype.tooltipAnchor=Di.prototype.tooltipAnchor,It(fo,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),E(fo.prototype,hi),E(fo.prototype,ui);var vo=fo,yo=function(t){function e(e,r){!function(t){for(var e=t.series,r=0;r<e.length;r++){var i=e[r],o=i.data;!o||b(o[0])||R(o[0])||(i.data=[o])}}(r),t.call(this,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,i=0;i<r;i++)e[i].reflow(t[i])},e.prototype.plotRange=function(t){var e=t.series,r=this.seriesValueAxis(e),i=this.categoryAxisCrossingValue(r);return[i,t.value.current||i]},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=this.options,a=this.children,p=t.valueFields,l=E({vertical:!s.invertAxes,overlay:o.overlay,categoryIx:r,invertAxes:s.invertAxes},o),c=t.fields.color||o.color;l=this.evalPointOptions(l,p,i,r,o,n),M(o.color)&&(c=l.color);var h=new vo(p,l);h.color=c;var u=a[r];return u||(u=new Hi({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(u)),u.append(h),h},e.prototype.updateRange=function(t,e){var r=t.current,i=t.target,o=e.series.axis,n=this.valueAxisRanges[o];xt(r)&&!isNaN(r)&&xt(i&&!isNaN(i))&&((n=this.valueAxisRanges[o]=n||{min:u,max:f}).min=Math.min(n.min,r,i),n.max=Math.max(n.max,r,i))},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)},e.prototype.pointValue=function(t){return t.valueFields.current},e.prototype.aboveAxis=function(t){return t.value.current>0},e.prototype.createAnimation=function(){var t=this.points;this._setAnimationOptions();for(var e=0;e<t.length;e++){var r=t[e];r.options.animation=this.options.animation,r.createAnimation()}},e}(ci);yo.prototype._setAnimationOptions=Xi.prototype._setAnimationOptions,It(yo,{animation:{type:$r}});var go=yo,mo=function(t){function e(e,r){t.call(this),this.chartService=e,this.options=E({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var r=t.background,i=t.border.color;if(e){var o=e.color||e.options.color;r=Tt(r,o),i=Tt(i,o)}var n=z(t.padding||{},"auto");return{backgroundColor:r,borderColor:i,font:t.font,color:t.color,opacity:t.opacity,borderWidth:I(t.border.width),paddingTop:I(n.top),paddingBottom:I(n.bottom),paddingLeft:I(n.left),paddingRight:I(n.right)}},e.prototype.show=function(t,e,r){t.format=e.format;var i=this.getStyle(e,r);t.style=i;var o=new S.Color(i.backgroundColor);xt(e.color)||o.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(S.Class);It(mo,{border:{width:1},opacity:1});var xo=mo,bo=function(t){function e(e,r,i){t.call(this,e,i),this.crosshair=r,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initAxisName=function(){var t,e=this.crosshair.axis;t=e.plotArea.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},e.prototype.showAt=function(t){var e=this.crosshair.axis,r=this.options,i=e[r.stickyMode?"getCategory":"getValue"](t),o=i;r.format?o=this.formatService.auto(r.format,i):e.options.type===l&&(o=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],i)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:o,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,r,i=this.crosshair,o=this.options,n=o.position,p=o.padding,l=!i.axis.options.vertical,c=i.line.bbox();return l?(t=a,n===s?(e=v,r=c.bottomLeft().translate(0,p)):(e=s,r=c.topLeft().translate(0,-p))):(e=a,n===h?(t=d,r=c.topLeft().translate(-p,0)):(t=h,r=c.topRight().translate(p,0))),{point:r,align:{horizontal:t,vertical:e}}},e}(xo);It(bo,{padding:10});var _o=bo,wo=function(t){function e(e,r,i){t.call(this,i),this.axis=r,this.stickyMode=r instanceof Qe;var o=this.options.tooltip;o.visible&&(this.tooltip=new _o(e,this,E({},o,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},e.prototype.hide=function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},e.prototype.moveLine=function(){var t,e=this.axis,r=this.point,i=e.options.vertical,o=this.getBox(),n=i?x:m,s=new S.geometry.Point(o.x1,o.y1);if(t=i?new S.geometry.Point(o.x2,o.y1):new S.geometry.Point(o.x1,o.y2),r)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(r));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=r[n];this.box=o,this.line.moveTo(s).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,r=e.pane.axes,i=r.length,o=e.options.vertical,n=e.lineBox().clone(),s=o?m:x,a=0;a<i;a++){var p=r[a];p.options.vertical!==o&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new S.drawing.Path({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),t.prototype.destroy.call(this)},e}(oe);It(wo,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Oo=wo,So=function(t){function e(e,r){t.call(this,e),this.pane=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,r=0;r<e;r++)if(!0===t[r].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new S.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=S.drawing.Path.fromRect(t);P(e),this.visual.clip(e),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this.children,e=this.clipBox,r=0;r<t.length;r++)for(var i=t[r].points||{},o=i.length,n=0;n<o;n++){var s=i[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,p=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(oe);So.prototype.isStackRoot=!0;var Po=So,Ao=function(t){function e(e){t.call(this,e),this.id="pane"+Co++,this.createTitle(),this.content=new oe,this.chartContainer=new Po({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTitle=function(){var t=this.options.title;R(t)&&(t=E({},t,{align:t.position,position:v})),this.title=we.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var r=0;r<this.charts.length;r++)t.removeChart(this.charts[r])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var r;Pt(this.children)===this.content&&(r=this.children.pop()),t.prototype.reflow.call(this,e),r&&this.children.push(r),this.title&&(this.contentBox.y1+=this.title.box.height())},e.prototype.visualStyle=function(){var e=t.prototype.visualStyle.call(this);return e.zIndex=-10,e},e.prototype.renderComplete=function(){this.options.visible&&this.createGridLines()},e.prototype.stackRoot=function(){return this},e.prototype.clipRoot=function(){return this},e.prototype.createGridLines=function(){for(var t=this.axes,e=t.concat(this.parent.axes),r=[],i=[],o=0;o<t.length;o++)for(var n=t[o],s=n.options.vertical,a=s?r:i,p=0;p<e.length;p++)if(0===a.length){var l=e[p];s!==l.options.vertical&&gt(a,n.createGridLines(l))}},e.prototype.refresh=function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},e.prototype.chartsBox=function(){for(var t=this.axes,e=t.length,r=new $t,i=0;i<e;i++){var o=t[i],n=o.options.vertical?x:m,s=o.lineBox();r[n+1]=s[n+1],r[n+2]=s[n+2]}if(0===r.x2)for(var a=this.parent.axes,p=a.length,l=0;l<p;l++){var c=a[l];if(!c.options.vertical){var h=c.lineBox();r.x1=h.x1,r.x2=h.x2}}return r},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Vr(this),index:this.paneIndex,name:this.options.name})},e}(se),Co=1;Ao.prototype.isStackRoot=!0,It(Ao,{zIndex:-1,shrinkToFit:!0,title:{align:h},visible:!0});var ko=Ao;function jo(t,e){null!==e&&t.push(e)}function Mo(t,e,r){var i=e.visible;if(xt(i))return i;var o=t.pointVisibility;return o?o[r]:void 0}function To(t){for(var e=t.data,r=[],i=0,o=0,n=0;n<e.length;n++){var s=Gr.current.bindPoint(t,n),a=s.valueFields.value;k(a)&&(a=parseFloat(a)),C(a)?(s.visible=!1!==Mo(t,s.fields,n),s.value=Math.abs(a),r.push(s),s.visible&&(i+=s.value),0!==a&&o++):r.push(null)}return{total:i,points:r,count:o}}function Eo(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Ro(t,e){for(var r=[],i=[].concat(e),o=0;o<t.length;o++){var n=t[o];ct(n.type,i)&&r.push(n)}return r}function Io(t,e,r){if(null===e)return e;var i="_date_"+t,o=e[i];return o||(o=Ye(r,nt(t)(e)),e[i]=o),o}function Bo(t,e){var r=t.type,i=e instanceof Date;return!r&&i||Eo(r,l)}function Lo(t){return 1===t.length?t[0]:t}var Vo=/area/i;function zo(t,e){var r=Gr.current.bindPoint(t,null,e).valueFields;for(var i in r)if(j(r[i]))return!0}function Do(t){var e,r,i=t.start,o=t.dir,n=t.min,s=t.max,a=t.getter,p=t.hasItem,l=t.series,c=i;do{p(c+=o)&&(e=zo(l,(r=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return r}function No(t,e,r,i,o){var n=e.min,s=e.max,a=n>0&&n<r,p=s+1<r;if(a||p){var l,c,h;if("interpolate"!==function(t){return t.missingValues?t.missingValues:Vo.test(t.type)||t.stack?Zr:"interpolate"}(t))a&&(l=i(n-1)),p&&(c=i(s+1));else a&&(l=zo(t,(h=i(n-1)).item)?h:Do({start:n,dir:-1,min:0,max:r-1,getter:i,hasItem:o,series:t})),p&&(c=zo(t,(h=i(s+1)).item)?h:Do({start:s,dir:1,min:0,max:r-1,getter:i,hasItem:o,series:t}));l&&(t._outOfRangeMinPoint=l),c&&(t._outOfRangeMaxPoint=c)}}var Fo=function(t){function e(e,r,i){t.call(this,r),this.initFields(e,r),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=i,this.originalOptions=r,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.initSeries=function(){for(var t=this.series,e=0;e<t.length;e++)t[e].index=e},e.prototype.createPanes=function(){for(var t=this.options.title||{},e=this.options.paneDefaults,r=this.options.panes||[],i=Math.max(r.length,1),o=[],n=E({title:{color:t.color}},e),s=0;s<i;s++){var a=E({},n,r[s]);k(a.title)&&(a.title=E({text:a.title},n.title));var p=new ko(a);p.paneIndex=s,o.push(p),this.append(p)}this.panes=o},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var r=t[e],i=0;i<r.axes.length;i++){var o=r.axes[i],n=this.crosshairOptions(o);if(n&&n.visible){var s=new Oo(this.chartService,o,n);this.crosshairs.push(s),r.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,r=t.axes,i=e.length-1;i>=0;i--)for(var o=0;o<r.length;o++)if(e[i].axis===r[o]){e.splice(i,1);break}},e.prototype.hideCrosshairs=function(){for(var t=this.crosshairs,e=0;e<t.length;e++)t[e].hide()},e.prototype.findPane=function(t){for(var e,r=this.panes,i=0;i<r.length;i++)if(r[i].options.name===t){e=r[i];break}return e||r[0]},e.prototype.findPointPane=function(t){for(var e,r=this.panes,i=0;i<r.length;i++)if(r[i].box.containsPoint(t)){e=r[i];break}return e},e.prototype.appendAxis=function(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=[],r=0;r<this.axes.length;r++){var i=this.axes[r];t!==i?e.push(i):i.destroy()}this.axes=e},e.prototype.appendChart=function(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)},e.prototype.removeChart=function(t){for(var e=[],r=0;r<this.charts.length;r++){var i=this.charts[r];i!==t?e.push(i):i.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,r=this.options.legend,i=r.labels||{},o=r.inactiveItems||{},n=o.labels||{},s=[],a=0;a<e;a++){var p=t[a],l=!1!==p.visible;if(!1!==p.visibleInLegend){var c=p.name,h=l?rt(i):rt(n)||rt(i);h&&(c=h({text:oo(c)?c:"",series:p}));var u=p._defaults,f=p.color;M(f)&&u&&(f=u.color);var d=void 0,v=void 0;l?(d={},v=f):(d={color:n.color,font:n.font},v=o.markers.color),oo(c)&&""!==c&&s.push({text:c,labels:d,markerColor:v,series:p,active:l})}}gt(r.items,s)},e.prototype.groupAxes=function(t){for(var e=[],r=[],i=0;i<t.length;i++)for(var o=t[i].axes,n=0;n<o.length;n++){var s=o[n];s.options.vertical?r.push(s):e.push(s)}return{x:e,y:r,any:e.concat(r)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},r=0;r<t.length;r++){var i=t[r],o=this.seriesPaneName(i);e[o]?e[o].push(i):e[o]=[i]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];!1!==i.visible&&e.push(i)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,r=this.panes,i=z(e.margin);this.box=t.clone().unpad(i),this.reflowPanes(),this.detachLabels(),this.reflowAxes(r),this.reflowCharts(r)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var r=this.getRoot();r&&r.cleanGradients();for(var i=0;i<e.length;i++)this.removeCrosshairs(e[i]),e[i].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var o=0;o<e.length;o++)e[o].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var r=t.options,i=[].concat(r.axisCrossingValues||r.axisCrossingValue),o=e.length-i.length,n=i[0]||0,s=0;s<o;s++)i.push(n);return i},e.prototype.alignAxisTo=function(t,e,r,i){var o=t.getSlot(r,r,!0),n=t.options.reverse?2:1,s=e.getSlot(i,i,!0),a=e.options.reverse?2:1,p=t.box.translate(s[m+a]-o[m+n],s[x+a]-o[x+n]);t.pane!==e.pane&&p.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(p)},e.prototype.alignAxes=function(t,e){for(var r=t[0],i=e[0],o=this.axisCrossingValues(r,e),n=this.axisCrossingValues(i,t),a={},p={},l={},c={},u=0;u<e.length;u++){var f=e[u],y=f.pane,g=y.id,m=!1!==f.options.visible,x=Go(t,y)||r,b=o;x!==r&&(b=this.axisCrossingValues(x,e)),this.alignAxisTo(f,x,n[u],b[u]),f.options._overlap||(jt(f.lineBox().x1)===jt(x.lineBox().x1)&&(a[g]&&f.reflow(f.box.alignTo(a[g].box,h).translate(-f.options.margin,0)),m&&(a[g]=f)),jt(f.lineBox().x2)===jt(x.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),this.alignAxisTo(f,x,n[u],b[u]),p[g]&&f.reflow(f.box.alignTo(p[g].box,d).translate(f.options.margin,0)),m&&(p[g]=f)),0!==u&&i.pane===f.pane&&(f.alignTo(i),f.reflow(f.box)))}for(var _=0;_<t.length;_++){var w=t[_],O=w.pane,S=O.id,P=!1!==w.options.visible,A=Go(e,O)||i,C=n;A!==i&&(C=this.axisCrossingValues(A,t)),this.alignAxisTo(w,A,o[_],C[_]),w.options._overlap||(jt(w.lineBox().y1)===jt(A.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),this.alignAxisTo(w,A,o[_],C[_]),l[S]&&w.reflow(w.box.alignTo(l[S].box,v).translate(0,-w.options.margin)),P&&(l[S]=w)),jt(w.lineBox().y2,3)===jt(A.lineBox().y2,3)&&(c[S]&&w.reflow(w.box.alignTo(c[S].box,s).translate(0,w.options.margin)),P&&(c[S]=w)),0!==_&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,r=Ho(e),i=0,o=0;o<t.length;o++){var n=t[o];n.axes.length>0&&(i=Math.max(i,r.width()-n.contentBox.width()))}if(0!==i)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(i,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,r=0;r<t.length;r++){var i=t[r],o=i.axes,n=Math.max(0,Ho(o).height()-i.contentBox.height());if(0!==n){for(var s=0;s<o.length;s++){var a=o[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,r=0,i=0;i<t.length;i++){var o=t[i],n=o.axes,s=o.contentBox;if(n.length>0){var a=Ho(n),p=Math.max(s.y1-a.y1,s.y2-a.y2);r=Math.max(r,s.x1-a.x1);for(var l=0;l<n.length;l++){var c=n[l];c.reflow(c.box.translate(0,p))}}}for(var h=0;h<e.length;h++){var u=e[h];u.reflow(u.box.translate(r,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),r=0;r<t.length;r++)this.reflowPaneAxes(t[r]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,r=this.panes,i=Wo(r),o=0;o<i.length;o++){i[o].autoRotateLabels()&&(e=!0)}if(e){for(var n=0;n<r.length;n++)this.reflowPaneAxes(r[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(r))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,r=e.length;if(r>0)for(var i=0;i<r;i++)e[i].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,r=e.length,i=this.box,o=0;o<r;o++){var n=e[o].pane;n&&!ct(n,t)||e[o].reflow(i)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,r=e.length,i=t.height(),o=0,n=t.y1,s=0;s<r;s++){var a=e[s],p=a.options.height;if(a.options.width=t.width(),a.options.height){if(p.indexOf&&p.indexOf("%")){var l=parseInt(p,10)/100;a.options.height=l*t.height()}a.reflow(t.clone()),i-=a.options.height}else o++}for(var c=0;c<r;c++){var h=e[c];h.options.height||(h.options.height=i/o)}for(var u=0;u<r;u++){var f=e[u],d=t.clone().move(t.x1,n);f.reflow(d),n+=f.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,r=e.length,i=0;i<r;i++)for(var o=e[i],n=0;n<r;n++){var s=e[n];if(o.options.vertical!==s.options.vertical){var a=o.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],r=0;r<t.length;r++)e.push(t[r].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),r=0;r<e.length;r++)t.paths.push(S.drawing.Path.fromRect(e[r].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),r=0;r<e.length;r++)if(e[r].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,r=this.options.plotArea,i=r.opacity,o=r.background,n=r.border;void 0===n&&(n={}),""!==(e=o)&&null!==e&&"none"!==e&&"transparent"!==e&&xt(e)||(o=g,i=0);var s=this._bgVisual=new S.drawing.MultiPath({fill:{color:o,opacity:i},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,r=[];if(null!==t)for(var i=0;i<e.length;i++){if("_navigator"!==e[i].pane.options.name){var o=e[i].categoryPoints[t];if(o&&o.length)for(var n=0;n<o.length;n++){var s=o[n];s&&xt(s.value)&&null!==s.value&&r.push(s)}}}return r},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,r=[],i=0;i<e.length;i++)for(var o=e[i].points,n=0;n<o.length;n++){var s=o[n];s&&!1!==s.visible&&t(s)&&r.push(s)}return r},e.prototype.findPoint=function(t){for(var e=this.charts,r=0;r<e.length;r++)for(var i=e[r].points,o=0;o<i.length;o++){var n=i[o];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,r=0;r<e.length;r++){var i=e[r];if(i.box.containsPoint(t))return i}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,r=t.y;this.detachAxisGroupLabels(r,e),this.detachAxisGroupLabels(e,r)},e.prototype.detachAxisGroupLabels=function(t,e){for(var r=0,i=0;i<t.length;i++){var o=t[i],n=o.pane,s=Go(e,n)||e[0],a=i+r,p=this.createLabelAxis(o,a,s);if(p){r++;var l=n.axes.indexOf(o)+r;n.appendAxisAt(p,l)}}},e.prototype.createLabelAxis=function(t,e,r){var i=t.options.labels,o=i.position,n="end"!==o&&"start"!==o,s=i.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),p=r.options.vertical?a.x:a.y,l=this.axisCrossingValues(r,p),c="end"===o,h=r.range(),u=c?h.max:h.min;if(At(l[e],h.min,h.max)-u==0)return null;l.splice(e+1,0,u),r.options.axisCrossingValues=l;var f=t.clone();return t.clear(),f.options.name=void 0,f.options.line.visible=!1,f.options.crosshair=void 0,f.options.notes=void 0,f.options.plotBands=void 0,f},e}(oe);function Uo(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Ho(t){for(var e,r=t.length,i=0;i<r;i++){var o=t[i],n=!1!==o.options.visible;if(n||Uo(o)){var s=n?o.contentBox():o.lineBox();e?e.wrap(s):e=s.clone()}}return e||new $t}function Go(t,e){for(var r=0;r<t.length;r++){var i=t[r];if(i&&i.pane===e)return i}}var Wo=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};It(Fo,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Ko=Fo,Xo={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function Yo(t,e,r){var i=e,o=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)o=n.shift(),xt(i[o])||(i[o]={}),i=i[o];o=n.shift()}i[o]=r}var qo=function(t){function e(e,r,i){t.call(this);var o=r.canonicalFields(e),n=r.valueFields(e),s=r.sourceFields(e,o),a=this._seriesFields=[],p=i.query(e.type),l=e.aggregate||p;this._series=e,this._binder=r;for(var c=0;c<o.length;c++){var h=o[c],u=void 0;if(R(l))u=l[h];else{if(0!==c&&!ct(h,n))break;u=l}u&&a.push({canonicalName:h,name:s[c],transform:M(u)?u:Fr[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var r=this._series,i=this._seriesFields,o=this._bindPoints(t||[]),n=o.dataItems[0],s={};if(n&&!C(n)&&!b(n)){var a=function(){};a.prototype=n,s=new a}for(var p=0;p<i.length;p++){var l=i[p],c=this._bindField(o.values,l.canonicalName),h=l.transform(c,r,o.dataItems,e);if(!(null===h||!R(h)||xt(h.length)||h instanceof Date)){s=h;break}xt(h)&&Yo(l.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,r=this._series,i=[],o=[],n=0;n<t.length;n++){var s=t[n];i.push(e.bindPoint(r,s)),o.push(r.data[s])}return{values:i,dataItems:o}},e.prototype._bindField=function(t,e){for(var r=[],i=t.length,o=0;o<i;o++){var n=t[o],s=n.valueFields,a=void 0;a=xt(s[e])?s[e]:n.fields[e],r.push(a)}return r},e}(S.Class),Zo=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){for(var r=0;r<t.length;r++)this._defaults[t[r]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(S.Class);Zo.current=new Zo;var $o=Zo,Qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=E({},t,t.from),r=E({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),r.visible&&(this.labelTo=this._createLabel(r),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,r=rt(t),i=this.pointData();return e=r?r(i):this.formatValue(t.format),new Li(e,E({vertical:this.options.vertical},t),i)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,r=this.labelTo,i=this.value;this.box=t,e&&(e.options.aboveAxis=i.from>i.to,e.reflow(t)),r&&(r.options.aboveAxis=i.to>i.from,r.reflow(t)),this.note&&this.note.reflow(t)},e}(Di);Qo.prototype.defaults=E({},Qo.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var Jo=Qo,tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Jo},e.prototype.pointValue=function(t){return t.valueFields},e.prototype.formatPointValue=function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},e.prototype.plotRange=function(t){return t?[t.value.from,t.value.to]:0},e.prototype.updateRange=function(t,e){var r=e.series.axis,i=t.from,o=t.to,n=this.valueAxisRanges[r];null!==t&&C(i)&&C(o)&&((n=this.valueAxisRanges[r]=n||{min:u,max:f}).min=Math.min(n.min,i),n.max=Math.max(n.max,i),n.min=Math.min(n.min,o),n.max=Math.max(n.max,o))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(Xi);tn.prototype.plotLimits=ci.prototype.plotLimits;var en=tn,rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(di),on=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,r=t.labels,i=this.value,o=this.fromPoint=new rn(i,E({},this.options,{labels:r.from,markers:e.from})),n=this.toPoint=new rn(i,E({},this.options,{labels:r.to,markers:e.to}));this.copyFields(o),this.copyFields(n),this.append(o),this.append(n)}},e.prototype.reflow=function(t){this.render();var e=t.from,r=t.to;this.positionLabels(e,r),this.fromPoint.reflow(e),this.toPoint.reflow(r),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new S.drawing.Group;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t},e.prototype.highlightVisual=function(){return this.visual},e.prototype.highlightVisualArgs=function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},e.prototype.tooltipAnchor=function(){var t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){var e,r,i,o=this.box,n=o.center();return this.options.vertical?(e=n.x,r=o.y1-5,i=s):(e=o.x2+5,r=n.y,i=a),{point:new qt(e,r),align:{horizontal:"left",vertical:i}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},e.prototype.initLabelsFormat=function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=Object.assign({},t.from,{format:"{0}"})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:"{1}"})))},e.prototype.positionLabels=function(t,e){var r,i,o=this.options,n=o.labels,s=o.vertical;"auto"===n.position&&(s?e.y1<=t.y1?(i="above",r="below"):(i="below",r="above"):e.x1<=t.x1?(i=h,r=d):(i=d,r=h),n.from&&n.from.position||(this.fromPoint.options.labels.position=r),n.to&&n.to.position||(this.toPoint.options.labels.position=i))},e.prototype.copyFields=function(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner},e}(oe);E(on.prototype,hi),E(on.prototype,ui),on.prototype.defaults={markers:{visible:!1,background:g,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:z(3),padding:z(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:g,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var nn=on,sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new S.drawing.Path(t),r=new S.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),r.segments.push.apply(r.segments,this.stackSegments()),this.visual.append(e),this.visual.append(r)},e.prototype.hasStackSegment=function(){return!0},e.prototype.fromPoints=function(){return this.linePoints.map((function(t){return t.fromPoint}))},e.prototype.toPoints=function(){return this.linePoints.map((function(t){return t.toPoint}))},e}(ji),an=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.createCurveSegments(this.toPoints())},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t},e.prototype.createCurveSegments=function(t){return(new Rr).process(this.toGeometryPoints(t))},e}(sn),pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints()))).reverse(),t},e}(sn);E(pn.prototype,mi);var ln=pn,cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return nn},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=t.valueFields;if(!oo(s.from)&&!oo(s.to)){if(this.seriesMissingValues(o)!==Zr)return null;s={from:0,to:0}}var a=this.pointOptions(o,n);a=this.evalPointOptions(a,s,i,r,o,n);var p=t.fields.color||o.color;M(o.color)&&(p=a.color);var l=new nn(s,a);return l.color=p,this.append(l),l},e.prototype.createSegment=function(t,e,r){var i=(e.line||{}).style;return new("smooth"===i?an:"step"===i?ln:sn)(t,e,r)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var r=t.getSlot(e[0],e[0],!this.options.clip),i=t.getSlot(e[1],e[1],!this.options.clip);if(r&&i)return{from:r,to:i}},e.prototype.pointSlot=function(t,e){var r,i,o=e.from,n=e.to;return this.options.invertAxes?(r=new $t(o.x1,t.y1,o.x2,t.y2),i=new $t(n.x1,t.y1,n.x2,t.y2)):(r=new $t(t.x1,o.y1,t.x2,o.y2),i=new $t(t.x1,n.y1,t.x2,n.y2)),{from:r,to:i}},e.prototype.addValue=function(e,r){var i=e.valueFields;C(i.from)||(i.from=i.to),C(i.to)||(i.to=i.from),t.prototype.addValue.call(this,e,r)},e.prototype.updateRange=function(t,e){if(null!==t&&C(t.from)&&C(t.to)){var r=e.series.axis,i=this.valueAxisRanges[r]=this.valueAxisRanges[r]||{min:u,max:f},o=t.from,n=t.to;i.min=Math.min(i.min,o,n),i.max=Math.max(i.max,o,n)}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.from,r.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++){var i=t[r];i&&(e.push((i.fromPoint||{}).marker),e.push((i.toPoint||{}).marker))}return e.concat(this._segments)},e}(ci);E(cn.prototype,wi,Ai);var hn=cn,un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.value,i=this.owner.seriesValueAxis(e),o=[],n=[],s=[],a=i.getSlot(r.low,r.high),p=i.getSlot(r.open,r.open),l=i.getSlot(r.close,r.close);p.x1=l.x1=a.x1=t.x1,p.x2=l.x2=a.x2=t.x2;var c=a.center().x;o.push([p.x1,p.y1]),o.push([c,p.y1]),n.push([c,l.y1]),n.push([l.x2,l.y1]),s.push([c,a.y1]),s.push([c,a.y2]),this.lines=[o,n,s],this.box=a.clone().wrap(p.clone().wrap(l)),this.reflowNote()},e.prototype.createBody=function(){},e}(qi),fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return un},e}(Qi),dn=function(t){function e(e,r,i){t.call(this),this.from=e,this.to=r,this.series=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this.from.box,r=this.to.box,i=[];if(t.isVertical){var o=t.aboveAxis?e.y1:e.y2;i.push([e.x1,o],[r.x2,o])}else{var n=t.aboveAxis?e.x2:e.x1;i.push([n,e.y1],[n,r.y2])}return i},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},r=S.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});P(r),this.visual.append(r)},e}(oe);It(dn,{animation:{type:"fadeIn",delay:600}});var vn=dn,yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=pi(e),i=!this.options.invertAxes,o=0;o<e.length;o++)for(var n=e[o],s=0,a=0,p=0;p<r;p++){var l=Gr.current.bindPoint(n,p),c=l.valueFields.value,h=l.fields.summary,u=s,f=void 0;h?"total"===h.toLowerCase()?(l.valueFields.value=s,u=0,f=s):(l.valueFields.value=a,f=u-a,a=0):C(c)&&(a+=c,f=s+=c),t(l,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:n,seriesIx:o,total:s,runningTotal:a,from:u,to:f,isVertical:i})}},e.prototype.updateRange=function(e,r){t.prototype.updateRange.call(this,{value:r.to},r)},e.prototype.aboveAxis=function(t){return t.value>=0},e.prototype.plotRange=function(t){return[t.from,t.to]},e.prototype.createSegments=function(){for(var t=this.options.series,e=this.seriesPoints,r=this.segments=[],i=0;i<t.length;i++){var o=t[i],n=e[i];if(n)for(var s=void 0,a=0;a<n.length;a++){var p=n[a];if(p&&s){var l=new vn(s,p,o);r.push(l),this.append(l)}s=p}}},e}(Xi),gn=["area","verticalArea","rangeArea","verticalRangeArea"],mn=[Jr,ei].concat(gn),xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Ii,t.length>0){this.invertAxes=ct(t[0].type,[$r,"bullet",ei,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);for(var e=0;e<t.length;e++){var r=t[e].stack;if(r&&"100%"===r.type){this.stack100=!0;break}}}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.createCategoryAxes(t),this.aggregateCategories(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof Qe?delete this.namedCategoryAxes[r]:(this.valueAxisRangeTracker.reset(r),delete this.namedValueAxes[r]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],o=e[i.options.name||"default"]||[];this.addToLegend(o);var n=this.filterVisibleSeries(o);if(n)for(var s=this.groupSeriesByCategoryAxis(n),a=0;a<s.length;a++)this.createChartGroup(s[a],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Ro(t,["area","verticalArea"]),e),this.createRangeAreaChart(Ro(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Ro(t,[Qr,$r]),e),this.createRangeBarChart(Ro(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Ro(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Ro(t,"candlestick"),e),this.createBoxPlotChart(Ro(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Ro(t,"ohlc"),e),this.createWaterfallChart(Ro(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Ro(t,[Jr,ei]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,r=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var i=0;i<e.length;i++){var o=e[i],n=this.seriesCategoryAxis(o),s=this.findPane(n.options.pane);o=(Eo(n.options.type,l)||o.categoryField)&&ct(s,t)?this.aggregateSeries(o,n):this.filterSeries(o,n),r.push(o)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=r},e.prototype.filterSeries=function(t,e){var r=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,r),!C(e.options.min)&&!C(e.options.max))return t;var i=e.currentRangeIndices(),o=ct(t.type,mn),n=E({},t);return n.data=(n.data||[]).slice(i.min,i.max+1),o&&No(n,i,r,(function(r){return{item:t.data[r],category:e.categoryAt(r,!0),categoryIx:r-i.min}}),(function(e){return xt(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var r=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[r])return this._currentPointsCache[r]=this._seriesPointsCache[r],this._seriesPointsCache[r];var i=e.options,o=i.srcCategories,n=Eo(i.type,l),s=t.data,a=n?Io:Ur,p=[];n||e.mapCategories();for(var c=0;c<s.length;c++){var h=void 0;if(h=t.categoryField?a(t.categoryField,s[c],this.chartService.intl):o[c],xt(h)&&null!==h){var u=e.totalIndex(h);p[u]=p[u]||{items:[],category:h},p[u].items.push(c)}}return this._currentPointsCache[r]=p,p},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var r=this.seriesSourcePoints(t,e),i=E({},t),o=new qo(E({},t),Gr.current,$o.current),n=i.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),p=function(t){var i=t-a.min,n=r[t];if(n||(n=r[t]={}),n.categoryIx=i,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=o.aggregatePoints(n.items,s)}return n},l=a.min;l<=a.max;l++){var c=p(l);n[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return ct(i.type,mn)&&No(i,a,e.totalCount(),p,(function(t){return r[t]})),e.options.dataItems=s,i},e.prototype.appendChart=function(e,r){var i=e.options.series,o=this.seriesCategoryAxis(i[0]),n=o.options.categories,s=Math.max(0,pi(i)-n.length);if(s>0)for(n=o.options.categories=o.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,r)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.axis,i=st([].concat(e.valueAxis),(function(t){return t.name===r}))[0],o=((e.panes||[{}])[0]||{}).name||"default";return(i||{}).pane||o},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,r=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!r)throw new Error("Unable to locate category axis with name "+e);return r},e.prototype.stackableChartOptions=function(t,e){var r=t.stack;return{isStacked:r,isStacked100:r&&"100%"===r.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],r={},i=0;i<t.length;i++){var o=t[i].categoryAxis||"$$default$$";r.hasOwnProperty(o)||(r[o]=!0,e.push(o))}for(var n=[],s=0;s<e.length;s++){var a=_n(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],i=new Xi(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing},this.stackableChartOptions(r,e)));this.appendChart(i,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var r=t[0],i=new en(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(i,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var r=t[0],i=new go(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=t[0],i=new ki(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(i,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=t[0],i=new Ri(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(i,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var r=new hn(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var r=t[0],i=new fn(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var r=t[0],i=new Qi(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var r=t[0],i=new ro(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var r=t[0],i=new yn(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(i,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var r=Ro(this.series,ri),i=0;i<this.series.length;i++){var o=this.series[i];if(ct(o.type,gn)){var n=o.line;n&&"step"===n.style&&r.push(o)}}for(var s=0;s<r.length;s++){var a=r[s].categoryAxis||"";if(a===t||!a&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var r=this.series,i=0;i<r.length;i++){var o=r[i].categoryAxis||"";if((o===t||!o&&0===e)&&r[i].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof Qe&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,r=[].concat(this.options.categoryAxis),i=[],o=0;o<r.length;o++){var n=r[o];if(ct(this.findPane(n.pane),t)){var s=n.name,a=n.categories;void 0===a&&(a=[]),n=E({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?u:0},n),xt(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(s,o)&&(n.justified=!1);var p=void 0;if(p=Bo(n,a[0])?new ar(n,this.chartService):new Qe(n,this.chartService),r[o].categories=p.options.srcCategories,s){if(this.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");this.namedCategoryAxes[s]=p}p.axisIndex=o,i.push(p),this.appendAxis(p)}}var l=this.categoryAxis||i[0];this.categoryAxis=l,e?this.axisY=l:this.axisX=l},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!ct(t[e].type,gn))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,r=e.query(),i=[].concat(this.options.valueAxis),o=this.invertAxes,n={vertical:!o,reverse:o&&this.chartService.rtl},s=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var a=0;a<i.length;a++){var p=i[a];if(ct(this.findPane(p.pane),t)){var l=p.name,c=Eo(p.type,"log")?{min:.1,max:1}:{min:0,max:1},h=e.query(l)||r||c;0===a&&h&&r&&(h.min=Math.min(h.min,r.min),h.max=Math.max(h.max,r.max));var u=new(Eo(p.type,"log")?br:dr)(h.min,h.max,E({},n,p),this.chartService);if(l){if(this.namedValueAxes[l])throw new Error("Value axis with name "+l+" is already defined");this.namedValueAxes[l]=u}u.axisIndex=a,s.push(u),this.appendAxis(u)}}var f=this.valueAxis||s[0];this.valueAxis=f,o?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,r){var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.pointPane(o),s=[],a=[];if(n){for(var p=n.axes,l=0;l<p.length;l++){var c=p[l];c.getValue?jo(a,c.getValue(o)):jo(s,c.getCategory(o))}0===s.length&&jo(s,this.categoryAxis.getCategory(o)),s.length>0&&a.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,category:Lo(s),value:Lo(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,r=0;r<e.length;r++){var i=e[r];if(i.contentBox.containsPoint(t))return i}},e.prototype.updateAxisOptions=function(t,e){bn(this.options,t,e),bn(this.originalOptions,t,e)},e}(Ko);function bn(t,e,r){E([].concat(e instanceof Qe?t.categoryAxis:t.valueAxis)[e.axisIndex],r)}function _n(t,e,r){return st(t,(function(t){return 0===r&&!t.categoryAxis||t.categoryAxis===e}))}It(xn,{categoryAxis:{},valueAxis:{}}),E(xn.prototype,Xo);var wn=xn;function On(){this._defaultPrevented=!0}var Sn=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t,e){var r=[].concat(t);this.hide();for(var i=0;i<r.length;i++){var o=r[i];o&&o.toggleHighlight&&o.hasHighlight()&&(this.togglePointHighlight(o,!0,e),this._points.push(o))}},e.prototype.togglePointHighlight=function(t,e,r){var i=(t.options.highlight||{}).toggle;if(i){var o={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:On,visual:t.highlightVisual(),show:e};i(o),o._defaultPrevented||t.toggleHighlight(e,r)}else t.toggleHighlight(e,r)},e.prototype.hide=function(){for(var t=this._points;t.length;)this.togglePointHighlight(t.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,r=0;r<e.length;r++){if(t===e[r])return!0}return!1},e}(S.Class);function Pn(t,e){var r=(e||"").toLowerCase(),i=t.event;return"none"===r&&!(i.ctrlKey||i.shiftKey||i.altKey)||i[r+"Key"]}function An(t){for(var e={},r=0;r<t.length;r++){var i=t[r];i.axis.options.name&&(e[i.axis.options.name]={min:i.range.min,max:i.range.max})}return e}var Cn=function(t){function e(e,r){t.call(this),this.plotArea=e,this.options=E({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=Pn(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,m).concat(this._panAxes(t,x));if(e.length)return this.axisRanges=e,An(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this.plotArea,e=this.axisRanges;if(e.length){for(var r=0;r<e.length;r++){var i=e[r];t.updateAxisOptions(i.axis,i.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var r=this.plotArea,i=-t[e].delta,o=(this.options.lock||"").toLowerCase(),n=[];if(0!==i&&(o||"").toLowerCase()!==e)for(var s=r.axes,a=0;a<s.length;a++){var p=s[a];if(e===m&&!p.options.vertical||e===x&&p.options.vertical){var l=p.pan(i);l&&(l.limitRange=!0,n.push({axis:p,range:l}))}}return n},e}(S.Class);Cn.prototype.options={key:"none",lock:"none"};var kn=Cn,jn=function(t){function e(e,r){t.call(this),this.chart=e,this.options=E({},this.options,r),this.createElement()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElement=function(){var t=this._marquee=document.createElement("div");t.className="k-marquee";var e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)},e.prototype.removeElement=function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},e.prototype.setStyles=function(t){V(this._marquee,t)},e.prototype.start=function(t){if(Pn(t,this.options.key)){var e=this.chart,r=e._eventCoordinates(t),i=this._zoomPane=e._plotArea.paneByPoint(r),o=i?i.chartsBox().clone():null;if(i&&o){var n=this._elementOffset();return o.translate(n.left,n.top),this._zoomPaneClipBox=o,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1},e.prototype._elementOffset=function(){var t=this.chart.element,e=V(t,["paddingLeft","paddingTop"]),r=e.paddingLeft,i=e.paddingTop,o=_t(t);return{left:r+o.left,top:i+o.top}},e.prototype.move=function(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function(t){if(this._zoomPane){var e=this._elementOffset(),r=this._selectionPosition(t);r.left-=e.left,r.top-=e.top;var i={x:r.left,y:r.top},o={x:r.left+r.width,y:r.top+r.height};return this._updateAxisRanges(i,o),this.removeElement(),delete this._zoomPane,An(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,r=0;r<t.length;r++){var i=t[r];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){this.removeElement(),delete this._marquee,delete this.chart},e.prototype._updateAxisRanges=function(t,e){for(var r=(this.options.lock||"").toLowerCase(),i=[],o=this._zoomPane.axes,n=0;n<o.length;n++){var s=o[n],a=s.options.vertical;if((r!==m||a)&&(r!==x||!a)&&xt(s.axisIndex)){var p=s.pointsRange(t,e);p&&i.push({axis:s,range:p})}}this.axisRanges=i},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,r={x:t.x.startLocation,y:t.y.startLocation},i=t.x.location,o=t.y.location,n=(this.options.lock||"").toLowerCase(),s=Math.min(r.x,i),a=Math.min(r.y,o),p=Math.abs(r.x-i),l=Math.abs(r.y-o);return n===m&&(s=e.x1,p=e.width()),n===x&&(a=e.y1,l=e.height()),i>e.x2&&(p=e.x2-r.x),i<e.x1&&(p=r.x-e.x1),o>e.y2&&(l=e.y2-r.y),o<e.y1&&(l=r.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:p,height:l}},e}(S.Class);jn.prototype.options={key:"shift",lock:"none"};var Mn=jn,Tn=function(t){function e(e,r){t.call(this),this.chart=e,this.options=E({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t){for(var e=(this.options.lock||"").toLowerCase(),r=[],i=this.chart._plotArea.axes,o=0;o<i.length;o++){var n=i[o],s=n.options.vertical;if((e!==m||s)&&(e!==x||!s)&&n.zoomRange){var a=n.zoomRange(-t);a&&r.push({axis:n,range:a})}}return this.axisRanges=r,An(r)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var r=0;r<t.length;r++){var i=t[r];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(S.Class),En=function(t){function e(e,r){t.call(this,e),this.chartService=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.children,e=this.options,r=e.vertical;this.visual=new S.drawing.Layout(null,{spacing:r?0:e.spacing,lineSpacing:r?e.spacing:0,orientation:r?"vertical":"horizontal",reverse:e.rtl,alignItems:r?"start":"center"});for(var i=0;i<t.length;i++){var o=t[i];o.reflow(new $t),o.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?me(e):new $t},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(oe),Rn=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new de({vertical:!1,wrap:!1,align:a,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new pe(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return E({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=E({},t.labels);this.container.append(new be(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},r=this._itemOverlay=S.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:g,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(r)},e.prototype.click=function(t,e){var r=this.eventArgs(e);!t.trigger("legendItemClick",r)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var r=this.eventArgs(e);return t.trigger("legendItemHover",r)||t._legendItemHover(r.seriesIndex,r.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:Ot(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,r=this.options,i=r.visual;i?(this.visual=i({active:r.active,series:r.series,sender:this.getSender(),pointIndex:r.pointIndex,options:{markers:this.markerOptions(),labels:r.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):t.prototype.renderVisual.call(this)},e}(se),In=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,e),this.chartService=r,ct(this.options.position,[v,d,s,h,"custom"])||(this.options.position=d),this.createContainers(),this.createLegendTitle(e.title),this.createItems()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainers=function(){var t=this.options,e=t.position,r=t.align,i=e,o=a;"custom"===e?i=h:ct(e,[v,s])?(i="start"===r?h:"end"===r?d:a,o=e):r&&("start"===r?o=v:"end"===r&&(o=s)),this.container=new se({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:o,align:i,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new se({vAlign:o,align:i,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,r=this.isVertical(),i=new En({vertical:r,spacing:e.spacing,rtl:t.rtl},t),o=e.items;e.reverse&&(o=o.slice(0).reverse());for(var n=o.length,s=0;s<n;s++){var a=o[s];i.append(new Rn(E({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}i.render(),this.itemsContainer.append(i)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,r=t.position;return"custom"===r&&"horizontal"!==e||(xt(e)?"horizontal"!==e:ct(r,[h,d]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,r=t.clone();this.hasItems()?("custom"===e.position?(this.containerCustomReflow(r),this.box=r):this.containerReflow(r),this.hasTitle()&&this.title.reflow(new $t(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=r},e.prototype.containerReflow=function(t){var e=this.options,r=this.container,i=e.position,o=e.width,n=e.height,a=i===v||i===s?m:x,p=this.isVertical(),l=t.clone(),c=t.clone();i!==h&&i!==d||(c.y1=l.y1=0),p&&n?(c.y2=c.y1+n,c.align(l,x,r.options.vAlign)):!p&&o&&(c.x2=c.x1+o,c.align(l,m,r.options.align)),r.reflow(c);var u=(c=r.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),r.reflow(c)),u[a+1]=t[a+1],u[a+2]=t[a+2],this.box=u},e.prototype.containerCustomReflow=function(t){var e=this.options,r=this.container,i=e.offsetX,o=e.offsetY,n=e.width,s=e.height,a=this.isVertical(),p=t.clone();a&&s?p.y2=p.y1+s:!a&&n&&(p.x2=p.x1+n),r.reflow(p),p=r.box,r.reflow(new $t(i,o,i+p.width(),o+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=E({},{color:n,position:v,align:a},t),r=e.text;if(t&&!1!==t.visible){if(xt(e)&&e.visible){var i=rt(e);i?r=i({text:r}):e.format&&(r=this.chartService.format.auto(e.format,r))}this.title=new be(r,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new de({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(oe);It(In,{position:d,items:[],offsetX:0,offsetY:0,margin:z(5),padding:z(5),border:{color:n,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:h,vAlign:a}});var Bn=In,Ln=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){this._registry.push({type:t,seriesTypes:e})},e.prototype.create=function(t,e,r){for(var i,o=this._registry,n=o[0],s=0;s<o.length;s++){var a=o[s];if((i=Ro(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(i,e,r)},e}(S.Class);Ln.current=new Ln;var Vn=Ln;function zn(t){var e=document.createElement("div");return t&&(e.className=t),e}function Dn(t){for(var e=t;e&&!at(e,"k-handle");)e=e.parentNode;return e}var Nn=function(t){function e(e,r,i,o){t.call(this);var n=e.element;this.options=E({},this.options,i),this.chart=e,this.observer=o,this.chartElement=n,this.categoryAxis=r,this._dateAxis=this.categoryAxis instanceof ar,this.initOptions(),this.visible=this.options.visible&&n.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=zn("k-selector");V(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var r=this.selection=zn("k-selection");this.leftMask=zn("k-mask"),this.rightMask=zn("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(r),r.appendChild(zn("k-selection-bg"));var i=this.leftHandle=zn("k-handle k-left-handle"),o=this.rightHandle=zn("k-handle k-right-handle");i.appendChild(zn()),o.appendChild(zn()),r.appendChild(i),r.appendChild(o),this.chartElement.appendChild(e);var n=V(r,["borderLeftWidth","borderRightWidth","height"]),s=V(i,"height").height,a=V(o,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},V(i,{top:(n.height-s)/2}),V(o,{top:(n.height-a)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),mt(this.wrapper,((t={})[ii]=this._mousewheelHandler,t))),this._domEvents=Q.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),r=this.chart.chartService.intl;this._dateAxis&&E(t,{min:Ye(r,t.min),max:Ye(r,t.max),from:Ye(r,t.from),to:Ye(r,t.to)});var i=V(this.chartElement,["paddingLeft","paddingTop"]),o=i.paddingLeft,n=i.paddingTop;this.options=E({},{width:e.width(),height:e.height()+.1,padding:{left:o,top:n},offset:{left:e.x1+o,top:e.y1+n},from:t.min,to:t.max},t)},e.prototype.destroy=function(){var t;this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(Mt(this.wrapper,((t={})[ii]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,r=Ot(t);if(!this._state&&r){this.chart._unsetActivePoint(),this._state={moveTarget:Dn(r)||r,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var i=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",i)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Dn(Ot(t)))&&_(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,r=this.options,i=this.categoryAxis,o=e.range,n=e.moveTarget,s=i.options.reverse,a=this._index(r.from),p=this._index(r.to),l=this._index(r.min),c=this._index(r.max),h=e.startLocation-t.x.location,u=o.from,f=o.to,d=o.to-o.from,v=V(this.wrapper,"width").width/(i.categoriesCount()-1),y=Math.round(h/v)*(s?-1:1);if(n){var g=at(n,"k-left-handle"),m=at(n,"k-right-handle");at(n,"k-selection k-selection-bg")?(o.from=Math.min(Math.max(l,a-y),c-d),o.to=Math.min(o.from+d,c)):g&&!s||m&&s?(o.from=Math.min(Math.max(l,a-y),c-1),o.to=Math.max(o.from+1,o.to)):(g&&s||m&&!s)&&(o.to=Math.min(Math.max(l+1,p-y),c),o.from=Math.min(o.to-1,o.from)),o.from===u&&o.to===f||(this.move(o.from,o.to),this.trigger("select",this._rangeEventArgs(o)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&O(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,r=this.categoryAxis,i=this.chart._eventCoordinates(t),o=r.pointCategoryIndex(new qt(i.x,r.box.y1)),n=this._index(e.from),s=this._index(e.to),a=this._index(e.min),p=this._index(e.max),l=s-n,c=n+l/2,h={},u=3===t.event.which,f=Math.round(c-o);this._state||u||(this.chart._unsetActivePoint(),r.options.justified||f--,h.from=Math.min(Math.max(a,n-f),p-l),h.to=Math.min(h.from+l,p),this._start(t),this._state&&(this._state.range=h,this.trigger("select",this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,r=vt(t);if(this._start({target:this.selection}),this._state){var i=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(r)>1&&(r*=3),this.options.mousewheel.reverse&&(r*=-1),this.expand(r)&&this.trigger("select",{axis:this.categoryAxis.options,delta:r,originalEvent:t,from:this._value(i.from),to:this._value(i.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var r=this._rangeEventArgs(this._state.range);this.trigger("selectStart",r)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,r=this._state,i=this.options,o=this.categoryAxis,n=r.range,s=e._toModelCoordinates(t.touches[0].x.location).x,a=e._toModelCoordinates(t.touches[1].x.location).x,p=Math.min(s,a),l=Math.max(s,a);t.preventDefault(),n.from=o.pointCategoryIndex(new qt(p))||i.min,n.to=o.pointCategoryIndex(new qt(l))||i.max,this.move(n.from,n.to),this.trigger("select",this._rangeEventArgs(n))},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,r=this._index(t);return e.getSlot(r,r,!0)},e.prototype.move=function(t,e){var r=this.options,i=this.categoryAxis.options.reverse,o=r.offset,n=r.padding,s=r.selection.border,a=i?e:t,p=i?t:e,l="x"+(i?2:1),c=this._slot(a),h=jt(c[l]-o.left+n.left);V(this.leftMask,{width:h}),V(this.selection,{left:h}),c=this._slot(p);var u=jt(r.width-(c[l]-o.left+n.left));V(this.rightMask,{width:u});var f=r.width-u;f!==r.width&&(f+=s.right),V(this.rightMask,{left:f}),V(this.selection,{width:Math.max(r.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var r=this.options,i=this._index(r.min),o=this._index(r.max),n=At(this._index(t),i,o),s=At(this._index(e),n+1,o);r.visible&&this.move(n,s),r.from=this._value(n),r.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,r=this._index(e.min),i=this._index(e.max),o=e.mousewheel.zoom,n=this._index(e.from),s=this._index(e.to),a={from:n,to:s},p=E({},a);if(this._state&&(a=this._state.range),o!==d&&(a.from=At(At(n-t,0,s-1),r,i)),o!==h&&(a.to=At(At(s+t,a.from+1,i),r,i)),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(S.Class);It(Nn,{visible:!0,mousewheel:{zoom:"both"},min:f,max:u});var Fn=Nn,Un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var r=E({},this.options,e.options.tooltip),i=e.tooltipAnchor();i?(this._current=e,t.prototype.show.call(this,{point:e,anchor:i},r,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(xo),Hn=function(t){function e(e,r){t.call(this,e.chartService,r),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var r=st(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(r.length>0){var i=r[0],o=this.plotArea.categoryAxis.getSlot(i.categoryIx),n=e?this._slotAnchor(e,o):this._defaultAnchor(i,o);this.show({anchor:n,shared:!0,points:t,category:i.category,categoryText:this.formatService.auto(this.options.categoryFormat,i.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}},e.prototype._defaultAnchor=function(t,e){var r=t.owner.pane.chartsBox(),i=this.plotArea.categoryAxis.options.vertical,o=r.center(),n=e.center();return{point:i?new qt(o.x,n.y):new qt(n.x,o.y),align:{horizontal:"center",vertical:"center"}}},e}(xo);It(Hn,{categoryFormat:"{0:d}"});var Gn=Hn,Wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var r=e.vertical?x:m,i=this.fromScale=new S.geometry.Point(1,1);i[r]=qr,t.transform(S.geometry.transform().scale(i.x,i.y))}else this.abort()},e.prototype.step=function(t){var e=ht(this.fromScale.x,1,t),r=ht(this.fromScale.y,1,t);this.element.transform(S.geometry.transform().scale(e,r,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(S.drawing.Animation);It(Wn,{duration:600}),S.drawing.AnimationFactory.current.register($r,Wn);var Kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(S.geometry.transform().scale(qr,qr,t))},e.prototype.step=function(t){this.element.transform(S.geometry.transform().scale(t,t,this.center))},e}(S.drawing.Animation);It(Kn,{easing:"easeOutElastic"}),S.drawing.AnimationFactory.current.register("bubble",Kn);var Xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(S.drawing.Animation);It(Xn,{duration:200,easing:"linear"}),S.drawing.AnimationFactory.current.register("fadeIn",Xn);var Yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(S.geometry.transform().scale(qr,qr,this.options.center))},e.prototype.step=function(t){this.element.transform(S.geometry.transform().scale(t,t,this.options.center))},e}(S.drawing.Animation);It(Yn,{easing:"easeOutElastic",duration:600}),S.drawing.AnimationFactory.current.register(ti,Yn);var qn=Yn,Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,r){return new("smooth"===e.style?_i:yi)(t,e,r)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Zr){var r={x:t.x,y:t.y};return oo(r.x)||(r.x=0),oo(r.y)||(r.y=0),r}},e}(so);E(Zn.prototype,wi);var $n=Zn,Qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Ii,this.yAxisRangeTracker=new Ii},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],o=e[i.options.name||"default"]||[];this.addToLegend(o);var n=this.filterVisibleSeries(o);n&&(this.createScatterChart(Ro(n,"scatter"),i),this.createScatterLineChart(Ro(n,"scatterLine"),i),this.createBubbleChart(Ro(n,"bubble"),i))}this.createAxes(t)},e.prototype.appendChart=function(e,r){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,r)},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(r),delete this.namedYAxes[r]):(this.xAxisRangeTracker.reset(r),delete this.namedXAxes[r]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,i=st([].concat(e.xAxis),(function(t){return t.name===r}))[0],o=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===o}))[0],s=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new so(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new $n(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new co(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,r){for(var i,o=t.name,n=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=E({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=Eo(a.type,"log"),c=s.query(),h=p?{min:.1,max:1}:{min:0,max:1},u=s.query(o)||c||h,f=[a.min,a.max],d=this.series,v=0;v<d.length;v++){var y=d[v],g=y[e?"yAxis":"xAxis"];if(g===a.name||0===r&&!g){var m=Gr.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===r&&c&&(u.min=Math.min(u.min,c.min),u.max=Math.max(u.max,c.max));for(var x=0;x<f.length;x++)if(f[x]instanceof Date){i=!0;break}var b=new(Eo(a.type,l)||!a.type&&i?yr:p?br:dr)(u.min,u.max,a,this.chartService);if(b.axisIndex=r,o){if(n[o])throw new Error((e?"Y":"X")+" axis with name "+o+" is already defined");n[o]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),i=[],o=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){ct(this.findPane(r[s].pane),t)&&i.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<o.length;a++){ct(this.findPane(o[a].pane),t)&&n.push(this.createXYAxis(o[a],!0,a))}this.axisX=this.axisX||i[0],this.axisY=this.axisY||n[0]},e.prototype._dispatchEvent=function(t,e,r){for(var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l],h=c.options.vertical?p:a,u=c.getValue(o);null!==u&&h.push(u)}a.length>0&&p.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,x:Lo(a),y:Lo(p)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,i=this.groupAxes(this.panes),o=(r?i.y:i.x).indexOf(t);Jn(this.options,o,r,e),Jn(this.originalOptions,o,r,e)},e}(Ko);function Jn(t,e,r,i){E([].concat(r?t.yAxis:t.xAxis)[e],i)}It(Qn,{xAxis:{},yAxis:{}}),E(Qn.prototype,Xo);var ts=Qn,es=function(t){function e(e,r,i){t.call(this,i),this.value=e,this.sector=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,r=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var i=rt(t),o=this.pointData();if(i?r=i(o):t.format&&(r=e.format.auto(t.format,r)),t.visible&&(r||0===r)){if(t.position===a||"insideEnd"===t.position)t.color||(t.color=Ft(this.options.color)),t.background||(t.background=this.options.color);else{var n=e.theme.seriesDefaults.labels;t.color=t.color||n.color,t.background=t.background||n.background}this.label=new be(r,E({},t,{align:a,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),o),this.append(this.label)}}},e.prototype.reflow=function(t){this.render(),this.box=t,this.reflowLabel()},e.prototype.reflowLabel=function(){var t=this.options.labels,e=this.label,r=this.sector.clone(),i=t.distance,o=r.middle();if(e){var n,s=e.box.height(),p=e.box.width();if(t.position===a)r.radius=Math.abs((r.radius-s)/2)+s,n=r.point(o),e.reflow(new $t(n.x,n.y-s/2,n.x,n.y));else if("insideEnd"===t.position)r.radius=r.radius-s/2,n=r.point(o),e.reflow(new $t(n.x,n.y-s/2,n.x,n.y));else{var l;(n=r.clone().expand(i).point(o)).x>=r.center.x?(l=n.x+p,e.orientation=d):(l=n.x-p,e.orientation=h),e.reflow(new $t(l,n.y-s,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,r=this.sector,i=this.options;if(t.prototype.createVisual.call(this),this.value)if(i.visual){var o=(r.startAngle+180)%360,n=i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new S.geometry.Point(r.center.x,r.center.y),radius:r.radius,innerRadius:r.innerRadius,startAngle:o,endAngle:o+r.angle,options:i,sender:this.getSender(),createVisual:function(){var t=new S.drawing.Group;return e.createSegmentVisual(t),t}});n&&this.visual.append(n)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,r=this.options,i=r.border||{},o=i.width>0?{stroke:{color:i.color,width:i.width,opacity:i.opacity,dashType:i.dashType}}:{},n=r.color,s={color:n,opacity:r.opacity},a=this.createSegment(e,E({fill:s,stroke:{opacity:r.opacity},zIndex:r.zIndex},o));t.append(a),Vi(r)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},E({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},r.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new S.drawing.Circle(new S.geometry.Circle(new S.geometry.Point(t.center.x,t.center.y),t.radius),e):re.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,r=this.sector.center;E(e,{animation:{center:[r.x,r.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},r=e.border||{};return this.createSegment(this.sector,E({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:r.opacity,width:r.width,color:r.color}}))},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new S.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:os(e+180)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(oe),rs=jt(kt(30),10),is=jt(kt(60),10);function os(t){var e=kt(t),r=jt(Math.sin(e),10),i=jt(Math.cos(e),10);return{horizontal:Math.abs(r)>is?a:i<0?d:h,vertical:Math.abs(r)<rs?a:r<0?s:v}}It(es,{color:g,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:z(.5),align:p,zIndex:1,position:"outsideEnd"},animation:{type:ti},highlight:{visible:!0,border:{width:1}},visible:!0}),E(es.prototype,hi);var ns=es,ss={createLegendItem:function(t,e,r){var i=this.options.legend||{},o=i.labels||{},n=i.inactiveItems||{},s=n.labels||{};if(r&&!1!==r.visibleInLegend){var a,p,l=!1!==r.visible,c=l?rt(o):rt(s)||rt(o),h=r.category;c&&(h=c({text:h,series:r.series,dataItem:r.dataItem,percentage:r.percentage,value:t})),l?(a={},p=e.color):(a={color:s.color,font:s.font},p=(n.markers||{}).color),oo(h)&&""!==h&&this.legendItems.push({active:l,pointIndex:r.index,text:h,series:r.series,markerColor:p,labels:a})}}},as=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this.options,r=this.plotArea.options.seriesColors;void 0===r&&(r=[]);for(var i=r.length,o=e.series,n=o.length,s=0;s<n;s++){var p=o[s],l=p.data,c=To(p),h=c.total,u=c.points,f=c.count,d=360/h,v=void 0;isFinite(d)||(v=360/f);var y=void 0;y=xt(p.startAngle)?p.startAngle:e.startAngle,s!==n-1&&"outsideEnd"===p.labels.position&&(p.labels.position=a);for(var g=0;g<u.length;g++){var m=u[g];if(m){var x=m.fields,b=m.value,_=m.visible,w=0!==b?v||b*d:0,O=1!==l.length&&Boolean(x.explode);M(p.color)||(p.color=x.color||r[g%i]),t(m.valueFields.value,new Jt(null,0,0,y,w),{owner:this,category:xt(x.category)?x.category:"",index:g,series:p,seriesIx:s,dataItem:l[g],percentage:0!==h?b/h:0,explode:O,visibleInLegend:x.visibleInLegend,visible:_,zIndex:n-s,animationDelay:this.animationDelay(g,s,n)}),!1!==_&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,r){var i=r.series;ai(t,{value:e,series:i,dataItem:r.dataItem,category:r.category,percentage:r.percentage},{defaults:i._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,r){var i=E({},r.series,{index:r.index});if(this.evalSegmentOptions(i,t,r),this.createLegendItem(t,i,r),!1!==r.visible){var o=new ns(t,e,i);Object.assign(o,r),this.append(o),this.points.push(o)}},e.prototype.reflow=function(t){var e=this.options,r=this.points,i=this.seriesConfigs;void 0===i&&(i=[]);var o=r.length,n=t.clone(),s=Math.min(n.width(),n.height()),a=s/2,p=s-.85*s,l=new $t(n.x1,n.y1,n.x1+s,n.y1+s),c=l.center(),h=n.center(),u=e.series.length,f=[],v=[],y=Tt(e.padding,p);this.targetBox=t,y=y>a-5?a-5:y,l.translate(h.x-c.x,h.y-c.y);for(var g=a-y,m=new qt(g+l.x1+y,g+l.y1+y),x=0;x<o;x++){var b=r[x],_=b.sector,w=b.seriesIx;if(_.radius=g,_.center=m,i.length){var O=i[w];_.innerRadius=O.innerRadius,_.radius=O.radius}w===u-1&&b.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),b.reflow(l);var S=b.label;S&&"outsideEnd"===S.options.position&&w===u-1&&(S.orientation===d?v.push(S):f.push(S))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),v.length>0&&(v.sort(this.labelComparator(!1)),this.rightLabelsReflow(v)),this.box=l},e.prototype.leftLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.rightLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.distanceBetweenLabels=function(t){var e=Pt(this.points),r=e.sector,i=t.length-1,o=r.radius+e.options.labels.distance,n=[],s=t[0].box,a=jt(s.y1-(r.center.y-o-s.height()-s.height()/2));n.push(a);for(var p=0;p<i;p++){var l=t[p+1].box;s=t[p].box,a=jt(l.y1-s.y2),n.push(a)}return a=jt(r.center.y+o-t[i].box.y2-t[i].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var r,i,o,n=t.length,s=0;s<n;s++)for(o=-t[s],r=i=s;o>0&&(r>=0||i<n);)o=this._takeDistance(t,s,--r,o),o=this._takeDistance(t,s,++i,o);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,r,i){var o=i;if(t[r]>0){var n=Math.min(t[r],o);o-=n,t[r]-=n,t[e]+=n}return o},e.prototype.reflowLabels=function(t,e){var r,i=Pt(this.points),o=i.sector,n=i.options.labels,s=e.length,a=n.distance,l=o.center.y-(o.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var h=e[c],u=h.box;l+=t[c],r=this.hAlignLabel(u.x2,o.clone().expand(a),l,l+u.height(),h.orientation===d),h.orientation===d?(n.align!==p&&(r=o.radius+o.center.x+a),h.reflow(new $t(r+u.width(),l,r,l))):(n.align!==p&&(r=o.center.x-o.radius-a),h.reflow(new $t(r-u.width(),l,r,l))),l+=u.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,r=this.points,i=r.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var o=0;o<i;o++){var n=r[o],s=n.sector,a=n.label,p=s.middle(),l=(n.options.connectors||{}).color||e.color;if(a){var c=new S.drawing.Path({stroke:{color:l,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===a.options.position){var h=a.box,u=s.center,f=s.point(p),v=new qt(h.x1,h.center().y),y=void 0,g=void 0,m=void 0;f=s.clone().expand(e.padding).point(p),c.moveTo(f.x,f.y),a.orientation===d?(m=ps(u,f,v,g=new qt(h.x1-e.padding,h.center().y)),v=new qt(g.x-4,g.y),(m=m||v).x=Math.min(m.x,v.x),this.pointInCircle(m,s.center,s.radius+4)||m.x<s.center.x?(y=s.center.x+s.radius+4,n.options.labels.align!==Qr?y<v.x?c.lineTo(y,f.y):c.lineTo(f.x+8,f.y):c.lineTo(y,f.y),c.lineTo(v.x,g.y)):(m.y=g.y,c.lineTo(m.x,m.y))):(m=ps(u,f,v,g=new qt(h.x2+e.padding,h.center().y)),v=new qt(g.x+4,g.y),(m=m||v).x=Math.max(m.x,v.x),this.pointInCircle(m,s.center,s.radius+4)||m.x>s.center.x?(y=s.center.x-s.radius-4,n.options.labels.align!==Qr?y>v.x?c.lineTo(y,f.y):c.lineTo(f.x-8,f.y):c.lineTo(y,f.y),c.lineTo(v.x,g.y)):(m.y=g.y,c.lineTo(m.x,m.y))),c.lineTo(g.x,g.y),this._connectorLines.push(c),this.visual.append(c)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),Lt(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,r=this.box.center(),i=this.visual.bbox();if(!i)return;var o=i.bottomRight(),n=Math.min((r.y-e.y1)/(r.y-i.origin.y),(e.y2-r.y)/(o.y-r.y),(r.x-e.x1)/(r.x-i.origin.x),(e.x2-r.x)/(o.x-r.x));n<1&&this.visual.transform(S.geometry.transform().scale(n,n,[r.x,r.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,r){return((t.parent.sector.middle()+270)%360-(r.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,r,i,o){var n=e.radius,s=e.center,a=s.x,p=s.y,l=Math.min(Math.abs(p-r),Math.abs(p-i));return l>n?t:a+Math.sqrt(n*n-l*l)*(o?1:-1)},e.prototype.pointInCircle=function(t,e,r){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(r,2)},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.animationDelay=function(t){return 70*t},e.prototype.stackRoot=function(){return this},e}(oe);function ps(t,e,r,i){var o,n=(i.x-r.x)*(t.y-r.y)-(i.y-r.y)*(t.x-r.x),s=(i.y-r.y)*(e.x-t.x)-(i.x-r.x)*(e.y-t.y);if(0!==s){var a=n/s;o=new qt(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return o}It(as,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),E(as.prototype,ss),as.prototype.isStackRoot=!0;var ls=as,cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],r=new ls(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e.prototype.appendChart=function(e,r){t.prototype.appendChart.call(this,e,r),gt(this.options.legend.items,e.legendItems)},e}(Ko),hs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowLabel=function(){var e=this.options.labels,r=this.label,i=this.sector.clone(),o=i.middle();if(r){var n=r.box.height();if(e.position===a){i.radius-=(i.radius-i.innerRadius)/2;var s=i.point(o);r.reflow(new $t(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return re.current.createRing(t,e)},e}(ns);It(hs,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:ti}}),E(hs.prototype,hi);var us=hs,fs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e,r){var i=E({},r.series,{index:r.index});if(this.evalSegmentOptions(i,t,r),this.createLegendItem(t,i,r),t&&!1!==r.visible){var o=new us(t,e,i);Object.assign(o,r),this.append(o),this.points.push(o)}},e.prototype.reflow=function(e){for(var r,i=this.options,o=e.clone(),n=Math.min(o.width(),o.height()),s=n/2,a=n-.85*n,p=i.series,l=p.length,c=Tt(i.padding,a),h=s-(c=c>s-5?s-5:c),u=0,f=0;f<l;f++){var d=p[f];0===f&&xt(d.holeSize)&&(r=d.holeSize,h-=d.holeSize),xt(d.size)?h-=d.size:u++,xt(d.margin)&&f!==l-1&&(h-=d.margin)}xt(r)||(h-=r=.75*((s-c)/(l+.75)));var v,y=r,g=0;this.seriesConfigs=[];for(var m=0;m<l;m++){var x=p[m];v=(y+=g)+Tt(x.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:v}),g=x.margin||0,y=v}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,r){return 50*t+600*(e+1)/(r+1)},e}(ls);It(fs,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var ds=fs,vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],r=new ds(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e}(cs),ys=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new Ii},e.prototype.render=function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},e.prototype.alignAxes=function(){var t=this.valueAxis,e=t.range(),r=t.options.reverse?e.max:e.min,i=t.getSlot(r),o=this.polarAxis.getSlot(0).center,n=t.box.translate(o.x-i.x1,o.y-i.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,r=this.valueAxisRangeTracker,i=r.query(),o=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===o.type?(t=Tr,e={min:.1,max:1}):(t=jr,e={min:0,max:1});var n=r.query(name)||i||e;n&&i&&(n.min=Math.min(n.min,i.min),n.max=Math.max(n.max,i.max));var s=new t(n.min,n.max,o,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,r=this.polarAxis,i=this.box,o=.15*Math.min(i.width(),i.height()),n=z(t.padding||{},o),s=i.clone().unpad(n),p=s.clone();p.y2=p.y1+Math.min(p.width(),p.height()),p.align(s,x,a);var l=p.clone().shrink(0,p.height()/2);r.reflow(p),e.reflow(l);var c=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:c})),this.axisBox=p,this.alignAxes(p)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Ko),gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var r=t.center.y-e.y1,i=qt.onCircle(t.center,t.startAngle,r);return new $t(i.x,i.y,i.x,i.y)},e}(so);It(gs,{clip:!1});var ms=gs,xs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}($n);xs.prototype.pointSlot=ms.prototype.pointSlot,It(xs,{clip:!1});var bs=xs,_s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){return this.parent.plotArea.polarAxis.box.center()},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),r=new Rr(!1),i=this.points();i.push(e),(t=this._strokeSegments=r.process(i)).pop()}return t},e}(Ei),ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),r=new S.geometry.Segment([e.x,e.y]);t.segments.unshift(r),t.segments.push(r)},e}(ji);function Os(t,e){return t.value.x-e.value.x}var Ss=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r){return"smooth"===(e.line||{}).style?new _s(t,e,r):new ws(t,e,r)},e.prototype.createMissingValue=function(t,e){var r;return oo(t.x)&&"interpolate"!==e&&(r={x:t.x,y:t.y},e===Zr&&(r.y=0)),r},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zr},e.prototype._hasMissingValuesGap=function(){for(var t=this.options.series,e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0},e.prototype.sortPoints=function(t){if(t.sort(Os),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var r=t[e];if(r)oo(r.value.y)||"gap"!==this.seriesMissingValues(r.series)||delete t[e]}return t},e}(bs),Ps=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Pr(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return E(t,{majorGridLines:{type:o},minorGridLines:{type:o}},this.options.yAxis)},e.prototype.createValueAxis=function(){t.prototype.createValueAxis.call(this),this.axisY=this.valueAxis},e.prototype.appendChart=function(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),Ko.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Ro(t,["polarLine"]),e),this.createScatterChart(Ro(t,["polarScatter"]),e),this.createAreaChart(Ro(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new bs(this,{series:t});this.appendChart(r,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var r=new ms(this,{series:t});this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Ss(this,{series:t});this.appendChart(r,e)}},e.prototype._dispatchEvent=function(t,e,r){var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.axisX.getValue(o),s=this.axisY.getValue(o);null!==n&&null!==s&&t.trigger(r,{element:Ot(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(ys);It(Ps,{xAxis:{},yAxis:{}}),E(Ps.prototype,Xo);var As=Ps;var Cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var r=t.center.y-e.y1,i=qt.onCircle(t.center,t.middle(),r);return new $t(i.x,i.y,i.x,i.y)},e.prototype.renderSegments=function(){if(t.prototype.renderSegments.call(this),this._segments&&this._segments.length>1)for(var e=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];e[i.seriesIx]=e[i.seriesIx]||[],e[i.seriesIx].push(i)}return e}(this._segments),r=0;r<e.length;r++){var i=e[r];if(i&&i.length>1){var o=i[0].linePoints[0],n=Pt(i),s=Pt(n.linePoints),a=0===o.categoryIx,p=s.categoryIx===s.categoriesCount-1;a&&p&&Pt(i).linePoints.push(o)}}},e.prototype.createSegment=function(t,e,r){var i=new("smooth"===e.style?_i:yi)(t,e,r),o=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==o||(i.options.closed=!0),i},e}(ki);It(Cs,{clip:!1,limitPoints:!1});var ks=Cs,js=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Ei),Ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(ji),Ts=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r,i){var o,n,s,a=this.options.isStacked,p=(e.line||{}).style;return a&&r>0&&i&&(n=i.linePoints.slice(0),o=i),"smooth"===p?(s=new js(t,e,r,o,n)).options.closed=!0:(t.push(t[0]),s=new Ms(t,e,r,o,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zr},e}(ks),Es=function(t){function e(e,r){t.call(this,e,null,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(us);It(Es,{overlay:{gradient:"none"},labels:{distance:10}});var Rs=Es,Is=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Fi:Ni}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.children,i=e.gap,o=e.spacing,n=r.length,s=n+i+o*(n-1),a=t.angle/s,p=t.startAngle+a*(i/2);this.forEach(r,(function(e){var r=t.clone();r.startAngle=p,r.angle=a,e.sector&&(r.radius=e.sector.radius),e.reflow(r),e.sector=r,p+=a+a*o}))},e}(oe);It(Is,{gap:1,spacing:0});var Bs=Is,Ls=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options.reverse,r=this.children,i=r.length,o=e?i-1:0,n=e?-1:1;this.box=new $t;for(var s=o;s>=0&&s<i;s+=n){var a=r[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(oe),Vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Rs},e.prototype.clusterType=function(){return Bs},e.prototype.stackType=function(){return Ls},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var r=t.clone(),i=t.center.y;return r.radius=i-e.y1,r.innerRadius=i-e.y2,r},e.prototype.reflowPoint=function(t,e){t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}(Xi);Vs.prototype.reflow=ci.prototype.reflow,It(Vs,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var zs=Vs,Ds=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Or(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createCategoryAxesLabels()},e.prototype.valueAxisOptions=function(t){return this._hasBarCharts&&E(t,{majorGridLines:{type:o},minorGridLines:{type:o}}),this._isStacked100&&E(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),E(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){wn.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){wn.prototype.createCategoryAxesLabels.call(this,this.panes)},e.prototype.filterSeries=function(t){return t},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(Ro(t,["radarArea"]),e),this.createLineChart(Ro(t,["radarLine"]),e),this.createBarChart(Ro(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},r=t[0];if(r){var i=this.filterVisibleSeries(t),o=r.stack;e.isStacked=o&&i.length>1,e.isStacked100=o&&"100%"===o.type&&i.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Ts(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new ks(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],i=this.chartOptions(t);i.gap=r.gap,i.spacing=r.spacing;var o=new zs(this,i);this.appendChart(o,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,r){var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.categoryAxis.getCategory(o),s=this.valueAxis.getValue(o);null!==n&&null!==s&&t.trigger(r,{element:Ot(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(ys);E(Ds.prototype,Xo,{appendChart:wn.prototype.appendChart,aggregateSeries:wn.prototype.aggregateSeries,seriesSourcePoints:wn.prototype.seriesSourcePoints}),It(Ds,{categoryAxis:{categories:[]},valueAxis:{}});var Ns=Ds,Fs=function(t){function e(e,r,i){t.call(this,r),this.value=e,this.options.index=i.index}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.points,r=this.children[0];this.box=new $t(e[0].x,e[0].y,e[1].x,e[2].y),r&&r.reflow(new $t(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,r=this,i=this.options;t.prototype.createVisual.call(this),(e=i.visual?i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:i,sender:this.getSender(),createVisual:function(){return r.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return S.drawing.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()},e.prototype.createHighlight=function(t){return S.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=S.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new qt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(oe);It(Fs,{color:g,border:{width:1}}),E(Fs.prototype,hi);var Us=Fs,Hs=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.points=[],this.labels=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this.options,e=this.plotArea.options.seriesColors;void 0===e&&(e=[]);var r=t.series[0],i=r.data;if(i)for(var o=To(r),n=o.total,s=o.points,a=0;a<s.length;a++){var p=s[a];if(p){var l=p.fields;M(r.color)||(r.color=l.color||e[a%e.length]),l=E({index:a,owner:this,series:r,dataItem:i[a],percentage:p.value/n},l,{visible:p.visible});var c=p.valueFields.value,h=this.createSegment(c,l),u=this.createLabel(c,l);h&&u&&h.append(u)}}},e.prototype.evalSegmentOptions=function(t,e,r){var i=r.series;ai(t,{value:e,series:i,dataItem:r.dataItem,index:r.index},{defaults:i._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var r=E({},e.series);if(this.evalSegmentOptions(r,t,e),this.createLegendItem(t,r,e),!1!==e.visible){var i=new Us(t,r,e);return Object.assign(i,e),this.append(i),this.points.push(i),i}},e.prototype.createLabel=function(t,e){var r=e.series,i=e.dataItem,o=E({},this.options.labels,r.labels),n=t;if(o.visible){var s=rt(o),a={dataItem:i,value:t,percentage:e.percentage,category:e.category,series:r};s?n=s(a):o.format&&(n=this.plotArea.chartService.format.auto(o.format,n)),o.color||(o.color=Ft(r.color),o.background||(o.background=r.color)),this.evalSegmentOptions(o,t,e);var p=new be(n,E({vAlign:o.position},o),a);return this.labels.push(p),p}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},r=0;r<t.length;r++){var i=t[r].options.align;if(i!==a){var o=t[r].box.width();i===h?e.left=Math.max(e.left,o):e.right=Math.max(e.right,o)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,r){for(var i=this.options,o=this.points,n=o.length,s=o[0],a=s,p=0;p<o.length;p++)o[p].percentage>a.percentage&&(a=o[p]);for(var l=s.percentage/a.percentage*e,c=(e-l)/2,h=0,u=0;u<n;u++){var f=o[u].percentage,d=o[u+1],v=d?d.percentage:f,y=o[u].points=[],g=i.dynamicHeight?r*f:r/n,m=void 0;m=At(m=f?(e-l*(v/f))/2:v?0:e/2,0,e),y.push(new S.geometry.Point(t.x1+c,t.y1+h)),y.push(new S.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new S.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new S.geometry.Point(t.x1+m,t.y1+g+h)),c=m,h+=g+i.segmentSpacing,l=At(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,r){for(var i=this.options,o=this.points,n=o.length,s=i.neckRatio<=1,a=s?i.neckRatio*e:e,p=s?0:(e-e/i.neckRatio)/2,l=((s?e:e-2*p)-a)/2,c=0,h=0;h<n;h++){var u=o[h].points=[],f=o[h].percentage,d=i.dynamicHeight?l*f:l/n,v=i.dynamicHeight?r*f:r/n;u.push(new S.geometry.Point(t.x1+p,t.y1+c)),u.push(new S.geometry.Point(t.x1+e-p,t.y1+c)),u.push(new S.geometry.Point(t.x1+e-p-d,t.y1+v+c)),u.push(new S.geometry.Point(t.x1+p+d,t.y1+v+c)),p+=d,c+=v+i.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,r=e.length;if(r){var i=this.options,o=t.clone().unpad(this.labelPadding()),n=o.height()-i.segmentSpacing*(r-1),s=o.width();i.dynamicSlope?this.dynamicSlopeReflow(o,s,n):this.constantSlopeReflow(o,s,n);for(var a=0;a<r;a++)e[a].reflow(t)}},e}(oe);It(Hs,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),E(Hs.prototype,ss);var Gs=Hs,Ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],r=new Gs(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(r)},e.prototype.appendChart=function(e,r){t.prototype.appendChart.call(this,e,r),gt(this.options.legend.items,e.legendItems)},e}(Ko),Ks=function(t,e){void 0===e&&(e=.05);var r=Object(S.parseColor)(t),i=1-e;return function(t){var e=r.toHSL(),o=100-e.l,n=i-t;return e.l+=Math.min(n*o,o),e.toCss()}},Xs=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,r=this.pointData(),i=rt(t),o=t.color;e=i?i(r):this.formatValue(t.format),o||(o=Ft(this.color)),this.label=new be(e,E({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Tt(t.zIndex,this.series.zIndex)},t,{color:o}),r),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;this.box=t,e&&e.reflow(this.markerBox()),this.note&&this.note.reflow(t),this.marker.reflow(this.markerBox())},e.prototype.markerBox=function(){var t=this.options.markers,e=t.border,r=this.box.toRect(),i="roundedRect"===Tt(t.type,"rect"),o=Tt(e.width,i?1:0),n=Math.round(o/2);if(t.size){var s=r.center();r.size.width=r.size.height=t.size,r.origin.x=Math.round(s.x-r.size.width/2),r.origin.y=Math.round(s.y-r.size.height/2)}return r.size.width-=o,r.size.height-=o,r.origin.y+=n+.5,r.origin.x+=n+.5,me(r)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,r=Tt(e.opacity,t.opacity);return{color:e.color||this.color,width:e.width,opacity:r,dashType:e.dashType}},e.prototype.createMarker=function(){var t=this.options,e=t.markers,r=new pe({type:Tt(e.type,"rect"),width:e.size,height:e.size,rotation:e.rotation,background:this.color,border:this.markerBorder(),borderRadius:e.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:Tt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=r,this.append(r)},e.prototype.createHighlight=function(t){var e=this.options,r=this.options.highlight.markers||this.options.markers,i=new pe({type:Tt(r.type,"rect"),width:r.size,height:r.size,rotation:r.rotation,background:r.color||this.color,border:this.markerBorder(),borderRadius:r.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:Tt(e.zIndex,this.series.zIndex)});i.reflow(this.markerBox());var o=i.getElement();return o.options.fill=t.fill,o.options.stroke=t.stroke,o},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.tooltipAnchor=function(){var t=this.box.center().x,e=this.box.y1-5;return{point:new qt(t,e),align:{horizontal:a,vertical:s}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(oe);E(Xs.prototype,hi),E(Xs.prototype,ui),Xs.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var Ys=Xs,qs=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.points=[],this.seriesOptions=[],this.valueRange={min:u,max:f},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this.options.series,e=0;e<t.length;e++)for(var r=t[e],i=0;i<r.data.length;i++){var o=this._bindPoint(r,e,i).valueFields;this.valueRange.min=Math.min(this.valueRange.min,o.value),this.valueRange.max=Math.max(this.valueRange.max,o.value)}},e.prototype.addValue=function(t,e){var r;t&&(r=this.createPoint(t,e))&&Object.assign(r,e),this.points.push(r)},e.prototype.evalPointOptions=function(t,e,r){var i=r.series,o=r.seriesIx,n={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle"]},s=this._evalSeries[o];xt(s)||(this._evalSeries[o]=s=ai(t,{},n,!0));var a=t;return s&&ai(a=E({},t),{value:e,series:i,dataItem:r.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return Ys},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return r},e.prototype.createPoint=function(t,e){var r=e.series,i=this.pointOptions(r,e.seriesIx),o=e.color||r.color;(i=this.evalPointOptions(i,t,e),M(r.color))?o=i.color:o=Ks(o)(t.value/this.valueRange.max);var n=new Ys(t,i);return n.color=o,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,i=this.plotArea,o=e?i.namedXAxes[e]:i.axisX,n=r?i.namedYAxes[r]:i.axisY;if(!o)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+r);return{xAxis:o,yAxis:n}},e.prototype.reflow=function(t){var e=this,r=this.points,i=!this.options.clip,o=0;this.traverseDataPoints((function(t,n){var s=r[o++],a=e.seriesAxes(n.series),p=a.xAxis,l=a.yAxis,c=p.categoryIndex(t.x),h=l.categoryIndex(t.y),u=p.getSlot(c,c,i),f=l.getSlot(h,h,i);if(s)if(u&&f){var d=e.pointSlot(u,f);s.reflow(d)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new $t(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=0;r<e.length;r++)for(var i=e[r],o=this.seriesAxes(i),n=o.xAxis,s=o.yAxis,a=n.currentRangeIndices(),p=s.currentRangeIndices(),l=0;l<i.data.length;l++){var c=this._bindPoint(i,r,l),h=c.valueFields,u=c.fields,f=n.totalIndex(h.x),d=s.totalIndex(h.y),v=a.min<=f&&f<=a.max,y=p.min<=d&&d<=p.max;v&&y&&t(h,E({pointIx:l,series:i,seriesIx:r,dataItem:i.data[l],owner:this},u))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y,r.value)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e},e}(oe);It(qs,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),E(qs.prototype,{_bindPoint:ci.prototype._bindPoint});var Zs=qs,$s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.bindCategories(),this.createAxes(t),this.createCharts(t),this.createAxisLabels()},e.prototype.bindCategories=function(){for(var t=this.srcSeries||this.series,e=0;e<t.length;e++){for(var r=t[e],i=r.data||[],o=this.seriesAxes(r),n=o.xAxis,s=o.yAxis,a=Xt(n.categories||[]),p=Xt(s.categories||[]),l=0;l<i.length;l++){var c=Gr.current.bindPoint(r,l).valueFields,h=c.x,u=c.y;a.has(h)||a.add(h),p.has(u)||p.add(u)}n.categories=a.values(),s.categories=p.values()}},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],o=e[i.options.name||"default"]||[];this.addToLegend(o);var n=this.filterVisibleSeries(o);n&&this.createHeatmapChart(Ro(n,["heatmap"]),i)}},e.prototype.createHeatmapChart=function(t,e){var r=new Zs(this,{series:t});this.appendChart(r,e)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,i=st([].concat(e.xAxis),(function(t){return t.name===r}))[0],o=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===o}))[0],s=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(n||{}).pane||s},e.prototype.seriesAxes=function(t){var e,r,i=this.options,o=[].concat(i.xAxis),n=t.xAxis;e=n?o.find((function(t){return t.name===n})):o[0];var s=[].concat(i.yAxis),a=t.yAxis;if(r=a?s.find((function(t){return t.name===a})):s[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!r)throw new Error("Unable to locate Y axis with name "+a);return{xAxis:e,yAxis:r}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,r){for(var i,o=t.name,n=e?this.namedYAxes:this.namedXAxes,s=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),a=s.categories?s.categories[0]:null,p=[s.min,s.max,a],c=this.series,h=0;h<c.length;h++){var u=c[h],f=u[e?"yAxis":"xAxis"];if(f===s.name||0===r&&!f){var d=Gr.current.bindPoint(u,0).valueFields;p.push(d[e?"y":"x"]);break}}for(var v=0;v<p.length;v++)if(p[v]instanceof Date){i=!0;break}var y=new(Eo(s.type,l)||!s.type&&i?ar:Qe)(s,this.chartService);if(y.axisIndex=r,o){if(n[o])throw new Error((e?"Y":"X")+" axis with name "+o+" is already defined");n[o]=y}return this.appendAxis(y),y.mapCategories(),y},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),i=[],o=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){ct(this.findPane(r[s].pane),t)&&i.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<o.length;a++){ct(this.findPane(o[a].pane),t)&&n.push(this.createXYAxis(o[a],!0,a))}this.axisX=this.axisX||i[0],this.axisY=this.axisY||n[0]},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?delete this.namedYAxes[r]:delete this.namedXAxes[r],e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype._dispatchEvent=function(t,e,r){for(var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l];jo(c.options.vertical?p:a,c.getCategory(o))}a.length>0&&p.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,x:Lo(a),y:Lo(p)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,i=this.groupAxes(this.panes),o=(r?i.y:i.x).indexOf(t);Qs(this.options,o,r,e),Qs(this.originalOptions,o,r,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Ko);function Qs(t,e,r,i){E([].concat(r?t.yAxis:t.xAxis)[e],i)}It($s,{xAxis:{},yAxis:{}}),E($s.prototype,Xo);var Js=$s,ta="color",ea="first",ra="max";Vn.current.register(wn,[$r,Qr,Jr,ei,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Vn.current.register(ts,["scatter","scatterLine","bubble"]),Vn.current.register(cs,[ti]),Vn.current.register(vs,["donut"]),Vn.current.register(Ws,["funnel"]),Vn.current.register(As,["polarArea","polarLine","polarScatter"]),Vn.current.register(Ns,["radarArea","radarColumn","radarLine"]),Vn.current.register(Js,["heatmap"]),Gr.current.register([$r,Qr,Jr,ei,"area","verticalArea"],[y],["category",ta,"noteText","errorLow","errorHigh"]),Gr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",ta,"noteText"]),Gr.current.register(["waterfall","horizontalWaterfall"],[y],["category",ta,"noteText","summary"]),Gr.current.register(["polarArea","polarLine","polarScatter"],[m,x],[ta]),Gr.current.register(["radarArea","radarColumn","radarLine"],[y],[ta]),Gr.current.register(["funnel"],[y],["category",ta,"visibleInLegend","visible"]),$o.current.register([$r,Qr,Jr,ei,"area","verticalArea","waterfall","horizontalWaterfall"],{value:ra,color:ea,noteText:ea,errorLow:"min",errorHigh:ra}),$o.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:ra,color:ea,noteText:ea}),$o.current.register(["radarArea","radarColumn","radarLine"],{value:ra,color:ea}),Gr.current.register(["scatter","scatterLine","bubble"],[m,x],[ta,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Gr.current.register(["bubble"],[m,x,"size"],[ta,"category","noteText"]),Gr.current.register(["heatmap"],[m,x,y],[ta,"noteText"]),Gr.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",ta,"downColor","noteText"]),$o.current.register(["candlestick","ohlc"],{open:ra,high:ra,low:"min",close:ra,color:ea,downColor:ea,noteText:ea}),Gr.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",ta,"noteText"]),$o.current.register(["boxPlot","verticalBoxPlot"],{lower:ra,q1:ra,median:ra,q3:ra,upper:ra,mean:ra,outliers:ea,color:ea,noteText:ea}),Gr.current.register(["bullet","verticalBullet"],["current","target"],["category",ta,"visibleInLegend","noteText"]),$o.current.register(["bullet","verticalBullet"],{current:ra,target:ra,color:ea,noteText:ea}),Gr.current.register([ti,"donut"],[y],["category",ta,"explode","visibleInLegend","visible"]);var ia=["category",y,m,x],oa=function(t){function e(e,r,i,o){var n=this;void 0===o&&(o={}),t.call(this),this.observers=[],this.addObserver(o.observer),this.chartService=new Z(this,o),this.chartService.theme=i,this._initElement(e);var s=E({},this.options,r);this._originalOptions=E({},s),this._theme=i,this._initTheme(s,i),this._initHandlers(),this._initSurface(),this.bindCategories(),Rt.preloadFonts(r,(function(){n.fontLoaded=!0,n._destroyed||(n.trigger("init"),n._redraw(),n._attachEvents())}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t},e.prototype._setElementClass=function(t){_(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var r=[],i=t.series||[],o=0;o<i.length;o++)r.push(Object.assign({},i[o]));t.series=r,function(t){for(var e=ia,r=0;r<e.length;r++){var i=e[r]+"Axes";t[i]&&(t[e[r]+"Axis"]=t[i],delete t[i])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=E({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}},e.prototype.resize=function(t){var e=this.getSize(),r=this._size,i=e.width>0||e.height>0;t||i&&(!r||e.width!==r.width||e.height!==r.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):i&&this._selections&&Lt(this._selections,(function(t){return!t.visible}))&&(this._destroySelections(),this._setupSelection())},e.prototype._resize=function(){this._noTransitionsRedraw()},e.prototype.redraw=function(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){var e=this._model._plotArea,r=e.findPane(t);e.redraw(r)}else this._redraw()},e.prototype.getAxis=function(t){return Br(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,r=0;r<e.length;r++)if(e[r].options.name===t)return new Vr(e[r])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Vr(e[t])},e.prototype.plotArea=function(){return new zr(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var r,i,o,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];M(e)?r=n.filterPoints(e):(R(e)?(i=e.series,o=e.category):i=o=e,r="donut"===s.type?na(n.pointsBySeriesName(i),o):s.type===ti||"funnel"===s.type?na((n.charts[0]||{}).points,o):n.pointsBySeriesName(i));r&&this.togglePointsHighlight(t,r)},e.prototype.togglePointsHighlight=function(t,e){for(var r=this._highlight,i=0;i<e.length;i++)r.togglePointHighlight(e[i],t)},e.prototype.showTooltip=function(t){var e,r,i=this._sharedTooltip(),o=this._tooltip,n=this._plotArea;if(M(t)?(e=n.findPoint(t))&&i&&(r=e.categoryIx):i&&xt(t)&&(r=n.categoryAxis.categoryIndex(t)),i){if(r>=0){var s=this._plotArea.pointsByCategoryIndex(r);o.showAt(s)}}else e&&o.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),r=this.options.chartArea||{};r.width&&wt(e,{width:r.width}),r.height&&wt(e,{height:r.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=S.drawing.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},e.prototype._surfaceWrap=function(){return this.element},e.prototype._redraw=function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.setup()})),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.play()})),this._tooltip=this._createTooltip(),this._highlight=new Sn,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),ca(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var r=this.options,i=E({},t.options,{chartArea:{width:t.width,height:t.height}});la(this._originalOptions,i),this.options=E({},this._originalOptions,i),this._initTheme(this.options,this._theme),this.bindCategories();var o=this._getModel();o.renderVisual(),ca(o._plotArea.panes),e=o.visual,this.options=r}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof wn&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new kn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Mn(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Tn(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,r=(e||{}).selection,i=(e||{}).mousewheel,o=!(t||!1!==e&&!1!==r||this.requiresHandlers(["dragStart","drag","dragEnd"])),n=(!1===e||!1===i)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),s=this.element;this._dragZoomEnabled&&o&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||o&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!o,!n)},e.prototype._toggleDomEvents=function(t,e){var r=this.domEvents;r&&(r.toggleDrag&&r.toggleDrag(t),r.toggleZoom&&r.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new Un(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Gn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var r,i,o,n=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||i.color,o=E({},n,n[r],i,i[r],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete o[r],o}for(var a=0;a<ia.length;a++)r=ia[a]+"Axis",i=t.axisDefaults||{},o=(o=[].concat(t[r])).map(s),t[r]=o.length>1?o:o[0]}(t,e),function(t,e){var r=t.series,i=r.length,o=t.seriesDefaults,n=E({},t.seriesDefaults),s=e?E({},e.seriesDefaults):{},a=E({},s);sa(n),sa(a);for(var p=0;p<i;p++){var l=r[p].type||t.seriesDefaults.type,c=E({data:[]},a,s[l],{tooltip:t.tooltip},n,o[l]);r[p]._defaults=c,r[p]=E({},c,r[p]),r[p].data=r[p].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,r=t.seriesColors||[],i=0;i<e.length;i++){var o=e[i],n=r[i%r.length],s=o._defaults;o.color=o.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),r=new ue(this._modelOptions());return r.chart=this,r._plotArea=e,we.buildTitle(t.title,r),t.legend&&t.legend.visible&&r.append(new Bn(e.options.legend,this.chartService)),r.append(e),r.reflow(),r},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return E({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return Vn.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],r=0;r<t.length;r++){var i=t[r],o=i.options;if(i instanceof Qe&&o.select&&!o.vertical){var n=i.range(),s=new Fn(this,i,E({min:n.min,max:n.max},o.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Object(S.throttle)(this._mousemove.bind(this),20)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,r=0;r<e.length;r++)if(e[r].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var r=this.observers,i=!1,o=0;o<r.length;o++)r[o].trigger(t,e)&&(i=!0);return i},e.prototype._attachEvents=function(){var t,e,r=this.element;this._touchAction=r.style.touchAction,mt(r,((t={}).contextmenu=this._clickHandler,t[ii]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&mt(r,((e={}).mousemove=this._mousemove,e)),this.domEvents=Q.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger("zoomEnd",{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var r=this._gestureDistance,i=-t.distance/r+1;if(Math.abs(i)>=.1){i=Math.round(10*i),this._gestureDistance=t.distance;var o={delta:i,axisRanges:aa(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",o))this._zooming||(this._zooming=!0),(o.axisRanges=e.updateRanges(i))&&!this.trigger("zoom",o)&&e.zoom()}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart","drag","dragEnd"])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:aa(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,r=this._pannable;if(!this._stopChartHandlers(t)){if(r){var i=r.move(t);i&&!this.trigger("drag",{axisRanges:i,originalEvent:t})&&r.pan()}else if(e){for(var o={},n=e.axes,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var p=a.options.vertical?t.y:t.x,l=p.startLocation-p.location;0!==l&&(o[a.options.name]=a.translateRange(l))}}e.axisRanges=o,this.trigger("drag",{axisRanges:o,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger("dragEnd",{axisRanges:aa(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,"dragEnd"),this._zoomSelection){var r=this._zoomSelection.end(t);r&&!this.trigger("zoom",{axisRanges:r,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger("zoomEnd",{axisRanges:r,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var r=this._eventCoordinates(t),i=this._plotArea.paneByPoint(r);if(i)for(var o=0;o<e.length;o++)if(e[o].onPane(i))return!0},e.prototype._mousewheel=function(t){var e=this,r=vt(t),i=this._mousewheelZoom,o=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(o))if(i){var n={delta:r,axisRanges:aa(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=i.updateRanges(r),n.axisRanges&&!this.trigger("zoom",n)&&i.zoom(),this._mwTimeout=setTimeout((function(){e.trigger("zoomEnd",n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(!s)this._startNavigation(t,o,"zoomStart")||(s=this._navState);if(s){var a=s.totalDelta||r;s.totalDelta=a+r;for(var p=this._navState.axes,l={},c=0;c<p.length;c++){var h=p[c],u=h.options.name;u&&(l[u]=h.scaleRange(-a))}this.trigger("zoom",{delta:r,axisRanges:l,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,r){var i=this._model._plotArea,o=i.findPointPane(e),n=i.axes.slice(0);if(o){var s=aa(n);this.trigger(r,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:o,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var r=this.surface.eventTarget(t);if(r)return this._drawingChartElement(r,t,e)},e.prototype._drawingChartElement=function(t,e,r){for(var i,o=t;o&&!i;)i=o.chartElement,o=o.parent;if(i)return i.aliasFor&&(i=i.aliasFor(e,this._eventCoordinates(e))),r&&(i=i.closest(r))&&i.aliasFor&&(i=i.aliasFor()),i},e.prototype._eventCoordinates=function(t){var e=St(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=V(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,r=t.paddingTop;this._padding={top:r,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),r=_t(this.element);return{left:jt(t.x+e.left+r.left),top:jt(t.y+e.top+r.top)}},e.prototype._toModelCoordinates=function(t,e){var r=this.element,i=_t(r),o=this._elementPadding(),n=Nt(r).invert(),s=new S.geometry.Point(t-i.left-o.left,e-i.top-o.top).transform(n);return new qt(s.x,s.y)},e.prototype._tap=function(t){var e=this,r=this.surface.eventTarget(t),i=this._drawingChartElement(r,t),o=this._sharedTooltip();this._startHover(r,t)||o||this._unsetActivePoint(),o&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(i,t),this.handlingTap=!0,setTimeout((function(){e.handlingTap=!1}),0)},e.prototype._click=function(t){var e=this._getChartElement(t);this._propagateClick(e,t)},e.prototype._propagateClick=function(t,e){for(var r=t;r;)r.click&&r.click(this,e),r=r.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var r=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof Ko)})),i=this._activePoint,o=this._plotArea.series.length>1,n=this._hasInactiveOpacity();return this._updateHoveredPoint(r,e),r&&i!==r&&r.hover?(this._activePoint=r,this._sharedTooltip()||r.hover(this,e)||(this._displayTooltip(r),n?this._displayInactiveOpacity(r,o):this._highlight.show(r))):!r&&n&&(o&&this._activeChartInstance&&(this._updateSeriesOpacity(r,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),r},e.prototype._displayTooltip=function(t){E({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,r){var i=this._activeChartInstance=this._chartInstanceFromPoint(t);if(i)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(i.children,null,!0),this._applySeriesOpacity(i.children,t.series),this._highlight.show(r||t);else{var o;if(!i.supportsPointInactiveOpacity())return void this._highlight.show(t);(o=this._getInactivePoints(t,i))&&o.length&&this._highlight.show(o,1-this._getInactiveOpacityForSeries(t.series))}},e.prototype._getInactivePoints=function(t,e){return this._getAllPointsOfType(e,t.constructor).filter((function(e){return e!==t}))},e.prototype._getAllPointsOfType=function(t,e){for(var r=[],i=0;i<t.children.length;i++){var o=t.children[i];o.constructor===e?r.push(o):o.children&&o.children.length&&(r=r.concat(this._getAllPointsOfType(o,e)))}return r},e.prototype._updateHoveredPoint=function(t,e){var r=this._hoveredPoint;r&&r!==t&&(r.out(this,e),this._hoveredPoint=null),t&&r!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateSeriesOpacity=function(t,e){for(var r=this._plotArea,i=r.series.length,o=0;o<i;o++){var n=r.series[o],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,r,i){for(var o=0;o<t.length;o++){var n=t[o],s=n.series||i;if(s&&n.visual){var a=i?i.opacity:n.series.opacity;(s!==e||r)&&n.visual.opacity(r?1:a)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,r,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._hasInactiveOpacity=function(){var t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter((function(t){return void 0!==t.highlight.inactiveOpacity})).length>0;return t||e},e.prototype._getInactiveOpacityForSeries=function(t){var e=this.options.seriesDefaults.highlight.inactiveOpacity;return t.highlight.inactiveOpacity||e||t.opacity||1},e.prototype._getDefaultOpacityForSeries=function(t){return t.defaultOpacity||t.opacity||1},e.prototype._mouseover=function(t){var e,r=this._startHover(t.element,t.originalEvent);r&&r.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,r=this.options,i=this._tooltip,o=this._highlight,n=this._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var a=n.parent.getNearestPoint(s.x,s.y,n.seriesIx);if(a&&a!==n)if(this._activePoint=a,!a.hover(this,t))E({},r.tooltip,a.options.tooltip).visible&&i.show(a),o.show(a)}}else Mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),r=this._plotArea;if(this._trackCrosshairs(e),r.hover){var i=r.backgroundContainsPoint(e);i?(r.hovered=!0,this._plotArea.hover(this,t)):r.hovered&&!i&&(this.trigger("plotAreaLeave"),r.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,r=0;r<e.length;r++){var i=e[r];i.box.containsPoint(t)?i.showAt(t):i.hide()}},e.prototype._trackSharedTooltip=function(t,e,r){if(!this._suppressHover){var i=this.options.tooltip,o=this._plotArea,n=this._plotArea.categoryAxis,s=this._tooltip,a=this._highlight;if(o.backgroundContainsPoint(t)){var p=n.pointCategoryIndex(t);if(p!==this._tooltipCategoryIx||!this._sharedHighlight&&r){var l=o.pointsByCategoryIndex(p),c=l.map((function(t){return t.eventArgs(e)})),h=c[0]||{};h.categoryPoints=c,l.length>0&&!this.trigger("seriesHover",h)?(i.visible&&s.showAt(l,t),a.show(l),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=p}else r&&this._sharedHighlight&&(a.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(a.hide(),s.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}},e.prototype.hideElements=function(t){var e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)},e.prototype._unsetActivePoint=function(t){var e=this._tooltip,r=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,r&&r.hide()},e.prototype._deferRedraw=function(){this._redraw()},e.prototype._clearRedrawTimeout=function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},e.prototype.bindCategories=function(){for(var t=this.options,e=[].concat(t.categoryAxis),r=0;r<e.length;r++){var i=e[r];!1!==i.autoBind&&this.bindCategoryAxisFromSeries(i,r)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var r,i=this.options.series,o=i.length,n=new lt,s=[],a=!1,p=0;p<o;p++){var l=i[p],c=l.categoryAxis===t.name||!l.categoryAxis&&0===e,h=l.data,u=h.length,f=l.categoryField&&c;if(a=f||a,f&&u>0)for(var d=(r=Bo(t,Ur(l.categoryField,h[0])))?Io:Ur,v=0;v<u;v++){var y=h[v],g=d(l.categoryField,y,this.chartService.intl);!r&&n.get(g)||(s.push([g,y]),r||n.set(g,!0))}}if(s.length>0){r&&(s=function(t,e){void 0===e&&(e=Fe);for(var r=function(t,e){void 0===e&&(e=Fe);for(var r=1,i=t.length;r<i;r++)if(e(t[r],t[r-1])<0){t.sort(e);break}return t}(t,e),i=r.length,o=i>0?[r[0]]:[],n=1;n<i;n++)0!==e(r[n],Pt(o))&&o.push(r[n]);return o}(s,(function(t,e){return Fe(t[0],e[0])})));var m=function(t){for(var e=t.length,r=[],i=0;i<e;i++)for(var o=t[i],n=o.length,s=0;s<n;s++)r[s]=r[s]||[],r[s].push(o[s]);return r}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Gr.current.valueFields(t),r=!0,i=0;i<e.length;i++){var o=e[i];if(o===y?o="field":o+="Field",!xt(t[o])){r=!1;break}}return r},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;!1!==e.transitions&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var r,i=this._plotArea,o=this._highlight,n=(i.srcSeries||i.series)[t];if(r=ct(n.type,[ti,"donut","funnel"])?i.findPoint((function(r){return r.series.index===t&&r.index===e})):i.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&r){var s=i.series.length>1,a=r.length?r[0]:r;this._displayInactiveOpacity(a,s,r)}else o.show(r)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;Mt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&mt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){la(this._originalOptions,t),this._originalOptions=E(this._originalOptions,t),this.options=E({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},e.prototype.setOptions=function(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},e.prototype.setDirection=function(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()},e.prototype.setIntlService=function(t){this.chartService.intl=t},e.prototype.noTransitionsRedraw=function(){this._noTransitionsRedraw()},e.prototype.destroy=function(){var t,e;this._destroyed=!0,Mt(this.element,((t={}).contextmenu=this._clickHandler,t[ii]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(S.Class);function na(t,e){if(t)for(var r=0;r<t.length;r++)if(t[r].category===e)return[t[r]]}function sa(t){delete t.bar,delete t.column,delete t.rangeColumn,delete t.line,delete t.verticalLine,delete t.pie,delete t.donut,delete t.area,delete t.verticalArea,delete t.scatter,delete t.scatterLine,delete t.bubble,delete t.candlestick,delete t.ohlc,delete t.boxPlot,delete t.bullet,delete t.verticalBullet,delete t.polarArea,delete t.polarLine,delete t.radarArea,delete t.radarLine,delete t.waterfall}function aa(t){for(var e={},r=0;r<t.length;r++){var i=t[r],o=i.options.name;o&&(e[o]=i.range())}return e}var pa=["data","categories"];function la(t,e){for(var r in e)if(!ct(r,pa)&&e.hasOwnProperty(r)){var i=e[r],o=t[r];if(xt(o)){var n=null===i;n||!xt(i)?(delete t[r],n&&delete e[r]):o&&R(i)&&R(o)&&la(o,i)}}}function ca(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}It(oa,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:Qr,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var ha=oa,ua=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var r=this.plotArea.categoryAxis.options.vertical,i=r?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:r?new qt(this.plotArea.box.x2,e.center().y):new qt(e.center().x,-2),align:i}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Gn),fa=[$r,"bullet"];function da(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];e[r]=i.style.display,i.style.display="none"}return e}function va(t,e){for(var r=0;r<t.length;r++)t[r].style.display=e[r]}function ya(t){return C(t)?[t]:t}var ga=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){_(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(wt(e).width)},e.prototype._resize=function(){var e=this.element,r=da(e.childNodes);this._initialWidth=Math.floor(wt(e).width),va(e.childNodes,r),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),r=da(e.childNodes),i=document.createElement("span");i.innerHTML="&nbsp;",e.appendChild(i);var o=E({width:this._autoWidth,height:wt(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return wt(e,{width:o.width,height:o.height}),e.removeChild(i),va(e.childNodes,r),this.surface&&this.surface.resize(),o},e.prototype._surfaceWrap=function(){if(!this.stage){var t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage},e.prototype._createPlotArea=function(e){var r=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(r),r},e.prototype._calculateWidth=function(t){for(var e=this.options,r=z(e.chartArea.margin),i=t.charts,o=this._surfaceWrap(),n=0,s=0;s<i.length;s++){var a=i[s],p=(a.options.series||[])[0];if(p){if(p.type===$r)return 150;if("bullet"===p.type)return 150;if(p.type===ti)return wt(o).height;var l=a.categoryAxis;if(l){var c=l.categoriesCount()*(!a.options.isStacked&&ct(p.type,[Qr,"verticalBullet"])?a.seriesOptions.length:1);n=Math.max(n,c)}}}var h=n*e.pointWidth;return h>0&&(h+=r.left+r.right),h},e.prototype._createSharedTooltip=function(t){return new ua(this._plotArea,t)},e.normalizeOptions=function(t){var e=ya(t);return(e=b(e)?{seriesDefaults:{data:e}}:E({},e)).series||(e.series=[{data:ya(e.data)}]),E(e,{seriesDefaults:{type:e.type}}),(ct(e.series[0].type,fa)||ct(e.seriesDefaults.type,fa))&&(e=E({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(ha);It(ga,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var ma=ga,xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(V(this.element,"opacity").opacity)},e.prototype.step=function(t){V(this.element,{opacity:String(ht(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),V(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),V(this.element,{opacity:String(this._initialOpacity)})},e}(S.drawing.Animation);function ba(t,e){var r=document.createElement("div");return r.className=t,e&&(r.style.cssText=e),r}var _a=function(t){function e(e,r,i){t.call(this),this.options=E({},this.options,i),this.container=e,this.chartService=r;var o=V(e,["paddingLeft","paddingTop"]);this.chartPadding={top:o.paddingTop,left:o.paddingLeft},this.createElements(),e.appendChild(this.element)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElements=function(){var t=this.element=ba("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=ba("k-tooltip k-chart-tooltip"),r=this.scroll=ba("k-scroll");e.innerHTML="&nbsp;",t.appendChild(e),t.appendChild(r)},e.prototype.show=function(t,e,r){var i=this.element,o=this.options,n=this.scroll,s=this.tooltip,a=Le(He(t)+He(e-t)/2),p=.4*r.width(),l=r.center().x-p,c=(r.center().x-l)/(o.max-o.min),h=a-o.min,u=this.chartService.intl.format(o.format,t,e),f=rt(o);this.clearHideTimeout(),this._visible||(V(i,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(u=f({from:t,to:e})),s.innerHTML=u,V(s,{left:r.center().x-s.offsetWidth/2,top:r.y1});var d=V(s,["marginTop","borderTopWidth","height"]);V(n,{width:p,left:l+h*c,top:r.y1+d.marginTop+d.borderTopWidth+d.height/2}),V(i,{visibility:"visible"})},e.prototype.clearHideTimeout=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},e.prototype.hide=function(){var t=this;this.clearHideTimeout(),this._hideTimeout=setTimeout((function(){t._visible=!1,t._hideAnimation=new xa(t.element),t._hideAnimation.setup(),t._hideAnimation.play()}),this.options.hideDelay)},e.prototype.destroy=function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll},e}(S.Class);It(_a,{format:"{0:d} - {1:d}",hideDelay:500});var wa=_a,Oa="_navigator",Sa=Oa;function Pa(){}var Aa=function(t){function e(e){var r;t.call(this),this.chart=e;var i=this.options=E({},this.options,e.options.navigator),o=i.select;o&&(o.from=this.parseDate(o.from),o.to=this.parseDate(o.to)),xt(i.hint.visible)||(i.hint.visible=i.visible),this.chartObserver=new ft(this,((r={}).drag="_drag",r.dragEnd="_dragEnd",r.zoom="_zoom",r.zoomEnd="_zoomEnd",r)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parseDate=function(t){return Ye(this.chart.chartService.intl,t)},e.prototype.clean=function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},e.prototype.destroy=function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},e.prototype.redraw=function(){this._redrawSelf(),this.initSelection()},e.prototype.initSelection=function(){var t,e=this.chart,r=this.options,i=this.mainAxis(),o=i.roundedRange(),n=o.min,s=o.max,a=r.select,p=a.from,l=a.to,c=a.mousewheel,h=(t=i,Pa.prototype=t,new Pa);0!==i.categoriesCount()&&(this.clean(),h.box=i.box,this.selection=new Fn(e,h,{min:n,max:s,from:p||n,to:l||s,mousewheel:Tt(c,{zoom:"left"}),visible:r.visible},new ft(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),r.hint.visible&&(this.hint=new wa(e.element,e.chartService,{min:n,max:s,template:rt(r.hint),format:r.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[Sa].roundedRange(),e=t.min,r=t.max,i=this.options.select||{},o=i.from||e;o<e&&(o=e);var n=i.to||r;n>r&&(n=r),this.options.select=E({},i,{from:o,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(Pt(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,r=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(r)},e.prototype._drag=function(t){var e,r=this.chart,i=this.selection,o=r._eventCoordinates(t.originalEvent),n=this.mainAxis(),s=n.roundedRange(),a=n.pane.box.containsPoint(o),p=r._plotArea.categoryAxis,l=t.axisRanges[p.options.name],c=this.options.select;if(l&&!a&&i){e=c.from&&c.to?He(c.to)-He(c.from):He(i.options.to)-He(i.options.from);var h=Le(At(He(l.min),s.min,He(s.max)-e)),u=Le(At(He(h)+e,He(s.min)+e,s.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),i.set(h,u),this.showHint(h,u)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this.selection.options,e=t.from,r=t.to,i=this.options.select;i.from=e,i.to=r},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,r=t.from,i=t.to,o=0;o<e.length;o++){var n=e[o];n.pane!==Oa&&(n.min=r,n.max=i)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var r=this.mainAxis(),i={from:e.from,to:e.to};if("category"!==r.options.type){var o=new ar(E({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;i.from=ze(o.min,-o.baseUnitStep,o.baseUnit),i.to=ze(o.max,o.baseUnitStep,o.baseUnit)}this.chart.trigger("navigatorFilter",i)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,r=this.selection,i=this.options,o=i.select,n=i.liveDrag,s=this.mainAxis(),a=t.delta;if(r){var p=s.categoryIndex(r.options.from),l=s.categoryIndex(r.options.to);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),l-p>1?(r.expand(a),this.readSelection()):(e.options.min=o.from,o.from=e.scaleRange(-t.delta).min),n&&(this.filterAxes(),this.redrawSlaves()),r.set(o.from,o.to),this.showHint(this.options.select.from,this.options.select.to)}},e.prototype._zoomEnd=function(t){this._dragEnd(t)},e.prototype.showHint=function(t,e){var r=this.chart._plotArea;this.hint&&this.hint.show(t,e,r.backgroundBox())},e.prototype._selectStart=function(t){return this.chart._selectStart(t)},e.prototype._select=function(t){return this.showHint(t.from,t.to),this.chart._select(t)},e.prototype._selectEnd=function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},e.prototype.mainAxis=function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes[Sa]},e.prototype.select=function(t,e){var r=this.options.select;return t&&e&&(r.from=this.parseDate(t),r.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:r.from,to:r.to}},e.setup=function(t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),!t.__navi){t.__navi=!0;var i=E({},r.navigator,t.navigator),o=t.panes=[].concat(t.panes),n=E({},i.pane,{name:Oa});i.visible||(n.visible=!1,n.height=.1),o.push(n),e.attachAxes(t,i),e.attachSeries(t,i,r)}},e.attachAxes=function(t,e){var r=e.series||[],i=t.categoryAxis=[].concat(t.categoryAxis),o=t.valueAxis=[].concat(t.valueAxis),n=0===Ro(r,ri).length,s=E({type:"date",pane:Oa,roundToBaseUnit:!n,justified:n,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),a=e.categoryAxis;i.push(E({},s,{maxDateGroups:200},a,{name:Sa,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),E({},s,a,{name:Sa+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),E({},s,a,{name:Sa+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),o.push(E({name:Sa,pane:Oa,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,r){for(var i=t.series=t.series||[],o=[].concat(e.series||[]),n=r.seriesColors,s=e.seriesDefaults,a=0;a<o.length;a++)i.push(E({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,o[a],{axis:Sa,categoryAxis:Sa,autoBind:e.autoBindElements}))},e}(S.Class),Ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,r){var i=wt(this.element).width||600,o=r,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(i/28)}}};o&&(o=E({},o,n)),Aa.setup(e,o),t.prototype.applyDefaults.call(this,e,o)},e.prototype._setElementClass=function(t){_(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=st([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,r=this._seriesCount!==e;return this._seriesCount=e,r},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new Aa(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var r=this._plotArea.paneByPoint(e);r&&r.options.name===Oa?this._unsetActivePoint():t.prototype._trackSharedTooltip.call(this,e)},e.prototype.bindCategories=function(){t.prototype.bindCategories.call(this),this.copyNavigatorCategories()},e.prototype.copyNavigatorCategories=function(){for(var t,e=[].concat(this.options.categoryAxis),r=0;r<e.length;r++){var i=e[r];i.name===Sa?t=i.categories:t&&i.pane===Oa&&(i.categories=t)}},e.prototype.destroyNavigator=function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},e.prototype.destroy=function(){this.destroyNavigator(),t.prototype.destroy.call(this)},e.prototype._stopChartHandlers=function(e){var r=this._eventCoordinates(e),i=this._plotArea.paneByPoint(r);return t.prototype._stopChartHandlers.call(this,e)||i&&i.options.name===Oa},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(ha);It(Ca,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var ka=Ca,ja=Math.PI/180;function Ma(t,e){var r=t.getOrigin(),i=t.getSize(),o=z(e);return t.setOrigin([r.x-o.left,r.y-o.top]),t.setSize([i.width+(o.left+o.right),i.height+(o.top+o.bottom)]),t}var Ta=S.drawing.Group,Ea=S.drawing.Path,Ra=S.drawing.Text;function Ia(t,e){var r=t.box,i=t.children[0].box,o=e.border||{},n=e.background||"",s=Ea.fromRect(new S.geometry.Rect([r.x1,r.y1],[r.width(),r.height()]),{stroke:{}}),a=new Ra(t.text,new S.geometry.Point(i.x1,i.y1),{font:e.font,fill:{color:e.color}}),p=Ma(a.bbox().clone(),e.padding),l=Ea.fromRect(p,{stroke:{color:o.width?o.color:"",width:o.width,opacity:o.opacity,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new Ta;return c.append(s),c.append(l),c.append(a),c}function Ba(t,e,r){var i=xt(t.from)?t.from:f,o=xt(t.to)?t.to:u;return t.from=Math.max(Math.min(o,i),e),t.to=Math.min(Math.max(o,i),r),t}function La(t,e){var r=z(e);return r.left=-r.left,r.top=-r.top,r.right=-r.right,r.bottom=-r.bottom,Ma(t,r)}var Va=S.drawing.Path,za=S.drawing.Surface,Da=function(t){function e(e,r,i,o){void 0===o&&(o={}),t.call(this),this.element=e,this.theme=i,this.contextService=new Z(this,o),this._originalOptions=E({},this.options,r),this.options=E({},this._originalOptions),this._initTheme(i),this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},e.prototype.value=function(t){var e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)},e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function(t){var e=this.pointers,r=[];if(0===arguments.length){for(var i=0;i<e.length;i++)r.push(e[i].value());return r}if(b(t))for(var o=0;o<t.length;o++)C(t[o])&&e[o].value(t[o]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),r=[].concat(t),i=0;i<r.length;i++)e[i].value=r[i]},e.prototype.resize=function(){this.noTransitionsRedraw()},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)},e.prototype.redraw=function(){var t=this._surfaceSize(),e=new S.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var r=La(e.bbox(),this._gaugeAreaMargin);this.reflow(r)},e.prototype.setOptions=function(t,e){this._originalOptions=E(this._originalOptions,t),this.options=E({},this._originalOptions),this._initTheme(e),this.redraw()},e.prototype.setDirection=function(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},e.prototype.setIntlService=function(t){this.contextService.intl=t},e.prototype._initTheme=function(t){var e=t||this.theme||{};this.theme=e,this.options=E({},e,this.options);var r=this.options,i=r.pointer;if(b(i)){for(var o=[],n=0;n<i.length;n++)o.push(E({},e.pointer,i[n]));r.pointer=o}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),r=t.border||{},i=new S.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,r.width>0&&(i=La(i,r.width)),Va.fromRect(i,{stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,r=this._surfaceElement(),i=this._surfaceSize();wt(r,i),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=za.create(r,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&E(e,t.gaugeArea),e},e.prototype._surfaceElement=function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},e.prototype.getSize=function(){return this._getSize()},e.prototype._getSize=function(){var t=this.element,e=this._defaultSize(),r=t.offsetWidth,i=t.offsetHeight;return r||(r=e.width),i||(i=e.height),{width:r,height:i}},e.prototype._defaultSize=function(){return{width:200,height:200}},e.prototype._toggleTransitions=function(t){this.options.transitions=t;for(var e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t},e}(S.Class);It(Da,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Na=Da,Fa=S.drawing.Path,Ua=S.drawing.Group,Ha=S.geometry.Point;function Ga(t,e){var r,i,o=t.position,n=t.tickX,s=t.tickY;return t.vertical?(r=new Ha(n,o),i=new Ha(n+e.size,o)):(r=new Ha(o,s),i=new Ha(o,s+e.size)),new Fa({stroke:{color:e.color,width:e.width}}).moveTo(r).lineTo(i)}function Wa(t,e,r,i){var o=e.length;if(i.visible)for(var n=r.mirror,s=r.lineBox,a=i.skip;a<o;a+=i.step)a%i.skipUnit!=0&&(r.tickX=n?s.x2:s.x2-i.size,r.tickY=n?s.y1-i.size:s.y1,r.position=e[a],t.append(Ga(r,i)))}var Ka=function(t){function e(e,r){var i=e||{};!xt(i.reverse)&&!1===i.vertical&&(r||{}).rtl&&(i=Object.assign({},i,{reverse:!0})),t.call(this,0,1,i,r),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=E({},this.options,t);return(e=E({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||Yt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Ua,e=this.renderLabels(),r=this.renderLine(),i=this.renderTicks(),o=this.renderRanges();return t.append(r,e,i,o),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,r=t.max,i=t.vertical,o=t.labels.mirror,n=t.ranges||[],s=new Ua,a=n.length,p=t.rangeSize||t.minorTicks.size/2,l=0;l<a;l++){var c=Ba(n[l],e,r),h=this.getSlot(c.from,c.to),u=i?this.lineBox():h,f=i?h:this.lineBox();i?u.x1-=p*(o?-1:1):f.y2+=p*(o?-1:1),s.append(Fa.fromRect(new S.geometry.Rect([u.x1,f.y1],[u.x2-u.x1,f.y2-f.y1]),{fill:{color:c.color,opacity:c.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,r=new Ua,i=0;i<t.length;i++)r.append(Ia(t[i],e.labels));return r},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),r=new Ua;if(t.width>0&&t.visible){var i=new Fa({stroke:{color:t.color,dashType:t.dashType,width:t.width}});i.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),r.append(i)}return r},e.prototype.renderTicks=function(){var t=new Ua,e=this.options,r=e.majorTicks.visible?e.majorUnit:0,i={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Wa(t,this.getMajorTickPositions(),i,e.majorTicks),Wa(t,this.getMinorTickPositions(),i,E({},{skipUnit:r/e.minorUnit},e.minorTicks)),t},e}(dr);It(Ka,{min:0,max:50,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var Xa=Ka,Ya=function(t){function e(e,r){t.call(this);var i=e.options,o=i.min,n=i.max,s=this.options=E({},this.options,r);s.fill=s.color,this.scale=e,xt(s.value)?s.value=At(s.value,o,n):s.value=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,r=e.value;if(0===arguments.length)return r;var i=this.scale.options,o=i.min,n=i.max;e._oldValue=xt(e._oldValue)?e.value:o,e.value=At(t,o,n),this.elements&&this.repaint()},e}(S.Class);It(Ya,{color:n});var qa=Ya,Za=function(t){function e(e,r){t.call(this,e,r),this.options=E({track:{visible:xt(r.track)}},this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t,e,r,i=this.options,o=this.scale,n=o.options,s=n.mirror,a=n.vertical,p=o.lineBox(),l=i.track.size||i.size,c=i.size/2,h=z(i.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(r=new $t(p.x1+u,p.y1,p.x1+u,p.y2),s?r.x1-=l:r.x2+=l,"barPointer"!==i.shape&&(t=e=new $t(p.x2+u,p.y1-c,p.x2+u,p.y2+c))):(r=new $t(p.x1,p.y1-u,p.x2,p.y1-u),s?r.y2+=l:r.y1-=l,"barPointer"!==i.shape&&(t=e=new $t(p.x1-c,p.y1-u,p.x2+c,p.y1-u))),this.trackBox=r,this.pointerRangeBox=e,this.box=t||r.clone().pad(i.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:xt(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},e.prototype._margin=function(){var t=this.scale,e=this.options,r=t.options,i=r.mirror,o=r.vertical,n=z(e.margin);return o?n[i?"left":"right"]:n[i?"bottom":"top"]},e}(qa);It(Za,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:z(3),animation:{type:"barPointer"},visible:!0});var $a=Za,Qa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,r=t.from,i=t.to,o=t.vertical,n=o?"x1":"y1";t.mirror===o?(r[n]-=e,i[n]-=e):(r[n]+=e,i[n]+=e);var s=this.fromScale=new S.geometry.Point(r.x1,r.y1),a=this.toScale=new S.geometry.Point(i.x1,i.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/t.duration*1e3,1))},e.prototype.step=function(t){var e=ht(this.fromScale.x,this.toScale.x,t),r=ht(this.fromScale.y,this.toScale.y,t);this.element.transform(S.geometry.transform().translate(e,r))},e}(S.drawing.Animation);It(Qa,{easing:"linear",duration:250}),S.drawing.AnimationFactory.current.register("arrowPointer",Qa);var Ja=Qa,tp=S.geometry.Point,ep=S.drawing.Path,rp=function(t){function e(e,r){t.call(this,e,r),xt(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(){var t=this.scale,e=this.options.size,r=e/2,i=t.options.mirror?-1:1;return t.options.vertical?[new tp(0,0-r),new tp(0-i*e,0),new tp(0,0+r)]:[new tp(0-r,0),new tp(0,0+i*e),new tp(0+r,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=new Ja(this.elements,E(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(r.options.duration=0),r.setup(),r.play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=this.getElementOptions(),i=this.pointerShape(e.value);e.animation.type="arrowPointer";var o=new ep({stroke:r.stroke,fill:r.fill}).moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).close(),n=t.getSlot(e.value);return o.transform(S.geometry.transform().translate(n.x1,n.y1)),this.elements=o,o},e}($a),ip=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?x:m,r=this.to=t.newPoints[0][e],i=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(r-i)/t.speed*1e3,1)),this._set(i)},e.prototype.step=function(t){var e=ht(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),r=this.options.newPoints;r[0][e](t),r[1][e](t)},e}(S.drawing.Animation);It(ip,{easing:"linear",speed:250}),S.drawing.AnimationFactory.current.register("barPointer",ip);var op=ip,np=S.drawing.Group,sp=S.drawing.Path,ap=function(t){function e(e,r){t.call(this,e,r),xt(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(t){var e=this.scale,r=this.options,i=e.options,o=i.mirror,n=i.vertical,s=o===n?-1:1,a=r.size*s,p=e.getSlot(e.options.min),l=e.getSlot(t),c=n?x:m,h=n?m:x,u=this._margin()*s,f=new S.geometry.Point;f[c]=p[c+"1"],f[h]=p[h+"1"];var d=new S.geometry.Point;d[c]=l[c+"1"],d[h]=l[h+"1"],n?(f.translate(u,0),d.translate(u,0)):(f.translate(0,u),d.translate(0,u));var v=d.clone(),y=f.clone();return n?(v.translate(a,0),y.translate(a,0)):(v.translate(0,a),y.translate(0,a)),[f,d,v,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=this.pointerShape(e.value),i=this.pointerPath,o=this.pointerShape(e._oldValue);i.moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).lineTo(r[3]).close();var n=new op(i,E(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[o[1],o[2]],newPoints:[r[1],r[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new np,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var r=this.pointerPath=new sp({stroke:e.stroke,fill:e.fill});return t.append(r),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},r=this.trackBox.clone().pad(e.width||0);return new sp.fromRect(r.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}($a),pp=S.drawing.Group,lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,r=t.origin.x,i=t.origin.y,o=new $t(r,i,r+t.width(),i+t.height());this.scale.reflow(o),this._shrinkScaleWidth(o);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(o),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new pp,e=this.scale.render(),r=this.pointers;t.append(this.gaugeArea),t.append(e);for(var i=0;i<r.length;i++){var o=r[i];t.append(o.render()),o.value(o.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Xa(t.scale,this.contextService);this.pointers=[];var r=t.pointer;r=b(r)?r:[r];for(var i=0;i<r.length;i++){var o=E({},r[i],{animation:{transitions:t.transitions}}),n="arrow"===o.shape?rp:ap;this.pointers.push(new n(e,o))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}},e.prototype._getBox=function(t){for(var e,r=this.scale,i=this.pointers,o=t.center(),n=i[0].box.clone().wrap(r.box),s=0;s<i.length;s++)n.wrap(i[s].box.clone());return r.options.vertical?(e=n.width()/2,n=new $t(o.x-e,t.y1,o.x+e,t.y2)):(e=n.height()/2,n=new $t(t.x1,o.y-e,t.x2,o.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,r=this.pointers,i=e.box,o=r[0].box.clone().wrap(e.box),n=this.bbox,s=0;s<r.length;s++)o.wrap(r[s].box.clone());e.options.vertical?(t=n.center().x-o.center().x,e.reflow(new $t(i.x1+t,n.y1,i.x2+t,n.y2))):(t=n.center().y-o.center().y,e.reflow(new $t(i.x1,i.y1+t,i.x2,i.y2+t)));for(var a=0;a<r.length;a++)r[a].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var r=e.contentBox().width()-t.width();r>0&&(e.box.shrink(r,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,r=t.box.clone(),i=t.options.vertical?"y":"x",o=e[0].box,n=0;n<e.length;n++)o.wrap(e[n].box.clone());r[i+1]+=Math.max(r[i+1]-o[i+1],0),r[i+2]-=Math.max(o[i+2]-r[i+2],0),t.reflow(r);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Na);It(lp,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var cp=lp,hp=S.drawing.Arc,up=S.drawing.Path,fp=S.drawing.Group;function dp(t,e,r,i){var o=new fp,n=t.center,s=t.getRadiusX();if(i.visible)for(var a=0;a<e.length;a++){var p=t.pointAt(e[a]),l=new S.geometry.Point(n.x+s-i.size,n.y).rotate(e[a],n);o.append(new up({stroke:{color:i.color,width:i.width}}).moveTo(p).lineTo(l))}return o}function vp(t,e,r,i){return{from:t,to:e,color:r,opacity:i}}var yp=function(t){function e(e,r){t.call(this,0,1,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=E({},this.options,t);return e.majorUnit=e.majorUnit||Yt(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var r=this.renderArc(t,e);this.bbox=r.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),r=Math.min(t.height(),t.width())/2;if(!xt(this.bbox))return this.render(e,r);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,r=e.min,i=e.max,o=e.reverse,n=e.startAngle,s=e.endAngle,a=s-n;return(o?s-(t-r)/(i-r)*a:(t-r)/(i-r)*a+n)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,r=t.minorTicks,i=0;return e.visible&&(i=e.size),r.visible&&(i=Math.max(r.size,i)),i},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),r=this.options;return r.endAngle-r.startAngle>=360&&r.max%r.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this.options,e=this.arc.clone(),r=e.getRadiusX(),i=this.tickAngles(e,t.majorUnit),o=t.rangeSize=t.rangeSize||.1*r,n=new fp,s=.05*r;xt(t.rangeDistance)?s=t.rangeDistance:t.rangeDistance=s;var a=t.labels,p="inside"===a.position,l=xt(this.labelElements);p&&(r-=this.ticksSize(),this.hasRanges()&&!l&&(r-=o+s),e.setRadiusX(r).setRadiusY(r));for(var c=this.labels,h=c.length,u=z(a.padding),f=(u.left+u.right)/2,d=(u.top+u.bottom)/2,v=0;v<h;v++){var y=c[v],g=y.box.width()/2,m=y.box.height()/2,x=i[v],b=(x-180)*ja,_=e.pointAt(x),w=_.x+Math.cos(b)*(g+f)*(p?1:-1),O=_.y+Math.sin(b)*(m+d)*(p?1:-1);y.reflow(new $t(w-g,O-m,w+g,O+m));var P=new S.geometry.Point(y.box.x1,y.box.y1),A=void 0;if(l){var C=(A=this.labelElements.children[v]).bbox().origin,k=A.transform()||S.geometry.transform();k.translate(P.x-C.x,P.y-C.y),A.transform(k)}else A=Ia(y,t.labels),n.append(A);this.bbox=S.geometry.Rect.union(this.bbox,A.bbox())}return n},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,r=e.rangeDistance,i=e.rangeSize,o=this.getRangeRadius();"inside"===this.options.labels.position&&(o+=i+r);for(var n=o+i/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=S.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,r=new fp;if(e){var i=this.options,o=i.rangeSize,n=i.reverse,s=i.rangeDistance,a=this.getRangeRadius();this.radius(this.radius()-o-s);for(var p=0;p<e;p++){var l=t[p],c=this.slotAngle(l[n?"to":"from"]),h=this.slotAngle(l[n?"from":"to"]);h-c!=0&&r.append(this.createRange(c,h,a,l))}}return r},e.prototype.createRange=function(t,e,r,i){var o=this.options.rangeSize,n=new S.geometry.Arc(this.arc.center,{radiusX:r+o/2,radiusY:r+o/2,startAngle:t,endAngle:e});return new hp(n,{stroke:{width:o,color:i.color,opacity:i.opacity,lineCap:i.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],r=e.length,i=[];if(r){var o=t.min,n=t.max,s=t.rangePlaceholderColor;i.push(vp(o,n,s));for(var a=0;a<r;a++)for(var p=Ba(e[a],o,n),l=i.length,c=0;c<l;c++){var h=i[c];if(h.from<=p.from&&p.from<=h.to){i.push(vp(p.from,p.to,p.color,p.opacity)),h.from<=p.to&&p.to<=h.to&&i.push(vp(p.to,h.to,s,p.opacity)),h.to=p.from;break}}}return i},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,r=e.rangeSize,i=e.rangeDistance,o=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-o-i-r:t.getRadiusX()-r},e.prototype.renderArc=function(t,e){var r=this.options;return this.arc=new S.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:r.startAngle+180,endAngle:r.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,r=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=dp(r,this.majorTickAngles,e.majorUnit,e.majorTicks);var i=new fp;i.append(this.majorTicks);var o=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=o-n,"outside"===e.labels.position){var s=r.getRadiusX();r.setRadiusX(s-o+n).setRadiusY(s-o+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=dp(r,this.minorTickAngles,e.minorUnit,e.minorTicks),i.append(this.minorTicks),i},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,r=e.majorUnit/e.minorUnit,i=t.length-1;i>=0;i--)i%r==0&&t.splice(i,1);return t},e.prototype.tickAngles=function(t,e){var r=this.options,i=r.reverse,o=r.max-r.min,n=t.endAngle-t.startAngle,s=o/e,a=t.startAngle,p=n/s;i&&(a+=n,p=-p),n>=360&&r.max%e==0&&(s-=1);for(var l=[],c=0;c<s;c++)l.push(jt(a,3)),a+=p;return jt(a)<=t.endAngle&&l.push(a),l},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,r){var i=r&&this._tickDifference||0,o=this.arc,n=o.getRadiusX();r&&"outside"===this.options.labels.position&&0!==i&&(o=this.arc.clone()).setRadiusX(n-i).setRadiusY(n-i);for(var s=0;s<t.length;s++){var a=o.pointAt(e[s]),p=t[s].segments,l=a.x-p[0].anchor().x,c=a.y-p[0].anchor().y;t[s].transform((new S.geometry.transform).translate(l,c))}},e}(dr);It(yp,{min:0,max:100,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var gp=yp,mp=function(t){function e(e,r){t.call(this,e,r);var i=this.options;i.duration=Math.max(Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3,1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,r=ht(e.oldAngle,e.newAngle,t);this.element.transform(S.geometry.transform().rotate(r,e.center))},e}(S.drawing.Animation);It(mp,{easing:"linear",duration:150}),S.drawing.AnimationFactory.current.register("radialPointer",mp);var xp=mp,bp=S.drawing.Circle,_p=S.drawing.Group,wp=S.drawing.Path,Op=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(S.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(i):new xp(this.elements,E(e.animation,{oldAngle:r,newAngle:i})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=new _p;return!1!==e.animation&&E(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),r.append(this._renderNeedle(),this._renderCap()),this.elements=r,this.setAngle(ja),r},e.prototype.reflow=function(t){var e=this.center=t.center,r=At(this.options.length||1,.1,1.5),i=this.radius=t.getRadiusX()*r,o=this.capSize=Math.round(i*this.options.cap.size);this.bbox=S.geometry.Rect.fromPoints(new S.geometry.Point(e.x-o,e.y-o),new S.geometry.Point(e.x+o,e.y+o))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,r=this.options.color,i=new wp({fill:{color:r},stroke:{color:r,width:.5}});return i.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),i},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,r=new S.geometry.Circle(this.center,this.capSize);return new bp(r,{fill:{color:e},stroke:{color:e}})},e}(qa);It(Op,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var Sp=Op,Pp=S.drawing.Group,Ap=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var r=0;r<e.length;r++)e[r].reflow(this.scale.arc),this._initialPlotArea=S.geometry.Rect.union(this._initialPlotArea,e[r].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,r){var i=this._visuals=new Pp;i.append(t),i.append(r.ticks),i.append(r.ranges),this._buildPointers(e),i.append(r.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.render(),this._visuals.append(r.elements),r.value(r.options.value)}},e.prototype.fitScale=function(t){for(var e,r,i,o,n,s=this.scale.arc,a=this._initialPlotArea,p=Math.abs(this.getDiff(a,t)),l=jt(p,3),c=jt(-p,3),h=0,u=0;!(!(u++<100)||(h=n===i?h+1:0)>5||l!==o&&0<=(e=this.getPlotBox(l,t,s))&&e<=2||c!==o&&0<=(i=this.getPlotBox(c,t,s))&&i<=2||(o=e>0&&i>0?2*l:e<0&&i<0?2*c:jt((l+c)/2||1,3),0<=(r=this.getPlotBox(o,t,s))&&r<=2));)n=i,r>0?(c=o,i=r):(l=o,e=r)},e.prototype.getPlotBox=function(t,e,r){var i=this.scale,o=this.pointers,n=r.getRadiusX(),s=r.clone();s.setRadiusX(n+t).setRadiusY(n+t),i.arc=s,i.reflow(e),this.plotBbox=i.bbox;for(var a=0;a<o.length;a++)o[a].reflow(s),this.plotBbox=S.geometry.Rect.union(this.plotBbox,o[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),r=t.center(),i=e.x-r.x,o=e.y-r.y,n=this.scale,s=this.pointers;n.arc.center.x-=i,n.arc.center.y-=o,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=S.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,r=this.scale=new gp(t.scale,this.contextService);this.pointers=[];for(var i=b(e)?e:[e],o=0;o<i.length;o++){var n=new Sp(r,E({},i[o],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Na);It(Ap,{transitions:!0,gaugeArea:{background:""}});var Cp=Ap,kp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rangeSegments=function(){var t=this.options;return[{from:t.min,to:t.max,color:t.rangePlaceholderColor,lineCap:t.rangeLineCap}]},e.prototype.hasRanges=function(){return!0},e.prototype.placeholderRangeAngle=function(t){var e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)},e.prototype.addRange=function(t,e,r){var i=this.options.reverse,o=this.slotAngle(i?e:t),n=this.slotAngle(i?t:e),s=this.createRange(o,n,this.getRangeRadius(),r);return this.ranges.append(s),s},e}(gp);It(kp,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var jp=kp,Mp=function(t){function e(e,r){t.call(this,e,r);var i=this.options,o=Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3;i.duration=At(o,150,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new S.Color(n),this.color=new S.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,r=this.startColor,i=this.color,o=ht(e.oldAngle,e.newAngle,t);if(this.element.angle(o),i){var n=jt(ht(r.r,i.r,t)),s=jt(ht(r.g,i.g,t)),a=jt(ht(r.b,i.b,t));this.element.stroke(new S.Color(n,s,a).toHex())}},e}(S.drawing.Animation);It(Mp,{easing:"linear",duration:150}),S.drawing.AnimationFactory.current.register("radialRangePointer",Mp);var Tp=Mp,Ep=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(i),this.stroke(this.currentColor())):(this.animation=new Tp(this,E(e.animation,{oldAngle:r,newAngle:i})),this.animation.play())},e.prototype.angle=function(t){var e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)},e.prototype.stroke=function(t){this.elements.stroke(t)},e.prototype.render=function(){if(!this.elements){var t=this.scale,e=this.options;!1!==e.animation&&E(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,r=t.max,i=this.options,o=i.colors,n=i.color,s=i.value,a=C(s)?s:e;if(o)for(var p=0;p<o.length;p++){var l=o[p],c=l.color,h=l.from;void 0===h&&(h=e);var u=l.to;if(void 0===u&&(u=r),h<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(qa);It(Ep,{animation:{type:"radialRangePointer",duration:150}});var Rp=Ep,Ip=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initTheme=function(e){t.prototype._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},e.prototype._createModel=function(){var t=this.options,e=this.scale=new jp(t.scale,this.contextService),r=new Rp(e,E({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[r]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.render(),r.value(r.options.value)}},e.prototype._setValueOptions=function(t){this.options.value=t},e.prototype.currentColor=function(){var t=this.pointers[0];if(t)return t.currentColor()},e.prototype.centerLabelPosition=function(t,e){var r=this.getSize(),i=this.scale.arc.center,o=i.x-t/2,n=i.y-e/2;if(t<r.width){var s=o+t;o=Math.max(o,0),s>r.width&&(o-=s-r.width)}if(e<r.height){var a=this.scale.bbox,p=a.bottomRight().y,l=n+e;n=Math.max(n,a.origin.y),l>p&&(n-=l-p)}return{left:o,top:n}},e}(Cp),Bp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._createModel=function(){var e=this.options.scale;"number"!=typeof e.startAngle&&(e.startAngle=90),e.endAngle=e.startAngle+360,t.prototype._createModel.call(this)},e}(Ip),Lp=function(t){function e(e){t.call(this),this.setOptions(e),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.setOptions=function(t){this.options=Object.assign({},this.options,t),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0},e.prototype.encode=function(t,e,r){var i=xt(t)?String(t):t;return this.initValue(i,e,r),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}},e.prototype.initValue=function(){},e.prototype.addQuietZone=function(){this.pattern.push(this.options.quietZoneLength||10)},e.prototype.addData=function(){},e.prototype.invalidCharacterError=function(t){throw new Error("Character '"+t+"' is not valid for symbology "+this.name)},e}(S.Class);It(Lp,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Vp=Object.assign,zp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Vp(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.width=e,this.totalUnits=0},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addCheckSum=function(){var t=this.value,e=t.length,r=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(r),this.addPattern(this.characterMap[r]),++e>=this.kCheckSumMinLength){var i=(r+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=i,this.addPattern(this.characterMap[i])}},e.prototype.getWeightedSum=function(t,e,r){for(var i=0,o=0;o<t.length;o++)i+=this.weightedValue(this.getValue(t.charAt(o)),e,o,r);return i},e.prototype.weightedValue=function(t,e,r,i){return((e-r)%i||i)*t},e.prototype.getValue=function(t){return isNaN(t)?(t!==this.DASH&&this.invalidCharacterError(t),this.DASH_VALUE):parseInt(t,10)},e.prototype.addCharacter=function(t){var e=this.getValue(t),r=this.characterMap[e];this.addPattern(r)},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=parseInt(t.charAt(r),10),this.pattern.push(e),this.totalUnits+=e},e}(Lp);It(zp,{addCheckSum:!0});var Dp=Object.assign,Np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Dp(this,{minBaseUnitLength:.7})},e.prototype.addData=function(){var t=this.value;this.addStart();for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addBase(e)},e.prototype.addBase=function(){},e}(Lp),Fp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Dp(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})},e.prototype.initValue=function(t,e,r){this.width=e,this.height=r,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""},e.prototype.prepareValues=function(){var t,e=this.minBaseUnitLength,r=this.minRatio,i=Math.max(.15*this.width,24),o=this.maxRatio;if(this.height<i)throw new Error("Insufficient Height. The minimum height for value: "+this.value+" is: "+i);for(t=this.getBaseUnit(o);t<e&&o>r;)o=parseFloat((o-.1).toFixed(1)),t=this.getBaseUnit(o);if(t<e){var n=Math.ceil(this.getBaseWidth(r)*e);throw new Error("Insufficient width. The minimum width for value: "+this.value+" is: "+n)}this.ratio=o,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,o).split(this.splitCharacter))},e.prototype.getBaseUnit=function(t){return this.width/this.getBaseWidth(t)},e.prototype.getBaseWidth=function(t){var e=3*(t+2);return this.quietZoneLength+e*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)},e.prototype.addStart=function(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.addCharacterGap()},e.prototype.addStop=function(){this.addPattern(this.characterMap.START.pattern)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.patternString+=this.patternMappings[t.charAt(e)]},e.prototype.addCharacterGap=function(){this.patternString+=this.gapWidth+this.splitCharacter},e}(Np);It(Fp,{addCheckSum:!1});var Up={addCharacter:function(t){this.characterMap[t]?this.addBase(this.characterMap[t]):t.charCodeAt(0)>127?this.invalidCharacterError(t):this.addExtended(t.charCodeAt(0))},addExtended:function(t){for(var e,r=0;r<this.extendedMappings.length;r++)if(e=this.extendedMappings[r].call(this,t)){for(var i=0;i<e.length;i++){var o=e[i];this.addBase(o)}return void(this.dataLength+=e.length-1)}},extendedMappings:[function(t){if(97<=t&&t<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(t-32)]]},function(t){if(33<=t&&t<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(t+32)]]},function(t){if(1<=t&&t<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(t+64)]]},function(t){var e,r;if(this.specialAsciiCodes[t]){e=[];for(var i=0;i<this.specialAsciiCodes[t].length;i++)e.push(this.characterMap[this.shiftCharacters[3]]),e.push(this.characterMap[this.specialAsciiCodes[t][i]])}else r=6*Math.floor(t/32)+(t-27)%32+64,e=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(r)]];return e}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},Hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),E(this,Up,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})},e}(Fp),Gp=Object.assign,Wp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Gp(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})},e.prototype.initValue=function(t,e,r){this.value=t,this.width=e,this.height=r,this.pattern=[],this.values=[],this.dataLength=t.length},e.prototype.prepareValues=function(){var t=Math.max(.15*this.width,24);if(this.height<t)throw new Error("Insufficient Height");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength)throw new Error("Insufficient Width")},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)},e.prototype.addStart=function(){var t=this.characterMap.START.pattern;this.addPattern(t)},e.prototype.addStop=function(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.values.push(t.value)},e.prototype.pushCheckSum=function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var r=0;r<e.length;r++)t=this.characterMap[this._findCharacterByValue(e[r])],this.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,r=this.values,i=r.length,o=0;for(e=i-1;e>=0;e--)o+=this.weightedValue(r[e],i-e,this.cCheckSumTotal);for(t=o%this.checkSumMod,o=this.weightedValue(t,1,this.kCheckSumTotal),e=i-1;e>=0;e--)o+=this.weightedValue(r[e],i-e+1,this.kCheckSumTotal);return[t,o%this.checkSumMod]},e.prototype._findCharacterByValue=function(t){for(var e in this.characterMap)if(this.characterMap[e].value===t)return e},e.prototype.weightedValue=function(t,e,r){return(e%r||r)*t},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=parseInt(t.charAt(r),10),this.pattern.push(e)},e}(Np),Kp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),E(this,Up,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var r=0;r<e.length;r++)if(t=e[r],this.shiftValuesAsciiCodes[t])this.addExtended(this.shiftValuesAsciiCodes[t]);else{var i=this._findCharacterByValue(t);this.addPattern(this.characterMap[i].pattern)}}})},e}(Wp),Xp=/^\d+$/,Yp=Object.assign,qp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Yp(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})},e.prototype.initValue=function(t,e,r){this.height=r,this.width=e,this.baseHeight=r/2,this.value=t.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];this.checkSum+=parseInt(t,10),this.addPattern(e)},e.prototype.addCheckSum=function(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)},e.prototype.validate=function(t){if(Xp.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!ct(t.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(","))},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=this.height-this.baseHeight*t.charAt(r),this.pattern.push({width:1,y1:e,y2:this.height}),this.pattern.push(1)},e}(Lp),Zp=/^\d+$/,$p=/^[a-z0-9]+$/i,Qp=Object.assign,Jp=function(t){function e(e){t.call(this),this.encoding=e,this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.addStart=function(){},e.prototype.is=function(){},e.prototype.isCode=function(){return!1},e.prototype.move=function(){},e.prototype.pushState=function(){},e}(S.Class),tl=function(t){function e(e,r){t.call(this,e),this.states=r,this._initMoves(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),E(this,{FNC4:"FNC4",SHIFT:98})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=t.charCodeAt(e);return this.isCode(r)},e.prototype.move=function(t){for(var e=0;!this._moves[e].call(this,t)&&e<this._moves.length;)e++},e.prototype.pushState=function(t){var e,r=this.states,i=t.value,o=i.length;if(ct("C",r)){var n=i.substr(t.index).match(/\d{4,}/g);n&&(o=i.indexOf(n[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<o;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],ct(this.FNC4,t)&&this._moves.push(this._moveFNC),ct(this.shiftKey,t)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)},e.prototype._moveFNC=function(t){if(t.fnc)return t.fnc=!1,t.previousState===this.key},e.prototype._shiftState=function(t){if(t.previousState===this.shiftKey&&(t.index+1>=t.value.length||this.encoding[this.shiftKey].is(t.value,t.index+1)))return this.encoding.addPattern(this.SHIFT),t.shifted=!0,!0},e.prototype._moveState=function(){return this.encoding.addPattern(this.MOVE),!0},e}(Jp),el={};el.A=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"A",shiftKey:"B",MOVE:101,START:103})},e.prototype.isCode=function(t){return 0<=t&&t<96},e.prototype.getValue=function(t){return t<32?t+64:t-32},e}(tl),el.B=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"B",shiftKey:"A",MOVE:100,START:104})},e.prototype.isCode=function(t){return 32<=t&&t<128},e.prototype.getValue=function(t){return t-32},e}(tl),el.C=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=pl(t,e,4);return(e+4<=t.length||2===t.length)&&Zp.test(r)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=pl(t.value,t.index,2))&&Zp.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(Jp),el.FNC4=function(t){function e(e,r){t.call(this,e),this._initSubStates(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"FNC4",dependentStates:["A","B"]})},e.prototype.addStart=function(t){var e=t.value.charCodeAt(0)-128,r=this._getSubState(e);this.encoding[r].addStart()},e.prototype.is=function(t,e){var r=t.charCodeAt(e);return this.isCode(r)},e.prototype.isCode=function(t){return 128<=t&&t<256},e.prototype.pushState=function(t){var e,r=this._initSubState(t),i=this.encoding,o=r.value.length;if(t.index+=o,o<3)for(;r.index<o;r.index++)e=r.value.charCodeAt(r.index),r.state=this._getSubState(e),r.previousState!==r.state&&(r.previousState=r.state,i[r.state].move(r)),i.addPattern(i[r.state].MOVE),i.addPattern(i[r.state].getValue(e));else r.state!==r.previousState&&i[r.state].move(r),this._pushStart(r),i.pushData(r,this.subStates),t.index<t.value.length&&this._pushStart(r);t.fnc=!0,t.state=r.state},e.prototype._pushStart=function(t){this.encoding.addPattern(this.encoding[t.state].MOVE),this.encoding.addPattern(this.encoding[t.state].MOVE)},e.prototype._initSubState=function(t){var e={value:this._getAll(t.value,t.index),index:0};return e.state=this._getSubState(e.value.charCodeAt(0)),e.previousState=t.previousState===this.key?e.state:t.previousState,e},e.prototype._initSubStates=function(t){this.subStates=[];for(var e=0;e<t.length;e++)ct(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=0;e<this.subStates.length;e++)if(this.encoding[this.subStates[e]].isCode(t))return this.subStates[e]},e.prototype._getAll=function(t,e){for(var r,i="",o=e;(r=t.charCodeAt(o++))&&this.isCode(r);)i+=String.fromCharCode(r-128);return i},e}(Jp),el.FNC1=function(t){function e(e,r){t.call(this,e),this.states=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})},e.prototype.addStart=function(){this.encoding[this.startState].addStart()},e.prototype.is=function(){return ct(this.key,this.states)},e.prototype.pushState=function(t){var e,r,i,o=this.encoding,n=t.value.replace(/\s/g,""),s=new RegExp("["+this.startAI+this.endAI+"]","g"),a=t.index,p={state:this.startState};o.addPattern(this.START);for(;;){if(p.index=0,(e=(i=n.charAt(a)===this.startAI?2:0)>0?this.getBySeparator(n,a):this.getByLength(n,a)).ai.length)r=a+i+e.id.length+e.ai.length;else if((r=n.indexOf(this.startAI,a+1))<0){if(a+e.ai.max+e.id.length+i<n.length)throw new Error("Separators are required after variable length identifiers");r=n.length}if(p.value=n.substring(a,r).replace(s,""),this.validate(e,p.value),o.pushData(p,this.dependentStates),r>=n.length)break;a=r,p.state!==this.startState&&(o[this.startState].move(p),p.state=this.startState),e.ai.length||o.addPattern(this.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var r=e.substr(t.id.length),i=t.ai;if(!i.type&&!Zp.test(r))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===i.type&&!$p.test(r))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(i.length&&i.length!==r.length)throw new Error("Application identifier "+t.id+" must be "+i.length+" characters long.");if(i.min&&i.min>r.length)throw new Error("Application identifier "+t.id+" must be at least "+i.min+" characters long.");if(i.max&&i.max<r.length)throw new Error("Application identifier "+t.id+" must be at most "+i.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var r,i,o=2;o<=4;o++)if(r=pl(t,e,o),i=this.getApplicationIdentifier(r)||this.getApplicationIdentifier(r.substring(0,r.length-1)))return{id:r,ai:i};this.unsupportedAIError(r)},e.prototype.unsupportedAIError=function(t){throw new Error("'"+t+"' is not a supported Application Identifier")},e.prototype.getBySeparator=function(t,e){var r=t.indexOf(this.startAI,e),i=t.indexOf(this.endAI,r),o=t.substring(r+1,i),n=this.getApplicationIdentifier(o)||this.getApplicationIdentifier(o.substr(o.length-1));return n||this.unsupportedAIError(o),{ai:n,id:o}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,r=e.multiKey;if(e[t])return e[t];for(var i=0;i<r.length;i++){if(r[i].ids&&ct(t,r[i].ids))return r[i].type;if(r[i].ranges)for(var o=r[i].ranges,n=0;n<o.length;n++)if(o[n][0]<=t&&t<=o[n][1])return r[i].type}},e}(Jp);var rl=function(t){function e(e){t.call(this,e),this._initStates()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})},e.prototype._initStates=function(){for(var t=0;t<this.states.length;t++)this[this.states[t]]=new el[this.states[t]](this,this.states)},e.prototype.initValue=function(t,e,r){this.pattern=[],this.value=t,this.width=e,this.height=r,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1},e.prototype.addData=function(){var t={value:this.value,index:0,state:""};0!==this.value.length&&(t.state=t.previousState=this.getNextState(t,this.states),this.addStart(t),this.pushData(t,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())},e.prototype.pushData=function(t,e){for(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){var r=t.state;t.state=t.previousState,t.previousState=r,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,e),this[t.state].move(t)},e.prototype.addStart=function(t){this[t.state].addStart(t),this.position=1},e.prototype.addCheckSum=function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)},e.prototype.addStop=function(){this.addPattern(this.STOP)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addPattern=function(t){for(var e,r=this.characterMap[t].toString(),i=0;i<r.length;i++)e=parseInt(r.charAt(i),10),this.pattern.push(e),this.totalUnits+=e;this.checkSum+=t*this.position++},e.prototype.getNextState=function(t,e){for(var r=0;r<e.length;r++)if(this[e[r]].is(t.value,t.index))return e[r];this.invalidCharacterError(t.value.charAt(t.index))},e}(Lp),il=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 A",states:["A"]})},e}(rl),ol=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 B",states:["B"]})},e}(rl),nl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 C",states:["C"]})},e}(rl),sl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(rl),al=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(rl);function pl(t,e,r){return t.substring(e,e+r)}var ll=Object.assign,cl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:vl})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))},e.prototype.addCheckSum=function(){var t=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=t.join("");for(var e=0;e<t.length;e++)this.checkSumLength++,this.addPattern(this.characterMap[t[e]])},e}(Lp),hl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(cl),ul=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(cl),fl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(cl),dl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(cl),vl={Modulo10:function(t){var e,r,i,o=[0,""],n=t.length%2;for(e=0;e<t.length;e++)o[(e+n)%2]+=parseInt(t.charAt(e),10);for(i=o[0],r=(2*o[1]).toString(),e=0;e<r.length;e++)i+=parseInt(r.charAt(e),10);return[(10-i%10)%10]},Modulo11:function(t){for(var e,r=0,i=t.length,o=0;o<i;o++)r+=(((i-o)%6||6)+1)*t.charAt(o);return 10!==(e=(11-r%11)%11)?[e]:[1,0]},Modulo11Modulo10:function(t){var e,r=this.Modulo11(t);return e=t+r[0],r.concat(this.Modulo10(e))},Modulo10Modulo10:function(t){var e,r=this.Modulo10(t);return e=t+r[0],r.concat(this.Modulo10(e))}},yl=Object.assign,gl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),yl(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})},e.prototype.initValue=function(t,e,r){var i=String(t);if(12!==i.length||/\D/.test(i))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=r,this.baseUnit=e/(95+this.quietZoneLength),this.value=i,this.checksum=this.calculateChecksum(),this.leftKey=i[0],this.leftPart=i.substr(1,6),this.rightPart=i.substr(7)+this.checksum},e.prototype.addData=function(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)},e.prototype.addSide=function(t,e){for(var r=0;r<t.length;r++)e&&parseInt(this.keyTable[e].charAt(r),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(r)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(r)],!0)},e.prototype.addPieces=function(t,e){for(var r=0;r<t.length;r++)e?this.pattern.push({y1:0,y2:.95*this.options.height,width:t[r]}):this.pattern.push(t[r])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,r=this.value.split("").reverse().join(""),i=0;i<r.length;i++)i%2?e+=parseInt(r.charAt(i),10):t+=parseInt(r.charAt(i),10);return(10-(3*t+e)%10)%10},e}(Lp),ml=Object.assign,xl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ml(this,{name:"EAN 8"})},e.prototype.initValue=function(t,e,r){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=r,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=e/(67+this.quietZoneLength)},e}(gl),bl={code11:zp,code39:Fp,code39extended:Hp,code93:Wp,code93extended:Kp,code128:sl,code128a:il,code128b:ol,code128c:nl};bl["gs1-128"]=al,bl.msimod10=hl,bl.msimod11=ul,bl.msimod1010=fl,bl.msimod1110=dl,bl.postnet=qp,bl.ean8=xl,bl.ean13=gl;var _l=function(t){function e(e,r){t.call(this),this.options=E({},this.options,r),this.element=e,this._initElement(),this._initSurface(),this._setOptions(r),r&&xt(r.value)&&this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){_(this.element,"k-barcode"),this.element.style.display="block"},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return S.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.setOptions=function(t){this._setOptions(t),this.redraw()},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype._render=function(){var t,e,r=this.options,i=r.value,o=r.text,n=z(o.margin),s=this._getSize(),a=r.border||{},p=this.encoding,l=new $t(0,0,s.width,s.height).unpad(a.width).unpad(r.padding),c=l.height(),h=new S.drawing.Group;return this.contentBox=l,h.append(this._getBackground(s)),o.visible&&(c-=S.drawing.util.measureText(i,{font:o.font}).height+n.top+n.bottom),t=p.encode(i,l.width(),c),o.visible&&(e=i,r.checksum&&xt(p.checksum)&&(e+=" "+p.checksum),h.append(this._getText(e))),this.barHeight=c,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),h.append(this._bandsGroup),h},e.prototype.exportVisual=function(){return this._render()},e.prototype._getSize=function(){var t=this.element,e=t.clientWidth,r=t.clientHeight,i=new S.geometry.Size(300,100);return e>0&&(i.width=e),r&&(i.height=r),this.options.width&&(i.width=this.options.width),this.options.height&&(i.height=this.options.height),i},e.prototype.value=function(t){if(!xt(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var r,i,o=this.contentBox,n=o.x1,s=new S.drawing.Group,a=0;a<t.length;a++){if(r=(i=R(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var p=S.geometry.Rect.fromPoints(new S.geometry.Point(n,i.y1+o.y1),new S.geometry.Point(n+r,i.y2+o.y1)),l=S.drawing.Path.fromRect(p,{fill:{color:this.options.color},stroke:null});s.append(l)}n+=r}return s},e.prototype._getBackground=function(t){var e=this.options,r=e.border||{},i=new $t(0,0,t.width,t.height).unpad(r.width/2);return S.drawing.Path.fromRect(i.toRect(),{fill:{color:e.background},stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType}})},e.prototype._getText=function(t){var e=this.options.text,r=this._textbox=new be(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return r.reflow(this.contentBox),r.renderVisual(),r.visual},e.prototype._setOptions=function(t){if(this.type=(t.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",t.value="0"+t.value),"upce"===this.type&&(this.type="ean8",t.value="0"+t.value),!bl[this.type])throw new Error("Encoding "+this.type+" is not supported.");this.encoding=new bl[this.type],this.options=E({},this.options,t)},e}(S.Class);It(_l,{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var wl=_l,Ol="Arial, Helvetica, sans-serif",Sl="12px "+Ol,Pl="16px "+Ol,Al=function(){return{icon:{border:{width:1}},label:{font:Sl,padding:3},line:{length:10,width:2},visible:!0}},Cl=function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:"transparent",visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:Al(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},kl=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Sl},notes:Al(),title:{font:Pl,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Cl(t),title:{font:Pl},legend:{labels:{font:Sl}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.ChartContext=i.createContext(null),e.ChartContext.displayName="ChartContext"},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(9),p=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.optionsStore=r.optionsStore,i}return o(e,t),e.prototype.renderChildren=function(t,e){var r=t.props.children,i=this.props,o=i._chartKey,a=i._parentStore,p=n({},t.props,{_chartCollectionIdxKey:o+"_"+e,_parentStore:a});return s.cloneElement(t,p,r)},e.prototype.render=function(){var t=this,e=this.props,r=e._chartKey,i=e._parentStore,o=e.children;return(i||this.optionsStore).dispatch({chartKey:r,payload:[]}),s.Children.map(o,(function(e,r){return s.isValidElement(e)?t.renderChildren(e,r):e}))},e.contextType=a.ChartContext,e}(s.Component);e.default=p},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(3),p=r(48),l=r(8),c=r(4),h=r(6),u=r(49),f=r(51),d=r(33),v=r(53),y=r(34),g=r(35),m=r(6);r(54);var x=r(55),b=r(57),_=r(9),w=r(4),O=r(60),S=function(t){function e(e){var r=t.call(this,e)||this;return r.chartInstance=null,r._element=null,r.optionsStore={},r.optionsUnsubscriber=Function.prototype,r.themeStore={},r.themeUnsubscriber=Function.prototype,r.observersStore={},r.suppressTransitions=!1,r.onRender=function(t){null!==r.chartInstance&&(r.surface=t.sender.surface,r.trigger("render",t))},r.onLegendItemClick=function(t){if(null!==r.chartInstance)if(r.props.onLegendItemClick)r.trigger("legendItemClick",t);else{var e=r.optionsStore.getState().series;if(!e)return;var i={},o=t.seriesIndex,n=t.pointIndex,s=e[o];if(void 0===n)i=Object.assign({},s,{visible:m.toggle(s.visible)});else{var a=s.pointVisibility=s.pointVisibility||[];a[n]=m.toggle(a[n]),i=Object.assign({},s)}r.optionsStore.dispatch({chartCollectionIdxKey:"series_"+o,payload:i}),r.suppressTransitions=!0}},r.onWindowResize=function(){null!==r.chartInstance&&r.chartInstance.resize()},r.onChartMouseLeave=function(t){var e=d.toDomEvent(r,t);r.triggerDomEvent("onMouseLeave",e)?t.preventDefault():null!==r.chartInstance&&r.chartInstance.hideElements()},r.onChildMouseLeave=function(t){var e=t.syntheticEvent;return r.chartInstance&&!h.hasParent(e.relatedTarget,r.element)&&r.chartInstance.hideElements(),!1},w.validatePackage(O.packageMetadata),r.optionsStore=y.default(g.optionsReducer),r.observersStore=y.default(g.observersReducer),r.childrenObserver=new l.InstanceObserver(r,{onMouseLeave:"onChildMouseLeave"}),r.contextValue={optionsStore:r.optionsStore,observersStore:r.observersStore,childrenObserver:r.childrenObserver},r.themeStore=y.default(g.themeReducer),r.chartObserver=new l.InstanceObserver(r,{render:"onRender",legendItemClick:"onLegendItemClick"}),r}return o(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){v.loadTheme(this.themeStore,this.instantiateCoreChart.bind(this)),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this)),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize)},e.prototype.componentWillUnmount=function(){this.optionsUnsubscriber(),this.themeUnsubscriber(),null!==this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null),window.removeEventListener("resize",this.onWindowResize)},e.prototype.componentDidUpdate=function(t){var e=this.props,r=e.dir,i=(e.children,n(e,["dir","children"]));if(null!==this.chartInstance){var o=p.provideIntlService(this),s=this.chartInstance.chartService,a=o.locale!==s._intlService.locale,l=Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],r=t[1];return!(i.hasOwnProperty(e)&&i[e]===r)}));a&&(this.chartInstance.chartService._intlService=o,this.chartInstance.chartService.format._intlService=o,l||this.chartInstance.noTransitionsRedraw()),l&&this.refresh(),t.dir!==r&&this.chartInstance.setDirection(this.getDirection(r))}},e.prototype.render=function(){var t=this,e=this.props,r=e.style,i=void 0===r?{}:r,o=e.className,n=e.wrapper,a=e.children,p=Object.assign({},i,{position:"relative"}),l=s.createElement(n,{className:o,style:p,key:"chartElement"},s.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:function(e){return t._element=e},className:"k-chart-surface"},a));return s.createElement(_.ChartContext.Provider,{value:this.contextValue},s.createElement(x.SeriesTooltip,{key:"seriesTooltip"}),s.createElement(b.CrosshairTooltipContainer,{key:"crosshairTooltips"}),l)},e.prototype.getDirection=function(t){var e=this;return"rtl"===(void 0!==t?t:c.canUseDOM&&window.getComputedStyle(e.element).direction||"ltr")},e.prototype.getChartOptions=function(){var t=this.props,e=t.renderAs,r=t.pannable,i=t.zoomable,o=t.paneDefaults,n=t.panes,s=t.transitions,a=t.seriesColors,p=t.seriesDefaults,l=t.axisDefaults,c=t.deriveOptionsFromParent,h={};return void 0!==e&&(h.renderAs=e),void 0!==r&&(h.pannable=r),void 0!==i&&(h.zoomable=i),void 0!==o&&(h.paneDefaults=o),void 0!==n&&(h.panes=n),void 0!==s&&(h.transitions=s),void 0!==a&&(h.seriesColors=a),void 0!==p&&(h.seriesDefaults=p),void 0!==l&&(h.axisDefaults=l),h=Object.assign(h,this.optionsStore.getState()),c&&(h=c(h)),h},e.prototype.refresh=function(){if(null!==this.chartInstance){var t=this.themeStore.getState(),e=this.getChartOptions(),r=e.transitions;this.suppressTransitions&&(e.transitions=!1),this.props.onRefresh?this.props.onRefresh.call(void 0,e,t,this.chartInstance):this.chartInstance.setOptions(e,t),this.suppressTransitions&&(e.transitions=r,this.suppressTransitions=!1)}},e.prototype.instantiateCoreChart=function(){var t=this.props,e=t.dir,r=t.chartConstructor,i=this.getChartOptions();this.chartInstance=new r(this.element,i,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:p.provideIntlService(this),observer:this.chartObserver,sender:this})},e.prototype.trigger=function(t,e){for(var r=this.props.getTarget(),i=f.create(t,e,r),o="on"+t.charAt(0).toUpperCase()+t.slice(1),n=this.observersStore.getState(),s=!1,a=0;a<n.length;a++)n[a].trigger(t,e)&&(s=!0);return!1===s&&i&&this.props.hasOwnProperty(o)?(this.props[o].call(void 0,i),i.isDefaultPrevented&&i.isDefaultPrevented()):s},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++){var r=t[e],i="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(i))return!0}return!1},e.prototype.triggerDomEvent=function(t,e){for(var r=this.observersStore.getState(),i=!1,o=0;o<r.length;o++)r[o].trigger(t,e)&&(i=!0);return i},e.propTypes={dir:a.string,renderAs:a.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(s.Component);e.BaseChart=S,p.registerForIntl(S),l.DomEventsBuilder.register(u.DomEventsBuilder)},function(t,e){t.exports=i},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axis=e.axis,i.dataItem=e.dataItem,i.index=e.index,i.text=e.text,i.value=e.value,i}return o(e,t),e}(r(5).BaseEvent);e.AxisLabelClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(7).PreventableEvent);e.DragEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(5).BaseEvent);e.DragEndEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(7).PreventableEvent);e.DragStartEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.series=e.series,i.seriesIndex=e.seriesIndex,i.pointIndex=e.pointIndex,i.text=e.text,i}return o(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(7).PreventableEvent);e.LegendItemHoverEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.series=e.series,i.seriesIndex=e.seriesIndex,i.pointIndex=e.pointIndex,i.text=e.text,i}return o(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(7).PreventableEvent);e.LegendItemClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.from=e.from,i.to=e.to,i}return o(e,t),e}(r(5).BaseEvent);e.NavigatorFilterEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.dataItem=e.dataItem,i.series=e.series,i.value=e.value,i.visual=e.visual,i}return o(e,t),e}(r(5).BaseEvent);e.NoteClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.dataItem=e.dataItem,i.series=e.series,i.value=e.value,i.visual=e.visual,i}return o(e,t),e}(r(5).BaseEvent);e.NoteHoverEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.nativeEvent=e.originalEvent,i.value=e.value,i.x=e.x,i.y=e.y,i}return o(e,t),e}(r(5).BaseEvent);e.PlotAreaClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.nativeEvent=e.originalEvent,i.value=e.value,i.x=e.x,i.y=e.y,i}return o(e,t),e}(r(5).BaseEvent);e.PlotAreaHoverEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){return t.call(this,r)||this}return o(e,t),e}(r(5).BaseEvent);e.RenderEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return o(e,t),e}(r(7).PreventableEvent);e.SelectEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return o(e,t),e}(r(5).BaseEvent);e.SelectEndEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return o(e,t),e}(r(7).PreventableEvent);e.SelectStartEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.dataItem=e.dataItem,i.nativeEvent=e.originalEvent,i.percentage=e.percentage,i.point=e.point,i.series=e.series,i.stackValue=e.stackValue,i.value=e.value,i}return o(e,t),e}(r(5).BaseEvent);e.SeriesClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.categoryPoints=e.categoryPoints,i.dataItem=e.dataItem,i.nativeEvent=e.originalEvent,i.percentage=e.percentage,i.point=e.point,i.series=e.series,i.stackValue=e.stackValue,i.value=e.value,i}return o(e,t),e}(r(7).PreventableEvent);e.SeriesHoverEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.delta=e.delta,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(7).PreventableEvent);e.ZoomEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(5).BaseEvent);e.ZoomEndEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(7).PreventableEvent);e.ZoomStartEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.sender=t,this.syntheticEvent=e};e.DomEvent=i,e.toDomEvent=function(t,e){return new i(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(4);e.THROTTLE_MS=1e3/60;e.default=function(t){var r,o,n=[],s=function(s){r=t(r,s),i.canUseDOM&&(window.clearTimeout(o),o=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return s({}),{getState:function(){return r},dispatch:s,subscribe:function(t){return n.push(t),function(){return n=n.filter((function(e){return e!==t}))}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.optionsReducer=function(t,e){return e.chartCollectionIdxKey?i.collectionConfigurationItem(t,e):e.chartKey?i.configurationItem(t,e):{}};e.themeReducer=function(t,e){if(!e.type)return{};switch(e.type){case"set":return i.themeItem(t,e);case"push":return Object.assign(t,e.payload);default:return t}};e.observersReducer=function(t,e){if(!e.type)return[];switch(e.type){case"add":return t.concat([e.payload]);case"remove":return t.filter((function(t){return t!==e.payload}));default:return t}};var i={configurationItem:function(t,e){var r;return Object.assign(t,((r={})[e.chartKey]=e.payload,r))},collectionConfigurationItem:function(t,e){var r,i=!1,o=e.chartCollectionIdxKey.split("_"),n=o[0],s=o[1],a=t[n].map((function(t,r){return parseInt(s,10)===r?(i=!0,e.payload):t}));return!1===i&&a.splice(parseInt(s,10),0,e.payload),Object.assign(t,((r={})[n]=a,r))},themeItem:function(t,e){for(var r={},i=Object.assign(r,t),o=e.payload,n=o.field,s=o.value,a=n.split("."),p=a.shift();a.length>0;)r=r[p]=r[p]||{},p=a.shift();return r[p]=s,i}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.point=t,this.format=((t.options||{}).tooltip||{}).format||e}return Object.defineProperty(t.prototype,"formattedValue",{get:function(){return this.format?this.point.formatValue(this.format):String(this.value)},enumerable:!0,configurable:!0}),t}();e.TooltipPoint=i},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),s=r(8),a=r(33),p=r(6),l=r(182),c=r(9),h={horizontal:"fit",vertical:"fit"},u="k-chart-tooltip",f=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.onChartMouseLeave=function(t){var e=t.syntheticEvent;return!!p.hasParent(e.relatedTarget,i.element)},i.onMouseLeave=function(t){var e=a.toDomEvent(i,t);i.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},i.chartObserver=new s.InstanceObserver(i,{onMouseLeave:"onChartMouseLeave"}),r.observersStore.dispatch({type:"add",payload:i.chartObserver}),i}return o(e,t),e.prototype.render=function(){var t=this,e=this.props,r=e.popupShown,i=e.popupAlign,o=e.popupOffset,s=e.popupStyles,a=e.popupContent,p=e.className,c=[u,p].join(" ").trim();return n.createElement(l.Popup,{animate:!1,popupAlign:i,offset:o,show:r,collision:h,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:c,style:s,onMouseLeave:this.onMouseLeave,ref:function(e){return t.element=e}},a()))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.contextType=c.ChartContext,e}(n.Component);e.TooltipPopup=f},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartCategoryAxisItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartPane",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartSeriesItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartValueAxisItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartXAxisItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartYAxisItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartNavigatorSeriesItem",e.default=s},function(t,e){t.exports=o},function(t,e,r){"use strict";function i(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var o=r(47);e.Chart=o.Chart;var n=r(62);e.Sparkline=n.Sparkline;var s=r(63);e.StockChart=s.StockChart,i(r(64)),i(r(65)),i(r(178)),i(r(180)),i(r(181))},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(11),l=r(61),c=r(8),h=r(4),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getTarget=function(){return e},e}return o(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.donutCenterRender,i=e.children,o=e.className,u=s(e,["donutCenterRender","children","className"]);return a.createElement(p.BaseChart,n({},u,{ref:function(e){return t._baseChart=e},chartConstructor:c.Chart,getTarget:this.getTarget,wrapper:"div",className:h.classNames("k-chart k-widget",o)}),i,a.createElement(l.DonutCenter,{render:r}))},e}(a.Component);e.Chart=u},function(t,e){t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(50),o=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var r=window.Hammer;if(!r)return void 0;var o=new r(t,{recognizers:[[r.Tap],[r.Pan],[r.Pinch],[r.Press,{time:0}]]});return new i.DomEvents(o,e)}},t}();e.DomEventsBuilder=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function o(t,e){for(var r=0;r<t.length;r++)if(e[t[r]])return!0;return!1}var n=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],s=function(){function t(t,e){this.hammerInstance=t,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),e&&this.bind(e)}return t.prototype.tap=function(t){this.trigger("tap",t)},t.prototype.press=function(t){this.trigger("press",t)},t.prototype.panstart=function(t){delete this.previous,this.previous=this.trigger("start",t)},t.prototype.panmove=function(t){this.previous=this.trigger("move",t)},t.prototype.panend=function(t){this.trigger("end",t),delete this.previous},t.prototype.pinchstart=function(t){this.trigger("gesturestart",t)},t.prototype.pinchmove=function(t){this.trigger("gesturechange",t)},t.prototype.pinchend=function(t){this.trigger("gestureend",t)},t.prototype.trigger=function(t,e){var r=function(t,e){var r=t.pointers,o=r[0],n=o.pageX,s=o.pageY,a=0;if(r.length>1){var p=r[0],l=r[1];a=Math.sqrt(Math.pow(p.pageX-l.pageX,2)+Math.pow(p.pageY-l.pageY,2))}return{distance:a,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:r.map(i),type:t.type,x:{delta:e?n-e.x.location:0,initialDelta:t.deltaX,location:n,startLocation:n-t.deltaX},y:{delta:e?s-e.y.location:0,initialDelta:t.deltaY,location:s,startLocation:s-t.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](r),r},t.prototype.bind=function(t){void 0===t&&(t={}),this.unbind(),this.eventHandlers=t;for(var e=0;e<n.length;e++){var r=n[e],i=Object.keys(r);if(o(i,t))for(var s=0;s<i.length;s++){var a=r[i[s]];this.hammerInstance.on(a,this[a])}}},t.prototype.unbind=function(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}},t.prototype.destroy=function(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers},t.prototype.toggleDrag=function(t){this.toggle("pan",t)},t.prototype.toggleZoom=function(t){this.toggle("pinch",t)},t.prototype.toggle=function(t,e){this.hammerInstance&&this.hammerInstance.get(t).set({enable:e})},t}();e.DomEvents=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(13),o=r(14),n=r(15),s=r(16),a=r(17),p=r(18),l=r(52),c=r(19),h=r(20),u=r(21),f=r(22),d=r(23),v=r(24),y=r(25),g=r(26),m=r(27),x=r(28),b=r(29),_=r(30),w=r(31),O=r(32),S={axisLabelClick:i.AxisLabelClickEvent,drag:o.DragEvent,dragEnd:n.DragEndEvent,dragStart:s.DragStartEvent,legendItemHover:a.LegendItemHoverEvent,legendItemClick:p.LegendItemClickEvent,legendItemLeave:l.LegendItemLeaveEvent,navigatorFilter:c.NavigatorFilterEvent,noteClick:h.NoteClickEvent,noteHover:u.NoteHoverEvent,plotAreaClick:f.PlotAreaClickEvent,plotAreaHover:d.PlotAreaHoverEvent,render:v.RenderEvent,select:y.SelectEvent,selectEnd:g.SelectEndEvent,selectStart:m.SelectStartEvent,seriesClick:x.SeriesClickEvent,seriesHover:b.SeriesHoverEvent,zoom:_.ZoomEvent,zoomEnd:w.ZoomEndEvent,zoomStart:O.ZoomStartEvent};e.create=function(t,e,r){if(S[t])return new S[t](e,r)}},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.series=e.series,i.seriesIndex=e.seriesIndex,i.pointIndex=e.pointIndex,i.text=e.text,i}return o(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(7).PreventableEvent);e.LegendItemLeaveEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(8),o=function(t){return t.fontWeight+" "+t.fontSize+" "+t.fontFamily},n=function(t){return window.getComputedStyle(t).backgroundColor},s='\n <div class="k-var--accent"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n '+function(){for(var t='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n',e=0;e<30;e++)t+='\n <div class="k-var--series-'+(e+1)+'"></div>';return t}()+"\n </div>\n",a=function(){function t(t){this.store=t}return t.prototype.setStyle=function(t,e){this.store.dispatch({type:"set",payload:{field:t,value:e}})},t.prototype.setColors=function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var t=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(t)||(this.setStyle("seriesDefaults.area.opacity",t),this.setStyle("seriesDefaults.radarArea.opacity",t),this.setStyle("seriesDefaults.verticalArea.opacity",t),this.setStyle("seriesDefaults.labels.opacity",t)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")},t.prototype.setFonts=function(){var t=o(this.queryStyle("chart-font")),e=o(this.queryStyle("chart-title-font")),r=o(this.queryStyle("chart-pane-title-font")),i=o(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",i),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",i),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("paneDefaults.title.font",r)},t.prototype.setSeriesColors=function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),r=n(t.querySelector(".k-var--series-unset")),i=e.reduce((function(t,e){var i=function(t){var e=t.match(/series-([a-z])$/);if(null!==e)return e[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);var r=t.split("--series-")[1];return parseInt(r,10)-1}(e.className),o=n(e);return o!==r&&(t[i]=o),t}),[]);this.setStyle("seriesColors",i)},t.prototype.mapColor=function(t,e){this.setStyle(t,this.queryStyle(e).backgroundColor)},t.prototype.queryStyle=function(t){var e=this.element;return window.getComputedStyle(e.querySelector(".k-var--"+t))},t.prototype.setInactiveOpacity=function(t,e){var r=this,i=parseFloat(this.queryStyle(e).opacity);!isNaN(i)&&i<1&&t.forEach((function(t){return r.setStyle("seriesDefaults."+t+".highlight.inactiveOpacity",i)}))},t}();e.loadTheme=function(t,e){var r=new a(t);if("undefined"!=typeof document){var o=r.element=document.createElement("div");o.style.display="none",o.innerHTML=s,document.body.appendChild(o);try{t.dispatch({type:"push",payload:i.chartBaseTheme()}),r.setColors(),r.setFonts(),r.setSeriesColors()}finally{document.body.removeChild(r.element),delete r.element,e()}}else t.dispatch({type:"push",payload:i.chartBaseTheme()})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(8),o=i.DateCategoryAxis.prototype.options.labels.dateFormats,n=i.DateValueAxis.prototype.options.labels.dateFormats,s={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(o,s),Object.assign(n,s)},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(4),l=r(8),c=r(36),h=r(56),u=r(37),f=r(9),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={popupShown:!1},e}return o(e,t),e.prototype.componentDidMount=function(){this.chartObserver=new l.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.chartObserver})},e.prototype.render=function(){var t,e=this,r=this.state,i=r.popupContext,o=r.shared,l=r.className,c=s(r,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(o)return null!==t?t(i):a.createElement(h.SharedTooltipContent,n({},i));var r=i.point,s=e.findRenderFunctionByIndex(r.series.index);return null!==s?s(i):null!==t?t(i):a.createElement("span",{dangerouslySetInnerHTML:{__html:i.point.formattedValue}})}:Function.prototype,d=p.classNames(((t={})["k-chart-shared-tooltip"]=o,t["k-chart-tooltip-inverse"]=!!l,t));return a.createElement(u.TooltipPopup,n({},c,{popupContent:f,className:d}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e,r=t.anchor,i=t.style,o=t.shared,n=t.className;t.crosshair||(e=o?this.createSharedTooltipContext(t):this.createTooltipContext(t),this.setState({popupShown:!0,popupAlign:r.align,popupOffset:r.point,popupContext:e,popupStyles:i,className:n,shared:o}))},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.prototype.createSharedTooltipContext=function(t){var e=t.points,r=t.categoryText,i=e.filter((function(t){return void 0!==t.series.name})).length>0,o=t.series.length>1,n=1;return i&&n++,o&&n++,{categoryText:r,colorMarker:o,colspan:n,nameColumn:i,points:t.points.map((function(e){return new c.TooltipPoint(e,t.format)}))}},e.prototype.createTooltipContext=function(t){var e=t.point,r=t.format;return{point:new c.TooltipPoint(e,r)}},e.prototype.findRenderFunctionByIndex=function(t){var e=this.context.optionsStore.getState().series;return void 0!==e&&Array.isArray(e)&&void 0!==e[t]&&e[t].hasOwnProperty("tooltip")&&e[t].tooltip.hasOwnProperty("render")?e[t].tooltip.render:null},e.prototype.findRenderFunction=function(){var t=this.context.optionsStore.getState().tooltip;return void 0!==t&&t.hasOwnProperty("render")?t.render:null},e.contextType=f.ChartContext,e}(a.Component);e.SeriesTooltip=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.SharedTooltipContent=function(t){var e=t.categoryText,r=t.colorMarker,o=t.colspan,n=t.nameColumn,s=t.points;return i.createElement("table",null,i.createElement("thead",null,i.createElement("tr",null,i.createElement("th",{colSpan:o},e))),i.createElement("tbody",null,s.map((function(t,e){return i.createElement("tr",{key:e},r&&i.createElement("td",null,i.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:t.series.color}})),n&&i.createElement("td",null,t.series.name),i.createElement("td",{dangerouslySetInnerHTML:{__html:t.formattedValue}}))}))))}},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(58),p=r(59),l=r(9),c=["categoryAxis","valueAxis","xAxis","yAxis"];function h(t){for(var e={},r=0;r<c.length;r++)for(var i=u(t,c[r]),o=0;o<i.length;o++){var n=i[o];e[n.name+n.index]=n}return e}function u(t,e){var r=[];if(t[e])for(var i=[].concat(t[e]),o=0;o<i.length;o++){var n=(i[o].crosshair||{}).tooltip;n&&n.visible&&r.push({index:o,name:e})}return r}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={tooltips:{}},e.storeUnsubscriber=Function.prototype,e.subscriber=function(){e.setState({tooltips:h(e.context.optionsStore.getState())})},e}return o(e,t),e.prototype.componentDidMount=function(){this.storeUnsubscriber=this.context.optionsStore.subscribe(this.subscriber)},e.prototype.render=function(){var t=this.state.tooltips,e=Object.keys(t).map((function(e){return s.createElement(p.CrosshairTooltip,n({},t[e],{key:e}))}));return s.createElement(a.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=l.ChartContext,e}(s.Component);e.CrosshairTooltipContainer=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t.children};e.Container=i,i.displayName="Container"},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(4),l=r(8),c=r(37),h=r(9),u=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.state={popupShown:!1},i.chartObserver=new l.InstanceObserver(i,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),r.observersStore.dispatch({type:"add",payload:i.chartObserver}),i}return o(e,t),e.prototype.render=function(){var t,e=this.state,r=e.popupContend,i=e.className,o=s(e,["popupContend","className"]),l=this.state.popupShown?function(){return r}:Function.prototype,h=p.classNames(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!i,t));return a.createElement(c.TooltipPopup,n({},o,{popupContent:l,className:h}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e=t.anchor,r=t.style,i=t.className,o=t.crosshair,n=t.axisName,s=t.axisIndex,a=t.value,p=this.props,l=p.name,c=p.index;o&&n===l&&s===c&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:a,popupStyles:r,className:i})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.contextType=h.ChartContext,e}(a.Component);e.CrosshairTooltip=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-charts",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1637181120,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),s=r(8),a=r(9),p=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.state={donutCenterStyles:null},i.chartObserver=new s.InstanceObserver(i,{render:"onRender"}),r.observersStore.dispatch({type:"add",payload:i.chartObserver}),i}return o(e,t),e.prototype.render=function(){var t=this.props.render,e=this.state.donutCenterStyles,r=null;return t&&e&&(r=n.createElement("div",{className:"k-chart-donut-center",style:e},t())),r},e.prototype.onRender=function(t){var e=this.context.optionsStore.getState().series,r=Array.isArray(e)?e[0]:null,i=t.sender._plotArea.charts;if(r&&"donut"===r.type&&0!==i[0].points.length){var o=i[0].points[0].sector,n=o.innerRadius,s=o.center.y-n,a=o.center.x-n,p=2*n;this.setState({donutCenterStyles:{height:p,left:a,top:s,width:p}})}},e.contextType=a.ChartContext,e}(n.Component);e.DonutCenter=p},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(11),l=r(8),c=r(4),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var r=e.props,i=r.type,o=r.data,n=Object.assign({},t,{type:i,data:o});return l.Sparkline.normalizeOptions(n)},e.getTarget=function(){return e},e}return o(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.children,i=(e.type,e.className),o=s(e,["children","type","className"]);return a.createElement(p.BaseChart,n({},o,{ref:function(e){return t._baseChart=e},chartConstructor:l.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:c.classNames("k-sparkline k-widget",i)}),r)},e}(a.Component);e.Sparkline=h},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(11),l=r(8),c=r(4),h={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var e=Object.assign({},t.navigator||{},h);return Object.assign({},t,{navigator:e})},e.onRefresh=function(t,r,i){e.props.partialRedraw?(i.applyOptions(t),i.bindCategories(),i.navigator.redrawSlaves()):i.setOptions(t,r)},e.getTarget=function(){return e},e}return o(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.children,i=e.className,o=s(e,["children","className"]);return a.createElement(p.BaseChart,n({},o,{ref:function(e){return t._baseChart=e},chartConstructor:l.StockChart,getTarget:this.getTarget,wrapper:"div",deriveOptionsFromParent:this.deriveOptionsFromParent,onRefresh:this.onRefresh,className:c.classNames("k-stockchart k-widget",i)}),r)},e}(a.Component);e.StockChart=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(36);e.TooltipPoint=i.TooltipPoint},function(t,e,r){"use strict";function i(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var o=r(66);e.ChartArea=o.default;var n=r(67);e.ChartAxisDefaults=n.default;var s=r(68);e.ChartCategoryAxis=s.default;var a=r(38);e.ChartCategoryAxisItem=a.default;var p=r(69);e.ChartLegend=p.default;var l=r(70);e.ChartNavigator=l.default;var c=r(39);e.ChartPane=c.default;var h=r(71);e.ChartPaneDefaults=h.default;var u=r(72);e.ChartPanes=u.default;var f=r(73);e.ChartPlotArea=f.default;var d=r(74);e.ChartSeries=d.default;var v=r(75);e.ChartSeriesDefaults=v.default;var y=r(40);e.ChartSeriesItem=y.default;var g=r(76);e.ChartTitle=g.default;var m=r(77);e.ChartTooltip=m.default;var x=r(78);e.ChartValueAxis=x.default;var b=r(41);e.ChartValueAxisItem=b.default;var _=r(79);e.ChartXAxis=_.default;var w=r(42);e.ChartXAxisItem=w.default;var O=r(80);e.ChartYAxis=O.default;var S=r(43);e.ChartYAxisItem=S.default;var P=r(81);e.ChartZoomable=P.default,i(r(82)),i(r(87)),i(r(96)),i(r(98)),i(r(100)),i(r(104)),i(r(112)),i(r(125)),i(r(133)),i(r(141)),i(r(149))},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"chartArea"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"axisDefaults"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(38),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"categoryAxis"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"legend"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"navigator"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"paneDefaults"}))};s.displayName="ChartPaneDefaults",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(39),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"panes"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"plotArea"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(40),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"series"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"seriesDefaults"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(41),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"valueAxis"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(42),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"xAxis"}))};p.prototype={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(43),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"yAxis"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"zoomable"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(83);e.ChartAxisDefaultsTitle=i.default;var o=r(84);e.ChartAxisDefaultsLabels=o.default;var n=r(85);e.ChartAxisDefaultsCrosshair=n.default;var s=r(86);e.ChartAxisDefaultsCrosshairTooltip=s.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartAxisDefaultsTitle",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.displayName="ChartAxisDefaultsLabels",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshair",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshairTooltip",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(88);e.ChartCategoryAxisCrosshair=i.default;var o=r(89);e.ChartCategoryAxisCrosshairTooltip=o.default;var n=r(90);e.ChartCategoryAxisTitle=n.default;var s=r(91);e.ChartCategoryAxisLabels=s.default;var a=r(92);e.ChartCategoryAxisNotes=a.default;var p=r(93);e.ChartCategoryAxisNotesIcon=p.default;var l=r(94);e.ChartCategoryAxisNotesLabel=l.default;var c=r(95);e.ChartCategoryAxisRangeLabels=c.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"rangeLabels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(97);e.ChartPaneTitle=i.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(99);e.ChartPaneDefaultsTitle=i.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartPaneDefaultsTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(101);e.ChartLegendItem=i.default;var o=r(102);e.ChartLegendTitle=o.default;var n=r(103);e.ChartLegendInactiveItems=n.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"item"}))};s.displayName="ChartLegendItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartLegendTitle",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"inactiveItems"}))};s.displayName="ChartLegendInactiveItems",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(105);e.ChartSeriesDefaultsItemTooltip=i.default;var o=r(106);e.ChartSeriesDefaultsLabels=o.default;var n=r(107);e.ChartSeriesDefaultsLabelsFrom=n.default;var s=r(108);e.ChartSeriesDefaultsLabelsTo=s.default;var a=r(109);e.ChartSeriesDefaultsNotes=a.default;var p=r(110);e.ChartSeriesDefaultsNotesIcon=p.default;var l=r(111);e.ChartSeriesDefaultsNotesLabel=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(113);e.ChartSeriesItemTooltip=i.default;var o=r(114);e.ChartSeriesItemOutliers=o.default;var n=r(115);e.ChartSeriesNotes=n.default;var s=r(116);e.ChartSeriesMarkers=s.default;var a=r(117);e.ChartSeriesLabels=a.default;var p=r(118);e.ChartSeriesHighlight=p.default;var l=r(119);e.ChartSeriesExtremes=l.default;var c=r(120);e.ChartSeriesErrorBars=c.default;var h=r(121);e.ChartSeriesLabelsFrom=h.default;var u=r(122);e.ChartSeriesLabelsTo=u.default;var f=r(123);e.ChartSeriesNotesLabel=f.default;var d=r(124);e.ChartSeriesNotesIcon=d.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(126);e.ChartValueAxisCrosshair=i.default;var o=r(127);e.ChartValueAxisCrosshairTooltip=o.default;var n=r(128);e.ChartValueAxisLabels=n.default;var s=r(129);e.ChartValueAxisNotes=s.default;var a=r(130);e.ChartValueAxisNotesIcon=a.default;var p=r(131);e.ChartValueAxisNotesLabel=p.default;var l=r(132);e.ChartValueAxisTitle=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartValueAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(134);e.ChartXAxisCrosshair=i.default;var o=r(135);e.ChartXAxisCrosshairTooltip=o.default;var n=r(136);e.ChartXAxisLabels=n.default;var s=r(137);e.ChartXAxisNotes=s.default;var a=r(138);e.ChartXAxisNotesIcon=a.default;var p=r(139);e.ChartXAxisNotesLabel=p.default;var l=r(140);e.ChartXAxisTitle=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartXAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(142);e.ChartYAxisCrosshair=i.default;var o=r(143);e.ChartYAxisCrosshairTooltip=o.default;var n=r(144);e.ChartYAxisLabels=n.default;var s=r(145);e.ChartYAxisNotes=s.default;var a=r(146);e.ChartYAxisNotesIcon=a.default;var p=r(147);e.ChartYAxisNotesLabel=p.default;var l=r(148);e.ChartYAxisTitle=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartYAxisTitle",e.default=s},function(t,e,r){"use strict";function i(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var o=r(150);e.ChartNavigatorCategoryAxis=o.default;var n=r(151);e.ChartNavigatorHint=n.default;var s=r(152);e.ChartNavigatorPane=s.default;var a=r(153);e.ChartNavigatorSelect=a.default;var p=r(154);e.ChartNavigatorSeries=p.default;var l=r(44);e.ChartNavigatorSeriesItem=l.default,i(r(155)),i(r(163)),i(r(165))},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"categoryAxis"}))};s.displayName="ChartNavigatorCategoryAxis",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"hint"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"pane"}))};s.displayName="ChartNavigatorPane",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"select"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(44),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"series"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(156);e.ChartNavigatorCategoryAxisCrosshair=i.default;var o=r(157);e.ChartNavigatorCategoryAxisCrosshairTooltip=o.default;var n=r(158);e.ChartNavigatorCategoryAxisTitle=n.default;var s=r(159);e.ChartNavigatorCategoryAxisLabels=s.default;var a=r(160);e.ChartNavigatorCategoryAxisNotes=a.default;var p=r(161);e.ChartNavigatorCategoryAxisNotesIcon=p.default;var l=r(162);e.ChartNavigatorCategoryAxisNotesLabel=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(164);e.ChartNavigatorPaneTitle=i.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(166);e.ChartNavigatorSeriesItemTooltip=i.default;var o=r(167);e.ChartNavigatorSeriesItemOutliers=o.default;var n=r(168);e.ChartNavigatorSeriesNotes=n.default;var s=r(169);e.ChartNavigatorSeriesMarkers=s.default;var a=r(170);e.ChartNavigatorSeriesLabels=a.default;var p=r(171);e.ChartNavigatorSeriesHighlight=p.default;var l=r(172);e.ChartNavigatorSeriesExtremes=l.default;var c=r(173);e.ChartNavigatorSeriesErrorBars=c.default;var h=r(174);e.ChartNavigatorSeriesLabelsFrom=h.default;var u=r(175);e.ChartNavigatorSeriesLabelsTo=u.default;var f=r(176);e.ChartNavigatorSeriesNotesLabel=f.default;var d=r(177);e.ChartNavigatorSeriesNotesIcon=d.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(179);e.WeekStartDay=i.WeekStartDay},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.WeekStartDay||(e.WeekStartDay={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(13);e.AxisLabelClickEvent=i.AxisLabelClickEvent;var o=r(15);e.DragEndEvent=o.DragEndEvent;var n=r(14);e.DragEvent=n.DragEvent;var s=r(16);e.DragStartEvent=s.DragStartEvent;var a=r(18);e.LegendItemClickEvent=a.LegendItemClickEvent;var p=r(17);e.LegendItemHoverEvent=p.LegendItemHoverEvent;var l=r(19);e.NavigatorFilterEvent=l.NavigatorFilterEvent;var c=r(20);e.NoteClickEvent=c.NoteClickEvent;var h=r(21);e.NoteHoverEvent=h.NoteHoverEvent;var u=r(22);e.PlotAreaClickEvent=u.PlotAreaClickEvent;var f=r(23);e.PlotAreaHoverEvent=f.PlotAreaHoverEvent;var d=r(24);e.RenderEvent=d.RenderEvent;var v=r(26);e.SelectEndEvent=v.SelectEndEvent;var y=r(25);e.SelectEvent=y.SelectEvent;var g=r(27);e.SelectStartEvent=g.SelectStartEvent;var m=r(28);e.SeriesClickEvent=m.SeriesClickEvent;var x=r(29);e.SeriesHoverEvent=x.SeriesHoverEvent;var b=r(31);e.ZoomEndEvent=b.ZoomEndEvent;var _=r(30);e.ZoomEvent=_.ZoomEvent;var w=r(32);e.ZoomStartEvent=w.ZoomStartEvent},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAxisByName=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findAxisByName(e)};e.findPaneByIndex=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findPaneByIndex(e)};e.findPaneByName=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findPaneByName(e)};e.exportVisual=function(t,e){if(void 0===e&&(e={}),t&&null!==t.chartInstance)return t.chartInstance.exportVisual(e)}},function(t,e,r){"use strict";r.r(e),r.d(e,"Popup",(function(){return pt})),r.d(e,"PopupPropsContext",(function(){return at}));var i=r(1),o=r(45),n=r(3),s=function(t){t.style.transitionDuration="",t.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},a="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),p=r(4),l="bottom",c="center",h="middle",u="left",f="right",d="top",v=function(t){var e=t.anchorRect,r=t.anchorAlign,i=t.elementRect,o=t.elementAlign,n=t.margin;void 0===n&&(n={});var s=r.horizontal,a=r.vertical,p=o.horizontal,u=o.vertical,d=n.horizontal||0,v=n.vertical||0,y=e.top,g=e.left;return a===l&&(y+=e.height),a!==c&&a!==h||(y+=Math.round(e.height/2)),u===l&&(y-=i.height,v*=-1),u!==c&&u!==h||(y-=Math.round(i.height/2),v*=-1),s===f&&(g+=e.width),s!==c&&s!==h||(g+=Math.round(e.width/2)),p===f&&(g-=i.width,d*=-1),p!==c&&p!==h||(g-=Math.round(i.width/2),d*=-1),{top:y+v,left:g+d}};function y(t){return t.ownerDocument||t.document||t}var g=function(t){return y(t).defaultView},m=function(t){return y(t).documentElement},x=0;function b(){if(!x&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),x=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return x}function _(t){var e=g(t),r=m(t),i={height:e.innerHeight,width:e.innerWidth};return r.scrollHeight-r.clientHeight>0&&(i.width-=b()),i}var w=function(t){if(!t.getBoundingClientRect){var e=_(t);return{bottom:e.height,left:0,right:e.width,top:0}}var r=t.getBoundingClientRect();return{bottom:r.bottom,left:r.left,right:r.right,top:r.top}},O=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||m(t)},S=function(t){return O(t)===t.ownerDocument.body},P=function(t){var e=t.getBoundingClientRect(),r=e.left,i=e.top;return e.height||e.width||(e=function(t){var e=t.style,r=e.display,i=e.left,o=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var n=t.getBoundingClientRect();return t.style.display=r,t.style.left=i,t.style.position=o,n}(t)),{top:i,left:r,height:e.height,width:e.width}},A=function(t,e){for(var r=[],i=t.parentNode;i&&(r.push(i),i!==e);)i=i.parentNode;return r};function C(t){var e=m(t),r=g(t);return{x:r.pageXOffset||e.scrollLeft||0,y:r.pageYOffset||e.scrollTop||0}}var k=function(t){return t===(t.ownerDocument||{}).body?C(t):{x:t.scrollLeft,y:t.scrollTop}};var j=function(t,e){var r=g(t),i=r.getComputedStyle(t),o=P(t),n=e||O(t),s=t.ownerDocument,a=n!==s.body&&n!==s.documentElement,p={top:0,left:0};if("fixed"!==i.position&&a){var l=r.getComputedStyle(n);(p=P(n)).top+=parseInt(l.borderTopWidth,10),p.left+=parseInt(l.borderLeftWidth,10)}return{top:o.top-p.top,left:o.left-p.left,height:o.height,width:o.width}},M=function(t,e){return t?k(t):function(t){var e=O(t);return e?k(e):{x:0,y:0}}(e)};var T="fit",E="flip",R=function(t,e,r){var i=0;return t+e>r&&(i=r-(t+e)),t<0&&(i=-t),i},I=function(t){var e=t.offset,r=t.size,i=t.anchorSize,o=t.viewPortSize,n=t.anchorAlignPoint,s=t.elementAlignPoint,a=0,p=2*t.margin;if(s!==n&&!(s===c||s===h)&&!(n===c||n===h)){var l=n===d||n===u;e<0&&l?e+(a=r+i+p)+r>o&&(a=0):e>=0&&!l&&(e+r>o&&(a+=-(i+r+p)),e+a<0&&(a=0))}return a},B=function(t){var e=t.anchorRect,r=t.anchorAlign,i=t.elementRect,o=t.elementAlign,n=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var p=i.top,l=i.left,c=i.height,h=i.width,u=s.height,f=s.width,d=a.horizontal||0,v=a.vertical||0,y=0,g=0,m=n.horizontal===E,x=n.vertical===E;n.vertical===T&&(g+=R(p,c,u)),n.horizontal===T&&(y+=R(l,h,f)),x&&(g+=I({margin:v,offset:p,size:c,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:r.vertical,elementAlignPoint:o.vertical})),m&&(y+=I({margin:d,offset:l,size:h,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:r.horizontal,elementAlignPoint:o.horizontal}));var b=m&&0!==y,_=x&&0!==g;return{flipped:b||_,flip:{horizontal:b,vertical:_},offset:{left:y,top:g}}},L=function(t){for(var e=[],r=t.parentNode.firstElementChild;r;)r!==t&&e.push(r),r=r.nextElementSibling;return e},V=function(t,e){for(var r,i,o=A(t),n=e;n&&(r=L(n),!(i=o.reduce((function(t,e){return t.concat(r.filter((function(t){return t===e})))}),[])[0]));)n=n.parentElement;return i};var z,D=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},N=/auto|scroll/,F=function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY},U=Object(p.hasRelativeStackingContext)(),H="fit",G="flip",W="left",K="center",X="right",Y="bottom",q="top",Z=function(){function t(t){this._dom=t}return t.prototype.alignElement=function(t){var e=t.anchor,r=t.element,i=t.anchorAlign,o=t.elementAlign,n=t.offset,s=!this._dom.hasOffsetParent(r)?this.absoluteRect(e,r,n):this.relativeRect(e,r,n);return this._dom.align({anchorAlign:i,anchorRect:s,elementAlign:o,elementRect:this._dom.offset(r)})},t.prototype.absoluteRect=function(t,e,r){var i=this._dom,o=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t}(D(i.offset(t),r),i.stackingElementOffset(e)),n=i.stackingElementScroll(e),s=i.addScroll(o,n),a=this.elementScrollPosition(t,e),p=i.removeScroll(s,a);return p.left+=window.scrollX||window.pageXOffset,p.top+=window.scrollY||window.pageYOffset,p},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,r){return D(this._dom.position(t,e),r)},t}(),$=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.align=function(t){return v(t)},t.prototype.boundingOffset=function(t){return w(t)},t.prototype.getWindow=function(){return p.canUseDOM?window:null},t.prototype.isBodyOffset=function(t){return S(t)},t.prototype.hasOffsetParent=function(t){if(!t)return!1;var e=t.offsetParent;return e&&!("BODY"===e.nodeName&&"static"===window.getComputedStyle(e).position)},t.prototype.offset=function(t){return t?P(t):null},t.prototype.staticOffset=function(t){if(!t)return null;var e=t.style,r=e.left,i=e.top;t.style.left="0px",t.style.top="0px";var o=P(t);return t.style.left=r,t.style.top=i,o},t.prototype.position=function(t,e){return t&&e?function(t,e,r){void 0===r&&(r=1);var i=e?O(e):null,o=j(t,i),n=o.top,s=o.left,a=o.height,p=o.width,l=M(i,t),c=l.x,h=l.y,u=t.ownerDocument,f=i===u.body||i===u.documentElement?1:r;return{top:n+h*f,left:s+c*f,height:a,width:p}}(t,V(t,e)):null},t.prototype.relativeOffset=function(t,e){return r=this.offset(t),i=e,o=this.isBodyOffset(t),n=r.top,s=r.left,o&&(s=0,n=0),{top:n+i.top,left:s+i.left,height:r.height,width:r.width};var r,i,o,n,s},t.prototype.addScroll=function(t,e){return function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}(t,e)},t.prototype.removeScroll=function(t,e){return function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}(t,e)},t.prototype.restrictToView=function(t){return B(t)},t.prototype.scrollPosition=function(t){return C(t)},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!p.canUseDOM)return e;for(var r=t.parentElement;r;)N.test(F(r))&&e.push(r),r=r.parentElement;return e.push(window),e}(t)},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?P(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.stackingElementViewPort=function(t){var e=this.getRelativeContextElement(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},t.prototype.getRelativeContextElement=function(t){if(!t||!U)return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return _(t)},t.prototype.zIndex=function(t,e){return function(t,e){if(!t||!p.canUseDOM)return null;var r=V(t,e);if(!r)return null;var i=[t].concat(A(t,r)).reduce((function(t,e){var r=e.style.zIndex||window.getComputedStyle(e).zIndex,i=parseInt(r,10);return i>t?i:t}),0);return i?i+1:null}(t,e)},t.prototype.zoomLevel=function(){return p.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t}(),Q=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e,r,i=t.anchor,o=t.currentLocation,n=t.element,s=t.anchorAlign,a=t.elementAlign,p=t.collisions,l=this._dom,c=t.viewPort||l.stackingElementViewPort(n)||l.windowViewPort(n),h=D(l.offset(i),o),u=(e=l.staticOffset(n),(r=o)?{height:e.height,left:r.left,top:r.top,width:e.width}:e),f=this.elementRect(n,u),d=l.restrictToView({anchorAlign:s,anchorRect:h,collisions:p,elementAlign:a,elementRect:f,viewPort:c});return{flipped:d.flipped,offset:l.addOffset(u,d.offset)}},t.prototype.elementRect=function(t,e){return this._dom.removeScroll(e,this._dom.scrollPosition(t))},t}(),J={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1637181034,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},tt=(z=function(t,e){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),et=function(){return(et=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function rt(t,e){if(t===e)return!0;if(!!t!=!!e)return!1;var r=Object.getOwnPropertyNames(t),i=Object.getOwnPropertyNames(e);if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++){var n=r[o];if(t[n]!==e[n])return!1}return!0}var it,ot={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(it||(it={}));var nt=function(t){function e(e){var r=t.call(this,e)||this;return r.state={current:it.hidden,previous:it.hidden,props:{}},r._popup=null,r.show=function(t){r.setPosition(t),r.animate(t.firstChild,"enter",r.onOpened),r.setState({current:it.shown,previous:r.state.current})},r.setPosition=function(t){var e=r.props,i=e.anchorAlign,o=e.popupAlign,n=e.collision,s=e.offset,a=e.anchor,p=t.firstElementChild,l=getComputedStyle(p),c=l.width,h=l.height;p.style.position="absolute",p.style.width=c,p.style.height=h;var u=r._alignService.alignElement({anchor:a,element:p,elementAlign:o,anchorAlign:i,offset:s}),f=r._positionService.positionElement({anchor:a,anchorAlign:i,collisions:n,element:p,currentLocation:u,elementAlign:o});f.offset&&(t.style.top=f.offset.top+"px",t.style.left=f.offset.left+"px",p.style.position="",p.style.width="",p.style.height=""),r._flipped=f.flipped},r.onOpened=function(){var t=r._popup;t&&(r.props.show&&t.classList.add("k-animation-container-shown"),r.attachRepositionHandlers(t),r.props.onOpen&&r.props.onOpen.call(void 0,{target:r}))},r.animate=function(t,e,i){!function(t,e,r,i,o){if(0===r)return o();var n="k-slide-"+e+"-"+i,p=n+"-active",l=function(){t.removeEventListener("transitionend",l),s(t),o()};t.addEventListener("transitionend",l);var c=t.ownerDocument;if(c){var h=c.defaultView;if(h){var u=function(){s(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=r+"ms",t.classList.add(p)}))};a?h.requestAnimationFrame(u):u()}}}(t,r._flipped?"up":"down",r.animationDuration[e],e,i)},r.onClosing=function(t){r.props.show||t.classList.remove("k-animation-container-shown"),r.detachRepositionHandlers()},r.onClosed=function(){r.state.current===it.hiding&&r.state.previous===it.shown&&r.setState({current:it.hidden,previous:r.state.current}),r.props.onClose&&r.props.onClose.call(void 0,{target:r})},Object(p.validatePackage)(J),r._domService=new $,r._alignService=new Z(r._domService),r._positionService=new Q(r._domService),r.reposition=function(t,e,r){var i,o,n,s;void 0===r&&(r={});var a=0;r=r||{};var p=function(){a=!1===r.leading?0:(new Date).getTime(),i=null,s=t.apply(o,n),i||(o=n=null)};return function(){var l=(new Date).getTime();a||!1!==r.leading||(a=l);var c=e-(l-a);return o=this,n=arguments,c<=0||c>e?(i&&(clearTimeout(i),i=null),a=l,s=t.apply(o,n),i||(o=n=null)):i||!1===r.trailing||(i=window.setTimeout(p,c)),s}}(r.reposition.bind(r),1e3/60),r}return tt(e,t),e.getDerivedStateFromProps=function(t,e){var r=t.show,i=t.anchor,o=t.anchorAlign,n=t.appendTo,s=t.collision,a=t.popupAlign,p=t.className,l=t.popupClass,c=t.style,h=t.offset,u=t.contentKey,f=et({},e,{props:{show:r,anchor:i,anchorAlign:o,appendTo:n,collision:s,popupAlign:a,className:p,popupClass:l,style:c,offset:h,contentKey:u}});return t.show?e.current===it.hidden||e.current===it.hiding?et({},f,{current:it.showing,previous:e.current}):e.current===it.showing?et({},f,{current:it.shown,previous:e.current}):e.current!==it.shown||rt(h,e.props.offset)&&rt(o,e.props.anchorAlign)&&rt(n,e.props.appendTo)&&rt(s,e.props.collision)&&rt(a,e.props.popupAlign)&&rt(c,e.props.style)&&i===e.props.anchor&&l===e.props.popupClass&&p===e.props.className?f:et({},f,{current:it.reposition,previous:e.current}):e.current===it.hiding||e.current===it.hidden?et({},f,{current:it.hidden,previous:e.current}):et({},f,{current:it.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===it.showing&&this._popup?this.show(this._popup):this.state.current===it.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===it.reposition&&this.state.previous===it.shown?this.setState({current:it.shown,previous:this.state.current}):this.state.current===it.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===it.showing&&this._popup&&this.show(this._popup)},e.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},e.prototype.render=function(){var t=this,e=this.props,r=e.children,n=e.className,s=e.popupClass,a=e.show,l=e.id,c=this.props.appendTo?this.props.appendTo:p.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===it.reposition&&this.state.previous===it.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:"absolute"},this.props.style||{}),u=this.state.current===it.hiding;if((a||u)&&c){var f=i.createElement("div",{className:Object(p.classNames)("k-animation-container","k-animation-container-relative",n),id:l,ref:function(e){return t._popup=e},style:h},i.createElement("div",{className:Object(p.classNames)(s,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},r));return o.createPortal(f,c)}return null},Object.defineProperty(e.prototype,"animationDuration",{get:function(){var t=this.props.animate,e=0,r=0;return t&&(!0===t?e=r=300:(e=t.openDuration||0,r=t.closeDuration||0)),{enter:e,exit:r}},enumerable:!0,configurable:!0}),e.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||t),this._scrollableParents.map((function(t){return t.addEventListener("scroll",e.reposition)})),window.addEventListener("resize",this.reposition)},e.prototype.detachRepositionHandlers=function(){var t=this;this._scrollableParents&&(this._scrollableParents.map((function(e){return e.removeEventListener("scroll",t.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},e.prototype.reposition=function(){this.setState({current:it.reposition,previous:this.state.current})},e.propTypes={anchor:function(t){var e=t.anchor;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(t){var e=t.appendTo;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:n.string,id:n.string,popupClass:n.string,collision:n.shape({horizontal:n.oneOf([H,G]),vertical:n.oneOf([H,G])}),anchorAlign:n.shape({horizontal:n.oneOf([W,K,X]),vertical:n.oneOf([q,K,Y])}),popupAlign:n.shape({horizontal:n.oneOf([W,K,X]),vertical:n.oneOf([q,K,Y])}),offset:n.shape({left:n.number,top:n.number}),children:n.oneOfType([n.element,n.node]),show:n.bool,animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})])},e.defaultProps={collision:{horizontal:H,vertical:G},anchorAlign:{horizontal:W,vertical:Y},popupAlign:{horizontal:W,vertical:q},offset:ot,animate:!0,show:!1},e}(i.Component),st=function(){return(st=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},at=i.createContext((function(t){return t})),pt=i.forwardRef((function(t,e){var r=i.useContext(at).call(void 0,t);return i.createElement(nt,st({ref:e},r))}))}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing"),require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["@progress/kendo-drawing","react","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl"],e):"object"==typeof exports?exports.KendoReactCharts=e(require("@progress/kendo-drawing"),require("react"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):t.KendoReactCharts=e(t.KendoDrawing,t.React,t.PropTypes,t.KendoLicensing,t.ReactDOM,t.KendoReactIntl)}(window,(function(t,e,r,i,o,n){return function(t){var e={};function r(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=e,r.d=function(t,e,i){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(i,o,function(e){return t[e]}.bind(null,o));return i},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=46)}([function(e,r){e.exports=t},function(t,r){t.exports=e},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(34),l=r(35),c=r(9),h=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.optionsStore=r.optionsStore,i.childStore=p.default(l.optionsReducer),i}return o(e,t),e.prototype.render=function(){var t=this,e=this.props.children;return void 0!==e?a.Children.map(e,(function(e){return a.isValidElement(e)?t.renderChildren(e):e})):null},e.prototype.componentDidMount=function(){this.dispatch()},e.prototype.componentDidUpdate=function(){this.dispatch()},e.prototype.dispatch=function(){var t=this.props,e=t._chartKey,r=t._chartCollectionIdxKey,i=t._parentStore,o=(t.children,s(t,["_chartKey","_chartCollectionIdxKey","_parentStore","children"]));(i||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:r,payload:Object.assign({},o,this.childStore.getState())})},e.prototype.renderChildren=function(t){var e=t.props.children,r=n({},t.props,{_parentStore:this.childStore});return a.cloneElement(t,r,e)},e.contextType=c.ChartContext,e}(a.Component);e.default=h},function(t,e){t.exports=r},function(t,e,r){"use strict";r.r(e),r.d(e,"BrowserSupportService",(function(){return o})),r.d(e,"canUseDOM",(function(){return n})),r.d(e,"canUseRef",(function(){return s})),r.d(e,"classNames",(function(){return a})),r.d(e,"cloneDate",(function(){return l})),r.d(e,"clone",(function(){return c})),r.d(e,"cloneObject",(function(){return h})),r.d(e,"cloneValue",(function(){return u})),r.d(e,"cloneArray",(function(){return f})),r.d(e,"Draggable",(function(){return C})),r.d(e,"focusFirstFocusableChild",(function(){return k})),r.d(e,"FormComponent",(function(){return j})),r.d(e,"getTabIndex",(function(){return M})),r.d(e,"getter",(function(){return I})),r.d(e,"guid",(function(){return B})),r.d(e,"Keys",(function(){return L})),r.d(e,"noop",(function(){return V})),r.d(e,"getScrollbarWidth",(function(){return z})),r.d(e,"setScrollbarWidth",(function(){return D})),r.d(e,"setter",(function(){return U})),r.d(e,"mapTree",(function(){return W})),r.d(e,"mapTreeItem",(function(){return K})),r.d(e,"extendDataItem",(function(){return X})),r.d(e,"getItemPath",(function(){return Y})),r.d(e,"validatePackage",(function(){return Z})),r.d(e,"hasRelativeStackingContext",(function(){return $})),r.d(e,"dispatchEvent",(function(){return Q})),r.d(e,"AsyncFocusBlur",(function(){return et})),r.d(e,"createPropsContext",(function(){return ot})),r.d(e,"withPropsContext",(function(){return nt})),r.d(e,"useDir",(function(){return st})),r.d(e,"useAsyncFocusBlur",(function(){return J})),r.d(e,"useDraggable",(function(){return at})),r.d(e,"useRtl",(function(){return pt})),r.d(e,"useMouse",(function(){return lt})),r.d(e,"useCustomComponent",(function(){return ct})),r.d(e,"usePropsContext",(function(){return rt})),r.d(e,"Icon",(function(){return dt})),r.d(e,"SvgIcon",(function(){return mt})),r.d(e,"Typography",(function(){return Tt}));var i=function(){return"undefined"!=typeof document?document:{}},o=function(){function t(){}return Object.defineProperty(t.prototype,"scrollbarWidth",{get:function(){var t=i();if(!this.scrollbar&&t&&t.createElement){var e=t.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",t.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,t.body.removeChild(e)}return this.scrollbar},enumerable:!0,configurable:!0}),t}(),n=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),s=function(t){return"string"!=typeof Comment&&(function(t){return Boolean("function"==typeof t&&!!t.prototype.isReactComponent)}(t)||function(t){return Boolean(t.$$typeof&&"function"==typeof t.render)}(t))},a=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?a.apply(void 0,t):"object"==typeof t?Object.keys(t).map((function(e,r){return t[r]||t[e]&&e||null})).filter((function(t){return null!==t})).join(" "):t})).filter((function(t){return!!t})).join(" ")},p=r(1),l=function(t){return t?new Date(t.getTime()):null};function c(t){var e={};return h(t,e),e}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)){var i=t[r];e[r]=u(i,e[r])}}function u(t,e){if(Array.isArray(t))return f(t);if(t instanceof Date)return l(t);if(p.isValidElement(t))return p.cloneElement(t,t.props);if(t&&"object"==typeof t){var r=e||{};return h(t,r),r}return t}function f(t){return t.map((function(t){return u(t,void 0)}))}var d=r(3),v=function(t,e){return function(r){return e(t(r))}},y=function(t,e,r){return t.addEventListener&&t.addEventListener(e,r)},g=function(t,e,r){return t&&t.removeEventListener&&t.removeEventListener(e,r)},m=function(){},x=function(t){return t.preventDefault()},b=/touch/;function _(t){return t.type.match(b)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,type:t.type,originalEvent:t,isTouch:!0}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,originalEvent:t}}var w=function(t){var e=this,r=t.press;void 0===r&&(r=m);var i=t.drag;void 0===i&&(i=m);var o=t.release;void 0===o&&(o=m);var n=t.mouseOnly;void 0===n&&(n=!1),this._pressHandler=v(_,r),this._dragHandler=v(_,i),this._releaseHandler=v(_,o),this._ignoreMouse=!1,this._mouseOnly=n,this._touchstart=function(t){1===t.touches.length&&e._pressHandler(t)},this._touchmove=function(t){1===t.touches.length&&e._dragHandler(t)},this._touchend=function(t){0===t.touches.length&&1===t.changedTouches.length&&(e._releaseHandler(t),e._ignoreMouse=!0,setTimeout(e._restoreMouse,2e3))},this._restoreMouse=function(){e._ignoreMouse=!1},this._mousedown=function(t){var r=t.which;r&&r>1||e._ignoreMouse||(y(e.document,"mousemove",e._mousemove),y(e.document,"mouseup",e._mouseup),e._pressHandler(t))},this._mousemove=function(t){e._dragHandler(t)},this._mouseup=function(t){g(e.document,"mousemove",e._mousemove),g(e.document,"mouseup",e._mouseup),e._releaseHandler(t)},this._pointerdown=function(t){t.isPrimary&&0===t.button&&(y(e.document,"pointermove",e._pointermove),y(e.document,"pointerup",e._pointerup),y(e.document,"pointercancel",e._pointerup),y(e.document,"contextmenu",x),e._pressHandler(t))},this._pointermove=function(t){t.isPrimary&&e._dragHandler(t)},this._pointerup=function(t){t.isPrimary&&(g(e.document,"pointermove",e._pointermove),g(e.document,"pointerup",e._pointerup),g(e.document,"pointercancel",e._pointerup),g(e.document,"contextmenu",x),e._releaseHandler(t))}},O={document:{configurable:!0}};w.supportPointerEvent=function(){return"undefined"!=typeof window&&window.PointerEvent},O.document.get=function(){return this._element?this._element.ownerDocument:document},w.prototype.bindTo=function(t){t!==this._element&&(this._element&&this._unbindFromCurrent(),this._element=t,this._bindToCurrent())},w.prototype._bindToCurrent=function(){var t=this._element;this._usePointers()?y(t,"pointerdown",this._pointerdown):(y(t,"mousedown",this._mousedown),this._mouseOnly||(y(t,"touchstart",this._touchstart),y(t,"touchmove",this._touchmove),y(t,"touchend",this._touchend)))},w.prototype._unbindFromCurrent=function(){var t=this._element;if(this._usePointers())return g(t,"pointerdown",this._pointerdown),g(this.document,"pointermove",this._pointermove),g(this.document,"pointerup",this._pointerup),g(this.document,"contextmenu",x),void g(this.document,"pointercancel",this._pointerup);g(t,"mousedown",this._mousedown),this._mouseOnly||(g(t,"touchstart",this._touchstart),g(t,"touchmove",this._touchmove),g(t,"touchend",this._touchend))},w.prototype._usePointers=function(){return!this._mouseOnly&&w.supportPointerEvent()},w.prototype.update=function(t){var e=t.press;void 0===e&&(e=m);var r=t.drag;void 0===r&&(r=m);var i=t.release;void 0===i&&(i=m);var o=t.mouseOnly;void 0===o&&(o=!1),this._pressHandler=v(_,e),this._dragHandler=v(_,r),this._releaseHandler=v(_,i),this._mouseOnly=o},w.prototype.destroy=function(){this._unbindFromCurrent(),this._element=null},Object.defineProperties(w.prototype,O),w.default=w;var S,P=w,A=(S=function(t,e){return(S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}S(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),C=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.element=null,e.draggable=new P({press:function(t){e.element&&e.props.onPress&&e.props.onPress.call(void 0,{target:e,event:t,element:e.element})},drag:function(t){e.element&&e.props.onDrag&&e.props.onDrag.call(void 0,{target:e,event:t,element:e.element})},release:function(t){e.element&&e.props.onRelease&&e.props.onRelease.call(void 0,{target:e,event:t})}}),e.childRef=function(t){var r=e.props.childRef;e.element=t,r&&"function"==typeof r&&r(t)},e}return A(e,t),e.prototype.componentDidMount=function(){this.element&&this.draggable.bindTo(this.element)},e.prototype.componentWillUnmount=function(){this.draggable.destroy()},e.prototype.render=function(){return p.cloneElement(p.Children.only(this.props.children),{ref:this.childRef})},e.propTypes={children:d.element.isRequired},e}(p.Component),k=function(t){if(t){if((t instanceof HTMLInputElement||-1!==t.tabIndex)&&t.focus)return void t.focus();var e=t.querySelector('input, [tabindex]:not([tabindex="-1"])');e&&e.focus&&e.focus()}},j=function(){},M=function(t,e,r){var i="string"==typeof t?parseInt(t,void 0):t;if(NaN!==i)return void 0!==i?i:e?r?void 0:-1:0},T=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function E(t){var e=[];return t.replace(T,(function(t,r,i,o){e.push(void 0!==r?r:i||o)})),e}var R={};function I(t){if(R[t])return R[t];var e=E(t);return R[t]=function(t){for(var r=t,i=0;i<e.length&&r;i++)r=r[e[i]];return r},R[t]}R.undefined=function(){};var B=function(){var t,e,r="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(r+="-"),r+=(12===t?4:16===t?3&e|8:e).toString(16);return r},L={backspace:8,tab:9,enter:13,shift:16,esc:27,space:32,pageUp:33,pageDown:34,end:35,home:36,left:37,up:38,right:39,down:40,delete:46},V=function(){},z=function(){return!(!n||!document.body)&&(new o).scrollbarWidth},D=function(){if(!n||!document.body)return!1;var t=(new o).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",t+"px")},N={undefined:function(t){return t}},F=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function U(t){if(N[t])return N[t];var e=E(t);return N[t]=function(t,r,i){for(var o=t,n=e.length-1,s=0;s<n&&o;s++)o=o[e[s]]=o[e[s]]||F(e[s+1],i);o[e[n]]=r},N[t]}var H=function(){return(H=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function G(t,e,r){var i;return r?H({},t,((i={})[e]=r.length?r.slice():void 0,i)):t&&t[e]?t[e].slice():[]}var W=function(t,e,r){return t.map((function(t){return function t(e,r,i){if(e[r]){var o=G(e,r).map((function(e){return t(e,r,i)}));return i(G(e,r,o))}return i(e)}(t,e,r)})).slice()},K=function(t,e,r,i){for(var o=t,n=[],s=0;s<e.length;s++)o=o[e[s]],o=Array.isArray(o)?o:o[r],n.push(o);var a=n.length>1?n[n.length-2]:t,p=e[e.length-1],l=i(a[p]);a.splice(p,1,l)},X=function(t,e,r){var i;return Object.assign({},t,t[e]?((i={})[e]=t[e].slice(),i):{},r||{})},Y=function(t,e,r){var i=[],o=e.slice();if(o.length){var n=t[o.shift()||0];for(i.push(n);o.length&&r;)n=n[r][o.shift()||0],i.push(n)}return i},q=r(12);function Z(t){if(void 0!==q)q.validatePackage(t);else{var e="License activation failed for "+t.name+"\n";e+="The @progress/kendo-licensing script is not loaded.\n",e+="See "+t.licensingDocsUrl+" for more information.\n",console.warn(e)}}var $=function(t){if(!n)return!1;var e=t?t.ownerDocument:document;if(!e||!e.body)return!1;var r=e.createElement("div");r.style.transform="matrix(10, 0, 0, 10, 0, 0)",r.innerHTML='<div style="position: fixed; top: 10px;">child</div>',e.body.appendChild(r);var i=10!==r.children[0].getBoundingClientRect().top;return e.body.removeChild(r),i};function Q(t,e,r,i){if(t){var o={syntheticEvent:e,nativeEvent:e.nativeEvent,target:r};t.call(void 0,Object.assign(o,i))}}function J(t){var e=t.onFocus,r=t.onBlur,i=t.onSyncFocus,o=t.onSyncBlur,n=p.useRef(!1),s=p.useRef(0),a=p.useCallback((function(t){clearTimeout(s.current),s.current=window.setTimeout((function(){return t()}))}),[s]),l=p.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(s.current),i&&i.call.apply(i,[void 0].concat(t)),n.current||(n.current=!0,e&&e.call.apply(e,[void 0].concat(t)))}),[n,e,i]),c=p.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];o&&o.call.apply(o,[void 0].concat(t)),a((function(){n.current&&r&&(n.current=!1,r.call.apply(r,[void 0].concat(t)))}))}),[n,a,r,o]);return p.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:l,onBlur:c}}var tt=function(){return(tt=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},et=function(t){var e=t.children,r=J({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return e.call(void 0,tt({},r))},rt=function(t,e){return p.useContext(t)(e)},it=function(){return(it=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ot=function(){return p.createContext((function(t){return t}))},nt=function(t,e){return p.forwardRef((function(r,i){var o=rt(t,r);return p.createElement(e,it({},o,{ref:i}))}))};function st(t,e,r){var i=p.useState(e),o=i[0],n=i[1];return p.useEffect((function(){if(!o&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),o}function at(t,e){var r=e.onPress,i=e.onDrag,o=e.onRelease,n=p.useMemo((function(){return new P({press:r,drag:i,release:o})}),[]);p.useEffect((function(){var e=t.current;if(e)return n.bindTo(e),function(){n.destroy()}}),[]),p.useEffect((function(){n.update({press:r,drag:i,release:o})}),[r,i,o])}function pt(t,e,r){var i=p.useState(e),o=i[0],n=i[1];return p.useEffect((function(){if(!o&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),o}var lt=function(t,e,r){void 0===r&&(r={});var i=p.useCallback((function(i){r.onMouseDown&&r.onMouseDown.call(void 0,i),t.onMouseDown&&t.onMouseDown.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseDown,t.onMouseDown,e]),o=p.useCallback((function(i){r.onMouseUp&&r.onMouseUp.call(void 0,i),t.onMouseUp&&t.onMouseUp.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseUp,t.onMouseUp,e]);return{onClick:p.useCallback((function(i){r.onClick&&r.onClick.call(void 0,i),t.onClick&&t.onClick.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onClick,t.onClick,e]),onMouseUp:o,onMouseDown:i,onDoubleClick:p.useCallback((function(i){r.onDoubleClick&&r.onDoubleClick.call(void 0,i),t.onDoubleClick&&t.onDoubleClick.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onDoubleClick,t.onDoubleClick,e]),onMouseEnter:p.useCallback((function(i){r.onMouseEnter&&r.onMouseEnter.call(void 0,i),t.onMouseEnter&&t.onMouseEnter.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseEnter,t.onMouseEnter,e]),onMouseLeave:p.useCallback((function(i){r.onMouseLeave&&r.onMouseLeave.call(void 0,i),t.onMouseLeave&&t.onMouseLeave.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseLeave,t.onMouseLeave,e]),onMouseMove:p.useCallback((function(i){r.onMouseMove&&r.onMouseMove.call(void 0,i),t.onMouseMove&&t.onMouseMove.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseMove,t.onMouseMove,e]),onMouseOut:p.useCallback((function(i){r.onMouseOut&&r.onMouseOut.call(void 0,i),t.onMouseOut&&t.onMouseOut.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseOut,t.onMouseOut,e]),onMouseOver:p.useCallback((function(i){r.onMouseOver&&r.onMouseOver.call(void 0,i),t.onMouseOver&&t.onMouseOver.call(void 0,{target:e.current,syntheticEvent:i})}),[r.onMouseOver,t.onMouseOver,e])}},ct=function(t){return p.isValidElement(t)?[t.type,t.props]:[t,{}]},ht={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},ut=function(){return(ut=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},ft=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r},dt=p.forwardRef((function(t,e){var r=t.className,i=t.name,o=t.themeColor,n=t.size,s=t.flip,l=t.style,c=ft(t,["className","name","themeColor","size","flip","style"]),h=p.useRef(null),u=p.useRef(null);p.useImperativeHandle(h,(function(){return{element:u.current}})),p.useImperativeHandle(e,(function(){return h.current}));var f=p.useMemo((function(){return o||vt.themeColor}),[o]),d=p.useMemo((function(){return n||vt.size}),[n]),v=p.useMemo((function(){return s||vt.flip}),[s]),y=p.useMemo((function(){return a("k-icon","k-i-"+i,"k-color-"+f,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},ht[d],r)}),[i,f,d,v,r]),g=lt(t,h);return p.createElement("span",ut({ref:u},c,g,{className:y,style:l,role:"presentation"}))}));dt.propTypes={style:d.object,classNames:d.string,name:d.string,themeColor:d.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:d.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:d.oneOf(["default","horizontal","vertical","both"])};var vt={size:"default",themeColor:"inherit",flip:"default"};dt.displayName="KendoIcon";var yt=function(){return(yt=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},gt=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r},mt=p.forwardRef((function(t,e){var r=t.children,i=t.className,o=t.svgClassName,n=t.icon,s=t.flip,l=t.size,c=t.style,h=t.svgStyle,u=t.themeColor,f=t.viewBox,d=gt(t,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=p.useRef(null);p.useImperativeHandle(e,(function(){return{element:v.current}}));var y=p.useMemo((function(){return n?n.name:xt.icon}),[n]),g=p.useMemo((function(){return u||xt.themeColor}),[u]),m=p.useMemo((function(){return l||xt.size}),[l]),x=p.useMemo((function(){return s||xt.flip}),[s]),b=p.useMemo((function(){return f||xt.viewBox}),[f]),_=p.useMemo((function(){return a("k-svg-icon","k-color-"+g,"k-svg-i-"+y,{"k-flip-h":"horizontal"===x||"both"===x,"k-flip-v":"vertical"===x||"both"===x},ht[m],i)}),[y,g,m,x,i]),w=p.useMemo((function(){return t.width&&t.height?yt({width:t.width,height:t.height},c):t.width?yt({width:t.width,height:t.width},c):t.height?yt({width:t.height,height:t.height},c):yt({},c)}),[t.width,t.height,c]);return p.createElement("span",{className:_,style:w,ref:v},p.createElement("svg",yt({className:o,style:h,"aria-hidden":!0,focusable:"false",xmlns:"http://www.w3.org/2000/svg",viewBox:n?n.viewBox:b,dangerouslySetInnerHTML:n?{__html:n.content}:void 0},d),n?void 0:r))}));mt.propTypes={style:d.object,classNames:d.string,children:d.any,icon:d.object,themeColor:d.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:d.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:d.oneOf(["default","horizontal","vertical","both"])};var xt={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};mt.displayName="KendoSvgIcon";var bt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},_t={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},wt={xsmall:"k-m-xs",small:"k-m-sm",medium:"k-m-md",large:"k-m-lg",xlarge:"k-m-xl",thin:"k-m-thin",hair:"k-m-hair"},Ot={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},St={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},Pt={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},At={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},Ct={inherit:"k-color-inherit",primary:"k-color-primary",secondary:"k-color-secondary",tertiary:"k-color-tertiary",info:"k-color-info",success:"k-color-success",warning:"k-color-warning",error:"k-color-error",dark:"k-color-dark",light:"k-color-light",inverse:"k-color-inverse"},kt=function(){return(kt=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},jt=function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r},Mt=function(t){var e=p.forwardRef((function(e,r){var i=e.className,o=e.fontSize,n=e.fontWeight,s=e.textAlign,a=e.textTransform,l=e.themeColor,c=e.margin,h=jt(e,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),u=p.useRef(null),f=p.useRef(null);p.useImperativeHandle(u,(function(){return{element:f.current,props:e}})),p.useImperativeHandle(r,(function(){return u.current}));var d=t,v=function(){if(void 0!==c){if("string"==typeof c)return[wt[c]];if("number"==typeof c&&c>=0&&c<=24)return["k-m-"+c];if("object"==typeof c){var t=[];return Object.keys(c).forEach((function(e){var r,i;null!==c[e]&&void 0!==c[e]&&t.push((r=e,i=c[e],""+St[r]+("string"==typeof i?Ot[i]:i)))})),t.join(" ")}}};return p.createElement(d,kt({ref:f,className:["k-"+("p"===t?"paragraph":t),bt[o],_t[n],Pt[s],At[a],Ct[l],v(),i].filter((function(t){return void 0!==t})).join(" ")},h),e.children)}));return e.propTypes={style:d.object,className:d.string,fontSize:d.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:d.oneOf(["light","normal","bold"]),margin:d.oneOfType([d.number,d.object,d.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:d.oneOf(["left","right","center","justify"]),textTransform:d.oneOf(["lowercase","uppercase","capitalize"]),themeColor:d.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography"+t.toUpperCase(),e},Tt={h1:Mt("h1"),h2:Mt("h2"),h3:Mt("h3"),h4:Mt("h4"),h5:Mt("h5"),h6:Mt("h6"),p:Mt("p"),code:Mt("code"),pre:Mt("pre")}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){this.target=t};e.BaseEvent=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.hasParent=function(t,e){for(var r=t;r&&r!==e;)r=r.parentNode;return!!r},e.validateChildren=function(t,e,r,i){var o=t[e];if(o&&Array.isArray(o))for(var n=0,s=o;n<s.length;n++){var a=s[n];if(!a.type||a.type!==i)return new Error(r+" children should be Array of type "+i.displayName+".")}return null};e.toggle=function(t){return void 0!==t&&!t}},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.prevented=!1,e}return o(e,t),e.prototype.preventDefault=function(){this.prevented=!0},e.prototype.isDefaultPrevented=function(){return this.prevented},e}(r(5).BaseEvent);e.PreventableEvent=n},function(t,e,r){"use strict";r.r(e),r.d(e,"autoMajorUnit",(function(){return Yt})),r.d(e,"Point",(function(){return qt})),r.d(e,"Box",(function(){return $t})),r.d(e,"Ring",(function(){return Jt})),r.d(e,"Sector",(function(){return te})),r.d(e,"ShapeBuilder",(function(){return re})),r.d(e,"ShapeElement",(function(){return pe})),r.d(e,"ChartElement",(function(){return oe})),r.d(e,"BoxElement",(function(){return se})),r.d(e,"RootElement",(function(){return ue})),r.d(e,"FloatElement",(function(){return de})),r.d(e,"Text",(function(){return ge})),r.d(e,"TextBox",(function(){return be})),r.d(e,"Title",(function(){return we})),r.d(e,"AxisLabel",(function(){return Se})),r.d(e,"Axis",(function(){return Me})),r.d(e,"Note",(function(){return Ae})),r.d(e,"CategoryAxis",(function(){return Qe})),r.d(e,"DateCategoryAxis",(function(){return ar})),r.d(e,"DateValueAxis",(function(){return yr})),r.d(e,"NumericAxis",(function(){return dr})),r.d(e,"LogarithmicAxis",(function(){return br})),r.d(e,"PolarAxis",(function(){return Pr})),r.d(e,"RadarCategoryAxis",(function(){return Or})),r.d(e,"RadarNumericAxis",(function(){return jr})),r.d(e,"RadarLogarithmicAxis",(function(){return Tr})),r.d(e,"CurveProcessor",(function(){return Rr})),r.d(e,"Gradients",(function(){return le})),r.d(e,"rectToBox",(function(){return me})),r.d(e,"ChartAxis",(function(){return Ir})),r.d(e,"ChartPane",(function(){return Vr})),r.d(e,"ChartPlotArea",(function(){return zr})),r.d(e,"findAxisByName",(function(){return Br})),r.d(e,"Aggregates",(function(){return Fr})),r.d(e,"AreaChart",(function(){return Ri})),r.d(e,"AreaSegment",(function(){return ji})),r.d(e,"AxisGroupRangeTracker",(function(){return Ii})),r.d(e,"Bar",(function(){return Di})),r.d(e,"BarChart",(function(){return Xi})),r.d(e,"BarLabel",(function(){return Li})),r.d(e,"BoxPlotChart",(function(){return ro})),r.d(e,"BoxPlot",(function(){return to})),r.d(e,"BubbleChart",(function(){return co})),r.d(e,"Bullet",(function(){return vo})),r.d(e,"BulletChart",(function(){return go})),r.d(e,"CandlestickChart",(function(){return Qi})),r.d(e,"Candlestick",(function(){return qi})),r.d(e,"CategoricalChart",(function(){return ci})),r.d(e,"CategoricalErrorBar",(function(){return si})),r.d(e,"CategoricalPlotArea",(function(){return wn})),r.d(e,"Chart",(function(){return ha})),r.d(e,"ChartContainer",(function(){return Po})),r.d(e,"ClipAnimation",(function(){return Si})),r.d(e,"ClusterLayout",(function(){return Hi})),r.d(e,"Crosshair",(function(){return Oo})),r.d(e,"CrosshairTooltip",(function(){return _o})),r.d(e,"DefaultAggregates",(function(){return $o})),r.d(e,"DonutChart",(function(){return ds})),r.d(e,"DonutPlotArea",(function(){return vs})),r.d(e,"DonutSegment",(function(){return us})),r.d(e,"ErrorBarBase",(function(){return ni})),r.d(e,"ErrorRangeCalculator",(function(){return Xr})),r.d(e,"Highlight",(function(){return Sn})),r.d(e,"SharedTooltip",(function(){return Gn})),r.d(e,"Legend",(function(){return Bn})),r.d(e,"LegendItem",(function(){return Rn})),r.d(e,"LegendLayout",(function(){return En})),r.d(e,"LineChart",(function(){return ki})),r.d(e,"LinePoint",(function(){return di})),r.d(e,"LineSegment",(function(){return yi})),r.d(e,"Pane",(function(){return ko})),r.d(e,"PieAnimation",(function(){return qn})),r.d(e,"PieChart",(function(){return ls})),r.d(e,"PieChartMixin",(function(){return ss})),r.d(e,"PiePlotArea",(function(){return cs})),r.d(e,"PieSegment",(function(){return ns})),r.d(e,"PlotAreaBase",(function(){return Ko})),r.d(e,"PlotAreaEventsMixin",(function(){return Xo})),r.d(e,"PlotAreaFactory",(function(){return Vn})),r.d(e,"PointEventsMixin",(function(){return hi})),r.d(e,"RangeBar",(function(){return Jo})),r.d(e,"RangeBarChart",(function(){return en})),r.d(e,"RangeAreaPoint",(function(){return nn})),r.d(e,"RangeAreaChart",(function(){return hn})),r.d(e,"ScatterChart",(function(){return so})),r.d(e,"ScatterErrorBar",(function(){return io})),r.d(e,"ScatterLineChart",(function(){return $n})),r.d(e,"Selection",(function(){return Fn})),r.d(e,"SeriesAggregator",(function(){return qo})),r.d(e,"SeriesBinder",(function(){return Gr})),r.d(e,"SplineSegment",(function(){return _i})),r.d(e,"SplineAreaSegment",(function(){return Ei})),r.d(e,"StackWrap",(function(){return Wi})),r.d(e,"Tooltip",(function(){return Un})),r.d(e,"OHLCChart",(function(){return fn})),r.d(e,"OHLCPoint",(function(){return un})),r.d(e,"WaterfallChart",(function(){return yn})),r.d(e,"WaterfallSegment",(function(){return vn})),r.d(e,"XYPlotArea",(function(){return ts})),r.d(e,"MousewheelZoom",(function(){return Tn})),r.d(e,"ZoomSelection",(function(){return Mn})),r.d(e,"Pannable",(function(){return kn})),r.d(e,"anyHasZIndex",(function(){return Pi})),r.d(e,"appendIfNotNull",(function(){return jo})),r.d(e,"areNumbers",(function(){return Zi})),r.d(e,"bindSegments",(function(){return To})),r.d(e,"categoriesCount",(function(){return pi})),r.d(e,"countNumbers",(function(){return Dr})),r.d(e,"equalsIgnoreCase",(function(){return Eo})),r.d(e,"evalOptions",(function(){return ai})),r.d(e,"filterSeriesByType",(function(){return Ro})),r.d(e,"getDateField",(function(){return Io})),r.d(e,"getField",(function(){return Ur})),r.d(e,"hasGradientOverlay",(function(){return Vi})),r.d(e,"hasValue",(function(){return oo})),r.d(e,"isDateAxis",(function(){return Bo})),r.d(e,"segmentVisible",(function(){return Mo})),r.d(e,"singleItemOrArray",(function(){return Lo})),r.d(e,"createOutOfRangePoints",(function(){return No})),r.d(e,"ChartService",(function(){return Z})),r.d(e,"DomEventsBuilder",(function(){return Q})),r.d(e,"FormatService",(function(){return K})),r.d(e,"IntlService",(function(){return U})),r.d(e,"TemplateService",(function(){return et})),r.d(e,"Sparkline",(function(){return ma})),r.d(e,"Navigator",(function(){return Aa})),r.d(e,"NavigatorHint",(function(){return wa})),r.d(e,"StockChart",(function(){return ka})),r.d(e,"constants",(function(){return i})),r.d(e,"Gauge",(function(){return Na})),r.d(e,"LinearGauge",(function(){return cp})),r.d(e,"LinearPointer",(function(){return $a})),r.d(e,"ArrowLinearPointer",(function(){return rp})),r.d(e,"BarLinearPointer",(function(){return ap})),r.d(e,"LinearScale",(function(){return Xa})),r.d(e,"RadialGauge",(function(){return Cp})),r.d(e,"RadialPointer",(function(){return Sp})),r.d(e,"RadialScale",(function(){return gp})),r.d(e,"ArcGauge",(function(){return Ip})),r.d(e,"RangePointer",(function(){return Rp})),r.d(e,"ArcScale",(function(){return jp})),r.d(e,"CircularGauge",(function(){return Bp})),r.d(e,"Barcode",(function(){return wl})),r.d(e,"addClass",(function(){return _})),r.d(e,"removeClass",(function(){return O})),r.d(e,"alignPathToPixel",(function(){return P})),r.d(e,"clockwise",(function(){return A})),r.d(e,"convertableToNumber",(function(){return j})),r.d(e,"deepExtend",(function(){return E})),r.d(e,"elementStyles",(function(){return V})),r.d(e,"getSpacing",(function(){return z})),r.d(e,"getTemplate",(function(){return rt})),r.d(e,"getter",(function(){return nt})),r.d(e,"grep",(function(){return st})),r.d(e,"hasClasses",(function(){return at})),r.d(e,"HashMap",(function(){return lt})),r.d(e,"inArray",(function(){return ct})),r.d(e,"interpolateValue",(function(){return ht})),r.d(e,"InstanceObserver",(function(){return ft})),r.d(e,"isArray",(function(){return b})),r.d(e,"isFunction",(function(){return M})),r.d(e,"isNumber",(function(){return C})),r.d(e,"isObject",(function(){return R})),r.d(e,"isString",(function(){return k})),r.d(e,"map",(function(){return dt})),r.d(e,"mousewheelDelta",(function(){return vt})),r.d(e,"FontLoader",(function(){return Rt})),r.d(e,"setDefaultOptions",(function(){return It})),r.d(e,"sparseArrayLimits",(function(){return Bt})),r.d(e,"styleValue",(function(){return I})),r.d(e,"find",(function(){return Lt})),r.d(e,"elementScale",(function(){return Nt})),r.d(e,"autoTextColor",(function(){return Ft})),r.d(e,"createHashSet",(function(){return Xt})),r.d(e,"append",(function(){return gt})),r.d(e,"bindEvents",(function(){return mt})),r.d(e,"Class",(function(){return S.Class})),r.d(e,"defined",(function(){return xt})),r.d(e,"deg",(function(){return bt})),r.d(e,"elementOffset",(function(){return _t})),r.d(e,"elementSize",(function(){return wt})),r.d(e,"eventElement",(function(){return Ot})),r.d(e,"eventCoordinates",(function(){return St})),r.d(e,"last",(function(){return Pt})),r.d(e,"limitValue",(function(){return At})),r.d(e,"logToConsole",(function(){return S.logToConsole})),r.d(e,"objectKey",(function(){return Ct})),r.d(e,"rad",(function(){return kt})),r.d(e,"round",(function(){return jt})),r.d(e,"unbindEvents",(function(){return Mt})),r.d(e,"valueOrDefault",(function(){return Tt})),r.d(e,"chartBaseTheme",(function(){return kl}));var i={};r.r(i),r.d(i,"NAVIGATOR_AXIS",(function(){return Sa})),r.d(i,"NAVIGATOR_PANE",(function(){return Oa}));var o="arc",n="#000",s="bottom",a="center",p="circle",l="date",c=/\{\d+:?/,h="left",u=Number.MAX_VALUE,f=-Number.MAX_VALUE,d="right",v="top",y="value",g="#fff",m="x",x="y";function b(t){return Array.isArray(t)}function _(t,e){for(var r=b(e)?e:[e],i=0;i<r.length;i++){var o=r[i];-1===t.className.indexOf(o)&&(t.className+=" "+o)}}var w=/\s+/g;function O(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(w," "))}var S=r(0);function P(t){var e=.5;t.options.stroke&&S.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var r=0;r<t.segments.length;r++)t.segments[r].anchor().round(0).translate(e,e);return t}function A(t,e){return-t.x*e.y+t.y*e.x<0}function C(t){return"number"==typeof t&&!isNaN(t)}function k(t){return"string"==typeof t}function j(t){return C(t)||k(t)&&isFinite(t)}function M(t){return"function"==typeof t}function T(t,e){for(var r in e){var i=e[r],o=typeof i,n=void 0;if((n="object"===o&&null!==i?i.constructor:null)&&n!==Array)if(i instanceof Date)t[r]=new Date(i.getTime());else if(M(i.clone))t[r]=i.clone();else{var s=t[r];t[r]="object"==typeof s&&s||{},T(t[r],i)}else"undefined"!==o&&(t[r]=i)}return t}function E(t){for(var e=arguments,r=arguments.length,i=1;i<r;i++)T(t,e[i]);return t}function R(t){return"object"==typeof t}function I(t){return C(t)?t+"px":t}var B=/width|height|top|left|bottom|right/i;function L(t){return B.test(t)}function V(t,e){var r=k(e)?[e]:e;if(b(r)){for(var i={},o=window.getComputedStyle(t),n=0;n<r.length;n++){var s=r[n];i[s]=L(s)?parseFloat(o[s]):o[s]}return i}if(R(e))for(var a in e)t.style[a]=I(e[a])}function z(t,e){void 0===e&&(e=0);var r={top:0,right:0,bottom:0,left:0};return"number"==typeof t?r.top=r[d]=r[s]=r[h]=t:(r.top=t.top||e,r[d]=t[d]||e,r[s]=t[s]||e,r[h]=t[h]||e),r}var D={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},N=function(){},F={implementation:{configurable:!0}};N.register=function(t){D=t},F.implementation.get=function(){return D},Object.defineProperties(N,F);var U=N,H=/\{(\d+)(:[^\}]+)?\}/g,G=function(t){this._intlService=t},W={intl:{configurable:!0}};W.intl.get=function(){return this._intlService||U.implementation},W.intl.set=function(t){this._intlService=t},G.prototype.auto=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];var i=this.intl;return k(t)&&t.match(c)?i.format.apply(i,[t].concat(e)):i.toString(e[0],t)},G.prototype.localeAuto=function(t,e,r){var i=this.intl;return k(t)&&t.match(c)?t.replace(H,(function(t,o,n){var s=e[parseInt(o,10)];return i.toString(s,n?n.substring(1):"",r)})):i.toString(e[0],t,r)},Object.defineProperties(G.prototype,W);var K=G,X=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new K(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Y={intl:{configurable:!0}};Y.intl.get=function(){return this._intlService||U.implementation},Y.intl.set=function(t){this._intlService=t,this.format.intl=t},X.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},X.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(X.prototype,Y);var q,Z=X,$=function(){};$.register=function(t){q=t},$.create=function(t,e){if(q)return q.create(t,e)};var Q=$,J={compile:function(t){return t}},tt=function(){};tt.register=function(t){J=t},tt.compile=function(t){return J.compile(t)};var et=tt;function rt(t){var e;return void 0===t&&(t={}),t.template?t.template=e=et.compile(t.template):M(t.content)&&(e=t.content),e}var it=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,ot={};function nt(t){if(ot[t])return ot[t];var e=[];return t.replace(it,(function(t,r,i,o){e.push(S.drawing.util.defined(r)?r:i||o)})),ot[t]=function(t){for(var r=t,i=0;i<e.length&&r;i++)r=r[e[i]];return r},ot[t]}function st(t,e){for(var r=t.length,i=[],o=0;o<r;o++)e(t[o])&&i.push(t[o]);return i}function at(t,e){if(t.className)for(var r=e.split(" "),i=0;i<r.length;i++)if(-1!==t.className.indexOf(r[i]))return!0}ot[void 0]=function(t){return t};var pt=function(){this._map={}};pt.prototype.get=function(t){return this._map[this._key(t)]},pt.prototype.set=function(t,e){this._map[this._key(t)]=e},pt.prototype._key=function(t){return t instanceof Date?t.getTime():t};var lt=pt;function ct(t,e){if(e)return-1!==e.indexOf(t)}function ht(t,e,r){return S.drawing.util.round(t+(e-t)*r,3)}var ut=function(t,e){this.observer=t,this.handlerMap=E({},this.handlerMap,e)};ut.prototype.trigger=function(t,e){var r,i=this.observer,o=this.handlerMap;return o[t]?r=this.callObserver(o[t],e):i.trigger&&(r=this.callObserver("trigger",t,e)),r},ut.prototype.callObserver=function(t){for(var e=[],r=arguments.length-1;r-- >0;)e[r]=arguments[r+1];return this.observer[t].apply(this.observer,e)},ut.prototype.requiresHandlers=function(t){if(this.observer.requiresHandlers)return this.observer.requiresHandlers(t);for(var e=0;e<t.length;e++)if(this.handlerMap[t[e]])return!0};var ft=ut;function dt(t,e){for(var r=t.length,i=[],o=0;o<r;o++){var n=e(t[o]);S.drawing.util.defined(n)&&i.push(n)}return i}function vt(t){var e=0;return t.wheelDelta&&(e=(e=-t.wheelDelta/120)>0?Math.ceil(e):Math.floor(e)),t.detail&&(e=S.drawing.util.round(t.detail/3)),e}var yt=S.drawing.util,gt=yt.append,mt=yt.bindEvents,xt=yt.defined,bt=yt.deg,_t=yt.elementOffset,wt=yt.elementSize,Ot=yt.eventElement,St=yt.eventCoordinates,Pt=yt.last,At=yt.limitValue,Ct=yt.objectKey,kt=yt.rad,jt=yt.round,Mt=yt.unbindEvents,Tt=yt.valueOrDefault,Et=function(){};Et.fetchFonts=function(t,e,r){void 0===r&&(r={depth:0});!t||r.depth>5||!document.fonts||Object.keys(t).forEach((function(i){var o=t[i];"dataSource"!==i&&"$"!==i[0]&&o&&("font"===i?e.push(o):"object"==typeof o&&(r.depth++,Et.fetchFonts(o,e,r),r.depth--))}))},Et.loadFonts=function(t,e){var r=[];if(t.length>0&&document.fonts){try{r=t.map((function(t){return document.fonts.load(t)}))}catch(t){Object(S.logToConsole)(t)}Promise.all(r).then(e,e)}else e()},Et.preloadFonts=function(t,e){var r=[];Et.fetchFonts(t,r),Et.loadFonts(r,e)};var Rt=Et;function It(t,e){var r=t.prototype;r.options?r.options=E({},r.options,e):r.options=e}function Bt(t){for(var e=u,r=f,i=0,o=t.length;i<o;i++){var n=t[i];null!==n&&isFinite(n)&&(e=Math.min(e,n),r=Math.max(r,n))}return{min:e===u?void 0:e,max:r===f?void 0:r}}function Lt(t,e){for(var r=0;r<t.length;r++){var i=t[r];if(e(i,r,t))return i}}var Vt=S.geometry.Matrix,zt=/matrix\((.*)\)/;function Dt(t){var e=getComputedStyle(t).transform;return"none"===e?Vt.unit():function(t){var e=t.match(zt);if(null===e||2!==e.length)return Vt.unit();var r=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Vt,[null].concat(r)))}(e)}function Nt(t){if(!t)return Vt.unit();for(var e=Dt(t),r=t.parentElement;r;){var i=Dt(r);e=e.multiplyCopy(i),r=r.parentElement}return e.b=e.c=e.e=e.f=0,e}var Ft=function(t){return new S.Color(t).isDark()?g:n},Ut={},Ht=function(t){this._index={},this._values=t?t.slice(0):[];for(var e=0;e<this._values.length;e++)this._index[this._values[e]]=e},Gt={size:{configurable:!0}};Ht.prototype.values=function(){return this._values.filter((function(t){return t!==Ut}))},Ht.prototype.has=function(t){return void 0!==this._index[t]},Ht.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Ht.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Ut,delete this._index[t])},Ht.prototype.clear=function(){this._index={},this._values=[]},Gt.size.get=function(){return this._values.length},Object.defineProperties(Ht.prototype,Gt);var Wt=function(t){this._set=new Set(t)},Kt={size:{configurable:!0}};function Xt(t){return"function"==typeof Set?new Wt(t):new Ht(t)}function Yt(t,e){var r=jt(e-t,9);if(0===r){if(0===e)return.1;r=Math.abs(e)}var i=Math.pow(10,Math.floor(Math.log(r)/Math.log(10))),o=jt(r/i,10);return jt(i*(o<1.904762?.2:o<4.761904?.5:o<9.523809?1:2),10)}Wt.prototype.values=function(){return Array.from(this._set)},Wt.prototype.has=function(t){return this._set.has(t)},Wt.prototype.add=function(t){this._set.add(t)},Wt.prototype.delete=function(t){this._set.delete(t)},Wt.prototype.clear=function(){this._set.clear()},Kt.size.get=function(){return this._set.size},Object.defineProperties(Wt.prototype,Kt);var qt=function(t){function e(e,r){t.call(this),this.x=e||0,this.y=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var r=kt(e),i=Math.cos(r),o=Math.sin(r),n=t.x,s=t.y,a=this.x,p=this.y;return this.x=jt(n+(a-n)*i+(p-s)*o,3),this.y=jt(s+(p-s)*i-(a-n)*o,3),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,r=this.y-t.y;return Math.sqrt(e*e+r*r)},e.onCircle=function(t,r,i){var o=kt(r);return new e(t.x-i*Math.cos(o),t.y-i*Math.sin(o))},e}(S.Class);function Zt(t,e,r,i,o){var n=kt(o);return new qt(r+(t-r)*Math.cos(n)+(e-i)*Math.sin(n),i-(t-r)*Math.sin(n)+(e-i)*Math.cos(n))}var $t=function(t){function e(e,r,i,o){t.call(this),this.x1=e||0,this.y1=r||0,this.x2=i||0,this.y2=o||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var r=this.height(),i=this.width();return xt(t)&&(this.x1=t,this.x2=this.x1+i),xt(e)&&(this.y1=e,this.y2=this.y1+r),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var r=b(t),i=r?t[0]:t.x,o=r?t[1]:t.y;return this.wrap(new e(i,o,i,o)),this},e.prototype.snapTo=function(t,e){return e!==m&&e||(this.x1=t.x1,this.x2=t.x2),e!==x&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var r=this.height(),i=this.width(),o=e===v||e===s?x:m,n=o===x?r:i;if(e===a){var p=t.center(),l=this.center();this.x1+=p.x-l.x,this.y1+=p.y-l.y}else this[o+1]=e===v||e===h?t[o+1]-n:t[o+2];return this.x2=this.x1+i,this.y2=this.y1+r,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=z(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=z(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new qt(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new qt(this.x1,this.y1),new qt(this.x2,this.y1),new qt(this.x2,this.y2),new qt(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),r=this.height(),i=this.center(),o=i.x,n=i.y,s=Zt(0,0,o,n,t),a=Zt(e,0,o,n,t),p=Zt(e,r,o,n,t),l=Zt(0,r,o,n,t);return e=Math.max(s.x,a.x,p.x,l.x)-Math.min(s.x,a.x,p.x,l.x),r=Math.max(s.y,a.y,p.y,l.y)-Math.min(s.y,a.y,p.y,l.y),this.x2=this.x1+e,this.y2=this.y1+r,this},e.prototype.toRect=function(){return new S.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,r){var i=e+1,o=e+2,n=e===m?"width":"height",p=this[n]();ct(r,[h,v])?(this[i]=t[i],this[o]=this[i]+p):ct(r,[d,s])?(this[o]=t[o],this[i]=this[o]-p):r===a&&(this[i]=t[i]+(t[n]()-p)/2,this[o]=this[i]+p)},e}(S.Class);function Qt(t,e){return t-e}var Jt=function(t){function e(e,r,i,o,n){t.call(this),this.center=e,this.innerRadius=r,this.radius=i,this.startAngle=o,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var r=kt(t),i=Math.cos(r),o=Math.sin(r),n=e?this.innerRadius:this.radius,s=jt(this.center.x-i*n,3),a=jt(this.center.y-o*n,3);return new qt(s,a)},e.prototype.adjacentBox=function(t,e,r){var i=this.clone().expand(t),o=i.middle(),n=i.point(o),s=e/2,a=r/2,p=Math.sin(kt(o)),l=Math.cos(kt(o)),c=n.x-s,h=n.y-a;return Math.abs(p)<.9&&(c+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(h+=a*-p/Math.abs(p)),new $t(c,h,c+e,h+r)},e.prototype.containsPoint=function(t){var e=this.center,r=this.innerRadius,i=this.radius,o=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,p=new qt(s,a),l=this.point(o),c=new qt(l.x-e.x,l.y-e.y),h=this.point(n),u=new qt(h.x-e.x,h.y-e.y),f=jt(s*s+a*a,3);return(c.equals(p)||A(c,p))&&!A(u,p)&&f>=r*r&&f<=i*i},e.prototype.getBBox=function(){var t,e=new $t(u,u,f,f),r=jt(this.startAngle%360),i=jt((r+this.angle)%360),o=this.innerRadius,n=[0,90,180,270,r,i].sort(Qt),s=n.indexOf(r),a=n.indexOf(i);t=r===i?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var l=this.point(t[p]);e.wrapPoint(l),e.wrapPoint(l,o)}return o||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(S.Class),te=function(t){function e(e,r,i,o){t.call(this,e,0,r,i,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(Jt),ee=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var r=t.startAngle+180,i=t.angle+r;t.angle>0&&r===i&&(i+=.001);var o=new S.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new S.geometry.Arc(o,{startAngle:r,endAngle:i,radiusX:n,radiusY:n}),p=S.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(i);p.lineTo(l.x,l.y),p.arc(i,r,s,s,!0)}else p.lineTo(o.x,o.y);return p},e}(S.Class);ee.current=new ee;var re=ee,ie=function(t){function e(e){t.call(this),this.children=[],this.options=E({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,r=this.children,i=0;i<r.length;i++){var o=r[i];o.reflow(t),e=e?e.wrap(o.box):o.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var r=this.children,i=r.length,o=0;o<i;o++)r[o].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,r=0;r<arguments.length;r++){var i=t[r];e.children.push(i),i.parent=e}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,r=0;r<e;r++)t[r].renderVisual()},e.prototype.createVisual=function(){this.visual=new S.drawing.Group({zIndex:this.options.zIndex,visible:Tt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=S.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):xt(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,r=t.options.zIndex||0,i=this.visual.children,o=i.length;for(e=0;e<o;e++){var n=i[e];if(Tt(n.options.zIndex,0)>r)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,r=e.length,i=0;i<r;i++){var o=e[i];t(o),o.traverse&&o.traverse(t)}},e.prototype.closest=function(t){for(var e=this,r=!1;e&&!r;)(r=t(e))||(e=e.parent);if(r)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible)},e.prototype.toggleHighlight=function(t,e){var r=this,i=(this.options||{}).highlight||{},o=i.visual,n=this._highlight;if(!n){var s={fill:{color:g,opacity:e||.2},stroke:{color:g,width:1,opacity:e||.2}};if(o){if(!(n=this._highlight=o(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return r.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);xt(n.options.zIndex)||(n.options.zIndex=Tt(i.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,r){var i=new S.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(r),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(S.Class);ie.prototype.options={};var oe=ie,ne=function(t){function e(e){t.call(this,e),this.options.margin=z(this.options.margin),this.options.padding=z(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var r,i=this,o=this.options,n=o.width,s=o.height,a=o.shrinkToFit,p=n&&s,l=o.margin,c=o.padding,h=o.border.width,u=function(){i.align(e,m,o.align),i.align(e,x,o.vAlign),i.paddingBox=r.clone().unpad(l).unpad(h)},f=e.clone();p&&(f.x2=f.x1+n,f.y2=f.y1+s),a&&f.unpad(l).unpad(h).unpad(c),t.prototype.reflow.call(this,f),r=p?this.box=new $t(0,0,n,s):this.box,a&&p?(u(),f=this.contentBox=this.paddingBox.clone().unpad(c)):(f=this.contentBox=r.clone(),r.pad(c).pad(h).pad(l),u()),this.translateChildren(r.x1-f.x1+l.left+h+c.left,r.y1-f.y1+l.top+h+c.top);for(var d=this.children,v=0;v<d.length;v++){var y=d[v];y.reflow(y.box)}},e.prototype.align=function(t,e,r){this.box.align(t,e,r)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(S.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:Tt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(oe);It(ne,{align:h,vAlign:v,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var se=ne,ae=function(t){function e(e,r){t.call(this,e),this.pointData=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,r=t.type,i=t.rotation,o=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,l=this.visualStyle();if(r===p)a=new S.drawing.Circle(new S.geometry.Circle([jt(e.x1+n,3),jt(e.y1+s,3)],Math.min(n,s)),l);else if("triangle"===r)a=S.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],l).close();else if("cross"===r)(a=new S.drawing.MultiPath(l)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var c=e.toRect();if("roundedRect"===r){var h=Tt(t.borderRadius,c.width()/5);c.setCornerRadius(h)}a=S.drawing.Path.fromRect(c,l)}return i&&a.transform(S.geometry.transform().rotate(-i,[o.x,o.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,r=this.pointData||{};return e?e({value:r.value,dataItem:r.dataItem,sender:this.getSender(),series:r.series,category:r.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement()},e}(se);It(ae,{type:p,align:a,vAlign:a});var pe=ae,le={glass:{type:"linear",rotation:0,stops:[{offset:0,color:g,opacity:0},{offset:.25,color:g,opacity:.3},{offset:1,color:g,opacity:0}]},sharpBevel:{type:"radial",stops:[{offset:0,color:g,opacity:.55},{offset:.65,color:g,opacity:0},{offset:.95,color:g,opacity:.25}]},roundedBevel:{type:"radial",stops:[{offset:.33,color:g,opacity:.06},{offset:.83,color:g,opacity:.2},{offset:.95,color:g,opacity:0}]},roundedGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:g,opacity:0},{offset:.5,color:g,opacity:.3},{offset:.99,color:g,opacity:0}]},sharpGlass:{type:"radial",supportVML:!1,stops:[{offset:0,color:g,opacity:.2},{offset:.15,color:g,opacity:.15},{offset:.17,color:g,opacity:.35},{offset:.85,color:g,opacity:.05},{offset:.87,color:g,opacity:.15},{offset:.99,color:g,opacity:0}]},bubbleShadow:{type:"radial",center:[.5,.5],radius:.5}};function ce(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var r=Math.min(t.x1,e.x1),i=Math.max(t.x1,e.x1),o=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),c=[];return c[0]=new $t(i,s,o,a),c[1]=new $t(r,a,i,p),c[2]=new $t(o,a,n,p),c[3]=new $t(i,p,o,l),t.x1===r&&t.y1===s||e.x1===r&&e.y1===s?(c[4]=new $t(r,s,i,a),c[5]=new $t(o,p,n,l)):(c[4]=new $t(o,s,n,a),c[5]=new $t(r,p,i,l)),st(c,(function(t){return t.height()>0&&t.width()>0}))[0]}var he=function(t){function e(e){t.call(this,e);var r=this.options;r.width=parseInt(r.width,10),r.height=parseInt(r.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,r=new $t(0,0,t.width,t.height);this.box=r.unpad(t.margin);for(var i=0;i<e.length;i++)e[i].reflow(r),r=ce(r,e[i].box)||new $t},e.prototype.createVisual=function(){this.visual=new S.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},r=this.box.clone().pad(t.margin).unpad(e.width),i=S.drawing.Path.fromRect(r.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(i)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,r=this.gradients,i=Ct(t),o=le[t.gradient];if(r[i])e=r[i];else{var n=Object.assign({},o,t);"linear"===o.type?e=new S.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,r=t.innerRadius/t.radius*100,i=e.length,o=[],n=0;n<i;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-r)+r)/100,o.push(s)}return o}(n)),(e=new S.drawing.RadialGradient(n)).supportVML=!1!==o.supportVML),r[i]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new $t(0,0,t.width,t.height)},e}(oe);It(he,{width:600,height:400,background:g,border:{color:n,width:0},margin:z(5),zIndex:-2});var ue=he,fe=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=m,this.elementAxis=x,this.groupSizeField="width",this.elementSizeField="height",this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=x,this.elementAxis=m,this.groupSizeField="height",this.elementSizeField="width",this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this.box,e=this.elementAxis,r=this.groupAxis,i=this.elementSizeField,o=this.groupSizeField,n=this.groupOptions(),s=n.groups,a=n.groupsSize,p=n.maxGroupElementsSize,l=s.length,c=t[r+1]+this.alignStart(a,t[o]());if(l){for(var h=c,u=0;u<l;u++){for(var f=s[u],d=f.groupElements,v=t[e+1],y=d.length,g=0;g<y;g++){var m=d[g],x=this.elementSize(m),b=h+this.alignStart(x[o],f.groupSize),_=new $t;_[r+1]=b,_[r+2]=b+x[o],_[e+1]=v,_[e+2]=v+x[i],m.reflow(_),v+=x[i]+this.elementSpacing}h+=f.groupSize+this.groupSpacing}t[r+1]=c,t[r+2]=c+a,t[e+2]=t[e+1]+p}},e.prototype.alignStart=function(t,e){var r=0,i=this.options.align;return i===d||i===s?r=e-t:i===a&&(r=(e-t)/2),r},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,r=this.elementSizeField,i=this.groupSizeField,o=this.elementSpacing,n=this.groupSpacing,s=jt(t[r]()),a=e.length,p=[],l=0,c=0,h=0,u=0,f=[],d=0;d<a;d++){var v=e[d];v.box||v.reflow(t);var y=this.elementSize(v);this.options.wrap&&jt(c+o+y[r])>s&&(p.push({groupElements:f,groupSize:l,groupElementsSize:c}),u=Math.max(u,c),h+=n+l,l=0,c=0,f=[]),l=Math.max(l,y[i]),c>0&&(c+=o),c+=y[r],f.push(v)}return p.push({groupElements:f,groupSize:l,groupElementsSize:c}),{groups:p,groupsSize:h+=l,maxGroupElementsSize:u=Math.max(u,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(oe);It(fe,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var de=fe,ve=S.drawing.Text,ye=function(t){function e(e,r){t.call(this,r),this.content=e,this.reflow(new $t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=e.size=S.drawing.util.measureText(this.content,{font:e.font});this.baseline=r.baseline,this.box=new $t(t.x1,t.y1,t.x1+r.width,t.y1+r.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,r=t.color,i=t.opacity,o=t.cursor;this.visual=new ve(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:r,opacity:i},cursor:o})},e}(oe);It(ye,{font:"12px sans-serif",color:n});var ge=ye;function me(t){var e=t.origin,r=t.bottomRight();return new $t(e.x,e.y,r.x,r.y)}var xe=/\n/m,be=function(t){function e(e,r,i){t.call(this,r),this.content=e,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new $t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(xe),r=new de({vertical:!0,align:t.align,wrap:!1}),i=E({},t,{opacity:1,animation:null});this.container=r,this.append(r);for(var o=0;o<e.length;o++){var n=new ge(e[o].trim(),i);r.append(n)}},e.prototype.reflow=function(e){var r=this.options,i=r.visual;if(this.container.options.align=r.align,i&&!this._boxReflow){var o=e;o.hasSize()||(this._boxReflow=!0,this.reflow(o),this._boxReflow=!1,o=this.box);var n=this.visual=i(this.visualContext(o));n&&(o=me(n.clippedBBox()||new S.geometry.Rect),n.options.zIndex=r.zIndex),this.box=this.contentBox=this.paddingBox=o}else if(t.prototype.reflow.call(this,e),r.rotation){var s=z(r.margin),a=this.box.unpad(s);this.targetBox=e,this.normalBox=a.clone(),(a=this.rotate()).translate(s.left-s.right,s.top-s.bottom),this.rotatedBox=a.clone(),a.pad(s)}},e.prototype.createVisual=function(){var t=this.options;if(this.visual=new S.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=S.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle());this.visual.append(e)}},e.prototype.renderVisual=function(){if(this.options.visible)if(this.options.visual){var e=this.visual;e&&!xt(e.options.noclip)&&(e.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()}else t.prototype.renderVisual.call(this)},e.prototype.visualContext=function(t){var e=this,r={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,createVisual:function(){return e._boxReflow=!0,e.reflow(t),e._boxReflow=!1,e.getDefaultVisual()}};return this.data&&Object.assign(r,this.data),r},e.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},e.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,m,t.align),this.align(this.targetBox,x,t.vAlign),this.box},e.prototype.rotationTransform=function(){var t=this.options.rotation;if(!t)return null;var e=this.normalBox.center(),r=e.x,i=e.y,o=this.rotatedBox.center();return S.geometry.transform().translate(o.x-r,o.y-i).rotate(t,[r,i])},e}(se),_e=function(t){function e(e){t.call(this,e),this.append(new be(this.options.text,Object.assign({},this.options,{vAlign:this.options.position})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){t.prototype.reflow.call(this,e),this.box.snapTo(e,m)},e.buildTitle=function(t,r,i){var o,n=t;return"string"==typeof t&&(n={text:t}),(n=Object.assign({visible:!0},i,n))&&n.visible&&n.text&&(o=new e(n),r.append(o)),o},e}(oe);It(_e,{color:n,position:v,align:a,margin:z(5),padding:z(5)});var we=_e,Oe=function(t){function e(e,r,i,o,n){t.call(this,r,n),this.text=r,this.value=e,this.index=i,this.dataItem=o,this.reflow(new $t)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.visualContext=function(e){var r=t.prototype.visualContext.call(this,e);return r.value=this.value,r.dataItem=this.dataItem,r.format=this.options.format,r.culture=this.options.culture,r},e.prototype.click=function(t,e){t.trigger("axisLabelClick",{element:Ot(e),value:this.value,text:this.text,index:this.index,dataItem:this.dataItem,axis:this.parent.options})},e.prototype.rotate=function(){if(this.options.alignRotation!==a){var e=this.normalBox.toRect(),r=this.rotationTransform();this.box=me(e.bbox(r.matrix()))}else t.prototype.rotate.call(this);return this.box},e.prototype.rotationTransform=function(){var e=this.options,r=e.rotation;if(!r)return null;if(e.alignRotation===a)return t.prototype.rotationTransform.call(this);var i=S.geometry.transform().rotate(r).matrix(),o=this.normalBox.toRect(),n=this.targetBox.toRect(),p=e.rotationOrigin||v,l=p===v||p===s?m:x,c=p===v||p===s?x:m,u=p===v||p===h?n.origin:n.bottomRight(),f=o.topLeft().transformCopy(i),d=o.topRight().transformCopy(i),y=o.bottomRight().transformCopy(i),g=o.bottomLeft().transformCopy(i),b=S.geometry.Rect.fromPoints(f,d,y,g),_={};_[c]=n.origin[c]-b.origin[c];var w,O,P=Math.abs(f[c]+_[c]-u[c]),A=Math.abs(d[c]+_[c]-u[c]);jt(P,10)===jt(A,10)?(w=f,O=d):A<P?(w=d,O=y):(w=f,O=g);var C=w[l]+(O[l]-w[l])/2;return _[l]=n.center()[l]-C,S.geometry.transform().translate(_.x,_.y).rotate(r)},e}(be);It(Oe,{_autoReflow:!1});var Se=Oe,Pe=function(t){function e(e,r,i){t.call(this,r),this.fields=e,this.chartService=i,this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.hide=function(){this.options.visible=!1},e.prototype.show=function(){this.options.visible=!0},e.prototype.render=function(){var t=this,e=this.options;if(e.visible){var r,i,o=e.label,n=e.icon,s=new $t,a=function(){return t},l=n.size,c=this.fields.text;if(xt(o)&&o.visible){var h=rt(o);h?c=h(this.fields):o.format&&(c=this.chartService.format.auto(o.format,c)),o.color||(o.color="inside"===o.position?"#fff":n.background),this.label=new be(c,E({},o)),this.label.aliasFor=a,"inside"!==o.position||xt(l)||(n.type===p?l=Math.max(this.label.box.width(),this.label.box.height()):(r=this.label.box.width(),i=this.label.box.height()),s.wrap(this.label.box))}n.width=r||l||7,n.height=i||l||7;var u=new pe(E({},n));u.aliasFor=a,this.marker=u,this.append(u),this.label&&this.append(this.label),u.reflow(new $t),this.wrapperBox=s.wrap(u.box)}},e.prototype.reflow=function(t){var e,r,i,o=this.options,n=this.label,a=this.marker,p=this.wrapperBox,l=t.center(),c=o.line.length,u=o.position;o.visible&&(ct(u,[h,d])?u===h?(i=p.alignTo(t,u).translate(-c,t.center().y-p.center().y),o.line.visible&&(e=[t.x1,l.y],this.linePoints=[e,[i.x2,l.y]],r=i.clone().wrapPoint(e))):(i=p.alignTo(t,u).translate(c,t.center().y-p.center().y),o.line.visible&&(e=[t.x2,l.y],this.linePoints=[e,[i.x1,l.y]],r=i.clone().wrapPoint(e))):u===s?(i=p.alignTo(t,u).translate(t.center().x-p.center().x,c),o.line.visible&&(e=[l.x,t.y2],this.linePoints=[e,[l.x,i.y1]],r=i.clone().wrapPoint(e))):(i=p.alignTo(t,u).translate(t.center().x-p.center().x,-c),o.line.visible&&(e=[l.x,t.y1],this.linePoints=[e,[l.x,i.y2]],r=i.clone().wrapPoint(e))),a&&a.reflow(i),n&&(n.reflow(i),a&&("outside"===o.label.position&&n.box.alignTo(a.box,u),n.reflow(n.box))),this.contentBox=i,this.targetBox=t,this.box=r||i)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.visual.options.noclip=this.options.noclip,this.options.visible&&this.createLine()},e.prototype.renderVisual=function(){var e=this,r=this.options,i=r.visual;r.visible&&i?(this.visual=i(Object.assign(this.fields,{sender:this.getSender(),rect:this.targetBox.toRect(),options:{background:r.background,border:r.background,icon:r.icon,label:r.label,line:r.line,position:r.position,visible:r.visible},createVisual:function(){e.createVisual(),e.renderChildren();var t=e.visual;return delete e.visual,t}})),this.addVisual()):t.prototype.renderVisual.call(this)},e.prototype.createLine=function(){var t=this.options.line;if(this.linePoints){var e=S.drawing.Path.fromPoints(this.linePoints,{stroke:{color:t.color,width:t.width,dashType:t.dashType}});P(e),this.visual.append(e)}},e.prototype.click=function(t,e){var r=this.eventArgs(e);t.trigger("noteClick",r)||e.preventDefault()},e.prototype.over=function(t,e){var r=this.eventArgs(e);t.trigger("noteHover",r)||e.preventDefault()},e.prototype.out=function(t,e){var r=this.eventArgs(e);t.trigger("noteLeave",r)},e.prototype.eventArgs=function(t){var e=this.options;return Object.assign(this.fields,{element:Ot(t),text:xt(e.label)?e.label.text:"",visual:this.visual})},e}(se);It(Pe,{icon:{visible:!0,type:p},label:{position:"inside",visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:v,zIndex:2});var Ae=Pe;function Ce(t,e){var r=t.tickX,i=t.tickY,o=t.position,n=new S.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(r,o).lineTo(r+e.size,o):n.moveTo(o,i).lineTo(o,i+e.size),P(n),n}function ke(t,e){var r=t.lineStart,i=t.lineEnd,o=t.position,n=new S.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(r,o).lineTo(i,o):n.moveTo(o,r).lineTo(o,i),P(n),n}var je=function(t){function e(e,r){void 0===r&&(r=new Z),t.call(this,e),this.chartService=r,this.options.visible||(this.options=E({},this.options,{labels:{visible:!1},line:{visible:!1},margin:0,majorTickSize:0,minorTickSize:0})),this.options.minorTicks=E({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.minorTickType},this.options.minorTicks,{size:this.options.minorTickSize,align:this.options.minorTickType}),this.options.majorTicks=E({},{color:this.options.line.color,width:this.options.line.width,visible:"none"!==this.options.majorTickType},this.options.majorTicks,{size:this.options.majorTickSize,align:this.options.majorTickType}),this.initFields(),this.options._deferLabels||this.createLabels(),this.createTitle(),this.createNotes()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.labelsCount()}},e.prototype.normalizeLabelRotation=function(t){var e=t.rotation;R(e)&&(t.alignRotation=e.align,t.rotation=e.angle)},e.prototype.createLabels=function(){var t=this.options,e=t.vertical?d:a,r=E({},t.labels,{align:e,zIndex:t.zIndex}),i=Math.max(1,r.step);if(this.clearLabels(),r.visible){this.normalizeLabelRotation(r),"auto"===r.rotation&&(r.rotation=0,t.autoRotateLabels=!0);for(var o=this.labelsRange(),n=o.min;n<o.max;n+=i){var s={index:n,count:o.max},p=this.createAxisLabel(n,r,s);p&&(this.append(p),this.labels.push(p))}}},e.prototype.clearLabels=function(){this.children=st(this.children,(function(t){return!(t instanceof Se)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=st(this.children,(function(e){return e!==t.title})),this.title=void 0)},e.prototype.clear=function(){this.clearLabels(),this.clearTitle()},e.prototype.lineBox=function(){var t=this.options,e=this.box,r=t.vertical,i=t.labels.mirror,o=i?e.x1:e.x2,n=i?e.y2:e.y1,s=t.line.width||0;return r?new $t(o,e.y1,o,e.y2-s):new $t(e.x1,n,e.x2-s,n)},e.prototype.createTitle=function(){var t=this.options,e=E({rotation:t.vertical?-90:0,text:"",zIndex:1,visualSize:!0},t.title);if(e.visible&&e.text){var r=new be(e.text,e);this.append(r),this.title=r}},e.prototype.createNotes=function(){var t=this.options,e=t.notes,r=e.data||[];this.notes=[];for(var i=0;i<r.length;i++){var o=E({},e,r[i]);o.value=this.parseNoteValue(o.value);var n=new Ae({value:o.value,text:o.label.text,dataItem:o},o,this.chartService);n.options.visible&&(xt(n.options.position)?t.vertical&&!ct(n.options.position,[h,d])?n.options.position=t.reverse?h:d:t.vertical||ct(n.options.position,[v,s])||(n.options.position=t.reverse?s:v):t.vertical?n.options.position=t.reverse?h:d:n.options.position=t.reverse?s:v,this.append(n),this.notes.push(n))}},e.prototype.parseNoteValue=function(t){return t},e.prototype.renderVisual=function(){t.prototype.renderVisual.call(this),this.createPlotBands()},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.createBackground(),this.createLine()},e.prototype.gridLinesVisual=function(){var t=this._gridLines;return t||(t=this._gridLines=new S.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,r=this.lineBox(),i=e.labels.mirror,o=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function s(e,o,s){var a=e.length,p=Math.max(1,o.step);if(o.visible)for(var l=o.skip;l<a;l+=p)xt(s)&&l%s==0||(n.tickX=i?r.x2:r.x2-o.size,n.tickY=i?r.y1-o.size:r.y1,n.position=e[l],t.append(Ce(n,o)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,o/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,r=this.lineBox();if(e.width>0&&e.visible){var i=new S.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});i.moveTo(r.x1,r.y1).lineTo(r.x2,r.y2),t._alignLines&&P(i);var o=this._lineGroup=new S.drawing.Group;o.append(i),this.visual.append(o),this.createTicks(o)}},e.prototype.getActualTickSize=function(){var t=this.options,e=0;return t.majorTicks.visible&&t.minorTicks.visible?e=Math.max(t.majorTicks.size,t.minorTicks.size):t.majorTicks.visible?e=t.majorTicks.size:t.minorTicks.visible&&(e=t.minorTicks.size),e},e.prototype.createBackground=function(){var t=this.options,e=this.box,r=t.background;r&&(this._backgroundPath=S.drawing.Path.fromRect(e.toRect(),{fill:{color:r},stroke:null}),this.visual.append(this._backgroundPath))},e.prototype.createPlotBands=function(){var t=this,e=this.options,r=e.plotBands||[],i=e.vertical,o=this.plotArea;if(0!==r.length){for(var n=this._plotbandGroup=new S.drawing.Group({zIndex:-1}),s=st(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],a=0;a<r.length;a++){var p=r[a],l=void 0,c=void 0,u=p.label,f=void 0;if(i?(l=(s||o.axisX).lineBox(),c=t.getSlot(p.from,p.to,!0)):(l=t.getSlot(p.from,p.to,!0),c=(s||o.axisY).lineBox()),u&&(u.vAlign=u.position||h,f=t.createPlotBandLabel(u,p,new $t(l.x1,c.y1,l.x2,c.y2))),0!==l.width()&&0!==c.height()){var d=new S.geometry.Rect([l.x1,c.y1],[l.width(),c.height()]),v=S.drawing.Path.fromRect(d,{fill:{color:p.color,opacity:p.opacity},stroke:null});n.append(v),f&&n.append(f)}}this.appendVisual(n)}},e.prototype.createPlotBandLabel=function(t,e,r){if(!1===t.visible)return null;var i,o=t.text;if(xt(t)&&t.visible){var n=rt(t);n?o=n({text:o,item:e}):t.format&&(o=this.chartService.format.auto(t.format,o)),t.color||(t.color=this.options.labels.color)}return(i=new be(o,t)).reflow(r),i.renderVisual(),i.visual},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,i=e.majorGridLines,o=e.minorUnit,n=e.vertical,s=t.options.line.visible,a=i.visible?e.majorUnit:0,p=t.lineBox(),l=p[n?"y1":"x1"],c={lineStart:p[n?"x1":"y1"],lineEnd:p[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function f(t,e,r){var i=t.length,o=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<i;n+=o){var a=jt(t[n]);ct(a,h)||n%r==0||s&&l===a||(c.position=a,u.append(ke(c,e)),h.push(a))}}return f(this.getMajorTickPositions(),i),f(this.getMinorTickPositions(),r,a/o),u.children},e.prototype.reflow=function(t){for(var e=this.options,r=this.labels,i=this.title,o=e.vertical,n=r.length,s=o?"width":"height",a=i?i.box[s]():0,p=this.getActualTickSize()+e.margin+a,l=((this.getRoot()||{}).box||t)[s](),c=0,h=0;h<n;h++){var u=r[h].box[s]();u+p<=l&&(c=Math.max(c,u))}this.box=o?new $t(t.x1,t.y1,t.x1+c+p,t.y2):new $t(t.x1,t.y1,t.x2,t.y1+c+p),this.arrangeTitle(),this.arrangeLabels(),this.arrangeNotes()},e.prototype.getLabelsTickPositions=function(){return this.getMajorTickPositions()},e.prototype.labelTickIndex=function(t){return t.index},e.prototype.arrangeLabels=function(){for(var t=this.options,e=this.labels,r=this.labelsBetweenTicks(),i=t.vertical,o=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],p=this.labelTickIndex(a),l=i?a.box.height():a.box.width(),c=n[p],h=n[p+1],u=void 0,f=void 0;if(i){if(r)u=c+(h-c)/2-l/2;else u=c-l/2;f=u}else r?(u=c,f=h):f=(u=c-l/2)+l;this.positionLabel(a,o,u,f)}},e.prototype.positionLabel=function(t,e,r,i){void 0===i&&(i=r);var o,n=this.options,a=n.vertical,p=this.lineBox(),l=this.getActualTickSize()+n.margin;if(a){var c=p.x2;e?(c+=l,t.options.rotationOrigin=h):(c-=l+t.box.width(),t.options.rotationOrigin=d),o=t.box.move(c,r)}else{var u=p.y1;e?(u-=l+t.box.height(),t.options.rotationOrigin=s):(u+=l,t.options.rotationOrigin=v),o=new $t(r,u,i,u+t.box.height())}t.reflow(o)},e.prototype.autoRotateLabelAngle=function(t,e){return t.width()<e?0:t.height()>e?-90:-45},e.prototype.autoRotateLabels=function(){if(!this.options.autoRotateLabels||this.options.vertical)return!1;for(var t=this.getMajorTickPositions(),e=this.labels,r=Math.min(e.length,t.length-1),i=0,o=0;o<r;o++){var n=Math.abs(t[o+1]-t[o]),s=e[o].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(i=a),-90===i)break}if(0!==i){for(var p=0;p<e.length;p++)e[p].options.rotation=i,e[p].reflow(new $t);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,r=t.labels.mirror,i=t.vertical;e&&(i?(e.options.align=r?d:h,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=r?v:s),e.reflow(this.box))},e.prototype.arrangeNotes=function(){for(var t=0;t<this.notes.length;t++){var e=this.notes[t],r=e.options.value,i=void 0;xt(r)?(this.shouldRenderNote(r)?e.show():e.hide(),i=this.noteSlot(r)):e.hide(),e.reflow(i||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),r=this.options.vertical,i=r?x:m;this.box.snapTo(e,i),r?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[i+1]-=this.lineBox()[i+1]-e[i+1],this.box[i+2]-=this.lineBox()[i+2]-e[i+2]},e.prototype.axisLabelText=function(t,e,r){var i,o=this,n=rt(e),s=function(){return e.format?o.chartService.format.localeAuto(e.format,[t],e.culture):t};n?i=n(Object.assign({},r,{get text(){return s()},value:t,format:e.format,culture:e.culture})):i=s();return i},e.prototype.slot=function(t,e,r){var i=this.getSlot(t,e,r);if(i)return i.toRect()},e.prototype.contentBox=function(){var t=this.box.clone(),e=this.labels;if(e.length){var r=this.options.vertical?x:m;if(this.chartService.isPannable(r)){var i=this.maxLabelOffset();t[r+1]-=i.start,t[r+2]+=i.end}else{e[0].options.visible&&t.wrap(e[0].box);var o=e[e.length-1];o.options.visible&&t.wrap(o.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,r=t.reverse,i=this.labelsBetweenTicks(),o=this.getLabelsTickPositions(),n=e?x:m,s=this.labels,a=r?1:0,p=r?0:1,l=0,c=0,h=0;h<s.length;h++){var u=s[h],f=this.labelTickIndex(u),d=void 0,v=void 0;i?(d=o[f+a],v=o[f+p]):d=v=o[f],l=Math.max(l,d-u.box[n+1]),c=Math.max(c,u.box[n+2]-v)}return{start:l,end:c}},e.prototype.limitRange=function(t,e,r,i,o){var n=this.options;if(t<r&&o<0&&(!xt(n.min)||n.min<=r)||i<e&&o>0&&(!xt(n.max)||i<=n.max))return null;if(e<r&&o>0||i<t&&o<0)return{min:t,max:e};var s=e-t,a=t,p=e;return t<r&&o<0?(a=At(t,r,i),p=At(t+s,r+s,i)):e>i&&o>0&&(p=At(e,r,i),a=At(e-s,r,i-s)),{min:a,max:p}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(oe);It(je,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:a},majorTicks:{align:"outside",size:4,skip:0,step:1},minorTicks:{align:"outside",size:3,skip:0,step:1},axisCrossingValue:0,majorTickType:"outside",minorTickType:"none",majorGridLines:{skip:0,step:1},minorGridLines:{visible:!1,width:1,color:n,skip:0,step:1},margin:5,visible:!0,reverse:!1,justified:!0,notes:{label:{text:""}},_alignLines:!0,_deferLabels:!1});var Me=je,Te="days",Ee="years",Re={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function Ie(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Be(t,e){return new Date(t.getTime()+e)}function Le(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function Ve(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function ze(t,e,r,i){var o=t;if(t){var n=Le(t),s=n.getHours();r===Ee?Ve(o=new Date(n.getFullYear()+e,0,1),0):"months"===r?Ve(o=new Date(n.getFullYear(),n.getMonth()+e,1),s):"weeks"===r?Ve(o=ze(function(t,e){void 0===e&&(e=0);var r=0,i=t.getDay();if(!isNaN(i))for(;i!==e;)0===i?i=6:i--,r++;return Be(t,864e5*-r)}(n,i),7*e,Te),s):r===Te?Ve(o=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):"hours"===r?o=function(t,e){var r=new Date(t);r.setMinutes(0,0,0);var i=6e4*(t.getTimezoneOffset()-r.getTimezoneOffset());return Be(r,i+36e5*e)}(n,e):"minutes"===r?(o=Be(n,6e4*e)).getSeconds()>0&&o.setSeconds(0):"seconds"===r?o=Be(n,1e3*e):"milliseconds"===r&&(o=Be(n,e)),"milliseconds"!==r&&o.getMilliseconds()>0&&o.setMilliseconds(0)}return o}function De(t,e,r){return ze(Le(t),0,e,r)}function Ne(t,e,r){var i=Le(t);return i&&De(i,e,r).getTime()===i.getTime()?i:ze(i,1,e,r)}function Fe(t,e){return t&&e?t.getTime()-e.getTime():-1}function Ue(t,e){return t.getTime()-e}function He(t){if(b(t)){for(var e=[],r=0;r<t.length;r++)e.push(He(t[r]));return e}if(t)return Le(t).getTime()}function Ge(t,e){return t&&e?He(t)===He(e):t===e}function We(t,e,r){return Ie(t,e)/Re[r]}function Ke(t,e,r,i){var o=Le(t),n=Le(e);return("months"===r?o.getMonth()-n.getMonth()+12*(o.getFullYear()-n.getFullYear())+We(o,new Date(o.getFullYear(),o.getMonth()),Te)/new Date(o.getFullYear(),o.getMonth()+1,0).getDate():r===Ee?o.getFullYear()-n.getFullYear()+Ke(o,new Date(o.getFullYear(),0),"months",1)/12:r===Te||"weeks"===r?We(o,n,r):Ue(o,e)/Re[r])/i}function Xe(t,e,r){return r===Ee?e.getFullYear()-t.getFullYear():"months"===r?12*Xe(t,e,Ee)+e.getMonth()-t.getMonth():r===Te?Math.floor(Ue(e,t)/864e5):Math.floor(Ue(e,t)/Re[r])}function Ye(t,e){return k(e)&&t.parseDate(e)||Le(e)}function qe(t,e){if(b(e)){for(var r=[],i=0;i<e.length;i++)r.push(Ye(t,e[i]));return r}return Ye(t,e)}function Ze(t,e){return C(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var $e=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this._ticks={}},e.prototype.categoriesHash=function(){return""},e.prototype.clone=function(){var t=new e(Object.assign({},this.options,{categories:this.options.srcCategories}),this.chartService);return t.createLabels(),t},e.prototype.initUserOptions=function(t){var e=t.categories||[],r=xt(t.min),i=xt(t.max);if(t.srcCategories=t.categories=e,(r||i)&&e.length){var o,n=r?Math.floor(t.min):0;o=i?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,o)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:C(t.min)?t.min%1:0,max:C(t.max)&&t.max%1!=0&&t.max<this.totalRange().max?e-(1-t.max%1):e-(t.justified?1:0)}},e.prototype.totalRangeIndices=function(t){var e,r=this.options,i=C(r.min)?r.min:0;if(e=C(r.max)?r.max:C(r.min)?i+r.categories.length:this.totalRange().max||1,t){var o=this.totalRange();i=At(i,0,o.max),e=At(e,0,o.max)}return{min:i,max:e}},e.prototype.range=function(){var t=this.options;return{min:C(t.min)?t.min:0,max:C(t.max)?t.max:this.totalRange().max}},e.prototype.roundedRange=function(){return this.range()},e.prototype.totalRange=function(){var t=this.options;return{min:0,max:Math.max(this._seriesMax||0,t.srcCategories.length)-(t.justified?1:0)}},e.prototype.scaleOptions=function(){var t=this.rangeIndices(),e=t.min,r=t.max,i=this.lineBox();return{scale:(this.options.vertical?i.height():i.width())/(r-e||1)*(this.options.reverse?-1:1),box:i,min:e,max:r}},e.prototype.arrangeLabels=function(){t.prototype.arrangeLabels.call(this),this.hideOutOfRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){var t=this.box,e=this.labels;if(e.length>0){var r=this.options.vertical?x:m,i=t[r+1],o=t[r+2],n=e[0],s=Pt(e);(n.box[r+1]>o||n.box[r+2]<i)&&(n.options.visible=!1),(s.box[r+1]>o||s.box[r+2]<i)&&(s.options.visible=!1)}},e.prototype.getMajorTickPositions=function(){return this.getTicks().majorTicks},e.prototype.getMinorTickPositions=function(){return this.getTicks().minorTicks},e.prototype.getLabelsTickPositions=function(){return this.getTicks().labelTicks},e.prototype.tickIndices=function(t){for(var e=this.rangeIndices(),r=e.min,i=e.max,o=Math.ceil(i),n=Math.floor(r),s=[];n<=o;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,i=e.reverse,o=this.scaleOptions(),n=o.scale,s=o.box,a=o.min,p=s[(r?x:m)+(i?2:1)],l=this.tickIndices(t),c=[],h=0;h<l.length;h++)c.push(p+jt(n*(l[h]-a),3));return c},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,r=this.rangeIndices(),i=this.lineBox(),o=i.getHash()+r.min+","+r.max+t.reverse+t.justified;if(e._hash!==o){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=o,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,i),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),i):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var r=this.options.vertical?x:m,i=function(t){return e[r+1]<=t&&t<=e[r+2]},o=t.length-1,n=0;!i(t[n])&&n<=o;)n++;for(var s=o;!i(t[s])&&s>=0;)s--;return t.slice(n,s+1)},e.prototype.getSlot=function(t,e,r){var i=this.options,o=i.reverse,n=i.justified,s=i.vertical,a=this.scaleOptions(),p=a.scale,l=a.box,c=a.min,h=s?x:m,u=l[h+(o?2:1)],f=l.clone(),d=!xt(e),v=Tt(t,0),y=Tt(e,v);y=Math.max(y-1,v);var g=u+(v-c)*p,b=u+((y=Math.max(v,y))+1-c)*p;return d&&n&&(b=g),r&&(g=At(g,l[h+1],l[h+2]),b=At(b,l[h+1],l[h+2])),f[h+1]=o?b:g,f[h+2]=o?g:b,f},e.prototype.limitSlot=function(t){var e=this.options.vertical?x:m,r=this.lineBox(),i=t.clone();return i[e+1]=At(t[e+1],r[e+1],r[e+2]),i[e+2]=At(t[e+2],r[e+1],r[e+2]),i},e.prototype.slot=function(e,r,i){var o=Math.floor(this.options.min||0),n=e,s=r;return"string"==typeof n?n=this.categoryIndex(n):C(n)&&(n-=o),"string"==typeof s?s=this.categoryIndex(s):C(s)&&(s-=o),t.prototype.slot.call(this,n,s,i)},e.prototype.pointCategoryIndex=function(t){var e=this.options,r=e.reverse,i=e.justified,o=e.vertical?x:m,n=this.scaleOptions(),s=n.scale,a=n.box,p=n.min,l=n.max,c=r?l:p,h=a[o+1],u=a[o+2],f=t[o];if(f<h||f>u)return null;var d=c+(f-h)/s,v=d%1;return i?d=Math.round(d):0===v&&d>0&&d--,Math.floor(d)},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.options.categories[e]},e.prototype.categoryIndex=function(t){return this.totalIndex(t)-Math.floor(this.options.min||0)},e.prototype.categoryAt=function(t,e){var r=this.options;return(e?r.srcCategories:r.categories)[t]},e.prototype.categoriesCount=function(){return(this.options.categories||[]).length},e.prototype.translateRange=function(t){var e=this.options,r=this.lineBox(),i=e.vertical?r.height():r.width(),o=e.categories.length,n=jt(t/(i/o),10);return{min:n,max:o+n}},e.prototype.zoomRange=function(t){var e=this.totalRangeIndices(),r=this.totalRange(),i=r.min,o=r.max,n=At(e.min+t,i,o),s=At(e.max-t,i,o);if(s-n>0)return{min:n,max:s}},e.prototype.scaleRange=function(t){var e=this.options.categories.length,r=t*e;return{min:-r,max:e+r}},e.prototype.labelsCount=function(){var t=this.labelsRange();return t.max-t.min},e.prototype.labelsRange=function(){var t=this.options,e=t.justified,r=t.labels,i=this.totalRangeIndices(!0),o=i.min,n=i.max,s=Math.floor(o);return e?(o=Math.ceil(o),n=Math.floor(n)):(o=Math.floor(o),n=Math.ceil(n)),{min:(o>r.skip?r.skip+r.step*Math.ceil((o-r.skip)/r.step):r.skip)-s,max:(t.categories.length?n+(e?1:0):0)-s}},e.prototype.createAxisLabel=function(t,e,r){var i=this.options,o=i.dataItems?i.dataItems[t]:null,n=Tt(i.categories[t],"");r.dataItem=o;var s=this.axisLabelText(n,e,r);return new Se(n,s,t,o,e)},e.prototype.shouldRenderNote=function(t){var e=this.totalRangeIndices();return Math.floor(e.min)<=t&&t<=Math.ceil(e.max)},e.prototype.noteSlot=function(t){var e=this.options,r=t-Math.floor(e.min||0);return this.getSlot(r)},e.prototype.arrangeNotes=function(){t.prototype.arrangeNotes.call(this),this.hideOutOfRangeNotes()},e.prototype.hideOutOfRangeNotes=function(){var t=this.notes,e=this.box;if(t&&t.length)for(var r=this.options.vertical?x:m,i=e[r+1],o=e[r+2],n=0;n<t.length;n++){var s=t[n];s.box&&(o<s.box[r+1]||s.box[r+2]<i)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),r=this.scaleOptions().scale,i=jt(t/r,10),o=this.totalRange(),n=e.min+i,s=e.max+i;return this.limitRange(n,s,0,o.max,i)},e.prototype.pointsRange=function(t,e){var r=this.options,i=r.reverse,o=r.vertical?x:m,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,p=s.box[o+(i?2:1)],l=t[o]-p,c=e[o]-p,h=n.min+l/a,u=n.min+c/a,f=Math.min(h,u),d=Math.max(h,u);if(d-f>=.01)return{min:f,max:d}},e.prototype.valueRange=function(){return this.range()},e.prototype.totalIndex=function(t){var e=this.options;return this._categoriesMap?this._categoriesMap.get(t):function(t,e){if(t instanceof Date){for(var r=e.length,i=0;i<r;i++)if(Ge(e[i],t))return i;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return C(t.min)&&(e=Math.floor(t.min)),{min:e,max:C(t.max)?t.justified?Math.floor(t.max):Math.ceil(t.max)-1:this.totalCount()-1}},e.prototype.mapCategories=function(){if(!this._categoriesMap)for(var t=this._categoriesMap=new lt,e=this.options.srcCategories,r=0;r<e.length;r++)t.set(e[r],r)},e.prototype.totalCount=function(){return Math.max(this.options.srcCategories.length,this._seriesMax||0)},e}(Me);It($e,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var Qe=$e,Je={milliseconds:"HH:mm:ss.fff",seconds:"HH:mm:ss",minutes:"HH:mm",hours:"HH:mm",days:"M/d",weeks:"M/d",months:"MMM 'yy",years:"yyyy"},tr=["milliseconds","seconds","minutes","hours",Te,"weeks","months",Ee];function er(t){var e=t._range;return e||((e=t._range=Bt(t)).min=Le(e.min),e.max=Le(e.max)),e}var rr=function(t){this.options=t};rr.prototype.displayIndices=function(){return{min:0,max:1}},rr.prototype.displayRange=function(){return{}},rr.prototype.total=function(){return{}},rr.prototype.valueRange=function(){return{}},rr.prototype.valueIndex=function(){return-1},rr.prototype.values=function(){return[]},rr.prototype.totalIndex=function(){return-1},rr.prototype.valuesCount=function(){return 0},rr.prototype.totalCount=function(){return 0},rr.prototype.dateAt=function(){return null};var ir=function(t,e,r){this.options=r,r.baseUnitStep=r.baseUnitStep||1;var i=r.roundToBaseUnit,o=r.justified;this.start=ze(t,0,r.baseUnit,r.weekStartDay);var n=this.roundToTotalStep(e),s=!o&&Ge(e,n)&&!r.justifyEnd;this.end=this.roundToTotalStep(e,!o,s?1:0);var a=r.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=i?this.valueStart:a;var p=r.max;if(p){var l=!o&&Ge(p,this.roundToTotalStep(p))?-1:0;this.valueEnd=this.roundToTotalStep(p,!1,l),this.displayEnd=i?this.roundToTotalStep(p,!o):r.max}else this.valueEnd=n,this.displayEnd=i||s?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function or(t,e,r){for(var i,o,n,s=er(t.categories),a=(t.max||s.max)-(t.min||s.min),p=t.autoBaseUnitSteps,l=t.maxDateGroups,c="fit"===t.baseUnit,h=e?tr.indexOf(e):0,u=c?tr[h++]:t.baseUnit,f=a/Re[u],d=f;!o||f>=l;){i=i||p[u].slice(0);do{n=i.shift()}while(n&&e===u&&n<r);if(n)f=d/(o=n);else{if(u===Pt(tr)){o=Math.ceil(d/l);break}if(!c){f>l&&(o=Math.ceil(d/l));break}u=tr[h++]||Pt(tr),d=a/Re[u],i=null}}t.baseUnitStep=o,t.baseUnit=u}function nr(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!ct(e,tr)&&function(t){for(var e,r,i=t.categories,o=xt(i)?i.length:0,n=u,s=0;s<o;s++){var a=i[s];if(a&&e){var p=Ie(a,e);p>0&&(r=(n=Math.min(n,p))>=31536e6?Ee:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Te:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=a}t.baseUnit=r||Te}(t),"fit"!==e&&"auto"!==t.baseUnitStep||or(t),t}ir.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},ir.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,r=t.baseUnitStep,i=Ke(this.displayStart,this.valueStart,e,r),o=Ke(this.displayEnd,this.valueStart,e,r);this._indices={min:i,max:o}}return this._indices},ir.prototype.total=function(){return{min:this.start,max:this.end}},ir.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},ir.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},ir.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Ke(t,this.valueStart,e.baseUnit,e.baseUnitStep))},ir.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Ke(t,this.start,e.baseUnit,e.baseUnitStep))},ir.prototype.dateIndex=function(t){var e=this.options;return Ke(t,this.valueStart,e.baseUnit,e.baseUnitStep)},ir.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},ir.prototype.values=function(){var t=this._values;if(!t){var e=this.options,r=this.valueRange();this._values=t=[];for(var i=r.min;i<=r.max;)t.push(i),i=ze(i,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},ir.prototype.dateAt=function(t,e){var r=this.options;return ze(e?this.start:this.valueStart,r.baseUnitStep*t,r.baseUnit,r.weekStartDay)},ir.prototype.roundToTotalStep=function(t,e,r){var i=this.options,o=i.baseUnit,n=i.baseUnitStep,s=i.weekStartDay,a=this.start,p=Ke(t,a,o,n),l=e?Math.ceil(p):Math.floor(p);return r&&(l+=r),ze(a,l*n,o,s)};var sr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(Object.assign({},this.options),this.chartService);return t.createLabels(),t},e.prototype.categoriesHash=function(){var t=this.dataRange.total().min;return this.options.baseUnit+this.options.baseUnitStep+t},e.prototype.initUserOptions=function(t){return t},e.prototype.initFields=function(){t.prototype.initFields.call(this);var e=this.chartService,r=e.intl,i=this.options,o=i.categories||[];if(o._parsed||((o=qe(r,o))._parsed=!0),i=E({roundToBaseUnit:!0},i,{categories:o,min:Ye(r,i.min),max:Ye(r,i.max),weekStartDay:Ze(i,r)}),e.panning&&e.isPannable(i.vertical?x:m)&&(i.roundToBaseUnit=!1),i.userSetBaseUnit=i.userSetBaseUnit||i.baseUnit,i.userSetBaseUnitStep=i.userSetBaseUnitStep||i.baseUnitStep,this.options=i,i.srcCategories=o,o.length>0){var n=er(o),s=i.maxDivisions;if(this.dataRange=new ir(n.min,n.max,nr(i)),s){var a=this.dataRange.displayRange(),p=Object.assign({},i,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),l=this.dataRange.options;or(p,l.baseUnit,l.baseUnitStep),this.divisionRange=new ir(n.min,n.max,p)}else this.divisionRange=this.dataRange}else i.baseUnit=i.baseUnit||Te,this.dataRange=this.divisionRange=new rr(i);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var r=this.dataRange,i=this.divisionRange,o=i.valuesCount();if(!this.options.maxDivisions||!o)return t.prototype.tickIndices.call(this,e);var n=[],s=i.values(),a=0;this.options.justified||(s=s.concat(i.dateAt(o)),a=.5);for(var p=0;p<s.length;p++)if(n.push(r.dateIndex(s[p])+a),1!==e&&p>=1){var l=n.length-1;n.splice(p,0,n[l-1]+(n[l]-n[l-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),r=this.options.categories||[];return Fe(t,e.min)>=0&&Fe(t,e.max)<=0&&r.length},e.prototype.parseNoteValue=function(t){return Ye(this.chartService.intl,t)},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.translateRange=function(t){var e=this.options,r=e.baseUnit,i=e.weekStartDay,o=e.vertical,n=this.lineBox(),s=o?n.height():n.width(),a=this.range(),p=s/(a.max-a.min),l=jt(t/p,10);if(a.min&&a.max){var c=Be(e.min||a.min,l),h=Be(e.max||a.max,l);a={min:ze(c,0,r,i),max:ze(h,0,r,i)}}return a},e.prototype.scaleRange=function(t){var e=Math.abs(t),r=this.range(),i=r.min,o=r.max;if(i&&o){for(;e--;){var n=Ue(i,o),s=Math.round(.1*n);t<0?(i=Be(i,s),o=Be(o,-s)):(i=Be(i,-s),o=Be(o,s))}r={min:i,max:o}}return r},e.prototype.labelsRange=function(){return{min:this.options.labels.skip,max:this.divisionRange.valuesCount()}},e.prototype.pan=function(t){if(this.isEmpty())return null;var e=this.options,r=this.lineBox(),i=e.vertical?r.height():r.width(),o=this.dataRange.displayRange(),n=o.min,s=o.max,a=this.dataRange.total(),p=jt(t/(i/(s-n)),10)*(e.reverse?-1:1),l=Be(n,p),c=Be(s,p),h=this.limitRange(He(l),He(c),He(a.min),He(a.max),p);return h?(h.min=Le(h.min),h.max=Le(h.max),h.baseUnit=e.baseUnit,h.baseUnitStep=e.baseUnitStep||1,h.userSetBaseUnit=e.userSetBaseUnit,h.userSetBaseUnitStep=e.userSetBaseUnitStep,h):void 0},e.prototype.pointsRange=function(e,r){if(this.isEmpty())return null;var i=t.prototype.pointsRange.call(this,e,r),o=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),s=Ue(o.max,o.min)/(n.max-n.min),a=this.options;return{min:Be(o.min,i.min*s),max:Be(o.min,i.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.zoomRange=function(t){if(this.isEmpty())return null;var e=this.options,r="fit"===e.userSetBaseUnit,i=this.dataRange.total(),o=this.dataRange.displayRange(),n=o.min,s=o.max,a=this.dataRange.options,p=a.weekStartDay,l=a.baseUnit,c=a.baseUnitStep,h=ze(n,t*c,l,p),u=ze(s,-t*c,l,p);if(r){var f,d,v=e.autoBaseUnitSteps,y=e.maxDateGroups,g=Pt(v[l])*y*Re[l],m=Ue(s,n),x=Ue(u,h),b=tr.indexOf(l);if(x<Re[l]&&"milliseconds"!==l)l=tr[b-1],h=Be(n,d=(m-(y-1)*(f=Pt(v[l]))*Re[l])/2),u=Be(s,-d);else if(x>g&&l!==Ee){var _=0;do{b++,l=tr[b],_=0,d=2*Re[l];do{f=v[l][_],_++}while(_<v[l].length&&d*f<m)}while(l!==Ee&&d*f<m);(d=(d*f-m)/2)>0&&(h=Be(n,-d),u=Be(s,d),h=Be(h,At(u,i.min,i.max)-u),u=Be(u,At(h,i.min,i.max)-h))}}return h<i.min&&(h=i.min),u>i.max&&(u=i.max),h&&u&&Ue(u,h)>0?{min:h,max:u,baseUnit:e.userSetBaseUnit||e.baseUnit,baseUnitStep:e.userSetBaseUnitStep||e.baseUnitStep}:void 0},e.prototype.range=function(){return this.dataRange.displayRange()},e.prototype.createLabels=function(){t.prototype.createLabels.call(this),this.createRangeLabels()},e.prototype.clearLabels=function(){t.prototype.clearLabels.call(this),this.rangeLabels=[]},e.prototype.arrangeLabels=function(){this.arrangeRangeLabels(),t.prototype.arrangeLabels.call(this)},e.prototype.arrangeRangeLabels=function(){var t=this.options,e=this.rangeLabels;if(0!==e.length){var r=this.lineBox(),i=t.vertical,o=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var s=i?r.y1-n.box.height()/2:r.x1;this.positionLabel(n,o,s)}var a=e[1];if(a){var p=i?r.y2-a.box.height()/2:r.x2;this.positionLabel(a,o,p)}}},e.prototype.autoRotateLabels=function(){t.prototype.autoRotateLabels.call(this),this.autoRotateRangeLabels()},e.prototype.hideOutOfRangeLabels=function(){t.prototype.hideOutOfRangeLabels.call(this),this.hideOverlappingLabels()},e.prototype.hideOverlappingLabels=function(){var t=this.rangeLabels,e=this.labels;if(0!==t.length){var r=t[0];if(r&&r.options.visible)for(var i=0;i<e.length;i++){if(!s(r,e[i]))break}var o=t[1];if(o&&o.options.visible)for(var n=e.length-1;n>0;--n){if(!s(o,e[n]))break}}function s(t,e){return!(e.options.visible&&!e.box.overlaps(t.box))&&(e.options.visible=!1,!0)}},e.prototype.contentBox=function(){for(var e=t.prototype.contentBox.call(this),r=this.rangeLabels,i=0;i<r.length;i++){var o=r[i];o.options.visible&&e.wrap(o.box)}return e},e.prototype.createAxisLabel=function(t,e,r){void 0===r&&(r={});var i=this.options,o=i.dataItems&&!i.maxDivisions?i.dataItems[t]:null,n=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,r.dataItem=o;var a=this.axisLabelText(n,e,r);if(a)return new Se(n,a,t,o,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,r=e.displayStart,i=e.displayEnd,o=this.options,n=Object.assign({},o.labels,o.rangeLabels,{align:a,zIndex:o.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,o.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var p=function(e,r,i){if(i){var o=new Se(r,i,e,null,n);t.append(o),t.rangeLabels.push(o)}};p(0,r,this.axisLabelText(r,n,{index:0,count:2})),p(1,i,this.axisLabelText(i,n,{index:1,count:2}))}},e.prototype.autoRotateRangeLabels=function(){var t=this,e=this.rangeLabels;if(this.options.autoRotateRangeLabels&&!this.options.vertical&&2===e.length){var r=function(e,r,i){var o=2*Math.abs(r[i+1]-r[i]),n=t.autoRotateLabelAngle(e.box,o);0!==n&&(e.options.rotation=n,e.reflow(new $t))},i=this.getMajorTickPositions();r(e[0],i,0),r(e[1],i,i.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,r){var i=this.dataRange,o=t,n=e;o instanceof Date&&(o=i.dateIndex(o)),n instanceof Date&&(n=i.dateIndex(n));var s=this.getSlot(o,n,r);if(s)return s.toRect()},e.prototype.getSlot=function(e,r,i){var o=e,n=r;return"object"==typeof o&&(o=this.categoryIndex(o)),"object"==typeof n&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,o,n,i)},e.prototype.valueRange=function(){var t=er(this.options.srcCategories);return{min:Le(t.min),max:Le(t.max)}},e.prototype.categoryAt=function(t,e){return this.dataRange.dateAt(t,e)},e.prototype.categoriesCount=function(){return this.dataRange.valuesCount()},e.prototype.rangeIndices=function(){return this.dataRange.displayIndices()},e.prototype.labelsBetweenTicks=function(){return!this.divisionRange.options.justified},e.prototype.prepareUserOptions=function(){this.isEmpty()||(this.options.categories=this.dataRange.values())},e.prototype.getCategory=function(t){var e=this.pointCategoryIndex(t);return null===e?null:this.dataRange.dateAt(e)},e.prototype.totalIndex=function(t){return this.dataRange.totalIndex(t)},e.prototype.currentRangeIndices=function(){var t=this.dataRange.valueRange();return{min:this.dataRange.totalIndex(t.min),max:this.dataRange.totalIndex(t.max)}},e.prototype.totalRange=function(){return this.dataRange.total()},e.prototype.totalCount=function(){return this.dataRange.totalCount()},e.prototype.isEmpty=function(){return!this.options.srcCategories.length},e.prototype.roundedRange=function(){if(!1!==this.options.roundToBaseUnit||this.isEmpty())return this.range();var t=this.options,e=er(t.srcCategories);return new ir(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(Qe);It(sr,{type:l,labels:{dateFormats:Je},rangeLabels:{visible:!1},autoBaseUnitSteps:{milliseconds:[1,10,100],seconds:[1,2,5,15,30],minutes:[1,2,5,15,30],hours:[1,2,3],days:[1,2,3],weeks:[1,2],months:[1,2,3,6],years:[1,2,3,5,10,25,50]},maxDateGroups:10});var ar=sr;function pr(t,e){return jt(Math.floor(t/e)*e,10)}function lr(t,e){return jt(Math.ceil(t/e)*e,10)}function cr(t){return Math.max(Math.min(t,3e5),-3e5)}var hr=Math.pow(10,-9),ur=function(t){function e(e,r,i,o){t.call(this,Object.assign({},i,{seriesMin:e,seriesMax:r}),o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=function(t,e,r){var i=r.narrowRange,o=function(t,e,r){if(!t&&!e)return 0;var i;if(t>=0&&e>=0){var o=t===e?0:t;if(!1===r||!r&&(e-o)/e>.2)return 0;i=Math.max(0,o-(e-o)/2)}else i=t;return i}(t,e,i),n=function(t,e,r){if(!t&&!e)return 1;var i;if(t<=0&&e<=0){var o=t===e?0:e,n=Math.abs((o-t)/o);if(!1===r||!r&&n>.2)return 0;i=Math.min(0,o-(t-o)/2)}else i=e;return i}(t,e,i),s=Yt(o,n),a={majorUnit:s};!1!==r.roundToMajorUnit&&(o<0&&fr(o,s,1/3)&&(o-=s),n>0&&fr(n,s,1/3)&&(n+=s));return a.min=pr(o,s),a.max=lr(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:xt(e.min)?Math.min(t.min,e.min):t.min,max:xt(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var r,i,o=e;if(e){!function(t,e){for(var r=0;r<e.length;r++){var i=e[r];null===t[i]&&(t[i]=void 0)}}(e,["min","max"]),r=xt(e.min),i=xt(e.max);var n=r||i;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=pr(t.min,e.majorUnit),t.max=lr(t.max,e.majorUnit)):n&&(o=E(t,e),t.majorUnit=Yt(o.min,o.max))}t.minorUnit=(o.majorUnit||t.majorUnit)/5;var s=E(t,o);s.min>=s.max&&(r&&!i?s.max=s.min+s.majorUnit:!r&&i&&(s.min=s.max-s.majorUnit));return s}(e,t)},e.prototype.initFields=function(){this.totalMin=this.totalOptions.min,this.totalMax=this.totalOptions.max,this.totalMajorUnit=this.totalOptions.majorUnit,this.seriesMin=this.options.seriesMin,this.seriesMax=this.options.seriesMax},e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return 0},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){if(0===t)return 1;var e=this.options,r=e.max-e.min;return Math.floor(jt(r/t,3))+1},e.prototype.getTickPositions=function(t,e){var r=this.options,i=r.vertical,o=r.reverse,n=this.lineBox(),s=t*((i?n.height():n.width())/(r.max-r.min)),a=this.getDivisions(t),p=(i?-1:1)*(o?-1:1),l=[],c=n[(i?x:m)+(1===p?1:2)],h=0;e&&(h=e/t);for(var u=0;u<a;u++)u%h!=0&&l.push(jt(c,3)),c+=s*p;return l},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,r){void 0===r&&(r=!1);var i,o,n=this.options,s=n.vertical,a=n.reverse,p=s?x:m,l=this.lineBox(),c=l[p+(a?2:1)],h=(a?-1:1)*((s?l.height():l.width())/(n.max-n.min)),u=new $t(l.x1,l.y1,l.x1,l.y1),f=t,d=e;return xt(f)||(f=d||0),xt(d)||(d=f||0),r&&(f=Math.max(Math.min(f,n.max),n.min),d=Math.max(Math.min(d,n.max),n.min)),s?(i=n.max-Math.max(f,d),o=n.max-Math.min(f,d)):(i=Math.min(f,d)-n.min,o=Math.max(f,d)-n.min),u[p+1]=cr(c+h*(a?o:i)),u[p+2]=cr(c+h*(a?i:o)),u},e.prototype.getValue=function(t){var e=this.options,r=e.vertical,i=e.reverse,o=Number(e.max),n=Number(e.min),s=r?x:m,a=this.lineBox(),p=a[s+(i?2:1)],l=r?a.height():a.width(),c=(i?-1:1)*(t[s]-p),h=c*((o-n)/l);return c<0||c>l?null:jt(r?o-h:n+h,10)},e.prototype.translateRange=function(t){var e=this.options,r=e.vertical,i=e.reverse,o=e.max,n=e.min,s=this.lineBox(),a=r?s.height():s.width(),p=jt(t/(a/(o-n)),10);return!r&&!i||r&&i||(p=-p),{min:n+p,max:o+p,offset:p}},e.prototype.scaleRange=function(t){var e=this.options,r=-t*e.majorUnit;return{min:e.min-r,max:e.max+r}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var i=this.options,o=jt(i.min+t*i.majorUnit,10),n=this.axisLabelText(o,e,r);return new Se(o,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),i=this.getValue(e),o=Math.min(r,i),n=Math.max(r,i);if(this.isValidRange(o,n))return{min:o,max:n}},e.prototype.zoomRange=function(t){var e=this.totalMin,r=this.totalMax,i=this.scaleRange(t),o=At(i.min,e,r),n=At(i.max,e,r);if(this.isValidRange(o,n))return{min:o,max:n}},e.prototype.isValidRange=function(t,e){return e-t>hr},e}(Me);function fr(t,e,r){var i=jt(Math.abs(t%e),10);return 0===i||i>e*(1-r)}It(ur,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var dr=ur,vr=function(t){function e(e,r,i,o){var n=Le(e),s=Le(r),a=o.intl,p=i||{};p=function(t,e,r){var i=r.min||t,o=r.max||e,n=r.baseUnit||(o&&i?function(t){var e="hours";t>=31536e6?e=Ee:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Te);return e}(Ie(o,i)):"hours"),s=Re[n],a=r.weekStartDay||0,p=De(He(i)-1,n,a)||Le(o),l=Ne(He(o)+1,n,a),c=(r.majorUnit?r.majorUnit:void 0)||lr(Yt(p.getTime(),l.getTime()),s)/s,h=Xe(p,l,n),u=lr(h,c)-h,f=Math.floor(u/2),d=u-f;r.baseUnit||delete r.baseUnit;return r.baseUnit=r.baseUnit||n,r.min=r.min||ze(p,-f,n,a),r.max=r.max||ze(l,d,n,a),r.minorUnit=r.minorUnit||c/5,r.majorUnit=c,r}(n,s,p=E(p||{},{min:Ye(a,p.min),max:Ye(a,p.max),axisCrossingValue:qe(a,p.axisCrossingValues||p.axisCrossingValue),weekStartDay:Ze(p,a)})),t.call(this,p,o),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var l=p.weekStartDay||0;this.totalMin=He(De(He(n)-1,p.baseUnit,l)),this.totalMax=He(Ne(He(s)+1,p.baseUnit,l))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.getDivisions=function(t){var e=this.options;return Math.floor(Xe(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,i=this.lineBox(),o=(r?-1:1)*(e.reverse?-1:1),n=i[(r?x:m)+(1===o?1:2)],s=this.getDivisions(t),a=Ue(e.max,e.min),p=(r?i.height():i.width())/a,l=e.weekStartDay||0,c=[n],h=1;h<s;h++){var u=n+Ue(ze(e.min,h*t,e.baseUnit,l),e.min)*p*o;c.push(jt(u,3))}return c},e.prototype.getMajorTickPositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.getMinorTickPositions=function(){return this.getTickPositions(this.options.minorUnit)},e.prototype.getSlot=function(t,e,r){return dr.prototype.getSlot.call(this,Ye(this.intlService,t),Ye(this.intlService,e),r)},e.prototype.getValue=function(t){var e=dr.prototype.getValue.call(this,t);return null!==e?Le(e):null},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var i=this.options,o=t*i.majorUnit,n=i.weekStartDay||0,s=i.min;o>0&&(s=ze(s,o,i.baseUnit,n));var a=e.dateFormats[i.baseUnit];e.format=e.format||a;var p=this.axisLabelText(s,e,r);return new Se(s,p,t,null,e)},e.prototype.translateRange=function(t,e){var r=this.options,i=r.baseUnit,o=r.weekStartDay||0,n=this.lineBox(),s=r.vertical?n.height():n.width(),a=this.range(),p=s/Ue(a.max,a.min),l=jt(t/p,10)*(r.reverse?-1:1),c=Be(r.min,l),h=Be(r.max,l);return e||(c=ze(c,0,i,o),h=ze(h,0,i,o)),{min:c,max:h,offset:l}},e.prototype.scaleRange=function(t){for(var e=this.options,r=e.min,i=e.max,o=Math.abs(t);o--;){var n=Ue(r,i),s=Math.round(.1*n);t<0?(r=Be(r,s),i=Be(i,-s)):(r=Be(r,-s),i=Be(i,s))}return{min:r,max:i}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Fe(t,e.min)>=0&&Fe(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),r=this.limitRange(He(e.min),He(e.max),this.totalMin,this.totalMax,e.offset);if(r)return{min:Le(r.min),max:Le(r.max)}},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),i=this.getValue(e),o=Math.min(r,i),n=Math.max(r,i);return{min:Le(o),max:Le(n)}},e.prototype.zoomRange=function(t){var e=this.scaleRange(t);return{min:Le(At(He(e.min),this.totalMin,this.totalMax)),max:Le(At(He(e.max),this.totalMin,this.totalMax))}},e}(Me);It(vr,{type:l,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:Je}});var yr=vr,gr=function(t){function e(e,r,i,o){var n=E({majorUnit:10,min:e,max:r},i),s=n.majorUnit,a=function(t,e){var r,i=jt(xr(t,e),10)%1;r=t<=0?e:0!==i&&(i<.3||i>.9)?Math.pow(e,xr(t,e)+.2):Math.pow(e,Math.ceil(xr(t,e)));return r}(r,s),p=function(t,e,r){var i=r.majorUnit,o=t;t<=0?o=e<=1?Math.pow(i,-2):1:r.narrowRange||(o=Math.pow(i,Math.floor(xr(t,i))));return o}(e,r,n),l=function(t,e,r,i){var o=r.min,n=r.max;xt(r.axisCrossingValue)&&r.axisCrossingValue<=0&&mr();xt(i.max)?i.max<=0&&mr():n=e;xt(i.min)?i.min<=0&&mr():o=t;return{min:o,max:n}}(p,a,n,i);n.max=l.max,n.min=l.min,n.minorUnit=i.minorUnit||jt(s-1,10),t.call(this,n,o),this.totalMin=xt(i.min)?Math.min(p,i.min):p,this.totalMax=xt(i.max)?Math.max(a,i.max):a,this.logMin=jt(xr(l.min,s),10),this.logMax=jt(xr(l.max,s),10),this.seriesMin=e,this.seriesMax=r,this.createLabels()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.seriesMin,this.seriesMax,Object.assign({},this.options),this.chartService)},e.prototype.startValue=function(){return this.options.min},e.prototype.getSlot=function(t,e,r){var i,o,n=this.options,s=this.logMin,a=this.logMax,p=n.reverse,l=n.vertical,c=n.majorUnit,h=l?x:m,u=this.lineBox(),f=u[h+(p?2:1)],d=(p?-1:1)*((l?u.height():u.width())/(a-s)),v=new $t(u.x1,u.y1,u.x1,u.y1),y=t,g=e;return xt(y)||(y=g||1),xt(g)||(g=y||1),y<=0||g<=0?null:(r&&(y=Math.max(Math.min(y,n.max),n.min),g=Math.max(Math.min(g,n.max),n.min)),y=xr(y,c),g=xr(g,c),l?(i=a-Math.max(y,g),o=a-Math.min(y,g)):(i=Math.min(y,g)-s,o=Math.max(y,g)-s),v[h+1]=cr(f+d*(p?o:i)),v[h+2]=cr(f+d*(p?i:o)),v)},e.prototype.getValue=function(t){var e=this.options,r=this.logMin,i=this.logMax,o=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),p=n===o?1:-1,l=1===p?1:2,c=n?a.height():a.width(),h=(i-r)/c,u=n?x:m,f=a[u+l],d=p*(t[u]-f);if(d<0||d>c)return null;var v=r+d*h;return jt(Math.pow(s,v),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.scaleRange=function(t){var e=this.options.majorUnit,r=-t;return{min:Math.pow(e,this.logMin-r),max:Math.pow(e,this.logMax+r)}},e.prototype.translateRange=function(t){var e=this.options,r=this.logMin,i=this.logMax,o=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),p=n?a.height():a.width(),l=jt(t/(p/(i-r)),10);return!n&&!o||n&&o||(l=-l),{min:Math.pow(s,r+l),max:Math.pow(s,i+l),offset:l}},e.prototype.labelsCount=function(){var t=Math.floor(this.logMax);return Math.floor(t-this.logMin)+1},e.prototype.getMajorTickPositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),{step:1,skip:0}),t},e.prototype.createTicks=function(t){var e=this.options,r=e.majorTicks,i=e.minorTicks,o=e.vertical,n=e.labels.mirror,s=this.lineBox(),a={vertical:o};function p(e,r){a.tickX=n?s.x2:s.x2-r.size,a.tickY=n?s.y1-r.size:s.y1,a.position=e,t.append(Ce(a,r))}return r.visible&&this.traverseMajorTicksPositions(p,r),i.visible&&this.traverseMinorTicksPositions(p,i),[]},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,i=e.majorGridLines,o=e.vertical,n=t.lineBox(),s={lineStart:n[o?"x1":"y1"],lineEnd:n[o?"x2":"y2"],vertical:o},a=[],p=this.gridLinesVisual();function l(t,e){ct(t,a)||(s.position=t,p.append(ke(s,e)),a.push(t))}return i.visible&&this.traverseMajorTicksPositions(l,i),r.visible&&this.traverseMinorTicksPositions(l,r),p.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var r=this._lineOptions(),i=r.lineStart,o=r.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step){t(jt(i+o*(a-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var r=this.options,i=r.min,o=r.max,n=r.minorUnit,s=r.majorUnit,a=this._lineOptions(),p=a.lineStart,l=a.step,c=this.logMin,h=this.logMax,u=Math.floor(c);u<h;u++)for(var f=this._minorIntervalOptions(u),d=e.skip;d<n;d+=e.step){var v=f.value+d*f.minorStep;if(v>o)break;if(v>=i)t(jt(p+l*(xr(v,s)-c),10),e)}},e.prototype.createAxisLabel=function(t,e,r){var i=Math.ceil(this.logMin+t),o=Math.pow(this.options.majorUnit,i),n=this.axisLabelText(o,e,r);return new Se(o,n,t,null,e)},e.prototype.shouldRenderNote=function(t){var e=this.range();return e.min<=t&&t<=e.max},e.prototype.pan=function(t){var e=this.translateRange(t);return this.limitRange(e.min,e.max,this.totalMin,this.totalMax,e.offset)},e.prototype.pointsRange=function(t,e){var r=this.getValue(t),i=this.getValue(e);return{min:Math.min(r,i),max:Math.max(r,i)}},e.prototype.zoomRange=function(t){var e=this.options,r=this.totalMin,i=this.totalMax,o=this.scaleRange(t),n=At(o.min,r,i),s=At(o.max,r,i),a=e.majorUnit,p=s>n&&e.min&&e.max&&jt(xr(e.max,a)-xr(e.min,a),10)<1,l=!(e.min===r&&e.max===i)&&jt(xr(s,a)-xr(n,a),10)>=1;if(p||l)return{min:n,max:s}},e.prototype._minorIntervalOptions=function(t){var e=this.options,r=e.minorUnit,i=e.majorUnit,o=Math.pow(i,t);return{value:o,minorStep:(Math.pow(i,t+1)-o)/r}},e.prototype._lineOptions=function(){var t=this.options,e=t.reverse,r=t.vertical,i=r?x:m,o=this.lineBox(),n=r===e?1:-1,s=1===n?1:2;return{step:n*((r?o.height():o.width())/(this.logMax-this.logMin)),lineStart:o[i+s],lineBox:o}},e}(Me);function mr(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function xr(t,e){return Math.log(t)/Math.log(e)}It(gr,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var br=gr,_r={createGridLines:function(t){var e,r,i=this.options,o=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return i.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,o,i.majorGridLines)),i.minorGridLines.visible&&(r=this.minorGridLineAngles(t,s),gt(n,this.renderMinorGridLines(r,o,i.minorGridLines,t,s))),n},renderMajorGridLines:function(t,e,r){return this.renderGridLines(t,e,r)},renderMinorGridLines:function(t,e,r,i,o){var n=this.radiusCallback&&this.radiusCallback(e,i,o);return this.renderGridLines(t,e,r,n)},renderGridLines:function(t,e,r,i){for(var o={stroke:{width:r.width,color:r.color,dashType:r.dashType}},n=this.box.center(),s=new S.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),p=0;p<t.length;p++){var l=new S.drawing.Path(o);i&&(s.radius=i(t[p])),l.moveTo(s.center).lineTo(s.pointAt(t[p]+180)),a.append(l)}return a.children},gridLineAngles:function(t,e,r,i,o){var n=this,s=this.intervals(e,r,i,o),a=t.options,p=a.visible&&!1!==(a.line||{}).visible;return dt(s,(function(t){var e=n.intervalAngle(t);if(!p||90!==e)return e}))}},wr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.range=function(){return{min:0,max:this.options.categories.length}},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.lineBox=function(){return this.box},e.prototype.reflowLabels=function(){for(var t=this.labels,e=this.options.labels,r=e.skip||0,i=e.step||1,o=new $t,n=0;n<t.length;n++){t[n].reflow(o);var s=t[n].box;t[n].reflow(this.getSlot(r+n*i).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,r,i){void 0===i&&(i=!1);for(var o=this.options,n=o.categories.length/t||1,s=360/n,a=r||1,p=[],l=0,c=e||0;c<n;c+=a)l=o.reverse?360-c*s:c*s,l=jt(l,3)%360,i&&ct(l,i)||p.push(l);return p},e.prototype.majorIntervals=function(){return this.intervals(1)},e.prototype.minorIntervals=function(){return this.intervals(.5)},e.prototype.intervalAngle=function(t){return(360+t+this.options.startAngle)%360},e.prototype.majorAngles=function(){var t=this;return dt(this.majorIntervals(),(function(e){return t.intervalAngle(e)}))},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,1,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var r=this.options,i=r.minorGridLines,o=r.majorGridLines,n=e?this.intervals(1,o.skip,o.step):null;return this.gridLineAngles(t,.5,i.skip,i.step,n)},e.prototype.radiusCallback=function(t,e,r){if(e.options.type!==o){var i=kt(360/(2*this.options.categories.length)),n=Math.cos(i)*t,s=this.majorAngles(),a=function(e){return!r&&ct(e,s)?t:n};return a}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new S.drawing.Group({zIndex:-1}),r=0;r<t.length;r++){var i=t[r],o=this.plotBandSlot(i),n=this.getSlot(i.from),s=i.from-Math.floor(i.from);o.startAngle+=s*n.angle;var a=Math.ceil(i.to)-i.to;o.angle-=(a+s)*n.angle;var p=re.current.createRing(o,{fill:{color:i.color,opacity:i.opacity},stroke:{opacity:i.opacity}});e.append(p)}this.appendVisual(e)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to-1)},e.prototype.getSlot=function(t,e){var r=this.options,i=r.justified,o=this.box,n=this.majorAngles(),s=n.length,a=360/s,p=t;r.reverse&&!i&&(p=(p+1)%s);var l=n[p=At(Math.floor(p),0,s-1)];i&&(l-=a/2)<0&&(l+=360);var c=a*(At(Math.ceil(e||p),p,s-1)-p+1);return new Jt(o.center(),0,o.height()/2,l,c)},e.prototype.slot=function(t,e){var r=this.getSlot(t,e),i=r.startAngle+180,o=i+r.angle;return new S.geometry.Arc([r.center.x,r.center.y],{startAngle:i,endAngle:o,radiusX:r.radius,radiusY:r.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,r=null,i=0;i<e;i++){if(this.getSlot(i).containsPoint(t)){r=i;break}}return r},e}(Qe);It(wr,{startAngle:90,labels:{margin:z(10)},majorGridLines:{visible:!0},justified:!0}),E(wr.prototype,_r);var Or=wr,Sr=function(t){function e(e,r){t.call(this,e,r);var i=this.options;i.minorUnit=i.minorUnit||i.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return dr.prototype.getDivisions.call(this,t)-1},e.prototype.reflow=function(t){this.box=t,this.reflowLabels()},e.prototype.reflowLabels=function(){for(var t=this.options,e=this.labels,r=this.options.labels,i=r.skip||0,o=r.step||1,n=new $t,s=this.intervals(t.majorUnit,i,o),a=0;a<e.length;a++){e[a].reflow(n);var p=e[a].box;e[a].reflow(this.getSlot(s[a]).adjacentBox(0,p.width(),p.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,r,i){void 0===i&&(i=!1);for(var o=this.options.min,n=this.getDivisions(t),s=[],a=r||1,p=e||0;p<n;p+=a){var l=(360+o+p*t)%360;i&&ct(l,i)||s.push(l)}return s},e.prototype.majorIntervals=function(){return this.intervals(this.options.majorUnit)},e.prototype.minorIntervals=function(){return this.intervals(this.options.minorUnit)},e.prototype.intervalAngle=function(t){return(540-t-this.options.startAngle)%360},e.prototype.createLine=function(){return[]},e.prototype.majorGridLineAngles=function(t){var e=this.options.majorGridLines;return this.gridLineAngles(t,this.options.majorUnit,e.skip,e.step)},e.prototype.minorGridLineAngles=function(t,e){var r=this.options,i=r.minorGridLines,o=r.majorGridLines,n=e?this.intervals(r.majorUnit,o.skip,o.step):null;return this.gridLineAngles(t,r.minorUnit,i.skip,i.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var r=this.options,i=this.box,o=r.startAngle,n=At(t,r.min,r.max),s=At(e||n,n,r.max);if(r.reverse&&(n*=-1,s*=-1),(s=(540-s-o)%360)<(n=(540-n-o)%360)){var a=n;n=s,s=a}return new Jt(i.center(),0,i.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var r,i,o=this.options,n=360-o.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),p=Math.max(t,e);return o.reverse?(r=a,i=p):(r=360-p,i=360-a),r=(r+n)%360,i=(i+n)%360,new S.geometry.Arc([s.center.x,s.center.y],{startAngle:r,endAngle:i,radiusX:s.radius,radiusY:s.radius})},e.prototype.getValue=function(t){var e=this.options,r=this.box.center(),i=t.x-r.x,o=t.y-r.y,n=Math.round(bt(Math.atan2(o,i))),s=e.startAngle;return e.reverse||(n*=-1,s*=-1),(n+s+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Me);It(Sr,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:z(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),E(Sr.prototype,_r,{createPlotBands:Or.prototype.createPlotBands,majorAngles:Or.prototype.majorAngles,range:dr.prototype.range,labelsCount:dr.prototype.labelsCount,createAxisLabel:dr.prototype.createAxisLabel});var Pr=Sr;function Ar(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var Cr={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,r=t.plotBands;void 0===r&&(r=[]);for(var i=this.plotArea.polarAxis,n=i.majorAngles(),s=i.box.center(),a=this._plotbandGroup=new S.drawing.Group({zIndex:-1}),p=0;p<r.length;p++){var l=r[p],c={fill:{color:l.color,opacity:l.opacity},stroke:{opacity:l.opacity}},h=this.getSlot(l.from,l.to,!0),u=new Jt(s,s.y-h.y2,s.y-h.y1,0,360),f=void 0;f=e===o?re.current.createRing(u,c):S.drawing.Path.fromPoints(this.plotBandPoints(u,n),c).close(),a.append(f)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var r=[],i=[],o=[t.center.x,t.center.y],n=new S.geometry.Circle(o,t.innerRadius),s=new S.geometry.Circle(o,t.radius),a=0;a<e.length;a++)r.push(n.pointAt(e[a]+180)),i.push(s.pointAt(e[a]+180));return r.reverse(),r.push(r[0]),i.push(i[0]),i.concat(r)},createGridLines:function(t){var e=this.options,r=this.radarMajorGridLinePositions(),i=t.majorAngles(),o=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(o,r,i,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();gt(n,this.renderGridLines(o,s,i,e.minorGridLines))}return n},renderGridLines:function(t,e,r,i){var n={stroke:{width:i.width,color:i.color,dashType:i.dashType}},s=i.skip;void 0===s&&(s=0);var a=i.step;void 0===a&&(a=0);for(var p=this.gridLinesVisual(),l=s;l<e.length;l+=a){var c=t.y-e[l];if(c>0){var h=new S.geometry.Circle([t.x,t.y],c);if(i.type===o)p.append(new S.drawing.Circle(h,n));else{for(var u=new S.drawing.Path(n),f=0;f<r.length;f++)u.lineTo(h.pointAt(r[f]+180));u.close(),p.append(u)}}}return p.children},getValue:function(t){var e=this.lineBox(),r=this.plotArea.polarAxis,i=r.majorAngles(),n=r.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==o&&i.length>1){var p=t.x-n.x,l=t.y-n.y,c=(bt(Math.atan2(l,p))+540)%360;i.sort((function(t,e){return Ar(t,c)-Ar(e,c)}));var h=90-Ar(i[0],i[1])/2,u=180-Ar(c,i[0])-h;a=s*(Math.sin(kt(u))/Math.sin(kt(h)))}return this.axisType().prototype.getValue.call(this,new qt(e.x1,e.y2-a))}},kr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){return this.getTickPositions(this.options.majorUnit)},e.prototype.radarMinorGridLinePositions=function(){var t=this.options,e=0;return t.majorGridLines.visible&&(e=t.majorUnit),this.getTickPositions(t.minorUnit,e)},e.prototype.axisType=function(){return t},e}(dr);E(kr.prototype,Cr);var jr=kr,Mr=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.radarMajorGridLinePositions=function(){var t=[];return this.traverseMajorTicksPositions((function(e){t.push(e)}),this.options.majorGridLines),t},e.prototype.radarMinorGridLinePositions=function(){var t=[];return this.traverseMinorTicksPositions((function(e){t.push(e)}),this.options.minorGridLines),t},e.prototype.axisType=function(){return t},e}(br);E(Mr.prototype,Cr);var Tr=Mr;function Er(t){return t<=0?-1:1}var Rr=function(t){function e(e){t.call(this),this.closed=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.process=function(t){var e=t.slice(0),r=[],i=this.closed,o=e.length;if(o>2&&(this.removeDuplicates(0,e),o=e.length),o<2||2===o&&e[0].equals(e[1]))return r;var n,s,a=e[0],p=e[1],l=e[2];for(r.push(new S.geometry.Segment(a));a.equals(e[o-1]);)i=!0,e.pop(),o--;if(2===o){var c=this.tangent(a,p,m,x);return Pt(r).controlOut(this.firstControlPoint(c,a,p,m,x)),r.push(new S.geometry.Segment(p,this.secondControlPoint(c,a,p,m,x))),r}if(i){a=e[o-1],p=e[0],l=e[1];var h=this.controlPoints(a,p,l);n=h[1],s=h[0]}else{var u=this.tangent(a,p,m,x);n=this.firstControlPoint(u,a,p,m,x)}for(var f=n,d=0;d<=o-3;d++)if(this.removeDuplicates(d,e),d+3<=(o=e.length)){a=e[d],p=e[d+1],l=e[d+2];var v=this.controlPoints(a,p,l);Pt(r).controlOut(f),f=v[1];var y=v[0];r.push(new S.geometry.Segment(p,y))}if(i){a=e[o-2],p=e[o-1],l=e[0];var g=this.controlPoints(a,p,l);Pt(r).controlOut(f),r.push(new S.geometry.Segment(p,g[0])),Pt(r).controlOut(g[1]),r.push(new S.geometry.Segment(l,s))}else{var b=this.tangent(p,l,m,x);Pt(r).controlOut(f),r.push(new S.geometry.Segment(l,this.secondControlPoint(b,p,l,m,x)))}return r},e.prototype.removeDuplicates=function(t,e){for(;e[t+1]&&(e[t].equals(e[t+1])||e[t+1].equals(e[t+2]));)e.splice(t+1,1)},e.prototype.invertAxis=function(t,e,r){var i=!1;if(t.x===e.x)i=!0;else if(e.x===r.x)(e.y<r.y&&t.y<=e.y||r.y<e.y&&e.y<=t.y)&&(i=!0);else{var o=this.lineFunction(t,e),n=this.calculateFunction(o,r.x);t.y<=e.y&&r.y<=n||e.y<=t.y&&r.y>=n||(i=!0)}return i},e.prototype.isLine=function(t,e,r){var i=this.lineFunction(t,e),o=this.calculateFunction(i,r.x);return t.x===e.x&&e.x===r.x||jt(o,1)===jt(r.y,1)},e.prototype.lineFunction=function(t,e){var r=(e.y-t.y)/(e.x-t.x);return[t.y-r*t.x,r]},e.prototype.controlPoints=function(t,e,r){var i,o=m,n=x,s=!1,a=!1;if(this.isLine(t,e,r))i=this.tangent(t,e,m,x);else{var p={x:this.isMonotonicByField(t,e,r,m),y:this.isMonotonicByField(t,e,r,x)};if(p.x&&p.y)i=this.tangent(t,r,m,x),s=!0;else if(this.invertAxis(t,e,r)&&(o=x,n=m),p[o])i=0;else i=.01*(r[n]<t[n]&&t[n]<=e[n]||t[n]<r[n]&&e[n]<=t[n]?Er((r[n]-t[n])*(e[o]-t[o])):-Er((r[o]-t[o])*(e[n]-t[n]))),a=!0}var l=this.secondControlPoint(i,t,e,o,n);if(a){var c=o;o=n,n=c}var h=this.firstControlPoint(i,e,r,o,n);return s&&(this.restrictControlPoint(t,e,l,i),this.restrictControlPoint(e,r,h,i)),[l,h]},e.prototype.restrictControlPoint=function(t,e,r,i){t.y<e.y?e.y<r.y?(r.x=t.x+(e.y-t.y)/i,r.y=e.y):r.y<t.y&&(r.x=e.x-(e.y-t.y)/i,r.y=t.y):r.y<e.y?(r.x=t.x-(t.y-e.y)/i,r.y=e.y):t.y<r.y&&(r.x=e.x+(t.y-e.y)/i,r.y=t.y)},e.prototype.tangent=function(t,e,r,i){var o,n=e[r]-t[r],s=e[i]-t[i];return o=0===n?0:s/n,o},e.prototype.isMonotonicByField=function(t,e,r,i){return r[i]>e[i]&&e[i]>t[i]||r[i]<e[i]&&e[i]<t[i]},e.prototype.firstControlPoint=function(t,e,r,i,o){var n=e[i],s=.333*(r[i]-n);return this.point(n+s,e[o]+s*t,i,o)},e.prototype.secondControlPoint=function(t,e,r,i,o){var n=e[i],s=r[i],a=.333*(s-n);return this.point(s-a,r[o]-a*t,i,o)},e.prototype.point=function(t,e,r,i){var o=new S.geometry.Point;return o[r]=t,o[i]=e,o},e.prototype.calculateFunction=function(t,e){for(var r=t.length,i=0,o=0;o<r;o++)i+=Math.pow(e,o)*t[o];return i},e}(S.Class),Ir=function(t){function e(e){t.call(this),this._axis=e,this.options=e.options}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this._axis,r=e.getCategory?e.getCategory(t):e.getValue(t);return r},e.prototype.slot=function(t,e,r){return void 0===r&&(r=!0),this._axis.slot(t,e,r)},e.prototype.range=function(){return this._axis.range()},e.prototype.valueRange=function(){return this._axis.valueRange()},e}(S.Class);function Br(t,e){for(var r=0;r<e.length;r++)if(e[r].options.name===t)return e[r].prepareUserOptions(),new Ir(e[r])}var Lr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Lr.prototype.findAxisByName=function(t){return Br(t,this._pane.axes)};var Vr=Lr,zr=function(t){function e(e){t.call(this),this._plotArea=e,this.visual=e.visual,this.backgroundVisual=e._bgVisual}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(S.Class);function Dr(t){for(var e=t.length,r=0,i=0;i<e;i++){C(t[i])&&r++}return r}var Nr={min:function(t){for(var e=t.length,r=u,i=0;i<e;i++){var o=t[i];C(o)&&(r=Math.min(r,o))}return r===u?t[0]:r},max:function(t){for(var e=t.length,r=f,i=0;i<e;i++){var o=t[i];C(o)&&(r=Math.max(r,o))}return r===f?t[0]:r},sum:function(t){for(var e=t.length,r=0,i=0;i<e;i++){var o=t[i];C(o)&&(r+=o)}return r},sumOrNull:function(t){var e=null;return Dr(t)&&(e=Nr.sum(t)),e},count:function(t){for(var e=t.length,r=0,i=0;i<e;i++){var o=t[i];null!==o&&xt(o)&&r++}return r},avg:function(t){var e=Dr(t),r=t[0];return e>0&&(r=Nr.sum(t)/e),r},first:function(t){for(var e=t.length,r=0;r<e;r++){var i=t[r];if(null!==i&&xt(i))return i}return t[0]}},Fr=Nr;function Ur(t,e){return null===e?e:nt(t)(e)}var Hr=function(t){function e(){t.call(this),this._valueFields={},this._otherFields={},this._nullValue={},this._undefinedValue={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e,r){void 0===e&&(e=[y]),void 0===r&&(r={});for(var i=0;i<t.length;i++){var o=t[i];this._valueFields[o]=e,this._otherFields[o]=r,this._nullValue[o]=this._makeValue(e,null),this._undefinedValue[o]=this._makeValue(e,void 0)}},e.prototype.canonicalFields=function(t){return this.valueFields(t).concat(this.otherFields(t))},e.prototype.valueFields=function(t){return this._valueFields[t.type]||[y]},e.prototype.otherFields=function(t){return this._otherFields[t.type]||[y]},e.prototype.bindPoint=function(t,e,r){var i,o,n=t.data,s=xt(r)?r:n[e],a={valueFields:{value:s}},p=this.valueFields(t),l=this._otherFields[t.type];if(null===s)o=this._nullValue[t.type];else if(xt(s)){if(Array.isArray(s)){var c=s.slice(p.length);o=this._bindFromArray(s,p),i=this._bindFromArray(c,l)}else if("object"==typeof s){var h=this.sourceFields(t,p),u=this.sourceFields(t,l);o=this._bindFromObject(s,p,h),i=this._bindFromObject(s,l,u)}}else o=this._undefinedValue[t.type];return xt(o)&&(1===p.length?a.valueFields.value=o[p[0]]:a.valueFields=o),a.fields=i||{},a},e.prototype._makeValue=function(t,e){for(var r={},i=t.length,o=0;o<i;o++){r[t[o]]=e}return r},e.prototype._bindFromArray=function(t,e){var r={};if(e)for(var i=Math.min(e.length,t.length),o=0;o<i;o++)r[e[o]]=t[o];return r},e.prototype._bindFromObject=function(t,e,r){void 0===r&&(r=e);var i={};if(e)for(var o=e.length,n=0;n<o;n++){var s=e[n],a=r[n];null!==a&&(i[s]=Ur(a,t))}return i},e.prototype.sourceFields=function(t,e){var r=[];if(e)for(var i=e.length,o=0;o<i;o++){var n=e[o],s=n===y?"field":n+"Field";r.push(null!==t[s]?t[s]||n:null)}return r},e}(S.Class);Hr.current=new Hr;var Gr=Hr,Wr=/percent(?:\w*)\((\d+)\)/,Kr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Xr=function(t){function e(e,r,i){t.call(this),this.initGlobalRanges(e,r,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,r){var i=e.data,o=Kr.exec(t);if(o){this.valueGetter=this.createValueGetter(e,r);var n=this.getAverage(i),s=this.getStandardDeviation(i,n,!1),a=o[1]?parseFloat(o[1]):1,p={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return p}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,r);var l=this.getStandardError(i,this.getAverage(i));this.globalRange=function(t){return{low:t-l,high:t+l}}}},e.prototype.createValueGetter=function(t,e){var r,i=t.data,o=Gr.current,n=o.valueFields(t),s=xt(i[0])?i[0]:{};if(b(s))r=nt("["+(e?n.indexOf(e):0)+"]");else if(C(s))r=nt();else if("object"==typeof s){r=nt(o.sourceFields(t,n)[n.indexOf(e)])}return r},e.prototype.getErrorRange=function(t,e){var r,i,o;if(!xt(e))return null;if(this.globalRange)return this.globalRange(t);if(b(e))r=t-e[0],i=t+e[1];else if(C(o=parseFloat(e)))r=t-o,i=t+o;else{if(!(o=Wr.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(o[1])/100);r=t-Math.abs(n),i=t+Math.abs(n)}return{low:r,high:i}},e.prototype.getStandardError=function(t,e){return this.getStandardDeviation(t,e,!0)/Math.sqrt(e.count)},e.prototype.getStandardDeviation=function(t,e,r){for(var i=t.length,o=r?e.count-1:e.count,n=0,s=0;s<i;s++){var a=this.valueGetter(t[s]);C(a)&&(n+=Math.pow(a-e.value,2))}return Math.sqrt(n/o)},e.prototype.getAverage=function(t){for(var e=t.length,r=0,i=0,o=0;o<e;o++){var n=this.valueGetter(t[o]);C(n)&&(r+=n,i++)}return{value:r/i,count:i}},e}(S.Class),Yr=S.support.browser||{},qr=Yr.msie?.001:0,Zr="zero",$r="bar",Qr="column",Jr="line",ti="pie",ei="verticalLine",ri=[$r,Qr,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],ii="DOMMouseScroll mousewheel",oi=function(t){function e(e,r,i,o,n,s){t.call(this,s),this.low=e,this.high=r,this.isVertical=i,this.chart=o,this.series=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,r=this.options.endCaps,i=this.isVertical,o=this.getAxis().getSlot(this.low,this.high),n=t.center(),s=this.getCapsWidth(t,i),a=i?n.x:n.y,p=a-s,l=a+s;i?(e=[new qt(n.x,o.y1),new qt(n.x,o.y2)],r&&e.push(new qt(p,o.y1),new qt(l,o.y1),new qt(p,o.y2),new qt(l,o.y2)),this.box=new $t(p,o.y1,l,o.y2)):(e=[new qt(o.x1,n.y),new qt(o.x2,n.y)],r&&e.push(new qt(o.x1,p),new qt(o.x1,l),new qt(o.x2,p),new qt(o.x2,l)),this.box=new $t(o.x1,p,o.x2,l)),this.linePoints=e},e.prototype.getCapsWidth=function(t,e){var r=e?t.width():t.height();return Math.min(Math.floor(r/2),4)||4},e.prototype.createVisual=function(){var t=this,e=this.options,r=e.visual;r?this.visual=r({low:this.low,high:this.high,rect:this.box.toRect(),sender:this.getSender(),options:{endCaps:e.endCaps,color:e.color,line:e.line},createVisual:function(){t.createDefaultVisual();var e=t.visual;return delete t.visual,e}}):this.createDefaultVisual()},e.prototype.createDefaultVisual=function(){var e=this.options,r=this.linePoints,i={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var o=0;o<r.length;o+=2){var n=new S.drawing.Path(i).moveTo(r[o].x,r[o].y).lineTo(r[o+1].x,r[o+1].y);P(n),this.visual.append(n)}},e}(oe);It(oi,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var ni=oi,si=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(ni);function ai(t,e,r,i){void 0===r&&(r={}),void 0===i&&(i=!1);var o=r.defaults=r.defaults||{},n=r.depth=r.depth||0,s=!1;if(r.excluded=r.excluded||[],n>5)return null;for(var a in t)if(!ct(a,r.excluded)&&t.hasOwnProperty(a)){var p=t[a];M(p)?(s=!0,i||(t[a]=Tt(p(e),o[a]))):R(p)&&(i||(r.defaults=o[a]),r.depth++,s=ai(p,e,r,i)||s,r.depth--)}return s}function pi(t){for(var e=t.length,r=0,i=0;i<e;i++)r=Math.max(r,t[i].data.length);return r}var li=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this.categoryAxis=e.seriesCategoryAxis(r.series[0]),this.valueAxisRanges={},this.points=[],this.categoryPoints=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},i,{vertical:!this.options.invertAxes},t)}return r},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&C(t.value)){for(var e=t.categoryIx,r=this.categoryPoints[e],i=[],o=0,n=0;n<r.length;n++){var s=r[n];if(s){var a=t.series.stack,p=s.series.stack;if(a&&p&&a.group!==p.group)continue;C(s.value)&&(o+=Math.abs(s.value),i.push(Math.abs(s.value)))}}if(o>0)return t.value/o}return t.value},e.prototype.plotRange=function(t,e){void 0===e&&(e=0);var r=this.categoryPoints[t.categoryIx];if(this.options.isStacked){for(var i=this.plotValue(t),o=i>=0,n=e,s=!1,a=0;a<r.length;a++){var p=r[a];if(t===p)break;var l=t.series.stack,c=p.series.stack;if(l&&c){if("string"==typeof l&&l!==c)continue;if(l.group&&l.group!==c.group)continue}var h=this.plotValue(p);(h>=0&&o||h<0&&!o)&&(n+=h,i+=h,s=!0,this.options.isStacked100&&(i=Math.min(i,1)))}return s&&(n-=e),[n,i]}var u=t.series,f=this.seriesValueAxis(u),d=this.categoryAxisCrossingValue(f);return[d,j(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var r=u,i=f,o=0;o<this.categoryPoints.length;o++){var n=this.categoryPoints[o];if(n)for(var s=0;s<n.length;s++){var a=n[s];if(a&&(a.series.stack===e||a.series.axis===t)){var p=this.plotRange(a,0)[1];xt(p)&&isFinite(p)&&(i=Math.max(i,p),r=Math.min(r,p))}}}return{min:r,max:i}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,r=t.series,i={};if(e)for(var o=0;o<r.length;o++){var n=r[o],s=n.axis,a=s+n.stack,p=i[a];if(!p){p=this.stackLimits(s,n.stack);var l=this.errorTotals;l&&(l.negative.length&&(p.min=Math.min(p.min,Bt(l.negative).min)),l.positive.length&&(p.max=Math.max(p.max,Bt(l.positive).max))),p.min!==u||p.max!==f?i[a]=p:p=null}p&&(this.valueAxisRanges[s]=p)}},e.prototype.addErrorBar=function(t,e,r){var i,o=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,p=e.fields.errorLow,l=e.fields.errorHigh;C(p)&&C(l)?i={low:p,high:l}:a&&xt(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Xr(a.value,n,y),i=this.seriesErrorRanges[s].getErrorRange(o,a.value)),i&&(t.low=i.low,t.high=i.high,this.addPointErrorBar(t,r))},e.prototype.addPointErrorBar=function(t,e){var r=!this.options.invertAxes,i=t.options.errorBars,o=t.series,n=t.low,s=t.high;if(this.options.isStacked){var a=this.stackedErrorRange(t,e);n=a.low,s=a.high}else{var p={categoryIx:e,series:o};this.updateRange({value:n},p),this.updateRange({value:s},p)}var l=new si(n,s,r,this,o,i);t.errorBars=[l],t.append(l)},e.prototype.stackedErrorRange=function(t,e){var r=this.plotRange(t,0)[1]-t.value,i=t.low+r,o=t.high+r;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},i<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,i)),o>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,o)),{low:i,high:o}},e.prototype.addValue=function(t,e){var r=e.categoryIx,i=e.series,o=e.seriesIx,n=this.categoryPoints[r];n||(this.categoryPoints[r]=n=[]);var s=this.seriesPoints[o];s||(this.seriesPoints[o]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,xt(a.dataItem)||(a.dataItem=i.data[r]),this.addErrorBar(a,t,r)),this.points.push(a),s.push(a),n.push(a),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,r,i,o,n){var s={defaults:o._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[n];xt(a)||(this._evalSeries[n]=a=ai(t,{},s,!0));var p=t;return a&&ai(p=E({},p),{value:e,category:r,index:i,series:o,dataItem:o.data[i]},s),p},e.prototype.updateRange=function(t,e){var r=e.series.axis,i=t.value,o=this.valueAxisRanges[r];isFinite(i)&&null!==i&&((o=this.valueAxisRanges[r]=o||{min:u,max:f}).min=Math.min(o.min,i),o.max=Math.max(o.max,i))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,r=t.axis,i=r?e.namedValueAxes[r]:e.valueAxis;if(!i)throw new Error("Unable to locate value axis with name "+r);return i},e.prototype.reflow=function(t){var e=this,r=this.categorySlots=[],i=this.points,o=this.categoryAxis,n=0;this.traverseDataPoints((function(t,s){var a=s.categoryIx,p=s.series,l=e.seriesValueAxis(p),c=i[n++],h=r[a];if(h||(r[a]=h=e.categorySlot(o,a,l)),c){var u=e.plotRange(c,l.startValue()),f=e.valueSlot(l,u);if(f){var d=e.pointSlot(h,f);c.aboveAxis=e.aboveAxis(c,l),c.stackValue=u[1],e.options.isStacked100&&(c.percentage=e.plotValue(c)),e.reflowPoint(c,d)}else c.visible=!1}})),this.reflowCategories(r),!this.options.clip&&this.options.limitPoints&&this.points.length&&this.limitPoints(),this.box=t},e.prototype.valueSlot=function(t,e){return t.getSlot(e[0],e[1],!this.options.clip)},e.prototype.limitPoints=function(){for(var t=this.categoryPoints,e=t[0].concat(Pt(t)),r=0;r<e.length;r++)e[r]&&this.limitPoint(e[r])},e.prototype.limitPoint=function(t){var e=this.categoryAxis.limitSlot(t.box);e.equals(t.box)||t.reflow(e)},e.prototype.aboveAxis=function(t,e){var r=this.categoryAxisCrossingValue(e),i=t.value;return e.options.reverse?i<r:i>=r},e.prototype.categoryAxisCrossingValue=function(t){var e=this.categoryAxis,r=t.options;return[].concat(r.axisCrossingValues||r.axisCrossingValue)[e.axisIndex||0]||0},e.prototype.reflowPoint=function(t,e){t.reflow(e)},e.prototype.reflowCategories=function(){},e.prototype.pointSlot=function(t,e){var r=this.options.invertAxes,i=r?e:t,o=r?t:e;return new $t(i.x1,o.y1,i.x2,o.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=pi(e),i=e.length,o=0;o<i;o++)this._outOfRangeCallback(e[o],"_outOfRangeMinPoint",o,t);for(var n=0;n<r;n++)for(var s=0;s<i;s++){var a=e[s],p=this.categoryAxis.categoryAt(n);t(this._bindPoint(a,s,n),{category:p,categoryIx:n,categoriesCount:r,series:a,seriesIx:s})}for(var l=0;l<i;l++)this._outOfRangeCallback(e[l],"_outOfRangeMaxPoint",l,t)},e.prototype._outOfRangeCallback=function(t,e,r,i){var o=t[e];if(o){var n=o.categoryIx;i(this._bindPoint(t,r,n,o.item),{category:o.category,categoryIx:n,series:t,seriesIx:r,dataItem:o.item})}},e.prototype._bindPoint=function(t,e,r,i){this._bindCache||(this._bindCache=[]);var o=this._bindCache[e];o||(o=this._bindCache[e]=[]);var n=o[r];return n||(n=o[r]=Gr.current.bindPoint(t,r,i)),n},e.prototype.formatPointValue=function(t,e){return null===t.value?"":this.chartService.format.auto(e,t.value)},e.prototype.pointValue=function(t){return t.valueFields.value},e}(oe);It(li,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var ci=li,hi={click:function(t,e){return t.trigger("seriesClick",this.eventArgs(e))},hover:function(t,e){return t.trigger("seriesHover",this.eventArgs(e))},over:function(t,e){return t.trigger("seriesOver",this.eventArgs(e))},out:function(t,e){return t.trigger("seriesLeave",this.eventArgs(e))},eventArgs:function(t){return{value:this.value,percentage:this.percentage,stackValue:this.stackValue,category:this.category,series:this.series,dataItem:this.dataItem,runningTotal:this.runningTotal,total:this.total,element:Ot(t),originalEvent:t,point:this}}},ui={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&xt(e)&&null!==e&&(this.note=new Ae({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},fi=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.tooltipTracking=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options,e=t.markers,r=t.labels;if(!this._rendered){if(this._rendered=!0,e.visible&&e.size&&(this.marker=this.createMarker(),this.append(this.marker)),r.visible){var i=rt(r),o=this.pointData(),n=this.value;i?n=i(o):r.format&&(n=this.formatValue(r.format)),this.label=new be(n,E({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Tt(r.zIndex,this.series.zIndex)},r),o),this.append(this.label)}this.createNote(),this.errorBar&&this.append(this.errorBar)}},e.prototype.markerBorder=function(){var t=this.options.markers,e=t.background,r=E({color:this.color},t.border);return xt(r.color)||(r.color=new S.Color(e).brightness(.8).toHex()),r},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new pe({type:t.type,width:t.size,height:t.size,rotation:t.rotation,background:t.background,border:this.markerBorder(),opacity:this.series.opacity||t.opacity,zIndex:Tt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category})},e.prototype.markerBox=function(){return this.marker||(this.marker=this.createMarker(),this.marker.reflow(this._childBox)),this.marker.box},e.prototype.reflow=function(t){var e=this.options,r=this.aboveAxis,i=e.vertical;this.render(),this.box=t;var o=t.clone();if(i?r?o.y1-=o.height():o.y2+=o.height():r?o.x1+=o.width():o.x2-=o.width(),this._childBox=o,this.marker&&this.marker.reflow(o),this.reflowLabel(o),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(o);if(this.note){var s=this.markerBox();if(!e.markers.visible||!e.markers.size){var a=s.center();s=new $t(a.x,a.y,a.x,a.y)}this.note.reflow(s)}},e.prototype.reflowLabel=function(t){var e=this.options,r=this.label,i=e.labels.position;r&&(i="below"===(i="above"===i?v:i)?s:i,r.reflow(t),r.box.alignTo(this.markerBox(),i),r.reflow(r.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,r=this.options.markers,i=r.size+(r.border.width||0)+(t.border.width||0),o=new pe({type:r.type,width:i,height:i,rotation:r.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Tt(t.border.opacity,1)},opacity:Tt(t.opacity,1)});return o.reflow(this._childBox),o.getElement()},e.prototype.highlightVisual=function(){return(this.marker||{}).visual},e.prototype.highlightVisualArgs=function(){var t,e,r=this.marker;if(r)e=r.paddingBox.toRect(),t=r.visual;else{var i=this.options.markers.size,o=i/2,n=this.box.center();e=new S.geometry.Rect([n.x-o,n.y-o],[i,i])}return{options:this.options,rect:e,visual:t}},e.prototype.tooltipAnchor=function(){var t=this.markerBox(),e=this.owner.pane.clipBox();if(!e||e.overlaps(t)){var r,i,o=t.x2+5;return this.aboveAxis?(r=t.y1,i=s):(r=t.y2,i=v),{point:new qt(o,r),align:{horizontal:"left",vertical:i}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.markerBox().overlaps(t)},e.prototype.unclipElements=function(){this.label&&(this.label.options.noclip=!0),this.note&&(this.note.options.noclip=!0)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,series:this.series}},e}(oe);fi.prototype.defaults={vertical:!0,markers:{visible:!0,background:g,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:z(3),padding:z(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},E(fi.prototype,hi),E(fi.prototype,ui);var di=fi,vi=function(t){function e(e,r,i){t.call(this),this.linePoints=e,this.series=r,this.seriesIx=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.toGeometryPoints(this.linePoints)},e.prototype.toGeometryPoints=function(t){for(var e=[],r=0,i=t.length;r<i;r++)t[r]&&!1!==t[r].visible&&e.push(t[r]._childBox.toRect().center());return e},e.prototype.createVisual=function(){var t=this,e=this.series.visual;e?(this.visual=e({points:this.toGeometryPoints(this.linePoints),series:this.series,sender:this.getSender(),createVisual:function(){return t.segmentVisual(),t.visual}}),this.visual&&!xt(this.visual.options.zIndex)&&(this.visual.options.zIndex=this.series.zIndex)):this.segmentVisual()},e.prototype.segmentVisual=function(){var t=this.options,e=this.series,r=e.color,i=e._defaults;M(r)&&i&&(r=i.color);var o=S.drawing.Path.fromPoints(this.points(),{stroke:{color:r,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&o.close(),this.visual=o},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(oe);It(vi,{closed:!1});var yi=vi;function gi(t,e,r,i,o){var n=t.box,s=new S.geometry.Point;return s[e]=n[e+r],s[i]=n[i+o],s}var mi={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,r=e.justified,i=e.vertical,o=e.reverse,n=i?m:x,s=i?x:m,a=o?2:1,p=a,l=gi(t[0],n,a,s,p),c=[l],h=1;h<t.length;h++){var u=gi(t[h],n,a,s,p);if(l[n]!==u[n]){var f=new S.geometry.Point;f[n]=l[n],f[s]=u[s],c.push(f,u)}l=u}return r?l!==Pt(c)&&c.push(l):c.push(gi(Pt(t),n,a,s,o?1:2)),c}},xi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.points=function(){return this.calculateStepPoints(this.linePoints)},e}(yi);E(xi.prototype,mi);var bi=xi,_i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.segmentVisual=function(){var t=this.series,e=t._defaults,r=t.color;M(r)&&e&&(r=e.color);var i=new Rr(this.options.closed).process(this.points()),o=new S.drawing.Path({stroke:{color:r,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});o.segments.push.apply(o.segments,i),this.visual=o},e}(yi),wi={renderSegments:function(){var t,e=this.options,r=this.seriesPoints,i=e.series,o=r.length;this._segments=[];for(var n=0;n<o;n++){for(var s=i[n],a=this.sortPoints(r[n]),p=a.length,l=[],c=0;c<p;c++){var h=a[c];h?l.push(h):"interpolate"!==this.seriesMissingValues(s)&&(l.length>1&&(t=this.createSegment(l,s,n,t),this._addSegment(t)),l=[])}l.length>1&&(t=this.createSegment(l,s,n,t),this._addSegment(t))}this.children.unshift.apply(this.children,this._segments)},_addSegment:function(t){this._segments.push(t),t.parent=this},sortPoints:function(t){return t},seriesMissingValues:function(t){var e=t.missingValues;return!e&&this.options.isStacked?Zr:e||"interpolate"},getNearestPoint:function(t,e,r){for(var i,o=new qt(t,e),n=this.seriesPoints[r],s=u,a=0;a<n.length;a++){var p=n[a];if(p&&xt(p.value)&&null!==p.value&&!1!==p.visible){var l=p.box.center().distanceTo(o);l<s&&(i=p,s=l)}}return i}},Oi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._setEnd(this.options.box.x1)},e.prototype.step=function(t){var e=this.options.box;this._setEnd(ht(e.x1,e.x2,t))},e.prototype._setEnd=function(t){var e=this.element,r=e.segments,i=r[1].anchor(),o=r[2].anchor();e.suspend(),i.setX(t),e.resume(),o.setX(t)},e}(S.drawing.Animation);It(Oi,{duration:600}),S.drawing.AnimationFactory.current.register("clip",Oi);var Si=Oi;function Pi(t){for(var e=0;e<t.length;e++)if(xt(t[e].zIndex))return!0}var Ai={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),r=S.drawing.Path.fromRect(e.toRect());this.visual.clip(r),this.animation=new Si(r,{box:e}),Pi(this.options.series)&&this._setChildrenAnimation(r)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),r=0;r<e.length;r++){var i=e[r];i&&i.visual&&xt(i.visual.options.zIndex)&&i.visual.clip(t)}}},Ci=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return di},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=this.seriesMissingValues(o),a=t.valueFields.value;if(!xt(a)||null===a){if(s!==Zr)return null;a=0}var p=this.pointOptions(o,n);p=this.evalPointOptions(p,a,i,r,o,n);var l=t.fields.color||o.color;M(o.color)&&(l=p.color);var c=new di(a,p);return c.color=l,this.append(c),c},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var r=t.categoryIx,i=this.categoryPoints[r],o=0;o<i.length;o++){var n=i[o];if(t===n)break;e+=this.plotValue(n),this.options.isStacked100&&(e=Math.min(e,1))}return[e,e]},e.prototype.createSegment=function(t,e,r){var i=e.style;return new("step"===i?bi:"smooth"===i?_i:yi)(t,e,r)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e.concat(this._segments)},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(ci);E(Ci.prototype,wi,Ai);var ki=Ci,ji=function(t){function e(e,r,i,o,n){t.call(this,e,r,i),this.prevSegment=o,this.stackPoints=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){var t=this.series,e=t._defaults,r=t.line||{},i=t.color;M(i)&&e&&(i=e.color),this.visual=new S.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:i,opacity:t.opacity},stroke:null}),r.width>0&&!1!==r.visible&&this.createStroke({stroke:E({color:i,opacity:t.opacity,lineCap:"butt"},r)})},e.prototype.strokeSegments=function(){var t=this._strokeSegments;return t||(t=this._strokeSegments=this.createStrokeSegments()),t},e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.points())},e.prototype.stackSegments=function(){return this.prevSegment?this.prevSegment.createStackSegments(this.stackPoints):this.createStackSegments(this.stackPoints)},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.toGeometryPoints(t)).reverse()},e.prototype.segmentsFromPoints=function(t){return t.map((function(t){return new S.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new S.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),this.visual.append(e)},e.prototype.hasStackSegment=function(){return this.prevSegment||this.stackPoints&&this.stackPoints.length},e.prototype.createFill=function(t){var e=this.strokeSegments(),r=e.slice(0),i=this.hasStackSegment();if(i){var o=this.stackSegments();gt(r,o)}var n=new S.drawing.Path(t);n.segments.push.apply(n.segments,r),!i&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,r=e.options.invertAxes,i=e.seriesValueAxis(this.series),o=e.categoryAxisCrossingValue(i),n=i.getSlot(o,o,!0),s=this.strokeSegments(),a=s[0].anchor(),p=Pt(s).anchor(),l=r?n.x1:n.y1;r?t.lineTo(l,p.y).lineTo(l,a.y):t.lineTo(p.x,l).lineTo(a.x,l)},e}(yi),Mi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(ji);E(Mi.prototype,mi);var Ti=Mi,Ei=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){var t=new Rr(this.options.closed),e=this.points();return t.process(e)},e.prototype.createStackSegments=function(){for(var t=this.strokeSegments(),e=[],r=t.length-1;r>=0;r--){var i=t[r];e.push(new S.geometry.Segment(i.anchor(),i.controlOut(),i.controlIn()))}return e},e}(ji),Ri=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r,i){var o,n,s=this.options.isStacked,a=(e.line||{}).style;s&&r>0&&i&&("gap"!==this.seriesMissingValues(e)?(n=i.linePoints,o=i):n=this._gapStackPoints(t,r,a));return new("step"===a?Ti:"smooth"===a?Ei:ji)(t,e,r,o,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var r=this._stackPoints;if(r)for(var i=0;i<r.length;i++){var o=r[i],n=this.categoryAxis.getSlot(o.categoryIx);o.reflow(n)}},e.prototype._gapStackPoints=function(t,e,r){var i=this.seriesPoints,o=t[0].categoryIx,n=t.length;o<0&&(o=0,n--);var s=o+n,a=this.seriesOptions[0]._outOfRangeMinPoint?1:0,p=[];this._stackPoints=this._stackPoints||[];for(var l=o;l<s;l++){var c=l+a,h=e,u=void 0;do{u=i[--h][c]}while(h>0&&!u);if(u)"step"!==r&&l>o&&!i[h][c-1]&&p.push(this._previousSegmentPoint(l,c,c-1,h)),p.push(u),"step"!==r&&l+1<s&&!i[h][c+1]&&p.push(this._previousSegmentPoint(l,c,c+1,h));else{var f=this._createGapStackPoint(l);this._stackPoints.push(f),p.push(f)}}return p},e.prototype._previousSegmentPoint=function(t,e,r,i){for(var o,n=this.seriesPoints,s=i;s>0&&!o;)o=n[--s][r];return o?o=n[s][e]:(o=this._createGapStackPoint(t),this._stackPoints.push(o)),o},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),r=new di(0,e);return r.categoryIx=t,r.series={},r},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zr},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(ki),Ii=function(t){function e(){t.call(this),this.axisRanges={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.update=function(t){var e=this.axisRanges;for(var r in t){var i=t[r],o=e[r];e[r]=o=o||{min:u,max:f},o.min=Math.min(o.min,i.min),o.max=Math.max(o.max,i.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(S.Class),Bi=function(t){function e(e,r,i){t.call(this,r),this.textBox=new be(e,this.options,i),this.append(this.textBox)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createVisual=function(){this.textBox.options.noclip=this.options.noclip},e.prototype.reflow=function(t){var e=this.options,r=e.vertical,i=e.aboveAxis,o=this.children[0],n=o.options,p=o.box,l=o.options.padding,c=t;n.align=r?a:h,n.vAlign=r?v:a,"insideEnd"===e.position?r?(n.vAlign=v,!i&&p.height()<t.height()&&(n.vAlign=s)):n.align=i?d:h:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?r?n.vAlign=i?s:v:n.align=i?h:d:"outsideEnd"===e.position&&(r?c=i?new $t(t.x1,t.y1-p.height(),t.x2,t.y1):new $t(t.x1,t.y2,t.x2,t.y2+p.height()):(n.align=a,c=i?new $t(t.x2,t.y1,t.x2+p.width(),t.y2):new $t(t.x1-p.width(),t.y1,t.x1,t.y2))),e.rotation||(r?l.left=l.right=(c.width()-o.contentBox.width())/2:l.top=l.bottom=(c.height()-o.contentBox.height())/2),o.reflow(c)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?x:m,r=e+"1",i=e+"2",o=this.children[0],n=this.parent.box;if(n[r]<t[r]||t[i]<n[i]){var s=o.paddingBox.clone();s[r]=Math.max(n[r],t[r]),s[i]=Math.min(n[i],t[i]),this.reflow(s)}},e}(oe);It(Bi,{position:"outsideEnd",margin:z(3),padding:z(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Li=Bi;function Vi(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var zi=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createLabel(),this.createNote(),this.errorBar&&this.append(this.errorBar))},e.prototype.createLabel=function(){var t=this.options,e=t.labels;if(e.visible){var r,i=this.pointData(),o=rt(e);r=o?o(i):this.formatValue(e.format),this.label=new Li(r,E({vertical:t.vertical},e),i),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;if(this.box=t,e&&(e.options.aboveAxis=this.aboveAxis,e.reflow(t)),this.note&&this.note.reflow(t),this.errorBars)for(var r=0;r<this.errorBars.length;r++)this.errorBars[r].reflow(t)},e.prototype.createVisual=function(){var e=this,r=this.box,i=this.options,o=i.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),o){var n=this.rectVisual=o({category:this.category,dataItem:this.dataItem,value:this.value,sender:this.getSender(),series:this.series,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,rect:r.toRect(),createVisual:function(){var t=new S.drawing.Group;return e.createRect(t),t},options:i});n&&this.visual.append(n)}else r.width()>0&&r.height()>0&&this.createRect(this.visual)},e.prototype.createRect=function(t){var e=this.options,r=e.border,i=xt(r.opacity)?r.opacity:e.opacity,o=this.box.toRect();o.size.width=Math.round(o.size.width);var n=this.rectVisual=S.drawing.Path.fromRect(o,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:r.width,opacity:i,dashType:r.dashType}}),s=this.box.width(),a=this.box.height();if((e.vertical?s:a)>6&&(P(n),(s<1||a<1)&&(n.options.stroke.lineJoin="round")),t.append(n),Vi(e)){var p=this.createGradientOverlay(n,{baseColor:this.color},E({end:e.vertical?void 0:[0,1]},e.overlay));t.append(p)}},e.prototype.createHighlight=function(t){return P(S.drawing.Path.fromRect(this.box.toRect(),t))},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.getBorderColor=function(){var t=this.color,e=this.options.border,r=e._brightness||.8,i=e.color;return xt(i)||(i=new S.Color(t).brightness(r).toHex()),i},e.prototype.tooltipAnchor=function(){var t,e,r=this.options,i=this.box,o=this.aboveAxis,n=this.owner.pane.clipBox()||i,a=h,p=v;if(r.vertical)t=Math.min(i.x2,n.x2)+5,o?e=Math.max(i.y1,n.y1):(e=Math.min(i.y2,n.y2),p=s);else{var l=Math.max(i.x1,n.x1),c=Math.min(i.x2,n.x2);r.isStacked?(p=s,o?(a=d,t=c):t=l,e=Math.max(i.y1,n.y1)-5):(o?t=c+5:(t=l-5,a=d),e=Math.max(i.y1,n.y1))}return{point:new qt(t,e),align:{horizontal:a,vertical:p}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,stackValue:this.stackValue,runningTotal:this.runningTotal,total:this.total,series:this.series}},e}(oe);E(zi.prototype,hi),E(zi.prototype,ui),zi.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Di=zi;function Ni(t,e){t.forEach(e)}function Fi(t,e){for(var r=t.length,i=r-1;i>=0;i--)e(t[i],i-r-1)}var Ui=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Fi:Ni}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=e.vertical,i=e.gap,o=e.spacing,n=this.children,s=n.length,a=r?x:m,p=s+i+o*(s-1),l=(r?t.height():t.width())/p,c=t[a+1]+l*(i/2);this.forEach(n,(function(e,r){var i=(e.box||t).clone();i[a+1]=c,i[a+2]=c+l,e.reflow(i),r<s-1&&(c+=l*o),c+=l}))},e}(oe);It(Ui,{vertical:!1,gap:0,spacing:0});var Hi=Ui,Gi=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){for(var e=this.options.vertical?m:x,r=this.children,i=r.length,o=this.box=new $t,n=0;n<i;n++){var s=r[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(o=this.box=a.clone()),s.reflow(a),o.wrap(a)}}},e}(oe);It(Gi,{vertical:!0});var Wi=Gi,Ki=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Di},e.prototype.clusterType=function(){return Hi},e.prototype.stackType=function(){return Wi},e.prototype.stackLimits=function(e,r){return t.prototype.stackLimits.call(this,e,r)},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=this.options,a=this.children,p=s.isStacked,l=this.pointValue(t),c=this.pointOptions(o,n),h=c.labels;p&&"outsideEnd"===h.position&&(h.position="insideEnd"),c.isStacked=p;var u=t.fields.color||o.color;l<0&&c.negativeColor&&(u=c.negativeColor),c=this.evalPointOptions(c,l,i,r,o,n),M(o.color)&&(u=c.color);var f=new(this.pointType())(l,c);f.color=u;var d=a[r];d||(d=new(this.clusterType())({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(d));p?this.getStackWrap(o,d).append(f):d.append(f);return f},e.prototype.getStackWrap=function(t,e){var r,i=t.stack,o=i&&i.group||i,n=e.children;if("string"==typeof o){for(var s=0;s<n.length;s++)if(n[s]._stackGroup===o){r=n[s];break}}else r=n[0];r||((r=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=o,e.append(r));return r},e.prototype.categorySlot=function(t,e,r){var i=this.options,o=t.getSlot(e),n=r.startValue();if(i.isStacked){var s=r.getSlot(n,n,!0),a=i.invertAxes?m:x;o[a+1]=o[a+2]=s[a+1]}return o},e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,i=0;i<r;i++)e[i].reflow(t[i])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),Pi(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var r=t[e],i=r.visual;i&&xt(i.options.zIndex)&&(r.options.animation=this.options.animation,r.createAnimation())}},e.prototype._setAnimationOptions=function(){var t,e=this.options,r=e.animation||{};if(e.isStacked){var i=this.seriesValueAxis(e.series[0]);t=i.getSlot(i.startValue())}else t=this.categoryAxis.getSlot(0);r.origin=new S.geometry.Point(t.x1,t.y1),r.vertical=!e.invertAxes},e}(ci);It(Ki,{animation:{type:$r}});var Xi=Ki,Yi=function(t){function e(e,r){t.call(this,r),this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.value,i=this.owner.seriesValueAxis(e),o=i.getSlot(r.open,r.close),n=i.getSlot(r.low,r.high);o.x1=n.x1=t.x1,o.x2=n.x2=t.x2,this.realBody=o;var s=n.center().x,a=[];a.push([[s,n.y1],[s,o.y1]]),a.push([[s,o.y2],[s,n.y2]]),this.lines=a,this.box=n.clone().wrap(o),this._rendered||(this._rendered=!0,this.createNote()),this.reflowNote()},e.prototype.reflowNote=function(){this.note&&this.note.reflow(this.box)},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this._mainVisual=this.mainVisual(this.options),this.visual.append(this._mainVisual),this.createOverlay()},e.prototype.mainVisual=function(t){var e=new S.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var r=S.drawing.Path.fromRect(this.realBody.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&r.options.set("stroke",{color:this.getBorderColor(),width:e.border.width,dashType:e.border.dashType,opacity:Tt(e.border.opacity,e.opacity)}),P(r),t.append(r),Vi(e)&&t.append(this.createGradientOverlay(r,{baseColor:this.color},E({end:e.vertical?void 0:[0,1]},e.overlay)))},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.lines,e.line)},e.prototype.drawLines=function(t,e,r,i){if(r)for(var o={stroke:{color:i.color||this.color,opacity:Tt(i.opacity,e.opacity),width:i.width,dashType:i.dashType,lineCap:"butt"}},n=0;n<r.length;n++){var s=S.drawing.Path.fromPoints(r[n],o);P(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return xt(e)||(e=new S.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=S.drawing.Path.fromRect(this.box.toRect(),{fill:{color:g,opacity:0},stroke:null});this.visual.append(t)},e.prototype.createHighlight=function(){var t=this.options.highlight,e=this.color;this.color=t.color||this.color;var r=this.mainVisual(E({},this.options,{line:{color:this.getBorderColor()}},t));return this.color=e,r},e.prototype.highlightVisual=function(){return this._mainVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this._mainVisual}},e.prototype.tooltipAnchor=function(){var t=this.box,e=this.owner.pane.clipBox()||t;return{point:new qt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:h,vertical:v}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(oe);It(Yi,{vertical:!0,border:{_brightness:.8},line:{width:2},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{4:d}</th></tr><tr><td>Open:</td><td>{0:C}</td></tr><tr><td>High:</td><td>{1:C}</td></tr><tr><td>Low:</td><td>{2:C}</td></tr><tr><td>Close:</td><td>{3:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}}}),E(Yi.prototype,hi),E(Yi.prototype,ui);var qi=Yi;function Zi(t){return Dr(t)===t.length}var $i=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,i=0;i<r;i++)e[i].reflow(t[i])},e.prototype.addValue=function(t,e){var r,i=e.categoryIx,o=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=Zi(this.splitValue(l)),h=n.data[i],u=this.categoryPoints[i];u||(this.categoryPoints[i]=u=[]),c&&(r=this.createPoint(t,e));var f=a[i];f||(f=new Hi({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(l,e),f.append(r),r.categoryIx=i,r.category=o,r.series=n,r.seriesIx=s,r.owner=this,r.dataItem=h,r.noteText=t.fields.noteText),this.points.push(r),u.push(r)},e.prototype.pointType=function(){return qi},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=this.pointType(),a=t.valueFields,p=E({},o),l=t.fields.color||o.color;p=this.evalPointOptions(p,a,i,r,o,n),"candlestick"===o.type&&a.open>a.close&&(l=t.fields.downColor||o.downColor||o.color),M(o.color)&&(l=p.color),p.vertical=!this.options.invertAxes;var c=new s(a,p);return c.color=l,c},e.prototype.splitValue=function(t){return[t.low,t.open,t.close,t.high]},e.prototype.updateRange=function(t,e){var r=e.series.axis,i=this.splitValue(t),o=this.valueAxisRanges[r];o=this.valueAxisRanges[r]=o||{min:u,max:f},o=this.valueAxisRanges[r]={min:Math.min.apply(Math,i.concat([o.min])),max:Math.max.apply(Math,i.concat([o.max]))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.open,r.high,r.low,r.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(ci);E($i.prototype,Ai);var Qi=$i,Ji=function(t){function e(e,r){t.call(this,e,r),this.createNote()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e,r,i=this.options,o=this.value,n=this.owner.seriesValueAxis(i);this.boxSlot=r=n.getSlot(o.q1,o.q3),this.realBody=r,this.reflowBoxSlot(t),this.whiskerSlot=e=n.getSlot(o.lower,o.upper),this.reflowWhiskerSlot(t);var s=n.getSlot(o.median);if(o.mean){var a=n.getSlot(o.mean);this.meanPoints=this.calcMeanPoints(t,a)}this.whiskerPoints=this.calcWhiskerPoints(r,e),this.medianPoints=this.calcMedianPoints(t,s),this.box=e.clone().wrap(r),this.reflowNote()},e.prototype.reflowBoxSlot=function(t){this.boxSlot.x1=t.x1,this.boxSlot.x2=t.x2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.x1=t.x1,this.whiskerSlot.x2=t.x2},e.prototype.calcMeanPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.calcWhiskerPoints=function(t,e){var r=e.center().x;return[[[r-5,e.y1],[r+5,e.y1],[r,e.y1],[r,t.y1]],[[r-5,e.y2],[r+5,e.y2],[r,e.y2],[r,t.y2]]]},e.prototype.calcMedianPoints=function(t,e){return[[[t.x1,e.y1],[t.x2,e.y1]]]},e.prototype.renderOutliers=function(t){for(var e=this.value,r=e.outliers||[],i=3*Math.abs(e.q3-e.q1),o=[],n=t.markers||{},s=0;s<r.length;s++){var a=r[s],p=E({},(n=a<e.q3+i&&a>e.q1-i?t.outliers:t.extremes).border);xt(p.color)||(xt(this.color)?p.color=this.color:p.color=new S.Color(n.background).brightness(.8).toHex());var l=new pe({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:p,opacity:n.opacity});l.value=a,o.push(l)}return this.reflowOutliers(o),o},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),r=this.box.center(),i=0;i<t.length;i++){var o=t[i].value,n=e.getSlot(o);this.options.vertical?n.move(r.x):n.move(void 0,r.y),this.box=this.box.wrap(n),t[i].reflow(n)}},e.prototype.mainVisual=function(e){for(var r=t.prototype.mainVisual.call(this,e),i=this.renderOutliers(e),o=0;o<i.length;o++){var n=i[o].getElement();n&&r.append(n)}return r},e.prototype.createLines=function(t,e){this.drawLines(t,e,this.whiskerPoints,e.whiskers),this.drawLines(t,e,this.medianPoints,e.median),this.drawLines(t,e,this.meanPoints,e.mean)},e.prototype.getBorderColor=function(){return(this.options.border||{}).color?this.options.border.color:this.color?this.color:t.prototype.getBorderColor.call(this)},e}(qi);It(Ji,{border:{_brightness:.8},line:{width:2},median:{color:"#f6f6f6"},mean:{width:2,dashType:"dash",color:"#f6f6f6"},overlay:{gradient:"glass"},tooltip:{format:"<table><tr><th colspan='2'>{6:d}</th></tr><tr><td>Lower:</td><td>{0:C}</td></tr><tr><td>Q1:</td><td>{1:C}</td></tr><tr><td>Median:</td><td>{2:C}</td></tr><tr><td>Mean:</td><td>{5:C}</td></tr><tr><td>Q3:</td><td>{3:C}</td></tr><tr><td>Upper:</td><td>{4:C}</td></tr></table>"},highlight:{opacity:1,border:{width:1,opacity:1},line:{width:1,opacity:1}},notes:{visible:!0,label:{}},outliers:{visible:!0,size:8,type:"cross",background:g,border:{width:2,opacity:1},opacity:0},extremes:{visible:!0,size:8,type:p,background:g,border:{width:2,opacity:1},opacity:0}}),E(Ji.prototype,hi);var to=Ji,eo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowBoxSlot=function(t){this.boxSlot.y1=t.y1,this.boxSlot.y2=t.y2},e.prototype.reflowWhiskerSlot=function(t){this.whiskerSlot.y1=t.y1,this.whiskerSlot.y2=t.y2},e.prototype.calcMeanPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e.prototype.calcWhiskerPoints=function(t,e){var r=e.center().y;return[[[e.x1,r-5],[e.x1,r+5],[e.x1,r],[t.x1,r]],[[e.x2,r-5],[e.x2,r+5],[e.x2,r],[t.x2,r]]]},e.prototype.calcMedianPoints=function(t,e){return[[[e.x1,t.y1],[e.x1,t.y2]]]},e}(to),ro=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e){var r,i=e.categoryIx,o=e.category,n=e.series,s=e.seriesIx,a=this.children,p=this.options,l=t.valueFields,c=Zi(this.splitValue(l)),h=n.data[i],u=this.categoryPoints[i];u||(this.categoryPoints[i]=u=[]),c&&(r=this.createPoint(t,e));var f=a[i];f||(f=new Hi({vertical:p.invertAxes,gap:p.gap,spacing:p.spacing,rtl:!p.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(l,e),f.append(r),r.categoryIx=i,r.category=o,r.series=n,r.seriesIx=s,r.owner=this,r.dataItem=h),this.points.push(r),u.push(r)},e.prototype.pointType=function(){return this.options.invertAxes?eo:to},e.prototype.splitValue=function(t){return[t.lower,t.q1,t.median,t.q3,t.upper]},e.prototype.updateRange=function(t,e){var r=e.series.axis,i=this.valueAxisRanges[r],o=this.splitValue(t).concat(this.filterOutliers(t.outliers));xt(t.mean)&&(o=o.concat(t.mean)),i=this.valueAxisRanges[r]=i||{min:u,max:f},i=this.valueAxisRanges[r]={min:Math.min.apply(Math,o.concat([i.min])),max:Math.max.apply(Math,o.concat([i.max]))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.lower,r.q1,r.median,r.q3,r.upper,r.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,r=[],i=0;i<e;i++){var o=t[i];xt(o)&&null!==o&&r.push(o)}return r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(Qi),io=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAxis=function(){var t=this.chart.seriesAxes(this.series);return this.isVertical?t.y:t.x},e}(ni);function oo(t){return xt(t)&&null!==t}var no=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.xAxisRanges={},this.yAxisRanges={},this.points=[],this.seriesPoints=[],this.seriesOptions=[],this._evalSeries=[]},e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.addErrorBar=function(t,e,r){var i,o=t.value[e],n=e+"Value",s=e+"ErrorLow",a=e+"ErrorHigh",p=r.seriesIx,l=r.series,c=t.options.errorBars,h=r[s],u=r[a];C(o)&&(C(h)&&C(u)&&(i={low:h,high:u}),c&&xt(c[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][p]=this.seriesErrorRanges[e][p]||new Xr(c[n],l,e),i=this.seriesErrorRanges[e][p].getErrorRange(o,c[n])),i&&this.addPointErrorBar(i,t,e))},e.prototype.addPointErrorBar=function(t,e,r){var i=t.low,o=t.high,n=e.series,s=e.options.errorBars,a=r===x,p={};e[r+"Low"]=i,e[r+"High"]=o,e.errorBars=e.errorBars||[];var l=new io(i,o,a,this,n,s);e.errorBars.push(l),e.append(l),p[r]=i,this.updateRange(p,n),p[r]=o,this.updateRange(p,n)},e.prototype.addValue=function(t,e){var r,i=t.x,o=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),p=this.seriesPoints[n],l=t;oo(i)&&oo(o)||(l=this.createMissingValue(l,a)),l&&((r=this.createPoint(l,e))&&(Object.assign(r,e),this.addErrorBar(r,m,e),this.addErrorBar(r,x,e)),this.updateRange(l,e.series)),this.points.push(r),p.push(r)},e.prototype.seriesMissingValues=function(t){return t.missingValues},e.prototype.createMissingValue=function(){},e.prototype.updateRange=function(t,e){var r=this.chartService.intl,i=e.xAxis,o=e.yAxis,n=t.x,s=t.y,a=this.xAxisRanges[i],p=this.yAxisRanges[o];oo(n)&&(a=this.xAxisRanges[i]=a||{min:u,max:f},k(n)&&(n=Ye(r,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),oo(s)&&(p=this.yAxisRanges[o]=p||{min:u,max:f},k(s)&&(s=Ye(r,s)),p.min=Math.min(p.min,s),p.max=Math.max(p.max,s))},e.prototype.evalPointOptions=function(t,e,r){var i=r.series,o=r.seriesIx,n={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[o];xt(s)||(this._evalSeries[o]=s=ai(t,{},n,!0));var a=t;return s&&ai(a=E({},t),{value:e,series:i,dataItem:r.dataItem},n),a},e.prototype.pointType=function(){return di},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return r},e.prototype.createPoint=function(t,e){var r=e.series,i=this.pointOptions(r,e.seriesIx),o=e.color||r.color;i=this.evalPointOptions(i,t,e),M(r.color)&&(o=i.color);var n=new di(t,i);return n.color=o,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,i=this.plotArea,o=e?i.namedXAxes[e]:i.axisX,n=r?i.namedYAxes[r]:i.axisY;if(!o)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+r);return{x:o,y:n}},e.prototype.reflow=function(t){var e=this,r=this.points,i=!this.options.clip,o=0;this.traverseDataPoints((function(t,n){var s=r[o++],a=e.seriesAxes(n.series),p=a.x.getSlot(t.x,t.x,i),l=a.y.getSlot(t.y,t.y,i);if(s)if(p&&l){var c=e.pointSlot(p,l);s.reflow(c)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new $t(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=this.seriesPoints,i=0;i<e.length;i++){var o=e[i];r[i]||(r[i]=[]);for(var n=0;n<o.data.length;n++){var s=this._bindPoint(o,i,n),a=s.valueFields,p=s.fields;t(a,E({pointIx:n,series:o,seriesIx:i,dataItem:o.data[n],owner:this},p))}}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e},e}(oe);It(no,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),E(no.prototype,Ai,{_bindPoint:ci.prototype._bindPoint});var so=no,ao=function(t){function e(e,r){t.call(this,e,r),this.category=e.category}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createHighlight=function(){var t=this.options.highlight,e=t.border,r=this.options.markers,i=this.box.center(),o=(r.size+r.border.width+e.width)/2,n=new S.drawing.Group,s=new S.drawing.Circle(new S.geometry.Circle([i.x,i.y+o/5+e.width/2],o+e.width/2),{stroke:{color:"none"},fill:this.createGradient({gradient:"bubbleShadow",color:r.background,stops:[{offset:0,color:r.background,opacity:.3},{offset:1,color:r.background,opacity:0}]})}),a=new S.drawing.Circle(new S.geometry.Circle([i.x,i.y],o),{stroke:{color:e.color||new S.Color(r.background).brightness(.8).toHex(),width:e.width,opacity:e.opacity},fill:{color:r.background,opacity:t.opacity}});return n.append(s,a),n},e}(di);ao.prototype.defaults=E({},ao.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),ao.prototype.defaults.highlight.zIndex=void 0;var po=ao,lo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this._maxSize=f,t.prototype._initFields.call(this)},e.prototype.addValue=function(e,r){null!==e.size&&(e.size>0||e.size<0&&r.series.negativeValues.visible)?(this._maxSize=Math.max(this._maxSize,Math.abs(e.size)),t.prototype.addValue.call(this,e,r)):(this.points.push(null),this.seriesPoints[r.seriesIx].push(null))},e.prototype.reflow=function(e){this.updateBubblesSize(e),t.prototype.reflow.call(this,e)},e.prototype.pointType=function(){return po},e.prototype.createPoint=function(t,e){var r=e.series,i=r.data.length,o=e.pointIx*(600/i),n={delay:o,duration:600-o,type:"bubble"},s=e.color||r.color;t.size<0&&r.negativeValues.visible&&(s=Tt(r.negativeValues.color,s));var a=E({labels:{animation:{delay:o,duration:600-o}}},this.pointOptions(r,e.seriesIx),{markers:{type:p,border:r.border,opacity:r.opacity,animation:n}});a=this.evalPointOptions(a,t,e),M(r.color)&&(s=a.color),a.markers.background=s;var l=new po(t,a);return l.color=s,this.append(l),l},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,r=Math.min(t.width(),t.height()),i=0;i<e.length;i++)for(var o=e[i],n=this.seriesPoints[i],s=(o.minSize||Math.max(.02*r,10))/2,a=(o.maxSize||.2*r)/2,p=Math.PI*s*s,l=(Math.PI*a*a-p)/this._maxSize,c=0;c<n.length;c++){var h=n[c];if(h){var u=Math.abs(h.value.size)*l,f=Math.sqrt((p+u)/Math.PI),d=Tt(h.options.zIndex,0)+(1-f/a);E(h.options,{zIndex:d,markers:{size:2*f,zIndex:d},labels:{zIndex:d+1}})}}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y,r.size,t.category)},e.prototype.createAnimation=function(){},e.prototype.createVisual=function(){},e}(so);It(lo,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var co=lo,ho=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(pe);E(ho.prototype,hi);var uo=ho,fo=function(t){function e(e,r){t.call(this,r),this.aboveAxis=this.options.aboveAxis,this.color=r.color||g,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options;this._rendered||(this._rendered=!0,xt(this.value.target)&&(this.target=new uo({type:t.target.shape,background:t.target.color||this.color,opacity:t.opacity,zIndex:t.zIndex,border:t.target.border,vAlign:v,align:d}),this.target.value=this.value,this.target.dataItem=this.dataItem,this.target.series=this.series,this.append(this.target)),this.createNote())},e.prototype.reflow=function(t){this.render();var e=this.options,r=this.target,i=this.owner,o=e.invertAxes,n=i.seriesValueAxis(this.options),s=i.categorySlot(i.categoryAxis,e.categoryIx,n),a=n.getSlot(this.value.target),p=o?a:s,l=o?s:a;if(r){var c=new $t(p.x1,l.y1,p.x2,l.y2);r.options.height=o?c.height():e.target.line.width,r.options.width=o?e.target.line.width:c.width(),r.reflow(c)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,r=S.drawing.Path.fromRect(this.box.toRect(),{fill:{color:this.color,opacity:e.opacity},stroke:null});e.border.width>0&&r.options.set("stroke",{color:e.border.color||this.color,width:e.border.width,dashType:e.border.dashType,opacity:Tt(e.border.opacity,e.opacity)}),this.bodyVisual=r,P(r),this.visual.append(r)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=S.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return S.drawing.Path.fromRect(this.box.toRect(),t)},e.prototype.highlightVisual=function(){return this.bodyVisual},e.prototype.highlightVisualArgs=function(){return{rect:this.box.toRect(),visual:this.bodyVisual,options:this.options}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(oe);fo.prototype.tooltipAnchor=Di.prototype.tooltipAnchor,It(fo,{border:{width:1},vertical:!1,opacity:1,target:{shape:"",border:{width:0,color:"green"},line:{width:2}},tooltip:{format:"Current: {0}<br />Target: {1}"}}),E(fo.prototype,hi),E(fo.prototype,ui);var vo=fo,yo=function(t){function e(e,r){!function(t){for(var e=t.series,r=0;r<e.length;r++){var i=e[r],o=i.data;!o||b(o[0])||R(o[0])||(i.data=[o])}}(r),t.call(this,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,i=0;i<r;i++)e[i].reflow(t[i])},e.prototype.plotRange=function(t){var e=t.series,r=this.seriesValueAxis(e),i=this.categoryAxisCrossingValue(r);return[i,t.value.current||i]},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=this.options,a=this.children,p=t.valueFields,l=E({vertical:!s.invertAxes,overlay:o.overlay,categoryIx:r,invertAxes:s.invertAxes},o),c=t.fields.color||o.color;l=this.evalPointOptions(l,p,i,r,o,n),M(o.color)&&(c=l.color);var h=new vo(p,l);h.color=c;var u=a[r];return u||(u=new Hi({vertical:s.invertAxes,gap:s.gap,spacing:s.spacing,rtl:!s.invertAxes&&(this.chartService||{}).rtl}),this.append(u)),u.append(h),h},e.prototype.updateRange=function(t,e){var r=t.current,i=t.target,o=e.series.axis,n=this.valueAxisRanges[o];xt(r)&&!isNaN(r)&&xt(i&&!isNaN(i))&&((n=this.valueAxisRanges[o]=n||{min:u,max:f}).min=Math.min(n.min,r,i),n.max=Math.max(n.max,r,i))},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value.current,t.value.target)},e.prototype.pointValue=function(t){return t.valueFields.current},e.prototype.aboveAxis=function(t){return t.value.current>0},e.prototype.createAnimation=function(){var t=this.points;this._setAnimationOptions();for(var e=0;e<t.length;e++){var r=t[e];r.options.animation=this.options.animation,r.createAnimation()}},e}(ci);yo.prototype._setAnimationOptions=Xi.prototype._setAnimationOptions,It(yo,{animation:{type:$r}});var go=yo,mo=function(t){function e(e,r){t.call(this),this.chartService=e,this.options=E({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStyle=function(t,e){var r=t.background,i=t.border.color;if(e){var o=e.color||e.options.color;r=Tt(r,o),i=Tt(i,o)}var n=z(t.padding||{},"auto");return{backgroundColor:r,borderColor:i,font:t.font,color:t.color,opacity:t.opacity,borderWidth:I(t.border.width),paddingTop:I(n.top),paddingBottom:I(n.bottom),paddingLeft:I(n.left),paddingRight:I(n.right)}},e.prototype.show=function(t,e,r){t.format=e.format;var i=this.getStyle(e,r);t.style=i;var o=new S.Color(i.backgroundColor);xt(e.color)||o.isDark()||(t.className="k-chart-tooltip-inverse"),this.chartService.notify("showTooltip",t),this.visible=!0},e.prototype.hide=function(){this.chartService&&this.chartService.notify("hideTooltip"),this.visible=!1},e.prototype.destroy=function(){delete this.chartService},e}(S.Class);It(mo,{border:{width:1},opacity:1});var xo=mo,bo=function(t){function e(e,r,i){t.call(this,e,i),this.crosshair=r,this.formatService=e.format,this.initAxisName()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initAxisName=function(){var t,e=this.crosshair.axis;t=e.plotArea.categoryAxis?e.getCategory?"categoryAxis":"valueAxis":e.options.vertical?"yAxis":"xAxis",this.axisName=t},e.prototype.showAt=function(t){var e=this.crosshair.axis,r=this.options,i=e[r.stickyMode?"getCategory":"getValue"](t),o=i;r.format?o=this.formatService.auto(r.format,i):e.options.type===l&&(o=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],i)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:o,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex},this.options)},e.prototype.hide=function(){this.chartService.notify("hideTooltip",{crosshair:this.crosshair,axisName:this.axisName,axisIndex:this.crosshair.axis.axisIndex})},e.prototype.getAnchor=function(){var t,e,r,i=this.crosshair,o=this.options,n=o.position,p=o.padding,l=!i.axis.options.vertical,c=i.line.bbox();return l?(t=a,n===s?(e=v,r=c.bottomLeft().translate(0,p)):(e=s,r=c.topLeft().translate(0,-p))):(e=a,n===h?(t=d,r=c.topLeft().translate(-p,0)):(t=h,r=c.topRight().translate(p,0))),{point:r,align:{horizontal:t,vertical:e}}},e}(xo);It(bo,{padding:10});var _o=bo,wo=function(t){function e(e,r,i){t.call(this,i),this.axis=r,this.stickyMode=r instanceof Qe;var o=this.options.tooltip;o.visible&&(this.tooltip=new _o(e,this,E({},o,{stickyMode:this.stickyMode})))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t){this.point=t,this.moveLine(),this.line.visible(!0),this.tooltip&&this.tooltip.showAt(t)},e.prototype.hide=function(){this.line.visible(!1),this.tooltip&&this.tooltip.hide()},e.prototype.moveLine=function(){var t,e=this.axis,r=this.point,i=e.options.vertical,o=this.getBox(),n=i?x:m,s=new S.geometry.Point(o.x1,o.y1);if(t=i?new S.geometry.Point(o.x2,o.y1):new S.geometry.Point(o.x1,o.y2),r)if(this.stickyMode){var a=e.getSlot(e.pointCategoryIndex(r));s[n]=t[n]=a.center()[n]}else s[n]=t[n]=r[n];this.box=o,this.line.moveTo(s).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,r=e.pane.axes,i=r.length,o=e.options.vertical,n=e.lineBox().clone(),s=o?m:x,a=0;a<i;a++){var p=r[a];p.options.vertical!==o&&(t?t.wrap(p.lineBox()):t=p.lineBox().clone())}return n[s+1]=t[s+1],n[s+2]=t[s+2],n},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options;this.line=new S.drawing.Path({stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType},visible:!1}),this.moveLine(),this.visual.append(this.line)},e.prototype.destroy=function(){this.tooltip&&this.tooltip.destroy(),t.prototype.destroy.call(this)},e}(oe);It(wo,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Oo=wo,So=function(t){function e(e,r){t.call(this,e),this.pane=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.shouldClip=function(){for(var t=this.children,e=t.length,r=0;r<e;r++)if(!0===t[r].options.clip)return!0;return!1},e.prototype._clipBox=function(){return this.pane.chartsBox()},e.prototype.createVisual=function(){if(this.visual=new S.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=S.drawing.Path.fromRect(t);P(e),this.visual.clip(e),this.unclipLabels()}},e.prototype.stackRoot=function(){return this},e.prototype.unclipLabels=function(){for(var t=this.children,e=this.clipBox,r=0;r<t.length;r++)for(var i=t[r].points||{},o=i.length,n=0;n<o;n++){var s=i[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,p=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),p&&p.options.visible&&(p.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(oe);So.prototype.isStackRoot=!0;var Po=So,Ao=function(t){function e(e){t.call(this,e),this.id="pane"+Co++,this.createTitle(),this.content=new oe,this.chartContainer=new Po({},this),this.append(this.content),this.axes=[],this.charts=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTitle=function(){var t=this.options.title;R(t)&&(t=E({},t,{align:t.position,position:v})),this.title=we.buildTitle(t,this,e.prototype.options.title)},e.prototype.appendAxis=function(t){this.content.append(t),this.axes.push(t),t.pane=this},e.prototype.appendAxisAt=function(t,e){this.content.append(t),this.axes.splice(e,0,t),t.pane=this},e.prototype.appendChart=function(t){this.chartContainer.parent!==this.content&&this.content.append(this.chartContainer),this.charts.push(t),this.chartContainer.append(t),t.pane=this},e.prototype.empty=function(){var t=this.parent;if(t){for(var e=0;e<this.axes.length;e++)t.removeAxis(this.axes[e]);for(var r=0;r<this.charts.length;r++)t.removeChart(this.charts[r])}this.axes=[],this.charts=[],this.content.destroy(),this.content.children=[],this.chartContainer.children=[]},e.prototype.reflow=function(e){var r;Pt(this.children)===this.content&&(r=this.children.pop()),t.prototype.reflow.call(this,e),r&&this.children.push(r),this.title&&(this.contentBox.y1+=this.title.box.height())},e.prototype.visualStyle=function(){var e=t.prototype.visualStyle.call(this);return e.zIndex=-10,e},e.prototype.renderComplete=function(){this.options.visible&&this.createGridLines()},e.prototype.stackRoot=function(){return this},e.prototype.clipRoot=function(){return this},e.prototype.createGridLines=function(){for(var t=this.axes,e=t.concat(this.parent.axes),r=[],i=[],o=0;o<t.length;o++)for(var n=t[o],s=n.options.vertical,a=s?r:i,p=0;p<e.length;p++)if(0===a.length){var l=e[p];s!==l.options.vertical&&gt(a,n.createGridLines(l))}},e.prototype.refresh=function(){this.visual.clear(),this.content.parent=null,this.content.createGradient=this.createGradient.bind(this),this.content.renderVisual(),this.content.parent=this,this.title&&this.visual.append(this.title.visual),this.visual.append(this.content.visual),this.renderComplete(),this.notifyRender()},e.prototype.chartsBox=function(){for(var t=this.axes,e=t.length,r=new $t,i=0;i<e;i++){var o=t[i],n=o.options.vertical?x:m,s=o.lineBox();r[n+1]=s[n+1],r[n+2]=s[n+2]}if(0===r.x2)for(var a=this.parent.axes,p=a.length,l=0;l<p;l++){var c=a[l];if(!c.options.vertical){var h=c.lineBox();r.x1=h.x1,r.x2=h.x2}}return r},e.prototype.clipBox=function(){return this.chartContainer.clipBox},e.prototype.notifyRender=function(){var t=this.getService();t&&t.notify("paneRender",{pane:new Vr(this),index:this.paneIndex,name:this.options.name})},e}(se),Co=1;Ao.prototype.isStackRoot=!0,It(Ao,{zIndex:-1,shrinkToFit:!0,title:{align:h},visible:!0});var ko=Ao;function jo(t,e){null!==e&&t.push(e)}function Mo(t,e,r){var i=e.visible;if(xt(i))return i;var o=t.pointVisibility;return o?o[r]:void 0}function To(t){for(var e=t.data,r=[],i=0,o=0,n=0;n<e.length;n++){var s=Gr.current.bindPoint(t,n),a=s.valueFields.value;k(a)&&(a=parseFloat(a)),C(a)?(s.visible=!1!==Mo(t,s.fields,n),s.value=Math.abs(a),r.push(s),s.visible&&(i+=s.value),0!==a&&o++):r.push(null)}return{total:i,points:r,count:o}}function Eo(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Ro(t,e){for(var r=[],i=[].concat(e),o=0;o<t.length;o++){var n=t[o];ct(n.type,i)&&r.push(n)}return r}function Io(t,e,r){if(null===e)return e;var i="_date_"+t,o=e[i];return o||(o=Ye(r,nt(t)(e)),e[i]=o),o}function Bo(t,e){var r=t.type,i=e instanceof Date;return!r&&i||Eo(r,l)}function Lo(t){return 1===t.length?t[0]:t}var Vo=/area/i;function zo(t,e){var r=Gr.current.bindPoint(t,null,e).valueFields;for(var i in r)if(j(r[i]))return!0}function Do(t){var e,r,i=t.start,o=t.dir,n=t.min,s=t.max,a=t.getter,p=t.hasItem,l=t.series,c=i;do{p(c+=o)&&(e=zo(l,(r=a(c)).item))}while(n<=c&&c<=s&&!e);if(e)return r}function No(t,e,r,i,o){var n=e.min,s=e.max,a=n>0&&n<r,p=s+1<r;if(a||p){var l,c,h;if("interpolate"!==function(t){return t.missingValues?t.missingValues:Vo.test(t.type)||t.stack?Zr:"interpolate"}(t))a&&(l=i(n-1)),p&&(c=i(s+1));else a&&(l=zo(t,(h=i(n-1)).item)?h:Do({start:n,dir:-1,min:0,max:r-1,getter:i,hasItem:o,series:t})),p&&(c=zo(t,(h=i(s+1)).item)?h:Do({start:s,dir:1,min:0,max:r-1,getter:i,hasItem:o,series:t}));l&&(t._outOfRangeMinPoint=l),c&&(t._outOfRangeMaxPoint=c)}}var Fo=function(t){function e(e,r,i){t.call(this,r),this.initFields(e,r),this.series=e,this.initSeries(),this.charts=[],this.options.legend=this.options.legend||{},this.options.legend.items=[],this.axes=[],this.crosshairs=[],this.chartService=i,this.originalOptions=r,this.createPanes(),this.render(),this.createCrosshairs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){},e.prototype.initSeries=function(){for(var t=this.series,e=0;e<t.length;e++)t[e].index=e},e.prototype.createPanes=function(){for(var t=this.options.title||{},e=this.options.paneDefaults,r=this.options.panes||[],i=Math.max(r.length,1),o=[],n=E({title:{color:t.color}},e),s=0;s<i;s++){var a=E({},n,r[s]);k(a.title)&&(a.title=E({text:a.title},n.title));var p=new ko(a);p.paneIndex=s,o.push(p),this.append(p)}this.panes=o},e.prototype.crosshairOptions=function(t){return t.options.crosshair},e.prototype.createCrosshairs=function(t){void 0===t&&(t=this.panes);for(var e=0;e<t.length;e++)for(var r=t[e],i=0;i<r.axes.length;i++){var o=r.axes[i],n=this.crosshairOptions(o);if(n&&n.visible){var s=new Oo(this.chartService,o,n);this.crosshairs.push(s),r.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,r=t.axes,i=e.length-1;i>=0;i--)for(var o=0;o<r.length;o++)if(e[i].axis===r[o]){e.splice(i,1);break}},e.prototype.hideCrosshairs=function(){for(var t=this.crosshairs,e=0;e<t.length;e++)t[e].hide()},e.prototype.findPane=function(t){for(var e,r=this.panes,i=0;i<r.length;i++)if(r[i].options.name===t){e=r[i];break}return e||r[0]},e.prototype.findPointPane=function(t){for(var e,r=this.panes,i=0;i<r.length;i++)if(r[i].box.containsPoint(t)){e=r[i];break}return e},e.prototype.appendAxis=function(t){this.findPane(t.options.pane).appendAxis(t),this.axes.push(t),t.plotArea=this},e.prototype.removeAxis=function(t){for(var e=[],r=0;r<this.axes.length;r++){var i=this.axes[r];t!==i?e.push(i):i.destroy()}this.axes=e},e.prototype.appendChart=function(t,e){this.charts.push(t),e?e.appendChart(t):this.append(t)},e.prototype.removeChart=function(t){for(var e=[],r=0;r<this.charts.length;r++){var i=this.charts[r];i!==t?e.push(i):i.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,r=this.options.legend,i=r.labels||{},o=r.inactiveItems||{},n=o.labels||{},s=[],a=0;a<e;a++){var p=t[a],l=!1!==p.visible;if(!1!==p.visibleInLegend){var c=p.name,h=l?rt(i):rt(n)||rt(i);h&&(c=h({text:oo(c)?c:"",series:p}));var u=p._defaults,f=p.color;M(f)&&u&&(f=u.color);var d=void 0,v=void 0;l?(d={},v=f):(d={color:n.color,font:n.font},v=o.markers.color),oo(c)&&""!==c&&s.push({text:c,labels:d,markerColor:v,series:p,active:l})}}gt(r.items,s)},e.prototype.groupAxes=function(t){for(var e=[],r=[],i=0;i<t.length;i++)for(var o=t[i].axes,n=0;n<o.length;n++){var s=o[n];s.options.vertical?r.push(s):e.push(s)}return{x:e,y:r,any:e.concat(r)}},e.prototype.groupSeriesByPane=function(){for(var t=this.series,e={},r=0;r<t.length;r++){var i=t[r],o=this.seriesPaneName(i);e[o]?e[o].push(i):e[o]=[i]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];!1!==i.visible&&e.push(i)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,r=this.panes,i=z(e.margin);this.box=t.clone().unpad(i),this.reflowPanes(),this.detachLabels(),this.reflowAxes(r),this.reflowCharts(r)},e.prototype.redraw=function(t){var e=[].concat(t);this.initSeries();var r=this.getRoot();r&&r.cleanGradients();for(var i=0;i<e.length;i++)this.removeCrosshairs(e[i]),e[i].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var o=0;o<e.length;o++)e[o].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var r=t.options,i=[].concat(r.axisCrossingValues||r.axisCrossingValue),o=e.length-i.length,n=i[0]||0,s=0;s<o;s++)i.push(n);return i},e.prototype.alignAxisTo=function(t,e,r,i){var o=t.getSlot(r,r,!0),n=t.options.reverse?2:1,s=e.getSlot(i,i,!0),a=e.options.reverse?2:1,p=t.box.translate(s[m+a]-o[m+n],s[x+a]-o[x+n]);t.pane!==e.pane&&p.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(p)},e.prototype.alignAxes=function(t,e){for(var r=t[0],i=e[0],o=this.axisCrossingValues(r,e),n=this.axisCrossingValues(i,t),a={},p={},l={},c={},u=0;u<e.length;u++){var f=e[u],y=f.pane,g=y.id,m=!1!==f.options.visible,x=Go(t,y)||r,b=o;x!==r&&(b=this.axisCrossingValues(x,e)),this.alignAxisTo(f,x,n[u],b[u]),f.options._overlap||(jt(f.lineBox().x1)===jt(x.lineBox().x1)&&(a[g]&&f.reflow(f.box.alignTo(a[g].box,h).translate(-f.options.margin,0)),m&&(a[g]=f)),jt(f.lineBox().x2)===jt(x.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),this.alignAxisTo(f,x,n[u],b[u]),p[g]&&f.reflow(f.box.alignTo(p[g].box,d).translate(f.options.margin,0)),m&&(p[g]=f)),0!==u&&i.pane===f.pane&&(f.alignTo(i),f.reflow(f.box)))}for(var _=0;_<t.length;_++){var w=t[_],O=w.pane,S=O.id,P=!1!==w.options.visible,A=Go(e,O)||i,C=n;A!==i&&(C=this.axisCrossingValues(A,t)),this.alignAxisTo(w,A,o[_],C[_]),w.options._overlap||(jt(w.lineBox().y1)===jt(A.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),this.alignAxisTo(w,A,o[_],C[_]),l[S]&&w.reflow(w.box.alignTo(l[S].box,v).translate(0,-w.options.margin)),P&&(l[S]=w)),jt(w.lineBox().y2,3)===jt(A.lineBox().y2,3)&&(c[S]&&w.reflow(w.box.alignTo(c[S].box,s).translate(0,w.options.margin)),P&&(c[S]=w)),0!==_&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,r=Ho(e),i=0,o=0;o<t.length;o++){var n=t[o];n.axes.length>0&&(i=Math.max(i,r.width()-n.contentBox.width()))}if(0!==i)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(i,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,r=0;r<t.length;r++){var i=t[r],o=i.axes,n=Math.max(0,Ho(o).height()-i.contentBox.height());if(0!==n){for(var s=0;s<o.length;s++){var a=o[s];a.options.vertical&&a.reflow(a.box.shrink(0,n))}e=!0}}return e},e.prototype.fitAxes=function(t){for(var e=this.groupAxes(t).any,r=0,i=0;i<t.length;i++){var o=t[i],n=o.axes,s=o.contentBox;if(n.length>0){var a=Ho(n),p=Math.max(s.y1-a.y1,s.y2-a.y2);r=Math.max(r,s.x1-a.x1);for(var l=0;l<n.length;l++){var c=n[l];c.reflow(c.box.translate(0,p))}}}for(var h=0;h<e.length;h++){var u=e[h];u.reflow(u.box.translate(r,0))}},e.prototype.reflowAxes=function(t){for(var e=this.groupAxes(t),r=0;r<t.length;r++)this.reflowPaneAxes(t[r]);e.x.length>0&&e.y.length>0&&(this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t),this.autoRotateAxisLabels(e),this.alignAxes(e.x,e.y),this.shrinkAxisWidth(t)&&this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t),this.alignAxes(e.x,e.y),this.shrinkAxisHeight(t)&&this.alignAxes(e.x,e.y),this.fitAxes(t))},e.prototype.autoRotateAxisLabels=function(t){for(var e,r=this.panes,i=Wo(r),o=0;o<i.length;o++){i[o].autoRotateLabels()&&(e=!0)}if(e){for(var n=0;n<r.length;n++)this.reflowPaneAxes(r[n]);t.x.length>0&&t.y.length>0&&(this.alignAxes(t.x,t.y),this.shrinkAxisWidth(r))}},e.prototype.reflowPaneAxes=function(t){var e=t.axes,r=e.length;if(r>0)for(var i=0;i<r;i++)e[i].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,r=e.length,i=this.box,o=0;o<r;o++){var n=e[o].pane;n&&!ct(n,t)||e[o].reflow(i)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,r=e.length,i=t.height(),o=0,n=t.y1,s=0;s<r;s++){var a=e[s],p=a.options.height;if(a.options.width=t.width(),a.options.height){if(p.indexOf&&p.indexOf("%")){var l=parseInt(p,10)/100;a.options.height=l*t.height()}a.reflow(t.clone()),i-=a.options.height}else o++}for(var c=0;c<r;c++){var h=e[c];h.options.height||(h.options.height=i/o)}for(var u=0;u<r;u++){var f=e[u],d=t.clone().move(t.x1,n);f.reflow(d),n+=f.options.height}},e.prototype.backgroundBox=function(){for(var t,e=this.axes,r=e.length,i=0;i<r;i++)for(var o=e[i],n=0;n<r;n++){var s=e[n];if(o.options.vertical!==s.options.vertical){var a=o.lineBox().clone().wrap(s.lineBox());t=t?t.wrap(a):a}}return t||this.box},e.prototype.chartsBoxes=function(){for(var t=this.panes,e=[],r=0;r<t.length;r++)e.push(t[r].chartsBox());return e},e.prototype.addBackgroundPaths=function(t){for(var e=this.chartsBoxes(),r=0;r<e.length;r++)t.paths.push(S.drawing.Path.fromRect(e[r].toRect()))},e.prototype.backgroundContainsPoint=function(t){for(var e=this.chartsBoxes(),r=0;r<e.length;r++)if(e[r].containsPoint(t))return!0},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e,r=this.options.plotArea,i=r.opacity,o=r.background,n=r.border;void 0===n&&(n={}),""!==(e=o)&&null!==e&&"none"!==e&&"transparent"!==e&&xt(e)||(o=g,i=0);var s=this._bgVisual=new S.drawing.MultiPath({fill:{color:o,opacity:i},stroke:{color:n.width?n.color:"",width:n.width,dashType:n.dashType},zIndex:-1});this.addBackgroundPaths(s),this.appendVisual(s)},e.prototype.pointsByCategoryIndex=function(t){var e=this.charts,r=[];if(null!==t)for(var i=0;i<e.length;i++){if("_navigator"!==e[i].pane.options.name){var o=e[i].categoryPoints[t];if(o&&o.length)for(var n=0;n<o.length;n++){var s=o[n];s&&xt(s.value)&&null!==s.value&&r.push(s)}}}return r},e.prototype.pointsBySeriesIndex=function(t){return this.filterPoints((function(e){return e.series.index===t}))},e.prototype.pointsBySeriesName=function(t){return this.filterPoints((function(e){return e.series.name===t}))},e.prototype.filterPoints=function(t){for(var e=this.charts,r=[],i=0;i<e.length;i++)for(var o=e[i].points,n=0;n<o.length;n++){var s=o[n];s&&!1!==s.visible&&t(s)&&r.push(s)}return r},e.prototype.findPoint=function(t){for(var e=this.charts,r=0;r<e.length;r++)for(var i=e[r].points,o=0;o<i.length;o++){var n=i[o];if(n&&!1!==n.visible&&t(n))return n}},e.prototype.paneByPoint=function(t){for(var e=this.panes,r=0;r<e.length;r++){var i=e[r];if(i.box.containsPoint(t))return i}},e.prototype.detachLabels=function(){var t=this.groupAxes(this.panes),e=t.x,r=t.y;this.detachAxisGroupLabels(r,e),this.detachAxisGroupLabels(e,r)},e.prototype.detachAxisGroupLabels=function(t,e){for(var r=0,i=0;i<t.length;i++){var o=t[i],n=o.pane,s=Go(e,n)||e[0],a=i+r,p=this.createLabelAxis(o,a,s);if(p){r++;var l=n.axes.indexOf(o)+r;n.appendAxisAt(p,l)}}},e.prototype.createLabelAxis=function(t,e,r){var i=t.options.labels,o=i.position,n="end"!==o&&"start"!==o,s=i.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),p=r.options.vertical?a.x:a.y,l=this.axisCrossingValues(r,p),c="end"===o,h=r.range(),u=c?h.max:h.min;if(At(l[e],h.min,h.max)-u==0)return null;l.splice(e+1,0,u),r.options.axisCrossingValues=l;var f=t.clone();return t.clear(),f.options.name=void 0,f.options.line.visible=!1,f.options.crosshair=void 0,f.options.notes=void 0,f.options.plotBands=void 0,f},e}(oe);function Uo(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Ho(t){for(var e,r=t.length,i=0;i<r;i++){var o=t[i],n=!1!==o.options.visible;if(n||Uo(o)){var s=n?o.contentBox():o.lineBox();e?e.wrap(s):e=s.clone()}}return e||new $t}function Go(t,e){for(var r=0;r<t.length;r++){var i=t[r];if(i&&i.pane===e)return i}}var Wo=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};It(Fo,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Ko=Fo,Xo={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function Yo(t,e,r){var i=e,o=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)o=n.shift(),xt(i[o])||(i[o]={}),i=i[o];o=n.shift()}i[o]=r}var qo=function(t){function e(e,r,i){t.call(this);var o=r.canonicalFields(e),n=r.valueFields(e),s=r.sourceFields(e,o),a=this._seriesFields=[],p=i.query(e.type),l=e.aggregate||p;this._series=e,this._binder=r;for(var c=0;c<o.length;c++){var h=o[c],u=void 0;if(R(l))u=l[h];else{if(0!==c&&!ct(h,n))break;u=l}u&&a.push({canonicalName:h,name:s[c],transform:M(u)?u:Fr[u]})}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aggregatePoints=function(t,e){var r=this._series,i=this._seriesFields,o=this._bindPoints(t||[]),n=o.dataItems[0],s={};if(n&&!C(n)&&!b(n)){var a=function(){};a.prototype=n,s=new a}for(var p=0;p<i.length;p++){var l=i[p],c=this._bindField(o.values,l.canonicalName),h=l.transform(c,r,o.dataItems,e);if(!(null===h||!R(h)||xt(h.length)||h instanceof Date)){s=h;break}xt(h)&&Yo(l.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,r=this._series,i=[],o=[],n=0;n<t.length;n++){var s=t[n];i.push(e.bindPoint(r,s)),o.push(r.data[s])}return{values:i,dataItems:o}},e.prototype._bindField=function(t,e){for(var r=[],i=t.length,o=0;o<i;o++){var n=t[o],s=n.valueFields,a=void 0;a=xt(s[e])?s[e]:n.fields[e],r.push(a)}return r},e}(S.Class),Zo=function(t){function e(){t.call(this),this._defaults={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){for(var r=0;r<t.length;r++)this._defaults[t[r]]=e},e.prototype.query=function(t){return this._defaults[t]},e}(S.Class);Zo.current=new Zo;var $o=Zo,Qo=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLabel=function(){var t=this.options.labels,e=E({},t,t.from),r=E({},t,t.to);e.visible&&(this.labelFrom=this._createLabel(e),this.append(this.labelFrom)),r.visible&&(this.labelTo=this._createLabel(r),this.append(this.labelTo))},e.prototype._createLabel=function(t){var e,r=rt(t),i=this.pointData();return e=r?r(i):this.formatValue(t.format),new Li(e,E({vertical:this.options.vertical},t),i)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,r=this.labelTo,i=this.value;this.box=t,e&&(e.options.aboveAxis=i.from>i.to,e.reflow(t)),r&&(r.options.aboveAxis=i.to>i.from,r.reflow(t)),this.note&&this.note.reflow(t)},e}(Di);Qo.prototype.defaults=E({},Qo.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var Jo=Qo,tn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Jo},e.prototype.pointValue=function(t){return t.valueFields},e.prototype.formatPointValue=function(t,e){return null===t.value.from&&null===t.value.to?"":this.chartService.format.auto(e,t.value.from,t.value.to)},e.prototype.plotRange=function(t){return t?[t.value.from,t.value.to]:0},e.prototype.updateRange=function(t,e){var r=e.series.axis,i=t.from,o=t.to,n=this.valueAxisRanges[r];null!==t&&C(i)&&C(o)&&((n=this.valueAxisRanges[r]=n||{min:u,max:f}).min=Math.min(n.min,i),n.max=Math.max(n.max,i),n.min=Math.min(n.min,o),n.max=Math.max(n.max,o))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(Xi);tn.prototype.plotLimits=ci.prototype.plotLimits;var en=tn,rn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.aliasFor=function(){return this.parent},e}(di),on=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=Tt(this.options.aboveAxis,!0),this.tooltipTracking=!0,this.initLabelsFormat()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){if(!this._rendered){this._rendered=!0;var t=this.options,e=t.markers,r=t.labels,i=this.value,o=this.fromPoint=new rn(i,E({},this.options,{labels:r.from,markers:e.from})),n=this.toPoint=new rn(i,E({},this.options,{labels:r.to,markers:e.to}));this.copyFields(o),this.copyFields(n),this.append(o),this.append(n)}},e.prototype.reflow=function(t){this.render();var e=t.from,r=t.to;this.positionLabels(e,r),this.fromPoint.reflow(e),this.toPoint.reflow(r),this.box=this.fromPoint.markerBox().clone().wrap(this.toPoint.markerBox())},e.prototype.createHighlight=function(){var t=new S.drawing.Group;return t.append(this.fromPoint.createHighlight()),t.append(this.toPoint.createHighlight()),t},e.prototype.highlightVisual=function(){return this.visual},e.prototype.highlightVisualArgs=function(){return{options:this.options,from:this.fromPoint.highlightVisualArgs(),to:this.toPoint.highlightVisualArgs()}},e.prototype.tooltipAnchor=function(){var t=this.owner.pane.clipBox();if(!t||t.overlaps(this.box)){var e,r,i,o=this.box,n=o.center();return this.options.vertical?(e=n.x,r=o.y1-5,i=s):(e=o.x2+5,r=n.y,i=a),{point:new qt(e,r),align:{horizontal:"left",vertical:i}}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){this.fromPoint.unclipElements(),this.toPoint.unclipElements()},e.prototype.initLabelsFormat=function(){var t=this.options.labels;t.format||(t.from&&t.from.format||(t.from=Object.assign({},t.from,{format:"{0}"})),t.to&&t.to.format||(t.to=Object.assign({},t.to,{format:"{1}"})))},e.prototype.positionLabels=function(t,e){var r,i,o=this.options,n=o.labels,s=o.vertical;"auto"===n.position&&(s?e.y1<=t.y1?(i="above",r="below"):(i="below",r="above"):e.x1<=t.x1?(i=h,r=d):(i=d,r=h),n.from&&n.from.position||(this.fromPoint.options.labels.position=r),n.to&&n.to.position||(this.toPoint.options.labels.position=i))},e.prototype.copyFields=function(t){t.dataItem=this.dataItem,t.category=this.category,t.series=this.series,t.color=this.color,t.owner=this.owner},e}(oe);E(on.prototype,hi),E(on.prototype,ui),on.prototype.defaults={markers:{visible:!1,background:g,size:8,type:p,border:{width:2},opacity:1},labels:{visible:!1,margin:z(3),padding:z(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:g,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var nn=on,sn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.toGeometryPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.toGeometryPoints(this.fromPoints().reverse()))),t},e.prototype.createStroke=function(t){var e=new S.drawing.Path(t),r=new S.drawing.Path(t);e.segments.push.apply(e.segments,this.strokeSegments()),r.segments.push.apply(r.segments,this.stackSegments()),this.visual.append(e),this.visual.append(r)},e.prototype.hasStackSegment=function(){return!0},e.prototype.fromPoints=function(){return this.linePoints.map((function(t){return t.fromPoint}))},e.prototype.toPoints=function(){return this.linePoints.map((function(t){return t.toPoint}))},e}(ji),an=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.createCurveSegments(this.toPoints())},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.createCurveSegments(this.fromPoints().reverse())),t},e.prototype.createCurveSegments=function(t){return(new Rr).process(this.toGeometryPoints(t))},e}(sn),pn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.toPoints()))},e.prototype.stackSegments=function(){var t=this.fromSegments;return this.fromSegments||(t=this.fromSegments=this.segmentsFromPoints(this.calculateStepPoints(this.fromPoints()))).reverse(),t},e}(sn);E(pn.prototype,mi);var ln=pn,cn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.pointType=function(){return nn},e.prototype.createPoint=function(t,e){var r=e.categoryIx,i=e.category,o=e.series,n=e.seriesIx,s=t.valueFields;if(!oo(s.from)&&!oo(s.to)){if(this.seriesMissingValues(o)!==Zr)return null;s={from:0,to:0}}var a=this.pointOptions(o,n);a=this.evalPointOptions(a,s,i,r,o,n);var p=t.fields.color||o.color;M(o.color)&&(p=a.color);var l=new nn(s,a);return l.color=p,this.append(l),l},e.prototype.createSegment=function(t,e,r){var i=(e.line||{}).style;return new("smooth"===i?an:"step"===i?ln:sn)(t,e,r)},e.prototype.plotRange=function(t,e){return t?[t.value.from,t.value.to]:[e,e]},e.prototype.valueSlot=function(t,e){var r=t.getSlot(e[0],e[0],!this.options.clip),i=t.getSlot(e[1],e[1],!this.options.clip);if(r&&i)return{from:r,to:i}},e.prototype.pointSlot=function(t,e){var r,i,o=e.from,n=e.to;return this.options.invertAxes?(r=new $t(o.x1,t.y1,o.x2,t.y2),i=new $t(n.x1,t.y1,n.x2,t.y2)):(r=new $t(t.x1,o.y1,t.x2,o.y2),i=new $t(t.x1,n.y1,t.x2,n.y2)),{from:r,to:i}},e.prototype.addValue=function(e,r){var i=e.valueFields;C(i.from)||(i.from=i.to),C(i.to)||(i.to=i.from),t.prototype.addValue.call(this,e,r)},e.prototype.updateRange=function(t,e){if(null!==t&&C(t.from)&&C(t.to)){var r=e.series.axis,i=this.valueAxisRanges[r]=this.valueAxisRanges[r]||{min:u,max:f},o=t.from,n=t.to;i.min=Math.min(i.min,o,n),i.max=Math.max(i.max,o,n)}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.from,r.to)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++){var i=t[r];i&&(e.push((i.fromPoint||{}).marker),e.push((i.toPoint||{}).marker))}return e.concat(this._segments)},e}(ci);E(cn.prototype,wi,Ai);var hn=cn,un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.value,i=this.owner.seriesValueAxis(e),o=[],n=[],s=[],a=i.getSlot(r.low,r.high),p=i.getSlot(r.open,r.open),l=i.getSlot(r.close,r.close);p.x1=l.x1=a.x1=t.x1,p.x2=l.x2=a.x2=t.x2;var c=a.center().x;o.push([p.x1,p.y1]),o.push([c,p.y1]),n.push([c,l.y1]),n.push([l.x2,l.y1]),s.push([c,a.y1]),s.push([c,a.y2]),this.lines=[o,n,s],this.box=a.clone().wrap(p.clone().wrap(l)),this.reflowNote()},e.prototype.createBody=function(){},e}(qi),fn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return un},e}(Qi),dn=function(t){function e(e,r,i){t.call(this),this.from=e,this.to=r,this.series=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.linePoints=function(){var t=this.from,e=this.from.box,r=this.to.box,i=[];if(t.isVertical){var o=t.aboveAxis?e.y1:e.y2;i.push([e.x1,o],[r.x2,o])}else{var n=t.aboveAxis?e.x2:e.x1;i.push([n,e.y1],[n,r.y2])}return i},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},r=S.drawing.Path.fromPoints(this.linePoints(),{stroke:{color:e.color,width:e.width,opacity:e.opacity,dashType:e.dashType}});P(r),this.visual.append(r)},e}(oe);It(dn,{animation:{type:"fadeIn",delay:600}});var vn=dn,yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.createSegments()},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=pi(e),i=!this.options.invertAxes,o=0;o<e.length;o++)for(var n=e[o],s=0,a=0,p=0;p<r;p++){var l=Gr.current.bindPoint(n,p),c=l.valueFields.value,h=l.fields.summary,u=s,f=void 0;h?"total"===h.toLowerCase()?(l.valueFields.value=s,u=0,f=s):(l.valueFields.value=a,f=u-a,a=0):C(c)&&(a+=c,f=s+=c),t(l,{category:this.categoryAxis.categoryAt(p),categoryIx:p,series:n,seriesIx:o,total:s,runningTotal:a,from:u,to:f,isVertical:i})}},e.prototype.updateRange=function(e,r){t.prototype.updateRange.call(this,{value:r.to},r)},e.prototype.aboveAxis=function(t){return t.value>=0},e.prototype.plotRange=function(t){return[t.from,t.to]},e.prototype.createSegments=function(){for(var t=this.options.series,e=this.seriesPoints,r=this.segments=[],i=0;i<t.length;i++){var o=t[i],n=e[i];if(n)for(var s=void 0,a=0;a<n.length;a++){var p=n[a];if(p&&s){var l=new vn(s,p,o);r.push(l),this.append(l)}s=p}}},e}(Xi),gn=["area","verticalArea","rangeArea","verticalRangeArea"],mn=[Jr,ei].concat(gn),xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(t){if(this.namedCategoryAxes={},this.namedValueAxes={},this.valueAxisRangeTracker=new Ii,t.length>0){this.invertAxes=ct(t[0].type,[$r,"bullet",ei,"verticalArea","verticalRangeArea","rangeBar","horizontalWaterfall","verticalBoxPlot"]);for(var e=0;e<t.length;e++){var r=t[e].stack;if(r&&"100%"===r.type){this.stack100=!0;break}}}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.createCategoryAxes(t),this.aggregateCategories(t),this.createCategoryAxesLabels(t),this.createCharts(t),this.createValueAxes(t)},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e instanceof Qe?delete this.namedCategoryAxes[r]:(this.valueAxisRangeTracker.reset(r),delete this.namedValueAxes[r]),e===this.categoryAxis&&delete this.categoryAxis,e===this.valueAxis&&delete this.valueAxis},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],o=e[i.options.name||"default"]||[];this.addToLegend(o);var n=this.filterVisibleSeries(o);if(n)for(var s=this.groupSeriesByCategoryAxis(n),a=0;a<s.length;a++)this.createChartGroup(s[a],i)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Ro(t,["area","verticalArea"]),e),this.createRangeAreaChart(Ro(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Ro(t,[Qr,$r]),e),this.createRangeBarChart(Ro(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Ro(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Ro(t,"candlestick"),e),this.createBoxPlotChart(Ro(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Ro(t,"ohlc"),e),this.createWaterfallChart(Ro(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Ro(t,[Jr,ei]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,r=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var i=0;i<e.length;i++){var o=e[i],n=this.seriesCategoryAxis(o),s=this.findPane(n.options.pane);o=(Eo(n.options.type,l)||o.categoryField)&&ct(s,t)?this.aggregateSeries(o,n):this.filterSeries(o,n),r.push(o)}this._seriesPointsCache=this._currentPointsCache,this._currentPointsCache=null,this.srcSeries=e,this.series=r},e.prototype.filterSeries=function(t,e){var r=(t.data||{}).length;if(e._seriesMax=Math.max(e._seriesMax||0,r),!C(e.options.min)&&!C(e.options.max))return t;var i=e.currentRangeIndices(),o=ct(t.type,mn),n=E({},t);return n.data=(n.data||[]).slice(i.min,i.max+1),o&&No(n,i,r,(function(r){return{item:t.data[r],category:e.categoryAt(r,!0),categoryIx:r-i.min}}),(function(e){return xt(t.data[e])})),n},e.prototype.clearSeriesPointsCache=function(){this._seriesPointsCache={}},e.prototype.seriesSourcePoints=function(t,e){var r=t.index+";"+e.categoriesHash();if(this._seriesPointsCache[r])return this._currentPointsCache[r]=this._seriesPointsCache[r],this._seriesPointsCache[r];var i=e.options,o=i.srcCategories,n=Eo(i.type,l),s=t.data,a=n?Io:Ur,p=[];n||e.mapCategories();for(var c=0;c<s.length;c++){var h=void 0;if(h=t.categoryField?a(t.categoryField,s[c],this.chartService.intl):o[c],xt(h)&&null!==h){var u=e.totalIndex(h);p[u]=p[u]||{items:[],category:h},p[u].items.push(c)}}return this._currentPointsCache[r]=p,p},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var r=this.seriesSourcePoints(t,e),i=E({},t),o=new qo(E({},t),Gr.current,$o.current),n=i.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),p=function(t){var i=t-a.min,n=r[t];if(n||(n=r[t]={}),n.categoryIx=i,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=o.aggregatePoints(n.items,s)}return n},l=a.min;l<=a.max;l++){var c=p(l);n[c.categoryIx]=c.item,c.items&&c.items.length&&(s[c.categoryIx]=c.item)}return ct(i.type,mn)&&No(i,a,e.totalCount(),p,(function(t){return r[t]})),e.options.dataItems=s,i},e.prototype.appendChart=function(e,r){var i=e.options.series,o=this.seriesCategoryAxis(i[0]),n=o.options.categories,s=Math.max(0,pi(i)-n.length);if(s>0)for(n=o.options.categories=o.options.categories.slice(0);s--;)n.push("");this.valueAxisRangeTracker.update(e.valueAxisRanges),t.prototype.appendChart.call(this,e,r)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.axis,i=st([].concat(e.valueAxis),(function(t){return t.name===r}))[0],o=((e.panes||[{}])[0]||{}).name||"default";return(i||{}).pane||o},e.prototype.seriesCategoryAxis=function(t){var e=t.categoryAxis,r=e?this.namedCategoryAxes[e]:this.categoryAxis;if(!r)throw new Error("Unable to locate category axis with name "+e);return r},e.prototype.stackableChartOptions=function(t,e){var r=t.stack;return{isStacked:r,isStacked100:r&&"100%"===r.type,clip:e.options.clip}},e.prototype.groupSeriesByCategoryAxis=function(t){for(var e=[],r={},i=0;i<t.length;i++){var o=t[i].categoryAxis||"$$default$$";r.hasOwnProperty(o)||(r[o]=!0,e.push(o))}for(var n=[],s=0;s<e.length;s++){var a=_n(t,e[s],s);0!==a.length&&n.push(a)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],i=new Xi(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing},this.stackableChartOptions(r,e)));this.appendChart(i,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var r=t[0],i=new en(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(i,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var r=t[0],i=new go(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=t[0],i=new ki(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(i,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=t[0],i=new Ri(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(i,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var r=new hn(this,{invertAxes:this.invertAxes,series:t,clip:e.options.clip});this.appendChart(r,e)}},e.prototype.createOHLCChart=function(t,e){if(0!==t.length){var r=t[0],i=new fn(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var r=t[0],i=new Qi(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var r=t[0],i=new ro(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(i,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var r=t[0],i=new yn(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(i,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var r=Ro(this.series,ri),i=0;i<this.series.length;i++){var o=this.series[i];if(ct(o.type,gn)){var n=o.line;n&&"step"===n.style&&r.push(o)}}for(var s=0;s<r.length;s++){var a=r[s].categoryAxis||"";if(a===t||!a&&0===e)return!0}},e.prototype.aggregatedAxis=function(t,e){for(var r=this.series,i=0;i<r.length;i++){var o=r[i].categoryAxis||"";if((o===t||!o&&0===e)&&r[i].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof Qe&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,r=[].concat(this.options.categoryAxis),i=[],o=0;o<r.length;o++){var n=r[o];if(ct(this.findPane(n.pane),t)){var s=n.name,a=n.categories;void 0===a&&(a=[]),n=E({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?u:0},n),xt(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(s,o)&&(n.justified=!1);var p=void 0;if(p=Bo(n,a[0])?new ar(n,this.chartService):new Qe(n,this.chartService),r[o].categories=p.options.srcCategories,s){if(this.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");this.namedCategoryAxes[s]=p}p.axisIndex=o,i.push(p),this.appendAxis(p)}}var l=this.categoryAxis||i[0];this.categoryAxis=l,e?this.axisY=l:this.axisX=l},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!ct(t[e].type,gn))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,r=e.query(),i=[].concat(this.options.valueAxis),o=this.invertAxes,n={vertical:!o,reverse:o&&this.chartService.rtl},s=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var a=0;a<i.length;a++){var p=i[a];if(ct(this.findPane(p.pane),t)){var l=p.name,c=Eo(p.type,"log")?{min:.1,max:1}:{min:0,max:1},h=e.query(l)||r||c;0===a&&h&&r&&(h.min=Math.min(h.min,r.min),h.max=Math.max(h.max,r.max));var u=new(Eo(p.type,"log")?br:dr)(h.min,h.max,E({},n,p),this.chartService);if(l){if(this.namedValueAxes[l])throw new Error("Value axis with name "+l+" is already defined");this.namedValueAxes[l]=u}u.axisIndex=a,s.push(u),this.appendAxis(u)}}var f=this.valueAxis||s[0];this.valueAxis=f,o?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,r){var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.pointPane(o),s=[],a=[];if(n){for(var p=n.axes,l=0;l<p.length;l++){var c=p[l];c.getValue?jo(a,c.getValue(o)):jo(s,c.getCategory(o))}0===s.length&&jo(s,this.categoryAxis.getCategory(o)),s.length>0&&a.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,category:Lo(s),value:Lo(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,r=0;r<e.length;r++){var i=e[r];if(i.contentBox.containsPoint(t))return i}},e.prototype.updateAxisOptions=function(t,e){bn(this.options,t,e),bn(this.originalOptions,t,e)},e}(Ko);function bn(t,e,r){E([].concat(e instanceof Qe?t.categoryAxis:t.valueAxis)[e.axisIndex],r)}function _n(t,e,r){return st(t,(function(t){return 0===r&&!t.categoryAxis||t.categoryAxis===e}))}It(xn,{categoryAxis:{},valueAxis:{}}),E(xn.prototype,Xo);var wn=xn;function On(){this._defaultPrevented=!0}var Sn=function(t){function e(){t.call(this),this._points=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._points=[]},e.prototype.show=function(t,e){var r=[].concat(t);this.hide();for(var i=0;i<r.length;i++){var o=r[i];o&&o.toggleHighlight&&o.hasHighlight()&&(this.togglePointHighlight(o,!0,e),this._points.push(o))}},e.prototype.togglePointHighlight=function(t,e,r){var i=(t.options.highlight||{}).toggle;if(i){var o={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:On,visual:t.highlightVisual(),show:e};i(o),o._defaultPrevented||t.toggleHighlight(e,r)}else t.toggleHighlight(e,r)},e.prototype.hide=function(){for(var t=this._points;t.length;)this.togglePointHighlight(t.pop(),!1)},e.prototype.isHighlighted=function(t){for(var e=this._points,r=0;r<e.length;r++){if(t===e[r])return!0}return!1},e}(S.Class);function Pn(t,e){var r=(e||"").toLowerCase(),i=t.event;return"none"===r&&!(i.ctrlKey||i.shiftKey||i.altKey)||i[r+"Key"]}function An(t){for(var e={},r=0;r<t.length;r++){var i=t[r];i.axis.options.name&&(e[i.axis.options.name]={min:i.range.min,max:i.range.max})}return e}var Cn=function(t){function e(e,r){t.call(this),this.plotArea=e,this.options=E({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.start=function(t){return this._active=Pn(t,this.options.key),this._active},e.prototype.move=function(t){if(this._active){var e=this.axisRanges=this._panAxes(t,m).concat(this._panAxes(t,x));if(e.length)return this.axisRanges=e,An(e)}},e.prototype.end=function(){var t=this._active;return this._active=!1,t},e.prototype.pan=function(){var t=this.plotArea,e=this.axisRanges;if(e.length){for(var r=0;r<e.length;r++){var i=e[r];t.updateAxisOptions(i.axis,i.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var r=this.plotArea,i=-t[e].delta,o=(this.options.lock||"").toLowerCase(),n=[];if(0!==i&&(o||"").toLowerCase()!==e)for(var s=r.axes,a=0;a<s.length;a++){var p=s[a];if(e===m&&!p.options.vertical||e===x&&p.options.vertical){var l=p.pan(i);l&&(l.limitRange=!0,n.push({axis:p,range:l}))}}return n},e}(S.Class);Cn.prototype.options={key:"none",lock:"none"};var kn=Cn,jn=function(t){function e(e,r){t.call(this),this.chart=e,this.options=E({},this.options,r),this.createElement()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElement=function(){var t=this._marquee=document.createElement("div");t.className="k-marquee";var e=document.createElement("div");e.className="k-marquee-color",t.appendChild(e)},e.prototype.removeElement=function(){this._marquee.parentNode&&this._marquee.parentNode.removeChild(this._marquee)},e.prototype.setStyles=function(t){V(this._marquee,t)},e.prototype.start=function(t){if(Pn(t,this.options.key)){var e=this.chart,r=e._eventCoordinates(t),i=this._zoomPane=e._plotArea.paneByPoint(r),o=i?i.chartsBox().clone():null;if(i&&o){var n=this._elementOffset();return o.translate(n.left,n.top),this._zoomPaneClipBox=o,document.body.appendChild(this._marquee),this.setStyles({left:t.pageX+1,top:t.pageY+1,width:0,height:0}),!0}}return!1},e.prototype._elementOffset=function(){var t=this.chart.element,e=V(t,["paddingLeft","paddingTop"]),r=e.paddingLeft,i=e.paddingTop,o=_t(t);return{left:r+o.left,top:i+o.top}},e.prototype.move=function(t){this._zoomPane&&this.setStyles(this._selectionPosition(t))},e.prototype.end=function(t){if(this._zoomPane){var e=this._elementOffset(),r=this._selectionPosition(t);r.left-=e.left,r.top-=e.top;var i={x:r.left,y:r.top},o={x:r.left+r.width,y:r.top+r.height};return this._updateAxisRanges(i,o),this.removeElement(),delete this._zoomPane,An(this.axisRanges)}},e.prototype.zoom=function(){var t=this.axisRanges;if(t&&t.length){for(var e=this.chart._plotArea,r=0;r<t.length;r++){var i=t[r];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){this.removeElement(),delete this._marquee,delete this.chart},e.prototype._updateAxisRanges=function(t,e){for(var r=(this.options.lock||"").toLowerCase(),i=[],o=this._zoomPane.axes,n=0;n<o.length;n++){var s=o[n],a=s.options.vertical;if((r!==m||a)&&(r!==x||!a)&&xt(s.axisIndex)){var p=s.pointsRange(t,e);p&&i.push({axis:s,range:p})}}this.axisRanges=i},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,r={x:t.x.startLocation,y:t.y.startLocation},i=t.x.location,o=t.y.location,n=(this.options.lock||"").toLowerCase(),s=Math.min(r.x,i),a=Math.min(r.y,o),p=Math.abs(r.x-i),l=Math.abs(r.y-o);return n===m&&(s=e.x1,p=e.width()),n===x&&(a=e.y1,l=e.height()),i>e.x2&&(p=e.x2-r.x),i<e.x1&&(p=r.x-e.x1),o>e.y2&&(l=e.y2-r.y),o<e.y1&&(l=r.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:p,height:l}},e}(S.Class);jn.prototype.options={key:"shift",lock:"none"};var Mn=jn,Tn=function(t){function e(e,r){t.call(this),this.chart=e,this.options=E({},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t){for(var e=(this.options.lock||"").toLowerCase(),r=[],i=this.chart._plotArea.axes,o=0;o<i.length;o++){var n=i[o],s=n.options.vertical;if((e!==m||s)&&(e!==x||!s)&&n.zoomRange){var a=n.zoomRange(-t);a&&r.push({axis:n,range:a})}}return this.axisRanges=r,An(r)},e.prototype.zoom=function(){var t=this.axisRanges,e=this.chart._plotArea;if(t&&t.length&&e.updateAxisOptions){for(var r=0;r<t.length;r++){var i=t[r];e.updateAxisOptions(i.axis,i.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(S.Class),En=function(t){function e(e,r){t.call(this,e),this.chartService=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.children,e=this.options,r=e.vertical;this.visual=new S.drawing.Layout(null,{spacing:r?0:e.spacing,lineSpacing:r?e.spacing:0,orientation:r?"vertical":"horizontal",reverse:e.rtl,alignItems:r?"start":"center"});for(var i=0;i<t.length;i++){var o=t[i];o.reflow(new $t),o.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?me(e):new $t},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(oe),Rn=function(t){function e(e){t.call(this,e),this.createContainer(),e.rtl?(this.createLabel(),this.createMarker()):(this.createMarker(),this.createLabel())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainer=function(){this.container=new de({vertical:!1,wrap:!1,align:a,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new pe(this.markerOptions()))},e.prototype.markerOptions=function(){var t=this.options,e=t.markerColor;return E({},t.markers,{background:e,border:{color:e}})},e.prototype.createLabel=function(){var t=this.options,e=E({},t.labels);this.container.append(new be(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},r=this._itemOverlay=S.drawing.Path.fromRect(this.container.box.toRect(),{fill:{color:g,opacity:0},stroke:null,cursor:e.style||e});this.appendVisual(r)},e.prototype.click=function(t,e){var r=this.eventArgs(e);!t.trigger("legendItemClick",r)&&e&&"contextmenu"===e.type&&e.preventDefault()},e.prototype.over=function(t,e){var r=this.eventArgs(e);return t.trigger("legendItemHover",r)||t._legendItemHover(r.seriesIndex,r.pointIndex),!0},e.prototype.out=function(t,e){t._unsetActivePoint(),t.trigger("legendItemLeave",this.eventArgs(e))},e.prototype.eventArgs=function(t){var e=this.options;return{element:Ot(t),text:e.text,series:e.series,seriesIndex:e.series.index,pointIndex:e.pointIndex}},e.prototype.renderVisual=function(){var e=this,r=this.options,i=r.visual;i?(this.visual=i({active:r.active,series:r.series,sender:this.getSender(),pointIndex:r.pointIndex,options:{markers:this.markerOptions(),labels:r.labels},createVisual:function(){e.createVisual(),e.renderChildren(),e.renderComplete();var t=e.visual;return delete e.visual,t}}),this.addVisual()):t.prototype.renderVisual.call(this)},e}(se),In=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,e),this.chartService=r,ct(this.options.position,[v,d,s,h,"custom"])||(this.options.position=d),this.createContainers(),this.createLegendTitle(e.title),this.createItems()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createContainers=function(){var t=this.options,e=t.position,r=t.align,i=e,o=a;"custom"===e?i=h:ct(e,[v,s])?(i="start"===r?h:"end"===r?d:a,o=e):r&&("start"===r?o=v:"end"===r&&(o=s)),this.container=new se({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:o,align:i,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new se({vAlign:o,align:i,zIndex:t.zIndex,shrinkToFit:!0}):this.itemsContainer=this.container,this.append(this.container)},e.prototype.createItems=function(){var t=this.getService(),e=this.options,r=this.isVertical(),i=new En({vertical:r,spacing:e.spacing,rtl:t.rtl},t),o=e.items;e.reverse&&(o=o.slice(0).reverse());for(var n=o.length,s=0;s<n;s++){var a=o[s];i.append(new Rn(E({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}i.render(),this.itemsContainer.append(i)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,r=t.position;return"custom"===r&&"horizontal"!==e||(xt(e)?"horizontal"!==e:ct(r,[h,d]))},e.prototype.hasItems=function(){return this.container.children[0].children.length>0},e.prototype.reflow=function(t){var e=this.options,r=t.clone();this.hasItems()?("custom"===e.position?(this.containerCustomReflow(r),this.box=r):this.containerReflow(r),this.hasTitle()&&this.title.reflow(new $t(this.container.box.x1,this.title.box.y1,this.container.box.x2,this.title.box.y2))):this.box=r},e.prototype.containerReflow=function(t){var e=this.options,r=this.container,i=e.position,o=e.width,n=e.height,a=i===v||i===s?m:x,p=this.isVertical(),l=t.clone(),c=t.clone();i!==h&&i!==d||(c.y1=l.y1=0),p&&n?(c.y2=c.y1+n,c.align(l,x,r.options.vAlign)):!p&&o&&(c.x2=c.x1+o,c.align(l,m,r.options.align)),r.reflow(c);var u=(c=r.box).clone();(e.offsetX||e.offsetY)&&(c.translate(e.offsetX,e.offsetY),r.reflow(c)),u[a+1]=t[a+1],u[a+2]=t[a+2],this.box=u},e.prototype.containerCustomReflow=function(t){var e=this.options,r=this.container,i=e.offsetX,o=e.offsetY,n=e.width,s=e.height,a=this.isVertical(),p=t.clone();a&&s?p.y2=p.y1+s:!a&&n&&(p.x2=p.x1+n),r.reflow(p),p=r.box,r.reflow(new $t(i,o,i+p.width(),o+p.height()))},e.prototype.renderVisual=function(){this.hasItems()&&t.prototype.renderVisual.call(this)},e.prototype.createLegendTitle=function(t){var e=E({},{color:n,position:v,align:a},t),r=e.text;if(t&&!1!==t.visible){if(xt(e)&&e.visible){var i=rt(e);i?r=i({text:r}):e.format&&(r=this.chartService.format.auto(e.format,r))}this.title=new be(r,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new de({vertical:!0,wrap:!1}),this.container.append(this.layout)},e.prototype.hasTitle=function(){return Boolean(this.options.title&&!1!==this.options.title.visible)},e.prototype.appendTitleLayoutContent=function(){this.options.title.position===s?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(oe);It(In,{position:d,items:[],offsetX:0,offsetY:0,margin:z(5),padding:z(5),border:{color:n,width:0},item:{cursor:"pointer",spacing:6},spacing:6,background:"",zIndex:1,markers:{border:{width:0},width:15,height:3,type:"rect",align:h,vAlign:a}});var Bn=In,Ln=function(t){function e(){t.call(this),this._registry=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.register=function(t,e){this._registry.push({type:t,seriesTypes:e})},e.prototype.create=function(t,e,r){for(var i,o=this._registry,n=o[0],s=0;s<o.length;s++){var a=o[s];if((i=Ro(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(i,e,r)},e}(S.Class);Ln.current=new Ln;var Vn=Ln;function zn(t){var e=document.createElement("div");return t&&(e.className=t),e}function Dn(t){for(var e=t;e&&!at(e,"k-handle");)e=e.parentNode;return e}var Nn=function(t){function e(e,r,i,o){t.call(this);var n=e.element;this.options=E({},this.options,i),this.chart=e,this.observer=o,this.chartElement=n,this.categoryAxis=r,this._dateAxis=this.categoryAxis instanceof ar,this.initOptions(),this.visible=this.options.visible&&n.offsetHeight,this.visible&&(this.createElements(),this.set(this._index(this.options.from),this._index(this.options.to)),this.bindEvents())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.onPane=function(t){return this.categoryAxis.pane===t},e.prototype.createElements=function(){var t=this.options,e=this.wrapper=zn("k-selector");V(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var r=this.selection=zn("k-selection");this.leftMask=zn("k-mask"),this.rightMask=zn("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(r),r.appendChild(zn("k-selection-bg"));var i=this.leftHandle=zn("k-handle k-left-handle"),o=this.rightHandle=zn("k-handle k-right-handle");i.appendChild(zn()),o.appendChild(zn()),r.appendChild(i),r.appendChild(o),this.chartElement.appendChild(e);var n=V(r,["borderLeftWidth","borderRightWidth","height"]),s=V(i,"height").height,a=V(o,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},V(i,{top:(n.height-s)/2}),V(o,{top:(n.height-a)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),mt(this.wrapper,((t={})[ii]=this._mousewheelHandler,t))),this._domEvents=Q.create(this.wrapper,{stopPropagation:!0,start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),press:this._press.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)})},e.prototype.initOptions=function(){var t=this.options,e=this.categoryAxis.pane.chartsBox(),r=this.chart.chartService.intl;this._dateAxis&&E(t,{min:Ye(r,t.min),max:Ye(r,t.max),from:Ye(r,t.from),to:Ye(r,t.to)});var i=V(this.chartElement,["paddingLeft","paddingTop"]),o=i.paddingLeft,n=i.paddingTop;this.options=E({},{width:e.width(),height:e.height()+.1,padding:{left:o,top:n},offset:{left:e.x1+o,top:e.y1+n},from:t.min,to:t.max},t)},e.prototype.destroy=function(){var t;this._domEvents&&(this._domEvents.destroy(),delete this._domEvents),clearTimeout(this._mwTimeout),this._state=null,this.wrapper&&(this._mousewheelHandler&&(Mt(this.wrapper,((t={})[ii]=this._mousewheelHandler,t)),this._mousewheelHandler=null),this.chartElement.removeChild(this.wrapper),this.wrapper=null)},e.prototype._rangeEventArgs=function(t){return{axis:this.categoryAxis.options,from:this._value(t.from),to:this._value(t.to)}},e.prototype._start=function(t){var e=this.options,r=Ot(t);if(!this._state&&r){this.chart._unsetActivePoint(),this._state={moveTarget:Dn(r)||r,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var i=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",i)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Dn(Ot(t)))&&_(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,r=this.options,i=this.categoryAxis,o=e.range,n=e.moveTarget,s=i.options.reverse,a=this._index(r.from),p=this._index(r.to),l=this._index(r.min),c=this._index(r.max),h=e.startLocation-t.x.location,u=o.from,f=o.to,d=o.to-o.from,v=V(this.wrapper,"width").width/(i.categoriesCount()-1),y=Math.round(h/v)*(s?-1:1);if(n){var g=at(n,"k-left-handle"),m=at(n,"k-right-handle");at(n,"k-selection k-selection-bg")?(o.from=Math.min(Math.max(l,a-y),c-d),o.to=Math.min(o.from+d,c)):g&&!s||m&&s?(o.from=Math.min(Math.max(l,a-y),c-1),o.to=Math.max(o.from+1,o.to)):(g&&s||m&&!s)&&(o.to=Math.min(Math.max(l+1,p-y),c),o.from=Math.min(o.to-1,o.from)),o.from===u&&o.to===f||(this.move(o.from,o.to),this.trigger("select",this._rangeEventArgs(o)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&O(t,"k-handle-active");var e=this._state.range;this.set(e.from,e.to),this.trigger("selectEnd",this._rangeEventArgs(e)),delete this._state}},e.prototype._tap=function(t){var e=this.options,r=this.categoryAxis,i=this.chart._eventCoordinates(t),o=r.pointCategoryIndex(new qt(i.x,r.box.y1)),n=this._index(e.from),s=this._index(e.to),a=this._index(e.min),p=this._index(e.max),l=s-n,c=n+l/2,h={},u=3===t.event.which,f=Math.round(c-o);this._state||u||(this.chart._unsetActivePoint(),r.options.justified||f--,h.from=Math.min(Math.max(a,n-f),p-l),h.to=Math.min(h.from+l,p),this._start(t),this._state&&(this._state.range=h,this.trigger("select",this._rangeEventArgs(h)),this._end()))},e.prototype._mousewheel=function(t){var e=this,r=vt(t);if(this._start({target:this.selection}),this._state){var i=this._state.range;t.preventDefault(),t.stopPropagation(),Math.abs(r)>1&&(r*=3),this.options.mousewheel.reverse&&(r*=-1),this.expand(r)&&this.trigger("select",{axis:this.categoryAxis.options,delta:r,originalEvent:t,from:this._value(i.from),to:this._value(i.to)}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._end()}),150)}},e.prototype._gesturestart=function(t){var e=this.options;this._state={range:{from:this._index(e.from),to:this._index(e.to)}};var r=this._rangeEventArgs(this._state.range);this.trigger("selectStart",r)?this._state=null:t.preventDefault()},e.prototype._gestureend=function(){this._state&&(this.trigger("selectEnd",this._rangeEventArgs(this._state.range)),delete this._state)},e.prototype._gesturechange=function(t){var e=this.chart,r=this._state,i=this.options,o=this.categoryAxis,n=r.range,s=e._toModelCoordinates(t.touches[0].x.location).x,a=e._toModelCoordinates(t.touches[1].x.location).x,p=Math.min(s,a),l=Math.max(s,a);t.preventDefault(),n.from=o.pointCategoryIndex(new qt(p))||i.min,n.to=o.pointCategoryIndex(new qt(l))||i.max,this.move(n.from,n.to),this.trigger("select",this._rangeEventArgs(n))},e.prototype._index=function(t){var e=t;return t instanceof Date&&(e=this.categoryAxis.categoryIndex(t)),e},e.prototype._value=function(t){var e=t;return this._dateAxis&&(e=this.categoryAxis.categoryAt(t))>this.options.max&&(e=this.options.max),e},e.prototype._slot=function(t){var e=this.categoryAxis,r=this._index(t);return e.getSlot(r,r,!0)},e.prototype.move=function(t,e){var r=this.options,i=this.categoryAxis.options.reverse,o=r.offset,n=r.padding,s=r.selection.border,a=i?e:t,p=i?t:e,l="x"+(i?2:1),c=this._slot(a),h=jt(c[l]-o.left+n.left);V(this.leftMask,{width:h}),V(this.selection,{left:h}),c=this._slot(p);var u=jt(r.width-(c[l]-o.left+n.left));V(this.rightMask,{width:u});var f=r.width-u;f!==r.width&&(f+=s.right),V(this.rightMask,{left:f}),V(this.selection,{width:Math.max(r.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var r=this.options,i=this._index(r.min),o=this._index(r.max),n=At(this._index(t),i,o),s=At(this._index(e),n+1,o);r.visible&&this.move(n,s),r.from=this._value(n),r.to=this._value(s)},e.prototype.expand=function(t){var e=this.options,r=this._index(e.min),i=this._index(e.max),o=e.mousewheel.zoom,n=this._index(e.from),s=this._index(e.to),a={from:n,to:s},p=E({},a);if(this._state&&(a=this._state.range),o!==d&&(a.from=At(At(n-t,0,s-1),r,i)),o!==h&&(a.to=At(At(s+t,a.from+1,i),r,i)),a.from!==p.from||a.to!==p.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(S.Class);It(Nn,{visible:!0,mousewheel:{zoom:"both"},min:f,max:u});var Fn=Nn,Un=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var r=E({},this.options,e.options.tooltip),i=e.tooltipAnchor();i?(this._current=e,t.prototype.show.call(this,{point:e,anchor:i},r,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(xo),Hn=function(t){function e(e,r){t.call(this,e.chartService,r),this.plotArea=e,this.formatService=e.chartService.format}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.showAt=function(t,e){var r=st(t,(function(t){var e=t.series.tooltip;return!(e&&!1===e.visible)}));if(r.length>0){var i=r[0],o=this.plotArea.categoryAxis.getSlot(i.categoryIx),n=e?this._slotAnchor(e,o):this._defaultAnchor(i,o);this.show({anchor:n,shared:!0,points:t,category:i.category,categoryText:this.formatService.auto(this.options.categoryFormat,i.category),series:this.plotArea.series},this.options)}},e.prototype._slotAnchor=function(t,e){return this.plotArea.categoryAxis.options.vertical||(t.x=e.center().x),{point:t,align:{horizontal:"left",vertical:"center"}}},e.prototype._defaultAnchor=function(t,e){var r=t.owner.pane.chartsBox(),i=this.plotArea.categoryAxis.options.vertical,o=r.center(),n=e.center();return{point:i?new qt(o.x,n.y):new qt(n.x,o.y),align:{horizontal:"center",vertical:"center"}}},e}(xo);It(Hn,{categoryFormat:"{0:d}"});var Gn=Hn,Wn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.element,e=this.options;if(t.bbox()){this.origin=e.origin;var r=e.vertical?x:m,i=this.fromScale=new S.geometry.Point(1,1);i[r]=qr,t.transform(S.geometry.transform().scale(i.x,i.y))}else this.abort()},e.prototype.step=function(t){var e=ht(this.fromScale.x,1,t),r=ht(this.fromScale.y,1,t);this.element.transform(S.geometry.transform().scale(e,r,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(S.drawing.Animation);It(Wn,{duration:600}),S.drawing.AnimationFactory.current.register($r,Wn);var Kn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.center=this.element.bbox().center();this.element.transform(S.geometry.transform().scale(qr,qr,t))},e.prototype.step=function(t){this.element.transform(S.geometry.transform().scale(t,t,this.center))},e}(S.drawing.Animation);It(Kn,{easing:"easeOutElastic"}),S.drawing.AnimationFactory.current.register("bubble",Kn);var Xn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(S.drawing.Animation);It(Xn,{duration:200,easing:"linear"}),S.drawing.AnimationFactory.current.register("fadeIn",Xn);var Yn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this.element.transform(S.geometry.transform().scale(qr,qr,this.options.center))},e.prototype.step=function(t){this.element.transform(S.geometry.transform().scale(t,t,this.options.center))},e}(S.drawing.Animation);It(Yn,{easing:"easeOutElastic",duration:600}),S.drawing.AnimationFactory.current.register(ti,Yn);var qn=Yn,Zn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,r){return new("smooth"===e.style?_i:yi)(t,e,r)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Zr){var r={x:t.x,y:t.y};return oo(r.x)||(r.x=0),oo(r.y)||(r.y=0),r}},e}(so);E(Zn.prototype,wi);var $n=Zn,Qn=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={},this.xAxisRangeTracker=new Ii,this.yAxisRangeTracker=new Ii},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],o=e[i.options.name||"default"]||[];this.addToLegend(o);var n=this.filterVisibleSeries(o);n&&(this.createScatterChart(Ro(n,"scatter"),i),this.createScatterLineChart(Ro(n,"scatterLine"),i),this.createBubbleChart(Ro(n,"bubble"),i))}this.createAxes(t)},e.prototype.appendChart=function(e,r){this.xAxisRangeTracker.update(e.xAxisRanges),this.yAxisRangeTracker.update(e.yAxisRanges),t.prototype.appendChart.call(this,e,r)},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?(this.yAxisRangeTracker.reset(r),delete this.namedYAxes[r]):(this.xAxisRangeTracker.reset(r),delete this.namedXAxes[r]),e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,i=st([].concat(e.xAxis),(function(t){return t.name===r}))[0],o=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===o}))[0],s=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new so(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new $n(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new co(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,r){for(var i,o=t.name,n=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=E({reverse:!e&&this.chartService.rtl},t,{vertical:e}),p=Eo(a.type,"log"),c=s.query(),h=p?{min:.1,max:1}:{min:0,max:1},u=s.query(o)||c||h,f=[a.min,a.max],d=this.series,v=0;v<d.length;v++){var y=d[v],g=y[e?"yAxis":"xAxis"];if(g===a.name||0===r&&!g){var m=Gr.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===r&&c&&(u.min=Math.min(u.min,c.min),u.max=Math.max(u.max,c.max));for(var x=0;x<f.length;x++)if(f[x]instanceof Date){i=!0;break}var b=new(Eo(a.type,l)||!a.type&&i?yr:p?br:dr)(u.min,u.max,a,this.chartService);if(b.axisIndex=r,o){if(n[o])throw new Error((e?"Y":"X")+" axis with name "+o+" is already defined");n[o]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),i=[],o=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){ct(this.findPane(r[s].pane),t)&&i.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<o.length;a++){ct(this.findPane(o[a].pane),t)&&n.push(this.createXYAxis(o[a],!0,a))}this.axisX=this.axisX||i[0],this.axisY=this.axisY||n[0]},e.prototype._dispatchEvent=function(t,e,r){for(var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l],h=c.options.vertical?p:a,u=c.getValue(o);null!==u&&h.push(u)}a.length>0&&p.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,x:Lo(a),y:Lo(p)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,i=this.groupAxes(this.panes),o=(r?i.y:i.x).indexOf(t);Jn(this.options,o,r,e),Jn(this.originalOptions,o,r,e)},e}(Ko);function Jn(t,e,r,i){E([].concat(r?t.yAxis:t.xAxis)[e],i)}It(Qn,{xAxis:{},yAxis:{}}),E(Qn.prototype,Xo);var ts=Qn,es=function(t){function e(e,r,i){t.call(this,i),this.value=e,this.sector=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){var t=this.options.labels,e=this.owner.chartService,r=this.value;if(!this._rendered&&!1!==this.visible){this._rendered=!0;var i=rt(t),o=this.pointData();if(i?r=i(o):t.format&&(r=e.format.auto(t.format,r)),t.visible&&(r||0===r)){if(t.position===a||"insideEnd"===t.position)t.color||(t.color=Ft(this.options.color)),t.background||(t.background=this.options.color);else{var n=e.theme.seriesDefaults.labels;t.color=t.color||n.color,t.background=t.background||n.background}this.label=new be(r,E({},t,{align:a,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),o),this.append(this.label)}}},e.prototype.reflow=function(t){this.render(),this.box=t,this.reflowLabel()},e.prototype.reflowLabel=function(){var t=this.options.labels,e=this.label,r=this.sector.clone(),i=t.distance,o=r.middle();if(e){var n,s=e.box.height(),p=e.box.width();if(t.position===a)r.radius=Math.abs((r.radius-s)/2)+s,n=r.point(o),e.reflow(new $t(n.x,n.y-s/2,n.x,n.y));else if("insideEnd"===t.position)r.radius=r.radius-s/2,n=r.point(o),e.reflow(new $t(n.x,n.y-s/2,n.x,n.y));else{var l;(n=r.clone().expand(i).point(o)).x>=r.center.x?(l=n.x+p,e.orientation=d):(l=n.x-p,e.orientation=h),e.reflow(new $t(l,n.y-s,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,r=this.sector,i=this.options;if(t.prototype.createVisual.call(this),this.value)if(i.visual){var o=(r.startAngle+180)%360,n=i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new S.geometry.Point(r.center.x,r.center.y),radius:r.radius,innerRadius:r.innerRadius,startAngle:o,endAngle:o+r.angle,options:i,sender:this.getSender(),createVisual:function(){var t=new S.drawing.Group;return e.createSegmentVisual(t),t}});n&&this.visual.append(n)}else this.createSegmentVisual(this.visual)},e.prototype.createSegmentVisual=function(t){var e=this.sector,r=this.options,i=r.border||{},o=i.width>0?{stroke:{color:i.color,width:i.width,opacity:i.opacity,dashType:i.dashType}}:{},n=r.color,s={color:n,opacity:r.opacity},a=this.createSegment(e,E({fill:s,stroke:{opacity:r.opacity},zIndex:r.zIndex},o));t.append(a),Vi(r)&&t.append(this.createGradientOverlay(a,{baseColor:n,fallbackFill:s},E({center:[e.center.x,e.center.y],innerRadius:e.innerRadius,radius:e.radius,userSpace:!0},r.overlay)))},e.prototype.createSegment=function(t,e){return e.singleSegment?new S.drawing.Circle(new S.geometry.Circle(new S.geometry.Point(t.center.x,t.center.y),t.radius),e):re.current.createRing(t,e)},e.prototype.createAnimation=function(){var e=this.options,r=this.sector.center;E(e,{animation:{center:[r.x,r.y],delay:this.animationDelay}}),t.prototype.createAnimation.call(this)},e.prototype.createHighlight=function(t){var e=this.options.highlight||{},r=e.border||{};return this.createSegment(this.sector,E({},t,{fill:{color:e.color,opacity:e.opacity},stroke:{opacity:r.opacity,width:r.width,color:r.color}}))},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=this.sector;return{options:this.options,radius:t.radius,innerRadius:t.innerRadius,center:new S.geometry.Point(t.center.x,t.center.y),startAngle:t.startAngle,endAngle:t.angle+t.startAngle,visual:this.visual}},e.prototype.tooltipAnchor=function(){var t=this.sector.clone().expand(5),e=t.middle();return{point:t.point(e),align:os(e+180)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.pointData=function(){return{dataItem:this.dataItem,category:this.category,value:this.value,series:this.series,percentage:this.percentage}},e}(oe),rs=jt(kt(30),10),is=jt(kt(60),10);function os(t){var e=kt(t),r=jt(Math.sin(e),10),i=jt(Math.cos(e),10);return{horizontal:Math.abs(r)>is?a:i<0?d:h,vertical:Math.abs(r)<rs?a:r<0?s:v}}It(es,{color:g,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:z(.5),align:p,zIndex:1,position:"outsideEnd"},animation:{type:ti},highlight:{visible:!0,border:{width:1}},visible:!0}),E(es.prototype,hi);var ns=es,ss={createLegendItem:function(t,e,r){var i=this.options.legend||{},o=i.labels||{},n=i.inactiveItems||{},s=n.labels||{};if(r&&!1!==r.visibleInLegend){var a,p,l=!1!==r.visible,c=l?rt(o):rt(s)||rt(o),h=r.category;c&&(h=c({text:h,series:r.series,dataItem:r.dataItem,percentage:r.percentage,value:t})),l?(a={},p=e.color):(a={color:s.color,font:s.font},p=(n.markers||{}).color),oo(h)&&""!==h&&this.legendItems.push({active:l,pointIndex:r.index,text:h,series:r.series,markerColor:p,labels:a})}}},as=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this.points=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.traverseDataPoints(this.addValue.bind(this))},e.prototype.traverseDataPoints=function(t){var e=this.options,r=this.plotArea.options.seriesColors;void 0===r&&(r=[]);for(var i=r.length,o=e.series,n=o.length,s=0;s<n;s++){var p=o[s],l=p.data,c=To(p),h=c.total,u=c.points,f=c.count,d=360/h,v=void 0;isFinite(d)||(v=360/f);var y=void 0;y=xt(p.startAngle)?p.startAngle:e.startAngle,s!==n-1&&"outsideEnd"===p.labels.position&&(p.labels.position=a);for(var g=0;g<u.length;g++){var m=u[g];if(m){var x=m.fields,b=m.value,_=m.visible,w=0!==b?v||b*d:0,O=1!==l.length&&Boolean(x.explode);M(p.color)||(p.color=x.color||r[g%i]),t(m.valueFields.value,new Jt(null,0,0,y,w),{owner:this,category:xt(x.category)?x.category:"",index:g,series:p,seriesIx:s,dataItem:l[g],percentage:0!==h?b/h:0,explode:O,visibleInLegend:x.visibleInLegend,visible:_,zIndex:n-s,animationDelay:this.animationDelay(g,s,n)}),!1!==_&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,r){var i=r.series;ai(t,{value:e,series:i,dataItem:r.dataItem,category:r.category,percentage:r.percentage},{defaults:i._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,r){var i=E({},r.series,{index:r.index});if(this.evalSegmentOptions(i,t,r),this.createLegendItem(t,i,r),!1!==r.visible){var o=new ns(t,e,i);Object.assign(o,r),this.append(o),this.points.push(o)}},e.prototype.reflow=function(t){var e=this.options,r=this.points,i=this.seriesConfigs;void 0===i&&(i=[]);var o=r.length,n=t.clone(),s=Math.min(n.width(),n.height()),a=s/2,p=s-.85*s,l=new $t(n.x1,n.y1,n.x1+s,n.y1+s),c=l.center(),h=n.center(),u=e.series.length,f=[],v=[],y=Tt(e.padding,p);this.targetBox=t,y=y>a-5?a-5:y,l.translate(h.x-c.x,h.y-c.y);for(var g=a-y,m=new qt(g+l.x1+y,g+l.y1+y),x=0;x<o;x++){var b=r[x],_=b.sector,w=b.seriesIx;if(_.radius=g,_.center=m,i.length){var O=i[w];_.innerRadius=O.innerRadius,_.radius=O.radius}w===u-1&&b.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),b.reflow(l);var S=b.label;S&&"outsideEnd"===S.options.position&&w===u-1&&(S.orientation===d?v.push(S):f.push(S))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),v.length>0&&(v.sort(this.labelComparator(!1)),this.rightLabelsReflow(v)),this.box=l},e.prototype.leftLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.rightLabelsReflow=function(t){var e=this.distanceBetweenLabels(t);this.distributeLabels(e,t)},e.prototype.distanceBetweenLabels=function(t){var e=Pt(this.points),r=e.sector,i=t.length-1,o=r.radius+e.options.labels.distance,n=[],s=t[0].box,a=jt(s.y1-(r.center.y-o-s.height()-s.height()/2));n.push(a);for(var p=0;p<i;p++){var l=t[p+1].box;s=t[p].box,a=jt(l.y1-s.y2),n.push(a)}return a=jt(r.center.y+o-t[i].box.y2-t[i].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var r,i,o,n=t.length,s=0;s<n;s++)for(o=-t[s],r=i=s;o>0&&(r>=0||i<n);)o=this._takeDistance(t,s,--r,o),o=this._takeDistance(t,s,++i,o);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,r,i){var o=i;if(t[r]>0){var n=Math.min(t[r],o);o-=n,t[r]-=n,t[e]+=n}return o},e.prototype.reflowLabels=function(t,e){var r,i=Pt(this.points),o=i.sector,n=i.options.labels,s=e.length,a=n.distance,l=o.center.y-(o.radius+a)-e[0].box.height();t[0]+=2;for(var c=0;c<s;c++){var h=e[c],u=h.box;l+=t[c],r=this.hAlignLabel(u.x2,o.clone().expand(a),l,l+u.height(),h.orientation===d),h.orientation===d?(n.align!==p&&(r=o.radius+o.center.x+a),h.reflow(new $t(r+u.width(),l,r,l))):(n.align!==p&&(r=o.center.x-o.radius-a),h.reflow(new $t(r-u.width(),l,r,l))),l+=u.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,r=this.points,i=r.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var o=0;o<i;o++){var n=r[o],s=n.sector,a=n.label,p=s.middle(),l=(n.options.connectors||{}).color||e.color;if(a){var c=new S.drawing.Path({stroke:{color:l,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===a.options.position){var h=a.box,u=s.center,f=s.point(p),v=new qt(h.x1,h.center().y),y=void 0,g=void 0,m=void 0;f=s.clone().expand(e.padding).point(p),c.moveTo(f.x,f.y),a.orientation===d?(m=ps(u,f,v,g=new qt(h.x1-e.padding,h.center().y)),v=new qt(g.x-4,g.y),(m=m||v).x=Math.min(m.x,v.x),this.pointInCircle(m,s.center,s.radius+4)||m.x<s.center.x?(y=s.center.x+s.radius+4,n.options.labels.align!==Qr?y<v.x?c.lineTo(y,f.y):c.lineTo(f.x+8,f.y):c.lineTo(y,f.y),c.lineTo(v.x,g.y)):(m.y=g.y,c.lineTo(m.x,m.y))):(m=ps(u,f,v,g=new qt(h.x2+e.padding,h.center().y)),v=new qt(g.x+4,g.y),(m=m||v).x=Math.max(m.x,v.x),this.pointInCircle(m,s.center,s.radius+4)||m.x>s.center.x?(y=s.center.x-s.radius-4,n.options.labels.align!==Qr?y>v.x?c.lineTo(y,f.y):c.lineTo(f.x-8,f.y):c.lineTo(y,f.y),c.lineTo(v.x,g.y)):(m.y=g.y,c.lineTo(m.x,m.y))),c.lineTo(g.x,g.y),this._connectorLines.push(c),this.visual.append(c)}}}},e.prototype.renderVisual=function(){if(t.prototype.renderVisual.call(this),Lt(this.options.series,(function(t){return t.autoFit}))){var e=this.targetBox,r=this.box.center(),i=this.visual.bbox();if(!i)return;var o=i.bottomRight(),n=Math.min((r.y-e.y1)/(r.y-i.origin.y),(e.y2-r.y)/(o.y-r.y),(r.x-e.x1)/(r.x-i.origin.x),(e.x2-r.x)/(o.x-r.x));n<1&&this.visual.transform(S.geometry.transform().scale(n,n,[r.x,r.y]))}},e.prototype.labelComparator=function(t){var e=t?-1:1;return function(t,r){return((t.parent.sector.middle()+270)%360-(r.parent.sector.middle()+270)%360)*e}},e.prototype.hAlignLabel=function(t,e,r,i,o){var n=e.radius,s=e.center,a=s.x,p=s.y,l=Math.min(Math.abs(p-r),Math.abs(p-i));return l>n?t:a+Math.sqrt(n*n-l*l)*(o?1:-1)},e.prototype.pointInCircle=function(t,e,r){return Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)<Math.pow(r,2)},e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.animationDelay=function(t){return 70*t},e.prototype.stackRoot=function(){return this},e}(oe);function ps(t,e,r,i){var o,n=(i.x-r.x)*(t.y-r.y)-(i.y-r.y)*(t.x-r.x),s=(i.y-r.y)*(e.x-t.x)-(i.x-r.x)*(e.y-t.y);if(0!==s){var a=n/s;o=new qt(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return o}It(as,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),E(as.prototype,ss),as.prototype.isStackRoot=!0;var ls=as,cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],r=new ls(this,{series:t,padding:e.padding,startAngle:e.startAngle,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e.prototype.appendChart=function(e,r){t.prototype.appendChart.call(this,e,r),gt(this.options.legend.items,e.legendItems)},e}(Ko),hs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflowLabel=function(){var e=this.options.labels,r=this.label,i=this.sector.clone(),o=i.middle();if(r){var n=r.box.height();if(e.position===a){i.radius-=(i.radius-i.innerRadius)/2;var s=i.point(o);r.reflow(new $t(s.x,s.y-n/2,s.x,s.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return re.current.createRing(t,e)},e}(ns);It(hs,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:ti}}),E(hs.prototype,hi);var us=hs,fs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addValue=function(t,e,r){var i=E({},r.series,{index:r.index});if(this.evalSegmentOptions(i,t,r),this.createLegendItem(t,i,r),t&&!1!==r.visible){var o=new us(t,e,i);Object.assign(o,r),this.append(o),this.points.push(o)}},e.prototype.reflow=function(e){for(var r,i=this.options,o=e.clone(),n=Math.min(o.width(),o.height()),s=n/2,a=n-.85*n,p=i.series,l=p.length,c=Tt(i.padding,a),h=s-(c=c>s-5?s-5:c),u=0,f=0;f<l;f++){var d=p[f];0===f&&xt(d.holeSize)&&(r=d.holeSize,h-=d.holeSize),xt(d.size)?h-=d.size:u++,xt(d.margin)&&f!==l-1&&(h-=d.margin)}xt(r)||(h-=r=.75*((s-c)/(l+.75)));var v,y=r,g=0;this.seriesConfigs=[];for(var m=0;m<l;m++){var x=p[m];v=(y+=g)+Tt(x.size,h/u),this.seriesConfigs.push({innerRadius:y,radius:v}),g=x.margin||0,y=v}t.prototype.reflow.call(this,e)},e.prototype.animationDelay=function(t,e,r){return 50*t+600*(e+1)/(r+1)},e}(ls);It(fs,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var ds=fs,vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],r=new ds(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e}(cs),ys=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.valueAxisRangeTracker=new Ii},e.prototype.render=function(){this.addToLegend(this.series),this.createPolarAxis(),this.createCharts(),this.createValueAxis()},e.prototype.alignAxes=function(){var t=this.valueAxis,e=t.range(),r=t.options.reverse?e.max:e.min,i=t.getSlot(r),o=this.polarAxis.getSlot(0).center,n=t.box.translate(o.x-i.x1,o.y-i.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,r=this.valueAxisRangeTracker,i=r.query(),o=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===o.type?(t=Tr,e={min:.1,max:1}):(t=jr,e={min:0,max:1});var n=r.query(name)||i||e;n&&i&&(n.min=Math.min(n.min,i.min),n.max=Math.max(n.max,i.max));var s=new t(n.min,n.max,o,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,r=this.polarAxis,i=this.box,o=.15*Math.min(i.width(),i.height()),n=z(t.padding||{},o),s=i.clone().unpad(n),p=s.clone();p.y2=p.y1+Math.min(p.width(),p.height()),p.align(s,x,a);var l=p.clone().shrink(0,p.height()/2);r.reflow(p),e.reflow(l);var c=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:c})),this.axisBox=p,this.alignAxes(p)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Ko),gs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var r=t.center.y-e.y1,i=qt.onCircle(t.center,t.startAngle,r);return new $t(i.x,i.y,i.x,i.y)},e}(so);It(gs,{clip:!1});var ms=gs,xs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}($n);xs.prototype.pointSlot=ms.prototype.pointSlot,It(xs,{clip:!1});var bs=xs,_s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this._polarAxisCenter();t.lineTo(e.x,e.y)},e.prototype._polarAxisCenter=function(){return this.parent.plotArea.polarAxis.box.center()},e.prototype.strokeSegments=function(){var t=this._strokeSegments;if(!t){var e=this._polarAxisCenter(),r=new Rr(!1),i=this.points();i.push(e),(t=this._strokeSegments=r.process(i)).pop()}return t},e}(Ei),ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),r=new S.geometry.Segment([e.x,e.y]);t.segments.unshift(r),t.segments.push(r)},e}(ji);function Os(t,e){return t.value.x-e.value.x}var Ss=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r){return"smooth"===(e.line||{}).style?new _s(t,e,r):new ws(t,e,r)},e.prototype.createMissingValue=function(t,e){var r;return oo(t.x)&&"interpolate"!==e&&(r={x:t.x,y:t.y},e===Zr&&(r.y=0)),r},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zr},e.prototype._hasMissingValuesGap=function(){for(var t=this.options.series,e=0;e<t.length;e++)if("gap"===this.seriesMissingValues(t[e]))return!0},e.prototype.sortPoints=function(t){if(t.sort(Os),this._hasMissingValuesGap())for(var e=0;e<t.length;e++){var r=t[e];if(r)oo(r.value.y)||"gap"!==this.seriesMissingValues(r.series)||delete t[e]}return t},e}(bs),Ps=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Pr(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return E(t,{majorGridLines:{type:o},minorGridLines:{type:o}},this.options.yAxis)},e.prototype.createValueAxis=function(){t.prototype.createValueAxis.call(this),this.axisY=this.valueAxis},e.prototype.appendChart=function(t,e){this.valueAxisRangeTracker.update(t.yAxisRanges),Ko.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Ro(t,["polarLine"]),e),this.createScatterChart(Ro(t,["polarScatter"]),e),this.createAreaChart(Ro(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new bs(this,{series:t});this.appendChart(r,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var r=new ms(this,{series:t});this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Ss(this,{series:t});this.appendChart(r,e)}},e.prototype._dispatchEvent=function(t,e,r){var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.axisX.getValue(o),s=this.axisY.getValue(o);null!==n&&null!==s&&t.trigger(r,{element:Ot(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(ys);It(Ps,{xAxis:{},yAxis:{}}),E(Ps.prototype,Xo);var As=Ps;var Cs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointSlot=function(t,e){var r=t.center.y-e.y1,i=qt.onCircle(t.center,t.middle(),r);return new $t(i.x,i.y,i.x,i.y)},e.prototype.renderSegments=function(){if(t.prototype.renderSegments.call(this),this._segments&&this._segments.length>1)for(var e=function(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];e[i.seriesIx]=e[i.seriesIx]||[],e[i.seriesIx].push(i)}return e}(this._segments),r=0;r<e.length;r++){var i=e[r];if(i&&i.length>1){var o=i[0].linePoints[0],n=Pt(i),s=Pt(n.linePoints),a=0===o.categoryIx,p=s.categoryIx===s.categoriesCount-1;a&&p&&Pt(i).linePoints.push(o)}}},e.prototype.createSegment=function(t,e,r){var i=new("smooth"===e.style?_i:yi)(t,e,r),o=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==o||(i.options.closed=!0),i},e}(ki);It(Cs,{clip:!1,limitPoints:!1});var ks=Cs,js=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(Ei),Ms=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.fillToAxes=function(){},e}(ji),Ts=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createSegment=function(t,e,r,i){var o,n,s,a=this.options.isStacked,p=(e.line||{}).style;return a&&r>0&&i&&(n=i.linePoints.slice(0),o=i),"smooth"===p?(s=new js(t,e,r,o,n)).options.closed=!0:(t.push(t[0]),s=new Ms(t,e,r,o,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||Zr},e}(ks),Es=function(t){function e(e,r){t.call(this,e,null,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(us);It(Es,{overlay:{gradient:"none"},labels:{distance:10}});var Rs=Es,Is=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Fi:Ni}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,r=this.children,i=e.gap,o=e.spacing,n=r.length,s=n+i+o*(n-1),a=t.angle/s,p=t.startAngle+a*(i/2);this.forEach(r,(function(e){var r=t.clone();r.startAngle=p,r.angle=a,e.sector&&(r.radius=e.sector.radius),e.reflow(r),e.sector=r,p+=a+a*o}))},e}(oe);It(Is,{gap:1,spacing:0});var Bs=Is,Ls=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options.reverse,r=this.children,i=r.length,o=e?i-1:0,n=e?-1:1;this.box=new $t;for(var s=o;s>=0&&s<i;s+=n){var a=r[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(oe),Vs=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointType=function(){return Rs},e.prototype.clusterType=function(){return Bs},e.prototype.stackType=function(){return Ls},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.pointSlot=function(t,e){var r=t.clone(),i=t.center.y;return r.radius=i-e.y1,r.innerRadius=i-e.y2,r},e.prototype.reflowPoint=function(t,e){t.sector=e,t.reflow()},e.prototype.createAnimation=function(){this.options.animation.center=this.box.toRect().center(),t.prototype.createAnimation.call(this)},e}(Xi);Vs.prototype.reflow=ci.prototype.reflow,It(Vs,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var zs=Vs,Ds=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createPolarAxis=function(){var t=new Or(this.options.categoryAxis,this.chartService);this.polarAxis=t,this.categoryAxis=t,this.appendAxis(t),this.aggregateCategories(),this.createCategoryAxesLabels()},e.prototype.valueAxisOptions=function(t){return this._hasBarCharts&&E(t,{majorGridLines:{type:o},minorGridLines:{type:o}}),this._isStacked100&&E(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),E(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){wn.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){wn.prototype.createCategoryAxesLabels.call(this,this.panes)},e.prototype.filterSeries=function(t){return t},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createAreaChart(Ro(t,["radarArea"]),e),this.createLineChart(Ro(t,["radarLine"]),e),this.createBarChart(Ro(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},r=t[0];if(r){var i=this.filterVisibleSeries(t),o=r.stack;e.isStacked=o&&i.length>1,e.isStacked100=o&&"100%"===o.type&&i.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Ts(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new ks(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],i=this.chartOptions(t);i.gap=r.gap,i.spacing=r.spacing;var o=new zs(this,i);this.appendChart(o,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,r){var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.categoryAxis.getCategory(o),s=this.valueAxis.getValue(o);null!==n&&null!==s&&t.trigger(r,{element:Ot(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(ys);E(Ds.prototype,Xo,{appendChart:wn.prototype.appendChart,aggregateSeries:wn.prototype.aggregateSeries,seriesSourcePoints:wn.prototype.seriesSourcePoints}),It(Ds,{categoryAxis:{categories:[]},valueAxis:{}});var Ns=Ds,Fs=function(t){function e(e,r,i){t.call(this,r),this.value=e,this.options.index=i.index}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.points,r=this.children[0];this.box=new $t(e[0].x,e[0].y,e[1].x,e[2].y),r&&r.reflow(new $t(t.x1,e[0].y,t.x2,e[2].y))},e.prototype.createVisual=function(){var e,r=this,i=this.options;t.prototype.createVisual.call(this),(e=i.visual?i.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:i,sender:this.getSender(),createVisual:function(){return r.createPath()}}):this.createPath())&&this.visual.append(e)},e.prototype.createPath=function(){var t=this.options,e=t.border;return S.drawing.Path.fromPoints(this.points,{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.color,opacity:e.opacity,width:e.width}}).close()},e.prototype.createHighlight=function(t){return S.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=S.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new qt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(oe);It(Fs,{color:g,border:{width:1}}),E(Fs.prototype,hi);var Us=Fs,Hs=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.points=[],this.labels=[],this.legendItems=[],this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.formatPointValue=function(t,e){return this.chartService.format.auto(e,t.value)},e.prototype.render=function(){var t=this.options,e=this.plotArea.options.seriesColors;void 0===e&&(e=[]);var r=t.series[0],i=r.data;if(i)for(var o=To(r),n=o.total,s=o.points,a=0;a<s.length;a++){var p=s[a];if(p){var l=p.fields;M(r.color)||(r.color=l.color||e[a%e.length]),l=E({index:a,owner:this,series:r,dataItem:i[a],percentage:p.value/n},l,{visible:p.visible});var c=p.valueFields.value,h=this.createSegment(c,l),u=this.createLabel(c,l);h&&u&&h.append(u)}}},e.prototype.evalSegmentOptions=function(t,e,r){var i=r.series;ai(t,{value:e,series:i,dataItem:r.dataItem,index:r.index},{defaults:i._defaults,excluded:["data","content","template","toggle","visual"]})},e.prototype.createSegment=function(t,e){var r=E({},e.series);if(this.evalSegmentOptions(r,t,e),this.createLegendItem(t,r,e),!1!==e.visible){var i=new Us(t,r,e);return Object.assign(i,e),this.append(i),this.points.push(i),i}},e.prototype.createLabel=function(t,e){var r=e.series,i=e.dataItem,o=E({},this.options.labels,r.labels),n=t;if(o.visible){var s=rt(o),a={dataItem:i,value:t,percentage:e.percentage,category:e.category,series:r};s?n=s(a):o.format&&(n=this.plotArea.chartService.format.auto(o.format,n)),o.color||(o.color=Ft(r.color),o.background||(o.background=r.color)),this.evalSegmentOptions(o,t,e);var p=new be(n,E({vAlign:o.position},o),a);return this.labels.push(p),p}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},r=0;r<t.length;r++){var i=t[r].options.align;if(i!==a){var o=t[r].box.width();i===h?e.left=Math.max(e.left,o):e.right=Math.max(e.right,o)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,r){for(var i=this.options,o=this.points,n=o.length,s=o[0],a=s,p=0;p<o.length;p++)o[p].percentage>a.percentage&&(a=o[p]);for(var l=s.percentage/a.percentage*e,c=(e-l)/2,h=0,u=0;u<n;u++){var f=o[u].percentage,d=o[u+1],v=d?d.percentage:f,y=o[u].points=[],g=i.dynamicHeight?r*f:r/n,m=void 0;m=At(m=f?(e-l*(v/f))/2:v?0:e/2,0,e),y.push(new S.geometry.Point(t.x1+c,t.y1+h)),y.push(new S.geometry.Point(t.x1+e-c,t.y1+h)),y.push(new S.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new S.geometry.Point(t.x1+m,t.y1+g+h)),c=m,h+=g+i.segmentSpacing,l=At(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,r){for(var i=this.options,o=this.points,n=o.length,s=i.neckRatio<=1,a=s?i.neckRatio*e:e,p=s?0:(e-e/i.neckRatio)/2,l=((s?e:e-2*p)-a)/2,c=0,h=0;h<n;h++){var u=o[h].points=[],f=o[h].percentage,d=i.dynamicHeight?l*f:l/n,v=i.dynamicHeight?r*f:r/n;u.push(new S.geometry.Point(t.x1+p,t.y1+c)),u.push(new S.geometry.Point(t.x1+e-p,t.y1+c)),u.push(new S.geometry.Point(t.x1+e-p-d,t.y1+v+c)),u.push(new S.geometry.Point(t.x1+p+d,t.y1+v+c)),p+=d,c+=v+i.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,r=e.length;if(r){var i=this.options,o=t.clone().unpad(this.labelPadding()),n=o.height()-i.segmentSpacing*(r-1),s=o.width();i.dynamicSlope?this.dynamicSlopeReflow(o,s,n):this.constantSlopeReflow(o,s,n);for(var a=0;a<r;a++)e[a].reflow(t)}},e}(oe);It(Hs,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),E(Hs.prototype,ss);var Gs=Hs,Ws=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],r=new Gs(this,{series:t,legend:this.options.legend,neckRatio:e.neckRatio,dynamicHeight:e.dynamicHeight,dynamicSlope:e.dynamicSlope,segmentSpacing:e.segmentSpacing,highlight:e.highlight});this.appendChart(r)},e.prototype.appendChart=function(e,r){t.prototype.appendChart.call(this,e,r),gt(this.options.legend.items,e.legendItems)},e}(Ko),Ks=function(t,e){void 0===e&&(e=.05);var r=Object(S.parseColor)(t),i=1-e;return function(t){var e=r.toHSL(),o=100-e.l,n=i-t;return e.l+=Math.min(n*o,o),e.toCss()}},Xs=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.value=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.render=function(){this._rendered||(this._rendered=!0,this.createMarker(),this.createLabel(),this.createNote())},e.prototype.createLabel=function(){var t=this.options.labels;if(t.visible){var e,r=this.pointData(),i=rt(t),o=t.color;e=i?i(r):this.formatValue(t.format),o||(o=Ft(this.color)),this.label=new be(e,E({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Tt(t.zIndex,this.series.zIndex)},t,{color:o}),r),this.append(this.label)}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.reflow=function(t){this.render();var e=this.label;this.box=t,e&&e.reflow(this.markerBox()),this.note&&this.note.reflow(t),this.marker.reflow(this.markerBox())},e.prototype.markerBox=function(){var t=this.options.markers,e=t.border,r=this.box.toRect(),i="roundedRect"===Tt(t.type,"rect"),o=Tt(e.width,i?1:0),n=Math.round(o/2);if(t.size){var s=r.center();r.size.width=r.size.height=t.size,r.origin.x=Math.round(s.x-r.size.width/2),r.origin.y=Math.round(s.y-r.size.height/2)}return r.size.width-=o,r.size.height-=o,r.origin.y+=n+.5,r.origin.x+=n+.5,me(r)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,r=Tt(e.opacity,t.opacity);return{color:e.color||this.color,width:e.width,opacity:r,dashType:e.dashType}},e.prototype.createMarker=function(){var t=this.options,e=t.markers,r=new pe({type:Tt(e.type,"rect"),width:e.size,height:e.size,rotation:e.rotation,background:this.color,border:this.markerBorder(),borderRadius:e.borderRadius,opacity:this.series.opacity||t.opacity,zIndex:Tt(t.zIndex,this.series.zIndex),animation:t.animation,visual:t.visual},{dataItem:this.dataItem,value:this.value,series:this.series,category:this.category});this.marker=r,this.append(r)},e.prototype.createHighlight=function(t){var e=this.options,r=this.options.highlight.markers||this.options.markers,i=new pe({type:Tt(r.type,"rect"),width:r.size,height:r.size,rotation:r.rotation,background:r.color||this.color,border:this.markerBorder(),borderRadius:r.borderRadius,opacity:this.series.opacity||e.opacity,zIndex:Tt(e.zIndex,this.series.zIndex)});i.reflow(this.markerBox());var o=i.getElement();return o.options.fill=t.fill,o.options.stroke=t.stroke,o},e.prototype.highlightVisual=function(){return this.rectVisual},e.prototype.highlightVisualArgs=function(){return{options:this.options,rect:this.box.toRect(),visual:this.rectVisual}},e.prototype.tooltipAnchor=function(){var t=this.box.center().x,e=this.box.y1-5;return{point:new qt(t,e),align:{horizontal:a,vertical:s}}},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e.prototype.unclipElements=function(){},e.prototype.pointData=function(){return{x:this.value.x,y:this.value.y,value:this.value.value,dataItem:this.dataItem,series:this.series}},e}(oe);E(Xs.prototype,hi),E(Xs.prototype,ui),Xs.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var Ys=Xs,qs=function(t){function e(e,r){t.call(this,r),this.plotArea=e,this.chartService=e.chartService,this._initFields(),this.render()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initFields=function(){this.points=[],this.seriesOptions=[],this.valueRange={min:u,max:f},this._evalSeries=[]},e.prototype.render=function(){this.setRange(),this.traverseDataPoints(this.addValue.bind(this))},e.prototype.setRange=function(){for(var t=this.options.series,e=0;e<t.length;e++)for(var r=t[e],i=0;i<r.data.length;i++){var o=this._bindPoint(r,e,i).valueFields;this.valueRange.min=Math.min(this.valueRange.min,o.value),this.valueRange.max=Math.max(this.valueRange.max,o.value)}},e.prototype.addValue=function(t,e){var r;t&&(r=this.createPoint(t,e))&&Object.assign(r,e),this.points.push(r)},e.prototype.evalPointOptions=function(t,e,r){var i=r.series,o=r.seriesIx,n={defaults:i._defaults,excluded:["data","tooltip","content","template","visual","toggle"]},s=this._evalSeries[o];xt(s)||(this._evalSeries[o]=s=ai(t,{},n,!0));var a=t;return s&&ai(a=E({},t),{value:e,series:i,dataItem:r.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return Ys},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var i=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},i,{markers:{opacity:t.opacity},tooltip:{format:this.options.tooltip.format},labels:{format:this.options.labels.format}},t)}return r},e.prototype.createPoint=function(t,e){var r=e.series,i=this.pointOptions(r,e.seriesIx),o=e.color||r.color;(i=this.evalPointOptions(i,t,e),M(r.color))?o=i.color:o=Ks(o)(t.value/this.valueRange.max);var n=new Ys(t,i);return n.color=o,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,i=this.plotArea,o=e?i.namedXAxes[e]:i.axisX,n=r?i.namedYAxes[r]:i.axisY;if(!o)throw new Error("Unable to locate X axis with name "+e);if(!n)throw new Error("Unable to locate Y axis with name "+r);return{xAxis:o,yAxis:n}},e.prototype.reflow=function(t){var e=this,r=this.points,i=!this.options.clip,o=0;this.traverseDataPoints((function(t,n){var s=r[o++],a=e.seriesAxes(n.series),p=a.xAxis,l=a.yAxis,c=p.categoryIndex(t.x),h=l.categoryIndex(t.y),u=p.getSlot(c,c,i),f=l.getSlot(h,h,i);if(s)if(u&&f){var d=e.pointSlot(u,f);s.reflow(d)}else s.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new $t(t.x1,e.y1,t.x2,e.y2)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=0;r<e.length;r++)for(var i=e[r],o=this.seriesAxes(i),n=o.xAxis,s=o.yAxis,a=n.currentRangeIndices(),p=s.currentRangeIndices(),l=0;l<i.data.length;l++){var c=this._bindPoint(i,r,l),h=c.valueFields,u=c.fields,f=n.totalIndex(h.x),d=s.totalIndex(h.y),v=a.min<=f&&f<=a.max,y=p.min<=d&&d<=p.max;v&&y&&t(h,E({pointIx:l,series:i,seriesIx:r,dataItem:i.data[l],owner:this},u))}},e.prototype.formatPointValue=function(t,e){var r=t.value;return this.chartService.format.auto(e,r.x,r.y,r.value)},e.prototype.animationPoints=function(){for(var t=this.points,e=[],r=0;r<t.length;r++)e.push((t[r]||{}).marker);return e},e}(oe);It(qs,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),E(qs.prototype,{_bindPoint:ci.prototype._bindPoint});var Zs=qs,$s=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initFields=function(){this.namedXAxes={},this.namedYAxes={}},e.prototype.render=function(t){void 0===t&&(t=this.panes),this.bindCategories(),this.createAxes(t),this.createCharts(t),this.createAxisLabels()},e.prototype.bindCategories=function(){for(var t=this.srcSeries||this.series,e=0;e<t.length;e++){for(var r=t[e],i=r.data||[],o=this.seriesAxes(r),n=o.xAxis,s=o.yAxis,a=Xt(n.categories||[]),p=Xt(s.categories||[]),l=0;l<i.length;l++){var c=Gr.current.bindPoint(r,l).valueFields,h=c.x,u=c.y;a.has(h)||a.add(h),p.has(u)||p.add(u)}n.categories=a.values(),s.categories=p.values()}},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var i=t[r],o=e[i.options.name||"default"]||[];this.addToLegend(o);var n=this.filterVisibleSeries(o);n&&this.createHeatmapChart(Ro(n,["heatmap"]),i)}},e.prototype.createHeatmapChart=function(t,e){var r=new Zs(this,{series:t});this.appendChart(r,e)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,i=st([].concat(e.xAxis),(function(t){return t.name===r}))[0],o=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===o}))[0],s=(e.panes||[{}])[0].name||"default";return(i||{}).pane||(n||{}).pane||s},e.prototype.seriesAxes=function(t){var e,r,i=this.options,o=[].concat(i.xAxis),n=t.xAxis;e=n?o.find((function(t){return t.name===n})):o[0];var s=[].concat(i.yAxis),a=t.yAxis;if(r=a?s.find((function(t){return t.name===a})):s[0],!e)throw new Error("Unable to locate X axis with name "+n);if(!r)throw new Error("Unable to locate Y axis with name "+a);return{xAxis:e,yAxis:r}},e.prototype.createAxisLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e].createLabels()},e.prototype.createXYAxis=function(t,e,r){for(var i,o=t.name,n=e?this.namedYAxes:this.namedXAxes,s=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),a=s.categories?s.categories[0]:null,p=[s.min,s.max,a],c=this.series,h=0;h<c.length;h++){var u=c[h],f=u[e?"yAxis":"xAxis"];if(f===s.name||0===r&&!f){var d=Gr.current.bindPoint(u,0).valueFields;p.push(d[e?"y":"x"]);break}}for(var v=0;v<p.length;v++)if(p[v]instanceof Date){i=!0;break}var y=new(Eo(s.type,l)||!s.type&&i?ar:Qe)(s,this.chartService);if(y.axisIndex=r,o){if(n[o])throw new Error((e?"Y":"X")+" axis with name "+o+" is already defined");n[o]=y}return this.appendAxis(y),y.mapCategories(),y},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),i=[],o=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){ct(this.findPane(r[s].pane),t)&&i.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<o.length;a++){ct(this.findPane(o[a].pane),t)&&n.push(this.createXYAxis(o[a],!0,a))}this.axisX=this.axisX||i[0],this.axisY=this.axisY||n[0]},e.prototype.removeAxis=function(e){var r=e.options.name;t.prototype.removeAxis.call(this,e),e.options.vertical?delete this.namedYAxes[r]:delete this.namedXAxes[r],e===this.axisX&&delete this.axisX,e===this.axisY&&delete this.axisY},e.prototype._dispatchEvent=function(t,e,r){for(var i=t._eventCoordinates(e),o=new qt(i.x,i.y),n=this.axes,s=n.length,a=[],p=[],l=0;l<s;l++){var c=n[l];jo(c.options.vertical?p:a,c.getCategory(o))}a.length>0&&p.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,x:Lo(a),y:Lo(p)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,i=this.groupAxes(this.panes),o=(r?i.y:i.x).indexOf(t);Qs(this.options,o,r,e),Qs(this.originalOptions,o,r,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Ko);function Qs(t,e,r,i){E([].concat(r?t.yAxis:t.xAxis)[e],i)}It($s,{xAxis:{},yAxis:{}}),E($s.prototype,Xo);var Js=$s,ta="color",ea="first",ra="max";Vn.current.register(wn,[$r,Qr,Jr,ei,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Vn.current.register(ts,["scatter","scatterLine","bubble"]),Vn.current.register(cs,[ti]),Vn.current.register(vs,["donut"]),Vn.current.register(Ws,["funnel"]),Vn.current.register(As,["polarArea","polarLine","polarScatter"]),Vn.current.register(Ns,["radarArea","radarColumn","radarLine"]),Vn.current.register(Js,["heatmap"]),Gr.current.register([$r,Qr,Jr,ei,"area","verticalArea"],[y],["category",ta,"noteText","errorLow","errorHigh"]),Gr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",ta,"noteText"]),Gr.current.register(["waterfall","horizontalWaterfall"],[y],["category",ta,"noteText","summary"]),Gr.current.register(["polarArea","polarLine","polarScatter"],[m,x],[ta]),Gr.current.register(["radarArea","radarColumn","radarLine"],[y],[ta]),Gr.current.register(["funnel"],[y],["category",ta,"visibleInLegend","visible"]),$o.current.register([$r,Qr,Jr,ei,"area","verticalArea","waterfall","horizontalWaterfall"],{value:ra,color:ea,noteText:ea,errorLow:"min",errorHigh:ra}),$o.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:ra,color:ea,noteText:ea}),$o.current.register(["radarArea","radarColumn","radarLine"],{value:ra,color:ea}),Gr.current.register(["scatter","scatterLine","bubble"],[m,x],[ta,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Gr.current.register(["bubble"],[m,x,"size"],[ta,"category","noteText"]),Gr.current.register(["heatmap"],[m,x,y],[ta,"noteText"]),Gr.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",ta,"downColor","noteText"]),$o.current.register(["candlestick","ohlc"],{open:ra,high:ra,low:"min",close:ra,color:ea,downColor:ea,noteText:ea}),Gr.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",ta,"noteText"]),$o.current.register(["boxPlot","verticalBoxPlot"],{lower:ra,q1:ra,median:ra,q3:ra,upper:ra,mean:ra,outliers:ea,color:ea,noteText:ea}),Gr.current.register(["bullet","verticalBullet"],["current","target"],["category",ta,"visibleInLegend","noteText"]),$o.current.register(["bullet","verticalBullet"],{current:ra,target:ra,color:ea,noteText:ea}),Gr.current.register([ti,"donut"],[y],["category",ta,"explode","visibleInLegend","visible"]);var ia=["category",y,m,x],oa=function(t){function e(e,r,i,o){var n=this;void 0===o&&(o={}),t.call(this),this.observers=[],this.addObserver(o.observer),this.chartService=new Z(this,o),this.chartService.theme=i,this._initElement(e);var s=E({},this.options,r);this._originalOptions=E({},s),this._theme=i,this._initTheme(s,i),this._initHandlers(),this._initSurface(),this.bindCategories(),Rt.preloadFonts(r,(function(){n.fontLoaded=!0,n._destroyed||(n.trigger("init"),n._redraw(),n._attachEvents())}))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initElement=function(t){for(this._setElementClass(t),t.style.position="relative";t.firstChild;)t.removeChild(t.firstChild);this.element=t},e.prototype._setElementClass=function(t){_(t,"k-chart")},e.prototype._initTheme=function(t,e){for(var r=[],i=t.series||[],o=0;o<i.length;o++)r.push(Object.assign({},i[o]));t.series=r,function(t){for(var e=ia,r=0;r<e.length;r++){var i=e[r]+"Axes";t[i]&&(t[e[r]+"Axis"]=t[i],delete t[i])}}(t),this.applyDefaults(t,e),null===t.seriesColors&&delete t.seriesColors,this.options=E({},e,t),this.applySeriesColors()},e.prototype.getSize=function(){var t=this.options.chartArea||{};return{width:t.width?parseInt(t.width,10):Math.floor(this.element.offsetWidth),height:t.height?parseInt(t.height,10):Math.floor(this.element.offsetHeight)}},e.prototype.resize=function(t){var e=this.getSize(),r=this._size,i=e.width>0||e.height>0;t||i&&(!r||e.width!==r.width||e.height!==r.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):i&&this._selections&&Lt(this._selections,(function(t){return!t.visible}))&&(this._destroySelections(),this._setupSelection())},e.prototype._resize=function(){this._noTransitionsRedraw()},e.prototype.redraw=function(t){if(this.applyDefaults(this.options),this.applySeriesColors(),t){var e=this._model._plotArea,r=e.findPane(t);e.redraw(r)}else this._redraw()},e.prototype.getAxis=function(t){return Br(t,this._plotArea.axes)},e.prototype.findAxisByName=function(t){return this.getAxis(t)},e.prototype.findPaneByName=function(t){for(var e=this._plotArea.panes,r=0;r<e.length;r++)if(e[r].options.name===t)return new Vr(e[r])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new Vr(e[t])},e.prototype.plotArea=function(){return new zr(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var r,i,o,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];M(e)?r=n.filterPoints(e):(R(e)?(i=e.series,o=e.category):i=o=e,r="donut"===s.type?na(n.pointsBySeriesName(i),o):s.type===ti||"funnel"===s.type?na((n.charts[0]||{}).points,o):n.pointsBySeriesName(i));r&&this.togglePointsHighlight(t,r)},e.prototype.togglePointsHighlight=function(t,e){for(var r=this._highlight,i=0;i<e.length;i++)r.togglePointHighlight(e[i],t)},e.prototype.showTooltip=function(t){var e,r,i=this._sharedTooltip(),o=this._tooltip,n=this._plotArea;if(M(t)?(e=n.findPoint(t))&&i&&(r=e.categoryIx):i&&xt(t)&&(r=n.categoryAxis.categoryIndex(t)),i){if(r>=0){var s=this._plotArea.pointsByCategoryIndex(r);o.showAt(s)}}else e&&o.show(e)},e.prototype.hideTooltip=function(){this._tooltip.hide()},e.prototype._initSurface=function(){var t=this.surface,e=this._surfaceWrap(),r=this.options.chartArea||{};r.width&&wt(e,{width:r.width}),r.height&&wt(e,{height:r.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=S.drawing.Surface.create(e,{type:this.options.renderAs}),this.surface.bind("mouseenter",this._surfaceMouseenterHandler),this.surface.bind("mouseleave",this._surfaceMouseleaveHandler))},e.prototype._surfaceWrap=function(){return this.element},e.prototype._redraw=function(){var t=this._getModel();this._size={width:t.options.width,height:t.options.height},this._destroyView(),this._model=t,this._plotArea=t._plotArea,t.renderVisual(),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.setup()})),this._initSurface(),this.surface.draw(t.visual),!1!==this.options.transitions&&t.traverse((function(t){t.animation&&t.animation.play()})),this._tooltip=this._createTooltip(),this._highlight=new Sn,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),ca(this._plotArea.panes),this._navState||this._cancelDomEvents()},e.prototype.exportVisual=function(t){var e;if(t&&(t.width||t.height||t.options)){var r=this.options,i=E({},t.options,{chartArea:{width:t.width,height:t.height}});la(this._originalOptions,i),this.options=E({},this._originalOptions,i),this._initTheme(this.options,this._theme),this.bindCategories();var o=this._getModel();o.renderVisual(),ca(o._plotArea.panes),e=o.visual,this.options=r}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof wn&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new kn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Mn(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Tn(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,r=(e||{}).selection,i=(e||{}).mousewheel,o=!(t||!1!==e&&!1!==r||this.requiresHandlers(["dragStart","drag","dragEnd"])),n=(!1===e||!1===i)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),s=this.element;this._dragZoomEnabled&&o&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||o&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!o,!n)},e.prototype._toggleDomEvents=function(t,e){var r=this.domEvents;r&&(r.toggleDrag&&r.toggleDrag(t),r.toggleZoom&&r.toggleZoom(e))},e.prototype._createTooltip=function(){var t=this.options.tooltip;return this._sharedTooltip()?this._createSharedTooltip(t):new Un(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Gn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var r,i,o,n=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||i.color,o=E({},n,n[r],i,i[r],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete o[r],o}for(var a=0;a<ia.length;a++)r=ia[a]+"Axis",i=t.axisDefaults||{},o=(o=[].concat(t[r])).map(s),t[r]=o.length>1?o:o[0]}(t,e),function(t,e){var r=t.series,i=r.length,o=t.seriesDefaults,n=E({},t.seriesDefaults),s=e?E({},e.seriesDefaults):{},a=E({},s);sa(n),sa(a);for(var p=0;p<i;p++){var l=r[p].type||t.seriesDefaults.type,c=E({data:[]},a,s[l],{tooltip:t.tooltip},n,o[l]);r[p]._defaults=c,r[p]=E({},c,r[p]),r[p].data=r[p].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,r=t.seriesColors||[],i=0;i<e.length;i++){var o=e[i],n=r[i%r.length],s=o._defaults;o.color=o.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),r=new ue(this._modelOptions());return r.chart=this,r._plotArea=e,we.buildTitle(t.title,r),t.legend&&t.legend.visible&&r.append(new Bn(e.options.legend,this.chartService)),r.append(e),r.reflow(),r},e.prototype._modelOptions=function(){var t=this.options,e=this.getSize();return E({transitions:t.transitions,width:e.width||600,height:e.height||400},t.chartArea)},e.prototype._createPlotArea=function(t){var e=this.options;return Vn.current.create(t?[]:e.series,e,this.chartService)},e.prototype._setupSelection=function(){for(var t=this._plotArea.axes,e=this._selections=[],r=0;r<t.length;r++){var i=t[r],o=i.options;if(i instanceof Qe&&o.select&&!o.vertical){var n=i.range(),s=new Fn(this,i,E({min:n.min,max:n.max},o.select));e.push(s)}}},e.prototype._selectStart=function(t){return this.trigger("selectStart",t)},e.prototype._select=function(t){return this.trigger("select",t)},e.prototype._selectEnd=function(t){return this.trigger("selectEnd",t)},e.prototype._initHandlers=function(){this._clickHandler=this._click.bind(this),this._mousewheelHandler=this._mousewheel.bind(this),this._mouseleaveHandler=this._mouseleave.bind(this),this._surfaceMouseenterHandler=this._mouseover.bind(this),this._surfaceMouseleaveHandler=this._mouseout.bind(this),this._mousemove=Object(S.throttle)(this._mousemove.bind(this),20)},e.prototype.addObserver=function(t){t&&this.observers.push(t)},e.prototype.removeObserver=function(t){var e=this.observers.indexOf(t);e>=0&&this.observers.splice(e,1)},e.prototype.requiresHandlers=function(t){for(var e=this.observers,r=0;r<e.length;r++)if(e[r].requiresHandlers(t))return!0},e.prototype.trigger=function(t,e){void 0===e&&(e={}),"showTooltip"===t&&(e.anchor.point=this._toDocumentCoordinates(e.anchor.point)),e.sender=this;for(var r=this.observers,i=!1,o=0;o<r.length;o++)r[o].trigger(t,e)&&(i=!0);return i},e.prototype._attachEvents=function(){var t,e,r=this.element;this._touchAction=r.style.touchAction,mt(r,((t={}).contextmenu=this._clickHandler,t[ii]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&mt(r,((e={}).mousemove=this._mousemove,e)),this.domEvents=Q.create(this.element,{start:this._start.bind(this),move:this._move.bind(this),end:this._end.bind(this),tap:this._tap.bind(this),gesturestart:this._gesturestart.bind(this),gesturechange:this._gesturechange.bind(this),gestureend:this._gestureend.bind(this)}),this._toggleDragZoomEvents()},e.prototype._mouseleave=function(t){this._hoveredPoint&&(this._hoveredPoint.out(this,t),this._hoveredPoint=null),this._plotArea.hovered&&(this.trigger("plotAreaLeave"),this._plotArea.hovered=!1)},e.prototype._cancelDomEvents=function(){this.domEvents&&this.domEvents.cancel&&this.domEvents.cancel()},e.prototype._gesturestart=function(t){this._mousewheelZoom&&!this._stopChartHandlers(t)&&(this._gestureDistance=t.distance,this._unsetActivePoint(),this.surface.suspendTracking())},e.prototype._gestureend=function(t){this._zooming&&!this._stopChartHandlers(t)&&(this.surface&&this.surface.resumeTracking(),this._zooming=!1,this.trigger("zoomEnd",{}))},e.prototype._gesturechange=function(t){var e=this._mousewheelZoom;if(e&&!this._stopChartHandlers(t)){t.preventDefault();var r=this._gestureDistance,i=-t.distance/r+1;if(Math.abs(i)>=.1){i=Math.round(10*i),this._gestureDistance=t.distance;var o={delta:i,axisRanges:aa(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",o))this._zooming||(this._zooming=!0),(o.axisRanges=e.updateRanges(i))&&!this.trigger("zoom",o)&&e.zoom()}}},e.prototype._mouseout=function(t){if(t.element){var e=this._drawingChartElement(t.element,t);e&&e.leave&&e.leave(this,t.originalEvent)}},e.prototype._start=function(t){var e=this._eventCoordinates(t);!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(e)&&(this.requiresHandlers(["dragStart","drag","dragEnd"])&&this._startNavigation(t,e,"dragStart"),this._pannable&&this._pannable.start(t)&&(this.surface.suspendTracking(),this._unsetActivePoint(),this._suppressHover=!0,this.chartService.panning=!0),this._zoomSelection&&this._zoomSelection.start(t)&&this.trigger("zoomStart",{axisRanges:aa(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,r=this._pannable;if(!this._stopChartHandlers(t)){if(r){var i=r.move(t);i&&!this.trigger("drag",{axisRanges:i,originalEvent:t})&&r.pan()}else if(e){for(var o={},n=e.axes,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var p=a.options.vertical?t.y:t.x,l=p.startLocation-p.location;0!==l&&(o[a.options.name]=a.translateRange(l))}}e.axisRanges=o,this.trigger("drag",{axisRanges:o,originalEvent:t})}this._zoomSelection&&this._zoomSelection.move(t)}},e.prototype._end=function(t){if(!this._stopChartHandlers(t)){var e=this._pannable;if(e&&e.end(t)?(this.surface.resumeTracking(),this.trigger("dragEnd",{axisRanges:aa(this._plotArea.axes),originalEvent:t}),this._suppressHover=!1,this.chartService.panning=!1):this._endNavigation(t,"dragEnd"),this._zoomSelection){var r=this._zoomSelection.end(t);r&&!this.trigger("zoom",{axisRanges:r,originalEvent:t})&&(this._zoomSelection.zoom(),this.trigger("zoomEnd",{axisRanges:r,originalEvent:t}))}}},e.prototype._stopChartHandlers=function(t){var e=this._selections||[];if(!e.length)return!1;var r=this._eventCoordinates(t),i=this._plotArea.paneByPoint(r);if(i)for(var o=0;o<e.length;o++)if(e[o].onPane(i))return!0},e.prototype._mousewheel=function(t){var e=this,r=vt(t),i=this._mousewheelZoom,o=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(o))if(i){var n={delta:r,axisRanges:aa(this._plotArea.axes),originalEvent:t};!this._zooming&&this.trigger("zoomStart",n)||(t.preventDefault(),this._zooming||(this._unsetActivePoint(),this.surface.suspendTracking(),this._zooming=!0),this._mwTimeout&&clearTimeout(this._mwTimeout),n.axisRanges=i.updateRanges(r),n.axisRanges&&!this.trigger("zoom",n)&&i.zoom(),this._mwTimeout=setTimeout((function(){e.trigger("zoomEnd",n),e._zooming=!1,e.surface&&e.surface.resumeTracking()}),150))}else{var s=this._navState;if(!s)this._startNavigation(t,o,"zoomStart")||(s=this._navState);if(s){var a=s.totalDelta||r;s.totalDelta=a+r;for(var p=this._navState.axes,l={},c=0;c<p.length;c++){var h=p[c],u=h.options.name;u&&(l[u]=h.scaleRange(-a))}this.trigger("zoom",{delta:r,axisRanges:l,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,r){var i=this._model._plotArea,o=i.findPointPane(e),n=i.axes.slice(0);if(o){var s=aa(n);this.trigger(r,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:o,axes:n})}},e.prototype._endNavigation=function(t,e){this._navState&&(this.trigger(e,{axisRanges:this._navState.axisRanges,originalEvent:t}),this._suppressHover=!1,this._navState=null)},e.prototype._getChartElement=function(t,e){var r=this.surface.eventTarget(t);if(r)return this._drawingChartElement(r,t,e)},e.prototype._drawingChartElement=function(t,e,r){for(var i,o=t;o&&!i;)i=o.chartElement,o=o.parent;if(i)return i.aliasFor&&(i=i.aliasFor(e,this._eventCoordinates(e))),r&&(i=i.closest(r))&&i.aliasFor&&(i=i.aliasFor()),i},e.prototype._eventCoordinates=function(t){var e=St(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=V(this.element,["paddingLeft","paddingTop"]),e=t.paddingLeft,r=t.paddingTop;this._padding={top:r,left:e}}return this._padding},e.prototype._toDocumentCoordinates=function(t){var e=this._elementPadding(),r=_t(this.element);return{left:jt(t.x+e.left+r.left),top:jt(t.y+e.top+r.top)}},e.prototype._toModelCoordinates=function(t,e){var r=this.element,i=_t(r),o=this._elementPadding(),n=Nt(r).invert(),s=new S.geometry.Point(t-i.left-o.left,e-i.top-o.top).transform(n);return new qt(s.x,s.y)},e.prototype._tap=function(t){var e=this,r=this.surface.eventTarget(t),i=this._drawingChartElement(r,t),o=this._sharedTooltip();this._startHover(r,t)||o||this._unsetActivePoint(),o&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(i,t),this.handlingTap=!0,setTimeout((function(){e.handlingTap=!1}),0)},e.prototype._click=function(t){var e=this._getChartElement(t);this._propagateClick(e,t)},e.prototype._propagateClick=function(t,e){for(var r=t;r;)r.click&&r.click(this,e),r=r.parent},e.prototype._startHover=function(t,e){if(this._suppressHover)return!1;var r=this._drawingChartElement(t,e,(function(t){return(t.hover||t.over)&&!(t instanceof Ko)})),i=this._activePoint,o=this._plotArea.series.length>1,n=this._hasInactiveOpacity();return this._updateHoveredPoint(r,e),r&&i!==r&&r.hover?(this._activePoint=r,this._sharedTooltip()||r.hover(this,e)||(this._displayTooltip(r),n?this._displayInactiveOpacity(r,o):this._highlight.show(r))):!r&&n&&(o&&this._activeChartInstance&&(this._updateSeriesOpacity(r,!0),this._applySeriesOpacity(this._activeChartInstance.children,null,!0),this._activeChartInstance=null),this._highlight&&this._highlight.hide(),this._activePoint=null),r},e.prototype._displayTooltip=function(t){E({},this.options.tooltip,t.options.tooltip).visible&&this._tooltip.show(t)},e.prototype._displayInactiveOpacity=function(t,e,r){var i=this._activeChartInstance=this._chartInstanceFromPoint(t);if(i)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(i.children,null,!0),this._applySeriesOpacity(i.children,t.series),this._highlight.show(r||t);else{var o;if(!i.supportsPointInactiveOpacity())return void this._highlight.show(t);(o=this._getInactivePoints(t,i))&&o.length&&this._highlight.show(o,1-this._getInactiveOpacityForSeries(t.series))}},e.prototype._getInactivePoints=function(t,e){return this._getAllPointsOfType(e,t.constructor).filter((function(e){return e!==t}))},e.prototype._getAllPointsOfType=function(t,e){for(var r=[],i=0;i<t.children.length;i++){var o=t.children[i];o.constructor===e?r.push(o):o.children&&o.children.length&&(r=r.concat(this._getAllPointsOfType(o,e)))}return r},e.prototype._updateHoveredPoint=function(t,e){var r=this._hoveredPoint;r&&r!==t&&(r.out(this,e),this._hoveredPoint=null),t&&r!==t&&t.over&&(this._hoveredPoint=t,t.over(this,e))},e.prototype._updateSeriesOpacity=function(t,e){for(var r=this._plotArea,i=r.series.length,o=0;o<i;o++){var n=r.series[o],s=this._getDefaultOpacityForSeries(n),a=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=s,n.line&&(n.line.opacity=s)):(n.defaultOpacity=s,n.opacity=a,n.line&&(n.line.opacity=a))}},e.prototype._applySeriesOpacity=function(t,e,r,i){for(var o=0;o<t.length;o++){var n=t[o],s=n.series||i;if(s&&n.visual){var a=i?i.opacity:n.series.opacity;(s!==e||r)&&n.visual.opacity(r?1:a)}n.children&&n.children.length&&this._applySeriesOpacity(n.children,e,r,n.series)}},e.prototype._chartInstanceFromPoint=function(t){for(var e=t.parent;e&&!e.plotArea;)e=e.parent;return e},e.prototype._hasInactiveOpacity=function(){var t=void 0!==this.options.seriesDefaults.highlight.inactiveOpacity,e=this.options.series.filter((function(t){return void 0!==t.highlight.inactiveOpacity})).length>0;return t||e},e.prototype._getInactiveOpacityForSeries=function(t){var e=this.options.seriesDefaults.highlight.inactiveOpacity;return t.highlight.inactiveOpacity||e||t.opacity||1},e.prototype._getDefaultOpacityForSeries=function(t){return t.defaultOpacity||t.opacity||1},e.prototype._mouseover=function(t){var e,r=this._startHover(t.element,t.originalEvent);r&&r.tooltipTracking&&!this._mouseMoveTrackHandler&&!this._sharedTooltip()&&(this._mouseMoveTrackHandler=this._mouseMoveTracking.bind(this),mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,r=this.options,i=this._tooltip,o=this._highlight,n=this._activePoint,s=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(s)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var a=n.parent.getNearestPoint(s.x,s.y,n.seriesIx);if(a&&a!==n)if(this._activePoint=a,!a.hover(this,t))E({},r.tooltip,a.options.tooltip).visible&&i.show(a),o.show(a)}}else Mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._unsetActivePoint(),this._mouseMoveTrackHandler=null},e.prototype._mousemove=function(t){var e=this._eventCoordinates(t),r=this._plotArea;if(this._trackCrosshairs(e),r.hover){var i=r.backgroundContainsPoint(e);i?(r.hovered=!0,this._plotArea.hover(this,t)):r.hovered&&!i&&(this.trigger("plotAreaLeave"),r.hovered=!1)}this._sharedTooltip()&&this._trackSharedTooltip(e,t)},e.prototype._trackCrosshairs=function(t){for(var e=this._plotArea.crosshairs,r=0;r<e.length;r++){var i=e[r];i.box.containsPoint(t)?i.showAt(t):i.hide()}},e.prototype._trackSharedTooltip=function(t,e,r){if(!this._suppressHover){var i=this.options.tooltip,o=this._plotArea,n=this._plotArea.categoryAxis,s=this._tooltip,a=this._highlight;if(o.backgroundContainsPoint(t)){var p=n.pointCategoryIndex(t);if(p!==this._tooltipCategoryIx||!this._sharedHighlight&&r){var l=o.pointsByCategoryIndex(p),c=l.map((function(t){return t.eventArgs(e)})),h=c[0]||{};h.categoryPoints=c,l.length>0&&!this.trigger("seriesHover",h)?(i.visible&&s.showAt(l,t),a.show(l),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=p}else r&&this._sharedHighlight&&(a.hide(),s.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(a.hide(),s.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1)}},e.prototype.hideElements=function(t){var e=this._plotArea;this._mousemove.cancel(),e.hideCrosshairs(),this._unsetActivePoint(t)},e.prototype._unsetActivePoint=function(t){var e=this._tooltip,r=this._highlight;this._activePoint=null,this._hoveredPoint=null,!e||t&&t.keepTooltipOpen||e.hide(),this._tooltipCategoryIx=null,this._sharedHighlight=!1,r&&r.hide()},e.prototype._deferRedraw=function(){this._redraw()},e.prototype._clearRedrawTimeout=function(){this._redrawTimeout&&(clearInterval(this._redrawTimeout),this._redrawTimeout=null)},e.prototype.bindCategories=function(){for(var t=this.options,e=[].concat(t.categoryAxis),r=0;r<e.length;r++){var i=e[r];!1!==i.autoBind&&this.bindCategoryAxisFromSeries(i,r)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var r,i=this.options.series,o=i.length,n=new lt,s=[],a=!1,p=0;p<o;p++){var l=i[p],c=l.categoryAxis===t.name||!l.categoryAxis&&0===e,h=l.data,u=h.length,f=l.categoryField&&c;if(a=f||a,f&&u>0)for(var d=(r=Bo(t,Ur(l.categoryField,h[0])))?Io:Ur,v=0;v<u;v++){var y=h[v],g=d(l.categoryField,y,this.chartService.intl);!r&&n.get(g)||(s.push([g,y]),r||n.set(g,!0))}}if(s.length>0){r&&(s=function(t,e){void 0===e&&(e=Fe);for(var r=function(t,e){void 0===e&&(e=Fe);for(var r=1,i=t.length;r<i;r++)if(e(t[r],t[r-1])<0){t.sort(e);break}return t}(t,e),i=r.length,o=i>0?[r[0]]:[],n=1;n<i;n++)0!==e(r[n],Pt(o))&&o.push(r[n]);return o}(s,(function(t,e){return Fe(t[0],e[0])})));var m=function(t){for(var e=t.length,r=[],i=0;i<e;i++)for(var o=t[i],n=o.length,s=0;s<n;s++)r[s]=r[s]||[],r[s].push(o[s]);return r}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Gr.current.valueFields(t),r=!0,i=0;i<e.length;i++){var o=e[i];if(o===y?o="field":o+="Field",!xt(t[o])){r=!1;break}}return r},e.prototype._noTransitionsRedraw=function(){var t,e=this.options;!1!==e.transitions&&(e.transitions=!1,t=!0),this._redraw(),t&&(e.transitions=!0)},e.prototype._legendItemHover=function(t,e){var r,i=this._plotArea,o=this._highlight,n=(i.srcSeries||i.series)[t];if(r=ct(n.type,[ti,"donut","funnel"])?i.findPoint((function(r){return r.series.index===t&&r.index===e})):i.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&r){var s=i.series.length>1,a=r.length?r[0]:r;this._displayInactiveOpacity(a,s,r)}else o.show(r)},e.prototype._shouldAttachMouseMove=function(){return this._plotArea.crosshairs.length||this._tooltip&&this._sharedTooltip()||this.requiresHandlers(["plotAreaHover","plotAreaLeave"])},e.prototype.updateMouseMoveHandler=function(){var t,e;Mt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&mt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){la(this._originalOptions,t),this._originalOptions=E(this._originalOptions,t),this.options=E({},this._originalOptions),e&&(this._theme=e,this.chartService.theme=e),this._initTheme(this.options,this._theme),this._toggleDragZoomEvents()},e.prototype.setOptions=function(t,e){this.applyOptions(t,e),this.bindCategories(),this.redraw(),this.updateMouseMoveHandler()},e.prototype.setDirection=function(t){this.chartService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&this._destroySurface()},e.prototype.setIntlService=function(t){this.chartService.intl=t},e.prototype.noTransitionsRedraw=function(){this._noTransitionsRedraw()},e.prototype.destroy=function(){var t,e;this._destroyed=!0,Mt(this.element,((t={}).contextmenu=this._clickHandler,t[ii]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Mt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)),this._destroyView(),this._destroySurface(),this._clearRedrawTimeout()},e.prototype._destroySurface=function(){var t=this.surface;t&&(t.unbind("mouseenter",this._surfaceMouseenterHandler),t.unbind("mouseleave",this._surfaceMouseleaveHandler),t.destroy(),this.surface=null)},e.prototype._destroySelections=function(){var t=this._selections;if(t)for(;t.length>0;)t.shift().destroy()},e.prototype._destroyView=function(){var t=this._model;t&&(t.destroy(),this._model=null),this._unsetActivePoint(),this._destroySelections(),this._tooltip&&this._tooltip.destroy(),this._highlight&&this._highlight.destroy(),this._zoomSelection&&(this._zoomSelection.destroy(),delete this._zoomSelection),this._pannable&&(this._pannable.destroy(),delete this._pannable),this._mousewheelZoom&&(this._mousewheelZoom.destroy(),delete this._mousewheelZoom)},e}(S.Class);function na(t,e){if(t)for(var r=0;r<t.length;r++)if(t[r].category===e)return[t[r]]}function sa(t){delete t.bar,delete t.column,delete t.rangeColumn,delete t.line,delete t.verticalLine,delete t.pie,delete t.donut,delete t.area,delete t.verticalArea,delete t.scatter,delete t.scatterLine,delete t.bubble,delete t.candlestick,delete t.ohlc,delete t.boxPlot,delete t.bullet,delete t.verticalBullet,delete t.polarArea,delete t.polarLine,delete t.radarArea,delete t.radarLine,delete t.waterfall}function aa(t){for(var e={},r=0;r<t.length;r++){var i=t[r],o=i.options.name;o&&(e[o]=i.range())}return e}var pa=["data","categories"];function la(t,e){for(var r in e)if(!ct(r,pa)&&e.hasOwnProperty(r)){var i=e[r],o=t[r];if(xt(o)){var n=null===i;n||!xt(i)?(delete t[r],n&&delete e[r]):o&&R(i)&&R(o)&&la(o,i)}}}function ca(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}It(oa,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:Qr,data:[],highlight:{visible:!0},labels:{},negativeValues:{visible:!1}},series:[],seriesColors:null,tooltip:{visible:!1},transitions:!0,valueAxis:{},plotArea:{},title:{},xAxis:{},yAxis:{},panes:[{}],pannable:!1,zoomable:!1});var ha=oa,ua=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._slotAnchor=function(t,e){var r=this.plotArea.categoryAxis.options.vertical,i=r?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:r?new qt(this.plotArea.box.x2,e.center().y):new qt(e.center().x,-2),align:i}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Gn),fa=[$r,"bullet"];function da(t){for(var e=[],r=0;r<t.length;r++){var i=t[r];e[r]=i.style.display,i.style.display="none"}return e}function va(t,e){for(var r=0;r<t.length;r++)t[r].style.display=e[r]}function ya(t){return C(t)?[t]:t}var ga=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._setElementClass=function(t){_(t,"k-sparkline")},e.prototype._initElement=function(e){t.prototype._initElement.call(this,e),this._initialWidth=Math.floor(wt(e).width)},e.prototype._resize=function(){var e=this.element,r=da(e.childNodes);this._initialWidth=Math.floor(wt(e).width),va(e.childNodes,r),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),r=da(e.childNodes),i=document.createElement("span");i.innerHTML="&nbsp;",e.appendChild(i);var o=E({width:this._autoWidth,height:wt(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return wt(e,{width:o.width,height:o.height}),e.removeChild(i),va(e.childNodes,r),this.surface&&this.surface.resize(),o},e.prototype._surfaceWrap=function(){if(!this.stage){var t=this.stage=document.createElement("span");this.element.appendChild(t)}return this.stage},e.prototype._createPlotArea=function(e){var r=t.prototype._createPlotArea.call(this,e);return this._autoWidth=this._initialWidth||this._calculateWidth(r),r},e.prototype._calculateWidth=function(t){for(var e=this.options,r=z(e.chartArea.margin),i=t.charts,o=this._surfaceWrap(),n=0,s=0;s<i.length;s++){var a=i[s],p=(a.options.series||[])[0];if(p){if(p.type===$r)return 150;if("bullet"===p.type)return 150;if(p.type===ti)return wt(o).height;var l=a.categoryAxis;if(l){var c=l.categoriesCount()*(!a.options.isStacked&&ct(p.type,[Qr,"verticalBullet"])?a.seriesOptions.length:1);n=Math.max(n,c)}}}var h=n*e.pointWidth;return h>0&&(h+=r.left+r.right),h},e.prototype._createSharedTooltip=function(t){return new ua(this._plotArea,t)},e.normalizeOptions=function(t){var e=ya(t);return(e=b(e)?{seriesDefaults:{data:e}}:E({},e)).series||(e.series=[{data:ya(e.data)}]),E(e,{seriesDefaults:{type:e.type}}),(ct(e.series[0].type,fa)||ct(e.seriesDefaults.type,fa))&&(e=E({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(ha);It(ga,{chartArea:{margin:2},axisDefaults:{visible:!1,majorGridLines:{visible:!1},valueAxis:{narrowRange:!0}},seriesDefaults:{type:"line",area:{line:{width:.5}},bar:{stack:!0},padding:2,width:.5,overlay:{gradient:null},highlight:{visible:!1},border:{width:0},markers:{size:2,visible:!1}},tooltip:{visible:!0,shared:!0},categoryAxis:{crosshair:{visible:!0,tooltip:{visible:!1}}},legend:{visible:!1},transitions:!1,pointWidth:5,panes:[{clip:!1}]});var ma=ga,xa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){this._initialOpacity=parseFloat(V(this.element,"opacity").opacity)},e.prototype.step=function(t){V(this.element,{opacity:String(ht(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),V(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),V(this.element,{opacity:String(this._initialOpacity)})},e}(S.drawing.Animation);function ba(t,e){var r=document.createElement("div");return r.className=t,e&&(r.style.cssText=e),r}var _a=function(t){function e(e,r,i){t.call(this),this.options=E({},this.options,i),this.container=e,this.chartService=r;var o=V(e,["paddingLeft","paddingTop"]);this.chartPadding={top:o.paddingTop,left:o.paddingLeft},this.createElements(),e.appendChild(this.element)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createElements=function(){var t=this.element=ba("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=ba("k-tooltip k-chart-tooltip"),r=this.scroll=ba("k-scroll");e.innerHTML="&nbsp;",t.appendChild(e),t.appendChild(r)},e.prototype.show=function(t,e,r){var i=this.element,o=this.options,n=this.scroll,s=this.tooltip,a=Le(He(t)+He(e-t)/2),p=.4*r.width(),l=r.center().x-p,c=(r.center().x-l)/(o.max-o.min),h=a-o.min,u=this.chartService.intl.format(o.format,t,e),f=rt(o);this.clearHideTimeout(),this._visible||(V(i,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(u=f({from:t,to:e})),s.innerHTML=u,V(s,{left:r.center().x-s.offsetWidth/2,top:r.y1});var d=V(s,["marginTop","borderTopWidth","height"]);V(n,{width:p,left:l+h*c,top:r.y1+d.marginTop+d.borderTopWidth+d.height/2}),V(i,{visibility:"visible"})},e.prototype.clearHideTimeout=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this._hideAnimation&&this._hideAnimation.cancel()},e.prototype.hide=function(){var t=this;this.clearHideTimeout(),this._hideTimeout=setTimeout((function(){t._visible=!1,t._hideAnimation=new xa(t.element),t._hideAnimation.setup(),t._hideAnimation.play()}),this.options.hideDelay)},e.prototype.destroy=function(){this.clearHideTimeout(),this.container&&this.container.removeChild(this.element),delete this.container,delete this.chartService,delete this.element,delete this.tooltip,delete this.scroll},e}(S.Class);It(_a,{format:"{0:d} - {1:d}",hideDelay:500});var wa=_a,Oa="_navigator",Sa=Oa;function Pa(){}var Aa=function(t){function e(e){var r;t.call(this),this.chart=e;var i=this.options=E({},this.options,e.options.navigator),o=i.select;o&&(o.from=this.parseDate(o.from),o.to=this.parseDate(o.to)),xt(i.hint.visible)||(i.hint.visible=i.visible),this.chartObserver=new ft(this,((r={}).drag="_drag",r.dragEnd="_dragEnd",r.zoom="_zoom",r.zoomEnd="_zoomEnd",r)),e.addObserver(this.chartObserver)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.parseDate=function(t){return Ye(this.chart.chartService.intl,t)},e.prototype.clean=function(){this.selection&&(this.selection.destroy(),this.selection=null),this.hint&&(this.hint.destroy(),this.hint=null)},e.prototype.destroy=function(){this.chart&&(this.chart.removeObserver(this.chartObserver),delete this.chart),this.clean()},e.prototype.redraw=function(){this._redrawSelf(),this.initSelection()},e.prototype.initSelection=function(){var t,e=this.chart,r=this.options,i=this.mainAxis(),o=i.roundedRange(),n=o.min,s=o.max,a=r.select,p=a.from,l=a.to,c=a.mousewheel,h=(t=i,Pa.prototype=t,new Pa);0!==i.categoriesCount()&&(this.clean(),h.box=i.box,this.selection=new Fn(e,h,{min:n,max:s,from:p||n,to:l||s,mousewheel:Tt(c,{zoom:"left"}),visible:r.visible},new ft(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),r.hint.visible&&(this.hint=new wa(e.element,e.chartService,{min:n,max:s,template:rt(r.hint),format:r.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[Sa].roundedRange(),e=t.min,r=t.max,i=this.options.select||{},o=i.from||e;o<e&&(o=e);var n=i.to||r;n>r&&(n=r),this.options.select=E({},i,{from:o,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(Pt(e.panes),t)},e.prototype.redrawSlaves=function(){var t=this.chart,e=t._plotArea,r=e.panes.slice(0,-1);e.srcSeries=t.options.series,e.options.categoryAxis=t.options.categoryAxis,e.clearSeriesPointsCache(),e.redraw(r)},e.prototype._drag=function(t){var e,r=this.chart,i=this.selection,o=r._eventCoordinates(t.originalEvent),n=this.mainAxis(),s=n.roundedRange(),a=n.pane.box.containsPoint(o),p=r._plotArea.categoryAxis,l=t.axisRanges[p.options.name],c=this.options.select;if(l&&!a&&i){e=c.from&&c.to?He(c.to)-He(c.from):He(i.options.to)-He(i.options.from);var h=Le(At(He(l.min),s.min,He(s.max)-e)),u=Le(At(He(h)+e,He(s.min)+e,s.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),i.set(h,u),this.showHint(h,u)}},e.prototype._dragEnd=function(){this.filterAxes(),this.filter(),this.redrawSlaves(),this.hint&&this.hint.hide()},e.prototype.readSelection=function(){var t=this.selection.options,e=t.from,r=t.to,i=this.options.select;i.from=e,i.to=r},e.prototype.filterAxes=function(){var t=this.options.select;void 0===t&&(t={});for(var e=this.chart.options.categoryAxis,r=t.from,i=t.to,o=0;o<e.length;o++){var n=e[o];n.pane!==Oa&&(n.min=r,n.max=i)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var r=this.mainAxis(),i={from:e.from,to:e.to};if("category"!==r.options.type){var o=new ar(E({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;i.from=ze(o.min,-o.baseUnitStep,o.baseUnit),i.to=ze(o.max,o.baseUnitStep,o.baseUnit)}this.chart.trigger("navigatorFilter",i)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,r=this.selection,i=this.options,o=i.select,n=i.liveDrag,s=this.mainAxis(),a=t.delta;if(r){var p=s.categoryIndex(r.options.from),l=s.categoryIndex(r.options.to);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),l-p>1?(r.expand(a),this.readSelection()):(e.options.min=o.from,o.from=e.scaleRange(-t.delta).min),n&&(this.filterAxes(),this.redrawSlaves()),r.set(o.from,o.to),this.showHint(this.options.select.from,this.options.select.to)}},e.prototype._zoomEnd=function(t){this._dragEnd(t)},e.prototype.showHint=function(t,e){var r=this.chart._plotArea;this.hint&&this.hint.show(t,e,r.backgroundBox())},e.prototype._selectStart=function(t){return this.chart._selectStart(t)},e.prototype._select=function(t){return this.showHint(t.from,t.to),this.chart._select(t)},e.prototype._selectEnd=function(t){return this.hint&&this.hint.hide(),this.readSelection(),this.filterAxes(),this.filter(),this.redrawSlaves(),this.chart._selectEnd(t)},e.prototype.mainAxis=function(){var t=this.chart._plotArea;if(t)return t.namedCategoryAxes[Sa]},e.prototype.select=function(t,e){var r=this.options.select;return t&&e&&(r.from=this.parseDate(t),r.to=this.parseDate(e),this.filterAxes(),this.filter(),this.redrawSlaves(),this.selection.set(t,e)),{from:r.from,to:r.to}},e.setup=function(t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),!t.__navi){t.__navi=!0;var i=E({},r.navigator,t.navigator),o=t.panes=[].concat(t.panes),n=E({},i.pane,{name:Oa});i.visible||(n.visible=!1,n.height=.1),o.push(n),e.attachAxes(t,i),e.attachSeries(t,i,r)}},e.attachAxes=function(t,e){var r=e.series||[],i=t.categoryAxis=[].concat(t.categoryAxis),o=t.valueAxis=[].concat(t.valueAxis),n=0===Ro(r,ri).length,s=E({type:"date",pane:Oa,roundToBaseUnit:!n,justified:n,_collapse:!1,majorTicks:{visible:!0},tooltip:{visible:!1},labels:{step:1},autoBind:e.autoBindElements,autoBaseUnitSteps:{minutes:[1],hours:[1,2],days:[1,2],weeks:[],months:[1],years:[1]}}),a=e.categoryAxis;i.push(E({},s,{maxDateGroups:200},a,{name:Sa,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),E({},s,a,{name:Sa+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),E({},s,a,{name:Sa+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),o.push(E({name:Sa,pane:Oa,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,r){for(var i=t.series=t.series||[],o=[].concat(e.series||[]),n=r.seriesColors,s=e.seriesDefaults,a=0;a<o.length;a++)i.push(E({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,o[a],{axis:Sa,categoryAxis:Sa,autoBind:e.autoBindElements}))},e}(S.Class),Ca=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyDefaults=function(e,r){var i=wt(this.element).width||600,o=r,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(i/28)}}};o&&(o=E({},o,n)),Aa.setup(e,o),t.prototype.applyDefaults.call(this,e,o)},e.prototype._setElementClass=function(t){_(t,"k-chart k-stockchart")},e.prototype.setOptions=function(e){this.destroyNavigator(),t.prototype.setOptions.call(this,e)},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this.options.transitions=!1,this._fullRedraw(),this.options.transitions=t},e.prototype._resize=function(){this.noTransitionsRedraw()},e.prototype._redraw=function(){var t=this.navigator;!this._dirty()&&t&&t.options.partialRedraw?t.redrawSlaves():this._fullRedraw()},e.prototype._dirty=function(){var t=this.options,e=st([].concat(t.series,t.navigator.series),(function(t){return t&&t.visible})).length,r=this._seriesCount!==e;return this._seriesCount=e,r},e.prototype._fullRedraw=function(){var e=this.navigator;e||(e=this.navigator=new Aa(this),this.trigger("navigatorCreated",{navigator:e})),e.clean(),e.setRange(),t.prototype._redraw.call(this),e.initSelection()},e.prototype._trackSharedTooltip=function(e){var r=this._plotArea.paneByPoint(e);r&&r.options.name===Oa?this._unsetActivePoint():t.prototype._trackSharedTooltip.call(this,e)},e.prototype.bindCategories=function(){t.prototype.bindCategories.call(this),this.copyNavigatorCategories()},e.prototype.copyNavigatorCategories=function(){for(var t,e=[].concat(this.options.categoryAxis),r=0;r<e.length;r++){var i=e[r];i.name===Sa?t=i.categories:t&&i.pane===Oa&&(i.categories=t)}},e.prototype.destroyNavigator=function(){this.navigator&&(this.navigator.destroy(),this.navigator=null)},e.prototype.destroy=function(){this.destroyNavigator(),t.prototype.destroy.call(this)},e.prototype._stopChartHandlers=function(e){var r=this._eventCoordinates(e),i=this._plotArea.paneByPoint(r);return t.prototype._stopChartHandlers.call(this,e)||i&&i.options.name===Oa},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(ha);It(Ca,{dateField:"date",axisDefaults:{categoryAxis:{type:"date",baseUnit:"fit",justified:!0},valueAxis:{narrowRange:!0,labels:{format:"C"}}},navigator:{select:{},seriesDefaults:{markers:{visible:!1},tooltip:{visible:!0},line:{width:2}},hint:{},visible:!0},tooltip:{visible:!0},legend:{visible:!1}});var ka=Ca,ja=Math.PI/180;function Ma(t,e){var r=t.getOrigin(),i=t.getSize(),o=z(e);return t.setOrigin([r.x-o.left,r.y-o.top]),t.setSize([i.width+(o.left+o.right),i.height+(o.top+o.bottom)]),t}var Ta=S.drawing.Group,Ea=S.drawing.Path,Ra=S.drawing.Text;function Ia(t,e){var r=t.box,i=t.children[0].box,o=e.border||{},n=e.background||"",s=Ea.fromRect(new S.geometry.Rect([r.x1,r.y1],[r.width(),r.height()]),{stroke:{}}),a=new Ra(t.text,new S.geometry.Point(i.x1,i.y1),{font:e.font,fill:{color:e.color}}),p=Ma(a.bbox().clone(),e.padding),l=Ea.fromRect(p,{stroke:{color:o.width?o.color:"",width:o.width,opacity:o.opacity,dashType:o.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),c=new Ta;return c.append(s),c.append(l),c.append(a),c}function Ba(t,e,r){var i=xt(t.from)?t.from:f,o=xt(t.to)?t.to:u;return t.from=Math.max(Math.min(o,i),e),t.to=Math.min(Math.max(o,i),r),t}function La(t,e){var r=z(e);return r.left=-r.left,r.top=-r.top,r.right=-r.right,r.bottom=-r.bottom,Ma(t,r)}var Va=S.drawing.Path,za=S.drawing.Surface,Da=function(t){function e(e,r,i,o){void 0===o&&(o={}),t.call(this),this.element=e,this.theme=i,this.contextService=new Z(this,o),this._originalOptions=E({},this.options,r),this.options=E({},this._originalOptions),this._initTheme(i),this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.surface&&(this.surface.destroy(),this.surface=null),delete this.element,delete this.surfaceElement},e.prototype.value=function(t){var e=this.pointers[0];if(0===arguments.length)return e.value();e.value(t),this._setValueOptions(t)},e.prototype._draw=function(){var t=this.surface;t.clear(),t.draw(this._visuals)},e.prototype.exportVisual=function(){return this._visuals},e.prototype.allValues=function(t){var e=this.pointers,r=[];if(0===arguments.length){for(var i=0;i<e.length;i++)r.push(e[i].value());return r}if(b(t))for(var o=0;o<t.length;o++)C(t[o])&&e[o].value(t[o]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),r=[].concat(t),i=0;i<r.length;i++)e[i].value=r[i]},e.prototype.resize=function(){this.noTransitionsRedraw()},e.prototype.noTransitionsRedraw=function(){var t=this.options.transitions;this._toggleTransitions(!1),this.redraw(),this._toggleTransitions(t)},e.prototype.redraw=function(){var t=this._surfaceSize(),e=new S.geometry.Rect([0,0],[t.width,t.height]);this._initSurface(),this.gaugeArea=this._createGaugeArea(),this._createModel();var r=La(e.bbox(),this._gaugeAreaMargin);this.reflow(r)},e.prototype.setOptions=function(t,e){this._originalOptions=E(this._originalOptions,t),this.options=E({},this._originalOptions),this._initTheme(e),this.redraw()},e.prototype.setDirection=function(t){this.contextService.rtl=Boolean(t),this.surface&&"svg"===this.surface.type&&(this.surface.destroy(),this.surface=null)},e.prototype.setIntlService=function(t){this.contextService.intl=t},e.prototype._initTheme=function(t){var e=t||this.theme||{};this.theme=e,this.options=E({},e,this.options);var r=this.options,i=r.pointer;if(b(i)){for(var o=[],n=0;n<i.length;n++)o.push(E({},e.pointer,i[n]));r.pointer=o}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),r=t.border||{},i=new S.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,r.width>0&&(i=La(i,r.width)),Va.fromRect(i,{stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType,lineJoin:"round",lineCap:"round"},fill:{color:t.background}})},e.prototype._initSurface=function(){var t=this.options,e=this.surface,r=this._surfaceElement(),i=this._surfaceSize();wt(r,i),e&&e.options.type===t.renderAs?(this.surface.clear(),this.surface.resize()):(e&&e.destroy(),this.surface=za.create(r,{type:t.renderAs}))},e.prototype._surfaceSize=function(){var t=this.options,e=this._getSize();return t.gaugeArea&&E(e,t.gaugeArea),e},e.prototype._surfaceElement=function(){return this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.element.appendChild(this.surfaceElement)),this.surfaceElement},e.prototype.getSize=function(){return this._getSize()},e.prototype._getSize=function(){var t=this.element,e=this._defaultSize(),r=t.offsetWidth,i=t.offsetHeight;return r||(r=e.width),i||(i=e.height),{width:r,height:i}},e.prototype._defaultSize=function(){return{width:200,height:200}},e.prototype._toggleTransitions=function(t){this.options.transitions=t;for(var e=0;e<this.pointers.length;e++)this.pointers[e].options.animation.transitions=t},e}(S.Class);It(Da,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Na=Da,Fa=S.drawing.Path,Ua=S.drawing.Group,Ha=S.geometry.Point;function Ga(t,e){var r,i,o=t.position,n=t.tickX,s=t.tickY;return t.vertical?(r=new Ha(n,o),i=new Ha(n+e.size,o)):(r=new Ha(o,s),i=new Ha(o,s+e.size)),new Fa({stroke:{color:e.color,width:e.width}}).moveTo(r).lineTo(i)}function Wa(t,e,r,i){var o=e.length;if(i.visible)for(var n=r.mirror,s=r.lineBox,a=i.skip;a<o;a+=i.step)a%i.skipUnit!=0&&(r.tickX=n?s.x2:s.x2-i.size,r.tickY=n?s.y1-i.size:s.y1,r.position=e[a],t.append(Ga(r,i)))}var Ka=function(t){function e(e,r){var i=e||{};!xt(i.reverse)&&!1===i.vertical&&(r||{}).rtl&&(i=Object.assign({},i,{reverse:!0})),t.call(this,0,1,i,r),this.options.minorUnit=this.options.minorUnit||this.options.majorUnit/10}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=E({},this.options,t);return(e=E({},e,{labels:{mirror:e.mirror}})).majorUnit=e.majorUnit||Yt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Ua,e=this.renderLabels(),r=this.renderLine(),i=this.renderTicks(),o=this.renderRanges();return t.append(r,e,i,o),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,r=t.max,i=t.vertical,o=t.labels.mirror,n=t.ranges||[],s=new Ua,a=n.length,p=t.rangeSize||t.minorTicks.size/2,l=0;l<a;l++){var c=Ba(n[l],e,r),h=this.getSlot(c.from,c.to),u=i?this.lineBox():h,f=i?h:this.lineBox();i?u.x1-=p*(o?-1:1):f.y2+=p*(o?-1:1),s.append(Fa.fromRect(new S.geometry.Rect([u.x1,f.y1],[u.x2-u.x1,f.y2-f.y1]),{fill:{color:c.color,opacity:c.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,r=new Ua,i=0;i<t.length;i++)r.append(Ia(t[i],e.labels));return r},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),r=new Ua;if(t.width>0&&t.visible){var i=new Fa({stroke:{color:t.color,dashType:t.dashType,width:t.width}});i.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),r.append(i)}return r},e.prototype.renderTicks=function(){var t=new Ua,e=this.options,r=e.majorTicks.visible?e.majorUnit:0,i={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Wa(t,this.getMajorTickPositions(),i,e.majorTicks),Wa(t,this.getMinorTickPositions(),i,E({},{skipUnit:r/e.minorUnit},e.minorTicks)),t},e}(dr);It(Ka,{min:0,max:50,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},line:{width:.5},labels:{position:"inside",padding:2},mirror:!1,_alignLines:!1});var Xa=Ka,Ya=function(t){function e(e,r){t.call(this);var i=e.options,o=i.min,n=i.max,s=this.options=E({},this.options,r);s.fill=s.color,this.scale=e,xt(s.value)?s.value=At(s.value,o,n):s.value=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.value=function(t){var e=this.options,r=e.value;if(0===arguments.length)return r;var i=this.scale.options,o=i.min,n=i.max;e._oldValue=xt(e._oldValue)?e.value:o,e.value=At(t,o,n),this.elements&&this.repaint()},e}(S.Class);It(Ya,{color:n});var qa=Ya,Za=function(t){function e(e,r){t.call(this,e,r),this.options=E({track:{visible:xt(r.track)}},this.options)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t,e,r,i=this.options,o=this.scale,n=o.options,s=n.mirror,a=n.vertical,p=o.lineBox(),l=i.track.size||i.size,c=i.size/2,h=z(i.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(r=new $t(p.x1+u,p.y1,p.x1+u,p.y2),s?r.x1-=l:r.x2+=l,"barPointer"!==i.shape&&(t=e=new $t(p.x2+u,p.y1-c,p.x2+u,p.y2+c))):(r=new $t(p.x1,p.y1-u,p.x2,p.y1-u),s?r.y2+=l:r.y1-=l,"barPointer"!==i.shape&&(t=e=new $t(p.x1-c,p.y1-u,p.x2+c,p.y1-u))),this.trackBox=r,this.pointerRangeBox=e,this.box=t||r.clone().pad(i.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:xt(t.border)?{color:t.border.width?t.border.color||t.color:"",width:t.border.width,dashType:t.border.dashType,opacity:t.opacity}:null}},e.prototype._margin=function(){var t=this.scale,e=this.options,r=t.options,i=r.mirror,o=r.vertical,n=z(e.margin);return o?n[i?"left":"right"]:n[i?"bottom":"top"]},e}(qa);It(Za,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:z(3),animation:{type:"barPointer"},visible:!0});var $a=Za,Qa=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=t.margin,r=t.from,i=t.to,o=t.vertical,n=o?"x1":"y1";t.mirror===o?(r[n]-=e,i[n]-=e):(r[n]+=e,i[n]+=e);var s=this.fromScale=new S.geometry.Point(r.x1,r.y1),a=this.toScale=new S.geometry.Point(i.x1,i.y1);0!==t.duration&&(t.duration=Math.max(s.distanceTo(a)/t.duration*1e3,1))},e.prototype.step=function(t){var e=ht(this.fromScale.x,this.toScale.x,t),r=ht(this.fromScale.y,this.toScale.y,t);this.element.transform(S.geometry.transform().translate(e,r))},e}(S.drawing.Animation);It(Qa,{easing:"linear",duration:250}),S.drawing.AnimationFactory.current.register("arrowPointer",Qa);var Ja=Qa,tp=S.geometry.Point,ep=S.drawing.Path,rp=function(t){function e(e,r){t.call(this,e,r),xt(this.options.size)||(this.options.size=.6*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(){var t=this.scale,e=this.options.size,r=e/2,i=t.options.mirror?-1:1;return t.options.vertical?[new tp(0,0-r),new tp(0-i*e,0),new tp(0,0+r)]:[new tp(0-r,0),new tp(0,0+i*e),new tp(0+r,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=new Ja(this.elements,E(e.animation,{vertical:t.options.vertical,mirror:t.options.mirror,margin:this._margin(e.margin),from:t.getSlot(e._oldValue),to:t.getSlot(e.value)}));!1===e.animation.transitions&&(r.options.duration=0),r.setup(),r.play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=this.getElementOptions(),i=this.pointerShape(e.value);e.animation.type="arrowPointer";var o=new ep({stroke:r.stroke,fill:r.fill}).moveTo(i[0]).lineTo(i[1]).lineTo(i[2]).close(),n=t.getSlot(e.value);return o.transform(S.geometry.transform().translate(n.x1,n.y1)),this.elements=o,o},e}($a),ip=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setup=function(){var t=this.options,e=this.axis=t.vertical?x:m,r=this.to=t.newPoints[0][e],i=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(r-i)/t.speed*1e3,1)),this._set(i)},e.prototype.step=function(t){var e=ht(this.from,this.to,t);this._set(e)},e.prototype._set=function(t){var e="set"+this.axis.toUpperCase(),r=this.options.newPoints;r[0][e](t),r[1][e](t)},e}(S.drawing.Animation);It(ip,{easing:"linear",speed:250}),S.drawing.AnimationFactory.current.register("barPointer",ip);var op=ip,np=S.drawing.Group,sp=S.drawing.Path,ap=function(t){function e(e,r){t.call(this,e,r),xt(this.options.size)||(this.options.size=.3*this.scale.options.majorTicks.size)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.pointerShape=function(t){var e=this.scale,r=this.options,i=e.options,o=i.mirror,n=i.vertical,s=o===n?-1:1,a=r.size*s,p=e.getSlot(e.options.min),l=e.getSlot(t),c=n?x:m,h=n?m:x,u=this._margin()*s,f=new S.geometry.Point;f[c]=p[c+"1"],f[h]=p[h+"1"];var d=new S.geometry.Point;d[c]=l[c+"1"],d[h]=l[h+"1"],n?(f.translate(u,0),d.translate(u,0)):(f.translate(0,u),d.translate(0,u));var v=d.clone(),y=f.clone();return n?(v.translate(a,0),y.translate(a,0)):(v.translate(0,a),y.translate(0,a)),[f,d,v,y]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=this.pointerShape(e.value),i=this.pointerPath,o=this.pointerShape(e._oldValue);i.moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).lineTo(r[3]).close();var n=new op(i,E(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[o[1],o[2]],newPoints:[r[1],r[2]]}));!1===e.animation.transitions&&(n.options.duration=0),n.setup(),n.play()},e.prototype.render=function(){var t=new np,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var r=this.pointerPath=new sp({stroke:e.stroke,fill:e.fill});return t.append(r),this.elements=t,t},e.prototype.renderTrack=function(){var t=this.options.track,e=t.border||{},r=this.trackBox.clone().pad(e.width||0);return new sp.fromRect(r.toRect(),{fill:{color:t.color,opacity:t.opacity},stroke:{color:e.width?e.color||t.color:"",width:e.width,dashType:e.dashType}})},e}($a),pp=S.drawing.Group,lp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers,r=t.origin.x,i=t.origin.y,o=new $t(r,i,r+t.width(),i+t.height());this.scale.reflow(o),this._shrinkScaleWidth(o);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(o),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new pp,e=this.scale.render(),r=this.pointers;t.append(this.gaugeArea),t.append(e);for(var i=0;i<r.length;i++){var o=r[i];t.append(o.render()),o.value(o.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Xa(t.scale,this.contextService);this.pointers=[];var r=t.pointer;r=b(r)?r:[r];for(var i=0;i<r.length;i++){var o=E({},r[i],{animation:{transitions:t.transitions}}),n="arrow"===o.shape?rp:ap;this.pointers.push(new n(e,o))}},e.prototype._defaultSize=function(){var t=this.options.scale.vertical;return{width:t?60:200,height:t?200:60}},e.prototype._getBox=function(t){for(var e,r=this.scale,i=this.pointers,o=t.center(),n=i[0].box.clone().wrap(r.box),s=0;s<i.length;s++)n.wrap(i[s].box.clone());return r.options.vertical?(e=n.width()/2,n=new $t(o.x-e,t.y1,o.x+e,t.y2)):(e=n.height()/2,n=new $t(t.x1,o.y-e,t.x2,o.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,r=this.pointers,i=e.box,o=r[0].box.clone().wrap(e.box),n=this.bbox,s=0;s<r.length;s++)o.wrap(r[s].box.clone());e.options.vertical?(t=n.center().x-o.center().x,e.reflow(new $t(i.x1+t,n.y1,i.x2+t,n.y2))):(t=n.center().y-o.center().y,e.reflow(new $t(i.x1,i.y1+t,i.x2,i.y2+t)));for(var a=0;a<r.length;a++)r[a].reflow(this.bbox)},e.prototype._shrinkScaleWidth=function(t){var e=this.scale;if(!e.options.vertical){var r=e.contentBox().width()-t.width();r>0&&(e.box.shrink(r,0),e.box.alignTo(t,"center"),e.reflow(e.box))}},e.prototype._shrinkElements=function(){for(var t=this.scale,e=this.pointers,r=t.box.clone(),i=t.options.vertical?"y":"x",o=e[0].box,n=0;n<e.length;n++)o.wrap(e[n].box.clone());r[i+1]+=Math.max(r[i+1]-o[i+1],0),r[i+2]-=Math.max(o[i+2]-r[i+2],0),t.reflow(r);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Na);It(lp,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var cp=lp,hp=S.drawing.Arc,up=S.drawing.Path,fp=S.drawing.Group;function dp(t,e,r,i){var o=new fp,n=t.center,s=t.getRadiusX();if(i.visible)for(var a=0;a<e.length;a++){var p=t.pointAt(e[a]),l=new S.geometry.Point(n.x+s-i.size,n.y).rotate(e[a],n);o.append(new up({stroke:{color:i.color,width:i.width}}).moveTo(p).lineTo(l))}return o}function vp(t,e,r,i){return{from:t,to:e,color:r,opacity:i}}var yp=function(t){function e(e,r){t.call(this,0,1,e,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){var e=E({},this.options,t);return e.majorUnit=e.majorUnit||Yt(e.min,e.max),e.minorUnit=e.minorUnit||e.majorUnit/10,e},e.prototype.initFields=function(){},e.prototype.render=function(t,e){var r=this.renderArc(t,e);this.bbox=r.bbox(),this.labelElements=this.renderLabels(),this.ticks=this.renderTicks(),this.ranges=this.renderRanges()},e.prototype.reflow=function(t){var e=t.center(),r=Math.min(t.height(),t.width())/2;if(!xt(this.bbox))return this.render(e,r);this.bbox=this.arc.bbox(),this.radius(this.arc.getRadiusX()),this.repositionRanges(),this.renderLabels()},e.prototype.slotAngle=function(t){var e=this.options,r=e.min,i=e.max,o=e.reverse,n=e.startAngle,s=e.endAngle,a=s-n;return(o?s-(t-r)/(i-r)*a:(t-r)/(i-r)*a+n)+180},e.prototype.hasRanges=function(){var t=this.options.ranges;return t&&t.length},e.prototype.ticksSize=function(){var t=this.options,e=t.majorTicks,r=t.minorTicks,i=0;return e.visible&&(i=e.size),r.visible&&(i=Math.max(r.size,i)),i},e.prototype.labelsCount=function(){var e=t.prototype.labelsCount.call(this),r=this.options;return r.endAngle-r.startAngle>=360&&r.max%r.majorUnit==0&&(e-=1),e},e.prototype.renderLabels=function(){var t=this.options,e=this.arc.clone(),r=e.getRadiusX(),i=this.tickAngles(e,t.majorUnit),o=t.rangeSize=t.rangeSize||.1*r,n=new fp,s=.05*r;xt(t.rangeDistance)?s=t.rangeDistance:t.rangeDistance=s;var a=t.labels,p="inside"===a.position,l=xt(this.labelElements);p&&(r-=this.ticksSize(),this.hasRanges()&&!l&&(r-=o+s),e.setRadiusX(r).setRadiusY(r));for(var c=this.labels,h=c.length,u=z(a.padding),f=(u.left+u.right)/2,d=(u.top+u.bottom)/2,v=0;v<h;v++){var y=c[v],g=y.box.width()/2,m=y.box.height()/2,x=i[v],b=(x-180)*ja,_=e.pointAt(x),w=_.x+Math.cos(b)*(g+f)*(p?1:-1),O=_.y+Math.sin(b)*(m+d)*(p?1:-1);y.reflow(new $t(w-g,O-m,w+g,O+m));var P=new S.geometry.Point(y.box.x1,y.box.y1),A=void 0;if(l){var C=(A=this.labelElements.children[v]).bbox().origin,k=A.transform()||S.geometry.transform();k.translate(P.x-C.x,P.y-C.y),A.transform(k)}else A=Ia(y,t.labels),n.append(A);this.bbox=S.geometry.Rect.union(this.bbox,A.bbox())}return n},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,r=e.rangeDistance,i=e.rangeSize,o=this.getRangeRadius();"inside"===this.options.labels.position&&(o+=i+r);for(var n=o+i/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=S.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,r=new fp;if(e){var i=this.options,o=i.rangeSize,n=i.reverse,s=i.rangeDistance,a=this.getRangeRadius();this.radius(this.radius()-o-s);for(var p=0;p<e;p++){var l=t[p],c=this.slotAngle(l[n?"to":"from"]),h=this.slotAngle(l[n?"from":"to"]);h-c!=0&&r.append(this.createRange(c,h,a,l))}}return r},e.prototype.createRange=function(t,e,r,i){var o=this.options.rangeSize,n=new S.geometry.Arc(this.arc.center,{radiusX:r+o/2,radiusY:r+o/2,startAngle:t,endAngle:e});return new hp(n,{stroke:{width:o,color:i.color,opacity:i.opacity,lineCap:i.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],r=e.length,i=[];if(r){var o=t.min,n=t.max,s=t.rangePlaceholderColor;i.push(vp(o,n,s));for(var a=0;a<r;a++)for(var p=Ba(e[a],o,n),l=i.length,c=0;c<l;c++){var h=i[c];if(h.from<=p.from&&p.from<=h.to){i.push(vp(p.from,p.to,p.color,p.opacity)),h.from<=p.to&&p.to<=h.to&&i.push(vp(p.to,h.to,s,p.opacity)),h.to=p.from;break}}}return i},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,r=e.rangeSize,i=e.rangeDistance,o=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-o-i-r:t.getRadiusX()-r},e.prototype.renderArc=function(t,e){var r=this.options;return this.arc=new S.geometry.Arc(t,{radiusX:e,radiusY:e,startAngle:r.startAngle+180,endAngle:r.endAngle+180})},e.prototype.renderTicks=function(){var t=this.arc,e=this.options,r=t.clone();this.majorTickAngles=this.tickAngles(t,e.majorUnit),this.majorTicks=dp(r,this.majorTickAngles,e.majorUnit,e.majorTicks);var i=new fp;i.append(this.majorTicks);var o=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=o-n,"outside"===e.labels.position){var s=r.getRadiusX();r.setRadiusX(s-o+n).setRadiusY(s-o+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=dp(r,this.minorTickAngles,e.minorUnit,e.minorTicks),i.append(this.minorTicks),i},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,r=e.majorUnit/e.minorUnit,i=t.length-1;i>=0;i--)i%r==0&&t.splice(i,1);return t},e.prototype.tickAngles=function(t,e){var r=this.options,i=r.reverse,o=r.max-r.min,n=t.endAngle-t.startAngle,s=o/e,a=t.startAngle,p=n/s;i&&(a+=n,p=-p),n>=360&&r.max%e==0&&(s-=1);for(var l=[],c=0;c<s;c++)l.push(jt(a,3)),a+=p;return jt(a)<=t.endAngle&&l.push(a),l},e.prototype.radius=function(t){if(!t)return this.arc.getRadiusX();this.arc.setRadiusX(t).setRadiusY(t),this.repositionTicks(this.majorTicks.children,this.majorTickAngles),this.repositionTicks(this.minorTicks.children,this.minorTickAngles,!0)},e.prototype.repositionTicks=function(t,e,r){var i=r&&this._tickDifference||0,o=this.arc,n=o.getRadiusX();r&&"outside"===this.options.labels.position&&0!==i&&(o=this.arc.clone()).setRadiusX(n-i).setRadiusY(n-i);for(var s=0;s<t.length;s++){var a=o.pointAt(e[s]),p=t[s].segments,l=a.x-p[0].anchor().x,c=a.y-p[0].anchor().y;t[s].transform((new S.geometry.transform).translate(l,c))}},e}(dr);It(yp,{min:0,max:100,majorTicks:{size:15,align:"inside",color:n,width:.5,visible:!0},minorTicks:{size:10,align:"inside",color:n,width:.5,visible:!0},startAngle:-30,endAngle:210,labels:{position:"inside",padding:2}});var gp=yp,mp=function(t){function e(e,r){t.call(this,e,r);var i=this.options;i.duration=Math.max(Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3,1)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,r=ht(e.oldAngle,e.newAngle,t);this.element.transform(S.geometry.transform().rotate(r,e.center))},e}(S.drawing.Animation);It(mp,{easing:"linear",duration:150}),S.drawing.AnimationFactory.current.register("radialPointer",mp);var xp=mp,bp=S.drawing.Circle,_p=S.drawing.Group,wp=S.drawing.Path,Op=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setAngle=function(t){this.elements.transform(S.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(i):new xp(this.elements,E(e.animation,{oldAngle:r,newAngle:i})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=new _p;return!1!==e.animation&&E(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),r.append(this._renderNeedle(),this._renderCap()),this.elements=r,this.setAngle(ja),r},e.prototype.reflow=function(t){var e=this.center=t.center,r=At(this.options.length||1,.1,1.5),i=this.radius=t.getRadiusX()*r,o=this.capSize=Math.round(i*this.options.cap.size);this.bbox=S.geometry.Rect.fromPoints(new S.geometry.Point(e.x-o,e.y-o),new S.geometry.Point(e.x+o,e.y+o))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,r=this.options.color,i=new wp({fill:{color:r},stroke:{color:r,width:.5}});return i.moveTo(e.x+this.radius-t,e.y).lineTo(e.x,e.y-this.capSize/2).lineTo(e.x,e.y+this.capSize/2).close(),i},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,r=new S.geometry.Circle(this.center,this.capSize);return new bp(r,{fill:{color:e},stroke:{color:e}})},e}(qa);It(Op,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var Sp=Op,Pp=S.drawing.Group,Ap=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.pointers;this.scale.reflow(t),this._initialPlotArea=this.scale.bbox;for(var r=0;r<e.length;r++)e[r].reflow(this.scale.arc),this._initialPlotArea=S.geometry.Rect.union(this._initialPlotArea,e[r].bbox);this.fitScale(t),this.alignScale(t),this._buildVisual(this.gaugeArea,e,this.scale),this._draw()},e.prototype._buildVisual=function(t,e,r){var i=this._visuals=new Pp;i.append(t),i.append(r.ticks),i.append(r.ranges),this._buildPointers(e),i.append(r.labelElements)},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.render(),this._visuals.append(r.elements),r.value(r.options.value)}},e.prototype.fitScale=function(t){for(var e,r,i,o,n,s=this.scale.arc,a=this._initialPlotArea,p=Math.abs(this.getDiff(a,t)),l=jt(p,3),c=jt(-p,3),h=0,u=0;!(!(u++<100)||(h=n===i?h+1:0)>5||l!==o&&0<=(e=this.getPlotBox(l,t,s))&&e<=2||c!==o&&0<=(i=this.getPlotBox(c,t,s))&&i<=2||(o=e>0&&i>0?2*l:e<0&&i<0?2*c:jt((l+c)/2||1,3),0<=(r=this.getPlotBox(o,t,s))&&r<=2));)n=i,r>0?(c=o,i=r):(l=o,e=r)},e.prototype.getPlotBox=function(t,e,r){var i=this.scale,o=this.pointers,n=r.getRadiusX(),s=r.clone();s.setRadiusX(n+t).setRadiusY(n+t),i.arc=s,i.reflow(e),this.plotBbox=i.bbox;for(var a=0;a<o.length;a++)o[a].reflow(s),this.plotBbox=S.geometry.Rect.union(this.plotBbox,o[a].bbox);return this.getDiff(this.plotBbox,e)},e.prototype.getDiff=function(t,e){return Math.min(e.width()-t.width(),e.height()-t.height())},e.prototype.alignScale=function(t){var e=this.plotBbox.center(),r=t.center(),i=e.x-r.x,o=e.y-r.y,n=this.scale,s=this.pointers;n.arc.center.x-=i,n.arc.center.y-=o,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=S.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,r=this.scale=new gp(t.scale,this.contextService);this.pointers=[];for(var i=b(e)?e:[e],o=0;o<i.length;o++){var n=new Sp(r,E({},i[o],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Na);It(Ap,{transitions:!0,gaugeArea:{background:""}});var Cp=Ap,kp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.rangeSegments=function(){var t=this.options;return[{from:t.min,to:t.max,color:t.rangePlaceholderColor,lineCap:t.rangeLineCap}]},e.prototype.hasRanges=function(){return!0},e.prototype.placeholderRangeAngle=function(t){var e=this.ranges.children[0].geometry();this.options.reverse?e.setEndAngle(t):e.setStartAngle(t)},e.prototype.addRange=function(t,e,r){var i=this.options.reverse,o=this.slotAngle(i?e:t),n=this.slotAngle(i?t:e),s=this.createRange(o,n,this.getRangeRadius(),r);return this.ranges.append(s),s},e}(gp);It(kp,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var jp=kp,Mp=function(t){function e(e,r){t.call(this,e,r);var i=this.options,o=Math.abs(i.newAngle-i.oldAngle)/i.duration*1e3;i.duration=At(o,150,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new S.Color(n),this.color=new S.Color(s))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.step=function(t){var e=this.options,r=this.startColor,i=this.color,o=ht(e.oldAngle,e.newAngle,t);if(this.element.angle(o),i){var n=jt(ht(r.r,i.r,t)),s=jt(ht(r.g,i.g,t)),a=jt(ht(r.b,i.b,t));this.element.stroke(new S.Color(n,s,a).toHex())}},e}(S.drawing.Animation);It(Mp,{easing:"linear",duration:150}),S.drawing.AnimationFactory.current.register("radialRangePointer",Mp);var Tp=Mp,Ep=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),i=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(i),this.stroke(this.currentColor())):(this.animation=new Tp(this,E(e.animation,{oldAngle:r,newAngle:i})),this.animation.play())},e.prototype.angle=function(t){var e=this.elements.geometry();this.scale.options.reverse?e.setStartAngle(t):e.setEndAngle(t),this.scale.placeholderRangeAngle(t)},e.prototype.stroke=function(t){this.elements.stroke(t)},e.prototype.render=function(){if(!this.elements){var t=this.scale,e=this.options;!1!==e.animation&&E(e.animation,{startAngle:0,center:t.arc.center,reverse:t.options.reverse}),this.elements=t.addRange(t.options.min,this.options.value,{color:this.currentColor(),opacity:e.opacity,lineCap:t.options.rangeLineCap})}},e.prototype.currentColor=function(){var t=this.scale.options,e=t.min,r=t.max,i=this.options,o=i.colors,n=i.color,s=i.value,a=C(s)?s:e;if(o)for(var p=0;p<o.length;p++){var l=o[p],c=l.color,h=l.from;void 0===h&&(h=e);var u=l.to;if(void 0===u&&(u=r),h<=a&&a<=u)return c}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(qa);It(Ep,{animation:{type:"radialRangePointer",duration:150}});var Rp=Ep,Ip=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initTheme=function(e){t.prototype._initTheme.call(this,e),this.options.color=this.options.color||(this.theme.pointer||{}).color},e.prototype._createModel=function(){var t=this.options,e=this.scale=new jp(t.scale,this.contextService),r=new Rp(e,E({},{colors:t.colors,color:t.color,value:t.value,opacity:t.opacity,animation:{transitions:t.transitions}}));this.pointers=[r]},e.prototype._buildPointers=function(t){for(var e=0;e<t.length;e++){var r=t[e];r.render(),r.value(r.options.value)}},e.prototype._setValueOptions=function(t){this.options.value=t},e.prototype.currentColor=function(){var t=this.pointers[0];if(t)return t.currentColor()},e.prototype.centerLabelPosition=function(t,e){var r=this.getSize(),i=this.scale.arc.center,o=i.x-t/2,n=i.y-e/2;if(t<r.width){var s=o+t;o=Math.max(o,0),s>r.width&&(o-=s-r.width)}if(e<r.height){var a=this.scale.bbox,p=a.bottomRight().y,l=n+e;n=Math.max(n,a.origin.y),l>p&&(n-=l-p)}return{left:o,top:n}},e}(Cp),Bp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._createModel=function(){var e=this.options.scale;"number"!=typeof e.startAngle&&(e.startAngle=90),e.endAngle=e.startAngle+360,t.prototype._createModel.call(this)},e}(Ip),Lp=function(t){function e(e){t.call(this),this.setOptions(e),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.setOptions=function(t){this.options=Object.assign({},this.options,t),this.quietZoneLength=this.options.addQuietZone?2*this.options.quietZoneLength:0},e.prototype.encode=function(t,e,r){var i=xt(t)?String(t):t;return this.initValue(i,e,r),this.options.addQuietZone&&this.addQuietZone(),this.addData(),this.options.addQuietZone&&this.addQuietZone(),{baseUnit:this.baseUnit,pattern:this.pattern}},e.prototype.initValue=function(){},e.prototype.addQuietZone=function(){this.pattern.push(this.options.quietZoneLength||10)},e.prototype.addData=function(){},e.prototype.invalidCharacterError=function(t){throw new Error("Character '"+t+"' is not valid for symbology "+this.name)},e}(S.Class);It(Lp,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Vp=Object.assign,zp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Vp(this,{name:"Code 11",characterMap:["111121","211121","121121","221111","112121","212111","122111","111221","211211","211111","112111"],cCheckSumTotal:10,kCheckSumTotal:9,kCheckSumMinLength:10,checkSumMod:11,DASH_VALUE:10,DASH:"-",START:"112211",STOP:"11221"})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.width=e,this.totalUnits=0},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addCheckSum=function(){var t=this.value,e=t.length,r=this.getWeightedSum(t,e,this.cCheckSumTotal)%this.checkSumMod;if(this.checksum=String(r),this.addPattern(this.characterMap[r]),++e>=this.kCheckSumMinLength){var i=(r+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=i,this.addPattern(this.characterMap[i])}},e.prototype.getWeightedSum=function(t,e,r){for(var i=0,o=0;o<t.length;o++)i+=this.weightedValue(this.getValue(t.charAt(o)),e,o,r);return i},e.prototype.weightedValue=function(t,e,r,i){return((e-r)%i||i)*t},e.prototype.getValue=function(t){return isNaN(t)?(t!==this.DASH&&this.invalidCharacterError(t),this.DASH_VALUE):parseInt(t,10)},e.prototype.addCharacter=function(t){var e=this.getValue(t),r=this.characterMap[e];this.addPattern(r)},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=parseInt(t.charAt(r),10),this.pattern.push(e),this.totalUnits+=e},e}(Lp);It(zp,{addCheckSum:!0});var Dp=Object.assign,Np=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Dp(this,{minBaseUnitLength:.7})},e.prototype.addData=function(){var t=this.value;this.addStart();for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.pushCheckSum(),this.addStop(),this.prepareValues()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addBase(e)},e.prototype.addBase=function(){},e}(Lp),Fp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Dp(this,{name:"Code 39",checkSumMod:43,minRatio:2.5,maxRatio:3,gapWidth:1,splitCharacter:"|",patternMappings:{b:"1|",w:"1|",B:"ratio|",W:"ratio|"},characterMap:{0:{pattern:"bwbWBwBwb",value:0},1:{pattern:"BwbWbwbwB",value:1},2:{pattern:"bwBWbwbwB",value:2},3:{pattern:"BwBWbwbwb",value:3},4:{pattern:"bwbWBwbwB",value:4},5:{pattern:"BwbWBwbwb",value:5},6:{pattern:"bwBWBwbwb",value:6},7:{pattern:"bwbWbwBwB",value:7},8:{pattern:"BwbWbwBwb",value:8},9:{pattern:"bwBWbwBwb",value:9},A:{pattern:"BwbwbWbwB",value:10},B:{pattern:"bwBwbWbwB",value:11},C:{pattern:"BwBwbWbwb",value:12},D:{pattern:"bwbwBWbwB",value:13},E:{pattern:"BwbwBWbwb",value:14},F:{pattern:"bwBwBWbwb",value:15},G:{pattern:"bwbwbWBwB",value:16},H:{pattern:"BwbwbWBwb",value:17},I:{pattern:"bwBwbWBwb",value:18},J:{pattern:"bwbwBWBwb",value:19},K:{pattern:"BwbwbwbWB",value:20},L:{pattern:"bwBwbwbWB",value:21},M:{pattern:"BwBwbwbWb",value:22},N:{pattern:"bwbwBwbWB",value:23},O:{pattern:"BwbwBwbWb",value:24},P:{pattern:"bwBwBwbWb",value:25},Q:{pattern:"bwbwbwBWB",value:26},R:{pattern:"BwbwbwBWb",value:27},S:{pattern:"bwBwbwBWb",value:28},T:{pattern:"bwbwBwBWb",value:29},U:{pattern:"BWbwbwbwB",value:30},V:{pattern:"bWBwbwbwB",value:31},W:{pattern:"BWBwbwbwb",value:32},X:{pattern:"bWbwBwbwB",value:33},Y:{pattern:"BWbwBwbwb",value:34},Z:{pattern:"bWBwBwbwb",value:35},"-":{pattern:"bWbwbwBwB",value:36},".":{pattern:"BWbwbwBwb",value:37}," ":{pattern:"bWBwbwBwb",value:38},$:{pattern:"bWbWbWbwb",value:39},"/":{pattern:"bWbWbwbWb",value:40},"+":{pattern:"bWbwbWbWb",value:41},"%":{pattern:"bwbWbWbWb",value:42},START:{pattern:"bWbwBwBwb"}}})},e.prototype.initValue=function(t,e,r){this.width=e,this.height=r,this.value=t,this.dataLength=t.length,this.pattern=[],this.patternString=""},e.prototype.prepareValues=function(){var t,e=this.minBaseUnitLength,r=this.minRatio,i=Math.max(.15*this.width,24),o=this.maxRatio;if(this.height<i)throw new Error("Insufficient Height. The minimum height for value: "+this.value+" is: "+i);for(t=this.getBaseUnit(o);t<e&&o>r;)o=parseFloat((o-.1).toFixed(1)),t=this.getBaseUnit(o);if(t<e){var n=Math.ceil(this.getBaseWidth(r)*e);throw new Error("Insufficient width. The minimum width for value: "+this.value+" is: "+n)}this.ratio=o,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,o).split(this.splitCharacter))},e.prototype.getBaseUnit=function(t){return this.width/this.getBaseWidth(t)},e.prototype.getBaseWidth=function(t){var e=3*(t+2);return this.quietZoneLength+e*(this.dataLength+2)+this.gapWidth*(this.dataLength+1)},e.prototype.addStart=function(){this.addPattern(this.characterMap.START.pattern),this.addCharacterGap()},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.addCharacterGap()},e.prototype.addStop=function(){this.addPattern(this.characterMap.START.pattern)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.patternString+=this.patternMappings[t.charAt(e)]},e.prototype.addCharacterGap=function(){this.patternString+=this.gapWidth+this.splitCharacter},e}(Np);It(Fp,{addCheckSum:!1});var Up={addCharacter:function(t){this.characterMap[t]?this.addBase(this.characterMap[t]):t.charCodeAt(0)>127?this.invalidCharacterError(t):this.addExtended(t.charCodeAt(0))},addExtended:function(t){for(var e,r=0;r<this.extendedMappings.length;r++)if(e=this.extendedMappings[r].call(this,t)){for(var i=0;i<e.length;i++){var o=e[i];this.addBase(o)}return void(this.dataLength+=e.length-1)}},extendedMappings:[function(t){if(97<=t&&t<=122)return[this.characterMap[this.shiftCharacters[0]],this.characterMap[String.fromCharCode(t-32)]]},function(t){if(33<=t&&t<=58)return[this.characterMap[this.shiftCharacters[1]],this.characterMap[String.fromCharCode(t+32)]]},function(t){if(1<=t&&t<=26)return[this.characterMap[this.shiftCharacters[2]],this.characterMap[String.fromCharCode(t+64)]]},function(t){var e,r;if(this.specialAsciiCodes[t]){e=[];for(var i=0;i<this.specialAsciiCodes[t].length;i++)e.push(this.characterMap[this.shiftCharacters[3]]),e.push(this.characterMap[this.specialAsciiCodes[t][i]])}else r=6*Math.floor(t/32)+(t-27)%32+64,e=[this.characterMap[this.shiftCharacters[3]],this.characterMap[String.fromCharCode(r)]];return e}],specialAsciiCodes:{0:["U"],64:["V"],96:["W"],127:["T","X","Y","Z"]},shiftValuesAsciiCodes:{39:36,40:47,41:43,42:37},characterMap:{"+":!1,"/":!1,$:!1,"%":!1},shiftCharacters:["SHIFT0","SHIFT1","SHIFT2","SHIFT3"]},Hp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),E(this,Up,{name:"Code 39 extended",characterMap:{SHIFT0:{pattern:"bWbwbWbWb",value:41},SHIFT1:{pattern:"bWbWbwbWb",value:40},SHIFT2:{pattern:"bWbWbWbwb",value:39},SHIFT3:{pattern:"bwbWbWbWb",value:42}}})},e}(Fp),Gp=Object.assign,Wp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Gp(this,{name:"Code 93",cCheckSumTotal:20,kCheckSumTotal:15,checkSumMod:47,characterMap:{0:{pattern:"131112",value:0},1:{pattern:"111213",value:1},2:{pattern:"111312",value:2},3:{pattern:"111411",value:3},4:{pattern:"121113",value:4},5:{pattern:"121212",value:5},6:{pattern:"121311",value:6},7:{pattern:"111114",value:7},8:{pattern:"131211",value:8},9:{pattern:"141111",value:9},A:{pattern:"211113",value:10},B:{pattern:"211212",value:11},C:{pattern:"211311",value:12},D:{pattern:"221112",value:13},E:{pattern:"221211",value:14},F:{pattern:"231111",value:15},G:{pattern:"112113",value:16},H:{pattern:"112212",value:17},I:{pattern:"112311",value:18},J:{pattern:"122112",value:19},K:{pattern:"132111",value:20},L:{pattern:"111123",value:21},M:{pattern:"111222",value:22},N:{pattern:"111321",value:23},O:{pattern:"121122",value:24},P:{pattern:"131121",value:25},Q:{pattern:"212112",value:26},R:{pattern:"212211",value:27},S:{pattern:"211122",value:28},T:{pattern:"211221",value:29},U:{pattern:"221121",value:30},V:{pattern:"222111",value:31},W:{pattern:"112122",value:32},X:{pattern:"112221",value:33},Y:{pattern:"122121",value:34},Z:{pattern:"123111",value:35},"-":{pattern:"121131",value:36},".":{pattern:"311112",value:37}," ":{pattern:"311211",value:38},$:{pattern:"321111",value:39},"/":{pattern:"112131",value:40},"+":{pattern:"113121",value:41},"%":{pattern:"211131",value:42},SHIFT0:{pattern:"122211",value:46},SHIFT1:{pattern:"311121",value:45},SHIFT2:{pattern:"121221",value:43},SHIFT3:{pattern:"312111",value:44},START:{pattern:"111141"},TERMINATION_BAR:"1"}})},e.prototype.initValue=function(t,e,r){this.value=t,this.width=e,this.height=r,this.pattern=[],this.values=[],this.dataLength=t.length},e.prototype.prepareValues=function(){var t=Math.max(.15*this.width,24);if(this.height<t)throw new Error("Insufficient Height");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength)throw new Error("Insufficient Width")},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(9*(this.dataLength+2+2)+this.quietZoneLength+1)},e.prototype.addStart=function(){var t=this.characterMap.START.pattern;this.addPattern(t)},e.prototype.addStop=function(){this.addStart(),this.pattern.push(this.characterMap.TERMINATION_BAR)},e.prototype.addBase=function(t){this.addPattern(t.pattern),this.values.push(t.value)},e.prototype.pushCheckSum=function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var r=0;r<e.length;r++)t=this.characterMap[this._findCharacterByValue(e[r])],this.addPattern(t.pattern)},e.prototype._getCheckValues=function(){var t,e,r=this.values,i=r.length,o=0;for(e=i-1;e>=0;e--)o+=this.weightedValue(r[e],i-e,this.cCheckSumTotal);for(t=o%this.checkSumMod,o=this.weightedValue(t,1,this.kCheckSumTotal),e=i-1;e>=0;e--)o+=this.weightedValue(r[e],i-e+1,this.kCheckSumTotal);return[t,o%this.checkSumMod]},e.prototype._findCharacterByValue=function(t){for(var e in this.characterMap)if(this.characterMap[e].value===t)return e},e.prototype.weightedValue=function(t,e,r){return(e%r||r)*t},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=parseInt(t.charAt(r),10),this.pattern.push(e)},e}(Np),Kp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),E(this,Up,{name:"Code 93 extended",pushCheckSum:function(){var t,e=this._getCheckValues();this.checksum=e.join("");for(var r=0;r<e.length;r++)if(t=e[r],this.shiftValuesAsciiCodes[t])this.addExtended(this.shiftValuesAsciiCodes[t]);else{var i=this._findCharacterByValue(t);this.addPattern(this.characterMap[i].pattern)}}})},e}(Wp),Xp=/^\d+$/,Yp=Object.assign,qp=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Yp(this,{name:"Postnet",START:"2",VALID_CODE_LENGTHS:[5,9,11],DIGIT_SEPARATOR:"-",characterMap:["22111","11122","11212","11221","12112","12121","12211","21112","21121","21211"]})},e.prototype.initValue=function(t,e,r){this.height=r,this.width=e,this.baseHeight=r/2,this.value=t.replace(new RegExp(this.DIGIT_SEPARATOR,"g"),""),this.pattern=[],this.validate(this.value),this.checkSum=0,this.setBaseUnit()},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.START),this.pattern.pop()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];this.checkSum+=parseInt(t,10),this.addPattern(e)},e.prototype.addCheckSum=function(){this.checksum=(10-this.checkSum%10)%10,this.addCharacter(this.checksum)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(10*(this.value.length+1)+3+this.quietZoneLength)},e.prototype.validate=function(t){if(Xp.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!ct(t.length,this.VALID_CODE_LENGTHS))throw new Error("Invalid value length. Valid lengths for the Postnet symbology are "+this.VALID_CODE_LENGTHS.join(","))},e.prototype.addPattern=function(t){for(var e,r=0;r<t.length;r++)e=this.height-this.baseHeight*t.charAt(r),this.pattern.push({width:1,y1:e,y2:this.height}),this.pattern.push(1)},e}(Lp),Zp=/^\d+$/,$p=/^[a-z0-9]+$/i,Qp=Object.assign,Jp=function(t){function e(e){t.call(this),this.encoding=e,this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){},e.prototype.addStart=function(){},e.prototype.is=function(){},e.prototype.isCode=function(){return!1},e.prototype.move=function(){},e.prototype.pushState=function(){},e}(S.Class),tl=function(t){function e(e,r){t.call(this,e),this.states=r,this._initMoves(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),E(this,{FNC4:"FNC4",SHIFT:98})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=t.charCodeAt(e);return this.isCode(r)},e.prototype.move=function(t){for(var e=0;!this._moves[e].call(this,t)&&e<this._moves.length;)e++},e.prototype.pushState=function(t){var e,r=this.states,i=t.value,o=i.length;if(ct("C",r)){var n=i.substr(t.index).match(/\d{4,}/g);n&&(o=i.indexOf(n[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<o;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],ct(this.FNC4,t)&&this._moves.push(this._moveFNC),ct(this.shiftKey,t)&&this._moves.push(this._shiftState),this._moves.push(this._moveState)},e.prototype._moveFNC=function(t){if(t.fnc)return t.fnc=!1,t.previousState===this.key},e.prototype._shiftState=function(t){if(t.previousState===this.shiftKey&&(t.index+1>=t.value.length||this.encoding[this.shiftKey].is(t.value,t.index+1)))return this.encoding.addPattern(this.SHIFT),t.shifted=!0,!0},e.prototype._moveState=function(){return this.encoding.addPattern(this.MOVE),!0},e}(Jp),el={};el.A=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"A",shiftKey:"B",MOVE:101,START:103})},e.prototype.isCode=function(t){return 0<=t&&t<96},e.prototype.getValue=function(t){return t<32?t+64:t-32},e}(tl),el.B=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"B",shiftKey:"A",MOVE:100,START:104})},e.prototype.isCode=function(t){return 32<=t&&t<128},e.prototype.getValue=function(t){return t-32},e}(tl),el.C=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=pl(t,e,4);return(e+4<=t.length||2===t.length)&&Zp.test(r)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=pl(t.value,t.index,2))&&Zp.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(Jp),el.FNC4=function(t){function e(e,r){t.call(this,e),this._initSubStates(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"FNC4",dependentStates:["A","B"]})},e.prototype.addStart=function(t){var e=t.value.charCodeAt(0)-128,r=this._getSubState(e);this.encoding[r].addStart()},e.prototype.is=function(t,e){var r=t.charCodeAt(e);return this.isCode(r)},e.prototype.isCode=function(t){return 128<=t&&t<256},e.prototype.pushState=function(t){var e,r=this._initSubState(t),i=this.encoding,o=r.value.length;if(t.index+=o,o<3)for(;r.index<o;r.index++)e=r.value.charCodeAt(r.index),r.state=this._getSubState(e),r.previousState!==r.state&&(r.previousState=r.state,i[r.state].move(r)),i.addPattern(i[r.state].MOVE),i.addPattern(i[r.state].getValue(e));else r.state!==r.previousState&&i[r.state].move(r),this._pushStart(r),i.pushData(r,this.subStates),t.index<t.value.length&&this._pushStart(r);t.fnc=!0,t.state=r.state},e.prototype._pushStart=function(t){this.encoding.addPattern(this.encoding[t.state].MOVE),this.encoding.addPattern(this.encoding[t.state].MOVE)},e.prototype._initSubState=function(t){var e={value:this._getAll(t.value,t.index),index:0};return e.state=this._getSubState(e.value.charCodeAt(0)),e.previousState=t.previousState===this.key?e.state:t.previousState,e},e.prototype._initSubStates=function(t){this.subStates=[];for(var e=0;e<t.length;e++)ct(t[e],this.dependentStates)&&this.subStates.push(t[e])},e.prototype._getSubState=function(t){for(var e=0;e<this.subStates.length;e++)if(this.encoding[this.subStates[e]].isCode(t))return this.subStates[e]},e.prototype._getAll=function(t,e){for(var r,i="",o=e;(r=t.charCodeAt(o++))&&this.isCode(r);)i+=String.fromCharCode(r-128);return i},e}(Jp),el.FNC1=function(t){function e(e,r){t.call(this,e),this.states=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{key:"FNC1",startState:"C",startAI:"(",endAI:")",dependentStates:["C","B"],applicationIdentifiers:{22:{max:29,type:"alphanumeric"},402:{length:17},7004:{max:4,type:"alphanumeric"},242:{max:6,type:"alphanumeric"},8020:{max:25,type:"alphanumeric"},703:{min:3,max:30,type:"alphanumeric"},8008:{min:8,max:12,type:"alphanumeric"},253:{min:13,max:17,type:"alphanumeric"},8003:{min:14,max:30,type:"alphanumeric"},multiKey:[{ids:["15","17","8005","8100"],ranges:[[11,13],[310,316],[320,336],[340,369]],type:{length:6}},{ids:["240","241","250","251","400","401","403","7002","8004","8007","8110"],ranges:[[-9]],type:{max:30,type:"alphanumeric"}},{ids:["7001"],ranges:[[410,414]],type:{length:13}},{ids:["10","21","254","420","8002"],type:{max:20,type:"alphanumeric"}},{ids:["00","8006","8017","8018"],type:{length:18}},{ids:["01","02","8001"],type:{length:14}},{ids:["422"],ranges:[[424,426]],type:{length:3}},{ids:["20","8102"],type:{length:2}},{ids:["30","37"],type:{max:8,type:"alphanumeric"}},{ids:["390","392"],type:{max:15,type:"alphanumeric"}},{ids:["421","423"],type:{min:3,max:15,type:"alphanumeric"}},{ids:["391","393"],type:{min:3,max:18,type:"alphanumeric"}},{ids:["7003","8101"],type:{length:10}}]},START:102})},e.prototype.addStart=function(){this.encoding[this.startState].addStart()},e.prototype.is=function(){return ct(this.key,this.states)},e.prototype.pushState=function(t){var e,r,i,o=this.encoding,n=t.value.replace(/\s/g,""),s=new RegExp("["+this.startAI+this.endAI+"]","g"),a=t.index,p={state:this.startState};o.addPattern(this.START);for(;;){if(p.index=0,(e=(i=n.charAt(a)===this.startAI?2:0)>0?this.getBySeparator(n,a):this.getByLength(n,a)).ai.length)r=a+i+e.id.length+e.ai.length;else if((r=n.indexOf(this.startAI,a+1))<0){if(a+e.ai.max+e.id.length+i<n.length)throw new Error("Separators are required after variable length identifiers");r=n.length}if(p.value=n.substring(a,r).replace(s,""),this.validate(e,p.value),o.pushData(p,this.dependentStates),r>=n.length)break;a=r,p.state!==this.startState&&(o[this.startState].move(p),p.state=this.startState),e.ai.length||o.addPattern(this.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var r=e.substr(t.id.length),i=t.ai;if(!i.type&&!Zp.test(r))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===i.type&&!$p.test(r))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(i.length&&i.length!==r.length)throw new Error("Application identifier "+t.id+" must be "+i.length+" characters long.");if(i.min&&i.min>r.length)throw new Error("Application identifier "+t.id+" must be at least "+i.min+" characters long.");if(i.max&&i.max<r.length)throw new Error("Application identifier "+t.id+" must be at most "+i.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var r,i,o=2;o<=4;o++)if(r=pl(t,e,o),i=this.getApplicationIdentifier(r)||this.getApplicationIdentifier(r.substring(0,r.length-1)))return{id:r,ai:i};this.unsupportedAIError(r)},e.prototype.unsupportedAIError=function(t){throw new Error("'"+t+"' is not a supported Application Identifier")},e.prototype.getBySeparator=function(t,e){var r=t.indexOf(this.startAI,e),i=t.indexOf(this.endAI,r),o=t.substring(r+1,i),n=this.getApplicationIdentifier(o)||this.getApplicationIdentifier(o.substr(o.length-1));return n||this.unsupportedAIError(o),{ai:n,id:o}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,r=e.multiKey;if(e[t])return e[t];for(var i=0;i<r.length;i++){if(r[i].ids&&ct(t,r[i].ids))return r[i].type;if(r[i].ranges)for(var o=r[i].ranges,n=0;n<o.length;n++)if(o[n][0]<=t&&t<=o[n][1])return r[i].type}},e}(Jp);var rl=function(t){function e(e){t.call(this,e),this._initStates()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{characterMap:[212222,222122,222221,121223,121322,131222,122213,122312,132212,221213,221312,231212,112232,122132,122231,113222,123122,123221,223211,221132,221231,213212,223112,312131,311222,321122,321221,312212,322112,322211,212123,212321,232121,111323,131123,131321,112313,132113,132311,211313,231113,231311,112133,112331,132131,113123,113321,133121,313121,211331,231131,213113,213311,213131,311123,311321,331121,312113,312311,332111,314111,221411,431111,111224,111422,121124,121421,141122,141221,112214,112412,122114,122411,142112,142211,241211,221114,413111,241112,134111,111242,121142,121241,114212,124112,124211,411212,421112,421211,212141,214121,412121,111143,111341,131141,114113,114311,411113,411311,113141,114131,311141,411131,211412,211214,211232,2331112],STOP:106})},e.prototype._initStates=function(){for(var t=0;t<this.states.length;t++)this[this.states[t]]=new el[this.states[t]](this,this.states)},e.prototype.initValue=function(t,e,r){this.pattern=[],this.value=t,this.width=e,this.height=r,this.checkSum=0,this.totalUnits=0,this.index=0,this.position=1},e.prototype.addData=function(){var t={value:this.value,index:0,state:""};0!==this.value.length&&(t.state=t.previousState=this.getNextState(t,this.states),this.addStart(t),this.pushData(t,this.states),this.addCheckSum(),this.addStop(),this.setBaseUnit())},e.prototype.pushData=function(t,e){for(;this[t.state].pushState(t),!(t.index>=t.value.length);)if(t.shifted){var r=t.state;t.state=t.previousState,t.previousState=r,t.shifted=!1}else t.previousState=t.state,t.state=this.getNextState(t,e),this[t.state].move(t)},e.prototype.addStart=function(t){this[t.state].addStart(t),this.position=1},e.prototype.addCheckSum=function(){this.checksum=this.checkSum%103,this.addPattern(this.checksum)},e.prototype.addStop=function(){this.addPattern(this.STOP)},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(this.totalUnits+this.quietZoneLength)},e.prototype.addPattern=function(t){for(var e,r=this.characterMap[t].toString(),i=0;i<r.length;i++)e=parseInt(r.charAt(i),10),this.pattern.push(e),this.totalUnits+=e;this.checkSum+=t*this.position++},e.prototype.getNextState=function(t,e){for(var r=0;r<e.length;r++)if(this[e[r]].is(t.value,t.index))return e[r];this.invalidCharacterError(t.value.charAt(t.index))},e}(Lp),il=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 A",states:["A"]})},e}(rl),ol=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 B",states:["B"]})},e}(rl),nl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128 C",states:["C"]})},e}(rl),sl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(rl),al=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),Qp(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(rl);function pl(t,e,r){return t.substring(e,e+r)}var ll=Object.assign,cl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:vl})},e.prototype.initValue=function(t,e){this.pattern=[],this.value=t,this.checkSumLength=0,this.width=e},e.prototype.setBaseUnit=function(){this.baseUnit=this.width/(12*(this.value.length+this.checkSumLength)+this.quietZoneLength+7)},e.prototype.addData=function(){var t=this.value;this.addPattern(this.START);for(var e=0;e<t.length;e++)this.addCharacter(t.charAt(e));this.options.addCheckSum&&this.addCheckSum(),this.addPattern(this.STOP),this.setBaseUnit()},e.prototype.addCharacter=function(t){var e=this.characterMap[t];e||this.invalidCharacterError(t),this.addPattern(e)},e.prototype.addPattern=function(t){for(var e=0;e<t.length;e++)this.pattern.push(parseInt(t.charAt(e),10))},e.prototype.addCheckSum=function(){var t=this.checkSums[this.checkSumType].call(this.checkSums,this.value);this.checksum=t.join("");for(var e=0;e<t.length;e++)this.checkSumLength++,this.addPattern(this.characterMap[t[e]])},e}(Lp),hl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(cl),ul=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(cl),fl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(cl),dl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ll(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(cl),vl={Modulo10:function(t){var e,r,i,o=[0,""],n=t.length%2;for(e=0;e<t.length;e++)o[(e+n)%2]+=parseInt(t.charAt(e),10);for(i=o[0],r=(2*o[1]).toString(),e=0;e<r.length;e++)i+=parseInt(r.charAt(e),10);return[(10-i%10)%10]},Modulo11:function(t){for(var e,r=0,i=t.length,o=0;o<i;o++)r+=(((i-o)%6||6)+1)*t.charAt(o);return 10!==(e=(11-r%11)%11)?[e]:[1,0]},Modulo11Modulo10:function(t){var e,r=this.Modulo11(t);return e=t+r[0],r.concat(this.Modulo10(e))},Modulo10Modulo10:function(t){var e,r=this.Modulo10(t);return e=t+r[0],r.concat(this.Modulo10(e))}},yl=Object.assign,gl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),yl(this,{name:"EAN 13",keyTable:["000000","001011","001101","001110","010011","011001","011100","010101","010110","011010"],characterMap:{digits:[[3,2,1,1],[2,2,2,1],[2,1,2,2],[1,4,1,1],[1,1,3,2],[1,2,3,1],[1,1,1,4],[1,3,1,2],[1,2,1,3],[3,1,1,2]],start:[1,1,1],middle:[1,1,1,1,1]}})},e.prototype.initValue=function(t,e,r){var i=String(t);if(12!==i.length||/\D/.test(i))throw new Error('The value of the "EAN13" encoding should be 12 symbols');this.pattern=[],this.options.height=r,this.baseUnit=e/(95+this.quietZoneLength),this.value=i,this.checksum=this.calculateChecksum(),this.leftKey=i[0],this.leftPart=i.substr(1,6),this.rightPart=i.substr(7)+this.checksum},e.prototype.addData=function(){this.addPieces(this.characterMap.start),this.addSide(this.leftPart,this.leftKey),this.addPieces(this.characterMap.middle),this.addSide(this.rightPart),this.addPieces(this.characterMap.start)},e.prototype.addSide=function(t,e){for(var r=0;r<t.length;r++)e&&parseInt(this.keyTable[e].charAt(r),10)?this.addPieces(Array.prototype.slice.call(this.characterMap.digits[t.charAt(r)]).reverse(),!0):this.addPieces(this.characterMap.digits[t.charAt(r)],!0)},e.prototype.addPieces=function(t,e){for(var r=0;r<t.length;r++)e?this.pattern.push({y1:0,y2:.95*this.options.height,width:t[r]}):this.pattern.push(t[r])},e.prototype.calculateChecksum=function(){for(var t=0,e=0,r=this.value.split("").reverse().join(""),i=0;i<r.length;i++)i%2?e+=parseInt(r.charAt(i),10):t+=parseInt(r.charAt(i),10);return(10-(3*t+e)%10)%10},e}(Lp),ml=Object.assign,xl=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){t.prototype.initProperties.call(this),ml(this,{name:"EAN 8"})},e.prototype.initValue=function(t,e,r){if(7!==t.length||/\D/.test(t))throw new Error("Invalid value provided");this.value=t,this.options.height=r,this.checksum=this.calculateChecksum(this.value),this.leftPart=this.value.substr(0,4),this.rightPart=this.value.substr(4)+this.checksum,this.pattern=[],this.baseUnit=e/(67+this.quietZoneLength)},e}(gl),bl={code11:zp,code39:Fp,code39extended:Hp,code93:Wp,code93extended:Kp,code128:sl,code128a:il,code128b:ol,code128c:nl};bl["gs1-128"]=al,bl.msimod10=hl,bl.msimod11=ul,bl.msimod1010=fl,bl.msimod1110=dl,bl.postnet=qp,bl.ean8=xl,bl.ean13=gl;var _l=function(t){function e(e,r){t.call(this),this.options=E({},this.options,r),this.element=e,this._initElement(),this._initSurface(),this._setOptions(r),r&&xt(r.value)&&this.redraw()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this._destroySurface()},e.prototype._initElement=function(){_(this.element,"k-barcode"),this.element.style.display="block"},e.prototype._initSurface=function(){var t=this.options,e=this.surface;e&&e.options.type===t.renderAs||(this._destroySurface(),this._initSurfaceElement(),this.surface=this._createSurface())},e.prototype._createSurface=function(){return S.drawing.Surface.create(this.surfaceElement,{type:this.options.renderAs})},e.prototype._destroySurface=function(){this.surface&&(this.surface.destroy(),this.surface=null,this._destroySurfaceElement())},e.prototype._initSurfaceElement=function(){this.surfaceElement||(this.surfaceElement=document.createElement("div"),this.surfaceElement.style.position="relative",this.element.appendChild(this.surfaceElement))},e.prototype._destroySurfaceElement=function(){this.surfaceElement&&this.surfaceElement.parentNode&&(this.surfaceElement.parentNode.removeChild(this.surfaceElement),this.surfaceElement=null)},e.prototype.setOptions=function(t){this._setOptions(t),this.redraw()},e.prototype.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t.width,height:t.height}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){return{width:this.element.offsetWidth,height:this.element.offsetHeight}},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype._render=function(){var t,e,r=this.options,i=r.value,o=r.text,n=z(o.margin),s=this._getSize(),a=r.border||{},p=this.encoding,l=new $t(0,0,s.width,s.height).unpad(a.width).unpad(r.padding),c=l.height(),h=new S.drawing.Group;return this.contentBox=l,h.append(this._getBackground(s)),o.visible&&(c-=S.drawing.util.measureText(i,{font:o.font}).height+n.top+n.bottom),t=p.encode(i,l.width(),c),o.visible&&(e=i,r.checksum&&xt(p.checksum)&&(e+=" "+p.checksum),h.append(this._getText(e))),this.barHeight=c,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),h.append(this._bandsGroup),h},e.prototype.exportVisual=function(){return this._render()},e.prototype._getSize=function(){var t=this.element,e=t.clientWidth,r=t.clientHeight,i=new S.geometry.Size(300,100);return e>0&&(i.width=e),r&&(i.height=r),this.options.width&&(i.width=this.options.width),this.options.height&&(i.height=this.options.height),i},e.prototype.value=function(t){if(!xt(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var r,i,o=this.contentBox,n=o.x1,s=new S.drawing.Group,a=0;a<t.length;a++){if(r=(i=R(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var p=S.geometry.Rect.fromPoints(new S.geometry.Point(n,i.y1+o.y1),new S.geometry.Point(n+r,i.y2+o.y1)),l=S.drawing.Path.fromRect(p,{fill:{color:this.options.color},stroke:null});s.append(l)}n+=r}return s},e.prototype._getBackground=function(t){var e=this.options,r=e.border||{},i=new $t(0,0,t.width,t.height).unpad(r.width/2);return S.drawing.Path.fromRect(i.toRect(),{fill:{color:e.background},stroke:{color:r.width?r.color:"",width:r.width,dashType:r.dashType}})},e.prototype._getText=function(t){var e=this.options.text,r=this._textbox=new be(t,{font:e.font,color:e.color,align:"center",vAlign:"bottom",margin:e.margin});return r.reflow(this.contentBox),r.renderVisual(),r.visual},e.prototype._setOptions=function(t){if(this.type=(t.type||this.options.type).toLowerCase(),"upca"===this.type&&(this.type="ean13",t.value="0"+t.value),"upce"===this.type&&(this.type="ean8",t.value="0"+t.value),!bl[this.type])throw new Error("Encoding "+this.type+" is not supported.");this.encoding=new bl[this.type],this.options=E({},this.options,t)},e}(S.Class);It(_l,{name:"Barcode",renderAs:"svg",value:"",type:"code39",checksum:!1,width:0,height:0,color:"black",background:"white",text:{visible:!0,font:"16px Consolas, Monaco, Sans Mono, monospace, sans-serif",color:"black",margin:{top:0,bottom:0,left:0,right:0}},border:{width:0,dashType:"solid",color:"black"},padding:{top:0,bottom:0,left:0,right:0}});var wl=_l,Ol="Arial, Helvetica, sans-serif",Sl="12px "+Ol,Pl="16px "+Ol,Al=function(){return{icon:{border:{width:1}},label:{font:Sl,padding:3},line:{length:10,width:2},visible:!0}},Cl=function(t){return{visible:!0,labels:{font:"11px Arial, Helvetica, sans-serif"},overlay:t.gradients?{}:{gradient:"none"},area:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},rangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalRangeArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},bar:{gap:1.5,spacing:.4},boxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},bubble:{border:{width:0},labels:{background:"transparent"},opacity:.6},bullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},candlestick:{border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},line:{width:2}},line:{color:"#000",width:1},spacing:.3},column:{gap:1.5,spacing:.4},heatmap:{labels:{color:"",background:"transparent",visible:!0},highlight:{border:{width:0}}},pie:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},donut:{margin:1},funnel:{labels:{background:"",color:"",padding:{top:5,bottom:5,left:7,right:7}}},horizontalWaterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4},line:{width:2},notes:Al(),ohlc:{gap:1,highlight:{line:{opacity:1,width:3}},line:{width:1},spacing:.3},radarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},radarLine:{markers:{visible:!1},width:2},polarArea:{line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.5},polarLine:{markers:{visible:!1},width:2},rangeBar:{gap:1.5,spacing:.4},rangeColumn:{gap:1.5,spacing:.4},scatterLine:{width:1},verticalArea:{highlight:{markers:{border:{}}},line:{opacity:1,width:0},markers:{size:6,visible:!1},opacity:.4},verticalBoxPlot:{outliersField:"",meanField:"",border:{_brightness:.8,width:1},downColor:"#fff",gap:1,highlight:{border:{opacity:1,width:2},whiskers:{width:3},mean:{width:2},median:{width:2}},mean:{width:2},median:{width:2},spacing:.3,whiskers:{width:2}},verticalBullet:{gap:1.5,spacing:.4,target:{color:"#ff0000"}},verticalLine:{width:2},waterfall:{gap:.5,line:{color:"#000",width:1},spacing:.4}}},kl=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Sl},notes:Al(),title:{font:Pl,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Cl(t),title:{font:Pl},legend:{labels:{font:Sl}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.ChartContext=i.createContext(null),e.ChartContext.displayName="ChartContext"},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(9),p=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.optionsStore=r.optionsStore,i}return o(e,t),e.prototype.renderChildren=function(t,e){var r=t.props.children,i=this.props,o=i._chartKey,a=i._parentStore,p=n({},t.props,{_chartCollectionIdxKey:o+"_"+e,_parentStore:a});return s.cloneElement(t,p,r)},e.prototype.render=function(){var t=this,e=this.props,r=e._chartKey,i=e._parentStore,o=e.children;return(i||this.optionsStore).dispatch({chartKey:r,payload:[]}),s.Children.map(o,(function(e,r){return s.isValidElement(e)?t.renderChildren(e,r):e}))},e.contextType=a.ChartContext,e}(s.Component);e.default=p},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(3),p=r(48),l=r(8),c=r(4),h=r(6),u=r(49),f=r(51),d=r(33),v=r(53),y=r(34),g=r(35),m=r(6);r(54);var x=r(55),b=r(57),_=r(9),w=r(4),O=r(60),S=function(t){function e(e){var r=t.call(this,e)||this;return r.chartInstance=null,r._element=null,r.optionsStore={},r.optionsUnsubscriber=Function.prototype,r.themeStore={},r.themeUnsubscriber=Function.prototype,r.observersStore={},r.suppressTransitions=!1,r.onRender=function(t){null!==r.chartInstance&&(r.surface=t.sender.surface,r.trigger("render",t))},r.onLegendItemClick=function(t){if(null!==r.chartInstance)if(r.props.onLegendItemClick)r.trigger("legendItemClick",t);else{var e=r.optionsStore.getState().series;if(!e)return;var i={},o=t.seriesIndex,n=t.pointIndex,s=e[o];if(void 0===n)i=Object.assign({},s,{visible:m.toggle(s.visible)});else{var a=s.pointVisibility=s.pointVisibility||[];a[n]=m.toggle(a[n]),i=Object.assign({},s)}r.optionsStore.dispatch({chartCollectionIdxKey:"series_"+o,payload:i}),r.suppressTransitions=!0}},r.onWindowResize=function(){null!==r.chartInstance&&r.chartInstance.resize()},r.onChartMouseLeave=function(t){var e=d.toDomEvent(r,t);r.triggerDomEvent("onMouseLeave",e)?t.preventDefault():null!==r.chartInstance&&r.chartInstance.hideElements()},r.onChildMouseLeave=function(t){var e=t.syntheticEvent;return r.chartInstance&&!h.hasParent(e.relatedTarget,r.element)&&r.chartInstance.hideElements(),!1},w.validatePackage(O.packageMetadata),r.optionsStore=y.default(g.optionsReducer),r.observersStore=y.default(g.observersReducer),r.childrenObserver=new l.InstanceObserver(r,{onMouseLeave:"onChildMouseLeave"}),r.contextValue={optionsStore:r.optionsStore,observersStore:r.observersStore,childrenObserver:r.childrenObserver},r.themeStore=y.default(g.themeReducer),r.chartObserver=new l.InstanceObserver(r,{render:"onRender",legendItemClick:"onLegendItemClick"}),r}return o(e,t),Object.defineProperty(e.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),e.prototype.componentDidMount=function(){v.loadTheme(this.themeStore,this.instantiateCoreChart.bind(this)),this.optionsUnsubscriber=this.optionsStore.subscribe(this.refresh.bind(this)),this.themeUnsubscriber=this.themeStore.subscribe(this.refresh.bind(this)),window.addEventListener("resize",this.onWindowResize)},e.prototype.componentWillUnmount=function(){this.optionsUnsubscriber(),this.themeUnsubscriber(),null!==this.chartInstance&&(this.chartInstance.destroy(),this.chartInstance=null),window.removeEventListener("resize",this.onWindowResize)},e.prototype.componentDidUpdate=function(t){var e=this.props,r=e.dir,i=(e.children,n(e,["dir","children"]));if(null!==this.chartInstance){var o=p.provideIntlService(this),s=this.chartInstance.chartService,a=o.locale!==s._intlService.locale,l=Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],r=t[1];return!(i.hasOwnProperty(e)&&i[e]===r)}));a&&(this.chartInstance.chartService._intlService=o,this.chartInstance.chartService.format._intlService=o,l||this.chartInstance.noTransitionsRedraw()),l&&this.refresh(),t.dir!==r&&this.chartInstance.setDirection(this.getDirection(r))}},e.prototype.render=function(){var t=this,e=this.props,r=e.style,i=void 0===r?{}:r,o=e.className,n=e.wrapper,a=e.children,p=Object.assign({},i,{position:"relative"}),l=s.createElement(n,{className:o,style:p,key:"chartElement"},s.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:function(e){return t._element=e},className:"k-chart-surface"},a));return s.createElement(_.ChartContext.Provider,{value:this.contextValue},s.createElement(x.SeriesTooltip,{key:"seriesTooltip"}),s.createElement(b.CrosshairTooltipContainer,{key:"crosshairTooltips"}),l)},e.prototype.getDirection=function(t){var e=this;return"rtl"===(void 0!==t?t:c.canUseDOM&&window.getComputedStyle(e.element).direction||"ltr")},e.prototype.getChartOptions=function(){var t=this.props,e=t.renderAs,r=t.pannable,i=t.zoomable,o=t.paneDefaults,n=t.panes,s=t.transitions,a=t.seriesColors,p=t.seriesDefaults,l=t.axisDefaults,c=t.deriveOptionsFromParent,h={};return void 0!==e&&(h.renderAs=e),void 0!==r&&(h.pannable=r),void 0!==i&&(h.zoomable=i),void 0!==o&&(h.paneDefaults=o),void 0!==n&&(h.panes=n),void 0!==s&&(h.transitions=s),void 0!==a&&(h.seriesColors=a),void 0!==p&&(h.seriesDefaults=p),void 0!==l&&(h.axisDefaults=l),h=Object.assign(h,this.optionsStore.getState()),c&&(h=c(h)),h},e.prototype.refresh=function(){if(null!==this.chartInstance){var t=this.themeStore.getState(),e=this.getChartOptions(),r=e.transitions;this.suppressTransitions&&(e.transitions=!1),this.props.onRefresh?this.props.onRefresh.call(void 0,e,t,this.chartInstance):this.chartInstance.setOptions(e,t),this.suppressTransitions&&(e.transitions=r,this.suppressTransitions=!1)}},e.prototype.instantiateCoreChart=function(){var t=this.props,e=t.dir,r=t.chartConstructor,i=this.getChartOptions();this.chartInstance=new r(this.element,i,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:p.provideIntlService(this),observer:this.chartObserver,sender:this})},e.prototype.trigger=function(t,e){for(var r=this.props.getTarget(),i=f.create(t,e,r),o="on"+t.charAt(0).toUpperCase()+t.slice(1),n=this.observersStore.getState(),s=!1,a=0;a<n.length;a++)n[a].trigger(t,e)&&(s=!0);return!1===s&&i&&this.props.hasOwnProperty(o)?(this.props[o].call(void 0,i),i.isDefaultPrevented&&i.isDefaultPrevented()):s},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++){var r=t[e],i="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(i))return!0}return!1},e.prototype.triggerDomEvent=function(t,e){for(var r=this.observersStore.getState(),i=!1,o=0;o<r.length;o++)r[o].trigger(t,e)&&(i=!0);return i},e.propTypes={dir:a.string,renderAs:a.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(s.Component);e.BaseChart=S,p.registerForIntl(S),l.DomEventsBuilder.register(u.DomEventsBuilder)},function(t,e){t.exports=i},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axis=e.axis,i.dataItem=e.dataItem,i.index=e.index,i.text=e.text,i.value=e.value,i}return o(e,t),e}(r(5).BaseEvent);e.AxisLabelClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(7).PreventableEvent);e.DragEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(5).BaseEvent);e.DragEndEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(7).PreventableEvent);e.DragStartEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.series=e.series,i.seriesIndex=e.seriesIndex,i.pointIndex=e.pointIndex,i.text=e.text,i}return o(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(7).PreventableEvent);e.LegendItemHoverEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.series=e.series,i.seriesIndex=e.seriesIndex,i.pointIndex=e.pointIndex,i.text=e.text,i}return o(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(7).PreventableEvent);e.LegendItemClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.from=e.from,i.to=e.to,i}return o(e,t),e}(r(5).BaseEvent);e.NavigatorFilterEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.dataItem=e.dataItem,i.series=e.series,i.value=e.value,i.visual=e.visual,i}return o(e,t),e}(r(5).BaseEvent);e.NoteClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.dataItem=e.dataItem,i.series=e.series,i.value=e.value,i.visual=e.visual,i}return o(e,t),e}(r(5).BaseEvent);e.NoteHoverEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.nativeEvent=e.originalEvent,i.value=e.value,i.x=e.x,i.y=e.y,i}return o(e,t),e}(r(5).BaseEvent);e.PlotAreaClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.nativeEvent=e.originalEvent,i.value=e.value,i.x=e.x,i.y=e.y,i}return o(e,t),e}(r(5).BaseEvent);e.PlotAreaHoverEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){return t.call(this,r)||this}return o(e,t),e}(r(5).BaseEvent);e.RenderEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return o(e,t),e}(r(7).PreventableEvent);e.SelectEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return o(e,t),e}(r(5).BaseEvent);e.SelectEndEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axis=e.axis,i.from=e.from,i.to=e.to,i}return o(e,t),e}(r(7).PreventableEvent);e.SelectStartEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.dataItem=e.dataItem,i.nativeEvent=e.originalEvent,i.percentage=e.percentage,i.point=e.point,i.series=e.series,i.stackValue=e.stackValue,i.value=e.value,i}return o(e,t),e}(r(5).BaseEvent);e.SeriesClickEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.category=e.category,i.categoryPoints=e.categoryPoints,i.dataItem=e.dataItem,i.nativeEvent=e.originalEvent,i.percentage=e.percentage,i.point=e.point,i.series=e.series,i.stackValue=e.stackValue,i.value=e.value,i}return o(e,t),e}(r(7).PreventableEvent);e.SeriesHoverEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.delta=e.delta,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(7).PreventableEvent);e.ZoomEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(5).BaseEvent);e.ZoomEndEvent=n},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.axisRanges=e.axisRanges,i.nativeEvent=e.originalEvent,i}return o(e,t),e}(r(7).PreventableEvent);e.ZoomStartEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e){this.sender=t,this.syntheticEvent=e};e.DomEvent=i,e.toDomEvent=function(t,e){return new i(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(4);e.THROTTLE_MS=1e3/60;e.default=function(t){var r,o,n=[],s=function(s){r=t(r,s),i.canUseDOM&&(window.clearTimeout(o),o=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return s({}),{getState:function(){return r},dispatch:s,subscribe:function(t){return n.push(t),function(){return n=n.filter((function(e){return e!==t}))}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.optionsReducer=function(t,e){return e.chartCollectionIdxKey?i.collectionConfigurationItem(t,e):e.chartKey?i.configurationItem(t,e):{}};e.themeReducer=function(t,e){if(!e.type)return{};switch(e.type){case"set":return i.themeItem(t,e);case"push":return Object.assign(t,e.payload);default:return t}};e.observersReducer=function(t,e){if(!e.type)return[];switch(e.type){case"add":return t.concat([e.payload]);case"remove":return t.filter((function(t){return t!==e.payload}));default:return t}};var i={configurationItem:function(t,e){var r;return Object.assign(t,((r={})[e.chartKey]=e.payload,r))},collectionConfigurationItem:function(t,e){var r,i=!1,o=e.chartCollectionIdxKey.split("_"),n=o[0],s=o[1],a=t[n].map((function(t,r){return parseInt(s,10)===r?(i=!0,e.payload):t}));return!1===i&&a.splice(parseInt(s,10),0,e.payload),Object.assign(t,((r={})[n]=a,r))},themeItem:function(t,e){for(var r={},i=Object.assign(r,t),o=e.payload,n=o.field,s=o.value,a=n.split("."),p=a.shift();a.length>0;)r=r[p]=r[p]||{},p=a.shift();return r[p]=s,i}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(){function t(t,e){this.value=t.value,this.category=t.category,this.categoryIndex=t.categoryIx,this.series=t.series,this.dataItem=t.dataItem,this.percentage=t.percentage,this.runningTotal=t.runningTotal,this.total=t.total,this.low=t.low,this.high=t.high,this.xLow=t.xLow,this.xHigh=t.xHigh,this.yLow=t.yLow,this.yHigh=t.yHigh,this.point=t,this.format=((t.options||{}).tooltip||{}).format||e}return Object.defineProperty(t.prototype,"formattedValue",{get:function(){return this.format?this.point.formatValue(this.format):String(this.value)},enumerable:!0,configurable:!0}),t}();e.TooltipPoint=i},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),s=r(8),a=r(33),p=r(6),l=r(182),c=r(9),h={horizontal:"fit",vertical:"fit"},u="k-chart-tooltip",f=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.onChartMouseLeave=function(t){var e=t.syntheticEvent;return!!p.hasParent(e.relatedTarget,i.element)},i.onMouseLeave=function(t){var e=a.toDomEvent(i,t);i.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},i.chartObserver=new s.InstanceObserver(i,{onMouseLeave:"onChartMouseLeave"}),r.observersStore.dispatch({type:"add",payload:i.chartObserver}),i}return o(e,t),e.prototype.render=function(){var t=this,e=this.props,r=e.popupShown,i=e.popupAlign,o=e.popupOffset,s=e.popupStyles,a=e.popupContent,p=e.className,c=[u,p].join(" ").trim();return n.createElement(l.Popup,{animate:!1,popupAlign:i,offset:o,show:r,collision:h,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:c,style:s,onMouseLeave:this.onMouseLeave,ref:function(e){return t.element=e}},a()))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.contextType=c.ChartContext,e}(n.Component);e.TooltipPopup=f},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartCategoryAxisItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartPane",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartSeriesItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartValueAxisItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartXAxisItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartYAxisItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t))};s.displayName="ChartNavigatorSeriesItem",e.default=s},function(t,e){t.exports=o},function(t,e,r){"use strict";function i(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var o=r(47);e.Chart=o.Chart;var n=r(62);e.Sparkline=n.Sparkline;var s=r(63);e.StockChart=s.StockChart,i(r(64)),i(r(65)),i(r(178)),i(r(180)),i(r(181))},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(11),l=r(61),c=r(8),h=r(4),u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.getTarget=function(){return e},e}return o(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.donutCenterRender,i=e.children,o=e.className,u=s(e,["donutCenterRender","children","className"]);return a.createElement(p.BaseChart,n({},u,{ref:function(e){return t._baseChart=e},chartConstructor:c.Chart,getTarget:this.getTarget,wrapper:"div",className:h.classNames("k-chart k-widget",o)}),i,a.createElement(l.DonutCenter,{render:r}))},e}(a.Component);e.Chart=u},function(t,e){t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(50),o=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var r=window.Hammer;if(!r)return void 0;var o=new r(t,{recognizers:[[r.Tap],[r.Pan],[r.Pinch],[r.Press,{time:0}]]});return new i.DomEvents(o,e)}},t}();e.DomEventsBuilder=o},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function o(t,e){for(var r=0;r<t.length;r++)if(e[t[r]])return!0;return!1}var n=[{end:"panend",move:"panmove",start:"panstart"},{gesturechange:"pinchmove",gestureend:"pinchend",gesturestart:"pinchstart"},{press:"press"},{tap:"tap"}],s=function(){function t(t,e){this.hammerInstance=t,this.eventHandlers={},this.tap=this.tap.bind(this),this.press=this.press.bind(this),this.panstart=this.panstart.bind(this),this.panmove=this.panmove.bind(this),this.panend=this.panend.bind(this),this.pinchstart=this.pinchstart.bind(this),this.pinchmove=this.pinchmove.bind(this),this.pinchend=this.pinchend.bind(this),e&&this.bind(e)}return t.prototype.tap=function(t){this.trigger("tap",t)},t.prototype.press=function(t){this.trigger("press",t)},t.prototype.panstart=function(t){delete this.previous,this.previous=this.trigger("start",t)},t.prototype.panmove=function(t){this.previous=this.trigger("move",t)},t.prototype.panend=function(t){this.trigger("end",t),delete this.previous},t.prototype.pinchstart=function(t){this.trigger("gesturestart",t)},t.prototype.pinchmove=function(t){this.trigger("gesturechange",t)},t.prototype.pinchend=function(t){this.trigger("gestureend",t)},t.prototype.trigger=function(t,e){var r=function(t,e){var r=t.pointers,o=r[0],n=o.pageX,s=o.pageY,a=0;if(r.length>1){var p=r[0],l=r[1];a=Math.sqrt(Math.pow(p.pageX-l.pageX,2)+Math.pow(p.pageY-l.pageY,2))}return{distance:a,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:r.map(i),type:t.type,x:{delta:e?n-e.x.location:0,initialDelta:t.deltaX,location:n,startLocation:n-t.deltaX},y:{delta:e?s-e.y.location:0,initialDelta:t.deltaY,location:s,startLocation:s-t.deltaY}}}(e,this.previous);return this.eventHandlers[t]&&this.eventHandlers[t](r),r},t.prototype.bind=function(t){void 0===t&&(t={}),this.unbind(),this.eventHandlers=t;for(var e=0;e<n.length;e++){var r=n[e],i=Object.keys(r);if(o(i,t))for(var s=0;s<i.length;s++){var a=r[i[s]];this.hammerInstance.on(a,this[a])}}},t.prototype.unbind=function(){this.hammerInstance&&this.hammerInstance.off(),this.eventHandlers={}},t.prototype.destroy=function(){this.hammerInstance&&(this.hammerInstance.destroy(),delete this.hammerInstance),delete this.eventHandlers},t.prototype.toggleDrag=function(t){this.toggle("pan",t)},t.prototype.toggleZoom=function(t){this.toggle("pinch",t)},t.prototype.toggle=function(t,e){this.hammerInstance&&this.hammerInstance.get(t).set({enable:e})},t}();e.DomEvents=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(13),o=r(14),n=r(15),s=r(16),a=r(17),p=r(18),l=r(52),c=r(19),h=r(20),u=r(21),f=r(22),d=r(23),v=r(24),y=r(25),g=r(26),m=r(27),x=r(28),b=r(29),_=r(30),w=r(31),O=r(32),S={axisLabelClick:i.AxisLabelClickEvent,drag:o.DragEvent,dragEnd:n.DragEndEvent,dragStart:s.DragStartEvent,legendItemHover:a.LegendItemHoverEvent,legendItemClick:p.LegendItemClickEvent,legendItemLeave:l.LegendItemLeaveEvent,navigatorFilter:c.NavigatorFilterEvent,noteClick:h.NoteClickEvent,noteHover:u.NoteHoverEvent,plotAreaClick:f.PlotAreaClickEvent,plotAreaHover:d.PlotAreaHoverEvent,render:v.RenderEvent,select:y.SelectEvent,selectEnd:g.SelectEndEvent,selectStart:m.SelectStartEvent,seriesClick:x.SeriesClickEvent,seriesHover:b.SeriesHoverEvent,zoom:_.ZoomEvent,zoomEnd:w.ZoomEndEvent,zoomStart:O.ZoomStartEvent};e.create=function(t,e,r){if(S[t])return new S[t](e,r)}},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){function e(e,r){var i=t.call(this,r)||this;return i.series=e.series,i.seriesIndex=e.seriesIndex,i.pointIndex=e.pointIndex,i.text=e.text,i}return o(e,t),e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this)},e}(r(7).PreventableEvent);e.LegendItemLeaveEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(8),o=function(t){return t.fontWeight+" "+t.fontSize+" "+t.fontFamily},n=function(t){return window.getComputedStyle(t).backgroundColor},s='\n <div class="k-var--accent"></div>\n <div class="k-var--base"></div>\n <div class="k-var--background"></div>\n\n <div class="k-var--normal-background"></div>\n <div class="k-var--normal-text-color"></div>\n <div class="k-var--hover-background"></div>\n <div class="k-var--hover-text-color"></div>\n <div class="k-var--selected-background"></div>\n <div class="k-var--selected-text-color"></div>\n <div class="k-var--chart-error-bars-background"></div>\n <div class="k-var--chart-notes-background"></div>\n <div class="k-var--chart-notes-border"></div>\n <div class="k-var--chart-notes-lines"></div>\n <div class="k-var--chart-crosshair-background"></div>\n\n <div class="k-var--chart-inactive"></div>\n <div class="k-var--chart-major-lines"></div>\n <div class="k-var--chart-minor-lines"></div>\n <div class="k-var--chart-area-opacity"></div>\n <div class="k-var--chart-area-inactive-opacity"></div>\n <div class="k-var--chart-line-inactive-opacity"></div>\n\n <div class="k-widget k-chart">\n <div class="k-var--chart-font"></div>\n <div class="k-var--chart-title-font"></div>\n <div class="k-var--chart-pane-title-font"></div>\n <div class="k-var--chart-label-font"></div>\n </div>\n\n <div class="k-var--series-unset"></div>\n <div class="k-var--series">\n '+function(){for(var t='\n <div class="k-var--series-a"></div>\n <div class="k-var--series-b"></div>\n <div class="k-var--series-c"></div>\n <div class="k-var--series-d"></div>\n <div class="k-var--series-e"></div>\n <div class="k-var--series-f"></div>\n',e=0;e<30;e++)t+='\n <div class="k-var--series-'+(e+1)+'"></div>';return t}()+"\n </div>\n",a=function(){function t(t){this.store=t}return t.prototype.setStyle=function(t,e){this.store.dispatch({type:"set",payload:{field:t,value:e}})},t.prototype.setColors=function(){this.mapColor("axisDefaults.crosshair.color","chart-crosshair-background"),this.mapColor("axisDefaults.labels.color","normal-text-color"),this.mapColor("axisDefaults.line.color","chart-major-lines"),this.mapColor("axisDefaults.majorGridLines.color","chart-major-lines"),this.mapColor("axisDefaults.minorGridLines.color","chart-minor-lines"),this.mapColor("axisDefaults.notes.icon.background","chart-notes-background"),this.mapColor("axisDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("axisDefaults.notes.line.color","chart-notes-lines"),this.mapColor("axisDefaults.title.color","normal-text-color"),this.mapColor("chartArea.background","background"),this.mapColor("legend.inactiveItems.labels.color","chart-inactive"),this.mapColor("legend.inactiveItems.markers.color","chart-inactive"),this.mapColor("legend.labels.color","normal-text-color"),this.mapColor("seriesDefaults.boxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.boxPlot.mean.color","base"),this.mapColor("seriesDefaults.boxPlot.median.color","base"),this.mapColor("seriesDefaults.boxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.bullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.candlestick.downColor","normal-text-color"),this.mapColor("seriesDefaults.candlestick.line.color","normal-text-color"),this.mapColor("seriesDefaults.errorBars.color","chart-error-bars-background"),this.mapColor("seriesDefaults.horizontalWaterfall.line.color","chart-major-lines"),this.mapColor("seriesDefaults.icon.border.color","chart-major-lines"),this.mapColor("seriesDefaults.labels.background","background"),this.mapColor("seriesDefaults.labels.color","normal-text-color"),this.mapColor("seriesDefaults.notes.icon.background","chart-notes-background"),this.mapColor("seriesDefaults.notes.icon.border.color","chart-notes-border"),this.mapColor("seriesDefaults.notes.line.color","chart-notes-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.downColor","chart-major-lines"),this.mapColor("seriesDefaults.verticalBoxPlot.mean.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.median.color","base"),this.mapColor("seriesDefaults.verticalBoxPlot.whiskers.color","accent"),this.mapColor("seriesDefaults.verticalBullet.target.color","normal-text-color"),this.mapColor("seriesDefaults.waterfall.line.color","chart-major-lines"),this.mapColor("title.color","normal-text-color");var t=parseFloat(this.queryStyle("chart-area-opacity").opacity);isNaN(t)||(this.setStyle("seriesDefaults.area.opacity",t),this.setStyle("seriesDefaults.radarArea.opacity",t),this.setStyle("seriesDefaults.verticalArea.opacity",t),this.setStyle("seriesDefaults.labels.opacity",t)),this.setInactiveOpacity(["area","verticalArea"],"chart-area-inactive-opacity"),this.setInactiveOpacity(["line","verticalLine"],"chart-line-inactive-opacity")},t.prototype.setFonts=function(){var t=o(this.queryStyle("chart-font")),e=o(this.queryStyle("chart-title-font")),r=o(this.queryStyle("chart-pane-title-font")),i=o(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",i),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",i),this.setStyle("seriesDefaults.notes.label.font",t),this.setStyle("title.font",e),this.setStyle("paneDefaults.title.font",r)},t.prototype.setSeriesColors=function(){var t=this.element,e=[].slice.call(t.querySelectorAll(".k-var--series div")),r=n(t.querySelector(".k-var--series-unset")),i=e.reduce((function(t,e){var i=function(t){var e=t.match(/series-([a-z])$/);if(null!==e)return e[1].toLowerCase().charCodeAt(0)-"a".charCodeAt(0);var r=t.split("--series-")[1];return parseInt(r,10)-1}(e.className),o=n(e);return o!==r&&(t[i]=o),t}),[]);this.setStyle("seriesColors",i)},t.prototype.mapColor=function(t,e){this.setStyle(t,this.queryStyle(e).backgroundColor)},t.prototype.queryStyle=function(t){var e=this.element;return window.getComputedStyle(e.querySelector(".k-var--"+t))},t.prototype.setInactiveOpacity=function(t,e){var r=this,i=parseFloat(this.queryStyle(e).opacity);!isNaN(i)&&i<1&&t.forEach((function(t){return r.setStyle("seriesDefaults."+t+".highlight.inactiveOpacity",i)}))},t}();e.loadTheme=function(t,e){var r=new a(t);if("undefined"!=typeof document){var o=r.element=document.createElement("div");o.style.display="none",o.innerHTML=s,document.body.appendChild(o);try{t.dispatch({type:"push",payload:i.chartBaseTheme()}),r.setColors(),r.setFonts(),r.setSeriesColors()}finally{document.body.removeChild(r.element),delete r.element,e()}}else t.dispatch({type:"push",payload:i.chartBaseTheme()})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(8),o=i.DateCategoryAxis.prototype.options.labels.dateFormats,n=i.DateValueAxis.prototype.options.labels.dateFormats,s={milliseconds:"HH:mm:ss.SSS",seconds:{time:"medium"},minutes:{time:"short"},hours:{time:"short"},days:{skeleton:"Md"},weeks:{skeleton:"Md"},months:{skeleton:"yyMMM"},years:{skeleton:"y"}};Object.assign(o,s),Object.assign(n,s)},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(4),l=r(8),c=r(36),h=r(56),u=r(37),f=r(9),d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={popupShown:!1},e}return o(e,t),e.prototype.componentDidMount=function(){this.chartObserver=new l.InstanceObserver(this,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),this.context.observersStore.dispatch({type:"add",payload:this.chartObserver})},e.prototype.render=function(){var t,e=this,r=this.state,i=r.popupContext,o=r.shared,l=r.className,c=s(r,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(o)return null!==t?t(i):a.createElement(h.SharedTooltipContent,n({},i));var r=i.point,s=e.findRenderFunctionByIndex(r.series.index);return null!==s?s(i):null!==t?t(i):a.createElement("span",{dangerouslySetInnerHTML:{__html:i.point.formattedValue}})}:Function.prototype,d=p.classNames(((t={})["k-chart-shared-tooltip"]=o,t["k-chart-tooltip-inverse"]=!!l,t));return a.createElement(u.TooltipPopup,n({},c,{popupContent:f,className:d}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e,r=t.anchor,i=t.style,o=t.shared,n=t.className;t.crosshair||(e=o?this.createSharedTooltipContext(t):this.createTooltipContext(t),this.setState({popupShown:!0,popupAlign:r.align,popupOffset:r.point,popupContext:e,popupStyles:i,className:n,shared:o}))},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.prototype.createSharedTooltipContext=function(t){var e=t.points,r=t.categoryText,i=e.filter((function(t){return void 0!==t.series.name})).length>0,o=t.series.length>1,n=1;return i&&n++,o&&n++,{categoryText:r,colorMarker:o,colspan:n,nameColumn:i,points:t.points.map((function(e){return new c.TooltipPoint(e,t.format)}))}},e.prototype.createTooltipContext=function(t){var e=t.point,r=t.format;return{point:new c.TooltipPoint(e,r)}},e.prototype.findRenderFunctionByIndex=function(t){var e=this.context.optionsStore.getState().series;return void 0!==e&&Array.isArray(e)&&void 0!==e[t]&&e[t].hasOwnProperty("tooltip")&&e[t].tooltip.hasOwnProperty("render")?e[t].tooltip.render:null},e.prototype.findRenderFunction=function(){var t=this.context.optionsStore.getState().tooltip;return void 0!==t&&t.hasOwnProperty("render")?t.render:null},e.contextType=f.ChartContext,e}(a.Component);e.SeriesTooltip=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(1);e.SharedTooltipContent=function(t){var e=t.categoryText,r=t.colorMarker,o=t.colspan,n=t.nameColumn,s=t.points;return i.createElement("table",null,i.createElement("thead",null,i.createElement("tr",null,i.createElement("th",{colSpan:o},e))),i.createElement("tbody",null,s.map((function(t,e){return i.createElement("tr",{key:e},r&&i.createElement("td",null,i.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:t.series.color}})),n&&i.createElement("td",null,t.series.name),i.createElement("td",{dangerouslySetInnerHTML:{__html:t.formattedValue}}))}))))}},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(58),p=r(59),l=r(9),c=["categoryAxis","valueAxis","xAxis","yAxis"];function h(t){for(var e={},r=0;r<c.length;r++)for(var i=u(t,c[r]),o=0;o<i.length;o++){var n=i[o];e[n.name+n.index]=n}return e}function u(t,e){var r=[];if(t[e])for(var i=[].concat(t[e]),o=0;o<i.length;o++){var n=(i[o].crosshair||{}).tooltip;n&&n.visible&&r.push({index:o,name:e})}return r}var f=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.state={tooltips:{}},e.storeUnsubscriber=Function.prototype,e.subscriber=function(){e.setState({tooltips:h(e.context.optionsStore.getState())})},e}return o(e,t),e.prototype.componentDidMount=function(){this.storeUnsubscriber=this.context.optionsStore.subscribe(this.subscriber)},e.prototype.render=function(){var t=this.state.tooltips,e=Object.keys(t).map((function(e){return s.createElement(p.CrosshairTooltip,n({},t[e],{key:e}))}));return s.createElement(a.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=l.ChartContext,e}(s.Component);e.CrosshairTooltipContainer=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t.children};e.Container=i,i.displayName="Container"},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(4),l=r(8),c=r(37),h=r(9),u=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.state={popupShown:!1},i.chartObserver=new l.InstanceObserver(i,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),r.observersStore.dispatch({type:"add",payload:i.chartObserver}),i}return o(e,t),e.prototype.render=function(){var t,e=this.state,r=e.popupContend,i=e.className,o=s(e,["popupContend","className"]),l=this.state.popupShown?function(){return r}:Function.prototype,h=p.classNames(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!i,t));return a.createElement(c.TooltipPopup,n({},o,{popupContent:l,className:h}))},e.prototype.componentWillUnmount=function(){this.context.observersStore.dispatch({type:"remove",payload:this.chartObserver})},e.prototype.onShowTooltip=function(t){var e=t.anchor,r=t.style,i=t.className,o=t.crosshair,n=t.axisName,s=t.axisIndex,a=t.value,p=this.props,l=p.name,c=p.index;o&&n===l&&s===c&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:a,popupStyles:r,className:i})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.contextType=h.ChartContext,e}(a.Component);e.CrosshairTooltip=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.packageMetadata={name:"@progress/kendo-react-charts",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1637584200,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"}},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)});Object.defineProperty(e,"__esModule",{value:!0});var n=r(1),s=r(8),a=r(9),p=function(t){function e(e,r){var i=t.call(this,e,r)||this;return i.state={donutCenterStyles:null},i.chartObserver=new s.InstanceObserver(i,{render:"onRender"}),r.observersStore.dispatch({type:"add",payload:i.chartObserver}),i}return o(e,t),e.prototype.render=function(){var t=this.props.render,e=this.state.donutCenterStyles,r=null;return t&&e&&(r=n.createElement("div",{className:"k-chart-donut-center",style:e},t())),r},e.prototype.onRender=function(t){var e=this.context.optionsStore.getState().series,r=Array.isArray(e)?e[0]:null,i=t.sender._plotArea.charts;if(r&&"donut"===r.type&&0!==i[0].points.length){var o=i[0].points[0].sector,n=o.innerRadius,s=o.center.y-n,a=o.center.x-n,p=2*n;this.setState({donutCenterStyles:{height:p,left:a,top:s,width:p}})}},e.contextType=a.ChartContext,e}(n.Component);e.DonutCenter=p},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(11),l=r(8),c=r(4),h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var r=e.props,i=r.type,o=r.data,n=Object.assign({},t,{type:i,data:o});return l.Sparkline.normalizeOptions(n)},e.getTarget=function(){return e},e}return o(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.children,i=(e.type,e.className),o=s(e,["children","type","className"]);return a.createElement(p.BaseChart,n({},o,{ref:function(e){return t._baseChart=e},chartConstructor:l.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:c.classNames("k-sparkline k-widget",i)}),r)},e}(a.Component);e.Sparkline=h},function(t,e,r){"use strict";var i,o=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),n=this&&this.__assign||function(){return(n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&e.indexOf(i)<0&&(r[i]=t[i]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(t);o<i.length;o++)e.indexOf(i[o])<0&&(r[i[o]]=t[i[o]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),p=r(11),l=r(8),c=r(4),h={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},u=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var e=Object.assign({},t.navigator||{},h);return Object.assign({},t,{navigator:e})},e.onRefresh=function(t,r,i){e.props.partialRedraw?(i.applyOptions(t),i.bindCategories(),i.navigator.redrawSlaves()):i.setOptions(t,r)},e.getTarget=function(){return e},e}return o(e,t),Object.defineProperty(e.prototype,"chartInstance",{get:function(){return null!==this._baseChart?this._baseChart.chartInstance:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return null!==this._baseChart?this._baseChart.surface:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"element",{get:function(){return null!==this._baseChart?this._baseChart.element:null},enumerable:!0,configurable:!0}),e.prototype.render=function(){var t=this,e=this.props,r=e.children,i=e.className,o=s(e,["children","className"]);return a.createElement(p.BaseChart,n({},o,{ref:function(e){return t._baseChart=e},chartConstructor:l.StockChart,getTarget:this.getTarget,wrapper:"div",deriveOptionsFromParent:this.deriveOptionsFromParent,onRefresh:this.onRefresh,className:c.classNames("k-stockchart k-widget",i)}),r)},e}(a.Component);e.StockChart=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(36);e.TooltipPoint=i.TooltipPoint},function(t,e,r){"use strict";function i(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var o=r(66);e.ChartArea=o.default;var n=r(67);e.ChartAxisDefaults=n.default;var s=r(68);e.ChartCategoryAxis=s.default;var a=r(38);e.ChartCategoryAxisItem=a.default;var p=r(69);e.ChartLegend=p.default;var l=r(70);e.ChartNavigator=l.default;var c=r(39);e.ChartPane=c.default;var h=r(71);e.ChartPaneDefaults=h.default;var u=r(72);e.ChartPanes=u.default;var f=r(73);e.ChartPlotArea=f.default;var d=r(74);e.ChartSeries=d.default;var v=r(75);e.ChartSeriesDefaults=v.default;var y=r(40);e.ChartSeriesItem=y.default;var g=r(76);e.ChartTitle=g.default;var m=r(77);e.ChartTooltip=m.default;var x=r(78);e.ChartValueAxis=x.default;var b=r(41);e.ChartValueAxisItem=b.default;var _=r(79);e.ChartXAxis=_.default;var w=r(42);e.ChartXAxisItem=w.default;var O=r(80);e.ChartYAxis=O.default;var S=r(43);e.ChartYAxisItem=S.default;var P=r(81);e.ChartZoomable=P.default,i(r(82)),i(r(87)),i(r(96)),i(r(98)),i(r(100)),i(r(104)),i(r(112)),i(r(125)),i(r(133)),i(r(141)),i(r(149))},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"chartArea"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"axisDefaults"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(38),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"categoryAxis"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"legend"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"navigator"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"paneDefaults"}))};s.displayName="ChartPaneDefaults",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(39),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"panes"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"plotArea"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(40),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"series"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"seriesDefaults"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(41),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"valueAxis"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(42),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"xAxis"}))};p.prototype={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(43),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"yAxis"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"zoomable"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(83);e.ChartAxisDefaultsTitle=i.default;var o=r(84);e.ChartAxisDefaultsLabels=o.default;var n=r(85);e.ChartAxisDefaultsCrosshair=n.default;var s=r(86);e.ChartAxisDefaultsCrosshairTooltip=s.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartAxisDefaultsTitle",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.displayName="ChartAxisDefaultsLabels",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshair",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshairTooltip",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(88);e.ChartCategoryAxisCrosshair=i.default;var o=r(89);e.ChartCategoryAxisCrosshairTooltip=o.default;var n=r(90);e.ChartCategoryAxisTitle=n.default;var s=r(91);e.ChartCategoryAxisLabels=s.default;var a=r(92);e.ChartCategoryAxisNotes=a.default;var p=r(93);e.ChartCategoryAxisNotesIcon=p.default;var l=r(94);e.ChartCategoryAxisNotesLabel=l.default;var c=r(95);e.ChartCategoryAxisRangeLabels=c.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"rangeLabels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(97);e.ChartPaneTitle=i.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(99);e.ChartPaneDefaultsTitle=i.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartPaneDefaultsTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(101);e.ChartLegendItem=i.default;var o=r(102);e.ChartLegendTitle=o.default;var n=r(103);e.ChartLegendInactiveItems=n.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"item"}))};s.displayName="ChartLegendItem",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartLegendTitle",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"inactiveItems"}))};s.displayName="ChartLegendInactiveItems",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(105);e.ChartSeriesDefaultsItemTooltip=i.default;var o=r(106);e.ChartSeriesDefaultsLabels=o.default;var n=r(107);e.ChartSeriesDefaultsLabelsFrom=n.default;var s=r(108);e.ChartSeriesDefaultsLabelsTo=s.default;var a=r(109);e.ChartSeriesDefaultsNotes=a.default;var p=r(110);e.ChartSeriesDefaultsNotesIcon=p.default;var l=r(111);e.ChartSeriesDefaultsNotesLabel=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(113);e.ChartSeriesItemTooltip=i.default;var o=r(114);e.ChartSeriesItemOutliers=o.default;var n=r(115);e.ChartSeriesNotes=n.default;var s=r(116);e.ChartSeriesMarkers=s.default;var a=r(117);e.ChartSeriesLabels=a.default;var p=r(118);e.ChartSeriesHighlight=p.default;var l=r(119);e.ChartSeriesExtremes=l.default;var c=r(120);e.ChartSeriesErrorBars=c.default;var h=r(121);e.ChartSeriesLabelsFrom=h.default;var u=r(122);e.ChartSeriesLabelsTo=u.default;var f=r(123);e.ChartSeriesNotesLabel=f.default;var d=r(124);e.ChartSeriesNotesIcon=d.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(126);e.ChartValueAxisCrosshair=i.default;var o=r(127);e.ChartValueAxisCrosshairTooltip=o.default;var n=r(128);e.ChartValueAxisLabels=n.default;var s=r(129);e.ChartValueAxisNotes=s.default;var a=r(130);e.ChartValueAxisNotesIcon=a.default;var p=r(131);e.ChartValueAxisNotesLabel=p.default;var l=r(132);e.ChartValueAxisTitle=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartValueAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(134);e.ChartXAxisCrosshair=i.default;var o=r(135);e.ChartXAxisCrosshairTooltip=o.default;var n=r(136);e.ChartXAxisLabels=n.default;var s=r(137);e.ChartXAxisNotes=s.default;var a=r(138);e.ChartXAxisNotesIcon=a.default;var p=r(139);e.ChartXAxisNotesLabel=p.default;var l=r(140);e.ChartXAxisTitle=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartXAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(142);e.ChartYAxisCrosshair=i.default;var o=r(143);e.ChartYAxisCrosshairTooltip=o.default;var n=r(144);e.ChartYAxisLabels=n.default;var s=r(145);e.ChartYAxisNotes=s.default;var a=r(146);e.ChartYAxisNotesIcon=a.default;var p=r(147);e.ChartYAxisNotesLabel=p.default;var l=r(148);e.ChartYAxisTitle=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartYAxisTitle",e.default=s},function(t,e,r){"use strict";function i(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var o=r(150);e.ChartNavigatorCategoryAxis=o.default;var n=r(151);e.ChartNavigatorHint=n.default;var s=r(152);e.ChartNavigatorPane=s.default;var a=r(153);e.ChartNavigatorSelect=a.default;var p=r(154);e.ChartNavigatorSeries=p.default;var l=r(44);e.ChartNavigatorSeriesItem=l.default,i(r(155)),i(r(163)),i(r(165))},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"categoryAxis"}))};s.displayName="ChartNavigatorCategoryAxis",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"hint"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"pane"}))};s.displayName="ChartNavigatorPane",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"select"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(10),s=r(44),a=r(6),p=function(t){return o.createElement(n.default,i({},t,{_chartKey:"series"}))};p.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=p},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(156);e.ChartNavigatorCategoryAxisCrosshair=i.default;var o=r(157);e.ChartNavigatorCategoryAxisCrosshairTooltip=o.default;var n=r(158);e.ChartNavigatorCategoryAxisTitle=n.default;var s=r(159);e.ChartNavigatorCategoryAxisLabels=s.default;var a=r(160);e.ChartNavigatorCategoryAxisNotes=a.default;var p=r(161);e.ChartNavigatorCategoryAxisNotesIcon=p.default;var l=r(162);e.ChartNavigatorCategoryAxisNotesLabel=l.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(164);e.ChartNavigatorPaneTitle=i.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(166);e.ChartNavigatorSeriesItemTooltip=i.default;var o=r(167);e.ChartNavigatorSeriesItemOutliers=o.default;var n=r(168);e.ChartNavigatorSeriesNotes=n.default;var s=r(169);e.ChartNavigatorSeriesMarkers=s.default;var a=r(170);e.ChartNavigatorSeriesLabels=a.default;var p=r(171);e.ChartNavigatorSeriesHighlight=p.default;var l=r(172);e.ChartNavigatorSeriesExtremes=l.default;var c=r(173);e.ChartNavigatorSeriesErrorBars=c.default;var h=r(174);e.ChartNavigatorSeriesLabelsFrom=h.default;var u=r(175);e.ChartNavigatorSeriesLabelsTo=u.default;var f=r(176);e.ChartNavigatorSeriesNotesLabel=f.default;var d=r(177);e.ChartNavigatorSeriesNotesIcon=d.default},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2),s=function(t){return o.createElement(n.default,i({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var i=this&&this.__assign||function(){return(i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var o=r(1),n=r(2);e.default=function(t){return o.createElement(n.default,i({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(179);e.WeekStartDay=i.WeekStartDay},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Sunday=0]="Sunday",t[t.Monday=1]="Monday",t[t.Tuesday=2]="Tuesday",t[t.Wednesday=3]="Wednesday",t[t.Thursday=4]="Thursday",t[t.Friday=5]="Friday",t[t.Saturday=6]="Saturday"}(e.WeekStartDay||(e.WeekStartDay={}))},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=r(13);e.AxisLabelClickEvent=i.AxisLabelClickEvent;var o=r(15);e.DragEndEvent=o.DragEndEvent;var n=r(14);e.DragEvent=n.DragEvent;var s=r(16);e.DragStartEvent=s.DragStartEvent;var a=r(18);e.LegendItemClickEvent=a.LegendItemClickEvent;var p=r(17);e.LegendItemHoverEvent=p.LegendItemHoverEvent;var l=r(19);e.NavigatorFilterEvent=l.NavigatorFilterEvent;var c=r(20);e.NoteClickEvent=c.NoteClickEvent;var h=r(21);e.NoteHoverEvent=h.NoteHoverEvent;var u=r(22);e.PlotAreaClickEvent=u.PlotAreaClickEvent;var f=r(23);e.PlotAreaHoverEvent=f.PlotAreaHoverEvent;var d=r(24);e.RenderEvent=d.RenderEvent;var v=r(26);e.SelectEndEvent=v.SelectEndEvent;var y=r(25);e.SelectEvent=y.SelectEvent;var g=r(27);e.SelectStartEvent=g.SelectStartEvent;var m=r(28);e.SeriesClickEvent=m.SeriesClickEvent;var x=r(29);e.SeriesHoverEvent=x.SeriesHoverEvent;var b=r(31);e.ZoomEndEvent=b.ZoomEndEvent;var _=r(30);e.ZoomEvent=_.ZoomEvent;var w=r(32);e.ZoomStartEvent=w.ZoomStartEvent},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.findAxisByName=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findAxisByName(e)};e.findPaneByIndex=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findPaneByIndex(e)};e.findPaneByName=function(t,e){if(t&&null!==t.chartInstance)return t.chartInstance.findPaneByName(e)};e.exportVisual=function(t,e){if(void 0===e&&(e={}),t&&null!==t.chartInstance)return t.chartInstance.exportVisual(e)}},function(t,e,r){"use strict";r.r(e),r.d(e,"Popup",(function(){return pt})),r.d(e,"PopupPropsContext",(function(){return at}));var i=r(1),o=r(45),n=r(3),s=function(t){t.style.transitionDuration="",t.classList.remove("k-slide-down-appear","k-slide-down-appear-active","k-slide-down-exit","k-slide-down-exit-active","k-slide-up-appear","k-slide-up-appear-active","k-slide-up-exit","k-slide-up-exit-active")},a="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),p=r(4),l="bottom",c="center",h="middle",u="left",f="right",d="top",v=function(t){var e=t.anchorRect,r=t.anchorAlign,i=t.elementRect,o=t.elementAlign,n=t.margin;void 0===n&&(n={});var s=r.horizontal,a=r.vertical,p=o.horizontal,u=o.vertical,d=n.horizontal||0,v=n.vertical||0,y=e.top,g=e.left;return a===l&&(y+=e.height),a!==c&&a!==h||(y+=Math.round(e.height/2)),u===l&&(y-=i.height,v*=-1),u!==c&&u!==h||(y-=Math.round(i.height/2),v*=-1),s===f&&(g+=e.width),s!==c&&s!==h||(g+=Math.round(e.width/2)),p===f&&(g-=i.width,d*=-1),p!==c&&p!==h||(g-=Math.round(i.width/2),d*=-1),{top:y+v,left:g+d}};function y(t){return t.ownerDocument||t.document||t}var g=function(t){return y(t).defaultView},m=function(t){return y(t).documentElement},x=0;function b(){if(!x&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),x=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return x}function _(t){var e=g(t),r=m(t),i={height:e.innerHeight,width:e.innerWidth};return r.scrollHeight-r.clientHeight>0&&(i.width-=b()),i}var w=function(t){if(!t.getBoundingClientRect){var e=_(t);return{bottom:e.height,left:0,right:e.width,top:0}}var r=t.getBoundingClientRect();return{bottom:r.bottom,left:r.left,right:r.right,top:r.top}},O=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||m(t)},S=function(t){return O(t)===t.ownerDocument.body},P=function(t){var e=t.getBoundingClientRect(),r=e.left,i=e.top;return e.height||e.width||(e=function(t){var e=t.style,r=e.display,i=e.left,o=e.position;t.style.display="",t.style.left="-10000px",t.style.position="absolute";var n=t.getBoundingClientRect();return t.style.display=r,t.style.left=i,t.style.position=o,n}(t)),{top:i,left:r,height:e.height,width:e.width}},A=function(t,e){for(var r=[],i=t.parentNode;i&&(r.push(i),i!==e);)i=i.parentNode;return r};function C(t){var e=m(t),r=g(t);return{x:r.pageXOffset||e.scrollLeft||0,y:r.pageYOffset||e.scrollTop||0}}var k=function(t){return t===(t.ownerDocument||{}).body?C(t):{x:t.scrollLeft,y:t.scrollTop}};var j=function(t,e){var r=g(t),i=r.getComputedStyle(t),o=P(t),n=e||O(t),s=t.ownerDocument,a=n!==s.body&&n!==s.documentElement,p={top:0,left:0};if("fixed"!==i.position&&a){var l=r.getComputedStyle(n);(p=P(n)).top+=parseInt(l.borderTopWidth,10),p.left+=parseInt(l.borderLeftWidth,10)}return{top:o.top-p.top,left:o.left-p.left,height:o.height,width:o.width}},M=function(t,e){return t?k(t):function(t){var e=O(t);return e?k(e):{x:0,y:0}}(e)};var T="fit",E="flip",R=function(t,e,r){var i=0;return t+e>r&&(i=r-(t+e)),t<0&&(i=-t),i},I=function(t){var e=t.offset,r=t.size,i=t.anchorSize,o=t.viewPortSize,n=t.anchorAlignPoint,s=t.elementAlignPoint,a=0,p=2*t.margin;if(s!==n&&!(s===c||s===h)&&!(n===c||n===h)){var l=n===d||n===u;e<0&&l?e+(a=r+i+p)+r>o&&(a=0):e>=0&&!l&&(e+r>o&&(a+=-(i+r+p)),e+a<0&&(a=0))}return a},B=function(t){var e=t.anchorRect,r=t.anchorAlign,i=t.elementRect,o=t.elementAlign,n=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var p=i.top,l=i.left,c=i.height,h=i.width,u=s.height,f=s.width,d=a.horizontal||0,v=a.vertical||0,y=0,g=0,m=n.horizontal===E,x=n.vertical===E;n.vertical===T&&(g+=R(p,c,u)),n.horizontal===T&&(y+=R(l,h,f)),x&&(g+=I({margin:v,offset:p,size:c,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:r.vertical,elementAlignPoint:o.vertical})),m&&(y+=I({margin:d,offset:l,size:h,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:r.horizontal,elementAlignPoint:o.horizontal}));var b=m&&0!==y,_=x&&0!==g;return{flipped:b||_,flip:{horizontal:b,vertical:_},offset:{left:y,top:g}}},L=function(t){for(var e=[],r=t.parentNode.firstElementChild;r;)r!==t&&e.push(r),r=r.nextElementSibling;return e},V=function(t,e){for(var r,i,o=A(t),n=e;n&&(r=L(n),!(i=o.reduce((function(t,e){return t.concat(r.filter((function(t){return t===e})))}),[])[0]));)n=n.parentElement;return i};var z,D=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},N=/auto|scroll/,F=function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY},U=Object(p.hasRelativeStackingContext)(),H="fit",G="flip",W="left",K="center",X="right",Y="bottom",q="top",Z=function(){function t(t){this._dom=t}return t.prototype.alignElement=function(t){var e=t.anchor,r=t.element,i=t.anchorAlign,o=t.elementAlign,n=t.offset,s=!this._dom.hasOffsetParent(r)?this.absoluteRect(e,r,n):this.relativeRect(e,r,n);return this._dom.align({anchorAlign:i,anchorRect:s,elementAlign:o,elementRect:this._dom.offset(r)})},t.prototype.absoluteRect=function(t,e,r){var i=this._dom,o=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t}(D(i.offset(t),r),i.stackingElementOffset(e)),n=i.stackingElementScroll(e),s=i.addScroll(o,n),a=this.elementScrollPosition(t,e),p=i.removeScroll(s,a);return p.left+=window.scrollX||window.pageXOffset,p.top+=window.scrollY||window.pageYOffset,p},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,r){return D(this._dom.position(t,e),r)},t}(),$=function(){function t(){}return t.prototype.addOffset=function(t,e){return{left:t.left+e.left,top:t.top+e.top}},t.prototype.align=function(t){return v(t)},t.prototype.boundingOffset=function(t){return w(t)},t.prototype.getWindow=function(){return p.canUseDOM?window:null},t.prototype.isBodyOffset=function(t){return S(t)},t.prototype.hasOffsetParent=function(t){if(!t)return!1;var e=t.offsetParent;return e&&!("BODY"===e.nodeName&&"static"===window.getComputedStyle(e).position)},t.prototype.offset=function(t){return t?P(t):null},t.prototype.staticOffset=function(t){if(!t)return null;var e=t.style,r=e.left,i=e.top;t.style.left="0px",t.style.top="0px";var o=P(t);return t.style.left=r,t.style.top=i,o},t.prototype.position=function(t,e){return t&&e?function(t,e,r){void 0===r&&(r=1);var i=e?O(e):null,o=j(t,i),n=o.top,s=o.left,a=o.height,p=o.width,l=M(i,t),c=l.x,h=l.y,u=t.ownerDocument,f=i===u.body||i===u.documentElement?1:r;return{top:n+h*f,left:s+c*f,height:a,width:p}}(t,V(t,e)):null},t.prototype.relativeOffset=function(t,e){return r=this.offset(t),i=e,o=this.isBodyOffset(t),n=r.top,s=r.left,o&&(s=0,n=0),{top:n+i.top,left:s+i.left,height:r.height,width:r.width};var r,i,o,n,s},t.prototype.addScroll=function(t,e){return function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}}(t,e)},t.prototype.removeScroll=function(t,e){return function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}}(t,e)},t.prototype.restrictToView=function(t){return B(t)},t.prototype.scrollPosition=function(t){return C(t)},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!p.canUseDOM)return e;for(var r=t.parentElement;r;)N.test(F(r))&&e.push(r),r=r.parentElement;return e.push(window),e}(t)},t.prototype.stackingElementOffset=function(t){var e=this.getRelativeContextElement(t);return e?P(e):null},t.prototype.stackingElementScroll=function(t){var e=this.getRelativeContextElement(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},t.prototype.stackingElementViewPort=function(t){var e=this.getRelativeContextElement(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},t.prototype.getRelativeContextElement=function(t){if(!t||!U)return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},t.prototype.useRelativePosition=function(t){return!!this.getRelativeContextElement(t)},t.prototype.windowViewPort=function(t){return _(t)},t.prototype.zIndex=function(t,e){return function(t,e){if(!t||!p.canUseDOM)return null;var r=V(t,e);if(!r)return null;var i=[t].concat(A(t,r)).reduce((function(t,e){var r=e.style.zIndex||window.getComputedStyle(e).zIndex,i=parseInt(r,10);return i>t?i:t}),0);return i?i+1:null}(t,e)},t.prototype.zoomLevel=function(){return p.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t}(),Q=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e,r,i=t.anchor,o=t.currentLocation,n=t.element,s=t.anchorAlign,a=t.elementAlign,p=t.collisions,l=this._dom,c=t.viewPort||l.stackingElementViewPort(n)||l.windowViewPort(n),h=D(l.offset(i),o),u=(e=l.staticOffset(n),(r=o)?{height:e.height,left:r.left,top:r.top,width:e.width}:e),f=this.elementRect(n,u),d=l.restrictToView({anchorAlign:s,anchorRect:h,collisions:p,elementAlign:a,elementRect:f,viewPort:c});return{flipped:d.flipped,offset:l.addOffset(u,d.offset)}},t.prototype.elementRect=function(t,e){return this._dom.removeScroll(e,this._dom.scrollPosition(t))},t}(),J={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1637584105,version:"",licensingDocsUrl:"https://www.telerik.com/kendo-react-ui/my-license/?utm_medium=product&utm_source=kendoreact&utm_campaign=kendo-ui-react-purchase-license-keys-warning"},tt=(z=function(t,e){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function r(){this.constructor=t}z(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),et=function(){return(et=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)};function rt(t,e){if(t===e)return!0;if(!!t!=!!e)return!1;var r=Object.getOwnPropertyNames(t),i=Object.getOwnPropertyNames(e);if(r.length!==i.length)return!1;for(var o=0;o<r.length;o++){var n=r[o];if(t[n]!==e[n])return!1}return!0}var it,ot={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(it||(it={}));var nt=function(t){function e(e){var r=t.call(this,e)||this;return r.state={current:it.hidden,previous:it.hidden,props:{}},r._popup=null,r.show=function(t){r.setPosition(t),r.animate(t.firstChild,"enter",r.onOpened),r.setState({current:it.shown,previous:r.state.current})},r.setPosition=function(t){var e=r.props,i=e.anchorAlign,o=e.popupAlign,n=e.collision,s=e.offset,a=e.anchor,p=t.firstElementChild,l=getComputedStyle(p),c=l.width,h=l.height;p.style.position="absolute",p.style.width=c,p.style.height=h;var u=r._alignService.alignElement({anchor:a,element:p,elementAlign:o,anchorAlign:i,offset:s}),f=r._positionService.positionElement({anchor:a,anchorAlign:i,collisions:n,element:p,currentLocation:u,elementAlign:o});f.offset&&(t.style.top=f.offset.top+"px",t.style.left=f.offset.left+"px",p.style.position="",p.style.width="",p.style.height=""),r._flipped=f.flipped},r.onOpened=function(){var t=r._popup;t&&(r.props.show&&t.classList.add("k-animation-container-shown"),r.attachRepositionHandlers(t),r.props.onOpen&&r.props.onOpen.call(void 0,{target:r}))},r.animate=function(t,e,i){!function(t,e,r,i,o){if(0===r)return o();var n="k-slide-"+e+"-"+i,p=n+"-active",l=function(){t.removeEventListener("transitionend",l),s(t),o()};t.addEventListener("transitionend",l);var c=t.ownerDocument;if(c){var h=c.defaultView;if(h){var u=function(){s(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=r+"ms",t.classList.add(p)}))};a?h.requestAnimationFrame(u):u()}}}(t,r._flipped?"up":"down",r.animationDuration[e],e,i)},r.onClosing=function(t){r.props.show||t.classList.remove("k-animation-container-shown"),r.detachRepositionHandlers()},r.onClosed=function(){r.state.current===it.hiding&&r.state.previous===it.shown&&r.setState({current:it.hidden,previous:r.state.current}),r.props.onClose&&r.props.onClose.call(void 0,{target:r})},Object(p.validatePackage)(J),r._domService=new $,r._alignService=new Z(r._domService),r._positionService=new Q(r._domService),r.reposition=function(t,e,r){var i,o,n,s;void 0===r&&(r={});var a=0;r=r||{};var p=function(){a=!1===r.leading?0:(new Date).getTime(),i=null,s=t.apply(o,n),i||(o=n=null)};return function(){var l=(new Date).getTime();a||!1!==r.leading||(a=l);var c=e-(l-a);return o=this,n=arguments,c<=0||c>e?(i&&(clearTimeout(i),i=null),a=l,s=t.apply(o,n),i||(o=n=null)):i||!1===r.trailing||(i=window.setTimeout(p,c)),s}}(r.reposition.bind(r),1e3/60),r}return tt(e,t),e.getDerivedStateFromProps=function(t,e){var r=t.show,i=t.anchor,o=t.anchorAlign,n=t.appendTo,s=t.collision,a=t.popupAlign,p=t.className,l=t.popupClass,c=t.style,h=t.offset,u=t.contentKey,f=et({},e,{props:{show:r,anchor:i,anchorAlign:o,appendTo:n,collision:s,popupAlign:a,className:p,popupClass:l,style:c,offset:h,contentKey:u}});return t.show?e.current===it.hidden||e.current===it.hiding?et({},f,{current:it.showing,previous:e.current}):e.current===it.showing?et({},f,{current:it.shown,previous:e.current}):e.current!==it.shown||rt(h,e.props.offset)&&rt(o,e.props.anchorAlign)&&rt(n,e.props.appendTo)&&rt(s,e.props.collision)&&rt(a,e.props.popupAlign)&&rt(c,e.props.style)&&i===e.props.anchor&&l===e.props.popupClass&&p===e.props.className?f:et({},f,{current:it.reposition,previous:e.current}):e.current===it.hiding||e.current===it.hidden?et({},f,{current:it.hidden,previous:e.current}):et({},f,{current:it.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===it.showing&&this._popup?this.show(this._popup):this.state.current===it.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===it.reposition&&this.state.previous===it.shown?this.setState({current:it.shown,previous:this.state.current}):this.state.current===it.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===it.showing&&this._popup&&this.show(this._popup)},e.prototype.componentWillUnmount=function(){this.detachRepositionHandlers()},e.prototype.render=function(){var t=this,e=this.props,r=e.children,n=e.className,s=e.popupClass,a=e.show,l=e.id,c=this.props.appendTo?this.props.appendTo:p.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===it.reposition&&this.state.previous===it.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:"absolute"},this.props.style||{}),u=this.state.current===it.hiding;if((a||u)&&c){var f=i.createElement("div",{className:Object(p.classNames)("k-animation-container","k-animation-container-relative",n),id:l,ref:function(e){return t._popup=e},style:h},i.createElement("div",{className:Object(p.classNames)(s,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},r));return o.createPortal(f,c)}return null},Object.defineProperty(e.prototype,"animationDuration",{get:function(){var t=this.props.animate,e=0,r=0;return t&&(!0===t?e=r=300:(e=t.openDuration||0,r=t.closeDuration||0)),{enter:e,exit:r}},enumerable:!0,configurable:!0}),e.prototype.attachRepositionHandlers=function(t){var e=this;this.detachRepositionHandlers(),this._scrollableParents=this._domService.scrollableParents(this.props.anchor||t),this._scrollableParents.map((function(t){return t.addEventListener("scroll",e.reposition)})),window.addEventListener("resize",this.reposition)},e.prototype.detachRepositionHandlers=function(){var t=this;this._scrollableParents&&(this._scrollableParents.map((function(e){return e.removeEventListener("scroll",t.reposition)})),this._scrollableParents=void 0),window.removeEventListener("resize",this.reposition)},e.prototype.reposition=function(){this.setState({current:it.reposition,previous:this.state.current})},e.propTypes={anchor:function(t){var e=t.anchor;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `anchor` supplied to `Kendo React Popup`. Validation failed."):null},appendTo:function(t){var e=t.appendTo;return e&&"number"!=typeof e.nodeType?new Error("Invalid prop `appendTo` supplied to `Kendo React Popup`. Validation failed."):null},className:n.string,id:n.string,popupClass:n.string,collision:n.shape({horizontal:n.oneOf([H,G]),vertical:n.oneOf([H,G])}),anchorAlign:n.shape({horizontal:n.oneOf([W,K,X]),vertical:n.oneOf([q,K,Y])}),popupAlign:n.shape({horizontal:n.oneOf([W,K,X]),vertical:n.oneOf([q,K,Y])}),offset:n.shape({left:n.number,top:n.number}),children:n.oneOfType([n.element,n.node]),show:n.bool,animate:n.oneOfType([n.bool,n.shape({openDuration:n.number,closeDuration:n.number})])},e.defaultProps={collision:{horizontal:H,vertical:G},anchorAlign:{horizontal:W,vertical:Y},popupAlign:{horizontal:W,vertical:q},offset:ot,animate:!0,show:!1},e}(i.Component),st=function(){return(st=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++)for(var o in e=arguments[r])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t}).apply(this,arguments)},at=i.createContext((function(t){return t})),pt=i.forwardRef((function(t,e){var r=i.useContext(at).call(void 0,t);return i.createElement(nt,st({ref:e},r))}))}])}));