@progress/kendo-react-charts 4.12.0 → 4.13.0-dev.202111290654
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=" ",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&>(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=" ",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=" ",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=" ",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))}))}])}));
|
|
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,o,i,n){return function(t){var e={};function r(o){if(e[o])return e[o].exports;var i=e[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=t,r.c=e,r.d=function(t,e,o){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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 o=Object.create(null);if(r.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)r.d(o,i,function(e){return t[e]}.bind(null,i));return o},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 o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(34),c=r(35),p=r(9),h=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.optionsStore=r.optionsStore,o.childStore=l.default(c.optionsReducer),o}return i(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,o=t._parentStore,i=(t.children,s(t,["_chartKey","_chartCollectionIdxKey","_parentStore","children"]));(o||this.optionsStore).dispatch({chartKey:e,chartCollectionIdxKey:r,payload:Object.assign({},i,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=p.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 i})),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 c})),r.d(e,"clone",(function(){return p})),r.d(e,"cloneObject",(function(){return h})),r.d(e,"cloneValue",(function(){return u})),r.d(e,"cloneArray",(function(){return f})),r.d(e,"focusFirstFocusableChild",(function(){return d})),r.d(e,"FormComponent",(function(){return v})),r.d(e,"getTabIndex",(function(){return y})),r.d(e,"getter",(function(){return b})),r.d(e,"guid",(function(){return _})),r.d(e,"Keys",(function(){return w})),r.d(e,"noop",(function(){return C})),r.d(e,"getScrollbarWidth",(function(){return O})),r.d(e,"setScrollbarWidth",(function(){return P})),r.d(e,"setter",(function(){return A})),r.d(e,"mapTree",(function(){return T})),r.d(e,"mapTreeItem",(function(){return E})),r.d(e,"extendDataItem",(function(){return R})),r.d(e,"getItemPath",(function(){return B})),r.d(e,"validatePackage",(function(){return D})),r.d(e,"hasRelativeStackingContext",(function(){return L})),r.d(e,"dispatchEvent",(function(){return V})),r.d(e,"AsyncFocusBlur",(function(){return H})),r.d(e,"createPropsContext",(function(){return G})),r.d(e,"withPropsContext",(function(){return W})),r.d(e,"useDir",(function(){return K})),r.d(e,"useAsyncFocusBlur",(function(){return z})),r.d(e,"useRtl",(function(){return X})),r.d(e,"useMouse",(function(){return q})),r.d(e,"useCustomComponent",(function(){return Z})),r.d(e,"usePropsContext",(function(){return U})),r.d(e,"COLLECTION_ACTION",(function(){return Y})),r.d(e,"useCollection",(function(){return Q})),r.d(e,"Icon",(function(){return rt})),r.d(e,"SvgIcon",(function(){return st})),r.d(e,"Typography",(function(){return bt})),r.d(e,"DragAndDrop",(function(){return zt})),r.d(e,"Draggable",(function(){return Nt})),r.d(e,"Droppable",(function(){return Ht})),r.d(e,"useDraggable",(function(){return It})),r.d(e,"useDroppable",(function(){return Dt}));var o=function(){return"undefined"!=typeof document?document:{}},i=function(){function t(){}return Object.defineProperty(t.prototype,"scrollbarWidth",{get:function(){var t=o();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=" ",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(" ")},l=r(1),c=function(t){return t?new Date(t.getTime()):null};function p(t){var e={};return h(t,e),e}function h(t,e){for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];e[r]=u(o,e[r])}}function u(t,e){if(Array.isArray(t))return f(t);if(t instanceof Date)return c(t);if(l.isValidElement(t))return l.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=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()}},v=function(){},y=function(t,e,r){var o="string"==typeof t?parseInt(t,void 0):t;if(NaN!==o)return void 0!==o?o:e?r?void 0:-1:0},g=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function m(t){var e=[];return t.replace(g,(function(t,r,o,i){e.push(void 0!==r?r:o||i)})),e}var x={};function b(t){if(x[t])return x[t];var e=m(t);return x[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},x[t]}x.undefined=function(){};var _=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},w={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},C=function(){},O=function(){return!(!n||!document.body)&&(new i).scrollbarWidth},P=function(){if(!n||!document.body)return!1;var t=(new i).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",t+"px")},S={undefined:function(t){return t}},k=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function A(t){if(S[t])return S[t];var e=m(t);return S[t]=function(t,r,o){for(var i=t,n=e.length-1,s=0;s<n&&i;s++)i=i[e[s]]=i[e[s]]||k(e[s+1],o);i[e[n]]=r},S[t]}var M=function(){return(M=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function j(t,e,r){var o;return r?M({},t,((o={})[e]=r.length?r.slice():void 0,o)):t&&t[e]?t[e].slice():[]}var T=function(t,e,r){return t.map((function(t){return function t(e,r,o){if(e[r]){var i=j(e,r).map((function(e){return t(e,r,o)}));return o(j(e,r,i))}return o(e)}(t,e,r)})).slice()},E=function(t,e,r,o){for(var i=t,n=[],s=0;s<e.length;s++)i=i[e[s]],i=Array.isArray(i)?i:i[r],n.push(i);var a=n.length>1?n[n.length-2]:t,l=e[e.length-1],c=o(a[l]);a.splice(l,1,c)},R=function(t,e,r){var o;return Object.assign({},t,t[e]?((o={})[e]=t[e].slice(),o):{},r||{})},B=function(t,e,r){var o=[],i=e.slice();if(i.length){var n=t[i.shift()||0];for(o.push(n);i.length&&r;)n=n[r][i.shift()||0],o.push(n)}return o},I=r(12);function D(t){if(void 0!==I)I.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 L=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 o=10!==r.children[0].getBoundingClientRect().top;return e.body.removeChild(r),o};function V(t,e,r,o){if(t){var i={syntheticEvent:e,nativeEvent:e.nativeEvent,target:r};t.call(void 0,Object.assign(i,o))}}function z(t){var e=t.onFocus,r=t.onBlur,o=t.onSyncFocus,i=t.onSyncBlur,n=l.useRef(!1),s=l.useRef(0),a=l.useCallback((function(t){clearTimeout(s.current),s.current=window.setTimeout((function(){return t()}))}),[s]),c=l.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(s.current),o&&o.call.apply(o,[void 0].concat(t)),n.current||(n.current=!0,e&&e.call.apply(e,[void 0].concat(t)))}),[n,e,o]),p=l.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call.apply(i,[void 0].concat(t)),a((function(){n.current&&r&&(n.current=!1,r.call.apply(r,[void 0].concat(t)))}))}),[n,a,r,i]);return l.useEffect((function(){return function(){clearTimeout(s.current)}}),[]),{onFocus:c,onBlur:p}}var N=function(){return(N=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},H=function(t){var e=t.children,r=z({onFocus:t.onFocus,onBlur:t.onBlur,onSyncFocus:t.onSyncFocus,onSyncBlur:t.onSyncBlur});return e.call(void 0,N({},r))},U=function(t,e){return l.useContext(t)(e)},F=function(){return(F=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},G=function(){return l.createContext((function(t){return t}))},W=function(t,e){return l.forwardRef((function(r,o){var i=U(t,r);return l.createElement(e,F({},i,{ref:o}))}))};function K(t,e,r){var o=l.useState(e),i=o[0],n=o[1];return l.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),i}function X(t,e,r){var o=l.useState(e),i=o[0],n=o[1];return l.useEffect((function(){if(!i&&window&&t.current){var e=window.getComputedStyle(t.current).direction;e&&n(e)}}),r),i}var Y,q=function(t,e,r){void 0===r&&(r={});var o=l.useCallback((function(o){r.onMouseDown&&r.onMouseDown.call(void 0,o),t.onMouseDown&&t.onMouseDown.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseDown,t.onMouseDown,e]),i=l.useCallback((function(o){r.onMouseUp&&r.onMouseUp.call(void 0,o),t.onMouseUp&&t.onMouseUp.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseUp,t.onMouseUp,e]);return{onClick:l.useCallback((function(o){r.onClick&&r.onClick.call(void 0,o),t.onClick&&t.onClick.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onClick,t.onClick,e]),onMouseUp:i,onMouseDown:o,onDoubleClick:l.useCallback((function(o){r.onDoubleClick&&r.onDoubleClick.call(void 0,o),t.onDoubleClick&&t.onDoubleClick.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onDoubleClick,t.onDoubleClick,e]),onMouseEnter:l.useCallback((function(o){r.onMouseEnter&&r.onMouseEnter.call(void 0,o),t.onMouseEnter&&t.onMouseEnter.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseEnter,t.onMouseEnter,e]),onMouseLeave:l.useCallback((function(o){r.onMouseLeave&&r.onMouseLeave.call(void 0,o),t.onMouseLeave&&t.onMouseLeave.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseLeave,t.onMouseLeave,e]),onMouseMove:l.useCallback((function(o){r.onMouseMove&&r.onMouseMove.call(void 0,o),t.onMouseMove&&t.onMouseMove.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseMove,t.onMouseMove,e]),onMouseOut:l.useCallback((function(o){r.onMouseOut&&r.onMouseOut.call(void 0,o),t.onMouseOut&&t.onMouseOut.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseOut,t.onMouseOut,e]),onMouseOver:l.useCallback((function(o){r.onMouseOver&&r.onMouseOver.call(void 0,o),t.onMouseOver&&t.onMouseOver.call(void 0,{target:e.current,syntheticEvent:o})}),[r.onMouseOver,t.onMouseOver,e])}},Z=function(t){return l.isValidElement(t)?[t.type,t.props]:[t,{}]};!function(t){t[t.add=0]="add",t[t.remove=1]="remove"}(Y||(Y={}));var Q=function(t){void 0===t&&(t=[]);var e=l.useRef(t),r=l.useCallback((function(t){switch(t.type){case Y.add:e.current.push(t.item);break;case Y.remove:var r=e.current.indexOf(t.item);e.current.splice(r,1)}}),[]);return[e.current,r]},$=r(3),J={default:"",xsmall:"k-icon-xs",small:"k-icon-sm",medium:"k-icon-md",large:"k-icon-lg",xlarge:"k-icon-xl"},tt=function(){return(tt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},et=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},rt=l.forwardRef((function(t,e){var r=t.className,o=t.name,i=t.themeColor,n=t.size,s=t.flip,c=t.style,p=et(t,["className","name","themeColor","size","flip","style"]),h=l.useRef(null),u=l.useRef(null);l.useImperativeHandle(h,(function(){return{element:u.current}})),l.useImperativeHandle(e,(function(){return h.current}));var f=l.useMemo((function(){return i||ot.themeColor}),[i]),d=l.useMemo((function(){return n||ot.size}),[n]),v=l.useMemo((function(){return s||ot.flip}),[s]),y=l.useMemo((function(){return a("k-icon","k-i-"+o,"k-color-"+f,{"k-flip-h":"horizontal"===v||"both"===v,"k-flip-v":"vertical"===v||"both"===v},J[d],r)}),[o,f,d,v,r]),g=q(t,h);return l.createElement("span",tt({ref:u},p,g,{className:y,style:c,role:"presentation"}))}));rt.propTypes={style:$.object,classNames:$.string,name:$.string,themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:$.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:$.oneOf(["default","horizontal","vertical","both"])};var ot={size:"default",themeColor:"inherit",flip:"default"};rt.displayName="KendoIcon";var it=function(){return(it=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},nt=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},st=l.forwardRef((function(t,e){var r=t.children,o=t.className,i=t.svgClassName,n=t.icon,s=t.flip,c=t.size,p=t.style,h=t.svgStyle,u=t.themeColor,f=t.viewBox,d=nt(t,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=l.useRef(null);l.useImperativeHandle(e,(function(){return{element:v.current}}));var y=l.useMemo((function(){return n?n.name:at.icon}),[n]),g=l.useMemo((function(){return u||at.themeColor}),[u]),m=l.useMemo((function(){return c||at.size}),[c]),x=l.useMemo((function(){return s||at.flip}),[s]),b=l.useMemo((function(){return f||at.viewBox}),[f]),_=l.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},J[m],o)}),[y,g,m,x,o]),w=l.useMemo((function(){return t.width&&t.height?it({width:t.width,height:t.height},p):t.width?it({width:t.width,height:t.width},p):t.height?it({width:t.height,height:t.height},p):it({},p)}),[t.width,t.height,p]);return l.createElement("span",{className:_,style:w,ref:v},l.createElement("svg",it({className:i,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))}));st.propTypes={style:$.object,classNames:$.string,children:$.any,icon:$.object,themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"]),size:$.oneOf(["default","xsmall","small","medium","large","xlarge"]),flip:$.oneOf(["default","horizontal","vertical","both"])};var at={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};st.displayName="KendoSvgIcon";var lt,ct={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},pt={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},ht={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"},ut={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",thin:"thin",hair:"hair"},ft={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},dt={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},vt={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},yt={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"},gt=function(){return(gt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},mt=function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r},xt=function(t){var e=l.forwardRef((function(e,r){var o=e.className,i=e.fontSize,n=e.fontWeight,s=e.textAlign,a=e.textTransform,c=e.themeColor,p=e.margin,h=mt(e,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),u=l.useRef(null),f=l.useRef(null);l.useImperativeHandle(u,(function(){return{element:f.current,props:e}})),l.useImperativeHandle(r,(function(){return u.current}));var d=t,v=function(){if(void 0!==p){if("string"==typeof p)return[ht[p]];if("number"==typeof p&&p>=0&&p<=24)return["k-m-"+p];if("object"==typeof p){var t=[];return Object.keys(p).forEach((function(e){var r,o;null!==p[e]&&void 0!==p[e]&&t.push((r=e,o=p[e],""+ft[r]+("string"==typeof o?ut[o]:o)))})),t.join(" ")}}};return l.createElement(d,gt({ref:f,className:["k-"+("p"===t?"paragraph":t),ct[i],pt[n],dt[s],vt[a],yt[c],v(),o].filter((function(t){return void 0!==t})).join(" ")},h),e.children)}));return e.propTypes={style:$.object,className:$.string,fontSize:$.oneOf(["xsmall","small","medium","large","xlarge"]),fontWeight:$.oneOf(["light","normal","bold"]),margin:$.oneOfType([$.number,$.object,$.oneOf(["xsmall","small","medium","large","xlarge","thin","hair"])]),textAlign:$.oneOf(["left","right","center","justify"]),textTransform:$.oneOf(["lowercase","uppercase","capitalize"]),themeColor:$.oneOf(["inherit","primary","secondary","tertiary","info","success","error","warning","dark","light","inverse"])},e.displayName="KendoReactTypography"+t.toUpperCase(),e},bt={h1:xt("h1"),h2:xt("h2"),h3:xt("h3"),h4:xt("h4"),h5:xt("h5"),h6:xt("h6"),p:xt("p"),code:xt("code"),pre:xt("pre")},_t=function(t,e){var r=0,o=null;return e.forEach((function(e){if(e&&t){var i=function(t,e){var r=t.getBoundingClientRect(),o=e.getBoundingClientRect(),i=Math.max(o.top,r.top),n=Math.max(o.left,r.left),s=Math.min(o.left+o.width,r.left+r.width),a=Math.min(o.top+o.height,r.top+r.height),l=s-n,c=a-i;if(n<s&&i<a){var p=o.width*o.height,h=r.width*r.height,u=l*c;return Number((u/(p+h-u)).toFixed(4))}return 0}(t,e);i>r&&(r=i,o=e)}})),o},wt=function(){var t=window&&window.navigator.userAgent;if(!t)return!1;var e=!1,r=[],o={edge:/(edge)[ \/]([\w.]+)/i,webkit:/(chrome|crios)[ \/]([\w.]+)/i,safari:/(webkit)[ \/]([\w.]+)/i,opera:/(opera)(?:.*version|)[ \/]([\w.]+)/i,msie:/(msie\s|trident.*? rv:)([\w.]+)/i,mozilla:/(mozilla)(?:.*? rv:([\w.]+)|)/i};for(var i in o)if(o.hasOwnProperty(i)&&(r=t.match(o[i]))){(e={})[i]=!0,e[r[1].toLowerCase().split(" ")[0].split("/")[0]]=!0,e.version=parseInt(document.DOCUMENT_NODE||r[2],10);break}return e},Ct=function(t){return t&&t.ownerDocument||window.document},Ot=function(t){var e=wt(),r=Ct(t);return e.edge||e.safari?r.body:r.documentElement},Pt=function(t){if(t&&t.className&&"string"==typeof t.className&&t.className.indexOf("k-auto-scrollable")>-1)return!0;var e=window.getComputedStyle(t,"overflow").overflow;return e.indexOf("auto")>-1||e.indexOf("scroll")>-1},St=function(t){var e=Ot(t);if(!t||t===document.body||t===document.documentElement)return e;for(var r=t;r&&!Pt(r)&&r!==document.body;)r=r.parentNode;return r===document.body?e:r};!function(t){t.POINTER_DOWN="pointerdown",t.POINTER_MOVE="pointermove",t.POINTER_UP="pointerup",t.POINTER_CANCEL="pointercancel",t.MOUSE_DOWN="mousedown",t.MOUSE_MOVE="mousemove",t.MOUSE_UP="mouseup",t.CONTEXT_MENU="contextmenu",t.TOUCH_START="touchstart",t.TOUCH_MOVE="touchmove",t.TOUCH_END="touchend",t.TOUCH_CANCEL="touchcancel",t.SCROLL="scroll",t.START="KENDO_DRAG_AND_DROP_START",t.MOVE="KENDO_DRAG_AND_DROP_MOVE",t.END="KENDO_DRAG_AND_DROP_END",t.CANCEL="KENDO_DRAG_AND_DROP_CANCEL"}(lt||(lt={}));var kt=function(){},At=function(t,e,r){void 0===r&&(r={});var o,i,n,s,a=r.onIsPressedChange,l=void 0===a?kt:a,c=r.onIsScrollingChange,p=void 0===c?kt:c,h=r.onVelocityChange,u=void 0===h?kt:h,f=r.onOffsetChange,d=void 0===f?kt:f,v=r.onPageOffsetChange,y=void 0===v?kt:v,g=r.onClientOffsetChange,m=void 0===g?kt:g,x=r.onScrollOffsetChange,b=void 0===x?kt:x,_=r.onInitialScrollOffsetChange,w=void 0===_?kt:_,C=e.payload,O=C.element,P=C.hint,S=t.autoScrollDirection,k=t.scrollableParent,A=function(t,e){return function(t){return/^touch/.test(t.type)}(t)?{pageX:t.changedTouches[0].pageX,pageY:t.changedTouches[0].pageY,clientX:t.changedTouches[0].clientX,clientY:t.changedTouches[0].clientY,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,offsetX:e.offset.x,offsetY:e.offset.y,type:t.type,originalEvent:t,isTouch:!0,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:function(t){return/^(scroll)/.test(t.type)}(t)?{pageX:e.pageOffset.x,pageY:e.pageOffset.y,clientX:e.clientOffset.x,clientY:e.clientOffset.y,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,offsetX:e.offset.x,offsetY:e.offset.y,type:t.type,originalEvent:t,altKey:!1,ctrlKey:!1,shiftKey:!1,metaKey:!1}:{pageX:t.pageX,pageY:t.pageY,clientX:t.clientX,clientY:t.clientY,offsetX:t.offsetX,offsetY:t.offsetY,scrollX:e.scrollOffset.x,scrollY:e.scrollOffset.y,type:t.type,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,originalEvent:t}}(e.event,t);switch(A.type){case lt.POINTER_DOWN:if(A.type===lt.POINTER_DOWN&&(!A.originalEvent.isPrimary||0!==A.originalEvent.button))break;case lt.MOUSE_DOWN:if(A.type===lt.MOUSE_DOWN&&A.originalEvent.which&&A.originalEvent.which>1||t.ignoreMouse)break;case lt.TOUCH_START:if(A.type===lt.TOUCH_START&&1!==A.originalEvent.touches.length)break;case lt.START:var M=k||St(e.payload.element);w(M instanceof Window?{x:M.scrollX,y:M.scrollY}:{x:M.scrollLeft,y:M.scrollTop}),m({x:A.clientX,y:A.clientY}),y({x:A.pageX,y:A.pageY}),d({x:A.offsetX,y:A.offsetY}),l(!0),C.onPress&&C.onPress(A);break;case lt.SCROLL:if(A.type===lt.SCROLL&&!t.pressed)break;var j=k||St(O),T=j instanceof Window?{x:j.scrollX,y:j.scrollY}:{x:j.scrollLeft,y:j.scrollTop};A.scrollX=T.x-t.initialScrollOffset.x,A.scrollY=T.y-t.initialScrollOffset.y,b({x:A.scrollX,y:A.scrollY});case lt.POINTER_MOVE:if(A.type===lt.POINTER_MOVE&&!A.originalEvent.isPrimary)break;case lt.MOUSE_MOVE:case lt.TOUCH_MOVE:if(A.type===lt.TOUCH_MOVE&&1!==A.originalEvent.touches.length)break;case lt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==A.originalEvent.type&&O){var E=Ct(O),R=k||St(E.elementFromPoint(A.clientX,A.clientY)),B=function(t,e,r){var o={x:0,y:0};return t-r.left<50?o.x=-(50-(t-r.left)):r.right-t<50&&(o.x=50-(r.right-t)),e-r.top<50?o.y=-(50-(e-r.top)):r.bottom-e<50&&(o.y=50-(r.bottom-e)),o}(A.pageX,A.pageY,function(t,e){var r=Ot(t);if(t===r)return{top:r.scrollTop,left:r.scrollLeft,bottom:r.scrollTop+e.innerHeight,right:r.scrollLeft+e.innerWidth};var o=t.getBoundingClientRect();return{bottom:o.top+o.height,right:o.left+o.width,left:o.left,top:o.top}}(R,function(t){var e=Ct(t);return e&&e.defaultView||window}(O)));u({x:S&&!1===S.horizontal?0:B.x,y:S&&!1===S.vertical?0:B.y}),p(0!==B.y||0!==B.x)}!t.drag&&C.onDragStart&&C.onDragStart(A),C.onDrag&&C.onDrag(A);var I=_t(P||O,t.drops.map((function(t){return t&&t.element})).filter((function(t){return t!==(P||O)}))),D=t.drops.find((function(t){return t.element===I}));D&&I&&(o=A.clientX,i=A.clientY,n=k||St(I),(s=n.getBoundingClientRect()).top<=i&&s.left<=o&&i<=s.bottom&&o<=s.right)&&I!==O?(t.drop&&t.drop.element)!==I?(t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A),D.onDragEnter&&D.onDragEnter(A)):D.onDragOver&&D.onDragOver(A):t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A)}m({x:A.clientX,y:A.clientY}),y({x:A.pageX,y:A.pageY});break;case lt.POINTER_UP:if(A.type===lt.POINTER_UP&&!A.originalEvent.isPrimary)break;case lt.MOUSE_UP:case lt.TOUCH_END:if(A.type===lt.TOUCH_END&&1!==A.originalEvent.touches.length)break;case lt.END:l(!1),p(!1),C.onRelease&&C.onRelease(A),t.drop&&t.drop.onDrop&&t.drop.onDrop(A),C.onDragEnd&&C.onDragEnd(A);break;case lt.POINTER_CANCEL:case lt.CONTEXT_MENU:case lt.TOUCH_CANCEL:case lt.CANCEL:l(!1),p(!1),C.onDragEnd&&C.onDragEnd(A),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A)}},Mt=function(t,e){if(t){var r,o;t===Ot(t)?(r=document.body.scrollHeight>window.innerHeight,o=document.body.scrollWidth>window.innerWidth):(r=t.offsetHeight<=t.scrollHeight,o=t.offsetWidth<=t.scrollWidth);var i=t.scrollTop+e.y,n=r&&i>0&&i<t.scrollHeight,s=t.scrollLeft+e.x,a=o&&s>0&&s<t.scrollWidth;n?t.scrollTop+=e.y:r&&i<0&&(t.scrollTop=0),a?t.scrollLeft+=e.x:o&&s<0&&(t.scrollLeft=0)}},jt=function(t,e){var r=l.useContext(t),o=r[0],i=r[1],n=l.useState(e),s=n[0],a=n[1];return[void 0!==o?o:s,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==o?i.apply(void 0,t):a(t[0])}]},Tt=l.createContext([void 0,C]),Et=l.createContext([void 0,C]),Rt=l.createContext([[],C,C]),Bt=l.createContext([[],C,C]);function It(t,e,r){void 0===r&&(r={});var o=e.onPress,i=void 0===o?C:o,n=e.onRelease,s=void 0===n?C:n,a=e.onDragStart,c=void 0===a?C:a,p=e.onDrag,h=void 0===p?C:p,u=e.onDragEnd,f=void 0===u?C:u,d=r.hint,v=void 0===d?null:d,y=r.mouseOnly,g=void 0!==y&&y,m=r.autoScroll,x=void 0===m||m,b=r.scrollContainer,_=void 0===b?null:b,w=l.useState(!1),O=w[0],P=w[1],S=l.useState(!1),k=S[0],A=S[1],M=jt(Et)[0],j=jt(Tt),T=j[0],E=j[1],R=l.useContext(Bt)[0],B=l.useContext(Rt),I=B[0],D=B[1],L=B[2],V=l.useRef({x:0,y:0}),z=l.useRef(),N=l.useRef(!1),H=l.useRef(),U=l.useRef(!1),F=l.useRef({x:0,y:0}),G=l.useRef({x:0,y:0}),W=l.useRef({x:0,y:0}),K=l.useRef({x:0,y:0}),X=l.useRef({x:0,y:0}),Y=l.useRef({x:0,y:0}),q=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Z=!g&&q,Q=l.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),$=l.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),J=l.useCallback((function(){return _&&_.current&&_.current.element?_.current.element:_?_.current:null}),[_]),tt=l.useCallback((function(){return"object"==typeof x&&x.boundaryElementRef&&x.boundaryElementRef.current&&x.boundaryElementRef.current.element?x.boundaryElementRef.current.element:"object"==typeof x&&x.boundaryElementRef&&x.boundaryElementRef.current?x.boundaryElementRef.current:null}),[x]),et=l.useRef(null);l.useImperativeHandle(et,(function(){return{element:Q(),hint:$(),onPress:dt,onDragStart:yt,onDrag:gt,onDragEnd:mt,onRelease:vt,data:t.current}}));var rt=l.useCallback((function(){var t=Q();return t&&t.ownerDocument||document}),[Q]),ot=l.useCallback((function(){var t=rt();return t&&t.defaultView||window}),[rt]),it=l.useCallback((function(){return{drag:T?T.current:null,drop:M?M.current:null,drags:I.map((function(t){return t.current})),drops:R.map((function(t){return t.current})),pressed:O,ignoreMouse:N.current,scrollOffset:X.current,offset:F.current,pageOffset:G.current,initialScrollOffset:Y.current,clientOffset:W.current,initialClientOffset:K.current,velocity:V.current,autoScroll:Boolean("object"==typeof x?!1!==x.enabled:x),scrollableParent:tt(),autoScrollDirection:"object"==typeof x?x.direction:{horizontal:!0,vertical:!0},isScrolling:k}}),[T,M,I,R,O,x,tt,k]),nt=l.useCallback((function(t){P(t)}),[]),st=l.useCallback((function(t){A(t)}),[]),at=l.useCallback((function(t){V.current=t}),[]),lt=l.useCallback((function(t){F.current=t}),[]),ct=l.useCallback((function(t){W.current=t}),[]),pt=l.useCallback((function(t){G.current=t}),[]),ht=l.useCallback((function(t){K.current=t}),[]),ut=l.useCallback((function(t){X.current=t}),[]),ft=l.useCallback((function(t){Y.current=t}),[]),dt=l.useCallback((function(t){i(t)}),[i]),vt=l.useCallback((function(t){s(t)}),[s]),yt=l.useCallback((function(e){E(et,{target:t.current,event:e}),c(e)}),[E,t,c]),gt=l.useCallback((function(t){h(t)}),[h]),mt=l.useCallback((function(e){U.current||(E(null,{target:t.current,event:e}),f(e))}),[f,E,t]),xt=l.useCallback((function(t){At(it(),{event:t,payload:et.current},{onVelocityChange:at,onOffsetChange:lt,onClientOffsetChange:ct,onPageOffsetChange:pt,onInitialClientOffsetChange:ht,onScrollOffsetChange:ut,onInitialScrollOffsetChange:ft,onIsPressedChange:nt,onIsScrollingChange:st})}),[it,at,lt,pt,ct,ht,ft,nt,ut,st]),bt=l.useCallback((function(t){xt(t)}),[xt]),_t=l.useCallback((function(t){xt(t)}),[xt]),wt=l.useCallback((function(t){xt(t)}),[xt]),Ct=l.useCallback((function(t){xt(t)}),[xt]),Ot=l.useCallback((function(t){xt(t)}),[xt]),Pt=l.useCallback((function(t){xt(t)}),[xt]),kt=l.useCallback((function(t){xt(t)}),[xt]),It=l.useCallback((function(t){t.preventDefault(),xt(t)}),[xt]),Dt=l.useCallback((function(t){t.preventDefault(),xt(t)}),[xt]),Lt=l.useCallback((function(t){t.preventDefault(),xt(t)}),[xt]),Vt=l.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=ot();N.current=!0,H.current=e.setTimeout((function(){N.current=!1}),2e3)}xt(t)}),[xt,ot]),zt=l.useCallback((function(t){xt(t)}),[xt]),Nt=l.useCallback((function(){var t=Q();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[Q]),Ht=l.useCallback((function(){return D(et),function(){L(et)}}),[L,D]);l.useEffect((function(){var t=ot();if(k){var e=J()||St(document.elementFromPoint(W.current.x,W.current.y));t.clearInterval(z.current),z.current=t.setInterval((function(){Mt(e,{x:V.current.x,y:V.current.y})}),50)}return function(){t.clearInterval(z.current)}}),[Q,J,ot,k]),l.useEffect(Nt,[Nt]),l.useEffect((function(){var t=ot(),e=Q(),r=rt();if(Z){if(e)St(e).addEventListener("scroll",zt,{passive:!0}),e.addEventListener("pointerdown",bt,{passive:!0});O&&(r.addEventListener("pointermove",_t),r.addEventListener("pointerup",Ct,!0),r.addEventListener("contextmenu",It),r.addEventListener("pointercancel",wt,{passive:!0}))}else t.addEventListener("touchmove",C,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",Ot,{passive:!0}),g||(e.addEventListener("touchstart",Dt,{passive:!0}),O&&(e.addEventListener("touchmove",Lt,{passive:!0}),e.addEventListener("touchend",Vt,{passive:!0})))),O&&(r.addEventListener("mousemove",Pt,{passive:!0}),r.addEventListener("mouseup",kt,{passive:!0}));return function(){if(e){var o=St(e);o&&o.removeEventListener("scroll",zt),e.removeEventListener("pointerdown",bt),e.removeEventListener("mousedown",Ot),e.removeEventListener("touchstart",Dt),e.removeEventListener("touchmove",Lt),e.removeEventListener("touchend",Vt)}r.removeEventListener("pointermove",_t),r.removeEventListener("pointerup",Ct,!0),r.removeEventListener("contextmenu",It),r.removeEventListener("pointercancel",wt),r.removeEventListener("mousemove",Pt),r.removeEventListener("mouseup",kt),t.removeEventListener("touchmove",C),t.clearTimeout(H.current)}}),[O,ot,Q,rt,g,Z,It,Ot,Pt,kt,wt,bt,_t,Ct,Vt,Lt,Dt,zt]),l.useEffect((function(){return function(){U.current=!0}}),[]),l.useLayoutEffect(Ht,[Ht])}function Dt(t,e){void 0===e&&(e={onDragEnter:C,onDragOver:C,onDragLeave:C,onDrop:C});var r=e.onDragEnter,o=void 0===r?C:r,i=e.onDragOver,n=void 0===i?C:i,s=e.onDragLeave,a=void 0===s?C:s,c=e.onDrop,p=void 0===c?C:c,h=jt(Et)[1],u=l.useContext(Bt),f=u[1],d=u[2],v=l.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),y=l.useRef(null);l.useImperativeHandle(y,(function(){return{element:v(),onDragEnter:g,onDragOver:m,onDragLeave:x,onDrop:b,data:t.current}}));var g=l.useCallback((function(e){h(y,{target:t.current,event:e}),o(e)}),[h,t,o]),m=l.useCallback((function(t){n(t)}),[n]),x=l.useCallback((function(e){h(null,{target:t.current,event:e}),a(e)}),[h,t,a]),b=l.useCallback((function(e){h(null,{target:t.current,event:e}),p(e)}),[h,t,p]),_=l.useCallback((function(){return f(y),function(){d(y)}}),[d,f]);l.useLayoutEffect(_,[_])}var Lt=function(){return(Lt=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Vt=function(t,e,r){var o=l.useState(e||t),i=o[0],n=o[1];return[void 0!==e?e:i,l.useCallback((function(t,e){n(t),r&&r.call(void 0,Lt({},e,{value:t}))}),[r,n])]},zt=function(t){var e=Vt(null,void 0),r=e[0],o=e[1],i=Vt(null,void 0),n=i[0],s=i[1],a=Q([]),c=a[0],p=a[1],h=Q([]),u=h[0],f=h[1];return l.createElement(Tt.Provider,{value:[r,o]},l.createElement(Et.Provider,{value:[n,s]},l.createElement(Rt.Provider,{value:[c,function(t){p({type:Y.add,item:t})},function(t){p({type:Y.remove,item:t})}]},l.createElement(Bt.Provider,{value:[u,function(t){f({type:Y.add,item:t})},function(t){f({type:Y.remove,item:t})}]},t.children))))};zt.displayName="KendoReactDragAndDrop";var Nt=l.forwardRef((function(t,e){var r=l.useRef(null),o=l.useRef(null),i=l.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);l.useImperativeHandle(o,(function(){return{element:i()||null}})),l.useImperativeHandle(e,(function(){return o.current})),l.useImperativeHandle(t.childRef,(function(){return r.current}));var n=l.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:o.current,event:e})}),[i,t.onPress]),s=l.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:o.current,event:e})}),[i,t.onRelease]),a=l.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:o.current,event:e})}),[t,i]),c=l.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:o.current,event:e})}),[i,t.onDrag]),p=l.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:o.current,event:e})}),[i,t.onDragEnd]);return It(r,{onPress:n,onRelease:s,onDragStart:a,onDrag:c,onDragEnd:p},{mouseOnly:t.mouseOnly,autoScroll:t.autoScroll,hint:t.hint,scrollContainer:t.scrollContainer}),t.children?l.cloneElement(l.Children.only(t.children),{ref:r}):null}));Nt.displayName="KendoReactDraggable";var Ht=l.forwardRef((function(t,e){var r=l.useRef(null),o=l.useRef(null),i=l.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);l.useImperativeHandle(o,(function(){return{element:i()||void 0}})),l.useImperativeHandle(e,(function(){return o.current})),l.useImperativeHandle(t.childRef,(function(){return r.current}));var n=l.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:o.current,event:e})}),[t.onDragEnter,i]),s=l.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:o.current,event:e})}),[i,t.onDragOver]),a=l.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:o.current,event:e})}),[t.onDragLeave,i]),c=l.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:o.current,event:e})}),[t.onDrop,i]);return Dt(r,{onDragEnter:n,onDragOver:s,onDragLeave:a,onDrop:c}),t.children?l.cloneElement(l.Children.only(t.children),{ref:r}):null}));Ht.displayName="KendoReactDroppable"},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){this.target=t};e.BaseEvent=o},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,o){var i=t[e];if(i&&Array.isArray(i))for(var n=0,s=i;n<s.length;n++){var a=s[n];if(!a.type||a.type!==o)return new Error(r+" children should be Array of type "+o.displayName+".")}return null};e.toggle=function(t){return void 0!==t&&!t}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 i(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 qt})),r.d(e,"Point",(function(){return Zt})),r.d(e,"Box",(function(){return $t})),r.d(e,"Ring",(function(){return te})),r.d(e,"Sector",(function(){return ee})),r.d(e,"ShapeBuilder",(function(){return oe})),r.d(e,"ShapeElement",(function(){return ce})),r.d(e,"ChartElement",(function(){return ne})),r.d(e,"BoxElement",(function(){return ae})),r.d(e,"RootElement",(function(){return fe})),r.d(e,"FloatElement",(function(){return ve})),r.d(e,"Text",(function(){return me})),r.d(e,"TextBox",(function(){return _e})),r.d(e,"Title",(function(){return Ce})),r.d(e,"AxisLabel",(function(){return Pe})),r.d(e,"Axis",(function(){return Te})),r.d(e,"Note",(function(){return ke})),r.d(e,"CategoryAxis",(function(){return Je})),r.d(e,"DateCategoryAxis",(function(){return lr})),r.d(e,"DateValueAxis",(function(){return gr})),r.d(e,"NumericAxis",(function(){return vr})),r.d(e,"LogarithmicAxis",(function(){return _r})),r.d(e,"PolarAxis",(function(){return Sr})),r.d(e,"RadarCategoryAxis",(function(){return Or})),r.d(e,"RadarNumericAxis",(function(){return jr})),r.d(e,"RadarLogarithmicAxis",(function(){return Er})),r.d(e,"CurveProcessor",(function(){return Br})),r.d(e,"Gradients",(function(){return pe})),r.d(e,"rectToBox",(function(){return xe})),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 Dr})),r.d(e,"Aggregates",(function(){return Ur})),r.d(e,"AreaChart",(function(){return Io})),r.d(e,"AreaSegment",(function(){return To})),r.d(e,"AxisGroupRangeTracker",(function(){return Do})),r.d(e,"Bar",(function(){return Ho})),r.d(e,"BarChart",(function(){return qo})),r.d(e,"BarLabel",(function(){return Vo})),r.d(e,"BoxPlotChart",(function(){return ii})),r.d(e,"BoxPlot",(function(){return ri})),r.d(e,"BubbleChart",(function(){return ui})),r.d(e,"Bullet",(function(){return yi})),r.d(e,"BulletChart",(function(){return mi})),r.d(e,"CandlestickChart",(function(){return ti})),r.d(e,"Candlestick",(function(){return Qo})),r.d(e,"CategoricalChart",(function(){return ho})),r.d(e,"CategoricalErrorBar",(function(){return ao})),r.d(e,"CategoricalPlotArea",(function(){return Cn})),r.d(e,"Chart",(function(){return ua})),r.d(e,"ChartContainer",(function(){return Si})),r.d(e,"ClipAnimation",(function(){return So})),r.d(e,"ClusterLayout",(function(){return Wo})),r.d(e,"Crosshair",(function(){return Oi})),r.d(e,"CrosshairTooltip",(function(){return wi})),r.d(e,"DefaultAggregates",(function(){return $i})),r.d(e,"DonutChart",(function(){return vs})),r.d(e,"DonutPlotArea",(function(){return ys})),r.d(e,"DonutSegment",(function(){return fs})),r.d(e,"ErrorBarBase",(function(){return so})),r.d(e,"ErrorRangeCalculator",(function(){return Yr})),r.d(e,"Highlight",(function(){return Pn})),r.d(e,"SharedTooltip",(function(){return Wn})),r.d(e,"Legend",(function(){return Dn})),r.d(e,"LegendItem",(function(){return Bn})),r.d(e,"LegendLayout",(function(){return Rn})),r.d(e,"LineChart",(function(){return jo})),r.d(e,"LinePoint",(function(){return yo})),r.d(e,"LineSegment",(function(){return mo})),r.d(e,"Pane",(function(){return Mi})),r.d(e,"PieAnimation",(function(){return Zn})),r.d(e,"PieChart",(function(){return ps})),r.d(e,"PieChartMixin",(function(){return as})),r.d(e,"PiePlotArea",(function(){return hs})),r.d(e,"PieSegment",(function(){return ss})),r.d(e,"PlotAreaBase",(function(){return Xi})),r.d(e,"PlotAreaEventsMixin",(function(){return Yi})),r.d(e,"PlotAreaFactory",(function(){return Vn})),r.d(e,"PointEventsMixin",(function(){return uo})),r.d(e,"RangeBar",(function(){return tn})),r.d(e,"RangeBarChart",(function(){return rn})),r.d(e,"RangeAreaPoint",(function(){return sn})),r.d(e,"RangeAreaChart",(function(){return un})),r.d(e,"ScatterChart",(function(){return li})),r.d(e,"ScatterErrorBar",(function(){return ni})),r.d(e,"ScatterLineChart",(function(){return $n})),r.d(e,"Selection",(function(){return Un})),r.d(e,"SeriesAggregator",(function(){return Zi})),r.d(e,"SeriesBinder",(function(){return Wr})),r.d(e,"SplineSegment",(function(){return Co})),r.d(e,"SplineAreaSegment",(function(){return Bo})),r.d(e,"StackWrap",(function(){return Xo})),r.d(e,"Tooltip",(function(){return Fn})),r.d(e,"OHLCChart",(function(){return dn})),r.d(e,"OHLCPoint",(function(){return fn})),r.d(e,"WaterfallChart",(function(){return gn})),r.d(e,"WaterfallSegment",(function(){return yn})),r.d(e,"XYPlotArea",(function(){return es})),r.d(e,"MousewheelZoom",(function(){return En})),r.d(e,"ZoomSelection",(function(){return Tn})),r.d(e,"Pannable",(function(){return Mn})),r.d(e,"anyHasZIndex",(function(){return ko})),r.d(e,"appendIfNotNull",(function(){return ji})),r.d(e,"areNumbers",(function(){return $o})),r.d(e,"bindSegments",(function(){return Ei})),r.d(e,"categoriesCount",(function(){return co})),r.d(e,"countNumbers",(function(){return Nr})),r.d(e,"equalsIgnoreCase",(function(){return Ri})),r.d(e,"evalOptions",(function(){return lo})),r.d(e,"filterSeriesByType",(function(){return Bi})),r.d(e,"getDateField",(function(){return Ii})),r.d(e,"getField",(function(){return Fr})),r.d(e,"hasGradientOverlay",(function(){return zo})),r.d(e,"hasValue",(function(){return si})),r.d(e,"isDateAxis",(function(){return Di})),r.d(e,"segmentVisible",(function(){return Ti})),r.d(e,"singleItemOrArray",(function(){return Li})),r.d(e,"createOutOfRangePoints",(function(){return Hi})),r.d(e,"ChartService",(function(){return Z})),r.d(e,"DomEventsBuilder",(function(){return $})),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 xa})),r.d(e,"Navigator",(function(){return ka})),r.d(e,"NavigatorHint",(function(){return Ca})),r.d(e,"StockChart",(function(){return Ma})),r.d(e,"constants",(function(){return o})),r.d(e,"Gauge",(function(){return Ha})),r.d(e,"LinearGauge",(function(){return hl})),r.d(e,"LinearPointer",(function(){return $a})),r.d(e,"ArrowLinearPointer",(function(){return ol})),r.d(e,"BarLinearPointer",(function(){return ll})),r.d(e,"LinearScale",(function(){return Ya})),r.d(e,"RadialGauge",(function(){return Al})),r.d(e,"RadialPointer",(function(){return Pl})),r.d(e,"RadialScale",(function(){return ml})),r.d(e,"ArcGauge",(function(){return Il})),r.d(e,"RangePointer",(function(){return Bl})),r.d(e,"ArcScale",(function(){return jl})),r.d(e,"CircularGauge",(function(){return Dl})),r.d(e,"Barcode",(function(){return Cc})),r.d(e,"QRCode",(function(){return Pp})),r.d(e,"addClass",(function(){return _})),r.d(e,"removeClass",(function(){return C})),r.d(e,"alignPathToPixel",(function(){return P})),r.d(e,"clockwise",(function(){return S})),r.d(e,"convertableToNumber",(function(){return M})),r.d(e,"deepExtend",(function(){return E})),r.d(e,"elementStyles",(function(){return L})),r.d(e,"getSpacing",(function(){return V})),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 ct})),r.d(e,"inArray",(function(){return pt})),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 j})),r.d(e,"isNumber",(function(){return k})),r.d(e,"isObject",(function(){return R})),r.d(e,"isString",(function(){return A})),r.d(e,"map",(function(){return dt})),r.d(e,"mousewheelDelta",(function(){return yt})),r.d(e,"FontLoader",(function(){return Bt})),r.d(e,"setDefaultOptions",(function(){return It})),r.d(e,"sparseArrayLimits",(function(){return Dt})),r.d(e,"styleValue",(function(){return B})),r.d(e,"find",(function(){return Lt})),r.d(e,"elementScale",(function(){return Ht})),r.d(e,"autoTextColor",(function(){return Ut})),r.d(e,"createHashSet",(function(){return Yt})),r.d(e,"append",(function(){return mt})),r.d(e,"bindEvents",(function(){return xt})),r.d(e,"Class",(function(){return O.Class})),r.d(e,"defined",(function(){return bt})),r.d(e,"deg",(function(){return _t})),r.d(e,"elementOffset",(function(){return wt})),r.d(e,"elementSize",(function(){return Ct})),r.d(e,"eventElement",(function(){return Ot})),r.d(e,"eventCoordinates",(function(){return Pt})),r.d(e,"last",(function(){return St})),r.d(e,"limitValue",(function(){return kt})),r.d(e,"logToConsole",(function(){return O.logToConsole})),r.d(e,"objectKey",(function(){return At})),r.d(e,"rad",(function(){return Mt})),r.d(e,"round",(function(){return jt})),r.d(e,"unbindEvents",(function(){return Tt})),r.d(e,"valueOrDefault",(function(){return Et})),r.d(e,"chartBaseTheme",(function(){return Tp}));var o={};r.r(o),r.d(o,"NAVIGATOR_AXIS",(function(){return Pa})),r.d(o,"NAVIGATOR_PANE",(function(){return Oa}));var i="arc",n="#000",s="bottom",a="center",l="circle",c="date",p=/\{\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],o=0;o<r.length;o++){var i=r[o];-1===t.className.indexOf(i)&&(t.className+=" "+i)}}var w=/\s+/g;function C(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(w," "))}var O=r(0);function P(t){var e=.5;t.options.stroke&&O.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 S(t,e){return-t.x*e.y+t.y*e.x<0}function k(t){return"number"==typeof t&&!isNaN(t)}function A(t){return"string"==typeof t}function M(t){return k(t)||A(t)&&isFinite(t)}function j(t){return"function"==typeof t}function T(t,e){for(var r in e){var o=e[r],i=typeof o,n=void 0;if((n="object"===i&&null!==o?o.constructor:null)&&n!==Array)if(o instanceof Date)t[r]=new Date(o.getTime());else if(j(o.clone))t[r]=o.clone();else{var s=t[r];t[r]="object"==typeof s&&s||{},T(t[r],o)}else"undefined"!==i&&(t[r]=o)}return t}function E(t){for(var e=arguments,r=arguments.length,o=1;o<r;o++)T(t,e[o]);return t}function R(t){return"object"==typeof t}function B(t){return k(t)?t+"px":t}var I=/width|height|top|left|bottom|right/i;function D(t){return I.test(t)}function L(t,e){var r=A(e)?[e]:e;if(b(r)){for(var o={},i=window.getComputedStyle(t),n=0;n<r.length;n++){var s=r[n];o[s]=D(s)?parseFloat(i[s]):i[s]}return o}if(R(e))for(var a in e)t.style[a]=B(e[a])}function V(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 z={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},N=function(){},H={implementation:{configurable:!0}};N.register=function(t){z=t},H.implementation.get=function(){return z},Object.defineProperties(N,H);var U=N,F=/\{(\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 o=this.intl;return A(t)&&t.match(p)?o.format.apply(o,[t].concat(e)):o.toString(e[0],t)},G.prototype.localeAuto=function(t,e,r){var o=this.intl;return A(t)&&t.match(p)?t.replace(F,(function(t,i,n){var s=e[parseInt(i,10)];return o.toString(s,n?n.substring(1):"",r)})):o.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,Q=function(){};Q.register=function(t){q=t},Q.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):j(t.content)&&(e=t.content),e}var ot=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,it={};function nt(t){if(it[t])return it[t];var e=[];return t.replace(ot,(function(t,r,o,i){e.push(O.drawing.util.defined(r)?r:o||i)})),it[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},it[t]}function st(t,e){for(var r=t.length,o=[],i=0;i<r;i++)e(t[i])&&o.push(t[i]);return o}function at(t,e){if(t.className)for(var r=e.split(" "),o=0;o<r.length;o++)if(-1!==t.className.indexOf(r[o]))return!0}it[void 0]=function(t){return t};var lt=function(){this._map={}};lt.prototype.get=function(t){return this._map[this._key(t)]},lt.prototype.set=function(t,e){this._map[this._key(t)]=e},lt.prototype._key=function(t){return t instanceof Date?t.getTime():t};var ct=lt;function pt(t,e){if(e)return-1!==e.indexOf(t)}function ht(t,e,r){return O.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,o=this.observer,i=this.handlerMap;return i[t]?r=this.callObserver(i[t],e):o.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,o=[],i=0;i<r;i++){var n=e(t[i]);O.drawing.util.defined(n)&&o.push(n)}return o}var vt=O.support.browser||{};function yt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,vt.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e=e>0?Math.ceil(e):Math.floor(e)}var gt=O.drawing.util,mt=gt.append,xt=gt.bindEvents,bt=gt.defined,_t=gt.deg,wt=gt.elementOffset,Ct=gt.elementSize,Ot=gt.eventElement,Pt=gt.eventCoordinates,St=gt.last,kt=gt.limitValue,At=gt.objectKey,Mt=gt.rad,jt=gt.round,Tt=gt.unbindEvents,Et=gt.valueOrDefault,Rt=function(){};Rt.fetchFonts=function(t,e,r){void 0===r&&(r={depth:0});!t||r.depth>5||!document.fonts||Object.keys(t).forEach((function(o){var i=t[o];"dataSource"!==o&&"$"!==o[0]&&i&&("font"===o?e.push(i):"object"==typeof i&&(r.depth++,Rt.fetchFonts(i,e,r),r.depth--))}))},Rt.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(O.logToConsole)(t)}Promise.all(r).then(e,e)}else e()},Rt.preloadFonts=function(t,e){var r=[];Rt.fetchFonts(t,r),Rt.loadFonts(r,e)};var Bt=Rt;function It(t,e){var r=t.prototype;r.options?r.options=E({},r.options,e):r.options=e}function Dt(t){for(var e=u,r=f,o=0,i=t.length;o<i;o++){var n=t[o];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 o=t[r];if(e(o,r,t))return o}}var Vt=O.geometry.Matrix,zt=/matrix\((.*)\)/;function Nt(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 Ht(t){if(!t)return Vt.unit();for(var e=Nt(t),r=t.parentElement;r;){var o=Nt(r);e=e.multiplyCopy(o),r=r.parentElement}return e.b=e.c=e.e=e.f=0,e}var Ut=function(t){return new O.Color(t).isDark()?g:n},Ft={},Gt=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},Wt={size:{configurable:!0}};Gt.prototype.values=function(){return this._values.filter((function(t){return t!==Ft}))},Gt.prototype.has=function(t){return void 0!==this._index[t]},Gt.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Gt.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Ft,delete this._index[t])},Gt.prototype.clear=function(){this._index={},this._values=[]},Wt.size.get=function(){return this._values.length},Object.defineProperties(Gt.prototype,Wt);var Kt=function(t){this._set=new Set(t)},Xt={size:{configurable:!0}};Kt.prototype.values=function(){return Array.from(this._set)},Kt.prototype.has=function(t){return this._set.has(t)},Kt.prototype.add=function(t){this._set.add(t)},Kt.prototype.delete=function(t){this._set.delete(t)},Kt.prototype.clear=function(){this._set.clear()},Xt.size.get=function(){return this._set.size},Object.defineProperties(Kt.prototype,Xt);function Yt(t){return function(){var t=!1;"function"==typeof Set&&(t=new Set([1]).has(1));return t}()?new Kt(t):new Gt(t)}function qt(t,e){var r=jt(e-t,9);if(0===r){if(0===e)return.1;r=Math.abs(e)}var o=Math.pow(10,Math.floor(Math.log(r)/Math.log(10))),i=jt(r/o,10);return jt(o*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),10)}var Zt=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=Mt(e),o=Math.cos(r),i=Math.sin(r),n=t.x,s=t.y,a=this.x,l=this.y;return this.x=jt(n+(a-n)*o+(l-s)*i,3),this.y=jt(s+(l-s)*o-(a-n)*i,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,o){var i=Mt(r);return new e(t.x-o*Math.cos(i),t.y-o*Math.sin(i))},e}(O.Class);function Qt(t,e,r,o,i){var n=Mt(i);return new Zt(r+(t-r)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-r)*Math.sin(n)+(e-o)*Math.cos(n))}var $t=function(t){function e(e,r,o,i){t.call(this),this.x1=e||0,this.y1=r||0,this.x2=o||0,this.y2=i||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(),o=this.width();return bt(t)&&(this.x1=t,this.x2=this.x1+o),bt(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),o=r?t[0]:t.x,i=r?t[1]:t.y;return this.wrap(new e(o,i,o,i)),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(),o=this.width(),i=e===v||e===s?x:m,n=i===x?r:o;if(e===a){var l=t.center(),c=this.center();this.x1+=l.x-c.x,this.y1+=l.y-c.y}else this[i+1]=e===v||e===h?t[i+1]-n:t[i+2];return this.x2=this.x1+o,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=V(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=V(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 Zt(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 Zt(this.x1,this.y1),new Zt(this.x2,this.y1),new Zt(this.x2,this.y2),new Zt(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(),o=this.center(),i=o.x,n=o.y,s=Qt(0,0,i,n,t),a=Qt(e,0,i,n,t),l=Qt(e,r,i,n,t),c=Qt(0,r,i,n,t);return e=Math.max(s.x,a.x,l.x,c.x)-Math.min(s.x,a.x,l.x,c.x),r=Math.max(s.y,a.y,l.y,c.y)-Math.min(s.y,a.y,l.y,c.y),this.x2=this.x1+e,this.y2=this.y1+r,this},e.prototype.toRect=function(){return new O.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 o=e+1,i=e+2,n=e===m?"width":"height",l=this[n]();pt(r,[h,v])?(this[o]=t[o],this[i]=this[o]+l):pt(r,[d,s])?(this[i]=t[i],this[o]=this[i]-l):r===a&&(this[o]=t[o]+(t[n]()-l)/2,this[i]=this[o]+l)},e}(O.Class);function Jt(t,e){return t-e}var te=function(t){function e(e,r,o,i,n){t.call(this),this.center=e,this.innerRadius=r,this.radius=o,this.startAngle=i,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=Mt(t),o=Math.cos(r),i=Math.sin(r),n=e?this.innerRadius:this.radius,s=jt(this.center.x-o*n,3),a=jt(this.center.y-i*n,3);return new Zt(s,a)},e.prototype.adjacentBox=function(t,e,r){var o=this.clone().expand(t),i=o.middle(),n=o.point(i),s=e/2,a=r/2,l=Math.sin(Mt(i)),c=Math.cos(Mt(i)),p=n.x-s,h=n.y-a;return Math.abs(l)<.9&&(p+=s*-c/Math.abs(c)),Math.abs(c)<.9&&(h+=a*-l/Math.abs(l)),new $t(p,h,p+e,h+r)},e.prototype.containsPoint=function(t){var e=this.center,r=this.innerRadius,o=this.radius,i=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,l=new Zt(s,a),c=this.point(i),p=new Zt(c.x-e.x,c.y-e.y),h=this.point(n),u=new Zt(h.x-e.x,h.y-e.y),f=jt(s*s+a*a,3);return(p.equals(l)||S(p,l))&&!S(u,l)&&f>=r*r&&f<=o*o},e.prototype.getBBox=function(){var t,e=new $t(u,u,f,f),r=jt(this.startAngle%360),o=jt((r+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,r,o].sort(Jt),s=n.indexOf(r),a=n.indexOf(o);t=r===o?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var l=0;l<t.length;l++){var c=this.point(t[l]);e.wrapPoint(c),e.wrapPoint(c,i)}return i||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(O.Class),ee=function(t){function e(e,r,o,i){t.call(this,e,0,r,o,i)}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}(te),re=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,o=t.angle+r;t.angle>0&&r===o&&(o+=.001);var i=new O.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new O.geometry.Arc(i,{startAngle:r,endAngle:o,radiusX:n,radiusY:n}),l=O.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var c=a.pointAt(o);l.lineTo(c.x,c.y),l.arc(o,r,s,s,!0)}else l.lineTo(i.x,i.y);return l},e}(O.Class);re.current=new re;var oe=re,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,o=0;o<r.length;o++){var i=r[o];i.reflow(t),e=e?e.wrap(i.box):i.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,o=r.length,i=0;i<o;i++)r[i].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=this,r=0;r<arguments.length;r++){var o=t[r];e.children.push(o),o.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 O.drawing.Group({zIndex:this.options.zIndex,visible:Et(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=O.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):bt(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,o=this.visual.children,i=o.length;for(e=0;e<i;e++){var n=o[e];if(Et(n.options.zIndex,0)>r)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++){var i=e[o];t(i),i.traverse&&i.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,o=(this.options||{}).highlight||{},i=o.visual,n=this._highlight;if(!n){var s={fill:{color:g,opacity:e||.2},stroke:{color:g,width:1,opacity:e||.2}};if(i){if(!(n=this._highlight=i(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);bt(n.options.zIndex)||(n.options.zIndex=Et(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.createGradientOverlay=function(t,e,r){var o=new O.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(r),closed:t.options.closed},e));return o.segments.elements(t.segments.elements()),o},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(O.Class);ie.prototype.options={};var ne=ie,se=function(t){function e(e){t.call(this,e),this.options.margin=V(this.options.margin),this.options.padding=V(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,o=this,i=this.options,n=i.width,s=i.height,a=i.shrinkToFit,l=n&&s,c=i.margin,p=i.padding,h=i.border.width,u=function(){o.align(e,m,i.align),o.align(e,x,i.vAlign),o.paddingBox=r.clone().unpad(c).unpad(h)},f=e.clone();l&&(f.x2=f.x1+n,f.y2=f.y1+s),a&&f.unpad(c).unpad(h).unpad(p),t.prototype.reflow.call(this,f),r=l?this.box=new $t(0,0,n,s):this.box,a&&l?(u(),f=this.contentBox=this.paddingBox.clone().unpad(p)):(f=this.contentBox=r.clone(),r.pad(p).pad(h).pad(c),u()),this.translateChildren(r.x1-f.x1+c.left+h+p.left,r.y1-f.y1+c.top+h+p.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(O.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:Et(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(ne);It(se,{align:h,vAlign:v,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var ae=se,le=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,o=t.rotation,i=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,c=this.visualStyle();if(r===l)a=new O.drawing.Circle(new O.geometry.Circle([jt(e.x1+n,3),jt(e.y1+s,3)],Math.min(n,s)),c);else if("triangle"===r)a=O.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],c).close();else if("cross"===r)(a=new O.drawing.MultiPath(c)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var p=e.toRect();if("roundedRect"===r){var h=Et(t.borderRadius,p.width()/5);p.setCornerRadius(h)}a=O.drawing.Path.fromRect(p,c)}return o&&a.transform(O.geometry.transform().rotate(-o,[i.x,i.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}(ae);It(le,{type:l,align:a,vAlign:a});var ce=le,pe={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 he(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),o=Math.max(t.x1,e.x1),i=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),l=Math.min(t.y2,e.y2),c=Math.max(t.y2,e.y2),p=[];return p[0]=new $t(o,s,i,a),p[1]=new $t(r,a,o,l),p[2]=new $t(i,a,n,l),p[3]=new $t(o,l,i,c),t.x1===r&&t.y1===s||e.x1===r&&e.y1===s?(p[4]=new $t(r,s,o,a),p[5]=new $t(i,l,n,c)):(p[4]=new $t(i,s,n,a),p[5]=new $t(r,l,o,c)),st(p,(function(t){return t.height()>0&&t.width()>0}))[0]}var ue=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 o=0;o<e.length;o++)e[o].reflow(r),r=he(r,e[o].box)||new $t},e.prototype.createVisual=function(){this.visual=new O.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),o=O.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(o)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,r=this.gradients,o=At(t),i=pe[t.gradient];if(r[o])e=r[o];else{var n=Object.assign({},i,t);"linear"===i.type?e=new O.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,r=t.innerRadius/t.radius*100,o=e.length,i=[],n=0;n<o;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-r)+r)/100,i.push(s)}return i}(n)),(e=new O.drawing.RadialGradient(n)).supportVML=!1!==i.supportVML),r[o]=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}(ne);It(ue,{width:600,height:400,background:g,border:{color:n,width:0},margin:V(5),zIndex:-2});var fe=ue,de=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,o=this.elementSizeField,i=this.groupSizeField,n=this.groupOptions(),s=n.groups,a=n.groupsSize,l=n.maxGroupElementsSize,c=s.length,p=t[r+1]+this.alignStart(a,t[i]());if(c){for(var h=p,u=0;u<c;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[i],f.groupSize),_=new $t;_[r+1]=b,_[r+2]=b+x[i],_[e+1]=v,_[e+2]=v+x[o],m.reflow(_),v+=x[o]+this.elementSpacing}h+=f.groupSize+this.groupSpacing}t[r+1]=p,t[r+2]=p+a,t[e+2]=t[e+1]+l}},e.prototype.alignStart=function(t,e){var r=0,o=this.options.align;return o===d||o===s?r=e-t:o===a&&(r=(e-t)/2),r},e.prototype.groupOptions=function(){for(var t=this.box,e=this.children,r=this.elementSizeField,o=this.groupSizeField,i=this.elementSpacing,n=this.groupSpacing,s=jt(t[r]()),a=e.length,l=[],c=0,p=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(p+i+y[r])>s&&(l.push({groupElements:f,groupSize:c,groupElementsSize:p}),u=Math.max(u,p),h+=n+c,c=0,p=0,f=[]),c=Math.max(c,y[o]),p>0&&(p+=i),p+=y[r],f.push(v)}return l.push({groupElements:f,groupSize:c,groupElementsSize:p}),{groups:l,groupsSize:h+=c,maxGroupElementsSize:u=Math.max(u,p)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(ne);It(de,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var ve=de,ye=O.drawing.Text,ge=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=O.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,o=t.opacity,i=t.cursor;this.visual=new ye(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:r,opacity:o},cursor:i})},e}(ne);It(ge,{font:"12px sans-serif",color:n});var me=ge;function xe(t){var e=t.origin,r=t.bottomRight();return new $t(e.x,e.y,r.x,r.y)}var be=/\n/m,_e=function(t){function e(e,r,o){t.call(this,r),this.content=e,this.data=o,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(be),r=new ve({vertical:!0,align:t.align,wrap:!1}),o=E({},t,{opacity:1,animation:null});this.container=r,this.append(r);for(var i=0;i<e.length;i++){var n=new me(e[i].trim(),o);r.append(n)}},e.prototype.reflow=function(e){var r=this.options,o=r.visual;if(this.container.options.align=r.align,o&&!this._boxReflow){var i=e;i.hasSize()||(this._boxReflow=!0,this.reflow(i),this._boxReflow=!1,i=this.box);var n=this.visual=o(this.visualContext(i));n&&(i=xe(n.clippedBBox()||new O.geometry.Rect),n.options.zIndex=r.zIndex),this.box=this.contentBox=this.paddingBox=i}else if(t.prototype.reflow.call(this,e),r.rotation){var s=V(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 O.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()){var e=O.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&&!bt(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,o=e.y,i=this.rotatedBox.center();return O.geometry.transform().translate(i.x-r,i.y-o).rotate(t,[r,o])},e}(ae),we=function(t){function e(e){t.call(this,e),this.append(new _e(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,o){var i,n=t;return"string"==typeof t&&(n={text:t}),(n=Object.assign({visible:!0},o,n))&&n.visible&&n.text&&(i=new e(n),r.append(i)),i},e}(ne);It(we,{color:n,position:v,align:a,margin:V(5),padding:V(5)});var Ce=we,Oe=function(t){function e(e,r,o,i,n){t.call(this,r,n),this.text=r,this.value=e,this.index=o,this.dataItem=i,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=xe(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 o=O.geometry.transform().rotate(r).matrix(),i=this.normalBox.toRect(),n=this.targetBox.toRect(),l=e.rotationOrigin||v,c=l===v||l===s?m:x,p=l===v||l===s?x:m,u=l===v||l===h?n.origin:n.bottomRight(),f=i.topLeft().transformCopy(o),d=i.topRight().transformCopy(o),y=i.bottomRight().transformCopy(o),g=i.bottomLeft().transformCopy(o),b=O.geometry.Rect.fromPoints(f,d,y,g),_={};_[p]=n.origin[p]-b.origin[p];var w,C,P=Math.abs(f[p]+_[p]-u[p]),S=Math.abs(d[p]+_[p]-u[p]);jt(P,10)===jt(S,10)?(w=f,C=d):S<P?(w=d,C=y):(w=f,C=g);var k=w[c]+(C[c]-w[c])/2;return _[c]=n.center()[c]-k,O.geometry.transform().translate(_.x,_.y).rotate(r)},e}(_e);It(Oe,{_autoReflow:!1});var Pe=Oe,Se=function(t){function e(e,r,o){t.call(this,r),this.fields=e,this.chartService=o,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,o,i=e.label,n=e.icon,s=new $t,a=function(){return t},c=n.size,p=this.fields.text;if(bt(i)&&i.visible){var h=rt(i);h?p=h(this.fields):i.format&&(p=this.chartService.format.auto(i.format,p)),i.color||(i.color="inside"===i.position?"#fff":n.background),this.label=new _e(p,E({},i)),this.label.aliasFor=a,"inside"!==i.position||bt(c)||(n.type===l?c=Math.max(this.label.box.width(),this.label.box.height()):(r=this.label.box.width(),o=this.label.box.height()),s.wrap(this.label.box))}n.width=r||c||7,n.height=o||c||7;var u=new ce(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,o,i=this.options,n=this.label,a=this.marker,l=this.wrapperBox,c=t.center(),p=i.line.length,u=i.position;i.visible&&(pt(u,[h,d])?u===h?(o=l.alignTo(t,u).translate(-p,t.center().y-l.center().y),i.line.visible&&(e=[t.x1,c.y],this.linePoints=[e,[o.x2,c.y]],r=o.clone().wrapPoint(e))):(o=l.alignTo(t,u).translate(p,t.center().y-l.center().y),i.line.visible&&(e=[t.x2,c.y],this.linePoints=[e,[o.x1,c.y]],r=o.clone().wrapPoint(e))):u===s?(o=l.alignTo(t,u).translate(t.center().x-l.center().x,p),i.line.visible&&(e=[c.x,t.y2],this.linePoints=[e,[c.x,o.y1]],r=o.clone().wrapPoint(e))):(o=l.alignTo(t,u).translate(t.center().x-l.center().x,-p),i.line.visible&&(e=[c.x,t.y1],this.linePoints=[e,[c.x,o.y2]],r=o.clone().wrapPoint(e))),a&&a.reflow(o),n&&(n.reflow(o),a&&("outside"===i.label.position&&n.box.alignTo(a.box,u),n.reflow(n.box))),this.contentBox=o,this.targetBox=t,this.box=r||o)},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,o=r.visual;r.visible&&o?(this.visual=o(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=O.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:bt(e.label)?e.label.text:"",visual:this.visual})},e}(ae);It(Se,{icon:{visible:!0,type:l},label:{position:"inside",visible:!0,align:a,vAlign:a},line:{visible:!0},visible:!0,position:v,zIndex:2});var ke=Se;function Ae(t,e){var r=t.tickX,o=t.tickY,i=t.position,n=new O.drawing.Path({stroke:{width:e.width,color:e.color}});return t.vertical?n.moveTo(r,i).lineTo(r+e.size,i):n.moveTo(i,o).lineTo(i,o+e.size),P(n),n}function Me(t,e){var r=t.lineStart,o=t.lineEnd,i=t.position,n=new O.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});return t.vertical?n.moveTo(r,i).lineTo(o,i):n.moveTo(i,r).lineTo(i,o),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}),o=Math.max(1,r.step);if(this.clearLabels(),r.visible){this.normalizeLabelRotation(r),"auto"===r.rotation&&(r.rotation=0,t.autoRotateLabels=!0);for(var i=this.labelsRange(),n=i.min;n<i.max;n+=o){var s={index:n,count:i.max},l=this.createAxisLabel(n,r,s);l&&(this.append(l),this.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=st(this.children,(function(t){return!(t instanceof Pe)})),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,o=t.labels.mirror,i=o?e.x1:e.x2,n=o?e.y2:e.y1,s=t.line.width||0;return r?new $t(i,e.y1,i,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 _e(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 o=0;o<r.length;o++){var i=E({},e,r[o]);i.value=this.parseNoteValue(i.value);var n=new ke({value:i.value,text:i.label.text,dataItem:i},i,this.chartService);n.options.visible&&(bt(n.options.position)?t.vertical&&!pt(n.options.position,[h,d])?n.options.position=t.reverse?h:d:t.vertical||pt(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 O.drawing.Group({zIndex:-2}),this.appendVisual(this._gridLines)),t},e.prototype.createTicks=function(t){var e=this.options,r=this.lineBox(),o=e.labels.mirror,i=e.majorTicks.visible?e.majorUnit:0,n={vertical:e.vertical};function s(e,i,s){var a=e.length,l=Math.max(1,i.step);if(i.visible)for(var c=i.skip;c<a;c+=l)bt(s)&&c%s==0||(n.tickX=o?r.x2:r.x2-i.size,n.tickY=o?r.y1-i.size:r.y1,n.position=e[c],t.append(Ae(n,i)))}s(this.getMajorTickPositions(),e.majorTicks),s(this.getMinorTickPositions(),e.minorTicks,i/e.minorUnit)},e.prototype.createLine=function(){var t=this.options,e=t.line,r=this.lineBox();if(e.width>0&&e.visible){var o=new O.drawing.Path({stroke:{width:e.width,color:e.color,dashType:e.dashType}});o.moveTo(r.x1,r.y1).lineTo(r.x2,r.y2),t._alignLines&&P(o);var i=this._lineGroup=new O.drawing.Group;i.append(o),this.visual.append(i),this.createTicks(i)}},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=O.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||[],o=e.vertical,i=this.plotArea;if(0!==r.length){for(var n=this._plotbandGroup=new O.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 l=r[a],c=void 0,p=void 0,u=l.label,f=void 0;if(o?(c=(s||i.axisX).lineBox(),p=t.getSlot(l.from,l.to,!0)):(c=t.getSlot(l.from,l.to,!0),p=(s||i.axisY).lineBox()),u&&(u.vAlign=u.position||h,f=t.createPlotBandLabel(u,l,new $t(c.x1,p.y1,c.x2,p.y2))),0!==c.width()&&0!==p.height()){var d=new O.geometry.Rect([c.x1,p.y1],[c.width(),p.height()]),v=O.drawing.Path.fromRect(d,{fill:{color:l.color,opacity:l.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 o,i=t.text;if(bt(t)&&t.visible){var n=rt(t);n?i=n({text:i,item:e}):t.format&&(i=this.chartService.format.auto(t.format,i)),t.color||(t.color=this.options.labels.color)}return(o=new _e(i,t)).reflow(r),o.renderVisual(),o.visual},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,o=e.majorGridLines,i=e.minorUnit,n=e.vertical,s=t.options.line.visible,a=o.visible?e.majorUnit:0,l=t.lineBox(),c=l[n?"y1":"x1"],p={lineStart:l[n?"x1":"y1"],lineEnd:l[n?"x2":"y2"],vertical:n},h=[],u=this.gridLinesVisual();function f(t,e,r){var o=t.length,i=Math.max(1,e.step);if(e.visible)for(var n=e.skip;n<o;n+=i){var a=jt(t[n]);pt(a,h)||n%r==0||s&&c===a||(p.position=a,u.append(Me(p,e)),h.push(a))}}return f(this.getMajorTickPositions(),o),f(this.getMinorTickPositions(),r,a/i),u.children},e.prototype.reflow=function(t){for(var e=this.options,r=this.labels,o=this.title,i=e.vertical,n=r.length,s=i?"width":"height",a=o?o.box[s]():0,l=this.getActualTickSize()+e.margin+a,c=((this.getRoot()||{}).box||t)[s](),p=0,h=0;h<n;h++){var u=r[h].box[s]();u+l<=c&&(p=Math.max(p,u))}this.box=i?new $t(t.x1,t.y1,t.x1+p+l,t.y2):new $t(t.x1,t.y1,t.x2,t.y1+p+l),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(),o=t.vertical,i=t.labels.mirror,n=this.getLabelsTickPositions(),s=0;s<e.length;s++){var a=e[s],l=this.labelTickIndex(a),c=o?a.box.height():a.box.width(),p=n[l],h=n[l+1],u=void 0,f=void 0;if(o){if(r)u=p+(h-p)/2-c/2;else u=p-c/2;f=u}else r?(u=p,f=h):f=(u=p-c/2)+c;this.positionLabel(a,i,u,f)}},e.prototype.positionLabel=function(t,e,r,o){void 0===o&&(o=r);var i,n=this.options,a=n.vertical,l=this.lineBox(),c=this.getActualTickSize()+n.margin;if(a){var p=l.x2;e?(p+=c,t.options.rotationOrigin=h):(p-=c+t.box.width(),t.options.rotationOrigin=d),i=t.box.move(p,r)}else{var u=l.y1;e?(u-=c+t.box.height(),t.options.rotationOrigin=s):(u+=c,t.options.rotationOrigin=v),i=new $t(r,u,o,u+t.box.height())}t.reflow(i)},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),o=0,i=0;i<r;i++){var n=Math.abs(t[i+1]-t[i]),s=e[i].box,a=this.autoRotateLabelAngle(s,n);if(0!==a&&(o=a),-90===o)break}if(0!==o){for(var l=0;l<e.length;l++)e[l].options.rotation=o,e[l].reflow(new $t);return!0}},e.prototype.arrangeTitle=function(){var t=this.options,e=this.title,r=t.labels.mirror,o=t.vertical;e&&(o?(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,o=void 0;bt(r)?(this.shouldRenderNote(r)?e.show():e.hide(),o=this.noteSlot(r)):e.hide(),e.reflow(o||this.lineBox())}},e.prototype.noteSlot=function(t){return this.getSlot(t)},e.prototype.alignTo=function(t){var e=t.lineBox(),r=this.options.vertical,o=r?x:m;this.box.snapTo(e,o),r?this.box.shrink(0,this.lineBox().height()-e.height()):this.box.shrink(this.lineBox().width()-e.width(),0),this.box[o+1]-=this.lineBox()[o+1]-e[o+1],this.box[o+2]-=this.lineBox()[o+2]-e[o+2]},e.prototype.axisLabelText=function(t,e,r){var o,i=this,n=rt(e),s=function(){return e.format?i.chartService.format.localeAuto(e.format,[t],e.culture):t};n?o=n(Object.assign({},r,{get text(){return s()},value:t,format:e.format,culture:e.culture})):o=s();return o},e.prototype.slot=function(t,e,r){var o=this.getSlot(t,e,r);if(o)return o.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 o=this.maxLabelOffset();t[r+1]-=o.start,t[r+2]+=o.end}else{e[0].options.visible&&t.wrap(e[0].box);var i=e[e.length-1];i.options.visible&&t.wrap(i.box)}}return t},e.prototype.maxLabelOffset=function(){for(var t=this.options,e=t.vertical,r=t.reverse,o=this.labelsBetweenTicks(),i=this.getLabelsTickPositions(),n=e?x:m,s=this.labels,a=r?1:0,l=r?0:1,c=0,p=0,h=0;h<s.length;h++){var u=s[h],f=this.labelTickIndex(u),d=void 0,v=void 0;o?(d=i[f+a],v=i[f+l]):d=v=i[f],c=Math.max(c,d-u.box[n+1]),p=Math.max(p,u.box[n+2]-v)}return{start:c,end:p}},e.prototype.limitRange=function(t,e,r,o,i){var n=this.options;if(t<r&&i<0&&(!bt(n.min)||n.min<=r)||o<e&&i>0&&(!bt(n.max)||o<=n.max))return null;if(e<r&&i>0||o<t&&i<0)return{min:t,max:e};var s=e-t,a=t,l=e;return t<r&&i<0?(a=kt(t,r,o),l=kt(t+s,r+s,o)):e>o&&i>0&&(l=kt(e,r,o),a=kt(e-s,r,o-s)),{min:a,max:l}},e.prototype.valueRange=function(){return{min:this.seriesMin,max:this.seriesMax}},e.prototype.lineDir=function(){var t=this.options;return(t.vertical?-1:1)*(t.reverse?-1:1)},e.prototype.lineInfo=function(){var t=this.options.vertical,e=this.lineBox(),r=t?e.height():e.width(),o=t?x:m,i=this.lineDir(),n=o+(1===i?1:2).toString();return{axis:o,axisOrigin:n,axisDir:i,lineBox:e,lineSize:r,lineStart:e[n]}},e.prototype.pointOffset=function(t){var e=this.lineInfo(),r=e.axis,o=e.axisDir,i=e.axisOrigin,n=e.lineBox,s=e.lineSize;return(o>0?t[r]-n[i]:n[i]-t[r])/s},e.prototype.scaleToDelta=function(t,e){var r=kt(t,-.999,.999);return r>0?e*Math.min(1,r):e-e/(1+r)},e.prototype.labelsBetweenTicks=function(){return!this.options.justified},e.prototype.prepareUserOptions=function(){},e}(ne);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 Te=je,Ee="days",Re="years",Be={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 De(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,o){var i=t;if(t){var n=Le(t),s=n.getHours();r===Re?Ve(i=new Date(n.getFullYear()+e,0,1),0):"months"===r?Ve(i=new Date(n.getFullYear(),n.getMonth()+e,1),s):"weeks"===r?Ve(i=ze(function(t,e){void 0===e&&(e=0);var r=0,o=t.getDay();if(!isNaN(o))for(;o!==e;)0===o?o=6:o--,r++;return De(t,864e5*-r)}(n,o),7*e,Ee),s):r===Ee?Ve(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),s):"hours"===r?i=function(t,e){var r=new Date(t);r.setMinutes(0,0,0);var o=6e4*(t.getTimezoneOffset()-r.getTimezoneOffset());return De(r,o+36e5*e)}(n,e):"minutes"===r?(i=De(n,6e4*e)).getSeconds()>0&&i.setSeconds(0):"seconds"===r?i=De(n,1e3*e):"milliseconds"===r&&(i=De(n,e)),"milliseconds"!==r&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function Ne(t,e,r){return ze(Le(t),0,e,r)}function He(t,e,r){var o=Le(t);return o&&Ne(o,e,r).getTime()===o.getTime()?o:ze(o,1,e,r)}function Ue(t,e){return t&&e?t.getTime()-e.getTime():-1}function Fe(t,e){return t.getTime()-e}function Ge(t){if(b(t)){for(var e=[],r=0;r<t.length;r++)e.push(Ge(t[r]));return e}if(t)return Le(t).getTime()}function We(t,e){return t&&e?Ge(t)===Ge(e):t===e}function Ke(t,e,r){return Ie(t,e)/Be[r]}function Xe(t,e,r,o){var i=Le(t),n=Le(e);return("months"===r?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+Ke(i,new Date(i.getFullYear(),i.getMonth()),Ee)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():r===Re?i.getFullYear()-n.getFullYear()+Xe(i,new Date(i.getFullYear(),0),"months",1)/12:r===Ee||"weeks"===r?Ke(i,n,r):Fe(i,e)/Be[r])/o}function Ye(t,e,r){return r===Re?e.getFullYear()-t.getFullYear():"months"===r?12*Ye(t,e,Re)+e.getMonth()-t.getMonth():r===Ee?Math.floor(Fe(e,t)/864e5):Math.floor(Fe(e,t)/Be[r])}function qe(t,e){return A(e)&&t.parseDate(e)||Le(e)}function Ze(t,e){if(b(e)){for(var r=[],o=0;o<e.length;o++)r.push(qe(t,e[o]));return r}return qe(t,e)}function Qe(t,e){return k(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=bt(t.min),o=bt(t.max);if(t.srcCategories=t.categories=e,(r||o)&&e.length){var i,n=r?Math.floor(t.min):0;i=o?t.justified?Math.floor(t.max)+1:Math.ceil(t.max):e.length,t.categories=t.categories.slice(n,i)}return t},e.prototype.rangeIndices=function(){var t=this.options,e=t.categories.length||1;return{min:k(t.min)?t.min%1:0,max:k(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,o=k(r.min)?r.min:0;if(e=k(r.max)?r.max:k(r.min)?o+r.categories.length:this.totalRange().max||1,t){var i=this.totalRange();o=kt(o,0,i.max),e=kt(e,0,i.max)}return{min:o,max:e}},e.prototype.range=function(){var t=this.options;return{min:k(t.min)?t.min:0,max:k(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,o=this.lineBox();return{scale:(this.options.vertical?o.height():o.width())/(r-e||1)*(this.options.reverse?-1:1),box:o,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,o=t[r+1],i=t[r+2],n=e[0],s=St(e);(n.box[r+1]>i||n.box[r+2]<o)&&(n.options.visible=!1),(s.box[r+1]>i||s.box[r+2]<o)&&(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,o=e.max,i=Math.ceil(o),n=Math.floor(r),s=[];n<=i;)s.push(n),n+=t;return s},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,o=e.reverse,i=this.scaleOptions(),n=i.scale,s=i.box,a=i.min,l=s[(r?x:m)+(o?2:1)],c=this.tickIndices(t),p=[],h=0;h<c.length;h++)p.push(l+jt(n*(c[h]-a),3));return p},e.prototype.getTicks=function(){var t=this.options,e=this._ticks,r=this.rangeIndices(),o=this.lineBox(),i=o.getHash()+r.min+","+r.max+t.reverse+t.justified;if(e._hash!==i){var n=t.minorTicks.visible||t.minorGridLines.visible;e._hash=i,e.labelTicks=this.getTickPositions(1),e.majorTicks=this.filterOutOfRangePositions(e.labelTicks,o),e.minorTicks=n?this.filterOutOfRangePositions(this.getTickPositions(.5),o):[]}return e},e.prototype.filterOutOfRangePositions=function(t,e){if(!t.length)return t;for(var r=this.options.vertical?x:m,o=function(t){return e[r+1]<=t&&t<=e[r+2]},i=t.length-1,n=0;!o(t[n])&&n<=i;)n++;for(var s=i;!o(t[s])&&s>=0;)s--;return t.slice(n,s+1)},e.prototype.lineInfo=function(){var t=this.options,e=t.vertical,r=t.reverse,o=this.lineBox(),i=e?o.height():o.width(),n=e?x:m,s=r?-1:1,a=n+(1===s?1:2).toString();return{axis:n,axisOrigin:a,axisDir:s,lineBox:o,lineSize:i,lineStart:o[a]}},e.prototype.lineDir=function(){return this.options.reverse?-1:1},e.prototype.getSlot=function(t,e,r){var o=this.options,i=o.reverse,n=o.justified,s=this.scaleOptions(),a=s.scale,l=s.box,c=s.min,p=this.lineInfo(),h=p.axis,u=p.lineStart,f=l.clone(),d=!bt(e),v=Et(t,0),y=Et(e,v);y=Math.max(y-1,v);var g=u+(v-c)*a,m=u+((y=Math.max(v,y))+1-c)*a;return d&&n&&(m=g),r&&(g=kt(g,l[h+1],l[h+2]),m=kt(m,l[h+1],l[h+2])),f[h+1]=i?m:g,f[h+2]=i?g:m,f},e.prototype.limitSlot=function(t){var e=this.options.vertical?x:m,r=this.lineBox(),o=t.clone();return o[e+1]=kt(t[e+1],r[e+1],r[e+2]),o[e+2]=kt(t[e+2],r[e+1],r[e+2]),o},e.prototype.slot=function(e,r,o){var i=Math.floor(this.options.min||0),n=e,s=r;return"string"==typeof n?n=this.categoryIndex(n):k(n)&&(n-=i),"string"==typeof s?s=this.categoryIndex(s):k(s)&&(s-=i),t.prototype.slot.call(this,n,s,o)},e.prototype.pointCategoryIndex=function(t){var e=this.options,r=e.reverse,o=e.justified,i=e.vertical?x:m,n=this.scaleOptions(),s=n.scale,a=n.box,l=n.min,c=n.max,p=r?c:l,h=a[i+1],u=a[i+2],f=t[i];if(f<h||f>u)return null;var d=p+(f-h)/s,v=d%1;return o?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(),o=e.vertical?r.height():r.width(),i=e.categories.length,n=jt(t/(o/i),10);return{min:n,max:i+n}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.totalRangeIndices(),i=o.max-o.min,n=this.scaleToDelta(t,i),s=r*n,a=(1-r)*n,l=o.min+s,c=o.max-a;return c-l<.1&&(c=l+.1),{min:l,max:c}},e.prototype.zoomRange=function(t,e){var r=this.totalRange(),o=r.min,i=r.max,n=this.scaleRange(t,e);return{min:kt(n.min,o,i),max:kt(n.max,o,i)}},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,o=this.totalRangeIndices(!0),i=o.min,n=o.max,s=Math.floor(i);return e?(i=Math.ceil(i),n=Math.floor(n)):(i=Math.floor(i),n=Math.ceil(n)),{min:(i>r.skip?r.skip+r.step*Math.ceil((i-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 o=this.options,i=o.dataItems?o.dataItems[t]:null,n=Et(o.categories[t],"");r.dataItem=i;var s=this.axisLabelText(n,e,r);return new Pe(n,s,t,i,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,o=e[r+1],i=e[r+2],n=0;n<t.length;n++){var s=t[n];s.box&&(i<s.box[r+1]||s.box[r+2]<o)&&s.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),r=this.scaleOptions().scale,o=jt(t/r,10),i=this.totalRange(),n=e.min+o,s=e.max+o;return this.limitRange(n,s,0,i.max,o)},e.prototype.pointsRange=function(t,e){var r=this.options,o=r.reverse,i=r.vertical?x:m,n=this.totalRangeIndices(!0),s=this.scaleOptions(),a=s.scale,l=s.box[i+(o?2:1)],c=t[i]-l,p=e[i]-l,h=n.min+c/a,u=n.min+p/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,o=0;o<r;o++)if(We(e[o],t))return o;return-1}return e.indexOf(t)}(t,e.srcCategories)},e.prototype.currentRangeIndices=function(){var t=this.options,e=0;return k(t.min)&&(e=Math.floor(t.min)),{min:e,max:k(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 ct,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}(Te);It($e,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var Je=$e,tr={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"},er=["milliseconds","seconds","minutes","hours",Ee,"weeks","months",Re];function rr(t){var e=t._range;return e||((e=t._range=Dt(t)).min=Le(e.min),e.max=Le(e.max)),e}var or=function(t){this.options=t};or.prototype.displayIndices=function(){return{min:0,max:1}},or.prototype.displayRange=function(){return{}},or.prototype.total=function(){return{}},or.prototype.valueRange=function(){return{}},or.prototype.valueIndex=function(){return-1},or.prototype.values=function(){return[]},or.prototype.totalIndex=function(){return-1},or.prototype.valuesCount=function(){return 0},or.prototype.totalCount=function(){return 0},or.prototype.dateAt=function(){return null};var ir=function(t,e,r){this.options=r,r.baseUnitStep=r.baseUnitStep||1;var o=r.roundToBaseUnit,i=r.justified;this.start=ze(t,0,r.baseUnit,r.weekStartDay);var n=this.roundToTotalStep(e),s=!i&&We(e,n)&&!r.justifyEnd;this.end=this.roundToTotalStep(e,!i,s?1:0);var a=r.min||t;this.valueStart=this.roundToTotalStep(a),this.displayStart=o?this.valueStart:a;var l=r.max;if(l){var c=!i&&We(l,this.roundToTotalStep(l))?-1:0;this.valueEnd=this.roundToTotalStep(l,!1,c),this.displayEnd=o?this.roundToTotalStep(l,!i):r.max}else this.valueEnd=n,this.displayEnd=o||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 nr(t,e,r){for(var o,i,n,s=rr(t.categories),a=(t.max||s.max)-(t.min||s.min),l=t.autoBaseUnitSteps,c=t.maxDateGroups,p="fit"===t.baseUnit,h=e?er.indexOf(e):0,u=p?er[h++]:t.baseUnit,f=a/Be[u],d=f;!i||f>=c;){o=o||l[u].slice(0);do{n=o.shift()}while(n&&e===u&&n<r);if(n)f=d/(i=n);else{if(u===St(er)){i=Math.ceil(d/c);break}if(!p){f>c&&(i=Math.ceil(d/c));break}u=er[h++]||St(er),d=a/Be[u],o=null}}t.baseUnitStep=i,t.baseUnit=u}function sr(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!pt(e,er)&&function(t){for(var e,r,o=t.categories,i=bt(o)?o.length:0,n=u,s=0;s<i;s++){var a=o[s];if(a&&e){var l=Ie(a,e);l>0&&(r=(n=Math.min(n,l))>=31536e6?Re:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Ee:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=a}t.baseUnit=r||Ee}(t),"fit"!==e&&"auto"!==t.baseUnitStep||nr(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,o=Xe(this.displayStart,this.valueStart,e,r),i=Xe(this.displayEnd,this.valueStart,e,r);this._indices={min:o,max:i}}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(Xe(t,this.valueStart,e.baseUnit,e.baseUnitStep))},ir.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Xe(t,this.start,e.baseUnit,e.baseUnitStep))},ir.prototype.dateIndex=function(t){var e=this.options;return Xe(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 o=r.min;o<=r.max;)t.push(o),o=ze(o,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 o=this.options,i=o.baseUnit,n=o.baseUnitStep,s=o.weekStartDay,a=this.start,l=Xe(t,a,i,n),c=e?Math.ceil(l):Math.floor(l);return r&&(c+=r),ze(a,c*n,i,s)};var ar=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,o=this.options,i=o.categories||[];if(i._parsed||((i=Ze(r,i))._parsed=!0),o=E({roundToBaseUnit:!0},o,{categories:i,min:qe(r,o.min),max:qe(r,o.max),weekStartDay:Qe(o,r)}),e.panning&&e.isPannable(o.vertical?x:m)&&(o.roundToBaseUnit=!1),o.userSetBaseUnit=o.userSetBaseUnit||o.baseUnit,o.userSetBaseUnitStep=o.userSetBaseUnitStep||o.baseUnitStep,this.options=o,o.srcCategories=i,i.length>0){var n=rr(i),s=o.maxDivisions;if(this.dataRange=new ir(n.min,n.max,sr(o)),s){var a=this.dataRange.displayRange(),l=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:a.min,max:a.max,maxDateGroups:s}),c=this.dataRange.options;nr(l,c.baseUnit,c.baseUnitStep),this.divisionRange=new ir(n.min,n.max,l)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||Ee,this.dataRange=this.divisionRange=new or(o);this.rangeLabels=[]},e.prototype.tickIndices=function(e){var r=this.dataRange,o=this.divisionRange,i=o.valuesCount();if(!this.options.maxDivisions||!i)return t.prototype.tickIndices.call(this,e);var n=[],s=o.values(),a=0;this.options.justified||(s=s.concat(o.dateAt(i)),a=.5);for(var l=0;l<s.length;l++)if(n.push(r.dateIndex(s[l])+a),1!==e&&l>=1){var c=n.length-1;n.splice(l,0,n[c-1]+(n[c]-n[c-1])*e)}return n},e.prototype.shouldRenderNote=function(t){var e=this.range(),r=this.options.categories||[];return Ue(t,e.min)>=0&&Ue(t,e.max)<=0&&r.length},e.prototype.parseNoteValue=function(t){return qe(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,o=e.weekStartDay,i=e.vertical,n=this.lineBox(),s=i?n.height():n.width(),a=this.range(),l=s/(a.max-a.min),c=jt(t/l,10);if(a.min&&a.max){var p=De(e.min||a.min,c),h=De(e.max||a.max,c);a={min:ze(p,0,r,o),max:ze(h,0,r,o)}}return a},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(),o=e.vertical?r.height():r.width(),i=this.dataRange.displayRange(),n=i.min,s=i.max,a=this.dataRange.total(),l=jt(t/(o/(s-n)),10)*(e.reverse?-1:1),c=De(n,l),p=De(s,l),h=this.limitRange(Ge(c),Ge(p),Ge(a.min),Ge(a.max),l);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 o=t.prototype.pointsRange.call(this,e,r),i=this.dataRange.displayRange(),n=this.dataRange.displayIndices(),s=Fe(i.max,i.min)/(n.max-n.min),a=this.options;return{min:De(i.min,o.min*s),max:De(i.min,o.max*s),baseUnit:a.userSetBaseUnit||a.baseUnit,baseUnitStep:a.userSetBaseUnitStep||a.baseUnitStep}},e.prototype.scaleRange=function(t,e){if(this.isEmpty())return{};var r=this.options,o="fit"===r.userSetBaseUnit,i=this.dataRange.total(),n=this.dataRange.displayRange(),s=n.min,a=n.max,l=Math.abs(this.pointOffset(e)),c=a-s,p=this.scaleToDelta(t,c),h=Math.round(l*p),u=Math.round((1-l)*p),f=this.dataRange.options.baseUnit,d=new Date(s.getTime()+h),v=new Date(a.getTime()-u);if(o){var y,g,m=r.autoBaseUnitSteps,x=r.maxDateGroups,b=St(m[f])*x*Be[f],_=Fe(a,s),w=Fe(v,d),C=er.indexOf(f);if(w<Be[f]&&"milliseconds"!==f)f=er[C-1],d=De(s,g=(_-(x-1)*(y=St(m[f]))*Be[f])/2),v=De(a,-g);else if(w>b&&f!==Re){var O=0;do{C++,f=er[C],O=0,g=2*Be[f];do{y=m[f][O],O++}while(O<m[f].length&&g*y<_)}while(f!==Re&&g*y<_);(g=(g*y-_)/2)>0&&(d=De(s,-g),v=De(a,g),d=De(d,kt(v,i.min,i.max)-v),v=De(v,kt(d,i.min,i.max)-d))}}return d&&v&&Fe(v,d)>0?{min:d,max:v,baseUnit:r.userSetBaseUnit||r.baseUnit,baseUnitStep:r.userSetBaseUnitStep||r.baseUnitStep}:void 0},e.prototype.zoomRange=function(t,e){var r=this.dataRange.total(),o=this.scaleRange(t,e);return o&&(o.min<r.min&&(o.min=r.min),o.max>r.max&&(o.max=r.max)),o},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(),o=t.vertical,i=t.rangeLabels.mirror||t.labels.mirror,n=e[0];if(n){var s=o?r.y1-n.box.height()/2:r.x1;this.positionLabel(n,i,s)}var a=e[1];if(a){var l=o?r.y2-a.box.height()/2:r.x2;this.positionLabel(a,i,l)}}},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 o=0;o<e.length;o++){if(!s(r,e[o]))break}var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0;--n){if(!s(i,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,o=0;o<r.length;o++){var i=r[o];i.options.visible&&e.wrap(i.box)}return e},e.prototype.createAxisLabel=function(t,e,r){void 0===r&&(r={});var o=this.options,i=o.dataItems&&!o.maxDivisions?o.dataItems[t]:null,n=this.divisionRange.dateAt(t),s=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||s,r.dataItem=i;var a=this.axisLabelText(n,e,r);if(a)return new Pe(n,a,t,i,e)},e.prototype.createRangeLabels=function(){var t=this,e=this.divisionRange,r=e.displayStart,o=e.displayEnd,i=this.options,n=Object.assign({},i.labels,i.rangeLabels,{align:a,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=a,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var s=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||s;var l=function(e,r,o){if(o){var i=new Pe(r,o,e,null,n);t.append(i),t.rangeLabels.push(i)}};l(0,r,this.axisLabelText(r,n,{index:0,count:2})),l(1,o,this.axisLabelText(o,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,o){var i=2*Math.abs(r[o+1]-r[o]),n=t.autoRotateLabelAngle(e.box,i);0!==n&&(e.options.rotation=n,e.reflow(new $t))},o=this.getMajorTickPositions();r(e[0],o,0),r(e[1],o,o.length-2)}},e.prototype.categoryIndex=function(t){return this.dataRange.valueIndex(t)},e.prototype.slot=function(t,e,r){var o=this.dataRange,i=t,n=e;i instanceof Date&&(i=o.dateIndex(i)),n instanceof Date&&(n=o.dateIndex(n));var s=this.getSlot(i,n,r);if(s)return s.toRect()},e.prototype.getSlot=function(e,r,o){var i=e,n=r;return"object"==typeof i&&(i=this.categoryIndex(i)),"object"==typeof n&&(n=this.categoryIndex(n)),t.prototype.getSlot.call(this,i,n,o)},e.prototype.valueRange=function(){var t=rr(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=rr(t.srcCategories);return new ir(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(Je);It(ar,{type:c,labels:{dateFormats:tr},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 lr=ar;function cr(t,e){return jt(Math.floor(t/e)*e,10)}function pr(t,e){return jt(Math.ceil(t/e)*e,10)}function hr(t){return Math.max(Math.min(t,3e5),-3e5)}var ur=Math.pow(10,-9),fr=function(t){function e(e,r,o,i){t.call(this,Object.assign({},o,{seriesMin:e,seriesMax:r}),i)}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 o=r.narrowRange,i=function(t,e,r){if(!t&&!e)return 0;var o;if(t>=0&&e>=0){var i=t===e?0:t;if(!1===r||!r&&(e-i)/e>.2)return 0;o=Math.max(0,i-(e-i)/2)}else o=t;return o}(t,e,o),n=function(t,e,r){if(!t&&!e)return 1;var o;if(t<=0&&e<=0){var i=t===e?0:e,n=Math.abs((i-t)/i);if(!1===r||!r&&n>.2)return 0;o=Math.min(0,i-(t-i)/2)}else o=e;return o}(t,e,o),s=qt(i,n),a={majorUnit:s};!1!==r.roundToMajorUnit&&(i<0&&dr(i,s,1/3)&&(i-=s),n>0&&dr(n,s,1/3)&&(n+=s));return a.min=cr(i,s),a.max=pr(n,s),a}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:bt(e.min)?Math.min(t.min,e.min):t.min,max:bt(e.max)?Math.max(t.max,e.max):t.max,majorUnit:t.majorUnit}}(e,t),function(t,e){var r,o,i=e;if(e){!function(t,e){for(var r=0;r<e.length;r++){var o=e[r];null===t[o]&&(t[o]=void 0)}}(e,["min","max"]),r=bt(e.min),o=bt(e.max);var n=r||o;n&&e.min===e.max&&(e.min>0?e.min=0:e.max=1),e.majorUnit?(t.min=cr(t.min,e.majorUnit),t.max=pr(t.max,e.majorUnit)):n&&(i=E(t,e),t.majorUnit=qt(i.min,i.max))}t.minorUnit=(i.majorUnit||t.majorUnit)/5;var s=E(t,i);s.min>=s.max&&(r&&!o?s.max=s.min+s.majorUnit:!r&&o&&(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,o=this.lineInfo(),i=o.axisDir,n=o.axisOrigin,s=o.lineBox,a=t*(o.lineSize/(r.max-r.min)),l=this.getDivisions(t),c=[],p=s[n],h=0;e&&(h=e/t);for(var u=0;u<l;u++)u%h!=0&&c.push(jt(p,3)),p+=a*i;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){void 0===r&&(r=!1);var o=this.options,i=this.lineInfo(),n=i.axis,s=i.axisDir,a=i.lineBox,l=i.lineSize,c=i.lineStart,p=s*(l/(o.max-o.min)),h=Et(t,e||0),u=Et(e,t||0);r&&(h=kt(h,o.min,o.max),u=kt(u,o.min,o.max));var f=Math.min(h,u)-o.min,d=Math.max(h,u)-o.min,v=new $t(a.x1,a.y1,a.x1,a.y1);return v[n+1]=hr(c+p*(s>0?f:d)),v[n+2]=hr(c+p*(s>0?d:f)),v},e.prototype.getValue=function(t){var e=this.options,r=Number(e.max),o=Number(e.min),i=this.pointOffset(t);return i<0||i>1?null:jt(o+i*(r-o),10)},e.prototype.translateRange=function(t){var e=this.options,r=e.vertical,o=e.reverse,i=e.max,n=e.min,s=this.lineInfo().lineSize,a=jt(t/(s/(i-n)),10);return!r&&!o||r&&o||(a=-a),{min:n+a,max:i+a,offset:a}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=jt(o.min+t*o.majorUnit,10),n=this.axisLabelText(i,e,r);return new Pe(i,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),o=this.getValue(e),i=Math.min(r,o),n=Math.max(r,o);if(this.isValidRange(i,n))return{min:i,max:n}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.options.max-this.options.min,i=this.scaleToDelta(t,o),n=r*i,s=(1-r)*i,a=jt(this.options.min+n,10),l=jt(this.options.max-s,10);return l-a<ur&&(l=a+ur),{min:a,max:l}},e.prototype.zoomRange=function(t,e){var r=this.totalMin,o=this.totalMax,i=this.scaleRange(t,e);return{min:kt(i.min,r,o),max:kt(i.max,r,o)}},e.prototype.isValidRange=function(t,e){return e-t>ur},e}(Te);function dr(t,e,r){var o=jt(Math.abs(t%e),10);return 0===o||o>e*(1-r)}It(fr,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var vr=fr,yr=function(t){function e(e,r,o,i){var n=Le(e),s=Le(r),a=i.intl,l=o||{};l=function(t,e,r){var o=r.min||t,i=r.max||e,n=r.baseUnit||(i&&o?function(t){var e="hours";t>=31536e6?e=Re:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Ee);return e}(Ie(i,o)):"hours"),s=Be[n],a=r.weekStartDay||0,l=Ne(Ge(o)-1,n,a)||Le(i),c=He(Ge(i)+1,n,a),p=(r.majorUnit?r.majorUnit:void 0)||pr(qt(l.getTime(),c.getTime()),s)/s,h=Ye(l,c,n),u=pr(h,p)-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(l,-f,n,a),r.max=r.max||ze(c,d,n,a),r.minorUnit=r.minorUnit||p/5,r.majorUnit=p,r}(n,s,l=E(l||{},{min:qe(a,l.min),max:qe(a,l.max),axisCrossingValue:Ze(a,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:Qe(l,a)})),t.call(this,l,i),this.intlService=a,this.seriesMin=n,this.seriesMax=s;var c=l.weekStartDay||0;this.totalMin=Ge(Ne(Ge(n)-1,l.baseUnit,c)),this.totalMax=Ge(He(Ge(s)+1,l.baseUnit,c))}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(Ye(e.min,e.max,e.baseUnit)/t+1)},e.prototype.getTickPositions=function(t){for(var e=this.options,r=this.lineInfo(),o=r.axisDir,i=r.lineSize,n=r.lineStart,s=this.getDivisions(t),a=i/Fe(e.max,e.min),l=e.weekStartDay||0,c=[n],p=1;p<s;p++){var h=n+Fe(ze(e.min,p*t,e.baseUnit,l),e.min)*a*o;c.push(jt(h,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 vr.prototype.getSlot.call(this,qe(this.intlService,t),qe(this.intlService,e),r)},e.prototype.getValue=function(t){var e=vr.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 o=this.options,i=t*o.majorUnit,n=o.weekStartDay||0,s=o.min;i>0&&(s=ze(s,i,o.baseUnit,n));var a=e.dateFormats[o.baseUnit];e.format=e.format||a;var l=this.axisLabelText(s,e,r);return new Pe(s,l,t,null,e)},e.prototype.translateRange=function(t){var e=this.options,r=this.lineBox(),o=e.vertical,i=e.reverse,n=o?r.height():r.width(),s=this.range(),a=n/Fe(s.max,s.min),l=jt(t/a,10);return!o&&!i||o&&i||(l=-l),{min:De(e.min,l),max:De(e.max,l),offset:l}},e.prototype.shouldRenderNote=function(t){var e=this.range();return Ue(t,e.min)>=0&&Ue(t,e.max)<=0},e.prototype.pan=function(t){var e=this.translateRange(t,!0),r=this.limitRange(Ge(e.min),Ge(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),o=this.getValue(e),i=Math.min(r,o),n=Math.max(r,o);return{min:Le(i),max:Le(n)}},e.prototype.scaleRange=function(t,e){var r=Math.abs(this.pointOffset(e)),o=this.options.max-this.options.min,i=this.scaleToDelta(t,o),n=r*i,s=(1-r)*i,a=Le(Ge(this.options.min)+n),l=Le(Ge(this.options.max)-s);return l-a<1e3&&(l=Le(Ge(a)+1e3)),{min:a,max:l}},e.prototype.zoomRange=function(t,e){var r=this.scaleRange(t,e);return{min:Le(kt(Ge(r.min),this.totalMin,this.totalMax)),max:Le(kt(Ge(r.max),this.totalMin,this.totalMax))}},e}(Te);It(yr,{type:c,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:tr}});var gr=yr,mr=function(t){function e(e,r,o,i){var n=E({majorUnit:10,min:e,max:r},o),s=n.majorUnit,a=function(t,e){var r,o=jt(br(t,e),10)%1;r=t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,br(t,e)+.2):Math.pow(e,Math.ceil(br(t,e)));return r}(r,s),l=function(t,e,r){var o=r.majorUnit,i=t;t<=0?i=e<=1?Math.pow(o,-2):1:r.narrowRange||(i=Math.pow(o,Math.floor(br(t,o))));return i}(e,r,n),c=function(t,e,r,o){var i=r.min,n=r.max;bt(r.axisCrossingValue)&&r.axisCrossingValue<=0&&xr();bt(o.max)?o.max<=0&&xr():n=e;bt(o.min)?o.min<=0&&xr():i=t;return{min:i,max:n}}(l,a,n,o);n.max=c.max,n.min=c.min,n.minorUnit=o.minorUnit||jt(s-1,10),t.call(this,n,i),this.totalMin=bt(o.min)?Math.min(l,o.min):l,this.totalMax=bt(o.max)?Math.max(a,o.max):a,this.logMin=jt(br(c.min,s),10),this.logMax=jt(br(c.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 o=this.options,i=this.logMin,n=this.logMax,s=o.majorUnit,a=o.min,l=o.max,c=this.lineInfo(),p=c.axis,h=c.axisDir,u=c.lineBox,f=c.lineSize,d=c.lineStart,v=h*(f/(n-i)),y=Et(t,e||1),g=Et(e,t||1);if(y<=0||g<=0)return null;r&&(y=kt(y,a,l),g=kt(g,a,l)),y=br(y,s),g=br(g,s);var m=Math.min(y,g)-i,x=Math.max(y,g)-i,b=new $t(u.x1,u.y1,u.x1,u.y1);return b[p+1]=hr(d+v*(h>0?m:x)),b[p+2]=hr(d+v*(h>0?x:m)),b},e.prototype.getValue=function(t){var e=this.options,r=this.logMin,o=this.logMax,i=e.majorUnit,n=this.lineInfo(),s=n.axis,a=n.axisDir,l=n.lineStart,c=n.lineSize,p=(o-r)/c,h=a*(t[s]-l);if(h<0||h>c)return null;var u=r+h*p;return jt(Math.pow(i,u),10)},e.prototype.range=function(){var t=this.options;return{min:t.min,max:t.max}},e.prototype.translateRange=function(t){var e=this.options,r=this.logMin,o=this.logMax,i=e.reverse,n=e.vertical,s=e.majorUnit,a=this.lineBox(),l=n?a.height():a.width(),c=jt(t/(l/(o-r)),10);return!n&&!i||n&&i||(c=-c),{min:Math.pow(s,r+c),max:Math.pow(s,o+c),offset:c}},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,o=e.minorTicks,i=e.vertical,n=e.labels.mirror,s=this.lineBox(),a={vertical:i};function l(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(Ae(a,r))}return r.visible&&this.traverseMajorTicksPositions(l,r),o.visible&&this.traverseMinorTicksPositions(l,o),[]},e.prototype.createGridLines=function(t){var e=this.options,r=e.minorGridLines,o=e.majorGridLines,i=e.vertical,n=t.lineBox(),s={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},a=[],l=this.gridLinesVisual();function c(t,e){pt(t,a)||(s.position=t,l.append(Me(s,e)),a.push(t))}return o.visible&&this.traverseMajorTicksPositions(c,o),r.visible&&this.traverseMinorTicksPositions(c,r),l.children},e.prototype.traverseMajorTicksPositions=function(t,e){for(var r=this.lineInfo(),o=r.lineStart,i=r.step,n=this.logMin,s=this.logMax,a=Math.ceil(n)+e.skip;a<=s;a+=e.step){t(jt(o+i*(a-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var r=this.options,o=r.min,i=r.max,n=r.minorUnit,s=r.majorUnit,a=this.lineInfo(),l=a.lineStart,c=a.step,p=this.logMin,h=this.logMax,u=Math.floor(p);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>i)break;if(v>=o)t(jt(l+c*(br(v,s)-p),10),e)}},e.prototype.createAxisLabel=function(t,e,r){var o=Math.ceil(this.logMin+t),i=Math.pow(this.options.majorUnit,o),n=this.axisLabelText(i,e,r);return new Pe(i,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),o=this.getValue(e);return{min:Math.min(r,o),max:Math.max(r,o)}},e.prototype.scaleRange=function(t,e){var r=this.options.majorUnit,o=br(this.options.min,r),i=br(this.options.max,r),n=Math.abs(this.pointOffset(e)),s=i-o,a=this.scaleToDelta(t,s),l=Math.pow(r,o+n*a),c=Math.pow(r,i-(1-n)*a);return c-l<1e-6&&(c=l+1e-6),{min:l,max:c}},e.prototype.zoomRange=function(t,e){var r=this.scaleRange(t,e),o=this.totalMin,i=this.totalMax;return{min:kt(r.min,o,i),max:kt(r.max,o,i)}},e.prototype._minorIntervalOptions=function(t){var e=this.options,r=e.minorUnit,o=e.majorUnit,i=Math.pow(o,t);return{value:i,minorStep:(Math.pow(o,t+1)-i)/r}},e.prototype.lineInfo=function(){var e=t.prototype.lineInfo.call(this);return e.step=e.axisDir*(e.lineSize/(this.logMax-this.logMin)),e},e}(Te);function xr(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function br(t,e){return Math.log(t)/Math.log(e)}It(mr,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var _r=mr,wr={createGridLines:function(t){var e,r,o=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],s=!1;return o.majorGridLines.visible&&(e=this.majorGridLineAngles(t),s=!0,n=this.renderMajorGridLines(e,i,o.majorGridLines)),o.minorGridLines.visible&&(r=this.minorGridLineAngles(t,s),mt(n,this.renderMinorGridLines(r,i,o.minorGridLines,t,s))),n},renderMajorGridLines:function(t,e,r){return this.renderGridLines(t,e,r)},renderMinorGridLines:function(t,e,r,o,i){var n=this.radiusCallback&&this.radiusCallback(e,o,i);return this.renderGridLines(t,e,r,n)},renderGridLines:function(t,e,r,o){for(var i={stroke:{width:r.width,color:r.color,dashType:r.dashType}},n=this.box.center(),s=new O.geometry.Circle([n.x,n.y],e),a=this.gridLinesVisual(),l=0;l<t.length;l++){var c=new O.drawing.Path(i);o&&(s.radius=o(t[l])),c.moveTo(s.center).lineTo(s.pointAt(t[l]+180)),a.append(c)}return a.children},gridLineAngles:function(t,e,r,o,i){var n=this,s=this.intervals(e,r,o,i),a=t.options,l=a.visible&&!1!==(a.line||{}).visible;return dt(s,(function(t){var e=n.intervalAngle(t);if(!l||90!==e)return e}))}},Cr=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,o=e.step||1,i=new $t,n=0;n<t.length;n++){t[n].reflow(i);var s=t[n].box;t[n].reflow(this.getSlot(r+n*o).adjacentBox(0,s.width(),s.height()))}},e.prototype.intervals=function(t,e,r,o){void 0===o&&(o=!1);for(var i=this.options,n=i.categories.length/t||1,s=360/n,a=r||1,l=[],c=0,p=e||0;p<n;p+=a)c=i.reverse?360-p*s:p*s,c=jt(c,3)%360,o&&pt(c,o)||l.push(c);return l},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,o=r.minorGridLines,i=r.majorGridLines,n=e?this.intervals(1,i.skip,i.step):null;return this.gridLineAngles(t,.5,o.skip,o.step,n)},e.prototype.radiusCallback=function(t,e,r){if(e.options.type!==i){var o=Mt(360/(2*this.options.categories.length)),n=Math.cos(o)*t,s=this.majorAngles(),a=function(e){return!r&&pt(e,s)?t:n};return a}},e.prototype.createPlotBands=function(){for(var t=this.options.plotBands||[],e=this._plotbandGroup=new O.drawing.Group({zIndex:-1}),r=0;r<t.length;r++){var o=t[r],i=this.plotBandSlot(o),n=this.getSlot(o.from),s=o.from-Math.floor(o.from);i.startAngle+=s*n.angle;var a=Math.ceil(o.to)-o.to;i.angle-=(a+s)*n.angle;var l=oe.current.createRing(i,{fill:{color:o.color,opacity:o.opacity},stroke:{opacity:o.opacity}});e.append(l)}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,o=r.justified,i=this.box,n=this.majorAngles(),s=n.length,a=360/s,l=t;r.reverse&&!o&&(l=(l+1)%s);var c=n[l=kt(Math.floor(l),0,s-1)];o&&(c-=a/2)<0&&(c+=360);var p=a*(kt(Math.ceil(e||l),l,s-1)-l+1);return new te(i.center(),0,i.height()/2,c,p)},e.prototype.slot=function(t,e){var r=this.getSlot(t,e),o=r.startAngle+180,i=o+r.angle;return new O.geometry.Arc([r.center.x,r.center.y],{startAngle:o,endAngle:i,radiusX:r.radius,radiusY:r.radius})},e.prototype.pointCategoryIndex=function(t){for(var e=this.options.categories.length,r=null,o=0;o<e;o++){if(this.getSlot(o).containsPoint(t)){r=o;break}}return r},e}(Je);It(Cr,{startAngle:90,labels:{margin:V(10)},majorGridLines:{visible:!0},justified:!0}),E(Cr.prototype,wr);var Or=Cr,Pr=function(t){function e(e,r){t.call(this,e,r);var o=this.options;o.minorUnit=o.minorUnit||o.majorUnit/2}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDivisions=function(t){return vr.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,o=r.skip||0,i=r.step||1,n=new $t,s=this.intervals(t.majorUnit,o,i),a=0;a<e.length;a++){e[a].reflow(n);var l=e[a].box;e[a].reflow(this.getSlot(s[a]).adjacentBox(0,l.width(),l.height()))}},e.prototype.lineBox=function(){return this.box},e.prototype.intervals=function(t,e,r,o){void 0===o&&(o=!1);for(var i=this.options.min,n=this.getDivisions(t),s=[],a=r||1,l=e||0;l<n;l+=a){var c=(360+i+l*t)%360;o&&pt(c,o)||s.push(c)}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,o=r.minorGridLines,i=r.majorGridLines,n=e?this.intervals(r.majorUnit,i.skip,i.step):null;return this.gridLineAngles(t,r.minorUnit,o.skip,o.step,n)},e.prototype.plotBandSlot=function(t){return this.getSlot(t.from,t.to)},e.prototype.getSlot=function(t,e){var r=this.options,o=this.box,i=r.startAngle,n=kt(t,r.min,r.max),s=kt(e||n,n,r.max);if(r.reverse&&(n*=-1,s*=-1),(s=(540-s-i)%360)<(n=(540-n-i)%360)){var a=n;n=s,s=a}return new te(o.center(),0,o.height()/2,n,s-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var r,o,i=this.options,n=360-i.startAngle,s=this.getSlot(t,e),a=Math.min(t,e),l=Math.max(t,e);return i.reverse?(r=a,o=l):(r=360-l,o=360-a),r=(r+n)%360,o=(o+n)%360,new O.geometry.Arc([s.center.x,s.center.y],{startAngle:r,endAngle:o,radiusX:s.radius,radiusY:s.radius})},e.prototype.getValue=function(t){var e=this.options,r=this.box.center(),o=t.x-r.x,i=t.y-r.y,n=Math.round(_t(Math.atan2(i,o))),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}(Te);It(Pr,{type:"polar",startAngle:0,reverse:!1,majorUnit:60,min:0,max:360,labels:{margin:V(10)},majorGridLines:{color:n,visible:!0,width:1},minorGridLines:{color:"#aaa"}}),E(Pr.prototype,wr,{createPlotBands:Or.prototype.createPlotBands,majorAngles:Or.prototype.majorAngles,range:vr.prototype.range,labelsCount:vr.prototype.labelsCount,createAxisLabel:vr.prototype.createAxisLabel});var Sr=Pr;function kr(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var Ar={options:{majorGridLines:{visible:!0}},createPlotBands:function(){var t=this.options,e=t.majorGridLines.type,r=t.plotBands;void 0===r&&(r=[]);for(var o=this.plotArea.polarAxis,n=o.majorAngles(),s=o.box.center(),a=this._plotbandGroup=new O.drawing.Group({zIndex:-1}),l=0;l<r.length;l++){var c=r[l],p={fill:{color:c.color,opacity:c.opacity},stroke:{opacity:c.opacity}},h=this.getSlot(c.from,c.to,!0),u=new te(s,s.y-h.y2,s.y-h.y1,0,360),f=void 0;f=e===i?oe.current.createRing(u,p):O.drawing.Path.fromPoints(this.plotBandPoints(u,n),p).close(),a.append(f)}this.appendVisual(a)},plotBandPoints:function(t,e){for(var r=[],o=[],i=[t.center.x,t.center.y],n=new O.geometry.Circle(i,t.innerRadius),s=new O.geometry.Circle(i,t.radius),a=0;a<e.length;a++)r.push(n.pointAt(e[a]+180)),o.push(s.pointAt(e[a]+180));return r.reverse(),r.push(r[0]),o.push(o[0]),o.concat(r)},createGridLines:function(t){var e=this.options,r=this.radarMajorGridLinePositions(),o=t.majorAngles(),i=t.box.center(),n=[];if(e.majorGridLines.visible&&(n=this.renderGridLines(i,r,o,e.majorGridLines)),e.minorGridLines.visible){var s=this.radarMinorGridLinePositions();mt(n,this.renderGridLines(i,s,o,e.minorGridLines))}return n},renderGridLines:function(t,e,r,o){var n={stroke:{width:o.width,color:o.color,dashType:o.dashType}},s=o.skip;void 0===s&&(s=0);var a=o.step;void 0===a&&(a=0);for(var l=this.gridLinesVisual(),c=s;c<e.length;c+=a){var p=t.y-e[c];if(p>0){var h=new O.geometry.Circle([t.x,t.y],p);if(o.type===i)l.append(new O.drawing.Circle(h,n));else{for(var u=new O.drawing.Path(n),f=0;f<r.length;f++)u.lineTo(h.pointAt(r[f]+180));u.close(),l.append(u)}}}return l.children},getValue:function(t){var e=this.lineBox(),r=this.plotArea.polarAxis,o=r.majorAngles(),n=r.box.center(),s=t.distanceTo(n),a=s;if(this.options.majorGridLines.type!==i&&o.length>1){var l=t.x-n.x,c=t.y-n.y,p=(_t(Math.atan2(c,l))+540)%360;o.sort((function(t,e){return kr(t,p)-kr(e,p)}));var h=90-kr(o[0],o[1])/2,u=180-kr(p,o[0])-h;a=s*(Math.sin(Mt(u))/Math.sin(Mt(h)))}return this.axisType().prototype.getValue.call(this,new Zt(e.x1,e.y2-a))}},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(){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}(vr);E(Mr.prototype,Ar);var jr=Mr,Tr=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}(_r);E(Tr.prototype,Ar);var Er=Tr;function Rr(t){return t<=0?-1:1}var Br=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=[],o=this.closed,i=e.length;if(i>2&&(this.removeDuplicates(0,e),i=e.length),i<2||2===i&&e[0].equals(e[1]))return r;var n,s,a=e[0],l=e[1],c=e[2];for(r.push(new O.geometry.Segment(a));a.equals(e[i-1]);)o=!0,e.pop(),i--;if(2===i){var p=this.tangent(a,l,m,x);return St(r).controlOut(this.firstControlPoint(p,a,l,m,x)),r.push(new O.geometry.Segment(l,this.secondControlPoint(p,a,l,m,x))),r}if(o){a=e[i-1],l=e[0],c=e[1];var h=this.controlPoints(a,l,c);n=h[1],s=h[0]}else{var u=this.tangent(a,l,m,x);n=this.firstControlPoint(u,a,l,m,x)}for(var f=n,d=0;d<=i-3;d++)if(this.removeDuplicates(d,e),d+3<=(i=e.length)){a=e[d],l=e[d+1],c=e[d+2];var v=this.controlPoints(a,l,c);St(r).controlOut(f),f=v[1];var y=v[0];r.push(new O.geometry.Segment(l,y))}if(o){a=e[i-2],l=e[i-1],c=e[0];var g=this.controlPoints(a,l,c);St(r).controlOut(f),r.push(new O.geometry.Segment(l,g[0])),St(r).controlOut(g[1]),r.push(new O.geometry.Segment(c,s))}else{var b=this.tangent(l,c,m,x);St(r).controlOut(f),r.push(new O.geometry.Segment(c,this.secondControlPoint(b,l,c,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 o=!1;if(t.x===e.x)o=!0;else if(e.x===r.x)(e.y<r.y&&t.y<=e.y||r.y<e.y&&e.y<=t.y)&&(o=!0);else{var i=this.lineFunction(t,e),n=this.calculateFunction(i,r.x);t.y<=e.y&&r.y<=n||e.y<=t.y&&r.y>=n||(o=!0)}return o},e.prototype.isLine=function(t,e,r){var o=this.lineFunction(t,e),i=this.calculateFunction(o,r.x);return t.x===e.x&&e.x===r.x||jt(i,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 o,i=m,n=x,s=!1,a=!1;if(this.isLine(t,e,r))o=this.tangent(t,e,m,x);else{var l={x:this.isMonotonicByField(t,e,r,m),y:this.isMonotonicByField(t,e,r,x)};if(l.x&&l.y)o=this.tangent(t,r,m,x),s=!0;else if(this.invertAxis(t,e,r)&&(i=x,n=m),l[i])o=0;else o=.01*(r[n]<t[n]&&t[n]<=e[n]||t[n]<r[n]&&e[n]<=t[n]?Rr((r[n]-t[n])*(e[i]-t[i])):-Rr((r[i]-t[i])*(e[n]-t[n]))),a=!0}var c=this.secondControlPoint(o,t,e,i,n);if(a){var p=i;i=n,n=p}var h=this.firstControlPoint(o,e,r,i,n);return s&&(this.restrictControlPoint(t,e,c,o),this.restrictControlPoint(e,r,h,o)),[c,h]},e.prototype.restrictControlPoint=function(t,e,r,o){t.y<e.y?e.y<r.y?(r.x=t.x+(e.y-t.y)/o,r.y=e.y):r.y<t.y&&(r.x=e.x-(e.y-t.y)/o,r.y=t.y):r.y<e.y?(r.x=t.x-(t.y-e.y)/o,r.y=e.y):t.y<r.y&&(r.x=e.x+(t.y-e.y)/o,r.y=t.y)},e.prototype.tangent=function(t,e,r,o){var i,n=e[r]-t[r],s=e[o]-t[o];return i=0===n?0:s/n,i},e.prototype.isMonotonicByField=function(t,e,r,o){return r[o]>e[o]&&e[o]>t[o]||r[o]<e[o]&&e[o]<t[o]},e.prototype.firstControlPoint=function(t,e,r,o,i){var n=e[o],s=.333*(r[o]-n);return this.point(n+s,e[i]+s*t,o,i)},e.prototype.secondControlPoint=function(t,e,r,o,i){var n=e[o],s=r[o],a=.333*(s-n);return this.point(s-a,r[i]-a*t,o,i)},e.prototype.point=function(t,e,r,o){var i=new O.geometry.Point;return i[r]=t,i[o]=e,i},e.prototype.calculateFunction=function(t,e){for(var r=t.length,o=0,i=0;i<r;i++)o+=Math.pow(e,i)*t[i];return o},e}(O.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}(O.Class);function Dr(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 Dr(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}(O.Class);function Nr(t){for(var e=t.length,r=0,o=0;o<e;o++){k(t[o])&&r++}return r}var Hr={min:function(t){for(var e=t.length,r=u,o=0;o<e;o++){var i=t[o];k(i)&&(r=Math.min(r,i))}return r===u?t[0]:r},max:function(t){for(var e=t.length,r=f,o=0;o<e;o++){var i=t[o];k(i)&&(r=Math.max(r,i))}return r===f?t[0]:r},sum:function(t){for(var e=t.length,r=0,o=0;o<e;o++){var i=t[o];k(i)&&(r+=i)}return r},sumOrNull:function(t){var e=null;return Nr(t)&&(e=Hr.sum(t)),e},count:function(t){for(var e=t.length,r=0,o=0;o<e;o++){var i=t[o];null!==i&&bt(i)&&r++}return r},avg:function(t){var e=Nr(t),r=t[0];return e>0&&(r=Hr.sum(t)/e),r},first:function(t){for(var e=t.length,r=0;r<e;r++){var o=t[r];if(null!==o&&bt(o))return o}return t[0]}},Ur=Hr;function Fr(t,e){return null===e?e:nt(t)(e)}var Gr=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 o=0;o<t.length;o++){var i=t[o];this._valueFields[i]=e,this._otherFields[i]=r,this._nullValue[i]=this._makeValue(e,null),this._undefinedValue[i]=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 o,i,n=t.data,s=bt(r)?r:n[e],a={valueFields:{value:s}},l=this.valueFields(t),c=this._otherFields[t.type];if(null===s)i=this._nullValue[t.type];else if(bt(s)){if(Array.isArray(s)){var p=s.slice(l.length);i=this._bindFromArray(s,l),o=this._bindFromArray(p,c)}else if("object"==typeof s){var h=this.sourceFields(t,l),u=this.sourceFields(t,c);i=this._bindFromObject(s,l,h),o=this._bindFromObject(s,c,u)}}else i=this._undefinedValue[t.type];return bt(i)&&(1===l.length?a.valueFields.value=i[l[0]]:a.valueFields=i),a.fields=o||{},a},e.prototype._makeValue=function(t,e){for(var r={},o=t.length,i=0;i<o;i++){r[t[i]]=e}return r},e.prototype._bindFromArray=function(t,e){var r={};if(e)for(var o=Math.min(e.length,t.length),i=0;i<o;i++)r[e[i]]=t[i];return r},e.prototype._bindFromObject=function(t,e,r){void 0===r&&(r=e);var o={};if(e)for(var i=e.length,n=0;n<i;n++){var s=e[n],a=r[n];null!==a&&(o[s]=Fr(a,t))}return o},e.prototype.sourceFields=function(t,e){var r=[];if(e)for(var o=e.length,i=0;i<o;i++){var n=e[i],s=n===y?"field":n+"Field";r.push(null!==t[s]?t[s]||n:null)}return r},e}(O.Class);Gr.current=new Gr;var Wr=Gr,Kr=/percent(?:\w*)\((\d+)\)/,Xr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),Yr=function(t){function e(e,r,o){t.call(this),this.initGlobalRanges(e,r,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initGlobalRanges=function(t,e,r){var o=e.data,i=Xr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,r);var n=this.getAverage(o),s=this.getStandardDeviation(o,n,!1),a=i[1]?parseFloat(i[1]):1,l={low:n.value-s*a,high:n.value+s*a};this.globalRange=function(){return l}}else if(t.indexOf&&t.indexOf("stderr")>=0){this.valueGetter=this.createValueGetter(e,r);var c=this.getStandardError(o,this.getAverage(o));this.globalRange=function(t){return{low:t-c,high:t+c}}}},e.prototype.createValueGetter=function(t,e){var r,o=t.data,i=Wr.current,n=i.valueFields(t),s=bt(o[0])?o[0]:{};if(b(s))r=nt("["+(e?n.indexOf(e):0)+"]");else if(k(s))r=nt();else if("object"==typeof s){r=nt(i.sourceFields(t,n)[n.indexOf(e)])}return r},e.prototype.getErrorRange=function(t,e){var r,o,i;if(!bt(e))return null;if(this.globalRange)return this.globalRange(t);if(b(e))r=t-e[0],o=t+e[1];else if(k(i=parseFloat(e)))r=t-i,o=t+i;else{if(!(i=Kr.exec(e)))throw new Error("Invalid ErrorBar value: "+e);var n=t*(parseFloat(i[1])/100);r=t-Math.abs(n),o=t+Math.abs(n)}return{low:r,high:o}},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 o=t.length,i=r?e.count-1:e.count,n=0,s=0;s<o;s++){var a=this.valueGetter(t[s]);k(a)&&(n+=Math.pow(a-e.value,2))}return Math.sqrt(n/i)},e.prototype.getAverage=function(t){for(var e=t.length,r=0,o=0,i=0;i<e;i++){var n=this.valueGetter(t[i]);k(n)&&(r+=n,o++)}return{value:r/o,count:o}},e}(O.Class),qr=O.support.browser||{},Zr=qr.msie?.001:0,Qr="zero",$r="bar",Jr="column",to="line",eo="pie",ro="verticalLine",oo=[$r,Jr,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],io="DOMMouseScroll mousewheel",no=function(t){function e(e,r,o,i,n,s){t.call(this,s),this.low=e,this.high=r,this.isVertical=o,this.chart=i,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,o=this.isVertical,i=this.getAxis().getSlot(this.low,this.high),n=t.center(),s=this.getCapsWidth(t,o),a=o?n.x:n.y,l=a-s,c=a+s;o?(e=[new Zt(n.x,i.y1),new Zt(n.x,i.y2)],r&&e.push(new Zt(l,i.y1),new Zt(c,i.y1),new Zt(l,i.y2),new Zt(c,i.y2)),this.box=new $t(l,i.y1,c,i.y2)):(e=[new Zt(i.x1,n.y),new Zt(i.x2,n.y)],r&&e.push(new Zt(i.x1,l),new Zt(i.x1,c),new Zt(i.x2,l),new Zt(i.x2,c)),this.box=new $t(i.x1,l,i.x2,c)),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,o={stroke:{color:e.color,width:e.line.width,dashType:e.line.dashType}};t.prototype.createVisual.call(this);for(var i=0;i<r.length;i+=2){var n=new O.drawing.Path(o).moveTo(r[i].x,r[i].y).lineTo(r[i+1].x,r[i+1].y);P(n),this.visual.append(n)}},e}(ne);It(no,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var so=no,ao=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}(so);function lo(t,e,r,o){void 0===r&&(r={}),void 0===o&&(o=!1);var i=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(!pt(a,r.excluded)&&t.hasOwnProperty(a)){var l=t[a];j(l)?(s=!0,o||(t[a]=Et(l(e),i[a]))):R(l)&&(o||(r.defaults=i[a]),r.depth++,s=lo(l,e,r,o)||s,r.depth--)}return s}function co(t){for(var e=t.length,r=0,o=0;o<e;o++)r=Math.max(r,t[o].data.length);return r}var po=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 o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},o,{vertical:!this.options.invertAxes},t)}return r},e.prototype.plotValue=function(t){if(!t)return 0;if(this.options.isStacked100&&k(t.value)){for(var e=t.categoryIx,r=this.categoryPoints[e],o=[],i=0,n=0;n<r.length;n++){var s=r[n];if(s){var a=t.series.stack,l=s.series.stack;if(a&&l&&a.group!==l.group)continue;k(s.value)&&(i+=Math.abs(s.value),o.push(Math.abs(s.value)))}}if(i>0)return t.value/i}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 o=this.plotValue(t),i=o>=0,n=e,s=!1,a=0;a<r.length;a++){var l=r[a];if(t===l)break;var c=t.series.stack,p=l.series.stack;if(c&&p){if("string"==typeof c&&c!==p)continue;if(c.group&&c.group!==p.group)continue}var h=this.plotValue(l);(h>=0&&i||h<0&&!i)&&(n+=h,o+=h,s=!0,this.options.isStacked100&&(o=Math.min(o,1)))}return s&&(n-=e),[n,o]}var u=t.series,f=this.seriesValueAxis(u),d=this.categoryAxisCrossingValue(f);return[d,M(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var r=u,o=f,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];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 l=this.plotRange(a,0)[1];bt(l)&&isFinite(l)&&(o=Math.max(o,l),r=Math.min(r,l))}}}return{min:r,max:o}},e.prototype.updateStackRange=function(){var t=this.options,e=t.isStacked,r=t.series,o={};if(e)for(var i=0;i<r.length;i++){var n=r[i],s=n.axis,a=s+n.stack,l=o[a];if(!l){l=this.stackLimits(s,n.stack);var c=this.errorTotals;c&&(c.negative.length&&(l.min=Math.min(l.min,Dt(c.negative).min)),c.positive.length&&(l.max=Math.max(l.max,Dt(c.positive).max))),l.min!==u||l.max!==f?o[a]=l:l=null}l&&(this.valueAxisRanges[s]=l)}},e.prototype.addErrorBar=function(t,e,r){var o,i=t.value,n=t.series,s=t.seriesIx,a=t.options.errorBars,l=e.fields.errorLow,c=e.fields.errorHigh;k(l)&&k(c)?o={low:l,high:c}:a&&bt(a.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[s]=this.seriesErrorRanges[s]||new Yr(a.value,n,y),o=this.seriesErrorRanges[s].getErrorRange(i,a.value)),o&&(t.low=o.low,t.high=o.high,this.addPointErrorBar(t,r))},e.prototype.addPointErrorBar=function(t,e){var r=!this.options.invertAxes,o=t.options.errorBars,i=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 l={categoryIx:e,series:i};this.updateRange({value:n},l),this.updateRange({value:s},l)}var c=new ao(n,s,r,this,i,o);t.errorBars=[c],t.append(c)},e.prototype.stackedErrorRange=function(t,e){var r=this.plotRange(t,0)[1]-t.value,o=t.low+r,i=t.high+r;return this.errorTotals=this.errorTotals||{positive:[],negative:[]},o<0&&(this.errorTotals.negative[e]=Math.min(this.errorTotals.negative[e]||0,o)),i>0&&(this.errorTotals.positive[e]=Math.max(this.errorTotals.positive[e]||0,i)),{low:o,high:i}},e.prototype.addValue=function(t,e){var r=e.categoryIx,o=e.series,i=e.seriesIx,n=this.categoryPoints[r];n||(this.categoryPoints[r]=n=[]);var s=this.seriesPoints[i];s||(this.seriesPoints[i]=s=[]);var a=this.createPoint(t,e);a&&(Object.assign(a,e),a.owner=this,a.noteText=t.fields.noteText,bt(a.dataItem)||(a.dataItem=o.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,o,i,n){var s={defaults:i._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},a=this._evalSeries[n];bt(a)||(this._evalSeries[n]=a=lo(t,{},s,!0));var l=t;return a&&lo(l=E({},l),{value:e,category:r,index:o,series:i,dataItem:i.data[o]},s),l},e.prototype.updateRange=function(t,e){var r=e.series.axis,o=t.value,i=this.valueAxisRanges[r];isFinite(o)&&null!==o&&((i=this.valueAxisRanges[r]=i||{min:u,max:f}).min=Math.min(i.min,o),i.max=Math.max(i.max,o))},e.prototype.seriesValueAxis=function(t){var e=this.plotArea,r=t.axis,o=r?e.namedValueAxes[r]:e.valueAxis;if(!o)throw new Error("Unable to locate value axis with name "+r);return o},e.prototype.reflow=function(t){var e=this,r=this.categorySlots=[],o=this.points,i=this.categoryAxis,n=0;this.traverseDataPoints((function(t,s){var a=s.categoryIx,l=s.series,c=e.seriesValueAxis(l),p=o[n++],h=r[a];if(h||(r[a]=h=e.categorySlot(i,a,c)),p){var u=e.plotRange(p,c.startValue()),f=e.valueSlot(c,u);if(f){var d=e.pointSlot(h,f);p.aboveAxis=e.aboveAxis(p,c),p.stackValue=u[1],e.options.isStacked100&&(p.percentage=e.plotValue(p)),e.reflowPoint(p,d)}else p.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(St(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),o=t.value;return e.options.reverse?o<r:o>=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,o=r?e:t,i=r?t:e;return new $t(o.x1,i.y1,o.x2,i.y2)},e.prototype.categorySlot=function(t,e){return t.getSlot(e)},e.prototype.traverseDataPoints=function(t){for(var e=this.options.series,r=co(e),o=e.length,i=0;i<o;i++)this._outOfRangeCallback(e[i],"_outOfRangeMinPoint",i,t);for(var n=0;n<r;n++)for(var s=0;s<o;s++){var a=e[s],l=this.categoryAxis.categoryAt(n);t(this._bindPoint(a,s,n),{category:l,categoryIx:n,categoriesCount:r,series:a,seriesIx:s})}for(var c=0;c<o;c++)this._outOfRangeCallback(e[c],"_outOfRangeMaxPoint",c,t)},e.prototype._outOfRangeCallback=function(t,e,r,o){var i=t[e];if(i){var n=i.categoryIx;o(this._bindPoint(t,r,n,i.item),{category:i.category,categoryIx:n,series:t,seriesIx:r,dataItem:i.item})}},e.prototype._bindPoint=function(t,e,r,o){this._bindCache||(this._bindCache=[]);var i=this._bindCache[e];i||(i=this._bindCache[e]=[]);var n=i[r];return n||(n=i[r]=Wr.current.bindPoint(t,r,o)),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}(ne);It(po,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var ho=po,uo={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}}},fo={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&bt(e)&&null!==e&&(this.note=new ke({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},vo=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=Et(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 o=rt(r),i=this.pointData(),n=this.value;o?n=o(i):r.format&&(n=this.formatValue(r.format)),this.label=new _e(n,E({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Et(r.zIndex,this.series.zIndex)},r),i),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 bt(r.color)||(r.color=new O.Color(e).brightness(.8).toHex()),r},e.prototype.createVisual=function(){},e.prototype.createMarker=function(){var t=this.options.markers;return new ce({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:Et(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,o=e.vertical;this.render(),this.box=t;var i=t.clone();if(o?r?i.y1-=i.height():i.y2+=i.height():r?i.x1+=i.width():i.x2-=i.width(),this._childBox=i,this.marker&&this.marker.reflow(i),this.reflowLabel(i),this.errorBars)for(var n=0;n<this.errorBars.length;n++)this.errorBars[n].reflow(i);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,o=e.labels.position;r&&(o="below"===(o="above"===o?v:o)?s:o,r.reflow(t),r.box.alignTo(this.markerBox(),o),r.reflow(r.box))},e.prototype.createHighlight=function(){var t=this.options.highlight.markers,e=this.markerBorder().color,r=this.options.markers,o=r.size+(r.border.width||0)+(t.border.width||0),i=new ce({type:r.type,width:o,height:o,rotation:r.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:Et(t.border.opacity,1)},opacity:Et(t.opacity,1)});return i.reflow(this._childBox),i.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 o=this.options.markers.size,i=o/2,n=this.box.center();e=new O.geometry.Rect([n.x-i,n.y-i],[o,o])}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,o,i=t.x2+5;return this.aboveAxis?(r=t.y1,o=s):(r=t.y2,o=v),{point:new Zt(i,r),align:{horizontal:"left",vertical:o}}}},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}(ne);vo.prototype.defaults={vertical:!0,markers:{visible:!0,background:g,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,position:"above",margin:V(3),padding:V(4),animation:{type:"fadeIn",delay:600}},notes:{label:{}},highlight:{markers:{border:{color:"#fff",width:2}},zIndex:100},errorBars:{line:{width:1}}},E(vo.prototype,uo),E(vo.prototype,fo);var yo=vo,go=function(t){function e(e,r,o){t.call(this),this.linePoints=e,this.series=r,this.seriesIx=o}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,o=t.length;r<o;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&&!bt(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,o=e._defaults;j(r)&&o&&(r=o.color);var i=O.drawing.Path.fromPoints(this.points(),{stroke:{color:r,width:e.width,opacity:e.opacity,dashType:e.dashType},zIndex:e.zIndex});t.closed&&i.close(),this.visual=i},e.prototype.aliasFor=function(t,e){return this.parent.getNearestPoint(e.x,e.y,this.seriesIx)},e}(ne);It(go,{closed:!1});var mo=go;function xo(t,e,r,o,i){var n=t.box,s=new O.geometry.Point;return s[e]=n[e+r],s[o]=n[o+i],s}var bo={calculateStepPoints:function(t){for(var e=this.parent.plotArea.seriesCategoryAxis(this.series).options,r=e.justified,o=e.vertical,i=e.reverse,n=o?m:x,s=o?x:m,a=i?2:1,l=a,c=xo(t[0],n,a,s,l),p=[c],h=1;h<t.length;h++){var u=xo(t[h],n,a,s,l);if(c[n]!==u[n]){var f=new O.geometry.Point;f[n]=c[n],f[s]=u[s],p.push(f,u)}c=u}return r?c!==St(p)&&p.push(c):p.push(xo(St(t),n,a,s,i?1:2)),p}},_o=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}(mo);E(_o.prototype,bo);var wo=_o,Co=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;j(r)&&e&&(r=e.color);var o=new Br(this.options.closed).process(this.points()),i=new O.drawing.Path({stroke:{color:r,width:t.width,opacity:t.opacity,dashType:t.dashType},zIndex:t.zIndex});i.segments.push.apply(i.segments,o),this.visual=i},e}(mo),Oo={renderSegments:function(){var t,e=this.options,r=this.seriesPoints,o=e.series,i=r.length;this._segments=[];for(var n=0;n<i;n++){for(var s=o[n],a=this.sortPoints(r[n]),l=a.length,c=[],p=0;p<l;p++){var h=a[p];h?c.push(h):"interpolate"!==this.seriesMissingValues(s)&&(c.length>1&&(t=this.createSegment(c,s,n,t),this._addSegment(t)),c=[])}c.length>1&&(t=this.createSegment(c,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?Qr:e||"interpolate"},getNearestPoint:function(t,e,r){for(var o,i=new Zt(t,e),n=this.seriesPoints[r],s=u,a=0;a<n.length;a++){var l=n[a];if(l&&bt(l.value)&&null!==l.value&&!1!==l.visible){var c=l.box.center().distanceTo(i);c<s&&(o=l,s=c)}}return o}},Po=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,o=r[1].anchor(),i=r[2].anchor();e.suspend(),o.setX(t),e.resume(),i.setX(t)},e}(O.drawing.Animation);It(Po,{duration:600}),O.drawing.AnimationFactory.current.register("clip",Po);var So=Po;function ko(t){for(var e=0;e<t.length;e++)if(bt(t[e].zIndex))return!0}var Ao={createAnimation:function(){var t=this.getRoot();if(t&&!1!==(t.options||{}).transitions){var e=t.size(),r=O.drawing.Path.fromRect(e.toRect());this.visual.clip(r),this.animation=new So(r,{box:e}),ko(this.options.series)&&this._setChildrenAnimation(r)}},_setChildrenAnimation:function(t){for(var e=this.animationPoints(),r=0;r<e.length;r++){var o=e[r];o&&o.visual&&bt(o.visual.options.zIndex)&&o.visual.clip(t)}}},Mo=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 yo},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.seriesMissingValues(i),a=t.valueFields.value;if(!bt(a)||null===a){if(s!==Qr)return null;a=0}var l=this.pointOptions(i,n);l=this.evalPointOptions(l,a,o,r,i,n);var c=t.fields.color||i.color;j(i.color)&&(c=l.color);var p=new yo(a,l);return p.color=c,this.append(p),p},e.prototype.plotRange=function(t){var e=this.plotValue(t);if(this.options.isStacked)for(var r=t.categoryIx,o=this.categoryPoints[r],i=0;i<o.length;i++){var n=o[i];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 o=e.style;return new("step"===o?wo:"smooth"===o?Co:mo)(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}(ho);E(Mo.prototype,Oo,Ao);var jo=Mo,To=function(t){function e(e,r,o,i,n){t.call(this,e,r,o),this.prevSegment=i,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||{},o=t.color;j(o)&&e&&(o=e.color),this.visual=new O.drawing.Group({zIndex:t.zIndex}),this.createFill({fill:{color:o,opacity:t.opacity},stroke:null}),r.width>0&&!1!==r.visible&&this.createStroke({stroke:E({color:o,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 O.geometry.Segment(t)}))},e.prototype.createStroke=function(t){var e=new O.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),o=this.hasStackSegment();if(o){var i=this.stackSegments();mt(r,i)}var n=new O.drawing.Path(t);n.segments.push.apply(n.segments,r),!o&&e.length>1&&this.fillToAxes(n),this.visual.append(n)},e.prototype.fillToAxes=function(t){var e=this.parent,r=e.options.invertAxes,o=e.seriesValueAxis(this.series),i=e.categoryAxisCrossingValue(o),n=o.getSlot(i,i,!0),s=this.strokeSegments(),a=s[0].anchor(),l=St(s).anchor(),c=r?n.x1:n.y1;r?t.lineTo(c,l.y).lineTo(c,a.y):t.lineTo(l.x,c).lineTo(a.x,c)},e}(mo),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.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(To);E(Eo.prototype,bo);var Ro=Eo,Bo=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 Br(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 o=t[r];e.push(new O.geometry.Segment(o.anchor(),o.controlOut(),o.controlIn()))}return e},e}(To),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.createSegment=function(t,e,r,o){var i,n,s=this.options.isStacked,a=(e.line||{}).style;s&&r>0&&o&&("gap"!==this.seriesMissingValues(e)?(n=o.linePoints,i=o):n=this._gapStackPoints(t,r,a));return new("step"===a?Ro:"smooth"===a?Bo:To)(t,e,r,i,n)},e.prototype.reflow=function(e){t.prototype.reflow.call(this,e);var r=this._stackPoints;if(r)for(var o=0;o<r.length;o++){var i=r[o],n=this.categoryAxis.getSlot(i.categoryIx);i.reflow(n)}},e.prototype._gapStackPoints=function(t,e,r){var o=this.seriesPoints,i=t[0].categoryIx,n=t.length;i<0&&(i=0,n--);var s=i+n,a=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var c=i;c<s;c++){var p=c+a,h=e,u=void 0;do{u=o[--h][p]}while(h>0&&!u);if(u)"step"!==r&&c>i&&!o[h][p-1]&&l.push(this._previousSegmentPoint(c,p,p-1,h)),l.push(u),"step"!==r&&c+1<s&&!o[h][p+1]&&l.push(this._previousSegmentPoint(c,p,p+1,h));else{var f=this._createGapStackPoint(c);this._stackPoints.push(f),l.push(f)}}return l},e.prototype._previousSegmentPoint=function(t,e,r,o){for(var i,n=this.seriesPoints,s=o;s>0&&!i;)i=n[--s][r];return i?i=n[s][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),r=new yo(0,e);return r.categoryIx=t,r.series={},r},e.prototype.seriesMissingValues=function(t){return t.missingValues||Qr},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(jo),Do=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 o=t[r],i=e[r];e[r]=i=i||{min:u,max:f},i.min=Math.min(i.min,o.min),i.max=Math.max(i.max,o.max)}},e.prototype.reset=function(t){this.axisRanges[t]=void 0},e.prototype.query=function(t){return this.axisRanges[t]},e}(O.Class),Lo=function(t){function e(e,r,o){t.call(this,r),this.textBox=new _e(e,this.options,o),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,o=e.aboveAxis,i=this.children[0],n=i.options,l=i.box,c=i.options.padding,p=t;n.align=r?a:h,n.vAlign=r?v:a,"insideEnd"===e.position?r?(n.vAlign=v,!o&&l.height()<t.height()&&(n.vAlign=s)):n.align=o?d:h:e.position===a?(n.vAlign=a,n.align=a):"insideBase"===e.position?r?n.vAlign=o?s:v:n.align=o?h:d:"outsideEnd"===e.position&&(r?p=o?new $t(t.x1,t.y1-l.height(),t.x2,t.y1):new $t(t.x1,t.y2,t.x2,t.y2+l.height()):(n.align=a,p=o?new $t(t.x2,t.y1,t.x2+l.width(),t.y2):new $t(t.x1-l.width(),t.y1,t.x1,t.y2))),e.rotation||(r?c.left=c.right=(p.width()-i.contentBox.width())/2:c.top=c.bottom=(p.height()-i.contentBox.height())/2),i.reflow(p)},e.prototype.alignToClipBox=function(t){var e=this.options.vertical?x:m,r=e+"1",o=e+"2",i=this.children[0],n=this.parent.box;if(n[r]<t[r]||t[o]<n[o]){var s=i.paddingBox.clone();s[r]=Math.max(n[r],t[r]),s[o]=Math.min(n[o],t[o]),this.reflow(s)}},e}(ne);It(Lo,{position:"outsideEnd",margin:V(3),padding:V(4),color:n,background:"",border:{width:1,color:""},aboveAxis:!0,vertical:!1,animation:{type:"fadeIn",delay:600},zIndex:2});var Vo=Lo;function zo(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var No=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.aboveAxis=Et(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,o=this.pointData(),i=rt(e);r=i?i(o):this.formatValue(e.format),this.label=new Vo(r,E({vertical:t.vertical},e),o),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,o=this.options,i=o.visual;if(!1!==this.visible)if(t.prototype.createVisual.call(this),i){var n=this.rectVisual=i({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 O.drawing.Group;return e.createRect(t),t},options:o});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,o=bt(r.opacity)?r.opacity:e.opacity,i=this.box.toRect();i.size.width=Math.round(i.size.width);var n=this.rectVisual=O.drawing.Path.fromRect(i,{fill:{color:this.color,opacity:e.opacity},stroke:{color:this.getBorderColor(),width:r.width,opacity:o,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),zo(e)){var l=this.createGradientOverlay(n,{baseColor:this.color},E({end:e.vertical?void 0:[0,1]},e.overlay));t.append(l)}},e.prototype.createHighlight=function(t){return P(O.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,o=e.color;return bt(o)||(o=new O.Color(t).brightness(r).toHex()),o},e.prototype.tooltipAnchor=function(){var t,e,r=this.options,o=this.box,i=this.aboveAxis,n=this.owner.pane.clipBox()||o,a=h,l=v;if(r.vertical)t=Math.min(o.x2,n.x2)+5,i?e=Math.max(o.y1,n.y1):(e=Math.min(o.y2,n.y2),l=s);else{var c=Math.max(o.x1,n.x1),p=Math.min(o.x2,n.x2);r.isStacked?(l=s,i?(a=d,t=p):t=c,e=Math.max(o.y1,n.y1)-5):(i?t=p+5:(t=c-5,a=d),e=Math.max(o.y1,n.y1))}return{point:new Zt(t,e),align:{horizontal:a,vertical:l}}},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}(ne);E(No.prototype,uo),E(No.prototype,fo),No.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Ho=No;function Uo(t,e){t.forEach(e)}function Fo(t,e){for(var r=t.length,o=r-1;o>=0;o--)e(t[o],o-r-1)}var Go=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Fo:Uo}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,o=e.gap,i=e.spacing,n=this.children,s=n.length,a=r?x:m,l=s+o+i*(s-1),c=(r?t.height():t.width())/l,p=t[a+1]+c*(o/2);this.forEach(n,(function(e,r){var o=(e.box||t).clone();o[a+1]=p,o[a+2]=p+c,e.reflow(o),r<s-1&&(p+=c*i),p+=c}))},e}(ne);It(Go,{vertical:!1,gap:0,spacing:0});var Wo=Go,Ko=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,o=r.length,i=this.box=new $t,n=0;n<o;n++){var s=r[n];if(!1!==s.visible){var a=s.box.clone();a.snapTo(t,e),0===n&&(i=this.box=a.clone()),s.reflow(a),i.wrap(a)}}},e}(ne);It(Ko,{vertical:!0});var Xo=Ko,Yo=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 Ho},e.prototype.clusterType=function(){return Wo},e.prototype.stackType=function(){return Xo},e.prototype.stackLimits=function(e,r){return t.prototype.stackLimits.call(this,e,r)},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.options,a=this.children,l=s.isStacked,c=this.pointValue(t),p=this.pointOptions(i,n),h=p.labels;l&&"outsideEnd"===h.position&&(h.position="insideEnd"),p.isStacked=l;var u=t.fields.color||i.color;c<0&&p.negativeColor&&(u=p.negativeColor),p=this.evalPointOptions(p,c,o,r,i,n),j(i.color)&&(u=p.color);var f=new(this.pointType())(c,p);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));l?this.getStackWrap(i,d).append(f):d.append(f);return f},e.prototype.getStackWrap=function(t,e){var r,o=t.stack,i=o&&o.group||o,n=e.children;if("string"==typeof i){for(var s=0;s<n.length;s++)if(n[s]._stackGroup===i){r=n[s];break}}else r=n[0];r||((r=new(this.stackType())({vertical:!this.options.invertAxes}))._stackGroup=i,e.append(r));return r},e.prototype.categorySlot=function(t,e,r){var o=this.options,i=t.getSlot(e),n=r.startValue();if(o.isStacked){var s=r.getSlot(n,n,!0),a=o.invertAxes?m:x;i[a+1]=i[a+2]=s[a+1]}return i},e.prototype.reflowCategories=function(t){for(var e=this.children,r=e.length,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.createAnimation=function(){this._setAnimationOptions(),t.prototype.createAnimation.call(this),ko(this.options.series)&&this._setChildrenAnimation()},e.prototype._setChildrenAnimation=function(){for(var t=this.points,e=0;e<t.length;e++){var r=t[e],o=r.visual;o&&bt(o.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 o=this.seriesValueAxis(e.series[0]);t=o.getSlot(o.startValue())}else t=this.categoryAxis.getSlot(0);r.origin=new O.geometry.Point(t.x1,t.y1),r.vertical=!e.invertAxes},e}(ho);It(Yo,{animation:{type:$r}});var qo=Yo,Zo=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,o=this.owner.seriesValueAxis(e),i=o.getSlot(r.open,r.close),n=o.getSlot(r.low,r.high);i.x1=n.x1=t.x1,i.x2=n.x2=t.x2,this.realBody=i;var s=n.center().x,a=[];a.push([[s,n.y1],[s,i.y1]]),a.push([[s,i.y2],[s,n.y2]]),this.lines=a,this.box=n.clone().wrap(i),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 O.drawing.Group;return this.createBody(e,t),this.createLines(e,t),e},e.prototype.createBody=function(t,e){var r=O.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:Et(e.border.opacity,e.opacity)}),P(r),t.append(r),zo(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,o){if(r)for(var i={stroke:{color:o.color||this.color,opacity:Et(o.opacity,e.opacity),width:o.width,dashType:o.dashType,lineCap:"butt"}},n=0;n<r.length;n++){var s=O.drawing.Path.fromPoints(r[n],i);P(s),t.append(s)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return bt(e)||(e=new O.Color(this.color).brightness(t._brightness).toHex()),e},e.prototype.createOverlay=function(){var t=O.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 Zt(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}(ne);It(Zo,{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(Zo.prototype,uo),E(Zo.prototype,fo);var Qo=Zo;function $o(t){return Nr(t)===t.length}var Jo=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,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.addValue=function(t,e){var r,o=e.categoryIx,i=e.category,n=e.series,s=e.seriesIx,a=this.children,l=this.options,c=t.valueFields,p=$o(this.splitValue(c)),h=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),p&&(r=this.createPoint(t,e));var f=a[o];f||(f=new Wo({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(c,e),f.append(r),r.categoryIx=o,r.category=i,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 Qo},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.pointType(),a=t.valueFields,l=E({},i),c=t.fields.color||i.color;l=this.evalPointOptions(l,a,o,r,i,n),"candlestick"===i.type&&a.open>a.close&&(c=t.fields.downColor||i.downColor||i.color),j(i.color)&&(c=l.color),l.vertical=!this.options.invertAxes;var p=new s(a,l);return p.color=c,p},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,o=this.splitValue(t),i=this.valueAxisRanges[r];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.open,r.high,r.low,r.close,t.category)},e.prototype.animationPoints=function(){return this.points},e}(ho);E(Jo.prototype,Ao);var ti=Jo,ei=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,o=this.options,i=this.value,n=this.owner.seriesValueAxis(o);this.boxSlot=r=n.getSlot(i.q1,i.q3),this.realBody=r,this.reflowBoxSlot(t),this.whiskerSlot=e=n.getSlot(i.lower,i.upper),this.reflowWhiskerSlot(t);var s=n.getSlot(i.median);if(i.mean){var a=n.getSlot(i.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||[],o=3*Math.abs(e.q3-e.q1),i=[],n=t.markers||{},s=0;s<r.length;s++){var a=r[s],l=E({},(n=a<e.q3+o&&a>e.q1-o?t.outliers:t.extremes).border);bt(l.color)||(bt(this.color)?l.color=this.color:l.color=new O.Color(n.background).brightness(.8).toHex());var c=new ce({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:l,opacity:n.opacity});c.value=a,i.push(c)}return this.reflowOutliers(i),i},e.prototype.reflowOutliers=function(t){for(var e=this.owner.seriesValueAxis(this.options),r=this.box.center(),o=0;o<t.length;o++){var i=t[o].value,n=e.getSlot(i);this.options.vertical?n.move(r.x):n.move(void 0,r.y),this.box=this.box.wrap(n),t[o].reflow(n)}},e.prototype.mainVisual=function(e){for(var r=t.prototype.mainVisual.call(this,e),o=this.renderOutliers(e),i=0;i<o.length;i++){var n=o[i].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}(Qo);It(ei,{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:l,background:g,border:{width:2,opacity:1},opacity:0}}),E(ei.prototype,uo);var ri=ei,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.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}(ri),ii=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,o=e.categoryIx,i=e.category,n=e.series,s=e.seriesIx,a=this.children,l=this.options,c=t.valueFields,p=$o(this.splitValue(c)),h=n.data[o],u=this.categoryPoints[o];u||(this.categoryPoints[o]=u=[]),p&&(r=this.createPoint(t,e));var f=a[o];f||(f=new Wo({vertical:l.invertAxes,gap:l.gap,spacing:l.spacing,rtl:!l.invertAxes&&(this.chartService||{}).rtl}),this.append(f)),r&&(this.updateRange(c,e),f.append(r),r.categoryIx=o,r.category=i,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?oi:ri},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,o=this.valueAxisRanges[r],i=this.splitValue(t).concat(this.filterOutliers(t.outliers));bt(t.mean)&&(i=i.concat(t.mean)),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.lower,r.q1,r.median,r.q3,r.upper,r.mean,t.category)},e.prototype.filterOutliers=function(t){for(var e=(t||[]).length,r=[],o=0;o<e;o++){var i=t[o];bt(i)&&null!==i&&r.push(i)}return r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(ti),ni=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}(so);function si(t){return bt(t)&&null!==t}var ai=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 o,i=t.value[e],n=e+"Value",s=e+"ErrorLow",a=e+"ErrorHigh",l=r.seriesIx,c=r.series,p=t.options.errorBars,h=r[s],u=r[a];k(i)&&(k(h)&&k(u)&&(o={low:h,high:u}),p&&bt(p[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][l]=this.seriesErrorRanges[e][l]||new Yr(p[n],c,e),o=this.seriesErrorRanges[e][l].getErrorRange(i,p[n])),o&&this.addPointErrorBar(o,t,e))},e.prototype.addPointErrorBar=function(t,e,r){var o=t.low,i=t.high,n=e.series,s=e.options.errorBars,a=r===x,l={};e[r+"Low"]=o,e[r+"High"]=i,e.errorBars=e.errorBars||[];var c=new ni(o,i,a,this,n,s);e.errorBars.push(c),e.append(c),l[r]=o,this.updateRange(l,n),l[r]=i,this.updateRange(l,n)},e.prototype.addValue=function(t,e){var r,o=t.x,i=t.y,n=e.seriesIx,s=this.options.series[n],a=this.seriesMissingValues(s),l=this.seriesPoints[n],c=t;si(o)&&si(i)||(c=this.createMissingValue(c,a)),c&&((r=this.createPoint(c,e))&&(Object.assign(r,e),this.addErrorBar(r,m,e),this.addErrorBar(r,x,e)),this.updateRange(c,e.series)),this.points.push(r),l.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,o=e.xAxis,i=e.yAxis,n=t.x,s=t.y,a=this.xAxisRanges[o],l=this.yAxisRanges[i];si(n)&&(a=this.xAxisRanges[o]=a||{min:u,max:f},A(n)&&(n=qe(r,n)),a.min=Math.min(a.min,n),a.max=Math.max(a.max,n)),si(s)&&(l=this.yAxisRanges[i]=l||{min:u,max:f},A(s)&&(s=qe(r,s)),l.min=Math.min(l.min,s),l.max=Math.max(l.max,s))},e.prototype.evalPointOptions=function(t,e,r){var o=r.series,i=r.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[i];bt(s)||(this._evalSeries[i]=s=lo(t,{},n,!0));var a=t;return s&&lo(a=E({},t),{value:e,series:o,dataItem:r.dataItem},n),a},e.prototype.pointType=function(){return yo},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},o,{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,o=this.pointOptions(r,e.seriesIx),i=e.color||r.color;o=this.evalPointOptions(o,t,e),j(r.color)&&(i=o.color);var n=new yo(t,o);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,o=this.plotArea,i=e?o.namedXAxes[e]:o.axisX,n=r?o.namedYAxes[r]:o.axisY;if(!i)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:i,y:n}},e.prototype.reflow=function(t){var e=this,r=this.points,o=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var s=r[i++],a=e.seriesAxes(n.series),l=a.x.getSlot(t.x,t.x,o),c=a.y.getSlot(t.y,t.y,o);if(s)if(l&&c){var p=e.pointSlot(l,c);s.reflow(p)}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,o=0;o<e.length;o++){var i=e[o];r[o]||(r[o]=[]);for(var n=0;n<i.data.length;n++){var s=this._bindPoint(i,o,n),a=s.valueFields,l=s.fields;t(a,E({pointIx:n,series:i,seriesIx:o,dataItem:i.data[n],owner:this},l))}}},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}(ne);It(ai,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),E(ai.prototype,Ao,{_bindPoint:ho.prototype._bindPoint});var li=ai,ci=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,o=this.box.center(),i=(r.size+r.border.width+e.width)/2,n=new O.drawing.Group,s=new O.drawing.Circle(new O.geometry.Circle([o.x,o.y+i/5+e.width/2],i+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 O.drawing.Circle(new O.geometry.Circle([o.x,o.y],i),{stroke:{color:e.color||new O.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}(yo);ci.prototype.defaults=E({},ci.prototype.defaults,{labels:{position:a},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),ci.prototype.defaults.highlight.zIndex=void 0;var pi=ci,hi=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 pi},e.prototype.createPoint=function(t,e){var r=e.series,o=r.data.length,i=e.pointIx*(600/o),n={delay:i,duration:600-i,type:"bubble"},s=e.color||r.color;t.size<0&&r.negativeValues.visible&&(s=Et(r.negativeValues.color,s));var a=E({labels:{animation:{delay:i,duration:600-i}}},this.pointOptions(r,e.seriesIx),{markers:{type:l,border:r.border,opacity:r.opacity,animation:n}});a=this.evalPointOptions(a,t,e),j(r.color)&&(s=a.color),a.markers.background=s;var c=new pi(t,a);return c.color=s,this.append(c),c},e.prototype.updateBubblesSize=function(t){for(var e=this.options.series,r=Math.min(t.width(),t.height()),o=0;o<e.length;o++)for(var i=e[o],n=this.seriesPoints[o],s=(i.minSize||Math.max(.02*r,10))/2,a=(i.maxSize||.2*r)/2,l=Math.PI*s*s,c=(Math.PI*a*a-l)/this._maxSize,p=0;p<n.length;p++){var h=n[p];if(h){var u=Math.abs(h.value.size)*c,f=Math.sqrt((l+u)/Math.PI),d=Et(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}(li);It(hi,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var ui=hi,fi=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}(ce);E(fi.prototype,uo);var di=fi,vi=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,bt(this.value.target)&&(this.target=new di({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,o=this.owner,i=e.invertAxes,n=o.seriesValueAxis(this.options),s=o.categorySlot(o.categoryAxis,e.categoryIx,n),a=n.getSlot(this.value.target),l=i?a:s,c=i?s:a;if(r){var p=new $t(l.x1,c.y1,l.x2,c.y2);r.options.height=i?p.height():e.target.line.width,r.options.width=i?e.target.line.width:p.width(),r.reflow(p)}this.note&&this.note.reflow(t),this.box=t},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.options,r=O.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:Et(e.border.opacity,e.opacity)}),this.bodyVisual=r,P(r),this.visual.append(r)},e.prototype.createAnimation=function(){this.bodyVisual&&(this.animation=O.drawing.Animation.create(this.bodyVisual,this.options.animation))},e.prototype.createHighlight=function(t){return O.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}(ne);vi.prototype.tooltipAnchor=Ho.prototype.tooltipAnchor,It(vi,{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(vi.prototype,uo),E(vi.prototype,fo);var yi=vi,gi=function(t){function e(e,r){!function(t){for(var e=t.series,r=0;r<e.length;r++){var o=e[r],i=o.data;!i||b(i[0])||R(i[0])||(o.data=[i])}}(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,o=0;o<r;o++)e[o].reflow(t[o])},e.prototype.plotRange=function(t){var e=t.series,r=this.seriesValueAxis(e),o=this.categoryAxisCrossingValue(r);return[o,t.value.current||o]},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=this.options,a=this.children,l=t.valueFields,c=E({vertical:!s.invertAxes,overlay:i.overlay,categoryIx:r,invertAxes:s.invertAxes},i),p=t.fields.color||i.color;c=this.evalPointOptions(c,l,o,r,i,n),j(i.color)&&(p=c.color);var h=new yi(l,c);h.color=p;var u=a[r];return u||(u=new Wo({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,o=t.target,i=e.series.axis,n=this.valueAxisRanges[i];bt(r)&&!isNaN(r)&&bt(o&&!isNaN(o))&&((n=this.valueAxisRanges[i]=n||{min:u,max:f}).min=Math.min(n.min,r,o),n.max=Math.max(n.max,r,o))},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}(ho);gi.prototype._setAnimationOptions=qo.prototype._setAnimationOptions,It(gi,{animation:{type:$r}});var mi=gi,xi=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,o=t.border.color;if(e){var i=e.color||e.options.color;r=Et(r,i),o=Et(o,i)}var n=V(t.padding||{},"auto");return{backgroundColor:r,borderColor:o,font:t.font,color:t.color,opacity:t.opacity,borderWidth:B(t.border.width),paddingTop:B(n.top),paddingBottom:B(n.bottom),paddingLeft:B(n.left),paddingRight:B(n.right)}},e.prototype.show=function(t,e,r){t.format=e.format;var o=this.getStyle(e,r);t.style=o;var i=new O.Color(o.backgroundColor);bt(e.color)||i.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}(O.Class);It(xi,{border:{width:1},opacity:1});var bi=xi,_i=function(t){function e(e,r,o){t.call(this,e,o),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,o=e[r.stickyMode?"getCategory":"getValue"](t),i=o;r.format?i=this.formatService.auto(r.format,o):e.options.type===c&&(i=this.formatService.auto(e.options.labels.dateFormats[e.options.baseUnit],o)),this.show({point:t,anchor:this.getAnchor(),crosshair:this.crosshair,value:i,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,o=this.crosshair,i=this.options,n=i.position,l=i.padding,c=!o.axis.options.vertical,p=o.line.bbox();return c?(t=a,n===s?(e=v,r=p.bottomLeft().translate(0,l)):(e=s,r=p.topLeft().translate(0,-l))):(e=a,n===h?(t=d,r=p.topLeft().translate(-l,0)):(t=h,r=p.topRight().translate(l,0))),{point:r,align:{horizontal:t,vertical:e}}},e}(bi);It(_i,{padding:10});var wi=_i,Ci=function(t){function e(e,r,o){t.call(this,o),this.axis=r,this.stickyMode=r instanceof Je;var i=this.options.tooltip;i.visible&&(this.tooltip=new wi(e,this,E({},i,{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,o=e.options.vertical,i=this.getBox(),n=o?x:m,s=new O.geometry.Point(i.x1,i.y1);if(t=o?new O.geometry.Point(i.x2,i.y1):new O.geometry.Point(i.x1,i.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=i,this.line.moveTo(s).lineTo(t)},e.prototype.getBox=function(){for(var t,e=this.axis,r=e.pane.axes,o=r.length,i=e.options.vertical,n=e.lineBox().clone(),s=i?m:x,a=0;a<o;a++){var l=r[a];l.options.vertical!==i&&(t?t.wrap(l.lineBox()):t=l.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 O.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}(ne);It(Ci,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Oi=Ci,Pi=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 O.drawing.Group({zIndex:0}),this.shouldClip()){var t=(this.clipBox=this._clipBox()).toRect(),e=O.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 o=t[r].points||{},i=o.length,n=0;n<i;n++){var s=o[n];if(s&&!1!==s.visible&&s.overlapsBox&&s.overlapsBox(e))if(s.unclipElements)s.unclipElements();else{var a=s.label,l=s.note;a&&a.options.visible&&(a.alignToClipBox&&a.alignToClipBox(e),a.options.noclip=!0),l&&l.options.visible&&(l.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(ne);Pi.prototype.isStackRoot=!0;var Si=Pi,ki=function(t){function e(e){t.call(this,e),this.id="pane"+Ai++,this.createTitle(),this.content=new ne,this.chartContainer=new Si({},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=Ce.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;St(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=[],o=[],i=0;i<t.length;i++)for(var n=t[i],s=n.options.vertical,a=s?r:o,l=0;l<e.length;l++)if(0===a.length){var c=e[l];s!==c.options.vertical&&mt(a,n.createGridLines(c))}},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,o=0;o<e;o++){var i=t[o],n=i.options.vertical?x:m,s=i.lineBox();r[n+1]=s[n+1],r[n+2]=s[n+2]}if(0===r.x2)for(var a=this.parent.axes,l=a.length,c=0;c<l;c++){var p=a[c];if(!p.options.vertical){var h=p.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}(ae),Ai=1;ki.prototype.isStackRoot=!0,It(ki,{zIndex:-1,shrinkToFit:!0,title:{align:h},visible:!0});var Mi=ki;function ji(t,e){null!==e&&t.push(e)}function Ti(t,e,r){var o=e.visible;if(bt(o))return o;var i=t.pointVisibility;return i?i[r]:void 0}function Ei(t){for(var e=t.data,r=[],o=0,i=0,n=0;n<e.length;n++){var s=Wr.current.bindPoint(t,n),a=s.valueFields.value;A(a)&&(a=parseFloat(a)),k(a)?(s.visible=!1!==Ti(t,s.fields,n),s.value=Math.abs(a),r.push(s),s.visible&&(o+=s.value),0!==a&&i++):r.push(null)}return{total:o,points:r,count:i}}function Ri(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Bi(t,e){for(var r=[],o=[].concat(e),i=0;i<t.length;i++){var n=t[i];pt(n.type,o)&&r.push(n)}return r}function Ii(t,e,r){if(null===e)return e;var o="_date_"+t,i=e[o];return i||(i=qe(r,nt(t)(e)),e[o]=i),i}function Di(t,e){var r=t.type,o=e instanceof Date;return!r&&o||Ri(r,c)}function Li(t){return 1===t.length?t[0]:t}var Vi=/area/i;function zi(t,e){var r=Wr.current.bindPoint(t,null,e).valueFields;for(var o in r)if(M(r[o]))return!0}function Ni(t){var e,r,o=t.start,i=t.dir,n=t.min,s=t.max,a=t.getter,l=t.hasItem,c=t.series,p=o;do{l(p+=i)&&(e=zi(c,(r=a(p)).item))}while(n<=p&&p<=s&&!e);if(e)return r}function Hi(t,e,r,o,i){var n=e.min,s=e.max,a=n>0&&n<r,l=s+1<r;if(a||l){var c,p,h;if("interpolate"!==function(t){return t.missingValues?t.missingValues:Vi.test(t.type)||t.stack?Qr:"interpolate"}(t))a&&(c=o(n-1)),l&&(p=o(s+1));else a&&(c=zi(t,(h=o(n-1)).item)?h:Ni({start:n,dir:-1,min:0,max:r-1,getter:o,hasItem:i,series:t})),l&&(p=zi(t,(h=o(s+1)).item)?h:Ni({start:s,dir:1,min:0,max:r-1,getter:o,hasItem:i,series:t}));c&&(t._outOfRangeMinPoint=c),p&&(t._outOfRangeMaxPoint=p)}}var Ui=function(t){function e(e,r,o){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=o,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||[],o=Math.max(r.length,1),i=[],n=E({title:{color:t.color}},e),s=0;s<o;s++){var a=E({},n,r[s]);A(a.title)&&(a.title=E({text:a.title},n.title));var l=new Mi(a);l.paneIndex=s,i.push(l),this.append(l)}this.panes=i},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],o=0;o<r.axes.length;o++){var i=r.axes[o],n=this.crosshairOptions(i);if(n&&n.visible){var s=new Oi(this.chartService,i,n);this.crosshairs.push(s),r.content.append(s)}}},e.prototype.removeCrosshairs=function(t){for(var e=this.crosshairs,r=t.axes,o=e.length-1;o>=0;o--)for(var i=0;i<r.length;i++)if(e[o].axis===r[i]){e.splice(o,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,o=0;o<r.length;o++)if(r[o].options.name===t){e=r[o];break}return e||r[0]},e.prototype.findPointPane=function(t){for(var e,r=this.panes,o=0;o<r.length;o++)if(r[o].box.containsPoint(t)){e=r[o];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 o=this.axes[r];t!==o?e.push(o):o.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 o=this.charts[r];o!==t?e.push(o):o.destroy()}this.charts=e},e.prototype.addToLegend=function(t){for(var e=t.length,r=this.options.legend,o=r.labels||{},i=r.inactiveItems||{},n=i.labels||{},s=[],a=0;a<e;a++){var l=t[a],c=!1!==l.visible;if(!1!==l.visibleInLegend){var p=l.name,h=c?rt(o):rt(n)||rt(o);h&&(p=h({text:si(p)?p:"",series:l}));var u=l._defaults,f=l.color;j(f)&&u&&(f=u.color);var d=void 0,v=void 0;c?(d={},v=f):(d={color:n.color,font:n.font},v=i.markers.color),si(p)&&""!==p&&s.push({text:p,labels:d,markerColor:v,series:l,active:c})}}mt(r.items,s)},e.prototype.groupAxes=function(t){for(var e=[],r=[],o=0;o<t.length;o++)for(var i=t[o].axes,n=0;n<i.length;n++){var s=i[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 o=t[r],i=this.seriesPaneName(o);e[i]?e[i].push(o):e[i]=[o]}return e},e.prototype.filterVisibleSeries=function(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];!1!==o.visible&&e.push(o)}return e},e.prototype.reflow=function(t){var e=this.options.plotArea,r=this.panes,o=V(e.margin);this.box=t.clone().unpad(o),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 o=0;o<e.length;o++)this.removeCrosshairs(e[o]),e[o].empty();this.render(e),this.detachLabels(),this.reflowAxes(this.panes),this.reflowCharts(e),this.createCrosshairs(e);for(var i=0;i<e.length;i++)e[i].refresh()},e.prototype.axisCrossingValues=function(t,e){for(var r=t.options,o=[].concat(r.axisCrossingValues||r.axisCrossingValue),i=e.length-o.length,n=o[0]||0,s=0;s<i;s++)o.push(n);return o},e.prototype.alignAxisTo=function(t,e,r,o){var i=t.getSlot(r,r,!0),n=t.options.reverse?2:1,s=e.getSlot(o,o,!0),a=e.options.reverse?2:1,l=t.box.translate(s[m+a]-i[m+n],s[x+a]-i[x+n]);t.pane!==e.pane&&l.translate(0,t.pane.box.y1-e.pane.box.y1),t.reflow(l)},e.prototype.alignAxes=function(t,e){for(var r=t[0],o=e[0],i=this.axisCrossingValues(r,e),n=this.axisCrossingValues(o,t),a={},l={},c={},p={},u=0;u<e.length;u++){var f=e[u],y=f.pane,g=y.id,m=!1!==f.options.visible,x=Wi(t,y)||r,b=i;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]),l[g]&&f.reflow(f.box.alignTo(l[g].box,d).translate(f.options.margin,0)),m&&(l[g]=f)),0!==u&&o.pane===f.pane&&(f.alignTo(o),f.reflow(f.box)))}for(var _=0;_<t.length;_++){var w=t[_],C=w.pane,O=C.id,P=!1!==w.options.visible,S=Wi(e,C)||o,k=n;S!==o&&(k=this.axisCrossingValues(S,t)),this.alignAxisTo(w,S,i[_],k[_]),w.options._overlap||(jt(w.lineBox().y1)===jt(S.lineBox().y1)&&(w._mirrored||(w.options.labels.mirror=!w.options.labels.mirror,w._mirrored=!0),this.alignAxisTo(w,S,i[_],k[_]),c[O]&&w.reflow(w.box.alignTo(c[O].box,v).translate(0,-w.options.margin)),P&&(c[O]=w)),jt(w.lineBox().y2,3)===jt(S.lineBox().y2,3)&&(p[O]&&w.reflow(w.box.alignTo(p[O].box,s).translate(0,w.options.margin)),P&&(p[O]=w)),0!==_&&(w.alignTo(r),w.reflow(w.box)))}},e.prototype.shrinkAxisWidth=function(t){for(var e=this.groupAxes(t).any,r=Gi(e),o=0,i=0;i<t.length;i++){var n=t[i];n.axes.length>0&&(o=Math.max(o,r.width()-n.contentBox.width()))}if(0!==o)for(var s=0;s<e.length;s++){var a=e[s];a.options.vertical||a.reflow(a.box.shrink(o,0))}},e.prototype.shrinkAxisHeight=function(t){for(var e,r=0;r<t.length;r++){var o=t[r],i=o.axes,n=Math.max(0,Gi(i).height()-o.contentBox.height());if(0!==n){for(var s=0;s<i.length;s++){var a=i[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,o=0;o<t.length;o++){var i=t[o],n=i.axes,s=i.contentBox;if(n.length>0){var a=Gi(n),l=Math.max(s.y1-a.y1,s.y2-a.y2);r=Math.max(r,s.x1-a.x1);for(var c=0;c<n.length;c++){var p=n[c];p.reflow(p.box.translate(0,l))}}}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,o=Ki(r),i=0;i<o.length;i++){o[i].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 o=0;o<r;o++)e[o].reflow(t.contentBox)},e.prototype.reflowCharts=function(t){for(var e=this.charts,r=e.length,o=this.box,i=0;i<r;i++){var n=e[i].pane;n&&!pt(n,t)||e[i].reflow(o)}},e.prototype.reflowPanes=function(){for(var t=this.box,e=this.panes,r=e.length,o=t.height(),i=0,n=t.y1,s=0;s<r;s++){var a=e[s],l=a.options.height;if(a.options.width=t.width(),a.options.height){if(l.indexOf&&l.indexOf("%")){var c=parseInt(l,10)/100;a.options.height=c*t.height()}a.reflow(t.clone()),o-=a.options.height}else i++}for(var p=0;p<r;p++){var h=e[p];h.options.height||(h.options.height=o/i)}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,o=0;o<r;o++)for(var i=e[o],n=0;n<r;n++){var s=e[n];if(i.options.vertical!==s.options.vertical){var a=i.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(O.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,o=r.opacity,i=r.background,n=r.border;void 0===n&&(n={}),""!==(e=i)&&null!==e&&"none"!==e&&"transparent"!==e&&bt(e)||(i=g,o=0);var s=this._bgVisual=new O.drawing.MultiPath({fill:{color:i,opacity:o},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 o=0;o<e.length;o++){if("_navigator"!==e[o].pane.options.name){var i=e[o].categoryPoints[t];if(i&&i.length)for(var n=0;n<i.length;n++){var s=i[n];s&&bt(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=[],o=0;o<e.length;o++)for(var i=e[o].points,n=0;n<i.length;n++){var s=i[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 o=e[r].points,i=0;i<o.length;i++){var n=o[i];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 o=e[r];if(o.box.containsPoint(t))return o}},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,o=0;o<t.length;o++){var i=t[o],n=i.pane,s=Wi(e,n)||e[0],a=o+r,l=this.createLabelAxis(i,a,s);if(l){r++;var c=n.axes.indexOf(i)+r;n.appendAxisAt(l,c)}}},e.prototype.createLabelAxis=function(t,e,r){var o=t.options.labels,i=o.position,n="end"!==i&&"start"!==i,s=o.visible;if(n||!1===s)return null;var a=this.groupAxes(this.panes),l=r.options.vertical?a.x:a.y,c=this.axisCrossingValues(r,l),p="end"===i,h=r.range(),u=p?h.max:h.min;if(kt(c[e],h.min,h.max)-u==0)return null;c.splice(e+1,0,u),r.options.axisCrossingValues=c;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}(ne);function Fi(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Gi(t){for(var e,r=t.length,o=0;o<r;o++){var i=t[o],n=!1!==i.options.visible;if(n||Fi(i)){var s=n?i.contentBox():i.lineBox();e?e.wrap(s):e=s.clone()}}return e||new $t}function Wi(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(o&&o.pane===e)return o}}var Ki=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};It(Ui,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Xi=Ui,Yi={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function qi(t,e,r){var o=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),bt(o[i])||(o[i]={}),o=o[i];i=n.shift()}o[i]=r}var Zi=function(t){function e(e,r,o){t.call(this);var i=r.canonicalFields(e),n=r.valueFields(e),s=r.sourceFields(e,i),a=this._seriesFields=[],l=o.query(e.type),c=e.aggregate||l;this._series=e,this._binder=r;for(var p=0;p<i.length;p++){var h=i[p],u=void 0;if(R(c))u=c[h];else{if(0!==p&&!pt(h,n))break;u=c}u&&a.push({canonicalName:h,name:s[p],transform:j(u)?u:Ur[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,o=this._seriesFields,i=this._bindPoints(t||[]),n=i.dataItems[0],s={};if(n&&!k(n)&&!b(n)){var a=function(){};a.prototype=n,s=new a}for(var l=0;l<o.length;l++){var c=o[l],p=this._bindField(i.values,c.canonicalName),h=c.transform(p,r,i.dataItems,e);if(!(null===h||!R(h)||bt(h.length)||h instanceof Date)){s=h;break}bt(h)&&qi(c.name,s,h)}return s},e.prototype._bindPoints=function(t){for(var e=this._binder,r=this._series,o=[],i=[],n=0;n<t.length;n++){var s=t[n];o.push(e.bindPoint(r,s)),i.push(r.data[s])}return{values:o,dataItems:i}},e.prototype._bindField=function(t,e){for(var r=[],o=t.length,i=0;i<o;i++){var n=t[i],s=n.valueFields,a=void 0;a=bt(s[e])?s[e]:n.fields[e],r.push(a)}return r},e}(O.Class),Qi=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}(O.Class);Qi.current=new Qi;var $i=Qi,Ji=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),o=this.pointData();return e=r?r(o):this.formatValue(t.format),new Vo(e,E({vertical:this.options.vertical},t),o)},e.prototype.reflow=function(t){this.render();var e=this.labelFrom,r=this.labelTo,o=this.value;this.box=t,e&&(e.options.aboveAxis=o.from>o.to,e.reflow(t)),r&&(r.options.aboveAxis=o.to>o.from,r.reflow(t)),this.note&&this.note.reflow(t)},e}(Ho);Ji.prototype.defaults=E({},Ji.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});var tn=Ji,en=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 tn},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,o=t.from,i=t.to,n=this.valueAxisRanges[r];null!==t&&k(o)&&k(i)&&((n=this.valueAxisRanges[r]=n||{min:u,max:f}).min=Math.min(n.min,o),n.max=Math.max(n.max,o),n.min=Math.min(n.min,i),n.max=Math.max(n.max,i))},e.prototype.aboveAxis=function(t){var e=t.value;return e.from<e.to},e}(qo);en.prototype.plotLimits=ho.prototype.plotLimits;var rn=en,on=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}(yo),nn=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=Et(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,o=this.value,i=this.fromPoint=new on(o,E({},this.options,{labels:r.from,markers:e.from})),n=this.toPoint=new on(o,E({},this.options,{labels:r.to,markers:e.to}));this.copyFields(i),this.copyFields(n),this.append(i),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 O.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,o,i=this.box,n=i.center();return this.options.vertical?(e=n.x,r=i.y1-5,o=s):(e=i.x2+5,r=n.y,o=a),{point:new Zt(e,r),align:{horizontal:"left",vertical:o}}}},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,o,i=this.options,n=i.labels,s=i.vertical;"auto"===n.position&&(s?e.y1<=t.y1?(o="above",r="below"):(o="below",r="above"):e.x1<=t.x1?(o=h,r=d):(o=d,r=h),n.from&&n.from.position||(this.fromPoint.options.labels.position=r),n.to&&n.to.position||(this.toPoint.options.labels.position=o))},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}(ne);E(nn.prototype,uo),E(nn.prototype,fo),nn.prototype.defaults={markers:{visible:!1,background:g,size:8,type:l,border:{width:2},opacity:1},labels:{visible:!1,margin:V(3),padding:V(4),animation:{type:"fadeIn",delay:600},position:"auto"},notes:{label:{}},highlight:{markers:{border:{color:g,width:2}},zIndex:100},tooltip:{format:"{0} - {1}"}};var sn=nn,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.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 O.drawing.Path(t),r=new O.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}(To),ln=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 Br).process(this.toGeometryPoints(t))},e}(an),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.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}(an);E(cn.prototype,bo);var pn=cn,hn=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 sn},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,s=t.valueFields;if(!si(s.from)&&!si(s.to)){if(this.seriesMissingValues(i)!==Qr)return null;s={from:0,to:0}}var a=this.pointOptions(i,n);a=this.evalPointOptions(a,s,o,r,i,n);var l=t.fields.color||i.color;j(i.color)&&(l=a.color);var c=new sn(s,a);return c.color=l,this.append(c),c},e.prototype.createSegment=function(t,e,r){var o=(e.line||{}).style;return new("smooth"===o?ln:"step"===o?pn:an)(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),o=t.getSlot(e[1],e[1],!this.options.clip);if(r&&o)return{from:r,to:o}},e.prototype.pointSlot=function(t,e){var r,o,i=e.from,n=e.to;return this.options.invertAxes?(r=new $t(i.x1,t.y1,i.x2,t.y2),o=new $t(n.x1,t.y1,n.x2,t.y2)):(r=new $t(t.x1,i.y1,t.x2,i.y2),o=new $t(t.x1,n.y1,t.x2,n.y2)),{from:r,to:o}},e.prototype.addValue=function(e,r){var o=e.valueFields;k(o.from)||(o.from=o.to),k(o.to)||(o.to=o.from),t.prototype.addValue.call(this,e,r)},e.prototype.updateRange=function(t,e){if(null!==t&&k(t.from)&&k(t.to)){var r=e.series.axis,o=this.valueAxisRanges[r]=this.valueAxisRanges[r]||{min:u,max:f},i=t.from,n=t.to;o.min=Math.min(o.min,i,n),o.max=Math.max(o.max,i,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 o=t[r];o&&(e.push((o.fromPoint||{}).marker),e.push((o.toPoint||{}).marker))}return e.concat(this._segments)},e}(ho);E(hn.prototype,Oo,Ao);var un=hn,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.reflow=function(t){var e=this.options,r=this.value,o=this.owner.seriesValueAxis(e),i=[],n=[],s=[],a=o.getSlot(r.low,r.high),l=o.getSlot(r.open,r.open),c=o.getSlot(r.close,r.close);l.x1=c.x1=a.x1=t.x1,l.x2=c.x2=a.x2=t.x2;var p=a.center().x;i.push([l.x1,l.y1]),i.push([p,l.y1]),n.push([p,c.y1]),n.push([c.x2,c.y1]),s.push([p,a.y1]),s.push([p,a.y2]),this.lines=[i,n,s],this.box=a.clone().wrap(l.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}(Qo),dn=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 fn},e}(ti),vn=function(t){function e(e,r,o){t.call(this),this.from=e,this.to=r,this.series=o}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,o=[];if(t.isVertical){var i=t.aboveAxis?e.y1:e.y2;o.push([e.x1,i],[r.x2,i])}else{var n=t.aboveAxis?e.x2:e.x1;o.push([n,e.y1],[n,r.y2])}return o},e.prototype.createVisual=function(){t.prototype.createVisual.call(this);var e=this.series.line||{},r=O.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}(ne);It(vn,{animation:{type:"fadeIn",delay:600}});var yn=vn,gn=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=co(e),o=!this.options.invertAxes,i=0;i<e.length;i++)for(var n=e[i],s=0,a=0,l=0;l<r;l++){var c=Wr.current.bindPoint(n,l),p=c.valueFields.value,h=c.fields.summary,u=s,f=void 0;h?"total"===h.toLowerCase()?(c.valueFields.value=s,u=0,f=s):(c.valueFields.value=a,f=u-a,a=0):k(p)&&(a+=p,f=s+=p),t(c,{category:this.categoryAxis.categoryAt(l),categoryIx:l,series:n,seriesIx:i,total:s,runningTotal:a,from:u,to:f,isVertical:o})}},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=[],o=0;o<t.length;o++){var i=t[o],n=e[o];if(n)for(var s=void 0,a=0;a<n.length;a++){var l=n[a];if(l&&s){var c=new yn(s,l,i);r.push(c),this.append(c)}s=l}}},e}(qo),mn=["area","verticalArea","rangeArea","verticalRangeArea"],xn=[to,ro].concat(mn),bn=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 Do,t.length>0){this.invertAxes=pt(t[0].type,[$r,"bullet",ro,"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 Je?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 o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);if(n)for(var s=this.groupSeriesByCategoryAxis(n),a=0;a<s.length;a++)this.createChartGroup(s[a],o)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Bi(t,["area","verticalArea"]),e),this.createRangeAreaChart(Bi(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Bi(t,[Jr,$r]),e),this.createRangeBarChart(Bi(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Bi(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Bi(t,"candlestick"),e),this.createBoxPlotChart(Bi(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Bi(t,"ohlc"),e),this.createWaterfallChart(Bi(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Bi(t,[to,ro]),e)},e.prototype.aggregateCategories=function(t){var e=this.srcSeries||this.series,r=[];this._currentPointsCache={},this._seriesPointsCache=this._seriesPointsCache||{};for(var o=0;o<e.length;o++){var i=e[o],n=this.seriesCategoryAxis(i),s=this.findPane(n.options.pane);i=(Ri(n.options.type,c)||i.categoryField)&&pt(s,t)?this.aggregateSeries(i,n):this.filterSeries(i,n),r.push(i)}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),!k(e.options.min)&&!k(e.options.max))return t;var o=e.currentRangeIndices(),i=pt(t.type,xn),n=E({},t);return n.data=(n.data||[]).slice(o.min,o.max+1),i&&Hi(n,o,r,(function(r){return{item:t.data[r],category:e.categoryAt(r,!0),categoryIx:r-o.min}}),(function(e){return bt(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 o=e.options,i=o.srcCategories,n=Ri(o.type,c),s=t.data,a=n?Ii:Fr,l=[];n||e.mapCategories();for(var p=0;p<s.length;p++){var h=void 0;if(h=t.categoryField?a(t.categoryField,s[p],this.chartService.intl):i[p],bt(h)&&null!==h){var u=e.totalIndex(h);l[u]=l[u]||{items:[],category:h},l[u].items.push(p)}}return this._currentPointsCache[r]=l,l},e.prototype.aggregateSeries=function(t,e){if(!t.data.length)return t;for(var r=this.seriesSourcePoints(t,e),o=E({},t),i=new Zi(E({},t),Wr.current,$i.current),n=o.data=[],s=e.options.dataItems||[],a=e.currentRangeIndices(),l=function(t){var o=t-a.min,n=r[t];if(n||(n=r[t]={}),n.categoryIx=o,!n.item){var s=e.categoryAt(t,!0);n.category=s,n.item=i.aggregatePoints(n.items,s)}return n},c=a.min;c<=a.max;c++){var p=l(c);n[p.categoryIx]=p.item,p.items&&p.items.length&&(s[p.categoryIx]=p.item)}return pt(o.type,xn)&&Hi(o,a,e.totalCount(),l,(function(t){return r[t]})),e.options.dataItems=s,o},e.prototype.appendChart=function(e,r){var o=e.options.series,i=this.seriesCategoryAxis(o[0]),n=i.options.categories,s=Math.max(0,co(o)-n.length);if(s>0)for(n=i.options.categories=i.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,o=st([].concat(e.valueAxis),(function(t){return t.name===r}))[0],i=((e.panes||[{}])[0]||{}).name||"default";return(o||{}).pane||i},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={},o=0;o<t.length;o++){var i=t[o].categoryAxis||"$$default$$";r.hasOwnProperty(i)||(r[i]=!0,e.push(i))}for(var n=[],s=0;s<e.length;s++){var a=wn(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],o=new qo(this,Object.assign({series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createRangeBarChart=function(t,e){if(0!==t.length){var r=t[0],o=new rn(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(o,e)}},e.prototype.createBulletChart=function(t,e){if(0!==t.length){var r=t[0],o=new mi(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=t[0],o=new jo(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=t[0],o=new Io(this,Object.assign({invertAxes:this.invertAxes,series:t},this.stackableChartOptions(r,e)));this.appendChart(o,e)}},e.prototype.createRangeAreaChart=function(t,e){if(0!==t.length){var r=new un(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],o=new dn(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createCandlestickChart=function(t,e){if(0!==t.length){var r=t[0],o=new ti(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createBoxPlotChart=function(t,e){if(0!==t.length){var r=t[0],o=new ii(this,{invertAxes:this.invertAxes,gap:r.gap,series:t,spacing:r.spacing,clip:e.options.clip});this.appendChart(o,e)}},e.prototype.createWaterfallChart=function(t,e){if(0!==t.length){var r=t[0],o=new gn(this,{series:t,invertAxes:this.invertAxes,gap:r.gap,spacing:r.spacing});this.appendChart(o,e)}},e.prototype.axisRequiresRounding=function(t,e){for(var r=Bi(this.series,oo),o=0;o<this.series.length;o++){var i=this.series[o];if(pt(i.type,mn)){var n=i.line;n&&"step"===n.style&&r.push(i)}}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,o=0;o<r.length;o++){var i=r[o].categoryAxis||"";if((i===t||!i&&0===e)&&r[o].categoryField)return!0}},e.prototype.createCategoryAxesLabels=function(){for(var t=this.axes,e=0;e<t.length;e++)t[e]instanceof Je&&t[e].createLabels()},e.prototype.createCategoryAxes=function(t){for(var e=this.invertAxes,r=[].concat(this.options.categoryAxis),o=[],i=0;i<r.length;i++){var n=r[i];if(pt(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),bt(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(s,i)&&(n.justified=!1);var l=void 0;if(l=Di(n,a[0])?new lr(n,this.chartService):new Je(n,this.chartService),r[i].categories=l.options.srcCategories,s){if(this.namedCategoryAxes[s])throw new Error("Category axis with name "+s+" is already defined");this.namedCategoryAxes[s]=l}l.axisIndex=i,o.push(l),this.appendAxis(l)}}var c=this.categoryAxis||o[0];this.categoryAxis=c,e?this.axisY=c:this.axisX=c},e.prototype.isJustified=function(){for(var t=this.series,e=0;e<t.length;e++){if(!pt(t[e].type,mn))return!1}return!0},e.prototype.createValueAxes=function(t){var e=this.valueAxisRangeTracker,r=e.query(),o=[].concat(this.options.valueAxis),i=this.invertAxes,n={vertical:!i,reverse:i&&this.chartService.rtl},s=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var a=0;a<o.length;a++){var l=o[a];if(pt(this.findPane(l.pane),t)){var c=l.name,p=Ri(l.type,"log")?{min:.1,max:1}:{min:0,max:1},h=e.query(c)||r||p;0===a&&h&&r&&(h.min=Math.min(h.min,r.min),h.max=Math.max(h.max,r.max));var u=new(Ri(l.type,"log")?_r:vr)(h.min,h.max,E({},n,l),this.chartService);if(c){if(this.namedValueAxes[c])throw new Error("Value axis with name "+c+" is already defined");this.namedValueAxes[c]=u}u.axisIndex=a,s.push(u),this.appendAxis(u)}}var f=this.valueAxis||s[0];this.valueAxis=f,i?this.axisX=f:this.axisY=f},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Zt(o.x,o.y),n=this.pointPane(i),s=[],a=[];if(n){for(var l=n.axes,c=0;c<l.length;c++){var p=l[c];p.getValue?ji(a,p.getValue(i)):ji(s,p.getCategory(i))}0===s.length&&ji(s,this.categoryAxis.getCategory(i)),s.length>0&&a.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,category:Li(s),value:Li(a)})}},e.prototype.pointPane=function(t){for(var e=this.panes,r=0;r<e.length;r++){var o=e[r];if(o.contentBox.containsPoint(t))return o}},e.prototype.updateAxisOptions=function(t,e){_n(this.options,t,e),_n(this.originalOptions,t,e)},e}(Xi);function _n(t,e,r){E([].concat(e instanceof Je?t.categoryAxis:t.valueAxis)[e.axisIndex],r)}function wn(t,e,r){return st(t,(function(t){return 0===r&&!t.categoryAxis||t.categoryAxis===e}))}It(bn,{categoryAxis:{},valueAxis:{}}),E(bn.prototype,Yi);var Cn=bn;function On(){this._defaultPrevented=!0}var Pn=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 o=0;o<r.length;o++){var i=r[o];i&&i.toggleHighlight&&i.hasHighlight()&&(this.togglePointHighlight(i,!0,e),this._points.push(i))}},e.prototype.togglePointHighlight=function(t,e,r){var o=(t.options.highlight||{}).toggle;if(o){var i={category:t.category,series:t.series,dataItem:t.dataItem,value:t.value,stackValue:t.stackValue,preventDefault:On,visual:t.highlightVisual(),show:e};o(i),i._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}(O.Class);function Sn(t,e){var r=(e||"").toLowerCase(),o=t.event;return"none"===r&&!(o.ctrlKey||o.shiftKey||o.altKey)||o[r+"Key"]}function kn(t){for(var e={},r=0;r<t.length;r++){var o=t[r];o.axis.options.name&&(e[o.axis.options.name]={min:o.range.min,max:o.range.max})}return e}var An=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=Sn(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,kn(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 o=e[r];t.updateAxisOptions(o.axis,o.range)}t.redraw(t.panes)}},e.prototype.destroy=function(){delete this.plotArea},e.prototype._panAxes=function(t,e){var r=this.plotArea,o=-t[e].delta,i=(this.options.lock||"").toLowerCase(),n=[];if(0!==o&&(i||"").toLowerCase()!==e)for(var s=r.axes,a=0;a<s.length;a++){var l=s[a];if(e===m&&!l.options.vertical||e===x&&l.options.vertical){var c=l.pan(o);c&&(c.limitRange=!0,n.push({axis:l,range:c}))}}return n},e}(O.Class);An.prototype.options={key:"none",lock:"none"};var Mn=An,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){L(this._marquee,t)},e.prototype.start=function(t){if(Sn(t,this.options.key)){var e=this.chart,r=e._eventCoordinates(t),o=this._zoomPane=e._plotArea.paneByPoint(r),i=o?o.chartsBox().clone():null;if(o&&i){var n=this._elementOffset();return i.translate(n.left,n.top),this._zoomPaneClipBox=i,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=L(t,["paddingLeft","paddingTop"]),r=e.paddingLeft,o=e.paddingTop,i=wt(t);return{left:r+i.left,top:o+i.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 o={x:r.left,y:r.top},i={x:r.left+r.width,y:r.top+r.height};return this._updateAxisRanges(o,i),this.removeElement(),delete this._zoomPane,kn(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 o=t[r];e.updateAxisOptions(o.axis,o.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(),o=[],i=this._zoomPane.axes,n=0;n<i.length;n++){var s=i[n],a=s.options.vertical;if((r!==m||a)&&(r!==x||!a)&&bt(s.axisIndex)){var l=s.pointsRange(t,e);l&&o.push({axis:s,range:l})}}this.axisRanges=o},e.prototype._selectionPosition=function(t){var e=this._zoomPaneClipBox,r={x:t.x.startLocation,y:t.y.startLocation},o=t.x.location,i=t.y.location,n=(this.options.lock||"").toLowerCase(),s=Math.min(r.x,o),a=Math.min(r.y,i),l=Math.abs(r.x-o),c=Math.abs(r.y-i);return n===m&&(s=e.x1,l=e.width()),n===x&&(a=e.y1,c=e.height()),o>e.x2&&(l=e.x2-r.x),o<e.x1&&(l=r.x-e.x1),i>e.y2&&(c=e.y2-r.y),i<e.y1&&(c=r.y-e.y1),{left:Math.max(s,e.x1),top:Math.max(a,e.y1),width:l,height:c}},e}(O.Class);jn.prototype.options={key:"shift",lock:"none"};var Tn=jn,En=function(t){function e(e,r){t.call(this),this.chart=e,this.options=E({rate:.3},this.options,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.updateRanges=function(t,e){for(var r=(this.options.lock||"").toLowerCase(),o=[],i=this.chart._plotArea.axes,n=0;n<i.length;n++){var s=i[n],a=s.options.vertical;if((r!==m||a)&&(r!==x||!a)&&s.zoomRange){var l=kt(this.options.rate,.01,.9),c=s.zoomRange(-t*l,e);c&&o.push({axis:s,range:c})}}return this.axisRanges=o,kn(o)},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 o=t[r];e.updateAxisOptions(o.axis,o.range)}e.redraw(e.panes)}},e.prototype.destroy=function(){delete this.chart},e}(O.Class),Rn=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 O.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 o=0;o<t.length;o++){var i=t[o];i.reflow(new $t),i.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?xe(e):new $t},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(ne),Bn=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 ve({vertical:!1,wrap:!1,align:a,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new ce(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 _e(t.text,e))},e.prototype.renderComplete=function(){t.prototype.renderComplete.call(this);var e=this.options.cursor||{},r=this._itemOverlay=O.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,o=r.visual;o?(this.visual=o({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}(ae),In=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,e),this.chartService=r,pt(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,o=e,i=a;"custom"===e?o=h:pt(e,[v,s])?(o="start"===r?h:"end"===r?d:a,i=e):r&&("start"===r?i=v:"end"===r&&(i=s)),this.container=new ae({margin:t.margin,padding:t.padding,background:t.background,border:t.border,vAlign:i,align:o,zIndex:t.zIndex,shrinkToFit:!0}),this.hasTitle()?this.itemsContainer=new ae({vAlign:i,align:o,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(),o=new Rn({vertical:r,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,s=0;s<n;s++){var a=i[s];o.append(new Bn(E({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,a)))}o.render(),this.itemsContainer.append(o)},e.prototype.isVertical=function(){var t=this.options,e=t.orientation,r=t.position;return"custom"===r&&"horizontal"!==e||(bt(e)?"horizontal"!==e:pt(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,o=e.position,i=e.width,n=e.height,a=o===v||o===s?m:x,l=this.isVertical(),c=t.clone(),p=t.clone();o!==h&&o!==d||(p.y1=c.y1=0),l&&n?(p.y2=p.y1+n,p.align(c,x,r.options.vAlign)):!l&&i&&(p.x2=p.x1+i,p.align(c,m,r.options.align)),r.reflow(p);var u=(p=r.box).clone();(e.offsetX||e.offsetY)&&(p.translate(e.offsetX,e.offsetY),r.reflow(p)),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,o=e.offsetX,i=e.offsetY,n=e.width,s=e.height,a=this.isVertical(),l=t.clone();a&&s?l.y2=l.y1+s:!a&&n&&(l.x2=l.x1+n),r.reflow(l),l=r.box,r.reflow(new $t(o,i,o+l.width(),i+l.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(bt(e)&&e.visible){var o=rt(e);o?r=o({text:r}):e.format&&(r=this.chartService.format.auto(e.format,r))}this.title=new _e(r,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new ve({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}(ne);It(In,{position:d,items:[],offsetX:0,offsetY:0,margin:V(5),padding:V(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 Dn=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 o,i=this._registry,n=i[0],s=0;s<i.length;s++){var a=i[s];if((o=Bi(t,a.seriesTypes)).length>0){n=a;break}}return new n.type(o,e,r)},e}(O.Class);Ln.current=new Ln;var Vn=Ln;function zn(t){var e=document.createElement("div");return t&&(e.className=t),e}function Nn(t){for(var e=t;e&&!at(e,"k-handle");)e=e.parentNode;return e}var Hn=function(t){function e(e,r,o,i){t.call(this);var n=e.element;this.options=E({},this.options,o),this.chart=e,this.observer=i,this.chartElement=n,this.categoryAxis=r,this._dateAxis=this.categoryAxis instanceof lr,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");L(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 o=this.leftHandle=zn("k-handle k-left-handle"),i=this.rightHandle=zn("k-handle k-right-handle");o.appendChild(zn()),i.appendChild(zn()),r.appendChild(o),r.appendChild(i),this.chartElement.appendChild(e);var n=L(r,["borderLeftWidth","borderRightWidth","height"]),s=L(o,"height").height,a=L(i,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},L(o,{top:(n.height-s)/2}),L(i,{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),xt(this.wrapper,((t={})[io]=this._mousewheelHandler,t))),this._domEvents=$.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:qe(r,t.min),max:qe(r,t.max),from:qe(r,t.from),to:qe(r,t.to)});var o=L(this.chartElement,["paddingLeft","paddingTop"]),i=o.paddingLeft,n=o.paddingTop;this.options=E({},{width:e.width(),height:e.height()+.1,padding:{left:i,top:n},offset:{left:e.x1+i,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&&(Tt(this.wrapper,((t={})[io]=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:Nn(r)||r,startLocation:t.x?t.x.location:0,range:{from:this._index(e.from),to:this._index(e.to)}};var o=this._rangeEventArgs({from:this._index(e.from),to:this._index(e.to)});this.trigger("selectStart",o)&&(this._state=null)}},e.prototype._press=function(t){var e;(e=this._state?this._state.moveTarget:Nn(Ot(t)))&&_(e,"k-handle-active")},e.prototype._move=function(t){if(this._state){var e=this._state,r=this.options,o=this.categoryAxis,i=e.range,n=e.moveTarget,s=o.options.reverse,a=this._index(r.from),l=this._index(r.to),c=this._index(r.min),p=this._index(r.max),h=e.startLocation-t.x.location,u=i.from,f=i.to,d=i.to-i.from,v=L(this.wrapper,"width").width/(o.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")?(i.from=Math.min(Math.max(c,a-y),p-d),i.to=Math.min(i.from+d,p)):g&&!s||m&&s?(i.from=Math.min(Math.max(c,a-y),p-1),i.to=Math.max(i.from+1,i.to)):(g&&s||m&&!s)&&(i.to=Math.min(Math.max(c+1,l-y),p),i.from=Math.min(i.to-1,i.from)),i.from===u&&i.to===f||(this.move(i.from,i.to),this.trigger("select",this._rangeEventArgs(i)))}}},e.prototype._end=function(){if(this._state){var t=this._state.moveTarget;t&&C(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,o=this.chart._eventCoordinates(t),i=r.pointCategoryIndex(new Zt(o.x,r.box.y1)),n=this._index(e.from),s=this._index(e.to),a=this._index(e.min),l=this._index(e.max),c=s-n,p=n+c/2,h={},u=3===t.event.which,f=Math.round(p-i);this._state||u||(this.chart._unsetActivePoint(),r.options.justified||f--,h.from=Math.min(Math.max(a,n-f),l-c),h.to=Math.min(h.from+c,l),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=yt(t);if(this._start({target:this.selection}),this._state){var o=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(o.from),to:this._value(o.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,o=this.options,i=this.categoryAxis,n=r.range,s=e._toModelCoordinates(t.touches[0].x.location).x,a=e._toModelCoordinates(t.touches[1].x.location).x,l=Math.min(s,a),c=Math.max(s,a);t.preventDefault(),n.from=i.pointCategoryIndex(new Zt(l))||o.min,n.to=i.pointCategoryIndex(new Zt(c))||o.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,o=this.categoryAxis.options.reverse,i=r.offset,n=r.padding,s=r.selection.border,a=o?e:t,l=o?t:e,c="x"+(o?2:1),p=this._slot(a),h=jt(p[c]-i.left+n.left);L(this.leftMask,{width:h}),L(this.selection,{left:h}),p=this._slot(l);var u=jt(r.width-(p[c]-i.left+n.left));L(this.rightMask,{width:u});var f=r.width-u;f!==r.width&&(f+=s.right),L(this.rightMask,{left:f}),L(this.selection,{width:Math.max(r.width-(h+u)-s.right,0)})},e.prototype.set=function(t,e){var r=this.options,o=this._index(r.min),i=this._index(r.max),n=kt(this._index(t),o,i),s=kt(this._index(e),n+1,i);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),o=this._index(e.max),i=e.mousewheel.zoom,n=this._index(e.from),s=this._index(e.to),a={from:n,to:s},l=E({},a);if(this._state&&(a=this._state.range),i!==d&&(a.from=kt(kt(n-t,0,s-1),r,o)),i!==h&&(a.to=kt(kt(s+t,a.from+1,o),r,o)),a.from!==l.from||a.to!==l.to)return this.set(a.from,a.to),!0},e.prototype.zoom=function(t,e){var r=this.options,o=this._index(r.min),i=this._index(r.max),n=this._index(r.from),s=this._index(r.to),a={from:n,to:s},l=E({},a),c=this.categoryAxis.options.reverse,p=m+(c?"2":"1"),h=this.categoryAxis.lineBox(),u=Math.abs(h[p]-e.x),f=h.width(),d=jt(u/f,2),v=jt(d*t),y=jt((1-d)*t);if(this._state&&(a=this._state.range),a.from=kt(kt(n-v,0,s-1),o,i),a.to=kt(kt(s+y,a.from+1,i),o,i),a.from!==l.from||a.to!==l.to)return this.set(a.from,a.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(O.Class);It(Hn,{visible:!0,mousewheel:{zoom:"both"},min:f,max:u});var Un=Hn,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.show=function(e){if(e&&e.tooltipAnchor&&(!this._current||this._current!==e)){var r=E({},this.options,e.options.tooltip),o=e.tooltipAnchor();o?(this._current=e,t.prototype.show.call(this,{point:e,anchor:o},r,e)):this.hide()}},e.prototype.hide=function(){delete this._current,t.prototype.hide.call(this)},e}(bi),Gn=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 o=r[0],i=this.plotArea.categoryAxis.getSlot(o.categoryIx),n=e?this._slotAnchor(e,i):this._defaultAnchor(o,i);this.show({anchor:n,shared:!0,points:t,category:o.category,categoryText:this.formatService.auto(this.options.categoryFormat,o.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(),o=this.plotArea.categoryAxis.options.vertical,i=r.center(),n=e.center();return{point:o?new Zt(i.x,n.y):new Zt(n.x,i.y),align:{horizontal:"center",vertical:"center"}}},e}(bi);It(Gn,{categoryFormat:"{0:d}"});var Wn=Gn,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.element,e=this.options;if(t.bbox()){this.origin=e.origin;var r=e.vertical?x:m,o=this.fromScale=new O.geometry.Point(1,1);o[r]=Zr,t.transform(O.geometry.transform().scale(o.x,o.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(O.geometry.transform().scale(e,r,this.origin))},e.prototype.abort=function(){t.prototype.abort.call(this),this.element.transform(null)},e}(O.drawing.Animation);It(Kn,{duration:600}),O.drawing.AnimationFactory.current.register($r,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(){var t=this.center=this.element.bbox().center();this.element.transform(O.geometry.transform().scale(Zr,Zr,t))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.center))},e}(O.drawing.Animation);It(Xn,{easing:"easeOutElastic"}),O.drawing.AnimationFactory.current.register("bubble",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.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(O.drawing.Animation);It(Yn,{duration:200,easing:"linear"}),O.drawing.AnimationFactory.current.register("fadeIn",Yn);var 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.setup=function(){this.element.transform(O.geometry.transform().scale(Zr,Zr,this.options.center))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.options.center))},e}(O.drawing.Animation);It(qn,{easing:"easeOutElastic",duration:600}),O.drawing.AnimationFactory.current.register(eo,qn);var Zn=qn,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.render=function(){t.prototype.render.call(this),this.renderSegments()},e.prototype.createSegment=function(t,e,r){return new("smooth"===e.style?Co:mo)(t,e,r)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===Qr){var r={x:t.x,y:t.y};return si(r.x)||(r.x=0),si(r.y)||(r.y=0),r}},e}(li);E(Qn.prototype,Oo);var $n=Qn,Jn=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 Do,this.yAxisRangeTracker=new Do},e.prototype.render=function(t){void 0===t&&(t=this.panes);for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);n&&(this.createScatterChart(Bi(n,"scatter"),o),this.createScatterLineChart(Bi(n,"scatterLine"),o),this.createBubbleChart(Bi(n,"bubble"),o))}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,o=st([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new li(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 ui(this,{series:t,clip:e.options.clip}),e)},e.prototype.createXYAxis=function(t,e,r){for(var o,i=t.name,n=e?this.namedYAxes:this.namedXAxes,s=e?this.yAxisRangeTracker:this.xAxisRangeTracker,a=E({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=Ri(a.type,"log"),p=s.query(),h=l?{min:.1,max:1}:{min:0,max:1},u=s.query(i)||p||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=Wr.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===r&&p&&(u.min=Math.min(u.min,p.min),u.max=Math.max(u.max,p.max));for(var x=0;x<f.length;x++)if(f[x]instanceof Date){o=!0;break}var b=new(Ri(a.type,c)||!a.type&&o?gr:l?_r:vr)(u.min,u.max,a,this.chartService);if(b.axisIndex=r,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=b}return this.appendAxis(b),b},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),o=[],i=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){pt(this.findPane(r[s].pane),t)&&o.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<i.length;a++){pt(this.findPane(i[a].pane),t)&&n.push(this.createXYAxis(i[a],!0,a))}this.axisX=this.axisX||o[0],this.axisY=this.axisY||n[0]},e.prototype._dispatchEvent=function(t,e,r){for(var o=t._eventCoordinates(e),i=new Zt(o.x,o.y),n=this.axes,s=n.length,a=[],l=[],c=0;c<s;c++){var p=n[c],h=p.options.vertical?l:a,u=p.getValue(i);null!==u&&h.push(u)}a.length>0&&l.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,x:Li(a),y:Li(l)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,o=this.groupAxes(this.panes),i=(r?o.y:o.x).indexOf(t);ts(this.options,i,r,e),ts(this.originalOptions,i,r,e)},e}(Xi);function ts(t,e,r,o){E([].concat(r?t.yAxis:t.xAxis)[e],o)}It(Jn,{xAxis:{},yAxis:{}}),E(Jn.prototype,Yi);var es=Jn,rs=function(t){function e(e,r,o){t.call(this,o),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 o=rt(t),i=this.pointData();if(o?r=o(i):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=Ut(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 _e(r,E({},t,{align:a,vAlign:"",animation:{type:"fadeIn",delay:this.animationDelay}}),i),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(),o=t.distance,i=r.middle();if(e){var n,s=e.box.height(),l=e.box.width();if(t.position===a)r.radius=Math.abs((r.radius-s)/2)+s,n=r.point(i),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(i),e.reflow(new $t(n.x,n.y-s/2,n.x,n.y));else{var c;(n=r.clone().expand(o).point(i)).x>=r.center.x?(c=n.x+l,e.orientation=d):(c=n.x-l,e.orientation=h),e.reflow(new $t(c,n.y-s,n.x,n.y))}}},e.prototype.createVisual=function(){var e=this,r=this.sector,o=this.options;if(t.prototype.createVisual.call(this),this.value)if(o.visual){var i=(r.startAngle+180)%360,n=o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,center:new O.geometry.Point(r.center.x,r.center.y),radius:r.radius,innerRadius:r.innerRadius,startAngle:i,endAngle:i+r.angle,options:o,sender:this.getSender(),createVisual:function(){var t=new O.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,o=r.border||{},i=o.width>0?{stroke:{color:o.color,width:o.width,opacity:o.opacity,dashType:o.dashType}}:{},n=r.color,s={color:n,opacity:r.opacity},a=this.createSegment(e,E({fill:s,stroke:{opacity:r.opacity},zIndex:r.zIndex},i));t.append(a),zo(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 O.drawing.Circle(new O.geometry.Circle(new O.geometry.Point(t.center.x,t.center.y),t.radius),e):oe.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 O.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:ns(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}(ne),os=jt(Mt(30),10),is=jt(Mt(60),10);function ns(t){var e=Mt(t),r=jt(Math.sin(e),10),o=jt(Math.cos(e),10);return{horizontal:Math.abs(r)>is?a:o<0?d:h,vertical:Math.abs(r)<os?a:r<0?s:v}}It(rs,{color:g,overlay:{gradient:"roundedBevel"},border:{width:.5},labels:{visible:!1,distance:35,font:"12px sans-serif",margin:V(.5),align:l,zIndex:1,position:"outsideEnd"},animation:{type:eo},highlight:{visible:!0,border:{width:1}},visible:!0}),E(rs.prototype,uo);var ss=rs,as={createLegendItem:function(t,e,r){var o=this.options.legend||{},i=o.labels||{},n=o.inactiveItems||{},s=n.labels||{};if(r&&!1!==r.visibleInLegend){var a,l,c=!1!==r.visible,p=c?rt(i):rt(s)||rt(i),h=r.category;p&&(h=p({text:h,series:r.series,dataItem:r.dataItem,percentage:r.percentage,value:t})),c?(a={},l=e.color):(a={color:s.color,font:s.font},l=(n.markers||{}).color),si(h)&&""!==h&&this.legendItems.push({active:c,pointIndex:r.index,text:h,series:r.series,markerColor:l,labels:a})}}},ls=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 o=r.length,i=e.series,n=i.length,s=0;s<n;s++){var l=i[s],c=l.data,p=Ei(l),h=p.total,u=p.points,f=p.count,d=360/h,v=void 0;isFinite(d)||(v=360/f);var y=void 0;y=bt(l.startAngle)?l.startAngle:e.startAngle,s!==n-1&&"outsideEnd"===l.labels.position&&(l.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,C=1!==c.length&&Boolean(x.explode);j(l.color)||(l.color=x.color||r[g%o]),t(m.valueFields.value,new te(null,0,0,y,w),{owner:this,category:bt(x.category)?x.category:"",index:g,series:l,seriesIx:s,dataItem:c[g],percentage:0!==h?b/h:0,explode:C,visibleInLegend:x.visibleInLegend,visible:_,zIndex:n-s,animationDelay:this.animationDelay(g,s,n)}),!1!==_&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;lo(t,{value:e,series:o,dataItem:r.dataItem,category:r.category,percentage:r.percentage},{defaults:o._defaults,excluded:["data","content","template","visual","toggle"]})},e.prototype.addValue=function(t,e,r){var o=E({},r.series,{index:r.index});if(this.evalSegmentOptions(o,t,r),this.createLegendItem(t,o,r),!1!==r.visible){var i=new ss(t,e,o);Object.assign(i,r),this.append(i),this.points.push(i)}},e.prototype.reflow=function(t){var e=this.options,r=this.points,o=this.seriesConfigs;void 0===o&&(o=[]);var i=r.length,n=t.clone(),s=Math.min(n.width(),n.height()),a=s/2,l=s-.85*s,c=new $t(n.x1,n.y1,n.x1+s,n.y1+s),p=c.center(),h=n.center(),u=e.series.length,f=[],v=[],y=Et(e.padding,l);this.targetBox=t,y=y>a-5?a-5:y,c.translate(h.x-p.x,h.y-p.y);for(var g=a-y,m=new Zt(g+c.x1+y,g+c.y1+y),x=0;x<i;x++){var b=r[x],_=b.sector,w=b.seriesIx;if(_.radius=g,_.center=m,o.length){var C=o[w];_.innerRadius=C.innerRadius,_.radius=C.radius}w===u-1&&b.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),b.reflow(c);var O=b.label;O&&"outsideEnd"===O.options.position&&w===u-1&&(O.orientation===d?v.push(O):f.push(O))}f.length>0&&(f.sort(this.labelComparator(!0)),this.leftLabelsReflow(f)),v.length>0&&(v.sort(this.labelComparator(!1)),this.rightLabelsReflow(v)),this.box=c},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=St(this.points),r=e.sector,o=t.length-1,i=r.radius+e.options.labels.distance,n=[],s=t[0].box,a=jt(s.y1-(r.center.y-i-s.height()-s.height()/2));n.push(a);for(var l=0;l<o;l++){var c=t[l+1].box;s=t[l].box,a=jt(c.y1-s.y2),n.push(a)}return a=jt(r.center.y+i-t[o].box.y2-t[o].box.height()/2),n.push(a),n},e.prototype.distributeLabels=function(t,e){for(var r,o,i,n=t.length,s=0;s<n;s++)for(i=-t[s],r=o=s;i>0&&(r>=0||o<n);)i=this._takeDistance(t,s,--r,i),i=this._takeDistance(t,s,++o,i);this.reflowLabels(t,e)},e.prototype._takeDistance=function(t,e,r,o){var i=o;if(t[r]>0){var n=Math.min(t[r],i);i-=n,t[r]-=n,t[e]+=n}return i},e.prototype.reflowLabels=function(t,e){var r,o=St(this.points),i=o.sector,n=o.options.labels,s=e.length,a=n.distance,c=i.center.y-(i.radius+a)-e[0].box.height();t[0]+=2;for(var p=0;p<s;p++){var h=e[p],u=h.box;c+=t[p],r=this.hAlignLabel(u.x2,i.clone().expand(a),c,c+u.height(),h.orientation===d),h.orientation===d?(n.align!==l&&(r=i.radius+i.center.x+a),h.reflow(new $t(r+u.width(),c,r,c))):(n.align!==l&&(r=i.center.x-i.radius-a),h.reflow(new $t(r-u.width(),c,r,c))),c+=u.height()}},e.prototype.createVisual=function(){var e=this.options.connectors,r=this.points,o=r.length;t.prototype.createVisual.call(this),this._connectorLines=[];for(var i=0;i<o;i++){var n=r[i],s=n.sector,a=n.label,l=s.middle(),c=(n.options.connectors||{}).color||e.color;if(a){var p=new O.drawing.Path({stroke:{color:c,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===a.options.position){var h=a.box,u=s.center,f=s.point(l),v=new Zt(h.x1,h.center().y),y=void 0,g=void 0,m=void 0;f=s.clone().expand(e.padding).point(l),p.moveTo(f.x,f.y),a.orientation===d?(m=cs(u,f,v,g=new Zt(h.x1-e.padding,h.center().y)),v=new Zt(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!==Jr?y<v.x?p.lineTo(y,f.y):p.lineTo(f.x+8,f.y):p.lineTo(y,f.y),p.lineTo(v.x,g.y)):(m.y=g.y,p.lineTo(m.x,m.y))):(m=cs(u,f,v,g=new Zt(h.x2+e.padding,h.center().y)),v=new Zt(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!==Jr?y>v.x?p.lineTo(y,f.y):p.lineTo(f.x-8,f.y):p.lineTo(y,f.y),p.lineTo(v.x,g.y)):(m.y=g.y,p.lineTo(m.x,m.y))),p.lineTo(g.x,g.y),this._connectorLines.push(p),this.visual.append(p)}}}},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(),o=this.visual.bbox();if(!o)return;var i=o.bottomRight(),n=Math.min((r.y-e.y1)/(r.y-o.origin.y),(e.y2-r.y)/(i.y-r.y),(r.x-e.x1)/(r.x-o.origin.x),(e.x2-r.x)/(i.x-r.x));n<1&&this.visual.transform(O.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,o,i){var n=e.radius,s=e.center,a=s.x,l=s.y,c=Math.min(Math.abs(l-r),Math.abs(l-o));return c>n?t:a+Math.sqrt(n*n-c*c)*(i?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}(ne);function cs(t,e,r,o){var i,n=(o.x-r.x)*(t.y-r.y)-(o.y-r.y)*(t.x-r.x),s=(o.y-r.y)*(e.x-t.x)-(o.x-r.x)*(e.y-t.y);if(0!==s){var a=n/s;i=new Zt(t.x+a*(e.x-t.x),t.y+a*(e.y-t.y))}return i}It(ls,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),E(ls.prototype,as),ls.prototype.isStackRoot=!0;var ps=ls,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.render=function(){this.createPieChart(this.series)},e.prototype.createPieChart=function(t){var e=t[0],r=new ps(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),mt(this.options.legend.items,e.legendItems)},e}(Xi),us=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,o=this.sector.clone(),i=o.middle();if(r){var n=r.box.height();if(e.position===a){o.radius-=(o.radius-o.innerRadius)/2;var s=o.point(i);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 oe.current.createRing(t,e)},e}(ss);It(us,{overlay:{gradient:"roundedGlass"},labels:{position:a},animation:{type:eo}}),E(us.prototype,uo);var fs=us,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.addValue=function(t,e,r){var o=E({},r.series,{index:r.index});if(this.evalSegmentOptions(o,t,r),this.createLegendItem(t,o,r),t&&!1!==r.visible){var i=new fs(t,e,o);Object.assign(i,r),this.append(i),this.points.push(i)}},e.prototype.reflow=function(e){for(var r,o=this.options,i=e.clone(),n=Math.min(i.width(),i.height()),s=n/2,a=n-.85*n,l=o.series,c=l.length,p=Et(o.padding,a),h=s-(p=p>s-5?s-5:p),u=0,f=0;f<c;f++){var d=l[f];0===f&&bt(d.holeSize)&&(r=d.holeSize,h-=d.holeSize),bt(d.size)?h-=d.size:u++,bt(d.margin)&&f!==c-1&&(h-=d.margin)}bt(r)||(h-=r=.75*((s-p)/(c+.75)));var v,y=r,g=0;this.seriesConfigs=[];for(var m=0;m<c;m++){var x=l[m];v=(y+=g)+Et(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}(ps);It(ds,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var vs=ds,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.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],r=new vs(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e}(hs),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.initFields=function(){this.valueAxisRangeTracker=new Do},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,o=t.getSlot(r),i=this.polarAxis.getSlot(0).center,n=t.box.translate(i.x-o.x1,i.y-o.y1);t.reflow(n)},e.prototype.createValueAxis=function(){var t,e,r=this.valueAxisRangeTracker,o=r.query(),i=this.valueAxisOptions({roundToMajorUnit:!1,zIndex:-1});"log"===i.type?(t=Er,e={min:.1,max:1}):(t=jr,e={min:0,max:1});var n=r.query(name)||o||e;n&&o&&(n.min=Math.min(n.min,o.min),n.max=Math.max(n.max,o.max));var s=new t(n.min,n.max,i,this.chartService);this.valueAxis=s,this.appendAxis(s)},e.prototype.reflowAxes=function(){var t=this.options.plotArea,e=this.valueAxis,r=this.polarAxis,o=this.box,i=.15*Math.min(o.width(),o.height()),n=V(t.padding||{},i),s=o.clone().unpad(n),l=s.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(s,x,a);var c=l.clone().shrink(0,l.height()/2);r.reflow(l),e.reflow(c);var p=e.lineBox().height()-e.box.height();e.reflow(e.box.unpad({top:p})),this.axisBox=l,this.alignAxes(l)},e.prototype.backgroundBox=function(){return this.box},e.prototype.detachLabels=function(){},e}(Xi),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.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Zt.onCircle(t.center,t.startAngle,r);return new $t(o.x,o.y,o.x,o.y)},e}(li);It(ms,{clip:!1});var xs=ms,bs=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);bs.prototype.pointSlot=xs.prototype.pointSlot,It(bs,{clip:!1});var _s=bs,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._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 Br(!1),o=this.points();o.push(e),(t=this._strokeSegments=r.process(o)).pop()}return t},e}(Bo),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.fillToAxes=function(t){var e=this.parent.plotArea.polarAxis.box.center(),r=new O.geometry.Segment([e.x,e.y]);t.segments.unshift(r),t.segments.push(r)},e}(To);function Os(t,e){return t.value.x-e.value.x}var 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.createSegment=function(t,e,r){return"smooth"===(e.line||{}).style?new ws(t,e,r):new Cs(t,e,r)},e.prototype.createMissingValue=function(t,e){var r;return si(t.x)&&"interpolate"!==e&&(r={x:t.x,y:t.y},e===Qr&&(r.y=0)),r},e.prototype.seriesMissingValues=function(t){return t.missingValues||Qr},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)si(r.value.y)||"gap"!==this.seriesMissingValues(r.series)||delete t[e]}return t},e}(_s),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.createPolarAxis=function(){var t=new Sr(this.options.xAxis,this.chartService);this.polarAxis=t,this.axisX=t,this.appendAxis(t)},e.prototype.valueAxisOptions=function(t){return E(t,{majorGridLines:{type:i},minorGridLines:{type:i}},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),Xi.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Bi(t,["polarLine"]),e),this.createScatterChart(Bi(t,["polarScatter"]),e),this.createAreaChart(Bi(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new _s(this,{series:t});this.appendChart(r,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var r=new xs(this,{series:t});this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Ps(this,{series:t});this.appendChart(r,e)}},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Zt(o.x,o.y),n=this.axisX.getValue(i),s=this.axisY.getValue(i);null!==n&&null!==s&&t.trigger(r,{element:Ot(e),x:n,y:s})},e.prototype.createCrosshairs=function(){},e}(gs);It(Ss,{xAxis:{},yAxis:{}}),E(Ss.prototype,Yi);var ks=Ss;var As=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,o=Zt.onCircle(t.center,t.middle(),r);return new $t(o.x,o.y,o.x,o.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 o=t[r];e[o.seriesIx]=e[o.seriesIx]||[],e[o.seriesIx].push(o)}return e}(this._segments),r=0;r<e.length;r++){var o=e[r];if(o&&o.length>1){var i=o[0].linePoints[0],n=St(o),s=St(n.linePoints),a=0===i.categoryIx,l=s.categoryIx===s.categoriesCount-1;a&&l&&St(o).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,r){var o=new("smooth"===e.style?Co:mo)(t,e,r),i=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==i||(o.options.closed=!0),o},e}(jo);It(As,{clip:!1,limitPoints:!1});var Ms=As,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}(Bo),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.fillToAxes=function(){},e}(To),Es=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,o){var i,n,s,a=this.options.isStacked,l=(e.line||{}).style;return a&&r>0&&o&&(n=o.linePoints.slice(0),i=o),"smooth"===l?(s=new js(t,e,r,i,n)).options.closed=!0:(t.push(t[0]),s=new Ts(t,e,r,i,n)),s},e.prototype.seriesMissingValues=function(t){return t.missingValues||Qr},e}(Ms),Rs=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}(fs);It(Rs,{overlay:{gradient:"none"},labels:{distance:10}});var Bs=Rs,Is=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Fo:Uo}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,o=e.gap,i=e.spacing,n=r.length,s=n+o+i*(n-1),a=t.angle/s,l=t.startAngle+a*(o/2);this.forEach(r,(function(e){var r=t.clone();r.startAngle=l,r.angle=a,e.sector&&(r.radius=e.sector.radius),e.reflow(r),e.sector=r,l+=a+a*i}))},e}(ne);It(Is,{gap:1,spacing:0});var Ds=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,o=r.length,i=e?o-1:0,n=e?-1:1;this.box=new $t;for(var s=i;s>=0&&s<o;s+=n){var a=r[s].sector;a.startAngle=t.startAngle,a.angle=t.angle}},e}(ne),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 Bs},e.prototype.clusterType=function(){return Ds},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(),o=t.center.y;return r.radius=o-e.y1,r.innerRadius=o-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}(qo);Vs.prototype.reflow=ho.prototype.reflow,It(Vs,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var zs=Vs,Ns=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:i},minorGridLines:{type:i}}),this._isStacked100&&E(t,{roundToMajorUnit:!1,labels:{format:"P0"}}),E(t,this.options.valueAxis)},e.prototype.aggregateCategories=function(){Cn.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){Cn.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(Bi(t,["radarArea"]),e),this.createLineChart(Bi(t,["radarLine"]),e),this.createBarChart(Bi(t,["radarColumn"]),e)},e.prototype.chartOptions=function(t){var e={series:t},r=t[0];if(r){var o=this.filterVisibleSeries(t),i=r.stack;e.isStacked=i&&o.length>1,e.isStacked100=i&&"100%"===i.type&&o.length>1,e.isStacked100&&(this._isStacked100=!0)}return e},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Es(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new Ms(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],o=this.chartOptions(t);o.gap=r.gap,o.spacing=r.spacing;var i=new zs(this,o);this.appendChart(i,e),this._hasBarCharts=!0}},e.prototype.seriesCategoryAxis=function(){return this.categoryAxis},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Zt(o.x,o.y),n=this.categoryAxis.getCategory(i),s=this.valueAxis.getValue(i);null!==n&&null!==s&&t.trigger(r,{element:Ot(e),category:n,value:s})},e.prototype.createCrosshairs=function(){},e}(gs);E(Ns.prototype,Yi,{appendChart:Cn.prototype.appendChart,aggregateSeries:Cn.prototype.aggregateSeries,seriesSourcePoints:Cn.prototype.seriesSourcePoints}),It(Ns,{categoryAxis:{categories:[]},valueAxis:{}});var Hs=Ns,Us=function(t){function e(e,r,o){t.call(this,r),this.value=e,this.options.index=o.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,o=this.options;t.prototype.createVisual.call(this),(e=o.visual?o.visual({category:this.category,dataItem:this.dataItem,value:this.value,series:this.series,percentage:this.percentage,points:this.points,options:o,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 O.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 O.drawing.Path.fromPoints(this.points,t)},e.prototype.highlightVisual=function(){return this.visual.children[0]},e.prototype.highlightVisualArgs=function(){var t=O.drawing.Path.fromPoints(this.points).close();return{options:this.options,path:t}},e.prototype.tooltipAnchor=function(){var t=this.box;return{point:new Zt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(ne);It(Us,{color:g,border:{width:1}}),E(Us.prototype,uo);var Fs=Us,Gs=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],o=r.data;if(o)for(var i=Ei(r),n=i.total,s=i.points,a=0;a<s.length;a++){var l=s[a];if(l){var c=l.fields;j(r.color)||(r.color=c.color||e[a%e.length]),c=E({index:a,owner:this,series:r,dataItem:o[a],percentage:l.value/n},c,{visible:l.visible});var p=l.valueFields.value,h=this.createSegment(p,c),u=this.createLabel(p,c);h&&u&&h.append(u)}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;lo(t,{value:e,series:o,dataItem:r.dataItem,index:r.index},{defaults:o._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 o=new Fs(t,r,e);return Object.assign(o,e),this.append(o),this.points.push(o),o}},e.prototype.createLabel=function(t,e){var r=e.series,o=e.dataItem,i=E({},this.options.labels,r.labels),n=t;if(i.visible){var s=rt(i),a={dataItem:o,value:t,percentage:e.percentage,category:e.category,series:r};s?n=s(a):i.format&&(n=this.plotArea.chartService.format.auto(i.format,n)),i.color||(i.color=Ut(r.color),i.background||(i.background=r.color)),this.evalSegmentOptions(i,t,e);var l=new _e(n,E({vAlign:i.position},i),a);return this.labels.push(l),l}},e.prototype.labelPadding=function(){for(var t=this.labels,e={left:0,right:0},r=0;r<t.length;r++){var o=t[r].options.align;if(o!==a){var i=t[r].box.width();o===h?e.left=Math.max(e.left,i):e.right=Math.max(e.right,i)}}return e},e.prototype.dynamicSlopeReflow=function(t,e,r){for(var o=this.options,i=this.points,n=i.length,s=i[0],a=s,l=0;l<i.length;l++)i[l].percentage>a.percentage&&(a=i[l]);for(var c=s.percentage/a.percentage*e,p=(e-c)/2,h=0,u=0;u<n;u++){var f=i[u].percentage,d=i[u+1],v=d?d.percentage:f,y=i[u].points=[],g=o.dynamicHeight?r*f:r/n,m=void 0;m=kt(m=f?(e-c*(v/f))/2:v?0:e/2,0,e),y.push(new O.geometry.Point(t.x1+p,t.y1+h)),y.push(new O.geometry.Point(t.x1+e-p,t.y1+h)),y.push(new O.geometry.Point(t.x1+e-m,t.y1+g+h)),y.push(new O.geometry.Point(t.x1+m,t.y1+g+h)),p=m,h+=g+o.segmentSpacing,c=kt(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,r){for(var o=this.options,i=this.points,n=i.length,s=o.neckRatio<=1,a=s?o.neckRatio*e:e,l=s?0:(e-e/o.neckRatio)/2,c=((s?e:e-2*l)-a)/2,p=0,h=0;h<n;h++){var u=i[h].points=[],f=i[h].percentage,d=o.dynamicHeight?c*f:c/n,v=o.dynamicHeight?r*f:r/n;u.push(new O.geometry.Point(t.x1+l,t.y1+p)),u.push(new O.geometry.Point(t.x1+e-l,t.y1+p)),u.push(new O.geometry.Point(t.x1+e-l-d,t.y1+v+p)),u.push(new O.geometry.Point(t.x1+l+d,t.y1+v+p)),l+=d,p+=v+o.segmentSpacing}},e.prototype.reflow=function(t){var e=this.points,r=e.length;if(r){var o=this.options,i=t.clone().unpad(this.labelPadding()),n=i.height()-o.segmentSpacing*(r-1),s=i.width();o.dynamicSlope?this.dynamicSlopeReflow(i,s,n):this.constantSlopeReflow(i,s,n);for(var a=0;a<r;a++)e[a].reflow(t)}},e}(ne);It(Gs,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:a,position:a,zIndex:1}}),E(Gs.prototype,as);var Ws=Gs,Ks=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 Ws(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),mt(this.options.legend.items,e.legendItems)},e}(Xi),Xs=function(t,e){void 0===e&&(e=.05);var r=Object(O.parseColor)(t),o=1-e;return function(t){var e=r.toHSL(),i=100-e.l,n=o-t;return e.l+=Math.min(n*i,i),e.toCss()}},Ys=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(),o=rt(t),i=t.color;e=o?o(r):this.formatValue(t.format),i||(i=Ut(this.color)),this.label=new _e(e,E({align:a,vAlign:a,margin:{left:5,right:5},zIndex:Et(t.zIndex,this.series.zIndex)},t,{color:i}),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(),o="roundedRect"===Et(t.type,"rect"),i=Et(e.width,o?1:0),n=Math.round(i/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-=i,r.size.height-=i,r.origin.y+=n+.5,r.origin.x+=n+.5,xe(r)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,r=Et(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 ce({type:Et(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:Et(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,o=new ce({type:Et(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:Et(e.zIndex,this.series.zIndex)});o.reflow(this.markerBox());var i=o.getElement();return i.options.fill=t.fill,i.options.stroke=t.stroke,i},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 Zt(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}(ne);E(Ys.prototype,uo),E(Ys.prototype,fo),Ys.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var qs=Ys,Zs=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],o=0;o<r.data.length;o++){var i=this._bindPoint(r,e,o).valueFields;this.valueRange.min=Math.min(this.valueRange.min,i.value),this.valueRange.max=Math.max(this.valueRange.max,i.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 o=r.series,i=r.seriesIx,n={defaults:o._defaults,excluded:["data","tooltip","content","template","visual","toggle"]},s=this._evalSeries[i];bt(s)||(this._evalSeries[i]=s=lo(t,{},n,!0));var a=t;return s&&lo(a=E({},t),{value:e,series:o,dataItem:r.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),a},e.prototype.pointType=function(){return qs},e.prototype.pointOptions=function(t,e){var r=this.seriesOptions[e];if(!r){var o=this.pointType().prototype.defaults;this.seriesOptions[e]=r=E({},o,{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,o=this.pointOptions(r,e.seriesIx),i=e.color||r.color;(o=this.evalPointOptions(o,t,e),j(r.color))?i=o.color:i=Xs(i)(t.value/this.valueRange.max);var n=new qs(t,o);return n.color=i,this.append(n),n},e.prototype.seriesAxes=function(t){var e=t.xAxis,r=t.yAxis,o=this.plotArea,i=e?o.namedXAxes[e]:o.axisX,n=r?o.namedYAxes[r]:o.axisY;if(!i)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:i,yAxis:n}},e.prototype.reflow=function(t){var e=this,r=this.points,o=!this.options.clip,i=0;this.traverseDataPoints((function(t,n){var s=r[i++],a=e.seriesAxes(n.series),l=a.xAxis,c=a.yAxis,p=l.categoryIndex(t.x),h=c.categoryIndex(t.y),u=l.getSlot(p,p,o),f=c.getSlot(h,h,o);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 o=e[r],i=this.seriesAxes(o),n=i.xAxis,s=i.yAxis,a=n.currentRangeIndices(),l=s.currentRangeIndices(),c=0;c<o.data.length;c++){var p=this._bindPoint(o,r,c),h=p.valueFields,u=p.fields,f=n.totalIndex(h.x),d=s.totalIndex(h.y),v=a.min<=f&&f<=a.max,y=l.min<=d&&d<=l.max;v&&y&&t(h,E({pointIx:c,series:o,seriesIx:r,dataItem:o.data[c],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}(ne);It(Zs,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),E(Zs.prototype,{_bindPoint:ho.prototype._bindPoint});var Qs=Zs,$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],o=r.data||[],i=this.seriesAxes(r),n=i.xAxis,s=i.yAxis,a=Yt(n.categories||[]),l=Yt(s.categories||[]),c=0;c<o.length;c++){var p=Wr.current.bindPoint(r,c).valueFields,h=p.x,u=p.y;a.has(h)||a.add(h),l.has(u)||l.add(u)}n.categories=a.values(),s.categories=l.values()}},e.prototype.createCharts=function(t){for(var e=this.groupSeriesByPane(),r=0;r<t.length;r++){var o=t[r],i=e[o.options.name||"default"]||[];this.addToLegend(i);var n=this.filterVisibleSeries(i);n&&this.createHeatmapChart(Bi(n,["heatmap"]),o)}},e.prototype.createHeatmapChart=function(t,e){var r=new Qs(this,{series:t});this.appendChart(r,e)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,o=st([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=st([].concat(e.yAxis),(function(t){return t.name===i}))[0],s=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||s},e.prototype.seriesAxes=function(t){var e,r,o=this.options,i=[].concat(o.xAxis),n=t.xAxis;e=n?i.find((function(t){return t.name===n})):i[0];var s=[].concat(o.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 o,i=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,l=[s.min,s.max,a],p=this.series,h=0;h<p.length;h++){var u=p[h],f=u[e?"yAxis":"xAxis"];if(f===s.name||0===r&&!f){var d=Wr.current.bindPoint(u,0).valueFields;l.push(d[e?"y":"x"]);break}}for(var v=0;v<l.length;v++)if(l[v]instanceof Date){o=!0;break}var y=new(Ri(s.type,c)||!s.type&&o?lr:Je)(s,this.chartService);if(y.axisIndex=r,i){if(n[i])throw new Error((e?"Y":"X")+" axis with name "+i+" is already defined");n[i]=y}return this.appendAxis(y),y.mapCategories(),y},e.prototype.createAxes=function(t){for(var e=this.options,r=[].concat(e.xAxis),o=[],i=[].concat(e.yAxis),n=[],s=0;s<r.length;s++){pt(this.findPane(r[s].pane),t)&&o.push(this.createXYAxis(r[s],!1,s))}for(var a=0;a<i.length;a++){pt(this.findPane(i[a].pane),t)&&n.push(this.createXYAxis(i[a],!0,a))}this.axisX=this.axisX||o[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 o=t._eventCoordinates(e),i=new Zt(o.x,o.y),n=this.axes,s=n.length,a=[],l=[],c=0;c<s;c++){var p=n[c];ji(p.options.vertical?l:a,p.getCategory(i))}a.length>0&&l.length>0&&t.trigger(r,{element:Ot(e),originalEvent:e,x:Li(a),y:Li(l)})},e.prototype.updateAxisOptions=function(t,e){var r=t.options.vertical,o=this.groupAxes(this.panes),i=(r?o.y:o.x).indexOf(t);Js(this.options,i,r,e),Js(this.originalOptions,i,r,e)},e.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Xi);function Js(t,e,r,o){E([].concat(r?t.yAxis:t.xAxis)[e],o)}It($s,{xAxis:{},yAxis:{}}),E($s.prototype,Yi);var ta=$s,ea="color",ra="first",oa="max";Vn.current.register(Cn,[$r,Jr,to,ro,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),Vn.current.register(es,["scatter","scatterLine","bubble"]),Vn.current.register(hs,[eo]),Vn.current.register(ys,["donut"]),Vn.current.register(Ks,["funnel"]),Vn.current.register(ks,["polarArea","polarLine","polarScatter"]),Vn.current.register(Hs,["radarArea","radarColumn","radarLine"]),Vn.current.register(ta,["heatmap"]),Wr.current.register([$r,Jr,to,ro,"area","verticalArea"],[y],["category",ea,"noteText","errorLow","errorHigh"]),Wr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",ea,"noteText"]),Wr.current.register(["waterfall","horizontalWaterfall"],[y],["category",ea,"noteText","summary"]),Wr.current.register(["polarArea","polarLine","polarScatter"],[m,x],[ea]),Wr.current.register(["radarArea","radarColumn","radarLine"],[y],[ea]),Wr.current.register(["funnel"],[y],["category",ea,"visibleInLegend","visible"]),$i.current.register([$r,Jr,to,ro,"area","verticalArea","waterfall","horizontalWaterfall"],{value:oa,color:ra,noteText:ra,errorLow:"min",errorHigh:oa}),$i.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:oa,color:ra,noteText:ra}),$i.current.register(["radarArea","radarColumn","radarLine"],{value:oa,color:ra}),Wr.current.register(["scatter","scatterLine","bubble"],[m,x],[ea,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Wr.current.register(["bubble"],[m,x,"size"],[ea,"category","noteText"]),Wr.current.register(["heatmap"],[m,x,y],[ea,"noteText"]),Wr.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",ea,"downColor","noteText"]),$i.current.register(["candlestick","ohlc"],{open:oa,high:oa,low:"min",close:oa,color:ra,downColor:ra,noteText:ra}),Wr.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",ea,"noteText"]),$i.current.register(["boxPlot","verticalBoxPlot"],{lower:oa,q1:oa,median:oa,q3:oa,upper:oa,mean:oa,outliers:ra,color:ra,noteText:ra}),Wr.current.register(["bullet","verticalBullet"],["current","target"],["category",ea,"visibleInLegend","noteText"]),$i.current.register(["bullet","verticalBullet"],{current:oa,target:oa,color:ra,noteText:ra}),Wr.current.register([eo,"donut"],[y],["category",ea,"explode","visibleInLegend","visible"]);var ia=["category",y,m,x],na=function(t){function e(e,r,o,i){var n=this;void 0===i&&(i={}),t.call(this),this.observers=[],this.addObserver(i.observer),this.chartService=new Z(this,i),this.chartService.theme=o,this._initElement(e);var s=E({},this.options,r);this._originalOptions=E({},s),this._theme=o,this._initTheme(s,o),this._initHandlers(),this._initSurface(),this.bindCategories(),Bt.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=[],o=t.series||[],i=0;i<o.length;i++)r.push(Object.assign({},o[i]));t.series=r,function(t){for(var e=ia,r=0;r<e.length;r++){var o=e[r]+"Axes";t[o]&&(t[e[r]+"Axis"]=t[o],delete t[o])}}(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,o=e.width>0||e.height>0;t||o&&(!r||e.width!==r.width||e.height!==r.height)?(this._size=e,this._resize(e,t),this.trigger("resize",e)):o&&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 Dr(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,o,i,n=this._plotArea,s=(n.srcSeries||n.series||[])[0];j(e)?r=n.filterPoints(e):(R(e)?(o=e.series,i=e.category):o=i=e,r="donut"===s.type?sa(n.pointsBySeriesName(o),i):s.type===eo||"funnel"===s.type?sa((n.charts[0]||{}).points,i):n.pointsBySeriesName(o));r&&this.togglePointsHighlight(t,r)},e.prototype.togglePointsHighlight=function(t,e){for(var r=this._highlight,o=0;o<e.length;o++)r.togglePointHighlight(e[o],t)},e.prototype.showTooltip=function(t){var e,r,o=this._sharedTooltip(),i=this._tooltip,n=this._plotArea;if(j(t)?(e=n.findPoint(t))&&o&&(r=e.categoryIx):o&&bt(t)&&(r=n.categoryAxis.categoryIndex(t)),o){if(r>=0){var s=this._plotArea.pointsByCategoryIndex(r);i.showAt(s)}}else e&&i.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&&Ct(e,{width:r.width}),r.height&&Ct(e,{height:r.height}),t&&t.options.type===this.options.renderAs?(this.surface.clear(),this.surface.resize()):(this._destroySurface(),this.surface=O.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 Pn,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),ha(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,o=E({},t.options,{chartArea:{width:t.width,height:t.height}});pa(this._originalOptions,o),this.options=E({},this._originalOptions,o),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),ha(i._plotArea.panes),e=i.visual,this.options=r}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof Cn&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new Mn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new Tn(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new En(this,e))},e.prototype._toggleDragZoomEvents=function(){var t=this.options.pannable,e=this.options.zoomable,r=(e||{}).selection,o=(e||{}).mousewheel,i=!(t||!1!==e&&!1!==r||this.requiresHandlers(["dragStart","drag","dragEnd"])),n=(!1===e||!1===o)&&!this.requiresHandlers(["zoomStart","zoom","zoomEnd"]),s=this.element;this._dragZoomEnabled&&i&&n?(s.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(s.style.touchAction="none",this._dragZoomEnabled=!0),this._toggleDomEvents(!i,!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 Fn(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Wn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var r,o,i,n=(e||{}).axisDefaults||{};function s(t){var e=(t||{}).color||o.color,i=E({},n,n[r],o,o[r],{line:{color:e},labels:{color:e},title:{color:e}},t);return delete i[r],i}for(var a=0;a<ia.length;a++)r=ia[a]+"Axis",o=t.axisDefaults||{},i=(i=[].concat(t[r])).map(s),t[r]=i.length>1?i:i[0]}(t,e),function(t,e){var r=t.series,o=r.length,i=t.seriesDefaults,n=E({},t.seriesDefaults),s=e?E({},e.seriesDefaults):{},a=E({},s);aa(n),aa(a);for(var l=0;l<o;l++){var c=r[l].type||t.seriesDefaults.type,p=E({data:[]},a,s[c],{tooltip:t.tooltip},n,i[c]);r[l]._defaults=p,r[l]=E({},p,r[l]),r[l].data=r[l].data||[]}}(t,e)},e.prototype.applySeriesColors=function(){for(var t=this.options,e=t.series,r=t.seriesColors||[],o=0;o<e.length;o++){var i=e[o],n=r[o%r.length],s=i._defaults;i.color=i.color||n,s&&(s.color=s.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),r=new fe(this._modelOptions());return r.chart=this,r._plotArea=e,Ce.buildTitle(t.title,r),t.legend&&t.legend.visible&&r.append(new Dn(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 o=t[r],i=o.options;if(o instanceof Je&&i.select&&!i.vertical){var n=o.range(),s=new Un(this,o,E({min:n.min,max:n.max},i.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(O.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,o=!1,i=0;i<r.length;i++)r[i].trigger(t,e)&&(o=!0);return o},e.prototype._attachEvents=function(){var t,e,r=this.element;this._touchAction=r.style.touchAction,xt(r,((t={}).contextmenu=this._clickHandler,t[io]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&xt(r,((e={}).mousemove=this._mousemove,e)),this.domEvents=$.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,o=-t.distance/r+1;if(Math.abs(o)>=.1){o=Math.round(10*o),this._gestureDistance=t.distance;var i={delta:o,axisRanges:la(this._plotArea.axes),originalEvent:t};if(this._zooming||!this.trigger("zoomStart",i)){var n=this._eventCoordinates(t);this._zooming||(this._zooming=!0),(i.axisRanges=e.updateRanges(o,n))&&!this.trigger("zoom",i)&&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:la(this._plotArea.axes),originalEvent:t}))},e.prototype._move=function(t){var e=this._navState,r=this._pannable;if(!this._stopChartHandlers(t)){if(r){var o=r.move(t);o&&!this.trigger("drag",{axisRanges:o,originalEvent:t})&&r.pan()}else if(e){for(var i={},n=e.axes,s=0;s<n.length;s++){var a=n[s];if(a.options.name){var l=a.options.vertical?t.y:t.x,c=l.startLocation-l.location;0!==c&&(i[a.options.name]=a.translateRange(c))}}e.axisRanges=i,this.trigger("drag",{axisRanges:i,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:la(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),o=this._plotArea.paneByPoint(r);if(o)for(var i=0;i<e.length;i++)if(e[i].onPane(o))return!0},e.prototype._mousewheelZoomRate=function(){var t=(this.options.zoomable||{}).mousewheel||{};return Et(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,r=yt(t),o=this._mousewheelZoom,i=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(i))if(o){var n={delta:r,axisRanges:la(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=o.updateRanges(r,i),n.axisRanges&&!this.trigger("zoom",n)&&o.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,i,"zoomStart")||(s=this._navState);if(s){var a=s.totalDelta||r;s.totalDelta=a+r;for(var l=this._navState.axes,c={},p=0;p<l.length;p++){var h=l[p],u=h.options.name;u&&(c[u]=h.scaleRange(-a*e._mousewheelZoomRate(),i))}this.trigger("zoom",{delta:r,axisRanges:c,originalEvent:t}),this._mwTimeout&&clearTimeout(this._mwTimeout),this._mwTimeout=setTimeout((function(){e._endNavigation(t,"zoomEnd")}),150)}}},e.prototype._startNavigation=function(t,e,r){var o=this._model._plotArea,i=o.findPointPane(e),n=o.axes.slice(0);if(i){var s=la(n);this.trigger(r,{axisRanges:s,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:s,pane:i,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 o,i=t;i&&!o;)o=i.chartElement,i=i.parent;if(o)return o.aliasFor&&(o=o.aliasFor(e,this._eventCoordinates(e))),r&&(o=o.closest(r))&&o.aliasFor&&(o=o.aliasFor()),o},e.prototype._eventCoordinates=function(t){var e=Pt(t);return this._toModelCoordinates(e.x,e.y)},e.prototype._elementPadding=function(){if(!this._padding){var t=L(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=wt(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,o=wt(r),i=this._elementPadding(),n=Ht(r).invert(),s=new O.geometry.Point(t-o.left-i.left,e-o.top-i.top).transform(n);return new Zt(s.x,s.y)},e.prototype._tap=function(t){var e=this,r=this.surface.eventTarget(t),o=this._drawingChartElement(r,t),i=this._sharedTooltip();this._startHover(r,t)||i||this._unsetActivePoint(),i&&this._trackSharedTooltip(this._eventCoordinates(t),t,!0),this._propagateClick(o,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 Xi)})),o=this._activePoint,i=this._plotArea.series.length>1,n=this._hasInactiveOpacity();return this._updateHoveredPoint(r,e),r&&o!==r&&r.hover?(this._activePoint=r,this._sharedTooltip()||r.hover(this,e)||(this._displayTooltip(r),n?this._displayInactiveOpacity(r,i):this._highlight.show(r))):!r&&n&&(i&&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 o=this._activeChartInstance=this._chartInstanceFromPoint(t);if(o)if(e)this._updateSeriesOpacity(t),this._applySeriesOpacity(o.children,null,!0),this._applySeriesOpacity(o.children,t.series),this._highlight.show(r||t);else{var i;if(!o.supportsPointInactiveOpacity())return void this._highlight.show(t);(i=this._getInactivePoints(t,o))&&i.length&&this._highlight.show(i,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=[],o=0;o<t.children.length;o++){var i=t.children[o];i.constructor===e?r.push(i):i.children&&i.children.length&&(r=r.concat(this._getAllPointsOfType(i,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,o=r.series.length,i=0;i<o;i++){var n=r.series[i],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,o){for(var i=0;i<t.length;i++){var n=t[i],s=n.series||o;if(s&&(s.highlight||{}).visible&&n.visual){var a=o?o.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),xt(document,((e={}).mousemove=this._mouseMoveTrackHandler,e)))},e.prototype._mouseMoveTracking=function(t){var e,r=this.options,o=this._tooltip,i=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&&o.show(a),i.show(a)}}else Tt(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 o=r.backgroundContainsPoint(e);o?(r.hovered=!0,this._plotArea.hover(this,t)):r.hovered&&!o&&(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 o=e[r];o.box.containsPoint(t)?o.showAt(t):o.hide()}},e.prototype._trackSharedTooltip=function(t,e,r){if(!this._suppressHover){var o=this.options.tooltip,i=this._plotArea,n=this._plotArea.categoryAxis,s=this._tooltip,a=this._highlight;if(i.backgroundContainsPoint(t)){var l=n.pointCategoryIndex(t);if(l!==this._tooltipCategoryIx||!this._sharedHighlight&&r){var c=i.pointsByCategoryIndex(l),p=c.map((function(t){return t.eventArgs(e)})),h=p[0]||{};h.categoryPoints=p,c.length>0&&!this.trigger("seriesHover",h)?(o.visible&&s.showAt(c,t),a.show(c),this._sharedHighlight=!0):s.hide(),this._tooltipCategoryIx=l}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 o=e[r];!1!==o.autoBind&&this.bindCategoryAxisFromSeries(o,r)}},e.prototype.bindCategoryAxisFromSeries=function(t,e){for(var r,o=this.options.series,i=o.length,n=new ct,s=[],a=!1,l=0;l<i;l++){var c=o[l],p=c.categoryAxis===t.name||!c.categoryAxis&&0===e,h=c.data,u=h.length,f=c.categoryField&&p;if(a=f||a,f&&u>0)for(var d=(r=Di(t,Fr(c.categoryField,h[0])))?Ii:Fr,v=0;v<u;v++){var y=h[v],g=d(c.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=Ue);for(var r=function(t,e){void 0===e&&(e=Ue);for(var r=1,o=t.length;r<o;r++)if(e(t[r],t[r-1])<0){t.sort(e);break}return t}(t,e),o=r.length,i=o>0?[r[0]]:[],n=1;n<o;n++)0!==e(r[n],St(i))&&i.push(r[n]);return i}(s,(function(t,e){return Ue(t[0],e[0])})));var m=function(t){for(var e=t.length,r=[],o=0;o<e;o++)for(var i=t[o],n=i.length,s=0;s<n;s++)r[s]=r[s]||[],r[s].push(i[s]);return r}(s);t.categories=m[0]}else a&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Wr.current.valueFields(t),r=!0,o=0;o<e.length;o++){var i=e[o];if(i===y?i="field":i+="Field",!bt(t[i])){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,o=this._plotArea,i=this._highlight,n=(o.srcSeries||o.series)[t];if(r=pt(n.type,[eo,"donut","funnel"])?o.findPoint((function(r){return r.series.index===t&&r.index===e})):o.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&r){var s=o.series.length>1,a=r.length?r[0]:r;this._displayInactiveOpacity(a,s,r)}else i.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;Tt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&xt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){pa(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,Tt(this.element,((t={}).contextmenu=this._clickHandler,t[io]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&Tt(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}(O.Class);function sa(t,e){if(t)for(var r=0;r<t.length;r++)if(t[r].category===e)return[t[r]]}function aa(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 la(t){for(var e={},r=0;r<t.length;r++){var o=t[r],i=o.options.name;i&&(e[i]=o.range())}return e}var ca=["data","categories"];function pa(t,e){for(var r in e)if(!pt(r,ca)&&e.hasOwnProperty(r)){var o=e[r],i=t[r];if(bt(i)){var n=null===o;n||!bt(o)?(delete t[r],n&&delete e[r]):i&&R(o)&&R(i)&&pa(i,o)}}}function ha(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}It(na,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:Jr,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 ua=na,fa=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,o=r?{horizontal:"left",vertical:"center"}:{horizontal:"center",vertical:"bottom"};return{point:r?new Zt(this.plotArea.box.x2,e.center().y):new Zt(e.center().x,-2),align:o}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Wn),da=[$r,"bullet"];function va(t){for(var e=[],r=0;r<t.length;r++){var o=t[r];e[r]=o.style.display,o.style.display="none"}return e}function ya(t,e){for(var r=0;r<t.length;r++)t[r].style.display=e[r]}function ga(t){return k(t)?[t]:t}var ma=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(Ct(e).width)},e.prototype._resize=function(){var e=this.element,r=va(e.childNodes);this._initialWidth=Math.floor(Ct(e).width),ya(e.childNodes,r),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),r=va(e.childNodes),o=document.createElement("span");o.innerHTML=" ",e.appendChild(o);var i=E({width:this._autoWidth,height:Ct(e).height,transitions:t.transitions},t.chartArea,{inline:!0,align:!1});return Ct(e,{width:i.width,height:i.height}),e.removeChild(o),ya(e.childNodes,r),this.surface&&this.surface.resize(),i},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=V(e.chartArea.margin),o=t.charts,i=this._surfaceWrap(),n=0,s=0;s<o.length;s++){var a=o[s],l=(a.options.series||[])[0];if(l){if(l.type===$r)return 150;if("bullet"===l.type)return 150;if(l.type===eo)return Ct(i).height;var c=a.categoryAxis;if(c){var p=c.categoriesCount()*(!a.options.isStacked&&pt(l.type,[Jr,"verticalBullet"])?a.seriesOptions.length:1);n=Math.max(n,p)}}}var h=n*e.pointWidth;return h>0&&(h+=r.left+r.right),h},e.prototype._createSharedTooltip=function(t){return new fa(this._plotArea,t)},e.normalizeOptions=function(t){var e=ga(t);return(e=b(e)?{seriesDefaults:{data:e}}:E({},e)).series||(e.series=[{data:ga(e.data)}]),E(e,{seriesDefaults:{type:e.type}}),(pt(e.series[0].type,da)||pt(e.seriesDefaults.type,da))&&(e=E({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(ua);It(ma,{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 xa=ma,ba=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(L(this.element,"opacity").opacity)},e.prototype.step=function(t){L(this.element,{opacity:String(ht(this._initialOpacity,0,t))})},e.prototype.abort=function(){t.prototype.abort.call(this),L(this.element,{display:"none",opacity:String(this._initialOpacity)})},e.prototype.cancel=function(){t.prototype.abort.call(this),L(this.element,{opacity:String(this._initialOpacity)})},e}(O.drawing.Animation);function _a(t,e){var r=document.createElement("div");return r.className=t,e&&(r.style.cssText=e),r}var wa=function(t){function e(e,r,o){t.call(this),this.options=E({},this.options,o),this.container=e,this.chartService=r;var i=L(e,["paddingLeft","paddingTop"]);this.chartPadding={top:i.paddingTop,left:i.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=_a("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=_a("k-tooltip k-chart-tooltip"),r=this.scroll=_a("k-scroll");e.innerHTML=" ",t.appendChild(e),t.appendChild(r)},e.prototype.show=function(t,e,r){var o=this.element,i=this.options,n=this.scroll,s=this.tooltip,a=Le(Ge(t)+Ge(e-t)/2),l=.4*r.width(),c=r.center().x-l,p=(r.center().x-c)/(i.max-i.min),h=a-i.min,u=this.chartService.intl.format(i.format,t,e),f=rt(i);this.clearHideTimeout(),this._visible||(L(o,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(u=f({from:t,to:e})),s.innerHTML=u,L(s,{left:r.center().x-s.offsetWidth/2,top:r.y1});var d=L(s,["marginTop","borderTopWidth","height"]);L(n,{width:l,left:c+h*p,top:r.y1+d.marginTop+d.borderTopWidth+d.height/2}),L(o,{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 ba(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}(O.Class);It(wa,{format:"{0:d} - {1:d}",hideDelay:500});var Ca=wa,Oa="_navigator",Pa=Oa;function Sa(){}var ka=function(t){function e(e){var r;t.call(this),this.chart=e;var o=this.options=E({},this.options,e.options.navigator),i=o.select;i&&(i.from=this.parseDate(i.from),i.to=this.parseDate(i.to)),bt(o.hint.visible)||(o.hint.visible=o.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 qe(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,o=this.mainAxis(),i=o.roundedRange(),n=i.min,s=i.max,a=r.select,l=a.from,c=a.to,p=a.mousewheel,h=(t=o,Sa.prototype=t,new Sa);0!==o.categoriesCount()&&(this.clean(),h.box=o.box,this.selection=new Un(e,h,{min:n,max:s,from:l||n,to:c||s,mousewheel:Et(p,{zoom:"left"}),visible:r.visible},new ft(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),r.hint.visible&&(this.hint=new Ca(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[Pa].roundedRange(),e=t.min,r=t.max,o=this.options.select||{},i=o.from||e;i<e&&(i=e);var n=o.to||r;n>r&&(n=r),this.options.select=E({},o,{from:i,to:n}),this.filterAxes()},e.prototype._redrawSelf=function(t){var e=this.chart._plotArea;e&&e.redraw(St(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,o=this.selection,i=r._eventCoordinates(t.originalEvent),n=this.mainAxis(),s=n.roundedRange(),a=n.pane.box.containsPoint(i),l=r._plotArea.categoryAxis,c=t.axisRanges[l.options.name],p=this.options.select;if(c&&!a&&o){e=p.from&&p.to?Ge(p.to)-Ge(p.from):Ge(o.options.to)-Ge(o.options.from);var h=Le(kt(Ge(c.min),s.min,Ge(s.max)-e)),u=Le(kt(Ge(h)+e,Ge(s.min)+e,s.max));this.options.select={from:h,to:u},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.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,o=this.options.select;o.from=e,o.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,o=t.to,i=0;i<e.length;i++){var n=e[i];n.pane!==Oa&&(n.min=r,n.max=o)}},e.prototype.filter=function(){var t=this.chart,e=this.options.select;if(t.requiresHandlers(["navigatorFilter"])){var r=this.mainAxis(),o={from:e.from,to:e.to};if("category"!==r.options.type){var i=new lr(E({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;o.from=ze(i.min,-i.baseUnitStep,i.baseUnit),o.to=ze(i.max,i.baseUnitStep,i.baseUnit)}this.chart.trigger("navigatorFilter",o)}},e.prototype._zoom=function(t){var e=this.chart._plotArea.categoryAxis,r=this.selection,o=this.options,i=o.select,n=o.liveDrag,s=this.mainAxis(),a=t.delta;if(r){var l=s.categoryIndex(r.options.from),c=s.categoryIndex(r.options.to),p=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(a)>1&&(a*=3),c-l>1?(r.zoom(a,p),this.readSelection()):(e.options.min=i.from,i.from=e.scaleRange(-t.delta*this.chart._mousewheelZoomRate(),p).min),n&&(this.filterAxes(),this.redrawSlaves()),r.set(i.from,i.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[Pa]},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 o=E({},r.navigator,t.navigator),i=t.panes=[].concat(t.panes),n=E({},o.pane,{name:Oa});o.visible||(n.visible=!1,n.height=.1),i.push(n),e.attachAxes(t,o),e.attachSeries(t,o,r)}},e.attachAxes=function(t,e){var r=e.series||[],o=t.categoryAxis=[].concat(t.categoryAxis),i=t.valueAxis=[].concat(t.valueAxis),n=0===Bi(r,oo).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;o.push(E({},s,{maxDateGroups:200},a,{name:Pa,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),E({},s,a,{name:Pa+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),E({},s,a,{name:Pa+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(E({name:Pa,pane:Oa,majorGridLines:{visible:!1},visible:!1},e.valueAxis))},e.attachSeries=function(t,e,r){for(var o=t.series=t.series||[],i=[].concat(e.series||[]),n=r.seriesColors,s=e.seriesDefaults,a=0;a<i.length;a++)o.push(E({color:n[a%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},s,i[a],{axis:Pa,categoryAxis:Pa,autoBind:e.autoBindElements}))},e}(O.Class),Aa=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 o=Ct(this.element).width||600,i=r,n={seriesDefaults:{categoryField:e.dateField},axisDefaults:{categoryAxis:{name:"default",majorGridLines:{visible:!1},labels:{step:2},majorTicks:{visible:!1},maxDateGroups:Math.floor(o/28)}}};i&&(i=E({},i,n)),ka.setup(e,i),t.prototype.applyDefaults.call(this,e,i)},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 ka(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 o=e[r];o.name===Pa?t=o.categories:t&&o.pane===Oa&&(o.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),o=this._plotArea.paneByPoint(r);return t.prototype._stopChartHandlers.call(this,e)||o&&o.options.name===Oa},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(ua);It(Aa,{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 Ma=Aa,ja=Math.PI/180;function Ta(t,e){var r=t.getOrigin(),o=t.getSize(),i=V(e);return t.setOrigin([r.x-i.left,r.y-i.top]),t.setSize([o.width+(i.left+i.right),o.height+(i.top+i.bottom)]),t}var Ea=O.drawing.Group,Ra=O.drawing.Path,Ba=O.drawing.Text;function Ia(t,e){var r=t.box,o=t.children[0].box,i=e.border||{},n=e.background||"",s=Ra.fromRect(new O.geometry.Rect([r.x1,r.y1],[r.width(),r.height()]),{stroke:{}}),a=new Ba(t.text,new O.geometry.Point(o.x1,o.y1),{font:e.font,fill:{color:e.color}}),l=Ta(a.bbox().clone(),e.padding),c=Ra.fromRect(l,{stroke:{color:i.width?i.color:"",width:i.width,opacity:i.opacity,dashType:i.dashType,lineJoin:"round",lineCap:"round"},fill:{color:n}}),p=new Ea;return p.append(s),p.append(c),p.append(a),p}function Da(t,e,r){var o=bt(t.from)?t.from:f,i=bt(t.to)?t.to:u;return t.from=Math.max(Math.min(i,o),e),t.to=Math.min(Math.max(i,o),r),t}function La(t,e){var r=V(e);return r.left=-r.left,r.top=-r.top,r.right=-r.right,r.bottom=-r.bottom,Ta(t,r)}var Va=O.drawing.Path,za=O.drawing.Surface,Na=function(t){function e(e,r,o,i){void 0===i&&(i={}),t.call(this),this.element=e,this.theme=o,this.contextService=new Z(this,i),this._originalOptions=E({},this.options,r),this.options=E({},this._originalOptions),this._initTheme(o),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 o=0;o<e.length;o++)r.push(e[o].value());return r}if(b(t))for(var i=0;i<t.length;i++)k(t[i])&&e[i].value(t[i]);this._setValueOptions(t)},e.prototype._setValueOptions=function(t){for(var e=[].concat(this.options.pointer),r=[].concat(t),o=0;o<r.length;o++)e[o].value=r[o]},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 O.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,o=r.pointer;if(b(o)){for(var i=[],n=0;n<o.length;n++)i.push(E({},e.pointer,o[n]));r.pointer=i}},e.prototype._createGaugeArea=function(){var t=this.options.gaugeArea,e=this.surface.size(),r=t.border||{},o=new O.geometry.Rect([0,0],[e.width,e.height]);return this._gaugeAreaMargin=t.margin||5,r.width>0&&(o=La(o,r.width)),Va.fromRect(o,{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(),o=this._surfaceSize();Ct(r,o),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,o=t.offsetHeight;return r||(r=e.width),o||(o=e.height),{width:r,height:o}},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}(O.Class);It(Na,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Ha=Na,Ua=O.drawing.Path,Fa=O.drawing.Group,Ga=O.geometry.Point;function Wa(t,e){var r,o,i=t.position,n=t.tickX,s=t.tickY;return t.vertical?(r=new Ga(n,i),o=new Ga(n+e.size,i)):(r=new Ga(i,s),o=new Ga(i,s+e.size)),new Ua({stroke:{color:e.color,width:e.width}}).moveTo(r).lineTo(o)}function Ka(t,e,r,o){var i=e.length;if(o.visible)for(var n=r.mirror,s=r.lineBox,a=o.skip;a<i;a+=o.step)a%o.skipUnit!=0&&(r.tickX=n?s.x2:s.x2-o.size,r.tickY=n?s.y1-o.size:s.y1,r.position=e[a],t.append(Wa(r,o)))}var Xa=function(t){function e(e,r){var o=e||{};!bt(o.reverse)&&!1===o.vertical&&(r||{}).rtl&&(o=Object.assign({},o,{reverse:!0})),t.call(this,0,1,o,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||qt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Fa,e=this.renderLabels(),r=this.renderLine(),o=this.renderTicks(),i=this.renderRanges();return t.append(r,e,o,i),t},e.prototype.renderRanges=function(){for(var t=this.options,e=t.min,r=t.max,o=t.vertical,i=t.labels.mirror,n=t.ranges||[],s=new Fa,a=n.length,l=t.rangeSize||t.minorTicks.size/2,c=0;c<a;c++){var p=Da(n[c],e,r),h=this.getSlot(p.from,p.to),u=o?this.lineBox():h,f=o?h:this.lineBox();o?u.x1-=l*(i?-1:1):f.y2+=l*(i?-1:1),s.append(Ua.fromRect(new O.geometry.Rect([u.x1,f.y1],[u.x2-u.x1,f.y2-f.y1]),{fill:{color:p.color,opacity:p.opacity},stroke:{}}))}return s},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,r=new Fa,o=0;o<t.length;o++)r.append(Ia(t[o],e.labels));return r},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),r=new Fa;if(t.width>0&&t.visible){var o=new Ua({stroke:{color:t.color,dashType:t.dashType,width:t.width}});o.moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),r.append(o)}return r},e.prototype.renderTicks=function(){var t=new Fa,e=this.options,r=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Ka(t,this.getMajorTickPositions(),o,e.majorTicks),Ka(t,this.getMinorTickPositions(),o,E({},{skipUnit:r/e.minorUnit},e.minorTicks)),t},e}(vr);It(Xa,{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 Ya=Xa,qa=function(t){function e(e,r){t.call(this);var o=e.options,i=o.min,n=o.max,s=this.options=E({},this.options,r);s.fill=s.color,this.scale=e,bt(s.value)?s.value=kt(s.value,i,n):s.value=i}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 o=this.scale.options,i=o.min,n=o.max;e._oldValue=bt(e._oldValue)?e.value:i,e.value=kt(t,i,n),this.elements&&this.repaint()},e}(O.Class);It(qa,{color:n});var Za=qa,Qa=function(t){function e(e,r){t.call(this,e,r),this.options=E({track:{visible:bt(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,o=this.options,i=this.scale,n=i.options,s=n.mirror,a=n.vertical,l=i.lineBox(),c=o.track.size||o.size,p=o.size/2,h=V(o.margin),u=a?h[s?"left":"right"]:h[s?"bottom":"top"];u=s?-u:u,a?(r=new $t(l.x1+u,l.y1,l.x1+u,l.y2),s?r.x1-=c:r.x2+=c,"barPointer"!==o.shape&&(t=e=new $t(l.x2+u,l.y1-p,l.x2+u,l.y2+p))):(r=new $t(l.x1,l.y1-u,l.x2,l.y1-u),s?r.y2+=c:r.y1-=c,"barPointer"!==o.shape&&(t=e=new $t(l.x1-p,l.y1-u,l.x2+p,l.y1-u))),this.trackBox=r,this.pointerRangeBox=e,this.box=t||r.clone().pad(o.border.width)},e.prototype.getElementOptions=function(){var t=this.options;return{fill:{color:t.color,opacity:t.opacity},stroke:bt(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,o=r.mirror,i=r.vertical,n=V(e.margin);return i?n[o?"left":"right"]:n[o?"bottom":"top"]},e}(Za);It(Qa,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:V(3),animation:{type:"barPointer"},visible:!0});var $a=Qa,Ja=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,o=t.to,i=t.vertical,n=i?"x1":"y1";t.mirror===i?(r[n]-=e,o[n]-=e):(r[n]+=e,o[n]+=e);var s=this.fromScale=new O.geometry.Point(r.x1,r.y1),a=this.toScale=new O.geometry.Point(o.x1,o.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(O.geometry.transform().translate(e,r))},e}(O.drawing.Animation);It(Ja,{easing:"linear",duration:250}),O.drawing.AnimationFactory.current.register("arrowPointer",Ja);var tl=Ja,el=O.geometry.Point,rl=O.drawing.Path,ol=function(t){function e(e,r){t.call(this,e,r),bt(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,o=t.options.mirror?-1:1;return t.options.vertical?[new el(0,0-r),new el(0-o*e,0),new el(0,0+r)]:[new el(0-r,0),new el(0,0+o*e),new el(0+r,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=new tl(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(),o=this.pointerShape(e.value);e.animation.type="arrowPointer";var i=new rl({stroke:r.stroke,fill:r.fill}).moveTo(o[0]).lineTo(o[1]).lineTo(o[2]).close(),n=t.getSlot(e.value);return i.transform(O.geometry.transform().translate(n.x1,n.y1)),this.elements=i,i},e}($a),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.setup=function(){var t=this.options,e=this.axis=t.vertical?x:m,r=this.to=t.newPoints[0][e],o=this.from=t.oldPoints[0][e];0!==t.duration&&(t.duration=Math.max(Math.abs(r-o)/t.speed*1e3,1)),this._set(o)},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}(O.drawing.Animation);It(il,{easing:"linear",speed:250}),O.drawing.AnimationFactory.current.register("barPointer",il);var nl=il,sl=O.drawing.Group,al=O.drawing.Path,ll=function(t){function e(e,r){t.call(this,e,r),bt(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,o=e.options,i=o.mirror,n=o.vertical,s=i===n?-1:1,a=r.size*s,l=e.getSlot(e.options.min),c=e.getSlot(t),p=n?x:m,h=n?m:x,u=this._margin()*s,f=new O.geometry.Point;f[p]=l[p+"1"],f[h]=l[h+"1"];var d=new O.geometry.Point;d[p]=c[p+"1"],d[h]=c[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),o=this.pointerPath,i=this.pointerShape(e._oldValue);o.moveTo(r[0]).lineTo(r[1]).lineTo(r[2]).lineTo(r[3]).close();var n=new nl(o,E(e.animation,{reverse:t.options.reverse,vertical:t.options.vertical,oldPoints:[i[1],i[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 sl,e=this.getElementOptions();this.options.track.visible&&t.append(this.renderTrack());var r=this.pointerPath=new al({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 al.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),cl=O.drawing.Group,pl=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,o=t.origin.y,i=new $t(r,o,r+t.width(),o+t.height());this.scale.reflow(i),this._shrinkScaleWidth(i);for(var n=0;n<e.length;n++)e[n].reflow();this.bbox=this._getBox(i),this._alignElements(),this._shrinkElements(),this._buildVisual(),this._draw()},e.prototype._buildVisual=function(){var t=new cl,e=this.scale.render(),r=this.pointers;t.append(this.gaugeArea),t.append(e);for(var o=0;o<r.length;o++){var i=r[o];t.append(i.render()),i.value(i.options.value)}this._visuals=t},e.prototype._createModel=function(){var t=this.options,e=this.scale=new Ya(t.scale,this.contextService);this.pointers=[];var r=t.pointer;r=b(r)?r:[r];for(var o=0;o<r.length;o++){var i=E({},r[o],{animation:{transitions:t.transitions}}),n="arrow"===i.shape?ol:ll;this.pointers.push(new n(e,i))}},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,o=this.pointers,i=t.center(),n=o[0].box.clone().wrap(r.box),s=0;s<o.length;s++)n.wrap(o[s].box.clone());return r.options.vertical?(e=n.width()/2,n=new $t(i.x-e,t.y1,i.x+e,t.y2)):(e=n.height()/2,n=new $t(t.x1,i.y-e,t.x2,i.y+e)),n},e.prototype._alignElements=function(){for(var t,e=this.scale,r=this.pointers,o=e.box,i=r[0].box.clone().wrap(e.box),n=this.bbox,s=0;s<r.length;s++)i.wrap(r[s].box.clone());e.options.vertical?(t=n.center().x-i.center().x,e.reflow(new $t(o.x1+t,n.y1,o.x2+t,n.y2))):(t=n.center().y-i.center().y,e.reflow(new $t(o.x1,o.y1+t,o.x2,o.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(),o=t.options.vertical?"y":"x",i=e[0].box,n=0;n<e.length;n++)i.wrap(e[n].box.clone());r[o+1]+=Math.max(r[o+1]-i[o+1],0),r[o+2]-=Math.max(i[o+2]-r[o+2],0),t.reflow(r);for(var s=0;s<e.length;s++)e[s].reflow(this.bbox)},e}(Ha);It(pl,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var hl=pl,ul=O.drawing.Arc,fl=O.drawing.Path,dl=O.drawing.Group;function vl(t,e,r,o){var i=new dl,n=t.center,s=t.getRadiusX();if(o.visible)for(var a=0;a<e.length;a++){var l=t.pointAt(e[a]),c=new O.geometry.Point(n.x+s-o.size,n.y).rotate(e[a],n);i.append(new fl({stroke:{color:o.color,width:o.width}}).moveTo(l).lineTo(c))}return i}function yl(t,e,r,o){return{from:t,to:e,color:r,opacity:o}}var gl=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||qt(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(!bt(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,o=e.max,i=e.reverse,n=e.startAngle,s=e.endAngle,a=s-n;return(i?s-(t-r)/(o-r)*a:(t-r)/(o-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,o=0;return e.visible&&(o=e.size),r.visible&&(o=Math.max(r.size,o)),o},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(),o=this.tickAngles(e,t.majorUnit),i=t.rangeSize=t.rangeSize||.1*r,n=new dl,s=.05*r;bt(t.rangeDistance)?s=t.rangeDistance:t.rangeDistance=s;var a=t.labels,l="inside"===a.position,c=bt(this.labelElements);l&&(r-=this.ticksSize(),this.hasRanges()&&!c&&(r-=i+s),e.setRadiusX(r).setRadiusY(r));for(var p=this.labels,h=p.length,u=V(a.padding),f=(u.left+u.right)/2,d=(u.top+u.bottom)/2,v=0;v<h;v++){var y=p[v],g=y.box.width()/2,m=y.box.height()/2,x=o[v],b=(x-180)*ja,_=e.pointAt(x),w=_.x+Math.cos(b)*(g+f)*(l?1:-1),C=_.y+Math.sin(b)*(m+d)*(l?1:-1);y.reflow(new $t(w-g,C-m,w+g,C+m));var P=new O.geometry.Point(y.box.x1,y.box.y1),S=void 0;if(c){var k=(S=this.labelElements.children[v]).bbox().origin,A=S.transform()||O.geometry.transform();A.translate(P.x-k.x,P.y-k.y),S.transform(A)}else S=Ia(y,t.labels),n.append(S);this.bbox=O.geometry.Rect.union(this.bbox,S.bbox())}return n},e.prototype.repositionRanges=function(){var t=this.ranges.children;if(t.length>0){var e=this.options,r=e.rangeDistance,o=e.rangeSize,i=this.getRangeRadius();"inside"===this.options.labels.position&&(i+=o+r);for(var n=i+o/2,s=0;s<t.length;s++)t[s]._geometry.setRadiusX(n).setRadiusY(n);this.bbox=O.geometry.Rect.union(this.bbox,this.ranges.bbox())}},e.prototype.renderRanges=function(){var t=this.rangeSegments(),e=t.length,r=new dl;if(e){var o=this.options,i=o.rangeSize,n=o.reverse,s=o.rangeDistance,a=this.getRangeRadius();this.radius(this.radius()-i-s);for(var l=0;l<e;l++){var c=t[l],p=this.slotAngle(c[n?"to":"from"]),h=this.slotAngle(c[n?"from":"to"]);h-p!=0&&r.append(this.createRange(p,h,a,c))}}return r},e.prototype.createRange=function(t,e,r,o){var i=this.options.rangeSize,n=new O.geometry.Arc(this.arc.center,{radiusX:r+i/2,radiusY:r+i/2,startAngle:t,endAngle:e});return new ul(n,{stroke:{width:i,color:o.color,opacity:o.opacity,lineCap:o.lineCap}})},e.prototype.rangeSegments=function(){var t=this.options,e=t.ranges||[],r=e.length,o=[];if(r){var i=t.min,n=t.max,s=t.rangePlaceholderColor;o.push(yl(i,n,s));for(var a=0;a<r;a++)for(var l=Da(e[a],i,n),c=o.length,p=0;p<c;p++){var h=o[p];if(h.from<=l.from&&l.from<=h.to){o.push(yl(l.from,l.to,l.color,l.opacity)),h.from<=l.to&&l.to<=h.to&&o.push(yl(l.to,h.to,s,l.opacity)),h.to=l.from;break}}}return o},e.prototype.getRangeRadius=function(){var t=this.arc,e=this.options,r=e.rangeSize,o=e.rangeDistance,i=e.majorTicks.size;return"outside"===e.labels.position?t.getRadiusX()-i-o-r:t.getRadiusX()-r},e.prototype.renderArc=function(t,e){var r=this.options;return this.arc=new O.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=vl(r,this.majorTickAngles,e.majorUnit,e.majorTicks);var o=new dl;o.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,"outside"===e.labels.position){var s=r.getRadiusX();r.setRadiusX(s-i+n).setRadiusY(s-i+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=vl(r,this.minorTickAngles,e.minorUnit,e.minorTicks),o.append(this.minorTicks),o},e.prototype.normalizeTickAngles=function(t){for(var e=this.options,r=e.majorUnit/e.minorUnit,o=t.length-1;o>=0;o--)o%r==0&&t.splice(o,1);return t},e.prototype.tickAngles=function(t,e){var r=this.options,o=r.reverse,i=r.max-r.min,n=t.endAngle-t.startAngle,s=i/e,a=t.startAngle,l=n/s;o&&(a+=n,l=-l),n>=360&&r.max%e==0&&(s-=1);for(var c=[],p=0;p<s;p++)c.push(jt(a,3)),a+=l;return jt(a)<=t.endAngle&&c.push(a),c},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 o=r&&this._tickDifference||0,i=this.arc,n=i.getRadiusX();r&&"outside"===this.options.labels.position&&0!==o&&(i=this.arc.clone()).setRadiusX(n-o).setRadiusY(n-o);for(var s=0;s<t.length;s++){var a=i.pointAt(e[s]),l=t[s].segments,c=a.x-l[0].anchor().x,p=a.y-l[0].anchor().y;t[s].transform((new O.geometry.transform).translate(c,p))}},e}(vr);It(gl,{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 ml=gl,xl=function(t){function e(e,r){t.call(this,e,r);var o=this.options;o.duration=Math.max(Math.abs(o.newAngle-o.oldAngle)/o.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(O.geometry.transform().rotate(r,e.center))},e}(O.drawing.Animation);It(xl,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialPointer",xl);var bl=xl,_l=O.drawing.Circle,wl=O.drawing.Group,Cl=O.drawing.Path,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.setAngle=function(t){this.elements.transform(O.geometry.transform().rotate(t,this.center))},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=t.slotAngle(e._oldValue),o=t.slotAngle(e.value);!1===e.animation.transitions?this.setAngle(o):new bl(this.elements,E(e.animation,{oldAngle:r,newAngle:o})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=new wl;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=kt(this.options.length||1,.1,1.5),o=this.radius=t.getRadiusX()*r,i=this.capSize=Math.round(o*this.options.cap.size);this.bbox=O.geometry.Rect.fromPoints(new O.geometry.Point(e.x-i,e.y-i),new O.geometry.Point(e.x+i,e.y+i))},e.prototype._renderNeedle=function(){var t=this.scale.options.minorTicks.size,e=this.center,r=this.options.color,o=new Cl({fill:{color:r},stroke:{color:r,width:.5}});return o.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(),o},e.prototype._renderCap=function(){var t=this.options,e=t.cap.color||t.color,r=new O.geometry.Circle(this.center,this.capSize);return new _l(r,{fill:{color:e},stroke:{color:e}})},e}(Za);It(Ol,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var Pl=Ol,Sl=O.drawing.Group,kl=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=O.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 o=this._visuals=new Sl;o.append(t),o.append(r.ticks),o.append(r.ranges),this._buildPointers(e),o.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,o,i,n,s=this.scale.arc,a=this._initialPlotArea,l=Math.abs(this.getDiff(a,t)),c=jt(l,3),p=jt(-l,3),h=0,u=0;!(!(u++<100)||(h=n===o?h+1:0)>5||c!==i&&0<=(e=this.getPlotBox(c,t,s))&&e<=2||p!==i&&0<=(o=this.getPlotBox(p,t,s))&&o<=2||(i=e>0&&o>0?2*c:e<0&&o<0?2*p:jt((c+p)/2||1,3),0<=(r=this.getPlotBox(i,t,s))&&r<=2));)n=o,r>0?(p=i,o=r):(c=i,e=r)},e.prototype.getPlotBox=function(t,e,r){var o=this.scale,i=this.pointers,n=r.getRadiusX(),s=r.clone();s.setRadiusX(n+t).setRadiusY(n+t),o.arc=s,o.reflow(e),this.plotBbox=o.bbox;for(var a=0;a<i.length;a++)i[a].reflow(s),this.plotBbox=O.geometry.Rect.union(this.plotBbox,i[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(),o=e.x-r.x,i=e.y-r.y,n=this.scale,s=this.pointers;n.arc.center.x-=o,n.arc.center.y-=i,n.reflow(t);for(var a=0;a<s.length;a++)s[a].reflow(n.arc),this.plotBbox=O.geometry.Rect.union(n.bbox,s[a].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,r=this.scale=new ml(t.scale,this.contextService);this.pointers=[];for(var o=b(e)?e:[e],i=0;i<o.length;i++){var n=new Pl(r,E({},o[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Ha);It(kl,{transitions:!0,gaugeArea:{background:""}});var Al=kl,Ml=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 o=this.options.reverse,i=this.slotAngle(o?e:t),n=this.slotAngle(o?t:e),s=this.createRange(i,n,this.getRangeRadius(),r);return this.ranges.append(s),s},e}(ml);It(Ml,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var jl=Ml,Tl=function(t){function e(e,r){t.call(this,e,r);var o=this.options,i=Math.abs(o.newAngle-o.oldAngle)/o.duration*1e3;o.duration=kt(i,150,800);var n=e.elements.options.get("stroke.color"),s=e.currentColor();n!==s&&(this.startColor=new O.Color(n),this.color=new O.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,o=this.color,i=ht(e.oldAngle,e.newAngle,t);if(this.element.angle(i),o){var n=jt(ht(r.r,o.r,t)),s=jt(ht(r.g,o.g,t)),a=jt(ht(r.b,o.b,t));this.element.stroke(new O.Color(n,s,a).toHex())}},e}(O.drawing.Animation);It(Tl,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialRangePointer",Tl);var El=Tl,Rl=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),o=t.slotAngle(e.value);this.animation&&this.animation.abort(),!1===e.animation.transitions?(this.angle(o),this.stroke(this.currentColor())):(this.animation=new El(this,E(e.animation,{oldAngle:r,newAngle:o})),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,o=this.options,i=o.colors,n=o.color,s=o.value,a=k(s)?s:e;if(i)for(var l=0;l<i.length;l++){var c=i[l],p=c.color,h=c.from;void 0===h&&(h=e);var u=c.to;if(void 0===u&&(u=r),h<=a&&a<=u)return p}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Za);It(Rl,{animation:{type:"radialRangePointer",duration:150}});var Bl=Rl,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._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 jl(t.scale,this.contextService),r=new Bl(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(),o=this.scale.arc.center,i=o.x-t/2,n=o.y-e/2;if(t<r.width){var s=i+t;i=Math.max(i,0),s>r.width&&(i-=s-r.width)}if(e<r.height){var a=this.scale.bbox,l=a.bottomRight().y,c=n+e;n=Math.max(n,a.origin.y),c>l&&(n-=c-l)}return{left:i,top:n}},e}(Al),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._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}(Il),Ll=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 o=bt(t)?String(t):t;return this.initValue(o,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}(O.Class);It(Ll,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var Vl=Object.assign,zl=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),Vl(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 o=(r+this.getWeightedSum(t,e,this.kCheckSumTotal))%this.checkSumMod;this.checksum+=o,this.addPattern(this.characterMap[o])}},e.prototype.getWeightedSum=function(t,e,r){for(var o=0,i=0;i<t.length;i++)o+=this.weightedValue(this.getValue(t.charAt(i)),e,i,r);return o},e.prototype.weightedValue=function(t,e,r,o){return((e-r)%o||o)*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}(Ll);It(zl,{addCheckSum:!0});var Nl=Object.assign,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),Nl(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}(Ll),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),Nl(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,o=Math.max(.15*this.width,24),i=this.maxRatio;if(this.height<o)throw new Error("Insufficient Height. The minimum height for value: "+this.value+" is: "+o);for(t=this.getBaseUnit(i);t<e&&i>r;)i=parseFloat((i-.1).toFixed(1)),t=this.getBaseUnit(i);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=i,this.baseUnit=t,this.patternString=this.patternString.substring(0,this.patternString.length-1),this.pattern=this.pattern.concat(this.patternString.replace(/ratio/g,i).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}(Hl);It(Ul,{addCheckSum:!1});var Fl={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 o=0;o<e.length;o++){var i=e[o];this.addBase(i)}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 o=0;o<this.specialAsciiCodes[t].length;o++)e.push(this.characterMap[this.shiftCharacters[3]]),e.push(this.characterMap[this.specialAsciiCodes[t][o]])}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"]},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),E(this,Fl,{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}(Ul),Wl=Object.assign,Kl=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),Wl(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,o=r.length,i=0;for(e=o-1;e>=0;e--)i+=this.weightedValue(r[e],o-e,this.cCheckSumTotal);for(t=i%this.checkSumMod,i=this.weightedValue(t,1,this.kCheckSumTotal),e=o-1;e>=0;e--)i+=this.weightedValue(r[e],o-e+1,this.kCheckSumTotal);return[t,i%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}(Hl),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),E(this,Fl,{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 o=this._findCharacterByValue(t);this.addPattern(this.characterMap[o].pattern)}}})},e}(Kl),Yl=/^\d+$/,ql=Object.assign,Zl=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),ql(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(Yl.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!pt(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}(Ll),Ql=/^\d+$/,$l=/^[a-z0-9]+$/i,Jl=Object.assign,tc=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}(O.Class),ec=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,o=t.value,i=o.length;if(pt("C",r)){var n=o.substr(t.index).match(/\d{4,}/g);n&&(i=o.indexOf(n[0],t.index))}for(;(e=t.value.charCodeAt(t.index))>=0&&this.isCode(e)&&t.index<i;)this.encoding.addPattern(this.getValue(e)),t.index++},e.prototype._initMoves=function(t){this._moves=[],pt(this.FNC4,t)&&this._moves.push(this._moveFNC),pt(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}(tc),rc={};rc.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),Jl(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}(ec),rc.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),Jl(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}(ec),rc.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),Jl(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=cc(t,e,4);return(e+4<=t.length||2===t.length)&&Ql.test(r)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=cc(t.value,t.index,2))&&Ql.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(tc),rc.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),Jl(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),o=this.encoding,i=r.value.length;if(t.index+=i,i<3)for(;r.index<i;r.index++)e=r.value.charCodeAt(r.index),r.state=this._getSubState(e),r.previousState!==r.state&&(r.previousState=r.state,o[r.state].move(r)),o.addPattern(o[r.state].MOVE),o.addPattern(o[r.state].getValue(e));else r.state!==r.previousState&&o[r.state].move(r),this._pushStart(r),o.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++)pt(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,o="",i=e;(r=t.charCodeAt(i++))&&this.isCode(r);)o+=String.fromCharCode(r-128);return o},e}(tc),rc.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),Jl(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 pt(this.key,this.states)},e.prototype.pushState=function(t){var e,r,o,i=this.encoding,n=t.value.replace(/\s/g,""),s=new RegExp("["+this.startAI+this.endAI+"]","g"),a=t.index,l={state:this.startState};i.addPattern(this.START);for(;;){if(l.index=0,(e=(o=n.charAt(a)===this.startAI?2:0)>0?this.getBySeparator(n,a):this.getByLength(n,a)).ai.length)r=a+o+e.id.length+e.ai.length;else if((r=n.indexOf(this.startAI,a+1))<0){if(a+e.ai.max+e.id.length+o<n.length)throw new Error("Separators are required after variable length identifiers");r=n.length}if(l.value=n.substring(a,r).replace(s,""),this.validate(e,l.value),i.pushData(l,this.dependentStates),r>=n.length)break;a=r,l.state!==this.startState&&(i[this.startState].move(l),l.state=this.startState),e.ai.length||i.addPattern(this.START)}t.index=t.value.length},e.prototype.validate=function(t,e){var r=e.substr(t.id.length),o=t.ai;if(!o.type&&!Ql.test(r))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===o.type&&!$l.test(r))throw new Error("Application identifier "+t.id+" is alphanumeric only but contains non alphanumeric character(s).");if(o.length&&o.length!==r.length)throw new Error("Application identifier "+t.id+" must be "+o.length+" characters long.");if(o.min&&o.min>r.length)throw new Error("Application identifier "+t.id+" must be at least "+o.min+" characters long.");if(o.max&&o.max<r.length)throw new Error("Application identifier "+t.id+" must be at most "+o.max+" characters long.")},e.prototype.getByLength=function(t,e){for(var r,o,i=2;i<=4;i++)if(r=cc(t,e,i),o=this.getApplicationIdentifier(r)||this.getApplicationIdentifier(r.substring(0,r.length-1)))return{id:r,ai:o};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),o=t.indexOf(this.endAI,r),i=t.substring(r+1,o),n=this.getApplicationIdentifier(i)||this.getApplicationIdentifier(i.substr(i.length-1));return n||this.unsupportedAIError(i),{ai:n,id:i}},e.prototype.getApplicationIdentifier=function(t){var e=this.applicationIdentifiers,r=e.multiKey;if(e[t])return e[t];for(var o=0;o<r.length;o++){if(r[o].ids&&pt(t,r[o].ids))return r[o].type;if(r[o].ranges)for(var i=r[o].ranges,n=0;n<i.length;n++)if(i[n][0]<=t&&t<=i[n][1])return r[o].type}},e}(tc);var oc=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),Jl(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 rc[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(),o=0;o<r.length;o++)e=parseInt(r.charAt(o),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}(Ll),ic=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),Jl(this,{name:"Code 128 A",states:["A"]})},e}(oc),nc=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),Jl(this,{name:"Code 128 B",states:["B"]})},e}(oc),sc=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),Jl(this,{name:"Code 128 C",states:["C"]})},e}(oc),ac=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),Jl(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(oc),lc=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),Jl(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(oc);function cc(t,e,r){return t.substring(e,e+r)}var pc=Object.assign,hc=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),pc(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:yc})},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}(Ll),uc=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),pc(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},e}(hc),fc=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),pc(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},e}(hc),dc=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),pc(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(hc),vc=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),pc(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(hc),yc={Modulo10:function(t){var e,r,o,i=[0,""],n=t.length%2;for(e=0;e<t.length;e++)i[(e+n)%2]+=parseInt(t.charAt(e),10);for(o=i[0],r=(2*i[1]).toString(),e=0;e<r.length;e++)o+=parseInt(r.charAt(e),10);return[(10-o%10)%10]},Modulo11:function(t){for(var e,r=0,o=t.length,i=0;i<o;i++)r+=(((o-i)%6||6)+1)*t.charAt(i);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))}},gc=Object.assign,mc=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),gc(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 o=String(t);if(12!==o.length||/\D/.test(o))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=o,this.checksum=this.calculateChecksum(),this.leftKey=o[0],this.leftPart=o.substr(1,6),this.rightPart=o.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(""),o=0;o<r.length;o++)o%2?e+=parseInt(r.charAt(o),10):t+=parseInt(r.charAt(o),10);return(10-(3*t+e)%10)%10},e}(Ll),xc=Object.assign,bc=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),xc(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}(mc),_c={code11:zl,code39:Ul,code39extended:Gl,code93:Kl,code93extended:Xl,code128:ac,code128a:ic,code128b:nc,code128c:sc};_c["gs1-128"]=lc,_c.msimod10=uc,_c.msimod11=fc,_c.msimod1010=dc,_c.msimod1110=vc,_c.postnet=Zl,_c.ean8=bc,_c.ean13=mc;var wc=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&&bt(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 O.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,o=r.value,i=r.text,n=V(i.margin),s=this._getSize(),a=r.border||{},l=this.encoding,c=new $t(0,0,s.width,s.height).unpad(a.width).unpad(r.padding),p=c.height(),h=new O.drawing.Group;return this.contentBox=c,h.append(this._getBackground(s)),i.visible&&(p-=O.drawing.util.measureText(o,{font:i.font}).height+n.top+n.bottom),t=l.encode(o,c.width(),p),i.visible&&(e=o,r.checksum&&bt(l.checksum)&&(e+=" "+l.checksum),h.append(this._getText(e))),this.barHeight=p,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,o=new O.geometry.Size(300,100);return e>0&&(o.width=e),r&&(o.height=r),this.options.width&&(o.width=this.options.width),this.options.height&&(o.height=this.options.height),o},e.prototype.value=function(t){if(!bt(t))return this.options.value;this.options.value=String(t),this.redraw()},e.prototype._getBands=function(t,e){for(var r,o,i=this.contentBox,n=i.x1,s=new O.drawing.Group,a=0;a<t.length;a++){if(r=(o=R(t[a])?t[a]:{width:t[a],y1:0,y2:this.barHeight}).width*e,a%2){var l=O.geometry.Rect.fromPoints(new O.geometry.Point(n,o.y1+i.y1),new O.geometry.Point(n+r,o.y2+i.y1)),c=O.drawing.Path.fromRect(l,{fill:{color:this.options.color},stroke:null});s.append(c)}n+=r}return s},e.prototype._getBackground=function(t){var e=this.options,r=e.border||{},o=new $t(0,0,t.width,t.height).unpad(r.width/2);return O.drawing.Path.fromRect(o.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 _e(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),!_c[this.type])throw new Error("Encoding "+this.type+" is not supported.");this.encoding=new _c[this.type],this.options=E({},this.options,t)},e}(O.Class);It(wc,{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 Cc=wc,Oc=Object.assign;function Pc(t,e){for(var r=[],o=0;o<t.length;)r.push(t.substring(o,o+e)),o+=e;return r}function Sc(t,e){var r=Number(t).toString(2);return r.length<e&&(r=new Array(e-r.length+1).join(0)+r),r}function kc(t){return parseInt(t,2)}var Ac=function(t){function e(e){t.call(this),this.matrix=e,this.row=e.length-1,this.column=e.length-1,this.startColumn=this.column,this.dir=-1,this.c=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(){this.row+=this.dir*this.c,this.c^=1,this.column=this.startColumn-this.c},e.prototype.getNextCell=function(){for(;void 0!==this.matrix[this.row][this.column];)this.move(),(this.row<0||this.row>=this.matrix.length)&&(this.dir=-this.dir,this.startColumn-=8!==this.startColumn?2:3,this.column=this.startColumn,this.row=this.dir<0?this.matrix.length-1:0);return{row:this.row,column:this.column}},e.prototype.getNextRemainderCell=function(){if(this.move(),void 0===this.matrix[this.row][this.column])return{row:this.row,column:this.column}},e}(O.Class),Mc=function(t){function e(e,r){t.call(this),this.dataString=e,this.version=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(O.Class),jc=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.getEncodingResult=function(t,e){var r=function(t){var e,r=[],o=0,i=t;r.push(op(i,8,5,8,e)),e=r[0].mode,i=i.substr(r[0].modeString.length);for(;i.length>0;){var n=op(i,17,9,16,e);n.mode!==e?(e=n.mode,r.push(n),o++):r[o].modeString+=n.modeString,i=i.substr(n.modeString.length)}return r}(t),o=ip(function(t){for(var e,r=0,o=0;o<t.length;o++)e=Ic[t[o].mode],r+=e.getStringBitsLength(t[o].modeString.length);return Math.ceil(r/8)}(r),e),i=function(t,e){for(var r,o="",i=0;i<t.length;i++)r=Ic[t[i].mode],o+=r.encode(t[i].modeString,e);return o}(r,o);return new Mc(i,o)},e}(O.Class),Tc=function(t){function e(){t.call(this),this.initProperties()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Oc(this,{modeIndicator:"",bitsInCharacterCount:[]})},e.prototype.getVersionIndex=function(t){return t<10?0:t>26?2:1},e.prototype.getBitsCharacterCount=function(t){return this.bitsInCharacterCount[this.getVersionIndex(t||40)]},e.prototype.getModeCountString=function(t,e){return this.modeIndicator+Sc(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(O.Class),Ec=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),Oc(this,{bitsInCharacterCount:[10,12,14],modeIndicator:"0001"})},e.prototype.getValue=function(t){return parseInt(t,10)},e.prototype.encode=function(t,e){var r,o=Pc(t,3),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=Sc(o[r],10);return i+Sc(o[r],1+3*o[r].length)},e.prototype.getStringBitsLength=function(t,e){var r=t%3;return 4+this.getBitsCharacterCount(e)+10*Math.floor(t/3)+3*r+(0===r?0:1)},e}(Tc),Rc=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),Oc(this,{characters:{0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,G:16,H:17,I:18,J:19,K:20,L:21,M:22,N:23,O:24,P:25,Q:26,R:27,S:28,T:29,U:30,V:31,W:32,X:33,Y:34,Z:35," ":36,$:37,"%":38,"*":39,"+":40,"-":41,".":42,"/":43,":":44},bitsInCharacterCount:[9,11,13],modeIndicator:"0010"})},e.prototype.getValue=function(t){return this.characters[t]},e.prototype.encode=function(t,e){var r,o=Pc(t,2),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=Sc(45*this.getValue(o[r].charAt(0))+this.getValue(o[r].charAt(1)),11);return i+Sc(2===o[r].length?45*this.getValue(o[r].charAt(0))+this.getValue(o[r].charAt(1)):this.getValue(o[r].charAt(0)),1+5*o[r].length)},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+11*Math.floor(t/2)+t%2*6},e}(Tc),Bc=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),Oc(this,{bitsInCharacterCount:[8,16,16],modeIndicator:"0100"})},e.prototype.getValue=function(t){var e=t.charCodeAt(0);if(e<=127||160<=e&&e<=255)return e;throw new Error("Unsupported character: "+t)},e.prototype.encode=function(t,e){for(var r=this.getModeCountString(t.length,e),o=0;o<t.length;o++)r+=Sc(this.getValue(t.charAt(o)),8);return r},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Tc),Ic={};Ic.numeric=new Ec,Ic.alphanumeric=new Rc,Ic.byte=new Bc;var Dc=function(t){function e(){t.call(this),this.initProperties(),this.mode=Ic[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){Oc(this,{encodingMode:"byte",utfBOM:"111011111011101110111111",initialModeCountStringLength:20,ranges:[128,2048,65536,2097152,67108864]})},e.prototype.getEncodingResult=function(t,e){var r=this.encode(t),o=ip(this.getDataCodewordsCount(r),e),i=this.mode.getModeCountString(r.length/8,o)+r;return new Mc(i,o)},e.prototype.getDataCodewordsCount=function(t){var e=t.length;return Math.ceil((this.initialModeCountStringLength+e)/8)},e.prototype.encode=function(t){for(var e=this.utfBOM,r=0;r<t.length;r++)e+=this.encodeCharacter(t.charCodeAt(r));return e},e.prototype.encodeCharacter=function(t){var e=this.getBytesCount(t),r=e-1,o="";if(1===e)o=Sc(t,8);else{for(var i=8-e,n=0;n<r;n++)o=Sc(t>>6*n&63|128,8)+o;o=(t>>6*r|255>>i<<i).toString(2)+o}return o},e.prototype.getBytesCount=function(t){for(var e=this.ranges,r=0;r<e.length;r++)if(t<e[r])return r+1},e}(O.Class),Lc=[{L:{groups:[[1,19]],totalDataCodewords:19,errorCodewordsPerBlock:7},M:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:10},Q:{groups:[[1,13]],totalDataCodewords:13,errorCodewordsPerBlock:13},H:{groups:[[1,9]],totalDataCodewords:9,errorCodewordsPerBlock:17}},{L:{groups:[[1,34]],totalDataCodewords:34,errorCodewordsPerBlock:10},M:{groups:[[1,28]],totalDataCodewords:28,errorCodewordsPerBlock:16},Q:{groups:[[1,22]],totalDataCodewords:22,errorCodewordsPerBlock:22},H:{groups:[[1,16]],totalDataCodewords:16,errorCodewordsPerBlock:28}},{L:{groups:[[1,55]],totalDataCodewords:55,errorCodewordsPerBlock:15},M:{groups:[[1,44]],totalDataCodewords:44,errorCodewordsPerBlock:26},Q:{groups:[[2,17]],totalDataCodewords:34,errorCodewordsPerBlock:18},H:{groups:[[2,13]],totalDataCodewords:26,errorCodewordsPerBlock:22}},{L:{groups:[[1,80]],totalDataCodewords:80,errorCodewordsPerBlock:20},M:{groups:[[2,32]],totalDataCodewords:64,errorCodewordsPerBlock:18},Q:{groups:[[2,24]],totalDataCodewords:48,errorCodewordsPerBlock:26},H:{groups:[[4,9]],totalDataCodewords:36,errorCodewordsPerBlock:16}},{L:{groups:[[1,108]],totalDataCodewords:108,errorCodewordsPerBlock:26},M:{groups:[[2,43]],totalDataCodewords:86,errorCodewordsPerBlock:24},Q:{groups:[[2,15],[2,16]],totalDataCodewords:62,errorCodewordsPerBlock:18},H:{groups:[[2,11],[2,12]],totalDataCodewords:46,errorCodewordsPerBlock:22}},{L:{groups:[[2,68]],totalDataCodewords:136,errorCodewordsPerBlock:18},M:{groups:[[4,27]],totalDataCodewords:108,errorCodewordsPerBlock:16},Q:{groups:[[4,19]],totalDataCodewords:76,errorCodewordsPerBlock:24},H:{groups:[[4,15]],totalDataCodewords:60,errorCodewordsPerBlock:28}},{L:{groups:[[2,78]],totalDataCodewords:156,errorCodewordsPerBlock:20},M:{groups:[[4,31]],totalDataCodewords:124,errorCodewordsPerBlock:18},Q:{groups:[[2,14],[4,15]],totalDataCodewords:88,errorCodewordsPerBlock:18},H:{groups:[[4,13],[1,14]],totalDataCodewords:66,errorCodewordsPerBlock:26}},{L:{groups:[[2,97]],totalDataCodewords:194,errorCodewordsPerBlock:24},M:{groups:[[2,38],[2,39]],totalDataCodewords:154,errorCodewordsPerBlock:22},Q:{groups:[[4,18],[2,19]],totalDataCodewords:110,errorCodewordsPerBlock:22},H:{groups:[[4,14],[2,15]],totalDataCodewords:86,errorCodewordsPerBlock:26}},{L:{groups:[[2,116]],totalDataCodewords:232,errorCodewordsPerBlock:30},M:{groups:[[3,36],[2,37]],totalDataCodewords:182,errorCodewordsPerBlock:22},Q:{groups:[[4,16],[4,17]],totalDataCodewords:132,errorCodewordsPerBlock:20},H:{groups:[[4,12],[4,13]],totalDataCodewords:100,errorCodewordsPerBlock:24}},{L:{groups:[[2,68],[2,69]],totalDataCodewords:274,errorCodewordsPerBlock:18},M:{groups:[[4,43],[1,44]],totalDataCodewords:216,errorCodewordsPerBlock:26},Q:{groups:[[6,19],[2,20]],totalDataCodewords:154,errorCodewordsPerBlock:24},H:{groups:[[6,15],[2,16]],totalDataCodewords:122,errorCodewordsPerBlock:28}},{L:{groups:[[4,81]],totalDataCodewords:324,errorCodewordsPerBlock:20},M:{groups:[[1,50],[4,51]],totalDataCodewords:254,errorCodewordsPerBlock:30},Q:{groups:[[4,22],[4,23]],totalDataCodewords:180,errorCodewordsPerBlock:28},H:{groups:[[3,12],[8,13]],totalDataCodewords:140,errorCodewordsPerBlock:24}},{L:{groups:[[2,92],[2,93]],totalDataCodewords:370,errorCodewordsPerBlock:24},M:{groups:[[6,36],[2,37]],totalDataCodewords:290,errorCodewordsPerBlock:22},Q:{groups:[[4,20],[6,21]],totalDataCodewords:206,errorCodewordsPerBlock:26},H:{groups:[[7,14],[4,15]],totalDataCodewords:158,errorCodewordsPerBlock:28}},{L:{groups:[[4,107]],totalDataCodewords:428,errorCodewordsPerBlock:26},M:{groups:[[8,37],[1,38]],totalDataCodewords:334,errorCodewordsPerBlock:22},Q:{groups:[[8,20],[4,21]],totalDataCodewords:244,errorCodewordsPerBlock:24},H:{groups:[[12,11],[4,12]],totalDataCodewords:180,errorCodewordsPerBlock:22}},{L:{groups:[[3,115],[1,116]],totalDataCodewords:461,errorCodewordsPerBlock:30},M:{groups:[[4,40],[5,41]],totalDataCodewords:365,errorCodewordsPerBlock:24},Q:{groups:[[11,16],[5,17]],totalDataCodewords:261,errorCodewordsPerBlock:20},H:{groups:[[11,12],[5,13]],totalDataCodewords:197,errorCodewordsPerBlock:24}},{L:{groups:[[5,87],[1,88]],totalDataCodewords:523,errorCodewordsPerBlock:22},M:{groups:[[5,41],[5,42]],totalDataCodewords:415,errorCodewordsPerBlock:24},Q:{groups:[[5,24],[7,25]],totalDataCodewords:295,errorCodewordsPerBlock:30},H:{groups:[[11,12],[7,13]],totalDataCodewords:223,errorCodewordsPerBlock:24}},{L:{groups:[[5,98],[1,99]],totalDataCodewords:589,errorCodewordsPerBlock:24},M:{groups:[[7,45],[3,46]],totalDataCodewords:453,errorCodewordsPerBlock:28},Q:{groups:[[15,19],[2,20]],totalDataCodewords:325,errorCodewordsPerBlock:24},H:{groups:[[3,15],[13,16]],totalDataCodewords:253,errorCodewordsPerBlock:30}},{L:{groups:[[1,107],[5,108]],totalDataCodewords:647,errorCodewordsPerBlock:28},M:{groups:[[10,46],[1,47]],totalDataCodewords:507,errorCodewordsPerBlock:28},Q:{groups:[[1,22],[15,23]],totalDataCodewords:367,errorCodewordsPerBlock:28},H:{groups:[[2,14],[17,15]],totalDataCodewords:283,errorCodewordsPerBlock:28}},{L:{groups:[[5,120],[1,121]],totalDataCodewords:721,errorCodewordsPerBlock:30},M:{groups:[[9,43],[4,44]],totalDataCodewords:563,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[1,23]],totalDataCodewords:397,errorCodewordsPerBlock:28},H:{groups:[[2,14],[19,15]],totalDataCodewords:313,errorCodewordsPerBlock:28}},{L:{groups:[[3,113],[4,114]],totalDataCodewords:795,errorCodewordsPerBlock:28},M:{groups:[[3,44],[11,45]],totalDataCodewords:627,errorCodewordsPerBlock:26},Q:{groups:[[17,21],[4,22]],totalDataCodewords:445,errorCodewordsPerBlock:26},H:{groups:[[9,13],[16,14]],totalDataCodewords:341,errorCodewordsPerBlock:26}},{L:{groups:[[3,107],[5,108]],totalDataCodewords:861,errorCodewordsPerBlock:28},M:{groups:[[3,41],[13,42]],totalDataCodewords:669,errorCodewordsPerBlock:26},Q:{groups:[[15,24],[5,25]],totalDataCodewords:485,errorCodewordsPerBlock:30},H:{groups:[[15,15],[10,16]],totalDataCodewords:385,errorCodewordsPerBlock:28}},{L:{groups:[[4,116],[4,117]],totalDataCodewords:932,errorCodewordsPerBlock:28},M:{groups:[[17,42]],totalDataCodewords:714,errorCodewordsPerBlock:26},Q:{groups:[[17,22],[6,23]],totalDataCodewords:512,errorCodewordsPerBlock:28},H:{groups:[[19,16],[6,17]],totalDataCodewords:406,errorCodewordsPerBlock:30}},{L:{groups:[[2,111],[7,112]],totalDataCodewords:1006,errorCodewordsPerBlock:28},M:{groups:[[17,46]],totalDataCodewords:782,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[16,25]],totalDataCodewords:568,errorCodewordsPerBlock:30},H:{groups:[[34,13]],totalDataCodewords:442,errorCodewordsPerBlock:24}},{L:{groups:[[4,121],[5,122]],totalDataCodewords:1094,errorCodewordsPerBlock:30},M:{groups:[[4,47],[14,48]],totalDataCodewords:860,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[14,25]],totalDataCodewords:614,errorCodewordsPerBlock:30},H:{groups:[[16,15],[14,16]],totalDataCodewords:464,errorCodewordsPerBlock:30}},{L:{groups:[[6,117],[4,118]],totalDataCodewords:1174,errorCodewordsPerBlock:30},M:{groups:[[6,45],[14,46]],totalDataCodewords:914,errorCodewordsPerBlock:28},Q:{groups:[[11,24],[16,25]],totalDataCodewords:664,errorCodewordsPerBlock:30},H:{groups:[[30,16],[2,17]],totalDataCodewords:514,errorCodewordsPerBlock:30}},{L:{groups:[[8,106],[4,107]],totalDataCodewords:1276,errorCodewordsPerBlock:26},M:{groups:[[8,47],[13,48]],totalDataCodewords:1e3,errorCodewordsPerBlock:28},Q:{groups:[[7,24],[22,25]],totalDataCodewords:718,errorCodewordsPerBlock:30},H:{groups:[[22,15],[13,16]],totalDataCodewords:538,errorCodewordsPerBlock:30}},{L:{groups:[[10,114],[2,115]],totalDataCodewords:1370,errorCodewordsPerBlock:28},M:{groups:[[19,46],[4,47]],totalDataCodewords:1062,errorCodewordsPerBlock:28},Q:{groups:[[28,22],[6,23]],totalDataCodewords:754,errorCodewordsPerBlock:28},H:{groups:[[33,16],[4,17]],totalDataCodewords:596,errorCodewordsPerBlock:30}},{L:{groups:[[8,122],[4,123]],totalDataCodewords:1468,errorCodewordsPerBlock:30},M:{groups:[[22,45],[3,46]],totalDataCodewords:1128,errorCodewordsPerBlock:28},Q:{groups:[[8,23],[26,24]],totalDataCodewords:808,errorCodewordsPerBlock:30},H:{groups:[[12,15],[28,16]],totalDataCodewords:628,errorCodewordsPerBlock:30}},{L:{groups:[[3,117],[10,118]],totalDataCodewords:1531,errorCodewordsPerBlock:30},M:{groups:[[3,45],[23,46]],totalDataCodewords:1193,errorCodewordsPerBlock:28},Q:{groups:[[4,24],[31,25]],totalDataCodewords:871,errorCodewordsPerBlock:30},H:{groups:[[11,15],[31,16]],totalDataCodewords:661,errorCodewordsPerBlock:30}},{L:{groups:[[7,116],[7,117]],totalDataCodewords:1631,errorCodewordsPerBlock:30},M:{groups:[[21,45],[7,46]],totalDataCodewords:1267,errorCodewordsPerBlock:28},Q:{groups:[[1,23],[37,24]],totalDataCodewords:911,errorCodewordsPerBlock:30},H:{groups:[[19,15],[26,16]],totalDataCodewords:701,errorCodewordsPerBlock:30}},{L:{groups:[[5,115],[10,116]],totalDataCodewords:1735,errorCodewordsPerBlock:30},M:{groups:[[19,47],[10,48]],totalDataCodewords:1373,errorCodewordsPerBlock:28},Q:{groups:[[15,24],[25,25]],totalDataCodewords:985,errorCodewordsPerBlock:30},H:{groups:[[23,15],[25,16]],totalDataCodewords:745,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[3,116]],totalDataCodewords:1843,errorCodewordsPerBlock:30},M:{groups:[[2,46],[29,47]],totalDataCodewords:1455,errorCodewordsPerBlock:28},Q:{groups:[[42,24],[1,25]],totalDataCodewords:1033,errorCodewordsPerBlock:30},H:{groups:[[23,15],[28,16]],totalDataCodewords:793,errorCodewordsPerBlock:30}},{L:{groups:[[17,115]],totalDataCodewords:1955,errorCodewordsPerBlock:30},M:{groups:[[10,46],[23,47]],totalDataCodewords:1541,errorCodewordsPerBlock:28},Q:{groups:[[10,24],[35,25]],totalDataCodewords:1115,errorCodewordsPerBlock:30},H:{groups:[[19,15],[35,16]],totalDataCodewords:845,errorCodewordsPerBlock:30}},{L:{groups:[[17,115],[1,116]],totalDataCodewords:2071,errorCodewordsPerBlock:30},M:{groups:[[14,46],[21,47]],totalDataCodewords:1631,errorCodewordsPerBlock:28},Q:{groups:[[29,24],[19,25]],totalDataCodewords:1171,errorCodewordsPerBlock:30},H:{groups:[[11,15],[46,16]],totalDataCodewords:901,errorCodewordsPerBlock:30}},{L:{groups:[[13,115],[6,116]],totalDataCodewords:2191,errorCodewordsPerBlock:30},M:{groups:[[14,46],[23,47]],totalDataCodewords:1725,errorCodewordsPerBlock:28},Q:{groups:[[44,24],[7,25]],totalDataCodewords:1231,errorCodewordsPerBlock:30},H:{groups:[[59,16],[1,17]],totalDataCodewords:961,errorCodewordsPerBlock:30}},{L:{groups:[[12,121],[7,122]],totalDataCodewords:2306,errorCodewordsPerBlock:30},M:{groups:[[12,47],[26,48]],totalDataCodewords:1812,errorCodewordsPerBlock:28},Q:{groups:[[39,24],[14,25]],totalDataCodewords:1286,errorCodewordsPerBlock:30},H:{groups:[[22,15],[41,16]],totalDataCodewords:986,errorCodewordsPerBlock:30}},{L:{groups:[[6,121],[14,122]],totalDataCodewords:2434,errorCodewordsPerBlock:30},M:{groups:[[6,47],[34,48]],totalDataCodewords:1914,errorCodewordsPerBlock:28},Q:{groups:[[46,24],[10,25]],totalDataCodewords:1354,errorCodewordsPerBlock:30},H:{groups:[[2,15],[64,16]],totalDataCodewords:1054,errorCodewordsPerBlock:30}},{L:{groups:[[17,122],[4,123]],totalDataCodewords:2566,errorCodewordsPerBlock:30},M:{groups:[[29,46],[14,47]],totalDataCodewords:1992,errorCodewordsPerBlock:28},Q:{groups:[[49,24],[10,25]],totalDataCodewords:1426,errorCodewordsPerBlock:30},H:{groups:[[24,15],[46,16]],totalDataCodewords:1096,errorCodewordsPerBlock:30}},{L:{groups:[[4,122],[18,123]],totalDataCodewords:2702,errorCodewordsPerBlock:30},M:{groups:[[13,46],[32,47]],totalDataCodewords:2102,errorCodewordsPerBlock:28},Q:{groups:[[48,24],[14,25]],totalDataCodewords:1502,errorCodewordsPerBlock:30},H:{groups:[[42,15],[32,16]],totalDataCodewords:1142,errorCodewordsPerBlock:30}},{L:{groups:[[20,117],[4,118]],totalDataCodewords:2812,errorCodewordsPerBlock:30},M:{groups:[[40,47],[7,48]],totalDataCodewords:2216,errorCodewordsPerBlock:28},Q:{groups:[[43,24],[22,25]],totalDataCodewords:1582,errorCodewordsPerBlock:30},H:{groups:[[10,15],[67,16]],totalDataCodewords:1222,errorCodewordsPerBlock:30}},{L:{groups:[[19,118],[6,119]],totalDataCodewords:2956,errorCodewordsPerBlock:30},M:{groups:[[18,47],[31,48]],totalDataCodewords:2334,errorCodewordsPerBlock:28},Q:{groups:[[34,24],[34,25]],totalDataCodewords:1666,errorCodewordsPerBlock:30},H:{groups:[[20,15],[61,16]],totalDataCodewords:1276,errorCodewordsPerBlock:30}}],Vc={1:0},zc={0:1},Nc={15:20,16:20,18:24,19:24,22:20,24:22,26:24,28:20,30:20,31:24,32:28,33:24,36:18,37:22,39:20,40:24},Hc=[1,0,1,1,1],Uc=[1,0,1],Fc={L:"01",M:"00",Q:"11",H:"10"},Gc=["11101100","00010001"],Wc=[function(t,e){return(t+e)%2==0},function(t){return t%2==0},function(t){return t%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return((t+e)%2+t*e%3)%2==0}],Kc=/^\d+/,Xc=new RegExp("^[A-Z $%*+./:-]+"),Yc=new RegExp("^[A-Z0-9 $%*+./:-]+"),qc=new RegExp("^[^A-Z0-9 $%*+./:-]+"),Zc=[[1,0],[1,25,0]];function Qc(t,e,r,o){for(var i=0;i<t.length;i++)t[i][r][o]=e}function $c(t,e,r,o){for(var i=0;i<Wc.length;i++)t[i][r][o]=Wc[i](r,o)?1^e:parseInt(e,10)}function Jc(t,e){for(var r=[],o=t.length-2;o>=0;o--)r[o]=t[o]^e[o];return r}function tp(t,e){for(var r=[],o=0;o<t.length;o++)for(var i=0;i<e.length;i++)void 0===r[o+i]?r[o+i]=(t[o]+(e[i]>=0?e[i]:0))%255:r[o+i]=Vc[zc[r[o+i]]^zc[(t[o]+e[i])%255]];return r}function ep(t,e){var r=[],o=t.length-1;do{r[o]=zc[(t[o]+e)%255],o--}while(void 0!==t[o]);return r}function rp(t,e){var r,o,i=Zc[e-1],n=new Array(e).concat(t),s=new Array(n.length-i.length).concat(i),a=t.length,l=[];for(o=0;o<a;o++)r=ep(s,Vc[n[n.length-1]]),s.splice(0,1),n=Jc(r,n);for(o=n.length-1;o>=0;o--)l[e-1-o]=Sc(n[o],8);return l}function op(t,e,r,o,i){var n,s,a=Kc.exec(t),l=a?a[0]:"",c=Xc.exec(t),p=c?c[0]:"",h=Yc.exec(t),u=h?h[0]:"";return l&&(l.length>=e||t.length===l.length||l.length>=r&&!Yc.test(t.charAt(l.length)))?(n="numeric",s=l):u&&(t.length===u.length||u.length>=o||"alphanumeric"===i)?(n="alphanumeric",s=l||p):(n="byte",s=u?u+qc.exec(t.substring(u.length))[0]:qc.exec(t)[0]),{mode:n,modeString:s}}function ip(t,e){var r=0,o=Lc.length-1,i=Math.floor(Lc.length/2);do{t<Lc[i][e].totalDataCodewords?o=i:r=i,i=r+Math.floor((o-r)/2)}while(o-r>1);return t<=Lc[r][e].totalDataCodewords?i+1:o+1}function np(t,e,r){var o=kc(e),i=e.length-1,n=t<<i,s=Sc(t,r-i),a=function(t,e){var r=e.toString(2).length,o=t.toString(2).length,i=t;do{o=(i^=e<<o-r).toString(2).length}while(o>=r);return i}(n,o);return a=s+Sc(a,i)}function sp(t,e){return parseInt(t.charAt(e),10)}function ap(t,e){var r,o,i=t[0],n=0,s=e.length;for(r=0,o=8;r<=8;r++)6!==r&&Qc(t,sp(e,s-1-n++),r,o);for(r=8,o=7;o>=0;o--)6!==o&&Qc(t,sp(e,s-1-n++),r,o);for(n=0,o=i.length-1,r=8;o>=i.length-8;o--)Qc(t,sp(e,s-1-n++),r,o);for(Qc(t,1,i.length-8,8),r=i.length-7,o=8;r<i.length;r++)Qc(t,sp(e,s-1-n++),r,o)}function lp(t,e){for(var r,o,i,n=t[0].length,s=n-11,a=n-11,l=0;l<e.length;l++)r=Math.floor(l/3),o=l%3,Qc(t,i=sp(e,e.length-l-1),0+r,s+o),Qc(t,i,a+o,0+r)}function cp(t,e,r,o){for(var i,n=e.length+2,s=e.length+1,a=0;a<e.length;a++)for(var l=a;l<n-a;l++)Qc(t,i=e[a],r+l,o+a),Qc(t,i,r+a,o+l),Qc(t,i,r+s-l,o+s-a),Qc(t,i,r+s-a,o+s-l)}function pp(t,e,r,o){var i=r,n=o,s=t[0];do{Qc(t,0,i,o),Qc(t,0,r,n),i+=e[0],n+=e[1]}while(i>=0&&i<s.length)}function hp(t,e,r,o,i){e[t][o]=(e[t][o]<<1^i)%128,93===e[t][o]&&(r[t]+=40)}function up(t,e,r,o,i,n){r[t][n]===o?i[t][n]++:(r[t][n]=o,i[t][n]>=5&&(e[t]+=3+i[t][n]-5),i[t][n]=1)}function fp(t,e){var r=Math.floor(t/e*100),o=r%5,i=Math.abs(r-o-50),n=Math.abs(r+5-o-50);return 10*Math.min(i/5,n/5)}function dp(t,e,r){var o=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new Dc:new jc}(r).getEncodingResult(t,e),i=o.version,n=Lc[i-1][e],s=function(t,e){for(var r,o,i,n,s,a=0,l=[],c=[],p=e.groups,h=0;h<p.length;h++){i=p[h][0];for(var u=0;u<i;u++){o=p[h][1],r=[],n=[];for(var f=1;f<=o;f++)s=t.substring(a,a+8),r.push(s),n[o-f]=kc(s),a+=8;l.push(r),c.push(rp(n,e.errorCodewordsPerBlock))}}return[l,c]}(function(t,e){for(var r=8*e,o=0,i=0,n=t;n.length<r&&o<"0000".length;)n+="0000".charAt(o++);for(n.length%8!=0&&(n+=new Array(9-n.length%8).join("0"));n.length<r;)n+=Gc[i],i^=1;return n}(o.dataString,n.totalDataCodewords),n),a=function(t){for(var e=[],r=17+4*t,o=0;o<Wc.length;o++){e[o]=new Array(r);for(var i=0;i<r;i++)e[o][i]=new Array(r)}return e}(i);!function(t){var e=t[0].length;cp(t,Hc,0,0),pp(t,[-1,-1],7,7),cp(t,Hc,e-7,0),pp(t,[1,-1],e-8,7),cp(t,Hc,0,e-7),pp(t,[-1,1],7,e-8)}(a),function(t,e){if(!(e<2)){var r,o,i=t[0],n=i.length,s=Math.floor(e/7),a=[6],l=0;for((r=Nc[e])?o=(n-13-r)/s:r=o=(n-13)/(s+1),a.push(a[l++]+r);a[l]+o<n;)a.push(a[l++]+o);for(var c=0;c<a.length;c++)for(var p=0;p<a.length;p++)void 0===i[a[c]][a[p]]&&cp(t,Uc,a[c]-2,a[p]-2)}}(a,i),function(t){for(var e=1,r=t[0].length,o=8;o<r-8;o++)Qc(t,e,6,o),Qc(t,e,o,6),e^=1}(a),i>=7&&lp(a,Sc(0,18)),ap(a,Sc(0,15)),function(t,e){for(var r,o,i,n=new Ac(t[0]),s=0;s<e.length;s++)for(r=e[s],o=0;r.length>0;){for(var a=0;a<r.length;a++)for(var l=0;l<8;l++)i=n.getNextCell(),$c(t,r[a][o].charAt(l),i.row,i.column);for(o++;r[0]&&o===r[0].length;)r.splice(0,1)}for(;i=n.getNextRemainderCell();)$c(t,0,i.row,i.column)}(a,s);var l=function(t){var e,r,o=[],i=[],n=[],s=[],a=[],l=t[0].length;for(r=0;r<t.length;r++)o[r]=0,n[r]=0,a[r]=[0,0],s[r]=[0,0],i[r]=[];for(var c=0;c<l;c++)for(var p=0;p<l;p++)for(var h=0;h<t.length;h++)e=t[h],n[h]+=parseInt(e[c][p],10),i[h][0]===e[c][p]&&c+1<l&&p-1>=0&&e[c+1][p]===i[h][0]&&e[c+1][p-1]===i[h][0]&&(o[h]+=3),hp(h,s,o,0,e[c][p]),hp(h,s,o,1,e[p][c]),up(h,o,i,e[c][p],a,0),up(h,o,i,e[p][c],a,1);var u,f=l*l,d=Number.MAX_VALUE;for(r=0;r<o.length;r++)o[r]+=fp(n[r],f),o[r]<d&&(d=o[r],u=r);return u}(a),c=a[l];return i>=7&&lp([c],function(t){return np(t,"1111100100101",18)}(i)),ap([c],function(t){var e,r="";if(0===kc(t))return"101010000010010";e=np(kc(t),"10100110111",15);for(var o=0;o<e.length;o++)r+=e.charAt(o)^"101010000010010".charAt(o);return r}(Fc[e]+Sc(l,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*zc[e-1])>255&&(t^=285),zc[e]=t,Vc[t]=e;t=2*zc[e-1]^285,zc[e]=t,zc[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=Zc[t-1],r=[t,0];Zc[t]=tp(e,r)}}();var vp=Math.round,yp=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],gp=[[0,1],[1,1],[1,0]],mp=200,xp="L",bp="#fff",_p="#000",wp=1,Cp=7,Op=function(t){function e(e,r){t.call(this),this.options=E({},this.options,r),this.element=e,this.wrapper=this.element,this._initElement(),this._initSurface(),this.setOptions(r)}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-qrcode"),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 O.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.redraw=function(){var t=this._getSize();this.surface.clear(),this.surface.setSize({width:t,height:t}),this.createVisual(),this.surface.draw(this.visual)},e.prototype.getSize=function(){var t=this.element,e=t.clientWidth,r=t.clientHeight,o={width:0,height:0};return e>0&&(o.width=e),r&&(o.height=r),o},e.prototype._resize=function(){this.redraw()},e.prototype.createVisual=function(){this.visual=this._render()},e.prototype.exportVisual=function(){return this._render()},e.prototype._render=function(){var t,e,r,o,i,n=this._value,s=this.options.border||{},a=this.options.padding||0,l=s.width||0;s.width=l;var c=new O.drawing.Group;return n&&(r=dp(n,this.options.errorCorrection,this.options.encoding),i=(o=this._getSize())-2*(l+a),t=this._calculateBaseUnit(i,r.length),e=l+a+(i-r.length*t)/2,c.append(this._renderBackground(o,s)),c.append(this._renderMatrix(r,t,e)),this._hasCustomLogo()?c.append(this._renderLogo(o,t)):this._isSwiss()&&c.append(this._renderSwissCode(o,t))),c},e.prototype._renderLogo=function(t,e){var r,o=vp(t/2),i=this._getLogoSize(e*Cp),n=this.options.overlay.imageUrl,s={x:o-i.width/2,y:o-i.height/2};return r=new O.geometry.Rect(new O.geometry.Point(s.x,s.y),new O.geometry.Size(i.width,i.height)),new O.drawing.Image(n,r)},e.prototype._renderSwissCode=function(t,e){var r=this._getLogoSize(e*Cp),o=(r=Math.max(r.width,r.height))/4,i=o/2,n=t/2,s={},a=new O.drawing.Group;return s.x=s.y=Math.ceil(n-e-r/2),a.append(this._renderShape(s,Math.ceil(r+2*e),gp,"#fff")),s.x=s.y=n-r/2,a.append(this._renderShape(s,r,gp,this.options.color)),s.x=n+i-r/2,s.y=n+i+o-r/2,a.append(this._renderShape(s,o,yp,"#fff")),a},e.prototype._renderShape=function(t,e,r,o){var i=new O.drawing.MultiPath({fill:{color:o},stroke:null});i.moveTo(t.x,t.y);for(var n=0;n<r.length;n++)i.lineTo(t.x+e*r[n][0],t.y+e*r[n][1]);return i.close(),i},e.prototype._getSize=function(){var t;if(this.options.size)t=parseInt(this.options.size,10);else{var e=this.element,r=Math.min(e.clientWidth,e.clientHeight);t=r>0?r:mp}return t},e.prototype._calculateBaseUnit=function(t,e){var r=Math.floor(t/e);if(r<wp)throw new Error("Insufficient size.");return r*e>=t&&r-1>=wp&&r--,r},e.prototype._renderMatrix=function(t,e,r){for(var o=new O.drawing.MultiPath({fill:{color:this.options.color},stroke:null}),i=0;i<t.length;i++)for(var n=r+i*e,s=0;s<t.length;){for(;0===t[i][s]&&s<t.length;)s++;if(s<t.length){for(var a=s;1===t[i][s];)s++;var l=vp(r+a*e),c=vp(n),p=vp(r+s*e),h=vp(n+e);o.moveTo(l,c).lineTo(l,h).lineTo(p,h).lineTo(p,c).close()}}return o},e.prototype._renderBackground=function(t,e){var r=new $t(0,0,t,t).unpad(e.width/2);return O.drawing.Path.fromRect(r.toRect(),{fill:{color:this.options.background},stroke:{color:e.color,width:e.width}})},e.prototype.setOptions=function(t){var e=t||{};this.options=Oc(this.options,e),void 0!==t.value&&(this._value=String(this.options.value)),this.redraw()},e.prototype.value=function(t){if(void 0===t)return this._value;this._value=String(t),this.redraw()},e.prototype._hasCustomLogo=function(){return Boolean(this.options.overlay.imageUrl)},e.prototype._isSwiss=function(){return"swiss"===this.options.overlay.type},e.prototype._getLogoSize=function(t){var e=this.options.overlay.width,r=this.options.overlay.height;return e||r?e&&!r?r=e:!e&&r&&(e=r):e=r=t,{width:e,height:r}},e}(O.Class);It(Op,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:xp,background:bp,color:_p,size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});var Pp=Op,Sp="Arial, Helvetica, sans-serif",kp="12px "+Sp,Ap="16px "+Sp,Mp=function(){return{icon:{border:{width:1}},label:{font:kp,padding:3},line:{length:10,width:2},visible:!0}},jp=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:Mp(),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}}},Tp=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:kp},notes:Mp(),title:{font:Ap,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:jp(t),title:{font:Ap},legend:{labels:{font:kp}}}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(1);e.ChartContext=o.createContext(null),e.ChartContext.displayName="ChartContext"},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(9),l=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.optionsStore=r.optionsStore,o}return i(e,t),e.prototype.renderChildren=function(t,e){var r=t.props.children,o=this.props,i=o._chartKey,a=o._parentStore,l=n({},t.props,{_chartCollectionIdxKey:i+"_"+e,_parentStore:a});return s.cloneElement(t,l,r)},e.prototype.render=function(){var t=this,e=this.props,r=e._chartKey,o=e._parentStore,i=e.children;return(o||this.optionsStore).dispatch({chartKey:r,payload:[]}),s.Children.map(i,(function(e,r){return s.isValidElement(e)?t.renderChildren(e,r):e}))},e.contextType=a.ChartContext,e}(s.Component);e.default=l},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(3),l=r(48),c=r(8),p=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),C=r(60),O=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 o={},i=t.seriesIndex,n=t.pointIndex,s=e[i];if(void 0===n)o=Object.assign({},s,{visible:m.toggle(s.visible)});else{var a=s.pointVisibility=s.pointVisibility||[];a[n]=m.toggle(a[n]),o=Object.assign({},s)}r.optionsStore.dispatch({chartCollectionIdxKey:"series_"+i,payload:o}),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(C.packageMetadata),r.optionsStore=y.default(g.optionsReducer),r.observersStore=y.default(g.observersReducer),r.childrenObserver=new c.InstanceObserver(r,{onMouseLeave:"onChildMouseLeave"}),r.contextValue={optionsStore:r.optionsStore,observersStore:r.observersStore,childrenObserver:r.childrenObserver},r.themeStore=y.default(g.themeReducer),r.chartObserver=new c.InstanceObserver(r,{render:"onRender",legendItemClick:"onLegendItemClick"}),r}return i(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,o=(e.children,n(e,["dir","children"]));if(null!==this.chartInstance){var i=l.provideIntlService(this),s=this.chartInstance.chartService,a=i.locale!==s._intlService.locale,c=Object.entries(t).filter((function(t){return"dir"!==t[0]&&"children"!==t[0]})).some((function(t){var e=t[0],r=t[1];return!(o.hasOwnProperty(e)&&o[e]===r)}));a&&(this.chartInstance.chartService._intlService=i,this.chartInstance.chartService.format._intlService=i,c||this.chartInstance.noTransitionsRedraw()),c&&this.refresh(),t.dir!==r&&this.chartInstance.setDirection(this.getDirection(r))}},e.prototype.render=function(){var t=this,e=this.props,r=e.style,o=void 0===r?{}:r,i=e.className,n=e.wrapper,a=e.children,l=Object.assign({},o,{position:"relative"}),c=s.createElement(n,{className:i,style:l,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"}),c)},e.prototype.getDirection=function(t){var e=this;return"rtl"===(void 0!==t?t:p.canUseDOM&&window.getComputedStyle(e.element).direction||"ltr")},e.prototype.getChartOptions=function(){var t=this.props,e=t.renderAs,r=t.pannable,o=t.zoomable,i=t.paneDefaults,n=t.panes,s=t.transitions,a=t.seriesColors,l=t.seriesDefaults,c=t.axisDefaults,p=t.deriveOptionsFromParent,h={};return void 0!==e&&(h.renderAs=e),void 0!==r&&(h.pannable=r),void 0!==o&&(h.zoomable=o),void 0!==i&&(h.paneDefaults=i),void 0!==n&&(h.panes=n),void 0!==s&&(h.transitions=s),void 0!==a&&(h.seriesColors=a),void 0!==l&&(h.seriesDefaults=l),void 0!==c&&(h.axisDefaults=c),h=Object.assign(h,this.optionsStore.getState()),p&&(h=p(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,o=this.getChartOptions();this.chartInstance=new r(this.element,o,this.themeStore.getState(),{rtl:this.getDirection(e),intlService:l.provideIntlService(this),observer:this.chartObserver,sender:this})},e.prototype.trigger=function(t,e){for(var r=this.props.getTarget(),o=f.create(t,e,r),i="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&&o&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,o),o.isDefaultPrevented&&o.isDefaultPrevented()):s},e.prototype.requiresHandlers=function(t){for(var e=0;e<t.length;e++){var r=t[e],o="on"+r.charAt(0).toUpperCase()+r.slice(1);if(this.props.hasOwnProperty(o))return!0}return!1},e.prototype.triggerDomEvent=function(t,e){for(var r=this.observersStore.getState(),o=!1,i=0;i<r.length;i++)r[i].trigger(t,e)&&(o=!0);return o},e.propTypes={dir:a.string,renderAs:a.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(s.Component);e.BaseChart=O,l.registerForIntl(O),c.DomEventsBuilder.register(u.DomEventsBuilder)},function(t,e){t.exports=o},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axis=e.axis,o.dataItem=e.dataItem,o.index=e.index,o.text=e.text,o.value=e.value,o}return i(e,t),e}(r(5).BaseEvent);e.AxisLabelClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(7).PreventableEvent);e.DragEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(5).BaseEvent);e.DragEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(7).PreventableEvent);e.DragStartEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(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 o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(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 o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(5).BaseEvent);e.NavigatorFilterEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.series=e.series,o.value=e.value,o.visual=e.visual,o}return i(e,t),e}(r(5).BaseEvent);e.NoteClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.series=e.series,o.value=e.value,o.visual=e.visual,o}return i(e,t),e}(r(5).BaseEvent);e.NoteHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.category=e.category,o.nativeEvent=e.originalEvent,o.value=e.value,o.x=e.x,o.y=e.y,o}return i(e,t),e}(r(5).BaseEvent);e.PlotAreaClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.category=e.category,o.nativeEvent=e.originalEvent,o.value=e.value,o.x=e.x,o.y=e.y,o}return i(e,t),e}(r(5).BaseEvent);e.PlotAreaHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 i(e,t),e}(r(5).BaseEvent);e.RenderEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(7).PreventableEvent);e.SelectEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(5).BaseEvent);e.SelectEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axis=e.axis,o.from=e.from,o.to=e.to,o}return i(e,t),e}(r(7).PreventableEvent);e.SelectStartEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.category=e.category,o.dataItem=e.dataItem,o.nativeEvent=e.originalEvent,o.percentage=e.percentage,o.point=e.point,o.series=e.series,o.stackValue=e.stackValue,o.value=e.value,o}return i(e,t),e}(r(5).BaseEvent);e.SeriesClickEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.category=e.category,o.categoryPoints=e.categoryPoints,o.dataItem=e.dataItem,o.nativeEvent=e.originalEvent,o.percentage=e.percentage,o.point=e.point,o.series=e.series,o.stackValue=e.stackValue,o.value=e.value,o}return i(e,t),e}(r(7).PreventableEvent);e.SeriesHoverEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.delta=e.delta,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(7).PreventableEvent);e.ZoomEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(5).BaseEvent);e.ZoomEndEvent=n},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.axisRanges=e.axisRanges,o.nativeEvent=e.originalEvent,o}return i(e,t),e}(r(7).PreventableEvent);e.ZoomStartEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t,e){this.sender=t,this.syntheticEvent=e};e.DomEvent=o,e.toDomEvent=function(t,e){return new o(t,e)}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(4);e.THROTTLE_MS=1e3/60;e.default=function(t){var r,i,n=[],s=function(s){r=t(r,s),o.canUseDOM&&(window.clearTimeout(i),i=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?o.collectionConfigurationItem(t,e):e.chartKey?o.configurationItem(t,e):{}};e.themeReducer=function(t,e){if(!e.type)return{};switch(e.type){case"set":return o.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 o={configurationItem:function(t,e){var r;return Object.assign(t,((r={})[e.chartKey]=e.payload,r))},collectionConfigurationItem:function(t,e){var r,o=!1,i=e.chartCollectionIdxKey.split("_"),n=i[0],s=i[1],a=t[n].map((function(t,r){return parseInt(s,10)===r?(o=!0,e.payload):t}));return!1===o&&a.splice(parseInt(s,10),0,e.payload),Object.assign(t,((r={})[n]=a,r))},themeItem:function(t,e){for(var r={},o=Object.assign(r,t),i=e.payload,n=i.field,s=i.value,a=n.split("."),l=a.shift();a.length>0;)r=r[l]=r[l]||{},l=a.shift();return r[l]=s,o}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=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=o},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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),l=r(6),c=r(182),p=r(9),h={horizontal:"fit",vertical:"fit"},u="k-chart-tooltip",f=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.onChartMouseLeave=function(t){var e=t.syntheticEvent;return!!l.hasParent(e.relatedTarget,o.element)},o.onMouseLeave=function(t){var e=a.toDomEvent(o,t);o.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},o.chartObserver=new s.InstanceObserver(o,{onMouseLeave:"onChartMouseLeave"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(e,t),e.prototype.render=function(){var t=this,e=this.props,r=e.popupShown,o=e.popupAlign,i=e.popupOffset,s=e.popupStyles,a=e.popupContent,l=e.className,p=[u,l].join(" ").trim();return n.createElement(c.Popup,{animate:!1,popupAlign:o,offset:i,show:r,collision:h,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:p,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=p.ChartContext,e}(n.Component);e.TooltipPopup=f},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartCategoryAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartPane",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartSeriesItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartValueAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartXAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartYAxisItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t))};s.displayName="ChartNavigatorSeriesItem",e.default=s},function(t,e){t.exports=i},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(47);e.Chart=i.Chart;var n=r(62);e.Sparkline=n.Sparkline;var s=r(63);e.StockChart=s.StockChart,o(r(64)),o(r(65)),o(r(178)),o(r(180)),o(r(181))},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(11),c=r(61),p=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 i(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,o=e.children,i=e.className,u=s(e,["donutCenterRender","children","className"]);return a.createElement(l.BaseChart,n({},u,{ref:function(e){return t._baseChart=e},chartConstructor:p.Chart,getTarget:this.getTarget,wrapper:"div",className:h.classNames("k-chart k-widget",i)}),o,a.createElement(c.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 o=r(50),i=function(){function t(){}return t.create=function(t,e){if("undefined"!=typeof window){var r=window.Hammer;if(!r)return void 0;var i=new r(t,{recognizers:[[r.Tap],[r.Pan],[r.Pinch],[r.Press,{time:0}]]});return new o.DomEvents(i,e)}},t}();e.DomEventsBuilder=i},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){return{x:{location:t.pageX},y:{location:t.pageY}}};function i(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,i=r[0],n=i.pageX,s=i.pageY,a=0;if(r.length>1){var l=r[0],c=r[1];a=Math.sqrt(Math.pow(l.pageX-c.pageX,2)+Math.pow(l.pageY-c.pageY,2))}return{distance:a,event:t.srcEvent,preventDefault:function(){t.preventDefault()},target:t.target,touches:r.map(o),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],o=Object.keys(r);if(i(o,t))for(var s=0;s<o.length;s++){var a=r[o[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 o=r(13),i=r(14),n=r(15),s=r(16),a=r(17),l=r(18),c=r(52),p=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),C=r(32),O={axisLabelClick:o.AxisLabelClickEvent,drag:i.DragEvent,dragEnd:n.DragEndEvent,dragStart:s.DragStartEvent,legendItemHover:a.LegendItemHoverEvent,legendItemClick:l.LegendItemClickEvent,legendItemLeave:c.LegendItemLeaveEvent,navigatorFilter:p.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:C.ZoomStartEvent};e.create=function(t,e,r){if(O[t])return new O[t](e,r)}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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 o=t.call(this,r)||this;return o.series=e.series,o.seriesIndex=e.seriesIndex,o.pointIndex=e.pointIndex,o.text=e.text,o}return i(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 o=r(8),i=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=i(this.queryStyle("chart-font")),e=i(this.queryStyle("chart-title-font")),r=i(this.queryStyle("chart-pane-title-font")),o=i(this.queryStyle("chart-label-font"));this.setStyle("axisDefaults.labels.font",o),this.setStyle("axisDefaults.notes.label.font",t),this.setStyle("axisDefaults.title.font",t),this.setStyle("legend.labels.font",t),this.setStyle("seriesDefaults.labels.font",o),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")),o=e.reduce((function(t,e){var o=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),i=n(e);return i!==r&&(t[o]=i),t}),[]);this.setStyle("seriesColors",o)},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,o=parseFloat(this.queryStyle(e).opacity);!isNaN(o)&&o<1&&t.forEach((function(t){return r.setStyle("seriesDefaults."+t+".highlight.inactiveOpacity",o)}))},t}();e.loadTheme=function(t,e){var r=new a(t);if("undefined"!=typeof document){var i=r.element=document.createElement("div");i.style.display="none",i.innerHTML=s,document.body.appendChild(i);try{t.dispatch({type:"push",payload:o.chartBaseTheme()}),r.setColors(),r.setFonts(),r.setSeriesColors()}finally{document.body.removeChild(r.element),delete r.element,e()}}else t.dispatch({type:"push",payload:o.chartBaseTheme()})}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(8),i=o.DateCategoryAxis.prototype.options.labels.dateFormats,n=o.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(i,s),Object.assign(n,s)},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(4),c=r(8),p=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 i(e,t),e.prototype.componentDidMount=function(){this.chartObserver=new c.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,o=r.popupContext,i=r.shared,c=r.className,p=s(r,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(i)return null!==t?t(o):a.createElement(h.SharedTooltipContent,n({},o));var r=o.point,s=e.findRenderFunctionByIndex(r.series.index);return null!==s?s(o):null!==t?t(o):a.createElement("span",{dangerouslySetInnerHTML:{__html:o.point.formattedValue}})}:Function.prototype,d=l.classNames(((t={})["k-chart-shared-tooltip"]=i,t["k-chart-tooltip-inverse"]=!!c,t));return a.createElement(u.TooltipPopup,n({},p,{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,o=t.style,i=t.shared,n=t.className;t.crosshair||(e=i?this.createSharedTooltipContext(t):this.createTooltipContext(t),this.setState({popupShown:!0,popupAlign:r.align,popupOffset:r.point,popupContext:e,popupStyles:o,className:n,shared:i}))},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.prototype.createSharedTooltipContext=function(t){var e=t.points,r=t.categoryText,o=e.filter((function(t){return void 0!==t.series.name})).length>0,i=t.series.length>1,n=1;return o&&n++,i&&n++,{categoryText:r,colorMarker:i,colspan:n,nameColumn:o,points:t.points.map((function(e){return new p.TooltipPoint(e,t.format)}))}},e.prototype.createTooltipContext=function(t){var e=t.point,r=t.format;return{point:new p.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 o=r(1);e.SharedTooltipContent=function(t){var e=t.categoryText,r=t.colorMarker,i=t.colspan,n=t.nameColumn,s=t.points;return o.createElement("table",null,o.createElement("thead",null,o.createElement("tr",null,o.createElement("th",{colSpan:i},e))),o.createElement("tbody",null,s.map((function(t,e){return o.createElement("tr",{key:e},r&&o.createElement("td",null,o.createElement("span",{className:"k-chart-shared-tooltip-marker",style:{backgroundColor:t.series.color}})),n&&o.createElement("td",null,t.series.name),o.createElement("td",{dangerouslySetInnerHTML:{__html:t.formattedValue}}))}))))}},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var s=r(1),a=r(58),l=r(59),c=r(9),p=["categoryAxis","valueAxis","xAxis","yAxis"];function h(t){for(var e={},r=0;r<p.length;r++)for(var o=u(t,p[r]),i=0;i<o.length;i++){var n=o[i];e[n.name+n.index]=n}return e}function u(t,e){var r=[];if(t[e])for(var o=[].concat(t[e]),i=0;i<o.length;i++){var n=(o[i].crosshair||{}).tooltip;n&&n.visible&&r.push({index:i,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 i(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(l.CrosshairTooltip,n({},t[e],{key:e}))}));return s.createElement(a.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=c.ChartContext,e}(s.Component);e.CrosshairTooltipContainer=f},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=function(t){return t.children};e.Container=o,o.displayName="Container"},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(4),c=r(8),p=r(37),h=r(9),u=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.state={popupShown:!1},o.chartObserver=new c.InstanceObserver(o,{showTooltip:"onShowTooltip",hideTooltip:"onHideTooltip"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(e,t),e.prototype.render=function(){var t,e=this.state,r=e.popupContend,o=e.className,i=s(e,["popupContend","className"]),c=this.state.popupShown?function(){return r}:Function.prototype,h=l.classNames(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!o,t));return a.createElement(p.TooltipPopup,n({},i,{popupContent:c,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,o=t.className,i=t.crosshair,n=t.axisName,s=t.axisIndex,a=t.value,l=this.props,c=l.name,p=l.index;i&&n===c&&s===p&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:a,popupStyles:r,className:o})},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:1638167575,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 o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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),l=function(t){function e(e,r){var o=t.call(this,e,r)||this;return o.state={donutCenterStyles:null},o.chartObserver=new s.InstanceObserver(o,{render:"onRender"}),r.observersStore.dispatch({type:"add",payload:o.chartObserver}),o}return i(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,o=t.sender._plotArea.charts;if(r&&"donut"===r.type&&0!==o[0].points.length){var i=o[0].points[0].sector,n=i.innerRadius,s=i.center.y-n,a=i.center.x-n,l=2*n;this.setState({donutCenterStyles:{height:l,left:a,top:s,width:l}})}},e.contextType=a.ChartContext,e}(n.Component);e.DonutCenter=l},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(11),c=r(8),p=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,o=r.type,i=r.data,n=Object.assign({},t,{type:o,data:i});return c.Sparkline.normalizeOptions(n)},e.getTarget=function(){return e},e}return i(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,o=(e.type,e.className),i=s(e,["children","type","className"]);return a.createElement(l.BaseChart,n({},i,{ref:function(e){return t._baseChart=e},chartConstructor:c.Sparkline,getTarget:this.getTarget,wrapper:"span",deriveOptionsFromParent:this.deriveOptionsFromParent,className:p.classNames("k-sparkline k-widget",o)}),r)},e}(a.Component);e.Sparkline=h},function(t,e,r){"use strict";var o,i=this&&this.__extends||(o=function(t,e){return(o=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}o(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},s=this&&this.__rest||function(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&(r[o[i]]=t[o[i]])}return r};Object.defineProperty(e,"__esModule",{value:!0});var a=r(1),l=r(11),c=r(8),p=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,o){e.props.partialRedraw?(o.applyOptions(t),o.bindCategories(),o.navigator.redrawSlaves()):o.setOptions(t,r)},e.getTarget=function(){return e},e}return i(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,o=e.className,i=s(e,["children","className"]);return a.createElement(l.BaseChart,n({},i,{ref:function(e){return t._baseChart=e},chartConstructor:c.StockChart,getTarget:this.getTarget,wrapper:"div",deriveOptionsFromParent:this.deriveOptionsFromParent,onRefresh:this.onRefresh,className:p.classNames("k-stockchart k-widget",o)}),r)},e}(a.Component);e.StockChart=u},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(36);e.TooltipPoint=o.TooltipPoint},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(66);e.ChartArea=i.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 l=r(69);e.ChartLegend=l.default;var c=r(70);e.ChartNavigator=c.default;var p=r(39);e.ChartPane=p.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 C=r(80);e.ChartYAxis=C.default;var O=r(43);e.ChartYAxisItem=O.default;var P=r(81);e.ChartZoomable=P.default,o(r(82)),o(r(87)),o(r(96)),o(r(98)),o(r(100)),o(r(104)),o(r(112)),o(r(125)),o(r(133)),o(r(141)),o(r(149))},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"chartArea"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"axisDefaults"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(38),a=r(6),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"legend"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"navigator"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"paneDefaults"}))};s.displayName="ChartPaneDefaults",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(39),a=r(6),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"panes"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"plotArea"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(40),a=r(6),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"seriesDefaults"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(41),a=r(6),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"valueAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(42),a=r(6),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"xAxis"}))};l.prototype={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(43),a=r(6),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"yAxis"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"zoomable"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(83);e.ChartAxisDefaultsTitle=o.default;var i=r(84);e.ChartAxisDefaultsLabels=i.default;var n=r(85);e.ChartAxisDefaultsCrosshair=n.default;var s=r(86);e.ChartAxisDefaultsCrosshairTooltip=s.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartAxisDefaultsTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.displayName="ChartAxisDefaultsLabels",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},s.displayName="ChartAxisDefaultsCrosshair",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},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 o=r(88);e.ChartCategoryAxisCrosshair=o.default;var i=r(89);e.ChartCategoryAxisCrosshairTooltip=i.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 l=r(93);e.ChartCategoryAxisNotesIcon=l.default;var c=r(94);e.ChartCategoryAxisNotesLabel=c.default;var p=r(95);e.ChartCategoryAxisRangeLabels=p.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"rangeLabels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(97);e.ChartPaneTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(99);e.ChartPaneDefaultsTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartPaneDefaultsTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(101);e.ChartLegendItem=o.default;var i=r(102);e.ChartLegendTitle=i.default;var n=r(103);e.ChartLegendInactiveItems=n.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"item"}))};s.displayName="ChartLegendItem",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartLegendTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"inactiveItems"}))};s.displayName="ChartLegendInactiveItems",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(105);e.ChartSeriesDefaultsItemTooltip=o.default;var i=r(106);e.ChartSeriesDefaultsLabels=i.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 l=r(110);e.ChartSeriesDefaultsNotesIcon=l.default;var c=r(111);e.ChartSeriesDefaultsNotesLabel=c.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(113);e.ChartSeriesItemTooltip=o.default;var i=r(114);e.ChartSeriesItemOutliers=i.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 l=r(118);e.ChartSeriesHighlight=l.default;var c=r(119);e.ChartSeriesExtremes=c.default;var p=r(120);e.ChartSeriesErrorBars=p.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 o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(126);e.ChartValueAxisCrosshair=o.default;var i=r(127);e.ChartValueAxisCrosshairTooltip=i.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 l=r(131);e.ChartValueAxisNotesLabel=l.default;var c=r(132);e.ChartValueAxisTitle=c.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartValueAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(134);e.ChartXAxisCrosshair=o.default;var i=r(135);e.ChartXAxisCrosshairTooltip=i.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 l=r(139);e.ChartXAxisNotesLabel=l.default;var c=r(140);e.ChartXAxisTitle=c.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartXAxisTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(142);e.ChartYAxisCrosshair=o.default;var i=r(143);e.ChartYAxisCrosshairTooltip=i.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 l=r(147);e.ChartYAxisNotesLabel=l.default;var c=r(148);e.ChartYAxisTitle=c.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartYAxisTitle",e.default=s},function(t,e,r){"use strict";function o(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,"__esModule",{value:!0});var i=r(150);e.ChartNavigatorCategoryAxis=i.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 l=r(154);e.ChartNavigatorSeries=l.default;var c=r(44);e.ChartNavigatorSeriesItem=c.default,o(r(155)),o(r(163)),o(r(165))},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};s.displayName="ChartNavigatorCategoryAxis",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"hint"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"pane"}))};s.displayName="ChartNavigatorPane",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"select"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(10),s=r(44),a=r(6),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return a.validateChildren(t,e,r,s.default)}},e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(156);e.ChartNavigatorCategoryAxisCrosshair=o.default;var i=r(157);e.ChartNavigatorCategoryAxisCrosshairTooltip=i.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 l=r(161);e.ChartNavigatorCategoryAxisNotesIcon=l.default;var c=r(162);e.ChartNavigatorCategoryAxisNotesLabel=c.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorCategoryAxisTitle",e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(164);e.ChartNavigatorPaneTitle=o.default},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};s.displayName="ChartNavigatorPaneTitle",e.default=s},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(166);e.ChartNavigatorSeriesItemTooltip=o.default;var i=r(167);e.ChartNavigatorSeriesItemOutliers=i.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 l=r(171);e.ChartNavigatorSeriesHighlight=l.default;var c=r(172);e.ChartNavigatorSeriesExtremes=c.default;var p=r(173);e.ChartNavigatorSeriesErrorBars=p.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 o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"outliers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"notes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"markers"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2),s=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};s.defaultProps={visible:!0},e.default=s},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"highlight"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"extremes"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"errorBars"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"from"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"to"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"label"}))}},function(t,e,r){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0});var i=r(1),n=r(2);e.default=function(t){return i.createElement(n.default,o({},t,{_chartKey:"icon"}))}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(179);e.WeekStartDay=o.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 o=r(13);e.AxisLabelClickEvent=o.AxisLabelClickEvent;var i=r(15);e.DragEndEvent=i.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 l=r(17);e.LegendItemHoverEvent=l.LegendItemHoverEvent;var c=r(19);e.NavigatorFilterEvent=c.NavigatorFilterEvent;var p=r(20);e.NoteClickEvent=p.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 lt})),r.d(e,"PopupPropsContext",(function(){return at}));var o=r(1),i=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),l=r(4),c="bottom",p="center",h="middle",u="left",f="right",d="top",v=function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.margin;void 0===n&&(n={});var s=r.horizontal,a=r.vertical,l=i.horizontal,u=i.vertical,d=n.horizontal||0,v=n.vertical||0,y=e.top,g=e.left;return a===c&&(y+=e.height),a!==p&&a!==h||(y+=Math.round(e.height/2)),u===c&&(y-=o.height,v*=-1),u!==p&&u!==h||(y-=Math.round(o.height/2),v*=-1),s===f&&(g+=e.width),s!==p&&s!==h||(g+=Math.round(e.width/2)),l===f&&(g-=o.width,d*=-1),l!==p&&l!==h||(g-=Math.round(o.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=" ",document.body.appendChild(t),x=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return x}function _(t){var e=g(t),r=m(t),o={height:e.innerHeight,width:e.innerWidth};return r.scrollHeight-r.clientHeight>0&&(o.width-=b()),o}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}},C=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||m(t)},O=function(t){return C(t)===t.ownerDocument.body},P=function(t){var e=t.getBoundingClientRect(),r=e.left,o=e.top;return e.height||e.width||(e=function(t){var e=t.style,r=e.display,o=e.left,i=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=o,t.style.position=i,n}(t)),{top:o,left:r,height:e.height,width:e.width}},S=function(t,e){for(var r=[],o=t.parentNode;o&&(r.push(o),o!==e);)o=o.parentNode;return r};function k(t){var e=m(t),r=g(t);return{x:r.pageXOffset||e.scrollLeft||0,y:r.pageYOffset||e.scrollTop||0}}var A=function(t){return t===(t.ownerDocument||{}).body?k(t):{x:t.scrollLeft,y:t.scrollTop}};var M=function(t,e){var r=g(t),o=r.getComputedStyle(t),i=P(t),n=e||C(t),s=t.ownerDocument,a=n!==s.body&&n!==s.documentElement,l={top:0,left:0};if("fixed"!==o.position&&a){var c=r.getComputedStyle(n);(l=P(n)).top+=parseInt(c.borderTopWidth,10),l.left+=parseInt(c.borderLeftWidth,10)}return{top:i.top-l.top,left:i.left-l.left,height:i.height,width:i.width}},j=function(t,e){return t?A(t):function(t){var e=C(t);return e?A(e):{x:0,y:0}}(e)};var T="fit",E="flip",R=function(t,e,r){var o=0;return t+e>r&&(o=r-(t+e)),t<0&&(o=-t),o},B=function(t){var e=t.offset,r=t.size,o=t.anchorSize,i=t.viewPortSize,n=t.anchorAlignPoint,s=t.elementAlignPoint,a=0,l=2*t.margin;if(s!==n&&!(s===p||s===h)&&!(n===p||n===h)){var c=n===d||n===u;e<0&&c?e+(a=r+o+l)+r>i&&(a=0):e>=0&&!c&&(e+r>i&&(a+=-(o+r+l)),e+a<0&&(a=0))}return a},I=function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.collisions,s=t.viewPort,a=t.margin;void 0===a&&(a={});var l=o.top,c=o.left,p=o.height,h=o.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(l,p,u)),n.horizontal===T&&(y+=R(c,h,f)),x&&(g+=B({margin:v,offset:l,size:p,anchorSize:e.height,viewPortSize:u,anchorAlignPoint:r.vertical,elementAlignPoint:i.vertical})),m&&(y+=B({margin:d,offset:c,size:h,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:r.horizontal,elementAlignPoint:i.horizontal}));var b=m&&0!==y,_=x&&0!==g;return{flipped:b||_,flip:{horizontal:b,vertical:_},offset:{left:y,top:g}}},D=function(t){for(var e=[],r=t.parentNode.firstElementChild;r;)r!==t&&e.push(r),r=r.nextElementSibling;return e},L=function(t,e){for(var r,o,i=S(t),n=e;n&&(r=D(n),!(o=i.reduce((function(t,e){return t.concat(r.filter((function(t){return t===e})))}),[])[0]));)n=n.parentElement;return o};var V,z=function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},N=/auto|scroll/,H=function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY},U=Object(l.hasRelativeStackingContext)(),F="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,o=t.anchorAlign,i=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:o,anchorRect:s,elementAlign:i,elementRect:this._dom.offset(r)})},t.prototype.absoluteRect=function(t,e,r){var o=this._dom,i=function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t}(z(o.offset(t),r),o.stackingElementOffset(e)),n=o.stackingElementScroll(e),s=o.addScroll(i,n),a=this.elementScrollPosition(t,e),l=o.removeScroll(s,a);return l.left+=window.scrollX||window.pageXOffset,l.top+=window.scrollY||window.pageYOffset,l},t.prototype.elementScrollPosition=function(t,e){return t?{x:0,y:0}:this._dom.scrollPosition(e)},t.prototype.relativeRect=function(t,e,r){return z(this._dom.position(t,e),r)},t}(),Q=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 l.canUseDOM?window:null},t.prototype.isBodyOffset=function(t){return O(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,o=e.top;t.style.left="0px",t.style.top="0px";var i=P(t);return t.style.left=r,t.style.top=o,i},t.prototype.position=function(t,e){return t&&e?function(t,e,r){void 0===r&&(r=1);var o=e?C(e):null,i=M(t,o),n=i.top,s=i.left,a=i.height,l=i.width,c=j(o,t),p=c.x,h=c.y,u=t.ownerDocument,f=o===u.body||o===u.documentElement?1:r;return{top:n+h*f,left:s+p*f,height:a,width:l}}(t,L(t,e)):null},t.prototype.relativeOffset=function(t,e){return r=this.offset(t),o=e,i=this.isBodyOffset(t),n=r.top,s=r.left,i&&(s=0,n=0),{top:n+o.top,left:s+o.left,height:r.height,width:r.width};var r,o,i,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 I(t)},t.prototype.scrollPosition=function(t){return k(t)},t.prototype.scrollableParents=function(t){return function(t){var e=[];if(!l.canUseDOM)return e;for(var r=t.parentElement;r;)N.test(H(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||!l.canUseDOM)return null;var r=L(t,e);if(!r)return null;var o=[t].concat(S(t,r)).reduce((function(t,e){var r=e.style.zIndex||window.getComputedStyle(e).zIndex,o=parseInt(r,10);return o>t?o:t}),0);return o?o+1:null}(t,e)},t.prototype.zoomLevel=function(){return l.canUseDOM?parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2)):1},t.prototype.isZoomed=function(){return this.zoomLevel()>1},t}(),$=function(){function t(t){this._dom=t}return t.prototype.positionElement=function(t){var e,r,o=t.anchor,i=t.currentLocation,n=t.element,s=t.anchorAlign,a=t.elementAlign,l=t.collisions,c=this._dom,p=t.viewPort||c.stackingElementViewPort(n)||c.windowViewPort(n),h=z(c.offset(o),i),u=(e=c.staticOffset(n),(r=i)?{height:e.height,left:r.left,top:r.top,width:e.width}:e),f=this.elementRect(n,u),d=c.restrictToView({anchorAlign:s,anchorRect:h,collisions:l,elementAlign:a,elementRect:f,viewPort:p});return{flipped:d.flipped,offset:c.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:1638167484,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=(V=function(t,e){return(V=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}V(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,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function rt(t,e){if(t===e)return!0;if(!!t!=!!e)return!1;var r=Object.getOwnPropertyNames(t),o=Object.getOwnPropertyNames(e);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++){var n=r[i];if(t[n]!==e[n])return!1}return!0}var ot,it={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(ot||(ot={}));var nt=function(t){function e(e){var r=t.call(this,e)||this;return r.state={current:ot.hidden,previous:ot.hidden,props:{}},r._popup=null,r.show=function(t){r.setPosition(t),r.animate(t.firstChild,"enter",r.onOpened),r.setState({current:ot.shown,previous:r.state.current})},r.setPosition=function(t){var e=r.props,o=e.anchorAlign,i=e.popupAlign,n=e.collision,s=e.offset,a=e.anchor,l=t.firstElementChild,c=getComputedStyle(l),p=c.width,h=c.height;l.style.position="absolute",l.style.width=p,l.style.height=h;var u=r._alignService.alignElement({anchor:a,element:l,elementAlign:i,anchorAlign:o,offset:s}),f=r._positionService.positionElement({anchor:a,anchorAlign:o,collisions:n,element:l,currentLocation:u,elementAlign:i});f.offset&&(t.style.top=f.offset.top+"px",t.style.left=f.offset.left+"px",l.style.position="",l.style.width="",l.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,o){!function(t,e,r,o,i){if(0===r)return i();var n="k-slide-"+e+"-"+o,l=n+"-active",c=function(){t.removeEventListener("transitionend",c),s(t),i()};t.addEventListener("transitionend",c);var p=t.ownerDocument;if(p){var h=p.defaultView;if(h){var u=function(){s(t),t.classList.add(n),h.requestAnimationFrame((function(){t.style.transitionDuration=r+"ms",t.classList.add(l)}))};a?h.requestAnimationFrame(u):u()}}}(t,r._flipped?"up":"down",r.animationDuration[e],e,o)},r.onClosing=function(t){r.props.show||t.classList.remove("k-animation-container-shown"),r.detachRepositionHandlers()},r.onClosed=function(){r.state.current===ot.hiding&&r.state.previous===ot.shown&&r.setState({current:ot.hidden,previous:r.state.current}),r.props.onClose&&r.props.onClose.call(void 0,{target:r})},Object(l.validatePackage)(J),r._domService=new Q,r._alignService=new Z(r._domService),r._positionService=new $(r._domService),r.reposition=function(t,e,r){var o,i,n,s;void 0===r&&(r={});var a=0;r=r||{};var l=function(){a=!1===r.leading?0:(new Date).getTime(),o=null,s=t.apply(i,n),o||(i=n=null)};return function(){var c=(new Date).getTime();a||!1!==r.leading||(a=c);var p=e-(c-a);return i=this,n=arguments,p<=0||p>e?(o&&(clearTimeout(o),o=null),a=c,s=t.apply(i,n),o||(i=n=null)):o||!1===r.trailing||(o=window.setTimeout(l,p)),s}}(r.reposition.bind(r),1e3/60),r}return tt(e,t),e.getDerivedStateFromProps=function(t,e){var r=t.show,o=t.anchor,i=t.anchorAlign,n=t.appendTo,s=t.collision,a=t.popupAlign,l=t.className,c=t.popupClass,p=t.style,h=t.offset,u=t.contentKey,f=et({},e,{props:{show:r,anchor:o,anchorAlign:i,appendTo:n,collision:s,popupAlign:a,className:l,popupClass:c,style:p,offset:h,contentKey:u}});return t.show?e.current===ot.hidden||e.current===ot.hiding?et({},f,{current:ot.showing,previous:e.current}):e.current===ot.showing?et({},f,{current:ot.shown,previous:e.current}):e.current!==ot.shown||rt(h,e.props.offset)&&rt(i,e.props.anchorAlign)&&rt(n,e.props.appendTo)&&rt(s,e.props.collision)&&rt(a,e.props.popupAlign)&&rt(p,e.props.style)&&o===e.props.anchor&&c===e.props.popupClass&&l===e.props.className?f:et({},f,{current:ot.reposition,previous:e.current}):e.current===ot.hiding||e.current===ot.hidden?et({},f,{current:ot.hidden,previous:e.current}):et({},f,{current:ot.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===ot.showing&&this._popup?this.show(this._popup):this.state.current===ot.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===ot.reposition&&this.state.previous===ot.shown?this.setState({current:ot.shown,previous:this.state.current}):this.state.current===ot.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===ot.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,c=e.id,p=this.props.appendTo?this.props.appendTo:l.canUseDOM?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===ot.reposition&&this.state.previous===ot.shown&&this._popup&&this.setPosition(this._popup);var h=Object.assign({},{position:"absolute"},this.props.style||{}),u=this.state.current===ot.hiding;if((a||u)&&p){var f=o.createElement("div",{className:Object(l.classNames)("k-animation-container","k-animation-container-relative",n),id:c,ref:function(e){return t._popup=e},style:h},o.createElement("div",{className:Object(l.classNames)(s,"k-popup","k-child-animation-container"),style:{transitionDelay:"0ms"}},r));return i.createPortal(f,p)}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:ot.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([F,G]),vertical:n.oneOf([F,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:F,vertical:G},anchorAlign:{horizontal:W,vertical:Y},popupAlign:{horizontal:W,vertical:q},offset:it,animate:!0,show:!1},e}(o.Component),st=function(){return(st=Object.assign||function(t){for(var e,r=1,o=arguments.length;r<o;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},at=o.createContext((function(t){return t})),lt=o.forwardRef((function(t,e){var r=o.useContext(at).call(void 0,t);return o.createElement(nt,st({ref:e},r))}))}])}));
|