@progress/kendo-charts
Version:
Kendo UI platform-independent Charts library
1 lines • 583 kB
JavaScript
System.register("@progress/kendo-charts",["@progress/kendo-drawing"],function(t,e){var iw={};return{setters:[function(t){iw.Color=t.Color,iw.drawing=t.drawing,iw.geometry=t.geometry,iw.logToConsole=t.logToConsole,iw.parseColor=t.parseColor,iw.support=t.support,iw.throttle=t.throttle}],execute:function(){t((()=>{var V={593:t=>{t.exports=iw}},z={};function j(t){var e=z[t];return void 0!==e||(e=z[t]={exports:{}},V[t](e,e.exports,j)),e.exports}j.d=(t,e)=>{for(var i in e)j.o(e,i)&&!j.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},j.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);var D={},F=((j.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})})(D),j.d(D,{Aggregates:()=>bn,ArcGauge:()=>pv,ArcScale:()=>ev,AreaChart:()=>yl,AreaSegment:()=>sl,ArrowLinearPointer:()=>dy,Axis:()=>Do,AxisGroupRangeTracker:()=>vl,AxisLabel:()=>bo,Bar:()=>Al,BarChart:()=>Zl,BarLabel:()=>bl,BarLinearPointer:()=>_y,Barcode:()=>jm,Box:()=>B,BoxElement:()=>Hi,BoxPlot:()=>rh,BoxPlotChart:()=>ph,BubbleChart:()=>wh,Bullet:()=>Ph,BulletChart:()=>Bh,Candlestick:()=>$l,CandlestickChart:()=>eh,CategoricalChart:()=>ka,CategoricalErrorBar:()=>Ks,CategoricalPlotArea:()=>dc,CategoryAxis:()=>mr,Chart:()=>og,ChartAxis:()=>dn,ChartContainer:()=>Gh,ChartElement:()=>o,ChartPane:()=>yn,ChartPlotArea:()=>vn,ChartService:()=>Bo,ChartWizardCommon:()=>b0,CircularGauge:()=>fv,ClipAnimation:()=>Ja,ClusterLayout:()=>Ul,Crosshair:()=>Hh,CrosshairTooltip:()=>jh,CurveProcessor:()=>un,DateCategoryAxis:()=>Cr,DateValueAxis:()=>jr,DefaultAggregates:()=>hp,DomEventsBuilder:()=>Ro,DonutChart:()=>ad,DonutPlotArea:()=>pd,DonutSegment:()=>rd,ErrorBarBase:()=>qs,ErrorRangeCalculator:()=>Tn,Extent:()=>jb,FloatElement:()=>to,FontLoader:()=>de,FormatService:()=>Oo,Gauge:()=>Xg,Gradients:()=>Yi,HashMap:()=>Wt,Highlight:()=>gc,InstanceObserver:()=>Zt,IntlService:()=>Co,Legend:()=>$c,LegendItem:()=>Yc,LegendLayout:()=>Bc,LineChart:()=>ol,LinePoint:()=>Pa,LineSegment:()=>La,LinearGauge:()=>Sy,LinearPointer:()=>ry,LinearScale:()=>ty,Location:()=>I,LogarithmicAxis:()=>Wr,Map:()=>p_,Matrix:()=>De,MousewheelZoom:()=>Mc,Navigator:()=>Tg,NavigatorHint:()=>bg,Note:()=>ko,NumericAxis:()=>Rr,OHLCChart:()=>Yp,OHLCPoint:()=>Gp,Observable:()=>ii,Pane:()=>qh,Pannable:()=>Tc,PieAnimation:()=>ku,PieChart:()=>$u,PieChartMixin:()=>qu,PiePlotArea:()=>ed,PieSegment:()=>Xu,PlotAreaBase:()=>rp,PlotAreaEventsMixin:()=>sp,PlotAreaFactory:()=>Jc,Point:()=>A,PointEventsMixin:()=>Sa,PolarAxis:()=>$r,QRCode:()=>Fx,RadarCategoryAxis:()=>Zr,RadarLogarithmicAxis:()=>hn,RadarNumericAxis:()=>nn,RadialGauge:()=>$y,RadialPointer:()=>Uy,RadialScale:()=>Ey,RangeAreaChart:()=>Hp,RangeAreaPoint:()=>Mp,RangeBar:()=>up,RangeBarChart:()=>gp,RangePointer:()=>av,Ring:()=>Oi,RootElement:()=>Ki,Sankey:()=>Y_,ScatterChart:()=>yh,ScatterErrorBar:()=>dh,ScatterLineChart:()=>Mu,Sector:()=>Ri,Selection:()=>su,SeriesAggregator:()=>lp,SeriesBinder:()=>kn,ShapeBuilder:()=>Vi,ShapeElement:()=>Wi,SharedTooltip:()=>uu,Sparkline:()=>fg,SplineAreaSegment:()=>ul,SplineSegment:()=>Ha,StackWrap:()=>Xl,StockChart:()=>Og,TemplateService:()=>Vt,Text:()=>ro,TextBox:()=>uo,Title:()=>vo,Tooltip:()=>hu,UserEvents:()=>wi,WaterfallChart:()=>nc,WaterfallSegment:()=>Qp,XYPlotArea:()=>Ru,ZoomSelection:()=>Pc,addClass:()=>vt,alignPathToPixel:()=>bt,anyHasZIndex:()=>$s,append:()=>ee,appendIfNotNull:()=>Js,applyEventMap:()=>Ne,areNumbers:()=>ta,autoMajorUnit:()=>ki,autoTextColor:()=>Me,barcodeValidator:()=>Fm,bindEvents:()=>ie,bindSegments:()=>ia,categoriesCount:()=>oa,chartBaseTheme:()=>G0,chartTheme:()=>ew,clockwise:()=>_t,constants:()=>F,convertableToNumber:()=>kt,countNumbers:()=>mn,createHashSet:()=>Ee,createOutOfRangePoints:()=>va,createPatternFill:()=>ji,createSankeyData:()=>q_,cycleDown:()=>St,cycleIndex:()=>Ct,cycleUp:()=>At,deepExtend:()=>O,defaultErrorHandler:()=>Re,defined:()=>k,deg:()=>oe,elementOffset:()=>re,elementScale:()=>Pe,elementSize:()=>ne,elementStyles:()=>It,equalsIgnoreCase:()=>ra,evalOptions:()=>sa,eventCoordinates:()=>se,eventElement:()=>ae,eventMap:()=>Fe,filterSeriesByType:()=>aa,find:()=>Ae,findAxisByName:()=>fn,gaugeTheme:()=>J0,getAriaTemplate:()=>jt,getField:()=>_n,getSpacing:()=>w,getSupportedFeatures:()=>Ze,getTemplate:()=>zt,getter:()=>Ht,grep:()=>Nt,hasClasses:()=>Ut,hasGradientOverlay:()=>pa,hasOwnProperty:()=>ze,hasValue:()=>ca,hashKey:()=>le,inArray:()=>u,interpolateValue:()=>Xt,isArray:()=>yt,isDateAxis:()=>ua,isFunction:()=>Tt,isNumber:()=>m,isObject:()=>Ot,isPlainObject:()=>Qt,isString:()=>wt,keys:()=>Ve,last:()=>he,limitValue:()=>x,logToConsole:()=>M.logToConsole,map:()=>Kt,mousewheelDelta:()=>Jt,noop:()=>Qe,now:()=>Ke,objectKey:()=>pe,off:()=>qe,on:()=>Ye,parseDateCategory:()=>ha,qrcodeValidator:()=>Hx,rad:()=>ce,rectToBox:()=>no,removeClass:()=>xt,renderIcon:()=>we,round:()=>L,sankeyTheme:()=>tw,segmentVisible:()=>ea,setDefaultOptions:()=>e,singleItemOrArray:()=>da,sparseArrayLimits:()=>ke,styleValue:()=>Lt,unbindEvents:()=>ue,unclipBox:()=>ma,valueOrDefault:()=>b}),{}),H=(j.r(F),j.d(F,{DEFAULT_PANE:()=>Sg,NAVIGATOR_AXIS:()=>Ag,NAVIGATOR_PANE:()=>kg}),"arc"),N="ArrowUp",U="ArrowDown",G="ArrowLeft",W="ArrowRight",X="aria-activedescendant",Y="#000",S="bottom",_="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",T="right",ht="roundedRect",pt="start",ct="string",P="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=j(593);function bt(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 _t(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 Tt(t){return"function"==typeof t}var Pt="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]))===Pt&&null!==r?r.constructor:null)&&s!==Array?r instanceof Date?e[o]=new Date(r.getTime()):Tt(r.clone)?e[o]=r.clone():(s=e[o],e[o]=typeof s===Pt&&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 Bt=/width|height|top|left|bottom|right/i;function It(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]=Bt.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[P]=i[T]=i[S]=i[C]=t:(i[P]=t[P]||e,i[T]=t[T]||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 zt(t){var e;return(t=void 0===t?{}:t).template?t.template=e=Vt.compile(t.template):Tt(t.content)&&(e=t.content),e}function jt(t){var e;return(t=void 0===t?{}:t).ariaTemplate?t.ariaTemplate=e=Vt.compile(t.ariaTemplate):Tt(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(void 0!==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]}Ft[void 0]=function(t){return t};let Nt=function(t,e){return t.filter(e)};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}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 e.includes(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,b=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)&&(be.__proto__=xe),((be.prototype=Object.create(xe&&xe.prototype)).constructor=be).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=be;function be(t,e){t.innerHTML="",xe.call(this,t,e)}e(i,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});var _e={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"),_e[e.type]?new _e[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 Te(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 Pe(t){if(!t)return Se.unit();for(var e=Te(t),i=t.parentElement;i;)var o=Te(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}},Be=(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}},Ie=(Be.prototype.values=function(){return Array.from(this._set)},Be.prototype.has=function(t){return this._set.has(t)},Be.prototype.add=function(t){this._set.add(t)},Be.prototype.delete=function(t){this._set.delete(t)},Be.prototype.clear=function(){this._set.clear()},t.size.get=function(){return this._set.size},Object.defineProperties(Be.prototype,t),function(){var t=!1;return t="function"==typeof Set?new Set([1]).has(1):t});function Ee(t){return new(Ie()?Be: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 ze(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function je(){this.height=0,this.width=0,this.data=[]}je.prototype.clone=function(){var t=new je;return t.height=this.height,t.width=this.width,t.data=this.data.map(function(t){return t.slice()}),t},je.prototype.get=function(t,e){t=this.data[t];return t?t[e]:null},je.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)},je.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}},je.prototype.map=function(o,t){var r=new je;return this.each(function(t,e,i){r.set(e,i,o(t,e,i))},t),r},je.prototype.transpose=function(){var o=new je;return this.each(function(t,e,i){o.set(i,e,t)}),o},je.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},je.prototype.multiply=function(t){for(var e=new je,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},je.prototype.inverse=function(){for(var n=this.width,t=this.augment((new je).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)},je.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},je.prototype.slice=function(t,e,i,o){for(var r=new je,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=je;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)},Ue=1;function Ge(){return"kchart"+Ue++}var We=new WeakMap,Xe=Symbol("id");function Ye(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)&&Tt(o)&&!h?s=o:o&&"string"==typeof o&&Tt(s)&&(n=o),s[Xe]||(s[Xe]=Ge()),(o=We.get(i))||(o=new Map,We.set(i,o)),o.set(t+s[Xe],e),i.addEventListener(t,e,Boolean(r))})}function qe(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=We.get(e))&&i&&i[Xe]&&(i=t+i[Xe],r=n.get(i),n.delete(i),r)&&e.removeEventListener(t,r,Boolean(o))})}function Ze(){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 Qe(){}function Ke(){return(new Date).getTime()}function $e(){this._defaultPrevented=!0}function Je(){return!0===this._defaultPrevented}function ti(){this._events={}}var ei="function";ti.prototype.destroy=function(){this.unbind()},ti.prototype.bind=function(t,e,i){var o,r,n=this,s="string"==typeof t?[t]:t||[],a=typeof e==ei;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},ti.prototype.one=function(t,e){return this.bind(t,e,!0)},ti.prototype.first=function(t,e){for(var i,o="string"==typeof t?[t]:t,r=typeof e==ei,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},ti.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=$e,n.isDefaultPrevented=Je,i=0,o=(r=r.slice()).length;i<o;i++)r[i].call(this,n);return!0===n._defaultPrevented}return!1},ti.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},ti.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=ti;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}function yi(t,e){var i=this;i.support=Ze(),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=Ke()}function vi(t,e,i){ri(this,{x:new yi("X",i.location),y:new yi("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})}yi.prototype.move=function(t){var e=this,i=t["page"+e.axis],o=Ke(),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)},yi.prototype._updateLocationData=function(t){var e=this.axis;this.location=t["page"+e],this.client=t["client"+e],this.screen=t["screen"+e]};function mi(t){for(var e=Fe.up.split(" "),i=0,o=e.length;i<o;i++)t(e[i])}vi.prototype.press=function(){var t=this;this._holdTimeout=setTimeout(function(){return t._hold()},this.userEvents.minHold),this._trigger("press",this.pressEvent)},vi.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))},vi.prototype._hold=function(){this._trigger("hold",this.pressEvent)},vi.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(bi.current&&bi.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger(ai,t)}},vi.prototype.end=function(t){this.endTime=Ke(),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())},vi.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)},vi.prototype.skip=function(){this.dispose()},vi.prototype.cancel=function(){this.dispose()},vi.prototype.isMoved=function(){return this._moved},vi.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=Ke(),this._moved=!0,this._trigger("start",t)},vi.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()},vi.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold};(xi=ii)&&(_i.__proto__=xi),((_i.prototype=Object.create(xi&&xi.prototype)).constructor=_i).prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},_i.prototype.destroy=function(){var e,i=this,t=this.options,o=this.element;i._destroyed||(i._destroyed=!0,i.captureUpIfMoved&&(e=i.surface,mi(function(t){e.removeEventListener(t,i._preventIfMovingProxy,!0)})),qe(i.surface,Ne("move"),this._surfaceMoveHandler),qe(i.surface,Ne("up cancel"),this._surfaceEndHandler),qe(o,Ne("down"),this._elementStartHandler),t.preventDragEvent&&qe(o,Ne("dragstart"),this._elementDragStartHandler),qe(o,Ne("mousedown"),this._elementSelectHandler),i._disposeAll(),i.unbind(),delete i.surface,delete i.element,delete i.currentTarget)},_i.prototype.capture=function(){_i.current=this},_i.prototype.cancel=function(){this._disposeAll(),this.trigger("cancel")},_i.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}))},_i.prototype.press=function(t,e,i){this._apiCall("_start",t,e,i)},_i.prototype.move=function(t,e){this._apiCall("_move",t,e)},_i.prototype.end=function(t,e){this._apiCall("_end",t,e)},_i.prototype._isMultiTouch=function(){return 1<this.touches.length},_i.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},_i.prototype._disposeAll=function(){for(var t=this.touches;0<t.length;)t.pop().dispose()},_i.prototype._isMoved=function(){return Nt(this.touches,function(t){return t.isMoved()}).length},_i.prototype._select=function(t){this.allowSelection&&!this.trigger("select",{event:t})||t.preventDefault()},_i.prototype._start=function(t){if(!(t.which&&1<t.which||this._maxTouchesReached())){_i.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 vi(this,o,r),this.touches.push(o),o.press(),this._isMultiTouch()&&this.notify("gesturestart",{}))}}},_i.prototype._move=function(t){this._eachTouch("move",t)},_i.prototype._end=function(t){this._eachTouch("end",t)},_i.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))},_i.prototype._apiCall=function(t,e,i,o){this[t]({api:!0,pageX:e,pageY:i,clientX:e,clientY:i,target:o||this.element,stopPropagation:Qe,preventDefault:Qe})},_i.defaultThreshold=function(t){si=t},_i.minHold=function(t){ni=t};var xi,bi=_i;function _i(t,e){xi.call(this);var i,o=this,r=Ze();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),Ye(o.surface,Ne("move"),this._surfaceMoveHandler),this._surfaceEndHandler=this._end.bind(this),Ye(o.surface,Ne("up cancel"),this._surfaceEndHandler),this._elementStartHandler=this._start.bind(this),Ye(t,Ne("down"),r,this._elementStartHandler),t.style["touch-action"]=e.touchAction||"none",e.preventDragEvent&&(this._elementDragStartHandler=oi,Ye(t,Ne("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=this._select.bind(this),Ye(t,Ne("mousedown"),r,this._elementSelectHandler),o.captureUpIfMoved&&(i=o.surface,o._preventIfMovingProxy=o.preventIfMoving.bind(o),mi(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 wi=bi;function ki(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)}function Ai(t,e){this.x=t||0,this.y=e||0}Ai.prototype.clone=function(){return new Ai(this.x,this.y)},Ai.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},Ai.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},Ai.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},Ai.prototype.distanceTo=function(t){var e=this.x-t.x,t=this.y-t.y;return Math.sqrt(e*e+t*t)},Ai.onCircle=function(t,e,i){e=ce(e);return new Ai(t.x-i*Math.cos(e),t.y-i*Math.sin(e))};let A=Ai;function Si(t,e,i,o){this.x1=t||0,this.y1=e||0,this.x2=i||0,this.y2=o||0}function Ci(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.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},Si.prototype.width=function(){return this.x2-this.x1},Si.prototype.height=function(){return this.y2-this.y1},Si.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},Si.prototype.move=function(t,e){var i=this.height(),o=this.width();return void 0!==t&&(this.x1=t,this.x2=this.x1+o),void 0!==e&&(this.y1=e,this.y2=this.y1+i),this},Si.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},Si.prototype.wrapLimit=function(t,e,i){return this.x1=Math.min(this.x1,Math.max(this.x1-e,t.x1)),this.y1=Math.min(this.y1,Math.max(this.y1-i,t.y1)),this.x2=Math.max(this.x2,Math.min(this.x2+e,t.x2)),this.y2=Math.max(this.y2,Math.min(this.y2+i,t.y2)),this},Si.prototype.wrapPoint=function(t){var e=yt(t),i=e?t[0]:t.x,e=e?t[1]:t.y;return this.wrap(new Si(i,e,i,e)),this},Si.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},Si.prototype.alignTo=function(t,e){var i,o,r=this.height(),n=this.width(),s=e===P||e===S?v:y,a=s==v?r:n;return e===_?(i=t.center(),o=this.center(),this.x1+=i.x-o.x,this.y1+=i.y-o.y):this[s+1]=e===P||e===C?t[s+1]-a:t[s+2],this.x2=this.x1+n,this.y2=this.y1+r,this},Si.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},Si.prototype.expand=function(t,e){return this.shrink(-t,-e),this},Si.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},Si.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)},Si.prototype.clone=function(){return new Si(this.x1,this.y1,this.x2,this.y2)},Si.prototype.center=function(){return new A(this.x1+this.width()/2,this.y1+this.height()/2)},Si.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},Si.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)]},Si.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},Si.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},Si.prototype.rotate=function(t){var e=this.width(),i=this.height(),o=this.center(),r=o.x,o=o.y,n=Ci(0,0,r,o,t),s=Ci(e,0,r,o,t),a=Ci(e,i,r,o,t),r=Ci(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},Si.prototype.toRect=function(){return new M.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},Si.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},Si.prototype.align=function(t,e,i){return e===y?this.alignX(t,i):this.alignY(t,i),this},Si.prototype.alignX=function(t,e){var i=this.width();e===C?(this.x1=t.x1,this.x2=this.x1+i):e===T?(this.x2=t.x2,this.x1=this.x2-i):e===_&&(this.x1=t.x1+(t.width()-i)/2,this.x2=this.x1+i)},Si.prototype.alignY=function(t,e){var i=this.height();e===P?(this.y1=t.y1,this.y2=this.y1+i):e===S?(this.y2=t.y2,this.y1=this.y2-i):e===_&&(this.y1=t.y1+(t.height()-i)/2,this.y2=this.y1+i)};let B=Si;function Ti(t,e,i,o,r){this.center=t,this.innerRadius=e,this.radius=i,this.startAngle=o,this.angle=r}var Pi;function Mi(t,e){return t-e}Ti.prototype.clone=function(){return new Ti(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},Ti.prototype.middle=function(){return this.startAngle+this.angle/2},Ti.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},Ti.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)},Ti.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 B(a,t,a+e,t+i)},Ti.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)||_t(r,a))&&!_t(n,a)&&i*i<=e&&e<=o*o},Ti.prototype.getBBox=function(){for(var t=new B(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(Mi),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},Ti.prototype.expand=function(t){return this.radius+=t,this};let Oi=Ti,Li=((Pi=Oi)&&(Bi.__proto__=Pi),((Bi.prototype=Object.create(Pi&&Pi.prototype)).constructor=Bi).prototype.expand=function(t){return Pi.prototype.expand.call(this,t)},Bi.prototype.clone=function(){return new Bi(this.center,this.radius,this.startAngle,this.angle)},Bi.prototype.setRadius=function(t){return this.radius=t,this},Bi);function Bi(t,e,i,o){Pi.call(this,t,0,e,i,o)}function Ii(){}function Ei(t){this.children=[],this.initOptions(t)}let Ri=Li,Vi=(Ii.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},Ii.current=new Ii,Ii),o=(Ei.prototype.initOptions=function(t){this.options=O({},this.options,this.initUserOptions(t))},Ei.prototype.initUserOptions=function(t){return t},Ei.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},Ei.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},Ei.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},Ei.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},Ei.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},Ei.prototype.translateChildren=function(t,e){for(var i=this.children,o=i.length,r=0;r<o;r++)i[r].box.translate(t,e)},Ei.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var i=t[e];this.children.push(i),i.parent=this}},Ei.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},Ei.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this).parent&&this.parent.appendVisual(this.visual)},Ei.prototype.renderChildren=function(){for(var t=this.children,e=t.length,i=0;i<e;i++)t[i].renderVisual()},Ei.prototype.createVisual=function(){this.visual=new M.drawing.Group({zIndex:this.options.zIndex,visible:b(this.options.visible,!0)})},Ei.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=M.drawing.Animation.create(this.visual,this.options.animation))},Ei.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):void 0!==t.options.zIndex?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},Ei.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},Ei.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},Ei.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(b(n.options.zIndex,0)>e)break}this.visual.insert(r,t)},Ei.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)}},Ei.prototype.closest=function(t){for(var e=this,i=!1;e&&!i;)(i=t(e))||(e=e.parent);if(i)return e},Ei.prototype.renderComplete=function(){},Ei.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)},Ei.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);void 0===n.options.zIndex&&(n.options.zIndex=b(o.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},Ei.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))},Ei.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},Ei.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},Ei.prototype.supportsPointInactiveOpacity=function(){return!0},Ei.prototype.options={},Ei);var zi={dots:M.drawing.dotsPattern,verticalStripes:M.drawing.verticalStripesPattern,crosshatch:M.drawing.crosshatchPattern,diagonalStripes:M.drawing.diagonalStripesPattern,grid:M.drawing.gridPattern};function ji(t,e,i){i=Tt(t=t)?t(i):t,t=i&&zi[i.type];return t?t(Object.assign({},e,i)):e}(Di=o)&&(Fi.__proto__=Di),((Fi.prototype=Object.create(Di&&Di.prototype)).constructor=Fi).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),Di.prototype.reflow.call(this,u),i=l?this.box=new B(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)}},Fi.prototype.align=function(t,e,i){this.box.align(t,e,i)},Fi.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},Fi.prototype.createVisual=function(){Di.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(M.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},Fi.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:b(e.opacity,t.opacity),dashType:e.dashType},fill:ji(t.pattern,{color:t.background,opacity:t.opacity},void 0),cursor:t.cursor}};var Di,i=Fi;function Fi(t){Di.call(this,t),this.options.margin=w(this.options.margin),this.options.padding=w(this.options.padding)}e(i,{align:C,vAlign:P,margin:{},padding:{},border:{color:Y,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});let Hi=i;function Ni(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)}(Ui=Hi)&&(Gi.__proto__=Ui),((Gi.prototype=Object.create(Ui&&Ui.prototype)).constructor=Gi).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=b(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},Gi.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()},Gi.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}},Gi.prototype.createVisual=function(){this.visual=this.createElement(),Ni(this.visual,this.options.accessibilityOptions)};var Ui,t=Gi;function Gi(t,e){Ui.call(this,t),this.pointData=e}e(t,{type:q,align:_,vAlign:_});let Wi=t,Xi="radial",Yi={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:Xi,stops:[{offset:0,color:a,opacity:.55},{offset:.65,color:a,opacity:0},{offset:.95,color:a,opacity:.25}]},roundedBevel:{type:Xi,stops:[{offset:.33,color:a,opacity:.06},{offset:.83,color:a,opacity:.2},{offset:.95,color:a,opacity:0}]},roundedGlass:{type:Xi,supportVML:!1,stops:[{offset:0,color:a,opacity:0},{offset:.5,color:a,opacity:.3},{offset:.99,color:a,opacity:0}]},sharpGlass:{type:Xi,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:Xi,center:[.5,.5],radius:.5}};(qi=o)&&(Qi.__proto__=qi),((Qi.prototype=Object.create(qi&&qi.prototype)).constructor=Qi).prototype.reflow=function(){var t=this.options,e=this.children,i=new B(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 B(s,h,a,p),d[1]=new B(n,p,s,c),d[2]=new B(a,p,l,c),d[3]=new B(s,c,a,u),o.x1===n&&o.y1===h||r.x1===n&&r.y1===h?(d[4]=new B(n,h,s,p),d[5]=new B(a,c,l,u)):(d[4]=new B(a,h,l,p),d[5]=new B(n,c,s,u)),Nt(d,function(t){return 0<t.height()&&0<t.width()})[0]))||new B},Qi.prototype.createVisual=function(){this.visual=new M.drawing.Group,this.createBackground()},Qi.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)},Qi.prototype.getRoot=function(){return this},Qi.prototype.createGradient=function(t){var e,s,i=this.gradients,o=pe(t),r=Yi[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},Qi.prototype.cleanGradients=function(){var t,e=this.gradients;for(t in e)e[t]._observers=[]},Qi.prototype.size=function(){var t=this.options;return new B(0,0,t.width,t.height)};var qi,Zi,i=Qi;function Qi(t){qi.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 Ki=i,$i=((Zi=o)&&(Ji.__proto__=Zi),((Ji.prototype=Object.create(Zi&&Zi.prototype)).constructor=Ji).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)},Ji.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},Ji.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),b=new B;b[o+1]=x,b[o+2]=x+m[n],b[i+1]=f,b[i+2]=f+m[r],v.reflow(b),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}},Ji.prototype.alignStart=function(t,e){var i=0,o=this.options.align;return o===T||o===S?i=e-t:o===_&&(i=(e-t)/2),i},Ji.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)}},Ji.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},Ji.prototype.createVisual=function(){},Ji);function Ji(t){Zi.call(this,t),this._initDirection()}e($i,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});let to=$i;var eo,io=M.drawing.Text,t=((eo=o)&&(oo.__proto__=eo),((oo.prototype=Object.create(eo&&eo.prototype)).constructor=oo).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 B(t.x1,t.y1,t.x1+e.width,t.y1+e.height)},oo.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 io(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:i,opacity:o},cursor:r,stroke:n,paintOrder:t})},oo);function oo(t,e){eo.call(this,e),this.content=t,this.reflow(new B)}e(t,{font:$,color:Y});let ro=t;function no(t){var e=t.origin,t=t.bottomRight();return new B(e.x,e.y,t.x,t.y)}var so,ao,lo,ho,po=/\n/m;function co(t,e,i){so.call(this,e),this.content=t,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new B)}(so=Hi)&&(co.__proto__=so),((co.prototype=Object.create(so&&so.prototype)).constructor=co).prototype._initContainer=function(){var t=this.options,e=String(this.content).split(po),i=new to({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 ro(e[r].trim(),o);i.append(n)}},co.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=no(o.clippedBBox()||new M.geometry.Rect),o.options.zIndex=i.zIndex),this.box=this.contentBox=this.paddingBox=e):(so.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)))},co.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))},co.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()):so.prototype.renderVisual.call(this))},co.prototype.visualContext=function(t){var e=this,i={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(i,this.data),i},co.prototype.getDefaultVisual=function(){this.createVisual(),this.renderChildren();var t=this.visual;return delete this.visual,t},co.prototype.rotate=function(){var t=this.options;return this.box.rotate(t.rotation),this.align(this.targetBox,y,t.align),this.align(this.targetBox,v,t.vAlign),this.box},co.prototype.rotationTransform=function(){var t,e,i,o=this.options.rotation;return o?(t=(e=this.nor