@progress/kendo-react-charts 5.0.1 → 5.1.0-dev.202201251934

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("react"),require("@progress/kendo-drawing"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","@progress/kendo-drawing","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl"],e):"object"==typeof exports?exports.KendoReactCharts=e(require("react"),require("@progress/kendo-drawing"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):t.KendoReactCharts=e(t.React,t.KendoDrawing,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=51)}([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)},a=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(0),l=r(39),c=r(40),p=r(9),u=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?s.Children.map(e,(function(e){return s.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,a(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 s.cloneElement(t,r,e)},e.contextType=p.ChartContext,e}(s.Component);e.default=u},function(t,e){t.exports=r},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,a=i;n<a.length;n++){var s=a[n];if(!s.type||s.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(4).BaseEvent);e.PreventableEvent=n},function(t,e,r){"use strict";r.r(e),r.d(e,"autoMajorUnit",(function(){return Dt})),r.d(e,"Point",(function(){return Lt})),r.d(e,"Box",(function(){return zt})),r.d(e,"Ring",(function(){return Ht})),r.d(e,"Sector",(function(){return Ut})),r.d(e,"ShapeBuilder",(function(){return Gt})),r.d(e,"ShapeElement",(function(){return Zt})),r.d(e,"ChartElement",(function(){return Kt})),r.d(e,"BoxElement",(function(){return Yt})),r.d(e,"RootElement",(function(){return te})),r.d(e,"FloatElement",(function(){return re})),r.d(e,"Text",(function(){return ne})),r.d(e,"TextBox",(function(){return le})),r.d(e,"Title",(function(){return pe})),r.d(e,"AxisLabel",(function(){return he})),r.d(e,"Axis",(function(){return Ee})),r.d(e,"Note",(function(){return de})),r.d(e,"CategoryAxis",(function(){return tr})),r.d(e,"DateCategoryAxis",(function(){return cr})),r.d(e,"DateValueAxis",(function(){return mr})),r.d(e,"NumericAxis",(function(){return yr})),r.d(e,"LogarithmicAxis",(function(){return wr})),r.d(e,"PolarAxis",(function(){return kr})),r.d(e,"RadarCategoryAxis",(function(){return Pr})),r.d(e,"RadarNumericAxis",(function(){return Tr})),r.d(e,"RadarLogarithmicAxis",(function(){return Rr})),r.d(e,"CurveProcessor",(function(){return Ir})),r.d(e,"Gradients",(function(){return Qt})),r.d(e,"rectToBox",(function(){return ae})),r.d(e,"ChartAxis",(function(){return Dr})),r.d(e,"ChartPane",(function(){return zr})),r.d(e,"ChartPlotArea",(function(){return Nr})),r.d(e,"findAxisByName",(function(){return Lr})),r.d(e,"Aggregates",(function(){return Fr})),r.d(e,"AreaChart",(function(){return Do})),r.d(e,"AreaSegment",(function(){return Eo})),r.d(e,"AxisGroupRangeTracker",(function(){return Lo})),r.d(e,"Bar",(function(){return Uo})),r.d(e,"BarChart",(function(){return Zo})),r.d(e,"BarLabel",(function(){return zo})),r.d(e,"BoxPlotChart",(function(){return ni})),r.d(e,"BoxPlot",(function(){return oi})),r.d(e,"BubbleChart",(function(){return fi})),r.d(e,"Bullet",(function(){return gi})),r.d(e,"BulletChart",(function(){return xi})),r.d(e,"CandlestickChart",(function(){return ei})),r.d(e,"Candlestick",(function(){return $o})),r.d(e,"CategoricalChart",(function(){return ho})),r.d(e,"CategoricalErrorBar",(function(){return lo})),r.d(e,"CategoricalPlotArea",(function(){return On})),r.d(e,"Chart",(function(){return fs})),r.d(e,"ChartContainer",(function(){return ki})),r.d(e,"ClipAnimation",(function(){return ko})),r.d(e,"ClusterLayout",(function(){return Ko})),r.d(e,"Crosshair",(function(){return Pi})),r.d(e,"CrosshairTooltip",(function(){return Ci})),r.d(e,"DefaultAggregates",(function(){return Ji})),r.d(e,"DonutChart",(function(){return ya})),r.d(e,"DonutPlotArea",(function(){return ga})),r.d(e,"DonutSegment",(function(){return da})),r.d(e,"ErrorBarBase",(function(){return so})),r.d(e,"ErrorRangeCalculator",(function(){return qr})),r.d(e,"Highlight",(function(){return Sn})),r.d(e,"SharedTooltip",(function(){return Kn})),r.d(e,"Legend",(function(){return Ln})),r.d(e,"LegendItem",(function(){return In})),r.d(e,"LegendLayout",(function(){return Bn})),r.d(e,"LineChart",(function(){return To})),r.d(e,"LinePoint",(function(){return go})),r.d(e,"LineSegment",(function(){return xo})),r.d(e,"Pane",(function(){return ji})),r.d(e,"PieAnimation",(function(){return Qn})),r.d(e,"PieChart",(function(){return ua})),r.d(e,"PieChartMixin",(function(){return la})),r.d(e,"PiePlotArea",(function(){return ha})),r.d(e,"PieSegment",(function(){return sa})),r.d(e,"PlotAreaBase",(function(){return Yi})),r.d(e,"PlotAreaEventsMixin",(function(){return qi})),r.d(e,"PlotAreaFactory",(function(){return zn})),r.d(e,"PointEventsMixin",(function(){return fo})),r.d(e,"RangeBar",(function(){return en})),r.d(e,"RangeBarChart",(function(){return on})),r.d(e,"RangeAreaPoint",(function(){return sn})),r.d(e,"RangeAreaChart",(function(){return fn})),r.d(e,"ScatterChart",(function(){return ci})),r.d(e,"ScatterErrorBar",(function(){return ai})),r.d(e,"ScatterLineChart",(function(){return Jn})),r.d(e,"Selection",(function(){return Fn})),r.d(e,"SeriesAggregator",(function(){return Qi})),r.d(e,"SeriesBinder",(function(){return Kr})),r.d(e,"SplineSegment",(function(){return Oo})),r.d(e,"SplineAreaSegment",(function(){return Io})),r.d(e,"StackWrap",(function(){return Yo})),r.d(e,"Tooltip",(function(){return Gn})),r.d(e,"OHLCChart",(function(){return vn})),r.d(e,"OHLCPoint",(function(){return dn})),r.d(e,"WaterfallChart",(function(){return mn})),r.d(e,"WaterfallSegment",(function(){return gn})),r.d(e,"XYPlotArea",(function(){return ra})),r.d(e,"MousewheelZoom",(function(){return Rn})),r.d(e,"ZoomSelection",(function(){return En})),r.d(e,"Pannable",(function(){return jn})),r.d(e,"anyHasZIndex",(function(){return Ao})),r.d(e,"appendIfNotNull",(function(){return Ti})),r.d(e,"areNumbers",(function(){return Jo})),r.d(e,"bindSegments",(function(){return Ri})),r.d(e,"categoriesCount",(function(){return po})),r.d(e,"countNumbers",(function(){return Hr})),r.d(e,"equalsIgnoreCase",(function(){return Bi})),r.d(e,"evalOptions",(function(){return co})),r.d(e,"filterSeriesByType",(function(){return Ii})),r.d(e,"getDateField",(function(){return Di})),r.d(e,"getField",(function(){return Gr})),r.d(e,"hasGradientOverlay",(function(){return No})),r.d(e,"hasValue",(function(){return si})),r.d(e,"isDateAxis",(function(){return Li})),r.d(e,"segmentVisible",(function(){return Ei})),r.d(e,"singleItemOrArray",(function(){return Vi})),r.d(e,"createOutOfRangePoints",(function(){return Ui})),r.d(e,"ChartService",(function(){return Se})),r.d(e,"DomEventsBuilder",(function(){return Ae})),r.d(e,"FormatService",(function(){return we})),r.d(e,"IntlService",(function(){return me})),r.d(e,"TemplateService",(function(){return H})),r.d(e,"Sparkline",(function(){return bs})),r.d(e,"Navigator",(function(){return As})),r.d(e,"NavigatorHint",(function(){return Os})),r.d(e,"StockChart",(function(){return js})),r.d(e,"constants",(function(){return o})),r.d(e,"Gauge",(function(){return Us})),r.d(e,"LinearGauge",(function(){return hl})),r.d(e,"LinearPointer",(function(){return Js})),r.d(e,"ArrowLinearPointer",(function(){return il})),r.d(e,"BarLinearPointer",(function(){return cl})),r.d(e,"LinearScale",(function(){return qs})),r.d(e,"RadialGauge",(function(){return Ml})),r.d(e,"RadialPointer",(function(){return Sl})),r.d(e,"RadialScale",(function(){return xl})),r.d(e,"ArcGauge",(function(){return Dl})),r.d(e,"RangePointer",(function(){return Il})),r.d(e,"ArcScale",(function(){return Tl})),r.d(e,"CircularGauge",(function(){return Ll})),r.d(e,"Barcode",(function(){return Oc})),r.d(e,"barcodeValidator",(function(){return Sc})),r.d(e,"QRCode",(function(){return Ap})),r.d(e,"qrcodeValidator",(function(){return Mp})),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 U})),r.d(e,"getter",(function(){return W})),r.d(e,"grep",(function(){return K})),r.d(e,"hasClasses",(function(){return X})),r.d(e,"HashMap",(function(){return q})),r.d(e,"inArray",(function(){return Z})),r.d(e,"interpolateValue",(function(){return Q})),r.d(e,"InstanceObserver",(function(){return J})),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 tt})),r.d(e,"mousewheelDelta",(function(){return rt})),r.d(e,"FontLoader",(function(){return bt})),r.d(e,"setDefaultOptions",(function(){return _t})),r.d(e,"sparseArrayLimits",(function(){return wt})),r.d(e,"styleValue",(function(){return B})),r.d(e,"find",(function(){return Ct})),r.d(e,"elementScale",(function(){return kt})),r.d(e,"autoTextColor",(function(){return At})),r.d(e,"createHashSet",(function(){return Bt})),r.d(e,"defaultErrorHandler",(function(){return It})),r.d(e,"append",(function(){return it})),r.d(e,"bindEvents",(function(){return nt})),r.d(e,"Class",(function(){return O.Class})),r.d(e,"defined",(function(){return at})),r.d(e,"deg",(function(){return st})),r.d(e,"elementOffset",(function(){return lt})),r.d(e,"elementSize",(function(){return ct})),r.d(e,"eventElement",(function(){return pt})),r.d(e,"eventCoordinates",(function(){return ut})),r.d(e,"last",(function(){return ht})),r.d(e,"limitValue",(function(){return ft})),r.d(e,"logToConsole",(function(){return O.logToConsole})),r.d(e,"objectKey",(function(){return dt})),r.d(e,"rad",(function(){return vt})),r.d(e,"round",(function(){return yt})),r.d(e,"unbindEvents",(function(){return gt})),r.d(e,"valueOrDefault",(function(){return mt})),r.d(e,"chartBaseTheme",(function(){return Ip}));var o={};r.r(o),r.d(o,"NAVIGATOR_AXIS",(function(){return Ss})),r.d(o,"NAVIGATOR_PANE",(function(){return Ps}));var i="arc",n="#000",a="bottom",s="center",l="circle",c="date",p=/\{\d+:?/,u="left",h=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(1);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 a=t[r];t[r]="object"==typeof a&&a||{},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 a=r[n];o[a]=D(a)?parseFloat(i[a]):i[a]}return o}if(R(e))for(var s in e)t.style[s]=B(e[s])}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[a]=r[u]=t:(r.top=t.top||e,r[d]=t[d]||e,r[a]=t[a]||e,r[u]=t[u]||e),r}var z={compile:function(t){return t}},N=function(){};N.register=function(t){z=t},N.compile=function(t){return z.compile(t)};var H=N;function U(t){var e;return void 0===t&&(t={}),t.template?t.template=e=H.compile(t.template):j(t.content)&&(e=t.content),e}var F=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,G={};function W(t){if(G[t])return G[t];var e=[];return t.replace(F,(function(t,r,o,i){e.push(O.drawing.util.defined(r)?r:o||i)})),G[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},G[t]}function K(t,e){for(var r=t.length,o=[],i=0;i<r;i++)e(t[i])&&o.push(t[i]);return o}function X(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}G[void 0]=function(t){return t};var Y=function(){this._map={}};Y.prototype.get=function(t){return this._map[this._key(t)]},Y.prototype.set=function(t,e){this._map[this._key(t)]=e},Y.prototype._key=function(t){return t instanceof Date?t.getTime():t};var q=Y;function Z(t,e){if(e)return-1!==e.indexOf(t)}function Q(t,e,r){return O.drawing.util.round(t+(e-t)*r,3)}var $=function(t,e){this.observer=t,this.handlerMap=E({},this.handlerMap,e)};$.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},$.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)},$.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 J=$;function tt(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 et=O.support.browser||{};function rt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,et.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e=e>0?Math.ceil(e):Math.floor(e)}var ot=O.drawing.util,it=ot.append,nt=ot.bindEvents,at=ot.defined,st=ot.deg,lt=ot.elementOffset,ct=ot.elementSize,pt=ot.eventElement,ut=ot.eventCoordinates,ht=ot.last,ft=ot.limitValue,dt=ot.objectKey,vt=ot.rad,yt=ot.round,gt=ot.unbindEvents,mt=ot.valueOrDefault,xt=function(){};xt.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++,xt.fetchFonts(i,e,r),r.depth--))}))},xt.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()},xt.preloadFonts=function(t,e){var r=[];xt.fetchFonts(t,r),xt.loadFonts(r,e)};var bt=xt;function _t(t,e){var r=t.prototype;r.options?r.options=E({},r.options,e):r.options=e}function wt(t){for(var e=h,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===h?void 0:e,max:r===f?void 0:r}}function Ct(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(e(o,r,t))return o}}var Ot=O.geometry.Matrix,Pt=/matrix\((.*)\)/;function St(t){var e=getComputedStyle(t).transform;return"none"===e?Ot.unit():function(t){var e=t.match(Pt);if(null===e||2!==e.length)return Ot.unit();var r=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Ot,[null].concat(r)))}(e)}function kt(t){if(!t)return Ot.unit();for(var e=St(t),r=t.parentElement;r;){var o=St(r);e=e.multiplyCopy(o),r=r.parentElement}return e.b=e.c=e.e=e.f=0,e}var At=function(t){return new O.Color(t).isDark()?g:n},Mt={},jt=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},Tt={size:{configurable:!0}};jt.prototype.values=function(){return this._values.filter((function(t){return t!==Mt}))},jt.prototype.has=function(t){return void 0!==this._index[t]},jt.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},jt.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Mt,delete this._index[t])},jt.prototype.clear=function(){this._index={},this._values=[]},Tt.size.get=function(){return this._values.length},Object.defineProperties(jt.prototype,Tt);var Et=function(t){this._set=new Set(t)},Rt={size:{configurable:!0}};Et.prototype.values=function(){return Array.from(this._set)},Et.prototype.has=function(t){return this._set.has(t)},Et.prototype.add=function(t){this._set.add(t)},Et.prototype.delete=function(t){this._set.delete(t)},Et.prototype.clear=function(){this._set.clear()},Rt.size.get=function(){return this._set.size},Object.defineProperties(Et.prototype,Rt);function Bt(t){return function(){var t=!1;"function"==typeof Set&&(t=new Set([1]).has(1));return t}()?new Et(t):new jt(t)}function It(t){throw t}function Dt(t,e){var r=yt(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=yt(r/o,10);return yt(o*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),10)}var Lt=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=vt(e),o=Math.cos(r),i=Math.sin(r),n=t.x,a=t.y,s=this.x,l=this.y;return this.x=yt(n+(s-n)*o+(l-a)*i,3),this.y=yt(a+(l-a)*o-(s-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=vt(r);return new e(t.x-o*Math.cos(i),t.y-o*Math.sin(i))},e}(O.Class);function Vt(t,e,r,o,i){var n=vt(i);return new Lt(r+(t-r)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-r)*Math.sin(n)+(e-o)*Math.cos(n))}var zt=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 at(t)&&(this.x1=t,this.x2=this.x1+o),at(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===a?x:m,n=i===x?r:o;if(e===s){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===u?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 Lt(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 Lt(this.x1,this.y1),new Lt(this.x2,this.y1),new Lt(this.x2,this.y2),new Lt(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,a=Vt(0,0,i,n,t),s=Vt(e,0,i,n,t),l=Vt(e,r,i,n,t),c=Vt(0,r,i,n,t);return e=Math.max(a.x,s.x,l.x,c.x)-Math.min(a.x,s.x,l.x,c.x),r=Math.max(a.y,s.y,l.y,c.y)-Math.min(a.y,s.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]();Z(r,[u,v])?(this[o]=t[o],this[i]=this[o]+l):Z(r,[d,a])?(this[i]=t[i],this[o]=this[i]-l):r===s&&(this[o]=t[o]+(t[n]()-l)/2,this[i]=this[o]+l)},e}(O.Class);function Nt(t,e){return t-e}var Ht=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=vt(t),o=Math.cos(r),i=Math.sin(r),n=e?this.innerRadius:this.radius,a=yt(this.center.x-o*n,3),s=yt(this.center.y-i*n,3);return new Lt(a,s)},e.prototype.adjacentBox=function(t,e,r){var o=this.clone().expand(t),i=o.middle(),n=o.point(i),a=e/2,s=r/2,l=Math.sin(vt(i)),c=Math.cos(vt(i)),p=n.x-a,u=n.y-s;return Math.abs(l)<.9&&(p+=a*-c/Math.abs(c)),Math.abs(c)<.9&&(u+=s*-l/Math.abs(l)),new zt(p,u,p+e,u+r)},e.prototype.containsPoint=function(t){var e=this.center,r=this.innerRadius,o=this.radius,i=this.startAngle,n=this.startAngle+this.angle,a=t.x-e.x,s=t.y-e.y,l=new Lt(a,s),c=this.point(i),p=new Lt(c.x-e.x,c.y-e.y),u=this.point(n),h=new Lt(u.x-e.x,u.y-e.y),f=yt(a*a+s*s,3);return(p.equals(l)||S(p,l))&&!S(h,l)&&f>=r*r&&f<=o*o},e.prototype.getBBox=function(){var t,e=new zt(h,h,f,f),r=yt(this.startAngle%360),o=yt((r+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,r,o].sort(Nt),a=n.indexOf(r),s=n.indexOf(o);t=r===o?n:a<s?n.slice(a,s+1):[].concat(n.slice(0,s+1),n.slice(a,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),Ut=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}(Ht),Ft=function(t){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),a=Math.max(t.innerRadius,0),s=new O.geometry.Arc(i,{startAngle:r,endAngle:o,radiusX:n,radiusY:n}),l=O.drawing.Path.fromArc(s,e).close();if(a){s.radiusX=s.radiusY=a;var c=s.pointAt(o);l.lineTo(c.x,c.y),l.arc(o,r,a,a,!0)}else l.lineTo(i.x,i.y);return l},e}(O.Class);Ft.current=new Ft;var Gt=Ft,Wt=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:mt(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):at(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(mt(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 a={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(a)},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(a);at(n.options.zIndex)||(n.options.zIndex=mt(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);Wt.prototype.options={};var Kt=Wt,Xt=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,a=i.height,s=i.shrinkToFit,l=n&&a,c=i.margin,p=i.padding,u=i.border.width,h=function(){o.align(e,m,i.align),o.align(e,x,i.vAlign),o.paddingBox=r.clone().unpad(c).unpad(u)},f=e.clone();l&&(f.x2=f.x1+n,f.y2=f.y1+a),s&&f.unpad(c).unpad(u).unpad(p),t.prototype.reflow.call(this,f),r=l?this.box=new zt(0,0,n,a):this.box,s&&l?(h(),f=this.contentBox=this.paddingBox.clone().unpad(p)):(f=this.contentBox=r.clone(),r.pad(p).pad(u).pad(c),h()),this.translateChildren(r.x1-f.x1+c.left+u+p.left,r.y1-f.y1+c.top+u+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:mt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(Kt);_t(Xt,{align:u,vAlign:v,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var Yt=Xt,qt=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,a=e.height()/2;if(!t.visible||!this.hasBox())return null;var s,c=this.visualStyle();if(r===l)s=new O.drawing.Circle(new O.geometry.Circle([yt(e.x1+n,3),yt(e.y1+a,3)],Math.min(n,a)),c);else if("triangle"===r)s=O.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],c).close();else if("cross"===r)(s=new O.drawing.MultiPath(c)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),s.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var p=e.toRect();if("roundedRect"===r){var u=mt(t.borderRadius,p.width()/5);p.setCornerRadius(u)}s=O.drawing.Path.fromRect(p,c)}return o&&s.transform(O.geometry.transform().rotate(-o,[i.x,i.y])),s.options.zIndex=t.zIndex,s},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}(Yt);_t(qt,{type:l,align:s,vAlign:s});var Zt=qt,Qt={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 $t(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),a=Math.min(t.y1,e.y1),s=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 zt(o,a,i,s),p[1]=new zt(r,s,o,l),p[2]=new zt(i,s,n,l),p[3]=new zt(o,l,i,c),t.x1===r&&t.y1===a||e.x1===r&&e.y1===a?(p[4]=new zt(r,a,o,s),p[5]=new zt(i,l,n,c)):(p[4]=new zt(i,a,n,s),p[5]=new zt(r,l,o,c)),K(p,(function(t){return t.height()>0&&t.width()>0}))[0]}var Jt=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 zt(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=$t(r,e[o].box)||new zt},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=dt(t),i=Qt[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 a=Object.assign({},e[n]);a.offset=(a.offset*(100-r)+r)/100,i.push(a)}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 zt(0,0,t.width,t.height)},e}(Kt);_t(Jt,{width:600,height:400,background:g,border:{color:n,width:0},margin:V(5),zIndex:-2});var te=Jt,ee=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(),a=n.groups,s=n.groupsSize,l=n.maxGroupElementsSize,c=a.length,p=t[r+1]+this.alignStart(s,t[i]());if(c){for(var u=p,h=0;h<c;h++){for(var f=a[h],d=f.groupElements,v=t[e+1],y=d.length,g=0;g<y;g++){var m=d[g],x=this.elementSize(m),b=u+this.alignStart(x[i],f.groupSize),_=new zt;_[r+1]=b,_[r+2]=b+x[i],_[e+1]=v,_[e+2]=v+x[o],m.reflow(_),v+=x[o]+this.elementSpacing}u+=f.groupSize+this.groupSpacing}t[r+1]=p,t[r+2]=p+s,t[e+2]=t[e+1]+l}},e.prototype.alignStart=function(t,e){var r=0,o=this.options.align;return o===d||o===a?r=e-t:o===s&&(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,a=yt(t[r]()),s=e.length,l=[],c=0,p=0,u=0,h=0,f=[],d=0;d<s;d++){var v=e[d];v.box||v.reflow(t);var y=this.elementSize(v);this.options.wrap&&yt(p+i+y[r])>a&&(l.push({groupElements:f,groupSize:c,groupElementsSize:p}),h=Math.max(h,p),u+=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:u+=c,maxGroupElementsSize:h=Math.max(h,p)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Kt);_t(ee,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var re=ee,oe=O.drawing.Text,ie=function(t){function e(e,r){t.call(this,r),this.content=e,this.reflow(new zt)}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 zt(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 oe(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:r,opacity:o},cursor:i})},e}(Kt);_t(ie,{font:"12px sans-serif",color:n});var ne=ie;function ae(t){var e=t.origin,r=t.bottomRight();return new zt(e.x,e.y,r.x,r.y)}var se=/\n/m,le=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 zt)}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(se),r=new re({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 ne(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=ae(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 a=V(r.margin),s=this.box.unpad(a);this.targetBox=e,this.normalBox=s.clone(),(s=this.rotate()).translate(a.left-a.right,a.top-a.bottom),this.rotatedBox=s.clone(),s.pad(a)}},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&&!at(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}(Yt),ce=function(t){function e(e){t.call(this,e),this.append(new le(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}(Kt);_t(ce,{color:n,position:v,align:s,margin:V(5),padding:V(5)});var pe=ce,ue=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 zt)}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:pt(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!==s){var e=this.normalBox.toRect(),r=this.rotationTransform();this.box=ae(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===s)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===a?m:x,p=l===v||l===a?x:m,h=l===v||l===u?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]-h[p]),S=Math.abs(d[p]+_[p]-h[p]);yt(P,10)===yt(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}(le);_t(ue,{_autoReflow:!1});var he=ue,fe=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,a=new zt,s=function(){return t},c=n.size,p=this.fields.text;if(at(i)&&i.visible){var u=U(i);u?p=u(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 le(p,E({},i)),this.label.aliasFor=s,"inside"!==i.position||at(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()),a.wrap(this.label.box))}n.width=r||c||7,n.height=o||c||7;var h=new Zt(E({},n));h.aliasFor=s,this.marker=h,this.append(h),this.label&&this.append(this.label),h.reflow(new zt),this.wrapperBox=a.wrap(h.box)}},e.prototype.reflow=function(t){var e,r,o,i=this.options,n=this.label,s=this.marker,l=this.wrapperBox,c=t.center(),p=i.line.length,h=i.position;i.visible&&(Z(h,[u,d])?h===u?(o=l.alignTo(t,h).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,h).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))):h===a?(o=l.alignTo(t,h).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,h).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))),s&&s.reflow(o),n&&(n.reflow(o),s&&("outside"===i.label.position&&n.box.alignTo(s.box,h),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:pt(t),text:at(e.label)?e.label.text:"",visual:this.visual})},e}(Yt);_t(fe,{icon:{visible:!0,type:l},label:{position:"inside",visible:!0,align:s,vAlign:s},line:{visible:!0},visible:!0,position:v,zIndex:2});var de=fe,ve={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},ye=function(){},ge={implementation:{configurable:!0}};ye.register=function(t){ve=t},ge.implementation.get=function(){return ve},Object.defineProperties(ye,ge);var me=ye,xe=/\{(\d+)(:[^\}]+)?\}/g,be=function(t){this._intlService=t},_e={intl:{configurable:!0}};_e.intl.get=function(){return this._intlService||me.implementation},_e.intl.set=function(t){this._intlService=t},be.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)},be.prototype.localeAuto=function(t,e,r){var o=this.intl;return A(t)&&t.match(p)?t.replace(xe,(function(t,i,n){var a=e[parseInt(i,10)];return o.toString(a,n?n.substring(1):"",r)})):o.toString(e[0],t,r)},Object.defineProperties(be.prototype,_e);var we=be,Ce=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new we(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Oe={intl:{configurable:!0}};Oe.intl.get=function(){return this._intlService||me.implementation},Oe.intl.set=function(t){this._intlService=t,this.format.intl=t},Ce.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},Ce.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(Ce.prototype,Oe);var Pe,Se=Ce,ke=function(){};ke.register=function(t){Pe=t},ke.create=function(t,e){if(Pe)return Pe.create(t,e)};var Ae=ke;function Me(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 je(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 Te=function(t){function e(e,r){void 0===r&&(r=new Se),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:s,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 a={index:n,count:i.max},l=this.createAxisLabel(n,r,a);l&&(this.append(l),this.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=K(this.children,(function(t){return!(t instanceof he)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=K(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,a=t.line.width||0;return r?new zt(i,e.y1,i,e.y2-a):new zt(e.x1,n,e.x2-a,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 le(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 de({value:i.value,text:i.label.text,dataItem:i},i,this.chartService);n.options.visible&&(at(n.options.position)?t.vertical&&!Z(n.options.position,[u,d])?n.options.position=t.reverse?u:d:t.vertical||Z(n.options.position,[v,a])||(n.options.position=t.reverse?a:v):t.vertical?n.options.position=t.reverse?u:d:n.options.position=t.reverse?a: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 a(e,i,a){var s=e.length,l=Math.max(1,i.step);if(i.visible)for(var c=i.skip;c<s;c+=l)at(a)&&c%a==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(Me(n,i)))}a(this.getMajorTickPositions(),e.majorTicks),a(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}),a=K(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],s=0;s<r.length;s++){var l=r[s],c=void 0,p=void 0,h=l.label,f=void 0;if(o?(c=(a||i.axisX).lineBox(),p=t.getSlot(l.from,l.to,!0)):(c=t.getSlot(l.from,l.to,!0),p=(a||i.axisY).lineBox()),h&&(h.vAlign=h.position||u,f=t.createPlotBandLabel(h,l,new zt(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(at(t)&&t.visible){var n=U(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 le(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,a=t.options.line.visible,s=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},u=[],h=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 s=yt(t[n]);Z(s,u)||n%r==0||a&&c===s||(p.position=s,h.append(je(p,e)),u.push(s))}}return f(this.getMajorTickPositions(),o),f(this.getMinorTickPositions(),r,s/i),h.children},e.prototype.reflow=function(t){for(var e=this.options,r=this.labels,o=this.title,i=e.vertical,n=r.length,a=i?"width":"height",s=o?o.box[a]():0,l=this.getActualTickSize()+e.margin+s,c=((this.getRoot()||{}).box||t)[a](),p=0,u=0;u<n;u++){var h=r[u].box[a]();h+l<=c&&(p=Math.max(p,h))}this.box=i?new zt(t.x1,t.y1,t.x1+p+l,t.y2):new zt(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(),a=0;a<e.length;a++){var s=e[a],l=this.labelTickIndex(s),c=o?s.box.height():s.box.width(),p=n[l],u=n[l+1],h=void 0,f=void 0;if(o){if(r)h=p+(u-p)/2-c/2;else h=p-c/2;f=h}else r?(h=p,f=u):f=(h=p-c/2)+c;this.positionLabel(s,i,h,f)}},e.prototype.positionLabel=function(t,e,r,o){void 0===o&&(o=r);var i,n=this.options,s=n.vertical,l=this.lineBox(),c=this.getActualTickSize()+n.margin;if(s){var p=l.x2;e?(p+=c,t.options.rotationOrigin=u):(p-=c+t.box.width(),t.options.rotationOrigin=d),i=t.box.move(p,r)}else{var h=l.y1;e?(h-=c+t.box.height(),t.options.rotationOrigin=a):(h+=c,t.options.rotationOrigin=v),i=new zt(r,h,o,h+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]),a=e[i].box,s=this.autoRotateLabelAngle(a,n);if(0!==s&&(o=s),-90===o)break}if(0!==o){for(var l=0;l<e.length;l++)e[l].options.rotation=o,e[l].reflow(new zt);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:u,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=r?v:a),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;at(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=U(e),a=function(){return e.format?i.chartService.format.localeAuto(e.format,[t],e.culture):t};n?o=n(Object.assign({},r,{get text(){return a()},value:t,format:e.format,culture:e.culture})):o=a();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,a=this.labels,s=r?1:0,l=r?0:1,c=0,p=0,u=0;u<a.length;u++){var h=a[u],f=this.labelTickIndex(h),d=void 0,v=void 0;o?(d=i[f+s],v=i[f+l]):d=v=i[f],c=Math.max(c,d-h.box[n+1]),p=Math.max(p,h.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&&(!at(n.min)||n.min<=r)||o<e&&i>0&&(!at(n.max)||o<=n.max))return null;if(e<r&&i>0||o<t&&i<0)return{min:t,max:e};var a=e-t,s=t,l=e;return t<r&&i<0?(s=ft(t,r,o),l=ft(t+a,r+a,o)):e>o&&i>0&&(l=ft(e,r,o),s=ft(e-a,r,o-a)),{min:s,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,a=e.lineSize;return(o>0?t[r]-n[i]:n[i]-t[r])/a},e.prototype.scaleToDelta=function(t,e){var r=ft(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}(Kt);_t(Te,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:s},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 Ee=Te,Re="days",Be="years",Ie={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function De(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Le(t,e){return new Date(t.getTime()+e)}function Ve(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function ze(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Ne(t,e,r,o){var i=t;if(t){var n=Ve(t),a=n.getHours();r===Be?ze(i=new Date(n.getFullYear()+e,0,1),0):"months"===r?ze(i=new Date(n.getFullYear(),n.getMonth()+e,1),a):"weeks"===r?ze(i=Ne(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 Le(t,864e5*-r)}(n,o),7*e,Re),a):r===Re?ze(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),a):"hours"===r?i=function(t,e){var r=new Date(t);r.setMinutes(0,0,0);var o=6e4*(t.getTimezoneOffset()-r.getTimezoneOffset());return Le(r,o+36e5*e)}(n,e):"minutes"===r?(i=Le(n,6e4*e)).getSeconds()>0&&i.setSeconds(0):"seconds"===r?i=Le(n,1e3*e):"milliseconds"===r&&(i=Le(n,e)),"milliseconds"!==r&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function He(t,e,r){return Ne(Ve(t),0,e,r)}function Ue(t,e,r){var o=Ve(t);return o&&He(o,e,r).getTime()===o.getTime()?o:Ne(o,1,e,r)}function Fe(t,e){return t&&e?t.getTime()-e.getTime():-1}function Ge(t,e){return t.getTime()-e}function We(t){if(b(t)){for(var e=[],r=0;r<t.length;r++)e.push(We(t[r]));return e}if(t)return Ve(t).getTime()}function Ke(t,e){return t&&e?We(t)===We(e):t===e}function Xe(t,e,r){return De(t,e)/Ie[r]}function Ye(t,e,r,o){var i=Ve(t),n=Ve(e);return("months"===r?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+Xe(i,new Date(i.getFullYear(),i.getMonth()),Re)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():r===Be?i.getFullYear()-n.getFullYear()+Ye(i,new Date(i.getFullYear(),0),"months",1)/12:r===Re||"weeks"===r?Xe(i,n,r):Ge(i,e)/Ie[r])/o}function qe(t,e,r){return r===Be?e.getFullYear()-t.getFullYear():"months"===r?12*qe(t,e,Be)+e.getMonth()-t.getMonth():r===Re?Math.floor(Ge(e,t)/864e5):Math.floor(Ge(e,t)/Ie[r])}function Ze(t,e){return A(e)&&t.parseDate(e)||Ve(e)}function Qe(t,e){if(b(e)){for(var r=[],o=0;o<e.length;o++)r.push(Ze(t,e[o]));return r}return Ze(t,e)}function $e(t,e){return k(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var Je=function(t){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=at(t.min),o=at(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=ft(o,0,i.max),e=ft(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],a=ht(e);(n.box[r+1]>i||n.box[r+2]<o)&&(n.options.visible=!1),(a.box[r+1]>i||a.box[r+2]<o)&&(a.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),a=[];n<=i;)a.push(n),n+=t;return a},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,o=e.reverse,i=this.scaleOptions(),n=i.scale,a=i.box,s=i.min,l=a[(r?x:m)+(o?2:1)],c=this.tickIndices(t),p=[],u=0;u<c.length;u++)p.push(l+yt(n*(c[u]-s),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 a=i;!o(t[a])&&a>=0;)a--;return t.slice(n,a+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,a=r?-1:1,s=n+(1===a?1:2).toString();return{axis:n,axisOrigin:s,axisDir:a,lineBox:o,lineSize:i,lineStart:o[s]}},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,a=this.scaleOptions(),s=a.scale,l=a.box,c=a.min,p=this.lineInfo(),u=p.axis,h=p.lineStart,f=l.clone(),d=!at(e),v=mt(t,0),y=mt(e,v);y=Math.max(y-1,v);var g=h+(v-c)*s,m=h+((y=Math.max(v,y))+1-c)*s;return d&&n&&(m=g),r&&(g=ft(g,l[u+1],l[u+2]),m=ft(m,l[u+1],l[u+2])),f[u+1]=i?m:g,f[u+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]=ft(t[e+1],r[e+1],r[e+2]),o[e+2]=ft(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,a=r;return"string"==typeof n?n=this.categoryIndex(n):k(n)&&(n-=i),"string"==typeof a?a=this.categoryIndex(a):k(a)&&(a-=i),t.prototype.slot.call(this,n,a,o)},e.prototype.pointCategoryIndex=function(t){var e=this.options,r=e.reverse,o=e.justified,i=e.vertical?x:m,n=this.scaleOptions(),a=n.scale,s=n.box,l=n.min,c=n.max,p=r?c:l,u=s[i+1],h=s[i+2],f=t[i];if(f<u||f>h)return null;var d=p+(f-u)/a,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=yt(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),a=r*n,s=(1-r)*n,l=o.min+a,c=o.max-s;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:ft(n.min,o,i),max:ft(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,a=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)-a,max:(t.categories.length?n+(e?1:0):0)-a}},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=o.dataItems?o.dataItems[t]:null,n=mt(o.categories[t],"");r.dataItem=i;var a=this.axisLabelText(n,e,r);return new he(n,a,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 a=t[n];a.box&&(i<a.box[r+1]||a.box[r+2]<o)&&a.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),r=this.scaleOptions().scale,o=yt(t/r,10),i=this.totalRange(),n=e.min+o,a=e.max+o;return this.limitRange(n,a,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),a=this.scaleOptions(),s=a.scale,l=a.box[i+(o?2:1)],c=t[i]-l,p=e[i]-l,u=n.min+c/s,h=n.min+p/s,f=Math.min(u,h),d=Math.max(u,h);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(Ke(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 q,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}(Ee);_t(Je,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var tr=Je,er={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"},rr=["milliseconds","seconds","minutes","hours",Re,"weeks","months",Be];function or(t){var e=t._range;return e||((e=t._range=wt(t)).min=Ve(e.min),e.max=Ve(e.max)),e}var ir=function(t){this.options=t};ir.prototype.displayIndices=function(){return{min:0,max:1}},ir.prototype.displayRange=function(){return{}},ir.prototype.total=function(){return{}},ir.prototype.valueRange=function(){return{}},ir.prototype.valueIndex=function(){return-1},ir.prototype.values=function(){return[]},ir.prototype.totalIndex=function(){return-1},ir.prototype.valuesCount=function(){return 0},ir.prototype.totalCount=function(){return 0},ir.prototype.dateAt=function(){return null};var nr=function(t,e,r){this.options=r,r.baseUnitStep=r.baseUnitStep||1;var o=r.roundToBaseUnit,i=r.justified;this.start=Ne(t,0,r.baseUnit,r.weekStartDay);var n=this.roundToTotalStep(e),a=!i&&Ke(e,n)&&!r.justifyEnd;this.end=this.roundToTotalStep(e,!i,a?1:0);var s=r.min||t;this.valueStart=this.roundToTotalStep(s),this.displayStart=o?this.valueStart:s;var l=r.max;if(l){var c=!i&&Ke(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||a?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function ar(t,e,r){for(var o,i,n,a=or(t.categories),s=(t.max||a.max)-(t.min||a.min),l=t.autoBaseUnitSteps,c=t.maxDateGroups,p="fit"===t.baseUnit,u=e?rr.indexOf(e):0,h=p?rr[u++]:t.baseUnit,f=s/Ie[h],d=f;!i||f>=c;){o=o||l[h].slice(0);do{n=o.shift()}while(n&&e===h&&n<r);if(n)f=d/(i=n);else{if(h===ht(rr)){i=Math.ceil(d/c);break}if(!p){f>c&&(i=Math.ceil(d/c));break}h=rr[u++]||ht(rr),d=s/Ie[h],o=null}}t.baseUnitStep=i,t.baseUnit=h}function sr(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!Z(e,rr)&&function(t){for(var e,r,o=t.categories,i=at(o)?o.length:0,n=h,a=0;a<i;a++){var s=o[a];if(s&&e){var l=De(s,e);l>0&&(r=(n=Math.min(n,l))>=31536e6?Be:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Re:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=s}t.baseUnit=r||Re}(t),"fit"!==e&&"auto"!==t.baseUnitStep||ar(t),t}nr.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},nr.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,r=t.baseUnitStep,o=Ye(this.displayStart,this.valueStart,e,r),i=Ye(this.displayEnd,this.valueStart,e,r);this._indices={min:o,max:i}}return this._indices},nr.prototype.total=function(){return{min:this.start,max:this.end}},nr.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},nr.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},nr.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Ye(t,this.valueStart,e.baseUnit,e.baseUnitStep))},nr.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Ye(t,this.start,e.baseUnit,e.baseUnitStep))},nr.prototype.dateIndex=function(t){var e=this.options;return Ye(t,this.valueStart,e.baseUnit,e.baseUnitStep)},nr.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},nr.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=Ne(o,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},nr.prototype.dateAt=function(t,e){var r=this.options;return Ne(e?this.start:this.valueStart,r.baseUnitStep*t,r.baseUnit,r.weekStartDay)},nr.prototype.roundToTotalStep=function(t,e,r){var o=this.options,i=o.baseUnit,n=o.baseUnitStep,a=o.weekStartDay,s=this.start,l=Ye(t,s,i,n),c=e?Math.ceil(l):Math.floor(l);return r&&(c+=r),Ne(s,c*n,i,a)};var lr=function(t){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=Qe(r,i))._parsed=!0),o=E({roundToBaseUnit:!0},o,{categories:i,min:Ze(r,o.min),max:Ze(r,o.max),weekStartDay:$e(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=or(i),a=o.maxDivisions;if(this.dataRange=new nr(n.min,n.max,sr(o)),a){var s=this.dataRange.displayRange(),l=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:s.min,max:s.max,maxDateGroups:a}),c=this.dataRange.options;ar(l,c.baseUnit,c.baseUnitStep),this.divisionRange=new nr(n.min,n.max,l)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||Re,this.dataRange=this.divisionRange=new ir(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=[],a=o.values(),s=0;this.options.justified||(a=a.concat(o.dateAt(i)),s=.5);for(var l=0;l<a.length;l++)if(n.push(r.dateIndex(a[l])+s),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 Fe(t,e.min)>=0&&Fe(t,e.max)<=0&&r.length},e.prototype.parseNoteValue=function(t){return Ze(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(),a=i?n.height():n.width(),s=this.range(),l=a/(s.max-s.min),c=yt(t/l,10);if(s.min&&s.max){var p=Le(e.min||s.min,c),u=Le(e.max||s.max,c);s={min:Ne(p,0,r,o),max:Ne(u,0,r,o)}}return s},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,a=i.max,s=this.dataRange.total(),l=yt(t/(o/(a-n)),10)*(e.reverse?-1:1),c=Le(n,l),p=Le(a,l),u=this.limitRange(We(c),We(p),We(s.min),We(s.max),l);return u?(u.min=Ve(u.min),u.max=Ve(u.max),u.baseUnit=e.baseUnit,u.baseUnitStep=e.baseUnitStep||1,u.userSetBaseUnit=e.userSetBaseUnit,u.userSetBaseUnitStep=e.userSetBaseUnitStep,u):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(),a=Ge(i.max,i.min)/(n.max-n.min),s=this.options;return{min:Le(i.min,o.min*a),max:Le(i.min,o.max*a),baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.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(),a=n.min,s=n.max,l=Math.abs(this.pointOffset(e)),c=s-a,p=this.scaleToDelta(t,c),u=Math.round(l*p),h=Math.round((1-l)*p),f=this.dataRange.options.baseUnit,d=new Date(a.getTime()+u),v=new Date(s.getTime()-h);if(o){var y,g,m=r.autoBaseUnitSteps,x=r.maxDateGroups,b=ht(m[f])*x*Ie[f],_=Ge(s,a),w=Ge(v,d),C=rr.indexOf(f);if(w<Ie[f]&&"milliseconds"!==f)f=rr[C-1],d=Le(a,g=(_-(x-1)*(y=ht(m[f]))*Ie[f])/2),v=Le(s,-g);else if(w>b&&f!==Be){var O=0;do{C++,f=rr[C],O=0,g=2*Ie[f];do{y=m[f][O],O++}while(O<m[f].length&&g*y<_)}while(f!==Be&&g*y<_);(g=(g*y-_)/2)>0&&(d=Le(a,-g),v=Le(s,g),d=Le(d,ft(v,i.min,i.max)-v),v=Le(v,ft(d,i.min,i.max)-d))}}return d&&v&&Ge(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 a=o?r.y1-n.box.height()/2:r.x1;this.positionLabel(n,i,a)}var s=e[1];if(s){var l=o?r.y2-s.box.height()/2:r.x2;this.positionLabel(s,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(!a(r,e[o]))break}var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0;--n){if(!a(i,e[n]))break}}function a(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),a=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||a,r.dataItem=i;var s=this.axisLabelText(n,e,r);if(s)return new he(n,s,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:s,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=s,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var a=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||a;var l=function(e,r,o){if(o){var i=new he(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 zt))},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 a=this.getSlot(i,n,r);if(a)return a.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=or(this.options.srcCategories);return{min:Ve(t.min),max:Ve(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=or(t.srcCategories);return new nr(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(tr);_t(lr,{type:c,labels:{dateFormats:er},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 cr=lr;function pr(t,e){return yt(Math.floor(t/e)*e,10)}function ur(t,e){return yt(Math.ceil(t/e)*e,10)}function hr(t){return Math.max(Math.min(t,3e5),-3e5)}var fr=Math.pow(10,-9),dr=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),a=Dt(i,n),s={majorUnit:a};!1!==r.roundToMajorUnit&&(i<0&&vr(i,a,1/3)&&(i-=a),n>0&&vr(n,a,1/3)&&(n+=a));return s.min=pr(i,a),s.max=ur(n,a),s}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:at(e.min)?Math.min(t.min,e.min):t.min,max:at(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=at(e.min),o=at(e.max);var n=r||o;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=ur(t.max,e.majorUnit)):n&&(i=E(t,e),t.majorUnit=Dt(i.min,i.max))}t.minorUnit=(i.majorUnit||t.majorUnit)/5;var a=E(t,i);a.min>=a.max&&(r&&!o?a.max=a.min+a.majorUnit:!r&&o&&(a.min=a.max-a.majorUnit));return a}(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(yt(r/t,3))+1},e.prototype.getTickPositions=function(t,e){var r=this.options,o=this.lineInfo(),i=o.axisDir,n=o.axisOrigin,a=o.lineBox,s=t*(o.lineSize/(r.max-r.min)),l=this.getDivisions(t),c=[],p=a[n],u=0;e&&(u=e/t);for(var h=0;h<l;h++)h%u!=0&&c.push(yt(p,3)),p+=s*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,a=i.axisDir,s=i.lineBox,l=i.lineSize,c=i.lineStart,p=a*(l/(o.max-o.min)),u=mt(t,e||0),h=mt(e,t||0);r&&(u=ft(u,o.min,o.max),h=ft(h,o.min,o.max));var f=Math.min(u,h)-o.min,d=Math.max(u,h)-o.min,v=new zt(s.x1,s.y1,s.x1,s.y1);return v[n+1]=hr(c+p*(a>0?f:d)),v[n+2]=hr(c+p*(a>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:yt(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,a=this.lineInfo().lineSize,s=yt(t/(a/(i-n)),10);return!r&&!o||r&&o||(s=-s),{min:n+s,max:i+s,offset:s}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=yt(o.min+t*o.majorUnit,10),n=this.axisLabelText(i,e,r);return new he(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,a=(1-r)*i,s=yt(this.options.min+n,10),l=yt(this.options.max-a,10);return l-s<fr&&(l=s+fr),{min:s,max:l}},e.prototype.zoomRange=function(t,e){var r=this.totalMin,o=this.totalMax,i=this.scaleRange(t,e);return{min:ft(i.min,r,o),max:ft(i.max,r,o)}},e.prototype.isValidRange=function(t,e){return e-t>fr},e}(Ee);function vr(t,e,r){var o=yt(Math.abs(t%e),10);return 0===o||o>e*(1-r)}_t(dr,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var yr=dr,gr=function(t){function e(e,r,o,i){var n=Ve(e),a=Ve(r),s=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=Be:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Re);return e}(De(i,o)):"hours"),a=Ie[n],s=r.weekStartDay||0,l=He(We(o)-1,n,s)||Ve(i),c=Ue(We(i)+1,n,s),p=(r.majorUnit?r.majorUnit:void 0)||ur(Dt(l.getTime(),c.getTime()),a)/a,u=qe(l,c,n),h=ur(u,p)-u,f=Math.floor(h/2),d=h-f;r.baseUnit||delete r.baseUnit;return r.baseUnit=r.baseUnit||n,r.min=r.min||Ne(l,-f,n,s),r.max=r.max||Ne(c,d,n,s),r.minorUnit=r.minorUnit||p/5,r.majorUnit=p,r}(n,a,l=E(l||{},{min:Ze(s,l.min),max:Ze(s,l.max),axisCrossingValue:Qe(s,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:$e(l,s)})),t.call(this,l,i),this.intlService=s,this.seriesMin=n,this.seriesMax=a;var c=l.weekStartDay||0;this.totalMin=We(He(We(n)-1,l.baseUnit,c)),this.totalMax=We(Ue(We(a)+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(qe(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,a=this.getDivisions(t),s=i/Ge(e.max,e.min),l=e.weekStartDay||0,c=[n],p=1;p<a;p++){var u=n+Ge(Ne(e.min,p*t,e.baseUnit,l),e.min)*s*o;c.push(yt(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 yr.prototype.getSlot.call(this,Ze(this.intlService,t),Ze(this.intlService,e),r)},e.prototype.getValue=function(t){var e=yr.prototype.getValue.call(this,t);return null!==e?Ve(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,a=o.min;i>0&&(a=Ne(a,i,o.baseUnit,n));var s=e.dateFormats[o.baseUnit];e.format=e.format||s;var l=this.axisLabelText(a,e,r);return new he(a,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(),a=this.range(),s=n/Ge(a.max,a.min),l=yt(t/s,10);return!o&&!i||o&&i||(l=-l),{min:Le(e.min,l),max:Le(e.max,l),offset:l}},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(We(e.min),We(e.max),this.totalMin,this.totalMax,e.offset);if(r)return{min:Ve(r.min),max:Ve(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:Ve(i),max:Ve(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,a=(1-r)*i,s=Ve(We(this.options.min)+n),l=Ve(We(this.options.max)-a);return l-s<1e3&&(l=Ve(We(s)+1e3)),{min:s,max:l}},e.prototype.zoomRange=function(t,e){var r=this.scaleRange(t,e);return{min:Ve(ft(We(r.min),this.totalMin,this.totalMax)),max:Ve(ft(We(r.max),this.totalMin,this.totalMax))}},e}(Ee);_t(gr,{type:c,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:er}});var mr=gr,xr=function(t){function e(e,r,o,i){var n=E({majorUnit:10,min:e,max:r},o),a=n.majorUnit,s=function(t,e){var r,o=yt(_r(t,e),10)%1;r=t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,_r(t,e)+.2):Math.pow(e,Math.ceil(_r(t,e)));return r}(r,a),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(_r(t,o))));return i}(e,r,n),c=function(t,e,r,o){var i=r.min,n=r.max;at(r.axisCrossingValue)&&r.axisCrossingValue<=0&&br();at(o.max)?o.max<=0&&br():n=e;at(o.min)?o.min<=0&&br():i=t;return{min:i,max:n}}(l,s,n,o);n.max=c.max,n.min=c.min,n.minorUnit=o.minorUnit||yt(a-1,10),t.call(this,n,i),this.totalMin=at(o.min)?Math.min(l,o.min):l,this.totalMax=at(o.max)?Math.max(s,o.max):s,this.logMin=yt(_r(c.min,a),10),this.logMax=yt(_r(c.max,a),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,a=o.majorUnit,s=o.min,l=o.max,c=this.lineInfo(),p=c.axis,u=c.axisDir,h=c.lineBox,f=c.lineSize,d=c.lineStart,v=u*(f/(n-i)),y=mt(t,e||1),g=mt(e,t||1);if(y<=0||g<=0)return null;r&&(y=ft(y,s,l),g=ft(g,s,l)),y=_r(y,a),g=_r(g,a);var m=Math.min(y,g)-i,x=Math.max(y,g)-i,b=new zt(h.x1,h.y1,h.x1,h.y1);return b[p+1]=hr(d+v*(u>0?m:x)),b[p+2]=hr(d+v*(u>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(),a=n.axis,s=n.axisDir,l=n.lineStart,c=n.lineSize,p=(o-r)/c,u=s*(t[a]-l);if(u<0||u>c)return null;var h=r+u*p;return yt(Math.pow(i,h),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,a=e.majorUnit,s=this.lineBox(),l=n?s.height():s.width(),c=yt(t/(l/(o-r)),10);return!n&&!i||n&&i||(c=-c),{min:Math.pow(a,r+c),max:Math.pow(a,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,a=this.lineBox(),s={vertical:i};function l(e,r){s.tickX=n?a.x2:a.x2-r.size,s.tickY=n?a.y1-r.size:a.y1,s.position=e,t.append(Me(s,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(),a={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},s=[],l=this.gridLinesVisual();function c(t,e){Z(t,s)||(a.position=t,l.append(je(a,e)),s.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,a=this.logMax,s=Math.ceil(n)+e.skip;s<=a;s+=e.step){t(yt(o+i*(s-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var r=this.options,o=r.min,i=r.max,n=r.minorUnit,a=r.majorUnit,s=this.lineInfo(),l=s.lineStart,c=s.step,p=this.logMin,u=this.logMax,h=Math.floor(p);h<u;h++)for(var f=this._minorIntervalOptions(h),d=e.skip;d<n;d+=e.step){var v=f.value+d*f.minorStep;if(v>i)break;if(v>=o)t(yt(l+c*(_r(v,a)-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 he(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=_r(this.options.min,r),i=_r(this.options.max,r),n=Math.abs(this.pointOffset(e)),a=i-o,s=this.scaleToDelta(t,a),l=Math.pow(r,o+n*s),c=Math.pow(r,i-(1-n)*s);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:ft(r.min,o,i),max:ft(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}(Ee);function br(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function _r(t,e){return Math.log(t)/Math.log(e)}_t(xr,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var wr=xr,Cr={createGridLines:function(t){var e,r,o=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],a=!1;return o.majorGridLines.visible&&(e=this.majorGridLineAngles(t),a=!0,n=this.renderMajorGridLines(e,i,o.majorGridLines)),o.minorGridLines.visible&&(r=this.minorGridLineAngles(t,a),it(n,this.renderMinorGridLines(r,i,o.minorGridLines,t,a))),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(),a=new O.geometry.Circle([n.x,n.y],e),s=this.gridLinesVisual(),l=0;l<t.length;l++){var c=new O.drawing.Path(i);o&&(a.radius=o(t[l])),c.moveTo(a.center).lineTo(a.pointAt(t[l]+180)),s.append(c)}return s.children},gridLineAngles:function(t,e,r,o,i){var n=this,a=this.intervals(e,r,o,i),s=t.options,l=s.visible&&!1!==(s.line||{}).visible;return tt(a,(function(t){var e=n.intervalAngle(t);if(!l||90!==e)return e}))}},Or=function(t){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 zt,n=0;n<t.length;n++){t[n].reflow(i);var a=t[n].box;t[n].reflow(this.getSlot(r+n*o).adjacentBox(0,a.width(),a.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,a=360/n,s=r||1,l=[],c=0,p=e||0;p<n;p+=s)c=i.reverse?360-p*a:p*a,c=yt(c,3)%360,o&&Z(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 tt(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=vt(360/(2*this.options.categories.length)),n=Math.cos(o)*t,a=this.majorAngles(),s=function(e){return!r&&Z(e,a)?t:n};return s}},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),a=o.from-Math.floor(o.from);i.startAngle+=a*n.angle;var s=Math.ceil(o.to)-o.to;i.angle-=(s+a)*n.angle;var l=Gt.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(),a=n.length,s=360/a,l=t;r.reverse&&!o&&(l=(l+1)%a);var c=n[l=ft(Math.floor(l),0,a-1)];o&&(c-=s/2)<0&&(c+=360);var p=s*(ft(Math.ceil(e||l),l,a-1)-l+1);return new Ht(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}(tr);_t(Or,{startAngle:90,labels:{margin:V(10)},majorGridLines:{visible:!0},justified:!0}),E(Or.prototype,Cr);var Pr=Or,Sr=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 yr.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 zt,a=this.intervals(t.majorUnit,o,i),s=0;s<e.length;s++){e[s].reflow(n);var l=e[s].box;e[s].reflow(this.getSlot(a[s]).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),a=[],s=r||1,l=e||0;l<n;l+=s){var c=(360+i+l*t)%360;o&&Z(c,o)||a.push(c)}return a},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=ft(t,r.min,r.max),a=ft(e||n,n,r.max);if(r.reverse&&(n*=-1,a*=-1),(a=(540-a-i)%360)<(n=(540-n-i)%360)){var s=n;n=a,a=s}return new Ht(o.center(),0,o.height()/2,n,a-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var r,o,i=this.options,n=360-i.startAngle,a=this.getSlot(t,e),s=Math.min(t,e),l=Math.max(t,e);return i.reverse?(r=s,o=l):(r=360-l,o=360-s),r=(r+n)%360,o=(o+n)%360,new O.geometry.Arc([a.center.x,a.center.y],{startAngle:r,endAngle:o,radiusX:a.radius,radiusY:a.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(st(Math.atan2(i,o))),a=e.startAngle;return e.reverse||(n*=-1,a*=-1),(n+a+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Ee);_t(Sr,{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(Sr.prototype,Cr,{createPlotBands:Pr.prototype.createPlotBands,majorAngles:Pr.prototype.majorAngles,range:yr.prototype.range,labelsCount:yr.prototype.labelsCount,createAxisLabel:yr.prototype.createAxisLabel});var kr=Sr;function Ar(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var Mr={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(),a=o.box.center(),s=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}},u=this.getSlot(c.from,c.to,!0),h=new Ht(a,a.y-u.y2,a.y-u.y1,0,360),f=void 0;f=e===i?Gt.current.createRing(h,p):O.drawing.Path.fromPoints(this.plotBandPoints(h,n),p).close(),s.append(f)}this.appendVisual(s)},plotBandPoints:function(t,e){for(var r=[],o=[],i=[t.center.x,t.center.y],n=new O.geometry.Circle(i,t.innerRadius),a=new O.geometry.Circle(i,t.radius),s=0;s<e.length;s++)r.push(n.pointAt(e[s]+180)),o.push(a.pointAt(e[s]+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 a=this.radarMinorGridLinePositions();it(n,this.renderGridLines(i,a,o,e.minorGridLines))}return n},renderGridLines:function(t,e,r,o){var n={stroke:{width:o.width,color:o.color,dashType:o.dashType}},a=o.skip;void 0===a&&(a=0);var s=o.step;void 0===s&&(s=0);for(var l=this.gridLinesVisual(),c=a;c<e.length;c+=s){var p=t.y-e[c];if(p>0){var u=new O.geometry.Circle([t.x,t.y],p);if(o.type===i)l.append(new O.drawing.Circle(u,n));else{for(var h=new O.drawing.Path(n),f=0;f<r.length;f++)h.lineTo(u.pointAt(r[f]+180));h.close(),l.append(h)}}}return l.children},getValue:function(t){var e=this.lineBox(),r=this.plotArea.polarAxis,o=r.majorAngles(),n=r.box.center(),a=t.distanceTo(n),s=a;if(this.options.majorGridLines.type!==i&&o.length>1){var l=t.x-n.x,c=t.y-n.y,p=(st(Math.atan2(c,l))+540)%360;o.sort((function(t,e){return Ar(t,p)-Ar(e,p)}));var u=90-Ar(o[0],o[1])/2,h=180-Ar(p,o[0])-u;s=a*(Math.sin(vt(h))/Math.sin(vt(u)))}return this.axisType().prototype.getValue.call(this,new Lt(e.x1,e.y2-s))}},jr=function(t){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}(yr);E(jr.prototype,Mr);var Tr=jr,Er=function(t){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}(wr);E(Er.prototype,Mr);var Rr=Er;function Br(t){return t<=0?-1:1}var Ir=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,a,s=e[0],l=e[1],c=e[2];for(r.push(new O.geometry.Segment(s));s.equals(e[i-1]);)o=!0,e.pop(),i--;if(2===i){var p=this.tangent(s,l,m,x);return ht(r).controlOut(this.firstControlPoint(p,s,l,m,x)),r.push(new O.geometry.Segment(l,this.secondControlPoint(p,s,l,m,x))),r}if(o){s=e[i-1],l=e[0],c=e[1];var u=this.controlPoints(s,l,c);n=u[1],a=u[0]}else{var h=this.tangent(s,l,m,x);n=this.firstControlPoint(h,s,l,m,x)}for(var f=n,d=0;d<=i-3;d++)if(this.removeDuplicates(d,e),d+3<=(i=e.length)){s=e[d],l=e[d+1],c=e[d+2];var v=this.controlPoints(s,l,c);ht(r).controlOut(f),f=v[1];var y=v[0];r.push(new O.geometry.Segment(l,y))}if(o){s=e[i-2],l=e[i-1],c=e[0];var g=this.controlPoints(s,l,c);ht(r).controlOut(f),r.push(new O.geometry.Segment(l,g[0])),ht(r).controlOut(g[1]),r.push(new O.geometry.Segment(c,a))}else{var b=this.tangent(l,c,m,x);ht(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||yt(i,1)===yt(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,a=!1,s=!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),a=!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]?Br((r[n]-t[n])*(e[i]-t[i])):-Br((r[i]-t[i])*(e[n]-t[n]))),s=!0}var c=this.secondControlPoint(o,t,e,i,n);if(s){var p=i;i=n,n=p}var u=this.firstControlPoint(o,e,r,i,n);return a&&(this.restrictControlPoint(t,e,c,o),this.restrictControlPoint(e,r,u,o)),[c,u]},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],a=e[o]-t[o];return i=0===n?0:a/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],a=.333*(r[o]-n);return this.point(n+a,e[i]+a*t,o,i)},e.prototype.secondControlPoint=function(t,e,r,o,i){var n=e[o],a=r[o],s=.333*(a-n);return this.point(a-s,r[i]-s*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),Dr=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 Lr(t,e){for(var r=0;r<e.length;r++)if(e[r].options.name===t)return e[r].prepareUserOptions(),new Dr(e[r])}var Vr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Vr.prototype.findAxisByName=function(t){return Lr(t,this._pane.axes)};var zr=Vr,Nr=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 Hr(t){for(var e=t.length,r=0,o=0;o<e;o++){k(t[o])&&r++}return r}var Ur={min:function(t){for(var e=t.length,r=h,o=0;o<e;o++){var i=t[o];k(i)&&(r=Math.min(r,i))}return r===h?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 Hr(t)&&(e=Ur.sum(t)),e},count:function(t){for(var e=t.length,r=0,o=0;o<e;o++){var i=t[o];null!==i&&at(i)&&r++}return r},avg:function(t){var e=Hr(t),r=t[0];return e>0&&(r=Ur.sum(t)/e),r},first:function(t){for(var e=t.length,r=0;r<e;r++){var o=t[r];if(null!==o&&at(o))return o}return t[0]}},Fr=Ur;function Gr(t,e){return null===e?e:W(t)(e)}var Wr=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,a=at(r)?r:n[e],s={valueFields:{value:a}},l=this.valueFields(t),c=this._otherFields[t.type];if(null===a)i=this._nullValue[t.type];else if(at(a)){if(Array.isArray(a)){var p=a.slice(l.length);i=this._bindFromArray(a,l),o=this._bindFromArray(p,c)}else if("object"==typeof a){var u=this.sourceFields(t,l),h=this.sourceFields(t,c);i=this._bindFromObject(a,l,u),o=this._bindFromObject(a,c,h)}}else i=this._undefinedValue[t.type];return at(i)&&(1===l.length?s.valueFields.value=i[l[0]]:s.valueFields=i),s.fields=o||{},s},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 a=e[n],s=r[n];null!==s&&(o[a]=Gr(s,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],a=n===y?"field":n+"Field";r.push(null!==t[a]?t[a]||n:null)}return r},e}(O.Class);Wr.current=new Wr;var Kr=Wr,Xr=/percent(?:\w*)\((\d+)\)/,Yr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),qr=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=Yr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,r);var n=this.getAverage(o),a=this.getStandardDeviation(o,n,!1),s=i[1]?parseFloat(i[1]):1,l={low:n.value-a*s,high:n.value+a*s};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=Kr.current,n=i.valueFields(t),a=at(o[0])?o[0]:{};if(b(a))r=W("["+(e?n.indexOf(e):0)+"]");else if(k(a))r=W();else if("object"==typeof a){r=W(i.sourceFields(t,n)[n.indexOf(e)])}return r},e.prototype.getErrorRange=function(t,e){var r,o,i;if(!at(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=Xr.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,a=0;a<o;a++){var s=this.valueGetter(t[a]);k(s)&&(n+=Math.pow(s-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),Zr=O.support.browser||{},Qr=Zr.msie?.001:0,$r="zero",Jr="bar",to="column",eo="line",ro="pie",oo="verticalLine",io=[Jr,to,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],no="DOMMouseScroll mousewheel",ao=function(t){function e(e,r,o,i,n,a){t.call(this,a),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(),a=this.getCapsWidth(t,o),s=o?n.x:n.y,l=s-a,c=s+a;o?(e=[new Lt(n.x,i.y1),new Lt(n.x,i.y2)],r&&e.push(new Lt(l,i.y1),new Lt(c,i.y1),new Lt(l,i.y2),new Lt(c,i.y2)),this.box=new zt(l,i.y1,c,i.y2)):(e=[new Lt(i.x1,n.y),new Lt(i.x2,n.y)],r&&e.push(new Lt(i.x1,l),new Lt(i.x1,c),new Lt(i.x2,l),new Lt(i.x2,c)),this.box=new zt(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}(Kt);_t(ao,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var so=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.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(so);function co(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,a=!1;if(r.excluded=r.excluded||[],n>5)return null;for(var s in t)if(!Z(s,r.excluded)&&t.hasOwnProperty(s)){var l=t[s];j(l)?(a=!0,o||(t[s]=mt(l(e),i[s]))):R(l)&&(o||(r.defaults=i[s]),r.depth++,a=co(l,e,r,o)||a,r.depth--)}return a}function po(t){for(var e=t.length,r=0,o=0;o<e;o++)r=Math.max(r,t[o].data.length);return r}var uo=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 a=r[n];if(a){var s=t.series.stack,l=a.series.stack;if(s&&l&&s.group!==l.group)continue;k(a.value)&&(i+=Math.abs(a.value),o.push(Math.abs(a.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,a=!1,s=0;s<r.length;s++){var l=r[s];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 u=this.plotValue(l);(u>=0&&i||u<0&&!i)&&(n+=u,o+=u,a=!0,this.options.isStacked100&&(o=Math.min(o,1)))}return a&&(n-=e),[n,o]}var h=t.series,f=this.seriesValueAxis(h),d=this.categoryAxisCrossingValue(f);return[d,M(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var r=h,o=f,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];if(n)for(var a=0;a<n.length;a++){var s=n[a];if(s&&(s.series.stack===e||s.series.axis===t)){var l=this.plotRange(s,0)[1];at(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],a=n.axis,s=a+n.stack,l=o[s];if(!l){l=this.stackLimits(a,n.stack);var c=this.errorTotals;c&&(c.negative.length&&(l.min=Math.min(l.min,wt(c.negative).min)),c.positive.length&&(l.max=Math.max(l.max,wt(c.positive).max))),l.min!==h||l.max!==f?o[s]=l:l=null}l&&(this.valueAxisRanges[a]=l)}},e.prototype.addErrorBar=function(t,e,r){var o,i=t.value,n=t.series,a=t.seriesIx,s=t.options.errorBars,l=e.fields.errorLow,c=e.fields.errorHigh;k(l)&&k(c)?o={low:l,high:c}:s&&at(s.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[a]=this.seriesErrorRanges[a]||new qr(s.value,n,y),o=this.seriesErrorRanges[a].getErrorRange(i,s.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,a=t.high;if(this.options.isStacked){var s=this.stackedErrorRange(t,e);n=s.low,a=s.high}else{var l={categoryIx:e,series:i};this.updateRange({value:n},l),this.updateRange({value:a},l)}var c=new lo(n,a,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 a=this.seriesPoints[i];a||(this.seriesPoints[i]=a=[]);var s=this.createPoint(t,e);s&&(Object.assign(s,e),s.owner=this,s.noteText=t.fields.noteText,at(s.dataItem)||(s.dataItem=o.data[r]),this.addErrorBar(s,t,r)),this.points.push(s),a.push(s),n.push(s),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,r,o,i,n){var a={defaults:i._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[n];at(s)||(this._evalSeries[n]=s=co(t,{},a,!0));var l=t;return s&&co(l=E({},l),{value:e,category:r,index:o,series:i,dataItem:i.data[o]},a),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:h,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,a){var s=a.categoryIx,l=a.series,c=e.seriesValueAxis(l),p=o[n++],u=r[s];if(u||(r[s]=u=e.categorySlot(i,s,c)),p){var h=e.plotRange(p,c.startValue()),f=e.valueSlot(c,h);if(f){var d=e.pointSlot(u,f);p.aboveAxis=e.aboveAxis(p,c),p.stackValue=h[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(ht(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 zt(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=po(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 a=0;a<o;a++){var s=e[a],l=this.categoryAxis.categoryAt(n);t(this._bindPoint(s,a,n),{category:l,categoryIx:n,categoriesCount:r,series:s,seriesIx:a})}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]=Kr.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}(Kt);_t(uo,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var ho=uo,fo={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:pt(t),originalEvent:t,point:this}}},vo={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&at(e)&&null!==e&&(this.note=new de({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},yo=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=mt(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=U(r),i=this.pointData(),n=this.value;o?n=o(i):r.format&&(n=this.formatValue(r.format)),this.label=new le(n,E({align:s,vAlign:s,margin:{left:5,right:5},zIndex:mt(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 at(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 Zt({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:mt(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 a=this.markerBox();if(!e.markers.visible||!e.markers.size){var s=a.center();a=new zt(s.x,s.y,s.x,s.y)}this.note.reflow(a)}},e.prototype.reflowLabel=function(t){var e=this.options,r=this.label,o=e.labels.position;r&&(o="below"===(o="above"===o?v:o)?a: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 Zt({type:r.type,width:o,height:o,rotation:r.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:mt(t.border.opacity,1)},opacity:mt(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=a):(r=t.y2,o=v),{point:new Lt(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}(Kt);yo.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(yo.prototype,fo),E(yo.prototype,vo);var go=yo,mo=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&&!at(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}(Kt);_t(mo,{closed:!1});var xo=mo;function bo(t,e,r,o,i){var n=t.box,a=new O.geometry.Point;return a[e]=n[e+r],a[o]=n[o+i],a}var _o={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,a=o?x:m,s=i?2:1,l=s,c=bo(t[0],n,s,a,l),p=[c],u=1;u<t.length;u++){var h=bo(t[u],n,s,a,l);if(c[n]!==h[n]){var f=new O.geometry.Point;f[n]=c[n],f[a]=h[a],p.push(f,h)}c=h}return r?c!==ht(p)&&p.push(c):p.push(bo(ht(t),n,s,a,i?1:2)),p}},wo=function(t){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}(xo);E(wo.prototype,_o);var Co=wo,Oo=function(t){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 Ir(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}(xo),Po={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 a=o[n],s=this.sortPoints(r[n]),l=s.length,c=[],p=0;p<l;p++){var u=s[p];u?c.push(u):"interpolate"!==this.seriesMissingValues(a)&&(c.length>1&&(t=this.createSegment(c,a,n,t),this._addSegment(t)),c=[])}c.length>1&&(t=this.createSegment(c,a,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?$r:e||"interpolate"},getNearestPoint:function(t,e,r){for(var o,i=new Lt(t,e),n=this.seriesPoints[r],a=h,s=0;s<n.length;s++){var l=n[s];if(l&&at(l.value)&&null!==l.value&&!1!==l.visible){var c=l.box.center().distanceTo(i);c<a&&(o=l,a=c)}}return o}},So=function(t){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(Q(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);_t(So,{duration:600}),O.drawing.AnimationFactory.current.register("clip",So);var ko=So;function Ao(t){for(var e=0;e<t.length;e++)if(at(t[e].zIndex))return!0}var Mo={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 ko(r,{box:e}),Ao(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&&at(o.visual.options.zIndex)&&o.visual.clip(t)}}},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.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return go},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,a=this.seriesMissingValues(i),s=t.valueFields.value;if(!at(s)||null===s){if(a!==$r)return null;s=0}var l=this.pointOptions(i,n);l=this.evalPointOptions(l,s,o,r,i,n);var c=t.fields.color||i.color;j(i.color)&&(c=l.color);var p=new go(s,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?Co:"smooth"===o?Oo:xo)(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(jo.prototype,Po,Mo);var To=jo,Eo=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();it(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),a=this.strokeSegments(),s=a[0].anchor(),l=ht(a).anchor(),c=r?n.x1:n.y1;r?t.lineTo(c,l.y).lineTo(c,s.y):t.lineTo(l.x,c).lineTo(s.x,c)},e}(xo),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.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(Eo);E(Ro.prototype,_o);var Bo=Ro,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.createStrokeSegments=function(){var t=new Ir(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}(Eo),Do=function(t){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,a=this.options.isStacked,s=(e.line||{}).style;a&&r>0&&o&&("gap"!==this.seriesMissingValues(e)?(n=o.linePoints,i=o):n=this._gapStackPoints(t,r,s));return new("step"===s?Bo:"smooth"===s?Io:Eo)(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 a=i+n,s=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var c=i;c<a;c++){var p=c+s,u=e,h=void 0;do{h=o[--u][p]}while(u>0&&!h);if(h)"step"!==r&&c>i&&!o[u][p-1]&&l.push(this._previousSegmentPoint(c,p,p-1,u)),l.push(h),"step"!==r&&c+1<a&&!o[u][p+1]&&l.push(this._previousSegmentPoint(c,p,p+1,u));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,a=o;a>0&&!i;)i=n[--a][r];return i?i=n[a][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),r=new go(0,e);return r.categoryIx=t,r.series={},r},e.prototype.seriesMissingValues=function(t){return t.missingValues||$r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(To),Lo=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:h,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),Vo=function(t){function e(e,r,o){t.call(this,r),this.textBox=new le(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?s:u,n.vAlign=r?v:s,"insideEnd"===e.position?r?(n.vAlign=v,!o&&l.height()<t.height()&&(n.vAlign=a)):n.align=o?d:u:e.position===s?(n.vAlign=s,n.align=s):"insideBase"===e.position?r?n.vAlign=o?a:v:n.align=o?u:d:"outsideEnd"===e.position&&(r?p=o?new zt(t.x1,t.y1-l.height(),t.x2,t.y1):new zt(t.x1,t.y2,t.x2,t.y2+l.height()):(n.align=s,p=o?new zt(t.x2,t.y1,t.x2+l.width(),t.y2):new zt(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 a=i.paddingBox.clone();a[r]=Math.max(n[r],t[r]),a[o]=Math.min(n[o],t[o]),this.reflow(a)}},e}(Kt);_t(Vo,{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 zo=Vo;function No(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Ho=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.aboveAxis=mt(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=U(e);r=i?i(o):this.formatValue(e.format),this.label=new zo(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=at(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}}),a=this.box.width(),s=this.box.height();if((e.vertical?a:s)>6&&(P(n),(a<1||s<1)&&(n.options.stroke.lineJoin="round")),t.append(n),No(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 at(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,s=u,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=a);else{var c=Math.max(o.x1,n.x1),p=Math.min(o.x2,n.x2);r.isStacked?(l=a,i?(s=d,t=p):t=c,e=Math.max(o.y1,n.y1)-5):(i?t=p+5:(t=c-5,s=d),e=Math.max(o.y1,n.y1))}return{point:new Lt(t,e),align:{horizontal:s,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}(Kt);E(Ho.prototype,fo),E(Ho.prototype,vo),Ho.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Uo=Ho;function Fo(t,e){t.forEach(e)}function Go(t,e){for(var r=t.length,o=r-1;o>=0;o--)e(t[o],o-r-1)}var Wo=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Go:Fo}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,a=n.length,s=r?x:m,l=a+o+i*(a-1),c=(r?t.height():t.width())/l,p=t[s+1]+c*(o/2);this.forEach(n,(function(e,r){var o=(e.box||t).clone();o[s+1]=p,o[s+2]=p+c,e.reflow(o),r<a-1&&(p+=c*i),p+=c}))},e}(Kt);_t(Wo,{vertical:!1,gap:0,spacing:0});var Ko=Wo,Xo=function(t){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 zt,n=0;n<o;n++){var a=r[n];if(!1!==a.visible){var s=a.box.clone();s.snapTo(t,e),0===n&&(i=this.box=s.clone()),a.reflow(s),i.wrap(s)}}},e}(Kt);_t(Xo,{vertical:!0});var Yo=Xo,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.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Uo},e.prototype.clusterType=function(){return Ko},e.prototype.stackType=function(){return Yo},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,a=this.options,s=this.children,l=a.isStacked,c=this.pointValue(t),p=this.pointOptions(i,n),u=p.labels;l&&"outsideEnd"===u.position&&(u.position="insideEnd"),p.isStacked=l;var h=t.fields.color||i.color;c<0&&p.negativeColor&&(h=p.negativeColor),p=this.evalPointOptions(p,c,o,r,i,n),j(i.color)&&(h=p.color);var f=new(this.pointType())(c,p);f.color=h;var d=s[r];d||(d=new(this.clusterType())({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.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 a=0;a<n.length;a++)if(n[a]._stackGroup===i){r=n[a];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 a=r.getSlot(n,n,!0),s=o.invertAxes?m:x;i[s+1]=i[s+2]=a[s+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),Ao(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&&at(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);_t(qo,{animation:{type:Jr}});var Zo=qo,Qo=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 a=n.center().x,s=[];s.push([[a,n.y1],[a,i.y1]]),s.push([[a,i.y2],[a,n.y2]]),this.lines=s,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:mt(e.border.opacity,e.opacity)}),P(r),t.append(r),No(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:mt(o.opacity,e.opacity),width:o.width,dashType:o.dashType,lineCap:"butt"}},n=0;n<r.length;n++){var a=O.drawing.Path.fromPoints(r[n],i);P(a),t.append(a)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return at(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 Lt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:u,vertical:v}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(Kt);_t(Qo,{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(Qo.prototype,fo),E(Qo.prototype,vo);var $o=Qo;function Jo(t){return Hr(t)===t.length}var ti=function(t){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,a=e.seriesIx,s=this.children,l=this.options,c=t.valueFields,p=Jo(this.splitValue(c)),u=n.data[o],h=this.categoryPoints[o];h||(this.categoryPoints[o]=h=[]),p&&(r=this.createPoint(t,e));var f=s[o];f||(f=new Ko({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=a,r.owner=this,r.dataItem=u,r.noteText=t.fields.noteText),this.points.push(r),h.push(r)},e.prototype.pointType=function(){return $o},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,a=this.pointType(),s=t.valueFields,l=E({},i),c=t.fields.color||i.color;l=this.evalPointOptions(l,s,o,r,i,n),"candlestick"===i.type&&s.open>s.close&&(c=t.fields.downColor||i.downColor||i.color),j(i.color)&&(c=l.color),l.vertical=!this.options.invertAxes;var p=new a(s,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:h,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(ti.prototype,Mo);var ei=ti,ri=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 a=n.getSlot(i.median);if(i.mean){var s=n.getSlot(i.mean);this.meanPoints=this.calcMeanPoints(t,s)}this.whiskerPoints=this.calcWhiskerPoints(r,e),this.medianPoints=this.calcMedianPoints(t,a),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||{},a=0;a<r.length;a++){var s=r[a],l=E({},(n=s<e.q3+o&&s>e.q1-o?t.outliers:t.extremes).border);at(l.color)||(at(this.color)?l.color=this.color:l.color=new O.Color(n.background).brightness(.8).toHex());var c=new Zt({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:l,opacity:n.opacity});c.value=s,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}($o);_t(ri,{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(ri.prototype,fo);var oi=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.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}(oi),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.addValue=function(t,e){var r,o=e.categoryIx,i=e.category,n=e.series,a=e.seriesIx,s=this.children,l=this.options,c=t.valueFields,p=Jo(this.splitValue(c)),u=n.data[o],h=this.categoryPoints[o];h||(this.categoryPoints[o]=h=[]),p&&(r=this.createPoint(t,e));var f=s[o];f||(f=new Ko({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=a,r.owner=this,r.dataItem=u),this.points.push(r),h.push(r)},e.prototype.pointType=function(){return this.options.invertAxes?ii:oi},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));at(t.mean)&&(i=i.concat(t.mean)),o=this.valueAxisRanges[r]=o||{min:h,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];at(i)&&null!==i&&r.push(i)}return r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(ei),ai=function(t){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 at(t)&&null!==t}var li=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",a=e+"ErrorLow",s=e+"ErrorHigh",l=r.seriesIx,c=r.series,p=t.options.errorBars,u=r[a],h=r[s];k(i)&&(k(u)&&k(h)&&(o={low:u,high:h}),p&&at(p[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][l]=this.seriesErrorRanges[e][l]||new qr(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,a=e.options.errorBars,s=r===x,l={};e[r+"Low"]=o,e[r+"High"]=i,e.errorBars=e.errorBars||[];var c=new ai(o,i,s,this,n,a);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,a=this.options.series[n],s=this.seriesMissingValues(a),l=this.seriesPoints[n],c=t;si(o)&&si(i)||(c=this.createMissingValue(c,s)),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,a=t.y,s=this.xAxisRanges[o],l=this.yAxisRanges[i];si(n)&&(s=this.xAxisRanges[o]=s||{min:h,max:f},A(n)&&(n=Ze(r,n)),s.min=Math.min(s.min,n),s.max=Math.max(s.max,n)),si(a)&&(l=this.yAxisRanges[i]=l||{min:h,max:f},A(a)&&(a=Ze(r,a)),l.min=Math.min(l.min,a),l.max=Math.max(l.max,a))},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"]},a=this._evalSeries[i];at(a)||(this._evalSeries[i]=a=co(t,{},n,!0));var s=t;return a&&co(s=E({},t),{value:e,series:o,dataItem:r.dataItem},n),s},e.prototype.pointType=function(){return go},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 go(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 a=r[i++],s=e.seriesAxes(n.series),l=s.x.getSlot(t.x,t.x,o),c=s.y.getSlot(t.y,t.y,o);if(a)if(l&&c){var p=e.pointSlot(l,c);a.reflow(p)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new zt(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 a=this._bindPoint(i,o,n),s=a.valueFields,l=a.fields;t(s,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}(Kt);_t(li,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),E(li.prototype,Mo,{_bindPoint:ho.prototype._bindPoint});var ci=li,pi=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,a=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}]})}),s=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(a,s),n},e}(go);pi.prototype.defaults=E({},pi.prototype.defaults,{labels:{position:s},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),pi.prototype.defaults.highlight.zIndex=void 0;var ui=pi,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 ui},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"},a=e.color||r.color;t.size<0&&r.negativeValues.visible&&(a=mt(r.negativeValues.color,a));var s=E({labels:{animation:{delay:i,duration:600-i}}},this.pointOptions(r,e.seriesIx),{markers:{type:l,border:r.border,opacity:r.opacity,animation:n}});s=this.evalPointOptions(s,t,e),j(r.color)&&(a=s.color),s.markers.background=a;var c=new ui(t,s);return c.color=a,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],a=(i.minSize||Math.max(.02*r,10))/2,s=(i.maxSize||.2*r)/2,l=Math.PI*a*a,c=(Math.PI*s*s-l)/this._maxSize,p=0;p<n.length;p++){var u=n[p];if(u){var h=Math.abs(u.value.size)*c,f=Math.sqrt((l+h)/Math.PI),d=mt(u.options.zIndex,0)+(1-f/s);E(u.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}(ci);_t(hi,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var fi=hi,di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Zt);E(di.prototype,fo);var vi=di,yi=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,at(this.value.target)&&(this.target=new vi({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),a=o.categorySlot(o.categoryAxis,e.categoryIx,n),s=n.getSlot(this.value.target),l=i?s:a,c=i?a:s;if(r){var p=new zt(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:mt(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}(Kt);yi.prototype.tooltipAnchor=Uo.prototype.tooltipAnchor,_t(yi,{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(yi.prototype,fo),E(yi.prototype,vo);var gi=yi,mi=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,a=this.options,s=this.children,l=t.valueFields,c=E({vertical:!a.invertAxes,overlay:i.overlay,categoryIx:r,invertAxes:a.invertAxes},i),p=t.fields.color||i.color;c=this.evalPointOptions(c,l,o,r,i,n),j(i.color)&&(p=c.color);var u=new gi(l,c);u.color=p;var h=s[r];return h||(h=new Ko({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.invertAxes&&(this.chartService||{}).rtl}),this.append(h)),h.append(u),u},e.prototype.updateRange=function(t,e){var r=t.current,o=t.target,i=e.series.axis,n=this.valueAxisRanges[i];at(r)&&!isNaN(r)&&at(o&&!isNaN(o))&&((n=this.valueAxisRanges[i]=n||{min:h,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);mi.prototype._setAnimationOptions=Zo.prototype._setAnimationOptions,_t(mi,{animation:{type:Jr}});var xi=mi,bi=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=mt(r,i),o=mt(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);at(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);_t(bi,{border:{width:1},opacity:1});var _i=bi,wi=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=s,n===a?(e=v,r=p.bottomLeft().translate(0,l)):(e=a,r=p.topLeft().translate(0,-l))):(e=s,n===u?(t=d,r=p.topLeft().translate(-l,0)):(t=u,r=p.topRight().translate(l,0))),{point:r,align:{horizontal:t,vertical:e}}},e}(_i);_t(wi,{padding:10});var Ci=wi,Oi=function(t){function e(e,r,o){t.call(this,o),this.axis=r,this.stickyMode=r instanceof tr;var i=this.options.tooltip;i.visible&&(this.tooltip=new Ci(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,a=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 s=e.getSlot(e.pointCategoryIndex(r));a[n]=t[n]=s.center()[n]}else a[n]=t[n]=r[n];this.box=i,this.line.moveTo(a).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(),a=i?m:x,s=0;s<o;s++){var l=r[s];l.options.vertical!==i&&(t?t.wrap(l.lineBox()):t=l.lineBox().clone())}return n[a+1]=t[a+1],n[a+2]=t[a+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}(Kt);_t(Oi,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Pi=Oi,Si=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 a=o[n];if(a&&!1!==a.visible&&a.overlapsBox&&a.overlapsBox(e))if(a.unclipElements)a.unclipElements();else{var s=a.label,l=a.note;s&&s.options.visible&&(s.alignToClipBox&&s.alignToClipBox(e),s.options.noclip=!0),l&&l.options.visible&&(l.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(Kt);Si.prototype.isStackRoot=!0;var ki=Si,Ai=function(t){function e(e){t.call(this,e),this.id="pane"+Mi++,this.createTitle(),this.content=new Kt,this.chartContainer=new ki({},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=pe.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;ht(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],a=n.options.vertical,s=a?r:o,l=0;l<e.length;l++)if(0===s.length){var c=e[l];a!==c.options.vertical&&it(s,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 zt,o=0;o<e;o++){var i=t[o],n=i.options.vertical?x:m,a=i.lineBox();r[n+1]=a[n+1],r[n+2]=a[n+2]}if(0===r.x2)for(var s=this.parent.axes,l=s.length,c=0;c<l;c++){var p=s[c];if(!p.options.vertical){var u=p.lineBox();r.x1=u.x1,r.x2=u.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 zr(this),index:this.paneIndex,name:this.options.name})},e}(Yt),Mi=1;Ai.prototype.isStackRoot=!0,_t(Ai,{zIndex:-1,shrinkToFit:!0,title:{align:u},visible:!0});var ji=Ai;function Ti(t,e){null!==e&&t.push(e)}function Ei(t,e,r){var o=e.visible;if(at(o))return o;var i=t.pointVisibility;return i?i[r]:void 0}function Ri(t){for(var e=t.data,r=[],o=0,i=0,n=0;n<e.length;n++){var a=Kr.current.bindPoint(t,n),s=a.valueFields.value;A(s)&&(s=parseFloat(s)),k(s)?(a.visible=!1!==Ei(t,a.fields,n),a.value=Math.abs(s),r.push(a),a.visible&&(o+=a.value),0!==s&&i++):r.push(null)}return{total:o,points:r,count:i}}function Bi(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Ii(t,e){for(var r=[],o=[].concat(e),i=0;i<t.length;i++){var n=t[i];Z(n.type,o)&&r.push(n)}return r}function Di(t,e,r){if(null===e)return e;var o="_date_"+t,i=e[o];return i||(i=Ze(r,W(t)(e)),e[o]=i),i}function Li(t,e){var r=t.type,o=e instanceof Date;return!r&&o||Bi(r,c)}function Vi(t){return 1===t.length?t[0]:t}var zi=/area/i;function Ni(t,e){var r=Kr.current.bindPoint(t,null,e).valueFields;for(var o in r)if(M(r[o]))return!0}function Hi(t){var e,r,o=t.start,i=t.dir,n=t.min,a=t.max,s=t.getter,l=t.hasItem,c=t.series,p=o;do{l(p+=i)&&(e=Ni(c,(r=s(p)).item))}while(n<=p&&p<=a&&!e);if(e)return r}function Ui(t,e,r,o,i){var n=e.min,a=e.max,s=n>0&&n<r,l=a+1<r;if(s||l){var c,p,u;if("interpolate"!==function(t){return t.missingValues?t.missingValues:zi.test(t.type)||t.stack?$r:"interpolate"}(t))s&&(c=o(n-1)),l&&(p=o(a+1));else s&&(c=Ni(t,(u=o(n-1)).item)?u:Hi({start:n,dir:-1,min:0,max:r-1,getter:o,hasItem:i,series:t})),l&&(p=Ni(t,(u=o(a+1)).item)?u:Hi({start:a,dir:1,min:0,max:r-1,getter:o,hasItem:i,series:t}));c&&(t._outOfRangeMinPoint=c),p&&(t._outOfRangeMaxPoint=p)}}var Fi=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),a=0;a<o;a++){var s=E({},n,r[a]);A(s.title)&&(s.title=E({text:s.title},n.title));var l=new ji(s);l.paneIndex=a,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 a=new Pi(this.chartService,i,n);this.crosshairs.push(a),r.content.append(a)}}},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||{},a=[],s=0;s<e;s++){var l=t[s],c=!1!==l.visible;if(!1!==l.visibleInLegend){var p=l.name,u=c?U(o):U(n)||U(o);u&&(p=u({text:si(p)?p:"",series:l}));var h=l._defaults,f=l.color;j(f)&&h&&(f=h.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&&a.push({text:p,labels:d,markerColor:v,series:l,active:c})}}it(r.items,a)},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 a=i[n];a.options.vertical?r.push(a):e.push(a)}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,a=0;a<i;a++)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,a=e.getSlot(o,o,!0),s=e.options.reverse?2:1,l=t.box.translate(a[m+s]-i[m+n],a[x+s]-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),s={},l={},c={},p={},h=0;h<e.length;h++){var f=e[h],y=f.pane,g=y.id,m=!1!==f.options.visible,x=Ki(t,y)||r,b=i;x!==r&&(b=this.axisCrossingValues(x,e)),this.alignAxisTo(f,x,n[h],b[h]),f.options._overlap||(yt(f.lineBox().x1)===yt(x.lineBox().x1)&&(s[g]&&f.reflow(f.box.alignTo(s[g].box,u).translate(-f.options.margin,0)),m&&(s[g]=f)),yt(f.lineBox().x2)===yt(x.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),this.alignAxisTo(f,x,n[h],b[h]),l[g]&&f.reflow(f.box.alignTo(l[g].box,d).translate(f.options.margin,0)),m&&(l[g]=f)),0!==h&&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=Ki(e,C)||o,k=n;S!==o&&(k=this.axisCrossingValues(S,t)),this.alignAxisTo(w,S,i[_],k[_]),w.options._overlap||(yt(w.lineBox().y1)===yt(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)),yt(w.lineBox().y2,3)===yt(S.lineBox().y2,3)&&(p[O]&&w.reflow(w.box.alignTo(p[O].box,a).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=Wi(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 a=0;a<e.length;a++){var s=e[a];s.options.vertical||s.reflow(s.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,Wi(i).height()-o.contentBox.height());if(0!==n){for(var a=0;a<i.length;a++){var s=i[a];s.options.vertical&&s.reflow(s.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,a=i.contentBox;if(n.length>0){var s=Wi(n),l=Math.max(a.y1-s.y1,a.y2-s.y2);r=Math.max(r,a.x1-s.x1);for(var c=0;c<n.length;c++){var p=n[c];p.reflow(p.box.translate(0,l))}}}for(var u=0;u<e.length;u++){var h=e[u];h.reflow(h.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=Xi(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&&!Z(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,a=0;a<r;a++){var s=e[a],l=s.options.height;if(s.options.width=t.width(),s.options.height){if(l.indexOf&&l.indexOf("%")){var c=parseInt(l,10)/100;s.options.height=c*t.height()}s.reflow(t.clone()),o-=s.options.height}else i++}for(var p=0;p<r;p++){var u=e[p];u.options.height||(u.options.height=o/i)}for(var h=0;h<r;h++){var f=e[h],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 a=e[n];if(i.options.vertical!==a.options.vertical){var s=i.lineBox().clone().wrap(a.lineBox());t=t?t.wrap(s):s}}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&&at(e)||(i=g,o=0);var a=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(a),this.appendVisual(a)},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 a=i[n];a&&at(a.value)&&null!==a.value&&r.push(a)}}}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 a=i[n];a&&!1!==a.visible&&t(a)&&r.push(a)}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,a=Ki(e,n)||e[0],s=o+r,l=this.createLabelAxis(i,s,a);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,a=o.visible;if(n||!1===a)return null;var s=this.groupAxes(this.panes),l=r.options.vertical?s.x:s.y,c=this.axisCrossingValues(r,l),p="end"===i,u=r.range(),h=p?u.max:u.min;if(ft(c[e],u.min,u.max)-h==0)return null;c.splice(e+1,0,h),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}(Kt);function Gi(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Wi(t){for(var e,r=t.length,o=0;o<r;o++){var i=t[o],n=!1!==i.options.visible;if(n||Gi(i)){var a=n?i.contentBox():i.lineBox();e?e.wrap(a):e=a.clone()}}return e||new zt}function Ki(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(o&&o.pane===e)return o}}var Xi=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};_t(Fi,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Yi=Fi,qi={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function Zi(t,e,r){var o=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),at(o[i])||(o[i]={}),o=o[i];i=n.shift()}o[i]=r}var Qi=function(t){function e(e,r,o){t.call(this);var i=r.canonicalFields(e),n=r.valueFields(e),a=r.sourceFields(e,i),s=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 u=i[p],h=void 0;if(R(c))h=c[u];else{if(0!==p&&!Z(u,n))break;h=c}h&&s.push({canonicalName:u,name:a[p],transform:j(h)?h:Fr[h]})}}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],a={};if(n&&!k(n)&&!b(n)){var s=function(){};s.prototype=n,a=new s}for(var l=0;l<o.length;l++){var c=o[l],p=this._bindField(i.values,c.canonicalName),u=c.transform(p,r,i.dataItems,e);if(!(null===u||!R(u)||at(u.length)||u instanceof Date)){a=u;break}at(u)&&Zi(c.name,a,u)}return a},e.prototype._bindPoints=function(t){for(var e=this._binder,r=this._series,o=[],i=[],n=0;n<t.length;n++){var a=t[n];o.push(e.bindPoint(r,a)),i.push(r.data[a])}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],a=n.valueFields,s=void 0;s=at(a[e])?a[e]:n.fields[e],r.push(s)}return r},e}(O.Class),$i=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);$i.current=new $i;var Ji=$i,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.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=U(t),o=this.pointData();return e=r?r(o):this.formatValue(t.format),new zo(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}(Uo);tn.prototype.defaults=E({},tn.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});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.pointType=function(){return en},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:h,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}(Zo);rn.prototype.plotLimits=ho.prototype.plotLimits;var on=rn,nn=function(t){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}(go),an=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=mt(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 nn(o,E({},this.options,{labels:r.from,markers:e.from})),n=this.toPoint=new nn(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=a):(e=i.x2+5,r=n.y,o=s),{point:new Lt(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,a=i.vertical;"auto"===n.position&&(a?e.y1<=t.y1?(o="above",r="below"):(o="below",r="above"):e.x1<=t.x1?(o=u,r=d):(o=d,r=u),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}(Kt);E(an.prototype,fo),E(an.prototype,vo),an.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=an,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.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}(Eo),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.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 Ir).process(this.toGeometryPoints(t))},e}(ln),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}(ln);E(pn.prototype,_o);var un=pn,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,a=t.valueFields;if(!si(a.from)&&!si(a.to)){if(this.seriesMissingValues(i)!==$r)return null;a={from:0,to:0}}var s=this.pointOptions(i,n);s=this.evalPointOptions(s,a,o,r,i,n);var l=t.fields.color||i.color;j(i.color)&&(l=s.color);var c=new sn(a,s);return c.color=l,this.append(c),c},e.prototype.createSegment=function(t,e,r){var o=(e.line||{}).style;return new("smooth"===o?cn:"step"===o?un:ln)(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 zt(i.x1,t.y1,i.x2,t.y2),o=new zt(n.x1,t.y1,n.x2,t.y2)):(r=new zt(t.x1,i.y1,t.x2,i.y2),o=new zt(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:h,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,Po,Mo);var fn=hn,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.reflow=function(t){var e=this.options,r=this.value,o=this.owner.seriesValueAxis(e),i=[],n=[],a=[],s=o.getSlot(r.low,r.high),l=o.getSlot(r.open,r.open),c=o.getSlot(r.close,r.close);l.x1=c.x1=s.x1=t.x1,l.x2=c.x2=s.x2=t.x2;var p=s.center().x;i.push([l.x1,l.y1]),i.push([p,l.y1]),n.push([p,c.y1]),n.push([c.x2,c.y1]),a.push([p,s.y1]),a.push([p,s.y2]),this.lines=[i,n,a],this.box=s.clone().wrap(l.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}($o),vn=function(t){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 dn},e}(ei),yn=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}(Kt);_t(yn,{animation:{type:"fadeIn",delay:600}});var gn=yn,mn=function(t){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=po(e),o=!this.options.invertAxes,i=0;i<e.length;i++)for(var n=e[i],a=0,s=0,l=0;l<r;l++){var c=Kr.current.bindPoint(n,l),p=c.valueFields.value,u=c.fields.summary,h=a,f=void 0;u?"total"===u.toLowerCase()?(c.valueFields.value=a,h=0,f=a):(c.valueFields.value=s,f=h-s,s=0):k(p)&&(s+=p,f=a+=p),t(c,{category:this.categoryAxis.categoryAt(l),categoryIx:l,series:n,seriesIx:i,total:a,runningTotal:s,from:h,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 a=void 0,s=0;s<n.length;s++){var l=n[s];if(l&&a){var c=new gn(a,l,i);r.push(c),this.append(c)}a=l}}},e}(Zo),xn=["area","verticalArea","rangeArea","verticalRangeArea"],bn=[eo,oo].concat(xn),_n=function(t){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 Lo,t.length>0){this.invertAxes=Z(t[0].type,[Jr,"bullet",oo,"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 tr?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 a=this.groupSeriesByCategoryAxis(n),s=0;s<a.length;s++)this.createChartGroup(a[s],o)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Ii(t,["area","verticalArea"]),e),this.createRangeAreaChart(Ii(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Ii(t,[to,Jr]),e),this.createRangeBarChart(Ii(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Ii(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Ii(t,"candlestick"),e),this.createBoxPlotChart(Ii(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Ii(t,"ohlc"),e),this.createWaterfallChart(Ii(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Ii(t,[eo,oo]),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),a=this.findPane(n.options.pane);i=(Bi(n.options.type,c)||i.categoryField)&&Z(a,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=Z(t.type,bn),n=E({},t);return n.data=(n.data||[]).slice(o.min,o.max+1),i&&Ui(n,o,r,(function(r){return{item:t.data[r],category:e.categoryAt(r,!0),categoryIx:r-o.min}}),(function(e){return at(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=Bi(o.type,c),a=t.data,s=n?Di:Gr,l=[];n||e.mapCategories();for(var p=0;p<a.length;p++){var u=void 0;if(u=t.categoryField?s(t.categoryField,a[p],this.chartService.intl):i[p],at(u)&&null!==u){var h=e.totalIndex(u);l[h]=l[h]||{items:[],category:u},l[h].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 Qi(E({},t),Kr.current,Ji.current),n=o.data=[],a=e.options.dataItems||[],s=e.currentRangeIndices(),l=function(t){var o=t-s.min,n=r[t];if(n||(n=r[t]={}),n.categoryIx=o,!n.item){var a=e.categoryAt(t,!0);n.category=a,n.item=i.aggregatePoints(n.items,a)}return n},c=s.min;c<=s.max;c++){var p=l(c);n[p.categoryIx]=p.item,p.items&&p.items.length&&(a[p.categoryIx]=p.item)}return Z(o.type,bn)&&Ui(o,s,e.totalCount(),l,(function(t){return r[t]})),e.options.dataItems=a,o},e.prototype.appendChart=function(e,r){var o=e.options.series,i=this.seriesCategoryAxis(o[0]),n=i.options.categories,a=Math.max(0,po(o)-n.length);if(a>0)for(n=i.options.categories=i.options.categories.slice(0);a--;)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=K([].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=[],a=0;a<e.length;a++){var s=Cn(t,e[a],a);0!==s.length&&n.push(s)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],o=new Zo(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 on(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 xi(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 To(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 Do(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 fn(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 vn(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 ei(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 ni(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 mn(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=Ii(this.series,io),o=0;o<this.series.length;o++){var i=this.series[o];if(Z(i.type,xn)){var n=i.line;n&&"step"===n.style&&r.push(i)}}for(var a=0;a<r.length;a++){var s=r[a].categoryAxis||"";if(s===t||!s&&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 tr&&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(Z(this.findPane(n.pane),t)){var a=n.name,s=n.categories;void 0===s&&(s=[]),n=E({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?h:0},n),at(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(a,i)&&(n.justified=!1);var l=void 0;if(l=Li(n,s[0])?new cr(n,this.chartService):new tr(n,this.chartService),r[i].categories=l.options.srcCategories,a){if(this.namedCategoryAxes[a])throw new Error("Category axis with name "+a+" is already defined");this.namedCategoryAxes[a]=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(!Z(t[e].type,xn))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},a=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var s=0;s<o.length;s++){var l=o[s];if(Z(this.findPane(l.pane),t)){var c=l.name,p=Bi(l.type,"log")?{min:.1,max:1}:{min:0,max:1},u=e.query(c)||r||p;0===s&&u&&r&&(u.min=Math.min(u.min,r.min),u.max=Math.max(u.max,r.max));var h=new(Bi(l.type,"log")?wr:yr)(u.min,u.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]=h}h.axisIndex=s,a.push(h),this.appendAxis(h)}}var f=this.valueAxis||a[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 Lt(o.x,o.y),n=this.pointPane(i),a=[],s=[];if(n){for(var l=n.axes,c=0;c<l.length;c++){var p=l[c];p.getValue?Ti(s,p.getValue(i)):Ti(a,p.getCategory(i))}0===a.length&&Ti(a,this.categoryAxis.getCategory(i)),a.length>0&&s.length>0&&t.trigger(r,{element:pt(e),originalEvent:e,category:Vi(a),value:Vi(s)})}},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){wn(this.options,t,e),wn(this.originalOptions,t,e)},e}(Yi);function wn(t,e,r){E([].concat(e instanceof tr?t.categoryAxis:t.valueAxis)[e.axisIndex],r)}function Cn(t,e,r){return K(t,(function(t){return 0===r&&!t.categoryAxis||t.categoryAxis===e}))}_t(_n,{categoryAxis:{},valueAxis:{}}),E(_n.prototype,qi);var On=_n;function Pn(){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 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:Pn,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 kn(t,e){var r=(e||"").toLowerCase(),o=t.event;return"none"===r&&!(o.ctrlKey||o.shiftKey||o.altKey)||o[r+"Key"]}function An(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 Mn=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=kn(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 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 a=r.axes,s=0;s<a.length;s++){var l=a[s];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);Mn.prototype.options={key:"none",lock:"none"};var jn=Mn,Tn=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(kn(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=lt(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,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 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 a=i[n],s=a.options.vertical;if((r!==m||s)&&(r!==x||!s)&&at(a.axisIndex)){var l=a.pointsRange(t,e);l&&o.push({axis:a,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(),a=Math.min(r.x,o),s=Math.min(r.y,i),l=Math.abs(r.x-o),c=Math.abs(r.y-i);return n===m&&(a=e.x1,l=e.width()),n===x&&(s=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(a,e.x1),top:Math.max(s,e.y1),width:l,height:c}},e}(O.Class);Tn.prototype.options={key:"shift",lock:"none"};var En=Tn,Rn=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 a=i[n],s=a.options.vertical;if((r!==m||s)&&(r!==x||!s)&&a.zoomRange){var l=ft(this.options.rate,.01,.9),c=a.zoomRange(-t*l,e);c&&o.push({axis:a,range:c})}}return this.axisRanges=o,An(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),Bn=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 zt),i.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?ae(e):new zt},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(Kt),In=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 re({vertical:!1,wrap:!1,align:s,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new Zt(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 le(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:pt(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}(Yt),Dn=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,e),this.chartService=r,Z(this.options.position,[v,d,a,u,"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=s;"custom"===e?o=u:Z(e,[v,a])?(o="start"===r?u:"end"===r?d:s,i=e):r&&("start"===r?i=v:"end"===r&&(i=a)),this.container=new Yt({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 Yt({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 Bn({vertical:r,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,a=0;a<n;a++){var s=i[a];o.append(new In(E({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,s)))}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||(at(e)?"horizontal"!==e:Z(r,[u,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 zt(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,s=o===v||o===a?m:x,l=this.isVertical(),c=t.clone(),p=t.clone();o!==u&&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 h=(p=r.box).clone();(e.offsetX||e.offsetY)&&(p.translate(e.offsetX,e.offsetY),r.reflow(p)),h[s+1]=t[s+1],h[s+2]=t[s+2],this.box=h},e.prototype.containerCustomReflow=function(t){var e=this.options,r=this.container,o=e.offsetX,i=e.offsetY,n=e.width,a=e.height,s=this.isVertical(),l=t.clone();s&&a?l.y2=l.y1+a:!s&&n&&(l.x2=l.x1+n),r.reflow(l),l=r.box,r.reflow(new zt(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:s},t),r=e.text;if(t&&!1!==t.visible){if(at(e)&&e.visible){var o=U(e);o?r=o({text:r}):e.format&&(r=this.chartService.format.auto(e.format,r))}this.title=new le(r,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new re({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===a?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(Kt);_t(Dn,{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:u,vAlign:s}});var Ln=Dn,Vn=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],a=0;a<i.length;a++){var s=i[a];if((o=Ii(t,s.seriesTypes)).length>0){n=s;break}}return new n.type(o,e,r)},e}(O.Class);Vn.current=new Vn;var zn=Vn;function Nn(t){var e=document.createElement("div");return t&&(e.className=t),e}function Hn(t){for(var e=t;e&&!X(e,"k-handle");)e=e.parentNode;return e}var Un=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 cr,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=Nn("k-selector");L(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var r=this.selection=Nn("k-selection");this.leftMask=Nn("k-mask"),this.rightMask=Nn("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(r),r.appendChild(Nn("k-selection-bg"));var o=this.leftHandle=Nn("k-handle k-left-handle"),i=this.rightHandle=Nn("k-handle k-right-handle");o.appendChild(Nn()),i.appendChild(Nn()),r.appendChild(o),r.appendChild(i),this.chartElement.appendChild(e);var n=L(r,["borderLeftWidth","borderRightWidth","height"]),a=L(o,"height").height,s=L(i,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},L(o,{top:(n.height-a)/2}),L(i,{top:(n.height-s)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),nt(this.wrapper,((t={})[no]=this._mousewheelHandler,t))),this._domEvents=Ae.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:Ze(r,t.min),max:Ze(r,t.max),from:Ze(r,t.from),to:Ze(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&&(gt(this.wrapper,((t={})[no]=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=pt(t);if(!this._state&&r){this.chart._unsetActivePoint(),this._state={moveTarget:Hn(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:Hn(pt(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,a=o.options.reverse,s=this._index(r.from),l=this._index(r.to),c=this._index(r.min),p=this._index(r.max),u=e.startLocation-t.x.location,h=i.from,f=i.to,d=i.to-i.from,v=L(this.wrapper,"width").width/(o.categoriesCount()-1),y=Math.round(u/v)*(a?-1:1);if(n){var g=X(n,"k-left-handle"),m=X(n,"k-right-handle");X(n,"k-selection k-selection-bg")?(i.from=Math.min(Math.max(c,s-y),p-d),i.to=Math.min(i.from+d,p)):g&&!a||m&&a?(i.from=Math.min(Math.max(c,s-y),p-1),i.to=Math.max(i.from+1,i.to)):(g&&a||m&&!a)&&(i.to=Math.min(Math.max(c+1,l-y),p),i.from=Math.min(i.to-1,i.from)),i.from===h&&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 Lt(o.x,r.box.y1)),n=this._index(e.from),a=this._index(e.to),s=this._index(e.min),l=this._index(e.max),c=a-n,p=n+c/2,u={},h=3===t.event.which,f=Math.round(p-i);this._state||h||(this.chart._unsetActivePoint(),r.options.justified||f--,u.from=Math.min(Math.max(s,n-f),l-c),u.to=Math.min(u.from+c,l),this._start(t),this._state&&(this._state.range=u,this.trigger("select",this._rangeEventArgs(u)),this._end()))},e.prototype._mousewheel=function(t){var e=this,r=rt(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,a=e._toModelCoordinates(t.touches[0].x.location).x,s=e._toModelCoordinates(t.touches[1].x.location).x,l=Math.min(a,s),c=Math.max(a,s);t.preventDefault(),n.from=i.pointCategoryIndex(new Lt(l))||o.min,n.to=i.pointCategoryIndex(new Lt(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,a=r.selection.border,s=o?e:t,l=o?t:e,c="x"+(o?2:1),p=this._slot(s),u=yt(p[c]-i.left+n.left);L(this.leftMask,{width:u}),L(this.selection,{left:u}),p=this._slot(l);var h=yt(r.width-(p[c]-i.left+n.left));L(this.rightMask,{width:h});var f=r.width-h;f!==r.width&&(f+=a.right),L(this.rightMask,{left:f}),L(this.selection,{width:Math.max(r.width-(u+h)-a.right,0)})},e.prototype.set=function(t,e){var r=this.options,o=this._index(r.min),i=this._index(r.max),n=ft(this._index(t),o,i),a=ft(this._index(e),n+1,i);r.visible&&this.move(n,a),r.from=this._value(n),r.to=this._value(a)},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),a=this._index(e.to),s={from:n,to:a},l=E({},s);if(this._state&&(s=this._state.range),i!==d&&(s.from=ft(ft(n-t,0,a-1),r,o)),i!==u&&(s.to=ft(ft(a+t,s.from+1,o),r,o)),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.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),a=this._index(r.to),s={from:n,to:a},l=E({},s),c=this.categoryAxis.options.reverse,p=m+(c?"2":"1"),u=this.categoryAxis.lineBox(),h=Math.abs(u[p]-e.x),f=u.width(),d=yt(h/f,2),v=yt(d*t),y=yt((1-d)*t);if(this._state&&(s=this._state.range),s.from=ft(ft(n-v,0,a-1),o,i),s.to=ft(ft(a+y,s.from+1,i),o,i),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(O.Class);_t(Un,{visible:!0,mousewheel:{zoom:"both"},min:f,max:h});var Fn=Un,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.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}(_i),Wn=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=K(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 Lt(i.x,n.y):new Lt(n.x,i.y),align:{horizontal:"center",vertical:"center"}}},e}(_i);_t(Wn,{categoryFormat:"{0:d}"});var Kn=Wn,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.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]=Qr,t.transform(O.geometry.transform().scale(o.x,o.y))}else this.abort()},e.prototype.step=function(t){var e=Q(this.fromScale.x,1,t),r=Q(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);_t(Xn,{duration:600}),O.drawing.AnimationFactory.current.register(Jr,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(){var t=this.center=this.element.bbox().center();this.element.transform(O.geometry.transform().scale(Qr,Qr,t))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.center))},e}(O.drawing.Animation);_t(Yn,{easing:"easeOutElastic"}),O.drawing.AnimationFactory.current.register("bubble",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.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(O.drawing.Animation);_t(qn,{duration:200,easing:"linear"}),O.drawing.AnimationFactory.current.register("fadeIn",qn);var 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.setup=function(){this.element.transform(O.geometry.transform().scale(Qr,Qr,this.options.center))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.options.center))},e}(O.drawing.Animation);_t(Zn,{easing:"easeOutElastic",duration:600}),O.drawing.AnimationFactory.current.register(ro,Zn);var Qn=Zn,$n=function(t){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?Oo:xo)(t,e,r)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===$r){var r={x:t.x,y:t.y};return si(r.x)||(r.x=0),si(r.y)||(r.y=0),r}},e}(ci);E($n.prototype,Po);var Jn=$n,ta=function(t){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 Lo,this.yAxisRangeTracker=new Lo},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(Ii(n,"scatter"),o),this.createScatterLineChart(Ii(n,"scatterLine"),o),this.createBubbleChart(Ii(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=K([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=K([].concat(e.yAxis),(function(t){return t.name===i}))[0],a=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||a},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new ci(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new Jn(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new fi(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,a=e?this.yAxisRangeTracker:this.xAxisRangeTracker,s=E({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=Bi(s.type,"log"),p=a.query(),u=l?{min:.1,max:1}:{min:0,max:1},h=a.query(i)||p||u,f=[s.min,s.max],d=this.series,v=0;v<d.length;v++){var y=d[v],g=y[e?"yAxis":"xAxis"];if(g===s.name||0===r&&!g){var m=Kr.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===r&&p&&(h.min=Math.min(h.min,p.min),h.max=Math.max(h.max,p.max));for(var x=0;x<f.length;x++)if(f[x]instanceof Date){o=!0;break}var b=new(Bi(s.type,c)||!s.type&&o?mr:l?wr:yr)(h.min,h.max,s,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=[],a=0;a<r.length;a++){Z(this.findPane(r[a].pane),t)&&o.push(this.createXYAxis(r[a],!1,a))}for(var s=0;s<i.length;s++){Z(this.findPane(i[s].pane),t)&&n.push(this.createXYAxis(i[s],!0,s))}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 Lt(o.x,o.y),n=this.axes,a=n.length,s=[],l=[],c=0;c<a;c++){var p=n[c],u=p.options.vertical?l:s,h=p.getValue(i);null!==h&&u.push(h)}s.length>0&&l.length>0&&t.trigger(r,{element:pt(e),originalEvent:e,x:Vi(s),y:Vi(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);ea(this.options,i,r,e),ea(this.originalOptions,i,r,e)},e}(Yi);function ea(t,e,r,o){E([].concat(r?t.yAxis:t.xAxis)[e],o)}_t(ta,{xAxis:{},yAxis:{}}),E(ta.prototype,qi);var ra=ta,oa=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=U(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===s||"insideEnd"===t.position)t.color||(t.color=At(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 le(r,E({},t,{align:s,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,a=e.box.height(),l=e.box.width();if(t.position===s)r.radius=Math.abs((r.radius-a)/2)+a,n=r.point(i),e.reflow(new zt(n.x,n.y-a/2,n.x,n.y));else if("insideEnd"===t.position)r.radius=r.radius-a/2,n=r.point(i),e.reflow(new zt(n.x,n.y-a/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=u),e.reflow(new zt(c,n.y-a,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,a={color:n,opacity:r.opacity},s=this.createSegment(e,E({fill:a,stroke:{opacity:r.opacity},zIndex:r.zIndex},i));t.append(s),No(r)&&t.append(this.createGradientOverlay(s,{baseColor:n,fallbackFill:a},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):Gt.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:aa(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}(Kt),ia=yt(vt(30),10),na=yt(vt(60),10);function aa(t){var e=vt(t),r=yt(Math.sin(e),10),o=yt(Math.cos(e),10);return{horizontal:Math.abs(r)>na?s:o<0?d:u,vertical:Math.abs(r)<ia?s:r<0?a:v}}_t(oa,{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:ro},highlight:{visible:!0,border:{width:1}},visible:!0}),E(oa.prototype,fo);var sa=oa,la={createLegendItem:function(t,e,r){var o=this.options.legend||{},i=o.labels||{},n=o.inactiveItems||{},a=n.labels||{};if(r&&!1!==r.visibleInLegend){var s,l,c=!1!==r.visible,p=c?U(i):U(a)||U(i),u=r.category;p&&(u=p({text:u,series:r.series,dataItem:r.dataItem,percentage:r.percentage,value:t})),c?(s={},l=e.color):(s={color:a.color,font:a.font},l=(n.markers||{}).color),si(u)&&""!==u&&this.legendItems.push({active:c,pointIndex:r.index,text:u,series:r.series,markerColor:l,labels:s})}}},ca=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,a=0;a<n;a++){var l=i[a],c=l.data,p=Ri(l),u=p.total,h=p.points,f=p.count,d=360/u,v=void 0;isFinite(d)||(v=360/f);var y=void 0;y=at(l.startAngle)?l.startAngle:e.startAngle,a!==n-1&&"outsideEnd"===l.labels.position&&(l.labels.position=s);for(var g=0;g<h.length;g++){var m=h[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 Ht(null,0,0,y,w),{owner:this,category:at(x.category)?x.category:"",index:g,series:l,seriesIx:a,dataItem:c[g],percentage:0!==u?b/u:0,explode:C,visibleInLegend:x.visibleInLegend,visible:_,zIndex:n-a,animationDelay:this.animationDelay(g,a,n)}),!1!==_&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;co(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 sa(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(),a=Math.min(n.width(),n.height()),s=a/2,l=a-.85*a,c=new zt(n.x1,n.y1,n.x1+a,n.y1+a),p=c.center(),u=n.center(),h=e.series.length,f=[],v=[],y=mt(e.padding,l);this.targetBox=t,y=y>s-5?s-5:y,c.translate(u.x-p.x,u.y-p.y);for(var g=s-y,m=new Lt(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===h-1&&b.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),b.reflow(c);var O=b.label;O&&"outsideEnd"===O.options.position&&w===h-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=ht(this.points),r=e.sector,o=t.length-1,i=r.radius+e.options.labels.distance,n=[],a=t[0].box,s=yt(a.y1-(r.center.y-i-a.height()-a.height()/2));n.push(s);for(var l=0;l<o;l++){var c=t[l+1].box;a=t[l].box,s=yt(c.y1-a.y2),n.push(s)}return s=yt(r.center.y+i-t[o].box.y2-t[o].box.height()/2),n.push(s),n},e.prototype.distributeLabels=function(t,e){for(var r,o,i,n=t.length,a=0;a<n;a++)for(i=-t[a],r=o=a;i>0&&(r>=0||o<n);)i=this._takeDistance(t,a,--r,i),i=this._takeDistance(t,a,++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=ht(this.points),i=o.sector,n=o.options.labels,a=e.length,s=n.distance,c=i.center.y-(i.radius+s)-e[0].box.height();t[0]+=2;for(var p=0;p<a;p++){var u=e[p],h=u.box;c+=t[p],r=this.hAlignLabel(h.x2,i.clone().expand(s),c,c+h.height(),u.orientation===d),u.orientation===d?(n.align!==l&&(r=i.radius+i.center.x+s),u.reflow(new zt(r+h.width(),c,r,c))):(n.align!==l&&(r=i.center.x-i.radius-s),u.reflow(new zt(r-h.width(),c,r,c))),c+=h.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],a=n.sector,s=n.label,l=a.middle(),c=(n.options.connectors||{}).color||e.color;if(s){var p=new O.drawing.Path({stroke:{color:c,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===s.options.position){var u=s.box,h=a.center,f=a.point(l),v=new Lt(u.x1,u.center().y),y=void 0,g=void 0,m=void 0;f=a.clone().expand(e.padding).point(l),p.moveTo(f.x,f.y),s.orientation===d?(m=pa(h,f,v,g=new Lt(u.x1-e.padding,u.center().y)),v=new Lt(g.x-4,g.y),(m=m||v).x=Math.min(m.x,v.x),this.pointInCircle(m,a.center,a.radius+4)||m.x<a.center.x?(y=a.center.x+a.radius+4,n.options.labels.align!==to?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=pa(h,f,v,g=new Lt(u.x2+e.padding,u.center().y)),v=new Lt(g.x+4,g.y),(m=m||v).x=Math.max(m.x,v.x),this.pointInCircle(m,a.center,a.radius+4)||m.x>a.center.x?(y=a.center.x-a.radius-4,n.options.labels.align!==to?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),Ct(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,a=e.center,s=a.x,l=a.y,c=Math.min(Math.abs(l-r),Math.abs(l-o));return c>n?t:s+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}(Kt);function pa(t,e,r,o){var i,n=(o.x-r.x)*(t.y-r.y)-(o.y-r.y)*(t.x-r.x),a=(o.y-r.y)*(e.x-t.x)-(o.x-r.x)*(e.y-t.y);if(0!==a){var s=n/a;i=new Lt(t.x+s*(e.x-t.x),t.y+s*(e.y-t.y))}return i}_t(ca,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),E(ca.prototype,la),ca.prototype.isStackRoot=!0;var ua=ca,ha=function(t){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 ua(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),it(this.options.legend.items,e.legendItems)},e}(Yi),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.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===s){o.radius-=(o.radius-o.innerRadius)/2;var a=o.point(i);r.reflow(new zt(a.x,a.y-n/2,a.x,a.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return Gt.current.createRing(t,e)},e}(sa);_t(fa,{overlay:{gradient:"roundedGlass"},labels:{position:s},animation:{type:ro}}),E(fa.prototype,fo);var da=fa,va=function(t){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 da(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()),a=n/2,s=n-.85*n,l=o.series,c=l.length,p=mt(o.padding,s),u=a-(p=p>a-5?a-5:p),h=0,f=0;f<c;f++){var d=l[f];0===f&&at(d.holeSize)&&(r=d.holeSize,u-=d.holeSize),at(d.size)?u-=d.size:h++,at(d.margin)&&f!==c-1&&(u-=d.margin)}at(r)||(u-=r=.75*((a-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)+mt(x.size,u/h),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}(ua);_t(va,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var ya=va,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.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],r=new ya(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e}(ha),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.initFields=function(){this.valueAxisRangeTracker=new Lo},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=Rr,e={min:.1,max:1}):(t=Tr,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 a=new t(n.min,n.max,i,this.chartService);this.valueAxis=a,this.appendAxis(a)},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),a=o.clone().unpad(n),l=a.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(a,x,s);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}(Yi),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.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Lt.onCircle(t.center,t.startAngle,r);return new zt(o.x,o.y,o.x,o.y)},e}(ci);_t(xa,{clip:!1});var ba=xa,_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}(Jn);_a.prototype.pointSlot=ba.prototype.pointSlot,_t(_a,{clip:!1});var wa=_a,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.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 Ir(!1),o=this.points();o.push(e),(t=this._strokeSegments=r.process(o)).pop()}return t},e}(Io),Oa=function(t){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}(Eo);function Pa(t,e){return t.value.x-e.value.x}var Sa=function(t){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 Ca(t,e,r):new Oa(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===$r&&(r.y=0)),r},e.prototype.seriesMissingValues=function(t){return t.missingValues||$r},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(Pa),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}(wa),ka=function(t){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 kr(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),Yi.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Ii(t,["polarLine"]),e),this.createScatterChart(Ii(t,["polarScatter"]),e),this.createAreaChart(Ii(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new wa(this,{series:t});this.appendChart(r,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var r=new ba(this,{series:t});this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Sa(this,{series:t});this.appendChart(r,e)}},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Lt(o.x,o.y),n=this.axisX.getValue(i),a=this.axisY.getValue(i);null!==n&&null!==a&&t.trigger(r,{element:pt(e),x:n,y:a})},e.prototype.createCrosshairs=function(){},e}(ma);_t(ka,{xAxis:{},yAxis:{}}),E(ka.prototype,qi);var Aa=ka;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.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Lt.onCircle(t.center,t.middle(),r);return new zt(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=ht(o),a=ht(n.linePoints),s=0===i.categoryIx,l=a.categoryIx===a.categoriesCount-1;s&&l&&ht(o).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,r){var o=new("smooth"===e.style?Oo:xo)(t,e,r),i=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==i||(o.options.closed=!0),o},e}(To);_t(Ma,{clip:!1,limitPoints:!1});var ja=Ma,Ta=function(t){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}(Io),Ea=function(t){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}(Eo),Ra=function(t){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,a,s=this.options.isStacked,l=(e.line||{}).style;return s&&r>0&&o&&(n=o.linePoints.slice(0),i=o),"smooth"===l?(a=new Ta(t,e,r,i,n)).options.closed=!0:(t.push(t[0]),a=new Ea(t,e,r,i,n)),a},e.prototype.seriesMissingValues=function(t){return t.missingValues||$r},e}(ja),Ba=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}(da);_t(Ba,{overlay:{gradient:"none"},labels:{distance:10}});var Ia=Ba,Da=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Go:Fo}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,a=n+o+i*(n-1),s=t.angle/a,l=t.startAngle+s*(o/2);this.forEach(r,(function(e){var r=t.clone();r.startAngle=l,r.angle=s,e.sector&&(r.radius=e.sector.radius),e.reflow(r),e.sector=r,l+=s+s*i}))},e}(Kt);_t(Da,{gap:1,spacing:0});var La=Da,Va=function(t){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 zt;for(var a=i;a>=0&&a<o;a+=n){var s=r[a].sector;s.startAngle=t.startAngle,s.angle=t.angle}},e}(Kt),za=function(t){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 Ia},e.prototype.clusterType=function(){return La},e.prototype.stackType=function(){return Va},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}(Zo);za.prototype.reflow=ho.prototype.reflow,_t(za,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var Na=za,Ha=function(t){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.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(){On.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){On.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(Ii(t,["radarArea"]),e),this.createLineChart(Ii(t,["radarLine"]),e),this.createBarChart(Ii(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 Ra(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new ja(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 Na(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 Lt(o.x,o.y),n=this.categoryAxis.getCategory(i),a=this.valueAxis.getValue(i);null!==n&&null!==a&&t.trigger(r,{element:pt(e),category:n,value:a})},e.prototype.createCrosshairs=function(){},e}(ma);E(Ha.prototype,qi,{appendChart:On.prototype.appendChart,aggregateSeries:On.prototype.aggregateSeries,seriesSourcePoints:On.prototype.seriesSourcePoints}),_t(Ha,{categoryAxis:{categories:[]},valueAxis:{}});var Ua=Ha,Fa=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 zt(e[0].x,e[0].y,e[1].x,e[2].y),r&&r.reflow(new zt(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 Lt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Kt);_t(Fa,{color:g,border:{width:1}}),E(Fa.prototype,fo);var Ga=Fa,Wa=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=Ri(r),n=i.total,a=i.points,s=0;s<a.length;s++){var l=a[s];if(l){var c=l.fields;j(r.color)||(r.color=c.color||e[s%e.length]),c=E({index:s,owner:this,series:r,dataItem:o[s],percentage:l.value/n},c,{visible:l.visible});var p=l.valueFields.value,u=this.createSegment(p,c),h=this.createLabel(p,c);u&&h&&u.append(h)}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;co(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 Ga(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 a=U(i),s={dataItem:o,value:t,percentage:e.percentage,category:e.category,series:r};a?n=a(s):i.format&&(n=this.plotArea.chartService.format.auto(i.format,n)),i.color||(i.color=At(r.color),i.background||(i.background=r.color)),this.evalSegmentOptions(i,t,e);var l=new le(n,E({vAlign:i.position},i),s);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!==s){var i=t[r].box.width();o===u?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,a=i[0],s=a,l=0;l<i.length;l++)i[l].percentage>s.percentage&&(s=i[l]);for(var c=a.percentage/s.percentage*e,p=(e-c)/2,u=0,h=0;h<n;h++){var f=i[h].percentage,d=i[h+1],v=d?d.percentage:f,y=i[h].points=[],g=o.dynamicHeight?r*f:r/n,m=void 0;m=ft(m=f?(e-c*(v/f))/2:v?0:e/2,0,e),y.push(new O.geometry.Point(t.x1+p,t.y1+u)),y.push(new O.geometry.Point(t.x1+e-p,t.y1+u)),y.push(new O.geometry.Point(t.x1+e-m,t.y1+g+u)),y.push(new O.geometry.Point(t.x1+m,t.y1+g+u)),p=m,u+=g+o.segmentSpacing,c=ft(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,r){for(var o=this.options,i=this.points,n=i.length,a=o.neckRatio<=1,s=a?o.neckRatio*e:e,l=a?0:(e-e/o.neckRatio)/2,c=((a?e:e-2*l)-s)/2,p=0,u=0;u<n;u++){var h=i[u].points=[],f=i[u].percentage,d=o.dynamicHeight?c*f:c/n,v=o.dynamicHeight?r*f:r/n;h.push(new O.geometry.Point(t.x1+l,t.y1+p)),h.push(new O.geometry.Point(t.x1+e-l,t.y1+p)),h.push(new O.geometry.Point(t.x1+e-l-d,t.y1+v+p)),h.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),a=i.width();o.dynamicSlope?this.dynamicSlopeReflow(i,a,n):this.constantSlopeReflow(i,a,n);for(var s=0;s<r;s++)e[s].reflow(t)}},e}(Kt);_t(Wa,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:s,position:s,zIndex:1}}),E(Wa.prototype,la);var Ka=Wa,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.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],r=new Ka(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),it(this.options.legend.items,e.legendItems)},e}(Yi),Ya=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()}},qa=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=U(t),i=t.color;e=o?o(r):this.formatValue(t.format),i||(i=At(this.color)),this.label=new le(e,E({align:s,vAlign:s,margin:{left:5,right:5},zIndex:mt(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"===mt(t.type,"rect"),i=mt(e.width,o?1:0),n=Math.round(i/2);if(t.size){var a=r.center();r.size.width=r.size.height=t.size,r.origin.x=Math.round(a.x-r.size.width/2),r.origin.y=Math.round(a.y-r.size.height/2)}return r.size.width-=i,r.size.height-=i,r.origin.y+=n+.5,r.origin.x+=n+.5,ae(r)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,r=mt(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 Zt({type:mt(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:mt(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 Zt({type:mt(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:mt(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 Lt(t,e),align:{horizontal:s,vertical:a}}},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}(Kt);E(qa.prototype,fo),E(qa.prototype,vo),qa.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var Za=qa,Qa=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:h,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"]},a=this._evalSeries[i];at(a)||(this._evalSeries[i]=a=co(t,{},n,!0));var s=t;return a&&co(s=E({},t),{value:e,series:o,dataItem:r.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),s},e.prototype.pointType=function(){return Za},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=Ya(i)(t.value/this.valueRange.max);var n=new Za(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 a=r[i++],s=e.seriesAxes(n.series),l=s.xAxis,c=s.yAxis,p=l.categoryIndex(t.x),u=c.categoryIndex(t.y),h=l.getSlot(p,p,o),f=c.getSlot(u,u,o);if(a)if(h&&f){var d=e.pointSlot(h,f);a.reflow(d)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new zt(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,a=i.yAxis,s=n.currentRangeIndices(),l=a.currentRangeIndices(),c=0;c<o.data.length;c++){var p=this._bindPoint(o,r,c),u=p.valueFields,h=p.fields,f=n.totalIndex(u.x),d=a.totalIndex(u.y),v=s.min<=f&&f<=s.max,y=l.min<=d&&d<=l.max;v&&y&&t(u,E({pointIx:c,series:o,seriesIx:r,dataItem:o.data[c],owner:this},h))}},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}(Kt);_t(Qa,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),E(Qa.prototype,{_bindPoint:ho.prototype._bindPoint});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.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,a=i.yAxis,s=Bt(n.categories||[]),l=Bt(a.categories||[]),c=0;c<o.length;c++){var p=Kr.current.bindPoint(r,c).valueFields,u=p.x,h=p.y;s.has(u)||s.add(u),l.has(h)||l.add(h)}n.categories=s.values(),a.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(Ii(n,["heatmap"]),o)}},e.prototype.createHeatmapChart=function(t,e){var r=new $a(this,{series:t});this.appendChart(r,e)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,o=K([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=K([].concat(e.yAxis),(function(t){return t.name===i}))[0],a=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||a},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 a=[].concat(o.yAxis),s=t.yAxis;if(r=s?a.find((function(t){return t.name===s})):a[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 "+s);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,a=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),s=a.categories?a.categories[0]:null,l=[a.min,a.max,s],p=this.series,u=0;u<p.length;u++){var h=p[u],f=h[e?"yAxis":"xAxis"];if(f===a.name||0===r&&!f){var d=Kr.current.bindPoint(h,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(Bi(a.type,c)||!a.type&&o?cr:tr)(a,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=[],a=0;a<r.length;a++){Z(this.findPane(r[a].pane),t)&&o.push(this.createXYAxis(r[a],!1,a))}for(var s=0;s<i.length;s++){Z(this.findPane(i[s].pane),t)&&n.push(this.createXYAxis(i[s],!0,s))}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 Lt(o.x,o.y),n=this.axes,a=n.length,s=[],l=[],c=0;c<a;c++){var p=n[c];Ti(p.options.vertical?l:s,p.getCategory(i))}s.length>0&&l.length>0&&t.trigger(r,{element:pt(e),originalEvent:e,x:Vi(s),y:Vi(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.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Yi);function ts(t,e,r,o){E([].concat(r?t.yAxis:t.xAxis)[e],o)}_t(Ja,{xAxis:{},yAxis:{}}),E(Ja.prototype,qi);var es=Ja,rs="color",os="first",is="max";zn.current.register(On,[Jr,to,eo,oo,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),zn.current.register(ra,["scatter","scatterLine","bubble"]),zn.current.register(ha,[ro]),zn.current.register(ga,["donut"]),zn.current.register(Xa,["funnel"]),zn.current.register(Aa,["polarArea","polarLine","polarScatter"]),zn.current.register(Ua,["radarArea","radarColumn","radarLine"]),zn.current.register(es,["heatmap"]),Kr.current.register([Jr,to,eo,oo,"area","verticalArea"],[y],["category",rs,"noteText","errorLow","errorHigh"]),Kr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",rs,"noteText"]),Kr.current.register(["waterfall","horizontalWaterfall"],[y],["category",rs,"noteText","summary"]),Kr.current.register(["polarArea","polarLine","polarScatter"],[m,x],[rs]),Kr.current.register(["radarArea","radarColumn","radarLine"],[y],[rs]),Kr.current.register(["funnel"],[y],["category",rs,"visibleInLegend","visible"]),Ji.current.register([Jr,to,eo,oo,"area","verticalArea","waterfall","horizontalWaterfall"],{value:is,color:os,noteText:os,errorLow:"min",errorHigh:is}),Ji.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:is,color:os,noteText:os}),Ji.current.register(["radarArea","radarColumn","radarLine"],{value:is,color:os}),Kr.current.register(["scatter","scatterLine","bubble"],[m,x],[rs,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Kr.current.register(["bubble"],[m,x,"size"],[rs,"category","noteText"]),Kr.current.register(["heatmap"],[m,x,y],[rs,"noteText"]),Kr.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",rs,"downColor","noteText"]),Ji.current.register(["candlestick","ohlc"],{open:is,high:is,low:"min",close:is,color:os,downColor:os,noteText:os}),Kr.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",rs,"noteText"]),Ji.current.register(["boxPlot","verticalBoxPlot"],{lower:is,q1:is,median:is,q3:is,upper:is,mean:is,outliers:os,color:os,noteText:os}),Kr.current.register(["bullet","verticalBullet"],["current","target"],["category",rs,"visibleInLegend","noteText"]),Ji.current.register(["bullet","verticalBullet"],{current:is,target:is,color:os,noteText:os}),Kr.current.register([ro,"donut"],[y],["category",rs,"explode","visibleInLegend","visible"]);var ns=["category",y,m,x],as=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 Se(this,i),this.chartService.theme=o,this._initElement(e);var a=E({},this.options,r);this._originalOptions=E({},a),this._theme=o,this._initTheme(a,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=ns,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&&Ct(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 Lr(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 zr(e[r])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new zr(e[t])},e.prototype.plotArea=function(){return new Nr(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var r,o,i,n=this._plotArea,a=(n.srcSeries||n.series||[])[0];j(e)?r=n.filterPoints(e):(R(e)?(o=e.series,i=e.category):o=i=e,r="donut"===a.type?ss(n.pointsBySeriesName(o),i):a.type===ro||"funnel"===a.type?ss((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&&at(t)&&(r=n.categoryAxis.categoryIndex(t)),o){if(r>=0){var a=this._plotArea.pointsByCategoryIndex(r);i.showAt(a)}}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 Sn,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),hs(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}});us(this._originalOptions,o),this.options=E({},this._originalOptions,o),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),hs(i._plotArea.panes),e=i.visual,this.options=r}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof On&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new jn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new En(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Rn(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"]),a=this.element;this._dragZoomEnabled&&i&&n?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(a.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 Gn(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Kn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var r,o,i,n=(e||{}).axisDefaults||{};function a(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 s=0;s<ns.length;s++)r=ns[s]+"Axis",o=t.axisDefaults||{},i=(i=[].concat(t[r])).map(a),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),a=e?E({},e.seriesDefaults):{},s=E({},a);ls(n),ls(s);for(var l=0;l<o;l++){var c=r[l].type||t.seriesDefaults.type,p=E({data:[]},s,a[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],a=i._defaults;i.color=i.color||n,a&&(a.color=a.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),r=new te(this._modelOptions());return r.chart=this,r._plotArea=e,pe.buildTitle(t.title,r),t.legend&&t.legend.visible&&r.append(new Ln(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 zn.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 tr&&i.select&&!i.vertical){var n=o.range(),a=new Fn(this,o,E({min:n.min,max:n.max},i.select));e.push(a)}}},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,nt(r,((t={}).contextmenu=this._clickHandler,t[no]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&nt(r,((e={}).mousemove=this._mousemove,e)),this.domEvents=Ae.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:cs(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:cs(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,a=0;a<n.length;a++){var s=n[a];if(s.options.name){var l=s.options.vertical?t.y:t.x,c=l.startLocation-l.location;0!==c&&(i[s.options.name]=s.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:cs(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 mt(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,r=rt(t),o=this._mousewheelZoom,i=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(i))if(o){var n={delta:r,axisRanges:cs(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 a=this._navState;if(!a)this._startNavigation(t,i,"zoomStart")||(a=this._navState);if(a){var s=a.totalDelta||r;a.totalDelta=s+r;for(var l=this._navState.axes,c={},p=0;p<l.length;p++){var u=l[p],h=u.options.name;h&&(c[h]=u.scaleRange(-s*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 a=cs(n);this.trigger(r,{axisRanges:a,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:a,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=ut(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=lt(this.element);return{left:yt(t.x+e.left+r.left),top:yt(t.y+e.top+r.top)}},e.prototype._toModelCoordinates=function(t,e){var r=this.element,o=lt(r),i=this._elementPadding(),n=kt(r).invert(),a=new O.geometry.Point(t-o.left-i.left,e-o.top-i.top).transform(n);return new Lt(a.x,a.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 Yi)})),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],a=this._getDefaultOpacityForSeries(n),s=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=a,n.line&&(n.line.opacity=a)):(n.defaultOpacity=a,n.opacity=s,n.line&&(n.line.opacity=s))}},e.prototype._applySeriesOpacity=function(t,e,r,o){for(var i=0;i<t.length;i++){var n=t[i],a=n.series||o;if(a&&(a.highlight||{}).visible&&n.visual){var s=o?o.opacity:n.series.opacity;(a!==e||r)&&n.visual.opacity(r?1:s)}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),nt(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,a=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(a)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var s=n.parent.getNearestPoint(a.x,a.y,n.seriesIx);if(s&&s!==n)if(this._activePoint=s,!s.hover(this,t))E({},r.tooltip,s.options.tooltip).visible&&o.show(s),i.show(s)}}else gt(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,a=this._tooltip,s=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)})),u=p[0]||{};u.categoryPoints=p,c.length>0&&!this.trigger("seriesHover",u)?(o.visible&&a.showAt(c,t),s.show(c),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=l}else r&&this._sharedHighlight&&(s.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(s.hide(),a.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 q,a=[],s=!1,l=0;l<i;l++){var c=o[l],p=c.categoryAxis===t.name||!c.categoryAxis&&0===e,u=c.data,h=u.length,f=c.categoryField&&p;if(s=f||s,f&&h>0)for(var d=(r=Li(t,Gr(c.categoryField,u[0])))?Di:Gr,v=0;v<h;v++){var y=u[v],g=d(c.categoryField,y,this.chartService.intl);!r&&n.get(g)||(a.push([g,y]),r||n.set(g,!0))}}if(a.length>0){r&&(a=function(t,e){void 0===e&&(e=Fe);for(var r=function(t,e){void 0===e&&(e=Fe);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],ht(i))&&i.push(r[n]);return i}(a,(function(t,e){return Fe(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,a=0;a<n;a++)r[a]=r[a]||[],r[a].push(i[a]);return r}(a);t.categories=m[0]}else s&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Kr.current.valueFields(t),r=!0,o=0;o<e.length;o++){var i=e[o];if(i===y?i="field":i+="Field",!at(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=Z(n.type,[ro,"donut","funnel"])?o.findPoint((function(r){return r.series.index===t&&r.index===e})):o.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&r){var a=o.series.length>1,s=r.length?r[0]:r;this._displayInactiveOpacity(s,a,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;gt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&nt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){us(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,gt(this.element,((t={}).contextmenu=this._clickHandler,t[no]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&gt(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 ss(t,e){if(t)for(var r=0;r<t.length;r++)if(t[r].category===e)return[t[r]]}function ls(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 cs(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 ps=["data","categories"];function us(t,e){for(var r in e)if(!Z(r,ps)&&e.hasOwnProperty(r)){var o=e[r],i=t[r];if(at(i)){var n=null===o;n||!at(o)?(delete t[r],n&&delete e[r]):i&&R(o)&&R(i)&&us(i,o)}}}function hs(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}_t(as,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:to,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 fs=as,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._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 Lt(this.plotArea.box.x2,e.center().y):new Lt(e.center().x,-2),align:o}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Kn),vs=[Jr,"bullet"];function ys(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 gs(t,e){for(var r=0;r<t.length;r++)t[r].style.display=e[r]}function ms(t){return k(t)?[t]:t}var 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.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=ys(e.childNodes);this._initialWidth=Math.floor(ct(e).width),gs(e.childNodes,r),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),r=ys(e.childNodes),o=document.createElement("span");o.innerHTML="&nbsp;",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),gs(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,a=0;a<o.length;a++){var s=o[a],l=(s.options.series||[])[0];if(l){if(l.type===Jr)return 150;if("bullet"===l.type)return 150;if(l.type===ro)return ct(i).height;var c=s.categoryAxis;if(c){var p=c.categoriesCount()*(!s.options.isStacked&&Z(l.type,[to,"verticalBullet"])?s.seriesOptions.length:1);n=Math.max(n,p)}}}var u=n*e.pointWidth;return u>0&&(u+=r.left+r.right),u},e.prototype._createSharedTooltip=function(t){return new ds(this._plotArea,t)},e.normalizeOptions=function(t){var e=ms(t);return(e=b(e)?{seriesDefaults:{data:e}}:E({},e)).series||(e.series=[{data:ms(e.data)}]),E(e,{seriesDefaults:{type:e.type}}),(Z(e.series[0].type,vs)||Z(e.seriesDefaults.type,vs))&&(e=E({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(fs);_t(xs,{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 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.setup=function(){this._initialOpacity=parseFloat(L(this.element,"opacity").opacity)},e.prototype.step=function(t){L(this.element,{opacity:String(Q(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 ws(t,e){var r=document.createElement("div");return r.className=t,e&&(r.style.cssText=e),r}var Cs=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=ws("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=ws("k-tooltip k-chart-tooltip"),r=this.scroll=ws("k-scroll");e.innerHTML="&nbsp;",t.appendChild(e),t.appendChild(r)},e.prototype.show=function(t,e,r){var o=this.element,i=this.options,n=this.scroll,a=this.tooltip,s=Ve(We(t)+We(e-t)/2),l=.4*r.width(),c=r.center().x-l,p=(r.center().x-c)/(i.max-i.min),u=s-i.min,h=this.chartService.intl.format(i.format,t,e),f=U(i);this.clearHideTimeout(),this._visible||(L(o,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(h=f({from:t,to:e})),a.innerHTML=h,L(a,{left:r.center().x-a.offsetWidth/2,top:r.y1});var d=L(a,["marginTop","borderTopWidth","height"]);L(n,{width:l,left:c+u*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 _s(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);_t(Cs,{format:"{0:d} - {1:d}",hideDelay:500});var Os=Cs,Ps="_navigator",Ss=Ps;function ks(){}var As=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)),at(o.hint.visible)||(o.hint.visible=o.visible),this.chartObserver=new J(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 Ze(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,a=i.max,s=r.select,l=s.from,c=s.to,p=s.mousewheel,u=(t=o,ks.prototype=t,new ks);0!==o.categoriesCount()&&(this.clean(),u.box=o.box,this.selection=new Fn(e,u,{min:n,max:a,from:l||n,to:c||a,mousewheel:mt(p,{zoom:"left"}),visible:r.visible},new J(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),r.hint.visible&&(this.hint=new Os(e.element,e.chartService,{min:n,max:a,template:U(r.hint),format:r.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[Ss].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(ht(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(),a=n.roundedRange(),s=n.pane.box.containsPoint(i),l=r._plotArea.categoryAxis,c=t.axisRanges[l.options.name],p=this.options.select;if(c&&!s&&o){e=p.from&&p.to?We(p.to)-We(p.from):We(o.options.to)-We(o.options.from);var u=Ve(ft(We(c.min),a.min,We(a.max)-e)),h=Ve(ft(We(u)+e,We(a.min)+e,a.max));this.options.select={from:u,to:h},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(u,h),this.showHint(u,h)}},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!==Ps&&(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 cr(E({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;o.from=Ne(i.min,-i.baseUnitStep,i.baseUnit),o.to=Ne(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,a=this.mainAxis(),s=t.delta;if(r){var l=a.categoryIndex(r.options.from),c=a.categoryIndex(r.options.to),p=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(s)>1&&(s*=3),c-l>1?(r.zoom(s,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[Ss]},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:Ps});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===Ii(r,io).length,a=E({type:"date",pane:Ps,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]}}),s=e.categoryAxis;o.push(E({},a,{maxDateGroups:200},s,{name:Ss,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),E({},a,s,{name:Ss+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),E({},a,s,{name:Ss+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(E({name:Ss,pane:Ps,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,a=e.seriesDefaults,s=0;s<i.length;s++)o.push(E({color:n[s%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},a,i[s],{axis:Ss,categoryAxis:Ss,autoBind:e.autoBindElements}))},e}(O.Class),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.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)),As.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=K([].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 As(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===Ps?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===Ss?t=o.categories:t&&o.pane===Ps&&(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===Ps},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(fs);_t(Ms,{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 js=Ms,Ts=Math.PI/180;function Es(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 Rs=O.drawing.Group,Bs=O.drawing.Path,Is=O.drawing.Text;function Ds(t,e){var r=t.box,o=t.children[0].box,i=e.border||{},n=e.background||"",a=Bs.fromRect(new O.geometry.Rect([r.x1,r.y1],[r.width(),r.height()]),{stroke:{}}),s=new Is(t.text,new O.geometry.Point(o.x1,o.y1),{font:e.font,fill:{color:e.color}}),l=Es(s.bbox().clone(),e.padding),c=Bs.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 Rs;return p.append(a),p.append(c),p.append(s),p}function Ls(t,e,r){var o=at(t.from)?t.from:f,i=at(t.to)?t.to:h;return t.from=Math.max(Math.min(i,o),e),t.to=Math.min(Math.max(i,o),r),t}function Vs(t,e){var r=V(e);return r.left=-r.left,r.top=-r.top,r.right=-r.right,r.bottom=-r.bottom,Es(t,r)}var zs=O.drawing.Path,Ns=O.drawing.Surface,Hs=function(t){function e(e,r,o,i){void 0===i&&(i={}),t.call(this),this.element=e,this.theme=o,this.contextService=new Se(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=Vs(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=Vs(o,r.width)),zs.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=Ns.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);_t(Hs,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Us=Hs,Fs=O.drawing.Path,Gs=O.drawing.Group,Ws=O.geometry.Point;function Ks(t,e){var r,o,i=t.position,n=t.tickX,a=t.tickY;return t.vertical?(r=new Ws(n,i),o=new Ws(n+e.size,i)):(r=new Ws(i,a),o=new Ws(i,a+e.size)),new Fs({stroke:{color:e.color,width:e.width}}).moveTo(r).lineTo(o)}function Xs(t,e,r,o){var i=e.length;if(o.visible)for(var n=r.mirror,a=r.lineBox,s=o.skip;s<i;s+=o.step)s%o.skipUnit!=0&&(r.tickX=n?a.x2:a.x2-o.size,r.tickY=n?a.y1-o.size:a.y1,r.position=e[s],t.append(Ks(r,o)))}var Ys=function(t){function e(e,r){var o=e||{};!at(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||Dt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Gs,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||[],a=new Gs,s=n.length,l=t.rangeSize||t.minorTicks.size/2,c=0;c<s;c++){var p=Ls(n[c],e,r),u=this.getSlot(p.from,p.to),h=o?this.lineBox():u,f=o?u:this.lineBox();o?h.x1-=l*(i?-1:1):f.y2+=l*(i?-1:1),a.append(Fs.fromRect(new O.geometry.Rect([h.x1,f.y1],[h.x2-h.x1,f.y2-f.y1]),{fill:{color:p.color,opacity:p.opacity},stroke:{}}))}return a},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,r=new Gs,o=0;o<t.length;o++)r.append(Ds(t[o],e.labels));return r},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),r=new Gs;if(t.width>0&&t.visible){var o=new Fs({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 Gs,e=this.options,r=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Xs(t,this.getMajorTickPositions(),o,e.majorTicks),Xs(t,this.getMinorTickPositions(),o,E({},{skipUnit:r/e.minorUnit},e.minorTicks)),t},e}(yr);_t(Ys,{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 qs=Ys,Zs=function(t){function e(e,r){t.call(this);var o=e.options,i=o.min,n=o.max,a=this.options=E({},this.options,r);a.fill=a.color,this.scale=e,at(a.value)?a.value=ft(a.value,i,n):a.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=at(e._oldValue)?e.value:i,e.value=ft(t,i,n),this.elements&&this.repaint()},e}(O.Class);_t(Zs,{color:n});var Qs=Zs,$s=function(t){function e(e,r){t.call(this,e,r),this.options=E({track:{visible:at(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,a=n.mirror,s=n.vertical,l=i.lineBox(),c=o.track.size||o.size,p=o.size/2,u=V(o.margin),h=s?u[a?"left":"right"]:u[a?"bottom":"top"];h=a?-h:h,s?(r=new zt(l.x1+h,l.y1,l.x1+h,l.y2),a?r.x1-=c:r.x2+=c,"barPointer"!==o.shape&&(t=e=new zt(l.x2+h,l.y1-p,l.x2+h,l.y2+p))):(r=new zt(l.x1,l.y1-h,l.x2,l.y1-h),a?r.y2+=c:r.y1-=c,"barPointer"!==o.shape&&(t=e=new zt(l.x1-p,l.y1-h,l.x2+p,l.y1-h))),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:at(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}(Qs);_t($s,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:V(3),animation:{type:"barPointer"},visible:!0});var Js=$s,tl=function(t){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 a=this.fromScale=new O.geometry.Point(r.x1,r.y1),s=this.toScale=new O.geometry.Point(o.x1,o.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(s)/t.duration*1e3,1))},e.prototype.step=function(t){var e=Q(this.fromScale.x,this.toScale.x,t),r=Q(this.fromScale.y,this.toScale.y,t);this.element.transform(O.geometry.transform().translate(e,r))},e}(O.drawing.Animation);_t(tl,{easing:"linear",duration:250}),O.drawing.AnimationFactory.current.register("arrowPointer",tl);var el=tl,rl=O.geometry.Point,ol=O.drawing.Path,il=function(t){function e(e,r){t.call(this,e,r),at(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 rl(0,0-r),new rl(0-o*e,0),new rl(0,0+r)]:[new rl(0-r,0),new rl(0,0+o*e),new rl(0+r,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=new el(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 ol({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}(Js),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.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=Q(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);_t(nl,{easing:"linear",speed:250}),O.drawing.AnimationFactory.current.register("barPointer",nl);var al=nl,sl=O.drawing.Group,ll=O.drawing.Path,cl=function(t){function e(e,r){t.call(this,e,r),at(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,a=i===n?-1:1,s=r.size*a,l=e.getSlot(e.options.min),c=e.getSlot(t),p=n?x:m,u=n?m:x,h=this._margin()*a,f=new O.geometry.Point;f[p]=l[p+"1"],f[u]=l[u+"1"];var d=new O.geometry.Point;d[p]=c[p+"1"],d[u]=c[u+"1"],n?(f.translate(h,0),d.translate(h,0)):(f.translate(0,h),d.translate(0,h));var v=d.clone(),y=f.clone();return n?(v.translate(s,0),y.translate(s,0)):(v.translate(0,s),y.translate(0,s)),[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 al(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 ll({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 ll.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}(Js),pl=O.drawing.Group,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.reflow=function(t){var e=this.pointers,r=t.origin.x,o=t.origin.y,i=new zt(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 pl,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 qs(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?il:cl;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),a=0;a<o.length;a++)n.wrap(o[a].box.clone());return r.options.vertical?(e=n.width()/2,n=new zt(i.x-e,t.y1,i.x+e,t.y2)):(e=n.height()/2,n=new zt(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,a=0;a<r.length;a++)i.wrap(r[a].box.clone());e.options.vertical?(t=n.center().x-i.center().x,e.reflow(new zt(o.x1+t,n.y1,o.x2+t,n.y2))):(t=n.center().y-i.center().y,e.reflow(new zt(o.x1,o.y1+t,o.x2,o.y2+t)));for(var s=0;s<r.length;s++)r[s].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 a=0;a<e.length;a++)e[a].reflow(this.bbox)},e}(Us);_t(ul,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var hl=ul,fl=O.drawing.Arc,dl=O.drawing.Path,vl=O.drawing.Group;function yl(t,e,r,o){var i=new vl,n=t.center,a=t.getRadiusX();if(o.visible)for(var s=0;s<e.length;s++){var l=t.pointAt(e[s]),c=new O.geometry.Point(n.x+a-o.size,n.y).rotate(e[s],n);i.append(new dl({stroke:{color:o.color,width:o.width}}).moveTo(l).lineTo(c))}return i}function gl(t,e,r,o){return{from:t,to:e,color:r,opacity:o}}var ml=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||Dt(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(!at(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,a=e.endAngle,s=a-n;return(i?a-(t-r)/(o-r)*s:(t-r)/(o-r)*s+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 vl,a=.05*r;at(t.rangeDistance)?a=t.rangeDistance:t.rangeDistance=a;var s=t.labels,l="inside"===s.position,c=at(this.labelElements);l&&(r-=this.ticksSize(),this.hasRanges()&&!c&&(r-=i+a),e.setRadiusX(r).setRadiusY(r));for(var p=this.labels,u=p.length,h=V(s.padding),f=(h.left+h.right)/2,d=(h.top+h.bottom)/2,v=0;v<u;v++){var y=p[v],g=y.box.width()/2,m=y.box.height()/2,x=o[v],b=(x-180)*Ts,_=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 zt(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=Ds(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,a=0;a<t.length;a++)t[a]._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 vl;if(e){var o=this.options,i=o.rangeSize,n=o.reverse,a=o.rangeDistance,s=this.getRangeRadius();this.radius(this.radius()-i-a);for(var l=0;l<e;l++){var c=t[l],p=this.slotAngle(c[n?"to":"from"]),u=this.slotAngle(c[n?"from":"to"]);u-p!=0&&r.append(this.createRange(p,u,s,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 fl(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,a=t.rangePlaceholderColor;o.push(gl(i,n,a));for(var s=0;s<r;s++)for(var l=Ls(e[s],i,n),c=o.length,p=0;p<c;p++){var u=o[p];if(u.from<=l.from&&l.from<=u.to){o.push(gl(l.from,l.to,l.color,l.opacity)),u.from<=l.to&&l.to<=u.to&&o.push(gl(l.to,u.to,a,l.opacity)),u.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=yl(r,this.majorTickAngles,e.majorUnit,e.majorTicks);var o=new vl;o.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,"outside"===e.labels.position){var a=r.getRadiusX();r.setRadiusX(a-i+n).setRadiusY(a-i+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=yl(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,a=i/e,s=t.startAngle,l=n/a;o&&(s+=n,l=-l),n>=360&&r.max%e==0&&(a-=1);for(var c=[],p=0;p<a;p++)c.push(yt(s,3)),s+=l;return yt(s)<=t.endAngle&&c.push(s),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 a=0;a<t.length;a++){var s=i.pointAt(e[a]),l=t[a].segments,c=s.x-l[0].anchor().x,p=s.y-l[0].anchor().y;t[a].transform((new O.geometry.transform).translate(c,p))}},e}(yr);_t(ml,{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 xl=ml,bl=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=Q(e.oldAngle,e.newAngle,t);this.element.transform(O.geometry.transform().rotate(r,e.center))},e}(O.drawing.Animation);_t(bl,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialPointer",bl);var _l=bl,wl=O.drawing.Circle,Cl=O.drawing.Group,Ol=O.drawing.Path,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.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 _l(this.elements,E(e.animation,{oldAngle:r,newAngle:o})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=new Cl;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(Ts),r},e.prototype.reflow=function(t){var e=this.center=t.center,r=ft(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 Ol({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 wl(r,{fill:{color:e},stroke:{color:e}})},e}(Qs);_t(Pl,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var Sl=Pl,kl=O.drawing.Group,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.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 kl;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,a=this.scale.arc,s=this._initialPlotArea,l=Math.abs(this.getDiff(s,t)),c=yt(l,3),p=yt(-l,3),u=0,h=0;!(!(h++<100)||(u=n===o?u+1:0)>5||c!==i&&0<=(e=this.getPlotBox(c,t,a))&&e<=2||p!==i&&0<=(o=this.getPlotBox(p,t,a))&&o<=2||(i=e>0&&o>0?2*c:e<0&&o<0?2*p:yt((c+p)/2||1,3),0<=(r=this.getPlotBox(i,t,a))&&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(),a=r.clone();a.setRadiusX(n+t).setRadiusY(n+t),o.arc=a,o.reflow(e),this.plotBbox=o.bbox;for(var s=0;s<i.length;s++)i[s].reflow(a),this.plotBbox=O.geometry.Rect.union(this.plotBbox,i[s].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,a=this.pointers;n.arc.center.x-=o,n.arc.center.y-=i,n.reflow(t);for(var s=0;s<a.length;s++)a[s].reflow(n.arc),this.plotBbox=O.geometry.Rect.union(n.bbox,a[s].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,r=this.scale=new xl(t.scale,this.contextService);this.pointers=[];for(var o=b(e)?e:[e],i=0;i<o.length;i++){var n=new Sl(r,E({},o[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Us);_t(Al,{transitions:!0,gaugeArea:{background:""}});var Ml=Al,jl=function(t){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),a=this.createRange(i,n,this.getRangeRadius(),r);return this.ranges.append(a),a},e}(xl);_t(jl,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var Tl=jl,El=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=ft(i,150,800);var n=e.elements.options.get("stroke.color"),a=e.currentColor();n!==a&&(this.startColor=new O.Color(n),this.color=new O.Color(a))}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=Q(e.oldAngle,e.newAngle,t);if(this.element.angle(i),o){var n=yt(Q(r.r,o.r,t)),a=yt(Q(r.g,o.g,t)),s=yt(Q(r.b,o.b,t));this.element.stroke(new O.Color(n,a,s).toHex())}},e}(O.drawing.Animation);_t(El,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialRangePointer",El);var Rl=El,Bl=function(t){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 Rl(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,a=o.value,s=k(a)?a:e;if(i)for(var l=0;l<i.length;l++){var c=i[l],p=c.color,u=c.from;void 0===u&&(u=e);var h=c.to;if(void 0===h&&(h=r),u<=s&&s<=h)return p}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Qs);_t(Bl,{animation:{type:"radialRangePointer",duration:150}});var Il=Bl,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._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 Tl(t.scale,this.contextService),r=new Il(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 a=i+t;i=Math.max(i,0),a>r.width&&(i-=a-r.width)}if(e<r.height){var s=this.scale.bbox,l=s.bottomRight().y,c=n+e;n=Math.max(n,s.origin.y),c>l&&(n-=c-l)}return{left:i,top:n}},e}(Ml),Ll=function(t){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}(Dl),Vl=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=at(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);_t(Vl,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var zl=Object.assign,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),zl(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}(Vl);_t(Nl,{addCheckSum:!0});var Hl=Object.assign,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),Hl(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}(Vl),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),Hl(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.ceil(Math.max(.15*this.width,24)),i=this.maxRatio;if(this.height<o)throw new Error("Insufficient height for Code39 encoding: the current height is "+this.height+"px and the minimum height is "+o+"px.");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 for Code39 encoding: the current width is "+this.width+'px and the minimum width for value "'+this.value+'" is '+n+"px.")}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}(Ul);_t(Fl,{addCheckSum:!1});var Gl={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"]},Wl=function(t){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,Gl,{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}(Fl),Kl=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),Kl(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.ceil(Math.max(.15*this.width,24));if(this.height<t)throw new Error("Insufficient height for Code93 encoding: the current height is "+this.height+"px, the minimum required height is "+t+"px.");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength){var e=Math.ceil(this.minBaseUnitLength*(this.width/this.baseUnit));throw new Error("Insufficient width for Code93 encoding: the current width is "+this.width+'px and the minimum required width for value "'+this.value+'" is '+e+"px.")}},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}(Ul),Yl=function(t){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,Gl,{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}(Xl),ql=/^\d+$/,Zl=Object.assign,Ql=function(t){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),Zl(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(ql.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!Z(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}(Vl),$l=/^\d+$/,Jl=/^[a-z0-9]+$/i,tc=Object.assign,ec=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),rc=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(Z("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=[],Z(this.FNC4,t)&&this._moves.push(this._moveFNC),Z(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}(ec),oc={};oc.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),tc(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}(rc),oc.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),tc(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}(rc),oc.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),tc(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=pc(t,e,4);return(e+4<=t.length||2===t.length)&&$l.test(r)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=pc(t.value,t.index,2))&&$l.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(ec),oc.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),tc(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++)Z(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}(ec),oc.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),tc(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 Z(this.key,this.states)},e.prototype.pushState=function(t){var e,r,o,i=this.encoding,n=t.value.replace(/\s/g,""),a=new RegExp("["+this.startAI+this.endAI+"]","g"),s=t.index,l={state:this.startState};i.addPattern(this.START);for(;;){if(l.index=0,(e=(o=n.charAt(s)===this.startAI?2:0)>0?this.getBySeparator(n,s):this.getByLength(n,s)).ai.length)r=s+o+e.id.length+e.ai.length;else if((r=n.indexOf(this.startAI,s+1))<0){if(s+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(s,r).replace(a,""),this.validate(e,l.value),i.pushData(l,this.dependentStates),r>=n.length)break;s=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&&!$l.test(r))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===o.type&&!Jl.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=pc(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&&Z(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}(ec);var ic=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),tc(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 oc[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}(Vl),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),tc(this,{name:"Code 128 A",states:["A"]})},e}(ic),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),tc(this,{name:"Code 128 B",states:["B"]})},e}(ic),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),tc(this,{name:"Code 128 C",states:["C"]})},e}(ic),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),tc(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(ic),cc=function(t){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),tc(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(ic);function pc(t,e,r){return t.substring(e,e+r)}var uc=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),uc(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:gc})},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}(Vl),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),uc(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},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),uc(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},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),uc(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(hc),yc=function(t){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),uc(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(hc),gc={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))}},mc=Object.assign,xc=function(t){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),mc(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}(Vl),bc=Object.assign,_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),bc(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}(xc),wc={code11:Nl,code39:Fl,code39extended:Wl,code93:Xl,code93extended:Yl,code128:lc,code128a:nc,code128b:ac,code128c:sc};wc["gs1-128"]=cc,wc.msimod10=fc,wc.msimod11=dc,wc.msimod1010=vc,wc.msimod1110=yc,wc.postnet=Ql,wc.ean8=_c,wc.ean13=xc;var Cc=function(t){function e(e,r,o){void 0===o&&(o=It),t.call(this),this.options=E({},this.options,r),this.element=e,this.onError=o,this._initElement(),this._initSurface(),this._setOptions(r),r&&at(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")},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),a=this._getSize(),s=r.border||{},l=this.encoding,c=new zt(0,0,a.width,a.height).unpad(s.width).unpad(r.padding),p=c.height(),u=new O.drawing.Group;this.contentBox=c,u.append(this._getBackground(a)),i.visible&&(p-=O.drawing.util.measureText(o,{font:i.font}).height+n.top+n.bottom);try{t=l.encode(o,c.width(),p)}catch(t){return this.onError(t),u}return i.visible&&(e=o,r.checksum&&at(l.checksum)&&(e+=" "+l.checksum),u.append(this._getText(e))),this.barHeight=p,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),u.append(this._bandsGroup),u},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(!at(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,a=new O.drawing.Group,s=0;s<t.length;s++){if(r=(o=R(t[s])?t[s]:{width:t[s],y1:0,y2:this.barHeight}).width*e,s%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});a.append(c)}n+=r}return a},e.prototype._getBackground=function(t){var e=this.options,r=e.border||{},o=new zt(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 le(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),!wc[this.type])throw new Error("Encoding '"+this.type+"' is not supported.");this.encoding=new wc[this.type],this.options=E({},this.options,t)},e}(O.Class);_t(Cc,{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 Oc=Cc,Pc={width:500,height:100};var Sc=function(t,e){if(void 0===e&&(e=Pc),!t)throw new Error("Please specify barcode type to validate.");var r=t.toLowerCase(),o="";if("upca"===r?(r="ean13",o="0"):"upce"===r&&(r="ean8",o="0"),!wc[r])throw new Error("Encoding '"+t+"' is not supported.");return function(t,e,r){return function(o){try{t.encode(r+o,e.width,e.height)}catch(t){return{valid:!1,error:t}}return{valid:!0}}}(new wc[r],e,o)},kc=Object.assign;function Ac(t,e){for(var r=[],o=0;o<t.length;)r.push(t.substring(o,o+e)),o+=e;return r}function Mc(t,e){var r=Number(t).toString(2);return r.length<e&&(r=new Array(e-r.length+1).join(0)+r),r}function jc(t){return parseInt(t,2)}var Tc=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),Ec=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),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.getEncodingResult=function(t,e){var r=function(t){var e,r=[],o=0,i=t;r.push(ap(i,8,5,8,e)),e=r[0].mode,i=i.substr(r[0].modeString.length);for(;i.length>0;){var n=ap(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=sp(function(t){for(var e,r=0,o=0;o<t.length;o++)e=Vc[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=Vc[t[i].mode],o+=r.encode(t[i].modeString,e);return o}(r,o);return new Ec(i,o)},e}(O.Class),Bc=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(){kc(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+Mc(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(O.Class),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),kc(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=Ac(t,3),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=Mc(o[r],10);return i+Mc(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}(Bc),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),kc(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=Ac(t,2),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=Mc(45*this.getValue(o[r].charAt(0))+this.getValue(o[r].charAt(1)),11);return i+Mc(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}(Bc),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),kc(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 in QR Code: "'+t+'".')},e.prototype.encode=function(t,e){for(var r=this.getModeCountString(t.length,e),o=0;o<t.length;o++)r+=Mc(this.getValue(t.charAt(o)),8);return r},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Bc),Vc={};Vc.numeric=new Ic,Vc.alphanumeric=new Dc,Vc.byte=new Lc;var zc=function(t){function e(){t.call(this),this.initProperties(),this.mode=Vc[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){kc(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=sp(this.getDataCodewordsCount(r),e),i=this.mode.getModeCountString(r.length/8,o)+r;return new Ec(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=Mc(t,8);else{for(var i=8-e,n=0;n<r;n++)o=Mc(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),Nc=[{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}}],Hc={1:0},Uc={0:1},Fc={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},Gc=[1,0,1,1,1],Wc=[1,0,1],Kc={L:"01",M:"00",Q:"11",H:"10"},Xc=["11101100","00010001"],Yc=[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}],qc=/^\d+/,Zc=new RegExp("^[A-Z $%*+./:-]+"),Qc=new RegExp("^[A-Z0-9 $%*+./:-]+"),$c=new RegExp("^[^A-Z0-9 $%*+./:-]+"),Jc=[[1,0],[1,25,0]];function tp(t,e,r,o){for(var i=0;i<t.length;i++)t[i][r][o]=e}function ep(t,e,r,o){for(var i=0;i<Yc.length;i++)t[i][r][o]=Yc[i](r,o)?1^e:parseInt(e,10)}function rp(t,e){for(var r=[],o=t.length-2;o>=0;o--)r[o]=t[o]^e[o];return r}function op(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]=Hc[Uc[r[o+i]]^Uc[(t[o]+e[i])%255]];return r}function ip(t,e){var r=[],o=t.length-1;do{r[o]=Uc[(t[o]+e)%255],o--}while(void 0!==t[o]);return r}function np(t,e){var r,o,i=Jc[e-1],n=new Array(e).concat(t),a=new Array(n.length-i.length).concat(i),s=t.length,l=[];for(o=0;o<s;o++)r=ip(a,Hc[n[n.length-1]]),a.splice(0,1),n=rp(r,n);for(o=n.length-1;o>=0;o--)l[e-1-o]=Mc(n[o],8);return l}function ap(t,e,r,o,i){var n,a,s=qc.exec(t),l=s?s[0]:"",c=Zc.exec(t),p=c?c[0]:"",u=Qc.exec(t),h=u?u[0]:"";return l&&(l.length>=e||t.length===l.length||l.length>=r&&!Qc.test(t.charAt(l.length)))?(n="numeric",a=l):h&&(t.length===h.length||h.length>=o||"alphanumeric"===i)?(n="alphanumeric",a=l||p):(n="byte",a=h?h+$c.exec(t.substring(h.length))[0]:$c.exec(t)[0]),{mode:n,modeString:a}}function sp(t,e){var r=0,o=Nc.length-1,i=Math.floor(Nc.length/2);do{t<Nc[i][e].totalDataCodewords?o=i:r=i,i=r+Math.floor((o-r)/2)}while(o-r>1);return t<=Nc[r][e].totalDataCodewords?i+1:o+1}function lp(t,e,r){var o=jc(e),i=e.length-1,n=t<<i,a=Mc(t,r-i),s=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 s=a+Mc(s,i)}function cp(t,e){return parseInt(t.charAt(e),10)}function pp(t,e){var r,o,i=t[0],n=0,a=e.length;for(r=0,o=8;r<=8;r++)6!==r&&tp(t,cp(e,a-1-n++),r,o);for(r=8,o=7;o>=0;o--)6!==o&&tp(t,cp(e,a-1-n++),r,o);for(n=0,o=i.length-1,r=8;o>=i.length-8;o--)tp(t,cp(e,a-1-n++),r,o);for(tp(t,1,i.length-8,8),r=i.length-7,o=8;r<i.length;r++)tp(t,cp(e,a-1-n++),r,o)}function up(t,e){for(var r,o,i,n=t[0].length,a=n-11,s=n-11,l=0;l<e.length;l++)r=Math.floor(l/3),o=l%3,tp(t,i=cp(e,e.length-l-1),0+r,a+o),tp(t,i,s+o,0+r)}function hp(t,e,r,o){for(var i,n=e.length+2,a=e.length+1,s=0;s<e.length;s++)for(var l=s;l<n-s;l++)tp(t,i=e[s],r+l,o+s),tp(t,i,r+s,o+l),tp(t,i,r+a-l,o+a-s),tp(t,i,r+a-s,o+a-l)}function fp(t,e,r,o){var i=r,n=o,a=t[0];do{tp(t,0,i,o),tp(t,0,r,n),i+=e[0],n+=e[1]}while(i>=0&&i<a.length)}function dp(t,e,r,o,i){e[t][o]=(e[t][o]<<1^i)%128,93===e[t][o]&&(r[t]+=40)}function vp(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 yp(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 gp(t,e,r){var o=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new zc:new Rc}(r).getEncodingResult(t,e),i=o.version,n=Nc[i-1][e],a=function(t,e){for(var r,o,i,n,a,s=0,l=[],c=[],p=e.groups,u=0;u<p.length;u++){i=p[u][0];for(var h=0;h<i;h++){o=p[u][1],r=[],n=[];for(var f=1;f<=o;f++)a=t.substring(s,s+8),r.push(a),n[o-f]=jc(a),s+=8;l.push(r),c.push(np(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+=Xc[i],i^=1;return n}(o.dataString,n.totalDataCodewords),n),s=function(t){for(var e=[],r=17+4*t,o=0;o<Yc.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;hp(t,Gc,0,0),fp(t,[-1,-1],7,7),hp(t,Gc,e-7,0),fp(t,[1,-1],e-8,7),hp(t,Gc,0,e-7),fp(t,[-1,1],7,e-8)}(s),function(t,e){if(!(e<2)){var r,o,i=t[0],n=i.length,a=Math.floor(e/7),s=[6],l=0;for((r=Fc[e])?o=(n-13-r)/a:r=o=(n-13)/(a+1),s.push(s[l++]+r);s[l]+o<n;)s.push(s[l++]+o);for(var c=0;c<s.length;c++)for(var p=0;p<s.length;p++)void 0===i[s[c]][s[p]]&&hp(t,Wc,s[c]-2,s[p]-2)}}(s,i),function(t){for(var e=1,r=t[0].length,o=8;o<r-8;o++)tp(t,e,6,o),tp(t,e,o,6),e^=1}(s),i>=7&&up(s,Mc(0,18)),pp(s,Mc(0,15)),function(t,e){for(var r,o,i,n=new Tc(t[0]),a=0;a<e.length;a++)for(r=e[a],o=0;r.length>0;){for(var s=0;s<r.length;s++)for(var l=0;l<8;l++)i=n.getNextCell(),ep(t,r[s][o].charAt(l),i.row,i.column);for(o++;r[0]&&o===r[0].length;)r.splice(0,1)}for(;i=n.getNextRemainderCell();)ep(t,0,i.row,i.column)}(s,a);var l=function(t){var e,r,o=[],i=[],n=[],a=[],s=[],l=t[0].length;for(r=0;r<t.length;r++)o[r]=0,n[r]=0,s[r]=[0,0],a[r]=[0,0],i[r]=[];for(var c=0;c<l;c++)for(var p=0;p<l;p++)for(var u=0;u<t.length;u++)e=t[u],n[u]+=parseInt(e[c][p],10),i[u][0]===e[c][p]&&c+1<l&&p-1>=0&&e[c+1][p]===i[u][0]&&e[c+1][p-1]===i[u][0]&&(o[u]+=3),dp(u,a,o,0,e[c][p]),dp(u,a,o,1,e[p][c]),vp(u,o,i,e[c][p],s,0),vp(u,o,i,e[p][c],s,1);var h,f=l*l,d=Number.MAX_VALUE;for(r=0;r<o.length;r++)o[r]+=yp(n[r],f),o[r]<d&&(d=o[r],h=r);return h}(s),c=s[l];return i>=7&&up([c],function(t){return lp(t,"1111100100101",18)}(i)),pp([c],function(t){var e,r="";if(0===jc(t))return"101010000010010";e=lp(jc(t),"10100110111",15);for(var o=0;o<e.length;o++)r+=e.charAt(o)^"101010000010010".charAt(o);return r}(Kc[e]+Mc(l,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*Uc[e-1])>255&&(t^=285),Uc[e]=t,Hc[t]=e;t=2*Uc[e-1]^285,Uc[e]=t,Uc[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=Jc[t-1],r=[t,0];Jc[t]=op(e,r)}}();var mp=Math.round,xp=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],bp=[[0,1],[1,1],[1,0]],_p=200,wp="L",Cp="#fff",Op="#000",Pp=1,Sp=7,kp=function(t){function e(e,r,o){void 0===o&&(o=It),t.call(this),this.options=E({},this.options,r),this.element=e,this.wrapper=this.element,this.onError=o,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")},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,a=this.options.border||{},s=this.options.padding||0,l=a.width||0;a.width=l;var c=new O.drawing.Group;try{n&&(r=gp(n,this.options.errorCorrection,this.options.encoding),i=(o=this._getSize())-2*(l+s),t=this._calculateBaseUnit(i,r.length),e=l+s+(i-r.length*t)/2,c.append(this._renderBackground(o,a)),c.append(this._renderMatrix(r,t,e)),this._hasCustomLogo()?c.append(this._renderLogo(o,t)):this._isSwiss()&&c.append(this._renderSwissCode(o,t)))}catch(t){this.onError(t)}return c},e.prototype._renderLogo=function(t,e){var r,o=mp(t/2),i=this._getLogoSize(e*Sp),n=this.options.overlay.imageUrl,a={x:o-i.width/2,y:o-i.height/2};return r=new O.geometry.Rect(new O.geometry.Point(a.x,a.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*Sp),o=(r=Math.max(r.width,r.height))/4,i=o/2,n=t/2,a={},s=new O.drawing.Group;return a.x=a.y=Math.ceil(n-e-r/2),s.append(this._renderShape(a,Math.ceil(r+2*e),bp,"#fff")),a.x=a.y=n-r/2,s.append(this._renderShape(a,r,bp,this.options.color)),a.x=n+i-r/2,a.y=n+i+o-r/2,s.append(this._renderShape(a,o,xp,"#fff")),s},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:_p}return t},e.prototype._calculateBaseUnit=function(t,e){var r=Math.floor(t/e);if(r<Pp){var o=Math.ceil(e*Pp);this.onError(new Error("Insufficient size for QR Code: the current size is "+t+"px and the minimum size is "+o+"px."))}else r*e>=t&&r-1>=Pp&&r--;return 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,a=0;a<t.length;){for(;0===t[i][a]&&a<t.length;)a++;if(a<t.length){for(var s=a;1===t[i][a];)a++;var l=mp(r+s*e),c=mp(n),p=mp(r+a*e),u=mp(n+e);o.moveTo(l,c).lineTo(l,u).lineTo(p,u).lineTo(p,c).close()}}return o},e.prototype._renderBackground=function(t,e){var r=new zt(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=kc(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);_t(kp,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:wp,background:Cp,color:Op,size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});var Ap=kp;var Mp=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{gp(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}},jp="Arial, Helvetica, sans-serif",Tp="12px "+jp,Ep="16px "+jp,Rp=function(){return{icon:{border:{width:1}},label:{font:Tp,padding:3},line:{length:10,width:2},visible:!0}},Bp=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:Rp(),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}}},Ip=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Tp},notes:Rp(),title:{font:Ep,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Bp(t),title:{font:Ep},legend:{labels:{font:Tp}}}}},function(t,e,r){"use strict";r.r(e),r.d(e,"ZIndexContext",(function(){return o.a})),r.d(e,"useZIndexContext",(function(){return o.b})),r.d(e,"BrowserSupportService",(function(){return n})),r.d(e,"canUseDOM",(function(){return a.a})),r.d(e,"canUseRef",(function(){return s})),r.d(e,"classNames",(function(){return l.a})),r.d(e,"cloneDate",(function(){return p})),r.d(e,"clone",(function(){return u})),r.d(e,"cloneObject",(function(){return h})),r.d(e,"cloneValue",(function(){return f})),r.d(e,"cloneArray",(function(){return d})),r.d(e,"focusFirstFocusableChild",(function(){return v})),r.d(e,"FormComponent",(function(){return y})),r.d(e,"getTabIndex",(function(){return g})),r.d(e,"getter",(function(){return _})),r.d(e,"guid",(function(){return w})),r.d(e,"Keys",(function(){return C})),r.d(e,"noop",(function(){return O})),r.d(e,"getScrollbarWidth",(function(){return P})),r.d(e,"setScrollbarWidth",(function(){return S})),r.d(e,"setter",(function(){return M})),r.d(e,"mapTree",(function(){return E})),r.d(e,"mapTreeItem",(function(){return R})),r.d(e,"extendDataItem",(function(){return B})),r.d(e,"getItemPath",(function(){return I})),r.d(e,"validatePackage",(function(){return D.a})),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 at})),r.d(e,"Typography",(function(){return xt})),r.d(e,"DragAndDrop",(function(){return St})),r.d(e,"Draggable",(function(){return zt})),r.d(e,"Droppable",(function(){return Ht})),r.d(e,"useDraggable",(function(){return Vt})),r.d(e,"useDroppable",(function(){return Nt})),r.d(e,"kendoThemeMaps",(function(){return Ut}));var o=r(16),i=function(){return"undefined"!=typeof document?document:{}},n=function(){function t(){}return Object.defineProperty(t.prototype,"scrollbarWidth",{get:function(){var t=i();if(!this.scrollbar&&t&&t.createElement){var e=t.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",t.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,t.body.removeChild(e)}return this.scrollbar},enumerable:!0,configurable:!0}),t}(),a=r(11),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))},l=r(12),c=r(0),p=function(t){return t?new Date(t.getTime()):null};function u(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]=f(o,e[r])}}function f(t,e){if(Array.isArray(t))return d(t);if(t instanceof Date)return p(t);if(c.isValidElement(t))return c.cloneElement(t,t.props);if(t&&"object"==typeof t){var r=e||{};return h(t,r),r}return t}function d(t){return t.map((function(t){return f(t,void 0)}))}var v=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()}},y=function(){},g=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},m=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function x(t){var e=[];return t.replace(m,(function(t,r,o,i){e.push(void 0!==r?r:o||i)})),e}var b={};function _(t){if(b[t])return b[t];var e=x(t);return b[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},b[t]}b.undefined=function(){};var w=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},C={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},O=function(){},P=function(){return!(!a.a||!document.body)&&(new n).scrollbarWidth},S=function(){if(!a.a||!document.body)return!1;var t=(new n).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",t+"px")},k={undefined:function(t){return t}},A=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function M(t){if(k[t])return k[t];var e=x(t);return k[t]=function(t,r,o){for(var i=t,n=e.length-1,a=0;a<n&&i;a++)i=i[e[a]]=i[e[a]]||A(e[a+1],o);i[e[n]]=r},k[t]}var j=function(){return(j=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 T(t,e,r){var o;return r?j({},t,((o={})[e]=r.length?r.slice():void 0,o)):t&&t[e]?t[e].slice():[]}var E=function(t,e,r){return t.map((function(t){return function t(e,r,o){if(e[r]){var i=T(e,r).map((function(e){return t(e,r,o)}));return o(T(e,r,i))}return o(e)}(t,e,r)})).slice()},R=function(t,e,r,o){for(var i=t,n=[],a=0;a<e.length;a++)i=i[e[a]],i=Array.isArray(i)?i:i[r],n.push(i);var s=n.length>1?n[n.length-2]:t,l=e[e.length-1],c=o(s[l]);s.splice(l,1,c)},B=function(t,e,r){var o;return Object.assign({},t,t[e]?((o={})[e]=t[e].slice(),o):{},r||{})},I=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},D=r(17),L=function(t){if(!a.a)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=c.useRef(!1),a=c.useRef(0),s=c.useCallback((function(t){clearTimeout(a.current),a.current=window.setTimeout((function(){return t()}))}),[a]),l=c.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(a.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=c.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call.apply(i,[void 0].concat(t)),s((function(){n.current&&r&&(n.current=!1,r.call.apply(r,[void 0].concat(t)))}))}),[n,s,r,i]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,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 c.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 c.createContext((function(t){return t}))},W=function(t,e){return c.forwardRef((function(r,o){var i=U(t,r);return c.createElement(e,F({},i,{ref:o}))}))};function K(t,e,r){var o=c.useState(e),i=o[0],n=o[1];return c.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=c.useState(e),i=o[0],n=o[1];return c.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=c.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=c.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:c.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:c.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:c.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:c.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:c.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:c.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:c.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 c.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=c.useRef(t),r=c.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=c.forwardRef((function(t,e){var r=t.className,o=t.name,i=t.themeColor,n=t.size,a=t.flip,s=t.style,p=et(t,["className","name","themeColor","size","flip","style"]),u=c.useRef(null),h=c.useRef(null);c.useImperativeHandle(u,(function(){return{element:h.current}})),c.useImperativeHandle(e,(function(){return u.current}));var f=c.useMemo((function(){return i||ot.themeColor}),[i]),d=c.useMemo((function(){return n||ot.size}),[n]),v=c.useMemo((function(){return a||ot.flip}),[a]),y=c.useMemo((function(){return Object(l.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,u);return c.createElement("span",tt({ref:h},p,g,{className:y,style:s,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},at=c.forwardRef((function(t,e){var r=t.children,o=t.className,i=t.svgClassName,n=t.icon,a=t.flip,s=t.size,p=t.style,u=t.svgStyle,h=t.themeColor,f=t.viewBox,d=nt(t,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=c.useRef(null);c.useImperativeHandle(e,(function(){return{element:v.current}}));var y=c.useMemo((function(){return n?n.name:st.icon}),[n]),g=c.useMemo((function(){return h||st.themeColor}),[h]),m=c.useMemo((function(){return s||st.size}),[s]),x=c.useMemo((function(){return a||st.flip}),[a]),b=c.useMemo((function(){return f||st.viewBox}),[f]),_=c.useMemo((function(){return Object(l.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=c.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 c.createElement("span",{className:_,style:w,ref:v},c.createElement("svg",it({className:i,style:u,"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))}));at.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 st={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};at.displayName="KendoSvgIcon";var lt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ct={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pt={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"},ht={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ft={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},dt={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},vt={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"},yt=function(){return(yt=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)},gt=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},mt=function(t){var e=c.forwardRef((function(e,r){var o=e.className,i=e.fontSize,n=e.fontWeight,a=e.textAlign,s=e.textTransform,l=e.themeColor,p=e.margin,u=gt(e,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=c.useRef(null),f=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:f.current,props:e}})),c.useImperativeHandle(r,(function(){return h.current}));var d=t,v=function(){if(void 0!==p){if("string"==typeof p)return[pt[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],""+ht[r]+("string"==typeof o?ut[o]:o)))})),t.join(" ")}}};return c.createElement(d,yt({ref:f,className:["k-"+("p"===t?"paragraph":t),lt[i],ct[n],ft[a],dt[s],vt[l],v(),o].filter((function(t){return void 0!==t})).join(" ")},u),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},xt={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")},bt=function(){return(bt=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)},_t=function(t,e,r){var o=c.useState(e||t),i=o[0],n=o[1];return[void 0!==e?e:i,c.useCallback((function(t,e){n(t),r&&r.call(void 0,bt({},e,{value:t}))}),[r,n])]},wt=c.createContext([void 0,O]),Ct=c.createContext([void 0,O]),Ot=c.createContext([[],O,O]),Pt=c.createContext([[],O,O]),St=function(t){var e=_t(null,void 0),r=e[0],o=e[1],i=_t(null,void 0),n=i[0],a=i[1],s=Q([]),l=s[0],p=s[1],u=Q([]),h=u[0],f=u[1];return c.createElement(wt.Provider,{value:[r,o]},c.createElement(Ct.Provider,{value:[n,a]},c.createElement(Ot.Provider,{value:[l,function(t){p({type:Y.add,item:t})},function(t){p({type:Y.remove,item:t})}]},c.createElement(Pt.Provider,{value:[h,function(t){f({type:Y.add,item:t})},function(t){f({type:Y.remove,item:t})}]},t.children))))};St.displayName="KendoReactDragAndDrop";var kt,At=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),a=Math.min(o.left+o.width,r.left+r.width),s=Math.min(o.top+o.height,r.top+r.height),l=a-n,c=s-i;if(n<a&&i<s){var p=o.width*o.height,u=r.width*r.height,h=l*c;return Number((h/(p+u-h)).toFixed(4))}return 0}(t,e);i>r&&(r=i,o=e)}})),o},Mt=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},jt=function(t){return t&&t.ownerDocument||window.document},Tt=function(t){var e=Mt(),r=jt(t);return e.edge||e.safari?r.body:r.documentElement},Et=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},Rt=function(t){var e=Tt(t);if(!t||t===document.body||t===document.documentElement)return e;for(var r=t;r&&!Et(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"}(kt||(kt={}));var Bt=function(){},It=function(t,e,r){void 0===r&&(r={});var o,i,n,a,s=r.onIsPressedChange,l=void 0===s?Bt:s,c=r.onIsScrollingChange,p=void 0===c?Bt:c,u=r.onVelocityChange,h=void 0===u?Bt:u,f=r.onOffsetChange,d=void 0===f?Bt:f,v=r.onPageOffsetChange,y=void 0===v?Bt:v,g=r.onClientOffsetChange,m=void 0===g?Bt:g,x=r.onScrollOffsetChange,b=void 0===x?Bt:x,_=r.onInitialScrollOffsetChange,w=void 0===_?Bt:_,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 kt.POINTER_DOWN:if(A.type===kt.POINTER_DOWN&&(!A.originalEvent.isPrimary||0!==A.originalEvent.button))break;case kt.MOUSE_DOWN:if(A.type===kt.MOUSE_DOWN&&A.originalEvent.which&&A.originalEvent.which>1||t.ignoreMouse)break;case kt.TOUCH_START:if(A.type===kt.TOUCH_START&&1!==A.originalEvent.touches.length)break;case kt.START:var M=k||Rt(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 kt.SCROLL:if(A.type===kt.SCROLL&&!t.pressed)break;var j=k||Rt(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 kt.POINTER_MOVE:if(A.type===kt.POINTER_MOVE&&!A.originalEvent.isPrimary)break;case kt.MOUSE_MOVE:case kt.TOUCH_MOVE:if(A.type===kt.TOUCH_MOVE&&1!==A.originalEvent.touches.length)break;case kt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==A.originalEvent.type&&O){var E=jt(O),R=k||Rt(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=Tt(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=jt(t);return e&&e.defaultView||window}(O)));h({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=At(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||Rt(I),(a=n.getBoundingClientRect()).top<=i&&a.left<=o&&i<=a.bottom&&o<=a.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 kt.POINTER_UP:if(A.type===kt.POINTER_UP&&!A.originalEvent.isPrimary)break;case kt.MOUSE_UP:case kt.TOUCH_END:if(A.type===kt.TOUCH_END&&1!==A.originalEvent.touches.length)break;case kt.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 kt.POINTER_CANCEL:case kt.CONTEXT_MENU:case kt.TOUCH_CANCEL:case kt.CANCEL:l(!1),p(!1),C.onDragEnd&&C.onDragEnd(A),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A)}},Dt=function(t,e){if(t){var r,o;t===Tt(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,a=t.scrollLeft+e.x,s=o&&a>0&&a<t.scrollWidth;n?t.scrollTop+=e.y:r&&i<0&&(t.scrollTop=0),s?t.scrollLeft+=e.x:o&&a<0&&(t.scrollLeft=0)}},Lt=function(t,e){var r=c.useContext(t),o=r[0],i=r[1],n=c.useState(e),a=n[0],s=n[1];return[void 0!==o?o:a,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==o?i.apply(void 0,t):s(t[0])}]};function Vt(t,e,r){void 0===r&&(r={});var o=e.onPress,i=void 0===o?O:o,n=e.onRelease,a=void 0===n?O:n,s=e.onDragStart,l=void 0===s?O:s,p=e.onDrag,u=void 0===p?O:p,h=e.onDragEnd,f=void 0===h?O:h,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=c.useState(!1),C=w[0],P=w[1],S=c.useState(!1),k=S[0],A=S[1],M=Lt(Ct)[0],j=Lt(wt),T=j[0],E=j[1],R=c.useContext(Pt)[0],B=c.useContext(Ot),I=B[0],D=B[1],L=B[2],V=c.useRef({x:0,y:0}),z=c.useRef(),N=c.useRef(!1),H=c.useRef(),U=c.useRef(null),F=c.useRef(!1),G=c.useRef({x:0,y:0}),W=c.useRef({x:0,y:0}),K=c.useRef({x:0,y:0}),X=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),Z=Boolean(window&&"undefined"!=typeof window&&window.PointerEvent),Q=!g&&Z,$=c.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),J=c.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),tt=c.useCallback((function(){return _&&_.current&&_.current.element?_.current.element:_?_.current:null}),[_]),et=c.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]),rt=c.useRef(null);c.useImperativeHandle(rt,(function(){return{element:$(),hint:J(),onPress:vt,onDragStart:gt,onDrag:mt,onDragEnd:xt,onRelease:yt,data:t.current}}));var ot=c.useCallback((function(){var t=$();return t&&t.ownerDocument||document}),[$]),it=c.useCallback((function(){var t=ot();return t&&t.defaultView||window}),[ot]),nt=c.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:C,ignoreMouse:N.current,scrollOffset:Y.current,offset:G.current,pageOffset:W.current,initialScrollOffset:q.current,clientOffset:K.current,initialClientOffset:X.current,velocity:V.current,autoScroll:Boolean("object"==typeof x?!1!==x.enabled:x),scrollableParent:et(),autoScrollDirection:"object"==typeof x?x.direction:{horizontal:!0,vertical:!0},isScrolling:k}}),[T,M,I,R,C,x,et,k]),at=c.useCallback((function(t){P(t)}),[]),st=c.useCallback((function(t){A(t)}),[]),lt=c.useCallback((function(t){V.current=t}),[]),ct=c.useCallback((function(t){G.current=t}),[]),pt=c.useCallback((function(t){K.current=t}),[]),ut=c.useCallback((function(t){W.current=t}),[]),ht=c.useCallback((function(t){X.current=t}),[]),ft=c.useCallback((function(t){Y.current=t}),[]),dt=c.useCallback((function(t){q.current=t}),[]),vt=c.useCallback((function(t){i(t)}),[i]),yt=c.useCallback((function(t){a(t)}),[a]),gt=c.useCallback((function(e){E(rt,{target:t.current,event:e}),l(e)}),[E,t,l]),mt=c.useCallback((function(t){u(t)}),[u]),xt=c.useCallback((function(e){F.current||(E(null,{target:t.current,event:e}),f(e))}),[f,E,t]),bt=c.useCallback((function(t){It(nt(),{event:t,payload:rt.current},{onVelocityChange:lt,onOffsetChange:ct,onClientOffsetChange:pt,onPageOffsetChange:ut,onInitialClientOffsetChange:ht,onScrollOffsetChange:ft,onInitialScrollOffsetChange:dt,onIsPressedChange:at,onIsScrollingChange:st})}),[nt,lt,ct,ut,pt,ht,dt,at,ft,st]),_t=c.useCallback((function(t){bt(t)}),[bt]),St=c.useCallback((function(t){bt(t)}),[bt]),kt=c.useCallback((function(t){bt(t)}),[bt]),At=c.useCallback((function(t){bt(t)}),[bt]),Mt=c.useCallback((function(t){bt(t)}),[bt]),jt=c.useCallback((function(t){bt(t)}),[bt]),Tt=c.useCallback((function(t){bt(t)}),[bt]),Et=c.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Bt=c.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Vt=c.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),zt=c.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=it();N.current=!0,H.current=e.setTimeout((function(){N.current=!1}),2e3)}bt(t)}),[bt,it]),Nt=c.useCallback((function(t){bt(t)}),[bt]),Ht=c.useCallback((function(){var t=$();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[$]),Ut=c.useCallback((function(){return D(rt),function(){L(rt)}}),[L,D]);c.useEffect((function(){var t=it();if(k){var e=tt()||Rt(document.elementFromPoint(K.current.x,K.current.y));t.clearInterval(z.current),z.current=t.setInterval((function(){Dt(e,{x:V.current.x,y:V.current.y})}),50)}return function(){t.clearInterval(z.current)}}),[$,tt,it,k]),c.useEffect(Ht,[Ht]),c.useEffect((function(){var t=it(),e=$(),r=ot();return Q?(e&&(U.current=Rt(e),U.current&&U.current.addEventListener("scroll",Nt,{passive:!0}),e.addEventListener("pointerdown",_t,{passive:!0})),C&&(r.addEventListener("pointermove",St),r.addEventListener("pointerup",At,!0),r.addEventListener("contextmenu",Et),r.addEventListener("pointercancel",kt,{passive:!0}))):(t.addEventListener("touchmove",O,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",Mt,{passive:!0}),g||(e.addEventListener("touchstart",Bt,{passive:!0}),C&&(e.addEventListener("touchmove",Vt,{passive:!0}),e.addEventListener("touchend",zt,{passive:!0})))),C&&(r.addEventListener("mousemove",jt,{passive:!0}),r.addEventListener("mouseup",Tt,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Nt),e&&(e.removeEventListener("pointerdown",_t),e.removeEventListener("mousedown",Mt),e.removeEventListener("touchstart",Bt),e.removeEventListener("touchmove",Vt),e.removeEventListener("touchend",zt)),r.removeEventListener("pointermove",St),r.removeEventListener("pointerup",At,!0),r.removeEventListener("contextmenu",Et),r.removeEventListener("pointercancel",kt),r.removeEventListener("mousemove",jt),r.removeEventListener("mouseup",Tt),t.removeEventListener("touchmove",O),t.clearTimeout(H.current)}}),[C,it,$,ot,g,Q,Et,Mt,jt,Tt,kt,_t,St,At,zt,Vt,Bt,Nt]),c.useEffect((function(){return function(){F.current=!0}}),[]),c.useLayoutEffect(Ut,[Ut])}var zt=c.forwardRef((function(t,e){var r=c.useRef(null),o=c.useRef(null),i=c.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);c.useImperativeHandle(o,(function(){return{element:i()||null}})),c.useImperativeHandle(e,(function(){return o.current})),c.useImperativeHandle(t.childRef,(function(){return r.current}));var n=c.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:o.current,event:e})}),[i,t.onPress]),a=c.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:o.current,event:e})}),[i,t.onRelease]),s=c.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:o.current,event:e})}),[t,i]),l=c.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:o.current,event:e})}),[i,t.onDrag]),p=c.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:o.current,event:e})}),[i,t.onDragEnd]);return Vt(r,{onPress:n,onRelease:a,onDragStart:s,onDrag:l,onDragEnd:p},{mouseOnly:t.mouseOnly,autoScroll:t.autoScroll,hint:t.hint,scrollContainer:t.scrollContainer}),t.children?c.cloneElement(c.Children.only(t.children),{ref:r}):null}));function Nt(t,e){void 0===e&&(e={onDragEnter:O,onDragOver:O,onDragLeave:O,onDrop:O});var r=e.onDragEnter,o=void 0===r?O:r,i=e.onDragOver,n=void 0===i?O:i,a=e.onDragLeave,s=void 0===a?O:a,l=e.onDrop,p=void 0===l?O:l,u=Lt(Ct)[1],h=c.useContext(Pt),f=h[1],d=h[2],v=c.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),y=c.useRef(null);c.useImperativeHandle(y,(function(){return{element:v(),onDragEnter:g,onDragOver:m,onDragLeave:x,onDrop:b,data:t.current}}));var g=c.useCallback((function(e){u(y,{target:t.current,event:e}),o(e)}),[u,t,o]),m=c.useCallback((function(t){n(t)}),[n]),x=c.useCallback((function(e){u(null,{target:t.current,event:e}),s(e)}),[u,t,s]),b=c.useCallback((function(e){u(null,{target:t.current,event:e}),p(e)}),[u,t,p]),_=c.useCallback((function(){return f(y),function(){d(y)}}),[d,f]);c.useLayoutEffect(_,[_])}zt.displayName="KendoReactDraggable";var Ht=c.forwardRef((function(t,e){var r=c.useRef(null),o=c.useRef(null),i=c.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);c.useImperativeHandle(o,(function(){return{element:i()||void 0}})),c.useImperativeHandle(e,(function(){return o.current})),c.useImperativeHandle(t.childRef,(function(){return r.current}));var n=c.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:o.current,event:e})}),[t.onDragEnter,i]),a=c.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:o.current,event:e})}),[i,t.onDragOver]),s=c.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:o.current,event:e})}),[t.onDragLeave,i]),l=c.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:o.current,event:e})}),[t.onDrop,i]);return Nt(r,{onDragEnter:n,onDragOver:a,onDragLeave:s,onDrop:l}),t.children?c.cloneElement(c.Children.only(t.children),{ref:r}):null}));Ht.displayName="KendoReactDroppable";var Ut={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(0);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 a=r(0),s=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,s=o._parentStore,l=n({},t.props,{_chartCollectionIdxKey:i+"_"+e,_parentStore:s});return a.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:[]}),a.Children.map(i,(function(e,r){return a.isValidElement(e)?t.renderChildren(e,r):e}))},e.contextType=s.ChartContext,e}(a.Component);e.default=l},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={},o=function(t){return"object"==typeof t?Object.keys(t).forEach((function(e){r[e]=t[e]})):r[t]=!0},i=function(t){return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?i(t):o(t)}))};return i(t),Object.keys(r).map((function(t){return r[t]&&t||null})).filter((function(t){return null!==t})).join(" ")}},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 a=r(0),s=r(3),l=r(53),c=r(7),p=r(8),u=r(5),h=r(54),f=r(56),d=r(38),v=r(58),y=r(39),g=r(40),m=r(5);r(59);var x=r(60),b=r(62),_=r(9),w=r(8),C=r(65),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,a=e[i];if(void 0===n)o=Object.assign({},a,{visible:m.toggle(a.visible)});else{var s=a.pointVisibility=a.pointVisibility||[];s[n]=m.toggle(s[n]),o=Object.assign({},a)}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&&!u.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),a=this.chartInstance.chartService,s=i.locale!==a._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)}));s&&(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,s=e.children,l=Object.assign({},o,{position:"relative"}),c=a.createElement(n,{className:i,style:l,key:"chartElement"},a.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:function(e){return t._element=e},className:"k-chart-surface"},s));return a.createElement(_.ChartContext.Provider,{value:this.contextValue},a.createElement(x.SeriesTooltip,{key:"seriesTooltip"}),a.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,a=t.transitions,s=t.seriesColors,l=t.seriesDefaults,c=t.axisDefaults,p=t.deriveOptionsFromParent,u={};return void 0!==e&&(u.renderAs=e),void 0!==r&&(u.pannable=r),void 0!==o&&(u.zoomable=o),void 0!==i&&(u.paneDefaults=i),void 0!==n&&(u.panes=n),void 0!==a&&(u.transitions=a),void 0!==s&&(u.seriesColors=s),void 0!==l&&(u.seriesDefaults=l),void 0!==c&&(u.axisDefaults=c),u=Object.assign(u,this.optionsStore.getState()),p&&(u=p(u)),u},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(),a=!1,s=0;s<n.length;s++)n[s].trigger(t,e)&&(a=!0);return!1===a&&o&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,o),o.isDefaultPrevented&&o.isDefaultPrevented()):a},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:s.string,renderAs:s.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(a.Component);e.BaseChart=O,l.registerForIntl(O),c.DomEventsBuilder.register(h.DomEventsBuilder)},function(t,e){t.exports=o},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return n}));var o=r(0),i=o.createContext(0),n=function(){return o.useContext(i)};i.displayName="KendoReactZIndexContext"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var o=r(14);function i(t){if(void 0!==o)o.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)}}},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(4).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(6).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(4).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(6).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(6).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(6).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(4).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(4).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(4).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(4).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(4).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(4).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(6).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(4).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(6).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(4).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(6).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(6).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(4).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(6).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(8);e.THROTTLE_MS=1e3/60;e.default=function(t){var r,i,n=[],a=function(a){r=t(r,a),o.canUseDOM&&(window.clearTimeout(i),i=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return a({}),{getState:function(){return r},dispatch:a,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],a=i[1],s=t[n].map((function(t,r){return parseInt(a,10)===r?(o=!0,e.payload):t}));return!1===o&&s.splice(parseInt(a,10),0,e.payload),Object.assign(t,((r={})[n]=s,r))},themeItem:function(t,e){for(var r={},o=Object.assign(r,t),i=e.payload,n=i.field,a=i.value,s=n.split("."),l=s.shift();s.length>0;)r=r[l]=r[l]||{},l=s.shift();return r[l]=a,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(0),a=r(7),s=r(38),l=r(5),c=r(187),p=r(9),u={horizontal:"fit",vertical:"fit"},h="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=s.toDomEvent(o,t);o.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},o.chartObserver=new a.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,a=e.popupStyles,s=e.popupContent,l=e.className,p=[h,l].join(" ").trim();return n.createElement(c.Popup,{animate:!1,popupAlign:o,offset:i,show:r,collision:u,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:p,style:a,onMouseLeave:this.onMouseLeave,ref:function(e){return t.element=e}},s()))},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartCategoryAxisItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartPane",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartSeriesItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartValueAxisItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartXAxisItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartYAxisItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartNavigatorSeriesItem",e.default=a},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(52);e.Chart=i.Chart;var n=r(67);e.Sparkline=n.Sparkline;var a=r(68);e.StockChart=a.StockChart,o(r(69)),o(r(70)),o(r(183)),o(r(185)),o(r(186))},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)},a=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(0),l=r(13),c=r(66),p=r(7),u=r(8),h=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,h=a(e,["donutCenterRender","children","className"]);return s.createElement(l.BaseChart,n({},h,{ref:function(e){return t._baseChart=e},chartConstructor:p.Chart,getTarget:this.getTarget,wrapper:"div",className:u.classNames("k-chart k-widget",i)}),o,s.createElement(c.DonutCenter,{render:r}))},e}(s.Component);e.Chart=h},function(t,e){t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(55),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"}],a=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,a=i.pageY,s=0;if(r.length>1){var l=r[0],c=r[1];s=Math.sqrt(Math.pow(l.pageX-c.pageX,2)+Math.pow(l.pageY-c.pageY,2))}return{distance:s,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?a-e.y.location:0,initialDelta:t.deltaY,location:a,startLocation:a-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 a=0;a<o.length;a++){var s=r[o[a]];this.hammerInstance.on(s,this[s])}}},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=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(18),i=r(19),n=r(20),a=r(21),s=r(22),l=r(23),c=r(57),p=r(24),u=r(25),h=r(26),f=r(27),d=r(28),v=r(29),y=r(30),g=r(31),m=r(32),x=r(33),b=r(34),_=r(35),w=r(36),C=r(37),O={axisLabelClick:o.AxisLabelClickEvent,drag:i.DragEvent,dragEnd:n.DragEndEvent,dragStart:a.DragStartEvent,legendItemHover:s.LegendItemHoverEvent,legendItemClick:l.LegendItemClickEvent,legendItemLeave:c.LegendItemLeaveEvent,navigatorFilter:p.NavigatorFilterEvent,noteClick:u.NoteClickEvent,noteHover:h.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(6).PreventableEvent);e.LegendItemLeaveEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(7),i=function(t){return t.fontWeight+" "+t.fontSize+" "+t.fontFamily},n=function(t){return window.getComputedStyle(t).backgroundColor},a='\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",s=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 s(t);if("undefined"!=typeof document){var i=r.element=document.createElement("div");i.style.display="none",i.innerHTML=a,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(7),i=o.DateCategoryAxis.prototype.options.labels.dateFormats,n=o.DateValueAxis.prototype.options.labels.dateFormats,a={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,a),Object.assign(n,a)},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)},a=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(0),l=r(8),c=r(7),p=r(41),u=r(61),h=r(42),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=a(r,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(i)return null!==t?t(o):s.createElement(u.SharedTooltipContent,n({},o));var r=o.point,a=e.findRenderFunctionByIndex(r.series.index);return null!==a?a(o):null!==t?t(o):s.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 s.createElement(h.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}(s.Component);e.SeriesTooltip=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(0);e.SharedTooltipContent=function(t){var e=t.categoryText,r=t.colorMarker,i=t.colspan,n=t.nameColumn,a=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,a.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 a=r(0),s=r(63),l=r(64),c=r(9),p=["categoryAxis","valueAxis","xAxis","yAxis"];function u(t){for(var e={},r=0;r<p.length;r++)for(var o=h(t,p[r]),i=0;i<o.length;i++){var n=o[i];e[n.name+n.index]=n}return e}function h(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:u(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 a.createElement(l.CrosshairTooltip,n({},t[e],{key:e}))}));return a.createElement(s.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=c.ChartContext,e}(a.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)},a=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(0),l=r(8),c=r(7),p=r(42),u=r(9),h=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=a(e,["popupContend","className"]),c=this.state.popupShown?function(){return r}:Function.prototype,u=l.classNames(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!o,t));return s.createElement(p.TooltipPopup,n({},i,{popupContent:c,className:u}))},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,a=t.axisIndex,s=t.value,l=this.props,c=l.name,p=l.index;i&&n===c&&a===p&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:s,popupStyles:r,className:o})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.contextType=u.ChartContext,e}(s.Component);e.CrosshairTooltip=h},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:1642764700,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(0),a=r(7),s=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 a.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,a=i.center.y-n,s=i.center.x-n,l=2*n;this.setState({donutCenterStyles:{height:l,left:s,top:a,width:l}})}},e.contextType=s.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)},a=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(0),l=r(13),c=r(7),p=r(8),u=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=a(e,["children","type","className"]);return s.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}(s.Component);e.Sparkline=u},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)},a=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(0),l=r(13),c=r(7),p=r(8),u={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var e=Object.assign({},t.navigator||{},u);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=a(e,["children","className"]);return s.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}(s.Component);e.StockChart=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(41);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(71);e.ChartArea=i.default;var n=r(72);e.ChartAxisDefaults=n.default;var a=r(73);e.ChartCategoryAxis=a.default;var s=r(43);e.ChartCategoryAxisItem=s.default;var l=r(74);e.ChartLegend=l.default;var c=r(75);e.ChartNavigator=c.default;var p=r(44);e.ChartPane=p.default;var u=r(76);e.ChartPaneDefaults=u.default;var h=r(77);e.ChartPanes=h.default;var f=r(78);e.ChartPlotArea=f.default;var d=r(79);e.ChartSeries=d.default;var v=r(80);e.ChartSeriesDefaults=v.default;var y=r(45);e.ChartSeriesItem=y.default;var g=r(81);e.ChartTitle=g.default;var m=r(82);e.ChartTooltip=m.default;var x=r(83);e.ChartValueAxis=x.default;var b=r(46);e.ChartValueAxisItem=b.default;var _=r(84);e.ChartXAxis=_.default;var w=r(47);e.ChartXAxisItem=w.default;var C=r(85);e.ChartYAxis=C.default;var O=r(48);e.ChartYAxisItem=O.default;var P=r(86);e.ChartZoomable=P.default,o(r(87)),o(r(92)),o(r(101)),o(r(103)),o(r(105)),o(r(109)),o(r(117)),o(r(130)),o(r(138)),o(r(146)),o(r(154))},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(0),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(0),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(0),n=r(10),a=r(43),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"legend"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"navigator"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"paneDefaults"}))};a.displayName="ChartPaneDefaults",e.default=a},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(0),n=r(10),a=r(44),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"panes"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),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(0),n=r(10),a=r(45),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(10),a=r(46),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"valueAxis"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),n=r(10),a=r(47),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"xAxis"}))};l.prototype={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),n=r(10),a=r(48),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"yAxis"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),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(88);e.ChartAxisDefaultsTitle=o.default;var i=r(89);e.ChartAxisDefaultsLabels=i.default;var n=r(90);e.ChartAxisDefaultsCrosshair=n.default;var a=r(91);e.ChartAxisDefaultsCrosshairTooltip=a.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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartAxisDefaultsTitle",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.displayName="ChartAxisDefaultsLabels",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},a.displayName="ChartAxisDefaultsCrosshair",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},a.displayName="ChartAxisDefaultsCrosshairTooltip",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(93);e.ChartCategoryAxisCrosshair=o.default;var i=r(94);e.ChartCategoryAxisCrosshairTooltip=i.default;var n=r(95);e.ChartCategoryAxisTitle=n.default;var a=r(96);e.ChartCategoryAxisLabels=a.default;var s=r(97);e.ChartCategoryAxisNotes=s.default;var l=r(98);e.ChartCategoryAxisNotesIcon=l.default;var c=r(99);e.ChartCategoryAxisNotesLabel=c.default;var p=r(100);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartCategoryAxisTitle",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"rangeLabels"}))};a.defaultProps={visible:!0},e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(102);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartPaneTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(104);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartPaneDefaultsTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(106);e.ChartLegendItem=o.default;var i=r(107);e.ChartLegendTitle=i.default;var n=r(108);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"item"}))};a.displayName="ChartLegendItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartLegendTitle",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"inactiveItems"}))};a.displayName="ChartLegendInactiveItems",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(110);e.ChartSeriesDefaultsItemTooltip=o.default;var i=r(111);e.ChartSeriesDefaultsLabels=i.default;var n=r(112);e.ChartSeriesDefaultsLabelsFrom=n.default;var a=r(113);e.ChartSeriesDefaultsLabelsTo=a.default;var s=r(114);e.ChartSeriesDefaultsNotes=s.default;var l=r(115);e.ChartSeriesDefaultsNotesIcon=l.default;var c=r(116);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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),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(0),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(118);e.ChartSeriesItemTooltip=o.default;var i=r(119);e.ChartSeriesItemOutliers=i.default;var n=r(120);e.ChartSeriesNotes=n.default;var a=r(121);e.ChartSeriesMarkers=a.default;var s=r(122);e.ChartSeriesLabels=s.default;var l=r(123);e.ChartSeriesHighlight=l.default;var c=r(124);e.ChartSeriesExtremes=c.default;var p=r(125);e.ChartSeriesErrorBars=p.default;var u=r(126);e.ChartSeriesLabelsFrom=u.default;var h=r(127);e.ChartSeriesLabelsTo=h.default;var f=r(128);e.ChartSeriesNotesLabel=f.default;var d=r(129);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(0),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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),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(0),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(0),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(0),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(131);e.ChartValueAxisCrosshair=o.default;var i=r(132);e.ChartValueAxisCrosshairTooltip=i.default;var n=r(133);e.ChartValueAxisLabels=n.default;var a=r(134);e.ChartValueAxisNotes=a.default;var s=r(135);e.ChartValueAxisNotesIcon=s.default;var l=r(136);e.ChartValueAxisNotesLabel=l.default;var c=r(137);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartValueAxisTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(139);e.ChartXAxisCrosshair=o.default;var i=r(140);e.ChartXAxisCrosshairTooltip=i.default;var n=r(141);e.ChartXAxisLabels=n.default;var a=r(142);e.ChartXAxisNotes=a.default;var s=r(143);e.ChartXAxisNotesIcon=s.default;var l=r(144);e.ChartXAxisNotesLabel=l.default;var c=r(145);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartXAxisTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(147);e.ChartYAxisCrosshair=o.default;var i=r(148);e.ChartYAxisCrosshairTooltip=i.default;var n=r(149);e.ChartYAxisLabels=n.default;var a=r(150);e.ChartYAxisNotes=a.default;var s=r(151);e.ChartYAxisNotesIcon=s.default;var l=r(152);e.ChartYAxisNotesLabel=l.default;var c=r(153);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartYAxisTitle",e.default=a},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(155);e.ChartNavigatorCategoryAxis=i.default;var n=r(156);e.ChartNavigatorHint=n.default;var a=r(157);e.ChartNavigatorPane=a.default;var s=r(158);e.ChartNavigatorSelect=s.default;var l=r(159);e.ChartNavigatorSeries=l.default;var c=r(49);e.ChartNavigatorSeriesItem=c.default,o(r(160)),o(r(168)),o(r(170))},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};a.displayName="ChartNavigatorCategoryAxis",e.default=a},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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"pane"}))};a.displayName="ChartNavigatorPane",e.default=a},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(0),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(0),n=r(10),a=r(49),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.default)}},e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(161);e.ChartNavigatorCategoryAxisCrosshair=o.default;var i=r(162);e.ChartNavigatorCategoryAxisCrosshairTooltip=i.default;var n=r(163);e.ChartNavigatorCategoryAxisTitle=n.default;var a=r(164);e.ChartNavigatorCategoryAxisLabels=a.default;var s=r(165);e.ChartNavigatorCategoryAxisNotes=s.default;var l=r(166);e.ChartNavigatorCategoryAxisNotesIcon=l.default;var c=r(167);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartNavigatorCategoryAxisTitle",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(169);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartNavigatorPaneTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(171);e.ChartNavigatorSeriesItemTooltip=o.default;var i=r(172);e.ChartNavigatorSeriesItemOutliers=i.default;var n=r(173);e.ChartNavigatorSeriesNotes=n.default;var a=r(174);e.ChartNavigatorSeriesMarkers=a.default;var s=r(175);e.ChartNavigatorSeriesLabels=s.default;var l=r(176);e.ChartNavigatorSeriesHighlight=l.default;var c=r(177);e.ChartNavigatorSeriesExtremes=c.default;var p=r(178);e.ChartNavigatorSeriesErrorBars=p.default;var u=r(179);e.ChartNavigatorSeriesLabelsFrom=u.default;var h=r(180);e.ChartNavigatorSeriesLabelsTo=h.default;var f=r(181);e.ChartNavigatorSeriesNotesLabel=f.default;var d=r(182);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(0),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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),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(0),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(0),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(0),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(184);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(18);e.AxisLabelClickEvent=o.AxisLabelClickEvent;var i=r(20);e.DragEndEvent=i.DragEndEvent;var n=r(19);e.DragEvent=n.DragEvent;var a=r(21);e.DragStartEvent=a.DragStartEvent;var s=r(23);e.LegendItemClickEvent=s.LegendItemClickEvent;var l=r(22);e.LegendItemHoverEvent=l.LegendItemHoverEvent;var c=r(24);e.NavigatorFilterEvent=c.NavigatorFilterEvent;var p=r(25);e.NoteClickEvent=p.NoteClickEvent;var u=r(26);e.NoteHoverEvent=u.NoteHoverEvent;var h=r(27);e.PlotAreaClickEvent=h.PlotAreaClickEvent;var f=r(28);e.PlotAreaHoverEvent=f.PlotAreaHoverEvent;var d=r(29);e.RenderEvent=d.RenderEvent;var v=r(31);e.SelectEndEvent=v.SelectEndEvent;var y=r(30);e.SelectEvent=y.SelectEvent;var g=r(32);e.SelectStartEvent=g.SelectStartEvent;var m=r(33);e.SeriesClickEvent=m.SeriesClickEvent;var x=r(34);e.SeriesHoverEvent=x.SeriesHoverEvent;var b=r(36);e.ZoomEndEvent=b.ZoomEndEvent;var _=r(35);e.ZoomEvent=_.ZoomEvent;var w=r(37);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 ct}));var o=r(0),i=r(50),n=r(3),a=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")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=r(17),c=r(11),p=r(16),u=r(12),h="bottom",f="center",d="middle",v="left",y="right",g="top";function m(t){return t.ownerDocument||t.document||t}var x=function(t){return m(t).defaultView},b=function(t){return m(t).documentElement},_=0;function w(){if(!_&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),_=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return _}function C(t){var e=x(t),r=b(t),o={height:e.innerHeight,width:e.innerWidth};return r.scrollHeight-r.clientHeight>0&&(o.width-=w()),o}var O=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||b(t)},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=b(t),r=x(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=x(t),o=r.getComputedStyle(t),i=P(t),n=e||O(t),a=t.ownerDocument,s=n!==a.body&&n!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){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=O(t);return e?A(e):{x:0,y:0}}(e)};var T="fit",E="flip",R="none",B=function(t,e,r){var o=0;return t+e>r&&(o=r-(t+e)),t<0&&(o=-t),o},I=function(t){var e=t.offset,r=t.size,o=t.anchorSize,i=t.viewPortSize,n=t.anchorAlignPoint,a=t.elementAlignPoint,s=0,l=2*t.margin;if(a!==n&&!(a===f||a===d)&&!(n===f||n===d)){var c=n===g||n===v;e<0&&c?e+(s=r+o+l)+r>i&&(s=0):e>=0&&!c&&(e+r>i&&(s+=-(o+r+l)),e+s<0&&(s=0))}return s},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,N,H,U=(V=function(t){if(!F())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},N=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return N||(z=V.apply(void 0,t),N=!0),z}),F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},G={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:U,canUseDOM:F},W=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],K=function(){return G.canUseDOM()?window:null},X=/auto|scroll/,Y=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},q=function(t){if(!t||!G.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},Z=function(){return G.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Q={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}},align:function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.margin;void 0===n&&(n={});var a=r.horizontal,s=r.vertical,l=i.horizontal,c=i.vertical,p=n.horizontal||0,u=n.vertical||0,v=e.top,g=e.left;return s===h&&(v+=e.height),s!==f&&s!==d||(v+=Math.round(e.height/2)),c===h&&(v-=o.height,u*=-1),c!==f&&c!==d||(v-=Math.round(o.height/2),u*=-1),a===y&&(g+=e.width),a!==f&&a!==d||(g+=Math.round(e.width/2)),l===y&&(g-=o.width,p*=-1),l!==f&&l!==d||(g-=Math.round(o.width/2),p*=-1),{top:v+u,left:g+p}},boundingOffset:function(t){if(!t.getBoundingClientRect){var e=C(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}},getFontStyles:function(t){var e=K();if(!e||!t)return[];var r=e.getComputedStyle(t);return W.map((function(t){return{key:t,value:r[t]}}))},getWindow:K,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?P(t):null},offsetAtPoint:function(t,e){if(!t)return null;var r=t.style,o=r.left,i=r.top,n=r.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var a=P(t);return t.style.left=o,t.style.top=i,t.offsetHeight,t.style.transition=n,a},position:function(t,e,r){return t&&e?function(t,e,r){void 0===r&&(r=1);var o=e?O(e):null,i=M(t,o),n=i.top,a=i.left,s=i.height,l=i.width,c=j(o,t),p=c.x,u=c.y,h=t.ownerDocument,f=o===h.body||o===h.documentElement?1:r;return{top:n+u*f,left:a+p*f,height:s,width:l}}(t,e,r||1):null},removeScroll:function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}},restrictToView:function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var l=o.top,c=o.left,p=o.height,u=o.width,h=a.height,f=a.width,d=s.horizontal||0,v=s.vertical||0,y=0,g=0,m=n.vertical===T,x=n.horizontal===T,b=n.vertical===E,_=n.horizontal===E;m&&(g+=B(l,p,h)),x&&(y+=B(c,u,f)),b&&(g+=I({margin:v,offset:l,size:p,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:r.vertical,elementAlignPoint:i.vertical})),_&&(y+=I({margin:d,offset:c,size:u,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:r.horizontal,elementAlignPoint:i.horizontal}));var w=b&&0!==g,C=_&&0!==y,O=m&&0!==g,P=x&&0!==y;return{flipped:C||w,fitted:O||P,flip:{horizontal:C,vertical:w},fit:{horizontal:P,vertical:O},offset:{left:y,top:g}}},scrollPosition:k,scrollableParents:function(t){var e=[];if(!G.canUseDOM())return e;for(var r=t.parentElement;r;)(X.test(Y(r))||r.hasAttribute("data-scrollable"))&&e.push(r),r=r.parentElement;return e.push(window),e},getRelativeContextElement:q,stackingElementOffset:function(t){var e=q(t);return e?P(e):null},stackingElementScroll:function(t){var e=q(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=q(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(q(t))},windowViewPort:C,zoomLevel:Z,isZoomed:function(){return Z()>1},zIndex:function(t,e){if(!t||!G.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}},$=function(t,e){return t?{x:0,y:0}:Q.scrollPosition(e)},J=function(t){var e=t.anchor,r=t.element,o=t.anchorAlign,i=t.elementAlign,n=t.margin,a=t.offset,s=t.positionMode,l=t.scale||1,c="fixed"===s||!Q.hasOffsetParent(r)?function(t,e,r,o){var i=$(t,e),n=G.eitherRect(Q.offset(t),r),a=2*o,s=Q.stackingElementScroll(e);1!==o&&s&&(s.x/=a,s.y/=a);var l=Q.stackingElementOffset(e);return 1!==o&&l&&(l.left/=a,l.top/=a),Q.removeScroll(Q.addScroll(G.removeStackingOffset(G.scaleRect(n,o),l),s),i)}(e,r,a,l):function(t,e,r,o){var i=G.eitherRect(Q.position(t,e,o),r);return G.scaleRect(i,o)}(e,r,a,l),p=G.scaleRect(Q.offset(r),l);return Q.align({anchorAlign:o,anchorRect:c,elementAlign:i,elementRect:p,margin:n})},tt=function(t){var e=t.anchor,r=t.currentLocation,o=t.element,i=t.anchorAlign,n=t.elementAlign,a=t.collisions,s=t.margin,l=t.scale||1,c=Q.offsetAtPoint(o,r),p=G.scaleRect(c,l),u=G.scaleRect(Q.offset(e),l),h=G.eitherRect(u,r),f=t.viewPort||Q.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var d=Q.restrictToView({anchorAlign:i,anchorRect:h,collisions:a,elementAlign:n,elementRect:p,margin:s,viewPort:f}),v=Q.addOffset(r,d.offset);return{flip:d.flip,flipped:d.flipped,offset:v}},et={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1642764597,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"},rt=(H=function(t,e){return(H=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}H(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ot=function(){return(ot=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 it(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 nt,at={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(nt||(nt={}));var st=function(t){function e(e){var r=t.call(this,e)||this;return r.state={current:nt.hidden,previous:nt.hidden,props:{}},r._popup=null,r.show=function(t){r.setPosition(t),r.animate(t.firstChild,"enter",r.onOpened),r.setState({current:nt.shown,previous:r.state.current})},r.setPosition=function(t){var e=r.props,o=e.anchorAlign,i=e.popupAlign,n=e.collision,a=e.offset,s=e.anchor,l=e.margin,c=e.scale,p=e.positionMode,u=J({anchor:s,anchorAlign:o,element:t,elementAlign:i,offset:a,margin:l,positionMode:p,scale:c}),h=tt({anchor:s,anchorAlign:o,element:t,elementAlign:i,collisions:n,currentLocation:u,margin:r.props.margin});if(t.style.top=h.offset.top+"px",t.style.left=h.offset.left+"px",r._collisions={fit:h.fit,fitted:h.fitted,flip:h.flip,flipped:h.flipped},r.props.onPosition){var f={target:r,flipped:h.flipped,fitted:h.fitted};r.props.onPosition.call(void 0,f)}},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){if(r.props.popupAlign){var i,n=r.props.popupAlign,l=n.horizontal,c=n.vertical;i="left"===l&&"center"===c?"right":"right"===l&&"center"===c?"left":"top"===c?"down":"up";r._collisions&&r._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),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),a(t),i()};t.addEventListener("transitionend",c);var p=t.ownerDocument;if(p){var u=p.defaultView;if(u){var h=function(){a(t),t.classList.add(n),u.requestAnimationFrame((function(){t.style.transitionDuration=r+"ms",t.classList.add(l)}))};s?u.requestAnimationFrame(h):h()}}}(t,i,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===nt.hiding&&r.state.previous===nt.shown&&r.setState({current:nt.hidden,previous:r.state.current}),r.props.onClose&&r.props.onClose.call(void 0,{target:r})},r.getCurrentZIndex=function(){return r.context?r.context+1:100},Object(l.a)(et),r.reposition=function(t,e,r){var o,i,n,a;void 0===r&&(r={});var s=0;r=r||{};var l=function(){s=!1===r.leading?0:(new Date).getTime(),o=null,a=t.apply(i,n),o||(i=n=null)};return function(){var c=(new Date).getTime();s||!1!==r.leading||(s=c);var p=e-(c-s);return i=this,n=arguments,p<=0||p>e?(o&&(clearTimeout(o),o=null),s=c,a=t.apply(i,n),o||(i=n=null)):o||!1===r.trailing||(o=window.setTimeout(l,p)),a}}(r.reposition.bind(r),1e3/60),r}return rt(e,t),e.getDerivedStateFromProps=function(t,e){var r=t.show,o=t.anchor,i=t.anchorAlign,n=t.appendTo,a=t.collision,s=t.popupAlign,l=t.className,c=t.popupClass,p=t.style,u=t.offset,h=t.contentKey,f=ot({},e,{props:{show:r,anchor:o,anchorAlign:i,appendTo:n,collision:a,popupAlign:s,className:l,popupClass:c,style:p,offset:u,contentKey:h}});return t.show?e.current===nt.hidden||e.current===nt.hiding?ot({},f,{current:nt.showing,previous:e.current}):e.current===nt.showing?ot({},f,{current:nt.shown,previous:e.current}):e.current!==nt.shown||it(u,e.props.offset)&&it(i,e.props.anchorAlign)&&it(n,e.props.appendTo)&&it(a,e.props.collision)&&it(s,e.props.popupAlign)&&it(p,e.props.style)&&o===e.props.anchor&&c===e.props.popupClass&&l===e.props.className?f:ot({},f,{current:nt.reposition,previous:e.current}):e.current===nt.hiding||e.current===nt.hidden?ot({},f,{current:nt.hidden,previous:e.current}):ot({},f,{current:nt.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===nt.showing&&this._popup?this.show(this._popup):this.state.current===nt.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===nt.reposition&&this.state.previous===nt.shown?this.setState({current:nt.shown,previous:this.state.current}):this.state.current===nt.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===nt.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,a=e.popupClass,s=e.show,l=e.id,h=e.positionMode,f=this.props.appendTo?this.props.appendTo:c.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===nt.reposition&&this.state.previous===nt.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:h,top:0,left:-1e4},this.props.style||{}),v=this.state.current===nt.hiding;if((s||v)&&f){var y=this.getCurrentZIndex(),g=o.createElement(p.a.Provider,{value:y},o.createElement("div",{className:Object(u.a)("k-animation-container","k-animation-container-relative",n),id:l,ref:function(e){return t._popup=e},style:ot({zIndex:y},d)},o.createElement("div",{className:Object(u.a)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},r)));return i.createPortal(g,f)}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=Q.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:nt.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.oneOfType([n.string,n.arrayOf(n.string),n.object]),id:n.string,popupClass:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),collision:n.shape({horizontal:n.oneOf([T,E,R]),vertical:n.oneOf([T,E,R])}),anchorAlign:n.shape({horizontal:n.oneOf([v,f,y]),vertical:n.oneOf([g,f,h])}),popupAlign:n.shape({horizontal:n.oneOf([v,f,y]),vertical:n.oneOf([g,f,h])}),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})]),margin:n.shape({horizontal:n.number,vertical:n.number}),positionMode:n.oneOf(["fixed","absolute"]),scale:n.number,style:n.object,onClose:n.func,onPosition:n.func,onOpen:n.func},e.defaultProps={collision:{horizontal:T,vertical:E},anchorAlign:{horizontal:v,vertical:h},popupAlign:{horizontal:v,vertical:g},offset:at,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},e.contextType=p.a,e.displayName="PopupComponent",e}(o.Component),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)},ct=o.createContext((function(t){return t})),pt=o.forwardRef((function(t,e){var r=o.useContext(ct).call(void 0,t);return o.createElement(st,lt({ref:e},r))}));pt.displayName="Popup"}])}));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("react"),require("@progress/kendo-drawing"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):"function"==typeof define&&define.amd?define(["react","@progress/kendo-drawing","prop-types","@progress/kendo-licensing","react-dom","@progress/kendo-react-intl"],e):"object"==typeof exports?exports.KendoReactCharts=e(require("react"),require("@progress/kendo-drawing"),require("prop-types"),require("@progress/kendo-licensing"),require("react-dom"),require("@progress/kendo-react-intl")):t.KendoReactCharts=e(t.React,t.KendoDrawing,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=51)}([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)},a=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(0),l=r(39),c=r(40),p=r(9),u=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?s.Children.map(e,(function(e){return s.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,a(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 s.cloneElement(t,r,e)},e.contextType=p.ChartContext,e}(s.Component);e.default=u},function(t,e){t.exports=r},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,a=i;n<a.length;n++){var s=a[n];if(!s.type||s.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(4).BaseEvent);e.PreventableEvent=n},function(t,e,r){"use strict";r.r(e),r.d(e,"autoMajorUnit",(function(){return Dt})),r.d(e,"Point",(function(){return Lt})),r.d(e,"Box",(function(){return zt})),r.d(e,"Ring",(function(){return Ht})),r.d(e,"Sector",(function(){return Ut})),r.d(e,"ShapeBuilder",(function(){return Gt})),r.d(e,"ShapeElement",(function(){return Zt})),r.d(e,"ChartElement",(function(){return Kt})),r.d(e,"BoxElement",(function(){return Yt})),r.d(e,"RootElement",(function(){return te})),r.d(e,"FloatElement",(function(){return re})),r.d(e,"Text",(function(){return ne})),r.d(e,"TextBox",(function(){return le})),r.d(e,"Title",(function(){return pe})),r.d(e,"AxisLabel",(function(){return he})),r.d(e,"Axis",(function(){return Ee})),r.d(e,"Note",(function(){return de})),r.d(e,"CategoryAxis",(function(){return tr})),r.d(e,"DateCategoryAxis",(function(){return cr})),r.d(e,"DateValueAxis",(function(){return mr})),r.d(e,"NumericAxis",(function(){return yr})),r.d(e,"LogarithmicAxis",(function(){return wr})),r.d(e,"PolarAxis",(function(){return kr})),r.d(e,"RadarCategoryAxis",(function(){return Pr})),r.d(e,"RadarNumericAxis",(function(){return Tr})),r.d(e,"RadarLogarithmicAxis",(function(){return Rr})),r.d(e,"CurveProcessor",(function(){return Ir})),r.d(e,"Gradients",(function(){return Qt})),r.d(e,"rectToBox",(function(){return ae})),r.d(e,"ChartAxis",(function(){return Dr})),r.d(e,"ChartPane",(function(){return zr})),r.d(e,"ChartPlotArea",(function(){return Nr})),r.d(e,"findAxisByName",(function(){return Lr})),r.d(e,"Aggregates",(function(){return Fr})),r.d(e,"AreaChart",(function(){return Do})),r.d(e,"AreaSegment",(function(){return Eo})),r.d(e,"AxisGroupRangeTracker",(function(){return Lo})),r.d(e,"Bar",(function(){return Uo})),r.d(e,"BarChart",(function(){return Zo})),r.d(e,"BarLabel",(function(){return zo})),r.d(e,"BoxPlotChart",(function(){return ni})),r.d(e,"BoxPlot",(function(){return oi})),r.d(e,"BubbleChart",(function(){return fi})),r.d(e,"Bullet",(function(){return gi})),r.d(e,"BulletChart",(function(){return xi})),r.d(e,"CandlestickChart",(function(){return ei})),r.d(e,"Candlestick",(function(){return $o})),r.d(e,"CategoricalChart",(function(){return ho})),r.d(e,"CategoricalErrorBar",(function(){return lo})),r.d(e,"CategoricalPlotArea",(function(){return On})),r.d(e,"Chart",(function(){return fs})),r.d(e,"ChartContainer",(function(){return ki})),r.d(e,"ClipAnimation",(function(){return ko})),r.d(e,"ClusterLayout",(function(){return Ko})),r.d(e,"Crosshair",(function(){return Pi})),r.d(e,"CrosshairTooltip",(function(){return Ci})),r.d(e,"DefaultAggregates",(function(){return Ji})),r.d(e,"DonutChart",(function(){return ya})),r.d(e,"DonutPlotArea",(function(){return ga})),r.d(e,"DonutSegment",(function(){return da})),r.d(e,"ErrorBarBase",(function(){return so})),r.d(e,"ErrorRangeCalculator",(function(){return qr})),r.d(e,"Highlight",(function(){return Sn})),r.d(e,"SharedTooltip",(function(){return Kn})),r.d(e,"Legend",(function(){return Ln})),r.d(e,"LegendItem",(function(){return In})),r.d(e,"LegendLayout",(function(){return Bn})),r.d(e,"LineChart",(function(){return To})),r.d(e,"LinePoint",(function(){return go})),r.d(e,"LineSegment",(function(){return xo})),r.d(e,"Pane",(function(){return ji})),r.d(e,"PieAnimation",(function(){return Qn})),r.d(e,"PieChart",(function(){return ua})),r.d(e,"PieChartMixin",(function(){return la})),r.d(e,"PiePlotArea",(function(){return ha})),r.d(e,"PieSegment",(function(){return sa})),r.d(e,"PlotAreaBase",(function(){return Yi})),r.d(e,"PlotAreaEventsMixin",(function(){return qi})),r.d(e,"PlotAreaFactory",(function(){return zn})),r.d(e,"PointEventsMixin",(function(){return fo})),r.d(e,"RangeBar",(function(){return en})),r.d(e,"RangeBarChart",(function(){return on})),r.d(e,"RangeAreaPoint",(function(){return sn})),r.d(e,"RangeAreaChart",(function(){return fn})),r.d(e,"ScatterChart",(function(){return ci})),r.d(e,"ScatterErrorBar",(function(){return ai})),r.d(e,"ScatterLineChart",(function(){return Jn})),r.d(e,"Selection",(function(){return Fn})),r.d(e,"SeriesAggregator",(function(){return Qi})),r.d(e,"SeriesBinder",(function(){return Kr})),r.d(e,"SplineSegment",(function(){return Oo})),r.d(e,"SplineAreaSegment",(function(){return Io})),r.d(e,"StackWrap",(function(){return Yo})),r.d(e,"Tooltip",(function(){return Gn})),r.d(e,"OHLCChart",(function(){return vn})),r.d(e,"OHLCPoint",(function(){return dn})),r.d(e,"WaterfallChart",(function(){return mn})),r.d(e,"WaterfallSegment",(function(){return gn})),r.d(e,"XYPlotArea",(function(){return ra})),r.d(e,"MousewheelZoom",(function(){return Rn})),r.d(e,"ZoomSelection",(function(){return En})),r.d(e,"Pannable",(function(){return jn})),r.d(e,"anyHasZIndex",(function(){return Ao})),r.d(e,"appendIfNotNull",(function(){return Ti})),r.d(e,"areNumbers",(function(){return Jo})),r.d(e,"bindSegments",(function(){return Ri})),r.d(e,"categoriesCount",(function(){return po})),r.d(e,"countNumbers",(function(){return Hr})),r.d(e,"equalsIgnoreCase",(function(){return Bi})),r.d(e,"evalOptions",(function(){return co})),r.d(e,"filterSeriesByType",(function(){return Ii})),r.d(e,"getDateField",(function(){return Di})),r.d(e,"getField",(function(){return Gr})),r.d(e,"hasGradientOverlay",(function(){return No})),r.d(e,"hasValue",(function(){return si})),r.d(e,"isDateAxis",(function(){return Li})),r.d(e,"segmentVisible",(function(){return Ei})),r.d(e,"singleItemOrArray",(function(){return Vi})),r.d(e,"createOutOfRangePoints",(function(){return Ui})),r.d(e,"ChartService",(function(){return Se})),r.d(e,"DomEventsBuilder",(function(){return Ae})),r.d(e,"FormatService",(function(){return we})),r.d(e,"IntlService",(function(){return me})),r.d(e,"TemplateService",(function(){return H})),r.d(e,"Sparkline",(function(){return bs})),r.d(e,"Navigator",(function(){return As})),r.d(e,"NavigatorHint",(function(){return Os})),r.d(e,"StockChart",(function(){return js})),r.d(e,"constants",(function(){return o})),r.d(e,"Gauge",(function(){return Us})),r.d(e,"LinearGauge",(function(){return hl})),r.d(e,"LinearPointer",(function(){return Js})),r.d(e,"ArrowLinearPointer",(function(){return il})),r.d(e,"BarLinearPointer",(function(){return cl})),r.d(e,"LinearScale",(function(){return qs})),r.d(e,"RadialGauge",(function(){return Ml})),r.d(e,"RadialPointer",(function(){return Sl})),r.d(e,"RadialScale",(function(){return xl})),r.d(e,"ArcGauge",(function(){return Dl})),r.d(e,"RangePointer",(function(){return Il})),r.d(e,"ArcScale",(function(){return Tl})),r.d(e,"CircularGauge",(function(){return Ll})),r.d(e,"Barcode",(function(){return Oc})),r.d(e,"barcodeValidator",(function(){return Sc})),r.d(e,"QRCode",(function(){return Ap})),r.d(e,"qrcodeValidator",(function(){return Mp})),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 U})),r.d(e,"getter",(function(){return W})),r.d(e,"grep",(function(){return K})),r.d(e,"hasClasses",(function(){return X})),r.d(e,"HashMap",(function(){return q})),r.d(e,"inArray",(function(){return Z})),r.d(e,"interpolateValue",(function(){return Q})),r.d(e,"InstanceObserver",(function(){return J})),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 tt})),r.d(e,"mousewheelDelta",(function(){return rt})),r.d(e,"FontLoader",(function(){return bt})),r.d(e,"setDefaultOptions",(function(){return _t})),r.d(e,"sparseArrayLimits",(function(){return wt})),r.d(e,"styleValue",(function(){return B})),r.d(e,"find",(function(){return Ct})),r.d(e,"elementScale",(function(){return kt})),r.d(e,"autoTextColor",(function(){return At})),r.d(e,"createHashSet",(function(){return Bt})),r.d(e,"defaultErrorHandler",(function(){return It})),r.d(e,"append",(function(){return it})),r.d(e,"bindEvents",(function(){return nt})),r.d(e,"Class",(function(){return O.Class})),r.d(e,"defined",(function(){return at})),r.d(e,"deg",(function(){return st})),r.d(e,"elementOffset",(function(){return lt})),r.d(e,"elementSize",(function(){return ct})),r.d(e,"eventElement",(function(){return pt})),r.d(e,"eventCoordinates",(function(){return ut})),r.d(e,"last",(function(){return ht})),r.d(e,"limitValue",(function(){return ft})),r.d(e,"logToConsole",(function(){return O.logToConsole})),r.d(e,"objectKey",(function(){return dt})),r.d(e,"rad",(function(){return vt})),r.d(e,"round",(function(){return yt})),r.d(e,"unbindEvents",(function(){return gt})),r.d(e,"valueOrDefault",(function(){return mt})),r.d(e,"chartBaseTheme",(function(){return Ip}));var o={};r.r(o),r.d(o,"NAVIGATOR_AXIS",(function(){return Ss})),r.d(o,"NAVIGATOR_PANE",(function(){return Ps}));var i="arc",n="#000",a="bottom",s="center",l="circle",c="date",p=/\{\d+:?/,u="left",h=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(1);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 a=t[r];t[r]="object"==typeof a&&a||{},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 a=r[n];o[a]=D(a)?parseFloat(i[a]):i[a]}return o}if(R(e))for(var s in e)t.style[s]=B(e[s])}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[a]=r[u]=t:(r.top=t.top||e,r[d]=t[d]||e,r[a]=t[a]||e,r[u]=t[u]||e),r}var z={compile:function(t){return t}},N=function(){};N.register=function(t){z=t},N.compile=function(t){return z.compile(t)};var H=N;function U(t){var e;return void 0===t&&(t={}),t.template?t.template=e=H.compile(t.template):j(t.content)&&(e=t.content),e}var F=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,G={};function W(t){if(G[t])return G[t];var e=[];return t.replace(F,(function(t,r,o,i){e.push(O.drawing.util.defined(r)?r:o||i)})),G[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},G[t]}function K(t,e){for(var r=t.length,o=[],i=0;i<r;i++)e(t[i])&&o.push(t[i]);return o}function X(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}G[void 0]=function(t){return t};var Y=function(){this._map={}};Y.prototype.get=function(t){return this._map[this._key(t)]},Y.prototype.set=function(t,e){this._map[this._key(t)]=e},Y.prototype._key=function(t){return t instanceof Date?t.getTime():t};var q=Y;function Z(t,e){if(e)return-1!==e.indexOf(t)}function Q(t,e,r){return O.drawing.util.round(t+(e-t)*r,3)}var $=function(t,e){this.observer=t,this.handlerMap=E({},this.handlerMap,e)};$.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},$.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)},$.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 J=$;function tt(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 et=O.support.browser||{};function rt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,et.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e=e>0?Math.ceil(e):Math.floor(e)}var ot=O.drawing.util,it=ot.append,nt=ot.bindEvents,at=ot.defined,st=ot.deg,lt=ot.elementOffset,ct=ot.elementSize,pt=ot.eventElement,ut=ot.eventCoordinates,ht=ot.last,ft=ot.limitValue,dt=ot.objectKey,vt=ot.rad,yt=ot.round,gt=ot.unbindEvents,mt=ot.valueOrDefault,xt=function(){};xt.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++,xt.fetchFonts(i,e,r),r.depth--))}))},xt.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()},xt.preloadFonts=function(t,e){var r=[];xt.fetchFonts(t,r),xt.loadFonts(r,e)};var bt=xt;function _t(t,e){var r=t.prototype;r.options?r.options=E({},r.options,e):r.options=e}function wt(t){for(var e=h,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===h?void 0:e,max:r===f?void 0:r}}function Ct(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(e(o,r,t))return o}}var Ot=O.geometry.Matrix,Pt=/matrix\((.*)\)/;function St(t){var e=getComputedStyle(t).transform;return"none"===e?Ot.unit():function(t){var e=t.match(Pt);if(null===e||2!==e.length)return Ot.unit();var r=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(Ot,[null].concat(r)))}(e)}function kt(t){if(!t)return Ot.unit();for(var e=St(t),r=t.parentElement;r;){var o=St(r);e=e.multiplyCopy(o),r=r.parentElement}return e.b=e.c=e.e=e.f=0,e}var At=function(t){return new O.Color(t).isDark()?g:n},Mt={},jt=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},Tt={size:{configurable:!0}};jt.prototype.values=function(){return this._values.filter((function(t){return t!==Mt}))},jt.prototype.has=function(t){return void 0!==this._index[t]},jt.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},jt.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Mt,delete this._index[t])},jt.prototype.clear=function(){this._index={},this._values=[]},Tt.size.get=function(){return this._values.length},Object.defineProperties(jt.prototype,Tt);var Et=function(t){this._set=new Set(t)},Rt={size:{configurable:!0}};Et.prototype.values=function(){return Array.from(this._set)},Et.prototype.has=function(t){return this._set.has(t)},Et.prototype.add=function(t){this._set.add(t)},Et.prototype.delete=function(t){this._set.delete(t)},Et.prototype.clear=function(){this._set.clear()},Rt.size.get=function(){return this._set.size},Object.defineProperties(Et.prototype,Rt);function Bt(t){return function(){var t=!1;"function"==typeof Set&&(t=new Set([1]).has(1));return t}()?new Et(t):new jt(t)}function It(t){throw t}function Dt(t,e){var r=yt(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=yt(r/o,10);return yt(o*(i<1.904762?.2:i<4.761904?.5:i<9.523809?1:2),10)}var Lt=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=vt(e),o=Math.cos(r),i=Math.sin(r),n=t.x,a=t.y,s=this.x,l=this.y;return this.x=yt(n+(s-n)*o+(l-a)*i,3),this.y=yt(a+(l-a)*o-(s-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=vt(r);return new e(t.x-o*Math.cos(i),t.y-o*Math.sin(i))},e}(O.Class);function Vt(t,e,r,o,i){var n=vt(i);return new Lt(r+(t-r)*Math.cos(n)+(e-o)*Math.sin(n),o-(t-r)*Math.sin(n)+(e-o)*Math.cos(n))}var zt=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 at(t)&&(this.x1=t,this.x2=this.x1+o),at(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===a?x:m,n=i===x?r:o;if(e===s){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===u?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 Lt(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 Lt(this.x1,this.y1),new Lt(this.x2,this.y1),new Lt(this.x2,this.y2),new Lt(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,a=Vt(0,0,i,n,t),s=Vt(e,0,i,n,t),l=Vt(e,r,i,n,t),c=Vt(0,r,i,n,t);return e=Math.max(a.x,s.x,l.x,c.x)-Math.min(a.x,s.x,l.x,c.x),r=Math.max(a.y,s.y,l.y,c.y)-Math.min(a.y,s.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]();Z(r,[u,v])?(this[o]=t[o],this[i]=this[o]+l):Z(r,[d,a])?(this[i]=t[i],this[o]=this[i]-l):r===s&&(this[o]=t[o]+(t[n]()-l)/2,this[i]=this[o]+l)},e}(O.Class);function Nt(t,e){return t-e}var Ht=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=vt(t),o=Math.cos(r),i=Math.sin(r),n=e?this.innerRadius:this.radius,a=yt(this.center.x-o*n,3),s=yt(this.center.y-i*n,3);return new Lt(a,s)},e.prototype.adjacentBox=function(t,e,r){var o=this.clone().expand(t),i=o.middle(),n=o.point(i),a=e/2,s=r/2,l=Math.sin(vt(i)),c=Math.cos(vt(i)),p=n.x-a,u=n.y-s;return Math.abs(l)<.9&&(p+=a*-c/Math.abs(c)),Math.abs(c)<.9&&(u+=s*-l/Math.abs(l)),new zt(p,u,p+e,u+r)},e.prototype.containsPoint=function(t){var e=this.center,r=this.innerRadius,o=this.radius,i=this.startAngle,n=this.startAngle+this.angle,a=t.x-e.x,s=t.y-e.y,l=new Lt(a,s),c=this.point(i),p=new Lt(c.x-e.x,c.y-e.y),u=this.point(n),h=new Lt(u.x-e.x,u.y-e.y),f=yt(a*a+s*s,3);return(p.equals(l)||S(p,l))&&!S(h,l)&&f>=r*r&&f<=o*o},e.prototype.getBBox=function(){var t,e=new zt(h,h,f,f),r=yt(this.startAngle%360),o=yt((r+this.angle)%360),i=this.innerRadius,n=[0,90,180,270,r,o].sort(Nt),a=n.indexOf(r),s=n.indexOf(o);t=r===o?n:a<s?n.slice(a,s+1):[].concat(n.slice(0,s+1),n.slice(a,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),Ut=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}(Ht),Ft=function(t){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),a=Math.max(t.innerRadius,0),s=new O.geometry.Arc(i,{startAngle:r,endAngle:o,radiusX:n,radiusY:n}),l=O.drawing.Path.fromArc(s,e).close();if(a){s.radiusX=s.radiusY=a;var c=s.pointAt(o);l.lineTo(c.x,c.y),l.arc(o,r,a,a,!0)}else l.lineTo(i.x,i.y);return l},e}(O.Class);Ft.current=new Ft;var Gt=Ft,Wt=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:mt(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):at(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(mt(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 a={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(a)},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(a);at(n.options.zIndex)||(n.options.zIndex=mt(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);Wt.prototype.options={};var Kt=Wt,Xt=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,a=i.height,s=i.shrinkToFit,l=n&&a,c=i.margin,p=i.padding,u=i.border.width,h=function(){o.align(e,m,i.align),o.align(e,x,i.vAlign),o.paddingBox=r.clone().unpad(c).unpad(u)},f=e.clone();l&&(f.x2=f.x1+n,f.y2=f.y1+a),s&&f.unpad(c).unpad(u).unpad(p),t.prototype.reflow.call(this,f),r=l?this.box=new zt(0,0,n,a):this.box,s&&l?(h(),f=this.contentBox=this.paddingBox.clone().unpad(p)):(f=this.contentBox=r.clone(),r.pad(p).pad(u).pad(c),h()),this.translateChildren(r.x1-f.x1+c.left+u+p.left,r.y1-f.y1+c.top+u+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:mt(e.opacity,t.opacity),dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},cursor:t.cursor}},e}(Kt);_t(Xt,{align:u,vAlign:v,margin:{},padding:{},border:{color:n,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});var Yt=Xt,qt=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,a=e.height()/2;if(!t.visible||!this.hasBox())return null;var s,c=this.visualStyle();if(r===l)s=new O.drawing.Circle(new O.geometry.Circle([yt(e.x1+n,3),yt(e.y1+a,3)],Math.min(n,a)),c);else if("triangle"===r)s=O.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],c).close();else if("cross"===r)(s=new O.drawing.MultiPath(c)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),s.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var p=e.toRect();if("roundedRect"===r){var u=mt(t.borderRadius,p.width()/5);p.setCornerRadius(u)}s=O.drawing.Path.fromRect(p,c)}return o&&s.transform(O.geometry.transform().rotate(-o,[i.x,i.y])),s.options.zIndex=t.zIndex,s},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}(Yt);_t(qt,{type:l,align:s,vAlign:s});var Zt=qt,Qt={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 $t(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),a=Math.min(t.y1,e.y1),s=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 zt(o,a,i,s),p[1]=new zt(r,s,o,l),p[2]=new zt(i,s,n,l),p[3]=new zt(o,l,i,c),t.x1===r&&t.y1===a||e.x1===r&&e.y1===a?(p[4]=new zt(r,a,o,s),p[5]=new zt(i,l,n,c)):(p[4]=new zt(i,a,n,s),p[5]=new zt(r,l,o,c)),K(p,(function(t){return t.height()>0&&t.width()>0}))[0]}var Jt=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 zt(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=$t(r,e[o].box)||new zt},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=dt(t),i=Qt[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 a=Object.assign({},e[n]);a.offset=(a.offset*(100-r)+r)/100,i.push(a)}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 zt(0,0,t.width,t.height)},e}(Kt);_t(Jt,{width:600,height:400,background:g,border:{color:n,width:0},margin:V(5),zIndex:-2});var te=Jt,ee=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(),a=n.groups,s=n.groupsSize,l=n.maxGroupElementsSize,c=a.length,p=t[r+1]+this.alignStart(s,t[i]());if(c){for(var u=p,h=0;h<c;h++){for(var f=a[h],d=f.groupElements,v=t[e+1],y=d.length,g=0;g<y;g++){var m=d[g],x=this.elementSize(m),b=u+this.alignStart(x[i],f.groupSize),_=new zt;_[r+1]=b,_[r+2]=b+x[i],_[e+1]=v,_[e+2]=v+x[o],m.reflow(_),v+=x[o]+this.elementSpacing}u+=f.groupSize+this.groupSpacing}t[r+1]=p,t[r+2]=p+s,t[e+2]=t[e+1]+l}},e.prototype.alignStart=function(t,e){var r=0,o=this.options.align;return o===d||o===a?r=e-t:o===s&&(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,a=yt(t[r]()),s=e.length,l=[],c=0,p=0,u=0,h=0,f=[],d=0;d<s;d++){var v=e[d];v.box||v.reflow(t);var y=this.elementSize(v);this.options.wrap&&yt(p+i+y[r])>a&&(l.push({groupElements:f,groupSize:c,groupElementsSize:p}),h=Math.max(h,p),u+=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:u+=c,maxGroupElementsSize:h=Math.max(h,p)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(Kt);_t(ee,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});var re=ee,oe=O.drawing.Text,ie=function(t){function e(e,r){t.call(this,r),this.content=e,this.reflow(new zt)}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 zt(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 oe(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:r,opacity:o},cursor:i})},e}(Kt);_t(ie,{font:"12px sans-serif",color:n});var ne=ie;function ae(t){var e=t.origin,r=t.bottomRight();return new zt(e.x,e.y,r.x,r.y)}var se=/\n/m,le=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 zt)}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(se),r=new re({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 ne(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=ae(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 a=V(r.margin),s=this.box.unpad(a);this.targetBox=e,this.normalBox=s.clone(),(s=this.rotate()).translate(a.left-a.right,a.top-a.bottom),this.rotatedBox=s.clone(),s.pad(a)}},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&&!at(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}(Yt),ce=function(t){function e(e){t.call(this,e),this.append(new le(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}(Kt);_t(ce,{color:n,position:v,align:s,margin:V(5),padding:V(5)});var pe=ce,ue=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 zt)}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:pt(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!==s){var e=this.normalBox.toRect(),r=this.rotationTransform();this.box=ae(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===s)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===a?m:x,p=l===v||l===a?x:m,h=l===v||l===u?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]-h[p]),S=Math.abs(d[p]+_[p]-h[p]);yt(P,10)===yt(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}(le);_t(ue,{_autoReflow:!1});var he=ue,fe=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,a=new zt,s=function(){return t},c=n.size,p=this.fields.text;if(at(i)&&i.visible){var u=U(i);u?p=u(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 le(p,E({},i)),this.label.aliasFor=s,"inside"!==i.position||at(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()),a.wrap(this.label.box))}n.width=r||c||7,n.height=o||c||7;var h=new Zt(E({},n));h.aliasFor=s,this.marker=h,this.append(h),this.label&&this.append(this.label),h.reflow(new zt),this.wrapperBox=a.wrap(h.box)}},e.prototype.reflow=function(t){var e,r,o,i=this.options,n=this.label,s=this.marker,l=this.wrapperBox,c=t.center(),p=i.line.length,h=i.position;i.visible&&(Z(h,[u,d])?h===u?(o=l.alignTo(t,h).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,h).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))):h===a?(o=l.alignTo(t,h).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,h).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))),s&&s.reflow(o),n&&(n.reflow(o),s&&("outside"===i.label.position&&n.box.alignTo(s.box,h),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:pt(t),text:at(e.label)?e.label.text:"",visual:this.visual})},e}(Yt);_t(fe,{icon:{visible:!0,type:l},label:{position:"inside",visible:!0,align:s,vAlign:s},line:{visible:!0},visible:!0,position:v,zIndex:2});var de=fe,ve={format:function(t,e){return e},toString:function(t){return t},parseDate:function(t){return new Date(t)},firstDay:function(){return 0}},ye=function(){},ge={implementation:{configurable:!0}};ye.register=function(t){ve=t},ge.implementation.get=function(){return ve},Object.defineProperties(ye,ge);var me=ye,xe=/\{(\d+)(:[^\}]+)?\}/g,be=function(t){this._intlService=t},_e={intl:{configurable:!0}};_e.intl.get=function(){return this._intlService||me.implementation},_e.intl.set=function(t){this._intlService=t},be.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)},be.prototype.localeAuto=function(t,e,r){var o=this.intl;return A(t)&&t.match(p)?t.replace(xe,(function(t,i,n){var a=e[parseInt(i,10)];return o.toString(a,n?n.substring(1):"",r)})):o.toString(e[0],t,r)},Object.defineProperties(be.prototype,_e);var we=be,Ce=function(t,e){void 0===e&&(e={}),this._intlService=e.intlService,this.sender=e.sender||t,this.format=new we(e.intlService),this.chart=t,this.rtl=Boolean(e.rtl)},Oe={intl:{configurable:!0}};Oe.intl.get=function(){return this._intlService||me.implementation},Oe.intl.set=function(t){this._intlService=t,this.format.intl=t},Ce.prototype.notify=function(t,e){this.chart&&this.chart.trigger(t,e)},Ce.prototype.isPannable=function(t){var e=((this.chart||{}).options||{}).pannable;return e&&e.lock!==t},Object.defineProperties(Ce.prototype,Oe);var Pe,Se=Ce,ke=function(){};ke.register=function(t){Pe=t},ke.create=function(t,e){if(Pe)return Pe.create(t,e)};var Ae=ke;function Me(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 je(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 Te=function(t){function e(e,r){void 0===r&&(r=new Se),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:s,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 a={index:n,count:i.max},l=this.createAxisLabel(n,r,a);l&&(this.append(l),this.labels.push(l))}}},e.prototype.clearLabels=function(){this.children=K(this.children,(function(t){return!(t instanceof he)})),this.labels=[]},e.prototype.clearTitle=function(){var t=this;this.title&&(this.children=K(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,a=t.line.width||0;return r?new zt(i,e.y1,i,e.y2-a):new zt(e.x1,n,e.x2-a,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 le(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 de({value:i.value,text:i.label.text,dataItem:i},i,this.chartService);n.options.visible&&(at(n.options.position)?t.vertical&&!Z(n.options.position,[u,d])?n.options.position=t.reverse?u:d:t.vertical||Z(n.options.position,[v,a])||(n.options.position=t.reverse?a:v):t.vertical?n.options.position=t.reverse?u:d:n.options.position=t.reverse?a: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 a(e,i,a){var s=e.length,l=Math.max(1,i.step);if(i.visible)for(var c=i.skip;c<s;c+=l)at(a)&&c%a==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(Me(n,i)))}a(this.getMajorTickPositions(),e.majorTicks),a(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}),a=K(this.pane.axes,(function(e){return e.options.vertical!==t.options.vertical}))[0],s=0;s<r.length;s++){var l=r[s],c=void 0,p=void 0,h=l.label,f=void 0;if(o?(c=(a||i.axisX).lineBox(),p=t.getSlot(l.from,l.to,!0)):(c=t.getSlot(l.from,l.to,!0),p=(a||i.axisY).lineBox()),h&&(h.vAlign=h.position||u,f=t.createPlotBandLabel(h,l,new zt(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(at(t)&&t.visible){var n=U(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 le(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,a=t.options.line.visible,s=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},u=[],h=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 s=yt(t[n]);Z(s,u)||n%r==0||a&&c===s||(p.position=s,h.append(je(p,e)),u.push(s))}}return f(this.getMajorTickPositions(),o),f(this.getMinorTickPositions(),r,s/i),h.children},e.prototype.reflow=function(t){for(var e=this.options,r=this.labels,o=this.title,i=e.vertical,n=r.length,a=i?"width":"height",s=o?o.box[a]():0,l=this.getActualTickSize()+e.margin+s,c=((this.getRoot()||{}).box||t)[a](),p=0,u=0;u<n;u++){var h=r[u].box[a]();h+l<=c&&(p=Math.max(p,h))}this.box=i?new zt(t.x1,t.y1,t.x1+p+l,t.y2):new zt(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(),a=0;a<e.length;a++){var s=e[a],l=this.labelTickIndex(s),c=o?s.box.height():s.box.width(),p=n[l],u=n[l+1],h=void 0,f=void 0;if(o){if(r)h=p+(u-p)/2-c/2;else h=p-c/2;f=h}else r?(h=p,f=u):f=(h=p-c/2)+c;this.positionLabel(s,i,h,f)}},e.prototype.positionLabel=function(t,e,r,o){void 0===o&&(o=r);var i,n=this.options,s=n.vertical,l=this.lineBox(),c=this.getActualTickSize()+n.margin;if(s){var p=l.x2;e?(p+=c,t.options.rotationOrigin=u):(p-=c+t.box.width(),t.options.rotationOrigin=d),i=t.box.move(p,r)}else{var h=l.y1;e?(h-=c+t.box.height(),t.options.rotationOrigin=a):(h+=c,t.options.rotationOrigin=v),i=new zt(r,h,o,h+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]),a=e[i].box,s=this.autoRotateLabelAngle(a,n);if(0!==s&&(o=s),-90===o)break}if(0!==o){for(var l=0;l<e.length;l++)e[l].options.rotation=o,e[l].reflow(new zt);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:u,e.options.vAlign=e.options.position):(e.options.align=e.options.position,e.options.vAlign=r?v:a),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;at(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=U(e),a=function(){return e.format?i.chartService.format.localeAuto(e.format,[t],e.culture):t};n?o=n(Object.assign({},r,{get text(){return a()},value:t,format:e.format,culture:e.culture})):o=a();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,a=this.labels,s=r?1:0,l=r?0:1,c=0,p=0,u=0;u<a.length;u++){var h=a[u],f=this.labelTickIndex(h),d=void 0,v=void 0;o?(d=i[f+s],v=i[f+l]):d=v=i[f],c=Math.max(c,d-h.box[n+1]),p=Math.max(p,h.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&&(!at(n.min)||n.min<=r)||o<e&&i>0&&(!at(n.max)||o<=n.max))return null;if(e<r&&i>0||o<t&&i<0)return{min:t,max:e};var a=e-t,s=t,l=e;return t<r&&i<0?(s=ft(t,r,o),l=ft(t+a,r+a,o)):e>o&&i>0&&(l=ft(e,r,o),s=ft(e-a,r,o-a)),{min:s,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,a=e.lineSize;return(o>0?t[r]-n[i]:n[i]-t[r])/a},e.prototype.scaleToDelta=function(t,e){var r=ft(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}(Kt);_t(Te,{labels:{visible:!0,rotation:0,mirror:!1,step:1,skip:0},line:{width:1,color:n,visible:!0},title:{visible:!0,position:s},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 Ee=Te,Re="days",Be="years",Ie={years:31536e6,months:26784e5,weeks:6048e5,days:864e5,hours:36e5,minutes:6e4,seconds:1e3,milliseconds:1};function De(t,e){return t.getTime()-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset())}function Le(t,e){return new Date(t.getTime()+e)}function Ve(t){var e;return t instanceof Date?e=t:t&&(e=new Date(t)),e}function ze(t,e){return 0===e&&23===t.getHours()&&(t.setHours(t.getHours()+2),!0)}function Ne(t,e,r,o){var i=t;if(t){var n=Ve(t),a=n.getHours();r===Be?ze(i=new Date(n.getFullYear()+e,0,1),0):"months"===r?ze(i=new Date(n.getFullYear(),n.getMonth()+e,1),a):"weeks"===r?ze(i=Ne(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 Le(t,864e5*-r)}(n,o),7*e,Re),a):r===Re?ze(i=new Date(n.getFullYear(),n.getMonth(),n.getDate()+e),a):"hours"===r?i=function(t,e){var r=new Date(t);r.setMinutes(0,0,0);var o=6e4*(t.getTimezoneOffset()-r.getTimezoneOffset());return Le(r,o+36e5*e)}(n,e):"minutes"===r?(i=Le(n,6e4*e)).getSeconds()>0&&i.setSeconds(0):"seconds"===r?i=Le(n,1e3*e):"milliseconds"===r&&(i=Le(n,e)),"milliseconds"!==r&&i.getMilliseconds()>0&&i.setMilliseconds(0)}return i}function He(t,e,r){return Ne(Ve(t),0,e,r)}function Ue(t,e,r){var o=Ve(t);return o&&He(o,e,r).getTime()===o.getTime()?o:Ne(o,1,e,r)}function Fe(t,e){return t&&e?t.getTime()-e.getTime():-1}function Ge(t,e){return t.getTime()-e}function We(t){if(b(t)){for(var e=[],r=0;r<t.length;r++)e.push(We(t[r]));return e}if(t)return Ve(t).getTime()}function Ke(t,e){return t&&e?We(t)===We(e):t===e}function Xe(t,e,r){return De(t,e)/Ie[r]}function Ye(t,e,r,o){var i=Ve(t),n=Ve(e);return("months"===r?i.getMonth()-n.getMonth()+12*(i.getFullYear()-n.getFullYear())+Xe(i,new Date(i.getFullYear(),i.getMonth()),Re)/new Date(i.getFullYear(),i.getMonth()+1,0).getDate():r===Be?i.getFullYear()-n.getFullYear()+Ye(i,new Date(i.getFullYear(),0),"months",1)/12:r===Re||"weeks"===r?Xe(i,n,r):Ge(i,e)/Ie[r])/o}function qe(t,e,r){return r===Be?e.getFullYear()-t.getFullYear():"months"===r?12*qe(t,e,Be)+e.getMonth()-t.getMonth():r===Re?Math.floor(Ge(e,t)/864e5):Math.floor(Ge(e,t)/Ie[r])}function Ze(t,e){return A(e)&&t.parseDate(e)||Ve(e)}function Qe(t,e){if(b(e)){for(var r=[],o=0;o<e.length;o++)r.push(Ze(t,e[o]));return r}return Ze(t,e)}function $e(t,e){return k(t.weekStartDay)?t.weekStartDay:e&&e.firstDay?e.firstDay():0}var Je=function(t){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=at(t.min),o=at(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=ft(o,0,i.max),e=ft(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],a=ht(e);(n.box[r+1]>i||n.box[r+2]<o)&&(n.options.visible=!1),(a.box[r+1]>i||a.box[r+2]<o)&&(a.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),a=[];n<=i;)a.push(n),n+=t;return a},e.prototype.getTickPositions=function(t){for(var e=this.options,r=e.vertical,o=e.reverse,i=this.scaleOptions(),n=i.scale,a=i.box,s=i.min,l=a[(r?x:m)+(o?2:1)],c=this.tickIndices(t),p=[],u=0;u<c.length;u++)p.push(l+yt(n*(c[u]-s),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 a=i;!o(t[a])&&a>=0;)a--;return t.slice(n,a+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,a=r?-1:1,s=n+(1===a?1:2).toString();return{axis:n,axisOrigin:s,axisDir:a,lineBox:o,lineSize:i,lineStart:o[s]}},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,a=this.scaleOptions(),s=a.scale,l=a.box,c=a.min,p=this.lineInfo(),u=p.axis,h=p.lineStart,f=l.clone(),d=!at(e),v=mt(t,0),y=mt(e,v);y=Math.max(y-1,v);var g=h+(v-c)*s,m=h+((y=Math.max(v,y))+1-c)*s;return d&&n&&(m=g),r&&(g=ft(g,l[u+1],l[u+2]),m=ft(m,l[u+1],l[u+2])),f[u+1]=i?m:g,f[u+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]=ft(t[e+1],r[e+1],r[e+2]),o[e+2]=ft(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,a=r;return"string"==typeof n?n=this.categoryIndex(n):k(n)&&(n-=i),"string"==typeof a?a=this.categoryIndex(a):k(a)&&(a-=i),t.prototype.slot.call(this,n,a,o)},e.prototype.pointCategoryIndex=function(t){var e=this.options,r=e.reverse,o=e.justified,i=e.vertical?x:m,n=this.scaleOptions(),a=n.scale,s=n.box,l=n.min,c=n.max,p=r?c:l,u=s[i+1],h=s[i+2],f=t[i];if(f<u||f>h)return null;var d=p+(f-u)/a,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=yt(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),a=r*n,s=(1-r)*n,l=o.min+a,c=o.max-s;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:ft(n.min,o,i),max:ft(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,a=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)-a,max:(t.categories.length?n+(e?1:0):0)-a}},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=o.dataItems?o.dataItems[t]:null,n=mt(o.categories[t],"");r.dataItem=i;var a=this.axisLabelText(n,e,r);return new he(n,a,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 a=t[n];a.box&&(i<a.box[r+1]||a.box[r+2]<o)&&a.hide()}},e.prototype.pan=function(t){var e=this.totalRangeIndices(!0),r=this.scaleOptions().scale,o=yt(t/r,10),i=this.totalRange(),n=e.min+o,a=e.max+o;return this.limitRange(n,a,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),a=this.scaleOptions(),s=a.scale,l=a.box[i+(o?2:1)],c=t[i]-l,p=e[i]-l,u=n.min+c/s,h=n.min+p/s,f=Math.min(u,h),d=Math.max(u,h);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(Ke(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 q,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}(Ee);_t(Je,{type:"category",vertical:!1,majorGridLines:{visible:!1,width:1,color:n},labels:{zIndex:1},justified:!1,_deferLabels:!0});var tr=Je,er={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"},rr=["milliseconds","seconds","minutes","hours",Re,"weeks","months",Be];function or(t){var e=t._range;return e||((e=t._range=wt(t)).min=Ve(e.min),e.max=Ve(e.max)),e}var ir=function(t){this.options=t};ir.prototype.displayIndices=function(){return{min:0,max:1}},ir.prototype.displayRange=function(){return{}},ir.prototype.total=function(){return{}},ir.prototype.valueRange=function(){return{}},ir.prototype.valueIndex=function(){return-1},ir.prototype.values=function(){return[]},ir.prototype.totalIndex=function(){return-1},ir.prototype.valuesCount=function(){return 0},ir.prototype.totalCount=function(){return 0},ir.prototype.dateAt=function(){return null};var nr=function(t,e,r){this.options=r,r.baseUnitStep=r.baseUnitStep||1;var o=r.roundToBaseUnit,i=r.justified;this.start=Ne(t,0,r.baseUnit,r.weekStartDay);var n=this.roundToTotalStep(e),a=!i&&Ke(e,n)&&!r.justifyEnd;this.end=this.roundToTotalStep(e,!i,a?1:0);var s=r.min||t;this.valueStart=this.roundToTotalStep(s),this.displayStart=o?this.valueStart:s;var l=r.max;if(l){var c=!i&&Ke(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||a?this.end:e;this.valueEnd<this.valueStart&&(this.valueEnd=this.valueStart),this.displayEnd<=this.displayStart&&(this.displayEnd=this.roundToTotalStep(this.displayStart,!1,1))};function ar(t,e,r){for(var o,i,n,a=or(t.categories),s=(t.max||a.max)-(t.min||a.min),l=t.autoBaseUnitSteps,c=t.maxDateGroups,p="fit"===t.baseUnit,u=e?rr.indexOf(e):0,h=p?rr[u++]:t.baseUnit,f=s/Ie[h],d=f;!i||f>=c;){o=o||l[h].slice(0);do{n=o.shift()}while(n&&e===h&&n<r);if(n)f=d/(i=n);else{if(h===ht(rr)){i=Math.ceil(d/c);break}if(!p){f>c&&(i=Math.ceil(d/c));break}h=rr[u++]||ht(rr),d=s/Ie[h],o=null}}t.baseUnitStep=i,t.baseUnit=h}function sr(t){var e=(t.baseUnit||"").toLowerCase();return"fit"!==e&&!Z(e,rr)&&function(t){for(var e,r,o=t.categories,i=at(o)?o.length:0,n=h,a=0;a<i;a++){var s=o[a];if(s&&e){var l=De(s,e);l>0&&(r=(n=Math.min(n,l))>=31536e6?Be:n>=24192e5?"months":n>=6048e5?"weeks":n>=864e5?Re:n>=36e5?"hours":n>=6e4?"minutes":"seconds")}e=s}t.baseUnit=r||Re}(t),"fit"!==e&&"auto"!==t.baseUnitStep||ar(t),t}nr.prototype.displayRange=function(){return{min:this.displayStart,max:this.displayEnd}},nr.prototype.displayIndices=function(){if(!this._indices){var t=this.options,e=t.baseUnit,r=t.baseUnitStep,o=Ye(this.displayStart,this.valueStart,e,r),i=Ye(this.displayEnd,this.valueStart,e,r);this._indices={min:o,max:i}}return this._indices},nr.prototype.total=function(){return{min:this.start,max:this.end}},nr.prototype.totalCount=function(){return this.totalIndex(this.end)+(this.options.justified?1:0)},nr.prototype.valueRange=function(){return{min:this.valueStart,max:this.valueEnd}},nr.prototype.valueIndex=function(t){var e=this.options;return Math.floor(Ye(t,this.valueStart,e.baseUnit,e.baseUnitStep))},nr.prototype.totalIndex=function(t){var e=this.options;return Math.floor(Ye(t,this.start,e.baseUnit,e.baseUnitStep))},nr.prototype.dateIndex=function(t){var e=this.options;return Ye(t,this.valueStart,e.baseUnit,e.baseUnitStep)},nr.prototype.valuesCount=function(){return this.valueIndex(this.valueEnd)+1},nr.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=Ne(o,e.baseUnitStep,e.baseUnit,e.weekStartDay)}return t},nr.prototype.dateAt=function(t,e){var r=this.options;return Ne(e?this.start:this.valueStart,r.baseUnitStep*t,r.baseUnit,r.weekStartDay)},nr.prototype.roundToTotalStep=function(t,e,r){var o=this.options,i=o.baseUnit,n=o.baseUnitStep,a=o.weekStartDay,s=this.start,l=Ye(t,s,i,n),c=e?Math.ceil(l):Math.floor(l);return r&&(c+=r),Ne(s,c*n,i,a)};var lr=function(t){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=Qe(r,i))._parsed=!0),o=E({roundToBaseUnit:!0},o,{categories:i,min:Ze(r,o.min),max:Ze(r,o.max),weekStartDay:$e(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=or(i),a=o.maxDivisions;if(this.dataRange=new nr(n.min,n.max,sr(o)),a){var s=this.dataRange.displayRange(),l=Object.assign({},o,{justified:!0,roundToBaseUnit:!1,baseUnit:"fit",min:s.min,max:s.max,maxDateGroups:a}),c=this.dataRange.options;ar(l,c.baseUnit,c.baseUnitStep),this.divisionRange=new nr(n.min,n.max,l)}else this.divisionRange=this.dataRange}else o.baseUnit=o.baseUnit||Re,this.dataRange=this.divisionRange=new ir(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=[],a=o.values(),s=0;this.options.justified||(a=a.concat(o.dateAt(i)),s=.5);for(var l=0;l<a.length;l++)if(n.push(r.dateIndex(a[l])+s),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 Fe(t,e.min)>=0&&Fe(t,e.max)<=0&&r.length},e.prototype.parseNoteValue=function(t){return Ze(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(),a=i?n.height():n.width(),s=this.range(),l=a/(s.max-s.min),c=yt(t/l,10);if(s.min&&s.max){var p=Le(e.min||s.min,c),u=Le(e.max||s.max,c);s={min:Ne(p,0,r,o),max:Ne(u,0,r,o)}}return s},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,a=i.max,s=this.dataRange.total(),l=yt(t/(o/(a-n)),10)*(e.reverse?-1:1),c=Le(n,l),p=Le(a,l),u=this.limitRange(We(c),We(p),We(s.min),We(s.max),l);return u?(u.min=Ve(u.min),u.max=Ve(u.max),u.baseUnit=e.baseUnit,u.baseUnitStep=e.baseUnitStep||1,u.userSetBaseUnit=e.userSetBaseUnit,u.userSetBaseUnitStep=e.userSetBaseUnitStep,u):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(),a=Ge(i.max,i.min)/(n.max-n.min),s=this.options;return{min:Le(i.min,o.min*a),max:Le(i.min,o.max*a),baseUnit:s.userSetBaseUnit||s.baseUnit,baseUnitStep:s.userSetBaseUnitStep||s.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(),a=n.min,s=n.max,l=Math.abs(this.pointOffset(e)),c=s-a,p=this.scaleToDelta(t,c),u=Math.round(l*p),h=Math.round((1-l)*p),f=this.dataRange.options.baseUnit,d=new Date(a.getTime()+u),v=new Date(s.getTime()-h);if(o){var y,g,m=r.autoBaseUnitSteps,x=r.maxDateGroups,b=ht(m[f])*x*Ie[f],_=Ge(s,a),w=Ge(v,d),C=rr.indexOf(f);if(w<Ie[f]&&"milliseconds"!==f)f=rr[C-1],d=Le(a,g=(_-(x-1)*(y=ht(m[f]))*Ie[f])/2),v=Le(s,-g);else if(w>b&&f!==Be){var O=0;do{C++,f=rr[C],O=0,g=2*Ie[f];do{y=m[f][O],O++}while(O<m[f].length&&g*y<_)}while(f!==Be&&g*y<_);(g=(g*y-_)/2)>0&&(d=Le(a,-g),v=Le(s,g),d=Le(d,ft(v,i.min,i.max)-v),v=Le(v,ft(d,i.min,i.max)-d))}}return d&&v&&Ge(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 a=o?r.y1-n.box.height()/2:r.x1;this.positionLabel(n,i,a)}var s=e[1];if(s){var l=o?r.y2-s.box.height()/2:r.x2;this.positionLabel(s,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(!a(r,e[o]))break}var i=t[1];if(i&&i.options.visible)for(var n=e.length-1;n>0;--n){if(!a(i,e[n]))break}}function a(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),a=e.dateFormats[this.divisionRange.options.baseUnit];e.format=e.format||a,r.dataItem=i;var s=this.axisLabelText(n,e,r);if(s)return new he(n,s,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:s,zIndex:i.zIndex});if(!0===n.visible){this.normalizeLabelRotation(n),n.alignRotation=s,"auto"===n.rotation&&(n.rotation=0,i.autoRotateRangeLabels=!0);var a=n.dateFormats[this.divisionRange.options.baseUnit];n.format=n.format||a;var l=function(e,r,o){if(o){var i=new he(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 zt))},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 a=this.getSlot(i,n,r);if(a)return a.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=or(this.options.srcCategories);return{min:Ve(t.min),max:Ve(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=or(t.srcCategories);return new nr(e.min,e.max,Object.assign({},t,{justified:!1,roundToBaseUnit:!0,justifyEnd:t.justified})).displayRange()},e}(tr);_t(lr,{type:c,labels:{dateFormats:er},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 cr=lr;function pr(t,e){return yt(Math.floor(t/e)*e,10)}function ur(t,e){return yt(Math.ceil(t/e)*e,10)}function hr(t){return Math.max(Math.min(t,3e5),-3e5)}var fr=Math.pow(10,-9),dr=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),a=Dt(i,n),s={majorUnit:a};!1!==r.roundToMajorUnit&&(i<0&&vr(i,a,1/3)&&(i-=a),n>0&&vr(n,a,1/3)&&(n+=a));return s.min=pr(i,a),s.max=ur(n,a),s}(t.seriesMin,t.seriesMax,t);return this.totalOptions=function(t,e){return{min:at(e.min)?Math.min(t.min,e.min):t.min,max:at(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=at(e.min),o=at(e.max);var n=r||o;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=ur(t.max,e.majorUnit)):n&&(i=E(t,e),t.majorUnit=Dt(i.min,i.max))}t.minorUnit=(i.majorUnit||t.majorUnit)/5;var a=E(t,i);a.min>=a.max&&(r&&!o?a.max=a.min+a.majorUnit:!r&&o&&(a.min=a.max-a.majorUnit));return a}(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(yt(r/t,3))+1},e.prototype.getTickPositions=function(t,e){var r=this.options,o=this.lineInfo(),i=o.axisDir,n=o.axisOrigin,a=o.lineBox,s=t*(o.lineSize/(r.max-r.min)),l=this.getDivisions(t),c=[],p=a[n],u=0;e&&(u=e/t);for(var h=0;h<l;h++)h%u!=0&&c.push(yt(p,3)),p+=s*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,a=i.axisDir,s=i.lineBox,l=i.lineSize,c=i.lineStart,p=a*(l/(o.max-o.min)),u=mt(t,e||0),h=mt(e,t||0);r&&(u=ft(u,o.min,o.max),h=ft(h,o.min,o.max));var f=Math.min(u,h)-o.min,d=Math.max(u,h)-o.min,v=new zt(s.x1,s.y1,s.x1,s.y1);return v[n+1]=hr(c+p*(a>0?f:d)),v[n+2]=hr(c+p*(a>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:yt(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,a=this.lineInfo().lineSize,s=yt(t/(a/(i-n)),10);return!r&&!o||r&&o||(s=-s),{min:n+s,max:i+s,offset:s}},e.prototype.labelsCount=function(){return this.getDivisions(this.options.majorUnit)},e.prototype.createAxisLabel=function(t,e,r){var o=this.options,i=yt(o.min+t*o.majorUnit,10),n=this.axisLabelText(i,e,r);return new he(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,a=(1-r)*i,s=yt(this.options.min+n,10),l=yt(this.options.max-a,10);return l-s<fr&&(l=s+fr),{min:s,max:l}},e.prototype.zoomRange=function(t,e){var r=this.totalMin,o=this.totalMax,i=this.scaleRange(t,e);return{min:ft(i.min,r,o),max:ft(i.max,r,o)}},e.prototype.isValidRange=function(t,e){return e-t>fr},e}(Ee);function vr(t,e,r){var o=yt(Math.abs(t%e),10);return 0===o||o>e*(1-r)}_t(dr,{type:"numeric",min:0,max:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},labels:{format:"#.####################"},zIndex:1});var yr=dr,gr=function(t){function e(e,r,o,i){var n=Ve(e),a=Ve(r),s=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=Be:t>=26784e5?e="months":t>=6048e5?e="weeks":t>=864e5&&(e=Re);return e}(De(i,o)):"hours"),a=Ie[n],s=r.weekStartDay||0,l=He(We(o)-1,n,s)||Ve(i),c=Ue(We(i)+1,n,s),p=(r.majorUnit?r.majorUnit:void 0)||ur(Dt(l.getTime(),c.getTime()),a)/a,u=qe(l,c,n),h=ur(u,p)-u,f=Math.floor(h/2),d=h-f;r.baseUnit||delete r.baseUnit;return r.baseUnit=r.baseUnit||n,r.min=r.min||Ne(l,-f,n,s),r.max=r.max||Ne(c,d,n,s),r.minorUnit=r.minorUnit||p/5,r.majorUnit=p,r}(n,a,l=E(l||{},{min:Ze(s,l.min),max:Ze(s,l.max),axisCrossingValue:Qe(s,l.axisCrossingValues||l.axisCrossingValue),weekStartDay:$e(l,s)})),t.call(this,l,i),this.intlService=s,this.seriesMin=n,this.seriesMax=a;var c=l.weekStartDay||0;this.totalMin=We(He(We(n)-1,l.baseUnit,c)),this.totalMax=We(Ue(We(a)+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(qe(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,a=this.getDivisions(t),s=i/Ge(e.max,e.min),l=e.weekStartDay||0,c=[n],p=1;p<a;p++){var u=n+Ge(Ne(e.min,p*t,e.baseUnit,l),e.min)*s*o;c.push(yt(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 yr.prototype.getSlot.call(this,Ze(this.intlService,t),Ze(this.intlService,e),r)},e.prototype.getValue=function(t){var e=yr.prototype.getValue.call(this,t);return null!==e?Ve(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,a=o.min;i>0&&(a=Ne(a,i,o.baseUnit,n));var s=e.dateFormats[o.baseUnit];e.format=e.format||s;var l=this.axisLabelText(a,e,r);return new he(a,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(),a=this.range(),s=n/Ge(a.max,a.min),l=yt(t/s,10);return!o&&!i||o&&i||(l=-l),{min:Le(e.min,l),max:Le(e.max,l),offset:l}},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(We(e.min),We(e.max),this.totalMin,this.totalMax,e.offset);if(r)return{min:Ve(r.min),max:Ve(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:Ve(i),max:Ve(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,a=(1-r)*i,s=Ve(We(this.options.min)+n),l=Ve(We(this.options.max)-a);return l-s<1e3&&(l=Ve(We(s)+1e3)),{min:s,max:l}},e.prototype.zoomRange=function(t,e){var r=this.scaleRange(t,e);return{min:Ve(ft(We(r.min),this.totalMin,this.totalMax)),max:Ve(ft(We(r.max),this.totalMin,this.totalMax))}},e}(Ee);_t(gr,{type:c,majorGridLines:{visible:!0,width:1,color:n},labels:{dateFormats:er}});var mr=gr,xr=function(t){function e(e,r,o,i){var n=E({majorUnit:10,min:e,max:r},o),a=n.majorUnit,s=function(t,e){var r,o=yt(_r(t,e),10)%1;r=t<=0?e:0!==o&&(o<.3||o>.9)?Math.pow(e,_r(t,e)+.2):Math.pow(e,Math.ceil(_r(t,e)));return r}(r,a),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(_r(t,o))));return i}(e,r,n),c=function(t,e,r,o){var i=r.min,n=r.max;at(r.axisCrossingValue)&&r.axisCrossingValue<=0&&br();at(o.max)?o.max<=0&&br():n=e;at(o.min)?o.min<=0&&br():i=t;return{min:i,max:n}}(l,s,n,o);n.max=c.max,n.min=c.min,n.minorUnit=o.minorUnit||yt(a-1,10),t.call(this,n,i),this.totalMin=at(o.min)?Math.min(l,o.min):l,this.totalMax=at(o.max)?Math.max(s,o.max):s,this.logMin=yt(_r(c.min,a),10),this.logMax=yt(_r(c.max,a),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,a=o.majorUnit,s=o.min,l=o.max,c=this.lineInfo(),p=c.axis,u=c.axisDir,h=c.lineBox,f=c.lineSize,d=c.lineStart,v=u*(f/(n-i)),y=mt(t,e||1),g=mt(e,t||1);if(y<=0||g<=0)return null;r&&(y=ft(y,s,l),g=ft(g,s,l)),y=_r(y,a),g=_r(g,a);var m=Math.min(y,g)-i,x=Math.max(y,g)-i,b=new zt(h.x1,h.y1,h.x1,h.y1);return b[p+1]=hr(d+v*(u>0?m:x)),b[p+2]=hr(d+v*(u>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(),a=n.axis,s=n.axisDir,l=n.lineStart,c=n.lineSize,p=(o-r)/c,u=s*(t[a]-l);if(u<0||u>c)return null;var h=r+u*p;return yt(Math.pow(i,h),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,a=e.majorUnit,s=this.lineBox(),l=n?s.height():s.width(),c=yt(t/(l/(o-r)),10);return!n&&!i||n&&i||(c=-c),{min:Math.pow(a,r+c),max:Math.pow(a,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,a=this.lineBox(),s={vertical:i};function l(e,r){s.tickX=n?a.x2:a.x2-r.size,s.tickY=n?a.y1-r.size:a.y1,s.position=e,t.append(Me(s,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(),a={lineStart:n[i?"x1":"y1"],lineEnd:n[i?"x2":"y2"],vertical:i},s=[],l=this.gridLinesVisual();function c(t,e){Z(t,s)||(a.position=t,l.append(je(a,e)),s.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,a=this.logMax,s=Math.ceil(n)+e.skip;s<=a;s+=e.step){t(yt(o+i*(s-n),10),e)}},e.prototype.traverseMinorTicksPositions=function(t,e){for(var r=this.options,o=r.min,i=r.max,n=r.minorUnit,a=r.majorUnit,s=this.lineInfo(),l=s.lineStart,c=s.step,p=this.logMin,u=this.logMax,h=Math.floor(p);h<u;h++)for(var f=this._minorIntervalOptions(h),d=e.skip;d<n;d+=e.step){var v=f.value+d*f.minorStep;if(v>i)break;if(v>=o)t(yt(l+c*(_r(v,a)-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 he(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=_r(this.options.min,r),i=_r(this.options.max,r),n=Math.abs(this.pointOffset(e)),a=i-o,s=this.scaleToDelta(t,a),l=Math.pow(r,o+n*s),c=Math.pow(r,i-(1-n)*s);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:ft(r.min,o,i),max:ft(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}(Ee);function br(){throw new Error("Non positive values cannot be used for a logarithmic axis")}function _r(t,e){return Math.log(t)/Math.log(e)}_t(xr,{type:"log",majorUnit:10,minorUnit:1,axisCrossingValue:1,vertical:!0,majorGridLines:{visible:!0,width:1,color:n},zIndex:1,_deferLabels:!0});var wr=xr,Cr={createGridLines:function(t){var e,r,o=this.options,i=Math.abs(this.box.center().y-t.lineBox().y1),n=[],a=!1;return o.majorGridLines.visible&&(e=this.majorGridLineAngles(t),a=!0,n=this.renderMajorGridLines(e,i,o.majorGridLines)),o.minorGridLines.visible&&(r=this.minorGridLineAngles(t,a),it(n,this.renderMinorGridLines(r,i,o.minorGridLines,t,a))),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(),a=new O.geometry.Circle([n.x,n.y],e),s=this.gridLinesVisual(),l=0;l<t.length;l++){var c=new O.drawing.Path(i);o&&(a.radius=o(t[l])),c.moveTo(a.center).lineTo(a.pointAt(t[l]+180)),s.append(c)}return s.children},gridLineAngles:function(t,e,r,o,i){var n=this,a=this.intervals(e,r,o,i),s=t.options,l=s.visible&&!1!==(s.line||{}).visible;return tt(a,(function(t){var e=n.intervalAngle(t);if(!l||90!==e)return e}))}},Or=function(t){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 zt,n=0;n<t.length;n++){t[n].reflow(i);var a=t[n].box;t[n].reflow(this.getSlot(r+n*o).adjacentBox(0,a.width(),a.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,a=360/n,s=r||1,l=[],c=0,p=e||0;p<n;p+=s)c=i.reverse?360-p*a:p*a,c=yt(c,3)%360,o&&Z(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 tt(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=vt(360/(2*this.options.categories.length)),n=Math.cos(o)*t,a=this.majorAngles(),s=function(e){return!r&&Z(e,a)?t:n};return s}},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),a=o.from-Math.floor(o.from);i.startAngle+=a*n.angle;var s=Math.ceil(o.to)-o.to;i.angle-=(s+a)*n.angle;var l=Gt.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(),a=n.length,s=360/a,l=t;r.reverse&&!o&&(l=(l+1)%a);var c=n[l=ft(Math.floor(l),0,a-1)];o&&(c-=s/2)<0&&(c+=360);var p=s*(ft(Math.ceil(e||l),l,a-1)-l+1);return new Ht(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}(tr);_t(Or,{startAngle:90,labels:{margin:V(10)},majorGridLines:{visible:!0},justified:!0}),E(Or.prototype,Cr);var Pr=Or,Sr=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 yr.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 zt,a=this.intervals(t.majorUnit,o,i),s=0;s<e.length;s++){e[s].reflow(n);var l=e[s].box;e[s].reflow(this.getSlot(a[s]).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),a=[],s=r||1,l=e||0;l<n;l+=s){var c=(360+i+l*t)%360;o&&Z(c,o)||a.push(c)}return a},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=ft(t,r.min,r.max),a=ft(e||n,n,r.max);if(r.reverse&&(n*=-1,a*=-1),(a=(540-a-i)%360)<(n=(540-n-i)%360)){var s=n;n=a,a=s}return new Ht(o.center(),0,o.height()/2,n,a-n)},e.prototype.slot=function(t,e){void 0===e&&(e=t);var r,o,i=this.options,n=360-i.startAngle,a=this.getSlot(t,e),s=Math.min(t,e),l=Math.max(t,e);return i.reverse?(r=s,o=l):(r=360-l,o=360-s),r=(r+n)%360,o=(o+n)%360,new O.geometry.Arc([a.center.x,a.center.y],{startAngle:r,endAngle:o,radiusX:a.radius,radiusY:a.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(st(Math.atan2(i,o))),a=e.startAngle;return e.reverse||(n*=-1,a*=-1),(n+a+360)%360},e.prototype.valueRange=function(){return{min:0,max:2*Math.PI}},e}(Ee);_t(Sr,{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(Sr.prototype,Cr,{createPlotBands:Pr.prototype.createPlotBands,majorAngles:Pr.prototype.majorAngles,range:yr.prototype.range,labelsCount:yr.prototype.labelsCount,createAxisLabel:yr.prototype.createAxisLabel});var kr=Sr;function Ar(t,e){return 180-Math.abs(Math.abs(t-e)-180)}var Mr={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(),a=o.box.center(),s=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}},u=this.getSlot(c.from,c.to,!0),h=new Ht(a,a.y-u.y2,a.y-u.y1,0,360),f=void 0;f=e===i?Gt.current.createRing(h,p):O.drawing.Path.fromPoints(this.plotBandPoints(h,n),p).close(),s.append(f)}this.appendVisual(s)},plotBandPoints:function(t,e){for(var r=[],o=[],i=[t.center.x,t.center.y],n=new O.geometry.Circle(i,t.innerRadius),a=new O.geometry.Circle(i,t.radius),s=0;s<e.length;s++)r.push(n.pointAt(e[s]+180)),o.push(a.pointAt(e[s]+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 a=this.radarMinorGridLinePositions();it(n,this.renderGridLines(i,a,o,e.minorGridLines))}return n},renderGridLines:function(t,e,r,o){var n={stroke:{width:o.width,color:o.color,dashType:o.dashType}},a=o.skip;void 0===a&&(a=0);var s=o.step;void 0===s&&(s=0);for(var l=this.gridLinesVisual(),c=a;c<e.length;c+=s){var p=t.y-e[c];if(p>0){var u=new O.geometry.Circle([t.x,t.y],p);if(o.type===i)l.append(new O.drawing.Circle(u,n));else{for(var h=new O.drawing.Path(n),f=0;f<r.length;f++)h.lineTo(u.pointAt(r[f]+180));h.close(),l.append(h)}}}return l.children},getValue:function(t){var e=this.lineBox(),r=this.plotArea.polarAxis,o=r.majorAngles(),n=r.box.center(),a=t.distanceTo(n),s=a;if(this.options.majorGridLines.type!==i&&o.length>1){var l=t.x-n.x,c=t.y-n.y,p=(st(Math.atan2(c,l))+540)%360;o.sort((function(t,e){return Ar(t,p)-Ar(e,p)}));var u=90-Ar(o[0],o[1])/2,h=180-Ar(p,o[0])-u;s=a*(Math.sin(vt(h))/Math.sin(vt(u)))}return this.axisType().prototype.getValue.call(this,new Lt(e.x1,e.y2-s))}},jr=function(t){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}(yr);E(jr.prototype,Mr);var Tr=jr,Er=function(t){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}(wr);E(Er.prototype,Mr);var Rr=Er;function Br(t){return t<=0?-1:1}var Ir=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,a,s=e[0],l=e[1],c=e[2];for(r.push(new O.geometry.Segment(s));s.equals(e[i-1]);)o=!0,e.pop(),i--;if(2===i){var p=this.tangent(s,l,m,x);return ht(r).controlOut(this.firstControlPoint(p,s,l,m,x)),r.push(new O.geometry.Segment(l,this.secondControlPoint(p,s,l,m,x))),r}if(o){s=e[i-1],l=e[0],c=e[1];var u=this.controlPoints(s,l,c);n=u[1],a=u[0]}else{var h=this.tangent(s,l,m,x);n=this.firstControlPoint(h,s,l,m,x)}for(var f=n,d=0;d<=i-3;d++)if(this.removeDuplicates(d,e),d+3<=(i=e.length)){s=e[d],l=e[d+1],c=e[d+2];var v=this.controlPoints(s,l,c);ht(r).controlOut(f),f=v[1];var y=v[0];r.push(new O.geometry.Segment(l,y))}if(o){s=e[i-2],l=e[i-1],c=e[0];var g=this.controlPoints(s,l,c);ht(r).controlOut(f),r.push(new O.geometry.Segment(l,g[0])),ht(r).controlOut(g[1]),r.push(new O.geometry.Segment(c,a))}else{var b=this.tangent(l,c,m,x);ht(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||yt(i,1)===yt(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,a=!1,s=!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),a=!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]?Br((r[n]-t[n])*(e[i]-t[i])):-Br((r[i]-t[i])*(e[n]-t[n]))),s=!0}var c=this.secondControlPoint(o,t,e,i,n);if(s){var p=i;i=n,n=p}var u=this.firstControlPoint(o,e,r,i,n);return a&&(this.restrictControlPoint(t,e,c,o),this.restrictControlPoint(e,r,u,o)),[c,u]},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],a=e[o]-t[o];return i=0===n?0:a/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],a=.333*(r[o]-n);return this.point(n+a,e[i]+a*t,o,i)},e.prototype.secondControlPoint=function(t,e,r,o,i){var n=e[o],a=r[o],s=.333*(a-n);return this.point(a-s,r[i]-s*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),Dr=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 Lr(t,e){for(var r=0;r<e.length;r++)if(e[r].options.name===t)return e[r].prepareUserOptions(),new Dr(e[r])}var Vr=function(t){this.visual=t.visual,this.chartsVisual=t.chartContainer.visual,this._pane=t};Vr.prototype.findAxisByName=function(t){return Lr(t,this._pane.axes)};var zr=Vr,Nr=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 Hr(t){for(var e=t.length,r=0,o=0;o<e;o++){k(t[o])&&r++}return r}var Ur={min:function(t){for(var e=t.length,r=h,o=0;o<e;o++){var i=t[o];k(i)&&(r=Math.min(r,i))}return r===h?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 Hr(t)&&(e=Ur.sum(t)),e},count:function(t){for(var e=t.length,r=0,o=0;o<e;o++){var i=t[o];null!==i&&at(i)&&r++}return r},avg:function(t){var e=Hr(t),r=t[0];return e>0&&(r=Ur.sum(t)/e),r},first:function(t){for(var e=t.length,r=0;r<e;r++){var o=t[r];if(null!==o&&at(o))return o}return t[0]}},Fr=Ur;function Gr(t,e){return null===e?e:W(t)(e)}var Wr=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,a=at(r)?r:n[e],s={valueFields:{value:a}},l=this.valueFields(t),c=this._otherFields[t.type];if(null===a)i=this._nullValue[t.type];else if(at(a)){if(Array.isArray(a)){var p=a.slice(l.length);i=this._bindFromArray(a,l),o=this._bindFromArray(p,c)}else if("object"==typeof a){var u=this.sourceFields(t,l),h=this.sourceFields(t,c);i=this._bindFromObject(a,l,u),o=this._bindFromObject(a,c,h)}}else i=this._undefinedValue[t.type];return at(i)&&(1===l.length?s.valueFields.value=i[l[0]]:s.valueFields=i),s.fields=o||{},s},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 a=e[n],s=r[n];null!==s&&(o[a]=Gr(s,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],a=n===y?"field":n+"Field";r.push(null!==t[a]?t[a]||n:null)}return r},e}(O.Class);Wr.current=new Wr;var Kr=Wr,Xr=/percent(?:\w*)\((\d+)\)/,Yr=new RegExp("^stddev(?:\\((\\d+(?:\\.\\d+)?)\\))?$"),qr=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=Yr.exec(t);if(i){this.valueGetter=this.createValueGetter(e,r);var n=this.getAverage(o),a=this.getStandardDeviation(o,n,!1),s=i[1]?parseFloat(i[1]):1,l={low:n.value-a*s,high:n.value+a*s};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=Kr.current,n=i.valueFields(t),a=at(o[0])?o[0]:{};if(b(a))r=W("["+(e?n.indexOf(e):0)+"]");else if(k(a))r=W();else if("object"==typeof a){r=W(i.sourceFields(t,n)[n.indexOf(e)])}return r},e.prototype.getErrorRange=function(t,e){var r,o,i;if(!at(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=Xr.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,a=0;a<o;a++){var s=this.valueGetter(t[a]);k(s)&&(n+=Math.pow(s-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),Zr=O.support.browser||{},Qr=Zr.msie?.001:0,$r="zero",Jr="bar",to="column",eo="line",ro="pie",oo="verticalLine",io=[Jr,to,"ohlc","candlestick","boxPlot","verticalBoxPlot","bullet","rangeColumn","rangeBar","waterfall","horizontalWaterfall"],no="DOMMouseScroll mousewheel",ao=function(t){function e(e,r,o,i,n,a){t.call(this,a),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(),a=this.getCapsWidth(t,o),s=o?n.x:n.y,l=s-a,c=s+a;o?(e=[new Lt(n.x,i.y1),new Lt(n.x,i.y2)],r&&e.push(new Lt(l,i.y1),new Lt(c,i.y1),new Lt(l,i.y2),new Lt(c,i.y2)),this.box=new zt(l,i.y1,c,i.y2)):(e=[new Lt(i.x1,n.y),new Lt(i.x2,n.y)],r&&e.push(new Lt(i.x1,l),new Lt(i.x1,c),new Lt(i.x2,l),new Lt(i.x2,c)),this.box=new zt(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}(Kt);_t(ao,{animation:{type:"fadeIn",delay:600},endCaps:!0,line:{width:2},zIndex:1});var so=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.getAxis=function(){return this.chart.seriesValueAxis(this.series)},e}(so);function co(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,a=!1;if(r.excluded=r.excluded||[],n>5)return null;for(var s in t)if(!Z(s,r.excluded)&&t.hasOwnProperty(s)){var l=t[s];j(l)?(a=!0,o||(t[s]=mt(l(e),i[s]))):R(l)&&(o||(r.defaults=i[s]),r.depth++,a=co(l,e,r,o)||a,r.depth--)}return a}function po(t){for(var e=t.length,r=0,o=0;o<e;o++)r=Math.max(r,t[o].data.length);return r}var uo=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 a=r[n];if(a){var s=t.series.stack,l=a.series.stack;if(s&&l&&s.group!==l.group)continue;k(a.value)&&(i+=Math.abs(a.value),o.push(Math.abs(a.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,a=!1,s=0;s<r.length;s++){var l=r[s];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 u=this.plotValue(l);(u>=0&&i||u<0&&!i)&&(n+=u,o+=u,a=!0,this.options.isStacked100&&(o=Math.min(o,1)))}return a&&(n-=e),[n,o]}var h=t.series,f=this.seriesValueAxis(h),d=this.categoryAxisCrossingValue(f);return[d,M(t.value)?t.value:d]},e.prototype.stackLimits=function(t,e){for(var r=h,o=f,i=0;i<this.categoryPoints.length;i++){var n=this.categoryPoints[i];if(n)for(var a=0;a<n.length;a++){var s=n[a];if(s&&(s.series.stack===e||s.series.axis===t)){var l=this.plotRange(s,0)[1];at(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],a=n.axis,s=a+n.stack,l=o[s];if(!l){l=this.stackLimits(a,n.stack);var c=this.errorTotals;c&&(c.negative.length&&(l.min=Math.min(l.min,wt(c.negative).min)),c.positive.length&&(l.max=Math.max(l.max,wt(c.positive).max))),l.min!==h||l.max!==f?o[s]=l:l=null}l&&(this.valueAxisRanges[a]=l)}},e.prototype.addErrorBar=function(t,e,r){var o,i=t.value,n=t.series,a=t.seriesIx,s=t.options.errorBars,l=e.fields.errorLow,c=e.fields.errorHigh;k(l)&&k(c)?o={low:l,high:c}:s&&at(s.value)&&(this.seriesErrorRanges=this.seriesErrorRanges||[],this.seriesErrorRanges[a]=this.seriesErrorRanges[a]||new qr(s.value,n,y),o=this.seriesErrorRanges[a].getErrorRange(i,s.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,a=t.high;if(this.options.isStacked){var s=this.stackedErrorRange(t,e);n=s.low,a=s.high}else{var l={categoryIx:e,series:i};this.updateRange({value:n},l),this.updateRange({value:a},l)}var c=new lo(n,a,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 a=this.seriesPoints[i];a||(this.seriesPoints[i]=a=[]);var s=this.createPoint(t,e);s&&(Object.assign(s,e),s.owner=this,s.noteText=t.fields.noteText,at(s.dataItem)||(s.dataItem=o.data[r]),this.addErrorBar(s,t,r)),this.points.push(s),a.push(s),n.push(s),this.updateRange(t.valueFields,e)},e.prototype.evalPointOptions=function(t,e,r,o,i,n){var a={defaults:i._defaults,excluded:["data","aggregate","_events","tooltip","content","template","visual","toggle","_outOfRangeMinPoint","_outOfRangeMaxPoint"]},s=this._evalSeries[n];at(s)||(this._evalSeries[n]=s=co(t,{},a,!0));var l=t;return s&&co(l=E({},l),{value:e,category:r,index:o,series:i,dataItem:i.data[o]},a),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:h,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,a){var s=a.categoryIx,l=a.series,c=e.seriesValueAxis(l),p=o[n++],u=r[s];if(u||(r[s]=u=e.categorySlot(i,s,c)),p){var h=e.plotRange(p,c.startValue()),f=e.valueSlot(c,h);if(f){var d=e.pointSlot(u,f);p.aboveAxis=e.aboveAxis(p,c),p.stackValue=h[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(ht(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 zt(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=po(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 a=0;a<o;a++){var s=e[a],l=this.categoryAxis.categoryAt(n);t(this._bindPoint(s,a,n),{category:l,categoryIx:n,categoriesCount:r,series:s,seriesIx:a})}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]=Kr.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}(Kt);_t(uo,{series:[],invertAxes:!1,isStacked:!1,clip:!0,limitPoints:!0});var ho=uo,fo={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:pt(t),originalEvent:t,point:this}}},vo={createNote:function(){var t=this.options.notes,e=this.noteText||t.label.text;!1!==t.visible&&at(e)&&null!==e&&(this.note=new de({value:this.value,text:e,dataItem:this.dataItem,category:this.category,series:this.series},this.options.notes,this.owner.chartService),this.append(this.note))}},yo=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=mt(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=U(r),i=this.pointData(),n=this.value;o?n=o(i):r.format&&(n=this.formatValue(r.format)),this.label=new le(n,E({align:s,vAlign:s,margin:{left:5,right:5},zIndex:mt(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 at(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 Zt({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:mt(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 a=this.markerBox();if(!e.markers.visible||!e.markers.size){var s=a.center();a=new zt(s.x,s.y,s.x,s.y)}this.note.reflow(a)}},e.prototype.reflowLabel=function(t){var e=this.options,r=this.label,o=e.labels.position;r&&(o="below"===(o="above"===o?v:o)?a: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 Zt({type:r.type,width:o,height:o,rotation:r.rotation,background:t.color||e,border:{color:t.border.color,width:t.border.width,opacity:mt(t.border.opacity,1)},opacity:mt(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=a):(r=t.y2,o=v),{point:new Lt(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}(Kt);yo.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(yo.prototype,fo),E(yo.prototype,vo);var go=yo,mo=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&&!at(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}(Kt);_t(mo,{closed:!1});var xo=mo;function bo(t,e,r,o,i){var n=t.box,a=new O.geometry.Point;return a[e]=n[e+r],a[o]=n[o+i],a}var _o={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,a=o?x:m,s=i?2:1,l=s,c=bo(t[0],n,s,a,l),p=[c],u=1;u<t.length;u++){var h=bo(t[u],n,s,a,l);if(c[n]!==h[n]){var f=new O.geometry.Point;f[n]=c[n],f[a]=h[a],p.push(f,h)}c=h}return r?c!==ht(p)&&p.push(c):p.push(bo(ht(t),n,s,a,i?1:2)),p}},wo=function(t){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}(xo);E(wo.prototype,_o);var Co=wo,Oo=function(t){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 Ir(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}(xo),Po={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 a=o[n],s=this.sortPoints(r[n]),l=s.length,c=[],p=0;p<l;p++){var u=s[p];u?c.push(u):"interpolate"!==this.seriesMissingValues(a)&&(c.length>1&&(t=this.createSegment(c,a,n,t),this._addSegment(t)),c=[])}c.length>1&&(t=this.createSegment(c,a,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?$r:e||"interpolate"},getNearestPoint:function(t,e,r){for(var o,i=new Lt(t,e),n=this.seriesPoints[r],a=h,s=0;s<n.length;s++){var l=n[s];if(l&&at(l.value)&&null!==l.value&&!1!==l.visible){var c=l.box.center().distanceTo(i);c<a&&(o=l,a=c)}}return o}},So=function(t){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(Q(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);_t(So,{duration:600}),O.drawing.AnimationFactory.current.register("clip",So);var ko=So;function Ao(t){for(var e=0;e<t.length;e++)if(at(t[e].zIndex))return!0}var Mo={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 ko(r,{box:e}),Ao(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&&at(o.visual.options.zIndex)&&o.visual.clip(t)}}},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.render=function(){t.prototype.render.call(this),this.updateStackRange(),this.renderSegments()},e.prototype.pointType=function(){return go},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,a=this.seriesMissingValues(i),s=t.valueFields.value;if(!at(s)||null===s){if(a!==$r)return null;s=0}var l=this.pointOptions(i,n);l=this.evalPointOptions(l,s,o,r,i,n);var c=t.fields.color||i.color;j(i.color)&&(c=l.color);var p=new go(s,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?Co:"smooth"===o?Oo:xo)(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(jo.prototype,Po,Mo);var To=jo,Eo=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();it(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),a=this.strokeSegments(),s=a[0].anchor(),l=ht(a).anchor(),c=r?n.x1:n.y1;r?t.lineTo(c,l.y).lineTo(c,s.y):t.lineTo(l.x,c).lineTo(s.x,c)},e}(xo),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.createStrokeSegments=function(){return this.segmentsFromPoints(this.calculateStepPoints(this.linePoints))},e.prototype.createStackSegments=function(t){return this.segmentsFromPoints(this.calculateStepPoints(t)).reverse()},e}(Eo);E(Ro.prototype,_o);var Bo=Ro,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.createStrokeSegments=function(){var t=new Ir(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}(Eo),Do=function(t){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,a=this.options.isStacked,s=(e.line||{}).style;a&&r>0&&o&&("gap"!==this.seriesMissingValues(e)?(n=o.linePoints,i=o):n=this._gapStackPoints(t,r,s));return new("step"===s?Bo:"smooth"===s?Io:Eo)(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 a=i+n,s=this.seriesOptions[0]._outOfRangeMinPoint?1:0,l=[];this._stackPoints=this._stackPoints||[];for(var c=i;c<a;c++){var p=c+s,u=e,h=void 0;do{h=o[--u][p]}while(u>0&&!h);if(h)"step"!==r&&c>i&&!o[u][p-1]&&l.push(this._previousSegmentPoint(c,p,p-1,u)),l.push(h),"step"!==r&&c+1<a&&!o[u][p+1]&&l.push(this._previousSegmentPoint(c,p,p+1,u));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,a=o;a>0&&!i;)i=n[--a][r];return i?i=n[a][e]:(i=this._createGapStackPoint(t),this._stackPoints.push(i)),i},e.prototype._createGapStackPoint=function(t){var e=this.pointOptions({},0),r=new go(0,e);return r.categoryIx=t,r.series={},r},e.prototype.seriesMissingValues=function(t){return t.missingValues||$r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(To),Lo=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:h,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),Vo=function(t){function e(e,r,o){t.call(this,r),this.textBox=new le(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?s:u,n.vAlign=r?v:s,"insideEnd"===e.position?r?(n.vAlign=v,!o&&l.height()<t.height()&&(n.vAlign=a)):n.align=o?d:u:e.position===s?(n.vAlign=s,n.align=s):"insideBase"===e.position?r?n.vAlign=o?a:v:n.align=o?u:d:"outsideEnd"===e.position&&(r?p=o?new zt(t.x1,t.y1-l.height(),t.x2,t.y1):new zt(t.x1,t.y2,t.x2,t.y2+l.height()):(n.align=s,p=o?new zt(t.x2,t.y1,t.x2+l.width(),t.y2):new zt(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 a=i.paddingBox.clone();a[r]=Math.max(n[r],t[r]),a[o]=Math.min(n[o],t[o]),this.reflow(a)}},e}(Kt);_t(Vo,{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 zo=Vo;function No(t){var e=t.overlay;return e&&e.gradient&&"none"!==e.gradient}var Ho=function(t){function e(e,r){t.call(this),this.options=r,this.color=r.color||g,this.aboveAxis=mt(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=U(e);r=i?i(o):this.formatValue(e.format),this.label=new zo(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=at(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}}),a=this.box.width(),s=this.box.height();if((e.vertical?a:s)>6&&(P(n),(a<1||s<1)&&(n.options.stroke.lineJoin="round")),t.append(n),No(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 at(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,s=u,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=a);else{var c=Math.max(o.x1,n.x1),p=Math.min(o.x2,n.x2);r.isStacked?(l=a,i?(s=d,t=p):t=c,e=Math.max(o.y1,n.y1)-5):(i?t=p+5:(t=c-5,s=d),e=Math.max(o.y1,n.y1))}return{point:new Lt(t,e),align:{horizontal:s,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}(Kt);E(Ho.prototype,fo),E(Ho.prototype,vo),Ho.prototype.defaults={border:{width:1},vertical:!0,overlay:{gradient:"glass"},labels:{visible:!1,format:"{0}"},opacity:1,notes:{label:{}}};var Uo=Ho;function Fo(t,e){t.forEach(e)}function Go(t,e){for(var r=t.length,o=r-1;o>=0;o--)e(t[o],o-r-1)}var Wo=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Go:Fo}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,a=n.length,s=r?x:m,l=a+o+i*(a-1),c=(r?t.height():t.width())/l,p=t[s+1]+c*(o/2);this.forEach(n,(function(e,r){var o=(e.box||t).clone();o[s+1]=p,o[s+2]=p+c,e.reflow(o),r<a-1&&(p+=c*i),p+=c}))},e}(Kt);_t(Wo,{vertical:!1,gap:0,spacing:0});var Ko=Wo,Xo=function(t){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 zt,n=0;n<o;n++){var a=r[n];if(!1!==a.visible){var s=a.box.clone();s.snapTo(t,e),0===n&&(i=this.box=s.clone()),a.reflow(s),i.wrap(s)}}},e}(Kt);_t(Xo,{vertical:!0});var Yo=Xo,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.render=function(){t.prototype.render.call(this),this.updateStackRange()},e.prototype.pointType=function(){return Uo},e.prototype.clusterType=function(){return Ko},e.prototype.stackType=function(){return Yo},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,a=this.options,s=this.children,l=a.isStacked,c=this.pointValue(t),p=this.pointOptions(i,n),u=p.labels;l&&"outsideEnd"===u.position&&(u.position="insideEnd"),p.isStacked=l;var h=t.fields.color||i.color;c<0&&p.negativeColor&&(h=p.negativeColor),p=this.evalPointOptions(p,c,o,r,i,n),j(i.color)&&(h=p.color);var f=new(this.pointType())(c,p);f.color=h;var d=s[r];d||(d=new(this.clusterType())({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.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 a=0;a<n.length;a++)if(n[a]._stackGroup===i){r=n[a];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 a=r.getSlot(n,n,!0),s=o.invertAxes?m:x;i[s+1]=i[s+2]=a[s+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),Ao(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&&at(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);_t(qo,{animation:{type:Jr}});var Zo=qo,Qo=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 a=n.center().x,s=[];s.push([[a,n.y1],[a,i.y1]]),s.push([[a,i.y2],[a,n.y2]]),this.lines=s,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:mt(e.border.opacity,e.opacity)}),P(r),t.append(r),No(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:mt(o.opacity,e.opacity),width:o.width,dashType:o.dashType,lineCap:"butt"}},n=0;n<r.length;n++){var a=O.drawing.Path.fromPoints(r[n],i);P(a),t.append(a)}},e.prototype.getBorderColor=function(){var t=this.options.border,e=t.color;return at(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 Lt(t.x2+5,Math.max(t.y1,e.y1)+5),align:{horizontal:u,vertical:v}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e.prototype.overlapsBox=function(t){return this.box.overlaps(t)},e}(Kt);_t(Qo,{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(Qo.prototype,fo),E(Qo.prototype,vo);var $o=Qo;function Jo(t){return Hr(t)===t.length}var ti=function(t){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,a=e.seriesIx,s=this.children,l=this.options,c=t.valueFields,p=Jo(this.splitValue(c)),u=n.data[o],h=this.categoryPoints[o];h||(this.categoryPoints[o]=h=[]),p&&(r=this.createPoint(t,e));var f=s[o];f||(f=new Ko({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=a,r.owner=this,r.dataItem=u,r.noteText=t.fields.noteText),this.points.push(r),h.push(r)},e.prototype.pointType=function(){return $o},e.prototype.createPoint=function(t,e){var r=e.categoryIx,o=e.category,i=e.series,n=e.seriesIx,a=this.pointType(),s=t.valueFields,l=E({},i),c=t.fields.color||i.color;l=this.evalPointOptions(l,s,o,r,i,n),"candlestick"===i.type&&s.open>s.close&&(c=t.fields.downColor||i.downColor||i.color),j(i.color)&&(c=l.color),l.vertical=!this.options.invertAxes;var p=new a(s,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:h,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(ti.prototype,Mo);var ei=ti,ri=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 a=n.getSlot(i.median);if(i.mean){var s=n.getSlot(i.mean);this.meanPoints=this.calcMeanPoints(t,s)}this.whiskerPoints=this.calcWhiskerPoints(r,e),this.medianPoints=this.calcMedianPoints(t,a),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||{},a=0;a<r.length;a++){var s=r[a],l=E({},(n=s<e.q3+o&&s>e.q1-o?t.outliers:t.extremes).border);at(l.color)||(at(this.color)?l.color=this.color:l.color=new O.Color(n.background).brightness(.8).toHex());var c=new Zt({type:n.type,width:n.size,height:n.size,rotation:n.rotation,background:n.background,border:l,opacity:n.opacity});c.value=s,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}($o);_t(ri,{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(ri.prototype,fo);var oi=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.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}(oi),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.addValue=function(t,e){var r,o=e.categoryIx,i=e.category,n=e.series,a=e.seriesIx,s=this.children,l=this.options,c=t.valueFields,p=Jo(this.splitValue(c)),u=n.data[o],h=this.categoryPoints[o];h||(this.categoryPoints[o]=h=[]),p&&(r=this.createPoint(t,e));var f=s[o];f||(f=new Ko({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=a,r.owner=this,r.dataItem=u),this.points.push(r),h.push(r)},e.prototype.pointType=function(){return this.options.invertAxes?ii:oi},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));at(t.mean)&&(i=i.concat(t.mean)),o=this.valueAxisRanges[r]=o||{min:h,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];at(i)&&null!==i&&r.push(i)}return r},e.prototype.supportsPointInactiveOpacity=function(){return!1},e}(ei),ai=function(t){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 at(t)&&null!==t}var li=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",a=e+"ErrorLow",s=e+"ErrorHigh",l=r.seriesIx,c=r.series,p=t.options.errorBars,u=r[a],h=r[s];k(i)&&(k(u)&&k(h)&&(o={low:u,high:h}),p&&at(p[n])&&(this.seriesErrorRanges=this.seriesErrorRanges||{x:[],y:[]},this.seriesErrorRanges[e][l]=this.seriesErrorRanges[e][l]||new qr(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,a=e.options.errorBars,s=r===x,l={};e[r+"Low"]=o,e[r+"High"]=i,e.errorBars=e.errorBars||[];var c=new ai(o,i,s,this,n,a);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,a=this.options.series[n],s=this.seriesMissingValues(a),l=this.seriesPoints[n],c=t;si(o)&&si(i)||(c=this.createMissingValue(c,s)),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,a=t.y,s=this.xAxisRanges[o],l=this.yAxisRanges[i];si(n)&&(s=this.xAxisRanges[o]=s||{min:h,max:f},A(n)&&(n=Ze(r,n)),s.min=Math.min(s.min,n),s.max=Math.max(s.max,n)),si(a)&&(l=this.yAxisRanges[i]=l||{min:h,max:f},A(a)&&(a=Ze(r,a)),l.min=Math.min(l.min,a),l.max=Math.max(l.max,a))},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"]},a=this._evalSeries[i];at(a)||(this._evalSeries[i]=a=co(t,{},n,!0));var s=t;return a&&co(s=E({},t),{value:e,series:o,dataItem:r.dataItem},n),s},e.prototype.pointType=function(){return go},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 go(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 a=r[i++],s=e.seriesAxes(n.series),l=s.x.getSlot(t.x,t.x,o),c=s.y.getSlot(t.y,t.y,o);if(a)if(l&&c){var p=e.pointSlot(l,c);a.reflow(p)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new zt(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 a=this._bindPoint(i,o,n),s=a.valueFields,l=a.fields;t(s,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}(Kt);_t(li,{series:[],tooltip:{format:"{0}, {1}"},labels:{format:"{0}, {1}"},clip:!0}),E(li.prototype,Mo,{_bindPoint:ho.prototype._bindPoint});var ci=li,pi=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,a=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}]})}),s=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(a,s),n},e}(go);pi.prototype.defaults=E({},pi.prototype.defaults,{labels:{position:s},highlight:{opacity:1,border:{color:"#fff",width:2,opacity:1}}}),pi.prototype.defaults.highlight.zIndex=void 0;var ui=pi,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 ui},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"},a=e.color||r.color;t.size<0&&r.negativeValues.visible&&(a=mt(r.negativeValues.color,a));var s=E({labels:{animation:{delay:i,duration:600-i}}},this.pointOptions(r,e.seriesIx),{markers:{type:l,border:r.border,opacity:r.opacity,animation:n}});s=this.evalPointOptions(s,t,e),j(r.color)&&(a=s.color),s.markers.background=a;var c=new ui(t,s);return c.color=a,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],a=(i.minSize||Math.max(.02*r,10))/2,s=(i.maxSize||.2*r)/2,l=Math.PI*a*a,c=(Math.PI*s*s-l)/this._maxSize,p=0;p<n.length;p++){var u=n[p];if(u){var h=Math.abs(u.value.size)*c,f=Math.sqrt((l+h)/Math.PI),d=mt(u.options.zIndex,0)+(1-f/s);E(u.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}(ci);_t(hi,{tooltip:{format:"{3}"},labels:{format:"{3}"}});var fi=hi,di=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Zt);E(di.prototype,fo);var vi=di,yi=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,at(this.value.target)&&(this.target=new vi({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),a=o.categorySlot(o.categoryAxis,e.categoryIx,n),s=n.getSlot(this.value.target),l=i?s:a,c=i?a:s;if(r){var p=new zt(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:mt(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}(Kt);yi.prototype.tooltipAnchor=Uo.prototype.tooltipAnchor,_t(yi,{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(yi.prototype,fo),E(yi.prototype,vo);var gi=yi,mi=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,a=this.options,s=this.children,l=t.valueFields,c=E({vertical:!a.invertAxes,overlay:i.overlay,categoryIx:r,invertAxes:a.invertAxes},i),p=t.fields.color||i.color;c=this.evalPointOptions(c,l,o,r,i,n),j(i.color)&&(p=c.color);var u=new gi(l,c);u.color=p;var h=s[r];return h||(h=new Ko({vertical:a.invertAxes,gap:a.gap,spacing:a.spacing,rtl:!a.invertAxes&&(this.chartService||{}).rtl}),this.append(h)),h.append(u),u},e.prototype.updateRange=function(t,e){var r=t.current,o=t.target,i=e.series.axis,n=this.valueAxisRanges[i];at(r)&&!isNaN(r)&&at(o&&!isNaN(o))&&((n=this.valueAxisRanges[i]=n||{min:h,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);mi.prototype._setAnimationOptions=Zo.prototype._setAnimationOptions,_t(mi,{animation:{type:Jr}});var xi=mi,bi=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=mt(r,i),o=mt(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);at(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);_t(bi,{border:{width:1},opacity:1});var _i=bi,wi=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=s,n===a?(e=v,r=p.bottomLeft().translate(0,l)):(e=a,r=p.topLeft().translate(0,-l))):(e=s,n===u?(t=d,r=p.topLeft().translate(-l,0)):(t=u,r=p.topRight().translate(l,0))),{point:r,align:{horizontal:t,vertical:e}}},e}(_i);_t(wi,{padding:10});var Ci=wi,Oi=function(t){function e(e,r,o){t.call(this,o),this.axis=r,this.stickyMode=r instanceof tr;var i=this.options.tooltip;i.visible&&(this.tooltip=new Ci(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,a=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 s=e.getSlot(e.pointCategoryIndex(r));a[n]=t[n]=s.center()[n]}else a[n]=t[n]=r[n];this.box=i,this.line.moveTo(a).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(),a=i?m:x,s=0;s<o;s++){var l=r[s];l.options.vertical!==i&&(t?t.wrap(l.lineBox()):t=l.lineBox().clone())}return n[a+1]=t[a+1],n[a+2]=t[a+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}(Kt);_t(Oi,{color:n,width:2,zIndex:-1,tooltip:{visible:!1}});var Pi=Oi,Si=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 a=o[n];if(a&&!1!==a.visible&&a.overlapsBox&&a.overlapsBox(e))if(a.unclipElements)a.unclipElements();else{var s=a.label,l=a.note;s&&s.options.visible&&(s.alignToClipBox&&s.alignToClipBox(e),s.options.noclip=!0),l&&l.options.visible&&(l.options.noclip=!0)}}},e.prototype.destroy=function(){t.prototype.destroy.call(this),delete this.parent},e}(Kt);Si.prototype.isStackRoot=!0;var ki=Si,Ai=function(t){function e(e){t.call(this,e),this.id="pane"+Mi++,this.createTitle(),this.content=new Kt,this.chartContainer=new ki({},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=pe.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;ht(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],a=n.options.vertical,s=a?r:o,l=0;l<e.length;l++)if(0===s.length){var c=e[l];a!==c.options.vertical&&it(s,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 zt,o=0;o<e;o++){var i=t[o],n=i.options.vertical?x:m,a=i.lineBox();r[n+1]=a[n+1],r[n+2]=a[n+2]}if(0===r.x2)for(var s=this.parent.axes,l=s.length,c=0;c<l;c++){var p=s[c];if(!p.options.vertical){var u=p.lineBox();r.x1=u.x1,r.x2=u.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 zr(this),index:this.paneIndex,name:this.options.name})},e}(Yt),Mi=1;Ai.prototype.isStackRoot=!0,_t(Ai,{zIndex:-1,shrinkToFit:!0,title:{align:u},visible:!0});var ji=Ai;function Ti(t,e){null!==e&&t.push(e)}function Ei(t,e,r){var o=e.visible;if(at(o))return o;var i=t.pointVisibility;return i?i[r]:void 0}function Ri(t){for(var e=t.data,r=[],o=0,i=0,n=0;n<e.length;n++){var a=Kr.current.bindPoint(t,n),s=a.valueFields.value;A(s)&&(s=parseFloat(s)),k(s)?(a.visible=!1!==Ei(t,a.fields,n),a.value=Math.abs(s),r.push(a),a.visible&&(o+=a.value),0!==s&&i++):r.push(null)}return{total:o,points:r,count:i}}function Bi(t,e){return t&&e?t.toLowerCase()===e.toLowerCase():t===e}function Ii(t,e){for(var r=[],o=[].concat(e),i=0;i<t.length;i++){var n=t[i];Z(n.type,o)&&r.push(n)}return r}function Di(t,e,r){if(null===e)return e;var o="_date_"+t,i=e[o];return i||(i=Ze(r,W(t)(e)),e[o]=i),i}function Li(t,e){var r=t.type,o=e instanceof Date;return!r&&o||Bi(r,c)}function Vi(t){return 1===t.length?t[0]:t}var zi=/area/i;function Ni(t,e){var r=Kr.current.bindPoint(t,null,e).valueFields;for(var o in r)if(M(r[o]))return!0}function Hi(t){var e,r,o=t.start,i=t.dir,n=t.min,a=t.max,s=t.getter,l=t.hasItem,c=t.series,p=o;do{l(p+=i)&&(e=Ni(c,(r=s(p)).item))}while(n<=p&&p<=a&&!e);if(e)return r}function Ui(t,e,r,o,i){var n=e.min,a=e.max,s=n>0&&n<r,l=a+1<r;if(s||l){var c,p,u;if("interpolate"!==function(t){return t.missingValues?t.missingValues:zi.test(t.type)||t.stack?$r:"interpolate"}(t))s&&(c=o(n-1)),l&&(p=o(a+1));else s&&(c=Ni(t,(u=o(n-1)).item)?u:Hi({start:n,dir:-1,min:0,max:r-1,getter:o,hasItem:i,series:t})),l&&(p=Ni(t,(u=o(a+1)).item)?u:Hi({start:a,dir:1,min:0,max:r-1,getter:o,hasItem:i,series:t}));c&&(t._outOfRangeMinPoint=c),p&&(t._outOfRangeMaxPoint=p)}}var Fi=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),a=0;a<o;a++){var s=E({},n,r[a]);A(s.title)&&(s.title=E({text:s.title},n.title));var l=new ji(s);l.paneIndex=a,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 a=new Pi(this.chartService,i,n);this.crosshairs.push(a),r.content.append(a)}}},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||{},a=[],s=0;s<e;s++){var l=t[s],c=!1!==l.visible;if(!1!==l.visibleInLegend){var p=l.name,u=c?U(o):U(n)||U(o);u&&(p=u({text:si(p)?p:"",series:l}));var h=l._defaults,f=l.color;j(f)&&h&&(f=h.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&&a.push({text:p,labels:d,markerColor:v,series:l,active:c})}}it(r.items,a)},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 a=i[n];a.options.vertical?r.push(a):e.push(a)}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,a=0;a<i;a++)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,a=e.getSlot(o,o,!0),s=e.options.reverse?2:1,l=t.box.translate(a[m+s]-i[m+n],a[x+s]-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),s={},l={},c={},p={},h=0;h<e.length;h++){var f=e[h],y=f.pane,g=y.id,m=!1!==f.options.visible,x=Ki(t,y)||r,b=i;x!==r&&(b=this.axisCrossingValues(x,e)),this.alignAxisTo(f,x,n[h],b[h]),f.options._overlap||(yt(f.lineBox().x1)===yt(x.lineBox().x1)&&(s[g]&&f.reflow(f.box.alignTo(s[g].box,u).translate(-f.options.margin,0)),m&&(s[g]=f)),yt(f.lineBox().x2)===yt(x.lineBox().x2)&&(f._mirrored||(f.options.labels.mirror=!f.options.labels.mirror,f._mirrored=!0),this.alignAxisTo(f,x,n[h],b[h]),l[g]&&f.reflow(f.box.alignTo(l[g].box,d).translate(f.options.margin,0)),m&&(l[g]=f)),0!==h&&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=Ki(e,C)||o,k=n;S!==o&&(k=this.axisCrossingValues(S,t)),this.alignAxisTo(w,S,i[_],k[_]),w.options._overlap||(yt(w.lineBox().y1)===yt(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)),yt(w.lineBox().y2,3)===yt(S.lineBox().y2,3)&&(p[O]&&w.reflow(w.box.alignTo(p[O].box,a).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=Wi(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 a=0;a<e.length;a++){var s=e[a];s.options.vertical||s.reflow(s.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,Wi(i).height()-o.contentBox.height());if(0!==n){for(var a=0;a<i.length;a++){var s=i[a];s.options.vertical&&s.reflow(s.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,a=i.contentBox;if(n.length>0){var s=Wi(n),l=Math.max(a.y1-s.y1,a.y2-s.y2);r=Math.max(r,a.x1-s.x1);for(var c=0;c<n.length;c++){var p=n[c];p.reflow(p.box.translate(0,l))}}}for(var u=0;u<e.length;u++){var h=e[u];h.reflow(h.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=Xi(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&&!Z(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,a=0;a<r;a++){var s=e[a],l=s.options.height;if(s.options.width=t.width(),s.options.height){if(l.indexOf&&l.indexOf("%")){var c=parseInt(l,10)/100;s.options.height=c*t.height()}s.reflow(t.clone()),o-=s.options.height}else i++}for(var p=0;p<r;p++){var u=e[p];u.options.height||(u.options.height=o/i)}for(var h=0;h<r;h++){var f=e[h],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 a=e[n];if(i.options.vertical!==a.options.vertical){var s=i.lineBox().clone().wrap(a.lineBox());t=t?t.wrap(s):s}}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&&at(e)||(i=g,o=0);var a=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(a),this.appendVisual(a)},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 a=i[n];a&&at(a.value)&&null!==a.value&&r.push(a)}}}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 a=i[n];a&&!1!==a.visible&&t(a)&&r.push(a)}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,a=Ki(e,n)||e[0],s=o+r,l=this.createLabelAxis(i,s,a);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,a=o.visible;if(n||!1===a)return null;var s=this.groupAxes(this.panes),l=r.options.vertical?s.x:s.y,c=this.axisCrossingValues(r,l),p="end"===i,u=r.range(),h=p?u.max:u.min;if(ft(c[e],u.min,u.max)-h==0)return null;c.splice(e+1,0,h),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}(Kt);function Gi(t){return!t.pane.axes.some((function(e){return e.options.vertical===t.options.vertical&&e!==t&&!1!==e.options.visible}))}function Wi(t){for(var e,r=t.length,o=0;o<r;o++){var i=t[o],n=!1!==i.options.visible;if(n||Gi(i)){var a=n?i.contentBox():i.lineBox();e?e.wrap(a):e=a.clone()}}return e||new zt}function Ki(t,e){for(var r=0;r<t.length;r++){var o=t[r];if(o&&o.pane===e)return o}}var Xi=function(t){return t.reduce((function(t,e){return t.concat(e.axes)}),[])};_t(Fi,{series:[],plotArea:{margin:{}},background:"",border:{color:n,width:0},paneDefaults:{title:{}},legend:{inactiveItems:{labels:{color:"#919191"},markers:{color:"#919191"}}}});var Yi=Fi,qi={hover:function(t,e){this._dispatchEvent(t,e,"plotAreaHover")},click:function(t,e){this._dispatchEvent(t,e,"plotAreaClick")}};function Zi(t,e,r){var o=e,i=t;if(t.indexOf(".")>-1){for(var n=t.split(".");n.length>1;)i=n.shift(),at(o[i])||(o[i]={}),o=o[i];i=n.shift()}o[i]=r}var Qi=function(t){function e(e,r,o){t.call(this);var i=r.canonicalFields(e),n=r.valueFields(e),a=r.sourceFields(e,i),s=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 u=i[p],h=void 0;if(R(c))h=c[u];else{if(0!==p&&!Z(u,n))break;h=c}h&&s.push({canonicalName:u,name:a[p],transform:j(h)?h:Fr[h]})}}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],a={};if(n&&!k(n)&&!b(n)){var s=function(){};s.prototype=n,a=new s}for(var l=0;l<o.length;l++){var c=o[l],p=this._bindField(i.values,c.canonicalName),u=c.transform(p,r,i.dataItems,e);if(!(null===u||!R(u)||at(u.length)||u instanceof Date)){a=u;break}at(u)&&Zi(c.name,a,u)}return a},e.prototype._bindPoints=function(t){for(var e=this._binder,r=this._series,o=[],i=[],n=0;n<t.length;n++){var a=t[n];o.push(e.bindPoint(r,a)),i.push(r.data[a])}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],a=n.valueFields,s=void 0;s=at(a[e])?a[e]:n.fields[e],r.push(s)}return r},e}(O.Class),$i=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);$i.current=new $i;var Ji=$i,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.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=U(t),o=this.pointData();return e=r?r(o):this.formatValue(t.format),new zo(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}(Uo);tn.prototype.defaults=E({},tn.prototype.defaults,{labels:{format:"{0} - {1}"},tooltip:{format:"{1}"}});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.pointType=function(){return en},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:h,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}(Zo);rn.prototype.plotLimits=ho.prototype.plotLimits;var on=rn,nn=function(t){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}(go),an=function(t){function e(e,r){t.call(this),this.value=e,this.options=r,this.aboveAxis=mt(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 nn(o,E({},this.options,{labels:r.from,markers:e.from})),n=this.toPoint=new nn(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=a):(e=i.x2+5,r=n.y,o=s),{point:new Lt(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,a=i.vertical;"auto"===n.position&&(a?e.y1<=t.y1?(o="above",r="below"):(o="below",r="above"):e.x1<=t.x1?(o=u,r=d):(o=d,r=u),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}(Kt);E(an.prototype,fo),E(an.prototype,vo),an.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=an,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.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}(Eo),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.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 Ir).process(this.toGeometryPoints(t))},e}(ln),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}(ln);E(pn.prototype,_o);var un=pn,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,a=t.valueFields;if(!si(a.from)&&!si(a.to)){if(this.seriesMissingValues(i)!==$r)return null;a={from:0,to:0}}var s=this.pointOptions(i,n);s=this.evalPointOptions(s,a,o,r,i,n);var l=t.fields.color||i.color;j(i.color)&&(l=s.color);var c=new sn(a,s);return c.color=l,this.append(c),c},e.prototype.createSegment=function(t,e,r){var o=(e.line||{}).style;return new("smooth"===o?cn:"step"===o?un:ln)(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 zt(i.x1,t.y1,i.x2,t.y2),o=new zt(n.x1,t.y1,n.x2,t.y2)):(r=new zt(t.x1,i.y1,t.x2,i.y2),o=new zt(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:h,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,Po,Mo);var fn=hn,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.reflow=function(t){var e=this.options,r=this.value,o=this.owner.seriesValueAxis(e),i=[],n=[],a=[],s=o.getSlot(r.low,r.high),l=o.getSlot(r.open,r.open),c=o.getSlot(r.close,r.close);l.x1=c.x1=s.x1=t.x1,l.x2=c.x2=s.x2=t.x2;var p=s.center().x;i.push([l.x1,l.y1]),i.push([p,l.y1]),n.push([p,c.y1]),n.push([c.x2,c.y1]),a.push([p,s.y1]),a.push([p,s.y2]),this.lines=[i,n,a],this.box=s.clone().wrap(l.clone().wrap(c)),this.reflowNote()},e.prototype.createBody=function(){},e}($o),vn=function(t){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 dn},e}(ei),yn=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}(Kt);_t(yn,{animation:{type:"fadeIn",delay:600}});var gn=yn,mn=function(t){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=po(e),o=!this.options.invertAxes,i=0;i<e.length;i++)for(var n=e[i],a=0,s=0,l=0;l<r;l++){var c=Kr.current.bindPoint(n,l),p=c.valueFields.value,u=c.fields.summary,h=a,f=void 0;u?"total"===u.toLowerCase()?(c.valueFields.value=a,h=0,f=a):(c.valueFields.value=s,f=h-s,s=0):k(p)&&(s+=p,f=a+=p),t(c,{category:this.categoryAxis.categoryAt(l),categoryIx:l,series:n,seriesIx:i,total:a,runningTotal:s,from:h,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 a=void 0,s=0;s<n.length;s++){var l=n[s];if(l&&a){var c=new gn(a,l,i);r.push(c),this.append(c)}a=l}}},e}(Zo),xn=["area","verticalArea","rangeArea","verticalRangeArea"],bn=[eo,oo].concat(xn),_n=function(t){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 Lo,t.length>0){this.invertAxes=Z(t[0].type,[Jr,"bullet",oo,"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 tr?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 a=this.groupSeriesByCategoryAxis(n),s=0;s<a.length;s++)this.createChartGroup(a[s],o)}},e.prototype.createChartGroup=function(t,e){this.createAreaChart(Ii(t,["area","verticalArea"]),e),this.createRangeAreaChart(Ii(t,["rangeArea","verticalRangeArea"]),e),this.createBarChart(Ii(t,[to,Jr]),e),this.createRangeBarChart(Ii(t,["rangeColumn","rangeBar"]),e),this.createBulletChart(Ii(t,["bullet","verticalBullet"]),e),this.createCandlestickChart(Ii(t,"candlestick"),e),this.createBoxPlotChart(Ii(t,["boxPlot","verticalBoxPlot"]),e),this.createOHLCChart(Ii(t,"ohlc"),e),this.createWaterfallChart(Ii(t,["waterfall","horizontalWaterfall"]),e),this.createLineChart(Ii(t,[eo,oo]),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),a=this.findPane(n.options.pane);i=(Bi(n.options.type,c)||i.categoryField)&&Z(a,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=Z(t.type,bn),n=E({},t);return n.data=(n.data||[]).slice(o.min,o.max+1),i&&Ui(n,o,r,(function(r){return{item:t.data[r],category:e.categoryAt(r,!0),categoryIx:r-o.min}}),(function(e){return at(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=Bi(o.type,c),a=t.data,s=n?Di:Gr,l=[];n||e.mapCategories();for(var p=0;p<a.length;p++){var u=void 0;if(u=t.categoryField?s(t.categoryField,a[p],this.chartService.intl):i[p],at(u)&&null!==u){var h=e.totalIndex(u);l[h]=l[h]||{items:[],category:u},l[h].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 Qi(E({},t),Kr.current,Ji.current),n=o.data=[],a=e.options.dataItems||[],s=e.currentRangeIndices(),l=function(t){var o=t-s.min,n=r[t];if(n||(n=r[t]={}),n.categoryIx=o,!n.item){var a=e.categoryAt(t,!0);n.category=a,n.item=i.aggregatePoints(n.items,a)}return n},c=s.min;c<=s.max;c++){var p=l(c);n[p.categoryIx]=p.item,p.items&&p.items.length&&(a[p.categoryIx]=p.item)}return Z(o.type,bn)&&Ui(o,s,e.totalCount(),l,(function(t){return r[t]})),e.options.dataItems=a,o},e.prototype.appendChart=function(e,r){var o=e.options.series,i=this.seriesCategoryAxis(o[0]),n=i.options.categories,a=Math.max(0,po(o)-n.length);if(a>0)for(n=i.options.categories=i.options.categories.slice(0);a--;)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=K([].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=[],a=0;a<e.length;a++){var s=Cn(t,e[a],a);0!==s.length&&n.push(s)}return n},e.prototype.createBarChart=function(t,e){if(0!==t.length){var r=t[0],o=new Zo(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 on(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 xi(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 To(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 Do(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 fn(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 vn(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 ei(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 ni(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 mn(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=Ii(this.series,io),o=0;o<this.series.length;o++){var i=this.series[o];if(Z(i.type,xn)){var n=i.line;n&&"step"===n.style&&r.push(i)}}for(var a=0;a<r.length;a++){var s=r[a].categoryAxis||"";if(s===t||!s&&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 tr&&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(Z(this.findPane(n.pane),t)){var a=n.name,s=n.categories;void 0===s&&(s=[]),n=E({vertical:e,reverse:!e&&this.chartService.rtl,axisCrossingValue:e?h:0},n),at(n.justified)||(n.justified=this.isJustified()),this.axisRequiresRounding(a,i)&&(n.justified=!1);var l=void 0;if(l=Li(n,s[0])?new cr(n,this.chartService):new tr(n,this.chartService),r[i].categories=l.options.srcCategories,a){if(this.namedCategoryAxes[a])throw new Error("Category axis with name "+a+" is already defined");this.namedCategoryAxes[a]=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(!Z(t[e].type,xn))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},a=[];this.stack100&&(n.roundToMajorUnit=!1,n.labels={format:"P0"});for(var s=0;s<o.length;s++){var l=o[s];if(Z(this.findPane(l.pane),t)){var c=l.name,p=Bi(l.type,"log")?{min:.1,max:1}:{min:0,max:1},u=e.query(c)||r||p;0===s&&u&&r&&(u.min=Math.min(u.min,r.min),u.max=Math.max(u.max,r.max));var h=new(Bi(l.type,"log")?wr:yr)(u.min,u.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]=h}h.axisIndex=s,a.push(h),this.appendAxis(h)}}var f=this.valueAxis||a[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 Lt(o.x,o.y),n=this.pointPane(i),a=[],s=[];if(n){for(var l=n.axes,c=0;c<l.length;c++){var p=l[c];p.getValue?Ti(s,p.getValue(i)):Ti(a,p.getCategory(i))}0===a.length&&Ti(a,this.categoryAxis.getCategory(i)),a.length>0&&s.length>0&&t.trigger(r,{element:pt(e),originalEvent:e,category:Vi(a),value:Vi(s)})}},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){wn(this.options,t,e),wn(this.originalOptions,t,e)},e}(Yi);function wn(t,e,r){E([].concat(e instanceof tr?t.categoryAxis:t.valueAxis)[e.axisIndex],r)}function Cn(t,e,r){return K(t,(function(t){return 0===r&&!t.categoryAxis||t.categoryAxis===e}))}_t(_n,{categoryAxis:{},valueAxis:{}}),E(_n.prototype,qi);var On=_n;function Pn(){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 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:Pn,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 kn(t,e){var r=(e||"").toLowerCase(),o=t.event;return"none"===r&&!(o.ctrlKey||o.shiftKey||o.altKey)||o[r+"Key"]}function An(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 Mn=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=kn(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 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 a=r.axes,s=0;s<a.length;s++){var l=a[s];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);Mn.prototype.options={key:"none",lock:"none"};var jn=Mn,Tn=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(kn(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=lt(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,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 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 a=i[n],s=a.options.vertical;if((r!==m||s)&&(r!==x||!s)&&at(a.axisIndex)){var l=a.pointsRange(t,e);l&&o.push({axis:a,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(),a=Math.min(r.x,o),s=Math.min(r.y,i),l=Math.abs(r.x-o),c=Math.abs(r.y-i);return n===m&&(a=e.x1,l=e.width()),n===x&&(s=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(a,e.x1),top:Math.max(s,e.y1),width:l,height:c}},e}(O.Class);Tn.prototype.options={key:"shift",lock:"none"};var En=Tn,Rn=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 a=i[n],s=a.options.vertical;if((r!==m||s)&&(r!==x||!s)&&a.zoomRange){var l=ft(this.options.rate,.01,.9),c=a.zoomRange(-t*l,e);c&&o.push({axis:a,range:c})}}return this.axisRanges=o,An(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),Bn=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 zt),i.renderVisual()}},e.prototype.reflow=function(t){this.visual.rect(t.toRect()),this.visual.reflow();var e=this.visual.clippedBBox();this.box=e?ae(e):new zt},e.prototype.renderVisual=function(){this.addVisual()},e.prototype.createVisual=function(){},e}(Kt),In=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 re({vertical:!1,wrap:!1,align:s,spacing:this.options.spacing}),this.append(this.container)},e.prototype.createMarker=function(){this.container.append(new Zt(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 le(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:pt(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}(Yt),Dn=function(t){function e(e,r){void 0===r&&(r={}),t.call(this,e),this.chartService=r,Z(this.options.position,[v,d,a,u,"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=s;"custom"===e?o=u:Z(e,[v,a])?(o="start"===r?u:"end"===r?d:s,i=e):r&&("start"===r?i=v:"end"===r&&(i=a)),this.container=new Yt({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 Yt({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 Bn({vertical:r,spacing:e.spacing,rtl:t.rtl},t),i=e.items;e.reverse&&(i=i.slice(0).reverse());for(var n=i.length,a=0;a<n;a++){var s=i[a];o.append(new In(E({},{markers:e.markers,labels:e.labels,rtl:t.rtl},e.item,s)))}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||(at(e)?"horizontal"!==e:Z(r,[u,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 zt(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,s=o===v||o===a?m:x,l=this.isVertical(),c=t.clone(),p=t.clone();o!==u&&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 h=(p=r.box).clone();(e.offsetX||e.offsetY)&&(p.translate(e.offsetX,e.offsetY),r.reflow(p)),h[s+1]=t[s+1],h[s+2]=t[s+2],this.box=h},e.prototype.containerCustomReflow=function(t){var e=this.options,r=this.container,o=e.offsetX,i=e.offsetY,n=e.width,a=e.height,s=this.isVertical(),l=t.clone();s&&a?l.y2=l.y1+a:!s&&n&&(l.x2=l.x1+n),r.reflow(l),l=r.box,r.reflow(new zt(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:s},t),r=e.text;if(t&&!1!==t.visible){if(at(e)&&e.visible){var o=U(e);o?r=o({text:r}):e.format&&(r=this.chartService.format.auto(e.format,r))}this.title=new le(r,e),this.createTitleLayout(),this.appendTitleLayoutContent()}},e.prototype.createTitleLayout=function(){this.layout=new re({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===a?(this.layout.append(this.itemsContainer),this.layout.append(this.title)):(this.layout.append(this.title),this.layout.append(this.itemsContainer))},e}(Kt);_t(Dn,{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:u,vAlign:s}});var Ln=Dn,Vn=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],a=0;a<i.length;a++){var s=i[a];if((o=Ii(t,s.seriesTypes)).length>0){n=s;break}}return new n.type(o,e,r)},e}(O.Class);Vn.current=new Vn;var zn=Vn;function Nn(t){var e=document.createElement("div");return t&&(e.className=t),e}function Hn(t){for(var e=t;e&&!X(e,"k-handle");)e=e.parentNode;return e}var Un=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 cr,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=Nn("k-selector");L(e,{top:t.offset.top,left:t.offset.left,width:t.width,height:t.height,direction:"ltr"});var r=this.selection=Nn("k-selection");this.leftMask=Nn("k-mask"),this.rightMask=Nn("k-mask"),e.appendChild(this.leftMask),e.appendChild(this.rightMask),e.appendChild(r),r.appendChild(Nn("k-selection-bg"));var o=this.leftHandle=Nn("k-handle k-left-handle"),i=this.rightHandle=Nn("k-handle k-right-handle");o.appendChild(Nn()),i.appendChild(Nn()),r.appendChild(o),r.appendChild(i),this.chartElement.appendChild(e);var n=L(r,["borderLeftWidth","borderRightWidth","height"]),a=L(o,"height").height,s=L(i,"height").height;t.selection={border:{left:n.borderLeftWidth,right:n.borderRightWidth}},L(o,{top:(n.height-a)/2}),L(i,{top:(n.height-s)/2}),e.style.cssText=e.style.cssText},e.prototype.bindEvents=function(){var t;!1!==this.options.mousewheel&&(this._mousewheelHandler=this._mousewheel.bind(this),nt(this.wrapper,((t={})[no]=this._mousewheelHandler,t))),this._domEvents=Ae.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:Ze(r,t.min),max:Ze(r,t.max),from:Ze(r,t.from),to:Ze(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&&(gt(this.wrapper,((t={})[no]=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=pt(t);if(!this._state&&r){this.chart._unsetActivePoint(),this._state={moveTarget:Hn(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:Hn(pt(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,a=o.options.reverse,s=this._index(r.from),l=this._index(r.to),c=this._index(r.min),p=this._index(r.max),u=e.startLocation-t.x.location,h=i.from,f=i.to,d=i.to-i.from,v=L(this.wrapper,"width").width/(o.categoriesCount()-1),y=Math.round(u/v)*(a?-1:1);if(n){var g=X(n,"k-left-handle"),m=X(n,"k-right-handle");X(n,"k-selection k-selection-bg")?(i.from=Math.min(Math.max(c,s-y),p-d),i.to=Math.min(i.from+d,p)):g&&!a||m&&a?(i.from=Math.min(Math.max(c,s-y),p-1),i.to=Math.max(i.from+1,i.to)):(g&&a||m&&!a)&&(i.to=Math.min(Math.max(c+1,l-y),p),i.from=Math.min(i.to-1,i.from)),i.from===h&&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 Lt(o.x,r.box.y1)),n=this._index(e.from),a=this._index(e.to),s=this._index(e.min),l=this._index(e.max),c=a-n,p=n+c/2,u={},h=3===t.event.which,f=Math.round(p-i);this._state||h||(this.chart._unsetActivePoint(),r.options.justified||f--,u.from=Math.min(Math.max(s,n-f),l-c),u.to=Math.min(u.from+c,l),this._start(t),this._state&&(this._state.range=u,this.trigger("select",this._rangeEventArgs(u)),this._end()))},e.prototype._mousewheel=function(t){var e=this,r=rt(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,a=e._toModelCoordinates(t.touches[0].x.location).x,s=e._toModelCoordinates(t.touches[1].x.location).x,l=Math.min(a,s),c=Math.max(a,s);t.preventDefault(),n.from=i.pointCategoryIndex(new Lt(l))||o.min,n.to=i.pointCategoryIndex(new Lt(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,a=r.selection.border,s=o?e:t,l=o?t:e,c="x"+(o?2:1),p=this._slot(s),u=yt(p[c]-i.left+n.left);L(this.leftMask,{width:u}),L(this.selection,{left:u}),p=this._slot(l);var h=yt(r.width-(p[c]-i.left+n.left));L(this.rightMask,{width:h});var f=r.width-h;f!==r.width&&(f+=a.right),L(this.rightMask,{left:f}),L(this.selection,{width:Math.max(r.width-(u+h)-a.right,0)})},e.prototype.set=function(t,e){var r=this.options,o=this._index(r.min),i=this._index(r.max),n=ft(this._index(t),o,i),a=ft(this._index(e),n+1,i);r.visible&&this.move(n,a),r.from=this._value(n),r.to=this._value(a)},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),a=this._index(e.to),s={from:n,to:a},l=E({},s);if(this._state&&(s=this._state.range),i!==d&&(s.from=ft(ft(n-t,0,a-1),r,o)),i!==u&&(s.to=ft(ft(a+t,s.from+1,o),r,o)),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.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),a=this._index(r.to),s={from:n,to:a},l=E({},s),c=this.categoryAxis.options.reverse,p=m+(c?"2":"1"),u=this.categoryAxis.lineBox(),h=Math.abs(u[p]-e.x),f=u.width(),d=yt(h/f,2),v=yt(d*t),y=yt((1-d)*t);if(this._state&&(s=this._state.range),s.from=ft(ft(n-v,0,a-1),o,i),s.to=ft(ft(a+y,s.from+1,i),o,i),s.from!==l.from||s.to!==l.to)return this.set(s.from,s.to),!0},e.prototype.trigger=function(t,e){return(this.observer||this.chart).trigger(t,e)},e}(O.Class);_t(Un,{visible:!0,mousewheel:{zoom:"both"},min:f,max:h});var Fn=Un,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.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}(_i),Wn=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=K(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 Lt(i.x,n.y):new Lt(n.x,i.y),align:{horizontal:"center",vertical:"center"}}},e}(_i);_t(Wn,{categoryFormat:"{0:d}"});var Kn=Wn,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.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]=Qr,t.transform(O.geometry.transform().scale(o.x,o.y))}else this.abort()},e.prototype.step=function(t){var e=Q(this.fromScale.x,1,t),r=Q(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);_t(Xn,{duration:600}),O.drawing.AnimationFactory.current.register(Jr,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(){var t=this.center=this.element.bbox().center();this.element.transform(O.geometry.transform().scale(Qr,Qr,t))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.center))},e}(O.drawing.Animation);_t(Yn,{easing:"easeOutElastic"}),O.drawing.AnimationFactory.current.register("bubble",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.fadeTo=this.element.opacity(),this.element.opacity(0)},e.prototype.step=function(t){this.element.opacity(t*this.fadeTo)},e}(O.drawing.Animation);_t(qn,{duration:200,easing:"linear"}),O.drawing.AnimationFactory.current.register("fadeIn",qn);var 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.setup=function(){this.element.transform(O.geometry.transform().scale(Qr,Qr,this.options.center))},e.prototype.step=function(t){this.element.transform(O.geometry.transform().scale(t,t,this.options.center))},e}(O.drawing.Animation);_t(Zn,{easing:"easeOutElastic",duration:600}),O.drawing.AnimationFactory.current.register(ro,Zn);var Qn=Zn,$n=function(t){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?Oo:xo)(t,e,r)},e.prototype.animationPoints=function(){return t.prototype.animationPoints.call(this).concat(this._segments)},e.prototype.createMissingValue=function(t,e){if(e===$r){var r={x:t.x,y:t.y};return si(r.x)||(r.x=0),si(r.y)||(r.y=0),r}},e}(ci);E($n.prototype,Po);var Jn=$n,ta=function(t){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 Lo,this.yAxisRangeTracker=new Lo},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(Ii(n,"scatter"),o),this.createScatterLineChart(Ii(n,"scatterLine"),o),this.createBubbleChart(Ii(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=K([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=K([].concat(e.yAxis),(function(t){return t.name===i}))[0],a=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||a},e.prototype.createScatterChart=function(t,e){t.length>0&&this.appendChart(new ci(this,{series:t,clip:e.options.clip}),e)},e.prototype.createScatterLineChart=function(t,e){t.length>0&&this.appendChart(new Jn(this,{series:t,clip:e.options.clip}),e)},e.prototype.createBubbleChart=function(t,e){t.length>0&&this.appendChart(new fi(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,a=e?this.yAxisRangeTracker:this.xAxisRangeTracker,s=E({reverse:!e&&this.chartService.rtl},t,{vertical:e}),l=Bi(s.type,"log"),p=a.query(),u=l?{min:.1,max:1}:{min:0,max:1},h=a.query(i)||p||u,f=[s.min,s.max],d=this.series,v=0;v<d.length;v++){var y=d[v],g=y[e?"yAxis":"xAxis"];if(g===s.name||0===r&&!g){var m=Kr.current.bindPoint(y,0).valueFields;f.push(m[e?"y":"x"]);break}}0===r&&p&&(h.min=Math.min(h.min,p.min),h.max=Math.max(h.max,p.max));for(var x=0;x<f.length;x++)if(f[x]instanceof Date){o=!0;break}var b=new(Bi(s.type,c)||!s.type&&o?mr:l?wr:yr)(h.min,h.max,s,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=[],a=0;a<r.length;a++){Z(this.findPane(r[a].pane),t)&&o.push(this.createXYAxis(r[a],!1,a))}for(var s=0;s<i.length;s++){Z(this.findPane(i[s].pane),t)&&n.push(this.createXYAxis(i[s],!0,s))}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 Lt(o.x,o.y),n=this.axes,a=n.length,s=[],l=[],c=0;c<a;c++){var p=n[c],u=p.options.vertical?l:s,h=p.getValue(i);null!==h&&u.push(h)}s.length>0&&l.length>0&&t.trigger(r,{element:pt(e),originalEvent:e,x:Vi(s),y:Vi(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);ea(this.options,i,r,e),ea(this.originalOptions,i,r,e)},e}(Yi);function ea(t,e,r,o){E([].concat(r?t.yAxis:t.xAxis)[e],o)}_t(ta,{xAxis:{},yAxis:{}}),E(ta.prototype,qi);var ra=ta,oa=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=U(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===s||"insideEnd"===t.position)t.color||(t.color=At(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 le(r,E({},t,{align:s,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,a=e.box.height(),l=e.box.width();if(t.position===s)r.radius=Math.abs((r.radius-a)/2)+a,n=r.point(i),e.reflow(new zt(n.x,n.y-a/2,n.x,n.y));else if("insideEnd"===t.position)r.radius=r.radius-a/2,n=r.point(i),e.reflow(new zt(n.x,n.y-a/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=u),e.reflow(new zt(c,n.y-a,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,a={color:n,opacity:r.opacity},s=this.createSegment(e,E({fill:a,stroke:{opacity:r.opacity},zIndex:r.zIndex},i));t.append(s),No(r)&&t.append(this.createGradientOverlay(s,{baseColor:n,fallbackFill:a},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):Gt.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:aa(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}(Kt),ia=yt(vt(30),10),na=yt(vt(60),10);function aa(t){var e=vt(t),r=yt(Math.sin(e),10),o=yt(Math.cos(e),10);return{horizontal:Math.abs(r)>na?s:o<0?d:u,vertical:Math.abs(r)<ia?s:r<0?a:v}}_t(oa,{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:ro},highlight:{visible:!0,border:{width:1}},visible:!0}),E(oa.prototype,fo);var sa=oa,la={createLegendItem:function(t,e,r){var o=this.options.legend||{},i=o.labels||{},n=o.inactiveItems||{},a=n.labels||{};if(r&&!1!==r.visibleInLegend){var s,l,c=!1!==r.visible,p=c?U(i):U(a)||U(i),u=r.category;p&&(u=p({text:u,series:r.series,dataItem:r.dataItem,percentage:r.percentage,value:t})),c?(s={},l=e.color):(s={color:a.color,font:a.font},l=(n.markers||{}).color),si(u)&&""!==u&&this.legendItems.push({active:c,pointIndex:r.index,text:u,series:r.series,markerColor:l,labels:s})}}},ca=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,a=0;a<n;a++){var l=i[a],c=l.data,p=Ri(l),u=p.total,h=p.points,f=p.count,d=360/u,v=void 0;isFinite(d)||(v=360/f);var y=void 0;y=at(l.startAngle)?l.startAngle:e.startAngle,a!==n-1&&"outsideEnd"===l.labels.position&&(l.labels.position=s);for(var g=0;g<h.length;g++){var m=h[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 Ht(null,0,0,y,w),{owner:this,category:at(x.category)?x.category:"",index:g,series:l,seriesIx:a,dataItem:c[g],percentage:0!==u?b/u:0,explode:C,visibleInLegend:x.visibleInLegend,visible:_,zIndex:n-a,animationDelay:this.animationDelay(g,a,n)}),!1!==_&&(y+=w)}}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;co(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 sa(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(),a=Math.min(n.width(),n.height()),s=a/2,l=a-.85*a,c=new zt(n.x1,n.y1,n.x1+a,n.y1+a),p=c.center(),u=n.center(),h=e.series.length,f=[],v=[],y=mt(e.padding,l);this.targetBox=t,y=y>s-5?s-5:y,c.translate(u.x-p.x,u.y-p.y);for(var g=s-y,m=new Lt(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===h-1&&b.explode&&(_.center=_.clone().setRadius(.15*_.radius).point(_.middle())),b.reflow(c);var O=b.label;O&&"outsideEnd"===O.options.position&&w===h-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=ht(this.points),r=e.sector,o=t.length-1,i=r.radius+e.options.labels.distance,n=[],a=t[0].box,s=yt(a.y1-(r.center.y-i-a.height()-a.height()/2));n.push(s);for(var l=0;l<o;l++){var c=t[l+1].box;a=t[l].box,s=yt(c.y1-a.y2),n.push(s)}return s=yt(r.center.y+i-t[o].box.y2-t[o].box.height()/2),n.push(s),n},e.prototype.distributeLabels=function(t,e){for(var r,o,i,n=t.length,a=0;a<n;a++)for(i=-t[a],r=o=a;i>0&&(r>=0||o<n);)i=this._takeDistance(t,a,--r,i),i=this._takeDistance(t,a,++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=ht(this.points),i=o.sector,n=o.options.labels,a=e.length,s=n.distance,c=i.center.y-(i.radius+s)-e[0].box.height();t[0]+=2;for(var p=0;p<a;p++){var u=e[p],h=u.box;c+=t[p],r=this.hAlignLabel(h.x2,i.clone().expand(s),c,c+h.height(),u.orientation===d),u.orientation===d?(n.align!==l&&(r=i.radius+i.center.x+s),u.reflow(new zt(r+h.width(),c,r,c))):(n.align!==l&&(r=i.center.x-i.radius-s),u.reflow(new zt(r-h.width(),c,r,c))),c+=h.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],a=n.sector,s=n.label,l=a.middle(),c=(n.options.connectors||{}).color||e.color;if(s){var p=new O.drawing.Path({stroke:{color:c,width:e.width},animation:{type:"fadeIn",delay:n.animationDelay}});if("outsideEnd"===s.options.position){var u=s.box,h=a.center,f=a.point(l),v=new Lt(u.x1,u.center().y),y=void 0,g=void 0,m=void 0;f=a.clone().expand(e.padding).point(l),p.moveTo(f.x,f.y),s.orientation===d?(m=pa(h,f,v,g=new Lt(u.x1-e.padding,u.center().y)),v=new Lt(g.x-4,g.y),(m=m||v).x=Math.min(m.x,v.x),this.pointInCircle(m,a.center,a.radius+4)||m.x<a.center.x?(y=a.center.x+a.radius+4,n.options.labels.align!==to?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=pa(h,f,v,g=new Lt(u.x2+e.padding,u.center().y)),v=new Lt(g.x+4,g.y),(m=m||v).x=Math.max(m.x,v.x),this.pointInCircle(m,a.center,a.radius+4)||m.x>a.center.x?(y=a.center.x-a.radius-4,n.options.labels.align!==to?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),Ct(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,a=e.center,s=a.x,l=a.y,c=Math.min(Math.abs(l-r),Math.abs(l-o));return c>n?t:s+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}(Kt);function pa(t,e,r,o){var i,n=(o.x-r.x)*(t.y-r.y)-(o.y-r.y)*(t.x-r.x),a=(o.y-r.y)*(e.x-t.x)-(o.x-r.x)*(e.y-t.y);if(0!==a){var s=n/a;i=new Lt(t.x+s*(e.x-t.x),t.y+s*(e.y-t.y))}return i}_t(ca,{startAngle:90,connectors:{width:2,color:"#939393",padding:8},inactiveItems:{markers:{},labels:{}}}),E(ca.prototype,la),ca.prototype.isStackRoot=!0;var ua=ca,ha=function(t){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 ua(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),it(this.options.legend.items,e.legendItems)},e}(Yi),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.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===s){o.radius-=(o.radius-o.innerRadius)/2;var a=o.point(i);r.reflow(new zt(a.x,a.y-n/2,a.x,a.y))}else t.prototype.reflowLabel.call(this)}},e.prototype.createSegment=function(t,e){return Gt.current.createRing(t,e)},e}(sa);_t(fa,{overlay:{gradient:"roundedGlass"},labels:{position:s},animation:{type:ro}}),E(fa.prototype,fo);var da=fa,va=function(t){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 da(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()),a=n/2,s=n-.85*n,l=o.series,c=l.length,p=mt(o.padding,s),u=a-(p=p>a-5?a-5:p),h=0,f=0;f<c;f++){var d=l[f];0===f&&at(d.holeSize)&&(r=d.holeSize,u-=d.holeSize),at(d.size)?u-=d.size:h++,at(d.margin)&&f!==c-1&&(u-=d.margin)}at(r)||(u-=r=.75*((a-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)+mt(x.size,u/h),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}(ua);_t(va,{startAngle:90,connectors:{width:2,color:"#939393",padding:8}});var ya=va,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.render=function(){this.createDonutChart(this.series)},e.prototype.createDonutChart=function(t){var e=t[0],r=new ya(this,{series:t,padding:e.padding,connectors:e.connectors,legend:this.options.legend});this.appendChart(r)},e}(ha),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.initFields=function(){this.valueAxisRangeTracker=new Lo},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=Rr,e={min:.1,max:1}):(t=Tr,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 a=new t(n.min,n.max,i,this.chartService);this.valueAxis=a,this.appendAxis(a)},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),a=o.clone().unpad(n),l=a.clone();l.y2=l.y1+Math.min(l.width(),l.height()),l.align(a,x,s);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}(Yi),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.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Lt.onCircle(t.center,t.startAngle,r);return new zt(o.x,o.y,o.x,o.y)},e}(ci);_t(xa,{clip:!1});var ba=xa,_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}(Jn);_a.prototype.pointSlot=ba.prototype.pointSlot,_t(_a,{clip:!1});var wa=_a,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.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 Ir(!1),o=this.points();o.push(e),(t=this._strokeSegments=r.process(o)).pop()}return t},e}(Io),Oa=function(t){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}(Eo);function Pa(t,e){return t.value.x-e.value.x}var Sa=function(t){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 Ca(t,e,r):new Oa(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===$r&&(r.y=0)),r},e.prototype.seriesMissingValues=function(t){return t.missingValues||$r},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(Pa),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}(wa),ka=function(t){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 kr(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),Yi.prototype.appendChart.call(this,t,e)},e.prototype.createCharts=function(){var t=this.filterVisibleSeries(this.series),e=this.panes[0];this.createLineChart(Ii(t,["polarLine"]),e),this.createScatterChart(Ii(t,["polarScatter"]),e),this.createAreaChart(Ii(t,["polarArea"]),e)},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new wa(this,{series:t});this.appendChart(r,e)}},e.prototype.createScatterChart=function(t,e){if(0!==t.length){var r=new ba(this,{series:t});this.appendChart(r,e)}},e.prototype.createAreaChart=function(t,e){if(0!==t.length){var r=new Sa(this,{series:t});this.appendChart(r,e)}},e.prototype._dispatchEvent=function(t,e,r){var o=t._eventCoordinates(e),i=new Lt(o.x,o.y),n=this.axisX.getValue(i),a=this.axisY.getValue(i);null!==n&&null!==a&&t.trigger(r,{element:pt(e),x:n,y:a})},e.prototype.createCrosshairs=function(){},e}(ma);_t(ka,{xAxis:{},yAxis:{}}),E(ka.prototype,qi);var Aa=ka;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.pointSlot=function(t,e){var r=t.center.y-e.y1,o=Lt.onCircle(t.center,t.middle(),r);return new zt(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=ht(o),a=ht(n.linePoints),s=0===i.categoryIx,l=a.categoryIx===a.categoriesCount-1;s&&l&&ht(o).linePoints.push(i)}}},e.prototype.createSegment=function(t,e,r){var o=new("smooth"===e.style?Oo:xo)(t,e,r),i=this.seriesMissingValues(e);return t.length!==e.data.length&&"interpolate"!==i||(o.options.closed=!0),o},e}(To);_t(Ma,{clip:!1,limitPoints:!1});var ja=Ma,Ta=function(t){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}(Io),Ea=function(t){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}(Eo),Ra=function(t){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,a,s=this.options.isStacked,l=(e.line||{}).style;return s&&r>0&&o&&(n=o.linePoints.slice(0),i=o),"smooth"===l?(a=new Ta(t,e,r,i,n)).options.closed=!0:(t.push(t[0]),a=new Ea(t,e,r,i,n)),a},e.prototype.seriesMissingValues=function(t){return t.missingValues||$r},e}(ja),Ba=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}(da);_t(Ba,{overlay:{gradient:"none"},labels:{distance:10}});var Ia=Ba,Da=function(t){function e(e){t.call(this,e),this.forEach=e.rtl?Go:Fo}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,a=n+o+i*(n-1),s=t.angle/a,l=t.startAngle+s*(o/2);this.forEach(r,(function(e){var r=t.clone();r.startAngle=l,r.angle=s,e.sector&&(r.radius=e.sector.radius),e.reflow(r),e.sector=r,l+=s+s*i}))},e}(Kt);_t(Da,{gap:1,spacing:0});var La=Da,Va=function(t){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 zt;for(var a=i;a>=0&&a<o;a+=n){var s=r[a].sector;s.startAngle=t.startAngle,s.angle=t.angle}},e}(Kt),za=function(t){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 Ia},e.prototype.clusterType=function(){return La},e.prototype.stackType=function(){return Va},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}(Zo);za.prototype.reflow=ho.prototype.reflow,_t(za,{clip:!1,limitPoints:!1,animation:{type:"pie"}});var Na=za,Ha=function(t){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.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(){On.prototype.aggregateCategories.call(this,this.panes)},e.prototype.createCategoryAxesLabels=function(){On.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(Ii(t,["radarArea"]),e),this.createLineChart(Ii(t,["radarLine"]),e),this.createBarChart(Ii(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 Ra(this,this.chartOptions(t));this.appendChart(r,e)}},e.prototype.createLineChart=function(t,e){if(0!==t.length){var r=new ja(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 Na(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 Lt(o.x,o.y),n=this.categoryAxis.getCategory(i),a=this.valueAxis.getValue(i);null!==n&&null!==a&&t.trigger(r,{element:pt(e),category:n,value:a})},e.prototype.createCrosshairs=function(){},e}(ma);E(Ha.prototype,qi,{appendChart:On.prototype.appendChart,aggregateSeries:On.prototype.aggregateSeries,seriesSourcePoints:On.prototype.seriesSourcePoints}),_t(Ha,{categoryAxis:{categories:[]},valueAxis:{}});var Ua=Ha,Fa=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 zt(e[0].x,e[0].y,e[1].x,e[2].y),r&&r.reflow(new zt(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 Lt(t.center().x,t.y1),align:{horizontal:"center",vertical:"top"}}},e.prototype.formatValue=function(t){return this.owner.formatPointValue(this,t)},e}(Kt);_t(Fa,{color:g,border:{width:1}}),E(Fa.prototype,fo);var Ga=Fa,Wa=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=Ri(r),n=i.total,a=i.points,s=0;s<a.length;s++){var l=a[s];if(l){var c=l.fields;j(r.color)||(r.color=c.color||e[s%e.length]),c=E({index:s,owner:this,series:r,dataItem:o[s],percentage:l.value/n},c,{visible:l.visible});var p=l.valueFields.value,u=this.createSegment(p,c),h=this.createLabel(p,c);u&&h&&u.append(h)}}},e.prototype.evalSegmentOptions=function(t,e,r){var o=r.series;co(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 Ga(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 a=U(i),s={dataItem:o,value:t,percentage:e.percentage,category:e.category,series:r};a?n=a(s):i.format&&(n=this.plotArea.chartService.format.auto(i.format,n)),i.color||(i.color=At(r.color),i.background||(i.background=r.color)),this.evalSegmentOptions(i,t,e);var l=new le(n,E({vAlign:i.position},i),s);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!==s){var i=t[r].box.width();o===u?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,a=i[0],s=a,l=0;l<i.length;l++)i[l].percentage>s.percentage&&(s=i[l]);for(var c=a.percentage/s.percentage*e,p=(e-c)/2,u=0,h=0;h<n;h++){var f=i[h].percentage,d=i[h+1],v=d?d.percentage:f,y=i[h].points=[],g=o.dynamicHeight?r*f:r/n,m=void 0;m=ft(m=f?(e-c*(v/f))/2:v?0:e/2,0,e),y.push(new O.geometry.Point(t.x1+p,t.y1+u)),y.push(new O.geometry.Point(t.x1+e-p,t.y1+u)),y.push(new O.geometry.Point(t.x1+e-m,t.y1+g+u)),y.push(new O.geometry.Point(t.x1+m,t.y1+g+u)),p=m,u+=g+o.segmentSpacing,c=ft(e-2*m,0,e)}},e.prototype.constantSlopeReflow=function(t,e,r){for(var o=this.options,i=this.points,n=i.length,a=o.neckRatio<=1,s=a?o.neckRatio*e:e,l=a?0:(e-e/o.neckRatio)/2,c=((a?e:e-2*l)-s)/2,p=0,u=0;u<n;u++){var h=i[u].points=[],f=i[u].percentage,d=o.dynamicHeight?c*f:c/n,v=o.dynamicHeight?r*f:r/n;h.push(new O.geometry.Point(t.x1+l,t.y1+p)),h.push(new O.geometry.Point(t.x1+e-l,t.y1+p)),h.push(new O.geometry.Point(t.x1+e-l-d,t.y1+v+p)),h.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),a=i.width();o.dynamicSlope?this.dynamicSlopeReflow(i,a,n):this.constantSlopeReflow(i,a,n);for(var s=0;s<r;s++)e[s].reflow(t)}},e}(Kt);_t(Wa,{neckRatio:.3,width:300,dynamicSlope:!1,dynamicHeight:!0,segmentSpacing:0,labels:{visible:!1,align:s,position:s,zIndex:1}}),E(Wa.prototype,la);var Ka=Wa,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.render=function(){this.createFunnelChart(this.series)},e.prototype.createFunnelChart=function(t){var e=t[0],r=new Ka(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),it(this.options.legend.items,e.legendItems)},e}(Yi),Ya=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()}},qa=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=U(t),i=t.color;e=o?o(r):this.formatValue(t.format),i||(i=At(this.color)),this.label=new le(e,E({align:s,vAlign:s,margin:{left:5,right:5},zIndex:mt(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"===mt(t.type,"rect"),i=mt(e.width,o?1:0),n=Math.round(i/2);if(t.size){var a=r.center();r.size.width=r.size.height=t.size,r.origin.x=Math.round(a.x-r.size.width/2),r.origin.y=Math.round(a.y-r.size.height/2)}return r.size.width-=i,r.size.height-=i,r.origin.y+=n+.5,r.origin.x+=n+.5,ae(r)},e.prototype.markerBorder=function(){var t=this.options,e=t.markers.border,r=mt(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 Zt({type:mt(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:mt(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 Zt({type:mt(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:mt(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 Lt(t,e),align:{horizontal:s,vertical:a}}},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}(Kt);E(qa.prototype,fo),E(qa.prototype,vo),qa.prototype.defaults={markers:{type:"rect",borderRadius:4,border:{color:"transparent"}},padding:{top:1},labels:{visible:!1,padding:3},opacity:1,notes:{label:{}}};var Za=qa,Qa=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:h,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"]},a=this._evalSeries[i];at(a)||(this._evalSeries[i]=a=co(t,{},n,!0));var s=t;return a&&co(s=E({},t),{value:e,series:o,dataItem:r.dataItem,min:this.valueRange.min,max:this.valueRange.max},n),s},e.prototype.pointType=function(){return Za},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=Ya(i)(t.value/this.valueRange.max);var n=new Za(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 a=r[i++],s=e.seriesAxes(n.series),l=s.xAxis,c=s.yAxis,p=l.categoryIndex(t.x),u=c.categoryIndex(t.y),h=l.getSlot(p,p,o),f=c.getSlot(u,u,o);if(a)if(h&&f){var d=e.pointSlot(h,f);a.reflow(d)}else a.visible=!1})),this.box=t},e.prototype.pointSlot=function(t,e){return new zt(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,a=i.yAxis,s=n.currentRangeIndices(),l=a.currentRangeIndices(),c=0;c<o.data.length;c++){var p=this._bindPoint(o,r,c),u=p.valueFields,h=p.fields,f=n.totalIndex(u.x),d=a.totalIndex(u.y),v=s.min<=f&&f<=s.max,y=l.min<=d&&d<=l.max;v&&y&&t(u,E({pointIx:c,series:o,seriesIx:r,dataItem:o.data[c],owner:this},h))}},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}(Kt);_t(Qa,{series:[],tooltip:{format:"{0}, {1}: {2}"},labels:{format:"{2}"},clip:!0}),E(Qa.prototype,{_bindPoint:ho.prototype._bindPoint});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.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,a=i.yAxis,s=Bt(n.categories||[]),l=Bt(a.categories||[]),c=0;c<o.length;c++){var p=Kr.current.bindPoint(r,c).valueFields,u=p.x,h=p.y;s.has(u)||s.add(u),l.has(h)||l.add(h)}n.categories=s.values(),a.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(Ii(n,["heatmap"]),o)}},e.prototype.createHeatmapChart=function(t,e){var r=new $a(this,{series:t});this.appendChart(r,e)},e.prototype.seriesPaneName=function(t){var e=this.options,r=t.xAxis,o=K([].concat(e.xAxis),(function(t){return t.name===r}))[0],i=t.yAxis,n=K([].concat(e.yAxis),(function(t){return t.name===i}))[0],a=(e.panes||[{}])[0].name||"default";return(o||{}).pane||(n||{}).pane||a},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 a=[].concat(o.yAxis),s=t.yAxis;if(r=s?a.find((function(t){return t.name===s})):a[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 "+s);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,a=Object.assign({axisCrossingValue:0},t,{vertical:e,reverse:e||this.chartService.rtl?!t.reverse:t.reverse,justified:!1}),s=a.categories?a.categories[0]:null,l=[a.min,a.max,s],p=this.series,u=0;u<p.length;u++){var h=p[u],f=h[e?"yAxis":"xAxis"];if(f===a.name||0===r&&!f){var d=Kr.current.bindPoint(h,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(Bi(a.type,c)||!a.type&&o?cr:tr)(a,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=[],a=0;a<r.length;a++){Z(this.findPane(r[a].pane),t)&&o.push(this.createXYAxis(r[a],!1,a))}for(var s=0;s<i.length;s++){Z(this.findPane(i[s].pane),t)&&n.push(this.createXYAxis(i[s],!0,s))}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 Lt(o.x,o.y),n=this.axes,a=n.length,s=[],l=[],c=0;c<a;c++){var p=n[c];Ti(p.options.vertical?l:s,p.getCategory(i))}s.length>0&&l.length>0&&t.trigger(r,{element:pt(e),originalEvent:e,x:Vi(s),y:Vi(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.prototype.crosshairOptions=function(t){return Object.assign({},t.options.crosshair,{zIndex:0})},e}(Yi);function ts(t,e,r,o){E([].concat(r?t.yAxis:t.xAxis)[e],o)}_t(Ja,{xAxis:{},yAxis:{}}),E(Ja.prototype,qi);var es=Ja,rs="color",os="first",is="max";zn.current.register(On,[Jr,to,eo,oo,"area","verticalArea","candlestick","ohlc","bullet","verticalBullet","boxPlot","verticalBoxPlot","rangeColumn","rangeBar","waterfall","horizontalWaterfall","rangeArea","verticalRangeArea"]),zn.current.register(ra,["scatter","scatterLine","bubble"]),zn.current.register(ha,[ro]),zn.current.register(ga,["donut"]),zn.current.register(Xa,["funnel"]),zn.current.register(Aa,["polarArea","polarLine","polarScatter"]),zn.current.register(Ua,["radarArea","radarColumn","radarLine"]),zn.current.register(es,["heatmap"]),Kr.current.register([Jr,to,eo,oo,"area","verticalArea"],[y],["category",rs,"noteText","errorLow","errorHigh"]),Kr.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],["from","to"],["category",rs,"noteText"]),Kr.current.register(["waterfall","horizontalWaterfall"],[y],["category",rs,"noteText","summary"]),Kr.current.register(["polarArea","polarLine","polarScatter"],[m,x],[rs]),Kr.current.register(["radarArea","radarColumn","radarLine"],[y],[rs]),Kr.current.register(["funnel"],[y],["category",rs,"visibleInLegend","visible"]),Ji.current.register([Jr,to,eo,oo,"area","verticalArea","waterfall","horizontalWaterfall"],{value:is,color:os,noteText:os,errorLow:"min",errorHigh:is}),Ji.current.register(["rangeColumn","rangeBar","rangeArea","verticalRangeArea"],{from:"min",to:is,color:os,noteText:os}),Ji.current.register(["radarArea","radarColumn","radarLine"],{value:is,color:os}),Kr.current.register(["scatter","scatterLine","bubble"],[m,x],[rs,"noteText","xErrorLow","xErrorHigh","yErrorLow","yErrorHigh"]),Kr.current.register(["bubble"],[m,x,"size"],[rs,"category","noteText"]),Kr.current.register(["heatmap"],[m,x,y],[rs,"noteText"]),Kr.current.register(["candlestick","ohlc"],["open","high","low","close"],["category",rs,"downColor","noteText"]),Ji.current.register(["candlestick","ohlc"],{open:is,high:is,low:"min",close:is,color:os,downColor:os,noteText:os}),Kr.current.register(["boxPlot","verticalBoxPlot"],["lower","q1","median","q3","upper","mean","outliers"],["category",rs,"noteText"]),Ji.current.register(["boxPlot","verticalBoxPlot"],{lower:is,q1:is,median:is,q3:is,upper:is,mean:is,outliers:os,color:os,noteText:os}),Kr.current.register(["bullet","verticalBullet"],["current","target"],["category",rs,"visibleInLegend","noteText"]),Ji.current.register(["bullet","verticalBullet"],{current:is,target:is,color:os,noteText:os}),Kr.current.register([ro,"donut"],[y],["category",rs,"explode","visibleInLegend","visible"]);var ns=["category",y,m,x],as=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 Se(this,i),this.chartService.theme=o,this._initElement(e);var a=E({},this.options,r);this._originalOptions=E({},a),this._theme=o,this._initTheme(a,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=ns,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&&Ct(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 Lr(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 zr(e[r])},e.prototype.findPaneByIndex=function(t){var e=this._plotArea.panes;if(e[t])return new zr(e[t])},e.prototype.plotArea=function(){return new Nr(this._plotArea)},e.prototype.toggleHighlight=function(t,e){var r,o,i,n=this._plotArea,a=(n.srcSeries||n.series||[])[0];j(e)?r=n.filterPoints(e):(R(e)?(o=e.series,i=e.category):o=i=e,r="donut"===a.type?ss(n.pointsBySeriesName(o),i):a.type===ro||"funnel"===a.type?ss((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&&at(t)&&(r=n.categoryAxis.categoryIndex(t)),o){if(r>=0){var a=this._plotArea.pointsByCategoryIndex(r);i.showAt(a)}}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 Sn,this._setupSelection(),this._createPannable(),this._createZoomSelection(),this._createMousewheelZoom(),this.trigger("render"),hs(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}});us(this._originalOptions,o),this.options=E({},this._originalOptions,o),this._initTheme(this.options,this._theme),this.bindCategories();var i=this._getModel();i.renderVisual(),hs(i._plotArea.panes),e=i.visual,this.options=r}else e=this.surface.exportVisual();return e},e.prototype._sharedTooltip=function(){return this._plotArea instanceof On&&this.options.tooltip&&this.options.tooltip.shared},e.prototype._createPannable=function(){var t=this.options;!1!==t.pannable&&(this._pannable=new jn(this._plotArea,t.pannable))},e.prototype._createZoomSelection=function(){var t=this.options.zoomable,e=(t||{}).selection;!1!==t&&!1!==e&&(this._zoomSelection=new En(this,e))},e.prototype._createMousewheelZoom=function(){var t=this.options.zoomable,e=(t||{}).mousewheel;!1!==t&&!1!==e&&(this._mousewheelZoom=new Rn(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"]),a=this.element;this._dragZoomEnabled&&i&&n?(a.style.touchAction=this._touchAction||"",this._dragZoomEnabled=!1):this._dragZoomEnabled||i&&n||(a.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 Gn(this.chartService,t)},e.prototype._createSharedTooltip=function(t){return new Kn(this._plotArea,t)},e.prototype.applyDefaults=function(t,e){!function(t,e){var r,o,i,n=(e||{}).axisDefaults||{};function a(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 s=0;s<ns.length;s++)r=ns[s]+"Axis",o=t.axisDefaults||{},i=(i=[].concat(t[r])).map(a),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),a=e?E({},e.seriesDefaults):{},s=E({},a);ls(n),ls(s);for(var l=0;l<o;l++){var c=r[l].type||t.seriesDefaults.type,p=E({data:[]},s,a[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],a=i._defaults;i.color=i.color||n,a&&(a.color=a.color||n)}},e.prototype._getModel=function(){var t=this.options,e=this._createPlotArea(),r=new te(this._modelOptions());return r.chart=this,r._plotArea=e,pe.buildTitle(t.title,r),t.legend&&t.legend.visible&&r.append(new Ln(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 zn.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 tr&&i.select&&!i.vertical){var n=o.range(),a=new Fn(this,o,E({min:n.min,max:n.max},i.select));e.push(a)}}},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,nt(r,((t={}).contextmenu=this._clickHandler,t[no]=this._mousewheelHandler,t.mouseleave=this._mouseleaveHandler,t)),this._shouldAttachMouseMove()&&nt(r,((e={}).mousemove=this._mousemove,e)),this.domEvents=Ae.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:cs(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:cs(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,a=0;a<n.length;a++){var s=n[a];if(s.options.name){var l=s.options.vertical?t.y:t.x,c=l.startLocation-l.location;0!==c&&(i[s.options.name]=s.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:cs(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 mt(t.rate,.3)},e.prototype._mousewheel=function(t){var e=this,r=rt(t),o=this._mousewheelZoom,i=this._eventCoordinates(t);if(!this._stopChartHandlers(t)&&this._plotArea.backgroundContainsPoint(i))if(o){var n={delta:r,axisRanges:cs(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 a=this._navState;if(!a)this._startNavigation(t,i,"zoomStart")||(a=this._navState);if(a){var s=a.totalDelta||r;a.totalDelta=s+r;for(var l=this._navState.axes,c={},p=0;p<l.length;p++){var u=l[p],h=u.options.name;h&&(c[h]=u.scaleRange(-s*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 a=cs(n);this.trigger(r,{axisRanges:a,originalEvent:t})?this._cancelDomEvents():(this._suppressHover=!0,this._unsetActivePoint(),this._navState={axisRanges:a,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=ut(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=lt(this.element);return{left:yt(t.x+e.left+r.left),top:yt(t.y+e.top+r.top)}},e.prototype._toModelCoordinates=function(t,e){var r=this.element,o=lt(r),i=this._elementPadding(),n=kt(r).invert(),a=new O.geometry.Point(t-o.left-i.left,e-o.top-i.top).transform(n);return new Lt(a.x,a.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 Yi)})),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],a=this._getDefaultOpacityForSeries(n),s=this._getInactiveOpacityForSeries(n);e||n===t.series?(n.opacity=a,n.line&&(n.line.opacity=a)):(n.defaultOpacity=a,n.opacity=s,n.line&&(n.line.opacity=s))}},e.prototype._applySeriesOpacity=function(t,e,r,o){for(var i=0;i<t.length;i++){var n=t[i],a=n.series||o;if(a&&(a.highlight||{}).visible&&n.visual){var s=o?o.opacity:n.series.opacity;(a!==e||r)&&n.visual.opacity(r?1:s)}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),nt(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,a=this._eventCoordinates(t);if(this._plotArea.box.containsPoint(a)){if(n&&n.tooltipTracking&&n.series&&n.parent.getNearestPoint){var s=n.parent.getNearestPoint(a.x,a.y,n.seriesIx);if(s&&s!==n)if(this._activePoint=s,!s.hover(this,t))E({},r.tooltip,s.options.tooltip).visible&&o.show(s),i.show(s)}}else gt(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,a=this._tooltip,s=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)})),u=p[0]||{};u.categoryPoints=p,c.length>0&&!this.trigger("seriesHover",u)?(o.visible&&a.showAt(c,t),s.show(c),this._sharedHighlight=!0):a.hide(),this._tooltipCategoryIx=l}else r&&this._sharedHighlight&&(s.hide(),a.hide(),this._sharedHighlight=!1)}else this._sharedHighlight&&(s.hide(),a.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 q,a=[],s=!1,l=0;l<i;l++){var c=o[l],p=c.categoryAxis===t.name||!c.categoryAxis&&0===e,u=c.data,h=u.length,f=c.categoryField&&p;if(s=f||s,f&&h>0)for(var d=(r=Li(t,Gr(c.categoryField,u[0])))?Di:Gr,v=0;v<h;v++){var y=u[v],g=d(c.categoryField,y,this.chartService.intl);!r&&n.get(g)||(a.push([g,y]),r||n.set(g,!0))}}if(a.length>0){r&&(a=function(t,e){void 0===e&&(e=Fe);for(var r=function(t,e){void 0===e&&(e=Fe);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],ht(i))&&i.push(r[n]);return i}(a,(function(t,e){return Fe(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,a=0;a<n;a++)r[a]=r[a]||[],r[a].push(i[a]);return r}(a);t.categories=m[0]}else s&&(t.categories=[])},e.prototype._isBindable=function(t){for(var e=Kr.current.valueFields(t),r=!0,o=0;o<e.length;o++){var i=e[o];if(i===y?i="field":i+="Field",!at(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=Z(n.type,[ro,"donut","funnel"])?o.findPoint((function(r){return r.series.index===t&&r.index===e})):o.pointsBySeriesIndex(t),this._hasInactiveOpacity()&&n.visible&&r){var a=o.series.length>1,s=r.length?r[0]:r;this._displayInactiveOpacity(s,a,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;gt(this.element,((t={}).mousemove=this._mousemove,t)),this._shouldAttachMouseMove()&&nt(this.element,((e={}).mousemove=this._mousemove,e))},e.prototype.applyOptions=function(t,e){us(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,gt(this.element,((t={}).contextmenu=this._clickHandler,t[no]=this._mousewheelHandler,t.mousemove=this._mousemove,t.mouseleave=this._mouseleaveHandler,t)),this.domEvents&&(this.domEvents.destroy(),delete this.domEvents),this._mouseMoveTrackHandler&&gt(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 ss(t,e){if(t)for(var r=0;r<t.length;r++)if(t[r].category===e)return[t[r]]}function ls(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 cs(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 ps=["data","categories"];function us(t,e){for(var r in e)if(!Z(r,ps)&&e.hasOwnProperty(r)){var o=e[r],i=t[r];if(at(i)){var n=null===o;n||!at(o)?(delete t[r],n&&delete e[r]):i&&R(o)&&R(i)&&us(i,o)}}}function hs(t){for(var e=0;e<t.length;e++)t[e].notifyRender()}_t(as,{renderAs:"",chartArea:{},legend:{visible:!0,labels:{}},categoryAxis:{},seriesDefaults:{type:to,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 fs=as,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._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 Lt(this.plotArea.box.x2,e.center().y):new Lt(e.center().x,-2),align:o}},e.prototype._defaultAnchor=function(t,e){return this._slotAnchor({},e)},e}(Kn),vs=[Jr,"bullet"];function ys(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 gs(t,e){for(var r=0;r<t.length;r++)t[r].style.display=e[r]}function ms(t){return k(t)?[t]:t}var 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.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=ys(e.childNodes);this._initialWidth=Math.floor(ct(e).width),gs(e.childNodes,r),t.prototype._resize.call(this)},e.prototype._modelOptions=function(){var t=this.options,e=this._surfaceWrap(),r=ys(e.childNodes),o=document.createElement("span");o.innerHTML="&nbsp;",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),gs(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,a=0;a<o.length;a++){var s=o[a],l=(s.options.series||[])[0];if(l){if(l.type===Jr)return 150;if("bullet"===l.type)return 150;if(l.type===ro)return ct(i).height;var c=s.categoryAxis;if(c){var p=c.categoriesCount()*(!s.options.isStacked&&Z(l.type,[to,"verticalBullet"])?s.seriesOptions.length:1);n=Math.max(n,p)}}}var u=n*e.pointWidth;return u>0&&(u+=r.left+r.right),u},e.prototype._createSharedTooltip=function(t){return new ds(this._plotArea,t)},e.normalizeOptions=function(t){var e=ms(t);return(e=b(e)?{seriesDefaults:{data:e}}:E({},e)).series||(e.series=[{data:ms(e.data)}]),E(e,{seriesDefaults:{type:e.type}}),(Z(e.series[0].type,vs)||Z(e.seriesDefaults.type,vs))&&(e=E({},{categoryAxis:{crosshair:{visible:!1}}},e)),e},e}(fs);_t(xs,{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 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.setup=function(){this._initialOpacity=parseFloat(L(this.element,"opacity").opacity)},e.prototype.step=function(t){L(this.element,{opacity:String(Q(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 ws(t,e){var r=document.createElement("div");return r.className=t,e&&(r.style.cssText=e),r}var Cs=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=ws("k-navigator-hint","display: none; position: absolute; top: 1px; left: 1px;"),e=this.tooltip=ws("k-tooltip k-chart-tooltip"),r=this.scroll=ws("k-scroll");e.innerHTML="&nbsp;",t.appendChild(e),t.appendChild(r)},e.prototype.show=function(t,e,r){var o=this.element,i=this.options,n=this.scroll,a=this.tooltip,s=Ve(We(t)+We(e-t)/2),l=.4*r.width(),c=r.center().x-l,p=(r.center().x-c)/(i.max-i.min),u=s-i.min,h=this.chartService.intl.format(i.format,t,e),f=U(i);this.clearHideTimeout(),this._visible||(L(o,{visibility:"hidden",display:"block"}),this._visible=!0),f&&(h=f({from:t,to:e})),a.innerHTML=h,L(a,{left:r.center().x-a.offsetWidth/2,top:r.y1});var d=L(a,["marginTop","borderTopWidth","height"]);L(n,{width:l,left:c+u*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 _s(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);_t(Cs,{format:"{0:d} - {1:d}",hideDelay:500});var Os=Cs,Ps="_navigator",Ss=Ps;function ks(){}var As=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)),at(o.hint.visible)||(o.hint.visible=o.visible),this.chartObserver=new J(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 Ze(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,a=i.max,s=r.select,l=s.from,c=s.to,p=s.mousewheel,u=(t=o,ks.prototype=t,new ks);0!==o.categoriesCount()&&(this.clean(),u.box=o.box,this.selection=new Fn(e,u,{min:n,max:a,from:l||n,to:c||a,mousewheel:mt(p,{zoom:"left"}),visible:r.visible},new J(this,{selectStart:"_selectStart",select:"_select",selectEnd:"_selectEnd"})),r.hint.visible&&(this.hint=new Os(e.element,e.chartService,{min:n,max:a,template:U(r.hint),format:r.hint.format})))},e.prototype.setRange=function(){var t=this.chart._createPlotArea(!0).namedCategoryAxes[Ss].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(ht(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(),a=n.roundedRange(),s=n.pane.box.containsPoint(i),l=r._plotArea.categoryAxis,c=t.axisRanges[l.options.name],p=this.options.select;if(c&&!s&&o){e=p.from&&p.to?We(p.to)-We(p.from):We(o.options.to)-We(o.options.from);var u=Ve(ft(We(c.min),a.min,We(a.max)-e)),h=Ve(ft(We(u)+e,We(a.min)+e,a.max));this.options.select={from:u,to:h},this.options.liveDrag&&(this.filterAxes(),this.redrawSlaves()),o.set(u,h),this.showHint(u,h)}},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!==Ps&&(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 cr(E({baseUnit:"fit"},t.options.categoryAxis[0],{categories:[e.from,e.to]}),t.chartService).options;o.from=Ne(i.min,-i.baseUnitStep,i.baseUnit),o.to=Ne(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,a=this.mainAxis(),s=t.delta;if(r){var l=a.categoryIndex(r.options.from),c=a.categoryIndex(r.options.to),p=this.chart._eventCoordinates(t.originalEvent);t.originalEvent.preventDefault(),Math.abs(s)>1&&(s*=3),c-l>1?(r.zoom(s,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[Ss]},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:Ps});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===Ii(r,io).length,a=E({type:"date",pane:Ps,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]}}),s=e.categoryAxis;o.push(E({},a,{maxDateGroups:200},s,{name:Ss,title:null,baseUnit:"fit",baseUnitStep:"auto",labels:{visible:!1},majorTicks:{visible:!1}}),E({},a,s,{name:Ss+"_labels",maxDateGroups:20,baseUnitStep:"auto",labels:{position:""},plotBands:[],autoBaseUnitSteps:{minutes:[]},_overlap:!0}),E({},a,s,{name:Ss+"_ticks",maxDateGroups:200,majorTicks:{width:.5},plotBands:[],title:null,labels:{visible:!1,mirror:!0},_overlap:!0})),i.push(E({name:Ss,pane:Ps,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,a=e.seriesDefaults,s=0;s<i.length;s++)o.push(E({color:n[s%n.length],categoryField:e.dateField,visibleInLegend:!1,tooltip:{visible:!1}},a,i[s],{axis:Ss,categoryAxis:Ss,autoBind:e.autoBindElements}))},e}(O.Class),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.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)),As.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=K([].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 As(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===Ps?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===Ss?t=o.categories:t&&o.pane===Ps&&(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===Ps},e.prototype._toggleDragZoomEvents=function(){this._dragZoomEnabled||(this.element.style.touchAction="none",this._dragZoomEnabled=!0)},e}(fs);_t(Ms,{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 js=Ms,Ts=Math.PI/180;function Es(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 Rs=O.drawing.Group,Bs=O.drawing.Path,Is=O.drawing.Text;function Ds(t,e){var r=t.box,o=t.children[0].box,i=e.border||{},n=e.background||"",a=Bs.fromRect(new O.geometry.Rect([r.x1,r.y1],[r.width(),r.height()]),{stroke:{}}),s=new Is(t.text,new O.geometry.Point(o.x1,o.y1),{font:e.font,fill:{color:e.color}}),l=Es(s.bbox().clone(),e.padding),c=Bs.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 Rs;return p.append(a),p.append(c),p.append(s),p}function Ls(t,e,r){var o=at(t.from)?t.from:f,i=at(t.to)?t.to:h;return t.from=Math.max(Math.min(i,o),e),t.to=Math.min(Math.max(i,o),r),t}function Vs(t,e){var r=V(e);return r.left=-r.left,r.top=-r.top,r.right=-r.right,r.bottom=-r.bottom,Es(t,r)}var zs=O.drawing.Path,Ns=O.drawing.Surface,Hs=function(t){function e(e,r,o,i){void 0===i&&(i={}),t.call(this),this.element=e,this.theme=o,this.contextService=new Se(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=Vs(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=Vs(o,r.width)),zs.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=Ns.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);_t(Hs,{plotArea:{},theme:"default",renderAs:"",pointer:{},scale:{},gaugeArea:{}});var Us=Hs,Fs=O.drawing.Path,Gs=O.drawing.Group,Ws=O.geometry.Point;function Ks(t,e){var r,o,i=t.position,n=t.tickX,a=t.tickY;return t.vertical?(r=new Ws(n,i),o=new Ws(n+e.size,i)):(r=new Ws(i,a),o=new Ws(i,a+e.size)),new Fs({stroke:{color:e.color,width:e.width}}).moveTo(r).lineTo(o)}function Xs(t,e,r,o){var i=e.length;if(o.visible)for(var n=r.mirror,a=r.lineBox,s=o.skip;s<i;s+=o.step)s%o.skipUnit!=0&&(r.tickX=n?a.x2:a.x2-o.size,r.tickY=n?a.y1-o.size:a.y1,r.position=e[s],t.append(Ks(r,o)))}var Ys=function(t){function e(e,r){var o=e||{};!at(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||Dt(e.min,e.max),e},e.prototype.initFields=function(){},e.prototype.render=function(){var t=this.elements=new Gs,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||[],a=new Gs,s=n.length,l=t.rangeSize||t.minorTicks.size/2,c=0;c<s;c++){var p=Ls(n[c],e,r),u=this.getSlot(p.from,p.to),h=o?this.lineBox():u,f=o?u:this.lineBox();o?h.x1-=l*(i?-1:1):f.y2+=l*(i?-1:1),a.append(Fs.fromRect(new O.geometry.Rect([h.x1,f.y1],[h.x2-h.x1,f.y2-f.y1]),{fill:{color:p.color,opacity:p.opacity},stroke:{}}))}return a},e.prototype.renderLabels=function(){for(var t=this.labels,e=this.options,r=new Gs,o=0;o<t.length;o++)r.append(Ds(t[o],e.labels));return r},e.prototype.renderLine=function(){var t=this.options.line,e=this.lineBox(),r=new Gs;if(t.width>0&&t.visible){var o=new Fs({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 Gs,e=this.options,r=e.majorTicks.visible?e.majorUnit:0,o={vertical:e.vertical,mirror:e.labels.mirror,lineBox:this.lineBox()};return Xs(t,this.getMajorTickPositions(),o,e.majorTicks),Xs(t,this.getMinorTickPositions(),o,E({},{skipUnit:r/e.minorUnit},e.minorTicks)),t},e}(yr);_t(Ys,{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 qs=Ys,Zs=function(t){function e(e,r){t.call(this);var o=e.options,i=o.min,n=o.max,a=this.options=E({},this.options,r);a.fill=a.color,this.scale=e,at(a.value)?a.value=ft(a.value,i,n):a.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=at(e._oldValue)?e.value:i,e.value=ft(t,i,n),this.elements&&this.repaint()},e}(O.Class);_t(Zs,{color:n});var Qs=Zs,$s=function(t){function e(e,r){t.call(this,e,r),this.options=E({track:{visible:at(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,a=n.mirror,s=n.vertical,l=i.lineBox(),c=o.track.size||o.size,p=o.size/2,u=V(o.margin),h=s?u[a?"left":"right"]:u[a?"bottom":"top"];h=a?-h:h,s?(r=new zt(l.x1+h,l.y1,l.x1+h,l.y2),a?r.x1-=c:r.x2+=c,"barPointer"!==o.shape&&(t=e=new zt(l.x2+h,l.y1-p,l.x2+h,l.y2+p))):(r=new zt(l.x1,l.y1-h,l.x2,l.y1-h),a?r.y2+=c:r.y1-=c,"barPointer"!==o.shape&&(t=e=new zt(l.x1-p,l.y1-h,l.x2+p,l.y1-h))),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:at(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}(Qs);_t($s,{shape:"barPointer",track:{border:{width:1}},color:n,border:{width:1},opacity:1,margin:V(3),animation:{type:"barPointer"},visible:!0});var Js=$s,tl=function(t){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 a=this.fromScale=new O.geometry.Point(r.x1,r.y1),s=this.toScale=new O.geometry.Point(o.x1,o.y1);0!==t.duration&&(t.duration=Math.max(a.distanceTo(s)/t.duration*1e3,1))},e.prototype.step=function(t){var e=Q(this.fromScale.x,this.toScale.x,t),r=Q(this.fromScale.y,this.toScale.y,t);this.element.transform(O.geometry.transform().translate(e,r))},e}(O.drawing.Animation);_t(tl,{easing:"linear",duration:250}),O.drawing.AnimationFactory.current.register("arrowPointer",tl);var el=tl,rl=O.geometry.Point,ol=O.drawing.Path,il=function(t){function e(e,r){t.call(this,e,r),at(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 rl(0,0-r),new rl(0-o*e,0),new rl(0,0+r)]:[new rl(0-r,0),new rl(0,0+o*e),new rl(0+r,0)]},e.prototype.repaint=function(){var t=this.scale,e=this.options,r=new el(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 ol({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}(Js),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.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=Q(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);_t(nl,{easing:"linear",speed:250}),O.drawing.AnimationFactory.current.register("barPointer",nl);var al=nl,sl=O.drawing.Group,ll=O.drawing.Path,cl=function(t){function e(e,r){t.call(this,e,r),at(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,a=i===n?-1:1,s=r.size*a,l=e.getSlot(e.options.min),c=e.getSlot(t),p=n?x:m,u=n?m:x,h=this._margin()*a,f=new O.geometry.Point;f[p]=l[p+"1"],f[u]=l[u+"1"];var d=new O.geometry.Point;d[p]=c[p+"1"],d[u]=c[u+"1"],n?(f.translate(h,0),d.translate(h,0)):(f.translate(0,h),d.translate(0,h));var v=d.clone(),y=f.clone();return n?(v.translate(s,0),y.translate(s,0)):(v.translate(0,s),y.translate(0,s)),[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 al(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 ll({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 ll.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}(Js),pl=O.drawing.Group,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.reflow=function(t){var e=this.pointers,r=t.origin.x,o=t.origin.y,i=new zt(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 pl,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 qs(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?il:cl;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),a=0;a<o.length;a++)n.wrap(o[a].box.clone());return r.options.vertical?(e=n.width()/2,n=new zt(i.x-e,t.y1,i.x+e,t.y2)):(e=n.height()/2,n=new zt(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,a=0;a<r.length;a++)i.wrap(r[a].box.clone());e.options.vertical?(t=n.center().x-i.center().x,e.reflow(new zt(o.x1+t,n.y1,o.x2+t,n.y2))):(t=n.center().y-i.center().y,e.reflow(new zt(o.x1,o.y1+t,o.x2,o.y2+t)));for(var s=0;s<r.length;s++)r[s].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 a=0;a<e.length;a++)e[a].reflow(this.bbox)},e}(Us);_t(ul,{transitions:!0,gaugeArea:{background:""},scale:{vertical:!0}});var hl=ul,fl=O.drawing.Arc,dl=O.drawing.Path,vl=O.drawing.Group;function yl(t,e,r,o){var i=new vl,n=t.center,a=t.getRadiusX();if(o.visible)for(var s=0;s<e.length;s++){var l=t.pointAt(e[s]),c=new O.geometry.Point(n.x+a-o.size,n.y).rotate(e[s],n);i.append(new dl({stroke:{color:o.color,width:o.width}}).moveTo(l).lineTo(c))}return i}function gl(t,e,r,o){return{from:t,to:e,color:r,opacity:o}}var ml=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||Dt(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(!at(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,a=e.endAngle,s=a-n;return(i?a-(t-r)/(o-r)*s:(t-r)/(o-r)*s+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 vl,a=.05*r;at(t.rangeDistance)?a=t.rangeDistance:t.rangeDistance=a;var s=t.labels,l="inside"===s.position,c=at(this.labelElements);l&&(r-=this.ticksSize(),this.hasRanges()&&!c&&(r-=i+a),e.setRadiusX(r).setRadiusY(r));for(var p=this.labels,u=p.length,h=V(s.padding),f=(h.left+h.right)/2,d=(h.top+h.bottom)/2,v=0;v<u;v++){var y=p[v],g=y.box.width()/2,m=y.box.height()/2,x=o[v],b=(x-180)*Ts,_=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 zt(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=Ds(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,a=0;a<t.length;a++)t[a]._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 vl;if(e){var o=this.options,i=o.rangeSize,n=o.reverse,a=o.rangeDistance,s=this.getRangeRadius();this.radius(this.radius()-i-a);for(var l=0;l<e;l++){var c=t[l],p=this.slotAngle(c[n?"to":"from"]),u=this.slotAngle(c[n?"from":"to"]);u-p!=0&&r.append(this.createRange(p,u,s,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 fl(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,a=t.rangePlaceholderColor;o.push(gl(i,n,a));for(var s=0;s<r;s++)for(var l=Ls(e[s],i,n),c=o.length,p=0;p<c;p++){var u=o[p];if(u.from<=l.from&&l.from<=u.to){o.push(gl(l.from,l.to,l.color,l.opacity)),u.from<=l.to&&l.to<=u.to&&o.push(gl(l.to,u.to,a,l.opacity)),u.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=yl(r,this.majorTickAngles,e.majorUnit,e.majorTicks);var o=new vl;o.append(this.majorTicks);var i=e.majorTicks.size,n=e.minorTicks.size;if(this._tickDifference=i-n,"outside"===e.labels.position){var a=r.getRadiusX();r.setRadiusX(a-i+n).setRadiusY(a-i+n)}return this.minorTickAngles=this.normalizeTickAngles(this.tickAngles(t,e.minorUnit)),this.minorTicks=yl(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,a=i/e,s=t.startAngle,l=n/a;o&&(s+=n,l=-l),n>=360&&r.max%e==0&&(a-=1);for(var c=[],p=0;p<a;p++)c.push(yt(s,3)),s+=l;return yt(s)<=t.endAngle&&c.push(s),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 a=0;a<t.length;a++){var s=i.pointAt(e[a]),l=t[a].segments,c=s.x-l[0].anchor().x,p=s.y-l[0].anchor().y;t[a].transform((new O.geometry.transform).translate(c,p))}},e}(yr);_t(ml,{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 xl=ml,bl=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=Q(e.oldAngle,e.newAngle,t);this.element.transform(O.geometry.transform().rotate(r,e.center))},e}(O.drawing.Animation);_t(bl,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialPointer",bl);var _l=bl,wl=O.drawing.Circle,Cl=O.drawing.Group,Ol=O.drawing.Path,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.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 _l(this.elements,E(e.animation,{oldAngle:r,newAngle:o})).play()},e.prototype.render=function(){var t=this.scale,e=this.options,r=new Cl;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(Ts),r},e.prototype.reflow=function(t){var e=this.center=t.center,r=ft(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 Ol({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 wl(r,{fill:{color:e},stroke:{color:e}})},e}(Qs);_t(Pl,{cap:{size:.05},arrow:{width:16,height:14},animation:{type:"radialPointer",duration:150}});var Sl=Pl,kl=O.drawing.Group,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.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 kl;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,a=this.scale.arc,s=this._initialPlotArea,l=Math.abs(this.getDiff(s,t)),c=yt(l,3),p=yt(-l,3),u=0,h=0;!(!(h++<100)||(u=n===o?u+1:0)>5||c!==i&&0<=(e=this.getPlotBox(c,t,a))&&e<=2||p!==i&&0<=(o=this.getPlotBox(p,t,a))&&o<=2||(i=e>0&&o>0?2*c:e<0&&o<0?2*p:yt((c+p)/2||1,3),0<=(r=this.getPlotBox(i,t,a))&&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(),a=r.clone();a.setRadiusX(n+t).setRadiusY(n+t),o.arc=a,o.reflow(e),this.plotBbox=o.bbox;for(var s=0;s<i.length;s++)i[s].reflow(a),this.plotBbox=O.geometry.Rect.union(this.plotBbox,i[s].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,a=this.pointers;n.arc.center.x-=o,n.arc.center.y-=i,n.reflow(t);for(var s=0;s<a.length;s++)a[s].reflow(n.arc),this.plotBbox=O.geometry.Rect.union(n.bbox,a[s].bbox)},e.prototype._createModel=function(){var t=this.options,e=t.pointer,r=this.scale=new xl(t.scale,this.contextService);this.pointers=[];for(var o=b(e)?e:[e],i=0;i<o.length;i++){var n=new Sl(r,E({},o[i],{animation:{transitions:t.transitions}}));this.pointers.push(n)}},e}(Us);_t(Al,{transitions:!0,gaugeArea:{background:""}});var Ml=Al,jl=function(t){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),a=this.createRange(i,n,this.getRangeRadius(),r);return this.ranges.append(a),a},e}(xl);_t(jl,{min:0,max:100,majorTicks:{visible:!1},minorTicks:{visible:!1},labels:{visible:!1},startAngle:0,endAngle:180,rangeLineCap:"round"});var Tl=jl,El=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=ft(i,150,800);var n=e.elements.options.get("stroke.color"),a=e.currentColor();n!==a&&(this.startColor=new O.Color(n),this.color=new O.Color(a))}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=Q(e.oldAngle,e.newAngle,t);if(this.element.angle(i),o){var n=yt(Q(r.r,o.r,t)),a=yt(Q(r.g,o.g,t)),s=yt(Q(r.b,o.b,t));this.element.stroke(new O.Color(n,a,s).toHex())}},e}(O.drawing.Animation);_t(El,{easing:"linear",duration:150}),O.drawing.AnimationFactory.current.register("radialRangePointer",El);var Rl=El,Bl=function(t){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 Rl(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,a=o.value,s=k(a)?a:e;if(i)for(var l=0;l<i.length;l++){var c=i[l],p=c.color,u=c.from;void 0===u&&(u=e);var h=c.to;if(void 0===h&&(h=r),u<=s&&s<=h)return p}return n},e.prototype.reflow=function(){this.render(),this.bbox=this.elements.bbox()},e}(Qs);_t(Bl,{animation:{type:"radialRangePointer",duration:150}});var Il=Bl,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._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 Tl(t.scale,this.contextService),r=new Il(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 a=i+t;i=Math.max(i,0),a>r.width&&(i-=a-r.width)}if(e<r.height){var s=this.scale.bbox,l=s.bottomRight().y,c=n+e;n=Math.max(n,s.origin.y),c>l&&(n-=c-l)}return{left:i,top:n}},e}(Ml),Ll=function(t){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}(Dl),Vl=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=at(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);_t(Vl,{quietZoneLength:10,addQuietZone:!0,addCheckSum:!0});var zl=Object.assign,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),zl(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}(Vl);_t(Nl,{addCheckSum:!0});var Hl=Object.assign,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),Hl(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}(Vl),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),Hl(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.ceil(Math.max(.15*this.width,24)),i=this.maxRatio;if(this.height<o)throw new Error("Insufficient height for Code39 encoding: the current height is "+this.height+"px and the minimum height is "+o+"px.");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 for Code39 encoding: the current width is "+this.width+'px and the minimum width for value "'+this.value+'" is '+n+"px.")}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}(Ul);_t(Fl,{addCheckSum:!1});var Gl={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"]},Wl=function(t){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,Gl,{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}(Fl),Kl=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),Kl(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.ceil(Math.max(.15*this.width,24));if(this.height<t)throw new Error("Insufficient height for Code93 encoding: the current height is "+this.height+"px, the minimum required height is "+t+"px.");if(this.setBaseUnit(),this.baseUnit<this.minBaseUnitLength){var e=Math.ceil(this.minBaseUnitLength*(this.width/this.baseUnit));throw new Error("Insufficient width for Code93 encoding: the current width is "+this.width+'px and the minimum required width for value "'+this.value+'" is '+e+"px.")}},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}(Ul),Yl=function(t){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,Gl,{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}(Xl),ql=/^\d+$/,Zl=Object.assign,Ql=function(t){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),Zl(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(ql.test(t)||this.invalidCharacterError(t.match(/[^0-9]/)[0]),!Z(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}(Vl),$l=/^\d+$/,Jl=/^[a-z0-9]+$/i,tc=Object.assign,ec=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),rc=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(Z("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=[],Z(this.FNC4,t)&&this._moves.push(this._moveFNC),Z(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}(ec),oc={};oc.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),tc(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}(rc),oc.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),tc(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}(rc),oc.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),tc(this,{key:"C",MOVE:99,START:105})},e.prototype.addStart=function(){this.encoding.addPattern(this.START)},e.prototype.is=function(t,e){var r=pc(t,e,4);return(e+4<=t.length||2===t.length)&&$l.test(r)},e.prototype.move=function(){this.encoding.addPattern(this.MOVE)},e.prototype.pushState=function(t){for(var e;(e=pc(t.value,t.index,2))&&$l.test(e)&&2===e.length;)this.encoding.addPattern(parseInt(e,10)),t.index+=2},e.prototype.getValue=function(t){return t},e}(ec),oc.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),tc(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++)Z(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}(ec),oc.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),tc(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 Z(this.key,this.states)},e.prototype.pushState=function(t){var e,r,o,i=this.encoding,n=t.value.replace(/\s/g,""),a=new RegExp("["+this.startAI+this.endAI+"]","g"),s=t.index,l={state:this.startState};i.addPattern(this.START);for(;;){if(l.index=0,(e=(o=n.charAt(s)===this.startAI?2:0)>0?this.getBySeparator(n,s):this.getByLength(n,s)).ai.length)r=s+o+e.id.length+e.ai.length;else if((r=n.indexOf(this.startAI,s+1))<0){if(s+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(s,r).replace(a,""),this.validate(e,l.value),i.pushData(l,this.dependentStates),r>=n.length)break;s=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&&!$l.test(r))throw new Error("Application identifier "+t.id+" is numeric only but contains non numeric character(s).");if("alphanumeric"===o.type&&!Jl.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=pc(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&&Z(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}(ec);var ic=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),tc(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 oc[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}(Vl),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),tc(this,{name:"Code 128 A",states:["A"]})},e}(ic),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),tc(this,{name:"Code 128 B",states:["B"]})},e}(ic),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),tc(this,{name:"Code 128 C",states:["C"]})},e}(ic),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),tc(this,{name:"Code 128",states:["C","B","A","FNC4"]})},e}(ic),cc=function(t){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),tc(this,{name:"Code GS1-128",states:["FNC1","C","B"]})},e}(ic);function pc(t,e,r){return t.substring(e,e+r)}var uc=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),uc(this,{characterMap:["12121212","12121221","12122112","12122121","12211212","12211221","12212112","12212121","21121212","21121221"],START:"21",STOP:"121",checkSumType:"",checkSums:gc})},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}(Vl),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),uc(this,{name:"MSI Modulo10",checkSumType:"Modulo10"})},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),uc(this,{name:"MSI Modulo11",checkSumType:"Modulo11"})},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),uc(this,{name:"MSI Modulo10 Modulo10",checkSumType:"Modulo10Modulo10"})},e}(hc),yc=function(t){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),uc(this,{name:"MSI Modulo11 Modulo10",checkSumType:"Modulo11Modulo10"})},e}(hc),gc={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))}},mc=Object.assign,xc=function(t){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),mc(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}(Vl),bc=Object.assign,_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),bc(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}(xc),wc={code11:Nl,code39:Fl,code39extended:Wl,code93:Xl,code93extended:Yl,code128:lc,code128a:nc,code128b:ac,code128c:sc};wc["gs1-128"]=cc,wc.msimod10=fc,wc.msimod11=dc,wc.msimod1010=vc,wc.msimod1110=yc,wc.postnet=Ql,wc.ean8=_c,wc.ean13=xc;var Cc=function(t){function e(e,r,o){void 0===o&&(o=It),t.call(this),this.options=E({},this.options,r),this.element=e,this.onError=o,this._initElement(),this._initSurface(),this._setOptions(r),r&&at(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")},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),a=this._getSize(),s=r.border||{},l=this.encoding,c=new zt(0,0,a.width,a.height).unpad(s.width).unpad(r.padding),p=c.height(),u=new O.drawing.Group;this.contentBox=c,u.append(this._getBackground(a)),i.visible&&(p-=O.drawing.util.measureText(o,{font:i.font}).height+n.top+n.bottom);try{t=l.encode(o,c.width(),p)}catch(t){return this.onError(t),u}return i.visible&&(e=o,r.checksum&&at(l.checksum)&&(e+=" "+l.checksum),u.append(this._getText(e))),this.barHeight=p,this._bandsGroup=this._getBands(t.pattern,t.baseUnit),u.append(this._bandsGroup),u},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(!at(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,a=new O.drawing.Group,s=0;s<t.length;s++){if(r=(o=R(t[s])?t[s]:{width:t[s],y1:0,y2:this.barHeight}).width*e,s%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});a.append(c)}n+=r}return a},e.prototype._getBackground=function(t){var e=this.options,r=e.border||{},o=new zt(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 le(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),!wc[this.type])throw new Error("Encoding '"+this.type+"' is not supported.");this.encoding=new wc[this.type],this.options=E({},this.options,t)},e}(O.Class);_t(Cc,{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 Oc=Cc,Pc={width:500,height:100};var Sc=function(t,e){if(void 0===e&&(e=Pc),!t)throw new Error("Please specify barcode type to validate.");var r=t.toLowerCase(),o="";if("upca"===r?(r="ean13",o="0"):"upce"===r&&(r="ean8",o="0"),!wc[r])throw new Error("Encoding '"+t+"' is not supported.");return function(t,e,r){return function(o){try{t.encode(r+o,e.width,e.height)}catch(t){return{valid:!1,error:t}}return{valid:!0}}}(new wc[r],e,o)},kc=Object.assign;function Ac(t,e){for(var r=[],o=0;o<t.length;)r.push(t.substring(o,o+e)),o+=e;return r}function Mc(t,e){var r=Number(t).toString(2);return r.length<e&&(r=new Array(e-r.length+1).join(0)+r),r}function jc(t){return parseInt(t,2)}var Tc=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),Ec=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),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.getEncodingResult=function(t,e){var r=function(t){var e,r=[],o=0,i=t;r.push(ap(i,8,5,8,e)),e=r[0].mode,i=i.substr(r[0].modeString.length);for(;i.length>0;){var n=ap(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=sp(function(t){for(var e,r=0,o=0;o<t.length;o++)e=Vc[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=Vc[t[i].mode],o+=r.encode(t[i].modeString,e);return o}(r,o);return new Ec(i,o)},e}(O.Class),Bc=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(){kc(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+Mc(t,this.getBitsCharacterCount(e))},e.prototype.encode=function(){},e.prototype.getStringBitsLength=function(){},e.prototype.getValue=function(){},e}(O.Class),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),kc(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=Ac(t,3),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=Mc(o[r],10);return i+Mc(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}(Bc),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),kc(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=Ac(t,2),i=this.getModeCountString(t.length,e);for(r=0;r<o.length-1;r++)i+=Mc(45*this.getValue(o[r].charAt(0))+this.getValue(o[r].charAt(1)),11);return i+Mc(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}(Bc),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),kc(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 in QR Code: "'+t+'".')},e.prototype.encode=function(t,e){for(var r=this.getModeCountString(t.length,e),o=0;o<t.length;o++)r+=Mc(this.getValue(t.charAt(o)),8);return r},e.prototype.getStringBitsLength=function(t,e){return 4+this.getBitsCharacterCount(e)+8*t},e}(Bc),Vc={};Vc.numeric=new Ic,Vc.alphanumeric=new Dc,Vc.byte=new Lc;var zc=function(t){function e(){t.call(this),this.initProperties(),this.mode=Vc[this.encodingMode]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initProperties=function(){kc(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=sp(this.getDataCodewordsCount(r),e),i=this.mode.getModeCountString(r.length/8,o)+r;return new Ec(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=Mc(t,8);else{for(var i=8-e,n=0;n<r;n++)o=Mc(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),Nc=[{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}}],Hc={1:0},Uc={0:1},Fc={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},Gc=[1,0,1,1,1],Wc=[1,0,1],Kc={L:"01",M:"00",Q:"11",H:"10"},Xc=["11101100","00010001"],Yc=[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}],qc=/^\d+/,Zc=new RegExp("^[A-Z $%*+./:-]+"),Qc=new RegExp("^[A-Z0-9 $%*+./:-]+"),$c=new RegExp("^[^A-Z0-9 $%*+./:-]+"),Jc=[[1,0],[1,25,0]];function tp(t,e,r,o){for(var i=0;i<t.length;i++)t[i][r][o]=e}function ep(t,e,r,o){for(var i=0;i<Yc.length;i++)t[i][r][o]=Yc[i](r,o)?1^e:parseInt(e,10)}function rp(t,e){for(var r=[],o=t.length-2;o>=0;o--)r[o]=t[o]^e[o];return r}function op(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]=Hc[Uc[r[o+i]]^Uc[(t[o]+e[i])%255]];return r}function ip(t,e){var r=[],o=t.length-1;do{r[o]=Uc[(t[o]+e)%255],o--}while(void 0!==t[o]);return r}function np(t,e){var r,o,i=Jc[e-1],n=new Array(e).concat(t),a=new Array(n.length-i.length).concat(i),s=t.length,l=[];for(o=0;o<s;o++)r=ip(a,Hc[n[n.length-1]]),a.splice(0,1),n=rp(r,n);for(o=n.length-1;o>=0;o--)l[e-1-o]=Mc(n[o],8);return l}function ap(t,e,r,o,i){var n,a,s=qc.exec(t),l=s?s[0]:"",c=Zc.exec(t),p=c?c[0]:"",u=Qc.exec(t),h=u?u[0]:"";return l&&(l.length>=e||t.length===l.length||l.length>=r&&!Qc.test(t.charAt(l.length)))?(n="numeric",a=l):h&&(t.length===h.length||h.length>=o||"alphanumeric"===i)?(n="alphanumeric",a=l||p):(n="byte",a=h?h+$c.exec(t.substring(h.length))[0]:$c.exec(t)[0]),{mode:n,modeString:a}}function sp(t,e){var r=0,o=Nc.length-1,i=Math.floor(Nc.length/2);do{t<Nc[i][e].totalDataCodewords?o=i:r=i,i=r+Math.floor((o-r)/2)}while(o-r>1);return t<=Nc[r][e].totalDataCodewords?i+1:o+1}function lp(t,e,r){var o=jc(e),i=e.length-1,n=t<<i,a=Mc(t,r-i),s=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 s=a+Mc(s,i)}function cp(t,e){return parseInt(t.charAt(e),10)}function pp(t,e){var r,o,i=t[0],n=0,a=e.length;for(r=0,o=8;r<=8;r++)6!==r&&tp(t,cp(e,a-1-n++),r,o);for(r=8,o=7;o>=0;o--)6!==o&&tp(t,cp(e,a-1-n++),r,o);for(n=0,o=i.length-1,r=8;o>=i.length-8;o--)tp(t,cp(e,a-1-n++),r,o);for(tp(t,1,i.length-8,8),r=i.length-7,o=8;r<i.length;r++)tp(t,cp(e,a-1-n++),r,o)}function up(t,e){for(var r,o,i,n=t[0].length,a=n-11,s=n-11,l=0;l<e.length;l++)r=Math.floor(l/3),o=l%3,tp(t,i=cp(e,e.length-l-1),0+r,a+o),tp(t,i,s+o,0+r)}function hp(t,e,r,o){for(var i,n=e.length+2,a=e.length+1,s=0;s<e.length;s++)for(var l=s;l<n-s;l++)tp(t,i=e[s],r+l,o+s),tp(t,i,r+s,o+l),tp(t,i,r+a-l,o+a-s),tp(t,i,r+a-s,o+a-l)}function fp(t,e,r,o){var i=r,n=o,a=t[0];do{tp(t,0,i,o),tp(t,0,r,n),i+=e[0],n+=e[1]}while(i>=0&&i<a.length)}function dp(t,e,r,o,i){e[t][o]=(e[t][o]<<1^i)%128,93===e[t][o]&&(r[t]+=40)}function vp(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 yp(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 gp(t,e,r){var o=function(t){return t&&t.toLowerCase().indexOf("utf_8")>=0?new zc:new Rc}(r).getEncodingResult(t,e),i=o.version,n=Nc[i-1][e],a=function(t,e){for(var r,o,i,n,a,s=0,l=[],c=[],p=e.groups,u=0;u<p.length;u++){i=p[u][0];for(var h=0;h<i;h++){o=p[u][1],r=[],n=[];for(var f=1;f<=o;f++)a=t.substring(s,s+8),r.push(a),n[o-f]=jc(a),s+=8;l.push(r),c.push(np(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+=Xc[i],i^=1;return n}(o.dataString,n.totalDataCodewords),n),s=function(t){for(var e=[],r=17+4*t,o=0;o<Yc.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;hp(t,Gc,0,0),fp(t,[-1,-1],7,7),hp(t,Gc,e-7,0),fp(t,[1,-1],e-8,7),hp(t,Gc,0,e-7),fp(t,[-1,1],7,e-8)}(s),function(t,e){if(!(e<2)){var r,o,i=t[0],n=i.length,a=Math.floor(e/7),s=[6],l=0;for((r=Fc[e])?o=(n-13-r)/a:r=o=(n-13)/(a+1),s.push(s[l++]+r);s[l]+o<n;)s.push(s[l++]+o);for(var c=0;c<s.length;c++)for(var p=0;p<s.length;p++)void 0===i[s[c]][s[p]]&&hp(t,Wc,s[c]-2,s[p]-2)}}(s,i),function(t){for(var e=1,r=t[0].length,o=8;o<r-8;o++)tp(t,e,6,o),tp(t,e,o,6),e^=1}(s),i>=7&&up(s,Mc(0,18)),pp(s,Mc(0,15)),function(t,e){for(var r,o,i,n=new Tc(t[0]),a=0;a<e.length;a++)for(r=e[a],o=0;r.length>0;){for(var s=0;s<r.length;s++)for(var l=0;l<8;l++)i=n.getNextCell(),ep(t,r[s][o].charAt(l),i.row,i.column);for(o++;r[0]&&o===r[0].length;)r.splice(0,1)}for(;i=n.getNextRemainderCell();)ep(t,0,i.row,i.column)}(s,a);var l=function(t){var e,r,o=[],i=[],n=[],a=[],s=[],l=t[0].length;for(r=0;r<t.length;r++)o[r]=0,n[r]=0,s[r]=[0,0],a[r]=[0,0],i[r]=[];for(var c=0;c<l;c++)for(var p=0;p<l;p++)for(var u=0;u<t.length;u++)e=t[u],n[u]+=parseInt(e[c][p],10),i[u][0]===e[c][p]&&c+1<l&&p-1>=0&&e[c+1][p]===i[u][0]&&e[c+1][p-1]===i[u][0]&&(o[u]+=3),dp(u,a,o,0,e[c][p]),dp(u,a,o,1,e[p][c]),vp(u,o,i,e[c][p],s,0),vp(u,o,i,e[p][c],s,1);var h,f=l*l,d=Number.MAX_VALUE;for(r=0;r<o.length;r++)o[r]+=yp(n[r],f),o[r]<d&&(d=o[r],h=r);return h}(s),c=s[l];return i>=7&&up([c],function(t){return lp(t,"1111100100101",18)}(i)),pp([c],function(t){var e,r="";if(0===jc(t))return"101010000010010";e=lp(jc(t),"10100110111",15);for(var o=0;o<e.length;o++)r+=e.charAt(o)^"101010000010010".charAt(o);return r}(Kc[e]+Mc(l,3))),c}!function(){var t,e;for(e=1;e<255;e++)(t=2*Uc[e-1])>255&&(t^=285),Uc[e]=t,Hc[t]=e;t=2*Uc[e-1]^285,Uc[e]=t,Uc[-1]=0}(),function(){for(var t=2;t<=68;t++){var e=Jc[t-1],r=[t,0];Jc[t]=op(e,r)}}();var mp=Math.round,xp=[[0,1],[1,1],[1,2],[2,2],[2,1],[3,1],[3,0],[2,0],[2,-1],[1,-1],[1,0]],bp=[[0,1],[1,1],[1,0]],_p=200,wp="L",Cp="#fff",Op="#000",Pp=1,Sp=7,kp=function(t){function e(e,r,o){void 0===o&&(o=It),t.call(this),this.options=E({},this.options,r),this.element=e,this.wrapper=this.element,this.onError=o,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")},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,a=this.options.border||{},s=this.options.padding||0,l=a.width||0;a.width=l;var c=new O.drawing.Group;try{n&&(r=gp(n,this.options.errorCorrection,this.options.encoding),i=(o=this._getSize())-2*(l+s),t=this._calculateBaseUnit(i,r.length),e=l+s+(i-r.length*t)/2,c.append(this._renderBackground(o,a)),c.append(this._renderMatrix(r,t,e)),this._hasCustomLogo()?c.append(this._renderLogo(o,t)):this._isSwiss()&&c.append(this._renderSwissCode(o,t)))}catch(t){this.onError(t)}return c},e.prototype._renderLogo=function(t,e){var r,o=mp(t/2),i=this._getLogoSize(e*Sp),n=this.options.overlay.imageUrl,a={x:o-i.width/2,y:o-i.height/2};return r=new O.geometry.Rect(new O.geometry.Point(a.x,a.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*Sp),o=(r=Math.max(r.width,r.height))/4,i=o/2,n=t/2,a={},s=new O.drawing.Group;return a.x=a.y=Math.ceil(n-e-r/2),s.append(this._renderShape(a,Math.ceil(r+2*e),bp,"#fff")),a.x=a.y=n-r/2,s.append(this._renderShape(a,r,bp,this.options.color)),a.x=n+i-r/2,a.y=n+i+o-r/2,s.append(this._renderShape(a,o,xp,"#fff")),s},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:_p}return t},e.prototype._calculateBaseUnit=function(t,e){var r=Math.floor(t/e);if(r<Pp){var o=Math.ceil(e*Pp);this.onError(new Error("Insufficient size for QR Code: the current size is "+t+"px and the minimum size is "+o+"px."))}else r*e>=t&&r-1>=Pp&&r--;return 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,a=0;a<t.length;){for(;0===t[i][a]&&a<t.length;)a++;if(a<t.length){for(var s=a;1===t[i][a];)a++;var l=mp(r+s*e),c=mp(n),p=mp(r+a*e),u=mp(n+e);o.moveTo(l,c).lineTo(l,u).lineTo(p,u).lineTo(p,c).close()}}return o},e.prototype._renderBackground=function(t,e){var r=new zt(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=kc(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);_t(kp,{name:"QRCode",renderAs:"svg",encoding:"ISO_8859_1",value:"",errorCorrection:wp,background:Cp,color:Op,size:"",padding:0,border:{color:"",width:0},overlay:{type:"image",imageUrl:"",width:0,height:0}});var Ap=kp;var Mp=function(t){return void 0===t&&(t="ISO_8859_1"),function(e){try{gp(e,"L",t)}catch(t){return{valid:!1,error:t}}return{valid:!0}}},jp="Arial, Helvetica, sans-serif",Tp="12px "+jp,Ep="16px "+jp,Rp=function(){return{icon:{border:{width:1}},label:{font:Tp,padding:3},line:{length:10,width:2},visible:!0}},Bp=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:Rp(),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}}},Ip=function(t){return void 0===t&&(t={}),{axisDefaults:{labels:{font:Tp},notes:Rp(),title:{font:Ep,margin:5}},categoryAxis:{majorGridLines:{visible:!0}},navigator:{pane:{height:90,margin:{top:10}}},seriesDefaults:Bp(t),title:{font:Ep},legend:{labels:{font:Tp}}}}},function(t,e,r){"use strict";r.r(e),r.d(e,"ZIndexContext",(function(){return o.a})),r.d(e,"useZIndexContext",(function(){return o.b})),r.d(e,"BrowserSupportService",(function(){return n})),r.d(e,"canUseDOM",(function(){return a.a})),r.d(e,"canUseRef",(function(){return s})),r.d(e,"classNames",(function(){return l.a})),r.d(e,"cloneDate",(function(){return p})),r.d(e,"clone",(function(){return u})),r.d(e,"cloneObject",(function(){return h})),r.d(e,"cloneValue",(function(){return f})),r.d(e,"cloneArray",(function(){return d})),r.d(e,"focusFirstFocusableChild",(function(){return v})),r.d(e,"FormComponent",(function(){return y})),r.d(e,"getTabIndex",(function(){return g})),r.d(e,"getter",(function(){return _})),r.d(e,"guid",(function(){return w})),r.d(e,"Keys",(function(){return C})),r.d(e,"noop",(function(){return O})),r.d(e,"getScrollbarWidth",(function(){return P})),r.d(e,"setScrollbarWidth",(function(){return S})),r.d(e,"setter",(function(){return M})),r.d(e,"mapTree",(function(){return E})),r.d(e,"mapTreeItem",(function(){return R})),r.d(e,"extendDataItem",(function(){return B})),r.d(e,"getItemPath",(function(){return I})),r.d(e,"validatePackage",(function(){return D.a})),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 at})),r.d(e,"Typography",(function(){return xt})),r.d(e,"DragAndDrop",(function(){return St})),r.d(e,"Draggable",(function(){return zt})),r.d(e,"Droppable",(function(){return Ht})),r.d(e,"useDraggable",(function(){return Vt})),r.d(e,"useDroppable",(function(){return Nt})),r.d(e,"kendoThemeMaps",(function(){return Ut}));var o=r(16),i=function(){return"undefined"!=typeof document?document:{}},n=function(){function t(){}return Object.defineProperty(t.prototype,"scrollbarWidth",{get:function(){var t=i();if(!this.scrollbar&&t&&t.createElement){var e=t.createElement("div");e.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",e.innerHTML="&nbsp;",t.body.appendChild(e),this.scrollbar=e.offsetWidth-e.scrollWidth,t.body.removeChild(e)}return this.scrollbar},enumerable:!0,configurable:!0}),t}(),a=r(11),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))},l=r(12),c=r(0),p=function(t){return t?new Date(t.getTime()):null};function u(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]=f(o,e[r])}}function f(t,e){if(Array.isArray(t))return d(t);if(t instanceof Date)return p(t);if(c.isValidElement(t))return c.cloneElement(t,t.props);if(t&&"object"==typeof t){var r=e||{};return h(t,r),r}return t}function d(t){return t.map((function(t){return f(t,void 0)}))}var v=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()}},y=function(){},g=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},m=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g;function x(t){var e=[];return t.replace(m,(function(t,r,o,i){e.push(void 0!==r?r:o||i)})),e}var b={};function _(t){if(b[t])return b[t];var e=x(t);return b[t]=function(t){for(var r=t,o=0;o<e.length&&r;o++)r=r[e[o]];return r},b[t]}b.undefined=function(){};var w=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},C={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},O=function(){},P=function(){return!(!a.a||!document.body)&&(new n).scrollbarWidth},S=function(){if(!a.a||!document.body)return!1;var t=(new n).scrollbarWidth;document.body.style.setProperty("--kendo-scrollbar-width",t+"px")},k={undefined:function(t){return t}},A=function(t,e){return e&&e.arrays&&!isNaN(Number(t))?[]:{}};function M(t){if(k[t])return k[t];var e=x(t);return k[t]=function(t,r,o){for(var i=t,n=e.length-1,a=0;a<n&&i;a++)i=i[e[a]]=i[e[a]]||A(e[a+1],o);i[e[n]]=r},k[t]}var j=function(){return(j=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 T(t,e,r){var o;return r?j({},t,((o={})[e]=r.length?r.slice():void 0,o)):t&&t[e]?t[e].slice():[]}var E=function(t,e,r){return t.map((function(t){return function t(e,r,o){if(e[r]){var i=T(e,r).map((function(e){return t(e,r,o)}));return o(T(e,r,i))}return o(e)}(t,e,r)})).slice()},R=function(t,e,r,o){for(var i=t,n=[],a=0;a<e.length;a++)i=i[e[a]],i=Array.isArray(i)?i:i[r],n.push(i);var s=n.length>1?n[n.length-2]:t,l=e[e.length-1],c=o(s[l]);s.splice(l,1,c)},B=function(t,e,r){var o;return Object.assign({},t,t[e]?((o={})[e]=t[e].slice(),o):{},r||{})},I=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},D=r(17),L=function(t){if(!a.a)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=c.useRef(!1),a=c.useRef(0),s=c.useCallback((function(t){clearTimeout(a.current),a.current=window.setTimeout((function(){return t()}))}),[a]),l=c.useCallback((function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];clearTimeout(a.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=c.useCallback((function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];i&&i.call.apply(i,[void 0].concat(t)),s((function(){n.current&&r&&(n.current=!1,r.call.apply(r,[void 0].concat(t)))}))}),[n,s,r,i]);return c.useEffect((function(){return function(){clearTimeout(a.current)}}),[]),{onFocus:l,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 c.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 c.createContext((function(t){return t}))},W=function(t,e){return c.forwardRef((function(r,o){var i=U(t,r);return c.createElement(e,F({},i,{ref:o}))}))};function K(t,e,r){var o=c.useState(e),i=o[0],n=o[1];return c.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=c.useState(e),i=o[0],n=o[1];return c.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=c.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=c.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:c.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:c.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:c.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:c.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:c.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:c.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:c.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 c.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=c.useRef(t),r=c.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=c.forwardRef((function(t,e){var r=t.className,o=t.name,i=t.themeColor,n=t.size,a=t.flip,s=t.style,p=et(t,["className","name","themeColor","size","flip","style"]),u=c.useRef(null),h=c.useRef(null);c.useImperativeHandle(u,(function(){return{element:h.current}})),c.useImperativeHandle(e,(function(){return u.current}));var f=c.useMemo((function(){return i||ot.themeColor}),[i]),d=c.useMemo((function(){return n||ot.size}),[n]),v=c.useMemo((function(){return a||ot.flip}),[a]),y=c.useMemo((function(){return Object(l.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,u);return c.createElement("span",tt({ref:h},p,g,{className:y,style:s,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},at=c.forwardRef((function(t,e){var r=t.children,o=t.className,i=t.svgClassName,n=t.icon,a=t.flip,s=t.size,p=t.style,u=t.svgStyle,h=t.themeColor,f=t.viewBox,d=nt(t,["children","className","svgClassName","icon","flip","size","style","svgStyle","themeColor","viewBox"]),v=c.useRef(null);c.useImperativeHandle(e,(function(){return{element:v.current}}));var y=c.useMemo((function(){return n?n.name:st.icon}),[n]),g=c.useMemo((function(){return h||st.themeColor}),[h]),m=c.useMemo((function(){return s||st.size}),[s]),x=c.useMemo((function(){return a||st.flip}),[a]),b=c.useMemo((function(){return f||st.viewBox}),[f]),_=c.useMemo((function(){return Object(l.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=c.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 c.createElement("span",{className:_,style:w,ref:v},c.createElement("svg",it({className:i,style:u,"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))}));at.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 st={size:"default",themeColor:"inherit",flip:"default",icon:"",viewBox:"0 0 24 24"};at.displayName="KendoSvgIcon";var lt={xsmall:"k-fs-xs",small:"k-fs-sm",medium:"k-fs-md",large:"k-fs-lg",xlarge:"k-fs-xl"},ct={light:"k-font-weight-light",normal:"k-font-weight-normal",bold:"k-font-weight-bold"},pt={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"},ht={top:"k-mt-",right:"k-mr-",bottom:"k-mb-",left:"k-ml-"},ft={left:"k-text-left",right:"k-text-right",center:"k-text-center",justify:"k-text-justify"},dt={lowercase:"k-text-lowercase",uppercase:"k-text-uppercase",capitalize:"k-text-capitalize"},vt={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"},yt=function(){return(yt=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)},gt=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},mt=function(t){var e=c.forwardRef((function(e,r){var o=e.className,i=e.fontSize,n=e.fontWeight,a=e.textAlign,s=e.textTransform,l=e.themeColor,p=e.margin,u=gt(e,["className","fontSize","fontWeight","textAlign","textTransform","themeColor","margin"]),h=c.useRef(null),f=c.useRef(null);c.useImperativeHandle(h,(function(){return{element:f.current,props:e}})),c.useImperativeHandle(r,(function(){return h.current}));var d=t,v=function(){if(void 0!==p){if("string"==typeof p)return[pt[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],""+ht[r]+("string"==typeof o?ut[o]:o)))})),t.join(" ")}}};return c.createElement(d,yt({ref:f,className:["k-"+("p"===t?"paragraph":t),lt[i],ct[n],ft[a],dt[s],vt[l],v(),o].filter((function(t){return void 0!==t})).join(" ")},u),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},xt={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")},bt=function(){return(bt=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)},_t=function(t,e,r){var o=c.useState(e||t),i=o[0],n=o[1];return[void 0!==e?e:i,c.useCallback((function(t,e){n(t),r&&r.call(void 0,bt({},e,{value:t}))}),[r,n])]},wt=c.createContext([void 0,O]),Ct=c.createContext([void 0,O]),Ot=c.createContext([[],O,O]),Pt=c.createContext([[],O,O]),St=function(t){var e=_t(null,void 0),r=e[0],o=e[1],i=_t(null,void 0),n=i[0],a=i[1],s=Q([]),l=s[0],p=s[1],u=Q([]),h=u[0],f=u[1];return c.createElement(wt.Provider,{value:[r,o]},c.createElement(Ct.Provider,{value:[n,a]},c.createElement(Ot.Provider,{value:[l,function(t){p({type:Y.add,item:t})},function(t){p({type:Y.remove,item:t})}]},c.createElement(Pt.Provider,{value:[h,function(t){f({type:Y.add,item:t})},function(t){f({type:Y.remove,item:t})}]},t.children))))};St.displayName="KendoReactDragAndDrop";var kt,At=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),a=Math.min(o.left+o.width,r.left+r.width),s=Math.min(o.top+o.height,r.top+r.height),l=a-n,c=s-i;if(n<a&&i<s){var p=o.width*o.height,u=r.width*r.height,h=l*c;return Number((h/(p+u-h)).toFixed(4))}return 0}(t,e);i>r&&(r=i,o=e)}})),o},Mt=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},jt=function(t){return t&&t.ownerDocument||window.document},Tt=function(t){var e=Mt(),r=jt(t);return e.edge||e.safari?r.body:r.documentElement},Et=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},Rt=function(t){var e=Tt(t);if(!t||t===document.body||t===document.documentElement)return e;for(var r=t;r&&!Et(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"}(kt||(kt={}));var Bt=function(){},It=function(t,e,r){void 0===r&&(r={});var o,i,n,a,s=r.onIsPressedChange,l=void 0===s?Bt:s,c=r.onIsScrollingChange,p=void 0===c?Bt:c,u=r.onVelocityChange,h=void 0===u?Bt:u,f=r.onOffsetChange,d=void 0===f?Bt:f,v=r.onPageOffsetChange,y=void 0===v?Bt:v,g=r.onClientOffsetChange,m=void 0===g?Bt:g,x=r.onScrollOffsetChange,b=void 0===x?Bt:x,_=r.onInitialScrollOffsetChange,w=void 0===_?Bt:_,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 kt.POINTER_DOWN:if(A.type===kt.POINTER_DOWN&&(!A.originalEvent.isPrimary||0!==A.originalEvent.button))break;case kt.MOUSE_DOWN:if(A.type===kt.MOUSE_DOWN&&A.originalEvent.which&&A.originalEvent.which>1||t.ignoreMouse)break;case kt.TOUCH_START:if(A.type===kt.TOUCH_START&&1!==A.originalEvent.touches.length)break;case kt.START:var M=k||Rt(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 kt.SCROLL:if(A.type===kt.SCROLL&&!t.pressed)break;var j=k||Rt(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 kt.POINTER_MOVE:if(A.type===kt.POINTER_MOVE&&!A.originalEvent.isPrimary)break;case kt.MOUSE_MOVE:case kt.TOUCH_MOVE:if(A.type===kt.TOUCH_MOVE&&1!==A.originalEvent.touches.length)break;case kt.MOVE:if(t.pressed){if(t.autoScroll&&"scroll"!==A.originalEvent.type&&O){var E=jt(O),R=k||Rt(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=Tt(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=jt(t);return e&&e.defaultView||window}(O)));h({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=At(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||Rt(I),(a=n.getBoundingClientRect()).top<=i&&a.left<=o&&i<=a.bottom&&o<=a.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 kt.POINTER_UP:if(A.type===kt.POINTER_UP&&!A.originalEvent.isPrimary)break;case kt.MOUSE_UP:case kt.TOUCH_END:if(A.type===kt.TOUCH_END&&1!==A.originalEvent.touches.length)break;case kt.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 kt.POINTER_CANCEL:case kt.CONTEXT_MENU:case kt.TOUCH_CANCEL:case kt.CANCEL:l(!1),p(!1),C.onDragEnd&&C.onDragEnd(A),t.drop&&t.drop.onDragLeave&&t.drop.onDragLeave(A)}},Dt=function(t,e){if(t){var r,o;t===Tt(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,a=t.scrollLeft+e.x,s=o&&a>0&&a<t.scrollWidth;n?t.scrollTop+=e.y:r&&i<0&&(t.scrollTop=0),s?t.scrollLeft+=e.x:o&&a<0&&(t.scrollLeft=0)}},Lt=function(t,e){var r=c.useContext(t),o=r[0],i=r[1],n=c.useState(e),a=n[0],s=n[1];return[void 0!==o?o:a,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];void 0!==o?i.apply(void 0,t):s(t[0])}]};function Vt(t,e,r){void 0===r&&(r={});var o=e.onPress,i=void 0===o?O:o,n=e.onRelease,a=void 0===n?O:n,s=e.onDragStart,l=void 0===s?O:s,p=e.onDrag,u=void 0===p?O:p,h=e.onDragEnd,f=void 0===h?O:h,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=c.useState(!1),C=w[0],P=w[1],S=c.useState(!1),k=S[0],A=S[1],M=Lt(Ct)[0],j=Lt(wt),T=j[0],E=j[1],R=c.useContext(Pt)[0],B=c.useContext(Ot),I=B[0],D=B[1],L=B[2],V=c.useRef({x:0,y:0}),z=c.useRef(),N=c.useRef(!1),H=c.useRef(),U=c.useRef(null),F=c.useRef(!1),G=c.useRef({x:0,y:0}),W=c.useRef({x:0,y:0}),K=c.useRef({x:0,y:0}),X=c.useRef({x:0,y:0}),Y=c.useRef({x:0,y:0}),q=c.useRef({x:0,y:0}),Z=Boolean("undefined"!=typeof window&&window.PointerEvent),Q=!g&&Z,$=c.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),J=c.useCallback((function(){return v&&v.current&&v.current.element?v.current.element:v?v.current:null}),[v]),tt=c.useCallback((function(){return _&&_.current&&_.current.element?_.current.element:_?_.current:null}),[_]),et=c.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]),rt=c.useRef(null);c.useImperativeHandle(rt,(function(){return{element:$(),hint:J(),onPress:vt,onDragStart:gt,onDrag:mt,onDragEnd:xt,onRelease:yt,data:t.current}}));var ot=c.useCallback((function(){var t=$();return t&&t.ownerDocument||document}),[$]),it=c.useCallback((function(){var t=ot();return t&&t.defaultView||window}),[ot]),nt=c.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:C,ignoreMouse:N.current,scrollOffset:Y.current,offset:G.current,pageOffset:W.current,initialScrollOffset:q.current,clientOffset:K.current,initialClientOffset:X.current,velocity:V.current,autoScroll:Boolean("object"==typeof x?!1!==x.enabled:x),scrollableParent:et(),autoScrollDirection:"object"==typeof x?x.direction:{horizontal:!0,vertical:!0},isScrolling:k}}),[T,M,I,R,C,x,et,k]),at=c.useCallback((function(t){P(t)}),[]),st=c.useCallback((function(t){A(t)}),[]),lt=c.useCallback((function(t){V.current=t}),[]),ct=c.useCallback((function(t){G.current=t}),[]),pt=c.useCallback((function(t){K.current=t}),[]),ut=c.useCallback((function(t){W.current=t}),[]),ht=c.useCallback((function(t){X.current=t}),[]),ft=c.useCallback((function(t){Y.current=t}),[]),dt=c.useCallback((function(t){q.current=t}),[]),vt=c.useCallback((function(t){i(t)}),[i]),yt=c.useCallback((function(t){a(t)}),[a]),gt=c.useCallback((function(e){E(rt,{target:t.current,event:e}),l(e)}),[E,t,l]),mt=c.useCallback((function(t){u(t)}),[u]),xt=c.useCallback((function(e){F.current||(E(null,{target:t.current,event:e}),f(e))}),[f,E,t]),bt=c.useCallback((function(t){It(nt(),{event:t,payload:rt.current},{onVelocityChange:lt,onOffsetChange:ct,onClientOffsetChange:pt,onPageOffsetChange:ut,onInitialClientOffsetChange:ht,onScrollOffsetChange:ft,onInitialScrollOffsetChange:dt,onIsPressedChange:at,onIsScrollingChange:st})}),[nt,lt,ct,ut,pt,ht,dt,at,ft,st]),_t=c.useCallback((function(t){bt(t)}),[bt]),St=c.useCallback((function(t){bt(t)}),[bt]),kt=c.useCallback((function(t){bt(t)}),[bt]),At=c.useCallback((function(t){bt(t)}),[bt]),Mt=c.useCallback((function(t){bt(t)}),[bt]),jt=c.useCallback((function(t){bt(t)}),[bt]),Tt=c.useCallback((function(t){bt(t)}),[bt]),Et=c.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Bt=c.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),Vt=c.useCallback((function(t){t.preventDefault(),bt(t)}),[bt]),zt=c.useCallback((function(t){if(0===t.touches.length&&1===t.changedTouches.length){var e=it();N.current=!0,H.current=e.setTimeout((function(){N.current=!1}),2e3)}bt(t)}),[bt,it]),Nt=c.useCallback((function(t){bt(t)}),[bt]),Ht=c.useCallback((function(){var t=$();if(t){var e=t.style.touchAction;return t.style.touchAction="none",function(){t.style.touchAction=e}}}),[$]),Ut=c.useCallback((function(){return D(rt),function(){L(rt)}}),[L,D]);c.useEffect((function(){var t=it();if(k){var e=tt()||Rt(document.elementFromPoint(K.current.x,K.current.y));t.clearInterval(z.current),z.current=t.setInterval((function(){Dt(e,{x:V.current.x,y:V.current.y})}),50)}return function(){t.clearInterval(z.current)}}),[$,tt,it,k]),c.useEffect(Ht,[Ht]),c.useEffect((function(){var t=it(),e=$(),r=ot();return Q?(e&&(U.current=Rt(e),U.current&&U.current.addEventListener("scroll",Nt,{passive:!0}),e.addEventListener("pointerdown",_t,{passive:!0})),C&&(r.addEventListener("pointermove",St),r.addEventListener("pointerup",At,!0),r.addEventListener("contextmenu",Et),r.addEventListener("pointercancel",kt,{passive:!0}))):(t.addEventListener("touchmove",O,{capture:!1,passive:!1}),e&&(e.addEventListener("mousedown",Mt,{passive:!0}),g||(e.addEventListener("touchstart",Bt,{passive:!0}),C&&(e.addEventListener("touchmove",Vt,{passive:!0}),e.addEventListener("touchend",zt,{passive:!0})))),C&&(r.addEventListener("mousemove",jt,{passive:!0}),r.addEventListener("mouseup",Tt,{passive:!0}))),function(){U.current&&U.current.removeEventListener("scroll",Nt),e&&(e.removeEventListener("pointerdown",_t),e.removeEventListener("mousedown",Mt),e.removeEventListener("touchstart",Bt),e.removeEventListener("touchmove",Vt),e.removeEventListener("touchend",zt)),r.removeEventListener("pointermove",St),r.removeEventListener("pointerup",At,!0),r.removeEventListener("contextmenu",Et),r.removeEventListener("pointercancel",kt),r.removeEventListener("mousemove",jt),r.removeEventListener("mouseup",Tt),t.removeEventListener("touchmove",O),t.clearTimeout(H.current)}}),[C,it,$,ot,g,Q,Et,Mt,jt,Tt,kt,_t,St,At,zt,Vt,Bt,Nt]),c.useEffect((function(){return function(){F.current=!0}}),[]),c.useLayoutEffect(Ut,[Ut])}var zt=c.forwardRef((function(t,e){var r=c.useRef(null),o=c.useRef(null),i=c.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);c.useImperativeHandle(o,(function(){return{element:i()||null}})),c.useImperativeHandle(e,(function(){return o.current})),c.useImperativeHandle(t.childRef,(function(){return r.current}));var n=c.useCallback((function(e){t.onPress&&t.onPress({element:i(),target:o.current,event:e})}),[i,t.onPress]),a=c.useCallback((function(e){t.onRelease&&t.onRelease({element:i(),target:o.current,event:e})}),[i,t.onRelease]),s=c.useCallback((function(e){t.onDragStart&&t.onDragStart({element:i(),target:o.current,event:e})}),[t,i]),l=c.useCallback((function(e){t.onDrag&&t.onDrag({element:i(),target:o.current,event:e})}),[i,t.onDrag]),p=c.useCallback((function(e){t.onDragEnd&&t.onDragEnd({element:i(),target:o.current,event:e})}),[i,t.onDragEnd]);return Vt(r,{onPress:n,onRelease:a,onDragStart:s,onDrag:l,onDragEnd:p},{mouseOnly:t.mouseOnly,autoScroll:t.autoScroll,hint:t.hint,scrollContainer:t.scrollContainer}),t.children?c.cloneElement(c.Children.only(t.children),{ref:r}):null}));function Nt(t,e){void 0===e&&(e={onDragEnter:O,onDragOver:O,onDragLeave:O,onDrop:O});var r=e.onDragEnter,o=void 0===r?O:r,i=e.onDragOver,n=void 0===i?O:i,a=e.onDragLeave,s=void 0===a?O:a,l=e.onDrop,p=void 0===l?O:l,u=Lt(Ct)[1],h=c.useContext(Pt),f=h[1],d=h[2],v=c.useCallback((function(){return t.current&&t.current.element?t.current.element:t.current}),[t]),y=c.useRef(null);c.useImperativeHandle(y,(function(){return{element:v(),onDragEnter:g,onDragOver:m,onDragLeave:x,onDrop:b,data:t.current}}));var g=c.useCallback((function(e){u(y,{target:t.current,event:e}),o(e)}),[u,t,o]),m=c.useCallback((function(t){n(t)}),[n]),x=c.useCallback((function(e){u(null,{target:t.current,event:e}),s(e)}),[u,t,s]),b=c.useCallback((function(e){u(null,{target:t.current,event:e}),p(e)}),[u,t,p]),_=c.useCallback((function(){return f(y),function(){d(y)}}),[d,f]);c.useLayoutEffect(_,[_])}zt.displayName="KendoReactDraggable";var Ht=c.forwardRef((function(t,e){var r=c.useRef(null),o=c.useRef(null),i=c.useCallback((function(){return r.current&&r.current.element?r.current.element:r.current}),[r]);c.useImperativeHandle(o,(function(){return{element:i()||void 0}})),c.useImperativeHandle(e,(function(){return o.current})),c.useImperativeHandle(t.childRef,(function(){return r.current}));var n=c.useCallback((function(e){t.onDragEnter&&t.onDragEnter({element:i(),target:o.current,event:e})}),[t.onDragEnter,i]),a=c.useCallback((function(e){t.onDragOver&&t.onDragOver({element:i(),target:o.current,event:e})}),[i,t.onDragOver]),s=c.useCallback((function(e){t.onDragLeave&&t.onDragLeave({element:i(),target:o.current,event:e})}),[t.onDragLeave,i]),l=c.useCallback((function(e){t.onDrop&&t.onDrop({element:i(),target:o.current,event:e})}),[t.onDrop,i]);return Nt(r,{onDragEnter:n,onDragOver:a,onDragLeave:s,onDrop:l}),t.children?c.cloneElement(c.Children.only(t.children),{ref:r}):null}));Ht.displayName="KendoReactDroppable";var Ut={sizeMap:{small:"sm",medium:"md",large:"lg"},roundedMap:{small:"sm",medium:"md",large:"lg"}}},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(0);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 a=r(0),s=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,s=o._parentStore,l=n({},t.props,{_chartCollectionIdxKey:i+"_"+e,_parentStore:s});return a.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:[]}),a.Children.map(i,(function(e,r){return a.isValidElement(e)?t.renderChildren(e,r):e}))},e.contextType=s.ChartContext,e}(a.Component);e.default=l},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},function(t,e,r){"use strict";r.d(e,"a",(function(){return o}));var o=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r={},o=function(t){return"object"==typeof t?Object.keys(t).forEach((function(e){r[e]=t[e]})):r[t]=!0},i=function(t){return t.filter((function(t){return!0!==t&&!!t})).map((function(t){return Array.isArray(t)?i(t):o(t)}))};return i(t),Object.keys(r).map((function(t){return r[t]&&t||null})).filter((function(t){return null!==t})).join(" ")}},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 a=r(0),s=r(3),l=r(53),c=r(7),p=r(8),u=r(5),h=r(54),f=r(56),d=r(38),v=r(58),y=r(39),g=r(40),m=r(5);r(59);var x=r(60),b=r(62),_=r(9),w=r(8),C=r(65),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,a=e[i];if(void 0===n)o=Object.assign({},a,{visible:m.toggle(a.visible)});else{var s=a.pointVisibility=a.pointVisibility||[];s[n]=m.toggle(s[n]),o=Object.assign({},a)}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&&!u.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),a=this.chartInstance.chartService,s=i.locale!==a._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)}));s&&(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,s=e.children,l=Object.assign({},o,{position:"relative"}),c=a.createElement(n,{className:i,style:l,key:"chartElement"},a.createElement("div",{onMouseLeave:this.onChartMouseLeave,ref:function(e){return t._element=e},className:"k-chart-surface"},s));return a.createElement(_.ChartContext.Provider,{value:this.contextValue},a.createElement(x.SeriesTooltip,{key:"seriesTooltip"}),a.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,a=t.transitions,s=t.seriesColors,l=t.seriesDefaults,c=t.axisDefaults,p=t.deriveOptionsFromParent,u={};return void 0!==e&&(u.renderAs=e),void 0!==r&&(u.pannable=r),void 0!==o&&(u.zoomable=o),void 0!==i&&(u.paneDefaults=i),void 0!==n&&(u.panes=n),void 0!==a&&(u.transitions=a),void 0!==s&&(u.seriesColors=s),void 0!==l&&(u.seriesDefaults=l),void 0!==c&&(u.axisDefaults=c),u=Object.assign(u,this.optionsStore.getState()),p&&(u=p(u)),u},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(),a=!1,s=0;s<n.length;s++)n[s].trigger(t,e)&&(a=!0);return!1===a&&o&&this.props.hasOwnProperty(i)?(this.props[i].call(void 0,o),o.isDefaultPrevented&&o.isDefaultPrevented()):a},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:s.string,renderAs:s.oneOf(["svg","canvas"])},e.defaultProps={renderAs:"svg"},e}(a.Component);e.BaseChart=O,l.registerForIntl(O),c.DomEventsBuilder.register(h.DomEventsBuilder)},function(t,e){t.exports=o},,function(t,e,r){"use strict";r.d(e,"a",(function(){return i})),r.d(e,"b",(function(){return n}));var o=r(0),i=o.createContext(0),n=function(){return o.useContext(i)};i.displayName="KendoReactZIndexContext"},function(t,e,r){"use strict";r.d(e,"a",(function(){return i}));var o=r(14);function i(t){if(void 0!==o)o.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)}}},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(4).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(6).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(4).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(6).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(6).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(6).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(4).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(4).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(4).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(4).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(4).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(4).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(6).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(4).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(6).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(4).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(6).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(6).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(4).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(6).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(8);e.THROTTLE_MS=1e3/60;e.default=function(t){var r,i,n=[],a=function(a){r=t(r,a),o.canUseDOM&&(window.clearTimeout(i),i=window.setTimeout((function(){return n.forEach((function(t){return t()}))}),e.THROTTLE_MS))};return a({}),{getState:function(){return r},dispatch:a,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],a=i[1],s=t[n].map((function(t,r){return parseInt(a,10)===r?(o=!0,e.payload):t}));return!1===o&&s.splice(parseInt(a,10),0,e.payload),Object.assign(t,((r={})[n]=s,r))},themeItem:function(t,e){for(var r={},o=Object.assign(r,t),i=e.payload,n=i.field,a=i.value,s=n.split("."),l=s.shift();s.length>0;)r=r[l]=r[l]||{},l=s.shift();return r[l]=a,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(0),a=r(7),s=r(38),l=r(5),c=r(187),p=r(9),u={horizontal:"fit",vertical:"fit"},h="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=s.toDomEvent(o,t);o.context.childrenObserver.trigger("onMouseLeave",e)&&t.preventDefault()},o.chartObserver=new a.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,a=e.popupStyles,s=e.popupContent,l=e.className,p=[h,l].join(" ").trim();return n.createElement(c.Popup,{animate:!1,popupAlign:o,offset:i,show:r,collision:u,className:"k-chart-tooltip-wrapper"},n.createElement("div",{className:p,style:a,onMouseLeave:this.onMouseLeave,ref:function(e){return t.element=e}},s()))},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartCategoryAxisItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartPane",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartSeriesItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartValueAxisItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartXAxisItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartYAxisItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t))};a.displayName="ChartNavigatorSeriesItem",e.default=a},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(52);e.Chart=i.Chart;var n=r(67);e.Sparkline=n.Sparkline;var a=r(68);e.StockChart=a.StockChart,o(r(69)),o(r(70)),o(r(183)),o(r(185)),o(r(186))},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)},a=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(0),l=r(13),c=r(66),p=r(7),u=r(8),h=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,h=a(e,["donutCenterRender","children","className"]);return s.createElement(l.BaseChart,n({},h,{ref:function(e){return t._baseChart=e},chartConstructor:p.Chart,getTarget:this.getTarget,wrapper:"div",className:u.classNames("k-chart k-widget",i)}),o,s.createElement(c.DonutCenter,{render:r}))},e}(s.Component);e.Chart=h},function(t,e){t.exports=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(55),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"}],a=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,a=i.pageY,s=0;if(r.length>1){var l=r[0],c=r[1];s=Math.sqrt(Math.pow(l.pageX-c.pageX,2)+Math.pow(l.pageY-c.pageY,2))}return{distance:s,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?a-e.y.location:0,initialDelta:t.deltaY,location:a,startLocation:a-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 a=0;a<o.length;a++){var s=r[o[a]];this.hammerInstance.on(s,this[s])}}},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=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(18),i=r(19),n=r(20),a=r(21),s=r(22),l=r(23),c=r(57),p=r(24),u=r(25),h=r(26),f=r(27),d=r(28),v=r(29),y=r(30),g=r(31),m=r(32),x=r(33),b=r(34),_=r(35),w=r(36),C=r(37),O={axisLabelClick:o.AxisLabelClickEvent,drag:i.DragEvent,dragEnd:n.DragEndEvent,dragStart:a.DragStartEvent,legendItemHover:s.LegendItemHoverEvent,legendItemClick:l.LegendItemClickEvent,legendItemLeave:c.LegendItemLeaveEvent,navigatorFilter:p.NavigatorFilterEvent,noteClick:u.NoteClickEvent,noteHover:h.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(6).PreventableEvent);e.LegendItemLeaveEvent=n},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(7),i=function(t){return t.fontWeight+" "+t.fontSize+" "+t.fontFamily},n=function(t){return window.getComputedStyle(t).backgroundColor},a='\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",s=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 s(t);if("undefined"!=typeof document){var i=r.element=document.createElement("div");i.style.display="none",i.innerHTML=a,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(7),i=o.DateCategoryAxis.prototype.options.labels.dateFormats,n=o.DateValueAxis.prototype.options.labels.dateFormats,a={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,a),Object.assign(n,a)},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)},a=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(0),l=r(8),c=r(7),p=r(41),u=r(61),h=r(42),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=a(r,["popupContext","shared","className"]),f=this.state.popupShown?function(){var t=e.findRenderFunction();if(i)return null!==t?t(o):s.createElement(u.SharedTooltipContent,n({},o));var r=o.point,a=e.findRenderFunctionByIndex(r.series.index);return null!==a?a(o):null!==t?t(o):s.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 s.createElement(h.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}(s.Component);e.SeriesTooltip=d},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(0);e.SharedTooltipContent=function(t){var e=t.categoryText,r=t.colorMarker,i=t.colspan,n=t.nameColumn,a=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,a.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 a=r(0),s=r(63),l=r(64),c=r(9),p=["categoryAxis","valueAxis","xAxis","yAxis"];function u(t){for(var e={},r=0;r<p.length;r++)for(var o=h(t,p[r]),i=0;i<o.length;i++){var n=o[i];e[n.name+n.index]=n}return e}function h(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:u(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 a.createElement(l.CrosshairTooltip,n({},t[e],{key:e}))}));return a.createElement(s.Container,null,e)},e.prototype.componentWillUnmount=function(){this.storeUnsubscriber()},e.contextType=c.ChartContext,e}(a.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)},a=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(0),l=r(8),c=r(7),p=r(42),u=r(9),h=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=a(e,["popupContend","className"]),c=this.state.popupShown?function(){return r}:Function.prototype,u=l.classNames(((t={})["k-chart-crosshair-tooltip"]=!0,t["k-chart-tooltip-inverse"]=!!o,t));return s.createElement(p.TooltipPopup,n({},i,{popupContent:c,className:u}))},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,a=t.axisIndex,s=t.value,l=this.props,c=l.name,p=l.index;i&&n===c&&a===p&&this.setState({popupShown:!0,popupAlign:e.align,popupOffset:e.point,popupContend:s,popupStyles:r,className:o})},e.prototype.onHideTooltip=function(){this.setState({popupShown:!1,popupStyles:{},className:void 0})},e.contextType=u.ChartContext,e}(s.Component);e.CrosshairTooltip=h},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:1643137783,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(0),a=r(7),s=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 a.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,a=i.center.y-n,s=i.center.x-n,l=2*n;this.setState({donutCenterStyles:{height:l,left:s,top:a,width:l}})}},e.contextType=s.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)},a=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(0),l=r(13),c=r(7),p=r(8),u=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=a(e,["children","type","className"]);return s.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}(s.Component);e.Sparkline=u},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)},a=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(0),l=r(13),c=r(7),p=r(8),u={autoBindElements:!0,liveDrag:!1,partialRedraw:!0},h=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.deriveOptionsFromParent=function(t){var e=Object.assign({},t.navigator||{},u);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=a(e,["children","className"]);return s.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}(s.Component);e.StockChart=h},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(41);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(71);e.ChartArea=i.default;var n=r(72);e.ChartAxisDefaults=n.default;var a=r(73);e.ChartCategoryAxis=a.default;var s=r(43);e.ChartCategoryAxisItem=s.default;var l=r(74);e.ChartLegend=l.default;var c=r(75);e.ChartNavigator=c.default;var p=r(44);e.ChartPane=p.default;var u=r(76);e.ChartPaneDefaults=u.default;var h=r(77);e.ChartPanes=h.default;var f=r(78);e.ChartPlotArea=f.default;var d=r(79);e.ChartSeries=d.default;var v=r(80);e.ChartSeriesDefaults=v.default;var y=r(45);e.ChartSeriesItem=y.default;var g=r(81);e.ChartTitle=g.default;var m=r(82);e.ChartTooltip=m.default;var x=r(83);e.ChartValueAxis=x.default;var b=r(46);e.ChartValueAxisItem=b.default;var _=r(84);e.ChartXAxis=_.default;var w=r(47);e.ChartXAxisItem=w.default;var C=r(85);e.ChartYAxis=C.default;var O=r(48);e.ChartYAxisItem=O.default;var P=r(86);e.ChartZoomable=P.default,o(r(87)),o(r(92)),o(r(101)),o(r(103)),o(r(105)),o(r(109)),o(r(117)),o(r(130)),o(r(138)),o(r(146)),o(r(154))},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(0),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(0),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(0),n=r(10),a=r(43),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"legend"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"navigator"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"paneDefaults"}))};a.displayName="ChartPaneDefaults",e.default=a},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(0),n=r(10),a=r(44),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"panes"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),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(0),n=r(10),a=r(45),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(10),a=r(46),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"valueAxis"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),n=r(10),a=r(47),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"xAxis"}))};l.prototype={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),n=r(10),a=r(48),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"yAxis"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.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(0),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(88);e.ChartAxisDefaultsTitle=o.default;var i=r(89);e.ChartAxisDefaultsLabels=i.default;var n=r(90);e.ChartAxisDefaultsCrosshair=n.default;var a=r(91);e.ChartAxisDefaultsCrosshairTooltip=a.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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartAxisDefaultsTitle",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.displayName="ChartAxisDefaultsLabels",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},a.displayName="ChartAxisDefaultsCrosshair",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},a.displayName="ChartAxisDefaultsCrosshairTooltip",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(93);e.ChartCategoryAxisCrosshair=o.default;var i=r(94);e.ChartCategoryAxisCrosshairTooltip=i.default;var n=r(95);e.ChartCategoryAxisTitle=n.default;var a=r(96);e.ChartCategoryAxisLabels=a.default;var s=r(97);e.ChartCategoryAxisNotes=s.default;var l=r(98);e.ChartCategoryAxisNotesIcon=l.default;var c=r(99);e.ChartCategoryAxisNotesLabel=c.default;var p=r(100);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartCategoryAxisTitle",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"rangeLabels"}))};a.defaultProps={visible:!0},e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(102);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartPaneTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(104);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartPaneDefaultsTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(106);e.ChartLegendItem=o.default;var i=r(107);e.ChartLegendTitle=i.default;var n=r(108);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"item"}))};a.displayName="ChartLegendItem",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartLegendTitle",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"inactiveItems"}))};a.displayName="ChartLegendInactiveItems",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(110);e.ChartSeriesDefaultsItemTooltip=o.default;var i=r(111);e.ChartSeriesDefaultsLabels=i.default;var n=r(112);e.ChartSeriesDefaultsLabelsFrom=n.default;var a=r(113);e.ChartSeriesDefaultsLabelsTo=a.default;var s=r(114);e.ChartSeriesDefaultsNotes=s.default;var l=r(115);e.ChartSeriesDefaultsNotesIcon=l.default;var c=r(116);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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),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(0),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(118);e.ChartSeriesItemTooltip=o.default;var i=r(119);e.ChartSeriesItemOutliers=i.default;var n=r(120);e.ChartSeriesNotes=n.default;var a=r(121);e.ChartSeriesMarkers=a.default;var s=r(122);e.ChartSeriesLabels=s.default;var l=r(123);e.ChartSeriesHighlight=l.default;var c=r(124);e.ChartSeriesExtremes=c.default;var p=r(125);e.ChartSeriesErrorBars=p.default;var u=r(126);e.ChartSeriesLabelsFrom=u.default;var h=r(127);e.ChartSeriesLabelsTo=h.default;var f=r(128);e.ChartSeriesNotesLabel=f.default;var d=r(129);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(0),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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),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(0),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(0),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(0),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(131);e.ChartValueAxisCrosshair=o.default;var i=r(132);e.ChartValueAxisCrosshairTooltip=i.default;var n=r(133);e.ChartValueAxisLabels=n.default;var a=r(134);e.ChartValueAxisNotes=a.default;var s=r(135);e.ChartValueAxisNotesIcon=s.default;var l=r(136);e.ChartValueAxisNotesLabel=l.default;var c=r(137);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartValueAxisTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(139);e.ChartXAxisCrosshair=o.default;var i=r(140);e.ChartXAxisCrosshairTooltip=i.default;var n=r(141);e.ChartXAxisLabels=n.default;var a=r(142);e.ChartXAxisNotes=a.default;var s=r(143);e.ChartXAxisNotesIcon=s.default;var l=r(144);e.ChartXAxisNotesLabel=l.default;var c=r(145);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartXAxisTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(147);e.ChartYAxisCrosshair=o.default;var i=r(148);e.ChartYAxisCrosshairTooltip=i.default;var n=r(149);e.ChartYAxisLabels=n.default;var a=r(150);e.ChartYAxisNotes=a.default;var s=r(151);e.ChartYAxisNotesIcon=s.default;var l=r(152);e.ChartYAxisNotesLabel=l.default;var c=r(153);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartYAxisTitle",e.default=a},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(155);e.ChartNavigatorCategoryAxis=i.default;var n=r(156);e.ChartNavigatorHint=n.default;var a=r(157);e.ChartNavigatorPane=a.default;var s=r(158);e.ChartNavigatorSelect=s.default;var l=r(159);e.ChartNavigatorSeries=l.default;var c=r(49);e.ChartNavigatorSeriesItem=c.default,o(r(160)),o(r(168)),o(r(170))},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"categoryAxis"}))};a.displayName="ChartNavigatorCategoryAxis",e.default=a},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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"pane"}))};a.displayName="ChartNavigatorPane",e.default=a},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(0),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(0),n=r(10),a=r(49),s=r(5),l=function(t){return i.createElement(n.default,o({},t,{_chartKey:"series"}))};l.propTypes={children:function(t,e,r){return s.validateChildren(t,e,r,a.default)}},e.default=l},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(161);e.ChartNavigatorCategoryAxisCrosshair=o.default;var i=r(162);e.ChartNavigatorCategoryAxisCrosshairTooltip=i.default;var n=r(163);e.ChartNavigatorCategoryAxisTitle=n.default;var a=r(164);e.ChartNavigatorCategoryAxisLabels=a.default;var s=r(165);e.ChartNavigatorCategoryAxisNotes=s.default;var l=r(166);e.ChartNavigatorCategoryAxisNotesIcon=l.default;var c=r(167);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"crosshair"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"tooltip"}))};a.defaultProps={visible:!0},e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartNavigatorCategoryAxisTitle",e.default=a},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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(169);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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"title"}))};a.displayName="ChartNavigatorPaneTitle",e.default=a},function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=r(171);e.ChartNavigatorSeriesItemTooltip=o.default;var i=r(172);e.ChartNavigatorSeriesItemOutliers=i.default;var n=r(173);e.ChartNavigatorSeriesNotes=n.default;var a=r(174);e.ChartNavigatorSeriesMarkers=a.default;var s=r(175);e.ChartNavigatorSeriesLabels=s.default;var l=r(176);e.ChartNavigatorSeriesHighlight=l.default;var c=r(177);e.ChartNavigatorSeriesExtremes=c.default;var p=r(178);e.ChartNavigatorSeriesErrorBars=p.default;var u=r(179);e.ChartNavigatorSeriesLabelsFrom=u.default;var h=r(180);e.ChartNavigatorSeriesLabelsTo=h.default;var f=r(181);e.ChartNavigatorSeriesNotesLabel=f.default;var d=r(182);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(0),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(0),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(0),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(0),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(0),n=r(2),a=function(t){return i.createElement(n.default,o({},t,{_chartKey:"labels"}))};a.defaultProps={visible:!0},e.default=a},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(0),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(0),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(0),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(0),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(0),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(0),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(0),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(184);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(18);e.AxisLabelClickEvent=o.AxisLabelClickEvent;var i=r(20);e.DragEndEvent=i.DragEndEvent;var n=r(19);e.DragEvent=n.DragEvent;var a=r(21);e.DragStartEvent=a.DragStartEvent;var s=r(23);e.LegendItemClickEvent=s.LegendItemClickEvent;var l=r(22);e.LegendItemHoverEvent=l.LegendItemHoverEvent;var c=r(24);e.NavigatorFilterEvent=c.NavigatorFilterEvent;var p=r(25);e.NoteClickEvent=p.NoteClickEvent;var u=r(26);e.NoteHoverEvent=u.NoteHoverEvent;var h=r(27);e.PlotAreaClickEvent=h.PlotAreaClickEvent;var f=r(28);e.PlotAreaHoverEvent=f.PlotAreaHoverEvent;var d=r(29);e.RenderEvent=d.RenderEvent;var v=r(31);e.SelectEndEvent=v.SelectEndEvent;var y=r(30);e.SelectEvent=y.SelectEvent;var g=r(32);e.SelectStartEvent=g.SelectStartEvent;var m=r(33);e.SeriesClickEvent=m.SeriesClickEvent;var x=r(34);e.SeriesHoverEvent=x.SeriesHoverEvent;var b=r(36);e.ZoomEndEvent=b.ZoomEndEvent;var _=r(35);e.ZoomEvent=_.ZoomEvent;var w=r(37);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 ct}));var o=r(0),i=r(50),n=r(3),a=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")},s="undefined"!=typeof window&&/Firefox/.test(window.navigator.userAgent),l=r(17),c=r(11),p=r(16),u=r(12),h="bottom",f="center",d="middle",v="left",y="right",g="top";function m(t){return t.ownerDocument||t.document||t}var x=function(t){return m(t).defaultView},b=function(t){return m(t).documentElement},_=0;function w(){if(!_&&"undefined"!=typeof document){var t=document.createElement("div");t.style.cssText="overflow:scroll;overflow-x:hidden;zoom:1;clear:both;display:block",t.innerHTML="&nbsp;",document.body.appendChild(t),_=t.offsetWidth-t.scrollWidth,document.body.removeChild(t)}return _}function C(t){var e=x(t),r=b(t),o={height:e.innerHeight,width:e.innerWidth};return r.scrollHeight-r.clientHeight>0&&(o.width-=w()),o}var O=function(t){for(var e=t.offsetParent;e&&"static"===e.style.position;)e=e.offsetParent;return e||b(t)},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=b(t),r=x(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=x(t),o=r.getComputedStyle(t),i=P(t),n=e||O(t),a=t.ownerDocument,s=n!==a.body&&n!==a.documentElement,l={top:0,left:0};if("fixed"!==o.position&&s){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=O(t);return e?A(e):{x:0,y:0}}(e)};var T="fit",E="flip",R="none",B=function(t,e,r){var o=0;return t+e>r&&(o=r-(t+e)),t<0&&(o=-t),o},I=function(t){var e=t.offset,r=t.size,o=t.anchorSize,i=t.viewPortSize,n=t.anchorAlignPoint,a=t.elementAlignPoint,s=0,l=2*t.margin;if(a!==n&&!(a===f||a===d)&&!(n===f||n===d)){var c=n===g||n===v;e<0&&c?e+(s=r+o+l)+r>i&&(s=0):e>=0&&!c&&(e+r>i&&(s+=-(o+r+l)),e+s<0&&(s=0))}return s},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,N,H,U=(V=function(t){if(!F())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},N=!1,function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return N||(z=V.apply(void 0,t),N=!0),z}),F=function(){return Boolean("undefined"!=typeof window&&window.document&&window.document.createElement)},G={eitherRect:function(t,e){return t||{height:0,left:e.left,top:e.top,width:0}},scaleRect:function(t,e){return t&&1!==e?{height:t.height/e,left:t.left/e,top:t.top/e,width:t.width/e}:t},removeStackingOffset:function(t,e){return e?{height:t.height,left:t.left-e.left,top:t.top-e.top,width:t.width}:t},hasRelativeStackingContext:U,canUseDOM:F},W=["font-size","font-family","font-stretch","font-style","font-weight","line-height"],K=function(){return G.canUseDOM()?window:null},X=/auto|scroll/,Y=function(t){return function(t){return""+t.style.overflow+t.style.overflowX+t.style.overflowY}(t)||function(t){var e=window.getComputedStyle(t);return""+e.overflow+e.overflowX+e.overflowY}(t)},q=function(t){if(!t||!G.hasRelativeStackingContext())return null;for(var e=t.parentElement;e;){if("none"!==window.getComputedStyle(e).transform)return e;e=e.parentElement}return null},Z=function(){return G.canUseDOM()&&parseFloat((document.documentElement.clientWidth/window.innerWidth).toFixed(2))||1},Q={addOffset:function(t,e){return{left:t.left+e.left,top:t.top+e.top}},addScroll:function(t,e){return{top:t.top+e.y,left:t.left+e.x,height:t.height,width:t.width}},align:function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.margin;void 0===n&&(n={});var a=r.horizontal,s=r.vertical,l=i.horizontal,c=i.vertical,p=n.horizontal||0,u=n.vertical||0,v=e.top,g=e.left;return s===h&&(v+=e.height),s!==f&&s!==d||(v+=Math.round(e.height/2)),c===h&&(v-=o.height,u*=-1),c!==f&&c!==d||(v-=Math.round(o.height/2),u*=-1),a===y&&(g+=e.width),a!==f&&a!==d||(g+=Math.round(e.width/2)),l===y&&(g-=o.width,p*=-1),l!==f&&l!==d||(g-=Math.round(o.width/2),p*=-1),{top:v+u,left:g+p}},boundingOffset:function(t){if(!t.getBoundingClientRect){var e=C(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}},getFontStyles:function(t){var e=K();if(!e||!t)return[];var r=e.getComputedStyle(t);return W.map((function(t){return{key:t,value:r[t]}}))},getWindow:K,hasOffsetParent:function(t){return!!t&&Boolean(t.offsetParent)},offset:function(t){return t?P(t):null},offsetAtPoint:function(t,e){if(!t)return null;var r=t.style,o=r.left,i=r.top,n=r.transition;t.style.transition="none",t.style.left=e.left+"px",t.style.top=e.top+"px";var a=P(t);return t.style.left=o,t.style.top=i,t.offsetHeight,t.style.transition=n,a},position:function(t,e,r){return t&&e?function(t,e,r){void 0===r&&(r=1);var o=e?O(e):null,i=M(t,o),n=i.top,a=i.left,s=i.height,l=i.width,c=j(o,t),p=c.x,u=c.y,h=t.ownerDocument,f=o===h.body||o===h.documentElement?1:r;return{top:n+u*f,left:a+p*f,height:s,width:l}}(t,e,r||1):null},removeScroll:function(t,e){return{top:t.top-e.y,left:t.left-e.x,height:t.height,width:t.width}},restrictToView:function(t){var e=t.anchorRect,r=t.anchorAlign,o=t.elementRect,i=t.elementAlign,n=t.collisions,a=t.viewPort,s=t.margin;void 0===s&&(s={});var l=o.top,c=o.left,p=o.height,u=o.width,h=a.height,f=a.width,d=s.horizontal||0,v=s.vertical||0,y=0,g=0,m=n.vertical===T,x=n.horizontal===T,b=n.vertical===E,_=n.horizontal===E;m&&(g+=B(l,p,h)),x&&(y+=B(c,u,f)),b&&(g+=I({margin:v,offset:l,size:p,anchorSize:e.height,viewPortSize:h,anchorAlignPoint:r.vertical,elementAlignPoint:i.vertical})),_&&(y+=I({margin:d,offset:c,size:u,anchorSize:e.width,viewPortSize:f,anchorAlignPoint:r.horizontal,elementAlignPoint:i.horizontal}));var w=b&&0!==g,C=_&&0!==y,O=m&&0!==g,P=x&&0!==y;return{flipped:C||w,fitted:O||P,flip:{horizontal:C,vertical:w},fit:{horizontal:P,vertical:O},offset:{left:y,top:g}}},scrollPosition:k,scrollableParents:function(t){var e=[];if(!G.canUseDOM())return e;for(var r=t.parentElement;r;)(X.test(Y(r))||r.hasAttribute("data-scrollable"))&&e.push(r),r=r.parentElement;return e.push(window),e},getRelativeContextElement:q,stackingElementOffset:function(t){var e=q(t);return e?P(e):null},stackingElementScroll:function(t){var e=q(t);return e?{x:e.scrollLeft,y:e.scrollTop}:{x:0,y:0}},stackingElementViewPort:function(t){var e=q(t);return e?{height:e.scrollHeight,width:e.scrollWidth}:null},useRelativePosition:function(t){return Boolean(q(t))},windowViewPort:C,zoomLevel:Z,isZoomed:function(){return Z()>1},zIndex:function(t,e){if(!t||!G.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}},$=function(t,e){return t?{x:0,y:0}:Q.scrollPosition(e)},J=function(t){var e=t.anchor,r=t.element,o=t.anchorAlign,i=t.elementAlign,n=t.margin,a=t.offset,s=t.positionMode,l=t.scale||1,c="fixed"===s||!Q.hasOffsetParent(r)?function(t,e,r,o){var i=$(t,e),n=G.eitherRect(Q.offset(t),r),a=2*o,s=Q.stackingElementScroll(e);1!==o&&s&&(s.x/=a,s.y/=a);var l=Q.stackingElementOffset(e);return 1!==o&&l&&(l.left/=a,l.top/=a),Q.removeScroll(Q.addScroll(G.removeStackingOffset(G.scaleRect(n,o),l),s),i)}(e,r,a,l):function(t,e,r,o){var i=G.eitherRect(Q.position(t,e,o),r);return G.scaleRect(i,o)}(e,r,a,l),p=G.scaleRect(Q.offset(r),l);return Q.align({anchorAlign:o,anchorRect:c,elementAlign:i,elementRect:p,margin:n})},tt=function(t){var e=t.anchor,r=t.currentLocation,o=t.element,i=t.anchorAlign,n=t.elementAlign,a=t.collisions,s=t.margin,l=t.scale||1,c=Q.offsetAtPoint(o,r),p=G.scaleRect(c,l),u=G.scaleRect(Q.offset(e),l),h=G.eitherRect(u,r),f=t.viewPort||Q.windowViewPort(o);f.width=f.width/l,f.height=f.height/l;var d=Q.restrictToView({anchorAlign:i,anchorRect:h,collisions:a,elementAlign:n,elementRect:p,margin:s,viewPort:f}),v=Q.addOffset(r,d.offset);return{flip:d.flip,flipped:d.flipped,offset:v}},et={name:"@progress/kendo-react-popup",productName:"KendoReact",productCodes:["KENDOUIREACT","KENDOUICOMPLETE"],publishDate:1643137691,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"},rt=(H=function(t,e){return(H=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}H(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),ot=function(){return(ot=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 it(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 nt,at={left:-1e3,top:0};!function(t){t.hiding="hiding",t.hidden="hidden",t.showing="showing",t.shown="shown",t.reposition="reposition"}(nt||(nt={}));var st=function(t){function e(e){var r=t.call(this,e)||this;return r.state={current:nt.hidden,previous:nt.hidden,props:{}},r._popup=null,r.show=function(t){r.setPosition(t),r.animate(t.firstChild,"enter",r.onOpened),r.setState({current:nt.shown,previous:r.state.current})},r.setPosition=function(t){var e=r.props,o=e.anchorAlign,i=e.popupAlign,n=e.collision,a=e.offset,s=e.anchor,l=e.margin,c=e.scale,p=e.positionMode,u=J({anchor:s,anchorAlign:o,element:t,elementAlign:i,offset:a,margin:l,positionMode:p,scale:c}),h=tt({anchor:s,anchorAlign:o,element:t,elementAlign:i,collisions:n,currentLocation:u,margin:r.props.margin});if(t.style.top=h.offset.top+"px",t.style.left=h.offset.left+"px",r._collisions={fit:h.fit,fitted:h.fitted,flip:h.flip,flipped:h.flipped},r.props.onPosition){var f={target:r,flipped:h.flipped,fitted:h.fitted};r.props.onPosition.call(void 0,f)}},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){if(r.props.popupAlign){var i,n=r.props.popupAlign,l=n.horizontal,c=n.vertical;i="left"===l&&"center"===c?"right":"right"===l&&"center"===c?"left":"top"===c?"down":"up";r._collisions&&r._collisions.flipped&&(i={down:"up",up:"down",left:"right",right:"left"}[i]),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),a(t),i()};t.addEventListener("transitionend",c);var p=t.ownerDocument;if(p){var u=p.defaultView;if(u){var h=function(){a(t),t.classList.add(n),u.requestAnimationFrame((function(){t.style.transitionDuration=r+"ms",t.classList.add(l)}))};s?u.requestAnimationFrame(h):h()}}}(t,i,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===nt.hiding&&r.state.previous===nt.shown&&r.setState({current:nt.hidden,previous:r.state.current}),r.props.onClose&&r.props.onClose.call(void 0,{target:r})},r.getCurrentZIndex=function(){return r.context?r.context+1:100},Object(l.a)(et),r.reposition=function(t,e,r){var o,i,n,a;void 0===r&&(r={});var s=0;r=r||{};var l=function(){s=!1===r.leading?0:(new Date).getTime(),o=null,a=t.apply(i,n),o||(i=n=null)};return function(){var c=(new Date).getTime();s||!1!==r.leading||(s=c);var p=e-(c-s);return i=this,n=arguments,p<=0||p>e?(o&&(clearTimeout(o),o=null),s=c,a=t.apply(i,n),o||(i=n=null)):o||!1===r.trailing||(o=window.setTimeout(l,p)),a}}(r.reposition.bind(r),1e3/60),r}return rt(e,t),e.getDerivedStateFromProps=function(t,e){var r=t.show,o=t.anchor,i=t.anchorAlign,n=t.appendTo,a=t.collision,s=t.popupAlign,l=t.className,c=t.popupClass,p=t.style,u=t.offset,h=t.contentKey,f=ot({},e,{props:{show:r,anchor:o,anchorAlign:i,appendTo:n,collision:a,popupAlign:s,className:l,popupClass:c,style:p,offset:u,contentKey:h}});return t.show?e.current===nt.hidden||e.current===nt.hiding?ot({},f,{current:nt.showing,previous:e.current}):e.current===nt.showing?ot({},f,{current:nt.shown,previous:e.current}):e.current!==nt.shown||it(u,e.props.offset)&&it(i,e.props.anchorAlign)&&it(n,e.props.appendTo)&&it(a,e.props.collision)&&it(s,e.props.popupAlign)&&it(p,e.props.style)&&o===e.props.anchor&&c===e.props.popupClass&&l===e.props.className?f:ot({},f,{current:nt.reposition,previous:e.current}):e.current===nt.hiding||e.current===nt.hidden?ot({},f,{current:nt.hidden,previous:e.current}):ot({},f,{current:nt.hiding,previous:e.current})},e.prototype.componentDidUpdate=function(t){this.state.current===nt.showing&&this._popup?this.show(this._popup):this.state.current===nt.hiding&&this._popup?(this.onClosing(this._popup),this.animate(this._popup.firstChild,"exit",this.onClosed)):this.state.current===nt.reposition&&this.state.previous===nt.shown?this.setState({current:nt.shown,previous:this.state.current}):this.state.current===nt.shown&&t.contentKey!==this.props.contentKey&&this._popup&&this.setPosition(this._popup)},e.prototype.componentDidMount=function(){this.state.current===nt.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,a=e.popupClass,s=e.show,l=e.id,h=e.positionMode,f=this.props.appendTo?this.props.appendTo:c.a?this.props.anchor&&this.props.anchor.ownerDocument?this.props.anchor.ownerDocument.body:document.body:void 0;this.state.current===nt.reposition&&this.state.previous===nt.shown&&this._popup&&this.setPosition(this._popup);var d=Object.assign({},{position:h,top:0,left:-1e4},this.props.style||{}),v=this.state.current===nt.hiding;if((s||v)&&f){var y=this.getCurrentZIndex(),g=o.createElement(p.a.Provider,{value:y},o.createElement("div",{className:Object(u.a)("k-animation-container","k-animation-container-relative",n),id:l,ref:function(e){return t._popup=e},style:ot({zIndex:y},d)},o.createElement("div",{className:Object(u.a)("k-popup",a,"k-child-animation-container"),style:{transitionDelay:"0ms"}},r)));return i.createPortal(g,f)}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=Q.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:nt.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.oneOfType([n.string,n.arrayOf(n.string),n.object]),id:n.string,popupClass:n.oneOfType([n.string,n.arrayOf(n.string),n.object]),collision:n.shape({horizontal:n.oneOf([T,E,R]),vertical:n.oneOf([T,E,R])}),anchorAlign:n.shape({horizontal:n.oneOf([v,f,y]),vertical:n.oneOf([g,f,h])}),popupAlign:n.shape({horizontal:n.oneOf([v,f,y]),vertical:n.oneOf([g,f,h])}),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})]),margin:n.shape({horizontal:n.number,vertical:n.number}),positionMode:n.oneOf(["fixed","absolute"]),scale:n.number,style:n.object,onClose:n.func,onPosition:n.func,onOpen:n.func},e.defaultProps={collision:{horizontal:T,vertical:E},anchorAlign:{horizontal:v,vertical:h},popupAlign:{horizontal:v,vertical:g},offset:at,animate:!0,show:!1,margin:{horizontal:0,vertical:0},positionMode:"absolute"},e.contextType=p.a,e.displayName="PopupComponent",e}(o.Component),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)},ct=o.createContext((function(t){return t})),pt=o.forwardRef((function(t,e){var r=o.useContext(ct).call(void 0,t);return o.createElement(st,lt({ref:e},r))}));pt.displayName="Popup"}])}));