@progress/kendo-charts
Version:
Kendo UI platform-independent Charts library
1 lines • 587 kB
JavaScript
System.register("@progress/kendo-charts",["@progress/kendo-drawing"],function(t,e){var Ok={};return{setters:[function(t){Ok.Class=t.Class,Ok.Color=t.Color,Ok.drawing=t.drawing,Ok.geometry=t.geometry,Ok.logToConsole=t.logToConsole,Ok.parseColor=t.parseColor,Ok.support=t.support,Ok.throttle=t.throttle}],execute:function(){t((()=>{var V={593:t=>{t.exports=Ok}},j={};function z(t){var e=j[t];return void 0!==e||(e=j[t]={exports:{}},V[t](e,e.exports,z)),e.exports}z.d=(t,e)=>{for(var i in e)z.o(e,i)&&!z.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},z.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var D={},F=((z.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(D),z.d(D,{Aggregates:()=>Rn,ArcGauge:()=>Kv,ArcScale:()=>Nv,AreaChart:()=>Bl,AreaSegment:()=>Al,ArrowLinearPointer:()=>Jy,Axis:()=>Ko,AxisGroupRangeTracker:()=>Vl,AxisLabel:()=>Io,Bar:()=>Ul,BarChart:()=>gh,BarLabel:()=>Dl,BarLinearPointer:()=>av,Barcode:()=>Tx,Box:()=>I,BoxElement:()=>Ji,BoxPlot:()=>Ah,BoxPlotChart:()=>Oh,BubbleChart:()=>Nh,Bullet:()=>qh,BulletChart:()=>Kh,Candlestick:()=>mh,CandlestickChart:()=>bh,CategoricalChart:()=>Da,CategoricalErrorBar:()=>fa,CategoricalPlotArea:()=>jc,CategoryAxis:()=>Mr,Chart:()=>zg,ChartAxis:()=>Cn,ChartContainer:()=>pp,ChartElement:()=>o,ChartPane:()=>On,ChartPlotArea:()=>Ln,ChartService:()=>Go,ChartWizardCommon:()=>qw,CircularGauge:()=>tm,Class:()=>M.Class,ClipAnimation:()=>vl,ClusterLayout:()=>hh,Crosshair:()=>ap,CrosshairTooltip:()=>rp,CurveProcessor:()=>kn,DateCategoryAxis:()=>jr,DateValueAxis:()=>Zr,DefaultAggregates:()=>Bp,DomEventsBuilder:()=>Yo,DonutChart:()=>Hd,DonutPlotArea:()=>Gd,DonutSegment:()=>zd,ErrorBarBase:()=>ca,ErrorRangeCalculator:()=>Gn,Extent:()=>Gb,FloatElement:()=>uo,FontLoader:()=>de,FormatService:()=>No,Gauge:()=>Oy,Gradients:()=>no,HashMap:()=>Wt,Highlight:()=>Hc,InstanceObserver:()=>Zt,IntlService:()=>zo,Legend:()=>Mu,LegendItem:()=>Au,LegendLayout:()=>hu,LineChart:()=>bl,LinePoint:()=>Wa,LineSegment:()=>qa,LinearGauge:()=>cv,LinearPointer:()=>Gy,LinearScale:()=>zy,Location:()=>J_,LogarithmicAxis:()=>on,Map:()=>j0,Matrix:()=>De,MousewheelZoom:()=>su,Navigator:()=>py,NavigatorHint:()=>iy,Note:()=>Ro,NumericAxis:()=>Xr,OHLCChart:()=>vc,OHLCPoint:()=>fc,Observable:()=>ii,Pane:()=>fp,Pannable:()=>tu,PieAnimation:()=>od,PieChart:()=>Id,PieChartMixin:()=>Td,PiePlotArea:()=>Rd,PieSegment:()=>Cd,PlotAreaBase:()=>Sp,PlotAreaEventsMixin:()=>Pp,PlotAreaFactory:()=>Iu,Point:()=>A,PointEventsMixin:()=>Ha,PolarAxis:()=>pn,QRCode:()=>F_,RadarCategoryAxis:()=>an,RadarLogarithmicAxis:()=>bn,RadarNumericAxis:()=>mn,RadialGauge:()=>Dv,RadialPointer:()=>Mv,RadialScale:()=>_v,RangeAreaChart:()=>cc,RangeAreaPoint:()=>Jp,RangeBar:()=>Vp,RangeBarChart:()=>Dp,RangePointer:()=>qv,Ring:()=>Fi,RootElement:()=>ho,Sankey:()=>bw,ScatterChart:()=>Vh,ScatterErrorBar:()=>Bh,ScatterLineChart:()=>hd,Sector:()=>Ui,Selection:()=>Fu,SeriesAggregator:()=>Op,SeriesBinder:()=>Dn,ShapeBuilder:()=>Xi,ShapeElement:()=>oo,SharedTooltip:()=>Xu,Sparkline:()=>Zg,SplineAreaSegment:()=>Ol,SplineSegment:()=>rl,StackWrap:()=>uh,StockChart:()=>dy,TemplateService:()=>Vt,Text:()=>vo,TextBox:()=>So,Title:()=>Mo,Tooltip:()=>Uu,UserEvents:()=>Ii,WaterfallChart:()=>Mc,WaterfallSegment:()=>_c,XYPlotArea:()=>gd,ZoomSelection:()=>ou,addClass:()=>vt,alignPathToPixel:()=>_t,anyHasZIndex:()=>ga,append:()=>ee,appendIfNotNull:()=>ya,applyEventMap:()=>Ne,areNumbers:()=>va,autoMajorUnit:()=>Bi,autoTextColor:()=>Me,barcodeValidator:()=>Ox,bindEvents:()=>ie,bindSegments:()=>xa,categoriesCount:()=>_a,chartBaseTheme:()=>mk,chartTheme:()=>Mk,clockwise:()=>bt,constants:()=>F,convertableToNumber:()=>kt,countNumbers:()=>Bn,createHashSet:()=>Ee,createOutOfRangePoints:()=>Ea,createPatternFill:()=>Qi,createSankeyData:()=>ww,cycleDown:()=>St,cycleIndex:()=>Ct,cycleUp:()=>At,deepExtend:()=>O,defaultErrorHandler:()=>Re,defined:()=>k,deg:()=>oe,elementOffset:()=>re,elementScale:()=>Te,elementSize:()=>ne,elementStyles:()=>Bt,equalsIgnoreCase:()=>ba,evalOptions:()=>ka,eventCoordinates:()=>se,eventElement:()=>ae,eventMap:()=>Fe,filterSeriesByType:()=>Aa,find:()=>Ae,findAxisByName:()=>Pn,gaugeTheme:()=>Pk,getAriaTemplate:()=>zt,getField:()=>Vn,getSpacing:()=>w,getSupportedFeatures:()=>qe,getTemplate:()=>jt,getter:()=>Ht,grep:()=>Nt,hasClasses:()=>Ut,hasGradientOverlay:()=>Pa,hasOwnProperty:()=>je,hasValue:()=>Ta,hashKey:()=>le,inArray:()=>u,interpolateValue:()=>Xt,isArray:()=>yt,isDateAxis:()=>Ma,isFunction:()=>Pt,isNumber:()=>m,isObject:()=>Ot,isPlainObject:()=>Qt,isString:()=>wt,keys:()=>Ve,last:()=>he,limitValue:()=>x,logToConsole:()=>M.logToConsole,map:()=>Kt,mousewheelDelta:()=>Jt,noop:()=>Ze,now:()=>Qe,objectKey:()=>pe,off:()=>Ye,on:()=>Xe,parseDateCategory:()=>Ca,qrcodeValidator:()=>H_,rad:()=>ce,rectToBox:()=>mo,removeClass:()=>xt,renderIcon:()=>we,round:()=>L,sankeyTheme:()=>Tk,segmentVisible:()=>ma,setDefaultOptions:()=>e,singleItemOrArray:()=>Oa,sparseArrayLimits:()=>ke,styleValue:()=>Lt,unbindEvents:()=>ue,valueOrDefault:()=>_}),{}),H=(z.r(F),z.d(F,{DEFAULT_PANE:()=>ay,NAVIGATOR_AXIS:()=>sy,NAVIGATOR_PANE:()=>ny}),"arc"),N="ArrowUp",U="ArrowDown",G="ArrowLeft",W="ArrowRight",X="aria-activedescendant",Y="#000",S="bottom",b="center",q="circle",Z=3,Q="cross",K="date",$="12px sans-serif",g=10,J="end",tt=/\{\d+:?/,et="height",it="inside",ot="inherit",C="left",rt=Number.MAX_VALUE,nt=-Number.MAX_VALUE,st="none",at="object",lt="outside",P="right",ht="roundedRect",pt="start",ct="string",T="top",ut="value",a="#fff",dt="width",y="x",v="y",ft="pointer",gt="horizontal";function yt(t){return Array.isArray(t)}function vt(t,e){for(var i=yt(e)?e:[e],o=0;o<i.length;o++){var r=i[o];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var mt=/\s+/g;function xt(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(mt," "))}var M=z(593);function _t(t){var e=.5;t.options.stroke&&M.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var i=0;i<t.segments.length;i++)t.segments[i].anchor().round(0).translate(e,e);return t}function bt(t,e){return-t.x*e.y+t.y*e.x<0}function m(t){return"number"==typeof t&&!isNaN(t)}function wt(t){return typeof t===ct}function kt(t){return m(t)||wt(t)&&isFinite(t)}function At(t,e){return(t+1)%e}function St(t,e){t-=1;return t<0?e-1:t}function Ct(t,e){return 1===e||t%e==0?0:t<0?e+t%e:e<=t?t%e:t}function Pt(t){return"function"==typeof t}var Tt="object",Mt="undefined";function O(t){for(var e=arguments,i=arguments.length,o=1;o<i;o++)!function t(e,i){for(var o in i){var r,n,s;"__proto__"!==o&&"constructor"!==o&&((s=(n=typeof(r=i[o]))===Tt&&null!==r?r.constructor:null)&&s!==Array?r instanceof Date?e[o]=new Date(r.getTime()):Pt(r.clone)?e[o]=r.clone():(s=e[o],e[o]=typeof s===Tt&&s||{},t(e[o],r)):n!==Mt&&(e[o]=r))}}(t,e[o]);return t}function Ot(t){return"object"==typeof t}function Lt(t){return m(t)?t+"px":t}var It=/width|height|top|left|bottom|right/i;function Bt(t,e){var i=wt(e)?[e]:e;if(yt(i)){for(var o={},r=window.getComputedStyle(t),n=0;n<i.length;n++){var s=i[n];o[s]=It.test(s)?parseFloat(r[s]):r[s]}return o}if(Ot(e))for(var a in e)t.style[a]=Lt(e[a])}function w(t,e){void 0===e&&(e=0);var i={top:0,right:0,bottom:0,left:0};return"number"==typeof t?i[T]=i[P]=i[S]=i[C]=t:(i[T]=t[T]||e,i[P]=t[P]||e,i[S]=t[S]||e,i[C]=t[C]||e),i}function Et(){}var Rt={compile:function(t){return t}};Et.register=function(t){Rt=t},Et.compile=function(t,e){return Rt.compile(t,e)};let Vt=Et;function jt(t){var e;return(t=void 0===t?{}:t).template?t.template=e=Vt.compile(t.template):Pt(t.content)&&(e=t.content),e}function zt(t){var e;return(t=void 0===t?{}:t).ariaTemplate?t.ariaTemplate=e=Vt.compile(t.ariaTemplate):Pt(t.ariaContent)&&(e=t.ariaContent),e}var Dt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,Ft={};function Ht(t){var r;return Ft[t]||(r=[],t.replace(Dt,function(t,e,i,o){r.push(M.drawing.util.defined(e)?e:i||o)}),Ft[t]=function(t){for(var e=t,i=0;i<r.length&&e;i++)e=e[r[i]];return e}),Ft[t]}function Nt(t,e){for(var i=t.length,o=[],r=0;r<i;r++)e(t[r])&&o.push(t[r]);return o}function Ut(t,e){if(t.className)for(var i=e.split(" "),o=0;o<i.length;o++)if(t.className.indexOf&&-1!==t.className.indexOf(i[o]))return!0}Ft[void 0]=function(t){return t};function Gt(){this._map=new Map}Gt.prototype.get=function(t){return this._map.get(t)},Gt.prototype.set=function(t,e){this._map.set(t,e)};let Wt=Gt;function u(t,e){if(e)return-1!==e.indexOf(t)}function Xt(t,e,i){return M.drawing.util.round(t+(e-t)*i,Z)}function Yt(t,e){this.observer=t,this.handlerMap=O({},this.handlerMap,e)}var qt="trigger";Yt.prototype.trigger=function(t,e){var i,o=this.observer,r=this.handlerMap;return r[t]?i=this.callObserver(r[t],e):o[qt]&&(i=this.callObserver(qt,t,e)),i},Yt.prototype.callObserver=function(t){for(var e=[],i=arguments.length-1;0<i--;)e[i]=arguments[i+1];return this.observer[t].apply(this.observer,e)},Yt.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};let Zt=Yt;function Qt(t){return"[object Object]"===Object.prototype.toString.call(t)}function Kt(t,e){for(var i=t.length,o=[],r=0;r<i;r++){var n=e(t[r]);M.drawing.util.defined(n)&&o.push(n)}return o}var $t=M.support.browser||{};function Jt(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,$t.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),0<e?Math.ceil(e):Math.floor(e)}function te(){}var t=M.drawing.util,ee=t.append,ie=t.bindEvents,k=t.defined,oe=t.deg,re=t.elementOffset,ne=t.elementSize,se=t.eventCoordinates,ae=t.eventElement,le=t.hashKey,he=t.last,x=t.limitValue,pe=t.objectKey,ce=t.rad,L=t.round,ue=t.unbindEvents,_=t.valueOrDefault;te.fetchFonts=function(i,o,r){void 0===r&&(r={depth:0}),!i||5<r.depth||!document.fonts||Object.keys(i).forEach(function(t){var e=i[t];"dataSource"!==t&&"$"!==t[0]&&e&&("font"===t?o.push(e):"object"==typeof e&&(r.depth++,te.fetchFonts(e,o,r),r.depth--))})},te.loadFonts=function(t,e){var i=[];if(0<t.length&&document.fonts){try{i=t.map(function(t){return document.fonts.load(t)})}catch(t){(0,M.logToConsole)(t)}Promise.all(i).then(e,e)}else e()},te.preloadFonts=function(t,e){var i=[];te.fetchFonts(t,i),te.loadFonts(i,e)};let de=te;function e(t,e){t=t.prototype;t.options?t.options=O({},t.options,e):t.options=e}function fe(t,e){this.element=t,this.options=O({},this.options,e),this.wrapper()}var ge,ye="k-i-",ve="k-svg-i-",t=(fe.prototype.wrapper=function(){this.addClasses()},fe.prototype.addClasses=function(){},fe.prototype.html=function(){return this.element.outerHTML},e(fe,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]}),(ge=fe)&&(me.__proto__=ge),((me.prototype=Object.create(ge&&ge.prototype)).constructor=me).prototype.wrapper=function(){var t=this.element.className.split(" ").find(function(t){return t.startsWith(ye)}),e=this.options.icon?(this.options.icon.startsWith(ye)?"":ye)+this.options.icon:"";this._className=e,vt(this.element,"k-icon"),vt(this.element,"k-font-icon"),xt(this.element,t),vt(this.element,e),vt(this.element,this.options.iconClass||""),ge.prototype.wrapper.call(this)},me);function me(t,e){ge.call(this,t,e)}e(t,{name:"HTMLFontIcon",icon:null});(xe=fe)&&(_e.__proto__=xe),((_e.prototype=Object.create(xe&&xe.prototype)).constructor=_e).prototype.wrapper=function(){var t=this.options.icon,e=this.options.iconClass,i=this.element.className.split(" ").find(function(t){return t.startsWith(ve)}),o=(!t&&e&&(o=e.match(/k-i-(\w+(?:-\w+)*)/))&&(t=o[1],e=e.replace(o[0],"")),wt(t)&&(t=t.replace("k-i-","").replace(/-./g,function(t){return t[1].toUpperCase()}),t=this.options.svgIcons[t]||this.options.svgIcons[t+"Icon"]),t&&t.name?ve+t.name:"");this._className=o,vt(this.element,"k-svg-icon"),xt(this.element,i),vt(this.element,o),vt(this.element,e||""),this.element.setAttribute("aria-hidden","true"),t&&Qt(t)&&((i=document.createElementNS("http://www.w3.org/2000/svg","svg")).setAttribute("viewBox",t.viewBox||""),i.setAttribute("focusable","false"),i.innerHTML=t.content||"",this.element.appendChild(i)),xe.prototype.wrapper.call(this)};var xe,i=_e;function _e(t,e){t.innerHTML="",xe.call(this,t,e)}e(i,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});var be={svg:i,font:t};function we(t,e){return t&&(!Ot(t)||t instanceof HTMLElement)&&!wt(t)||(e=t,t=document.createElement("span")),(e=wt(e)?{icon:e}:e).type||(e.type="svg"),be[e.type]?new be[e.type](t,e).html():null}function ke(t){for(var e=rt,i=nt,o=0,r=t.length;o<r;o++){var n=t[o];null!==n&&isFinite(n)&&(e=Math.min(e,n),i=Math.max(i,n))}return{min:e===rt?void 0:e,max:i===nt?void 0:i}}function Ae(t,e){for(var i=0;i<t.length;i++){var o=t[i];if(e(o,i,t))return o}}var Se=M.geometry.Matrix,Ce=/matrix\((.*)\)/;function Pe(t){var t=getComputedStyle(t).transform;return"none"===t||null===(t=t.match(Ce))||2!==t.length?Se.unit():(t=t[1].split(",").map(function(t){return parseFloat(t)}),new(Function.prototype.bind.apply(Se,[null].concat(t))))}function Te(t){if(!t)return Se.unit();for(var e=Pe(t),i=t.parentElement;i;)var o=Pe(i),e=e.multiplyCopy(o),i=i.parentElement;return e.b=e.c=e.e=e.f=0,e}let Me=function(t){return new M.Color(t).isDark()?a:Y};var Oe={},Le=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},i={size:{configurable:!0}},Ie=(Le.prototype.values=function(){return this._values.filter(function(t){return t!==Oe})},Le.prototype.has=function(t){return void 0!==this._index[t]},Le.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},Le.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=Oe,delete this._index[t])},Le.prototype.clear=function(){this._index={},this._values=[]},i.size.get=function(){return this._values.length},Object.defineProperties(Le.prototype,i),function(t){this._set=new Set(t)}),t={size:{configurable:!0}},Be=(Ie.prototype.values=function(){return Array.from(this._set)},Ie.prototype.has=function(t){return this._set.has(t)},Ie.prototype.add=function(t){this._set.add(t)},Ie.prototype.delete=function(t){this._set.delete(t)},Ie.prototype.clear=function(){this._set.clear()},t.size.get=function(){return this._set.size},Object.defineProperties(Ie.prototype,t),function(){var t=!1;return t="function"==typeof Set?new Set([1]).has(1):t});function Ee(t){return new(Be()?Ie:Le)(t)}function Re(t){throw t}let Ve={INSERT:45,DELETE:46,BACKSPACE:8,TAB:9,ENTER:13,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,END:35,HOME:36,SPACEBAR:32,PAGEUP:33,PAGEDOWN:34,F2:113,F10:121,F12:123,NUMPAD_PLUS:107,NUMPAD_MINUS:109,NUMPAD_DOT:110};function je(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function ze(){this.height=0,this.width=0,this.data=[]}ze.prototype.clone=function(){var t=new ze;return t.height=this.height,t.width=this.width,t.data=this.data.map(function(t){return t.slice()}),t},ze.prototype.get=function(t,e){t=this.data[t];return t?t[e]:null},ze.prototype.set=function(t,e,i){var o=this.data[t];(o=null==o?this.data[t]=[]:o)[e]=i,t>=this.height&&(this.height=t+1),e>=this.width&&(this.width=e+1)},ze.prototype.each=function(t,e){for(var i=0;i<this.height;++i)for(var o=0;o<this.width;++o){var r=this.get(i,o);if((e||null!=r)&&void 0!==(r=t(r,i,o)))return r}},ze.prototype.map=function(o,t){var r=new ze;return this.each(function(t,e,i){r.set(e,i,o(t,e,i))},t),r},ze.prototype.transpose=function(){var o=new ze;return this.each(function(t,e,i){o.set(i,e,t)}),o},ze.prototype.unit=function(t){this.width=this.height=t;for(var e=this.data=new Array(t),i=t;0<=--i;)for(var o=e[i]=new Array(t),r=t;0<=--r;)o[r]=i===r?1:0;return this},ze.prototype.multiply=function(t){for(var e=new ze,i=0;i<this.height;++i)for(var o=0;o<t.width;++o){for(var r=0,n=0;n<this.width;++n){var s=this.get(i,n),a=t.get(n,o);"number"==typeof s&&"number"==typeof a&&(r+=s*a)}e.set(i,o,r)}return e},ze.prototype.inverse=function(){for(var n=this.width,t=this.augment((new ze).unit(n)),s=t.data,e=function(e){var t,i=((t,e,i)=>{for(var o=i(t),r=t,n=t+1;n<e;n++){var s=i(t);o<s&&(o=s,r=t)}return r})(e,n,function(t){return s[t][e]});if(!s[i][e])return{v:null};e!==i&&(t=s[e],s[e]=s[i],s[i]=t);for(var o=e+1;o<n;++o){for(var r=e+1;r<2*n;++r)s[o][r]-=s[e][r]*s[o][e]/s[e][e];s[o][e]=0}},i=0;i<n;++i){var o=e(i);if(o)return o.v}for(var r=0;r<n;++r)for(var a=s[r][r],l=0;l<2*n;++l)s[r][l]/=a;for(var h=n;0<=--h;)for(var p=h;0<=--p;)if(s[p][h])for(var c=2*n;--c>=n;)s[p][c]-=s[h][c]*s[p][h];return t.slice(0,n,n,n)},ze.prototype.augment=function(t){var o=this.clone(),r=o.width;return t.each(function(t,e,i){o.set(e,i+r,t)}),o},ze.prototype.slice=function(t,e,i,o){for(var r=new ze,n=0;n<i;++n)for(var s=0;s<o;++s)r.set(n,s,this.get(t+n,e+s));return r};let De=ze;var Fe={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"};function He(t){return Fe[t]||t}var Ne=function(t){return t.replace(/([^ ]+)/g,He)};function Ue(){for(var t,e="",i=0;i<32;i++)t=16*Math.random()|0,8!==i&&12!==i&&16!==i&&20!==i||(e+="-"),e+=(12===i?4:16===i?3&t|8:t).toString(16);return e}var Ge=new WeakMap,We=Symbol("id");function Xe(t,e,i,o,r){var a,l,h,p;a=t,l=i,h=o,p=r,(yt(t=e)?t:(t||"").split(" ")).forEach(function(t){function e(t){var e=t.target?t.target.closest(n):null;(!n||t.target&&e)&&(e=n?e:t.currentTarget,Object.defineProperty(t,"currentTarget",{value:e}),Object.defineProperty(t,"delegateTarget",{value:i}),s(t))}var i,o,r,n,s;i=a,t=t,r=p,s=h,(o=l)&&Pt(o)&&!h?s=o:o&&"string"==typeof o&&Pt(s)&&(n=o),s[We]||(s[We]=Ue()),(o=Ge.get(i))||(o=new Map,Ge.set(i,o)),o.set(t+s[We],e),i.addEventListener(t,e,Boolean(r))})}function Ye(t,e,i,o,r){var s,a,l;s=t,a=i,l=o,(yt(t=e)?t:(t||"").split(" ")).forEach(function(t){var e,i,o,r,n;e=s,t=t,i=a,o=l,(n=Ge.get(e))&&i&&i[We]&&(i=t+i[We],r=n.get(i),n.delete(i),r)&&e.removeEventListener(t,r,Boolean(o))})}function qe(){var t=(t=>{var e,i=!1,o={wp:/(Windows Phone(?: OS)?)\s(\d+)\.(\d+(\.\d+)?)/,fire:/(Silk)\/(\d+)\.(\d+(\.\d+)?)/,android:/(Android|Android.*(?:Opera|Firefox).*?\/)\s*(\d+)\.?(\d+(\.\d+)?)?/,iphone:/(iPhone|iPod).*OS\s+(\d+)[\._]([\d\._]+)/,ipad:/(iPad).*OS\s+(\d+)[\._]([\d_]+)/,playbook:/(PlayBook).*?Tablet\s*OS\s*(\d+)\.(\d+(\.\d+)?)/,windows:/(MSIE)\s+(\d+)\.(\d+(\.\d+)?)/,tizen:/(tizen).*?Version\/(\d+)\.(\d+(\.\d+)?)/i,sailfish:/(sailfish).*rv:(\d+)\.(\d+(\.\d+)?).*firefox/i},r={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i};for(e in o)if(t.match(o[e])){if("windows"===e&&"plugins"in navigator)return!1;(i={}).device=e,i.name=((t,e,i)=>{for(var o in e)if(e[o].test(t))return o;return void 0!==i?i:t})(e,r),i[i.name]=!0;break}return i})(navigator.userAgent),e={};return e.mobileOS=t,e}function Ze(){}function Qe(){return(new Date).getTime()}function Ke(){this._defaultPrevented=!0}function $e(){return!0===this._defaultPrevented}var Je,ti="function";function ei(){Je.call(this),this._events={}}(Je=M.Class)&&(ei.__proto__=Je),((ei.prototype=Object.create(Je&&Je.prototype)).constructor=ei).prototype.destroy=function(){this.unbind()},ei.prototype.bind=function(t,e,i){var o,r,n=this,s="string"==typeof t?[t]:t||[],a=typeof e==ti;if(void 0===e)for(l in t)n.bind(l,t[l]);else for(var l=0,h=s.length;l<h;l++)(()=>{var t=s[l];(r=a?e:e[t])&&(i&&(o=r,(r=function(){n.unbind(t,r),o.apply(n,arguments)}).original=o),(n._events[t]=n._events[t]||[]).push(r))})();return n},ei.prototype.one=function(t,e){return this.bind(t,e,!0)},ei.prototype.first=function(t,e){for(var i,o="string"==typeof t?[t]:t,r=typeof e==ti,n=0,s=o.length;n<s;n++){var a=o[n];(i=r?e:e[a])&&(this._events[a]=this._events[a]||[]).unshift(i)}return this},ei.prototype.trigger=function(t,e){var i,o,r=this._events[t];if(r){var n=e||{};for(n.sender=this,n._defaultPrevented=!1,n.preventDefault=Ke,n.isDefaultPrevented=$e,i=0,o=(r=r.slice()).length;i<o;i++)r[i].call(this,n);return!0===n._defaultPrevented}return!1},ei.prototype.unbind=function(t,e){var i,o=this._events[t];if(void 0===t)this._events={};else if(o)if(e)for(i=o.length-1;0<=i;i--)o[i]!==e&&o[i].original!==e||o.splice(i,1);else this._events[t]=[];return this},ei.prototype._setEvents=function(t){for(var e=(this.events||[]).length,i=0;i<e;i++){var o=this.events[i];this.options[o]&&t[o]&&(this.unbind(o,this.options[o]),this._events)&&this._events[o]&&delete this._events[o]}this.bind(this.events,t)};let ii=ei;function oi(t){t.preventDefault()}var ri=Object.assign,ni=800,si=0,ai="move",li="tap",hi="doubleTap",pi="release",ci="gesturechange",ui="gestureend",di="gesturetap",fi={api:0,touch:0,mouse:9,pointer:9};function gi(t){var e=[],i=t.originalEvent||t;return e.push(t.api?{id:2,event:t,target:t.target,currentTarget:t.target,location:t,type:"api"}:{location:i,event:t,target:t.target,currentTarget:t.currentTarget,id:i.pointerId,type:"pointer"}),e}(vi=M.Class)&&(bi.__proto__=vi),((bi.prototype=Object.create(vi&&vi.prototype)).constructor=bi).prototype.move=function(t){var e=this,i=t["page"+e.axis],o=Qe(),r=o-e.timeStamp||1;!i&&this.invalidZeroEvents||(e.delta=i-e.location,e._updateLocationData(t),e.initialDelta=i-e.startLocation,e.velocity=e.delta/r,e.timeStamp=o)},bi.prototype._updateLocationData=function(t){var e=this.axis;this.location=t["page"+e],this.client=t["client"+e],this.screen=t["screen"+e]};var yi,vi,mi=bi,xi=((yi=M.Class)&&(_i.__proto__=yi),((_i.prototype=Object.create(yi&&yi.prototype)).constructor=_i).prototype.press=function(){var t=this;this._holdTimeout=setTimeout(function(){return t._hold()},this.userEvents.minHold),this._trigger("press",this.pressEvent)},_i.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout(function(){1===e.userEvents._clicks?e._trigger(li,t):e._trigger(hi,t),e.userEvents._clicks=0},300))},_i.prototype._hold=function(){this._trigger("hold",this.pressEvent)},_i.prototype.move=function(t){var e=this,i="api"!==t.type&&e.userEvents._shouldNotMove;if(!e._finished&&!i){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if(Oi.current&&Oi.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(ai,t)}},_i.prototype.end=function(t){this.endTime=Qe(),this._finished||(this._finished=!0,this._trigger(pi,t),this._moved?this._trigger("end",t):this.supportDoubleTap?this._tap(t):this._trigger(li,t),clearTimeout(this._holdTimeout),this.dispose())},_i.prototype.dispose=function(){var t=this.userEvents.touches||[],e=(this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout),t.indexOf(this));t.splice(e,1)},_i.prototype.skip=function(){this.dispose()},_i.prototype.cancel=function(){this.dispose()},_i.prototype.isMoved=function(){return this._moved},_i.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=Qe(),this._moved=!0,this._trigger("start",t)},_i.prototype._trigger=function(t,e){var e=e.event,i={touch:this,x:this.x,y:this.y,target:this.target,event:e};this.userEvents.notify(t,i)&&e.preventDefault()},_i.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold},_i);function _i(t,e,i){yi.call(this),ri(this,{x:new mi("X",i.location),y:new mi("Y",i.location),type:i.type,threshold:t.threshold||fi[i.type],userEvents:t,target:e,currentTarget:i.currentTarget,initialTouch:i.target,id:i.id,pressEvent:i,_clicks:t._clicks,supportDoubleTap:t.supportDoubleTap,_moved:!1,_finished:!1})}function bi(t,e){vi.call(this);var i=this;i.support=qe(),i.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,i.axis=t,i._updateLocationData(e),i.startLocation=i.location,i.velocity=i.delta=0,i.timeStamp=Qe()}function wi(t){for(var e=Fe.up.split(" "),i=0,o=e.length;i<o;i++)t(e[i])}(ki=ii)&&(Li.__proto__=ki),((Li.prototype=Object.create(ki&&ki.prototype)).constructor=Li).prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},Li.prototype.destroy=function(){var e,i=this,t=this.options,o=this.element;i._destroyed||(i._destroyed=!0,i.captureUpIfMoved&&(e=i.surface,wi(function(t){e.removeEventListener(t,i._preventIfMovingProxy,!0)})),Ye(i.surface,Ne("move"),this._surfaceMoveHandler),Ye(i.surface,Ne("up cancel"),this._surfaceEndHandler),Ye(o,Ne("down"),this._elementStartHandler),t.preventDragEvent&&Ye(o,Ne("dragstart"),this._elementDragStartHandler),Ye(o,Ne("mousedown"),this._elementSelectHandler),i._disposeAll(),i.unbind(),delete i.surface,delete i.element,delete i.currentTarget)},Li.prototype.capture=function(){Li.current=this},Li.prototype.cancel=function(){this._disposeAll(),this.trigger("cancel")},Li.prototype.notify=function(t,e){var i,o,r,n,s=this.touches,a=t;if(this._isMultiTouch()){switch(a){case ai:a=ci;break;case"end":a=ui;break;case li:a=di}ri(e,{touches:s},(t=s[0],s=s[1],i=t.x.location,t=t.y.location,r=i-(o=s.x.location),n=t-(s=s.y.location),{center:{x:(i+o)/2,y:(t+s)/2},distance:Math.sqrt(r*r+n*n)}))}return this.trigger(a,ri(e,{type:a}))},Li.prototype.press=function(t,e,i){this._apiCall("_start",t,e,i)},Li.prototype.move=function(t,e){this._apiCall("_move",t,e)},Li.prototype.end=function(t,e){this._apiCall("_end",t,e)},Li.prototype._isMultiTouch=function(){return 1<this.touches.length},Li.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},Li.prototype._disposeAll=function(){for(var t=this.touches;0<t.length;)t.pop().dispose()},Li.prototype._isMoved=function(){return Nt(this.touches,function(t){return t.isMoved()}).length},Li.prototype._select=function(t){this.allowSelection&&!this.trigger("select",{event:t})||t.preventDefault()},Li.prototype._start=function(t){if(!(t.which&&1<t.which||this._maxTouchesReached())){Li.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();for(var e=gi(t),i=0;i<e.length&&!this._maxTouchesReached();i++){var o,r=e[i];(o=this.filter?r.currentTarget:this.element)&&0===o.length||(o=new xi(this,o,r),this.touches.push(o),o.press(),this._isMultiTouch()&&this.notify("gesturestart",{}))}}},Li.prototype._move=function(t){this._eachTouch("move",t)},Li.prototype._end=function(t){this._eachTouch("end",t)},Li.prototype._eachTouch=function(t,e){for(var i,o,r,n={},s=gi(e),a=this.touches,l=0;l<a.length;l++)n[(i=a[l]).id]=i;for(l=0;l<s.length;l++)(r=n[(o=s[l]).id])&&("move"!==t||"pointer"!==o.type||this.surface.hasPointerCapture(o.id)||this.surface.setPointerCapture(o.id),r[t](o))},Li.prototype._apiCall=function(t,e,i,o){this[t]({api:!0,pageX:e,pageY:i,clientX:e,clientY:i,target:o||this.element,stopPropagation:Ze,preventDefault:Ze})},Li.defaultThreshold=function(t){si=t},Li.minHold=function(t){ni=t};var ki,Ai,Si,Ci,Pi,Ti,Mi,Oi=Li;function Li(t,e){ki.call(this);var i,o=this,r=qe();this.support=r,this.options=e=e||{},r=o.filter=e.filter,o.threshold=e.threshold||si,o.minHold=e.minHold||ni,o.touches=[],o._maxTouches=e.multiTouch?2:1,o.allowSelection=e.allowSelection,o.captureUpIfMoved=e.captureUpIfMoved,o._clicks=0,o.supportDoubleTap=e.supportDoubleTap,ri(o,{element:t,surface:e.surface||t,stopPropagation:e.stopPropagation,pressed:!1}),this._surfaceMoveHandler=this._move.bind(this),Xe(o.surface,Ne("move"),this._surfaceMoveHandler),this._surfaceEndHandler=this._end.bind(this),Xe(o.surface,Ne("up cancel"),this._surfaceEndHandler),this._elementStartHandler=this._start.bind(this),Xe(t,Ne("down"),r,this._elementStartHandler),t.style["touch-action"]=e.touchAction||"none",e.preventDragEvent&&(this._elementDragStartHandler=oi,Xe(t,Ne("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=this._select.bind(this),Xe(t,Ne("mousedown"),r,this._elementSelectHandler),o.captureUpIfMoved&&(i=o.surface,o._preventIfMovingProxy=o.preventIfMoving.bind(o),wi(function(t){i.addEventListener(t,o._preventIfMovingProxy,!0)})),o.bind(["press","hold",li,hi,"start",ai,"end",pi,"cancel","gesturestart",ci,ui,di,"select"],e)}let Ii=Oi;function Bi(t,e){t=L(e-t,g-1);if(0===t){if(0===e)return.1;t=Math.abs(e)}e=Math.pow(10,Math.floor(Math.log(t)/Math.log(10))),t=L(t/e,g);return L(e*(t<1.904762?.2:t<4.761904?.5:t<9.523809?1:2),g)}(Ai=M.Class)&&(Ei.__proto__=Ai),((Ei.prototype=Object.create(Ai&&Ai.prototype)).constructor=Ei).prototype.clone=function(){return new Ei(this.x,this.y)},Ei.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},Ei.prototype.rotate=function(t,e){var e=ce(e),i=Math.cos(e),e=Math.sin(e),o=t.x,t=t.y,r=this.x,n=this.y;return this.x=L(o+(r-o)*i+(n-t)*e,Z),this.y=L(t+(n-t)*i-(r-o)*e,Z),this},Ei.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},Ei.prototype.distanceTo=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Ei.onCircle=function(t,e,i){e=ce(e);return new Ei(t.x-i*Math.cos(e),t.y-i*Math.sin(e))};let A=Ei;function Ei(t,e){Ai.call(this),this.x=t||0,this.y=e||0}function Ri(t,e,i,o){Si.call(this),this.x1=t||0,this.y1=e||0,this.x2=i||0,this.y2=o||0}function Vi(t,e,i,o,r){r=ce(r);return new A(i+(t-i)*Math.cos(r)+(e-o)*Math.sin(r),o-(t-i)*Math.sin(r)+(e-o)*Math.cos(r))}(Si=M.Class)&&(Ri.__proto__=Si),((Ri.prototype=Object.create(Si&&Si.prototype)).constructor=Ri).prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},Ri.prototype.width=function(){return this.x2-this.x1},Ri.prototype.height=function(){return this.y2-this.y1},Ri.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},Ri.prototype.move=function(t,e){var i=this.height(),o=this.width();return k(t)&&(this.x1=t,this.x2=this.x1+o),k(e)&&(this.y1=e,this.y2=this.y1+i),this},Ri.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},Ri.prototype.wrapPoint=function(t){var e=yt(t),i=e?t[0]:t.x,e=e?t[1]:t.y;return this.wrap(new Ri(i,e,i,e)),this},Ri.prototype.snapTo=function(t,e){return e!==y&&e||(this.x1=t.x1,this.x2=t.x2),e!==v&&e||(this.y1=t.y1,this.y2=t.y2),this},Ri.prototype.alignTo=function(t,e){var i,o,r=this.height(),n=this.width(),s=e===T||e===S?v:y,a=s==v?r:n;return e===b?(i=t.center(),o=this.center(),this.x1+=i.x-o.x,this.y1+=i.y-o.y):this[s+1]=e===T||e===C?t[s+1]-a:t[s+2],this.x2=this.x1+n,this.y2=this.y1+r,this},Ri.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},Ri.prototype.expand=function(t,e){return this.shrink(-t,-e),this},Ri.prototype.pad=function(t){t=w(t);return this.x1-=t.left,this.x2+=t.right,this.y1-=t.top,this.y2+=t.bottom,this},Ri.prototype.unpad=function(t){t=w(t);return t.left=-t.left,t.top=-t.top,t.right=-t.right,t.bottom=-t.bottom,this.pad(t)},Ri.prototype.clone=function(){return new Ri(this.x1,this.y1,this.x2,this.y2)},Ri.prototype.center=function(){return new A(this.x1+this.width()/2,this.y1+this.height()/2)},Ri.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},Ri.prototype.points=function(){return[new A(this.x1,this.y1),new A(this.x2,this.y1),new A(this.x2,this.y2),new A(this.x1,this.y2)]},Ri.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},Ri.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},Ri.prototype.rotate=function(t){var e=this.width(),i=this.height(),o=this.center(),r=o.x,o=o.y,n=Vi(0,0,r,o,t),s=Vi(e,0,r,o,t),a=Vi(e,i,r,o,t),r=Vi(0,i,r,o,t),e=Math.max(n.x,s.x,a.x,r.x)-Math.min(n.x,s.x,a.x,r.x),i=Math.max(n.y,s.y,a.y,r.y)-Math.min(n.y,s.y,a.y,r.y);return this.x2=this.x1+e,this.y2=this.y1+i,this},Ri.prototype.toRect=function(){return new M.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},Ri.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},Ri.prototype.align=function(t,e,i){var o=e+1,r=e+2,e=e===y?dt:et,n=this[e]();u(i,[C,T])?(this[o]=t[o],this[r]=this[o]+n):u(i,[P,S])?(this[r]=t[r],this[o]=this[r]-n):i===b&&(this[o]=t[o]+(t[e]()-n)/2,this[r]=this[o]+n)};let I=Ri,ji=((Ci=M.Class)&&(zi.__proto__=Ci),((zi.prototype=Object.create(Ci&&Ci.prototype)).constructor=zi).prototype.clone=function(){return new zi(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},zi.prototype.middle=function(){return this.startAngle+this.angle/2},zi.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},zi.prototype.point=function(t,e){var t=ce(t),i=Math.cos(t),t=Math.sin(t),e=e?this.innerRadius:this.radius,i=L(this.center.x-i*e,Z),t=L(this.center.y-t*e,Z);return new A(i,t)},zi.prototype.adjacentBox=function(t,e,i){var t=this.clone().expand(t),o=t.middle(),t=t.point(o),r=e/2,n=i/2,s=Math.sin(ce(o)),o=Math.cos(ce(o)),a=t.x-r,t=t.y-n;return Math.abs(s)<.9&&(a+=r*-o/Math.abs(o)),Math.abs(o)<.9&&(t+=n*-s/Math.abs(s)),new I(a,t,a+e,t+i)},zi.prototype.containsPoint=function(t){var e=this.center,i=this.innerRadius,o=this.radius,r=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,t=t.y-e.y,a=new A(s,t),r=this.point(r),r=new A(r.x-e.x,r.y-e.y),n=this.point(n),n=new A(n.x-e.x,n.y-e.y),e=L(s*s+t*t,Z);return(r.equals(a)||bt(r,a))&&!bt(n,a)&&i*i<=e&&e<=o*o},zi.prototype.getBBox=function(){for(var t=new I(rt,rt,nt,nt),e=L(this.startAngle%360),i=L((e+this.angle)%360),o=this.innerRadius,r=[0,90,180,270,e,i].sort(Di),n=r.indexOf(e),s=r.indexOf(i),a=e===i?r:n<s?r.slice(n,s+1):[].concat(r.slice(0,s+1),r.slice(n,r.length)),l=0;l<a.length;l++){var h=this.point(a[l]);t.wrapPoint(h),t.wrapPoint(h,o)}return o||t.wrapPoint(this.center),t},zi.prototype.expand=function(t){return this.radius+=t,this},zi);function zi(t,e,i,o,r){Ci.call(this),this.center=t,this.innerRadius=e,this.radius=i,this.startAngle=o,this.angle=r}function Di(t,e){return t-e}let Fi=ji,Hi=((Pi=Fi)&&(Ni.__proto__=Pi),((Ni.prototype=Object.create(Pi&&Pi.prototype)).constructor=Ni).prototype.expand=function(t){return Pi.prototype.expand.call(this,t)},Ni.prototype.clone=function(){return new Ni(this.center,this.radius,this.startAngle,this.angle)},Ni.prototype.setRadius=function(t){return this.radius=t,this},Ni);function Ni(t,e,i,o){Pi.call(this,t,0,e,i,o)}let Ui=Hi,Gi=((Ti=M.Class)&&(Wi.__proto__=Ti),((Wi.prototype=Object.create(Ti&&Ti.prototype)).constructor=Wi).prototype.createRing=function(t,e){var i=t.startAngle+180,o=t.angle+i,r=((0===t.angle||0<t.angle&&i===o)&&(o+=.001),new M.geometry.Point(t.center.x,t.center.y)),n=Math.max(t.radius,0),t=Math.max(t.innerRadius,0),n=new M.geometry.Arc(r,{startAngle:i,endAngle:o,radiusX:n,radiusY:n}),e=M.drawing.Path.fromArc(n,e).close();return t?(n.radiusX=n.radiusY=t,n=n.pointAt(o),e.lineTo(n.x,n.y),e.arc(o,i,t,t,!0)):e.lineTo(r.x,r.y),e},Wi);function Wi(){Ti.apply(this,arguments)}Gi.current=new Gi;let Xi=Gi,Yi=((Mi=M.Class)&&(qi.__proto__=Mi),((qi.prototype=Object.create(Mi&&Mi.prototype)).constructor=qi).prototype.initUserOptions=function(t){return t},qi.prototype.reflow=function(t){for(var e,i=this.children,o=0;o<i.length;o++){var r=i[o];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},qi.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},qi.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},qi.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},qi.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},qi.prototype.translateChildren=function(t,e){for(var i=this.children,o=i.length,r=0;r<o;r++)i[r].box.translate(t,e)},qi.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var i=t[e];this.children.push(i),i.parent=this}},qi.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},qi.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this).parent&&this.parent.appendVisual(this.visual)},qi.prototype.renderChildren=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)t[i].renderVisual()},qi.prototype.createVisual=function(){this.visual=new M.drawing.Group({zIndex:this.options.zIndex,visible:_(this.options.visible,!0)})},qi.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=M.drawing.Animation.create(this.visual,this.options.animation))},qi.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):k(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},qi.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},qi.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},qi.prototype.stackVisual=function(t){for(var e=t.options.zIndex||0,i=this.visual.children,o=i.length,r=0;r<o;r++){var n=i[r];if(_(n.options.zIndex,0)>e)break}this.visual.insert(r,t)},qi.prototype.traverse=function(t){for(var e=this.children,i=e.length,o=0;o<i;o++){var r=e[o];t(r),r.traverse&&r.traverse(t)}},qi.prototype.closest=function(t){for(var e=this,i=!1;e&&!i;)(i=t(e))||(e=e.parent);if(i)return e},qi.prototype.renderComplete=function(){},qi.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)},qi.prototype.toggleHighlight=function(t,e){var i=this,o=(this.options||{}).highlight||{},r=o.visual,n=this._highlight;if(!n){var s={fill:{color:a,opacity:e||.2},stroke:{color:a,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return i.createHighlight(s)},sender:this.getSender(),series:this.series,dataItem:this.dataItem,category:this.category,value:this.value,percentage:this.percentage,runningTotal:this.runningTotal,total:this.total}))))return}else n=this._highlight=this.createHighlight(s);k(n.options.zIndex)||(n.options.zIndex=_(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},qi.prototype.toggleFocusHighlight=function(t){var e,i=(this.options||{}).focusHighlight||{},o=this._focusHighlight;(t||o)&&(o||(e=this.getRoot().options.background,e=Me(e),e={fill:{opacity:i.opacity,color:i.color},stroke:Object.assign({},{color:e},i.border),zIndex:i.zIndex},o=this._focusHighlight=this.createFocusHighlight(e),this.appendVisual(o)),o.visible(t))},qi.prototype.createGradientOverlay=function(t,e,i){i=new M.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(i),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},qi.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},qi.prototype.supportsPointInactiveOpacity=function(){return!0},qi);function qi(t){Mi.call(this),this.children=[],this.options=O({},this.options,this.initUserOptions(t))}Yi.prototype.options={};let o=Yi;var Zi={dots:M.drawing.dotsPattern,verticalStripes:M.drawing.verticalStripesPattern,crosshatch:M.drawing.crosshatchPattern,diagonalStripes:M.drawing.diagonalStripesPattern,grid:M.drawing.gridPattern};function Qi(t,e,i){i=Pt(t=t)?t(i):t,t=i&&Zi[i.type];return t?t(Object.assign({},e,i)):e}(Ki=o)&&($i.__proto__=Ki),(($i.prototype=Object.create(Ki&&Ki.prototype)).constructor=$i).prototype.reflow=function(t){function e(){o.align(t,y,r.align),o.align(t,v,r.vAlign),o.paddingBox=i.clone().unpad(h).unpad(c)}var i,o=this,r=this.options,n=r.width,s=r.height,a=r.shrinkToFit,l=n&&s,h=r.margin,p=r.padding,c=r.border.width,u=t.clone();l&&(u.x2=u.x1+n,u.y2=u.y1+s),a&&u.unpad(h).unpad(c).unpad(p),Ki.prototype.reflow.call(this,u),i=l?this.box=new I(0,0,n,s):this.box,a&&l?(e(),u=this.contentBox=this.paddingBox.clone().unpad(p)):(u=this.contentBox=i.clone(),i.pad(p).pad(c).pad(h),e()),this.translateChildren(i.x1-u.x1+h.left+c+p.left,i.y1-u.y1+h.top+c+p.top);for(var d=this.children,f=0;f<d.length;f++){var g=d[f];g.reflow(g.box)}},$i.prototype.align=function(t,e,i){this.box.align(t,e,i)},$i.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},$i.prototype.createVisual=function(){Ki.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(M.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},$i.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:_(e.opacity,t.opacity),dashType:e.dashType},fill:Qi(t.pattern,{color:t.background,opacity:t.opacity},void 0),cursor:t.cursor}};var Ki,i=$i;function $i(t){Ki.call(this,t),this.options.margin=w(this.options.margin),this.options.padding=w(this.options.padding)}e(i,{align:C,vAlign:T,margin:{},padding:{},border:{color:Y,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});let Ji=i;function to(t,e){e&&(t.options.className=e.className,t.options.role=e.role,t.options.ariaLabel=e.ariaLabel,t.options.ariaRoleDescription=e.ariaRoleDescription,t.options.ariaChecked=e.ariaChecked)}(eo=Ji)&&(io.__proto__=eo),((io.prototype=Object.create(eo&&eo.prototype)).constructor=io).prototype.getElement=function(){var t,e,i=this.options,o=this.paddingBox,r=i.type,n=i.rotation,s=o.center(),a=o.width()/2,l=o.height()/2;return i.visible&&this.hasBox()?(e=this.visualStyle(),r===q?t=new M.drawing.Circle(new M.geometry.Circle([L(o.x1+a,Z),L(o.y1+l,Z)],Math.min(a,l)),e):"triangle"===r?t=M.drawing.Path.fromPoints([[o.x1+a,o.y1],[o.x1,o.y2],[o.x2,o.y2]],e).close():r===Q?((t=new M.drawing.MultiPath(e)).moveTo(o.x1,o.y1).lineTo(o.x2,o.y2),t.moveTo(o.x1,o.y2).lineTo(o.x2,o.y1)):(l=o.toRect(),r===ht&&(a=_(i.borderRadius,l.width()/5),l.setCornerRadius(a)),t=M.drawing.Path.fromRect(l,e)),n&&t.transform(M.geometry.transform().rotate(-n,[s.x,s.y])),t.options.zIndex=i.zIndex,t):null},io.prototype.createElement=function(){var t=this,e=this.options.visual,i=this.pointData||{};return e?e({value:i.value,dataItem:i.dataItem,sender:this.getSender(),series:i.series,category:i.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},io.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}},io.prototype.createVisual=function(){this.visual=this.createElement(),to(this.visual,this.options.accessibilityOptions)};var eo,t=io;function io(t,e){eo.call(this,t),this.pointData=e}e(t,{type:q,align:b,vAlign:b});let oo=t,ro="radial",no={glass:{type:"linear",rotation:0,stops:[{offset:0,color:a,opacity:0},{offset:.25,color:a,opacity:.3},{offset:1,color:a,opacity:0}]},sharpBevel:{type:ro,stops:[{offset:0,color:a,opacity:.55},{offset:.65,color:a,opacity:0},{offset:.95,color:a,opacity:.25}]},roundedBevel:{type:ro,stops:[{offset:.33,color:a,opacity:.06},{offset:.83,color:a,opacity:.2},{offset:.95,color:a,opacity:0}]},roundedGlass:{type:ro,supportVML:!1,stops:[{offset:0,color:a,opacity:0},{offset:.5,color:a,opacity:.3},{offset:.99,color:a,opacity:0}]},sharpGlass:{type:ro,supportVML:!1,stops:[{offset:0,color:a,opacity:.2},{offset:.15,color:a,opacity:.15},{offset:.17,color:a,opacity:.35},{offset:.85,color:a,opacity:.05},{offset:.87,color:a,opacity:.15},{offset:.99,color:a,opacity:0}]},bubbleShadow:{type:ro,center:[.5,.5],radius:.5}};(so=o)&&(lo.__proto__=so),((lo.prototype=Object.create(so&&so.prototype)).constructor=lo).prototype.reflow=function(){var t=this.options,e=this.children,i=new I(0,0,t.width,t.height);this.box=i.unpad(t.margin);for(var o,r,n,s,a,l,h,p,c,u,d,f=0;f<e.length;f++)e[f].reflow(i),o=i,r=e[f].box,d=u=c=p=h=l=a=s=n=void 0,i=(o.x1===r.x1&&o.y1===r.y1&&o.x2===r.x2&&o.y2===r.y2?r:(n=Math.min(o.x1,r.x1),s=Math.max(o.x1,r.x1),a=Math.min(o.x2,r.x2),l=Math.max(o.x2,r.x2),h=Math.min(o.y1,r.y1),p=Math.max(o.y1,r.y1),c=Math.min(o.y2,r.y2),u=Math.max(o.y2,r.y2),(d=[])[0]=new I(s,h,a,p),d[1]=new I(n,p,s,c),d[2]=new I(a,p,l,c),d[3]=new I(s,c,a,u),o.x1===n&&o.y1===h||r.x1===n&&r.y1===h?(d[4]=new I(n,h,s,p),d[5]=new I(a,c,l,u)):(d[4]=new I(a,h,l,p),d[5]=new I(n,c,s,u)),Nt(d,function(t){return 0<t.height()&&0<t.width()})[0]))||new I},lo.prototype.createVisual=function(){this.visual=new M.drawing.Group,this.createBackground()},lo.prototype.createBackground=function(){var t=this.options,e=t.border||{},i=this.box.clone().pad(t.margin).unpad(e.width),i=M.drawing.Path.fromRect(i.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(i)},lo.prototype.getRoot=function(){return this},lo.prototype.createGradient=function(t){var e,s,i=this.gradients,o=pe(t),r=no[t.gradient];return i[o]?e=i[o]:(s=Object.assign({},r,t),"linear"===r.type?e=new M.drawing.LinearGradient(s):(t.innerRadius&&(s.stops=(()=>{for(var t=s.stops,e=s.innerRadius/s.radius*100,i=t.length,o=[],r=0;r<i;r++){var n=Object.assign({},t[r]);n.offset=(n.offset*(100-e)+e)/100,o.push(n)}return o})()),(e=new M.drawing.RadialGradient(s)).supportVML=!1!==r.supportVML),i[o]=e),e},lo.prototype.cleanGradients=function(){var t,e=this.gradients;for(t in e)e[t]._observers=[]},lo.prototype.size=function(){var t=this.options;return new I(0,0,t.width,t.height)};var so,ao,i=lo;function lo(t){so.call(this,t);t=this.options;t.width=parseInt(t.width,10),t.height=parseInt(t.height,10),this.gradients={}}e(i,{width:600,height:400,background:a,border:{color:Y,width:0},margin:w(5),zIndex:-2});let ho=i,po=((ao=o)&&(co.__proto__=ao),((co.prototype=Object.create(ao&&ao.prototype)).constructor=co).prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=y,this.elementAxis=v,this.groupSizeField=dt,this.elementSizeField=et,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=v,this.elementAxis=y,this.groupSizeField=et,this.elementSizeField=dt,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},co.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},co.prototype.reflowChildren=function(){var t=this,e=t.box,i=t.elementAxis,o=t.groupAxis,r=t.elementSizeField,n=t.groupSizeField,t=this.groupOptions(),s=t.groups,a=t.groupsSize,t=t.maxGroupElementsSize,l=s.length,h=e[o+1]+this.alignStart(a,e[n]());if(l){for(var p=h,c=0;c<l;c++){for(var u=s[c],d=u.groupElements,f=e[i+1],g=d.length,y=0;y<g;y++){var v=d[y],m=this.elementSize(v),x=p+this.alignStart(m[n],u.groupSize),_=new I;_[o+1]=x,_[o+2]=x+m[n],_[i+1]=f,_[i+2]=f+m[r],v.reflow(_),f+=m[r]+this.elementSpacing}p+=u.groupSize+this.groupSpacing}e[o+1]=h,e[o+2]=h+a,e[i+2]=e[i+1]+t}},co.prototype.alignStart=function(t,e){var i=0,o=this.options.align;return o===P||o===S?i=e-t:o===b&&(i=(e-t)/2),i},co.prototype.groupOptions=function(){for(var t=this,e=t.box,i=t.children,o=t.elementSizeField,r=t.groupSizeField,n=t.elementSpacing,s=t.groupSpacing,a=L(e[o]()),l=i.length,h=[],p=0,c=0,u=0,d=0,f=[],g=0;g<l;g++){var y=i[g],v=(y.box||y.reflow(e),this.elementSize(y));this.options.wrap&&L(c+n+v[o])>a&&(h.push({groupElements:f,groupSize:p,groupElementsSize:c}),d=Math.max(d,c),u+=s+p,c=p=0,f=[]),p=Math.max(p,v[r]),0<c&&(c+=n),c+=v[o],f.push(y)}return h.push({groupElements:f,groupSize:p,groupElementsSize:c}),{groups:h,groupsSize:u+=p,maxGroupElementsSize:d=Math.max(d,c)}},co.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},co.prototype.createVisual=function(){},co);function co(t){ao.call(this,t),this._initDirection()}e(po,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});let uo=po;var fo,go=M.drawing.Text,t=((fo=o)&&(yo.__proto__=fo),((yo.prototype=Object.create(fo&&fo.prototype)).constructor=yo).prototype.reflow=function(t){var e=this.options,e=e.size=M.drawing.util.measureText(this.content,{font:e.font});this.baseline=e.baseline,this.box=new I(t.x1,t.y1,t.x1+e.width,t.y1+e.height)},yo.prototype.createVisual=function(){var t=this.options,e=t.font,i=t.color,o=t.opacity,r=t.cursor,n=t.stroke,t=t.paintOrder;this.visual=new go(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:i,opacity:o},cursor:r,stroke:n,paintOrder:t})},yo);function yo(t,e){fo.call(this,e),this.content=t,this.reflow(new I)}e(t,{font:$,color:Y});let vo=t;function mo(t){var e=t.origin,t=t.bottomRight();return new I(e.x,e.y,t.x,t.y)}var xo,_o,bo,wo,ko=/\n/m;function Ao(t,e,i){xo.call(this,e),this.content=t,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new I)}(xo=Ji)&&(Ao.__proto__=xo),((Ao.prototype=Object.create(xo&&xo.prototype)).constructor=Ao).prototype._initContainer=function(){var t=this.options,e=String(this.content).split(ko),i=new uo({vertical:!0,align:t.align,wrap:!1}),o=O({},t,{opacity:1,animation:null});this.container=i,this.append(i);for(var r=0;r<e.length;r++){var n=new vo(e[r].trim(),o);i.append(n)}},Ao.prototype.reflow=function(t){var e,i=this.options,o=i.visual;this.container.options.align=i.align,o&&!this._boxReflow?((e=t).hasSize()||(this._boxReflow=!0,this.reflow(e),this._boxReflow=!1,e=this.box),(o=this.visual=o(this.visualContext(e)))&&(e=mo(o.clippedBBox()||new M.geometry.Rect),o.options.zIndex=i.zIndex),this.box=this.contentBox=this.paddingBox=e):(xo.prototype.reflow.call(this,t),i.rotation&&(o=w(i.margin),e=this.box.unpad(o),this.targetBox=t,this.normalBox=e.clone(),(e=this.rotate()).translate(o.left-o.right,o.top-o.bottom),this.rotatedBox=e.clone(),e.pad(o)))},Ao.prototype.createVisual=function(){var t=this.options;this.visual=new M.drawing.Group({transform:this.rotationTransform(),zIndex:t.zIndex,noclip:t.noclip}),this.hasBox()&&(t=M.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()),this.visual.append(t))},Ao.prototype.renderVisual=function(){var t;this.options.visible&&(this.options.visual?((t=this.visual)&&!k(t.options.noclip)&&(t.options.noclip=this.options.noclip),this.addVisual(),this.createAnimation()):xo.prototype.renderVisual.call(this))},Ao.prototype.visualContext=function(t){var e=this,i={text:this.content,rect:t.toRect(),sender:this.getSender(),options:this.options,