@progress/kendo-charts
Version:
Kendo UI platform-independent Charts library
1 lines • 597 kB
JavaScript
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("@progress/kendo-drawing")):"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.KendoCharts=e(require("@progress/kendo-drawing")):t.KendoCharts=e(t.KendoDrawing)}(self,(t=>(()=>{"use strict";var e={721:e=>{e.exports=t}},o={};function i(t){var r=o[t];if(void 0!==r)return r.exports;var n=o[t]={exports:{}};return e[t](n,n.exports,i),n.exports}i.d=(t,e)=>{for(var o in e)i.o(e,o)&&!i.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},i.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),i.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};i.r(r),i.d(r,{Aggregates:()=>Yr,ArcGauge:()=>Hd,ArcScale:()=>Rd,AreaChart:()=>Ma,AreaSegment:()=>ka,ArrowLinearPointer:()=>sd,Axis:()=>bi,AxisGroupRangeTracker:()=>La,AxisLabel:()=>ti,Bar:()=>Va,BarChart:()=>Ga,BarLabel:()=>Ba,BarLinearPointer:()=>ud,Barcode:()=>If,Box:()=>xo,BoxElement:()=>Io,BoxPlot:()=>Qa,BoxPlotChart:()=>tp,BubbleChart:()=>pp,Bullet:()=>up,BulletChart:()=>fp,Candlestick:()=>Xa,CandlestickChart:()=>qa,CategoricalChart:()=>ta,CategoricalErrorBar:()=>Is,CategoricalPlotArea:()=>Al,CategoryAxis:()=>er,Chart:()=>ou,ChartAxis:()=>Fr,ChartContainer:()=>wp,ChartElement:()=>To,ChartPane:()=>Ur,ChartPlotArea:()=>Gr,ChartService:()=>fi,ChartWizardCommon:()=>Vm,CircularGauge:()=>Ud,Class:()=>q.Class,ClipAnimation:()=>ma,ClusterLayout:()=>Fa,Crosshair:()=>_p,CrosshairTooltip:()=>mp,CurveProcessor:()=>zr,DateCategoryAxis:()=>hr,DateValueAxis:()=>xr,DefaultAggregates:()=>Dp,DomEventsBuilder:()=>vi,DonutChart:()=>jh,DonutPlotArea:()=>Dh,DonutSegment:()=>Rh,ErrorBarBase:()=>Os,ErrorRangeCalculator:()=>tn,Extent:()=>Ay,FloatElement:()=>No,FontLoader:()=>Jt,FormatService:()=>ci,Gauge:()=>Uu,Gradients:()=>jo,HashMap:()=>St,Highlight:()=>Pl,InstanceObserver:()=>Ot,IntlService:()=>ai,Legend:()=>Kl,LegendItem:()=>ql,LegendLayout:()=>jl,LineChart:()=>ba,LinePoint:()=>na,LineSegment:()=>aa,LinearGauge:()=>gd,LinearPointer:()=>td,LinearScale:()=>Qu,Location:()=>Ug,LogarithmicAxis:()=>Ar,Map:()=>Lv,Matrix:()=>Ce,MousewheelZoom:()=>Rl,Navigator:()=>_u,NavigatorHint:()=>fu,Note:()=>oi,NumericAxis:()=>vr,OHLCChart:()=>sl,OHLCPoint:()=>rl,Observable:()=>Ue,Pane:()=>Sp,Pannable:()=>Ll,PieAnimation:()=>uh,PieChart:()=>Lh,PieChartMixin:()=>Th,PiePlotArea:()=>Bh,PieSegment:()=>Ch,PlotAreaBase:()=>Ip,PlotAreaEventsMixin:()=>Ep,PlotAreaFactory:()=>Jl,Point:()=>yo,PointEventsMixin:()=>oa,PolarAxis:()=>Mr,QRCode:()=>Ig,RadarCategoryAxis:()=>Pr,RadarLogarithmicAxis:()=>Vr,RadarNumericAxis:()=>Er,RadialGauge:()=>Bd,RadialPointer:()=>Od,RadialScale:()=>kd,RangeAreaChart:()=>ol,RangeAreaPoint:()=>qp,RangeBar:()=>Hp,RangeBarChart:()=>Up,RangePointer:()=>Dd,Ring:()=>wo,RootElement:()=>Fo,Sankey:()=>nm,ScatterChart:()=>rp,ScatterErrorBar:()=>op,ScatterLineChart:()=>fh,Sector:()=>Ao,Selection:()=>ih,SeriesAggregator:()=>jp,SeriesBinder:()=>Qr,ShapeBuilder:()=>Co,ShapeElement:()=>Ro,SharedTooltip:()=>ah,Sparkline:()=>hu,SplineAreaSegment:()=>Pa,SplineSegment:()=>fa,StackWrap:()=>Na,StockChart:()=>wu,TemplateService:()=>yt,Text:()=>Wo,TextBox:()=>Zo,Title:()=>$o,Tooltip:()=>nh,UserEvents:()=>fo,WaterfallChart:()=>hl,WaterfallSegment:()=>pl,XYPlotArea:()=>wh,ZoomSelection:()=>Bl,addClass:()=>W,alignPathToPixel:()=>Z,anyHasZIndex:()=>Bs,append:()=>Vt,appendIfNotNull:()=>Es,applyEventMap:()=>Me,areNumbers:()=>Rs,autoMajorUnit:()=>go,autoTextColor:()=>fe,barcodeValidator:()=>Ef,bindEvents:()=>jt,bindSegments:()=>js,categoriesCount:()=>zs,chartBaseTheme:()=>px,chartTheme:()=>Ax,clockwise:()=>Q,constants:()=>n,convertableToNumber:()=>J,countNumbers:()=>Wr,createHashSet:()=>be,createOutOfRangePoints:()=>$s,createPatternFill:()=>Oo,createSankeyData:()=>am,cycleDown:()=>et,cycleIndex:()=>ot,cycleUp:()=>tt,deepExtend:()=>at,defaultErrorHandler:()=>we,defined:()=>zt,deg:()=>Dt,elementOffset:()=>Ft,elementScale:()=>de,elementSize:()=>Ht,elementStyles:()=>ut,equalsIgnoreCase:()=>Ds,evalOptions:()=>Hs,eventCoordinates:()=>Nt,eventElement:()=>Ut,eventMap:()=>Pe,filterSeriesByType:()=>Ns,find:()=>le,findAxisByName:()=>Hr,gaugeTheme:()=>wx,getAriaTemplate:()=>mt,getField:()=>qr,getSpacing:()=>dt,getSupportedFeatures:()=>Re,getTemplate:()=>vt,getter:()=>bt,grep:()=>wt,hasClasses:()=>kt,hasGradientOverlay:()=>Ws,hasOwnProperty:()=>Ae,hasValue:()=>Xs,hashKey:()=>Gt,inArray:()=>Ct,interpolateValue:()=>Pt,isArray:()=>G,isDateAxis:()=>Ys,isFunction:()=>it,isNumber:()=>K,isObject:()=>pt,isPlainObject:()=>Lt,isString:()=>$,keys:()=>ke,last:()=>Wt,limitValue:()=>Xt,logToConsole:()=>q.logToConsole,map:()=>It,mousewheelDelta:()=>Et,noop:()=>je,now:()=>ze,objectKey:()=>Yt,off:()=>Ee,on:()=>Be,parseDateCategory:()=>Gs,qrcodeValidator:()=>Bg,rad:()=>qt,rectToBox:()=>Xo,removeClass:()=>Y,renderIcon:()=>ae,round:()=>Zt,sankeyTheme:()=>kx,segmentVisible:()=>Vs,setDefaultOptions:()=>te,singleItemOrArray:()=>qs,sparseArrayLimits:()=>pe,styleValue:()=>lt,unbindEvents:()=>Qt,valueOrDefault:()=>Kt});var n={};i.r(n),i.d(n,{DEFAULT_PANE:()=>vu,NAVIGATOR_AXIS:()=>yu,NAVIGATOR_PANE:()=>gu});var s="arc",a="ArrowUp",p="ArrowDown",l="ArrowLeft",h="ArrowRight",c="aria-activedescendant",u="#000",d="bottom",f="center",g="circle",y=3,v="cross",m="date",x="12px sans-serif",_=10,b="end",w=/\{\d+:?/,k="height",A="inside",S="inherit",C="left",P=Number.MAX_VALUE,T=-Number.MAX_VALUE,M="none",O="object",L="outside",I="right",B="roundedRect",E="start",R="string",V="top",j="value",z="#fff",D="width",F="x",H="y",N="pointer",U="horizontal";function G(t){return Array.isArray(t)}function W(t,e){for(var o=G(e)?e:[e],i=0;i<o.length;i++){var r=o[i];-1===t.className.indexOf(r)&&(t.className+=" "+r)}}var X=/\s+/g;function Y(t,e){t&&t.className&&(t.className=t.className.replace(e,"").replace(X," "))}var q=i(721);function Z(t){var e=.5;t.options.stroke&&q.drawing.util.defined(t.options.stroke.width)&&t.options.stroke.width%2==0&&(e=0);for(var o=0;o<t.segments.length;o++)t.segments[o].anchor().round(0).translate(e,e);return t}function Q(t,e){return-t.x*e.y+t.y*e.x<0}function K(t){return"number"==typeof t&&!isNaN(t)}function $(t){return typeof t===R}function J(t){return K(t)||$(t)&&isFinite(t)}function tt(t,e){return(t+1)%e}function et(t,e){var o=t-1;return o<0?e-1:o}function ot(t,e){return 1===e||t%e==0?0:t<0?e+t%e:t>=e?t%e:t}function it(t){return"function"==typeof t}var rt="object",nt="undefined";function st(t,e){for(var o in e)if("__proto__"!==o&&"constructor"!==o){var i,r=e[o],n=typeof r;if((i=n===rt&&null!==r?r.constructor:null)&&i!==Array)if(r instanceof Date)t[o]=new Date(r.getTime());else if(it(r.clone))t[o]=r.clone();else{var s=t[o];t[o]=typeof s===rt&&s||{},st(t[o],r)}else n!==nt&&(t[o]=r)}return t}function at(t){for(var e=arguments,o=arguments.length,i=1;i<o;i++)st(t,e[i]);return t}function pt(t){return"object"==typeof t}function lt(t){return K(t)?t+"px":t}var ht=/width|height|top|left|bottom|right/i;function ct(t){return ht.test(t)}function ut(t,e){var o=$(e)?[e]:e;if(G(o)){for(var i={},r=window.getComputedStyle(t),n=0;n<o.length;n++){var s=o[n];i[s]=ct(s)?parseFloat(r[s]):r[s]}return i}if(pt(e))for(var a in e)t.style[a]=lt(e[a])}function dt(t,e){void 0===e&&(e=0);var o={top:0,right:0,bottom:0,left:0};return"number"==typeof t?o[V]=o[I]=o[d]=o[C]=t:(o[V]=t[V]||e,o[I]=t[I]||e,o[d]=t[d]||e,o[C]=t[C]||e),o}var ft={compile:function(t){return t}},gt=function(){};gt.register=function(t){ft=t},gt.compile=function(t,e){return ft.compile(t,e)};const yt=gt;function vt(t){var e;return void 0===t&&(t={}),t.template?t.template=e=yt.compile(t.template):it(t.content)&&(e=t.content),e}function mt(t){var e;return void 0===t&&(t={}),t.ariaTemplate?t.ariaTemplate=e=yt.compile(t.ariaTemplate):it(t.ariaContent)&&(e=t.ariaContent),e}var xt=/\[(?:(\d+)|['"](.*?)['"])\]|((?:(?!\[.*?\]|\.).)+)/g,_t={};function bt(t){if(_t[t])return _t[t];var e=[];return t.replace(xt,(function(t,o,i,r){e.push(q.drawing.util.defined(o)?o:i||r)})),_t[t]=function(t){for(var o=t,i=0;i<e.length&&o;i++)o=o[e[i]];return o},_t[t]}function wt(t,e){for(var o=t.length,i=[],r=0;r<o;r++)e(t[r])&&i.push(t[r]);return i}function kt(t,e){if(t.className)for(var o=e.split(" "),i=0;i<o.length;i++)if(t.className.indexOf&&-1!==t.className.indexOf(o[i]))return!0}_t[void 0]=function(t){return t};var At=function(){this._map=new Map};At.prototype.get=function(t){return this._map.get(t)},At.prototype.set=function(t,e){this._map.set(t,e)};const St=At;function Ct(t,e){if(e)return-1!==e.indexOf(t)}function Pt(t,e,o){return q.drawing.util.round(t+(e-t)*o,y)}var Tt="trigger",Mt=function(t,e){this.observer=t,this.handlerMap=at({},this.handlerMap,e)};Mt.prototype.trigger=function(t,e){var o,i=this.observer,r=this.handlerMap;return r[t]?o=this.callObserver(r[t],e):i[Tt]&&(o=this.callObserver(Tt,t,e)),o},Mt.prototype.callObserver=function(t){for(var e=[],o=arguments.length-1;o-- >0;)e[o]=arguments[o+1];return this.observer[t].apply(this.observer,e)},Mt.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};const Ot=Mt;function Lt(t){return"[object Object]"===Object.prototype.toString.call(t)}function It(t,e){for(var o=t.length,i=[],r=0;r<o;r++){var n=e(t[r]);q.drawing.util.defined(n)&&i.push(n)}return i}var Bt=q.support.browser||{};function Et(t){var e=0;return t.wheelDelta?(e=-t.wheelDelta/120,Bt.webkit&&(e/=2*Math.max(window.devicePixelRatio,.625))):t.detail&&(e=t.detail/3),e>0?Math.ceil(e):Math.floor(e)}var Rt=q.drawing.util,Vt=Rt.append,jt=Rt.bindEvents,zt=Rt.defined,Dt=Rt.deg,Ft=Rt.elementOffset,Ht=Rt.elementSize,Nt=Rt.eventCoordinates,Ut=Rt.eventElement,Gt=Rt.hashKey,Wt=Rt.last,Xt=Rt.limitValue,Yt=Rt.objectKey,qt=Rt.rad,Zt=Rt.round,Qt=Rt.unbindEvents,Kt=Rt.valueOrDefault,$t=function(){};$t.fetchFonts=function(t,e,o){void 0===o&&(o={depth:0}),!t||o.depth>5||!document.fonts||Object.keys(t).forEach((function(i){var r=t[i];"dataSource"!==i&&"$"!==i[0]&&r&&("font"===i?e.push(r):"object"==typeof r&&(o.depth++,$t.fetchFonts(r,e,o),o.depth--))}))},$t.loadFonts=function(t,e){var o=[];if(t.length>0&&document.fonts){try{o=t.map((function(t){return document.fonts.load(t)}))}catch(t){(0,q.logToConsole)(t)}Promise.all(o).then(e,e)}else e()},$t.preloadFonts=function(t,e){var o=[];$t.fetchFonts(t,o),$t.loadFonts(o,e)};const Jt=$t;function te(t,e){var o=t.prototype;o.options?o.options=at({},o.options,e):o.options=e}var ee="k-i-",oe="k-svg-i-",ie=function(t,e){this.element=t,this.options=at({},this.options,e),this.wrapper()};ie.prototype.wrapper=function(){this.addClasses()},ie.prototype.addClasses=function(){},ie.prototype.html=function(){return this.element.outerHTML},te(ie,{name:"",size:"none",themeColor:"none",flip:"default",iconClass:"",stylingOptions:["size","themeColor","fill"]});var re=function(t){function e(e,o){t.call(this,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.wrapper=function(){var e=this.element.className.split(" ").find((function(t){return t.startsWith(ee)})),o=this.options.icon?""+(this.options.icon.startsWith(ee)?"":ee)+this.options.icon:"";this._className=o,W(this.element,"k-icon"),W(this.element,"k-font-icon"),Y(this.element,e),W(this.element,o),W(this.element,this.options.iconClass||""),t.prototype.wrapper.call(this)},e}(ie);te(re,{name:"HTMLFontIcon",icon:null});var ne=function(t){function e(e,o){e.innerHTML="",t.call(this,e,o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.wrapper=function(){var e=this.options.icon,o=this.options.iconClass,i=this.element.className.split(" ").find((function(t){return t.startsWith(oe)}));if(!e&&o){var r=o.match(/k-i-(\w+(?:-\w+)*)/);r&&(e=r[1],o=o.replace(r[0],""))}$(e)&&(e=e.replace("k-i-","").replace(/-./g,(function(t){return t[1].toUpperCase()})),e=this.options.svgIcons[e]||this.options.svgIcons[e+"Icon"]);var n=e&&e.name?""+oe+e.name:"";if(this._className=n,W(this.element,"k-svg-icon"),Y(this.element,i),W(this.element,n),W(this.element,o||""),this.element.setAttribute("aria-hidden","true"),e&&Lt(e)){var s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("viewBox",e.viewBox||""),s.setAttribute("focusable","false"),s.innerHTML=e.content||"",this.element.appendChild(s)}t.prototype.wrapper.call(this)},e}(ie);te(ne,{name:"HTMLSvgIcon",icon:null,svgIcons:{}});var se={svg:ne,font:re};function ae(t,e){var o=t,i=e;return o&&(!pt(o)||o instanceof HTMLElement)&&!$(o)||(i=o,o=document.createElement("span")),$(i)&&(i={icon:i}),i.type||(i.type="svg"),se[i.type]?new se[i.type](o,i).html():null}function pe(t){for(var e=P,o=T,i=0,r=t.length;i<r;i++){var n=t[i];null!==n&&isFinite(n)&&(e=Math.min(e,n),o=Math.max(o,n))}return{min:e===P?void 0:e,max:o===T?void 0:o}}function le(t,e){for(var o=0;o<t.length;o++){var i=t[o];if(e(i,o,t))return i}}var he=q.geometry.Matrix,ce=/matrix\((.*)\)/;function ue(t){var e=getComputedStyle(t).transform;return"none"===e?he.unit():function(t){var e=t.match(ce);if(null===e||2!==e.length)return he.unit();var o=e[1].split(",").map((function(t){return parseFloat(t)}));return new(Function.prototype.bind.apply(he,[null].concat(o)))}(e)}function de(t){if(!t)return he.unit();for(var e=ue(t),o=t.parentElement;o;){var i=ue(o);e=e.multiplyCopy(i),o=o.parentElement}return e.b=e.c=e.e=e.f=0,e}const fe=function(t){return new q.Color(t).isDark()?z:u};var ge={},ye=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},ve={size:{configurable:!0}};ye.prototype.values=function(){return this._values.filter((function(t){return t!==ge}))},ye.prototype.has=function(t){return void 0!==this._index[t]},ye.prototype.add=function(t){this.has(t)||(this._index[t]=this._values.length,this._values.push(t))},ye.prototype.delete=function(t){var e=this._index[t];void 0!==e&&(this._values[e]=ge,delete this._index[t])},ye.prototype.clear=function(){this._index={},this._values=[]},ve.size.get=function(){return this._values.length},Object.defineProperties(ye.prototype,ve);var me=function(t){this._set=new Set(t)},xe={size:{configurable:!0}};me.prototype.values=function(){return Array.from(this._set)},me.prototype.has=function(t){return this._set.has(t)},me.prototype.add=function(t){this._set.add(t)},me.prototype.delete=function(t){this._set.delete(t)},me.prototype.clear=function(){this._set.clear()},xe.size.get=function(){return this._set.size},Object.defineProperties(me.prototype,xe);var _e=function(){var t=!1;return"function"==typeof Set&&(t=new Set([1]).has(1)),t};function be(t){return _e()?new me(t):new ye(t)}function we(t){throw t}const ke={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 Ae(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var Se=function(){this.height=0,this.width=0,this.data=[]};Se.prototype.clone=function(){var t=new Se;return t.height=this.height,t.width=this.width,t.data=this.data.map((function(t){return t.slice()})),t},Se.prototype.get=function(t,e){var o=this.data[t];return o?o[e]:null},Se.prototype.set=function(t,e,o){var i=this.data[t];null==i&&(i=this.data[t]=[]),i[e]=o,t>=this.height&&(this.height=t+1),e>=this.width&&(this.width=e+1)},Se.prototype.each=function(t,e){for(var o=0;o<this.height;++o)for(var i=0;i<this.width;++i){var r=this.get(o,i);if((e||null!=r)&&void 0!==(r=t(r,o,i)))return r}},Se.prototype.map=function(t,e){var o=new Se;return this.each((function(e,i,r){o.set(i,r,t(e,i,r))}),e),o},Se.prototype.transpose=function(){var t=new Se;return this.each((function(e,o,i){t.set(i,o,e)})),t},Se.prototype.unit=function(t){this.width=this.height=t;for(var e=this.data=new Array(t),o=t;--o>=0;)for(var i=e[o]=new Array(t),r=t;--r>=0;)i[r]=o===r?1:0;return this},Se.prototype.multiply=function(t){for(var e=this,o=new Se,i=0;i<e.height;++i)for(var r=0;r<t.width;++r){for(var n=0,s=0;s<e.width;++s){var a=e.get(i,s),p=t.get(s,r);"number"==typeof a&&"number"==typeof p&&(n+=a*p)}o.set(i,r,n)}return o},Se.prototype.inverse=function(){for(var t=this.width,e=this.augment((new Se).unit(t)),o=e.data,i=function(e){var i=function(t,e,o){for(var i=o(t),r=t,n=t+1;n<e;n++){var s=o(t);s>i&&(i=s,r=t)}return r}(e,t,(function(t){return o[t][e]}));if(!o[i][e])return{v:null};if(e!==i){var r=o[e];o[e]=o[i],o[i]=r}for(var n=e+1;n<t;++n){for(var s=e+1;s<2*t;++s)o[n][s]-=o[e][s]*o[n][e]/o[e][e];o[n][e]=0}},r=0;r<t;++r){var n=i(r);if(n)return n.v}for(var s=0;s<t;++s)for(var a=o[s][s],p=0;p<2*t;++p)o[s][p]/=a;for(var l=t;--l>=0;)for(var h=l;--h>=0;)if(o[h][l])for(var c=2*t;--c>=t;)o[h][c]-=o[l][c]*o[h][l];return e.slice(0,t,t,t)},Se.prototype.augment=function(t){var e=this.clone(),o=e.width;return t.each((function(t,i,r){e.set(i,r+o,t)})),e},Se.prototype.slice=function(t,e,o,i){for(var r=new Se,n=0;n<o;++n)for(var s=0;s<i;++s)r.set(n,s,this.get(t+n,e+s));return r};const Ce=Se;var Pe={down:"pointerdown",move:"pointermove",up:"pointerup",cancel:"pointercancel pointerleave"};function Te(t){return Pe[t]||t}var Me=function(t){return t.replace(/([^ ]+)/g,Te)};function Oe(){var t,e,o="";for(t=0;t<32;t++)e=16*Math.random()|0,8!==t&&12!==t&&16!==t&&20!==t||(o+="-"),o+=(12===t?4:16===t?3&e|8:e).toString(16);return o}var Le=new WeakMap,Ie=Symbol("id");function Be(t,e,o,i,r){!function(t,e,o,i,r){(G(e)?e:(e||"").split(" ")).forEach((function(e){!function(t,e,o,i,r){var n,s=i;o&&it(o)&&!i?s=o:o&&function(t){return"string"==typeof t}(o)&&it(s)&&(n=o);var a=function(e){var o=e.target?e.target.closest(n):null;if(!n||n&&e.target&&o){var i=n?o:e.currentTarget;Object.defineProperty(e,"currentTarget",{value:i}),Object.defineProperty(e,"delegateTarget",{value:t}),s(e)}};s[Ie]||(s[Ie]=Oe());var p=Le.get(t);p||(p=new Map,Le.set(t,p)),p.set(e+s[Ie],a),t.addEventListener(e,a,Boolean(r))}(t,e,o,i,r)}))}(t,e,o,i,r)}function Ee(t,e,o,i,r){!function(t,e,o,i){(G(e)?e:(e||"").split(" ")).forEach((function(e){!function(t,e,o,i){var r=Le.get(t);if(r&&o&&o[Ie]){var n=e+o[Ie],s=r.get(n);r.delete(n),s&&t.removeEventListener(e,s,Boolean(i))}}(t,e,o,i)}))}(t,e,o,i)}function Re(){var t=function(t){var e=!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},i={ios:/^i(phone|pad|pod)$/i,android:/^android|fire$/i,windows:/windows/,wp:/wp/,flat:/sailfish|ffos|tizen/i};for(var r in o)if(t.match(o[r])){if("windows"===r&&"plugins"in navigator)return!1;(e={}).device=r,e.name=Ve(r,i),e[e.name]=!0;break}return e}(navigator.userAgent),e={};return e.mobileOS=t,e}function Ve(t,e,o){for(var i in e)if(e[i].test(t))return i;return void 0!==o?o:t}function je(){}function ze(){return(new Date).getTime()}var De="string",Fe="function",He=function(){this._defaultPrevented=!0},Ne=function(){return!0===this._defaultPrevented};const Ue=function(t){function e(){t.call(this),this._events={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.destroy=function(){this.unbind()},e.prototype.bind=function(t,e,o){var i,r,n,s,a=this,p=typeof t===De?[t]:t||[],l=typeof e===Fe;if(void 0===e){for(i in t)a.bind(i,t[i]);return a}var h=function(){var t=p[i];(s=l?e:e[t])&&(o&&(n=s,s=function(){a.unbind(t,s),n.apply(a,arguments)},s.original=n),(a._events[t]=a._events[t]||[]).push(s))};for(i=0,r=p.length;i<r;i++)h();return a},e.prototype.one=function(t,e){return this.bind(t,e,!0)},e.prototype.first=function(t,e){var o,i,r,n=this,s=typeof t===De?[t]:t,a=typeof e===Fe;for(o=0,i=s.length;o<i;o++){var p=s[o];(r=a?e:e[p])&&(n._events[p]=n._events[p]||[]).unshift(r)}return n},e.prototype.trigger=function(t,e){var o,i,r=this,n=r._events[t];if(n){var s=e||{};for(s.sender=r,s._defaultPrevented=!1,s.preventDefault=He,s.isDefaultPrevented=Ne,o=0,i=(n=n.slice()).length;o<i;o++)n[o].call(r,s);return!0===s._defaultPrevented}return!1},e.prototype.unbind=function(t,e){var o,i=this,r=i._events[t];if(void 0===t)i._events={};else if(r)if(e)for(o=r.length-1;o>=0;o--)r[o]!==e&&r[o].original!==e||r.splice(o,1);else i._events[t]=[];return i},e.prototype._setEvents=function(t){for(var e=(this.events||[]).length,o=0;o<e;o++){var i=this.events[o];this.options[i]&&t[i]&&(this.unbind(i,this.options[i]),this._events&&this._events[i]&&delete this._events[i])}this.bind(this.events,t)},e}(q.Class);var Ge=Object.assign,We=function(t){t.preventDefault()},Xe=800,Ye=0,qe="press",Ze="hold",Qe="select",Ke="start",$e="move",Je="end",to="cancel",eo="tap",oo="doubleTap",io="release",ro="gesturechange",no="gestureend",so="gesturetap",ao={api:0,touch:0,mouse:9,pointer:9};function po(t){var e=[],o=t.originalEvent||t,i=t.currentTarget;return t.api?e.push({id:2,event:t,target:t.target,currentTarget:t.target,location:t,type:"api"}):e.push({location:o,event:t,target:t.target,currentTarget:i,id:o.pointerId,type:"pointer"}),e}var lo=function(t){function e(e,o){t.call(this);var i=this;i.support=Re(),i.invalidZeroEvents=this.support.mobileOS&&this.support.mobileOS.android,i.axis=e,i._updateLocationData(o),i.startLocation=i.location,i.velocity=i.delta=0,i.timeStamp=ze()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.move=function(t){var e=this,o=t["page"+e.axis],i=ze(),r=i-e.timeStamp||1;!o&&this.invalidZeroEvents||(e.delta=o-e.location,e._updateLocationData(t),e.initialDelta=o-e.startLocation,e.velocity=e.delta/r,e.timeStamp=i)},e.prototype._updateLocationData=function(t){var e=this,o=e.axis;e.location=t["page"+o],e.client=t["client"+o],e.screen=t["screen"+o]},e}(q.Class),ho=function(t){function e(e,o,i){t.call(this),Ge(this,{x:new lo("X",i.location),y:new lo("Y",i.location),type:i.type,threshold:e.threshold||ao[i.type],userEvents:e,target:o,currentTarget:i.currentTarget,initialTouch:i.target,id:i.id,pressEvent:i,_clicks:e._clicks,supportDoubleTap:e.supportDoubleTap,_moved:!1,_finished:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.press=function(){var t=this;this._holdTimeout=setTimeout((function(){return t._hold()}),this.userEvents.minHold),this._trigger(qe,this.pressEvent)},e.prototype._tap=function(t){var e=this;e.userEvents._clicks++,1===e.userEvents._clicks&&(e._clickTimeout=setTimeout((function(){1===e.userEvents._clicks?e._trigger(eo,t):e._trigger(oo,t),e.userEvents._clicks=0}),300))},e.prototype._hold=function(){this._trigger(Ze,this.pressEvent)},e.prototype.move=function(t){var e=this,o="api"!==t.type&&e.userEvents._shouldNotMove;if(!e._finished&&!o){if(e.x.move(t.location),e.y.move(t.location),!e._moved){if(e._withinIgnoreThreshold())return;if(uo.current&&uo.current!==e.userEvents)return e.dispose();e._start(t)}e._finished||e._trigger($e,t)}},e.prototype.end=function(t){this.endTime=ze(),this._finished||(this._finished=!0,this._trigger(io,t),this._moved?this._trigger(Je,t):this.supportDoubleTap?this._tap(t):this._trigger(eo,t),clearTimeout(this._holdTimeout),this.dispose())},e.prototype.dispose=function(){var t=this.userEvents.touches||[];this._finished=!0,this.pressEvent=null,clearTimeout(this._holdTimeout);var e=t.indexOf(this);t.splice(e,1)},e.prototype.skip=function(){this.dispose()},e.prototype.cancel=function(){this.dispose()},e.prototype.isMoved=function(){return this._moved},e.prototype._start=function(t){clearTimeout(this._holdTimeout),this.startTime=ze(),this._moved=!0,this._trigger(Ke,t)},e.prototype._trigger=function(t,e){var o=e.event,i={touch:this,x:this.x,y:this.y,target:this.target,event:o};this.userEvents.notify(t,i)&&o.preventDefault()},e.prototype._withinIgnoreThreshold=function(){var t=this.x.initialDelta,e=this.y.initialDelta;return Math.sqrt(t*t+e*e)<=this.threshold},e}(q.Class);function co(t){for(var e=Pe.up.split(" "),o=0,i=e.length;o<i;o++)t(e[o])}var uo=function(t){function e(e,o){t.call(this);var i,r=this,n=Re();if(this.support=n,o=o||{},this.options=o,i=r.filter=o.filter,r.threshold=o.threshold||Ye,r.minHold=o.minHold||Xe,r.touches=[],r._maxTouches=o.multiTouch?2:1,r.allowSelection=o.allowSelection,r.captureUpIfMoved=o.captureUpIfMoved,r._clicks=0,r.supportDoubleTap=o.supportDoubleTap,Ge(r,{element:e,surface:o.surface||e,stopPropagation:o.stopPropagation,pressed:!1}),this._surfaceMoveHandler=this._move.bind(this),Be(r.surface,Me("move"),this._surfaceMoveHandler),this._surfaceEndHandler=this._end.bind(this),Be(r.surface,Me("up cancel"),this._surfaceEndHandler),this._elementStartHandler=this._start.bind(this),Be(e,Me("down"),i,this._elementStartHandler),e.style["touch-action"]=o.touchAction||"none",o.preventDragEvent&&(this._elementDragStartHandler=We,Be(e,Me("dragstart"),this._elementDragStartHandler)),this._elementSelectHandler=this._select.bind(this),Be(e,Me("mousedown"),i,this._elementSelectHandler),r.captureUpIfMoved){var s=r.surface;r._preventIfMovingProxy=r.preventIfMoving.bind(r),co((function(t){s.addEventListener(t,r._preventIfMovingProxy,!0)}))}r.bind([qe,Ze,eo,oo,Ke,$e,Je,io,to,"gesturestart",ro,no,so,Qe],o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.preventIfMoving=function(t){this._isMoved()&&t.preventDefault()},e.prototype.destroy=function(){var t=this,e=this.options,o=this.element;if(!t._destroyed){if(t._destroyed=!0,t.captureUpIfMoved){var i=t.surface;co((function(e){i.removeEventListener(e,t._preventIfMovingProxy,!0)}))}Ee(t.surface,Me("move"),this._surfaceMoveHandler),Ee(t.surface,Me("up cancel"),this._surfaceEndHandler),Ee(o,Me("down"),this._elementStartHandler),e.preventDragEvent&&Ee(o,Me("dragstart"),this._elementDragStartHandler),Ee(o,Me("mousedown"),this._elementSelectHandler),t._disposeAll(),t.unbind(),delete t.surface,delete t.element,delete t.currentTarget}},e.prototype.capture=function(){e.current=this},e.prototype.cancel=function(){this._disposeAll(),this.trigger(to)},e.prototype.notify=function(t,e){var o,i,r,n,s,a,p,l,h=this.touches,c=t;if(this._isMultiTouch()){switch(c){case $e:c=ro;break;case Je:c=no;break;case eo:c=so}Ge(e,{touches:h},(o=h[0],i=h[1],r=o.x.location,n=o.y.location,p=r-(s=i.x.location),l=n-(a=i.y.location),{center:{x:(r+s)/2,y:(n+a)/2},distance:Math.sqrt(p*p+l*l)}))}return this.trigger(c,Ge(e,{type:c}))},e.prototype.press=function(t,e,o){this._apiCall("_start",t,e,o)},e.prototype.move=function(t,e){this._apiCall("_move",t,e)},e.prototype.end=function(t,e){this._apiCall("_end",t,e)},e.prototype._isMultiTouch=function(){return this.touches.length>1},e.prototype._maxTouchesReached=function(){return this.touches.length>=this._maxTouches},e.prototype._disposeAll=function(){for(var t=this.touches;t.length>0;)t.pop().dispose()},e.prototype._isMoved=function(){return wt(this.touches,(function(t){return t.isMoved()})).length},e.prototype._select=function(t){this.allowSelection&&!this.trigger(Qe,{event:t})||t.preventDefault()},e.prototype._start=function(t){if(!(t.which&&t.which>1||this._maxTouchesReached())){var o;e.current=null,this.currentTarget=t.currentTarget,this.stopPropagation&&t.stopPropagation();for(var i=po(t),r=0;r<i.length&&!this._maxTouchesReached();r++){var n=i[r];if(!(o=this.filter?n.currentTarget:this.element)||0!==o.length){var s=new ho(this,o,n);this.touches.push(s),s.press(),this._isMultiTouch()&&this.notify("gesturestart",{})}}}},e.prototype._move=function(t){this._eachTouch("move",t)},e.prototype._end=function(t){this._eachTouch("end",t)},e.prototype._eachTouch=function(t,e){var o,i,r,n,s={},a=po(e),p=this.touches;for(o=0;o<p.length;o++)s[(i=p[o]).id]=i;for(o=0;o<a.length;o++)(n=s[(r=a[o]).id])&&("move"===t&&"pointer"===r.type&&!this.surface.hasPointerCapture(r.id)&&this.surface.setPointerCapture(r.id),n[t](r))},e.prototype._apiCall=function(t,e,o,i){this[t]({api:!0,pageX:e,pageY:o,clientX:e,clientY:o,target:i||this.element,stopPropagation:je,preventDefault:je})},e.defaultThreshold=function(t){Ye=t},e.minHold=function(t){Xe=t},e}(Ue);const fo=uo;function go(t,e){var o=Zt(e-t,_-1);if(0===o){if(0===e)return.1;o=Math.abs(e)}var i=Math.pow(10,Math.floor(Math.log(o)/Math.log(10))),r=Zt(o/i,_);return Zt(i*(r<1.904762?.2:r<4.761904?.5:r<9.523809?1:2),_)}const yo=function(t){function e(e,o){t.call(this),this.x=e||0,this.y=o||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.equals=function(t){return t&&this.x===t.x&&this.y===t.y},e.prototype.rotate=function(t,e){var o=qt(e),i=Math.cos(o),r=Math.sin(o),n=t.x,s=t.y,a=this.x,p=this.y;return this.x=Zt(n+(a-n)*i+(p-s)*r,y),this.y=Zt(s+(p-s)*i-(a-n)*r,y),this},e.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},e.prototype.distanceTo=function(t){var e=this.x-t.x,o=this.y-t.y;return Math.sqrt(e*e+o*o)},e.onCircle=function(t,o,i){var r=qt(o);return new e(t.x-i*Math.cos(r),t.y-i*Math.sin(r))},e}(q.Class);var vo=function(t){function e(e,o,i,r){t.call(this),this.x1=e||0,this.y1=o||0,this.x2=i||0,this.y2=r||0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.equals=function(t){return this.x1===t.x1&&this.x2===t.x2&&this.y1===t.y1&&this.y2===t.y2},e.prototype.width=function(){return this.x2-this.x1},e.prototype.height=function(){return this.y2-this.y1},e.prototype.translate=function(t,e){return this.x1+=t,this.x2+=t,this.y1+=e,this.y2+=e,this},e.prototype.move=function(t,e){var o=this.height(),i=this.width();return zt(t)&&(this.x1=t,this.x2=this.x1+i),zt(e)&&(this.y1=e,this.y2=this.y1+o),this},e.prototype.wrap=function(t){return this.x1=Math.min(this.x1,t.x1),this.y1=Math.min(this.y1,t.y1),this.x2=Math.max(this.x2,t.x2),this.y2=Math.max(this.y2,t.y2),this},e.prototype.wrapPoint=function(t){var o=G(t),i=o?t[0]:t.x,r=o?t[1]:t.y;return this.wrap(new e(i,r,i,r)),this},e.prototype.snapTo=function(t,e){return e!==F&&e||(this.x1=t.x1,this.x2=t.x2),e!==H&&e||(this.y1=t.y1,this.y2=t.y2),this},e.prototype.alignTo=function(t,e){var o=this.height(),i=this.width(),r=e===V||e===d?H:F,n=r===H?o:i;if(e===f){var s=t.center(),a=this.center();this.x1+=s.x-a.x,this.y1+=s.y-a.y}else this[r+1]=e===V||e===C?t[r+1]-n:t[r+2];return this.x2=this.x1+i,this.y2=this.y1+o,this},e.prototype.shrink=function(t,e){return this.x2-=t,this.y2-=e,this},e.prototype.expand=function(t,e){return this.shrink(-t,-e),this},e.prototype.pad=function(t){var e=dt(t);return this.x1-=e.left,this.x2+=e.right,this.y1-=e.top,this.y2+=e.bottom,this},e.prototype.unpad=function(t){var e=dt(t);return e.left=-e.left,e.top=-e.top,e.right=-e.right,e.bottom=-e.bottom,this.pad(e)},e.prototype.clone=function(){return new e(this.x1,this.y1,this.x2,this.y2)},e.prototype.center=function(){return new yo(this.x1+this.width()/2,this.y1+this.height()/2)},e.prototype.containsPoint=function(t){return t.x>=this.x1&&t.x<=this.x2&&t.y>=this.y1&&t.y<=this.y2},e.prototype.points=function(){return[new yo(this.x1,this.y1),new yo(this.x2,this.y1),new yo(this.x2,this.y2),new yo(this.x1,this.y2)]},e.prototype.getHash=function(){return[this.x1,this.y1,this.x2,this.y2].join(",")},e.prototype.overlaps=function(t){return!(t.y2<this.y1||this.y2<t.y1||t.x2<this.x1||this.x2<t.x1)},e.prototype.rotate=function(t){var e=this.width(),o=this.height(),i=this.center(),r=i.x,n=i.y,s=mo(0,0,r,n,t),a=mo(e,0,r,n,t),p=mo(e,o,r,n,t),l=mo(0,o,r,n,t);return e=Math.max(s.x,a.x,p.x,l.x)-Math.min(s.x,a.x,p.x,l.x),o=Math.max(s.y,a.y,p.y,l.y)-Math.min(s.y,a.y,p.y,l.y),this.x2=this.x1+e,this.y2=this.y1+o,this},e.prototype.toRect=function(){return new q.geometry.Rect([this.x1,this.y1],[this.width(),this.height()])},e.prototype.hasSize=function(){return 0!==this.width()&&0!==this.height()},e.prototype.align=function(t,e,o){var i=e+1,r=e+2,n=e===F?D:k,s=this[n]();Ct(o,[C,V])?(this[i]=t[i],this[r]=this[i]+s):Ct(o,[I,d])?(this[r]=t[r],this[i]=this[r]-s):o===f&&(this[i]=t[i]+(t[n]()-s)/2,this[r]=this[i]+s)},e}(q.Class);function mo(t,e,o,i,r){var n=qt(r);return new yo(o+(t-o)*Math.cos(n)+(e-i)*Math.sin(n),i-(t-o)*Math.sin(n)+(e-i)*Math.cos(n))}const xo=vo;var _o=function(t){function e(e,o,i,r,n){t.call(this),this.center=e,this.innerRadius=o,this.radius=i,this.startAngle=r,this.angle=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.center,this.innerRadius,this.radius,this.startAngle,this.angle)},e.prototype.middle=function(){return this.startAngle+this.angle/2},e.prototype.setRadius=function(t,e){return e?this.innerRadius=t:this.radius=t,this},e.prototype.point=function(t,e){var o=qt(t),i=Math.cos(o),r=Math.sin(o),n=e?this.innerRadius:this.radius,s=Zt(this.center.x-i*n,y),a=Zt(this.center.y-r*n,y);return new yo(s,a)},e.prototype.adjacentBox=function(t,e,o){var i=this.clone().expand(t),r=i.middle(),n=i.point(r),s=e/2,a=o/2,p=Math.sin(qt(r)),l=Math.cos(qt(r)),h=n.x-s,c=n.y-a;return Math.abs(p)<.9&&(h+=s*-l/Math.abs(l)),Math.abs(l)<.9&&(c+=a*-p/Math.abs(p)),new xo(h,c,h+e,c+o)},e.prototype.containsPoint=function(t){var e=this.center,o=this.innerRadius,i=this.radius,r=this.startAngle,n=this.startAngle+this.angle,s=t.x-e.x,a=t.y-e.y,p=new yo(s,a),l=this.point(r),h=new yo(l.x-e.x,l.y-e.y),c=this.point(n),u=new yo(c.x-e.x,c.y-e.y),d=Zt(s*s+a*a,y);return(h.equals(p)||Q(h,p))&&!Q(u,p)&&d>=o*o&&d<=i*i},e.prototype.getBBox=function(){var t,e=new xo(P,P,T,T),o=Zt(this.startAngle%360),i=Zt((o+this.angle)%360),r=this.innerRadius,n=[0,90,180,270,o,i].sort(bo),s=n.indexOf(o),a=n.indexOf(i);t=o===i?n:s<a?n.slice(s,a+1):[].concat(n.slice(0,a+1),n.slice(s,n.length));for(var p=0;p<t.length;p++){var l=this.point(t[p]);e.wrapPoint(l),e.wrapPoint(l,r)}return r||e.wrapPoint(this.center),e},e.prototype.expand=function(t){return this.radius+=t,this},e}(q.Class);function bo(t,e){return t-e}const wo=_o;var ko=function(t){function e(e,o,i,r){t.call(this,e,0,o,i,r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expand=function(e){return t.prototype.expand.call(this,e)},e.prototype.clone=function(){return new e(this.center,this.radius,this.startAngle,this.angle)},e.prototype.setRadius=function(t){return this.radius=t,this},e}(wo);const Ao=ko;var So=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRing=function(t,e){var o=t.startAngle+180,i=t.angle+o;(0===t.angle||t.angle>0&&o===i)&&(i+=.001);var r=new q.geometry.Point(t.center.x,t.center.y),n=Math.max(t.radius,0),s=Math.max(t.innerRadius,0),a=new q.geometry.Arc(r,{startAngle:o,endAngle:i,radiusX:n,radiusY:n}),p=q.drawing.Path.fromArc(a,e).close();if(s){a.radiusX=a.radiusY=s;var l=a.pointAt(i);p.lineTo(l.x,l.y),p.arc(i,o,s,s,!0)}else p.lineTo(r.x,r.y);return p},e}(q.Class);So.current=new So;const Co=So;var Po=function(t){function e(e){t.call(this),this.children=[],this.options=at({},this.options,this.initUserOptions(e))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.initUserOptions=function(t){return t},e.prototype.reflow=function(t){for(var e,o=this.children,i=0;i<o.length;i++){var r=o[i];r.reflow(t),e=e?e.wrap(r.box):r.box.clone()}this.box=e||t},e.prototype.destroy=function(){var t=this.children;this.animation&&this.animation.destroy();for(var e=0;e<t.length;e++)t[e].destroy()},e.prototype.getRoot=function(){var t=this.parent;return t?t.getRoot():null},e.prototype.getSender=function(){var t=this.getService();if(t)return t.sender},e.prototype.getService=function(){for(var t=this;t;){if(t.chartService)return t.chartService;t=t.parent}},e.prototype.translateChildren=function(t,e){for(var o=this.children,i=o.length,r=0;r<i;r++)o[r].box.translate(t,e)},e.prototype.append=function(){for(var t=arguments,e=0;e<arguments.length;e++){var o=t[e];this.children.push(o),o.parent=this}},e.prototype.renderVisual=function(){!1!==this.options.visible&&(this.createVisual(),this.addVisual(),this.renderChildren(),this.createAnimation(),this.renderComplete())},e.prototype.addVisual=function(){this.visual&&(this.visual.chartElement=this,this.parent&&this.parent.appendVisual(this.visual))},e.prototype.renderChildren=function(){for(var t=this.children,e=t.length,o=0;o<e;o++)t[o].renderVisual()},e.prototype.createVisual=function(){this.visual=new q.drawing.Group({zIndex:this.options.zIndex,visible:Kt(this.options.visible,!0)})},e.prototype.createAnimation=function(){this.visual&&this.options.animation&&(this.animation=q.drawing.Animation.create(this.visual,this.options.animation))},e.prototype.appendVisual=function(t){t.chartElement||(t.chartElement=this),t.options.noclip?this.clipRoot().visual.append(t):zt(t.options.zIndex)?this.stackRoot().stackVisual(t):this.isStackRoot?this.stackVisual(t):this.visual?this.visual.append(t):this.parent.appendVisual(t)},e.prototype.clipRoot=function(){return this.parent?this.parent.clipRoot():this},e.prototype.stackRoot=function(){return this.parent?this.parent.stackRoot():this},e.prototype.stackVisual=function(t){var e,o=t.options.zIndex||0,i=this.visual.children,r=i.length;for(e=0;e<r;e++){var n=i[e];if(Kt(n.options.zIndex,0)>o)break}this.visual.insert(e,t)},e.prototype.traverse=function(t){for(var e=this.children,o=e.length,i=0;i<o;i++){var r=e[i];t(r),r.traverse&&r.traverse(t)}},e.prototype.closest=function(t){for(var e=this,o=!1;e&&!o;)(o=t(e))||(e=e.parent);if(o)return e},e.prototype.renderComplete=function(){},e.prototype.hasHighlight=function(){var t=(this.options||{}).highlight;return!(!this.createHighlight||t&&!1===t.visible||!1===this.visible)},e.prototype.toggleHighlight=function(t,e){var o=this,i=(this.options||{}).highlight||{},r=i.visual,n=this._highlight;if(!n){var s={fill:{color:z,opacity:e||.2},stroke:{color:z,width:1,opacity:e||.2}};if(r){if(!(n=this._highlight=r(Object.assign(this.highlightVisualArgs(),{createVisual:function(){return o.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);zt(n.options.zIndex)||(n.options.zIndex=Kt(i.zIndex,this.options.zIndex)),this.appendVisual(n)}n.visible(t)},e.prototype.toggleFocusHighlight=function(t){var e=(this.options||{}).focusHighlight||{},o=this._focusHighlight;if(t||o){if(!o){var i=this.getRoot().options.background,r=fe(i),n={fill:{opacity:e.opacity,color:e.color},stroke:Object.assign({},{color:r},e.border),zIndex:e.zIndex};o=this._focusHighlight=this.createFocusHighlight(n),this.appendVisual(o)}o.visible(t)}},e.prototype.createGradientOverlay=function(t,e,o){var i=new q.drawing.Path(Object.assign({stroke:{color:"none"},fill:this.createGradient(o),closed:t.options.closed},e));return i.segments.elements(t.segments.elements()),i},e.prototype.createGradient=function(t){if(this.parent)return this.parent.createGradient(t)},e.prototype.supportsPointInactiveOpacity=function(){return!0},e}(q.Class);Po.prototype.options={};const To=Po;var Mo={dots:q.drawing.dotsPattern,verticalStripes:q.drawing.verticalStripesPattern,crosshatch:q.drawing.crosshatchPattern,diagonalStripes:q.drawing.diagonalStripesPattern,grid:q.drawing.gridPattern};function Oo(t,e,o){var i=function(t,e){return it(t)?t(e):t}(t,o),r=i&&Mo[i.type];return r?r(Object.assign({},e,i)):e}var Lo=function(t){function e(e){t.call(this,e),this.options.margin=dt(this.options.margin),this.options.padding=dt(this.options.padding)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(e){var o,i=this,r=this.options,n=r.width,s=r.height,a=r.shrinkToFit,p=n&&s,l=r.margin,h=r.padding,c=r.border.width,u=function(){i.align(e,F,r.align),i.align(e,H,r.vAlign),i.paddingBox=o.clone().unpad(l).unpad(c)},d=e.clone();p&&(d.x2=d.x1+n,d.y2=d.y1+s),a&&d.unpad(l).unpad(c).unpad(h),t.prototype.reflow.call(this,d),o=p?this.box=new xo(0,0,n,s):this.box,a&&p?(u(),d=this.contentBox=this.paddingBox.clone().unpad(h)):(d=this.contentBox=o.clone(),o.pad(h).pad(c).pad(l),u()),this.translateChildren(o.x1-d.x1+l.left+c+h.left,o.y1-d.y1+l.top+c+h.top);for(var f=this.children,g=0;g<f.length;g++){var y=f[g];y.reflow(y.box)}},e.prototype.align=function(t,e,o){this.box.align(t,e,o)},e.prototype.hasBox=function(){var t=this.options;return t.border.width||t.background},e.prototype.createVisual=function(){t.prototype.createVisual.call(this),this.options.visible&&this.hasBox()&&this.visual.append(q.drawing.Path.fromRect(this.paddingBox.toRect(),this.visualStyle()))},e.prototype.visualStyle=function(){var t=this.options,e=t.border||{};return{stroke:{width:e.width,color:e.color,opacity:Kt(e.opacity,t.opacity),dashType:e.dashType},fill:Oo(t.pattern,{color:t.background,opacity:t.opacity},void 0),cursor:t.cursor}},e}(To);te(Lo,{align:C,vAlign:V,margin:{},padding:{},border:{color:u,width:0},background:"",shrinkToFit:!1,width:0,height:0,visible:!0});const Io=Lo;function Bo(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)}var Eo=function(t){function e(e,o){t.call(this,e),this.pointData=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){var t=this.options,e=this.paddingBox,o=t.type,i=t.rotation,r=e.center(),n=e.width()/2,s=e.height()/2;if(!t.visible||!this.hasBox())return null;var a,p=this.visualStyle();if(o===g)a=new q.drawing.Circle(new q.geometry.Circle([Zt(e.x1+n,y),Zt(e.y1+s,y)],Math.min(n,s)),p);else if("triangle"===o)a=q.drawing.Path.fromPoints([[e.x1+n,e.y1],[e.x1,e.y2],[e.x2,e.y2]],p).close();else if(o===v)(a=new q.drawing.MultiPath(p)).moveTo(e.x1,e.y1).lineTo(e.x2,e.y2),a.moveTo(e.x1,e.y2).lineTo(e.x2,e.y1);else{var l=e.toRect();if(o===B){var h=Kt(t.borderRadius,l.width()/5);l.setCornerRadius(h)}a=q.drawing.Path.fromRect(l,p)}return i&&a.transform(q.geometry.transform().rotate(-i,[r.x,r.y])),a.options.zIndex=t.zIndex,a},e.prototype.createElement=function(){var t=this,e=this.options.visual,o=this.pointData||{};return e?e({value:o.value,dataItem:o.dataItem,sender:this.getSender(),series:o.series,category:o.category,rect:this.paddingBox.toRect(),options:this.visualOptions(),createVisual:function(){return t.getElement()}}):this.getElement()},e.prototype.visualOptions=function(){var t=this.options;return{background:t.background,border:t.border,margin:t.margin,padding:t.padding,type:t.type,size:t.width,visible:t.visible}},e.prototype.createVisual=function(){this.visual=this.createElement(),Bo(this.visual,this.options.accessibilityOptions)},e}(Io);te(Eo,{type:g,align:f,vAlign:f});const Ro=Eo;var Vo="radial";const jo={glass:{type:"linear",rotation:0,stops:[{offset:0,color:z,opacity:0},{offset:.25,color:z,opacity:.3},{offset:1,color:z,opacity:0}]},sharpBevel:{type:Vo,stops:[{offset:0,color:z,opacity:.55},{offset:.65,color:z,opacity:0},{offset:.95,color:z,opacity:.25}]},roundedBevel:{type:Vo,stops:[{offset:.33,color:z,opacity:.06},{offset:.83,color:z,opacity:.2},{offset:.95,color:z,opacity:0}]},roundedGlass:{type:Vo,supportVML:!1,stops:[{offset:0,color:z,opacity:0},{offset:.5,color:z,opacity:.3},{offset:.99,color:z,opacity:0}]},sharpGlass:{type:Vo,supportVML:!1,stops:[{offset:0,color:z,opacity:.2},{offset:.15,color:z,opacity:.15},{offset:.17,color:z,opacity:.35},{offset:.85,color:z,opacity:.05},{offset:.87,color:z,opacity:.15},{offset:.99,color:z,opacity:0}]},bubbleShadow:{type:Vo,center:[.5,.5],radius:.5}};function zo(t,e){if(t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2)return e;var o=Math.min(t.x1,e.x1),i=Math.max(t.x1,e.x1),r=Math.min(t.x2,e.x2),n=Math.max(t.x2,e.x2),s=Math.min(t.y1,e.y1),a=Math.max(t.y1,e.y1),p=Math.min(t.y2,e.y2),l=Math.max(t.y2,e.y2),h=[];return h[0]=new xo(i,s,r,a),h[1]=new xo(o,a,i,p),h[2]=new xo(r,a,n,p),h[3]=new xo(i,p,r,l),t.x1===o&&t.y1===s||e.x1===o&&e.y1===s?(h[4]=new xo(o,s,i,a),h[5]=new xo(r,p,n,l)):(h[4]=new xo(r,s,n,a),h[5]=new xo(o,p,i,l)),wt(h,(function(t){return t.height()>0&&t.width()>0}))[0]}var Do=function(t){function e(e){t.call(this,e);var o=this.options;o.width=parseInt(o.width,10),o.height=parseInt(o.height,10),this.gradients={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(){var t=this.options,e=this.children,o=new xo(0,0,t.width,t.height);this.box=o.unpad(t.margin);for(var i=0;i<e.length;i++)e[i].reflow(o),o=zo(o,e[i].box)||new xo},e.prototype.createVisual=function(){this.visual=new q.drawing.Group,this.createBackground()},e.prototype.createBackground=function(){var t=this.options,e=t.border||{},o=this.box.clone().pad(t.margin).unpad(e.width),i=q.drawing.Path.fromRect(o.toRect(),{stroke:{color:e.width?e.color:"",width:e.width,dashType:e.dashType},fill:{color:t.background,opacity:t.opacity},zIndex:-10});this.visual.append(i)},e.prototype.getRoot=function(){return this},e.prototype.createGradient=function(t){var e,o=this.gradients,i=Yt(t),r=jo[t.gradient];if(o[i])e=o[i];else{var n=Object.assign({},r,t);"linear"===r.type?e=new q.drawing.LinearGradient(n):(t.innerRadius&&(n.stops=function(t){for(var e=t.stops,o=t.innerRadius/t.radius*100,i=e.length,r=[],n=0;n<i;n++){var s=Object.assign({},e[n]);s.offset=(s.offset*(100-o)+o)/100,r.push(s)}return r}(n)),(e=new q.drawing.RadialGradient(n)).supportVML=!1!==r.supportVML),o[i]=e}return e},e.prototype.cleanGradients=function(){var t=this.gradients;for(var e in t)t[e]._observers=[]},e.prototype.size=function(){var t=this.options;return new xo(0,0,t.width,t.height)},e}(To);te(Do,{width:600,height:400,background:z,border:{color:u,width:0},margin:dt(5),zIndex:-2});const Fo=Do;var Ho=function(t){function e(e){t.call(this,e),this._initDirection()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initDirection=function(){var t=this.options;t.vertical?(this.groupAxis=F,this.elementAxis=H,this.groupSizeField=D,this.elementSizeField=k,this.groupSpacing=t.spacing,this.elementSpacing=t.vSpacing):(this.groupAxis=H,this.elementAxis=F,this.groupSizeField=k,this.elementSizeField=D,this.groupSpacing=t.vSpacing,this.elementSpacing=t.spacing)},e.prototype.reflow=function(t){this.box=t.clone(),this.reflowChildren()},e.prototype.reflowChildren=function(){var t=this,e=t.box,o=t.elementAxis,i=t.groupAxis,r=t.elementSizeField,n=t.groupSizeField,s=this.groupOptions(),a=s.groups,p=s.groupsSize,l=s.maxGroupElementsSize,h=a.length,c=e[i+1]+this.alignStart(p,e[n]());if(h){for(var u=c,d=0;d<h;d++){for(var f=a[d],g=f.groupElements,y=e[o+1],v=g.length,m=0;m<v;m++){var x=g[m],_=this.elementSize(x),b=u+this.alignStart(_[n],f.groupSize),w=new xo;w[i+1]=b,w[i+2]=b+_[n],w[o+1]=y,w[o+2]=y+_[r],x.reflow(w),y+=_[r]+this.elementSpacing}u+=f.groupSize+this.groupSpacing}e[i+1]=c,e[i+2]=c+p,e[o+2]=e[o+1]+l}},e.prototype.alignStart=function(t,e){var o=0,i=this.options.align;return i===I||i===d?o=e-t:i===f&&(o=(e-t)/2),o},e.prototype.groupOptions=function(){for(var t=this,e=t.box,o=t.children,i=t.elementSizeField,r=t.groupSizeField,n=t.elementSpacing,s=t.groupSpacing,a=Zt(e[i]()),p=o.length,l=[],h=0,c=0,u=0,d=0,f=[],g=0;g<p;g++){var y=o[g];y.box||y.reflow(e);var v=this.elementSize(y);this.options.wrap&&Zt(c+n+v[i])>a&&(l.push({groupElements:f,groupSize:h,groupElementsSize:c}),d=Math.max(d,c),u+=s+h,h=0,c=0,f=[]),h=Math.max(h,v[r]),c>0&&(c+=n),c+=v[i],f.push(y)}return l.push({groupElements:f,groupSize:h,groupElementsSize:c}),{groups:l,groupsSize:u+=h,maxGroupElementsSize:d=Math.max(d,c)}},e.prototype.elementSize=function(t){return{width:t.box.width(),height:t.box.height()}},e.prototype.createVisual=function(){},e}(To);te(Ho,{vertical:!0,wrap:!0,vSpacing:0,spacing:0});const No=Ho;var Uo=q.drawing.Text,Go=function(t){function e(e,o){t.call(this,o),this.content=e,this.reflow(new xo)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.reflow=function(t){var e=this.options,o=e.size=q.drawing.util.measureText(this.content,{font:e.font});this.baseline=o.baseline,this.box=new xo(t.x1,t.y1,t.x1+o.width,t.y1+o.height)},e.prototype.createVisual=function(){var t=this.options,e=t.font,o=t.color,i=t.opacity,r=t.cursor,n=t.stroke,s=t.paintOrder;this.visual=new Uo(this.content,this.box.toRect().topLeft(),{font:e,fill:{color:o,opacity:i},cursor:r,stroke:n,paintOrder:s})},e}(To);te(Go,{font:x,color:u});const Wo=Go;function Xo(t){var e=t.origin,o=t.bottomRight();return new xo(e.x,e.y,o.x,o.y)}var Yo=/\n/m,qo=function(t){function e(e,o,i){t.call(this,o),this.content=e,this.data=i,this._initContainer(),!1!==this.options._autoReflow&&this.reflow(new xo)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype._initContainer=function(){var t=this.options,e=String(this.content).split(Yo),o=new No({vertical:!0,align:t.align,wrap:!1}),i=at({},t,{opacity:1,animation:null});this.container=o,this.append(o);for(var r=0;r<e.length;r++){var n=new Wo(e[r].trim(),i);o.append(n)}},e.prototype.reflow=function(e){var o=this.options,i=o.visual;if(this.container.options.align=o.align,i&&!this._boxReflow){var r=e;r.hasSize()||(this._boxReflow=!0,this.reflow(r),this._boxReflow=!1,r=this.box);var n=this.visual=i(this.visualContext(r));n&&(r=Xo(n.clippedBBox()||new q.geometry.Rect),n.options.zIndex=o.zIndex),this.box=this.contentBox=this.paddingBox=r}else if(t.prototype