text: /*
  Stimulsoft.Reports.JS
  Version: 2022.1.2
  Build date: 2021.12.15
  License: https://www.stimulsoft.com/en/licensing/reports
  */
  !function(t){var e;"undefined"!=typeof process&&process.__nwjs||"object"!=typeof exports||"undefined"==typeof module?"function"==typeof define&&define.amd?define(["./stimulsoft.reports.engine"],e=>Object.assign(e,t(e.Stimulsoft))):window.Stimulsoft?window.Stimulsoft.Report?Object.assign(window,t(window.Stimulsoft)):window.Stimulsoft.chartFactory=t:window.Stimulsoft={chartFactory:t}:module.exports=(e=require("./stimulsoft.reports.engine"),Object.assign(e,t(e.Stimulsoft)))}(function(J){function r(e,t){for(var i in t)i in e?r(e[i],t[i]):e[i]=t[i];return e}var J=r(J||{},{Report:{Events:{},Chart:{},Components:{Design:{}}},Reflection:{}}),te={};te.a=J.Report,te.b=J.Reflection,te.c=te.a.Events,te.d=te.a.Chart,te.e=te.a.Components,te.f=te.e.Design;let t=J.System.EventArgs;te.c.StiGetTitleEventArgs=class extends t{constructor(){super(...arguments),this.series=null}get value(){return this.valueObject}set value(e){this.valueObject=e}},te.c.StiNewAutoSeriesEventArgs=class extends t{constructor(e,t,i){super(),this.seriesIndex=e,this.series=t,this.color=i}};let M=J.System.StiMath,f=J.System.StiNumber,ie=J.System.StiArray,Z=J.System.StiString,s=te.c.StiNewAutoSeriesEventArgs,n=te.c.StiGetTitleEventArgs,x=J.System.Data.DBNull,l=te.c.StiValueEventArgs,a=te.c.StiGetValueEventArgs,q=te.e.StiFilterMode,$=te.a.Dictionary.StiDataColumn,v=J.System.DateTime,o=J.System.Char,re=J.System.Drawing.Color,w=te.e.StiFilterCondition,C=te.e.StiFilterDataType,K=te.e.StiFilterItem,Q=J.System.Collections.Hashtable,U=J.System.TimeSpan,ee=J.System.Drawing.Point,h=te.e.StiText,u=te.a.Engine.StiParser.StiParser,P=J.System.Collections.List;{let i=class{static fillSeriesData(t,i){t.values=ie.create(Number,i.length),t.arguments=ie.create(Object,i.length),t.tags=ie.create(Object,i.length);for(let e=0;e<i.length;e++){var r=i[e];t.values[e]="number"==typeof r.value?r.value:0,t.arguments[e]=r.argument,t.tags[e]=r.tag,t.is(te.d.IStiRangeSeries)&&(t.valuesEnd[e]="number"==typeof r.valueEnd?r.valueEnd:0),t.is(te.d.IStiFinancialSeries)&&(t.valuesOpen[e]="number"==typeof r.valueOpen?r.valueOpen:0,t.valuesClose[e]="number"==typeof r.valueClose?r.valueClose:0,t.valuesLow[e]="number"==typeof r.valueLow?r.valueLow:0,t.valuesHigh[e]="number"==typeof r.valueHigh?r.valueHigh:0)}}static getFilterData(t,i,r){try{if(i.item==K.Expression){var s=r.substr(0,1).toLowerCase()+r.substr(1),n;if(null!=t[r])return t[r]();if(null!=t[s])return t[s]();let e=new h;return e.name="*Chart_Filter*",e.page=t.pages.getByIndex(0),u.parseTextValue("{"+i.value+"}",e)}switch(i.dataType){case C.String:return i.value;case C.Numeric:return null!=i.value?i.value.stimulsoft().toNumber():0;case C.DateTime:var e=v.fromString(i.value);if(null!=e)return e;break;case C.Boolean:return"true"==i.value.toLowerCase()}}catch(e){J.System.StiError.showError(e.message,!1)}return null}static getFilterResult(t,e,i,r,s,n,l,a,o){if(t.item==K.Expression)return o.stimulsoft().toBoolean();let h=null;switch(t.item){case K.Argument:h=e;break;case K.Value:h=i;break;case K.ValueEnd:h=r;break;case K.ValueOpen:h=s;break;case K.ValueClose:h=n;break;case K.ValueLow:h=l;break;case K.ValueHigh:h=a;break}var u=!1,d,m,m;if(null!=h){t.dataType==C.Numeric?null==(d=h.stimulsoft().as(String))||(m=f.tryParse(d)).successfully&&(h=m.result):t.dataType==C.DateTime&&(m=v.fromString(h.toString(),!1),h=null!=m?m:v.fromOADate(h.stimulsoft().toNumber()));let e=h;if(null!=e&&null!=o){h.stimulsoft().getType()!=o.stimulsoft().getType()&&(h=h.toString(),o=o.toString(),e=h);try{switch(t.condition){case w.EqualTo:return 0==e.stimulsoft().compareTo(o);case w.NotEqualTo:return 0!=e.stimulsoft().compareTo(o);case w.GreaterThan:return 1==e.stimulsoft().compareTo(o);case w.GreaterThanOrEqualTo:return 0<=e.stimulsoft().compareTo(o);case w.LessThan:return-1==e.stimulsoft().compareTo(o);case w.LessThanOrEqualTo:return e.stimulsoft().compareTo(o)<=0;case w.Containing:{let e=h.toString();var c=o.toString();return-1!=e.indexOf(c)}case w.NotContaining:{let e=h.toString();var S=o.toString();return-1==e.indexOf(S)}case w.BeginningWith:{let e=h.toString();var g=o.toString();return e.stimulsoft().startsWith(g)}case w.EndingWith:{let e=h.toString();var p=o.toString();return e.stimulsoft().endsWith(p)}}}catch(e){J.System.StiError.showError(e,!1)}}}return u}static convertStringToColor(i){let r;if(null!=i){i=i.trim();let t=",";for(let e=0;e<i.length;e++)if(!o.isDigit(i[e])&&!o.isWhitespace(i[e])){t=i[e];break}let e=i.split(t);if(3==e.length||4==e.length)try{if(r=3==e.length?re.fromArgb(parseInt(e[0].trim()),parseInt(e[1].trim()),parseInt(e[2].trim())):re.fromArgb(parseInt(e[0].trim()),parseInt(e[1].trim()),parseInt(e[2].trim()),parseInt(e[3].trim())),Number.isNaN(r.b)||Number.isNaN(r.g)||Number.isNaN(r.r)||Number.isNaN(r.a))return null}catch(e){J.System.StiError.showError(e,!1);var s=Z.format("Can't get color from '{0}'",i);te.a.StiLogService.write1("StiChartHelper.ConvertStringToColor "+s)}else try{var n=parseInt(i);if(0<=n){let e=re.fromArgb(n);return n<16777215&&(e=re.fromArgb(255,e.r,e.g,e.b)),e}return re.fromName(i)}catch(e){J.System.StiError.showError(e,!1);var n=Z.format("Can't get color from '{0}'",i);te.a.StiLogService.write1("StiChartHelper.ConvertStringToColor "+n)}}return r}static createChart(l,g){let p=new Q,f=!1,w=0;while(w<g.series.count){let S=g.series.getByIndex(w);this.setTitle(l,w,S),S.valuesStart=[],S.values=this.checkValueNaN(this.getValues(l,S));let e=g.series.getByIndex(w).stimulsoft().as(te.d.StiGanttSeries);null!=e&&(e.valuesEnd=this.getValuesEnd(l,e,e.valueDataColumnEnd,e.invokeGetListOfValuesEnd,e.invokeGetValueEnd));let t=g.series.getByIndex(w).stimulsoft().as(te.d.StiRangeSeries);null!=t&&(t.valuesEnd=this.getValuesEnd(l,t,t.valueDataColumnEnd,t.invokeGetListOfValuesEnd,t.invokeGetValueEnd));let i=g.series.getByIndex(w).stimulsoft().as(te.d.StiSteppedRangeSeries);null!=i&&(i.valuesEnd=this.getValuesEnd(l,i,i.valueDataColumnEnd,i.invokeGetListOfValuesEnd,i.invokeGetValueEnd));let r=g.series.getByIndex(w).stimulsoft().as(te.d.StiRangeBarSeries);null!=r&&(r.valuesEnd=this.getValuesEnd(l,r,r.valueDataColumnEnd,r.invokeGetListOfValuesEnd,r.invokeGetValueEnd));let s=g.series.getByIndex(w).stimulsoft().as(te.d.StiSplineRangeSeries);null!=s&&(s.valuesEnd=this.getValuesEnd(l,s,s.valueDataColumnEnd,s.invokeGetListOfValuesEnd,s.invokeGetValueEnd));let n=g.series.getByIndex(w).stimulsoft().as(te.d.StiCandlestickSeries);null!=n&&(n.valuesHigh=this.getValuesHigh(l,n),n.valuesLow=this.getValuesLow(l,n),n.valuesClose=this.getValuesClose(l,n),n.valuesOpen=this.getValuesOpen(l,n));let o=g.series.getByIndex(w).stimulsoft().as(te.d.StiBubbleSeries);null!=o&&(o.weights=this.getWeights(l,o));var a=S.stimulsoft().as(te.d.StiPieSeries),a;null!=a&&this.setCutPieList(l,a),l.cacheValues(!0),S.arguments=this.getArguments(l,S),S.tags=this.getTags(l,S),S.hyperlinks=this.getHyperlinks(l,S),S.toolTips=this.getToolTips(l,S),this.checkParetoValues(S),S.is(te.d.StiHistogramSeries)&&(a=S.chart.area.xAxis.labels.formatService,te.d.StiHistogramHelper.checkValuesAndArguments(S,a)),l.cacheValues(!1);var h=this.getAutoSeriesKeysFromAutoSeriesKeyDataColumn(l,S),u=this.getAutoSeriesTitleFromAutoSeriesTitleDataColumn(l,S),d=this.getAutoSeriesColorFromautoSeriesColorDataColumn(l,S);if(S.sortBy!=te.d.StiSeriesSortType.None||0<S.filters.count||0<h.length){var m=(S.values.length>S.arguments.length?S.values:S.arguments).length,c,x,C;let a=[];for(let l=0;l<m;l++){var y=S.values.length>l?S.values[l]:0,b=S.arguments.length>l?S.arguments[l]:null,A=h.length>l?h[l]:null,v=u.length>l?u[l]:null,L=d.length>l?d[l]:null,T=S.tags.length>l?S.tags[l]:0;let e=null;S.is(te.d.IStiRangeSeries)&&(e=S.valuesEnd.length>l?S.valuesEnd[l]:0);let t=null,i=null,r=null,s=null;S.is(te.d.IStiFinancialSeries)&&(t=S.valuesOpen.length>l?S.valuesOpen[l]:0,i=S.valuesClose.length>l?S.valuesClose[l]:0,r=S.valuesLow.length>l?S.valuesLow[l]:0,s=S.valuesHigh.length>l?S.valuesHigh[l]:0);let n=null;null!=o&&(n=o.weights.length>l?o.weights[l]:0);var I=S.toolTips.length>l?S.toolTips[l]:"";a.push(new te.d.StiDataItem(b,y,e,n,t,i,r,s,v,A,L,I,T))}let r=new Q,e=0;for(c of S.filters.list){var k=Z.format("{0}Filters_{1}_{2}",g.name,w,e);r.set(c,this.getFilterData(g.report,c,k)),e++}let s=[],n=null,l=null;if(0<S.filters.count){try{n=$.getDataSourceFromDataColumn(g.report.dictionary,S.valueDataColumn)}catch(e){J.System.StiError.showError(e,!1)}if(null==n)try{n=$.getDataSourceFromDataColumn(g.report.dictionary,S.argumentDataColumn)}catch(e){J.System.StiError.showError(e,!1)}null==n&&(n=g.dataSource);try{l=$.getBusinessObjectFromDataColumn(g.report.dictionary,S.valueDataColumn)}catch(e){J.System.StiError.showError(e,!1)}if(null==l)try{l=$.getBusinessObjectFromDataColumn(g.report.dictionary,S.argumentDataColumn)}catch(e){J.System.StiError.showError(e,!1)}null==l&&(l=g.businessObject)}null!=n&&(n.saveState("ChartFilter"),n.first()),null!=l&&(l.saveState("ChartFilter"),l.createEnumerator());for(x of a){let e=ie.create(Boolean,S.filters.count),t=0;for(var F of S.filters.list){if(e[t]=this.getFilterResult(F,x.argument,x.value,x.valueEnd,x.valueOpen,x.valueClose,x.valueLow,x.valueHigh,r.get(F)),F.item==K.Expression){var B=Z.format("{0}Filters_{1}_{2}",g.name,w,t);try{e[t]=this.getFilterData(g.report,F,B).stimulsoft().toBoolean()}catch(e){J.System.StiError.showError(e,!1)}}t++}let i=!0;if(S.filterMode==q.And){for(var R of e)if(!R){i=!1;break}}else{i=!1;for(var P of e)if(P){i=!0;break}}i&&s.push(x),null!=n&&n.next(),null!=l&&l.next()}if(null!=n&&n.restoreState("ChartFilter"),null!=l&&l.restoreState("ChartFilter"),a=s,S.sortBy!=te.d.StiSeriesSortType.None&&(C=new te.d.StiDataItemComparer(S.sortBy,S.sortDirection),a.stimulsoft().sort2(C)),this.fillSeriesData(S,a),0<h.length){let r=new Q,u=null;if(null!=S.arguments&&0<S.arguments.length){let e=[],t=new Q;for(var D of a){var D=D.argument;t.containsKey(D)||(e.push(D),t.add(D,null))}t.clear(),u=e.stimulsoft().toArray(),S.sortBy==te.d.StiSeriesSortType.Argument&&(ie.sort(u),S.sortDirection==te.d.StiSeriesSortDirection.Descending&&ie.reverse(u))}else{let t=new Q;for(var M of a){let e=t.get(M.key);null==e&&(e=[],t.set(M.key,e)),e.push(M)}let i=0;for(var N of t.values){i=Math.max(i,N.count);let e=0;for(var E of N)E.argument=e.toString(),r.set(E,e.toString()),e++}u=ie.create(String,i);for(let e=0;e<i;e++)u[e]=e.toString()}let e=new Q;for(var O of h)e.set(O,O);var G=ie.create(String,e.count);e.keys.copyTo(G,0);var C={ref:G},V;this.sortArray(C),G=C.ref;let t=ie.create2(te.d.StiDataItem,u.length,G.length),i=new Q;for(let e=0;e<u.length;e++)i.set(u[e],e);let s=new Q;for(let e=0;e<G.length;e++)s.set(G[e],e);let d=new Q,m=new Q;for(V of a){var X=this.getKey(V.key);let e=V.argument;null!=S.arguments&&0!=S.arguments.length||(e=r.get(V));var _=s.get(X),H=i.get(e);if(null!=V.title?d.set(X,V.title):d.set(X,V.key),m.set(X,V.color),null!=t[H][_])t[H][_].push(V);else{let e=[];e.push(V),t[H][_]=e}}let c=null;null!=o&&(c=o.clone());for(let e=0;e<G.length;e++){var z=G[e];let r=null;0==e?r=S:(r=S.clone(),g.series.insert(w+e,r)),r.coreTitle=d.get(z);var z=m.get(z);p.set(r,z);let s=[],n=[],l=[],a=[],o=[],h=[];for(let i=0;i<u.length;i++){var j=t[i][e];if(null==j){if(r.is(te.d.IStiScatterSeries))continue;s.push(null),a.push(0),o.push(null),h.push(null),r.is(te.d.IStiRangeSeries)&&n.push(null),l.push(u[i])}else for(var Y of j){let e=null,t=r.is(te.d.IStiScatterSeries);if(null!=Y&&"number"==typeof Y.value&&(e=Y.value.stimulsoft().toNumber(),t=!1),r.is(te.d.IStiScatterSeries)&&null==u[i])continue;s.push(e),t||l.push(u[i]),r.is(te.d.IStiRangeSeries)&&n.push(Y.valueEnd.stimulsoft().toNumber()),null!=c&&a.push(Y.weight.stimulsoft().toNumber()),null!=Y.toolTip&&o.push(Y.toolTip.toString()),null!=Y.tag&&h.push(Y.tag)}}var z=ie.create(Number,s.length);s.stimulsoft().copyTo(z),r.values=z;var z=ie.create(Object,l.length),W,W;l.stimulsoft().copyTo(z),r.arguments=z,r.is(te.d.IStiRangeSeries)&&(W=ie.create(Number,n.length),n.stimulsoft().copyTo(W),r.valuesEnd=W),r.is(te.d.StiBubbleSeries)&&(W=ie.create(Number,a.length),a.stimulsoft().copyTo(W),r.weights=W),r.toolTips=o.stimulsoft().toArray(),r.tags=h.stimulsoft().toArray(),this.checkArgumentsDateTimeStep(r),this.createTopN(r),r.filters=S.filters,f=!0}w+=G.length-1}}else this.checkArgumentsDateTimeStep(S),this.createTopN(S);w++}if(te.d.StiBoxAndWhiskerHelper.checkArgument(g),this.checkWaterfallTotals(g),J["StiOptions"].Engine.allowInvokeProcessChartEventForTemplateOfChart&&g.invokeEvents(),f&&J["StiOptions"].Engine.applyStylesInAutoSeries){g.series.applyStyle(g.style);let t=0;for(var i of g.series.list){var r=this.convertStringToColor(p.get(i));let e=new s(t,i,null);null!=r&&(e.color=r),i.invokeNewAutoSeries(e),e.color instanceof re&&i.core.applyStyle(g.style,e.color),t++}}}static getShorterListPoints(t){let i=[];for(let e=0;e<t.values.length;e++)i[e]=new ee(t.values[e],e);var r=[.3,.6,1,5,9,15,20,25,30,40];let s=[],n=[];for(let e=0;e<t.values.length;e++){if(s=te.d.StiSimplifyHelper.simplify(i,r[e],!0),s.length/i.length<.02&&s.length<900&&null!=n){s=n;break}n=s}return s}static checkParetoValues(r){let e=r.stimulsoft().as(te.d.StiParetoSeries);if(null!=e){let t=new P,i=new P;for(let e=0;e<r.values.length;e++){var s=r.values[e];0<s&&(t.push(s),null!=r.arguments&&e<r.arguments.length?i.push(r.arguments[e]):i.push(e+1))}e.values=t.stimulsoft().toArray(),e.arguments=i.stimulsoft().toArray(),e.valuesStart=[]}}static checkValueNaN(t){for(let e=0;e<t.length;e++)null!=t[e]&&isNaN(t[e])&&(t[e]=null);return t}static checkArgumentsDateTimeStep(h){let u=h.arguments;if(h.chart.area.is(te.d.StiAxisArea)){var d=h.chart.area.xAxis.dateTimeStep,m=d.step,c=d.numberOfValues;if(this.isArgumentsDateTime(u)&&m!=te.d.StiTimeDateStep.None){let t=ie.create(v,u.length);for(let e=0;e<u.length;e++)t[e]=v.fromString(u[e].toString());var S=this.maximumDate(t),e=this.minimumDate(t),g=M.trunc(this.getTotalTimeSpans(m,S,e))+1;let i=[],r=[],s=e,n=this.getNextDate(e,m);for(let e=0;e<g;e++){var p=(n.ticks-s.ticks)/c,f=new U(p/2);for(let e=0;e<c;e++){var w=new U(p*e);if(w.ticks>S.ticks)continue;i.push(s.addTicks(w.ticks));var x=new v(i[i.length-1].ticks-f.ticks),w=new v(i[i.length-1].ticks+f.ticks),w=this.getValueForDate(x,w,t,h.values);r.push(w)}s=n,n=this.getNextDate(n,m)}var e=ie.create(Object,i.length);let l=ie.create(Number,r.length);i.stimulsoft().copyTo(e),r.stimulsoft().copyTo(l);let a=0;var C=0;let o=null;var y=null;for(let e=0;e<l.length;e++){if(null!=l[e]&&null==o){a=e,o=l[e];continue}if(null!=l[e]&&null!=o){C=e,o=l[a];var y=l[C],b=(o-y)/(C-a);for(let e=a+1;e<C;e++)d.interpolation?l[e]=l[e-1]-b:l[e]=0;a=0,o=null,e--}}h.arguments=e,h.values=l}}}static checkWaterfallTotals(e){let l=0;for(var t of e.series.toCast()){var t=t.stimulsoft().as(te.d.StiWaterfallSeries);null!=t&&(l=Math.max(l,t.values.length))}for(let n=0;n<e.series.count;n++){let s=e.series.list[n].stimulsoft().as(te.d.StiWaterfallSeries);if(null!=s){let t=[],i=[],r=0;for(let e=0;e<l;e++)0==n&&(e<s.arguments.length?t.push(s.arguments[e]):t.push(e)),s.values.length>e?(i.push(s.values[e]),r+=s.values[e]):i.push(null);s.total.visible&&i.push(r),0==n&&t.push(s.total.text),s.values=i,s.arguments=t,s.valuesStart=[]}}}static createTopN(e){if(e.topN.mode==te.d.StiTopNMode.None||e.values.length<=e.topN.count)return;var t=e.stimulsoft().as(te.d.StiBubbleSeries);null!=t?this.createValuesWeightsTopN(t):this.createValuesTopN(e)}static createValuesTopN(t){var e=t.topN.count,i=t.values.stimulsoft().clone();let r=ie.create(Number,t.values.length);for(let e=0;e<t.values.length;e++)r[e]=e;ie.sort3(i,r),t.topN.mode==te.d.StiTopNMode.Top&&(ie.reverse(i),ie.reverse(r));var s=ie.create(Number,e),n=ie.create(Number,e);ie.copy(i,0,s,e),ie.copy(r,0,n,e);let l=[],a=[],o=0;for(let e=0;e<t.values.length;e++)this.findIndex(n,e)?(l.push(t.values[e]),e<t.arguments.length?a.push(t.arguments[e]):a.push(e)):o+=t.values[e];t.topN.showOthers&&(t.is(te.d.StiClusteredBarSeries)?(l.stimulsoft().insert(0,o),a.stimulsoft().insert(0,t.topN.othersText)):(l.push(o),a.push(t.topN.othersText)));var s=ie.create(Number,l.length);l.stimulsoft().copyTo(s);var e=ie.create(Object,a.length);a.stimulsoft().copyTo(e),t.values=s,t.arguments=e}static createValuesWeightsTopN(t){var e=t.topN.count,i=t.weights.stimulsoft().clone();let r=ie.create(Number,t.weights.length);for(let e=0;e<t.weights.length;e++)r[e]=e;ie.sort3(i,r),t.topN.mode==te.d.StiTopNMode.Top&&(ie.reverse(i),ie.reverse(r));var s=ie.create(Number,e),n=ie.create(Number,e);ie.copy(i,0,s,e),ie.copy(r,0,n,e);let l=[],a=[],o=[];for(let e=0;e<t.weights.length;e++)this.findIndex(n,e)&&(l.push(t.weights[e]),e<t.values.length&&a.push(t.values[e]),e<t.arguments.length&&o.push(t.arguments[e]));var i=ie.create(Number,l.length);l.stimulsoft().copyTo(i);var s=ie.create(Number,a.length);a.stimulsoft().copyTo(s);var e=ie.create(Object,o.length);o.stimulsoft().copyTo(e),t.weights=i,t.values=s,t.arguments=e}static getNextDate(e,t){switch(t){case te.d.StiTimeDateStep.Second:return e.addSeconds(1);case te.d.StiTimeDateStep.Minute:return e.addMinutes(1);case te.d.StiTimeDateStep.Day:return e.addDays(1);case te.d.StiTimeDateStep.Hour:return e.addHours(1);case te.d.StiTimeDateStep.Month:return e.addMonths(1);case te.d.StiTimeDateStep.Year:return e.addYears(1)}return e}static getKey(e){let t=e.stimulsoft().toNumber();if(!isNaN(t)&&e.split(",").join(".").split(".").length<=2)return t.toString();return e.toString()}static sortArray(e){let t=e.ref,i=[],r=[];for(let e=0;e<t.length;e++){var s=t[e].stimulsoft().toNumber();!isNaN(s)&&t[e].split(",").join(".").split(".").length<=2?i.push(s):r.push(t[e])}i.sort(),r.sort();let n=ie.create(String,t.length),l=0;for(var a of i)n[l]=a.toString(),l++;for(var o of r)n[l]=o,l++;t=n,e.ref=t}static findIndex(t,i){for(let e=0;e<t.length;e++)if(t[e]==i)return!0;return!1}static getValueForDate(t,i,r,s){let n=0,l=0,e=null;for(let e=0;e<r.length;e++){var a=r[e];t<a&&a<=i&&(n++,l+=s[e])}return 0!=n&&(e=l/n),e}static getTotalTimeSpans(e,t,i){var r=U.fromTicks(t.ticks-i.ticks);let s=0;switch(e){case te.d.StiTimeDateStep.Second:s=r.totalSeconds;break;case te.d.StiTimeDateStep.Minute:s=r.totalMinutes;break;case te.d.StiTimeDateStep.Hour:s=r.totalHours;break;case te.d.StiTimeDateStep.Day:s=r.totalDays;break;case te.d.StiTimeDateStep.Month:s=12*(t.year-i.year)+t.month-i.month;break;case te.d.StiTimeDateStep.Year:s=t.year-i.year;break}return s}static isArgumentsDateTime(e){if(0==e.length)return!1;for(var t of e){if(null==t)return!1;var t=t.toString();if(null!=!v.fromString(t,!1))return!1}return!0}static maximumDate(e){let t=v.minValue;for(var i of e)i.toOADate2(!1)>t.toOADate2(!1)&&(t=i);return t}static minimumDate(e){let t=v.maxValue;for(var i of e)i.toOADate2(!1)<t.toOADate2(!1)&&(t=i);return t}static getAutoSeriesColorFromautoSeriesColorDataColumn(n,l){if(null!=l.autoSeriesColorDataColumn&&0<l.autoSeriesColorDataColumn.trim().length){let r=$.getDataSourceFromDataColumn(n.report.dictionary,l.autoSeriesColorDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");let i=ie.create(String,r.count);r.first();for(let t=0;t<r.count;t++){let e=$.getDataFromDataColumn(n.report.dictionary,l.autoSeriesColorDataColumn);e=null==e?"":e.toString(),i[t]=e,r.next()}return r.restoreState("ChartRender_DataColumn"),i}let s=$.getBusinessObjectFromDataColumn(n.report.dictionary,l.autoSeriesColorDataColumn);if(null!=s){s.saveState("ChartRender_DataColumn");let i=ie.create(String,s.count);s.first();for(let t=0;t<s.count;t++){let e=$.getDataFromBusinessObject(n.report.dictionary,l.autoSeriesColorDataColumn);e=null==e?"":e.toString(),i[t]=e,s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return[]}static getAutoSeriesTitleFromAutoSeriesTitleDataColumn(n,l){if(null!=l.autoSeriesTitleDataColumn&&0<l.autoSeriesTitleDataColumn.trim().length){let r=$.getDataSourceFromDataColumn(n.report.dictionary,l.autoSeriesTitleDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");let i=ie.create(String,r.count);r.first();for(let t=0;t<r.count;t++){let e=$.getDataFromDataColumn(n.report.dictionary,l.autoSeriesTitleDataColumn);e=null==e?"":e.toString(),i[t]=e,r.next()}return r.restoreState("ChartRender_DataColumn"),i}let s=$.getBusinessObjectFromDataColumn(n.report.dictionary,l.autoSeriesTitleDataColumn);if(null!=s){s.saveState("ChartRender_DataColumn");let i=ie.create(String,s.count);s.first();for(let t=0;t<s.count;t++){let e=$.getDataFromBusinessObject(n.report.dictionary,l.autoSeriesTitleDataColumn);e=null==e?"":e.toString(),i[t]=e,s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return[]}static getAutoSeriesKeysFromAutoSeriesKeyDataColumn(n,l){if(null!=l.autoSeriesKeyDataColumn&&0<l.autoSeriesKeyDataColumn.trim().length){let r=$.getDataSourceFromDataColumn(n.report.dictionary,l.autoSeriesKeyDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");let i=ie.create(String,r.count);r.first();for(let t=0;t<r.count;t++){let e=$.getDataFromDataColumn(n.report.dictionary,l.autoSeriesKeyDataColumn);e=null==e?"":e.toString(),i[t]=e,r.next()}return r.restoreState("ChartRender_DataColumn"),i}let s=$.getBusinessObjectFromDataColumn(n.report.dictionary,l.autoSeriesKeyDataColumn);if(null!=s){s.saveState("ChartRender_DataColumn");let i=ie.create(String,s.count);s.first();for(let t=0;t<s.count;t++){let e=$.getDataFromBusinessObject(n.report.dictionary,l.autoSeriesKeyDataColumn);e=null==e?"":e.toString(),i[t]=e,s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return[]}static setTitle(e,t,i){let r=new n;r.series=i,r.index=t,i.invokeGetTitle(e,r),Z.isNullOrEmpty(r.value)||(i.coreTitle=r.value)}static setCutPieList(e,t){var i=new a;t.invokeGetCutPieList(e,i),Z.isNullOrEmpty(i.value)||(t.cutPieListValues=te.d.StiSeries.getValuesFromString(i.value))}static getArguments(e,t){let i=this.getArgumentsFromListOfArguments(e,t);if(null!=i)return i;if(i=this.getArgumentsFromArgumentDataColumn(e,t),null!=i)return i;if(i=this.getArgumentsFromArgumentExpression(e,t),null!=i)return i;return[]}static getArgumentsFromArgumentExpression(t,i){let r=ie.create(Object,t.count);t.first();for(let e=0;e<t.count;e++){var s=new l;i.invokeGetArgument(t,s),r[e]=s.value,t.next()}return r}static getArgumentsFromArgumentDataColumn(s,n){if(null!=n.argumentDataColumn&&0<n.argumentDataColumn.trim().length){let i=$.getDataSourceFromDataColumn(s.report.dictionary,n.argumentDataColumn);if(null!=i){i.saveState("ChartRender_DataColumn");let t=ie.create(Object,i.count);i.first();for(let e=0;e<i.count;e++)t[e]=$.getDataFromDataColumn(s.report.dictionary,n.argumentDataColumn),null!=t&&t[e]instanceof v&&(n.core.isDateTimeArguments=!0),i.next();return i.restoreState("ChartRender_DataColumn"),t}let r=$.getBusinessObjectFromDataColumn(s.report.dictionary,n.argumentDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");let t=ie.create(Object,r.count);r.first();for(let e=0;e<r.count;e++)t[e]=$.getDataFromBusinessObject(s.report.dictionary,n.argumentDataColumn),t[e]instanceof v&&(n.core.isDateTimeArguments=!0),r.next();return r.restoreState("ChartRender_DataColumn"),t}}return null}static getArgumentsFromListOfArguments(e,t){var i=new a;if(t.invokeGetListOfArguments(e,i),null!=i.value&&0<i.value.length)return te.d.StiSeries.getArgumentsFromString(i.value);return null}static getValues(e,t){let i=this.getValuesFromListOfValues(e,t);if(null!=i)return i;if(i=this.getValuesFromValueDataColumn(e,t),null!=i)return i;if(i=this.getValuesFromValueExpression(e,t),null!=i)return i;return[]}static getValuesFromValueExpression(i,r){let s=ie.create(Number,i.count);i.first();for(let t=0;t<i.count;t++){let e=new a;e.value="0",r.invokeGetValue(i,e),s[t]=e.value.stimulsoft().toNumber(),i.next()}return s}static getValuesFromValueDataColumn(l,a){if(null!=a.valueDataColumn&&0<a.valueDataColumn.trim().length){let s=$.getDataSourceFromDataColumn(l.report.dictionary,a.valueDataColumn);if(null!=s){s.saveState("ChartRender_DataColumn");let r=ie.create(Number,s.count);s.first();for(let i=0;i<s.count;i++){let e=$.getDataFromDataColumn(l.report.dictionary,a.valueDataColumn);!a.is(te.d.StiGanttSeries)||e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=null;null!=e&&e instanceof v?(t=e.toOADate2(!1),a.core.isDateTimeValues=!0):null!=e&&e!=x.value&&(t=e.stimulsoft().toNumber()),r[i]=t,s.next()}return s.restoreState("ChartRender_DataColumn"),r}let n=$.getBusinessObjectFromDataColumn(l.report.dictionary,a.valueDataColumn);if(null!=n){n.saveState("ChartRender_DataColumn");let r=ie.create(Number,n.count);n.first();for(let i=0;i<n.count;i++){let e=$.getDataFromBusinessObject(l.report.dictionary,a.valueDataColumn);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=null;e instanceof v?(a.core.isDateTimeValues=!0,t=e.toOADate2(!1)):null!=e&&e!=x.value&&(t=e.stimulsoft().toNumber()),r[i]=t,n.next()}return n.restoreState("ChartRender_DataColumn"),r}}return null}static getValuesFromListOfValues(e,t){var i=new a;if(t.invokeGetListOfValues(e,i,t),null!=i.value&&0<i.value.length)return te.d.StiSeries.getNullableValuesFromString(t,i.value);return null}static getValuesEnd(e,t,i,r,s){let n=this.getValuesEndFromListOfValuesEnd(e,t,r);if(null!=n)return n;if(n=this.getValuesEndFromValueDataColumnEnd(e,t,i),null!=n)return n;if(n=this.getValuesEndFromValueEndExpression(e,s,t),null!=n)return n;return[]}static getValuesEndFromValueEndExpression(i,r,s){let n=ie.create(Number,i.count);i.first();for(let t=0;t<i.count;t++){let e=new a;e.value="0",r(i,e,s),n[t]=e.value.stimulsoft().toNumber(),i.next()}return n}static getValuesEndFromValueDataColumnEnd(l,a,o){if(null!=o&&0<o.trim().length){let s=$.getDataSourceFromDataColumn(l.report.dictionary,o);if(null!=s){s.saveState("ChartRender_DataColumn");let r=ie.create(Number,s.count);s.first();for(let i=0;i<s.count;i++){let e=$.getDataFromDataColumn(l.report.dictionary,o);!a.is(te.d.StiGanttSeries)||e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=null;e instanceof v?(a.core.isDateTimeValues=!0,t=e.toOADate2(!1)):null!=e&&e!=x.value&&(t=e.stimulsoft().toNumber()),r[i]=t,s.next()}return s.restoreState("ChartRender_DataColumn"),r}let n=$.getBusinessObjectFromDataColumn(l.report.dictionary,o);if(null!=n){n.saveState("ChartRender_DataColumn");let r=ie.create(Number,n.count);n.first();for(let i=0;i<n.count;i++){let e=$.getDataFromBusinessObject(l.report.dictionary,o);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=null;e instanceof v?(a.core.isDateTimeValues=!0,t=e.toOADate2(!1)):null!=e&&e!=x.value&&(t=e.stimulsoft().toNumber()),r[i]=t,n.next()}return n.restoreState("ChartRender_DataColumn"),r}}return null}static getValuesEndFromListOfValuesEnd(e,t,i){var r=new a;if(i(e,r,t),null!=r.value&&0<r.value.length)return te.d.StiSeries.getNullableValuesFromString(t,r.value);return null}static getValuesOpen(e,t){let i=this.getValuesOpenFromListOfValuesOpen(e,t);if(null!=i)return i;if(i=this.getValuesOpenFromValueDataColumnOpen(e,t),null!=i)return i;if(i=this.getValuesOpenFromValuesOpenExpression(e,t),null!=i)return i;return[]}static getValuesOpenFromValuesOpenExpression(i,r){let s=ie.create(Number,i.count);i.first();for(let t=0;t<i.count;t++){let e=new a;e.value="0",r.invokeGetValueOpen(i,e),s[t]=e.value.stimulsoft().toNumber(),i.next()}return s}static getValuesOpenFromValueDataColumnOpen(l,a){if(null!=a.valueDataColumnOpen&&0<a.valueDataColumnOpen.trim().length){let s=$.getDataSourceFromDataColumn(l.report.dictionary,a.valueDataColumnOpen);if(null!=s){s.saveState("ChartRender_DataColumn");let r=ie.create(Number,s.count);s.first();for(let i=0;i<s.count;i++){let e=$.getDataFromDataColumn(l.report.dictionary,a.valueDataColumnOpen);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,s.next()}return s.restoreState("ChartRender_DataColumn"),r}let n=$.getBusinessObjectFromDataColumn(l.report.dictionary,a.valueDataColumnOpen);if(null!=n){n.saveState("ChartRender_DataColumn");let r=ie.create(Number,n.count);n.first();for(let i=0;i<n.count;i++){let e=$.getDataFromBusinessObject(l.report.dictionary,a.valueDataColumnOpen);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,n.next()}return n.restoreState("ChartRender_DataColumn"),r}}return null}static getValuesOpenFromListOfValuesOpen(e,t){var i=new a;if(t.invokeGetListOfValuesOpen(e,i),null!=i.value&&0<i.value.length)return te.d.StiSeries.getNullableValuesFromString(t,i.value);return null}static getValuesClose(e,t){let i=this.getValuesCloseFromListOfValuesClose(e,t);if(null!=i)return i;if(i=this.getValuesCloseFromValueDataColumnClose(e,t),null!=i)return i;if(i=this.getValuesCloseFromValuesCloseExpression(e,t),null!=i)return i;return[]}static getValuesCloseFromValuesCloseExpression(i,r){let s=ie.create(Number,i.count);i.first();for(let t=0;t<i.count;t++){let e=new a;e.value="0",r.invokeGetValueClose(i,e),s[t]=e.value.stimulsoft().toNumber(),i.next()}return s}static getValuesCloseFromValueDataColumnClose(l,a){if(null!=a.valueDataColumnClose&&0<a.valueDataColumnClose.trim().length){let s=$.getDataSourceFromDataColumn(l.report.dictionary,a.valueDataColumnClose);if(null!=s){s.saveState("ChartRender_DataColumn");let r=ie.create(Number,s.count);s.first();for(let i=0;i<s.count;i++){let e=$.getDataFromDataColumn(l.report.dictionary,a.valueDataColumnClose);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,s.next()}return s.restoreState("ChartRender_DataColumn"),r}let n=$.getBusinessObjectFromDataColumn(l.report.dictionary,a.valueDataColumnClose);if(null!=n){n.saveState("ChartRender_DataColumn");let r=ie.create(Number,n.count);n.first();for(let i=0;i<n.count;i++){let e=$.getDataFromBusinessObject(l.report.dictionary,a.valueDataColumnClose);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,n.next()}return n.restoreState("ChartRender_DataColumn"),r}}return null}static getValuesCloseFromListOfValuesClose(e,t){var i=new a;if(t.invokeGetListOfValuesClose(e,i),null!=i.value&&0<i.value.length)return te.d.StiSeries.getNullableValuesFromString(t,i.value);return null}static getValuesHigh(e,t){let i=this.getValuesHighFromListOfValuesHigh(e,t);if(null!=i)return i;if(i=this.getValuesHighFromValueDataColumnHigh(e,t),null!=i)return i;if(i=this.getValuesHighFromValuesHighExpression(e,t),null!=i)return i;return[]}static getValuesHighFromValuesHighExpression(i,r){let s=ie.create(Number,i.count);i.first();for(let t=0;t<i.count;t++){let e=new a;e.value="0",r.invokeGetValueHigh(i,e),s[t]=e.value.stimulsoft().toNumber(),i.next()}return s}static getValuesHighFromValueDataColumnHigh(l,a){if(null!=a.valueDataColumnHigh&&0<a.valueDataColumnHigh.trim().length){let s=$.getDataSourceFromDataColumn(l.report.dictionary,a.valueDataColumnHigh);if(null!=s){s.saveState("ChartRender_DataColumn");let r=ie.create(Number,s.count);s.first();for(let i=0;i<s.count;i++){let e=$.getDataFromDataColumn(l.report.dictionary,a.valueDataColumnHigh);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,s.next()}return s.restoreState("ChartRender_DataColumn"),r}let n=$.getBusinessObjectFromDataColumn(l.report.dictionary,a.valueDataColumnHigh);if(null!=n){n.saveState("ChartRender_DataColumn");let r=ie.create(Number,n.count);n.first();for(let i=0;i<n.count;i++){let e=$.getDataFromBusinessObject(l.report.dictionary,a.valueDataColumnHigh);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,n.next()}return n.restoreState("ChartRender_DataColumn"),r}}return null}static getValuesHighFromListOfValuesHigh(e,t){var i=new a;if(t.invokeGetListOfValuesHigh(e,i),null!=i.value&&0<i.value.length)return te.d.StiSeries.getNullableValuesFromString(t,i.value);return null}static getValuesLow(e,t){let i=this.getValuesLowFromListOfValuesLow(e,t);if(null!=i)return i;if(i=this.getValuesLowFromValueDataColumnLow(e,t),null!=i)return i;if(i=this.getValuesLowFromValuesLowExpression(e,t),null!=i)return i;return[]}static getValuesLowFromValuesLowExpression(i,r){let s=ie.create(Number,i.count);i.first();for(let t=0;t<i.count;t++){let e=new a;e.value="0",r.invokeGetValueLow(i,e),s[t]=e.value.stimulsoft().toNumber(),i.next()}return s}static getValuesLowFromValueDataColumnLow(l,a){if(null!=a.valueDataColumnLow&&0<a.valueDataColumnLow.trim().length){let s=$.getDataSourceFromDataColumn(l.report.dictionary,a.valueDataColumnLow);if(null!=s){s.saveState("ChartRender_DataColumn");let r=ie.create(Number,s.count);s.first();for(let i=0;i<s.count;i++){let e=$.getDataFromDataColumn(l.report.dictionary,a.valueDataColumnLow);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,s.next()}return s.restoreState("ChartRender_DataColumn"),r}let n=$.getBusinessObjectFromDataColumn(l.report.dictionary,a.valueDataColumnLow);if(null!=n){n.saveState("ChartRender_DataColumn");let r=ie.create(Number,n.count);n.first();for(let i=0;i<n.count;i++){let e=$.getDataFromBusinessObject(l.report.dictionary,a.valueDataColumnLow);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,n.next()}return n.restoreState("ChartRender_DataColumn"),r}}return null}static getValuesLowFromListOfValuesLow(e,t){var i=new a;if(t.invokeGetListOfValuesLow(e,i),null!=i.value&&0<i.value.length)return te.d.StiSeries.getNullableValuesFromString(t,i.value);return null}static getWeights(e,t){let i=this.getWeightsFromListOfWeights(e,t);if(null!=i)return i;if(i=this.getWeightsFromWeightDataColumn(e,t),null!=i)return i;if(i=this.getWeightsWeightExpression(e,t),null!=i)return i;return[]}static getWeightsWeightExpression(i,r){let s=ie.create(Number,i.count);i.first();for(let t=0;t<i.count;t++){let e=new a;e.value="0",r.invokeGetWeight(i,e),s[t]=e.value.stimulsoft().toNumber(),i.next()}return s}static getWeightsFromWeightDataColumn(l,a){if(null!=a.weightDataColumn&&0<a.weightDataColumn.trim().length){let s=$.getDataSourceFromDataColumn(l.report.dictionary,a.weightDataColumn);if(null!=s){s.saveState("ChartRender_DataColumn");let r=ie.create(Number,s.count);s.first();for(let i=0;i<s.count;i++){let e=$.getDataFromDataColumn(l.report.dictionary,a.weightDataColumn);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,s.next()}return s.restoreState("ChartRender_DataColumn"),r}let n=$.getBusinessObjectFromDataColumn(l.report.dictionary,a.weightDataColumn);if(null!=n){n.saveState("ChartRender_DataColumn");let r=ie.create(Number,n.count);n.first();for(let i=0;i<n.count;i++){let e=$.getDataFromBusinessObject(l.report.dictionary,a.weightDataColumn);e instanceof v||null==v.fromString(e.toString(),!1)||(e=v.fromString(e.toString()));let t=0;t=e instanceof v?(a.core.isDateTimeValues=!0,e.toOADate2(!1)):e.stimulsoft().toNumber(),r[i]=t,n.next()}return n.restoreState("ChartRender_DataColumn"),r}}return null}static getWeightsFromListOfWeights(e,t){var i=new a;if(t.invokeGetListOfWeights(e,i,t),null!=i.value&&0<i.value.length)return te.d.StiSeries.getNullableValuesFromString(t,i.value);return null}static getHyperlinks(e,t){let i=this.getHyperlinksFromListOfHyperlinks(e,t);if(null!=i)return i;if(i=this.getHyperlinksFromHyperlinkDataColumn(e,t),null!=i)return i;if(i=this.getHyperlinksFromHyperlinkExpression(e,t),null!=i)return i;return[]}static getHyperlinksFromHyperlinkExpression(i,r){let s=ie.create(String,i.count);i.first();for(let t=0;t<i.count;t++){let e=new l;e.value=null,r.invokeGetHyperlink(i,e),null!=e.value&&(s[t]=e.value.toString()),i.next()}return s}static getHyperlinksFromHyperlinkDataColumn(n,l){if(null!=l.hyperlinkDataColumn&&0<l.hyperlinkDataColumn.trim().length){let r=$.getDataSourceFromDataColumn(n.report.dictionary,l.hyperlinkDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");let i=ie.create(String,r.count);r.first();for(let t=0;t<r.count;t++){let e=$.getDataFromDataColumn(n.report.dictionary,l.hyperlinkDataColumn);null!=e&&(i[t]=e.toString()),r.next()}return r.restoreState("ChartRender_DataColumn"),i}let s=$.getBusinessObjectFromDataColumn(n.report.dictionary,l.hyperlinkDataColumn);if(null!=s){s.saveState("ChartRender_DataColumn");let i=ie.create(String,s.count);s.first();for(let t=0;t<s.count;t++){let e=$.getDataFromBusinessObject(n.report.dictionary,l.hyperlinkDataColumn);null!=e&&(i[t]=e.toString()),s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return null}static getHyperlinksFromListOfHyperlinks(e,t){var i=new a;if(t.invokeGetListOfHyperlinks(e,i),null!=i.value&&0<i.value.length)return te.d.StiSeries.getStringsFromString(i.value);return null}static getTags(e,t){let i=this.getTagsFromListOfTags(e,t);if(null!=i)return i;if(i=this.getTagsFromTagDataColumn(e,t),null!=i)return i;if(i=this.getTagsFromTagExpression(e,t),null!=i)return i;return[]}static getTagsFromTagExpression(i,r){let s=ie.create(Object,i.count);i.first();for(let t=0;t<i.count;t++){let e=new l;e.value=null,r.invokeGetTag(i,e),s[t]=e.value,i.next()}return s}static getTagsFromTagDataColumn(s,n){if(null!=n.tagDataColumn&&0<n.tagDataColumn.trim().length){let i=$.getDataSourceFromDataColumn(s.report.dictionary,n.tagDataColumn);if(null!=i){i.saveState("ChartRender_DataColumn");let t=ie.create(Object,i.count);i.first();for(let e=0;e<i.count;e++){var l=$.getDataFromDataColumn(s.report.dictionary,n.tagDataColumn);t[e]=l,i.next()}return i.restoreState("ChartRender_DataColumn"),t}let r=$.getBusinessObjectFromDataColumn(s.report.dictionary,n.tagDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");let t=ie.create(Object,r.count);r.first();for(let e=0;e<r.count;e++)t[e]=$.getDataFromBusinessObject(s.report.dictionary,n.tagDataColumn),r.next();return r.restoreState("ChartRender_DataColumn"),t}}return null}static getTagsFromListOfTags(e,t){var i=new a;if(t.invokeGetListOfTags(e,i),null!=i.value&&0<i.value.length)return te.d.StiSeries.getStringsFromString(i.value);return null}static getToolTips(e,t){let i=this.getToolTipsFromListOfToolTips(e,t);if(null!=i)return i;if(i=this.getToolTipsFromToolTipDataColumn(e,t),null!=i)return i;if(i=this.getToolTipsFromToolTipExpression(e,t),null!=i)return i;return[]}static getToolTipsFromToolTipExpression(i,r){let s=ie.create(String,i.count);i.first();for(let t=0;t<i.count;t++){let e=new l;e.value=null,r.invokeGetToolTip(i,e),null!=e.value&&(s[t]=e.value.toString()),i.next()}return s}static getToolTipsFromToolTipDataColumn(n,l){if(null!=l.toolTipDataColumn&&0<l.toolTipDataColumn.trim().length){let r=$.getDataSourceFromDataColumn(n.report.dictionary,l.toolTipDataColumn);if(null!=r){r.saveState("ChartRender_DataColumn");let i=ie.create(String,r.count);r.first();for(let t=0;t<r.count;t++){let e=$.getDataFromDataColumn(n.report.dictionary,l.toolTipDataColumn);null!=e&&(i[t]=e.toString()),r.next()}return r.restoreState("ChartRender_DataColumn"),i}let s=$.getBusinessObjectFromDataColumn(n.report.dictionary,l.toolTipDataColumn);if(null!=s){s.saveState("ChartRender_DataColumn");let i=ie.create(String,s.count);s.first();for(let t=0;t<s.count;t++){let e=$.getDataFromBusinessObject(n.report.dictionary,l.toolTipDataColumn);null!=e&&(i[t]=e.toString()),s.next()}return s.restoreState("ChartRender_DataColumn"),i}}return null}static getToolTipsFromListOfToolTips(e,t){var i=new a;if(t.invokeGetListOfToolTips(e,i),null!=i.value&&0<i.value.length)return te.d.StiSeries.getStringsFromString(i.value);return null}static"getAnimationСompatibilitySeries"(e,t){var e=i.getAnimationSeriesType(e),t=i.getAnimationSeriesType(t);if(e==te.d.StiSeriesAnimationType.None||t==te.d.StiSeriesAnimationType.None)return!1;return e==t}static getAnimationSeriesType(e){var e=e.stimulsoft().getType();if(e==te.d.StiClusteredColumnSeries)return te.d.StiSeriesAnimationType.Column;if(e==te.d.StiStackedColumnSeries)return te.d.StiSeriesAnimationType.Column;if(e==te.d.StiFullStackedColumnSeries)return te.d.StiSeriesAnimationType.Column;if(e==te.d.StiRangeBarSeries)return te.d.StiSeriesAnimationType.Column;if(e==te.d.StiHistogramSeries)return te.d.StiSeriesAnimationType.Column;if(e==te.d.StiWaterfallSeries)return te.d.StiSeriesAnimationType.Column;if(e==te.d.StiLineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiStackedLineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiFullStackedLineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiSplineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiStackedSplineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiFullStackedSplineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiSteppedLineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiScatterLineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiScatterSplineSeries)return te.d.StiSeriesAnimationType.Line;if(e==te.d.StiClusteredBarSeries)return te.d.StiSeriesAnimationType.Bar;if(e==te.d.StiStackedBarSeries)return te.d.StiSeriesAnimationType.Bar;if(e==te.d.StiFullStackedBarSeries)return te.d.StiSeriesAnimationType.Bar;if(e==te.d.StiGanttSeries)return te.d.StiSeriesAnimationType.Bar;if(e==te.d.StiAreaSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiStackedAreaSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiFullStackedAreaSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiSplineAreaSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiStackedSplineAreaSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiFullStackedSplineAreaSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiSteppedAreaSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiRangeSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiSplineRangeSeries)return te.d.StiSeriesAnimationType.Range;if(e==te.d.StiSteppedRangeSeries)return te.d.StiSeriesAnimationType.Range;return te.d.StiSeriesAnimationType.None}};i.globalDurationElement=new U(0,0,1),i.globalBeginTimeElement=new U(0,0,1),te.d.StiChartHelper=i}te.c.StiProcessChartEvent=class extends te.c.StiEvent{toString(){return"ProcessChart"}};let i=J.Base.Meta.StiStringMeta,d=J.Base.Meta.StiMetaHelper,m=J.Base.Meta.StiBrushMeta,c=J.Base.Meta.StiColorMeta,S=J.Base.Meta.StiBoolMeta,g=J.Base.JsonReportObject.IStiJsonReportObject,p=J.System.ICloneable,se=J.Base.Drawing.StiSolidBrush;var y=J.Base.Services.StiService;{let e=class extends y{constructor(){super(...arguments),this.chart=null,this._allowApplyStyle=!0,this.colorEach=!1,this.showShadow=!1,this.borderColor=re.gray,this.brush=new se(re.white)}implements(){return e.implementsStiArea||(e.implementsStiArea=super.implements().concat([g,te.d.IStiArea,p])),e.implementsStiArea}meta(){return this._hash||(this._hash=[...super.meta(),new i("Ident").get(()=>this.stimulsoft().getType().stimulsoft().getTypeName()),new S("AllowApplyStyle","",!0),new S("ColorEach"),new S("ShowShadow"),new c("BorderColor","",re.gray),new m(["Brush","br"])])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}static loadFromJsonObjectInternal(e){let t=e.properties().firstOrDefault(e=>"Ident"==e.name).value.toString(),i=J["StiOptions"].Services.chartAreas.firstOrDefault(e=>e.stimulsoft().getType().stimulsoft().getTypeName()==t);if(null==i)throw Z.format("Type {0} is not found!",t);let r=i.createNew();return r.loadFromJsonObject(e),r}static loadAreaFromXml(e,t){let i=e.attributes.getNamedItem("type").value;var r=i.split(".").pop();let s=new te.d[r];return s.chart=t,s.loadFromXml(e),s}get componentId(){return null}get propName(){return""}clone(){let e=super.clone();return e.brush=this.brush.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.area=e),e}createNew(){return null}toString(){return this.serviceName}getDefaultSeriesType(){return null}getSeriesTypes(){return null}getDefaultSeriesLabelsType(){return null}getSeriesLabelsTypes(){return null}get serviceCategory(){return"Chart"}get serviceType(){return e}get isDefaultSeriesTypeFullStackedColumnSeries(){return this.getDefaultSeriesType()==te.d.StiFullStackedColumnSeries}get isDefaultSeriesTypeFullStackedBarSeries(){return this.getDefaultSeriesType()==te.d.StiFullStackedBarSeries}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.chart&&this.core.applyStyle(this.chart.style)}};te.d.StiArea=e}let b=J.Base.Meta.StiEnumMeta,A=J.Base.Meta.StiObjectMeta;{let e=class extends te.d.StiArea{constructor(){super(),this.radarStyle=te.d.StiRadarStyle.Circle,this.xAxis=new te.d.StiXRadarAxis,this.yAxis=new te.d.StiYRadarAxis,this.interlacingHor=new te.d.StiInterlacingHor,this.interlacingVert=new te.d.StiInterlacingVert,this.gridLinesHor=new te.d.StiRadarGridLinesHor,this.gridLinesVert=new te.d.StiRadarGridLinesVert}implements(){return e.implementsStiRadarArea||(e.implementsStiRadarArea=super.implements().concat([g,te.d.IStiRadarArea,te.d.IStiArea,p])),e.implementsStiRadarArea}meta(){return this._hash||(this._hash=[...super.meta(),new A("InterlacingHor","_"),new A("InterlacingVert","_"),new A("GridLinesHor","_"),new A("GridLinesVert","_"),new A("XAxis","_").set(e=>{this._xAxis.loadFromJsonObject(e.value),1==this._xAxis.stimulsoft().as(te.d.StiRadarAxis).jsonLoadFromJsonObjectArea&&(this._xAxis.stimulsoft().as(te.d.StiRadarAxis).jsonLoadFromJsonObjectArea=!1,this._xAxis.area=this)}).setXml(e=>{this._xAxis.loadFromXml(e),this._xAxis.area=this}),new A("YAxis","_").set(e=>{this._yAxis.loadFromJsonObject(e.value),1==this._yAxis.stimulsoft().as(te.d.StiRadarAxis).jsonLoadFromJsonObjectArea&&(this._yAxis.stimulsoft().as(te.d.StiRadarAxis).jsonLoadFromJsonObjectArea=!1,this._yAxis.area=this)}).setXml(e=>{this._yAxis.loadFromXml(e),this._yAxis.area=this}),new b("RadarStyle","",te.d.StiRadarStyle,te.d.StiRadarStyle.Circle)])}clone(){let e=super.clone();return e.interlacingHor=this.interlacingHor.clone(),e.interlacingVert=this.interlacingVert.clone(),e.gridLinesHor=this.gridLinesHor.clone(),e.gridLinesVert=this.gridLinesVert.clone(),e.xAxis=this.xAxis.clone(),e.yAxis=this.yAxis.clone(),e}getDefaultSeriesLabelsType(){return te.d.StiNoneLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiOutsideBaseAxisLabels,te.d.StiOutsideEndAxisLabels,te.d.StiOutsideAxisLabels,te.d.StiValueAxisLabels]}get interlacingHor(){return this._interlacingHor}set interlacingHor(e){this._interlacingHor=e,null!=this._interlacingHor&&(this._interlacingHor.area=this)}get interlacingVert(){return this._interlacingVert}set interlacingVert(e){this._interlacingVert=e,null!=this._interlacingVert&&(this._interlacingVert.area=this)}get gridLinesHor(){return this._gridLinesHor}set gridLinesHor(e){this._gridLinesHor=e,null!=this._gridLinesHor&&(this._gridLinesHor.area=this)}get gridLinesVert(){return this._gridLinesVert}set gridLinesVert(e){this._gridLinesVert=e,null!=this._gridLinesVert&&(this._gridLinesVert.area=this)}get xAxis(){return this._xAxis}set xAxis(e){this._xAxis=e,null!=this._xAxis&&(this._xAxis.area=this)}get yAxis(){return this._yAxis}set yAxis(e){this._yAxis=e,null!=this._yAxis&&(this._yAxis.area=this)}};te.d.StiRadarArea=e}let ne=J.System.Drawing.Rectangle,L=te.d.IStiSeriesElement;{let e=class{constructor(e){this.chart=e}implements(){return e.implementsStiChartCoreXF||(e.implementsStiChartCoreXF=[p,te.d.IStiApplyStyle,te.d.IStiChartCoreXF]),e.implementsStiChartCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.chart.style=e,this.chart.allowApplyStyle&&(this.chart.brush=e.core.chartBrush),null!=this.chart.title&&this.chart.title.core.applyStyle(e),null!=this.chart.area&&this.chart.area.core.applyStyle(e),null!=this.chart.legend&&this.chart.legend.core.applyStyle(e),null!=this.chart.seriesLabels&&this.chart.seriesLabels.core.applyStyle(e),null!=this.chart.series&&this.chart.series.applyStyle(e),null!=this.chart.constantLines&&this.chart.constantLines.applyStyle(e),null!=this.chart.strips&&this.chart.strips.applyStyle(e),null!=this.chart.table&&this.chart.table.core.applyStyle(e)}render(i,e,t){let r=new te.d.StiChartGeom(e);r.createChildGeoms();let s;var n;s=t?(n=i.options.zoom,new ne(e.x+this.chart.horSpacing*n,e.y+this.chart.vertSpacing*n,e.width-2*this.chart.horSpacing*n,e.height-2*this.chart.vertSpacing*n)):e.clone(),this.fullRectangle=s;var l=this.chart.title.core.render(i,this.chart.title,s),t,n,a,e;if(null!=l){switch(this.chart.title.dock){case te.d.StiChartTitleDock.Top:s.y+=l.clientRectangle.height,s.height-=l.clientRectangle.height;break;case te.d.StiChartTitleDock.Right:s.width-=l.clientRectangle.width;break;case te.d.StiChartTitleDock.Bottom:s.height-=l.clientRectangle.height;break;case te.d.StiChartTitleDock.Left:s.x+=l.clientRectangle.width,s.width-=l.clientRectangle.width;break}r.childGeoms.push(l)}let o=null,h=null,u=s.clone();null!=this.chart.legend&&(o=this.chart.area.core.render(i,u.clone()),h=this.chart.legend.core.render(i,o.clientRectangle.clone()),null!=h&&(t=h.clientRectangle.clone(),n={ref:s},a={ref:u},this.setLegendRect(i,this.chart,n,a,e={ref:t}),s=n.ref,t=e.ref,u=a.ref));let d=0,m=0;this.chart.table.core.showTable()&&(o=this.chart.area.core.render(i,u.clone()),d=this.chart.table.core.getWidthCellLegend(i)+o.clientRectangle.width,m=this.chart.table.core.getHeightTable(i,d),u.height-=m),null!=this.chart.area&&(o=this.chart.area.core.render(i,u.clone()),null!=o&&r.childGeoms.push(o));let c=r.getSeriesElementGeoms();for(let t=0;t<c.length;t++){let e=c[t].stimulsoft().as(L);null!=e&&(e.elementIndex=t.toString())}if(this.chart.table.core.showTable()){var a=this.chart.series,S=this.chart.area;if(null!=a&&0<a.count){let e=u.x;this.chart.table.core.getWidthCellLegend(i)<o.clientRectangle.x-u.x&&(e=o.clientRectangle.x-this.chart.table.core.getWidthCellLegend(i)),S.reverseHor&&S.yRightAxis.visible&&(e=o.clientRectangle.left);let t=o.clientRectangle.bottom;this.chart.table.chart.area.is(te.d.IStiClusteredBarArea)&&(t=u.bottom);var g=new ne(e,t,d,m),p=this.chart.table.core.render(i,g);r.childGeoms.push(p)}}if(r.createChildGeoms(),null!=h){u=o.clientRectangle.clone();let e=h.clientRectangle.clone();var S={ref:s},g={ref:u},p={ref:e};this.setLegendRect(i,this.chart,S,g,p),s=S.ref,e=p.ref,u=g.ref,h.clientRectangle=e.clone(),r.childGeoms.push(h)}return r}setLegendRect(e,t,i,r,s){var n=i.ref;let l=r.ref,a=s.ref;var o=t.horSpacing*e.options.zoom,h=t.vertSpacing*e.options.zoom;switch(t.legend.horAlignment){case te.d.StiLegendHorAlignment.LeftOutside:a.x=n.x,l.width-=a.width+o,l.x+=a.width+o;break;case te.d.StiLegendHorAlignment.Left:a.x=l.x+o;break;case te.d.StiLegendHorAlignment.Center:a.x=l.x+(l.width-a.width)/2;break;case te.d.StiLegendHorAlignment.Right:a.x=l.right-o-a.width,t.legend.showShadow&&t.legend.vertAlignment==te.d.StiLegendVertAlignment.BottomOutside&&(a.x-=5,l.width-=5);break;case te.d.StiLegendHorAlignment.RightOutside:a.x=n.right-a.width,l.width-=a.width+o,t.legend.showShadow&&(a.x-=5,l.width-=5);break}switch(t.legend.vertAlignment){case te.d.StiLegendVertAlignment.TopOutside:a.y=n.y,l.height-=a.height+h,l.y+=a.height+h;break;case te.d.StiLegendVertAlignment.Top:a.y=l.y+h;break;case te.d.StiLegendVertAlignment.Center:a.y=l.y+(l.height-a.height)/2;break;case te.d.StiLegendVertAlignment.Bottom:a.y=l.bottom-h-a.height,!t.legend.showShadow||t.legend.horAlignment!=te.d.StiLegendHorAlignment.LeftOutside&&t.legend.horAlignment!=te.d.StiLegendHorAlignment.RightOutside||(a.y-=5,l.height-=5);break;case te.d.StiLegendVertAlignment.BottomOutside:a.y=n.bottom-a.height,l.height-=a.height+h,t.legend.showShadow&&(a.y-=5,l.height-=5);break}t.legend.vertAlignment==te.d.StiLegendVertAlignment.BottomOutside||t.legend.vertAlignment==te.d.StiLegendVertAlignment.TopOutside?(t.legend.horAlignment==te.d.StiLegendHorAlignment.Left&&(a.x-=o),t.legend.horAlignment==te.d.StiLegendHorAlignment.Right&&(a.x+=o)):t.legend.horAlignment!=te.d.StiLegendHorAlignment.RightOutside&&t.legend.horAlignment!=te.d.StiLegendHorAlignment.LeftOutside||(t.legend.vertAlignment==te.d.StiLegendVertAlignment.Top&&(a.y-=h),t.legend.vertAlignment==te.d.StiLegendVertAlignment.Bottom&&(a.y+=h)),i.ref=n,r.ref=l,s.ref=a}};te.d.StiChartCoreXF=e}let T=J.Base.Meta.StiStringNullOrEmptyMeta;{let e=class{constructor(){this.visible=!1,this.allowApplyStyle=!0,this.markerVisible=!0,this.gridLineColor=re.gray,this.gridLinesHor=!0,this.gridLinesVert=!0,this.gridOutline=!0,this.format="",this.chart=null,this.header=new te.d.StiChartTableHeader,this.dataCells=new te.d.StiChartTableDataCells,this.core=new te.d.StiChartTableCoreXF(this)}implements(){return e.implementsStiChartTable||(e.implementsStiChartTable=[g,te.d.IStiChartTable,p]),e.implementsStiChartTable}meta(){return this._hash||(this._hash=[new S("Visible"),new S("AllowApplyStyle","",!0),new S("MarkerVisible","",!0),new c("GridLineColor","",re.gray),new S("GridLinesHor","",!0),new S("GridLinesVert","",!0),new S("GridOutline","",!0),new T("Format"),new A("Header"),new A("DataCells")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiChartTable}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return e.font=this.font.clone(),e.header=this.header.clone(),e.dataCells=this.dataCells.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.chartTable=e),e}get font(){return this.dataCells.font}set font(e){this.dataCells.font=e}get textColor(){return this.dataCells.textColor}set textColor(e){this.dataCells.textColor=e}};te.d.StiChartTable=e}let I=J.Base.Meta.StiNumberMeta,k=J.Base.Meta.StiFontMeta,F=J.System.Drawing.StringAlignment,B=J.System.Drawing.Font,R=J.System.Drawing.FontStyle;{let e=class{constructor(e=new B("Tahoma",12,R.Bold),t="",i=new se(re.saddleBrown),r=!0,s=F.Center,n=te.d.StiChartTitleDock.Top,l=2,a=!1,o=!0){this._allowApplyStyle=!0,this.font=new B("Tahoma",12,R.Bold),this.text="",this.brush=new se(re.saddleBrown),this.antialiasing=!0,this.alignment=F.Center,this.dock=te.d.StiChartTitleDock.Top,this.spacing=2,this.visible=!1,this.chart=null,this.core=new te.d.StiChartTitleCoreXF(this),this.font=e,this.text=t,this.brush=i,this.antialiasing=r,this.alignment=s,this.dock=n,this.spacing=l,this.visible=a,this.allowApplyStyle=o}implements(){return e.implementsStiChartTitle||(e.implementsStiChartTitle=[te.d.IStiChartTitle,p,g]),e.implementsStiChartTitle}meta(){return this._hash||(this._hash=[new S("AllowApplyStyle","_",!0),new k("Font","","Tahoma",12,R.Bold),new T("Text"),new m("Brush"),new S("Antialiasing","",!0),new b("Alignment","",F,F.Center),new b("Dock","",te.d.StiChartTitleDock,te.d.StiChartTitleDock.Top),new I("Spacing","",2),new S("Visible")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiChartTitle}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return e.alignment=this.alignment,e.font=this.font.clone(),e.brush=this.brush.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.chartTitle=e),e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.chart&&this.core.applyStyle(this.chart.style)}};te.d.StiChartTitle=e}let D=J.Base.StiJson,N=J.Base.Localization.StiLocalization;var E=J.System.Collections.CollectionBase;{let e=class extends E{constructor(){super(...arguments),this.chart=null}implements(){return e.implementsStiStripsCollection||(e.implementsStiStripsCollection=[g,te.d.IStiApplyStyle,te.d.IStiStripsCollection]),e.implementsStiStripsCollection}saveToJsonObject(e){if(0==this.list.length)return null;let t=new D,i=0;for(var r of this.list)t.addPropertyJObject(i.toString(),r.saveToJsonObject(e)),i++;return t}loadFromJsonObject(e){for(var t of e.properties()){let e=new te.d.StiStrips;e.chart=this.chart,this.add(e),e.loadFromJsonObject(t.value)}}loadFromXml(i){for(let e=0;e<i.childNodes.length;e++){let t=i.childNodes[e];if(null==t.attributes)continue;var r=t.attributes.getNamedItem("type");if(null!=r&&"Stimulsoft.Report.Chart.StiStrips"==t.attributes.getNamedItem("type").value){let e=new te.d.StiStrips;e.chart=this.chart,this.add(e),e.loadFromXml(t)}}}applyStyle(e){for(var t of this.list)t.core.applyStyle(e)}getStripsTitle(){var e=N.get("Chart","Strip");let t=e,i=1,r=!0;while(r){t=e+" "+i.toString(),r=!1;for(var s of this.list)if(s.text==t){r=!0;break}i++}return t}add(e){null!=this.chart&&(Z.isNullOrEmpty(e.text)&&(e.text=this.getStripsTitle()),e.chart=this.chart),super.add(e)}};te.d.StiStripsCollection=e}{let e=class extends E{constructor(){super(...arguments),this.chart=null}implements(){return e.implementsStiConstantLinesCollection||(e.implementsStiConstantLinesCollection=[g,te.d.IStiApplyStyle,te.d.IStiConstantLinesCollection]),e.implementsStiConstantLinesCollection}saveToJsonObject(e){if(0==this.list.length)return null;let t=new D,i=0;for(var r of this.list)t.addPropertyJObject(i.toString(),r.saveToJsonObject(e)),i++;return t}loadFromJsonObject(e){for(var t of e.properties()){let e=new te.d.StiConstantLines;e.chart=this.chart,this.add(e),e.loadFromJsonObject(t.value)}}loadFromXml(i){for(let e=0;e<i.childNodes.length;e++){let t=i.childNodes[e];if(null==t.attributes)continue;var r=t.attributes.getNamedItem("type");if(null!=r&&"Stimulsoft.Report.Chart.StiConstantLines"==t.attributes.getNamedItem("type").value){let e=new te.d.StiConstantLines;e.chart=this.chart,this.add(e),e.loadFromXml(t)}}}applyStyle(e){for(var t of this.list)t.core.applyStyle(e)}getConstantLineTitle(){var e=N.get("Chart","ConstantLine");let t=e,i=1,r=!0;while(r){t=e+" "+i.toString(),r=!1;for(var s of this.list)if(s.text==t){r=!0;break}i++}return t}add(e){null!=this.chart&&(Z.isNullOrEmpty(e.text)&&(e.text=this.getConstantLineTitle()),e.chart=this.chart),super.add(e)}};te.d.StiConstantLinesCollection=e}let O=J.Base.Meta.StiSizeMeta,G=J.System.Drawing.Size,V=te.e.TextFormats.StiFormatService,X=te.e.TextFormats.StiGeneralFormatService;{let e=class extends y{constructor(){super(...arguments),this.preventIntersection=!1,this._allowApplyStyle=!0,this.showZeros=!1,this.showNulls=!0,this.markerVisible=!1,this.markerSize=new G(8,6),this.markerAlignment=te.d.StiMarkerAlignment.Left,this.step=0,this.valueType=te.d.StiSeriesLabelsValueType.Value,this.valueTypeSeparator="-",this.legendValueType=te.d.StiSeriesLabelsValueType.Value,this.textBefore="",this.textAfter="",this.angle=0,this.format="",this.antialiasing=!0,this.visible=!0,this.drawBorder=!0,this.useSeriesColor=!1,this.labelColor=re.black,this.borderColor=re.black,this.brush=new se(re.white),this.font=new B("Arial",7),this.chart=null,this.wordWrap=!1,this.width=0}implements(){return e.implementsStiSeriesLabels||(e.implementsStiSeriesLabels=super.implements().concat([g,te.d.IStiSeriesLabels,p])),e.implementsStiSeriesLabels}meta(){return this._hash||(this._hash=[...super.meta(),new i("Ident").get(()=>this.stimulsoft().getType().stimulsoft().getTypeName()),new S("PreventIntersection"),new S("AllowApplyStyle","",!0),new S("ShowZeros"),new S("ShowNulls","",!0),new S("MarkerVisible"),new O("MarkerSize"),new b("MarkerAlignment","",te.d.StiMarkerAlignment,te.d.StiMarkerAlignment.Left),new I("Step"),new b("ValueType","",te.d.StiSeriesLabelsValueType,te.d.StiSeriesLabelsValueType.Value),new T("ValueTypeSeparator"),new b("LegendValueType","",te.d.StiSeriesLabelsValueType,te.d.StiSeriesLabelsValueType.Value),new T("TextBefore"),new T("TextAfter"),new I("Angle"),new T("Format"),new S("Antialiasing","",!0),new S("Visible","",!0),new S("DrawBorder","",!0),new S("UseSeriesColor"),new c("LabelColor","",re.black),new c("BorderColor","",re.black),new m("Brush"),new k("Font","","Arial",7),new S("WordWrap"),new I("Width"),new A("FormatService").check(()=>null!=this.formatService&&!this.formatService.is(X)).set(e=>this.formatService=V.createFromJsonObject(e.value)).setXml(e=>this.formatService=V.loadFormatFromXml(e))])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}static loadFromJsonObjectInternal(e,t){let i=e.properties().firstOrDefault(e=>"Ident"==e.name).value.toString(),r=J["StiOptions"].Services.chartSerieLabels.firstOrDefault(e=>e.stimulsoft().getType().stimulsoft().getTypeName()==i);if(null==r)throw Z.format("Type {0} is not found!",i);let s=r.createNew();return s.chart=t,s.loadFromJsonObject(e),s}static loadLabelsFromXml(e,t){let i=e.attributes.getNamedItem("type").value;var r=i.split(".").pop();let s=new te.d[r];return s.chart=t,s.loadFromXml(e),s}get componentId(){return te.a.StiComponentId.StiSeriesLabels}get propName(){return""}clone(){let e=super.clone();return e.brush=this.brush.clone(),e.font=this.font.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.seriesLabels=e),e}get serviceName(){return this.core.localizedName}get serviceCategory(){return"Chart"}get serviceType(){return e}get axisCore(){return this.core}get pieCore(){return this.core}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=Chart&&this.core.applyStyle(this.chart.style)}get conditions(){if(null==this.chart)return null;return this.chart.seriesLabelsConditions}set conditions(e){if(null==this.chart)return;this.chart.seriesLabelsConditions=e}get showOnZeroValues(){return this.showZeros}set showOnZeroValues(e){this.showZeros=e}toString(){return this.serviceName}createNew(){return null}};te.d.StiSeriesLabels=e}{let e=class extends te.d.StiSeriesLabels{constructor(){super(...arguments),this._showInPercent=!1}implements(){return e.implementsStiAxisSeriesLabels||(e.implementsStiAxisSeriesLabels=super.implements().concat([te.d.IStiSeriesLabels,p,te.d.IStiAxisSeriesLabels])),e.implementsStiAxisSeriesLabels}meta(){return this._hash||(this._hash=[...super.meta(),new S("ShowInPercent","_")])}get showInPercent(){return this._showInPercent}set showInPercent(e){this._showInPercent=e,this._showInPercent&&!this.format.stimulsoft().startsWith("P")&&(this.format="P2"),this._showInPercent||(this.format="")}};te.d.StiAxisSeriesLabels=e}{let e=class extends te.d.StiAxisSeriesLabels{constructor(){super(),this.core=new te.d.StiCenterAxisLabelsCoreXF(this)}implements(){return e.implementsStiCenterAxisLabels||(e.implementsStiCenterAxisLabels=super.implements().concat([g,te.d.IStiSeriesLabels,te.d.IStiCenterAxisLabels,te.d.IStiAxisSeriesLabels,p])),e.implementsStiCenterAxisLabels}get componentId(){return te.a.StiComponentId.StiCenterAxisLabels}createNew(){return new e}};te.d.StiCenterAxisLabels=e}let _=J.Base.Drawing.StiPenStyle;{let e=class{constructor(e=new te.d.StiAxisLabels,t=new te.d.StiAxisRange,i=null,r=new te.d.StiAxisTicks,s=new te.d.StiAxisInteraction,n=te.d.StiArrowStyle.None,l=_.Solid,a=re.gray,o=1,h=!0,u=!0,d=!0,m=!1){this._allowApplyStyle=!0,this.logarithmicScale=!1,this.startFromZero=!0,this.interaction=new te.d.StiAxisInteraction,this.labels=new te.d.StiAxisLabels,this.range=new te.d.StiAxisRange,this.ticks=new te.d.StiAxisTicks,this.arrowStyle=te.d.StiArrowStyle.None,this.lineStyle=_.Solid,this.lineColor=re.gray,this.lineWidth=1,this.visible=!0,this.info=new te.d.StiAxisInfoXF,this.labels=e,this.range=t,this._title=i,this.ticks=r,this.interaction=s,this.arrowStyle=n,this.lineStyle=l,this.lineColor=a,this.lineWidth=o,this.visible=h,this.startFromZero=u,this._allowApplyStyle=d,this.logarithmicScale=m}implements(){return e.implementsStiAxis||(e.implementsStiAxis=[g,p,te.d.IStiAxis,g]),e.implementsStiAxis}is(e){if(e instanceof J.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}meta(){return this._hash||(this._hash=[new i("Ident").get(()=>this.stimulsoft().getType().stimulsoft().getTypeName()),new S("LogarithmicScale"),new S("AllowApplyStyle","",!0),new S("StartFromZero","",!0),new A("Interaction"),new A("Labels"),new A("Range"),new S("Visible","",!0),new b("ArrowStyle","",te.d.StiArrowStyle,te.d.StiArrowStyle.None),new b("LineStyle","",_,_.Solid),new c("LineColor","",re.gray),new I("LineWidth","",1),new A("Title"),new A("Ticks")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){let e=this.stimulsoft().memberwiseClone();return e.arrowStyle=this.arrowStyle,e.lineStyle=this.lineStyle,e.labels=this.labels.clone(),e.range=this.range.clone(),e.title=this.title.clone(),e.ticks=this.ticks.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.axis=e),e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style)}get step(){if(null==this.labels)return 0;return this.labels.step}set step(e){null!=this.labels&&(this.labels.step=e)}get title(){return null==this._title&&(this._title=new te.d.StiAxisTitle,this.is(te.d.StiXBottomAxis)||this.is(te.d.StiXTopAxis)?this._title.direction=te.d.StiDirection.LeftToRight:this.is(te.d.StiYRightAxis)?this._title.direction=te.d.StiDirection.TopToBottom:this.is(te.d.StiYLeftAxis)&&(this._title.direction=te.d.StiDirection.BottomToTop)),this._title}set title(e){null==this._title&&(this._title=new te.d.StiAxisTitle,this.is(te.d.StiXBottomAxis)||this.is(te.d.StiXTopAxis)?this._title.direction=te.d.StiDirection.LeftToRight:this.is(te.d.StiYRightAxis)?this._title.direction=te.d.StiDirection.TopToBottom:this.is(te.d.StiYLeftAxis)&&(this._title.direction=te.d.StiDirection.BottomToTop)),this._title=e}get titleDirection(){if(null==this.title)return te.d.StiLegendDirection.BottomToTop;switch(this.title.direction){case te.d.StiDirection.BottomToTop:return te.d.StiLegendDirection.BottomToTop;case te.d.StiDirection.LeftToRight:return te.d.StiLegendDirection.LeftToRight;case te.d.StiDirection.RightToLeft:return te.d.StiLegendDirection.RightToLeft;case te.d.StiDirection.TopToBottom:return te.d.StiLegendDirection.TopToBottom}return te.d.StiLegendDirection.BottomToTop}set titleDirection(e){if(null==this.title)return;switch(e){case te.d.StiLegendDirection.BottomToTop:this.title.direction=te.d.StiDirection.BottomToTop;break;case te.d.StiLegendDirection.LeftToRight:this.title.direction=te.d.StiDirection.LeftToRight;break;case te.d.StiLegendDirection.RightToLeft:this.title.direction=te.d.StiDirection.RightToLeft;break;case te.d.StiLegendDirection.TopToBottom:this.title.direction=te.d.StiDirection.TopToBottom;break}}};te.d.StiAxis=e}{let e=class extends te.d.StiAxis{constructor(e=new te.d.StiAxisLabels,t=new te.d.StiAxisRange,i=null,r=new te.d.StiAxisTicks,s=new te.d.StiAxisInteraction,n=te.d.StiArrowStyle.None,l=_.Solid,a=re.gray,o=1,h=!0,u=!0,d=te.d.StiShowYAxis.Both,m=!0,c=!1){super(e,t,i,r,s,n,l,a,o,h,u,m,c),this.showYAxis=te.d.StiShowYAxis.Both,this.showYAxis=d}implements(){return e.implementsStiYAxis||(e.implementsStiYAxis=super.implements().concat([g,te.d.IStiYAxis,p,te.d.IStiAxis])),e.implementsStiYAxis}meta(){return this._hash||(this._hash=[...super.meta(),new b("ShowYAxis","",te.d.StiShowYAxis,te.d.StiShowYAxis.Both)])}get componentId(){return te.a.StiComponentId.StiYAxis}get propName(){return""}};te.d.StiYAxis=e}let H=J.Base.Meta.StiRemoveMeta,z=J.Base.Drawing.StiHorAlignment;{let e=class extends te.d.StiYAxis{constructor(e=new te.d.StiAxisLabels,t=new te.d.StiAxisRange,i=null,r=new te.d.StiAxisTicks,s=new te.d.StiAxisInteraction,n=te.d.StiArrowStyle.None,l=_.Solid,a=re.gray,o=1,h=!0,u=!0,d=!0,m=!1){super(e,t,i,r,s,n,l,a,o,h,u,te.d.StiShowYAxis.Both,d,m),this.visible=!1,this.labels.textAlignment=z.Left,this.core=new te.d.StiYRightAxisCoreXF(this)}implements(){return e.implementsStiYRightAxis||(e.implementsStiYRightAxis=super.implements().concat([g,te.d.IStiYAxis,p,te.d.IStiAxis,te.d.IStiYRightAxis])),e.implementsStiYRightAxis}meta(){return this._hash||(this._hash=[...super.meta(),new H("ShowYAxis"),new S("Visible")])}get componentId(){return te.a.StiComponentId.StiYRightAxis}};te.d.StiYRightAxis=e}{let e=class extends te.d.StiAxis{constructor(e=new te.d.StiAxisLabels,t=new te.d.StiAxisRange,i=null,r=new te.d.StiAxisTicks,s=new te.d.StiAxisInteraction,n=te.d.StiArrowStyle.None,l=_.Solid,a=re.gray,o=1,h=!0,u=!0,d=te.d.StiShowXAxis.Both,m=!1,c=!0,S=new te.d.StiAxisDateTimeStep,g=!1){super(e,t,i,r,s,n,l,a,o,h,u,c,g),this.showEdgeValues=!1,this.showXAxis=te.d.StiShowXAxis.Both,this.dateTimeStep=new te.d.StiAxisDateTimeStep,this.showXAxis=d,this.dateTimeStep=S,this.showEdgeValues=m}implements(){return e.implementsStiXAxis||(e.implementsStiXAxis=super.implements().concat([g,te.d.IStiAxis,te.d.IStiXAxis,p])),e.implementsStiXAxis}meta(){return this._hash||(this._hash=[...super.meta(),new S("ShowEdgeValues"),new b("ShowXAxis","",te.d.StiShowXAxis,te.d.StiShowXAxis.Both),new A("DateTimeStep")])}get componentId(){return te.a.StiComponentId.StiXAxis}get propName(){return""}};te.d.StiXAxis=e}{let e=class extends te.d.StiXAxis{constructor(e=new te.d.StiAxisLabels,t=new te.d.StiAxisRange,i=null,r=new te.d.StiAxisTicks,s=new te.d.StiAxisInteraction,n=te.d.StiArrowStyle.None,l=_.Solid,a=re.gray,o=1,h=!1,u=!0,d=te.d.StiShowXAxis.Both,m=!1,c=!0,S=!1){super(e,t,i,r,s,n,l,a,o,h,u,te.d.StiShowXAxis.Both,m,c,new te.d.StiAxisDateTimeStep,S),this.core=new te.d.StiXTopAxisCoreXF(this)}implements(){return e.implementsStiXTopAxis||(e.implementsStiXTopAxis=super.implements().concat([te.d.IStiXTopAxis,p,te.d.IStiAxis,te.d.IStiXAxis,g])),e.implementsStiXTopAxis}meta(){return this._hash||(this._hash=[...super.meta(),new H(["Range","ShowXAxis","DateTimeStep"]),new S("Visible")])}get componentId(){return te.a.StiComponentId.StiXTopAxis}};te.d.StiXTopAxis=e}{let e=class extends te.d.StiYAxis{constructor(e=new te.d.StiAxisLabels,t=new te.d.StiAxisRange,i=null,r=new te.d.StiAxisTicks,s=new te.d.StiAxisInteraction,n=te.d.StiArrowStyle.None,l=_.Solid,a=re.gray,o=1,h=!0,u=!0,d=te.d.StiShowYAxis.Both,m=!0,c=!1){super(e,t,i,r,s,n,l,a,o,h,u,d,m,c),this.core=new te.d.StiYLeftAxisCoreXF(this)}implements(){return e.implementsStiYLeftAxis||(e.implementsStiYLeftAxis=super.implements().concat([g,te.d.IStiYAxis,p,te.d.IStiAxis,te.d.IStiYLeftAxis])),e.implementsStiYLeftAxis}};te.d.StiYLeftAxis=e}{let e=class{constructor(e="",t="",i="",r=0,s=new B("Tahoma",8),n=!0,l=te.d.StiLabelsPlacement.OneLine,a=re.black,o=0,h=z.Right,u=0,d=!0,m=!1){this.allowApplyStyle=!0,this.format="",this.angle=0,this.width=0,this.textBefore="",this.textAfter="",this.font=new B("Tahoma",8),this.antialiasing=!0,this.placement=te.d.StiLabelsPlacement.OneLine,this.color=re.black,this.textAlignment=z.Right,this.step=0,this.wordWrap=!1,this.format=e,this.textBefore=t,this.textAfter=i,this.angle=r,this.font=s,this.antialiasing=n,this.placement=l,this.color=a,this.width=o,this.textAlignment=h,this.step=u,this.allowApplyStyle=d,this.wordWrap=m,this.core=new te.d.StiAxisLabelsCoreXF(this)}implements(){return e.implementsStiAxisLabels||(e.implementsStiAxisLabels=[g,te.d.IStiAxisLabels,p]),e.implementsStiAxisLabels}meta(){return this._hash||(this._hash=[new S("AllowApplyStyle","",!0),new T("Format"),new I("Angle"),new I("Width"),new T("TextBefore"),new T("TextAfter"),new k("Font","","Tahoma",8),new S("Antialiasing","",!0),new b("Placement","",te.d.StiLabelsPlacement,te.d.StiLabelsPlacement.OneLine),new c("Color","",re.black),new b("TextAlignment","",z,z.Right),new I("Step"),new S("WordWrap")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){let e=this.stimulsoft().memberwiseClone();return e.placement=this.placement,e.font=this.font.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.labels=e),e}};te.d.StiAxisLabels=e}{let e=class{constructor(e=!0,t=0,i=0){this.minimum=0,this.maximum=0,this.auto=!0,this.auto=e,this.minimum=t,this.maximum=i}implements(){return e.implementsStiAxisRange||(e.implementsStiAxisRange=[g,p,te.d.IStiAxisRange]),e.implementsStiAxisRange}meta(){return this._hash||(this._hash=[new I("Minimum"),new I("Maximum"),new S("Auto","",!0)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){return this.stimulsoft().memberwiseClone()}};te.d.StiAxisRange=e}{let e=class{constructor(e=!0,t=5,i=!1,r=2,s=4,n=0,l=5){this._lengthUnderLabels=5,this._length=5,this._minorLength=2,this._minorCount=4,this._step=0,this.minorVisible=!1,this.visible=!0,this.visible=e,this._length=t,this.minorVisible=i,this._minorLength=r,this._minorCount=s,this._step=n,this._lengthUnderLabels=l}implements(){return e.implementsStiAxisTicks||(e.implementsStiAxisTicks=[g,te.d.IStiAxisTicks,p]),e.implementsStiAxisTicks}meta(){return this._hash||(this._hash=[new I("LengthUnderLabels","_",5),new I("Length","_",5),new I("MinorLength","_",2),new I("MinorCount","_",4),new I("Step","_"),new S("MinorVisible"),new S("Visible","",!0)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){return this.stimulsoft().memberwiseClone()}get lengthUnderLabels(){return this._lengthUnderLabels}set lengthUnderLabels(e){0<e&&(this._lengthUnderLabels=e)}get length(){return this._length}set length(e){0<e&&(this._length=e)}get minorLength(){return this._minorLength}set minorLength(e){0<e&&(this._minorLength=e)}get minorCount(){return this._minorCount}set minorCount(e){0<=e&&(this._minorCount=e)}get step(){return this._step}set step(e){0<=e&&(this._step=e)}};te.d.StiAxisTicks=e}{let e=class{constructor(e=!1,t=!0){this.showScrollBar=!1,this.rangeScrollEnabled=!0,this.showScrollBar=e,this.rangeScrollEnabled=t}implements(){return e.implementsStiAxisInteraction||(e.implementsStiAxisInteraction=[g,te.d.IStiAxisInteraction,p]),e.implementsStiAxisInteraction}meta(){return this._hash||(this._hash=[new S("ShowScrollBar"),new S("RangeScrollEnabled","",!0)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){var e;return this.stimulsoft().memberwiseClone()}};te.d.StiAxisInteraction=e}{let e=class{constructor(e=te.d.StiTimeDateStep.None,t=1,i=!1){this.step=te.d.StiTimeDateStep.None,this.numberOfValues=1,this.interpolation=!1,this.step=e,this.numberOfValues=t,this.interpolation=i}implements(){return e.implementsStiAxisDateTimeStep||(e.implementsStiAxisDateTimeStep=[g,p,te.d.IStiAxisDateTimeStep,g]),e.implementsStiAxisDateTimeStep}meta(){return this._hash||(this._hash=[new b("Step","",te.d.StiTimeDateStep,te.d.StiTimeDateStep.None),new I("NumberOfValues","",1),new S("Interpolation")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){return this.stimulsoft().memberwiseClone()}};te.d.StiAxisDateTimeStep=e}{let e=class extends te.d.StiXAxis{constructor(e=new te.d.StiAxisLabels,t=new te.d.StiAxisRange,i=null,r=new te.d.StiAxisTicks,s=new te.d.StiAxisInteraction,n=te.d.StiArrowStyle.None,l=_.Solid,a=re.gray,o=1,h=!0,u=!0,d=te.d.StiShowXAxis.Both,m=!1,c=!0,S=new te.d.StiAxisDateTimeStep,g=!1){super(e,t,i,r,s,n,l,a,o,h,u,d,m,c,S,g),this.dateTimeStep=S,this.core=new te.d.StiXBottomAxisCoreXF(this)}implements(){return e.implementsStiXBottomAxis||(e.implementsStiXBottomAxis=super.implements().concat([g,te.d.IStiXAxis,p,te.d.IStiXBottomAxis,te.d.IStiAxis])),e.implementsStiXBottomAxis}};te.d.StiXBottomAxis=e}{let e=class{constructor(e=re.silver,t=_.Dot,i=!0,r=re.gainsboro,s=_.Dot,n=!1,l=0,a=!0){this.needSetAreaJsonPropertyInternal=!1,this._allowApplyStyle=!0,this.color=re.silver,this.minorColor=re.gainsboro,this.style=_.Dot,this.minorStyle=_.Dot,this.visible=!0,this.minorVisible=!1,this._minorCount=0,this.color=e,this.style=t,this.visible=i,this.minorColor=r,this.minorStyle=s,this.minorVisible=n,this._minorCount=l,this._allowApplyStyle=a,this.core=new te.d.StiGridLinesCoreXF(this)}implements(){return e.implementsStiGridLines||(e.implementsStiGridLines=[g,te.d.IStiGridLines,p]),e.implementsStiGridLines}meta(){return this._hash||(this._hash=[new S("AllowApplyStyle","_",!0),new c("Color","",re.silver),new c("MinorColor","",re.gainsboro),new b("Style","",_,_.Dot),new b("MinorStyle","",_,_.Dot),new S("Visible","",!0),new S("MinorVisible"),new I("MinorCount","_"),new S("Area","needSetAreaJsonPropertyInternal").get(()=>null!=this.area)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiGridLines}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return e.style=this.style,e.minorStyle=this.minorStyle,null!=this.core&&(e.core=this.core.clone(),e.core.gridLines=e),e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style)}get minorCount(){return this._minorCount}set minorCount(e){0<=e&&(this._minorCount=e)}};te.d.StiGridLines=e}{let e=class extends te.d.StiGridLines{constructor(e=re.silver,t=_.Dot,i=!0,r=re.gainsboro,s=_.Dot,n=!1,l=0,a=!0){super(e,t,i,r,s,n,l,a)}implements(){return e.implementsStiGridLinesVert||(e.implementsStiGridLinesVert=super.implements().concat([g,te.d.IStiGridLines,p,te.d.IStiGridLinesVert])),e.implementsStiGridLinesVert}};te.d.StiGridLinesVert=e}{let e=class extends te.d.StiGridLines{constructor(e=re.silver,t=_.Dot,i=!0,r=re.gainsboro,s=_.Dot,n=!1,l=0,a=!0){super(e,t,i,r,s,n,l,a)}implements(){return e.implementsStiGridLinesHor||(e.implementsStiGridLinesHor=super.implements().concat([g,te.d.IStiGridLines,te.d.IStiGridLinesHor,p])),e.implementsStiGridLinesHor}};te.d.StiGridLinesHor=e}{let e=class{constructor(e=new se(re.transparent),t=!0,i=!0){this.needSetAreaJsonPropertyInternal=!1,this._allowApplyStyle=!0,this.interlacedBrush=new se(re.transparent),this.visible=!0,this.interlacedBrush=e,this.visible=t,this._allowApplyStyle=i,this.core=new te.d.StiInterlacingCoreXF(this)}implements(){return e.implementsStiInterlacing||(e.implementsStiInterlacing=[te.d.IStiInterlacing,p,g]),e.implementsStiInterlacing}is(e){if(e instanceof J.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}meta(){return this._hash||(this._hash=[new S("AllowApplyStyle","_",!0),new m("InterlacedBrush"),new S("Visible","",!0),new S("Area","needSetAreaJsonPropertyInternal").get(()=>null!=this.area)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiInterlacing}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return e.interlacedBrush=this.interlacedBrush.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.interlacing=e),e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style)}};te.d.StiInterlacing=e}{let e=class extends te.d.StiInterlacing{constructor(e=new se(re.transparent),t=!0,i=!0){super(e,t,i)}implements(){return e.implementsStiInterlacingVert||(e.implementsStiInterlacingVert=super.implements().concat([te.d.IStiInterlacing,te.d.IStiInterlacingVert,p,g])),e.implementsStiInterlacingVert}};te.d.StiInterlacingVert=e}{let e=class extends te.d.StiInterlacing{constructor(e=new se(re.transparent),t=!0,i=!0){super(e,t,i)}implements(){return e.implementsStiInterlacingHor||(e.implementsStiInterlacingHor=super.implements().concat([te.d.IStiInterlacing,te.d.IStiInterlacingHor,g,p])),e.implementsStiInterlacingHor}};te.d.StiInterlacingHor=e}{let e=class extends te.d.StiArea{constructor(){super(),this.reverseHor=!1,this.reverseVert=!1,this.interlacingHor=new te.d.StiInterlacingHor,this.interlacingVert=new te.d.StiInterlacingVert,this.gridLinesHor=new te.d.StiGridLinesHor,this.gridLinesHorRight=new te.d.StiGridLinesHor,this.gridLinesVert=new te.d.StiGridLinesVert,this.gridLinesHorRight.visible=!1,this.xAxis=new te.d.StiXBottomAxis,this.yAxis=new te.d.StiYLeftAxis,this.xTopAxis=new te.d.StiXTopAxis,this.yRightAxis=new te.d.StiYRightAxis}implements(){return e.implementsStiAxisArea||(e.implementsStiAxisArea=super.implements().concat([g,te.d.IStiAxisArea,te.d.IStiArea,p])),e.implementsStiAxisArea}meta(){return this._hash||(this._hash=[...super.meta(),new A("InterlacingHor","_").set(e=>{this._interlacingHor.loadFromJsonObject(e.value),this._interlacingHor.needSetAreaJsonPropertyInternal&&(this._interlacingHor.needSetAreaJsonPropertyInternal=!1,this._interlacingHor.area=this)}).setXml(e=>{this._interlacingHor.loadFromXml(e),this._interlacingHor.area=this}),new A("InterlacingVert","_").set(e=>{this._interlacingVert.loadFromJsonObject(e.value),this._interlacingVert.needSetAreaJsonPropertyInternal&&(this._interlacingVert.needSetAreaJsonPropertyInternal=!1,this._interlacingVert.area=this)}).setXml(e=>{this._interlacingVert.loadFromXml(e),this._interlacingVert.area=this}),new A("GridLinesHor","_").set(e=>{this._gridLinesHor.loadFromJsonObject(e.value),this._gridLinesHor.needSetAreaJsonPropertyInternal&&(this._gridLinesHor.needSetAreaJsonPropertyInternal=!1,this._gridLinesHor.area=this)}).setXml(e=>{this._gridLinesHor.loadFromXml(e),this._gridLinesHor.area=this}),new A("GridLinesHorRight","_").set(e=>{this._gridLinesHorRight.loadFromJsonObject(e.value),this._gridLinesHorRight.needSetAreaJsonPropertyInternal&&(this._gridLinesHorRight.needSetAreaJsonPropertyInternal=!1,this._gridLinesHorRight.area=this)}).setXml(e=>{this._gridLinesHorRight.loadFromXml(e),this._gridLinesHorRight.area=this}),new A("GridLinesVert","_").set(e=>{this._gridLinesVert.loadFromJsonObject(e.value),this._gridLinesVert.needSetAreaJsonPropertyInternal&&(this._gridLinesVert.needSetAreaJsonPropertyInternal=!1,this._gridLinesVert.area=this)}).setXml(e=>{this._gridLinesVert.loadFromXml(e),this._gridLinesVert.area=this}),new A("YAxis","_"),new A("YRightAxis","_"),new A("XAxis","_"),new A("XTopAxis","_"),new S("ReverseHor"),new S("ReverseVert")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){let e=super.clone();return e.interlacingHor=this.interlacingHor.clone(),e.interlacingVert=this.interlacingVert.clone(),e.gridLinesHor=this.gridLinesHor.clone(),e.gridLinesHorRight=this.gridLinesHorRight.clone(),e.gridLinesVert=this.gridLinesVert.clone(),e.yAxis=this.yAxis.clone(),e.yRightAxis=this.yRightAxis.clone(),e.xAxis=this.xAxis.clone(),e.xTopAxis=this.xTopAxis.clone(),e}get axisCore(){return this.core}get interlacingHor(){return this._interlacingHor}set interlacingHor(e){this._interlacingHor=e,null!=this._interlacingHor&&(this._interlacingHor.area=this)}get interlacingVert(){return this._interlacingVert}set interlacingVert(e){this._interlacingVert=e,null!=this._interlacingVert&&(this._interlacingVert.area=this)}get gridLinesHor(){return this._gridLinesHor}set gridLinesHor(e){this._gridLinesHor=e,null!=this._gridLinesHor&&(this._gridLinesHor.area=this)}get gridLinesHorRight(){return this._gridLinesHorRight}set gridLinesHorRight(e){this._gridLinesHorRight=e,null!=this._gridLinesHorRight&&(this._gridLinesHorRight.area=this)}get gridLinesVert(){return this._gridLinesVert}set gridLinesVert(e){this._gridLinesVert=e,null!=this._gridLinesVert&&(this._gridLinesVert.area=this)}get yAxis(){return this._yAxis}set yAxis(e){this._yAxis=e,null!=this._yAxis&&(this._yAxis.area=this)}get yRightAxis(){return this._yRightAxis}set yRightAxis(e){this._yRightAxis=e,null!=this._yRightAxis&&(this._yRightAxis.area=this)}get xAxis(){return this._xAxis}set xAxis(e){this._xAxis=e,null!=this._xAxis&&(this._xAxis.area=this)}get xTopAxis(){return this._xTopAxis}set xTopAxis(e){this._xTopAxis=e,null!=this._xTopAxis&&(this._xTopAxis.area=this)}getDefaultSeriesLabelsType(){return te.d.StiCenterAxisLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiInsideBaseAxisLabels,te.d.StiInsideEndAxisLabels,te.d.StiCenterAxisLabels,te.d.StiOutsideBaseAxisLabels,te.d.StiOutsideEndAxisLabels,te.d.StiOutsideAxisLabels,te.d.StiLeftAxisLabels,te.d.StiValueAxisLabels,te.d.StiRightAxisLabels]}};te.d.StiAxisArea=e}{let e=class extends te.d.StiAxisArea{constructor(){super(),this.roundValues=!1,this.core=new te.d.StiClusteredColumnAreaCoreXF(this)}implements(){return e.implementsStiClusteredColumnArea||(e.implementsStiClusteredColumnArea=super.implements().concat([g,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,te.d.IStiRoundValuesArea,p,te.d.IStiArea])),e.implementsStiClusteredColumnArea}meta(){return this._hash||(this._hash=[...super.meta(),new S("RoundValues")])}get componentId(){return te.a.StiComponentId.StiClusteredColumnArea}getDefaultSeriesType(){return te.d.StiClusteredColumnSeries}getSeriesTypes(){return[te.d.StiClusteredColumnSeries,te.d.StiLineSeries,te.d.StiSteppedLineSeries,te.d.StiSplineSeries,te.d.StiAreaSeries,te.d.StiSteppedAreaSeries,te.d.StiSplineAreaSeries]}createNew(){return new e}};te.d.StiClusteredColumnArea=e}{let e=class extends E{constructor(){super(...arguments),this.chart=null}implements(){return e.implementsStiSeriesCollection||(e.implementsStiSeriesCollection=[g,te.d.IStiApplyStyle,te.d.IStiSeriesCollection]),e.implementsStiSeriesCollection}saveToJsonObject(e){if(0==this.list.length)return null;let t=new D,i=0;for(var r of this.list)t.addPropertyJObject(i.toString(),r.saveToJsonObject(e)),i++;return t}loadFromJsonObject(e){for(var s of e.properties()){let e=s.value,t=e.properties().firstOrDefault(e=>"Ident"==e.name).value.toString(),i=J["StiOptions"].Services.chartSeries.firstOrDefault(e=>e.stimulsoft().getType().stimulsoft().getTypeName()==t);if(null==i)throw Z.format("Type {0} is not found!",t);let r=i.createNew();r.chart=this.chart,this.list.push(r),r.loadFromJsonObject(s.value)}}loadFromXml(t,r){for(let e=0;e<t.childNodes.length;e++){let i=t.childNodes[e];if(null==i.attributes)continue;var s;if(null!=i.attributes.getNamedItem("type")){let e=i.attributes.getNamedItem("type").value;var n=e.split(".").pop();let t=new te.d[n];t.chart=r,this.list.push(t),t.loadFromXml(i)}}}applyStyle(e){if(null==e)return;let t=0;for(var i of this.list){var r=e.core.getColors(this.length,i.core.seriesColors);i.core.applyStyle(e,r[t++])}}getSeriesTitle(){var e=N.get("Chart","Series");let t=e,i=1,r=!0;while(r){t=e+" "+i.toString(),r=!1;for(var s of this.list)if(s.coreTitle==t){r=!0;break}i++}return t}add(e){null!=this.chart&&(Z.isNullOrEmpty(e.coreTitle)&&(e.coreTitle=this.getSeriesTitle()),e.chart=this.chart),super.add(e),this.invokeSeriesAdded(e)}insert(e,t){null!=this.chart&&(Z.isNullOrEmpty(t.coreTitle)&&(t.coreTitle=this.getSeriesTitle()),t.chart=this.chart),super.insert(e,t),this.invokeSeriesAdded(t)}remove(e){this.invokeSeriesRemoved(e),super.remove(e)}removeAt(e){var t=this.getByIndex(e);this.invokeSeriesRemoved(t),super.removeAt(e)}getByName(e){for(var t of this.list)if(t.coreTitle==e)return t;return null}setByName(t,i){for(let e=0;e<this.list.length;e++){var r;if(this.list[e].coreTitle==t)return void(this.list[e]=i)}this.add(i)}invokeSeriesAdded(e){null!=this.seriesAdded&&this.seriesAdded(e,t.empty)}invokeSeriesRemoved(e){null!=this.seriesRemoved&&this.seriesRemoved(e,t.empty)}};te.d.StiSeriesCollection=e}let j=J.System.Enum;{let e=class{constructor(e=K.Argument,t=C.String,i=w.EqualTo,r=""){this.condition=w.EqualTo,this.dataType=C.String,this.item=K.Argument,this._valueObj="",this.filters=null,this.item=e,this.dataType=t,this.condition=i,this._valueObj=r}implements(){return e.implementsStiChartFilter||(e.implementsStiChartFilter=[g,te.d.IStiChartFilter,p]),e.implementsStiChartFilter}meta(){return this._hash||(this._hash=[new i("Ident").get(()=>this.stimulsoft().getType().stimulsoft().getTypeName()),new b("Condition","",w,w.EqualTo),new b("DataType","",C,C.String),new b("Item","",K,K.Argument),new T("Value")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){return this.stimulsoft().memberwiseClone()}get index(){if(null==this.filters)return-1;var e;return this.filters.indexOf(this)}get value(){return this._valueObj}set value(e){this._valueObj=e}toString(){let e="";switch(this.condition){case w.EqualTo:e="=";break;case w.NotEqualTo:e="<>";break;case w.GreaterThan:e=">";break;case w.GreaterThanOrEqualTo:e=">=";break;case w.LessThan:e="<";break;case w.LessThanOrEqualTo:e="=<";break}let t=N.get("PropertyMain","Argument");switch(j.parse(K,t)){case K.Value:t=N.get("PropertyMain","Value");break;case K.ValueEnd:t=N.get("PropertyMain","Value");break}return Z.format("{0} {1} {2}",t,e,this.value)}};te.d.StiChartFilter=e}{let e=class extends te.d.StiChartFilter{constructor(e=re.white,t=K.Argument,i=C.String,r=w.EqualTo,s="",n,l){super(t,i,r,s),this.color=re.white,this.markerType=te.d.StiMarkerType.Circle,this.markerAngle=0,this.conditions=null,this.color=e,null!=n&&(this.markerType=n),null!=l&&(this.markerAngle=l)}implements(){return e.implementsStiChartCondition||(e.implementsStiChartCondition=super.implements().concat([te.d.IStiChartCondition,te.d.IStiChartFilter,g])),e.implementsStiChartCondition}meta(){return this._hash||(this._hash=[...super.meta(),new c("Color","",re.white),new b("MarkerType","",te.d.StiMarkerType,te.d.StiMarkerType.Circle),new I("MarkerAngle")])}clone(){return super.clone()}};te.d.StiChartCondition=e}let Y=J.System.Text.XMLConvert;{let i=class extends E{implements(){return i.implementsStiChartConditionsCollection||(i.implementsStiChartConditionsCollection=[g,p,te.d.IStiChartConditionsCollection]),i.implementsStiChartConditionsCollection}saveToJsonObject(e){if(0==this.list.length)return null;let t=new D,i=0;for(var r of this.list)t.addPropertyJObject(i.toString(),r.saveToJsonObject(e)),i++;return t}loadFromJsonObject(e){for(var t of e.properties()){let e=new te.d.StiChartCondition;e.loadFromJsonObject(t.value),this.list.push(e)}}loadFromXml(i){for(let e=0;e<i.childNodes.length;e++){let t=i.childNodes[e];if("value"==t.nodeName){var r=t.textContent.split(",");let e=r[3];"GreaterThen"==e?e="GreaterThan":"GreaterThenOrEqualTo"==e?e="GreaterThanOrEqualTo":"LessThen"==e?e="LessThan":"LessThenOrEqualTo"==e&&(e="LessThanOrEqualTo");var r=new te.d.StiChartCondition(J.System.Text.StiReportObjectStringConverter.convertStringToColor(r[0]),j.parse(K,r[1]),j.parse(C,r[2]),j.parse(w,e),Y.decodeName(r[4]));this.add(r)}}}clone(){let e=new i;for(var t of this.list)e.add(t.clone());return e}add(e){this.list.push(e),null==e.conditions&&(e.conditions=this)}};te.d.StiChartConditionsCollection=i}let W=J.Base.Meta.StiExpressionMeta,le=J.System.Globalization.CultureInfo,ae=J.System.Text.XMLConvert,oe=J.Base.StiJsonSaveMode,he=J.System.Text.StringBuilder,ue=J.Base.StiGuidUtils,de=J.Base.Drawing.StiGradientBrush,me=J.Base.Drawing.StiGlareBrush;{let s=class extends y{constructor(){super(),this.allowApplyStyle=!0,this.format="",this.sortBy=te.d.StiSeriesSortType.None,this.sortDirection=te.d.StiSeriesSortDirection.Ascending,this.showInLegend=!0,this._showSeriesLabels=te.d.StiShowSeriesLabels.FromChart,this.showShadow=!0,this.filterMode=q.And,this.filters=new te.d.StiChartFiltersCollection,this.conditions=new te.d.StiChartConditionsCollection,this.topN=new te.d.StiSeriesTopN,this.yAxis=te.d.StiSeriesYAxis.LeftYAxis,this.trendLines=new te.d.StiTrendLinesCollection,this.isTotalLabel=!1,this.valuesStart=[],this._values=[1,3,2],this.valueDataColumn="",this._arguments=[],this.argumentDataColumn="",this.autoSeriesTitleDataColumn="",this.autoSeriesKeyDataColumn="",this.autoSeriesColorDataColumn="",this._toolTips=[],this.toolTipDataColumn="",this._tags=[],this.tagDataColumn="",this._hyperlinks=[],this.hyperlinkDataColumn="",this.drillDownEnabled=!1,this.drillDownReport="",this.drillDownPageGuid=null,this.allowSeries=!0,this.allowSeriesElements=!0,this.isDashboard=!1,this.valueObj="",this.listOfValues="",this.argument="",this.listOfArguments="",this.titleValue=null,this.title="",this.toolTip="",this.listOfToolTips="",this.tag="",this.listOfTags="",this.hyperlink="",this.listOfHyperlinks="",this.seriesLabels=new te.d.StiCenterAxisLabels,this.interaction=new te.d.StiSeriesInteraction}implements(){return s.implementsStiSeries||(s.implementsStiSeries=super.implements().concat([g,p,te.d.IStiSeries,g])),s.implementsStiSeries}meta(){return this._hash||(this._hash=[...super.meta(),new i("Ident").get(()=>this.stimulsoft().getType().stimulsoft().getTypeName()),new S("AllowApplyStyle","",!0),new T("Format"),new b("SortBy","",te.d.StiSeriesSortType,te.d.StiSeriesSortType.None),new b("SortDirection","",te.d.StiSeriesSortDirection,te.d.StiSeriesSortDirection.Ascending),new S("ShowInLegend","",!0),new b("ShowSeriesLabels","_",te.d.StiShowSeriesLabels,te.d.StiShowSeriesLabels.FromChart),new S("ShowShadow","",!0),new b("FilterMode","",q,q.And),new A("Filters"),new A("Conditions"),new A("TopN"),new b("YAxis","",te.d.StiSeriesYAxis,te.d.StiSeriesYAxis.LeftYAxis),new A("SeriesLabels","_"),new A("TrendLines"),new T("ValueDataColumn"),new T("ArgumentDataColumn"),new T("AutoSeriesTitleDataColumn"),new T("AutoSeriesKeyDataColumn"),new T("AutoSeriesColorDataColumn"),new T("ToolTipDataColumn"),new T("TagDataColumn"),new T("HyperlinkDataColumn"),new S("DrillDownEnabled"),new T("DrillDownReport"),new T("DrillDownPageGuid"),new S("AllowSeries","",!0),new S("AllowSeriesElements","",!0),new A("Interaction"),new W("Value"),new W("ListOfValues"),new W("Argument"),new W("ListOfArguments"),new W("Title"),new W("ToolTip"),new W("ListOfToolTips"),new W("Tag"),new W("ListOfTags"),new W("Hyperlink"),new W("ListOfHyperlinks"),new T("ValuesString"),new T("ArgumentsString"),new T("ToolTipsString"),new T("TagString"),new T("HyperlinkString"),new T("TitleValue"),new c("LegendColor","",null),new T("ValuesString","",oe.Document),new T("ArgumentsString","",oe.Document),new T("ToolTipsString","",oe.Document),new T("TagString","",oe.Document),new T("HyperlinkString","",oe.Document),new T("TitleValue","",oe.Document),new c("LegendColor","",null,oe.Document)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiSeries}get propName(){return""}clone(){let e=super.clone();return e.title=this.title,e.values=this.values.stimulsoft().clone(),e.arguments=this.arguments.stimulsoft().clone(),e.tags=this.tags.stimulsoft().clone(),e.toolTips=this.toolTips.stimulsoft().clone(),e.hyperlinks=this.hyperlinks.stimulsoft().clone(),e.topN=this.topN.clone(),e.interaction=this.interaction.clone(),e.seriesLabels=this.seriesLabels.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.series=e),e}baseTransform(){}get parent(){return this.chart}get serviceName(){return this.core.localizedName}get serviceCategory(){return"Chart"}get serviceType(){return s}get showLabels(){return!0}set showLabels(e){e&&(this.showSeriesLabels=te.d.StiShowSeriesLabels.FromChart)}get showSeriesLabels(){return this._showSeriesLabels}set showSeriesLabels(e){this._showSeriesLabels=e==te.d.StiShowSeriesLabels.None?te.d.StiShowSeriesLabels.FromChart:e}get seriesLabels(){return this._seriesLabels}set seriesLabels(e){this._seriesLabels=e,this._seriesLabels.chart=this.chart}get trendLine(){if(null!=this.trendLines&&0<this.trendLines.count)return this.trendLines.getByIndex(0);return new te.d.StiTrendLineNone}set trendLine(e){e.is(te.d.StiTrendLineNone)||this.trendLines.insert(0,e)}get chart(){return this._chart}set chart(e){this._chart!=e&&null!=(this._chart=e)&&(this.seriesLabels.chart=e)}get values(){if(null==this.chart||null!=this.chart&&!this.chart.isDesigning||this.isDashboard)return this._values;var e=this.chart.series.indexOf(this);let i=[];var t=this.as(te.d.StiWaterfallSeries);i=null!=t?t.total.visible?[3,-1,2,4]:[3,-1,2]:this.is(te.d.IStiBoxAndWhiskerSeries)?[8,2,3,9,10]:this.is(te.d.IStiHistogramSeries)?[4,2,1]:Z.isNullOrEmpty(this.listOfValues)||this.listOfValues.stimulsoft().contains("{")?this.is(te.d.IStiSteppedRangeSeries)?[1+3*e,3+4*e,2+3*e,3+3*e,3+3*e]:this.is(te.d.IStiFunnelSeries)?[3,2,1]:this.is(te.d.IStiGanttSeries)?[1+3*e,3+4*e,7+3*e]:this.is(te.d.IStiScatterSeries)?[1+e,6+e,2+e]:this.is(te.d.IStiPieSeries)?0==e?[1,3,2]:[1+e,3+e,4+e]:this.is(te.d.StiRadarSeries)?[1+e,2+e,3+e,4+e,5+e]:0==e?this._values:[1+e,3+e,2.5+e]:s.getNullableValuesFromString(this,this.listOfValues);var r=this.getOffsetForValues();if(0!=r){let t=[];for(let e=0;e<i.length;e++)t[e]=i[e]+r;return t}return i}set values(t){var i;let r=[];for(let e=0;e<t.length;e++)e<this.values.length&&0<(null===(i=this.valuesStart)||void 0===i?void 0:i.length)?r[e]=this.values[e]:r[e]=0;this.valuesStart=r,this._values=t}get valuesString(){let e=new he,t=!0;for(var i of this._values)t?e.appendFormat("{0}",null==i?0:i):e.appendFormat(";{0}",null==i?0:i),t=!1;return e.toString()}set valuesString(e){if(null==e||0==e.trim().length)this._values=[];else{var e=e.split(";"),t;this._values=[];for(t of e)this._values.push(t.stimulsoft().toNumber())}}get arguments(){return this.getArguments()}set arguments(e){this.setArguments(e)}getArguments(){if(null==this.chart||!this.chart.isDesigning||this.isDashboard)return this._arguments;if(!Z.isNullOrEmpty(this.listOfArguments))return s.getArgumentsFromString(this.listOfArguments);var e=this.as(te.d.StiWaterfallSeries);if(null!=e&&(null==this._arguments||0==this._arguments.length))return e.total.visible?["A","B","C",e.total.text]:["A","B","C"];if(this.is(te.d.IStiHistogramSeries))return["[1, 2]","(2, 3]","(3, 4]"];if((this.is(te.d.IStiTreemapSeries)||this.is(te.d.IStiGanttSeries)||this.is(te.d.IStiRangeBarSeries)||this.is(te.d.IStiCandlestickSeries)||this.is(te.d.StiSunburstSeries))&&(null==this._arguments||0==this._arguments.length))return["A","B","C"];if((this.is(te.d.IStiScatterSeries)||this.is(te.d.IStiScatterLineSeries)||this.is(te.d.IStiScatterSplineSeries))&&(null==this._arguments||0==this._arguments.length))return["1","5","4"];return this._arguments}setArguments(e){this._arguments=e}get argumentsString(){let e=new he,t=!0;for(var i of this._arguments)null!=i&&(t?e.appendFormat("{0}",ae.encodeName(i.toString())):e.appendFormat(";{0}",ae.encodeName(i.toString())),t=!1);return e.toString()}set argumentsString(e){if(null==e||0==e.trim().length)this._arguments=[];else{var e=e.split(";"),t;this._arguments=[];for(t of e)this._arguments.push(ae.decodeName(t))}}get toolTips(){if((null!=this.chart&&this.chart.isDesigning||this.isDashboard)&&!Z.isNullOrEmpty(this.listOfToolTips))return s.getStringsFromString(this.listOfToolTips);return this._toolTips}set toolTips(e){this._toolTips=e}get toolTipsString(){let e=new he,t=!0;for(var i of this._toolTips)null!=i&&(t?e.appendFormat("{0}",ae.encodeName(i.toString())):e.appendFormat(";{0}",ae.encodeName(i.toString())),t=!1);return e.toString()}set toolTipsString(e){if(null==e||0==e.trim().length)this._toolTips=[];else{var e=e.split(";"),t;this._toolTips=[];for(t of e)this._toolTips.push(ae.decodeName(t))}}get tags(){if((null!=this.chart&&this.chart.isDesigning||this.isDashboard)&&!Z.isNullOrEmpty(this.listOfTags))return s.getArgumentsFromString(this.listOfTags);return this._tags}set tags(e){this._tags=e}get tagString(){let e=new he,t=!0;for(var i of this.tags)null!=i&&(t?e.appendFormat("{0}",ae.encodeName(i.toString())):e.appendFormat(";{0}",ae.encodeName(i.toString())),t=!1);return e.toString()}set tagString(e){if(null==e||0==e.trim().length)this._tags=[];else{var e=e.split(";"),t;this._tags=[];for(t of e)this._tags.push(ae.decodeName(t))}}get hyperlinks(){if((null!=this.chart&&this.chart.isDesigning||this.isDashboard)&&null!=this.listOfHyperlinks&&0<this.listOfHyperlinks.length)return s.getStringsFromString(this.listOfHyperlinks);return this._hyperlinks}set hyperlinks(e){this._hyperlinks=e}get hyperlinkString(){let e=new he,t=!0;for(var i of this._hyperlinks)null!=i&&(t?e.appendFormat("{0}",ae.encodeName(i.toString())):e.appendFormat(";{0}",ae.encodeName(i.toString())),t=!1);return e.toString()}set hyperlinkString(e){if(null==e||0==e.trim().length)this._hyperlinks=[];else{var e=e.split(";"),t;this._hyperlinks=[];for(t of e)this._hyperlinks.push(ae.decodeName(t))}}get drillDownPage(){if(null==this.chart||null==this.chart.report)return null;for(var e of this.chart.report.pages.list)if(e.guid==this.drillDownPageGuid)return e;return null}set drillDownPage(e){null==e?this.drillDownPageGuid=null:(null==e.guid&&(e.guid=ue.newGuid()),this.drillDownPageGuid=e.guid)}get coreTitle(){let e=null;return e=null!=this.chart&&this.chart.isDesigning?this.title:this.titleValue,null==e&&(e=""),e}set coreTitle(e){this.title=e,this.titleValue=e}get interaction(){return this._interaction}set interaction(e){this._interaction!=e&&null!=(this._interaction=e)&&(this._interaction.parentSeries=this)}processSeriesColors(e,t){for(var i of this.conditions.list)if(this.getConditionResult(e,i))return i.color;return t}processSeriesMarkerType(e,t){for(var i of this.conditions.list)if(this.getConditionResult(e,i))return i.markerType;return t}processSeriesMarkerAngle(e,t){for(var i of this.conditions.list)if(this.getConditionResult(e,i))return i.markerAngle;return t}processSeriesMarkerVisible(e){for(var t of this.conditions.list)if(this.getConditionResult(e,t))return!0;return!1}processSeriesBrushes(e,t){for(var i of this.conditions.list)if(this.getConditionResult(e,i))return t=this.allowApplyStyle&&null!=this.chart.style?this.chart.style.core.getColumnBrush(i.color):new se(i.color),this.chart.area.is(te.d.IStiClusteredBarArea)&&(t.is(de)&&(t.angle+=90),t.is(me)&&(t.angle+=90)),t;return t}getConditionResult(e,t){if((null==this.values||this.values.length<=e)&&!this.is(te.d.IStiFinancialSeries))return!1;let i=null,r=null,s=null,n=null,l=null,a=null,o=null;this.chart.area.is(te.d.IStiAxisArea)&&this.chart.area.reverseHor&&!this.chart.area.is(te.d.IStiClusteredBarArea)||this.chart.area.is(te.d.IStiClusteredBarArea)&&this.chart.area.reverseVert?(null!=this.values&&e<this.values.length&&(i=this.values[this.values.length-e-1]),this.is(te.d.IStiRangeSeries)&&e<this.valuesEnd.length&&(r=this.valuesEnd[this.valuesEnd.length-e-1]),this.is(te.d.IStiFinancialSeries)&&(e<this.valuesOpen.length&&(s=this.valuesOpen[this.valuesOpen.length-e-1]),e<this.valuesClose.length&&(n=this.valuesClose[this.valuesClose.length-e-1]),e<this.valuesLow.length&&(l=this.valuesLow[this.valuesLow.length-e-1]),e<this.valuesHigh.length&&(a=this.valuesHigh[this.valuesHigh.length-e-1])),null!=this.arguments&&e<this.arguments.length&&(o=this.arguments[this.arguments.length-e-1])):(null!=this.values&&e<this.values.length&&(i=this.values[e]),this.is(te.d.IStiRangeSeries)&&e<this.valuesEnd.length&&(r=this.valuesEnd[e]),this.is(te.d.IStiFinancialSeries)&&(e<this.valuesOpen.length&&(s=this.valuesOpen[e]),e<this.valuesClose.length&&(n=this.valuesClose[e]),e<this.valuesLow.length&&(l=this.valuesLow[e]),e<this.valuesHigh.length&&(a=this.valuesHigh[e])),null!=this.arguments&&e<this.arguments.length&&(o=this.arguments[e]));var e=te.d.StiChartHelper.getFilterData(null,t,null);return te.d.StiChartHelper.getFilterResult(t,o,i,r,s,n,l,a,e)}toString(){return this.serviceName}static tryParseValue(e,t,i){this.storedCulture=null;try{Z.isNullOrEmpty(t)||(this.storedCulture=le.currentCulture,le.currentCulture=le.cultures[t]);var r=f.tryParse(e);return i.ref=r.result,r.successfully}finally{null!=this.storedCulture&&(le.currentCulture=this.storedCulture)}}static getNullableValuesFromString(i,e){let r=[];var t,s;for(s of e.split(";"))if(null!=s&&0<s.trim().length){let t=0;try{t=s.stimulsoft().replaceAll(",",".").stimulsoft().toNumber()}catch(e){J.System.StiError.showError(e,!1)}var n=s.stimulsoft().toNumber();if(0<s.length&&!isNaN(n))t=n;else{let e=v.fromString(s,!1);null!=e&&(i.core.isDateTimeValues=!0,t=e.toOADate())}r.push(t)}return r.stimulsoft().toArray()}static getValuesFromString(e){let t=[];var i,r;for(r of e.split(";"))if(null!=r&&0<r.trim().length){let e=0;try{e=r.stimulsoft().replaceAll(",",".").stimulsoft().toNumber()}catch(e){J.System.StiError.showError(e,!1)}t.push(e)}return t.stimulsoft().toArray()}static getStringsFromString(e){let t=[];var i,r;for(r of e.split(";"))null!=r&&0<r.trim().length&&t.push(r);return t.stimulsoft().toArray()}static getArgumentsFromString(e){return e.split(";")}getOffsetForValues(){let e=0;var t=this.chart.area.as(te.d.StiAxisArea);return null==t||t.yAxis.range.auto||(e=t.yAxis.range.minimum),e}createNew(){return null}getDefaultAreaType(){return null}invokeNewAutoSeries(e){null!=this.newAutoSeries&&this.newAutoSeries(e.series,e)}onGetValue(e){}invokeGetValue(t,i){try{if(this.onGetValue(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSeriesValue**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.value,e);i.value=t.report.toString2(r)}null!=this.getValue&&this.getValue(t,i)}catch(e){J.System.StiError.showError(e.message,!1);var i=Z.format("Expression in GetValue property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),i),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetListOfValues(e){}invokeGetListOfValues(t,i,r){try{if(this.onGetListOfValues(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSeriesListOfValues**",e.page=t.report.pages.getByIndex(0);var s=te.a.Engine.StiParser.StiParser.parseTextValue(r.listOfValues,e);i.value=t.report.toString2(s)}null!=r.getListOfValues&&r.getListOfValues(t,i)}catch(e){J.System.StiError.showError(e.message,!1);var i=Z.format("Expression in GetListOfValues property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),i),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetArgument(e){}invokeGetArgument(t,i){try{if(this.onGetArgument(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSeriesArgument**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.argument,e);i.value=t.report.toString2(r)}null!=this.getArgument&&this.getArgument(t,i)}catch(e){J.System.StiError.showError(e.message,!1);var i=Z.format("Expression in getArgument property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),i),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetListOfArguments(e){}invokeGetListOfArguments(t,i){try{if(this.onGetListOfArguments(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSeriesListOfArguments**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.listOfArguments,e);i.value=t.report.toString2(r)}null!=this.getListOfArguments&&this.getListOfArguments(t,i)}catch(e){J.System.StiError.showError(e.message,!1);var i=Z.format("Expression in GetListOfArguments property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),i),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetTitle(e){}invokeGetTitle(t,i){try{if(this.onGetTitle(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSeriesTitle**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.title,e);i.value=t.report.toString2(r)}null!=this.getTitle&&this.getTitle(t,i)}catch(e){J.System.StiError.showError(e.message,!1);var i=Z.format("Expression in Title property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),i),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetToolTip(e){}invokeGetToolTip(e,t){try{this.onGetToolTip(t),null!=this.getToolTip&&this.getToolTip(e,t)}catch(e){J.System.StiError.showError(e.message,!1);var t=Z.format("Expression in GetToolTip property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),t),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetListOfToolTips(e){}invokeGetListOfToolTips(t,i){try{if(this.onGetListOfToolTips(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSeriesListOfToolTips**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.listOfToolTips,e);i.value=t.report.toString2(r)}null!=this.getListOfToolTips&&this.getListOfToolTips(t,i)}catch(e){J.System.StiError.showError(e.message,!1);var i=Z.format("Expression in GetListOfToolTips property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),i),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetTag(e){}invokeGetTag(e,t){try{this.onGetTag(t),null!=this.getTag&&this.getTag(e,t)}catch(e){J.System.StiError.showError(e.message,!1);var t=Z.format("Expression in GetTag property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),t),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetListOfTags(e){}invokeGetListOfTags(e,t){try{this.onGetListOfTags(t),null!=this.getListOfTags&&this.getListOfTags(e,t)}catch(e){J.System.StiError.showError(e.message,!1);var t=Z.format("Expression in GetListOfTags property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),t),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetHyperlink(e){}invokeGetHyperlink(e,t){try{this.onGetHyperlink(t),null!=this.getHyperlink&&this.getHyperlink(e,t)}catch(e){J.System.StiError.showError(e.message,!1);var t=Z.format("Expression in GetHyperlink property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),t),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetListOfHyperlinks(e){}invokeGetListOfHyperlinks(t,i){try{if(this.onGetListOfHyperlinks(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSeriesListOfHyperlinks**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.listOfHyperlinks,e);i.value=t.report.toString2(r)}null!=this.getListOfHyperlinks&&this.getListOfHyperlinks(t,i)}catch(e){J.System.StiError.showError(e.message,!1);var i=Z.format("Expression in GetListOfHyperlinks property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),i),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}get value(){return this.valueObj}set value(e){this.valueObj=e}};te.d.StiSeries=s}var ce=te.a.Engine.StiComponentInfo;{let e=class extends ce{constructor(){super(...arguments),this.storedForProcessAtEndChart=null,this.interactiveComps=null}implements(){return e.implementsStiChartInfo||(e.implementsStiChartInfo=[te.d.IStiChartInfo]),e.implementsStiChartInfo}};te.d.StiChartInfo=e}var ce=te.a.Styles.StiBaseStyle;let Se=te.a.Dashboard.StiElementStyleIdent;{let e=class extends ce{constructor(){super(...arguments),this.isOffice2015Style=!1,this.allowDashboard=!1,this.styleIdent=Se.Blue}implements(){return e.implementsStiChartStyle||(e.implementsStiChartStyle=super.implements().concat([g,te.d.IStiChartStyle,p])),e.implementsStiChartStyle}saveToJsonObject(e){let t=new D;return t.addPropertyStringNullOrEmpty("Ident",this.stimulsoft().getType().stimulsoft().getTypeName()),t}loadFromJsonObject(e){}static loadFromXml(t){if(null!=t.attributes.getNamedItem("type")){let e=t.attributes.getNamedItem("type").value;var t=e.split(".").pop();return new te.d[t]}return null}static loadFromJsonObjectInternal(e){let t=e.properties().firstOrDefault(e=>"Ident"==e.name).value.toString();if("StiCustomStyle"==t)return new te.d.StiCustomStyle;{let e=J["StiOptions"].Services.chartStyles.firstOrDefault(function(e){return e.stimulsoft().getType().stimulsoft().getTypeName()==t});if(null==e)throw Z.format("Type {0} is not found!",t);return e.createNew()}}get serviceName(){return this.core.localizedName}get serviceCategory(){return"Chart"}get serviceType(){return e}toString(){if(this.is(te.d.StiCustomStyle)&&null!=this.core.reportChartStyle)return this.core.reportChartStyle.name;return this.serviceName}compareChartStyle(e){if(null==e)return!1;var i=this.stimulsoft().as(te.d.StiCustomStyle),r=e.stimulsoft().as(te.d.StiCustomStyle);if(null!=i&&null!=r){let e=i.core.reportStyleName;null!=i.core.reportStyle&&(e=i.core.reportStyle.name);let t=r.core.reportStyleName;return null!=r.core.reportStyle&&(t=r.core.reportStyle.name),e==t}return this.stimulsoft().getType()==e.stimulsoft().getType()}createNew(){return null}};te.d.StiChartStyle=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.Green,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF25}get dashboardName(){return N.get("PropertyColor","Green")}createNew(){return new e}};te.d.StiStyle25=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.Blue,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF29}get dashboardName(){return N.get("PropertyColor","Blue")}createNew(){return new e}};te.d.StiStyle29=e}{let e=class{constructor(){this._allowApplyStyle=!0,this.chart=null,this.hideSeriesWithEmptyTitle=!1,this.showShadow=!0,this.borderColor=re.gray,this.brush=new se(re.white),this.titleColor=re.gray,this.labelsColor=re.gray,this.direction=te.d.StiLegendDirection.TopToBottom,this.horAlignment=te.d.StiLegendHorAlignment.Left,this.vertAlignment=te.d.StiLegendVertAlignment.Top,this.titleFont=new B("Arial",14,R.Bold),this.font=new B("Arial",8,R.Bold),this.visible=!0,this.markerVisible=!0,this.markerBorder=!0,this.markerSize=new G(10,10),this.markerAlignment=te.d.StiMarkerAlignment.Left,this.horSpacing=4,this.vertSpacing=2,this.title="",this._columns=0,this.size=new J.System.Drawing.Size(0,0),this.core=new te.d.StiLegendCoreXF(this)}implements(){return e.implementsStiLegend||(e.implementsStiLegend=[g,p,te.d.IStiLegend]),e.implementsStiLegend}meta(){return this._hash||(this._hash=[new S("AllowApplyStyle","_",!0),new S("HideSeriesWithEmptyTitle"),new S("ShowShadow","",!0),new c("BorderColor","",re.gray),new m(["Brush","bh"]),new c("TitleColor","",re.gray),new c("LabelsColor","",re.gray),new b("Direction","",te.d.StiLegendDirection,te.d.StiLegendDirection.TopToBottom),new b(["HorAlignment","ha"],"",te.d.StiLegendHorAlignment,te.d.StiLegendHorAlignment.Left),new b(["VertAlignment","va"],"",te.d.StiLegendVertAlignment,te.d.StiLegendVertAlignment.Top),new k("TitleFont","","Arial",14,R.Bold),new k(["Font","fn"],"","Arial",8),new S("Visible","",!0),new S("MarkerVisible","",!0),new S("MarkerBorder","",!0),new O("MarkerSize"),new b("MarkerAlignment","",te.d.StiMarkerAlignment,te.d.StiMarkerAlignment.Left),new I("Columns","_"),new I("HorSpacing","",4),new I("VertSpacing","",2),new O("Size"),new T("Title")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){this.showShadow=!0,d.loadFromJsonObject(e,this)}loadFromXml(e){this.showShadow=!0,d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiLegend}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return e.brush=this.brush.clone(),e.font=this.font.clone(),e.titleFont=this.titleFont.clone(),e.direction=this.direction,e.horAlignment=this.horAlignment,e.vertAlignment=this.vertAlignment,e.markerAlignment=this.markerAlignment,null!=this.core&&(e.core=this.core.clone(),e.core.legend=e),e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=Chart&&this.core.applyStyle(this.chart.style)}get columns(){return this._columns}set columns(e){0<=e&&(this._columns=e)}};te.d.StiLegend=e}let ge=te.d.StiChartEditorType,pe=J.Base.IStiGetFonts,fe=te.d.StiAxisArea,we=te.d.IStiAxisArea,xe=te.c.StiProcessChartEvent,Ce=te.d.StiSeriesLabels,ye=te.d.StiChartStyle,be=te.d.StiArea,Ae=J.Base.StiJsonReportObjectHelper,ve=te.d.StiChartConditionsCollection,Le=te.d.IStiChart,Te=te.d.IStiClusteredColumnArea,Ie=te.d.StiCenterAxisLabels,ke=te.d.StiChartCoreXF,Fe=te.d.StiChartInfo,Be=te.d.StiChartTitle,Re=te.d.StiChartTable,Pe=te.d.StiClusteredColumnArea,De=te.d.StiConstantLinesCollection,Me=te.d.StiLegend,Ne=te.d.StiRadarArea,Ee=te.d.StiSeries,Oe=te.d.StiStripsCollection,Ge=te.d.StiSeriesCollection,Ve=te.d.StiStyle29,Xe=te.d.StiChartHelper,_e=J.Base.StiActivator,He=te.e.StiImageRotation,ze=te.e.StiComponentPriority,je=te.e.StiComponentType,Ye=J.Base.Drawing.StiBorder,We=te.e.StiFilter,Je=te.e.StiFiltersCollection,Ze=J.Base.Drawing.StiBrush;var ce=te.e.StiComponent,ce;{let e=class extends ce{constructor(e=ne.empty){super(e),this.filterMode=q.And,this.filters=new Je,this.filterOn=!0,this.border=new Ye,this.brush=new se(re.transparent),this._sort=[],this._dataSourceName="",this._businessObjectGuid="",this.masterComponent=null,this.countData=0,this.isEofValue=!1,this.isBofValue=!1,this.isCacheValues=!1,this.cachedCount=0,this.cachedIsBusinessObjectEmpty=!1,this.cachedIsDataSourceEmpty=!1,this.cachedDataSource=null,this.cachedBusinessObject=null,this.dataRelationName="",this.processAtEnd=!1,this.defaultClientRectangle=new ne(0,0,200,200),this.processChartEvent=new xe,this.seriesLabelsConditions=new ve,this.rotation=He.None,this.editorType=ge.Advanced,this._style=new Ve,this._allowApplyStyle=!0,this.customStyleName="",this._horSpacing=10,this._vertSpacing=10,this.isAnimation=!0,this.isAnimationChangingValues=!0,this.chartInfo=new Fe,this._allowApplyStyle=J["StiOptions"].Engine.defaultValueOfAllowApplyStyleProperty,this.legend=new Me,this.series=new Ge,this.series.seriesAdded=this.series_SeriesAdded,this.series.seriesRemoved=this.series_SeriesRemoved,this.area=new Pe,this.seriesLabels=new Ie,this.constantLines=new De,this.strips=new Oe,this.title=new Be,this.table=new Re,this.previousAnimations=new P,this.core=new ke(this),this.core.applyStyle(this.style)}implements(){return e.implementsStiChart||(e.implementsStiChart=super.implements().concat([te.e.IStiBorder,te.e.IStiBusinessObject,te.e.IStiBrush,te.e.IStiDataSource,te.e.IStiDataRelation,te.e.IStiMasterComponent,te.e.IStiSort,te.e.IStiFilter,te.e.IStiExportImage,te.e.IStiExportImageExtended,te.a.IStiIgnoryStyle,te.a.IStiGlobalizationProvider,Le,g,pe])),e.implementsStiChart}saveToJsonObject(e){let t=super.saveToJsonObject(e);return t.removeProperty("CanShrink"),t.removeProperty("CanGrow"),t.addPropertyBool("AllowApplyStyle",this.allowApplyStyle,!0),t.addPropertyEnum("FilterMode",te.e.StiFilterMode,this.filterMode,te.e.StiFilterMode.And),t.addPropertyBool("FilterOn",this.filterOn,!0),t.addPropertyStringNullOrEmpty("Border",Ae.Serialize.jBorder(this.border)),t.addPropertyStringNullOrEmpty("Brush",Ae.Serialize.jBrush(this.brush)),t.addPropertyStringNullOrEmpty("DataSourceName",this.dataSourceName),t.addPropertyStringNullOrEmpty("BusinessObjectGuid",this.businessObjectGuid),t.addPropertyNumber("CountData",this.countData),t.addPropertyStringNullOrEmpty("DataRelationName",this.dataRelationName),t.addPropertyBool("ProcessAtEnd",this.processAtEnd),t.addPropertyJObject("ProcessChartEvent",this.processChartEvent.saveToJsonObject(e)),t.addPropertyEnum("Rotation",He,this.rotation,He.None),t.addPropertyEnum("EditorType",ge,this.editorType,ge.Advanced),t.addPropertyStringNullOrEmpty("CustomStyleName",this.customStyleName),t.addPropertyNumber("HorSpacing",this.horSpacing,10),t.addPropertyNumber("VertSpacing",this.vertSpacing,10),null!=this.masterComponent&&t.addPropertyStringNullOrEmpty("MasterComponent",this.masterComponent.name),t.addPropertyJObject("Series",this._series.saveToJsonObject(e)),t.addPropertyJObject("Area",this._area.saveToJsonObject(e)),t.addPropertyJObject("Table",this.table.saveToJsonObject(e)),t.addPropertyJObject("SeriesLabels",this.seriesLabels.saveToJsonObject(e)),t.addPropertyJObject("Legend",this.legend.saveToJsonObject(e)),t.addPropertyJObject("Title",this._title.saveToJsonObject(e)),t.addPropertyJObject("Strips",this.strips.saveToJsonObject(e)),t.addPropertyJObject("ConstantLines",this.constantLines.saveToJsonObject(e)),t.addPropertyJObject("Style",this.style.saveToJsonObject(e)),e==oe.Report&&(t.addPropertyJObject("Filters",this.filters.saveToJsonObject(e)),t.addPropertyJObject("Sort",Ae.Serialize.stringArray(this.sort)),t.addPropertyJObject("SeriesLabelsConditions",this.seriesLabelsConditions.saveToJsonObject(e))),t}loadFromJsonObject(e){super.loadFromJsonObject(e);for(var t of e.properties())switch(t.name){case"FilterMode":this.filterMode=j.parse(te.e.StiFilterMode,t.value.toString());break;case"Filters":this.filters.loadFromJsonObject(t.value);break;case"FilterOn":this.filterOn=t.value.stimulsoft().toBoolean();break;case"Border":case"br":this.border=Ae.Deserialize.border(t.value.toString());break;case"Brush":case"bh":this.brush=Ae.Deserialize.brush(t.value.toString());break;case"DataSourceName":this.dataSourceName=t.value.toString();break;case"BusinessObjectGuid":this.businessObjectGuid=t.value.toString();break;case"CountData":this.countData=t.value.stimulsoft().toNumber();break;case"DataRelationName":this.dataRelationName=t.value.toString();break;case"ProcessAtEnd":this.processAtEnd=t.value.stimulsoft().toBoolean();break;case"ProcessChartEvent":{let e=new xe;e.loadFromJsonObject(t.value),this.processChartEvent=e;break}case"SeriesLabelsConditions":this.seriesLabelsConditions.loadFromJsonObject(t.value);break;case"Rotation":this.rotation=j.parse(He,t.value.toString());break;case"EditorType":this.editorType=j.parse(ge,t.value.toString());break;case"AllowApplyStyle":this.allowApplyStyle=t.value.stimulsoft().toBoolean();break;case"CustomStyleName":this.customStyleName=t.value.toString();break;case"HorSpacing":this._horSpacing=t.value.stimulsoft().toNumber();break;case"VertSpacing":this._vertSpacing=t.value.stimulsoft().toNumber();break;case"MasterComponent":this.jsonMasterComponentTemp=t.value.toString(),this.report.jsonLoaderHelper&&this.report.jsonLoaderHelper.masterComponents.push(this);break;case"Style":this.style=ye.loadFromJsonObjectInternal(t.value);break;case"ConstantLines":this.constantLines.loadFromJsonObject(t.value);break;case"Strips":this.strips.loadFromJsonObject(t.value);break;case"Title":this.title.loadFromJsonObject(t.value);break;case"Legend":this.legend.loadFromJsonObject(t.value);break;case"SeriesLabels":this.seriesLabels=Ce.loadFromJsonObjectInternal(t.value,this);break;case"Table":this._table.loadFromJsonObject(t.value);break;case"Area":this._area=be.loadFromJsonObjectInternal(t.value),this._area.chart=this;break;case"Series":this._series.loadFromJsonObject(t.value);break}this.core.applyStyle(this.style)}loadFromXml(i){super.loadFromXml(i);let e=i.getAttribute("Ref");!Z.isNullOrEmpty(e)&&this.report.jsonLoaderHelper&&(this.report.jsonLoaderHelper.refNames[e.stimulsoft().toNumber()]=i.nodeName);for(let e=0;e<i.childNodes.length;e++){let t=i.childNodes[e];switch(t.nodeName){case"FilterMode":this.filterMode=j.parse(te.e.StiFilterMode,t.textContent);break;case"Filters":this.filters.loadFromXml(t);break;case"FilterOn":this.filterOn=t.textContent.stimulsoft().toBoolean();break;case"Border":case"br":this.border=Ye.loadFromXml(t.textContent);break;case"Brush":this.brush=Ze.loadFromXml(t.textContent);break;case"DataSourceName":this._dataSourceName=t.textContent;break;case"BusinessObjectGuid":this._businessObjectGuid=t.textContent;break;case"CountData":this.countData=t.textContent.stimulsoft().toNumber();break;case"DataRelationName":this.dataRelationName=t.textContent;break;case"ProcessAtEnd":this.processAtEnd=t.textContent.stimulsoft().toBoolean();break;case"ProcessChartEvent":{let e=new xe;e.script=t.textContent,this.processChartEvent=e;break}case"Rotation":this.rotation=j.parse(He,t.textContent);break;case"EditorType":this.editorType=j.parse(ge,t.textContent);break;case"AllowApplyStyle":this.allowApplyStyle=t.textContent.stimulsoft().toBoolean();break;case"CustomStyleName":this.customStyleName=t.textContent;break;case"HorSpacing":this._horSpacing=t.textContent.stimulsoft().toNumber();break;case"VertSpacing":this._vertSpacing=t.textContent.stimulsoft().toNumber();break;case"MasterComponent":this.jsonMasterComponentTemp=t.getAttribute("isRef"),this.report.jsonLoaderHelper&&this.report.jsonLoaderHelper.masterComponents.push(this);break;case"Style":var r=te.d.StiChartStyle.loadFromXml(t);null!=r&&(this.style=r);break;case"ConstantLines":this.constantLines.loadFromXml(t);break;case"Strips":this.strips.loadFromXml(t);break;case"Title":{let e=new te.d.StiChartTitle;e.loadFromXml(t),(e.chart=this).title=e;break}case"Legend":{let e=new te.d.StiLegend;e.loadFromXml(t),(e.chart=this).legend=e;break}case"Table":{let e=new te.d.StiChartTable;e.chart=this,e.loadFromXml(t),this._table=e;break}case"SeriesLabels":var r=te.d.StiSeriesLabels.loadLabelsFromXml(t,this);r&&(this.seriesLabels=r);break;case"Area":this._area=be.loadAreaFromXml(t,this);break;case"Series":this._series.loadFromXml(t,this);break;case"SeriesLabelsConditions":this.seriesLabelsConditions.loadFromXml(t);break}}this.core.applyStyle(this.style)}get componentId(){return te.a.StiComponentId.StiChart}convert(e,t,i=!1){super.convert(e,t,i),this.legend.size=t.convertSizeFromHInches(e.convertSizeToHInches(this.legend.size))}convertToHInches(e){return null!=this.report?this.report.unit.convertToHInches(e):e}setString(e,t){switch(e){case"Legend.Title":this.legend.title=t;break;case"SeriesLabels.TextBefore":this.seriesLabels.textBefore=t;break;case"SeriesLabels.TextAfter":this.seriesLabels.textAfter=t;break}let i=this.area.as(we);if(null!=i)switch(e){case"Area.XAxis.Labels.TextBefore":i.xAxis.labels.textBefore=t;break;case"Area.XAxis.Labels.TextAfter":i.xAxis.labels.textAfter=t;break;case"Area.XAxis.Title.Text":i.xAxis.title.text=t;break;case"Area.YAxis.Labels.TextBefore":i.yAxis.labels.textBefore=t;break;case"Area.YAxis.Labels.TextAfter":i.yAxis.labels.textAfter=t;break;case"Area.YAxis.Title.Text":i.yAxis.title.text=t;break;case"Area.XTopAxis.Labels.TextBefore":i.xTopAxis.labels.textBefore=t;break;case"Area.XTopAxis.Labels.TextAfter":i.xTopAxis.labels.textAfter=t;break;case"Area.XTopAxis.Title.Text":i.xTopAxis.title.text=t;break;case"Area.YRightAxis.Labels.TextBefore":i.yRightAxis.labels.textBefore=t;break;case"Area.YRightAxis.Labels.TextAfter":i.yRightAxis.labels.textAfter=t;break;case"Area.YRightAxis.Title.Text":i.yRightAxis.title.text=t;break}let r=0;for(var s of this.series.list){var n;e==Z.format("Series{0}.Title",r++)&&(s.coreTitle=t)}}getString(e){switch(e){case"Legend.Title":return this.legend.title;case"SeriesLabels.TextBefore":return this.seriesLabels.textBefore;case"SeriesLabels.TextAfter":return this.seriesLabels.textAfter}var t=this.area.as(we),i,r;if(null!=t)switch(e){case"Area.XAxis.Labels.TextBefore":return t.xAxis.labels.textBefore;case"Area.XAxis.Labels.TextAfter":return t.xAxis.labels.textAfter;case"Area.XAxis.Title.Text":return t.xAxis.title.text;case"Area.YAxis.Labels.TextBefore":return t.yAxis.labels.textBefore;case"Area.YAxis.Labels.TextAfter":return t.yAxis.labels.textAfter;case"Area.YAxis.Title.Text":return t.yAxis.title.text;case"Area.XTopAxis.Labels.TextBefore":return t.xTopAxis.labels.textBefore;case"Area.XTopAxis.Labels.TextAfter":return t.xTopAxis.labels.textAfter;case"Area.XTopAxis.Title.Text":return t.xTopAxis.title.text;case"Area.YRightAxis.Labels.TextBefore":return t.yRightAxis.labels.textBefore;case"Area.YRightAxis.Labels.TextAfter":return t.yRightAxis.labels.textAfter;case"Area.YRightAxis.Title.Text":return t.yRightAxis.title.text}let s=0;for(i of this.series.list){if(e==Z.format("Series{0}.Title",s++))return i.coreTitle}throw Z.format("Property with name {0}",e)}getAllStrings(){let t=[];t.push("Legend.Title"),t.push("SeriesLabels.TextBefore"),t.push("SeriesLabels.TextAfter"),this.area.is(we)&&(t.push("Area.XAxis.Labels.TextBefore"),t.push("Area.XAxis.Labels.TextAfter"),t.push("Area.XAxis.Title.Text"),t.push("Area.YAxis.Labels.TextBefore"),t.push("Area.YAxis.Labels.TextAfter"),t.push("Area.YAxis.Title.Text"),t.push("Area.XTopAxis.Labels.TextBefore"),t.push("Area.XTopAxis.Labels.TextAfter"),t.push("Area.XTopAxis.Title.Text"),t.push("Area.YRightAxis.Labels.TextBefore"),t.push("Area.YRightAxis.Labels.TextAfter"),t.push("Area.YRightAxis.Title.Text"));for(let e=0;e<this.series.count;e++)t.push(Z.format("Series{0}.Title",e));return t}clone(){let t=super.clone();t.chartInfo=this.chartInfo.clone(),t.brush=this.brush.clone(),t.border=this.border.clone(),null!=this.sort?t.sort=this.sort.stimulsoft().clone():t.sort=null,null!=this.filters?t.filters=this.filters.clone():t.filters=null,null!=t.title&&(t.title=this.title.clone()),null!=t.area&&(t.area=this.area.clone()),null!=t.seriesLabels&&(t.seriesLabels=this.seriesLabels.clone()),null!=t.legend&&(t.legend=this.legend.clone()),null!=t.table&&(t.table=this.table.clone()),t.series=new Ge,t.series.seriesAdded=this.series_SeriesAdded,t.series.seriesRemoved=this.series_SeriesRemoved;for(var i of this.series.list){let e=i.clone();var i=e.title;t.series.add(e),e.title=i}t.constantLines=new De;for(var e of this.constantLines.list)t.constantLines.add(e.clone());t.strips=new Oe;for(var r of this.strips.list)t.strips.add(r.clone());return null!=t.core&&(t.core=this.core.clone(),t.core.chart=t),t}saveState(e){super.saveState(e),this.states.pushInt(e,this,"positionValue",this.positionValue),this.states.pushBool(e,this,"isEofValue",this.isEofValue),this.states.pushBool(e,this,"isBofValue",this.isBofValue),null!=this.dataSource&&this.dataSource.saveState(e)}restoreState(e){super.restoreState(e),this.states.isExist(e,this)&&(this.isBofValue=this.states.popBool(e,this,"isBofValue"),this.isEofValue=this.states.popBool(e,this,"isEofValue"),this.positionValue=this.states.popInt(e,this,"positionValue")),null!=this.dataSource&&this.dataSource.restoreState(e)}getImage(e,t=te.a.StiExportFormat.None){if(null!=this.report&&null!=this.report.preparedExportImages){var i=this.report.preparedExportImages.get(this);if(null!=i)return i}let r=new te.a.Export.StiSvgData;return r.component=this,r.x=0,r.y=0,r.width=this.report.unit.convertToHInches(this.width),r.height=this.report.unit.convertToHInches(this.height),te.a.Export.StiChartSvgHelper.getImage(r)}isExportAsImage(e){if(e==te.a.StiExportFormat.Pdf)return!1;if(e==te.a.StiExportFormat.ImageSvg)return!1;return!0}get filter(){return 0==this.filters.count&&this.filters.add(new We),this.filters.getByIndex(0).item=te.e.StiFilterItem.Expression,this.filters.getByIndex(0).expression}set filter(e){0==this.filters.count&&this.filters.add(new We),this.filters.getByIndex(0).item=te.e.StiFilterItem.Expression,this.filters.getByIndex(0).expression=e}get sort(){return this._sort}set sort(e){this._sort=e}get dataSource(){if(this.isCacheValues)return this.cachedDataSource;if(null==this.page||null==this.report||null==this.report.dataSources||null==this.dataSourceName||0==this.dataSourceName.length)return null;return this.report.dataSources.getByName(this.dataSourceName)}get dataSourceName(){return this._dataSourceName}set dataSourceName(e){this._dataSourceName!=e&&(this._dataSourceName=e)}get isDataSourceEmpty(){if(this.isCacheValues)return this.cachedIsDataSourceEmpty;return Z.isNullOrEmpty(this.dataSourceName)||null==this.dataSource}get isBusinessObjectEmpty(){if(this.isCacheValues)return this.cachedIsBusinessObjectEmpty;return Z.isNullOrEmpty(this.businessObjectGuid)||null==this.businessObject}get businessObject(){if(this.isCacheValues)return this.cachedBusinessObject;if(null==this.page||null==this.report||null==this.businessObjectGuid||0==this.businessObjectGuid.length)return null;return te.a.Dictionary.StiBusinessObjectHelper.getBusinessObjectFromGuid(this.report,this.businessObjectGuid)}get businessObjectGuid(){return this._businessObjectGuid}set businessObjectGuid(e){this._businessObjectGuid!=e&&(this._businessObjectGuid=e,Z.isNullOrEmpty(e)||(this.dataSourceName=null))}first(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isEofValue=!1,this.isBofValue=!0,this.positionValue=0):this.dataSource.first():this.businessObject.first()}prior(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isBofValue=!1,this.isEofValue=!1,this.positionValue<=0?this.isBofValue=!0:this.positionValue--):this.dataSource.prior():this.businessObject.prior()}next(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isBofValue=!1,this.isEofValue=!1,this.positionValue>=this.countData-1?this.isEofValue=!0:this.positionValue++):this.dataSource.next():this.businessObject.next()}last(){this.isBusinessObjectEmpty?this.isDataSourceEmpty?(this.isEofValue=!0,this.isBofValue=!1,this.positionValue=this.countData-1):this.dataSource.last():this.businessObject.last()}get isEof(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isEofValue:this.dataSource.isEof:this.businessObject.isEof}set isEof(e){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isEofValue=e:this.dataSource.isEof=e:this.businessObject.isEof=e}get isBof(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isBofValue:this.dataSource.isBof:this.businessObject.isBof}set isBof(e){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.isBofValue=e:this.dataSource.isBof=e:this.businessObject.isBof=e}get isEmpty(){return this.isBusinessObjectEmpty?this.isDataSourceEmpty?0==this.countData:this.dataSource.isEmpty:this.businessObject.isEmpty}get position(){if(!this.isBusinessObjectEmpty)return this.businessObject.position;if(!this.isDataSourceEmpty)return this.dataSource.position;return this.positionValue}set position(e){this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.positionValue=e:this.dataSource.position=e:this.businessObject.position=e}get count(){if(this.isCacheValues)return this.cachedCount;return this.isBusinessObjectEmpty?this.isDataSourceEmpty?this.countData:this.dataSource.count:this.businessObject.count}cacheValues(e){e?(this.cachedCount=this.count,this.cachedIsBusinessObjectEmpty=this.isBusinessObjectEmpty,this.cachedIsDataSourceEmpty=this.isDataSourceEmpty,this.cachedDataSource=this.dataSource,this.cachedBusinessObject=this.businessObject):(this.cachedDataSource=null,this.cachedBusinessObject=null),this.isCacheValues=e}get dataRelation(){if(null==this.page||null==this.report||null==this.report.dictionary||null==this.report.dictionary.relations||null==this.dataRelationName||0==this.dataRelationName.length)return null;return this.report.dictionary.relations.getByName(this.dataRelationName)}getFonts(){let e=super.getFonts();e.push(this.title.font),e.push(this.legend.font),e.push(this.table.dataCells.font),e.push(this.table.header.font);for(var t of this.constantLines.list)e.push(t.font);for(var i of this.strips.list)e.push(i.font);var r=this.area.as(fe);null!=r&&(e.push(r.xAxis.labels.font),e.push(r.xAxis.title.font),e.push(r.yAxis.labels.font),e.push(r.yAxis.title.font),e.push(r.xTopAxis.labels.font),e.push(r.xTopAxis.title.font),e.push(r.yRightAxis.labels.font),e.push(r.yRightAxis.title.font));var r=this.area.as(Ne),s;null!=r&&(e.push(r.xAxis.labels.font),e.push(r.yAxis.labels.font));for(s of this.series.list){var n=s.as(Ee);if(null!=n){for(var l of n.trendLines.list)e.push(l.font);null!=n.seriesLabels&&e.push(n.seriesLabels.font)}s.is(te.d.StiPictorialSeries)}return ie.distinct(e)}get priority(){return ze.Component}get localizedCategory(){return N.get("Report","Components")}get componentType(){return je.Simple}get localizedName(){return N.get("Components","StiChart")}invokeEvents(){try{super.invokeEvents(),this.invokeProcessChart(this,t.empty)}catch(e){te.a.StiLogService.write(this.stimulsoft().getType(),"DoEvents...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onProcessChart(e){}invokeProcessChart(e,t){try{this.onProcessChart(t)}catch(e){te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeProcessChart...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}series_SeriesAdded(e){let t=e,i=t.chart;null!=i.area&&i.area.core.isAcceptableSeries(t.stimulsoft().getType())||(i.area=_e.createObject(t.getDefaultAreaType()),null!=i.seriesLabels&&i.area.core.isAcceptableSeriesLabels(i.seriesLabels.stimulsoft().getType())||(i.seriesLabels=_e.createObject(i.area.getDefaultSeriesLabelsType()))),i.allowApplyStyle&&i.core.applyStyle(i.style)}series_SeriesRemoved(e){var t;let i=e.chart;if(0==i.series.count)return void(i.area.is(Te)||(i.area=new Pe,i.area.core.applyStyle(this.style)));if(null!=i.area){var r=i.area.stimulsoft().getType(),s,n;for(s of i.series.list){if(s.getDefaultAreaType()==r)return}}i.area=_e.createObject(i.series.getByIndex(0).getDefaultAreaType()),this.allowApplyStyle&&this.core.applyStyle(i.style)}get chartType(){return this.area}set chartType(e){this.area=e}createNew(){return new e}applyStyle(){this.allowApplyStyle&&this.core.applyStyle(this.style)}simplifyValues(){let e=0;while(e<this.series.count){let t=this.series.getByIndex(e);if(3e3<t.values.length){var i=Xe.getShorterListPoints(t);t.values=[],t.arguments=[];for(let e=1;e<i.length;e++)t.values[e]=i[e].x,t.arguments[e]=i[e].y}e++}}get series(){return this._series}set series(e){this._series=e,this._series.chart=this}get area(){return this._area}set area(e){this._area!=e&&(e.is(Ne)&&(this._area=e),null!=(this._area=e)?this._area.chart=this:this._area=null)}get table(){return this._table}set table(e){this._table!=e&&(this._table=e,this._table.chart=this)}get style(){return this._style}set style(e){this._style!=e&&null!=(this._style=e)&&(e.core.chart=this)}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&this.core.applyStyle(this.style)}get horSpacing(){return this._horSpacing}set horSpacing(e){0<=e&&(this._horSpacing=e)}get vertSpacing(){return this._vertSpacing}set vertSpacing(e){0<=e&&(this._vertSpacing=e)}get seriesLabels(){return this._seriesLabels}set seriesLabels(e){null!=(this._seriesLabels=e)&&(this._seriesLabels.chart=this)}get labels(){return this._seriesLabels}set labels(e){this._seriesLabels=e}get legend(){return this._legend}set legend(e){if(null==e)throw new Error("new NullReferenceException()");this._legend=e,this._legend.chart=this}get title(){return this._title}set title(e){this._title!=e&&(this._title=e,this._title.chart=this)}get strips(){return this._strips}set strips(e){this._strips=e,this._strips.chart=this}get constantLines(){return this._constantLines}set constantLines(e){this._constantLines=e,this._constantLines.chart=this}};te.e.StiChart=e}{let t=class{static get oldChartPercentMode(){return t._oldChartPercentMode}static set oldChartPercentMode(e){t._oldChartPercentMode=e}};t._oldChartPercentMode=!1,te.d.StiChartOptions=t}te.d.StiInteractionOptions=class{constructor(){this.updateContext=!1,this.recallEvent=!1,this.recallTime=U.zero,this.isRecalled=!1,this.mousePoint=ee.empty,this.dragEnabled=!1,this.dragDelta=G.empty,this.interactionToolTip=null,this.interactionHyperlink=null,this.seriesInteractionData=null}};{let l;(ce=l=l||{})[ce["Left"]=0]="Left",ce[ce["Right"]=1]="Right",ce[ce["Beyond"]=2]="Beyond",ce[ce["Behind"]=3]="Behind",ce[ce["Between"]=4]="Between",ce[ce["Origin"]=5]="Origin",ce[ce["Destination"]=6]="Destination";let s=class{static getPointClassify(e,t,i){var r=new ee(i.x-t.x,i.y-t.y),s=new ee(e.x-t.x,e.y-t.y),n=r.x*s.y-s.x*r.y;if(0<n)return l.Left;if(n<0)return l.Right;if(r.x*s.x<0||r.y*s.y<0)return l.Behind;if(Math.sqrt(r.x*r.x+r.y*r.y)<Math.sqrt(s.x*s.x+s.y*s.y))return l.Beyond;if(t.equals(e))return l.Origin;if(i.equals(e))return l.Destination;return l.Between}static isPointInTriangle(e,t,i,r){return s.getPointClassify(e,t,i)!=l.Left&&s.getPointClassify(e,i,r)!=l.Left&&s.getPointClassify(e,r,t)!=l.Left}static isPointInPolygon(t,i){for(let e=0;e<i.length;e++)if(s.getPointClassify(t,i[e],e+1<i.length?i[e+1]:i[0])==l.Left)return!1;return!0}static getLineOffsetRectangle(e,t,i){var r=Math.atan2(t.y-e.y,t.x-e.x),i=i/2;let s=ie.create(ee,4,!0);return s[0]=new ee(e.x+i*Math.cos(r+.5*Math.PI),e.y+i*Math.sin(r+.5*Math.PI)),s[1]=new ee(t.x+i*Math.cos(r+.5*Math.PI),t.y+i*Math.sin(r+.5*Math.PI)),s[2]=new ee(t.x+i*Math.cos(r+1.5*Math.PI),t.y+i*Math.sin(r+1.5*Math.PI)),s[3]=new ee(e.x+i*Math.cos(r+1.5*Math.PI),e.y+i*Math.sin(r+1.5*Math.PI)),s}static isLineContainsPoint(e,t,i,r){var i=this.getLineOffsetRectangle(e,t,i);return s.isPointInPolygon(r,i)}static optimizePoints(t){if(t.length<800)return t;var i=1;let r=0;var s=0;let n=0,l=0,a=[];while(r<t.length){if(null==t[r]){while(r<t.length&&null==t[r])r++;a.push(null);continue}var o=t[r];if(r++,r<t.length&&null!=t[r]&&null!=t[r]&&t[r].x-o.x<i){s=o.x,n=o.y,l=o.y;var h=o.y;let e=o.y;while(r<t.length&&null!=t[r]&&null!=t[r]&&t[r].x-s<i)n=Math.min(n,t[r].y),l=Math.max(l,t[r].y),e=t[r].y,r++;e>h?(a.push(new ee(s,n)),a.push(new ee(s+i/2,l))):(a.push(new ee(s,l)),a.push(new ee(s+i/2,n)))}else a.push(o)}return a.stimulsoft().toArray()}};te.d.StiPointHelper=s}{let d=class{static getSquareDistance(e,t){var i=e.x-t.x,t=e.y-t.y;return i*i+t*t}static getSquareSegmentDistance(e,t,i){let r=t.x,s=t.y,n=i.x-r,l=i.y-s;var t;return 0===n&&0===l||(1<(t=((e.x-r)*n+(e.y-s)*l)/(n*n+l*l))?(r=i.x,s=i.y):0<t&&(r+=n*t,s+=l*t)),n=e.x-r,l=e.y-s,n*n+l*l}static simplifyRadialDistance(t,i){let r=t[0],s=[];s.push(r);let n=new ee;for(let e=1;e<t.length;e++)n=t[e],d.getSquareDistance(n,r)>i&&(s.push(n),r=n);return r!=n&&s.push(n),s}static simplifyDouglasPeucker(i,e){var t=i.length,r;let s=ie.create(Number,t),n=0,l=t-1,a=0,o=[],h=[];s[n]=s[l]=1;while(null!=l){let t=0;for(let e=n+1;e<l;e++){var u=d.getSquareSegmentDistance(i[e],i[n],i[l]);u>t&&(a=e,t=u)}t>e&&(s[a]=1,r=[n,a,a,l],o.stimulsoft().addRange(r)),0<o.length?(l=o[o.length-1],o.stimulsoft().removeAt(o.length-1)):l=null,0<o.length?(n=o[o.length-1],o.stimulsoft().removeAt(o.length-1)):n=null}for(let e=0;e<t;e++)0!=s[e]&&h.push(i[e]);return h}static simplify(e,t,i){if(null==e||0==e.length)return[];var t=t*t;if(i)return d.simplifyDouglasPeucker(e,t);var e=d.simplifyRadialDistance(e,t);return d.simplifyDouglasPeucker(e,t)}};te.d.StiSimplifyHelper=d}{let e=class{constructor(e){this.area=e}implements(){return e.implementsStiAreaCoreXF||(e.implementsStiAreaCoreXF=[p,te.d.IStiApplyStyle,te.d.IStiAreaCoreXF]),e.implementsStiAreaCoreXF}is(e){if(e instanceof J.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.area.allowApplyStyle&&(this.area.brush=e.core.chartAreaBrush,this.area.borderColor=e.core.chartAreaBorderColor,this.area.showShadow=e.core.chartAreaShowShadow)}render(e,t){return null}prepareInfo(e){}checkInLabelsTypes(e){var t,i;for(i of this.area.getSeriesLabelsTypes())if(i.stimulsoft().getType().stimulsoft().getTypeName()==e.stimulsoft().getType().stimulsoft().getTypeName())return!0;return!1}getSeries(){let e=new Q;var t,i,r;for(i of this.area.getSeriesTypes())e.set(i,i);let s=[];for(r of this.area.chart.series.list){if(null==e.get(r.stimulsoft().getType()))continue;s.push(r)}return s}isAcceptableSeries(e){var t,i;for(i of this.area.getSeriesTypes())if(i==e)return!0;return!1}isAcceptableSeriesLabels(e){var t,i;for(i of this.area.getSeriesLabelsTypes())if(i==e)return!0;return!1}get localizedName(){return null}get seriesOrientation(){return te.d.StiChartSeriesOrientation.Vertical}get position(){return null}};te.d.StiAreaCoreXF=e}let qe=J.Base.Drawing.StiColorUtils,$e=te.d.StiShowEmptyCellsAs;{let e=class extends te.d.StiSeries{constructor(){super(),this.showNulls=!0,this.showZeros=!0,this.marker=new te.d.StiMarker,this.lineMarker=new te.d.StiLineMarker,this._lineColor=re.black,this.lineStyle=_.Solid,this.lighting=!0,this._lineWidth=2,this.labelsOffset=0,this.lineColorNegative=re.firebrick,this.allowApplyColorNegative=!1,this.showNullsAs=$e.Gap,this.showZerosAs=$e.Gap,this.seriesLabels=new te.d.StiOutsideEndAxisLabels}implements(){return e.implementsStiBaseLineSeries||(e.implementsStiBaseLineSeries=super.implements().concat([g,te.d.IStiBaseLineSeries,p,te.d.IStiSeries,te.d.IStiAllowApplyColorNegative,te.d.IStiShowNullsSeries,te.d.IStiShowZerosSeries])),e.implementsStiBaseLineSeries}meta(){return this._hash||(this._hash=[...super.meta(),new S("ShowZeros","",!0),new S("ShowNulls","",!0),new A("Marker"),new A("LineMarker"),new c("LineColor","",re.black),new b("LineStyle","",_,_.Solid),new S("Lighting","",!0),new I("LineWidth","",2),new I("LabelsOffset"),new c("LineColorNegative","",re.firebrick),new S("AllowApplyColorNegative"),new b("ShowNullsAs","",$e,$e.Gap),new b("ShowZerosAs","",$e,$e.Gap)])}clone(){let e=super.clone();return e.marker=this.marker.clone(),e.lineStyle=this.lineStyle,e}get showMarker(){return this.marker.visible}set showMarker(e){this.marker.visible=e}get markerColor(){return Ze.toColor(this.marker.brush)}set markerColor(e){this.marker.brush=new se(e),this.marker.borderColor=qe.dark(e,50)}get markerSize(){return this.marker.size}set markerSize(e){this.marker.size=e}get markerType(){return this.marker.type}set markerType(e){this.marker.type=e}get lineColor(){return this.getLineColor()}set lineColor(e){this.setLineColor(e)}getLineColor(){return this._lineColor}setLineColor(e){this._lineColor=e}get lineWidth(){return this._lineWidth}set lineWidth(e){0<e&&(this._lineWidth=e)}};te.d.StiBaseLineSeries=e}{let e=class extends te.d.StiBaseLineSeries{constructor(){super(),this.core=new te.d.StiScatterSeriesCoreXF(this)}implements(){return e.implementsStiScatterSeries||(e.implementsStiScatterSeries=super.implements().concat([g,te.d.IStiBaseLineSeries,te.d.IStiSeries,p,te.d.IStiScatterSeries,te.d.IStiAllowApplyColorNegative])),e.implementsStiScatterSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("LineColorNegative")])}get componentId(){return te.a.StiComponentId.StiScatterSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiScatterArea}getLineColor(){if(this.stimulsoft().getType()==e){if(this.marker.brush.is(se))return this.marker.brush.color;if(this.marker.brush.is(de))return this.marker.brush.startColor}return super.getLineColor()}setLineColor(e){super.setLineColor(e)}createNew(){return new e}};te.d.StiScatterSeries=e}{let e=class extends te.d.StiScatterSeries{constructor(){super(),this.core=new te.d.StiScatterLineSeriesCoreXF(this)}implements(){return e.implementsStiScatterLineSeries||(e.implementsStiScatterLineSeries=super.implements().concat([te.d.IStiScatterLineSeries,te.d.IStiBaseLineSeries,te.d.IStiScatterSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyColorNegative])),e.implementsStiScatterLineSeries}get componentId(){return te.a.StiComponentId.StiScatterLineSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiScatterArea}createNew(){return new e}};te.d.StiScatterLineSeries=e}{let h=class extends te.d.StiAreaCoreXF{constructor(e){super(e),this.valuesCount=0,this._scrollRangeX=0,this._scrollRangeY=0,this._scrollViewX=0,this._scrollViewY=0,this.blockScrollValueX=!1,this.blockScrollValueY=!1,this.scrollValueX=0,this.scrollValueY=0,this._scrollDpiX=1,this._scrollDpiY=1,this.scrollDragStartValue=0}implements(){return h.implementsStiAxisAreaCoreXF||(h.implementsStiAxisAreaCoreXF=[te.d.IStiAxisAreaCoreXF]),h.implementsStiAxisAreaCoreXF}applyStyle(e){super.applyStyle(e);let t=this.area;t.allowApplyStyle&&(null!=t.interlacingHor&&t.interlacingHor.core.applyStyle(e),null!=t.interlacingVert&&t.interlacingVert.core.applyStyle(e),null!=t.gridLinesHor&&t.gridLinesHor.core.applyStyle(e),null!=t.gridLinesVert&&t.gridLinesVert.core.applyStyle(e),null!=t.xAxis&&t.xAxis.core.applyStyle(e),null!=t.xTopAxis&&t.xTopAxis.core.applyStyle(e),null!=t.yAxis&&t.yAxis.core.applyStyle(e),null!=t.yRightAxis&&t.yRightAxis.core.applyStyle(e))}render(s,n){let l=this.area;l.yAxis.info.minimum=0,l.yAxis.info.maximum=0,l.yRightAxis.info.minimum=0,l.yRightAxis.info.maximum=0,l.xAxis.info.minimum=0,l.xAxis.info.maximum=0,l.xTopAxis.info.minimum=0,l.xTopAxis.info.maximum=0,this.prepareInfo(n.clone());let a=null,o=null,h=null,u=null,d=null,m=null,e=null,t=null,i=null,r=null,c=null,S=null,g=ne.empty,p=ne.empty,f=ne.empty,w=ne.empty,x=ne.empty,C=ne.empty;var y=ne.empty,b=l.core.getSeries(),A,v,L;if(0<b.length){let e=0,t=0,i=0,r=0;g=(l.reverseHor?l.yRightAxis:l.yAxis).core.getAxisRect(s,n,!0,!0,!1,!0),!this.area.chart.table.core.showTable()||(A=this.area.chart.table.core.getWidthCellLegend(s))>g.width&&(g.width=A,g.x=-A,0==g.height&&(g.height=1)),g.isEmpty||(g.x+=n.x,g.y+=n.y),g.isEmpty||(i=g.width,g.top<n.top&&(e=Math.abs(n.top-g.top)),n.bottom<g.bottom&&(t=Math.abs(g.bottom-n.bottom))),p=l.yAxis.core.getCenterAxisRect(s,n,!0,!0,!1),p.isEmpty||(p.x+=n.x,p.y+=n.y),f=(l.reverseHor?l.yAxis:l.yRightAxis).core.getAxisRect(s,n,!0,!0,!1,!0),f.isEmpty||(f.x+=n.x,f.y+=n.y),f.isEmpty||(r=f.width,f.top<n.top&&(e=Math.max(e,Math.abs(n.top-f.top))),n.bottom<f.bottom&&(t=Math.max(t,Math.abs(f.bottom-n.bottom)))),w=l.xTopAxis.core.getAxisRect(s,n,!0,!0,!1,!0),w.isEmpty||(w.x+=n.x,w.y+=n.y),w.isEmpty||(e=Math.max(w.height,e),w.x<n.x&&(i=Math.max(i,Math.abs(n.left-w.left))),n.right<w.right&&(r=Math.max(r,Math.abs(w.right-n.right)))),x=l.xAxis.core.getCenterAxisRect(s,n,!0,!0,!1),x.isEmpty||(x.x+=n.x,x.y+=n.y),l.reverseHor&&(v={ref:i},L={ref:r},this.swap(v,L),i=v.ref,r=L.ref);var v=new ne(n.x+i,n.y,n.width-i-r,n.height);l.xAxis.info.dpi=v.width/l.xAxis.info.range,this.calculateStepX(l.xAxis,v.left,v.right);var L={ref:l.xAxis.info.labelsCollection},L,v,T,I;this.calculatePositions(l.xAxis,L,0<l.xAxis.labels.step?M.trunc(l.xAxis.labels.step):1,!1),l.xAxis.info.labelsCollection=L.ref,C=l.xAxis.core.getAxisRect(s,v,!0,!0,!1,!0),C.isEmpty||this.area.chart.table.core.showTable()||(C.x+=n.x,C.y+=n.y),C.isEmpty||this.area.chart.table.core.showTable()&&!this.area.chart.table.chart.area.is(te.d.IStiClusteredBarArea)||(t=Math.max(C.height,t),C.x<n.x&&(i=Math.max(i,Math.abs(n.left-C.left))),n.right<C.right&&(r=Math.max(r,Math.abs(C.right-n.right)))),l.reverseHor&&(L={ref:i},v={ref:r},this.swap(L,v),i=L.ref,r=v.ref),l.reverseVert&&(T={ref:e},I={ref:t},this.swap(T,I),e=T.ref,t=I.ref),n.x+=i,n.width-=i+r,n.y+=e,n.height-=e+t,this.prepareInfo(n),a=l.yAxis.core.renderView(s,n),o=l.yAxis.core.renderCenterView(s,n),h=l.yRightAxis.core.renderView(s,n),u=l.xTopAxis.core.renderView(s,n),d=l.xAxis.core.renderCenterView(s,n),m=l.xAxis.core.renderView(s,n)}var y=n.clone(),T=this.calculateScrollValuesX(n.clone(),l),I=this.calculateScrollValuesY(n.clone(),l);n.x=-this.scrollDistanceX,n.y=-this.scrollDistanceY,n.width*=T,n.height*=I,this.prepareInfo(n.clone()),0<b.length&&(e=l.yAxis.core.render(s,n.clone()),t=l.yAxis.core.renderCenter(s,n.clone()),i=l.yRightAxis.core.render(s,n.clone()),r=l.xTopAxis.core.render(s,n.clone()),c=l.xAxis.core.renderCenter(s,n.clone()),S=l.xAxis.core.render(s,n.clone()),null!=e&&(e.view=a),null!=t&&(t.view=o),null!=i&&(i.view=h),null!=r&&(r.view=u),null!=c&&(c.view=d),null!=S&&(S.view=m)),null!=m&&l.xAxis.core.renderScrollBar(s,m.clientRectangle,m),null!=u&&l.xTopAxis.core.renderScrollBar(s,u.clientRectangle,u),null!=a&&l.yAxis.core.renderScrollBar(s,a.clientRectangle,a),null!=h&&l.yRightAxis.core.renderScrollBar(s,h.clientRectangle,h);let k=new te.d.StiAxisAreaViewGeom(l,y);var F=new te.d.StiAxisAreaGeom(k,l,n.clone()),B,R,P,D;k.createChildGeoms(),k.childGeoms.push(F);for(B of this.area.chart.strips.list)B.showBehind&&B.core.render(s,F,n.clone());for(R of this.area.chart.constantLines.list)R.showBehind&&R.core.render(s,F,n.clone());this.renderSeries(s,n.clone(),F,b);for(P of this.area.chart.strips.list)P.showBehind||P.core.render(s,F,n.clone());for(D of this.area.chart.constantLines.list)D.showBehind||D.core.render(s,F,n.clone());return null!=e&&(k.createChildGeoms(),a.createChildGeoms(),k.childGeoms.push(a),a.childGeoms.push(e)),null!=t&&(k.createChildGeoms(),o.createChildGeoms(),k.childGeoms.push(o),o.childGeoms.push(t)),null!=i&&(k.createChildGeoms(),h.createChildGeoms(),k.childGeoms.push(h),h.childGeoms.push(i)),null!=r&&(k.createChildGeoms(),u.createChildGeoms(),k.childGeoms.push(u),u.childGeoms.push(r)),null!=c&&(k.createChildGeoms(),d.createChildGeoms(),k.childGeoms.push(d),d.childGeoms.push(c)),null==S||this.area.chart.table.core.showTable()&&!this.area.chart.table.chart.area.is(te.d.IStiClusteredBarArea)||(k.createChildGeoms(),m.createChildGeoms(),k.childGeoms.push(m),m.childGeoms.push(S)),k}calculateScrollValuesX(e,t){let i,r;var s=1;if(this.isAutoRangeXAxis(t.xAxis)?(i=t.xAxis.info.minimum,r=t.xAxis.info.maximum):(i=t.xAxis.range.minimum,r=t.xAxis.range.maximum,i>r&&(i=t.xAxis.info.minimum,r=t.xAxis.info.maximum)),this._scrollRangeX=t.xAxis.info.maximum-t.xAxis.info.minimum,this._scrollViewX=r-i,!t.xAxis.core.getStartFromZero()||t.xAxis.logarithmicScale?this.blockScrollValueX=!0:this.blockScrollValueX=!1,!this.blockScrollValueX&&!t.xAxis.interaction.showScrollBar){let e=i+Math.abs(t.xAxis.info.minimum);0<t.xAxis.info.minimum&&0<i&&(e=Math.abs(i-t.xAxis.info.minimum)),t.reverseHor?this.scrollValueX=this._scrollRangeX-e-this._scrollViewX:this.scrollValueX=e}return s=this.scrollRangeX/this.scrollViewX,this._scrollDpiX=e.width*s/this.scrollRangeX,s}calculateScrollValuesY(e,t){let i,r;var s=1,n;return this.isAutoRangeYAxis(t.yAxis)?(i=t.yAxis.info.minimum,r=t.yAxis.info.maximum):(i=t.yAxis.range.minimum,r=t.yAxis.range.maximum,i>r&&(i=t.yAxis.info.minimum,r=t.yAxis.info.maximum)),this._scrollRangeY=t.yAxis.info.maximum-t.yAxis.info.minimum,this._scrollViewY=r-i,!t.yAxis.core.getStartFromZero()||t.yAxis.logarithmicScale?this.blockScrollValueY=!0:this.blockScrollValueY=!1,this.blockScrollValueY?this.scrollValueY=0:(n=i+Math.abs(t.yAxis.info.minimum),t.reverseVert?this.scrollValueY=n:this.scrollValueY=this._scrollRangeY-n-this._scrollViewY),s=this.scrollRangeY/this.scrollViewY,this._scrollDpiY=e.height*s/this.scrollRangeY,s}prepareInfo(l){let a=this.getSeries();if(0<a.length){let e=this.area;this.valuesCount=0;let t=this.is(te.d.StiClusteredBarAreaCoreXF)?e.yAxis:e.xAxis,i=this.is(te.d.StiClusteredBarAreaCoreXF)?e.yRightAxis:e.xTopAxis,r=this.is(te.d.StiClusteredBarAreaCoreXF)?e.xAxis:e.yAxis,s=this.is(te.d.StiClusteredBarAreaCoreXF)?e.xTopAxis:e.yRightAxis;t.info.stripLines=new te.d.StiStripLinesXF,r.info.stripLines=new te.d.StiStripLinesXF,s.info.stripLines=new te.d.StiStripLinesXF;let n=!1;for(let t=0;t<a.length;t++){let e=a[t].values;a[t].is(te.d.StiCandlestickSeries)&&(e=a[t].valuesOpen),null!=e&&(this.valuesCount=Math.max(e.length,this.valuesCount)),a[t].core.isDateTimeValues&&(n=!0)}this.is(te.d.StiBoxAndWhiskerAreaCoreXF)&&(this.valuesCount=a.length),this.prepareRange(t,i,r,s),!r.range.auto&&r.range.maximum>r.info.maximum&&(r.info.maximum=r.range.maximum),!r.range.auto&&r.range.minimum<r.info.minimum&&(r.info.minimum=r.range.minimum),(!s.range.auto&&s.range.maximum>s.info.maximum||e.is(te.d.StiParetoArea))&&(s.info.maximum=s.range.maximum),!s.range.auto&&s.range.minimum<s.info.minimum&&(s.info.minimum=s.range.minimum);var o=0<this.area.chart.series.count&&this.area.chart.series.getByIndex(0).is(te.d.StiScatterSeries);r.logarithmicScale&&o||(this.checkStartFromZeroYAxis(r),this.checkStartFromZeroYAxis(s),this.calculateMinimumAndMaximumYAxis(r),s.range.auto&&this.calculateMinimumAndMaximumYAxis(s)),this.calculateMinimumAndMaximumXAxis(t),this.createStripLinesXAxis(t),this.createStripLinesYAxis(r,n),this.createStripLinesYAxis(s,n),this.checkStripLinesAndMaximumMinimumXAxis(t),this.checkStripLinesAndMaximumMinimumYAxis(r),this.checkStripLinesAndMaximumMinimumYAxis(s),e.is(te.d.IStiClusteredBarArea)&&(h.rotateStripLines(t),h.rotateStripLines(r),h.rotateStripLines(s)),i.info=t.info.clone(),this.checkShowEdgeValues(t),this.checkShowEdgeValues(i),e.reverseHor&&(h.rotateStripLines(e.xAxis),h.rotateStripLines(e.xTopAxis)),e.reverseVert&&(h.rotateStripLines(e.yAxis),h.rotateStripLines(e.yRightAxis)),e.xAxis.info.dpi=l.width/e.xAxis.info.range,e.xTopAxis.info.dpi=l.width/e.xTopAxis.info.range,e.yAxis.info.dpi=l.height/e.yAxis.info.range,e.yRightAxis.info.dpi=l.height/e.yRightAxis.info.range,this.calculateStepX(e.xAxis,l.left,l.right),this.calculateStepX(e.xTopAxis,l.left,l.right),this.calculateStepY(e.yAxis,l.top,l.bottom),this.calculateStepY(e.yRightAxis,l.top,l.bottom);var l={ref:e.xAxis.info.labelsCollection};this.calculatePositions(e.xAxis,l,0<e.xAxis.labels.step?M.trunc(e.xAxis.labels.step):1,!1),e.xAxis.info.labelsCollection=l.ref,l={ref:e.xTopAxis.info.labelsCollection},this.calculatePositions(e.xTopAxis,l,0<e.xTopAxis.labels.step?M.trunc(e.xTopAxis.labels.step):1,!1),e.xTopAxis.info.labelsCollection=l.ref,l={ref:e.yAxis.info.labelsCollection},this.calculatePositions(e.yAxis,l,0<e.yAxis.labels.step?M.trunc(e.yAxis.labels.step):1,!1),e.yAxis.info.labelsCollection=l.ref,l={ref:e.yRightAxis.info.labelsCollection},this.calculatePositions(e.yRightAxis,l,0<e.yRightAxis.labels.step?M.trunc(e.yRightAxis.labels.step):1,!1),e.yRightAxis.info.labelsCollection=l.ref;var l={ref:e.xAxis.info.ticksCollection};this.calculatePositions(e.xAxis,l,0<e.xAxis.ticks.step?M.trunc(e.xAxis.ticks.step):1,!0),e.xAxis.info.ticksCollection=l.ref,l={ref:e.xTopAxis.info.ticksCollection},this.calculatePositions(e.xTopAxis,l,0<e.xTopAxis.ticks.step?M.trunc(e.xTopAxis.ticks.step):1,!0),e.xTopAxis.info.ticksCollection=l.ref,l={ref:e.yAxis.info.ticksCollection},this.calculatePositions(e.yAxis,l,0<e.yAxis.ticks.step?M.trunc(e.yAxis.ticks.step):1,!0),e.yAxis.info.ticksCollection=l.ref,l={ref:e.yRightAxis.info.ticksCollection},this.calculatePositions(e.yRightAxis,l,0<e.yRightAxis.ticks.step?M.trunc(e.yRightAxis.ticks.step):1,!0),e.yRightAxis.info.ticksCollection=l.ref}}renderSeries(r,s,n,e){let t=[],i=new Q;for(var l of e)if(this.isAcceptableSeries(l.stimulsoft().getType())){let e=i.get(l.stimulsoft().getType());null==e&&(e=[],t.push(e),i.add(l.stimulsoft().getType(),e)),e.push(l)}for(var a of t){let i=a.stimulsoft().toArray();if(i[0].is(te.d.StiStackedBarSeries)||i[0].is(te.d.StiStackedColumnSeries)||i[0].is(te.d.StiStackedBaseLineSeries)){let e=[],t=[];for(var o of i)(o.yAxis==te.d.StiSeriesYAxis.LeftYAxis?e:t).push(o);0<e.length&&e.stimulsoft().toArray()[0].core.renderSeries(r,s,n,e.stimulsoft().toArray()),0<t.length&&t.stimulsoft().toArray()[0].core.renderSeries(r,s,n,t.stimulsoft().toArray())}else i[0].core.renderSeries(r,s,n,i)}}isAutoRangeXAxis(e){return e.range.auto||e.range.minimum>=e.range.maximum||e.logarithmicScale}isAutoRangeYAxis(e){return e.range.auto||e.range.maximum==e.range.minimum||this.area.isDefaultSeriesTypeFullStackedColumnSeries||e.logarithmicScale}calculateMinimumAndMaximumXAxis(e){e.range.auto||(e.info.maximum=e.range.maximum,e.info.minimum=e.range.minimum)}calculateMinimumAndMaximumYAxis(t){if(0<this.getSeries().length&&this.getSeries()[0].is(te.d.StiGanttSeries))return void(t.range.auto||(t.info.maximum=t.range.maximum,t.info.minimum=t.range.minimum));if(!t.startFromZero&&t.range.auto&&t.is(te.d.IStiYAxis)){var i=.05*(t.info.maximum-t.info.minimum);t.info.minimum=t.info.minimum-i,t.info.maximum=t.info.maximum+i,t.info.minimum<0&&0<=t.info.minimum+i&&(t.info.minimum=0)}else{let e=.1;0<this.getSeries().length&&this.getSeries()[0].seriesLabels.is(te.d.StiOutsideEndAxisLabels)&&(e=.15);var i=Math.min(e,Math.abs(4/((t.info.maximum+t.info.minimum)/2)));t.info.maximum*=1+i*Math.sign(t.info.maximum),t.info.minimum*=1-i*Math.sign(t.info.minimum)}t.info.minimum==t.info.maximum&&(0==t.info.maximum?t.info.maximum=100:(t.info.minimum-=.1*t.info.minimum,t.info.maximum+=.1*t.info.maximum))}getArgumentLabel(e,t){if(null==e)return"";let i=this.area;return(i.core.seriesOrientation==te.d.StiChartSeriesOrientation.Vertical?i.xAxis:i.yAxis).core.getLabelText(e,t)}switchOff(){let e=this.area;e.gridLinesHor.visible=!1,e.gridLinesVert.visible=!1,e.interlacingHor.visible=!1,e.interlacingVert.visible=!1,e.xAxis.visible=!1,e.yAxis.visible=!1,e.xTopAxis.visible=!1,e.yRightAxis.visible=!1,e.yAxis.range.auto=!0,e.xAxis.range.auto=!0}swap(e,t){var i=e.ref;e.ref=t.ref,t.ref=i}prepareRange(e,t,i,r){}createStripLinesXAxis(i){var r=i.core.getStartFromZero(),t=r?this.valuesCount+1:this.valuesCount,e,s,n;for(let e=r?0:1;e<=t;e++)i.info.stripLines.add2(e,e);for(s of this.getSeries())for(let t=0;t<this.valuesCount;t++){let e=null;if(null!=s.arguments&&t<s.arguments.length&&(e=s.arguments[t],Z.isNullOrEmpty(e)))continue;null==e||(n=r?1+t:t)<i.info.stripLines.count&&(i.info.stripLines.getByIndex(n).valueObject=e)}}checkShowEdgeValues(e){var t;0<e.info.stripLines.count&&((e.is(te.d.IStiXTopAxis)?e.area.xTopAxis:e.area.xAxis).showEdgeValues&&!e.area.is(te.d.IStiClusteredBarArea)||(e.info.stripLines.getByIndex(0).valueObject=null,e.info.stripLines.getByIndex(e.info.stripLines.count-1).valueObject=null))}createStripLinesYAxis(s,t){if(this.area.isDefaultSeriesTypeFullStackedColumnSeries||this.area.isDefaultSeriesTypeFullStackedBarSeries){let e=!1,t=!1;var n,l;for(l of this.getSeries())for(var a of l.values)0<a&&(e=!0),a<0&&(t=!0);var o=t?-100:0,h;let i=e?100:0;0==o&&0==i&&(i=100);let r=s.labels.step;0==r&&(r=te.d.StiStripLineCalculatorXF.getInterval(o,i,6)),s.info.stripLines=te.d.StiStripLineCalculatorXF.getStripLines(o,i,r,!1);for(h of s.info.stripLines.list)h.valueObject=Z.format("{0}%",h.valueObject)}else{let e=s.labels.step;var i;0<e&&0<s.info.range&&500<s.info.range/e&&(e=0),0==e&&(e=te.d.StiStripLineCalculatorXF.getInterval(s.info.minimum,s.info.maximum,6),this.area.chart.isDashboard&&(s.labels.calculatedStep=e)),s.info.stripLines=te.d.StiStripLineCalculatorXF.getStripLines(s.info.minimum,s.info.maximum,e,t)}}checkStripLinesAndMaximumMinimumXAxis(e){0<e.info.stripLines.count?(e.info.minimum=e.info.stripLines.getByIndex(0).value,e.info.maximum=e.info.stripLines.getByIndex(e.info.stripLines.count-1).value):(e.info.minimum=0,e.info.maximum=1)}checkStripLinesAndMaximumMinimumYAxis(e){0<e.info.stripLines.count?(e.info.maximum=e.info.stripLines.getByIndex(0).value,e.info.minimum=e.info.stripLines.getByIndex(e.info.stripLines.count-1).value):(e.info.maximum=100,e.info.minimum=0)}calculateStepX(e,t,i){2<=e.info.stripLines.count?(e.info.step=Math.abs((e.info.stripLines.getByIndex(0).value-e.info.stripLines.getByIndex(1).value)*e.info.dpi),e.core.calculateStripPositions(t,i)):(e.info.step=1,e.info.stripPositions=[])}calculateStepY(e,t,i){2<=e.info.stripLines.count?(e.info.step=Math.abs((e.info.stripLines.getByIndex(1).value-e.info.stripLines.getByIndex(0).value)*e.info.dpi),e.core.calculateStripPositions(t,i)):(e.info.step=1,e.info.stripPositions=[])}checkStartFromZeroYAxis(e){e.core.getStartFromZero()&&(e.info.maximum<0&&(e.info.maximum=0),0<e.info.minimum&&(e.info.minimum=0))}calculatePositions(i,e,r,s){let n=[];var t=this.area;let l=!1;this.area.is(te.d.IStiYAxis)?l=t.reverseVert:this.area.is(te.d.IStiXAxis)&&(l=t.reverseHor);let a=0;var o=i.info.stripPositions.length,h;for(let t=0;t<o;t++){if(0==a){let e=new te.d.StiStripPositionXF;var u=l?o-t-1:t;e.stripLine=i.info.stripLines.getByIndex(u),e.position=i.info.stripPositions[u],l?n.stimulsoft().insert(0,e):n.push(e)}if(this.area.core.is(te.d.StiScatterAreaCoreXF)&&i.is(te.d.IStiXAxis)&&!i.logarithmicScale)continue;if(this.area.core.is(te.d.StiClusteredBarAreaCoreXF)&&i.is(te.d.IStiXAxis)&&!s)continue;if(!this.area.core.is(te.d.StiClusteredBarAreaCoreXF)&&i.is(te.d.IStiYAxis)&&!s)continue;if(t==o-1&&0!=a)if(null!=i&&i.showEdgeValues){let e=new te.d.StiStripPositionXF;var u=l?0:o-1;e.stripLine=i.info.stripLines.getByIndex(u),e.position=i.info.stripPositions[u],l?n.stimulsoft().insert(0,e):n.push(e)}a++,a==r&&(a=0)}e.ref=n}calculateDivider(e){var t=this.area;let i=0;if(null!=e.info.stripLines)for(var r of e.info.stripLines.list){if(0==r.value)return e.info.stripPositions[i];i++}return e.is(te.d.IStiYAxis)?t.reverseVert?-e.info.minimum*e.info.dpi:null==e.info.stripPositions||0==e.info.stripPositions.length?e.info.minimum*e.info.dpi:e.info.stripPositions[e.info.stripPositions.length-1]+e.info.minimum*e.info.dpi:e.is(te.d.IStiXAxis)?t.reverseHor?null==e.info.stripPositions||0==e.info.stripPositions.length?e.info.minimum*e.info.dpi:e.info.stripPositions[e.info.stripPositions.length-1]+e.info.minimum*e.info.dpi:-e.info.minimum*e.info.dpi:0}static rotateStripLines(e){let t=new te.d.StiStripLinesXF;for(var i of e.info.stripLines.list)t.insert(0,i);e.info.stripLines=t}getDividerX(){var e=this.area;if(this.is(te.d.StiClusteredBarAreaCoreXF)||this.is(te.d.StiScatterAreaCoreXF))return this.calculateDivider(e.xAxis);return 0}getDividerTopX(){var e=this.area;if(this.is(te.d.StiClusteredBarAreaCoreXF))return this.calculateDivider(e.xTopAxis);return 0}getDividerY(){var e=this.area;return this.is(te.d.StiClusteredBarAreaCoreXF)&&!this.is(te.d.StiGanttAreaCoreXF)?0:this.calculateDivider(e.yAxis)}getDividerRightY(){var e=this.area;return this.is(te.d.StiClusteredBarAreaCoreXF)&&!this.is(te.d.StiGanttAreaCoreXF)?0:this.calculateDivider(e.yRightAxis)}get scrollDistanceX(){return this.scrollDpiX*this.scrollValueX}get scrollDistanceY(){return this.scrollDpiY*this.scrollValueY}get scrollRangeX(){return this._scrollRangeX}get scrollRangeY(){return this._scrollRangeY}get scrollViewX(){return this._scrollViewX}get scrollViewY(){return this._scrollViewY}get scrollDpiX(){return this._scrollDpiX}get scrollDpiY(){return this._scrollDpiY}};te.d.StiAxisAreaCoreXF=h}te.d.StiClusteredColumnAreaCoreXF=class extends te.d.StiAxisAreaCoreXF{prepareRange(e,t,i,r){let s=!0,n=!0,l=!1,a=!1;i.info.maximum=0,i.info.minimum=0,r.info.maximum=0,r.info.minimum=0;var o=this.getSeries();for(let e=0;e<o.length;e++){var h=o[e],u,d;for(d of h.values)h.yAxis==te.d.StiSeriesYAxis.LeftYAxis?null!=d&&(s?(l=!0,i.info.maximum=d,i.info.minimum=d,s=!1):(l=!0,i.info.maximum=Math.max(d,i.info.maximum),i.info.minimum=Math.min(d,i.info.minimum))):null!=d&&(n?(a=!0,r.info.maximum=d,r.info.minimum=d,n=!1):(a=!0,r.info.maximum=Math.max(d,r.info.maximum),r.info.minimum=Math.min(d,r.info.minimum)))}l||(i.info.maximum=r.info.maximum,i.info.minimum=r.info.minimum),a||(r.info.maximum=i.info.maximum,r.info.minimum=i.info.minimum)}get localizedName(){return N.get("Chart","ClusteredColumn")}get position(){return te.d.StiChartAreaPosition.ClusteredColumn}constructor(e){super(e)}};let e=te.d.StiChartAreaPosition;te.d.StiBoxAndWhiskerAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","BoxAndWhisker")}get position(){return e.Bubble}constructor(e){super(e)}};let Ke=J.Base.StiConvert;te.d.StiScatterAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{constructor(e){super(e),this.isArgumentDateTime=!1}isXAxisAutoRange(e){var t=this.area;return e.range.auto||t.xAxis.range.maximum==t.xAxis.range.minimum||e.logarithmicScale}prepareRange(e,t,i,r){super.prepareRange(e,t,i,r);let s=!0;var n,l;e.info.maximum=0,e.info.minimum=0,this.isArgumentDateTime=!1;for(l of this.getSeries()){if(0<l.arguments.length&&"string"==typeof l.arguments[0]){let e=l.arguments[0];if(e.stimulsoft().endsWith("AM")||e.stimulsoft().endsWith("PM"))for(let e=0;e<l.arguments.length;e++){var a=v.fromString(l.arguments[e].toString(),!1);null!=a&&(l.arguments[e]=a)}}for(var o of l.arguments){let t=0;if(o instanceof v)this.isArgumentDateTime=!0,t=o.toOADate();else if("string"==typeof o){var h={ref:0};te.d.StiSeries.tryParseValue(o,l.chart.report.culture,h)&&(t=h.ref)}else try{t=Ke.changeType(o,Number)}catch(e){t=0}s?(s=!1,e.info.maximum=t,e.info.minimum=t):(e.info.maximum=Math.max(e.info.maximum,t),e.info.minimum=Math.min(e.info.minimum,t))}}}checkStripLinesAndMaximumMinimumXAxis(e){0<e.info.stripLines.count?(e.info.minimum=e.info.stripLines.getByIndex(0).value,e.info.maximum=e.info.stripLines.getByIndex(e.info.stripLines.count-1).value):(e.info.minimum=0,e.info.maximum=1)}createStripLinesXAxis(i){var e;this.isArgumentDateTime||i.logarithmicScale||this.isXAxisAutoRange(i)&&(0!=(e=.05*Math.abs(i.info.maximum-i.info.minimum))?(i.info.maximum+=e,i.info.minimum-=e,i.info.minimum<0&&0<=i.info.minimum+e&&(i.info.minimum=0)):(i.info.maximum*=1.05,i.info.minimum<0?i.info.minimum*=1.05:i.info.minimum*=.95),i.core.getStartFromZero()&&(i.info.minimum=0),i.info.minimum==i.info.maximum&&(0==i.info.maximum?i.info.maximum=100:(i.info.minimum-=.1*i.info.minimum,i.info.maximum-=.1*i.info.maximum)));let t=!1;var r=this.getSeries();for(let e=0;e<r.length;e++)if(r[e].core.isDateTimeValues){t=!0;break}let s=i.labels.step;0==s&&(s=te.d.StiStripLineCalculatorXF.getInterval(i.info.minimum,i.info.maximum,6));let n;n=i.logarithmicScale?te.d.StiStripLineCalculatorXF.getStripLinesLogScale(i.info.minimum,i.info.maximum):te.d.StiStripLineCalculatorXF.getStripLines(i.info.minimum,i.info.maximum,s,t),i.info.stripLines.clear();for(let t=n.count-1;0<=t;t--){var l=n.getByIndex(t).value;let e=n.getByIndex(t).valueObject;this.isArgumentDateTime&&(e=v.fromOADate(l)),i.info.stripLines.add2(e,l)}}createStripLinesYAxis(r,t){if(this.area.isDefaultSeriesTypeFullStackedColumnSeries||this.area.isDefaultSeriesTypeFullStackedBarSeries){let e=!1,t=!1;var s,n;for(n of this.getSeries())for(var l of n.values)0<l&&(e=!0),l<0&&(t=!0);var a=t?-100:0,o=e?100:0,h;let i=r.labels.step;0==i&&(i=te.d.StiStripLineCalculatorXF.getInterval(a,o,6)),r.info.stripLines=te.d.StiStripLineCalculatorXF.getStripLines(a,o,i,!1);for(h of r.info.stripLines.list)h.valueObject=Z.format("{0}%",h.valueObject)}else{let e=r.labels.step;0<e&&0<r.info.range&&500<r.info.range/e&&(e=0),0==e&&(e=te.d.StiStripLineCalculatorXF.getInterval(r.info.minimum,r.info.maximum,6)),r.logarithmicScale?r.info.stripLines=te.d.StiStripLineCalculatorXF.getStripLinesLogScale(r.info.minimum,r.info.maximum):r.info.stripLines=te.d.StiStripLineCalculatorXF.getStripLines(r.info.minimum,r.info.maximum,e,t)}}get localizedName(){return N.get("Chart","Scatter")}get position(){return te.d.StiChartAreaPosition.Scatter}},te.d.StiBubbleAreaCoreXF=class extends te.d.StiScatterAreaCoreXF{get localizedName(){return N.get("Chart","Bubble")}get position(){return e.Bubble}constructor(e){super(e)}},te.d.StiCandlestickAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","Candlestick")}get position(){return te.d.StiChartAreaPosition.Candlestick}createStripLinesXAxis(t){var e,i;t.info.stripLines.clear(),t.info.stripLines.add2(0,0);for(i of this.getSeries())for(var r of i.arguments){let e=!0;for(var s of t.info.stripLines.list)s.valueObject.toString()==r.toString()&&(e=!1);e&&t.info.stripLines.add2(r,t.info.stripLines.count)}t.info.stripLines.add2("",t.info.stripLines.count)}prepareRange(e,t,i,r){var s,n;e.info.maximum=0,e.info.minimum=0,i.info.maximum=0,i.info.minimum=0;let l=!0;for(n of this.getSeries()){for(var a of n.valuesOpen)null!=a&&(l?(l=!1,i.info.maximum=a,i.info.minimum=a):(i.info.maximum=Math.max(i.info.maximum,a),i.info.minimum=Math.min(i.info.minimum,a)));for(var o of n.valuesClose)null!=o&&(i.info.maximum=Math.max(i.info.maximum,o),i.info.minimum=Math.min(i.info.minimum,o));for(var h of n.valuesHigh)null!=h&&(i.info.maximum=Math.max(i.info.maximum,h));for(var u of n.valuesLow)null!=u&&(i.info.minimum=Math.min(i.info.minimum,u))}r.info.maximum=i.info.maximum,r.info.minimum=i.info.minimum}constructor(e){super(e)}},te.d.StiClusteredBarAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","ClusteredBar")}get seriesOrientation(){return te.d.StiChartSeriesOrientation.Horizontal}get position(){return te.d.StiChartAreaPosition.ClusteredBar}constructor(e){super(e)}},te.d.StiAreaAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","Area")}get position(){return te.d.StiChartAreaPosition.Area}constructor(e){super(e)}},te.d.StiHistogramAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","Histogram")}get position(){return te.d.StiChartAreaPosition.Histogram}constructor(e){super(e)}},te.d.StiLineAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","Line")}get position(){return te.d.StiChartAreaPosition.Line}constructor(e){super(e)}},te.d.StiParetoAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","Pareto")}get position(){return te.d.StiChartAreaPosition.Pareto}constructor(e){super(e)}},te.d.StiSplineAreaAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","SplineArea")}get position(){return te.d.StiChartAreaPosition.SplineArea}constructor(e){super(e)}},te.d.StiSplineAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","Spline")}get position(){return te.d.StiChartAreaPosition.Spline}constructor(e){super(e)}},te.d.StiSteppedAreaAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","SteppedArea")}get position(){return te.d.StiChartAreaPosition.SteppedArea}constructor(e){super(e)}},te.d.StiSteppedLineAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","SteppedLine")}get position(){return te.d.StiChartAreaPosition.SteppedLine}constructor(e){super(e)}},te.d.StiWaterfallAreaCoreXF=class extends te.d.StiAxisAreaCoreXF{prepareRange(e,t,i,r){let s=!0,n=0;i.info.maximum=0,i.info.minimum=0;var l=this.getSeries();for(let e=0;e<l.length;e++){var a=l[e],o=a.total.visible?1:0;for(let e=0;e<a.values.length-o;e++){var h=a.values[e];a.yAxis==te.d.StiSeriesYAxis.LeftYAxis&&null!=h&&(s?(n=h,i.info.maximum=Math.max(0,h),i.info.minimum=Math.min(0,h),s=!1):(n+=h,i.info.maximum=Math.max(n,i.info.maximum),i.info.minimum=Math.min(n,i.info.minimum)))}}}get localizedName(){return N.get("Chart","Waterfall")}get position(){return te.d.StiChartAreaPosition.Waterfall}constructor(e){super(e)}},te.d.StiPieAreaCoreXF=class extends te.d.StiAreaCoreXF{constructor(e){super(e),this.valuesCount=0}render(e,t){this.prepareInfo(t);var i=new te.d.StiPieAreaGeom(this.area,t),r=this.getSeries();return this.renderSeries(e,t,i,r),i}renderSeries(t,i,r,e){let s=[],n=new Q;for(var l of e){let e=n.get(l.stimulsoft().getType());null==e&&(e=[],s.push(e),n.set(l.stimulsoft().getType(),e)),e.push(l)}for(var a of s){let e=a.stimulsoft().toArray();e[0].core.renderSeries(t,i,r,e)}}prepareInfo(e){this.valuesCount=0;var t=this.getSeries();if(0<t.length)for(let e=0;e<t.length;e++){var i=t[e].values;null!=i&&(this.valuesCount=Math.max(i.length,this.valuesCount))}}get localizedName(){return N.get("Chart","Pie")}get position(){return te.d.StiChartAreaPosition.Pie}},te.d.StiDoughnutAreaCoreXF=class extends te.d.StiPieAreaCoreXF{render(e,t){this.prepareInfo(t);var i=new te.d.StiDoughnutAreaGeom(this.area,t),r=this.getSeries();return this.renderSeries(e,t,i,r),i}get localizedName(){return N.get("Chart","Doughnut")}get position(){return te.d.StiChartAreaPosition.Doughnut}constructor(e){super(e)}},te.d.StiStackedBarAreaCoreXF=class extends te.d.StiClusteredBarAreaCoreXF{prepareSeriesRange(t){let i=[],r=[],s=[],n=[];var l=this.getSeries(),a,o,e;for(let e=0;e<this.valuesCount;e++)for(var o of l){o.stimulsoft().getType()==t&&(o.yAxis==te.d.StiSeriesYAxis.LeftYAxis?(i.push(0),r.push(0),e<o.values.length&&(0<(a=o.values[e])?r[e]=r[e]+a:i[e]=i[e]+a)):(s.push(0),n.push(0),e<o.values.length&&(0<(o=o.values[e])?n[e]=n[e]+o:s[e]=s[e]+o)))}return[i,r,s,n]}prepareRange(e,t,i,r){var s=this.getSeries(),n,l,a,o,h,u;let d=new Q;for(n of s)d.set(n.stimulsoft().getType(),n.stimulsoft().getType());let m=[],c=[],S=[],g=[];for(l of d.values){var p=this.prepareSeriesRange(l),f,w,x,C;let e=0;for(f of p[0])m.length<=e?m.push(f):m[e]=Math.min(m[e],f),e++;e=0;for(w of p[1])c.length<=e?c.push(w):c[e]=Math.max(c[e],w),e++;e=0;for(x of p[2])S.length<=e?S.push(x):S[e]=Math.min(S[e],x),e++;e=0;for(C of p[3])g.length<=e?g.push(C):g[e]=Math.max(g[e],C),e++}0==m.length&&(m=S),0==c.length&&(c=g),0==S.length&&(S=m),0==g.length&&(g=c);let y=!0;for(a of m)y?(i.info.minimum=a,y=!1):i.info.minimum=Math.min(a,i.info.minimum);y=!0;for(o of c)y?(i.info.maximum=o,y=!1):i.info.maximum=Math.max(o,i.info.maximum);y=!0;for(h of S)y?(r.info.minimum=h,y=!1):r.info.minimum=Math.min(h,r.info.minimum);y=!0;for(u of g)y?(r.info.maximum=u,y=!1):r.info.maximum=Math.max(u,r.info.maximum)}get localizedName(){return N.get("Chart","StackedBar")}get seriesOrientation(){return te.d.StiChartSeriesOrientation.Horizontal}get position(){return te.d.StiChartAreaPosition.StackedBar}constructor(e){super(e)}},te.d.StiFullStackedBarAreaCoreXF=class extends te.d.StiStackedBarAreaCoreXF{get localizedName(){return N.get("Chart","FullStackedBar")}get position(){return te.d.StiChartAreaPosition.FullStackedBar}constructor(e){super(e)}},te.d.StiStackedColumnAreaCoreXF=class extends te.d.StiAxisAreaCoreXF{prepareSeriesRange(t){let i=[],r=[],s=[],n=[];var l=this.getSeries(),a,o,e;for(let e=0;e<this.valuesCount;e++)for(var o of l){o.stimulsoft().getType()==t&&(o.yAxis==te.d.StiSeriesYAxis.LeftYAxis?(i.push(0),r.push(0),e<o.values.length&&(0<(a=o.values[e])?r[e]=r[e]+a:i[e]=i[e]+a)):(s.push(0),n.push(0),e<o.values.length&&(0<(o=o.values[e])?n[e]=n[e]+o:s[e]=s[e]+o)))}return[i,r,s,n]}prepareRange(e,t,i,r){var s=this.getSeries(),n,l,a,o,h,u;let d=new Q;for(n of s)d.set(n.stimulsoft().getType(),n.stimulsoft().getType());let m=[],c=[],S=[],g=[];for(l of d.values){var p=this.prepareSeriesRange(l),f,w,x,C;let e=0;for(f of p[0])m.length<=e?m.push(f):m[e]=Math.min(m[e],f),e++;e=0;for(w of p[1])c.length<=e?c.push(w):c[e]=Math.max(c[e],w),e++;e=0;for(x of p[2])S.length<=e?S.push(x):S[e]=Math.min(S[e],x),e++;e=0;for(C of p[3])g.length<=e?g.push(C):g[e]=Math.max(g[e],C),e++}0==m.length&&(m=S),0==c.length&&(c=g),0==S.length&&(S=m),0==g.length&&(g=c);let y=!0;for(a of m)y?(i.info.minimum=a,y=!1):i.info.minimum=Math.min(a,i.info.minimum);y=!0;for(o of c)y?(i.info.maximum=o,y=!1):i.info.maximum=Math.max(o,i.info.maximum);y=!0;for(h of S)y?(r.info.minimum=h,y=!1):r.info.minimum=Math.min(h,r.info.minimum);y=!0;for(u of g)y?(r.info.maximum=u,y=!1):r.info.maximum=Math.max(u,r.info.maximum)}get localizedName(){return N.get("Chart","StackedColumn")}get position(){return te.d.StiChartAreaPosition.StackedColumn}constructor(e){super(e)}},te.d.StiFullStackedColumnAreaCoreXF=class extends te.d.StiStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","FullStackedColumn")}get position(){return te.d.StiChartAreaPosition.FullStackedColumn}constructor(e){super(e)}},te.d.StiFullStackedAreaAreaCoreXF=class extends te.d.StiFullStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","FullStackedArea")}get position(){return te.d.StiChartAreaPosition.FullStackedArea}constructor(e){super(e)}},te.d.StiFullStackedLineAreaCoreXF=class extends te.d.StiFullStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","FullStackedLine")}get position(){return te.d.StiChartAreaPosition.FullStackedLine}constructor(e){super(e)}},te.d.StiFullStackedSplineAreaAreaCoreXF=class extends te.d.StiFullStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","FullStackedSplineArea")}get position(){return te.d.StiChartAreaPosition.FullStackedSplineArea}constructor(e){super(e)}},te.d.StiFullStackedSplineAreaCoreXF=class extends te.d.StiFullStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","FullStackedSpline")}get position(){return te.d.StiChartAreaPosition.FullStackedSpline}constructor(e){super(e)}},te.d.StiFunnelAreaCoreXF=class extends te.d.StiAreaCoreXF{get localizedName(){return N.get("Chart","Funnel")}get position(){return te.d.StiChartAreaPosition.Funnel}render(e,t){var i=new te.d.StiPieAreaGeom(this.area,t),r=this.getSeries();return this.renderSeries(e,t,i,r),i}renderSeries(t,i,r,e){let s=[],n=new Q;for(var l of e){let e=n.get(l.stimulsoft().getType());null==e&&(e=[],s.push(e),n.set(l.stimulsoft().getType(),e)),e.push(l)}for(var a of s){let e=a.stimulsoft().toArray();e[0].core.renderSeries(t,i,r,e)}}prepareInfo(e){}constructor(e){super(e)}},te.d.StiGanttAreaCoreXF=class extends te.d.StiClusteredBarAreaCoreXF{createStripLinesXAxis(t){var e,i;t.info.stripLines.clear(),t.info.stripLines.add2(0,0);for(i of this.getSeries())for(var r of i.arguments){let e=!0;for(var s of t.info.stripLines.list)null!=s.valueObject&&s.valueObject.toString()==r.toString()&&(e=!1);e&&t.info.stripLines.add2(r,t.info.stripLines.count)}t.info.stripLines.add2("",t.info.stripLines.count)}prepareRange(e,t,i,r){var s,n;e.info.maximum=0,e.info.minimum=0,i.info.maximum=0,i.info.minimum=0;let l=!0;for(n of this.getSeries()){for(var a of n.values)null!=a&&(l?(l=!1,i.info.maximum=a,i.info.minimum=a):(i.info.maximum=Math.max(i.info.maximum,a),i.info.minimum=Math.min(i.info.minimum,a)));for(var o of n.valuesEnd)null!=o&&(i.info.maximum=Math.max(i.info.maximum,o),i.info.minimum=Math.min(i.info.minimum,o))}r.info.maximum=i.info.maximum,r.info.minimum=i.info.minimum}get localizedName(){return N.get("Chart","Gantt")}get seriesOrientation(){return te.d.StiChartSeriesOrientation.Horizontal}get position(){return te.d.StiChartAreaPosition.Gantt}constructor(e){super(e)}},te.d.StiPictorialAreaCoreXF=class extends te.d.StiAreaCoreXF{render(e,t){var i=new te.d.StiPictorialAreaGeom(this.area,t);let r=this.getSeries();return e.pushTranslateTransform(t.x,t.y),0<r.length&&r[0].core.renderSeries(e,new ne(0,0,t.width,t.height),i,r.stimulsoft().toArray()),e.popTransform(),i}get localizedName(){return N.get("Chart","Pictorial")}get position(){return te.d.StiChartAreaPosition.Pictorial}constructor(e){super(e)}},te.d.StiPie3dAreaCoreXF=class extends te.d.StiPieAreaCoreXF{render(e,t){this.prepareInfo(t);var i=new te.d.StiPieAreaGeom(this.area,t),r=this.getSeries();return this.renderSeries(e,t,i,r),i}get localizedName(){return N.get("Chart","Pie")+"3D"}get position(){return te.d.StiChartAreaPosition.Pie3d}constructor(e){super(e)}};let Qe=J.Base.Drawing.StiEmptyBrush;{let n=class extends te.d.StiAreaCoreXF{constructor(e){super(e),this.valuesCount=0,this.points=[],this.arguments=[],this.centerPoint=ee.empty}applyStyle(e){super.applyStyle(e);let t=this.area;t.allowApplyStyle&&(null!=t.interlacingHor&&t.interlacingHor.core.applyStyle(e),null!=t.interlacingVert&&t.interlacingVert.core.applyStyle(e),null!=t.gridLinesHor&&t.gridLinesHor.core.applyStyle(e),null!=t.gridLinesVert&&t.gridLinesVert.core.applyStyle(e),null!=t.xAxis&&t.xAxis.core.applyStyle(e),null!=t.yAxis&&t.yAxis.core.applyStyle(e),t.brush=new Qe)}render(e,t){let i=this.area;var r=t.clone(),r=n.centerArea(r);this.prepareInfo(r),r=this.measureLabels(e,r).clone(),r=n.centerArea(r).clone(),r=new ne(t.x+(t.width-r.width)/2,t.y+(t.height-r.height)/2,r.width,r.height),this.prepareInfo(r);let s=new te.d.StiRadarAreaGeom(this.area,r,this.valuesCount);var t=i.yAxis.yCore.render(e,r);null!=t&&(s.createChildGeoms(),s.childGeoms.push(t)),0<this.area.chart.series.count&&this.renderArguments(e,s,this.area.chart.series.getByIndex(0));var t=this.getSeries();return this.renderSeries(e,r,s,t),s}static centerArea(e){return e.width>e.height?e.width=e.height:e.height=e.width,e}measureLabels(r,s){if(0==this.valuesCount)return s;let n=this.area;if(null!=n.xAxis&&n.xAxis.visible&&null!=n.yAxis.info.stripPositions){var l=n.yAxis.info.stripPositions[n.yAxis.info.stripPositions.length-1]+4*r.options.zoom;let e=0;var a=360/this.valuesCount,o;let t=0,i=s.clone();for(o of this.points){var h=e<this.arguments.length?this.arguments[e]:null,u=new ee(this.centerPoint.x+l*o.x,this.centerPoint.y+l*o.y),h=n.xAxis.core.getLabelText(h),h=n.xAxis.xCore.getLabelRect(r,u,h,t).clone();h.isEmpty||(i=ne.union(i,h)),t+=a,e++}var d=s.left-i.left,m=i.right-s.right,c=s.top-i.top,S=i.bottom-s.bottom;0<d&&(s.width-=d),0<m&&(s.width-=m),0<c&&(s.height-=c),0<S&&(s.height-=S)}return s}renderArguments(r,s,n){if(0==this.valuesCount)return;let l=this.area;if(null!=l.xAxis&&l.xAxis.visible&&null!=l.yAxis.info.stripPositions){var a=l.yAxis.info.stripPositions[l.yAxis.info.stripPositions.length-1]+4*r.options.zoom;let t=0;var o=360/this.valuesCount,h;let i=0;for(h of this.points){var u=t<this.arguments.length?this.arguments[t]:null;let e=new ee(this.centerPoint.x+a*h.x,this.centerPoint.y+a*h.y);e.x-=s.clientRectangle.x,e.y-=s.clientRectangle.y;var u=l.xAxis.xCore.renderLabel(r,n,e,u,i,t,this.valuesCount);null!=u&&(s.createChildGeoms(),s.childGeoms.push(u)),i+=o,t++}}}renderSeries(t,i,r,e){let s=[],n=new Q;for(var l of e){let e=n.get(l.stimulsoft().getType());null==e&&(e=[],s.push(e),n.set(l.stimulsoft().getType(),e)),e.push(l)}for(var a of s){let e=a.stimulsoft().toArray();e[0].core.renderSeries(t,i,r,e)}}prepareInfo(e){let t=this.area;this.valuesCount=0;var i=this.getSeries();if(0<i.length)for(let e=0;e<i.length;e++){var r=i[e].values;null!=r&&(this.valuesCount=Math.max(r.length,this.valuesCount))}if(this.arguments=[],0<i.length){let t=i[0];for(var s of i)if(s.arguments.length==this.valuesCount){t=s;break}for(let e=0;e<this.valuesCount;e++)e<t.arguments.length&&this.arguments.push(t.arguments[e].toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator))}else this.arguments.push("1"),this.arguments.push("2"),this.arguments.push("3"),this.arguments.push("4"),this.arguments.push("5");this.centerPoint=new ee(e.x+e.width/2,e.y+e.height/2);let n;n=0<this.valuesCount?360/this.valuesCount:360/5,this.points=[];let l=0;while(l<360){var a=(l-90)*Math.PI/180,a=new ee(Math.cos(a),Math.sin(a));if(this.points.push(a),l+=n,this.points.length==this.valuesCount)break}let o=0,h=0;if(t.yAxis.range.auto){let t=!0;for(let e=0;e<i.length;e++){var u=i[e].values;if(null!=u)for(var d of u){if(null==d)continue;t?(o=d,h=d,t=!1):(o=Math.min(o,d),h=Math.max(h,d))}}0==i.length&&(h=1),Math.abs(o)>h&&(h=Math.abs(o)),0==h&&0==o&&(h=1),o=0}else o=t.yAxis.range.minimum,h=t.yAxis.range.maximum;this.createStripLinesAxis(t.yAxis,o,h),null!=t.yAxis.info.stripLines&&0<t.yAxis.info.stripLines.count&&(t.yAxis.info.minimum=t.yAxis.info.stripLines.getByIndex(t.yAxis.info.stripLines.count-1).value,t.yAxis.info.maximum=t.yAxis.info.stripLines.getByIndex(0).value),t.yAxis.info.dpi=.5*e.height/t.yAxis.info.range,this.calculateStep(t.yAxis,0,e.height/2);var e={ref:t.yAxis.info.labelsCollection};this.calculatePositions(t.yAxis,e,0<t.yAxis.labels.step?M.trunc(t.yAxis.labels.step):1,!1),t.yAxis.info.labelsCollection=e.ref;var e={ref:t.yAxis.info.ticksCollection};this.calculatePositions(t.yAxis,e,0<t.yAxis.ticks.step?M.trunc(t.yAxis.ticks.step):1,!0),t.yAxis.info.ticksCollection=e.ref}createStripLinesAxis(e,t,i){let r=this.area,s=r.yAxis.labels.step;0==s&&(s=te.d.StiStripLineCalculatorXF.getInterval(t,i,6)),r.yAxis.info.stripLines=te.d.StiStripLineCalculatorXF.getStripLines(t,i,s,!1);for(var n of r.yAxis.info.stripLines.list)n.valueObject=Z.format("{0}",n.valueObject)}calculateStep(e,t,i){2<=e.info.stripLines.count?(e.info.step=Math.abs((e.info.stripLines.getByIndex(1).value-e.info.stripLines.getByIndex(0).value)*e.info.dpi),e.yCore.calculateStripPositions(t,i)):e.info.step=1}calculatePositions(i,e,r,s){let n=[],l=0;if(null!=i.info.stripPositions){var a=i.info.stripPositions.length;for(let t=0;t<a;t++){if(0==l){let e=new te.d.StiStripPositionXF;var o=t;e.stripLine=i.info.stripLines.getByIndex(o),e.position=i.info.stripPositions[o],n.push(e)}l++,l!=r&&s||(l=0)}}e.ref=n}};te.d.StiRadarAreaCoreXF=n}te.d.StiRadarAreaAreaCoreXF=class extends te.d.StiRadarAreaCoreXF{get localizedName(){return N.get("Chart","RadarArea")}get position(){return te.d.StiChartAreaPosition.RadarArea}constructor(e){super(e)}},te.d.StiRadarLineAreaCoreXF=class extends te.d.StiRadarAreaCoreXF{get localizedName(){return N.get("Chart","RadarLine")}get position(){return te.d.StiChartAreaPosition.RadarLine}constructor(e){super(e)}},te.d.StiRadarPointAreaCoreXF=class extends te.d.StiRadarAreaCoreXF{get localizedName(){return N.get("Chart","RadarPoint")}get position(){return te.d.StiChartAreaPosition.RadarPoint}constructor(e){super(e)}},te.d.StiRangeAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("PropertyMain","Range")}get position(){return te.d.StiChartAreaPosition.Range}prepareRange(e,t,r,s){let n=!0,l=!0,a=!1,o=!1;r.info.maximum=0,r.info.minimum=0,s.info.maximum=0,s.info.minimum=0;var h=this.getSeries();for(let e=0;e<h.length;e++){var u=h[e];let t=u.values,i=u.valuesEnd;var d=Math.min(t.length,i.length);for(let e=0;e<d;e++){var m=null!=t[e]?t[e].stimulsoft().toNumber():0,c=null!=i[e]?i[e].stimulsoft().toNumber():0,S=Math.max(m,c),c=Math.min(m,c);u.yAxis==te.d.StiSeriesYAxis.LeftYAxis?n?(a=!0,r.info.maximum=S,r.info.minimum=c,n=!1):(a=!0,r.info.maximum=Math.max(S,r.info.maximum),r.info.minimum=Math.min(c,r.info.minimum)):l?(o=!0,s.info.maximum=S,s.info.minimum=c,l=!1):(o=!0,s.info.maximum=Math.max(S,s.info.maximum),s.info.minimum=Math.min(c,s.info.minimum))}}a||(r.info.maximum=s.info.maximum,r.info.minimum=s.info.minimum),o||(s.info.maximum=r.info.maximum,s.info.minimum=r.info.minimum)}constructor(e){super(e)}},te.d.StiRangeBarAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{createStripLinesXAxis(t){var e,i;t.info.stripLines.clear(),t.info.stripLines.add2(0,0);for(i of this.getSeries())for(var r of i.arguments){let e=!0;for(var s of t.info.stripLines.list)s.valueObject.toString()==r.toString()&&(e=!1);e&&t.info.stripLines.add2(r,t.info.stripLines.count)}t.info.stripLines.add2("",t.info.stripLines.count),0<t.info.stripLines.count&&(t.area.xAxis.showEdgeValues||(t.info.stripLines.getByIndex(0).valueObject="",t.info.stripLines.getByIndex(t.info.stripLines.count-1).valueObject=""))}prepareRange(e,t,i,r){var s,n;e.info.maximum=0,e.info.minimum=0,i.info.maximum=0,i.info.minimum=0;let l=!0;for(n of this.getSeries()){for(var a of n.values)null!=a&&(l?(l=!1,i.info.maximum=a,i.info.minimum=a):(i.info.maximum=Math.max(i.info.maximum,a),i.info.minimum=Math.min(i.info.minimum,a)));for(var o of n.valuesEnd)null!=o&&(i.info.maximum=Math.max(i.info.maximum,o),i.info.minimum=Math.min(i.info.minimum,o))}r.info.maximum=i.info.maximum,r.info.minimum=i.info.minimum}get localizedName(){return N.get("Chart","RangeBar")}get position(){return te.d.StiChartAreaPosition.RangeBar}constructor(e){super(e)}},te.d.StiSplineRangeAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","SplineRange")}get position(){return te.d.StiChartAreaPosition.SplineRange}prepareRange(e,t,r,s){let n=!0,l=!0,a=!1,o=!1;r.info.maximum=0,r.info.minimum=0,s.info.maximum=0,s.info.minimum=0;var h=this.getSeries();for(let e=0;e<h.length;e++){var u=h[e];let t=u.values,i=u.valuesEnd;var d=Math.min(t.length,i.length);for(let e=0;e<d;e++){var m=null!=t[e]?t[e].stimulsoft().toNumber():0,c=null!=i[e]?i[e].stimulsoft().toNumber():0,S=Math.max(m,c),c=Math.min(m,c);u.yAxis==te.d.StiSeriesYAxis.LeftYAxis?n?(a=!0,r.info.maximum=S,r.info.minimum=c,n=!1):(a=!0,r.info.maximum=Math.max(S,r.info.maximum),r.info.minimum=Math.min(c,r.info.minimum)):l?(o=!0,s.info.maximum=S,s.info.minimum=c,l=!1):(o=!0,s.info.maximum=Math.max(S,s.info.maximum),s.info.minimum=Math.min(c,s.info.minimum))}}a||(r.info.maximum=s.info.maximum,r.info.minimum=s.info.minimum),o||(s.info.maximum=r.info.maximum,s.info.minimum=r.info.minimum)}constructor(e){super(e)}},te.d.StiSteppedRangeAreaCoreXF=class extends te.d.StiClusteredColumnAreaCoreXF{get localizedName(){return N.get("Chart","SteppedRange")}get position(){return te.d.StiChartAreaPosition.SteppedRange}prepareRange(e,t,r,s){let n=!0,l=!0,a=!1,o=!1;r.info.maximum=0,r.info.minimum=0,s.info.maximum=0,s.info.minimum=0;var h=this.getSeries();for(let e=0;e<h.length;e++){var u=h[e];let t=u.values,i=u.valuesEnd;var d=Math.min(t.length,i.length);for(let e=0;e<d;e++){var m=null!=t[e]?t[e].stimulsoft().toNumber():0,c=null!=i[e]?i[e].stimulsoft().toNumber():0,S=Math.max(m,c),c=Math.min(m,c);u.yAxis==te.d.StiSeriesYAxis.LeftYAxis?n?(a=!0,r.info.maximum=S,r.info.minimum=c,n=!1):(a=!0,r.info.maximum=Math.max(S,r.info.maximum),r.info.minimum=Math.min(c,r.info.minimum)):l?(o=!0,s.info.maximum=S,s.info.minimum=c,l=!1):(o=!0,s.info.maximum=Math.max(S,s.info.maximum),s.info.minimum=Math.min(c,s.info.minimum))}}a||(r.info.maximum=s.info.maximum,r.info.minimum=s.info.minimum),o||(s.info.maximum=r.info.maximum,s.info.minimum=r.info.minimum)}constructor(e){super(e)}},te.d.StiStackedAreaAreaCoreXF=class extends te.d.StiStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","StackedArea")}get position(){return te.d.StiChartAreaPosition.StackedArea}constructor(e){super(e)}},te.d.StiStackedLineAreaCoreXF=class extends te.d.StiStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","StackedLine")}get position(){return te.d.StiChartAreaPosition.StackedLine}constructor(e){super(e)}},te.d.StiStackedSplineAreaAreaCoreXF=class extends te.d.StiStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","StackedSplineArea")}get position(){return te.d.StiChartAreaPosition.StackedSplineArea}constructor(e){super(e)}},te.d.StiStackedSplineAreaCoreXF=class extends te.d.StiStackedColumnAreaCoreXF{get localizedName(){return N.get("Chart","StackedSpline")}get position(){return te.d.StiChartAreaPosition.StackedSpline}constructor(e){super(e)}},te.d.StiStockAreaCoreXF=class extends te.d.StiCandlestickAreaCoreXF{get localizedName(){return N.get("Chart","Stock")}get position(){return te.d.StiChartAreaPosition.Stock}constructor(e){super(e)}},te.d.StiSunburstAreaCoreXF=class extends te.d.StiAreaCoreXF{render(e,t){var i=new te.d.StiSunburstAreaGeom(this.area,t);let r=this.getSeries();return 0<r.length&&r[0].core.renderSeries(e,t,i,r),i}prepareInfo(e){}get localizedName(){return N.get("Chart","Sunburst")}get position(){return te.d.StiChartAreaPosition.Sunburst}constructor(e){super(e)}};let Ue=J.Base.Helpers.StiValueHelper;te.d.StiTreemapAreaCoreXF=class extends te.d.StiAreaCoreXF{render(e,t){var i=new te.d.StiTreemapAreaGeom(this.area,t),r=this.getSeries(),s;let n=[];for(s of r){let e=[];for(var l of s.values)e.push(Ue.tryToNumber(l));n.push(e.stimulsoft().toList().sum())}var a=new ne(0,0,t.width,t.height),t=this.area.core.normalizeDataForArea(n,a.width*a.height),t=this.area.core.squarify(t,[],a,[]);return this.renderSeries(e,t,a,i,r),i}renderSeries(t,i,e,r,s){for(let e=0;e<s.length;e++)i.length-1>=e&&s[e].core.renderSeries(t,i[e],r,s.stimulsoft().toArray())}cutArea(e,t){let i;var r,s,s,t;return i=e.width>=e.height?(r=t/e.height,s=e.width-r,new ne(e.x+r,e.y,s,e.height)):(s=t/e.width,t=e.height-s,new ne(e.x,e.y+s,e.width,t)),i}squarify(e,t,i,r){if(0==e.length)return r.stimulsoft().addRange(this.getCoordinates(i,t)),r;var s=Math.min(i.width,i.height),n=e[0],n,l;return this.improvesRatio(t,n,s)?(t.push(n),this.squarify(e.stimulsoft().toList().skip(1),t,i,r)):(n=this.cutArea(i,t.stimulsoft().toList().sum()),r.stimulsoft().addRange(this.getCoordinates(i,t)),this.squarify(e,[],n,r)),r}improvesRatio(e,t,i){if(0==e.length)return!0;let r=e.stimulsoft().clone();r.push(t);var e=this.calculateRatio(e,i),s;return this.calculateRatio(r,i)<=e}calculateRatio(e,t){var i=e.stimulsoft().toList().sum(),r=Math.pow(t,2)*e.stimulsoft().toList().max()/Math.pow(i,2),e=Math.pow(i,2)/(Math.pow(t,2)*e.stimulsoft().toList().min());return Math.max(r,e)}normalizeDataForArea(t,e){let i=[];var r=t.stimulsoft().toList().sum();if(0==r)return i;var s=e/r;for(let e=0;e<t.length;e++)i.push(t[e]*s);return i}getCoordinates(e,t){let i=[],r=e.x,s=e.y;var n=t.stimulsoft().toList().sum()/e.height,l=t.stimulsoft().toList().sum()/e.width;if(e.width>=e.height)for(let e=0;e<t.length;e++)i.push(new ne(r,s,n,t[e]/n)),s+=t[e]/n;else for(let e=0;e<t.length;e++)i.push(new ne(r,s,t[e]/l,l)),r+=t[e]/l;return i}prepareInfo(e){}get localizedName(){return N.get("Chart","Treemap")}get position(){return te.d.StiChartAreaPosition.Treemap}constructor(e){super(e)}};let et=J.System.Drawing.StringTrimming,tt=J.System.Drawing.StringFormatFlags,it=J.Base.Context.StiFontGeom;{let e=class{constructor(e){this.axis=e}implements(){return e.implementsStiAxisCoreXF||(e.implementsStiAxisCoreXF=[p,te.d.IStiApplyStyle,te.d.IStiAxisCoreXF]),e.implementsStiAxisCoreXF}is(e){if(e instanceof J.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.axis.allowApplyStyle&&(this.axis.lineColor=e.core.axisLineColor,this.axis.labels.core.applyStyle(e),this.axis.title.core.applyStyle(e))}getStartFromZero(){if(1==this.axis.area.axisCore.valuesCount)return!0;if(null!=this.axis&&null!=this.axis.range&&!this.axis.range.auto)return!0;return null==this.axis||this.axis.startFromZero}render(e,t){return null}renderView(e,t){return null}calculateStripPositions(t,i){if(i-=t,t=0,null==this.axis.info.stripLines||this.axis.info.stripLines.count<2)this.axis.info.stripPositions=[];else{let e=!1;if(0<this.axis.area.chart.series.count&&this.axis.area.chart.series.getByIndex(0).is(te.d.StiScatterSeries)&&(e=!0),this.axis.logarithmicScale&&e){var r=this.axis.info.stripLines.count;this.axis.info.stripPositions=ie.create(Number,this.axis.info.stripLines.count),this.axis.info.stripPositions[0]=t,this.axis.info.stripPositions[this.axis.info.stripPositions.length-1]=i;var s=this.axis.info.stripLines.getByIndex(0).value,r=this.axis.info.stripLines.getByIndex(r-1).value,n=i/(M.log10(r)-M.log10(s));for(let e=1;e<this.axis.info.stripPositions.length-1;e++){var l=Math.abs(M.log10(Math.abs(this.axis.info.stripLines.getByIndex(e).value))*n-M.log10(Math.abs(this.axis.info.stripLines.getByIndex(e-1).value))*n);this.axis.info.stripPositions[e]=t+l,t=this.axis.info.stripPositions[e]}}else{this.axis.info.stripPositions=ie.create(Number,this.axis.info.stripLines.count),this.axis.info.stripPositions[0]=t,this.axis.info.stripPositions[this.axis.info.stripPositions.length-1]=i;for(let e=1;e<this.axis.info.stripPositions.length-1;e++)this.axis.info.stripPositions[e]=t+e*this.axis.info.step}}}getTicksMaxLength(e){return this.axis.core.ticksMaxLength*e.options.zoom}getArrowHeight(e){return 4*this.axis.core.arrowHeight*e.options.zoom}getLabelsSpaceAxis(e){return 5*e.options.zoom}getLabelsTwoLinesDestination(e){return 2*this.axis.labels.font.sizeInPoints*e.options.zoom}getFontGeom(e){var t;return it.changeFontSize(this.axis.labels.font,this.axis.labels.font.size*e.options.zoom)}getTextAlignment(){if(this.axis.is(te.d.IStiYAxis)){var e=this.axis;if(this.axis.labels.placement==te.d.StiLabelsPlacement.TwoLines){if(e.core.isLeftSide)return z.Right;if(e.core.isRightSide)return z.Left}}return this.axis.labels.textAlignment}getStringFormatGeom(e){let t=e.getGenericStringFormat();var e;return t.trimming=et.None,this.axis.labels.wordWrap||(t.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap),0<this.axis.labels.width&&((e=this.getTextAlignment())==z.Left?t.alignment=F.Near:e==z.Right?t.alignment=F.Far:e==z.Center&&(t.alignment=F.Center)),t}getAxisTitleSize(e){if(Z.isNullOrEmpty(this.axis.title.text))return G.empty;var t=it.changeFontSize(this.axis.title.font,this.axis.title.font.size*e.options.zoom),i=e.measureString(this.axis.title.text,t);switch(this.axis.title.direction){case te.d.StiDirection.LeftToRight:case te.d.StiDirection.RightToLeft:return i;case te.d.StiDirection.BottomToTop:case te.d.StiDirection.TopToBottom:return new G(i.height,i.width)}return G.empty}getAngleTitle(){let e=0;switch(this.axis.title.direction){case te.d.StiDirection.LeftToRight:e=0;break;case te.d.StiDirection.RightToLeft:e=180;break;case te.d.StiDirection.BottomToTop:e=-90;break;case te.d.StiDirection.TopToBottom:e=90;break}return e}getCorrectionFontSize(e,t,i){switch(this.axis.title.direction){case te.d.StiDirection.LeftToRight:case te.d.StiDirection.RightToLeft:e.width<t.width&&(i=e.width/t.width*i);break;case te.d.StiDirection.BottomToTop:case te.d.StiDirection.TopToBottom:e.height<t.height&&(i=e.height/t.height*i);break}return i}checkUseMaxWidth(e,t,i){switch(i.ref=0,this.axis.title.direction){case te.d.StiDirection.LeftToRight:case te.d.StiDirection.RightToLeft:if(e.width<t.width)return i.ref=e.width,!0;break;case te.d.StiDirection.BottomToTop:case te.d.StiDirection.TopToBottom:if(e.height<t.height)return i.ref=e.width,!0;break}return!1}get ticksMaxLength(){return this.axis.visible?Math.max(this.axis.ticks.visible?this.axis.ticks.length:0,this.axis.ticks.minorVisible?this.axis.ticks.minorLength:0):0}get arrowWidth(){return 3}get arrowHeight(){if(this.is(te.d.StiXAxisCoreXF))return this.axis.area.reverseHor?-5:5;if(this.is(te.d.StiYAxisCoreXF))return this.axis.area.reverseVert?-5:5;return 0}get info(){return this.axis.info}set info(e){this.axis.info=e}};e.defaultScrollBarSize=12,e.defaultScrollBarSmallFactor=.01,e.defaultScrollBarFirstRecallTime=.3,e.defaultScrollBarOtherRecallTime=.05,te.d.StiAxisCoreXF=e}{let e=class{constructor(){this.dpi=0,this.step=0,this.stripPositions=null,this.ticksCollection=null,this.labelsCollection=null,this.minimum=0,this.maximum=0}implements(){return e.implementsStiAxisInfoXF||(e.implementsStiAxisInfoXF=[p,te.d.IStiAxisInfoXF]),e.implementsStiAxisInfoXF}clone(){let e=this.stimulsoft().memberwiseClone();return e.stripLines=this.stripLines.clone(),e}get range(){return this.maximum-this.minimum}};te.d.StiAxisInfoXF=e}te.d.StiAxisLabelInfoXF=class{constructor(){this.clientRectangle=ne.empty,this.textPoint=ee.empty}};{let e=class{constructor(e){this.labels=e}implements(){return e.implementsStiAxisLabelsCoreXF||(e.implementsStiAxisLabelsCoreXF=[te.d.IStiApplyStyle,p,te.d.IStiAxisLabelsCoreXF]),e.implementsStiAxisLabelsCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.labels.allowApplyStyle&&(this.labels.color=e.core.axisLabelsColor)}};te.d.StiAxisLabelsCoreXF=e}{let e=class{constructor(e){this.title=e}implements(){return e.implementsStiAxisTitleCoreXF||(e.implementsStiAxisTitleCoreXF=[te.d.IStiApplyStyle,p,te.d.IStiAxisTitleCoreXF]),e.implementsStiAxisTitleCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.title.allowApplyStyle&&(this.title.color=e.core.axisTitleColor)}};te.d.StiAxisTitleCoreXF=e}let rt=J.Base.Drawing.StiRotationMode,st=te.e.TextFormats.StiDateFormatService,nt=te.e.TextFormats.StiTimeFormatService;te.d.StiXAxisCoreXF=class extends te.d.StiAxisCoreXF{constructor(e){super(e)}getStartFromZero(){if(null!=this.axis.info.labelsCollection&&this.isArgumentDateTime1(this.axis.info.labelsCollection)&&(this.axis.area.is(te.d.StiScatterArea)||this.axis.area.is(te.d.StiGanttArea)))return!1;return super.getStartFromZero()}render(e,t){if(!this.axis.visible)return null;let i=this.getAxisRect(e,t,!1,!1,!0,!1).clone();i.x=0,i.y=0,this.axis.interaction.showScrollBar&&this.axis.is(te.d.IStiXTopAxis)&&this.axis.area.reverseVert&&(i.y+=te.d.StiAxisCoreXF.defaultScrollBarSize*e.options.zoom);var t=new te.d.StiXAxisGeom(this.axis,i,!1);return this.renderLabels(e,i,t),this.renderTitle(e,i,t),t}renderView(e,t){if(!this.axis.visible)return null;var t=this.getAxisRect(e,t,!1,!1,!0,!0).clone();return new te.d.StiXAxisViewGeom(this.axis,t,!1)}renderScrollBar(t,s,n){if(this.axis.interaction.showScrollBar){let i=s.clone();i.x=0,i.height=te.d.StiAxisCoreXF.defaultScrollBarSize*t.options.zoom,this.axis.is(te.d.IStiXTopAxis)&&!this.axis.area.reverseVert||this.axis.is(te.d.IStiXBottomAxis)&&this.axis.area.reverseVert?i.y=s.height-i.height:i.y=0;let r=new te.d.StiHorzScrollBarGeom(this.axis,i);if(n.createChildGeoms(),n.childGeoms.push(r),i.x=0,i.y=0,i.inflate(-2,-2),this.axis.interaction.rangeScrollEnabled){let e=i.clone();e.width=i.height;var l=new te.d.StiLeftButtonGeom(this.axis,e);r.createChildGeoms(),r.childGeoms.push(l);let t=i.clone();t.width=i.height,t.x=i.right-t.width;var a=new te.d.StiRightButtonGeom(this.axis,t);r.createChildGeoms(),r.childGeoms.push(a),i.inflate(-i.height-2,0)}let e=i.clone();var l=this.axis.area.xAxis,a=this.axis.area.core,o,l,o;l.range.auto||(o=i.width/a.scrollRangeX,l=a.scrollValueX*o,o=a.scrollViewX<a.scrollRangeX?a.scrollViewX*o:a.scrollRangeX*o,e=new ne(l+i.x,i.y,o,i.height));var o=new te.d.StiHorzTrackBarGeom(this.axis,e,r);r.createChildGeoms(),r.childGeoms.push(o)}}renderCenter(e,t){if(!this.axis.visible)return null;if(0<=this.axis.area.yAxis.info.minimum)return null;let i=this.getCenterAxisRect(e,t,!1,!1,!0).clone();return i.x=0,i.y=0,new te.d.StiXAxisGeom(this.axis,i,!0)}renderCenterView(e,t){if(!this.axis.visible)return null;if(0<=this.axis.area.yAxis.info.minimum)return null;var t=this.getCenterAxisRect(e,t,!1,!1,!0).clone(),i;return new te.d.StiXAxisViewGeom(this.axis,t,!0)}getLabelText(e,t){return this.getLabelText2(e.valueObject,e.value,t)}getLabelText2(i,e,r){null==i&&(i=""),this.storedCulture=le.currentCulture;var s=this.axis.area.chart.report.culture;try{if(null!=this.axis.labels.formatService&&!this.axis.labels.formatService.is(X)){if(i instanceof v)return this.axis.labels.formatService.is(st)||this.axis.labels.formatService.is(nt)?`${this.axis.labels.textBefore}${this.axis.labels.formatService.format(i)}${this.axis.labels.textAfter}`:`${this.axis.labels.textBefore}${i}${this.axis.labels.textAfter}`;return`${this.axis.labels.textBefore}${this.axis.labels.formatService.format(e)}${this.axis.labels.textAfter}`}Z.isNullOrEmpty(this.axis.area.chart.report.culture)||(le.currentCulture=le.cultures[s]);let t="";if(null!=r&&(t=r.format),null!=t&&0!=t.trim().length||(t=this.axis.labels.format),null!=t&&0!=t.trim().length){if("string"==typeof i){let e=i;var n=e.stimulsoft().toNumber(),l;0<e.length&&!isNaN(n)?i=n:null!=(l=v.fromString(i.toString(),!1))&&(i=l)}else if(null==i)return"";if(!te.d.StiChartOptions.oldChartPercentMode&&t.stimulsoft().startsWith("P")){let e=0;return 1<t.length&&(e=t.stimulsoft().remove(0,1).stimulsoft().toNumber()),Z.format("{0}{1:N"+e.toString()+"}{2}{3}",this.axis.labels.textBefore,i,"%",this.axis.labels.textAfter)}return Z.format("{0}{1:"+t+"}{2}",this.axis.labels.textBefore,i,this.axis.labels.textAfter)}return Z.format("{0}{1}{2}",this.axis.labels.textBefore,i,this.axis.labels.textAfter)}catch(e){J.System.StiError.showError(e,!1)}finally{Z.isNullOrEmpty(s)||(le.currentCulture=this.storedCulture)}return i.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)}get isLabelsAngleByWidth(){return this.axis.labels.angle<30||150<this.axis.labels.angle}checkAutoAngleLabels(s,n){if(this.axis.labels.placement!=te.d.StiLabelsPlacement.AutoRotation)return!1;let l=[];if(null!=this.axis.info.labelsCollection){var a=this.getStringFormatGeom(s),o=this.getFontGeom(s);let t=rt.CenterCenter;var h=-this.axis.labels.angle;let i=ee.empty;t=this.isTopSide?rt.CenterBottom:rt.LeftCenter;let r=0,e=0;var u=this.axis.area.reverseVert?this.isBottomSide:this.isTopSide,d;for(d of this.axis.info.labelsCollection){if(u&&this.axis.area.yRightAxis.arrowStyle!=te.d.StiArrowStyle.None&&0==e){l.push(new te.d.StiAxisLabelInfoXF),e++;continue}if(u&&this.axis.area.yAxis.arrowStyle!=te.d.StiArrowStyle.None&&e==this.axis.info.stripLines.count-1){l.push(new te.d.StiAxisLabelInfoXF),e++;continue}var m=this.getLabelText(d.stripLine,null),c=d.position;if(i=this.isTopSide?new ee(c,n.height-(this.getTicksMaxLength(s)+this.getLabelsSpaceAxis(s))):new ee(c,this.getTicksMaxLength(s)+this.getLabelsSpaceAxis(s)),this.axis.labels.placement!=te.d.StiLabelsPlacement.None){var c=s.measureRotatedString3(m,o,i,a,t,h,M.trunc(this.axis.labels.width*s.options.zoom));let e=new te.d.StiAxisLabelInfoXF;e.angle=h,e.clientRectangle=c,e.rotationMode=t,e.textPoint=i,e.text=m,e.stripLine=d.stripLine,l.push(e),this.isLabelsAngleByWidth&&(r=Math.max(r,c.width))}else l.push(new te.d.StiAxisLabelInfoXF);e++}for(let t=1;t<l.length;t++){var S=l[t-1].clientRectangle;let e=new ne(S.x,S.y,Math.ceil(S.width),Math.ceil(S.height));var g=l[t].clientRectangle,p;if(S.height/Math.sqrt(2)+S.width/Math.sqrt(2)>this.axis.area.chart.stimulsoft().as(te.e.StiChart).core.fullRectangle.height/4)return!1;if(e.intersectsWith(g))return!0}}return!1}measureStripLines(o,h){let u=[],d=null,m=-this.axis.labels.angle;var e=this.checkAutoAngleLabels(o,h),t,t,i;if(e&&(m=-45,d=this.axis.is(te.d.IStiXTopAxis)?rt.LeftBottom:rt.RightTop),null!=this.axis.info.labelsCollection&&this.axis.labels.placement!=te.d.StiLabelsPlacement.None){let i=0,r=0;for(var c of this.axis.info.labelsCollection){var S=this.axis.area.reverseVert?this.isBottomSide:this.isTopSide;if(S&&this.axis.area.yRightAxis.arrowStyle!=te.d.StiArrowStyle.None&&0==r){u.push(new te.d.StiAxisLabelInfoXF),r++;continue}if(S&&this.axis.area.yAxis.arrowStyle!=te.d.StiArrowStyle.None&&r==this.axis.info.stripLines.count-1){u.push(new te.d.StiAxisLabelInfoXF),r++;continue}var g=this.getLabelText(c.stripLine,null),p=c.position;if(this.axis.labels.placement!=te.d.StiLabelsPlacement.None){var f=this.getStringFormatGeom(o),S=this.getFontGeom(o);d=rt.CenterCenter;let e=ee.empty;d=this.isTopSide?(e=new ee(p,h.height-(this.getTicksMaxLength(o)+this.getLabelsSpaceAxis(o))),0==m?rt.CenterBottom:rt.LeftCenter):(e=new ee(p,this.getTicksMaxLength(o)+this.getLabelsSpaceAxis(o)),0==m?rt.CenterTop:rt.RightCenter),this.axis.labels.placement==te.d.StiLabelsPlacement.TwoLines&&0!=(1&r)&&(this.isTopSide&&(e.y-=this.getLabelsTwoLinesDestination(o)),this.isBottomSide&&(e.y+=this.getLabelsTwoLinesDestination(o)));var f=o.measureRotatedString3(g,S,e,f,d,m,M.trunc(this.axis.labels.width*o.options.zoom));let t=new te.d.StiAxisLabelInfoXF;t.angle=m,t.clientRectangle=f,t.rotationMode=d,t.textPoint=e,t.text=g,t.stripLine=c.stripLine,u.push(t),this.isLabelsAngleByWidth&&(i=Math.max(i,f.width))}else u.push(new te.d.StiAxisLabelInfoXF);r++}let s=1;this.axis.range.auto?e?(i=1.4*this.axis.labels.font.getHeight()*o.options.zoom,t=h.width/this.axis.info.stripLines.count,s=Math.ceil(i/t)):(this.isLabelsAngleByWidth||(i=1.5*this.axis.labels.font.sizeInPoints*o.options.zoom),t=h.width/this.axis.info.stripLines.count,1<i/t&&(s=M.trunc(te.d.StiStripLineCalculatorXF.getInterval(0,this.axis.info.labelsCollection.length,6)),this.axis.logarithmicScale&&(s=1))):s=M.trunc(Math.max(1,this.axis.step));let n=!1,l=0,a=0;if(this.axis.labels.placement==te.d.StiLabelsPlacement.TwoLines&&1<u.length&&(a=u[0].textPoint.y,l=u[1].textPoint.y),1==s||0!=this.axis.labels.step)return u;{let e=0,t=[];for(var w of u)0==e&&(this.axis.labels.placement==te.d.StiLabelsPlacement.TwoLines&&1<u.length&&(n=n?(w.textPoint.y=l,!1):(w.textPoint.y=a,!0)),t.push(w)),e++,e==s&&(e=0);return t}}return u}getCenterAxisRect(e,t,i,r,s){if(0<=this.axis.area.yAxis.info.minimum)return ne.empty;var n=-this.getTicksMaxLength(e);return new ne(0,n,t.width,this.getTicksMaxLength(e))}getAxisRect(t,i,e,r,s,n){let l=ne.empty;if(!this.axis.visible)return l;var a=this.measureStripLines(t,i);if(0==a.length)l=this.isTopSide?new ne(0,-this.getTicksMaxLength(t),i.width,this.getTicksMaxLength(t)):new ne(0,i.height,i.width,this.getTicksMaxLength(t));else{for(var o of a){if(o.clientRectangle.isEmptyF)continue;l=l.isEmpty?o.clientRectangle:ne.union(l,o.clientRectangle)}this.axis.interaction.showScrollBar&&n&&(l.height+=te.d.StiAxisCoreXF.defaultScrollBarSize*t.options.zoom),l.height+=this.getTicksMaxLength(t)+this.getLabelsSpaceAxis(t);var n=l.clone();this.isTopSide&&(l=new ne(0,-l.height,i.width,l.height)),this.isBottomSide&&(l=new ne(0,i.height,i.width,l.height)),r&&(l.x=n.x,l.width=n.width)}if(this.axis.arrowStyle!=te.d.StiArrowStyle.None&&e){let e=this.getArrowHeight(t);this.axis.area.reverseHor&&(e=-e),l=ne.union(l,new ne(i.width,l.y+l.height/2,e,1))}var t=this.getAxisTitleSize(t);return t.isEmpty||this.axis.title.position!=te.d.StiTitlePosition.Outside||(l.height+=t.height,0==l.width&&(l.width=t.width),this.isTopSide&&(l.y-=t.height)),l}renderLabels(h,e,t){if(null!=this.axis.info.stripLines&&this.axis.labels.placement!=te.d.StiLabelsPlacement.None){var e=this.measureStripLines(h,e),i;t.createChildGeoms();let o=this.axis.area.xAxis;if(this.isArgumentDateTime2(e)&&null!=o&&o.dateTimeStep.step!=te.d.StiTimeDateStep.None){let e,i;var u=o.info.labelsCollection,d,m;let r=[],s="",n=!0,l=0;for(let t=0;t<u.length;t++){if(null==u[t].stripLine.valueObject)continue;switch(e=u[t].stripLine.valueObject,i=t<u.length-2&&!o.area.is(te.d.StiScatterArea)?u[t+1].stripLine.valueObject:e,n&&(l=u[t].position,n=!1),this.axis.area.xAxis.dateTimeStep.step){case te.d.StiTimeDateStep.Day:e.toString("yyyyMMMMdd")==i.toString("yyyyMMMMdd")&&t!=u.length-2||(s=e.toString("dd"));break;case te.d.StiTimeDateStep.Hour:e.toString("yyyyMMMMddHH")==i.toString("yyyyMMMMddHH")&&t!=u.length-2||(s=e.toString("HH"));break;case te.d.StiTimeDateStep.Minute:e.toString("yyyyMMMMddHHmm")==i.toString("yyyyMMMMddHHmm")&&t!=u.length-2||(s=e.toString("mm"));break;case te.d.StiTimeDateStep.Month:e.toString("yyyyMMMM")==i.toString("yyyyMMMM")&&t!=u.length-2||(s=N.get("A_WebViewer","Month"+e.toString("MMMM")));break;case te.d.StiTimeDateStep.Second:e.toString("yyyyMMMMddHHmmss")==i.toString("yyyyMMMMddHHmmss")&&t!=u.length-2||(s=e.toString("ss"));break;case te.d.StiTimeDateStep.Year:e.toString("yyyy")==i.toString("yyyy")&&t!=u.length-2||(s=e.toString("yyyy"));break}if(""!=s){var c=new ee((u[t].position+l)/2,this.getTicksMaxLength(h)+this.getLabelsSpaceAxis(h)),S=0;let e=new te.d.StiAxisLabelInfoXF;e.angle=S,e.clientRectangle=h.measureRotatedString3(s,this.getFontGeom(h),c,this.getStringFormatGeom(h),rt.CenterCenter,S,M.trunc(this.axis.labels.width*h.options.zoom)),e.rotationMode=rt.CenterCenter,e.stripLine=u[t].stripLine,e.text=s,e.textPoint=c,r.push(e),n=!0,s=""}}n=!0;let a=[];for(let t=0;t<r.length-1;t++){switch(e=r[t].stripLine.valueObject,i=r[t+1].stripLine.valueObject,n&&(l=r[t].textPoint.x,n=!1),this.axis.area.xAxis.dateTimeStep.step){case te.d.StiTimeDateStep.Day:e.toString("yyyyMMMM")==i.toString("yyyyMMMM")&&t!=r.length-2||(s=N.get("A_WebViewer","Month"+e.toString("MMMM")));break;case te.d.StiTimeDateStep.Hour:e.toString("yyyyMMMMdd")==i.toString("yyyyMMMMdd")&&t!=r.length-2||(s=e.toString("dd"));break;case te.d.StiTimeDateStep.Minute:e.toString("yyyyMMMMddhh")==i.toString("yyyyMMMMddhh")&&t!=r.length-2||(s=e.toString("hh"));break;case te.d.StiTimeDateStep.Month:e.toString("yyyy")==i.toString("yyyy")&&t!=r.length-2||(s=e.toString("yyyy"));break;case te.d.StiTimeDateStep.Second:e.toString("yyyyMMMMddhhmm")==i.toString("yyyyMMMMddhhmm")&&t!=r.length-2||(s=e.toString("mm"));break;case te.d.StiTimeDateStep.Year:if(e.toString("yyyy")!=i.toString("yyyy")||t==r.length-2)continue;break}if(""!=s){var g=new ee((r[t+1].textPoint.x+l)/2,this.getTicksMaxLength(h)+2*this.getLabelsSpaceAxis(h)),p=0;let e=new te.d.StiAxisLabelInfoXF;e.angle=p,e.clientRectangle=h.measureRotatedString3(s,this.getFontGeom(h),g,this.getStringFormatGeom(h),rt.CenterCenter,p,M.trunc(this.axis.labels.width*h.options.zoom)),e.rotationMode=rt.CenterTop,e.stripLine=r[t].stripLine,e.text=s,e.textPoint=g,a.push(e),n=!0,s=""}}r.stimulsoft().addRange(a);for(d of r){d.clientRectangle.isEmpty||(m=new te.d.StiAxisLabelGeom(this.axis,d.clientRectangle,d.textPoint,d.text,d.stripLine,d.angle,d.rotationMode),t.childGeoms.push(m))}}else for(var i of e){i.clientRectangle.isEmpty||(i=new te.d.StiAxisLabelGeom(this.axis,i.clientRectangle,i.textPoint,i.text,i.stripLine,i.angle,i.rotationMode),t.childGeoms.push(i))}}}renderTitle(e,t,i){if(Z.isNullOrEmpty(this.axis.title.text))return;var r=this.getAxisTitleSize(e),s;let n=ne.empty;if(this.isTopSide){switch(this.axis.title.alignment){case F.Near:n=new ne(0,0,r.width,r.height);break;case F.Center:n=new ne((t.width-r.width)/2,0,r.width,r.height);break;case F.Far:n=new ne(t.width-r.width,0,r.width,r.height);break}this.axis.title.position==te.d.StiTitlePosition.Inside&&(n.y+=t.height)}if(this.isBottomSide){switch(this.axis.title.alignment){case F.Near:n=new ne(0,t.height-r.height,r.width,r.height);break;case F.Center:n=new ne((t.width-r.width)/2,t.height-r.height,r.width,r.height);break;case F.Far:n=new ne(t.width-r.width,t.height-r.height,r.width,r.height);break}this.axis.title.position==te.d.StiTitlePosition.Inside&&(n.y-=t.height)}let l=this.axis.title.font.size*e.options.zoom;this.axis.area.chart.isDashboard&&this.checkUseMaxWidth(t,n,{ref:0})&&(l=this.getCorrectionFontSize(t,n,l));var a=it.changeFontSize(this.axis.title.font,l),e=this.getAngleTitle(),a=new te.d.StiAxisTitleGeom(this.axis,n,e,this.axis.title.alignment,a);i.createChildGeoms(),i.childGeoms.push(a)}isArgumentDateTime1(e){for(var t of e)if(null!=t.stripLine.valueObject&&t.stripLine.valueObject instanceof v)return!0;return!1}isArgumentDateTime2(e){for(var t of e)if(null!=t.stripLine.valueObject&&t.stripLine.valueObject instanceof v)return!0;return!1}get dock(){return null}get isTopSide(){return this.dock==te.d.StiXAxisDock.Top&&!this.axis.area.reverseVert||this.dock==te.d.StiXAxisDock.Bottom&&this.axis.area.reverseVert}get isBottomSide(){return this.dock==te.d.StiXAxisDock.Bottom&&!this.axis.area.reverseVert||this.dock==te.d.StiXAxisDock.Top&&this.axis.area.reverseVert}},te.d.StiXBottomAxisCoreXF=class extends te.d.StiXAxisCoreXF{get dock(){return te.d.StiXAxisDock.Bottom}constructor(e){super(e)}},te.d.StiXTopAxisCoreXF=class extends te.d.StiXAxisCoreXF{get dock(){return te.d.StiXAxisDock.Top}constructor(e){super(e)}};let lt=te.e.TextFormats.StiNumberFormatService;te.d.StiYAxisCoreXF=class extends te.d.StiAxisCoreXF{constructor(e){super(e)}render(e,t){if(!this.axis.visible)return null;let i=this.getAxisRect(e,t,!1,!1,!0,!1).clone();i.x=0,i.y=0,this.axis.interaction.showScrollBar&&this.axis.is(te.d.IStiYLeftAxis)&&this.axis.area.reverseHor&&(i.x+=te.d.StiAxisCoreXF.defaultScrollBarSize*e.options.zoom);var t=new te.d.StiYAxisGeom(this.axis,i.clone(),!1);return this.renderLabels(e,i.clone(),t),this.axis.range.auto||(this.axis.area.reverseVert?i.y=(this.axis.info.minimum-this.axis.range.minimum)*this.axis.info.dpi:i.y=(this.axis.info.maximum-this.axis.range.maximum)*this.axis.info.dpi,i.height=(this.axis.range.maximum-this.axis.range.minimum)*this.axis.info.dpi),this.renderTitle(e,i,t),t}renderView(e,t){if(!this.axis.visible)return null;var t=this.getAxisRect(e,t,!1,!1,!0,!0).clone();return new te.d.StiYAxisViewGeom(this.axis.stimulsoft().as(te.d.IStiYAxis),t,!1)}renderScrollBar(e,t,i){}renderCenter(e,t){if(!this.axis.visible)return null;if(0<=this.axis.area.xAxis.info.minimum)return null;let i=this.getCenterAxisRect(e,t,!1,!1,!0).clone();var r;return i.x=0,i.y=0,new te.d.StiYAxisGeom(this.axis,i,!0)}renderCenterView(e,t){if(!this.axis.visible)return null;if(0<=this.axis.area.xAxis.info.minimum)return null;var t=this.getCenterAxisRect(e,t,!1,!1,!0).clone(),i;return new te.d.StiYAxisViewGeom(this.axis,t,!0)}setTotalNumberCapacity(){let e=this.axis.labels.formatService.as(lt);var t,i;null!=e&&(t=this.axis.labels.calculatedStep,e.totalNumberCapacity=Math.floor((t<1?-1:1)*M.log10(t)+1))}getLabelText(e,t){let i=e.valueObject;null==i&&(i="");try{if(null!=this.axis.labels.formatService){if(this.setTotalNumberCapacity(),i instanceof v)return this.axis.labels.formatService.is(st)||this.axis.labels.formatService.is(nt)?`${this.axis.labels.textBefore}${this.axis.labels.formatService.format(i)}${this.axis.labels.textAfter}`:`${this.axis.labels.textBefore}${i}${this.axis.labels.textAfter}`;return`${this.axis.labels.textBefore}${this.axis.labels.formatService.format(e.value)}${this.axis.labels.textAfter}`}if(null!=this.axis.labels.format&&0!=this.axis.labels.format.trim().length){this.storedCulture=le.currentCulture;var r=this.axis.area.chart.report.culture;Z.isNullOrEmpty(this.axis.area.chart.report.culture)||(le.currentCulture=le.cultures[r]);try{if("string"==typeof i&&(i=i.stimulsoft().toNumber()),!te.d.StiChartOptions.oldChartPercentMode&&this.axis.labels.format.stimulsoft().startsWith("P")){let e=0;return 1<this.axis.labels.format.length&&(e=parseInt(this.axis.labels.format.stimulsoft().remove(0,1))),Z.format("{0}{1:N"+e.toString()+"}{2}{3}",this.axis.labels.textBefore,i,"%",this.axis.labels.textAfter)}return Z.format("{0}{1:"+this.axis.labels.format+"}{2}",this.axis.labels.textBefore,i,this.axis.labels.textAfter)}catch(e){J.System.StiError.showError(e,!1)}finally{Z.isNullOrEmpty(r)||(le.currentCulture=this.storedCulture)}}return Z.format("{0}{1}{2}",this.axis.labels.textBefore,i,this.axis.labels.textAfter)}catch(e){J.System.StiError.showError(e,!1)}return i.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)}measureStripLines(l,a){let o=[];if(null!=this.axis.info.labelsCollection&&this.axis.labels.placement!=te.d.StiLabelsPlacement.None){var h=this.getAxisTitleSize(l),u;let n=0;for(u of this.axis.info.labelsCollection){var d=this.axis.area.reverseHor?this.isLeftSide:this.isRightSide;if(d&&this.axis.area.xTopAxis.arrowStyle!=te.d.StiArrowStyle.None&&0==n){o.push(new te.d.StiAxisLabelInfoXF),n++;continue}if(d&&this.axis.area.xAxis.arrowStyle!=te.d.StiArrowStyle.None&&n==this.axis.info.stripLines.count-1){o.push(new te.d.StiAxisLabelInfoXF),n++;continue}var m=this.getLabelText(u.stripLine,null),c=u.position,S=l.getGenericStringFormat(),g=it.changeFontSize(this.axis.labels.font,this.axis.labels.font.size*l.options.zoom),d=this.getTextAlignment();let e=rt.LeftCenter,t=-this.axis.labels.angle,i=ee.empty;this.isLeftSide?d==z.Left?(e=rt.LeftCenter,i=new ee(h.width,c),t=0):d==z.Center?(e=rt.CenterCenter,i=new ee((a.width-h.width)/2,c),t=0):(e=rt.RightCenter,i=new ee(a.width-this.getTicksMaxLength(l)-this.getLabelsSpaceAxis(l),c)):d==z.Left?(e=rt.LeftCenter,i=new ee(this.getTicksMaxLength(l)+this.getLabelsSpaceAxis(l),c)):t=(i=d==z.Center?(e=rt.CenterCenter,new ee((a.width-h.width)/2,c)):(e=rt.RightCenter,new ee(a.width-h.width,c)),0),this.axis.labels.placement==te.d.StiLabelsPlacement.TwoLines&&0!=(1&n)&&(this.isLeftSide&&(i.x-=this.getLabelsTwoLinesDestination(l)),this.isRightSide&&(i.x+=this.getLabelsTwoLinesDestination(l)));let r=l.measureRotatedString3(m,g,i,S,e,t,this.axis.labels.width*l.options.zoom);var p=this.axis.labels.width*l.options.zoom;if(0!=p){switch(e.toString()){case"3":case"4":case"5":r.x-=(p-r.width)/2;break;case"6":case"7":case"8":r.x-=p-r.width;break}r.width=p}let s=new te.d.StiAxisLabelInfoXF;s.angle=t,s.clientRectangle=r,s.rotationMode=e,s.textPoint=i,s.text=m,s.stripLine=u.stripLine,o.push(s),n++}}if(this.axis.range.auto){var e=this.axis.labels.font.getHeight()*l.options.zoom,r=a.height/this.axis.info.stripLines.count,s=Math.ceil(e/r);let t=0,i=new P;o.reverse();for(let e=0;e<o.length;e++)0==t&&i.push(o[e]),t++,t==s&&(t=0);return i}return o}getCenterAxisRect(e,t,i,r,s){if(0<=this.axis.area.xAxis.info.minimum)return ne.empty;var n=-this.getTicksMaxLength(e);return new ne(n,0,this.getTicksMaxLength(e),t.height)}getAxisRect(t,e,i,r,s,n){let l=ne.empty;if(!this.axis.visible)return l;var a=this.measureStripLines(t,e);if(0==a.length)l=this.isLeftSide?new ne(-this.getTicksMaxLength(t),0,this.getTicksMaxLength(t),e.height):new ne(e.width,0,this.getTicksMaxLength(t),e.height);else{for(var o of a){if(o.clientRectangle.isEmpty)continue;l=l.isEmpty?o.clientRectangle.clone():ne.union(l,o.clientRectangle)}this.axis.interaction.showScrollBar&&n&&(l.width+=te.d.StiAxisCoreXF.defaultScrollBarSize*t.options.zoom),l.width+=this.getTicksMaxLength(t)+this.getLabelsSpaceAxis(t);var n=l.clone();this.isLeftSide&&(l=new ne(-l.width,0,l.width,e.height)),this.isRightSide&&(l=new ne(e.width,0,l.width,e.height)),r&&(l.y=n.y,l.height=n.height)}if(this.axis.arrowStyle!=te.d.StiArrowStyle.None&&i){let e=this.getArrowHeight(t);this.axis.area.reverseVert&&(e=-e),l=ne.union(l,new ne(l.x,-e,1,e))}var t=this.getAxisTitleSize(t);return t.isEmpty||this.axis.title.position!=te.d.StiTitlePosition.Outside||(l.width+=t.width,this.isLeftSide&&(l.x-=t.width)),l}renderLabels(e,t,i){if(this.axis.labels.placement!=te.d.StiLabelsPlacement.None){var t=this.measureStripLines(e,t),r,s;i.createChildGeoms();for(r of t){r.clientRectangle.isEmpty||(s=new te.d.StiAxisLabelGeom(this.axis,r.clientRectangle,r.textPoint,r.text,r.stripLine,r.angle,r.rotationMode),i.childGeoms.push(s))}}}renderTitle(e,t,i){if(Z.isNullOrEmpty(this.axis.title.text))return;var r=this.getAxisTitleSize(e),s;let n=ne.empty;if(this.isLeftSide){switch(this.axis.title.alignment){case F.Near:n=new ne(0,t.height-r.height+t.y,r.width,r.height);break;case F.Center:n=new ne(0,(t.height-r.height)/2+t.y,r.width,r.height);break;case F.Far:n=new ne(0,t.y,r.width,r.height);break}this.axis.title.position==te.d.StiTitlePosition.Inside&&(n.x+=t.width)}if(this.isRightSide){switch(this.axis.title.alignment){case F.Near:n=new ne(t.width-r.width,t.height-r.height+t.y,r.width,r.height);break;case F.Center:n=new ne(t.width-r.width,(t.height-r.height)/2+t.y,r.width,r.height);break;case F.Far:n=new ne(t.width-r.width,t.y,r.width,r.height);break}this.axis.title.position==te.d.StiTitlePosition.Inside&&(n.x-=t.width)}let l=this.axis.title.font.size*e.options.zoom;this.axis.area.chart.isDashboard&&this.checkUseMaxWidth(t,n,{ref:0})&&(l=this.getCorrectionFontSize(t,n,l));var a=it.changeFontSize(this.axis.title.font,l),e=this.getAngleTitle(),a=new te.d.StiAxisTitleGeom(this.axis,n,e,this.axis.title.alignment,a);i.createChildGeoms(),i.childGeoms.push(a)}get dock(){return null}get isLeftSide(){return this.dock==te.d.StiYAxisDock.Left&&!this.axis.area.reverseHor||this.dock==te.d.StiYAxisDock.Right&&this.axis.area.reverseHor}get isRightSide(){return this.dock==te.d.StiYAxisDock.Right&&!this.axis.area.reverseHor||this.dock==te.d.StiYAxisDock.Left&&this.axis.area.reverseHor}},te.d.StiYLeftAxisCoreXF=class extends te.d.StiYAxisCoreXF{get dock(){return te.d.StiYAxisDock.Left}constructor(e){super(e)}},te.d.StiYRightAxisCoreXF=class extends te.d.StiYAxisCoreXF{get dock(){return te.d.StiYAxisDock.Right}getStartFromZero(){if(1==this.axis.area.axisCore.valuesCount)return!0;if(null!=this.axis&&null!=this.axis.range&&!this.axis.range.auto)return!1;return null==this.axis||this.axis.startFromZero}constructor(e){super(e)}};{let r=class{static getInterval1(e){let t=Math.abs(e),i=0;if(1<e){while(1<t)t/=10,i++;t=t<.15?.1:t<.3?.2:t<.75?.5:1;while(0<i)t*=10,i--}else if(0<e){while(10*t<1)t*=10,i++;t=t<.15?.1:t<.3?.2:t<.75?.5:1;while(0<i)t/=10,i--}return t}static getInterval(e,t,i){if(t==e)return 0;return r.getInterval1((t-e)/i)}static getStripLines(e,t,i,r){let s=new te.d.StiStripLinesXF;if(e==t)return s;var n=e,l=t,a=i;let o=0;o=M.trunc(n/a)*a;while(n<o+a)o-=a;var t=this.getCountAfterComma(a),i=this.getCountAfterComma(o),h=Math.max(t,i);while(o<l)o+=a,0<h&&(o=M.round2(o,h)),r?s.insert(0,new te.d.StiStripLineXF(v.fromOADate(o),o)):s.insert(0,new te.d.StiStripLineXF(o.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),o));return s}static getCountAfterComma(e){let t=e.toString().stimulsoft().replaceAll(",",".");var e=t.indexOf(".");let i=0;return 0<e&&(i=t.substring(e).length-1),i}static getStripLinesLogScale(e,t){let i=new te.d.StiStripLinesXF;if(e==t)return i;var r=e,s=t;let n=1,l=1;if(0<e&&e<1)while(r<n)n/=10;if(1<e){while(r>n)n*=10;n/=10}if(0<s&&s<1){while(l>s)l/=10;l*=10}if(1<s)while(s>l)l*=10;let a=n,o=a,h=1;while(a<=l)i.insert(0,new te.d.StiStripLineXF(a.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),a)),a+=o,h++,10==h&&(h=1,o=a);return i}};te.d.StiStripLineCalculatorXF=r}{let e=class{constructor(e,t){this.valueObject=null,this.valueObj=0,this.valueObject=e,this.valueObj=t}implements(){return e.implementsStiStripLineXF||(e.implementsStiStripLineXF=[p,te.d.IStiStripLinesXF]),e.implementsStiStripLineXF}clone(){return this.stimulsoft().memberwiseClone()}get value(){return this.valueObj}set value(e){this.valueObj=e}};te.d.StiStripLineXF=e}{let i=class extends E{implements(){return i.implementsStiStripLinesXF||(i.implementsStiStripLinesXF=[p,te.d.IStiStripLinesXF]),i.implementsStiStripLinesXF}clone(){let e=new i;for(var t of this.list){var t=t.clone();e.add(t)}return e}add2(e,t){this.add(new te.d.StiStripLineXF(e,t))}};te.d.StiStripLinesXF=i}{let e=class{implements(){return e.implementsStiStripPositionXF||(e.implementsStiStripPositionXF=[te.d.IStiStripPositionXF]),e.implementsStiStripPositionXF}};te.d.StiStripPositionXF=e}{let e=class{constructor(e){this.chartTitle=e}implements(){return e.implementsStiChartTitleCoreXF||(e.implementsStiChartTitleCoreXF=[p,te.d.IStiApplyStyle,te.d.IStiChartTitleCoreXF]),e.implementsStiChartTitleCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.chartTitle.allowApplyStyle&&(this.chartTitle.brush=new se(e.core.axisTitleColor))}render(e,t,i){if(!t.visible)return null;var r=new it(t.font.fontFamily.name,t.font.size,t.font.style,t.font.unit);let s=e.getDefaultStringFormat();s.alignment=t.alignment;let n=e.measureRotatedString2(t.text,r,i,s,rt.CenterCenter,t.dock,0);switch(t.dock){case te.d.StiChartTitleDock.Top:n.height+=t.spacing,n.height*=e.options.zoom,n.y=i.y,t.alignment!=F.Center&&(n.width*=e.options.zoom),t.alignment==F.Near&&(n.x=i.x),t.alignment==F.Center&&(n.x=i.x+i.width/2-n.width/2),t.alignment==F.Far&&(n.x=i.x+i.width-n.width);break;case te.d.StiChartTitleDock.Right:n.width+=t.spacing,n.width*=e.options.zoom,n.x=i.x+i.width-n.width,t.alignment!=F.Center&&(n.height*=e.options.zoom),t.alignment==F.Near&&(n.y=i.y),t.alignment==F.Center&&(n.y=i.y+i.height/2-n.height/2),t.alignment==F.Far&&(n.y=i.y+i.height-n.height);break;case te.d.StiChartTitleDock.Bottom:n.height+=t.spacing,n.height*=e.options.zoom,n.y=i.y+i.height-n.height,t.alignment!=F.Center&&(n.width*=e.options.zoom),t.alignment==F.Near&&(n.x=i.x+i.width-n.width),t.alignment==F.Center&&(n.x=i.x+i.width/2-n.width/2),t.alignment==F.Far&&(n.x=i.x);break;case te.d.StiChartTitleDock.Left:n.width+=t.spacing,n.width*=e.options.zoom,n.x=i.x,t.alignment!=F.Center&&(n.height*=e.options.zoom),t.alignment==F.Near&&(n.y=i.y+i.height-n.height),t.alignment==F.Center&&(n.y=i.y+i.height/2-n.height/2),t.alignment==F.Far&&(n.y=i.y);break}return new te.d.StiChartTitleGeom(t,n)}};te.d.StiChartTitleCoreXF=e}{let e=class{constructor(e){this.constantLines=e}implements(){return e.implementsStiConstantLinesCoreXF||(e.implementsStiConstantLinesCoreXF=[te.d.IStiApplyStyle,p,te.d.IStiConstantLinesCoreXF]),e.implementsStiConstantLinesCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.constantLines.allowApplyStyle&&(this.constantLines.lineColor=e.core.seriesLabelsColor)}renderXConstantLines(e,t){let i=e.area;if(null==i)return;let r,s=v.fromString(this.constantLines.axisValue,!1);if(null!=s)r=s.toOADate();else try{r=this.constantLines.axisValue.stimulsoft().toNumber()}catch(e){J.System.StiError.showError(e,!1),r=0}i.reverseVert&&(r=-r);let n=0;if(i.xAxis.logarithmicScale&&0<i.xAxis.info.stripLines.count){var l=i.xAxis.info.stripLines.count,a=i.reverseHor?l-1:0,o=i.reverseHor?0:l-1,l=i.xAxis.info.stripLines.getByIndex(a).value,o=i.xAxis.info.stripLines.getByIndex(o).value,l=Math.abs(t.width/(M.log10(o)-M.log10(l)));n=Math.abs(M.log10(r)*l-M.log10(i.xAxis.info.stripLines.getByIndex(a).value)*l)}else{n=i.axisCore.getDividerX()+r*i.xAxis.info.dpi;for(var h of i.xAxis.info.stripLines.list)null!=h.valueObject&&h.valueObject.toString()==this.constantLines.axisValue&&(r=h.value,i.reverseHor&&(r=-r),n=r*i.xAxis.info.dpi+i.axisCore.getDividerX())}let u=new ee(0,0),d=rt.LeftTop;switch(this.constantLines.position){case te.d.StiConstantLines_StiTextPosition.LeftTop:d=rt.LeftBottom,u=new ee(n+this.constantLines.lineWidth/2,0);break;case te.d.StiConstantLines_StiTextPosition.LeftBottom:d=rt.LeftTop,u=new ee(n-this.constantLines.lineWidth/2,0);break;case te.d.StiConstantLines_StiTextPosition.CenterTop:d=rt.CenterBottom,u=new ee(n+this.constantLines.lineWidth/2,t.height/2);break;case te.d.StiConstantLines_StiTextPosition.CenterBottom:d=rt.CenterTop,u=new ee(n-this.constantLines.lineWidth/2,t.height/2);break;case te.d.StiConstantLines_StiTextPosition.RightTop:d=rt.RightBottom,u=new ee(n+this.constantLines.lineWidth/2,t.height);break;case te.d.StiConstantLines_StiTextPosition.RightBottom:d=rt.RightTop,u=new ee(n-this.constantLines.lineWidth/2,t.height);break}var l=new te.d.StiConstantLinesVerticalGeom(this.constantLines,new ne(n,0,n,t.height),u,d);e.createChildGeoms(),e.childGeoms.push(l)}renderYConstantLines(e,t){let i=e.area;if(null==i)return;let r;try{r=this.constantLines.axisValue.stimulsoft().toNumber()}catch(e){J.System.StiError.showError(e,!1),r=0}i.reverseVert&&(r=-r);let s;var n,l,a,o,a,o;s=i.yAxis.logarithmicScale?(l=0,a=i.yAxis.info.stripLines.count-1,o=i.yAxis.info.stripLines.getByIndex(l).value,a=i.yAxis.info.stripLines.getByIndex(a).value,o=Math.abs(t.height/(M.log10(a)-M.log10(o))),Math.abs(M.log10(i.yAxis.info.stripLines.getByIndex(l).value)*o-M.log10(r)*o)):this.constantLines.orientation==te.d.StiConstantLines_StiOrientation.Horizontal?i.axisCore.getDividerY()-r*i.yAxis.info.dpi:i.axisCore.getDividerRightY()-r*i.yRightAxis.info.dpi;let h=new ee(0,0),u=rt.LeftTop;switch(this.constantLines.position){case te.d.StiConstantLines_StiTextPosition.LeftTop:u=rt.LeftBottom,h=new ee(-t.x,s-this.constantLines.lineWidth/2);break;case te.d.StiConstantLines_StiTextPosition.LeftBottom:u=rt.LeftTop,h=new ee(-t.x,s+this.constantLines.lineWidth/2);break;case te.d.StiConstantLines_StiTextPosition.CenterTop:u=rt.CenterBottom,h=new ee(t.width/2,s-this.constantLines.lineWidth/2);break;case te.d.StiConstantLines_StiTextPosition.CenterBottom:u=rt.CenterTop,h=new ee(t.width/2,s+this.constantLines.lineWidth/2);break;case te.d.StiConstantLines_StiTextPosition.RightTop:u=rt.RightBottom,h=new ee(t.width,s-this.constantLines.lineWidth/2);break;case te.d.StiConstantLines_StiTextPosition.RightBottom:u=rt.RightTop,h=new ee(t.width,s+this.constantLines.lineWidth/2);break}var o=new te.d.StiConstantLinesYGeom(this.constantLines,new ne(0,s,t.width,s),h,u);e.createChildGeoms(),e.childGeoms.push(o)}render(e,t,i){if(!this.constantLines.visible)return;this.constantLines.orientation==te.d.StiConstantLines_StiOrientation.Vertical&&this.renderXConstantLines(t,i),this.constantLines.orientation!=te.d.StiConstantLines_StiOrientation.Horizontal&&this.constantLines.orientation!=te.d.StiConstantLines_StiOrientation.HorizontalRight||this.renderYConstantLines(t,i)}};te.d.StiConstantLinesCoreXF=e}{let e=class{constructor(e){this.gridLines=e}implements(){return e.implementsStiGridLinesCoreXF||(e.implementsStiGridLinesCoreXF=[te.d.IStiApplyStyle,p,te.d.IStiGridLinesCoreXF]),e.implementsStiGridLinesCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.gridLines.allowApplyStyle&&(this.gridLines.stimulsoft().is(te.d.IStiGridLinesVert)?(this.gridLines.color=e.core.gridLinesVertColor,this.gridLines.minorColor=e.core.gridLinesVertColor):(this.gridLines.color=e.core.gridLinesHorColor,this.gridLines.minorColor=e.core.gridLinesHorColor))}};te.d.StiGridLinesCoreXF=e}{let e=class{constructor(e){this.gridLines=e}implements(){return e.implementsStiRadarGridLinesCoreXF||(e.implementsStiRadarGridLinesCoreXF=[te.d.IStiApplyStyle,p,te.d.IStiRadarGridLinesCoreXF]),e.implementsStiRadarGridLinesCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.gridLines.allowApplyStyle&&(this.gridLines.stimulsoft().is(te.d.IStiRadarGridLinesVert)?this.gridLines.color=e.core.gridLinesVertColor:this.gridLines.color=e.core.gridLinesHorColor)}};te.d.StiRadarGridLinesCoreXF=e}{let e=class{constructor(e){this.interlacing=e}implements(){return e.implementsStiInterlacingCoreXF||(e.implementsStiInterlacingCoreXF=[te.d.IStiApplyStyle,p,te.d.IStiInterlacingCoreXF]),e.implementsStiInterlacingCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.interlacing.allowApplyStyle&&(this.interlacing.stimulsoft().is(te.d.IStiInterlacingVert)?this.interlacing.interlacedBrush=e.core.interlacingVertBrush:this.interlacing.interlacedBrush=e.core.interlacingHorBrush)}};te.d.StiInterlacingCoreXF=e}let at=J.System.Drawing.Rectangle,ot=te.d.StiChartSeriesOrientation;{let e=class{constructor(e){this.legend=e}implements(){return e.implementsStiLegendCoreXF||(e.implementsStiLegendCoreXF=[p,te.d.IStiApplyStyle,te.d.IStiLegendCoreXF]),e.implementsStiLegendCoreXF}applyStyle(e){this.legend.allowApplyStyle&&(this.legend.brush=e.core.legendBrush.clone(),this.legend.labelsColor=e.core.legendLabelsColor,this.legend.titleColor=e.core.legendTitleColor,this.legend.borderColor=e.core.legendBorderColor,this.legend.showShadow=e.core.legendShowShadow,this.legend.font=e.core.legendFont)}clone(){return this.stimulsoft().memberwiseClone()}render(a,e){var o,t={ref:o},h=this.getLegendItems(t),o=t.ref,l,u;if(!this.legend.visible||0==h.length)return null;var i={ref:l},r={ref:u},t=this.getLegendSize(a,e,i,r),l=i.ref,u=r.ref;let s=new ne(e.x,e.y,t.width,t.height),d=s.clone();d.location=new ee(0,0);let n=null;if(!Z.isNullOrEmpty(this.legend.title)){var m=this.getTitleSize(a);let e=s.clone();e.location=new ee(0,0),e.height=m.height,n=new te.d.StiLegendTitleGeom(this.legend,e),d.y+=e.height,d.height-=e.height}let c=new te.d.StiLegendGeom(this.legend,s,h);null!=n&&(c.createChildGeoms(),c.childGeoms.push(n),c.legendTitleGeom=n);var S=this.legend.horSpacing*a.options.zoom,g=this.legend.vertSpacing*a.options.zoom;if(0<s.width&&0<s.height)if(0==this.legend.columns){var m=S+d.x,p=g+d.y;let i=m,r=p,s=0,n=0;var f=this.getMatrixIndexItem(l,u,h.length);for(let t=0;t<f.length;t++){for(let e=0;e<f[0].length;e++){var w=f[t][e],x,w,w,x;0<=w&&(x=h[w],w=this.getItemRealSize(a,x),s=Math.max(s,w.width),n=Math.max(n,w.height),w=new at(i,r,w.width,w.height),x=new te.d.StiLegendItemGeom(this.legend,x,w,x.colorIndex,o,x.index),c.createChildGeoms(),c.childGeoms.push(x)),r+=n+g}r=p,i+=s+S,s=0}}else{let e=0,t=0,i=this.getItemSize1(a,h,0);this.legend.direction==te.d.StiLegendDirection.LeftToRight||this.legend.direction==te.d.StiLegendDirection.TopToBottom?(e=S+d.x,t=g+d.y):this.legend.direction==te.d.StiLegendDirection.RightToLeft?(e=d.right-S-i.width,t=g+d.y):this.legend.direction==te.d.StiLegendDirection.BottomToTop&&(e=S+d.x,t=d.bottom-g-i.height);let r=e,s=t,n=0,l=0;for(var C of h){i=this.getItemSize2(a,h,C);var y=new ne(r,s,i.width,i.height),C=new te.d.StiLegendItemGeom(this.legend,C,y,C.colorIndex,o,C.index);c.createChildGeoms(),c.childGeoms.push(C),n++,this.legend.direction==te.d.StiLegendDirection.TopToBottom?(s+=g+y.height,n==this.legend.columns&&(s=t,r+=i.width+S,n=0)):this.legend.direction==te.d.StiLegendDirection.LeftToRight?(r+=S+y.width,n==this.legend.columns&&(r=e,s+=i.height+g,n=0)):this.legend.direction==te.d.StiLegendDirection.RightToLeft?(i=this.getItemSize1(a,h,l+1),r-=S+i.width,n==this.legend.columns&&(r=e,s+=i.height+g,n=0)):this.legend.direction==te.d.StiLegendDirection.BottomToTop&&(s-=g+y.height,n==this.legend.columns&&(s=t,r+=i.width+S,n=0)),l++}}return c}getMatrixIndexItem(r,s,n){let l=ie.create2(Number,r,s);if(this.legend.direction==te.d.StiLegendDirection.TopToBottom){let i=0;for(let t=0;t<s;t++)for(let e=0;e<r;e++)l[e][t]=i<n?i:-1,i++}else if(this.legend.direction==te.d.StiLegendDirection.BottomToTop){let i=0;for(let t=s-1;0<=t;t--)for(let e=0;e<r;e++)l[e][t]=i<n?i:-1,i++}else if(this.legend.direction==te.d.StiLegendDirection.LeftToRight){let i=0;for(let t=0;t<r;t++)for(let e=0;e<s;e++)l[t][e]=i<n?i:-1,i++}else if(this.legend.direction==te.d.StiLegendDirection.RightToLeft){let i=0;for(let t=r-1;0<=t;t--)for(let e=0;e<s;e++)l[t][e]=i<n?i:-1,i++}return l}getArgumentText(e,t){if(e.arguments.length>t&&null!=e.arguments[t])return e.arguments[t].toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return""}getLegendItemColumn(e,t){let i=0,r=0;for(var s of e){if(s==t)break;i++,i>=this.legend.columns&&(i=0,r++)}if(this.legend.direction==te.d.StiLegendDirection.TopToBottom||this.legend.direction==te.d.StiLegendDirection.BottomToTop)return r;return i}getTitleSize(e){if(Z.isNullOrEmpty(this.legend.title))return new G(0,0);var t=it.changeFontSize(this.legend.titleFont,this.legend.titleFont.size*e.options.zoom);let i=e.getDefaultStringFormat();i.formatFlags=0;let r=e.measureString(this.legend.title,t);return r.width++,r}getItemSize1(e,t,i){if(0<=i&&i<t.length){var i=t[i];return this.getItemSize2(e,t,i)}return new G(0,0)}getItemSize2(e,t,i){let r=0,s=0;var n=this.getLegendItemColumn(t,i),l=it.changeFontSize(this.legend.font,this.legend.font.size*e.options.zoom),a,o;for(a of t){this.getLegendItemColumn(t,a)==n&&(o=e.measureString(a.text,l),r=Math.max(o.width,r+2),s=Math.max(o.height,s))}return this.legend.markerVisible&&(r=Math.max(this.legend.markerSize.width*e.options.zoom,r)+this.legend.markerSize.width*e.options.zoom,s=Math.max(this.legend.markerSize.height*e.options.zoom,s)),new G(r,s)}getItemRealSize(e,t){var i=it.changeFontSize(this.legend.font,this.legend.font.size*e.options.zoom),i=e.measureString(t.text,i);let r=i.width,s=i.height;return this.legend.markerVisible&&(r+=this.legend.markerSize.width*e.options.zoom,s=Math.max(this.legend.markerSize.height*e.options.zoom,s)),new G(r,s)}getItemsSize(t,i){var r=this.legend.horSpacing*t.options.zoom;let s=0,n=0,l=this.legend.columns;this.legend.direction!=te.d.StiLegendDirection.TopToBottom&&this.legend.direction!=te.d.StiLegendDirection.BottomToTop||(l=M.trunc((i.length-1)/this.legend.columns)+1);for(let e=0;e<l;e++)for(var a of i)if(this.getLegendItemColumn(i,a)==e){var a=this.getItemSize2(t,i,a);s+=a.width+r,n=Math.max(a.height,n);break}return new G(s,n)}getItemsAutoSize(r,s,n,e,t){var l=this.legend.direction==te.d.StiLegendDirection.TopToBottom||this.legend.direction==te.d.StiLegendDirection.BottomToTop,a=this.legend.horSpacing*r.options.zoom,o=this.legend.vertSpacing*r.options.zoom,h=it.changeFontSize(this.legend.font,this.legend.font.size*r.options.zoom);let u=0,d=0,m=new P,c=new P,S=0,g=null;for(let i=0;i<s.length;i++){var p=s[i],p=r.measureString(p.text,h);let e=p.width+a,t=p.height+o;if(this.legend.markerVisible&&(e+=this.legend.markerSize.width*r.options.zoom,t=Math.max(this.legend.markerSize.height*r.options.zoom+o,t)),S=Math.max(t,S),l){if(m.length-1<u&&null==g||m.length-1<u&&null!=g&&u<=g)m.push(e);else if(m[u]<e){m[u]=e,m.removeRange(u+1,m.length-(u+1)),i=-1,u=0,d=0;continue}u++,null!=g&&g<=u&&(u=0,d++),m.sum()+a>n.width&&1<m.length&&(u=0,d++,0<i&&i--,0<m.length&&(m.removeAt(m.length-1),g=m.length))}else c.length-1<d&&c.push(t),d++,m.length-1<u?m.push(e):m[u]=Math.max(m[u],e),c.sum()+o>n.height&&1<c.length&&(u++,(d=0)<i&&i--,0<c.length&&c.removeAt(c.length-1))}return e.ref=m.length,t.ref=l?Math.ceil(s.length/m.length):c.length,new G(m.sum()+a,t.ref*S+o)}getSeriesSize(e,t,i,r){var s=this.legend.horSpacing*e.options.zoom,n=this.legend.vertSpacing*e.options.zoom,l={ref:0},a=this.getLegendItems(l),o=l.ref;let h=0,u=0;if(0==this.legend.columns){var t=this.getItemsAutoSize(e,a,t,i,r);h=t.width,u=t.height}else{r.ref=0,i.ref=this.legend.columns;var d=this.getItemsSize(e,a);switch(this.legend.direction){case te.d.StiLegendDirection.TopToBottom:case te.d.StiLegendDirection.BottomToTop:{h=d.width+s;let e=this.legend.columns;e>o&&(e=o),u=(d.height+n)*e+n;break}case te.d.StiLegendDirection.LeftToRight:case te.d.StiLegendDirection.RightToLeft:{let e=Math.ceil(o/this.legend.columns);e*this.legend.columns<o&&e++,h=d.width+s,u=(d.height+n)*e+n;break}}}return new G(h,u)}getLegendSize(e,t,i,r){var s=this.getTitleSize(e),n={ref:i},l={ref:r},t=this.getSeriesSize(e,t,n,l);i.ref=n.ref,r.ref=l.ref;let a=new G(Math.max(s.width,t.width),s.height+t.height),o=0,h=0;return h=null!=this.legend.chart?(o=this.legend.chart.convertToHInches(this.legend.size.width*e.options.zoom),this.legend.chart.convertToHInches(this.legend.size.height*e.options.zoom)):(o=this.legend.size.width*e.options.zoom,this.legend.size.height*e.options.zoom),0!=o&&(a.width=o),0!=h&&(a.height=h),a.width=Math.round(a.width),a.height=Math.round(a.height),a}getLegendItems(e){let r=0,s=this.legend.chart.area.core.getSeries().stimulsoft().toList();var n=this.legend.chart.area.as(te.d.IStiAxisArea),i;let l=[];if(this.legend.chart.area.colorEach||s.any(e=>e.is(te.d.IStiFunnelSeries))||s.any(e=>e.is(te.d.IStiPictorialSeries))||s.any(e=>e.is(te.d.IStiDoughnutSeries))){let t=0;for(var a of s)t=Math.max(a.values.length,t);let i=0;for(var o of s)if(this.legend.chart.area.core.isAcceptableSeries(o.stimulsoft().getType()))for(let e=0;e<t;e++){if(o.showInLegend&&null!=o.values){var h=null!=n&&(n.reverseHor||n.axisCore.seriesOrientation==ot.Horizontal);if(e>=o.values.length)continue;var u=h?o.values.length-e-1:e,d=o.values[u],m,c,h;null!=d&&(m=o.stimulsoft().as(te.d.IStiPieSeries),c=o.stimulsoft().as(te.d.IStiFunnelSeries),h=o.stimulsoft().as(te.d.IStiDoughnutSeries),(null!=m&&!m.showZeros||null!=h&&!h.showZeros||null!=c&&!c.showZeros)&&0==d||l.push(new te.d.StiLegendItemCoreXF(this.legend.chart.seriesLabels.core.getLabelText(o,d,this.getArgumentText(o,u),o.core.getTag(u),o.coreTitle,!0),o,u,i)))}r++,i++}}else if(this.legend.chart.area.is2(te.d.IStiSunburstArea)){if(1<=s.length){let e=s[0];var i=e.arguments.stimulsoft().toList().groupBy(e=>e).select(e=>e.key).toList(),S;let t=0;for(S of i){var g=S.toString();Z.isNullOrEmpty(g)||l.push(new te.d.StiLegendItemCoreXF(g,e,t,t)),t++,r++}}}else if(this.legend.chart.area.is2(te.d.IStiBoxAndWhiskerArea)){if(1<=s.length){var t=s[0],p;let e=0;for(p of s)l.push(new te.d.StiLegendItemCoreXF(p.coreTitle,t,e,e)),e++,r++}}else if(this.legend.chart.area.is2(te.d.IStiWaterfallArea)){1<=s.length&&(i=s[0],l.push(new te.d.StiLegendItemCoreXF(N.get("PropertyMain","Positive"),i,0,0)),l.push(new te.d.StiLegendItemCoreXF(N.get("PropertyMain","Negative"),i,0,1)),l.push(new te.d.StiLegendItemCoreXF(i.total.text,i,0,2)),r=3)}else for(var f of s)this.legend.chart.area.core.isAcceptableSeries(f.stimulsoft().getType())&&(!f.showInLegend||this.legend.hideSeriesWithEmptyTitle&&Z.isNullOrEmpty(f.coreTitle)&&!this.legend.chart.isDesigning||(l.push(new te.d.StiLegendItemCoreXF(f.coreTitle,f,-1,0)),r++));return e.ref=r,l}};te.d.StiLegendCoreXF=e}te.d.StiLegendItemCoreXF=class{constructor(e,t,i,r){this.index=-1,this.colorIndex=0,this.text=e,this.series=t,this.index=i,this.colorIndex=r}};let ht=J.Base.Context.StiPathGeom,ut=J.Base.Context.StiPenGeom,dt=J.Base.Context.StiLinesSegmentGeom,mt=J.System.Drawing.Rectangle,ct=J.Base.Context.Animation.StiScaleAnimation,St=J.System.Drawing.Point,gt=J.Base.Context.StiArcSegmentGeom,pt=J.Base.Context.StiLineSegmentGeom,ft=J.System.Drawing.Size;{let g=class{constructor(e){this.marker=e}implements(){return g.implementsStiMarkerCoreXF||(g.implementsStiMarkerCoreXF=[p,te.d.IStiMarkerCoreXF]),g.implementsStiMarkerCoreXF}clone(){return this.stimulsoft().memberwiseClone()}drawMarkers(e,t,i){if(0==t.length)return;if(null!=this.marker&&this.marker.visible){e.pushSmoothingModeToAntiAlias();var r=e.options.zoom,s;for(s of t)this.marker.core.draw(e,this.marker,s,r,i,!1,!1,!1,"",null,null);e.popSmoothingMode()}}static getMarkerRect(e,t,i){var i=t*i/2;return new ne(e.x-i,e.y-i,2*i,2*i)}draw(e,t,i,r,s,n,l,a,o,h,u){var d=new se(re.fromArgb(55,re.black)),m;let c=g.getMarkerRect(i,t.size,r).clone();s&&(c.x+=2*r,c.y+=2*r,this.drawPoint(e,c.x+c.width/2,c.y+c.height/2,r,d,null,t.type,t.icon,t.size,t.angle,!1,a,o,null,null),c.x-=2*r,c.y-=2*r);let S=t.brush;a&&l&&!t.visible&&(m=null==t.brush?re.lightGray:Ze.toColor(t.brush),S=new se(re.fromArgb(0,m.r,m.g,m.b)),a=!1);var m=l?null:new ut(t.borderColor);(t.visible||l)&&this.drawPoint(e,c.x+c.width/2,c.y+c.height/2,r,S,m,t.type,t.icon,t.size,t.angle,n,a,o,h,u)}drawLine(e,t,i,r,s,n,l,a,o,h,u,d){this.drawLines(e,[new ee(t,i),new ee(r,s)],n,l,a,o,h,u,d)}drawLines(t,i,r,s,n,l,a,o,h){if(t.pushSmoothingModeToAntiAlias(),i.length<2)return;let u=0;for(let e=0;e<i.length-1;e++){var d=i[e],m=i[e+1];if(null==d||null==m)continue;var c=d.x,S=d.y,g,p,f=m.x-c,w=m.y-S,x=Math.sqrt(f*f+w*w),C=a;while(u<x){var y=c+f*u/x,b=S+w*u/x;this.drawPoint(t,y,b,r,s,n,l,this.marker.icon,o,h,!1,!1,"",null,null),u+=C*r}u-=x}t.popSmoothingMode()}drawPoint(t,e,i,r,s,n,l,a,o,h,u,d,m,c,S){var g=o*r/2,p=e-g,f=e+g,w=i-g,x=i+g,C;if(null!=a){var r=new mt(p,w,o*r,o*r);return void te.a.StiFontIconsHelper.drawDirectionIcons(t,s,r,new ft(r.height,r.height),a,m,!1)}switch(l){case te.d.StiMarkerType.Star5:this.drawPolygon(t,s,n,e,i,g,10,h,!0,u,d,m,c,S);break;case te.d.StiMarkerType.Star6:this.drawPolygon(t,s,n,e,i,g,12,h,!0,u,d,m,c,S);break;case te.d.StiMarkerType.Star7:this.drawPolygon(t,s,n,e,i,g,14,h,!0,u,d,m,c,S);break;case te.d.StiMarkerType.Star8:this.drawPolygon(t,s,n,e,i,g,16,h,!0,u,d,m,c,S);break;case te.d.StiMarkerType.Hexagon:this.drawPolygon(t,s,n,e,i,g,6,30+h,!1,u,d,m,c,S);break;case te.d.StiMarkerType.Rectangle:this.drawPolygon(t,s,n,e,i,g,4,45+h,!1,u,d,m,c,S);break;case te.d.StiMarkerType.Circle:d?(C=new ct(0,0,0,0,0,0,te.d.StiChartHelper.globalDurationElement,U.zero),t.fillDrawAnimationEllipse(s,n,p,w,f-p,x-w,m,c,C,S)):(null!=s&&t.fillEllipse3(s,p,w,f-p,x-w,m,S),u&&t.fillEllipse3(te.d.StiMouseOverHelper.getMouseOverColor(),p,w,f-p,x-w,m,null),null!=n&&t.drawEllipse(n,p,w,f-p,x-w));break;case te.d.StiMarkerType.HalfCircle:{var y=new mt(p,w,f-p,x-w),b=new mt(0,0,f-p,x-w),C;let e=new P;e.push(new gt(new mt(b.x,b.top+b.height/4,b.width,b.height),360,-180)),e.push(new pt(new St(b.x,b.bottom-b.height/4),new St(b.right,b.bottom-b.height/4))),t.pushTranslateTransform(y.x+y.width/2,y.y+y.height/2),t.pushRotateTransform(h),t.pushTranslateTransform(-y.width/2,-y.height/2),d?(C=new ct(0,0,0,0,0,0,te.d.StiChartHelper.globalDurationElement,U.zero),t.fillDrawAnimationPath(s,n,e,y,c,C,S)):(null!=s&&t.fillPath2(s,e,b,null,m.toString()),u&&t.fillPath2(te.d.StiMouseOverHelper.getMouseOverColor(),e,y,null,m.toString()),null!=n&&t.drawPath(n,e,b)),t.popTransform(),t.popTransform(),t.popTransform();break}case te.d.StiMarkerType.Triangle:this.drawPolygon(t,s,n,e,i,g,3,h,!1,u,d,m,c,S);break}}drawPolygon(e,t,i,r,s,n,l,a,o,h,u,d,m,c){let S=[],g=-90+(a=-a),p=ie.create(ee,l+1,!0);if(o)for(let e=0;e<l;e+=2)p[e].x=r+n*Math.cos(g*Math.PI/180),p[e].y=s+n*Math.sin(g*Math.PI/180),g+=360/l,p[e+1].x=r+n/2*Math.cos(g*Math.PI/180),p[e+1].y=s+n/2*Math.sin(g*Math.PI/180),g+=360/l;else for(let e=0;e<l;e++)p[e].x=r+n*Math.cos(g*Math.PI/180),p[e].y=s+n*Math.sin(g*Math.PI/180),g+=360/l;var u,d;p[l]=p[0],S.push(new dt(p)),u?(u=new ct(0,0,0,0,0,0,te.d.StiChartHelper.globalDurationElement,U.zero),e.fillDrawAnimationPath(t,i,S,ht.getBoundsState,m,u,c)):(d=null!=d?d.toString():null,null!=t&&e.fillPath2(t,S,ht.getBoundsState,null,d),h&&e.fillPath2(te.d.StiMouseOverHelper.getMouseOverColor(),S,ht.getBoundsState,null,d),null!=i&&e.drawPath(i,S,null))}};te.d.StiMarkerCoreXF=g}{let e=class{constructor(e){this.axis=e}implements(){return e.implementsStiRadarAxisCoreXF||(e.implementsStiRadarAxisCoreXF=[p,te.d.IStiApplyStyle,te.d.IStiRadarAxisCoreXF]),e.implementsStiRadarAxisCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){}};te.d.StiRadarAxisCoreXF=e}{let e=class{constructor(e){this.labels=e}implements(){return e.implementsStiRadarAxisLabelsCoreXF||(e.implementsStiRadarAxisLabelsCoreXF=[te.d.IStiApplyStyle,p,te.d.IStiRadarAxisLabelsCoreXF]),e.implementsStiRadarAxisLabelsCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.labels.allowApplyStyle&&(this.labels.color=e.core.axisLabelsColor,this.labels.brush=new Qe)}};te.d.StiRadarAxisLabelsCoreXF=e}{let e=class extends te.d.StiRadarAxisCoreXF{constructor(e){super(e)}implements(){return e.implementsStiXRadarAxisCoreXF||(e.implementsStiXRadarAxisCoreXF=[te.d.IStiXRadarAxisCoreXF]),e.implementsStiXRadarAxisCoreXF}applyStyle(e){this.axis.allowApplyStyle&&this.axis.labels.core.applyStyle(e)}renderLabel(e,t,i,r,s,n,l){var a=this.getLabelText(r);let o=this.getLabelRect(e,i,a,0).clone();o.x=-o.width/2,o.y=-o.height/2;var h=this.getLabelRect(e,i,a,s).clone(),r=this.axis.labels.borderColor,e=new se(this.axis.labels.color);return new te.d.StiXRadarAxisLabelGeom(this.axis,a,e,r,s,o,h,i)}getLabelText(t){try{null==t&&(t="");let e=this.axis;if(null!=e.labels.format&&0!=e.labels.format.trim().length)try{if(!te.d.StiChartOptions.oldChartPercentMode&&e.labels.format.stimulsoft().startsWith("P")){var i=0;return e.labels.format.length,Z.format("{0}{1:N"+i.toString()+"}{2}{3}",e.labels.textBefore,t,"%",e.labels.textAfter)}return Z.format("{0}{1:"+e.labels.format+"}{2}",e.labels.textBefore,t,e.labels.textAfter)}catch(e){J.System.StiError.showError(e,!1)}return Z.format("{0}{1}{2}",e.labels.textBefore,t,e.labels.textAfter)}catch(e){J.System.StiError.showError(e,!1)}return t.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)}getLabelRect(e,t,i,r){var s=it.changeFontSize(this.axis.labels.font,this.axis.labels.font.size*e.options.zoom);let n=e.getGenericStringFormat();return n.trimming=et.None,this.axis.labels.wordWrap||(n.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap),e.measureRotatedString3(i,s,t,n,rt.CenterBottom,r,M.trunc(this.axis.labels.width*e.options.zoom))}get xAxis(){return this.axis}};te.d.StiXRadarAxisCoreXF=e}{let e=class extends te.d.StiRadarAxisCoreXF{constructor(e){super(e)}implements(){return e.implementsStiYRadarAxisCoreXF||(e.implementsStiYRadarAxisCoreXF=[te.d.IStiYRadarAxisCoreXF]),e.implementsStiYRadarAxisCoreXF}applyStyle(e){this.axis.allowApplyStyle&&(this.yAxis.lineColor=e.core.axisLineColor,this.yAxis.labels.core.applyStyle(e))}render(e,t){if(!this.axis.visible)return null;var i=this.getAxisRect(e,t).clone(),t=new te.d.StiRadarAxisGeom(this.axis,i);return this.renderLabels(e,i,t),t}measureStripLines(l,a){let o=[];if(null!=this.yAxis.info.labelsCollection&&this.yAxis.labels.placement!=te.d.StiLabelsPlacement.None){let n=0;for(var h of this.yAxis.info.labelsCollection){var u=this.getLabelText(h.stripLine),d=h.position,m=l.getGenericStringFormat(),c=it.changeFontSize(this.yAxis.labels.font,this.yAxis.labels.font.size*l.options.zoom),S=this.getTextAlignment();let e,t=-this.yAxis.labels.angle,i=ee.empty;S==z.Left?(e=rt.LeftCenter,i=new ee(0,d),t=0):(e=rt.RightCenter,i=new ee(a.width-this.getTicksMaxLength(l)-this.getLabelsSpaceAxis(l),d)),this.yAxis.labels.placement==te.d.StiLabelsPlacement.TwoLines&&0!=(1&n)&&(i.x-=this.getLabelsTwoLinesDestination(l));let r=l.measureRotatedString3(u,c,i,m,e,t,M.trunc(this.yAxis.labels.width*l.options.zoom)),s=new te.d.StiAxisLabelInfoXF;s.angle=t,s.clientRectangle=r.clone(),s.rotationMode=e,s.textPoint=i,s.text=u,s.stripLine=h.stripLine,o.push(s),n++}}return o}renderLabels(e,t,i){if(this.yAxis.labels.placement!=te.d.StiLabelsPlacement.None){var t=this.measureStripLines(e,t),r,s;i.createChildGeoms();for(r of t){r.clientRectangle.isEmpty||(s=new te.d.StiYRadarAxisLabelGeom(this.yAxis,r.clientRectangle,r.textPoint,r.text,r.stripLine,r.angle,r.rotationMode),i.childGeoms.push(s))}}}calculateStripPositions(t,e){if(e-=t,t=0,null==this.yAxis.info.stripLines||this.yAxis.info.stripLines.count<2)this.yAxis.info.stripPositions=[];else{this.yAxis.info.stripPositions=ie.create(Number,this.yAxis.info.stripLines.count),this.yAxis.info.stripPositions[0]=t,this.yAxis.info.stripPositions[this.yAxis.info.stripPositions.length-1]=e;for(let e=1;e<this.yAxis.info.stripPositions.length-1;e++)this.yAxis.info.stripPositions[e]=t+e*this.yAxis.info.step}}getAxisRect(e,t){var i;return new ne(t.width/2-this.getTicksMaxLength(e),0,this.getTicksMaxLength(e),t.height/2)}getTicksMaxLength(e){return this.yAxis.yCore.ticksMaxLength*e.options.zoom}getLabelsSpaceAxis(e){return 5*e.options.zoom}getLabelsTwoLinesDestination(e){return 2*this.yAxis.labels.font.sizeInPoints*e.options.zoom}getTextAlignment(){if(this.yAxis.labels.placement==te.d.StiLabelsPlacement.TwoLines)return z.Right;return this.yAxis.labels.textAlignment}setTotalNumberCapacity(){let e=this.yAxis.labels.formatService.as(lt);var t,i;null!=e&&(t=this.yAxis.labels.calculatedStep,e.totalNumberCapacity=Math.floor((t<1?-1:1)*M.log10(t)+1))}getLabelText(e){var t;let i=null!==(t=null==e?void 0:e.valueObject)&&void 0!==t?t:"";try{if(null!=this.yAxis.labels.formatService)return this.setTotalNumberCapacity(),`${this.yAxis.labels.textBefore}${this.yAxis.labels.formatService.format(e.value)}${this.yAxis.labels.textAfter}`;if(null!=this.yAxis.labels.format&&0!=this.yAxis.labels.format.trim().length)try{if(i,!te.d.StiChartOptions.oldChartPercentMode&&this.yAxis.labels.format.stimulsoft().startsWith("P")){var r=0;return this.yAxis.labels.format.length,Z.format("{0}{1:N"+r.toString()+"}{2}{3}",this.yAxis.labels.textBefore,i,"%",this.yAxis.labels.textAfter)}return Z.format("{0}{1:"+this.yAxis.labels.format+"}{2}",this.yAxis.labels.textBefore,i,this.yAxis.labels.textAfter)}catch(e){J.System.StiError.showError(e,!1)}return Z.format("{0}{1}{2}",this.yAxis.labels.textBefore,i,this.yAxis.labels.textAfter)}catch(e){J.System.StiError.showError(e,!1)}return i.toString().replace(".",",").stimulsoft().replaceAll(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)}getStringFormatGeom(e){let t=e.getGenericStringFormat();var e;return t.trimming=et.None,t.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap,0<this.yAxis.labels.width&&((e=this.getTextAlignment())==z.Left?t.alignment=F.Near:e==z.Right?t.alignment=F.Far:e==z.Center&&(t.alignment=F.Center)),t}getFontGeom(e){var t;return it.changeFontSize(this.yAxis.labels.font,this.yAxis.labels.font.size*e.options.zoom)}get yAxis(){return this.axis}get info(){return this.yAxis.info}set info(e){this.yAxis.info=e}get ticksMaxLength(){return this.axis.visible?Math.max(this.yAxis.ticks.visible?this.yAxis.ticks.length:0,this.yAxis.ticks.minorVisible?this.yAxis.ticks.minorLength:0):0}};te.d.StiYRadarAxisCoreXF=e}{let e=class{constructor(e){this.isDateTimeValues=!1,this.isDateTimeArguments=!1,this.series=e}implements(){return e.implementsStiSeriesCoreXF||(e.implementsStiSeriesCoreXF=[p,te.d.IStiApplyStyleSeries,te.d.IStiSeriesCoreXF]),e.implementsStiSeriesCoreXF}is(e){if(e instanceof J.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e,t){this.series.allowApplyStyle&&(this.series.showShadow=e.core.seriesShowShadow,null!=this.series.seriesLabels&&this.series.seriesLabels.core.applyStyle(e))}checkLabelsRect(e,t,i){return this.checkLabelsRect2(e,t.clientRectangle,i)}checkLabelsRect2(e,t,i){if(null!=e&&e.preventIntersection){i.x<0&&(i.x=0),i.y<0&&(i.y=14),i.right>t.width&&(i.x=t.width-i.width),i.bottom>t.height&&(i.y=t.height-i.height);var e=this.getDrawRectangle(i.clone(),e.angle);if(e.y<0)return i.y=e.height/2,i;e.y+e.height>t.height&&(i.y-=e.height/2)}return i}getDrawRectangle(e,t){var i=new ee(e.left,e.top),r=new ee(e.right,e.top),s=new ee(e.right,e.bottom),n=new ee(e.left,e.bottom),l=new ee((e.left+e.right)/2,(e.top+e.bottom)/2),e=this.rotatePoint(i,l,t),i=this.rotatePoint(r,l,t),r=this.rotatePoint(s,l,t),s=this.rotatePoint(n,l,t),n=Math.min(Math.min(e.y,i.y),Math.min(r.y,s.y)),l=Math.max(Math.max(e.y,i.y),Math.max(r.y,s.y)),t=Math.min(Math.min(e.x,i.x),Math.min(r.x,s.x)),s=Math.max(Math.max(e.x,i.x),Math.max(r.x,s.x));return new ne(t,n,s-t,l-n)}rotatePoint(e,t,i){var r=i*(Math.PI/180),i=Math.cos(r),r=Math.sin(r);return new ee(M.trunc(i*(e.x-t.x)-r*(e.y-t.y)+t.x),M.trunc(r*(e.x-t.x)+i*(e.y-t.y)+t.y))}checkIntersectionLabels(l){var e=l.childGeoms;let a=[];if(null!=e)for(var t of e)t.is(te.d.StiSeriesLabelsGeom)&&a.push(t);var i=a.length,r=!0;let s=0;while(r&&s<29){s++;for(let n=0;n<i;n++)for(let s=0;s<i;s++){if(s==n)continue;let e=this.getDrawRectangle(a[n].clientRectangle.clone(),a[n].seriesLabels.angle),t=this.getDrawRectangle(a[s].clientRectangle.clone(),a[s].seriesLabels.angle),i=!1,r=!1;var o=e.height-Math.abs(t.y-e.y)+2;e.intersectsWith(t)&&(r=(i=(e.y>t.y?(e.y+=o/2,t.y-=o/2):(e.y-=o/2,t.y+=o/2),!0),!0)),e.y<0&&(e.y=0,i=!0),t.y<2&&(t.y=0,r=!0),e.y+e.height>l.clientRectangle.height&&(e.y=l.clientRectangle.height-e.height-2,i=!0),t.y+o/2+t.height>l.clientRectangle.height&&(t.y=l.clientRectangle.height-t.height-2,r=!0),i&&(a[n].clientRectangle=this.getDrawRectangle(e.clone(),-a[n].seriesLabels.angle)),r&&(a[s].clientRectangle=this.getDrawRectangle(t.clone(),-a[s].seriesLabels.angle))}}}getLabelRectangle(e,t){var i=Math.pow(Math.pow(t.width,2)+Math.pow(t.height,2),.5),r;return e+=Math.atan(t.height/t.width)/Math.PI*180,new ne(t.x,t.y,i*Math.cos(e*Math.PI/180),i*Math.sin(e*Math.PI/180))}renderSeries(e,t,i,r){}getSeriesBrush(i,r){if(null==this.series.chart||null==this.series.chart.area)return null;if((this.series.chart.area.colorEach||this.is(te.d.StiBoxAndWhiskerSeriesCoreXF)||this.is(te.d.StiDoughnutSeriesCoreXF)||this.is(te.d.StiSunburstSeriesCoreXF)||this.is(te.d.StiPictorialSeriesCoreXF)||this.is(te.d.StiWaterfallSeriesCoreXF))&&Z.isNullOrEmpty(this.series.autoSeriesColorDataColumn)){let e=null!=this.series.chart.style?this.series.chart.style.core:new te.d.StiStyleCoreXF29;var r=e.getColorByIndex(i,r,this.seriesColors);let t=e.getColumnBrush(r);return this.series.chart.area.is(te.d.IStiClusteredBarArea)&&(t.is(de)&&(t.angle+=90),t.is(me)&&(t.angle+=90)),t}return null}getSeriesBorderColor(t,i){if(null==this.series.chart||null==this.series.chart.area)return null;if(this.series.chart.area.colorEach&&this.series.allowApplyStyle||this.is(te.d.StiBoxAndWhiskerSeriesCoreXF)||this.is(te.d.StiDoughnutSeriesCoreXF)||this.is(te.d.StiSunburstSeriesCoreXF)){let e=null!=this.series.chart.style?this.series.chart.style.core:new te.d.StiStyleCoreXF29;var i=e.getColorByIndex(t,i,this.seriesColors);return e.getColumnBorder(i)}return null}getSeriesLabels(){if(this.series.showSeriesLabels==te.d.StiShowSeriesLabels.FromChart)return this.series.chart.seriesLabels.stimulsoft().as(te.d.IStiAxisSeriesLabels);if(this.series.showSeriesLabels==te.d.StiShowSeriesLabels.FromSeries)return this.series.seriesLabels.stimulsoft().as(te.d.IStiAxisSeriesLabels);return null}getTag(e){return null!=this.series.tags&&e<this.series.tags.length&&null!=this.series.tags[e]?this.series.tags[e].toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator):""}get localizedName(){return null}get interaction(){return this.series.interaction}set interaction(e){this.series.interaction=e}};e.falseObject={},e.trueObject={},te.d.StiSeriesCoreXF=e}let wt=J.System.Drawing.Point,xt=J.Base.Context.Animation.StiOpacityAnimation;te.d.StiBoxAndWhiskerSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t),this.series.allowApplyStyle&&(this.series.brush=e.core.getColumnBrush(t),this.series.borderThickness=e.core.seriesBorderThickness)}renderSeries(l,a,o,h){let e=o.area.stimulsoft().as(te.d.IStiBoxAndWhiskerArea);var u=e.xAxis.info.dpi,d=e.yAxis.info.dpi,m=e.axisCore.getDividerY(),t;let c=1;for(t of h){let r=t,s=new P,n=r.brush;if(r.allowApplyBrush&&(n=r.core.getSeriesBrush(c-1,h.length),n=r.processSeriesBrushes(c-1,n)),0<r.values.length){var S=r.values.stimulsoft().toList().min(),g=r.values.stimulsoft().toList().max(),p=this.getMedian(r.values),f=this.getFirstQuartile(r.values),w=this.getThirdQuartile(r.values),x=c*u,C=Math.abs(m-g*d),y=Math.abs(m-S*d),b=Math.abs(m-p*d),A=Math.abs(m-f*d),v=Math.abs(m-w*d),L=new mt(x-u/4,y,u/2,C-y),T=Ze.toColor(Ze.dark(n,30)),I,w;s.add([S,new wt(x,y)]),s.add([g,new wt(x,C)]),s.add([p,new wt(x,b)]),s.add([f,new wt(x,A)]),s.add([w,new wt(x,v)]);let e=new P;if(r.showInnerPoints)for(var k of r.values){var F=k,k;F==S||F==g||e.contains(F)||(k=Math.abs(m-F*d),e.add(k),s.add([F,new wt(x,k)]))}let t=null;r.showMeanMarkers&&(w=r.values.stimulsoft().toList().sum()/r.values.length,t=Math.abs(m-w*d),s.add([w,new wt(x,t)]));var T=new te.d.StiBoxAndWhiskerSeriesElementGeom(o,r,x,y,C,A,v,b,e.stimulsoft().toArray(),t,L,n,T,new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/h.length*c));o.createChildGeoms(),o.childGeoms.push(T);let i=r.core.getSeriesLabels();if(null!=i&&i.visible)for(var B of s){var R=new xt(te.d.StiChartHelper.globalBeginTimeElement,U.zero),R=i.core.renderLabel(r,l,B[1],B[1],c,B[0],B[0],B[0].toString(),null,0,1,a,R);null!=R&&(o.createChildGeoms(),o.childGeoms.push(R))}}c++}}getFirstValues(e){var t=this.getMedianIndices(e),i=[],t=1==t.length?t[0]+1:t[1];return ie.copy2(e,0,i,0,t),i}getSecondValues(e){var t=this.getMedianIndices(e),i=[],t=1==t.length?t[0]+1:t[1];return ie.copy2(e,t-1,i,0,t),i}getThirdQuartile(e){e.sort((e,t)=>e-t);var e=this.getSecondValues(e);return this.getMedian(e)}getFirstQuartile(e){e.sort((e,t)=>e-t);var e=this.getFirstValues(e);return this.getMedian(e)}getMedian(e){e.sort((e,t)=>e-t);var t=this.getMedianIndices(e),i;let r=0;for(i of t)r+=e[i];return r/t.length}getMedianIndices(e){let t=e.length%2==0?[0,1]:[0];var i,e;return 1==t.length?(i=Math.ceil(e.length/2)-1,t[0]=i):(e=e.length/2-1,t[0]=e,t[1]=e+1),t}get localizedName(){return N.get("Chart","BoxAndWhisker")}constructor(e){super(e)}};let Ct=J.Base.Context.StiSeriesInteractionData,yt=J.Base.Context.Animation.StiLabelAnimation;{let e=class extends te.d.StiSeriesCoreXF{constructor(e){super(e)}implements(){return e.implementsStiBaseLineSeriesCoreXF||(e.implementsStiBaseLineSeriesCoreXF=super.implements().concat([te.d.IStiApplyStyleSeries])),e.implementsStiBaseLineSeriesCoreXF}applyStyle(e,t){super.applyStyle(e,t);let i=this.series;var r;i.allowApplyStyle&&(i.lineColor=t,i.lighting=e.core.seriesLighting,null!=i.marker&&(null!=(r=i.marker.stimulsoft().as(te.d.StiMarker))&&r.extendedVisible!=te.d.StiExtendedStyleBool.FromStyle?i.marker.visible=r.extendedVisible==te.d.StiExtendedStyleBool.True:i.marker.visible=e.core.markerVisible,i.marker.brush=new se(qe.light(t,100)),i.marker.borderColor=qe.dark(t,100)),null!=i.lineMarker&&(i.lineMarker.brush=new se(qe.light(t,50)),i.lineMarker.borderColor=qe.dark(t,150)))}clipLinePoints(e,t,i,r,s){let n=r.ref,l=s.ref;if(this.series.chart.area.xAxis.range.auto)return n=0,l=i.length,r.ref=n,s.ref=l,i;n=-1,l=-1;let a=t.view.clientRectangle.clone();a.x=0,a.y=0;let o=0;for(var h of i){if(null!=h){let e=h;if(e.x+=t.clientRectangle.x,e.y+=t.clientRectangle.y,a.x<=e.x&&e.x<a.right&&-1==n&&(n=o),!(a.x<=e.x&&e.x<a.right)&&-1!=n){l=o;break}}o++}-1==l&&(l=i.length-1),n--,l++,n<0&&(n=0),l>=i.length&&(l=i.length-1);var u=l-n+1;if(u==i.length)return r.ref=n,s.ref=l,i;var d=ie.create(ee,u,!0);return ie.copy(i,n,d,u),r.ref=n,s.ref=l,d}renderMarkers(s,n,e){var l=n.area,a=this.series;if(0==e.length)return;var o=!a.marker.visible&&0<a.toolTips.length;if(null!=a.marker){let r=0;for(var h of e){if(null!=h){let e=l.reverseHor?a.values[a.values.length-r-1]:a.values[r];null==e&&a.showNulls&&(e=0);let t=n.view.clientRectangle.clone();t.x=0,t.y=0,t.inflate(10,10);let i=new ee(h.x,h.y);if(i.x+=n.clientRectangle.x,i.y+=n.clientRectangle.y,t.contains(i.x,i.y)){let t=new te.d.StiMarkerGeom(this.series,r,e,h,a.marker,a.showShadow,s.options.zoom,o);if(null!=t){if(null!=a.core.interaction){let e=new Ct;e.fill(l,a,r),t.interaction=e}n.createChildGeoms(),n.childGeoms.push(t)}}}r++}}}getInteractions(e,i,r){let s=[];for(let t=0;t<r.length;t++){let e=new Ct;e.fill(i.area,this.series,t),e.point=r[t],s.push(e)}return s}renderLines(e,t,i){}renderAreas(e,t,i){}renderSeries(a,o,h,u){var d,e=h.area;if(null==u||0==u.length||null==this.series.chart)return;let m=e;var l=m.xAxis.core.getStartFromZero(),c;o.width+=.001;let S=0,t=[],g=[],p=[],f=[],w=[];for(let e=0;e<u.length;e++){let i=u[e];var x=i.values.length;let r=ie.create(ee,x,!0),s=ie.create(ee,x,!0),n=ie.create(String,x,!0);var C=i.valuesStart;for(let t=0;t<x;t++){var y=l?t+1:t;if(y>=m.xAxis.info.stripPositions.length)break;var b=m.xAxis.info.stripPositions[y];r[t]=this.getPointValue(t,i,i.values,m,b),s[t]=this.getPointValue(t,i,C,m,b);let e=m.xAxis.info.stripLines.getByIndex(y).valueObject;n[t]=null==e?"":e.stimulsoft().toString()}var A=this.getPointsZeroConnect(i,m),v=this.getPointsNullConnect(i,m),L,T;if(p.push(A),f.push(v),w.push(n),0<r.length){r=te.d.StiPointHelper.optimizePoints(r);var I={ref:L},k={ref:T},F=this.clipLinePoints(a,h,r,I,k),B=this.clipLinePoints(a,h,s,I,k),L=I.ref,T=k;let e=new te.d.StiSeriesPointsInfo;e.pointsFrom=B,e.points=F,e.pointsZeroConnect=A,e.pointsNullConnect=v,e.pointsIds=n,i.core.renderAreas(a,h,e),this.isTopmostLine(i)||i.core.renderLines(a,h,e)}t.push(r),g.push(s)}let R=0;for(c of t){var i,r,s={ref:i},P={ref:r};let t=this.clipLinePoints(a,h,c,s,P);var D=this.clipLinePoints(a,h,g[R],s,P),i=s.ref,r=P.ref,M=w[R],N=this.clipLinePoints(a,h,p[R],s,P),P=this.clipLinePoints(a,h,f[R],s,P);let n=u[R];if(this.isTopmostLine(u[R])){let e=new te.d.StiSeriesPointsInfo;e.pointsFrom=D,e.points=t,e.pointsZeroConnect=N,e.pointsNullConnect=P,e.pointsIds=M,n.core.renderLines(a,h,e)}n.as(te.d.StiSeries).trendLines.list.forEach(e=>{null!=e&&e.core.renderTrendLine(h,t,m.axisCore.getDividerY())});let l=n.core.getSeriesLabels();if(null!=l&&l.visible)for(let s=i;s<=r;s++)if(n.values.length>s){let i=m.reverseHor?n.values[n.values.length-s-1]:n.values[s];null==i&&n.showNulls&&(i=0);let r=i;m.reverseVert&&null!=i&&(r=-r),S=n.yAxis==te.d.StiSeriesYAxis.LeftYAxis?m.axisCore.getDividerY():m.axisCore.getDividerRightY();var E=c[s];if(null!=E){let e=0;null!=n.valuesStart&&n.valuesStart.length>s&&(e=m.reverseHor?n.valuesStart[n.values.length-s-1]:n.valuesStart[s]);var O=new ee(E.x,S),G;let t=null;if(this.series.chart.isAnimationChangingValues&&l.valueType==te.d.StiSeriesLabelsValueType.Value&&(t=l.valueType==te.d.StiSeriesLabelsValueType.Value&&Z.isNullOrEmpty(l.format)&&null!==(d=l.formatService)&&void 0!==d&&d.is(X)?(G=g[R].length>s?g[R][s]:null,new yt(e,i,G,E,te.d.StiChartHelper.globalBeginTimeElement,U.zero)):new xt(te.d.StiChartHelper.globalBeginTimeElement,U.zero)),0==l.step||s%l.step==0){var G=m.xAxis.startFromZero?s+1:s;let e=l.core.renderLabel(n,a,this.correctPoint(E,o,n.labelsOffset*a.options.zoom),this.correctPoint(O,o,n.labelsOffset*a.options.zoom),s,r,i,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(G),n),n.core.getTag(s),0,1,o,t);null!=e&&(h.createChildGeoms(),h.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(l,h,e.clientRectangle))}}}R++}h.area.chart.seriesLabels.preventIntersection&&this.checkIntersectionLabels(h)}getPointsZeroConnect(t,e){let i=new P;if(t.showZerosAs==te.d.StiShowEmptyCellsAs.Gap)return i;let r=new P,s=new P;for(let e=0;e<t.values.length;e++){var n;0==t.values[e]?(s.add(e),1==s.length&&r.add(s)):s=new P}return i=this.getPointConnect(t,e,r),i}getPointsNullConnect(t,e){let i=new P;if(t.showNullsAs==te.d.StiShowEmptyCellsAs.Gap)return i;let r=new P,s=new P;for(let e=0;e<t.values.length;e++){var n;null==t.values[e]?(s.add(e),1==s.length&&r.add(s)):s=new P}return i=this.getPointConnect(t,e,r),i}getPointConnect(i,r,e){let s=new P;for(var n of e){var l=n[0]-1,a=n[n.length-1]+1,l;let t=0,e=0;0<=l&&l<i.values.length&&(t=i.values[l],l=this.getPointValue2(i,r,t,l),s.add(l)),0<=a&&a<i.values.length&&(e=i.values[a]);var o=(e-t)/(n.length+1),a;for(let e=0;e<n.length;e++){var h=t+o*(e+1),h=this.getPointValue2(i,r,h,n[e]);s.add(h)}0<=a&&a<i.values.length&&(a=this.getPointValue2(i,r,e,a),s.add(a)),s.add(null)}return s}getPointValue2(e,t,i,r){if((r=t.xAxis.core.getStartFromZero()?r+1:r)>=t.xAxis.info.stripPositions.length)return ee.empty;var r=t.xAxis.info.stripPositions[r];let s=0;return s=e.yAxis==te.d.StiSeriesYAxis.LeftYAxis?-i*t.yAxis.info.dpi+t.axisCore.getDividerY():-i*t.yRightAxis.info.dpi+t.axisCore.getDividerRightY(),new ee(r,s)}getPointValue(e,t,i,r,s){let n=0;return i.length>e&&(n=r.reverseHor?i[i.length-e-1]:i[e]),this.getPointValue1(n,t,r,s)}getPointValue1(e,t,i,r){var s=t.is(te.d.StiAreaSeries)||t.is(te.d.StiSplineAreaSeries)||t.is(te.d.StiStackedAreaSeries)||t.is(te.d.StiStackedSplineAreaSeries)||t.is(te.d.StiSteppedAreaSeries);if(0==e&&!t.showZeros&&!s)return null;if(null==e&&!t.showNulls&&!s)return null;null==e&&t.showNulls&&(e=0),i.reverseVert&&null!=e&&(e=-e);let n=0;return n=t.yAxis==te.d.StiSeriesYAxis.LeftYAxis?-e*i.yAxis.info.dpi+i.axisCore.getDividerY():-e*i.yRightAxis.info.dpi+i.axisCore.getDividerRightY(),new ee(r,n)}isTopmostLine(e){if(e.is(te.d.IStiSplineAreaSeries))return e.topmostLine;if(e.is(te.d.IStiSteppedAreaSeries))return e.topmostLine;if(e.is(te.d.IStiAreaSeries))return e.topmostLine;return!0}correctPoint(e,t,i){if(e.y+i<0)return new ee(e.x,0);if(e.y+i>t.height)return new ee(e.x,t.height);return new ee(e.x,e.y+i)}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t),r;if(null==t){if(this.series.stimulsoft().is(te.d.StiBubbleSeries))return this.series.brush;return new se(qe.dark(i.lineColor,20))}if(null==t)return new se(qe.dark(i.lineColor,20));return t}getSeriesBorderColor(e,t){var i=this.series,t=super.getSeriesBorderColor(e,t),r;if(null==t){if(this.series.stimulsoft().is(te.d.StiBubbleSeries))return this.series.borderColor;return i.lineColor}return t}};te.d.StiBaseLineSeriesCoreXF=e}te.d.StiScatterSeriesCoreXF=class extends te.d.StiBaseLineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series.stimulsoft().as(te.d.IStiBaseLineSeries);i.allowApplyStyle&&(e.core.markerVisible||(i.marker.visible=!0))}renderLines(e,t,i){this.renderMarkers(e,t,i.points)}renderSeries(l,a,o,t){if(null==t||0==t.length||null==this.series.chart)return;let h=o.area,u=0,i=[],d=[];for(let e=0;e<t.length;e++){let s=t[e];var m=Math.min(s.values.length,s.arguments.length);let n=ie.create(ee,m,!0),l=ie.create(String,m,!0);var c=s.arguments.stimulsoft().getKeys(),r,S,g,p,g,g,f,w,p,S,g,p,g,p;for(let r=0;r<m;r++){let e=s.values[r];if(null==e&&this.series.showNulls&&(e=0),0==e&&!this.series.showZeros){n[r]=null,l[r]="_zero_";continue}if(null!=e){h.reverseVert&&null!=e&&!h.yAxis.logarithmicScale&&(e=-e);let t=0;t=h.yAxis.logarithmicScale?(S=0,g=h.yAxis.info.stripLines.count-1,p=h.yAxis.info.stripLines.getByIndex(S).value,g=h.yAxis.info.stripLines.getByIndex(g).value,g=Math.abs(a.height/(M.log10(g)-M.log10(p))),Math.abs(M.log10(h.yAxis.info.stripLines.getByIndex(S).value)*g-M.log10(e)*g)):s.yAxis==te.d.StiSeriesYAxis.LeftYAxis?-e*h.yAxis.info.dpi+h.axisCore.getDividerY():-e*h.yRightAxis.info.dpi+h.axisCore.getDividerRightY();let i=null;if(s.arguments.stimulsoft().getByIndex(r,c)instanceof v){let e=s.arguments.stimulsoft().getByIndex(r,c);i=e.toOADate().stimulsoft().toNumber()}else try{i=null==s.arguments.stimulsoft().getByIndex(r,c)?null:"string"==typeof(f=s.arguments.stimulsoft().getByIndex(r,c))?(w={ref:0},te.d.StiSeries.tryParseValue(f,s.chart.report.culture,w)?w.ref:null):Ke.changeType(f,Number)}catch(e){i=null}if(null==i)n[r]=null,l[r]="_zero_";else{let e=0;e=h.xAxis.logarithmicScale&&0<h.xAxis.info.stripLines.count?(p=h.xAxis.info.stripLines.count,S=h.reverseHor?p-1:0,g=h.reverseHor?0:p-1,p=h.xAxis.info.stripLines.getByIndex(S).value,g=h.xAxis.info.stripLines.getByIndex(g).value,p=Math.abs(a.width/(M.log10(g)-M.log10(p))),M.log10(i)*p-M.log10(h.xAxis.info.stripLines.getByIndex(S).value)*p):(i-h.xAxis.info.minimum)*h.xAxis.info.dpi,h.reverseHor&&(e=a.width-e),n[r]=new ee(e,t),l[r]=i.stimulsoft().toString()}}else n[r]=null,l[r]="_zero_"}i.push(n),d.push(l)}let x=0;for(let n of i){let r=t[x];var C=r.arguments.stimulsoft().getKeys();let e=new te.d.StiSeriesPointsInfo;e.points=n,e.pointsIds=d[x],r.core.renderLines(l,o,e),r.stimulsoft().as(te.d.StiSeries).trendLines.list.forEach(e=>{null!=e&&e.core.renderTrendLine(o,n,h.axisCore.getDividerY())});let s=r.core.getSeriesLabels();if(null!=s&&s.visible)for(let i=0;i<n.length;i++){var y=r.values[i];let t=y;h.reverseVert&&null!=y&&(t=-t),u=r.yAxis==te.d.StiSeriesYAxis.LeftYAxis?h.axisCore.getDividerY():h.axisCore.getDividerRightY();var b=n[i];if(null!=b){var A=new ee(b.x,u);if((a.contains(A.x,A.y)||A.y==a.bottom||a.contains(b.x,b.y))&&(0==s.step||i%s.step==0)){let e=s.core.renderLabel(r,l,this.correctPoint(b,a,r.labelsOffset*l.options.zoom),this.correctPoint(A,a,r.labelsOffset*l.options.zoom),i,t,y,r.arguments.stimulsoft().getByIndex(i,C).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),r.core.getTag(i),0,1,a);null!=e&&(o.createChildGeoms(),o.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(s,o,e.clientRectangle.clone()))}}}x++}o.area.chart.seriesLabels.preventIntersection&&this.checkIntersectionLabels(o)}get localizedName(){return N.get("Chart","Scatter")}constructor(e){super(e)}},te.d.StiBubbleSeriesCoreXF=class extends te.d.StiScatterSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t),this.series.allowApplyStyle&&(this.series.brush=e.core.getColumnBrush(t),this.series.borderColor=e.core.getColumnBorder(t),this.series.borderThickness=e.core.seriesBorderThickness)}renderLines(e,t,i){}renderBubbles(e,i,r,s,t){let n=0,l=0;for(var a of r.chart.series.list){var a=a,o;if(null==a)continue;for(o of a.weights)n=0==l?o:Math.max(o,n),l++}var h=i.area,u,d=.9*Math.min(h.xAxis.info.step,h.yAxis.info.step)/n,m=te.d.StiChartHelper.globalBeginTimeElement,c;l=0;for(c of t){var S=s[l];if(null!=S&&0<c){var g=c*d,p=new ne(S.x-g/2,S.y-g/2,g,g),S=this.getSeriesBrush(l,s.length),g=r.core.getSeriesBorderColor(l,s.length);let t=new te.d.StiBubbleSeriesElementGeom(i,c,l,S,g,r,p,new U(m.ticks/h.core.valuesCount*l));if(null!=r.core.interaction){let e=new Ct;e.fill(h,r,l),t.interaction=e}i.createChildGeoms(),i.childGeoms.push(t)}l++}}renderSeries(l,a,o,t){if(null==t||0==t.length||null==this.series.chart)return;let h=o.area,u=0,i=[],d=[];for(let e=0;e<t.length;e++){let s=t[e];var m=Math.min(s.values.length,s.arguments.length);let n=[],l=[];for(let r=0;r<m;r++){let e=s.values[r];null==e&&s.showNulls&&(e=0),h.reverseVert&&null!=e&&(e=-e);let t=0;t=s.yAxis==te.d.StiSeriesYAxis.LeftYAxis?-e*h.yAxis.info.dpi+h.axisCore.getDividerY():-e*h.yRightAxis.info.dpi+h.axisCore.getDividerRightY();let i=null;if(s.arguments[r]instanceof v){let e=s.arguments[r];i=e.toOADate().stimulsoft().toNumber()}else try{null!=s.arguments[r]&&s.arguments[r]!=x.value&&(i=s.arguments[r].stimulsoft().toNumber())}catch(e){J.System.StiError.showError(e,!1),i=null}if(null==i&&s.showNulls&&(i=0),null!=e&&null!=i){let e=(i-h.xAxis.info.minimum)*h.xAxis.info.dpi;h.reverseHor&&(e=a.width-e),n.push(new ee(e,t))}else n.push(null);l.push(r<s.weights.length?s.weights[r]:0)}i.push(n),d.push(l)}for(let e=0;e<i.length;e++){var c=d[e];let r=i[e],s=t[e];s.core.renderBubbles(l,o,s,r,c);var c=s.stimulsoft().as(te.d.StiSeries).trendLines,S=ie.create(ee,r.length,!0),g;r.stimulsoft().copyTo(S);for(g of c.list)g.core.renderTrendLine(o,S,h.axisCore.getDividerY());let n=s.core.getSeriesLabels();if(null!=n&&n.visible)for(let i=0;i<r.length;i++){var p=s.values[i];let t=p;h.reverseVert&&null!=t&&(t=-t),u=s.yAxis==te.d.StiSeriesYAxis.LeftYAxis?h.axisCore.getDividerY():h.axisCore.getDividerRightY();var f=r[i];if(null!=f){var w=new ee(f.x,u);if((a.contains(w.x,w.y)||w.y==a.bottom||a.contains(f.x,f.y))&&(0==n.step||i%n.step==0)){let e=n.core.renderLabel2(s,l,this.correctPoint(f,a,s.labelsOffset*l.options.zoom),this.correctPoint(w,a,s.labelsOffset*l.options.zoom),i,t,p,s.arguments[i].toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),s.core.getTag(i),s.weights[i],i,r.length,a);null!=e&&(o.createChildGeoms(),o.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(n,o,e.clientRectangle))}}}}}get localizedName(){return N.get("Chart","Bubble")}constructor(e){super(e)}},te.d.StiClusteredColumnSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t),this.series.allowApplyStyle&&(this.series.brush=e.core.getColumnBrush(t),this.series.borderColor=e.core.getColumnBorder(t),this.series.borderThickness=e.core.seriesBorderThickness)}renderSeries(a,o,h,t){var u;let d=[];var e=h.area;if(null==t||0==t.length||null==this.series.chart)return;let m=e;var i=m.xAxis.core.getStartFromZero(),c=m.axisCore.getDividerY();let S=0;var g=m.axisCore.valuesCount*t.length,r,s;let p=[];for(let e=0;e<t.length;e++)p.push([]);let f=0;for(r of t)f+=m.xAxis.info.step/t.length*r.width;for(let l=0;l<m.axisCore.valuesCount;l++){let n=this.measureLeftPosition(m,l,f,i),r=0;m.reverseHor&&(r=t.length-1);while(r<t.length&&!m.reverseHor||0<=r&&m.reverseHor){let s=t[r];var w=m.xAxis.info.step/t.length*s.width,x=s.valuesStart;if(l<s.values.length){var C=this.getSeriesCurrentValue(m,s,l);let e=this.getColumnRect(a,s,C,n,w);var y=this.getSeriesValueStart(m,s.valuesStart,l),b=this.getSeriesValueStart(m,x,l),A=this.getColumnRect(a,s,null!=b?b:0,n,w),v;for(v of s.as(te.d.StiSeries).trendLines.list)if(!v.is(te.d.IStiTrendLineNone)){p[r].push(new ee(n+w/2,e.y));break}let t=h.view.clientRectangle.clone();t.x=0,t.y=0;let i=e.clone();if(i.x+=h.clientRectangle.x,i.y+=h.clientRectangle.y,i.right>t.x&&i.x<t.right||this.series.chart.area.xAxis.range.auto){var x=this.getSeriesBrush2(s,C,S,g,l),b=s.core.getSeriesBorderColor(S,g);if(null!=this.series.chart&&null!=this.series.chart.style&&0<e.height){let t=new te.d.StiClusteredColumnSeriesElementGeom(h,C,l,x,b,s,e,A);if(null!=s.core.interaction){let e=new Ct;e.fill(m,s,l),t.interaction=e}h.createChildGeoms(),h.childGeoms.push(t)}let r=s.core.getSeriesLabels();if(null!=r&&r.visible){var A=this.getPointEnd(s,C,n,w),L;let t=0;null!=C&&(t=m.reverseVert?-C:C);let i=null;if(this.series.chart.isAnimationChangingValues&&(i=r.valueType==te.d.StiSeriesLabelsValueType.Value&&Z.isNullOrEmpty(r.format)&&null!==(u=r.formatService)&&void 0!==u&&u.is(X)?(L=this.getPointEnd(s,y,n,w),new yt(y,C,new ee(L.x,L.y),new ee(A.x,A.y),te.d.StiChartHelper.globalBeginTimeElement,U.zero)):new xt(te.d.StiChartHelper.globalBeginTimeElement,U.zero)),0==r.step||l%r.step==0){var L=m.xAxis.startFromZero?l+1:l;let e=r.core.renderLabel(s,a,this.correctPoint(A,o),this.correctPoint(new ee(A.x,c),o),l,C,t,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(L),s),s.core.getTag(l),S,g,o,i);null!=e&&(d.push(e),e.clientRectangle=this.checkLabelsRect(r,h,e.clientRectangle))}}}}n+=w,S++,m.reverseHor?r--:r++}}for(let i=0;i<t.length;i++)t[i].trendLines.list.forEach(t=>{if(!t.is2(te.d.IStiTrendLineNone)){let e=p[i];null!=t&&t.core.renderTrendLine(h,e.stimulsoft().toArray(),m.axisCore.getDividerY())}});for(s of d)h.createChildGeoms(),h.childGeoms.push(s);h.area.chart.seriesLabels.preventIntersection&&this.checkIntersectionLabels(h)}getPointEnd(e,t,i,r){let s,n=e.chart.area;var l=n.axisCore.getDividerY(),a=n.axisCore.getDividerRightY();return s=e.yAxis==te.d.StiSeriesYAxis.LeftYAxis?new ee(i+r/2,-(t*n.yAxis.info.dpi)+l):new ee(i+r/2,-(t*n.yRightAxis.info.dpi)+a),s}getColumnRect(e,t,i,r,s){let n=t.chart.area,l=0,a=0;var o=n.axisCore.getDividerY(),h=n.axisCore.getDividerRightY();return a=t.yAxis==te.d.StiSeriesYAxis.LeftYAxis?(n.reverseVert,l=i*n.yAxis.info.dpi,-l+o):(l=i*n.yRightAxis.info.dpi,-l+h),!t.showZeros||0!=i&&null!=i||(l=Math.max(e.options.zoom,2),n.reverseVert||(a-=l)),i<0&&(a=t.yAxis==te.d.StiSeriesYAxis.LeftYAxis?o:h,l=-l),new ne(r,a,s,l)}correctPoint(e,t){if(e.y<0)return new ee(e.x,0);if(e.y>t.height)return new ee(e.x,t.height);return e}getSeriesBrush(e,t){var t=super.getSeriesBrush(e,t);if(null==t)return this.series.brush;return t}getSeriesBorderColor(e,t){var t=super.getSeriesBorderColor(e,t);if(null==t)return this.series.borderColor;return t}measureLeftPosition(e,t,i,r){var t=r?e.xAxis.info.stripPositions[t+1]:e.xAxis.info.stripPositions[t],s;return(t-=e.xAxis.info.step/2)+(e.xAxis.info.step-i)/2}getSeriesCurrentValue(e,t,i){let r=e.reverseHor?t.values[t.values.length-i-1]:t.values[i];return e.reverseVert&&null!=r&&(r=-r),r}getSeriesValueStart(e,t,i){let r=null;return this.series.chart.isAnimationChangingValues&&(null!=t&&t.length>i&&(r=e.reverseHor?t[t.length-i-1]:t[i]),e.reverseVert&&null!=r&&(r=-r)),r}getSeriesBrush2(e,t,i,r,s){let n=e.core.getSeriesBrush(i,r);return e.allowApplyBrushNegative&&t<0&&(n=e.brushNegative),n=e.processSeriesBrushes(s,n),n}get localizedName(){return N.get("Chart","ClusteredColumn")}constructor(e){super(e)}};{let e=class extends te.d.StiClusteredColumnSeriesCoreXF{constructor(e){super(e)}implements(){return e.implementsStiClusteredBarSeriesCoreXF||(e.implementsStiClusteredBarSeriesCoreXF=super.implements().concat([te.d.IStiApplyStyleSeries])),e.implementsStiClusteredBarSeriesCoreXF}applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getColumnBrush(t),i.brush.is(de)&&(i.brush.angle+=90),i.brush.is(me)&&(i.brush.angle+=90),i.borderColor=e.core.getColumnBorder(t),i.borderThickness=e.core.seriesBorderThickness)}renderSeries(u,d,m,r){var c,S;let g=[];var e=m.area;if(null==r||0==r.length||null==this.series.chart)return;let p=e;var i=p.yAxis.core.getStartFromZero(),f=p.axisCore.getDividerX(),w=p.axisCore.getDividerTopX(),x=p.axisCore.valuesCount*r.length;let C=p.reverseVert?x-1:0;var y=p.axisCore.valuesCount;let b=[];for(let e=0;e<r.length;e++)b.push([]);var s=r.stimulsoft().getKeys(),t;for(let h=0;h<y;h++){var n=i?p.yAxis.info.stripPositions[h+1]-p.yAxis.info.step/2:p.yAxis.info.stripPositions[h]-p.yAxis.info.step/2,l;let e=0;for(l of r)e+=p.yAxis.info.step/r.length*l.width;let o=n+(p.yAxis.info.step-e)/2,t=0;p.reverseVert&&(t=r.length-1);var A=te.d.StiChartHelper.globalBeginTimeElement;while(t<r.length&&!p.reverseVert||0<=t&&p.reverseVert){let a=r.stimulsoft().getByIndex(t,s);var v=p.yAxis.info.step/r.length*a.width;if(h<a.values.length){var L=-(p.reverseVert?a.values[h]:a.values[a.values.length-h-1]),T=L*p.xAxis.info.dpi,I;let i=this.getBarRect(u,a,L,o,v),s=mt.empty,n=null;this.series.chart.isAnimationChangingValues&&((null===(c=a.valuesStart)||void 0===c?void 0:c.length)>h&&(n=-(p.reverseVert?a.valuesStart[h]:a.valuesStart[a.valuesStart.length-h-1])),s=p.reverseHor?L<0?mt.fromLTRB(i.right,i.top,i.right,i.bottom):mt.fromLTRB(i.left,i.top,i.left,i.bottom):0<=L?mt.fromLTRB(i.right,i.top,i.right,i.bottom):mt.fromLTRB(i.left,i.top,i.left,i.bottom));for(I of a.as(te.d.StiSeries).trendLines.list)if(!I.is(te.d.IStiTrendLineNone)){b[t].push(new ee(T,o+v/2));break}let l=m.view.clientRectangle.clone();l.x=0,l.y=0;let e=i.clone();if(e.x+=m.clientRectangle.x,e.y+=m.clientRectangle.y,e.bottom>l.y&&e.y<l.bottom||this.series.chart.area.yAxis.range.auto){if(null!=this.series.chart&&null!=this.series.chart.style&&0<i.width){let e=a.core.getSeriesBrush(C,x);a.allowApplyBrushNegative&&0<L&&(e=a.brushNegative),e=a.processSeriesBrushes(y-1-h,e);var k=a.core.getSeriesBorderColor(C,x);let t=new te.d.StiClusteredBarSeriesElementGeom(m,n,p.reverseHor?-L:L,h,e,k,a,s,i);if(null!=a.core.interaction){let e=new Ct;e.fill(p,a,h),t.interaction=e}m.createChildGeoms(),m.childGeoms.push(t)}let r=a.core.getSeriesLabels();if(null!=r&&r.visible){let t=L;null!=L&&(t=p.reverseHor?L:-L);var F=a.yAxis==te.d.StiSeriesYAxis.RightYAxis?w:f,c=(a.yAxis==te.d.StiSeriesYAxis.RightYAxis?p.xTopAxis:p.xAxis).info.dpi,k=new ee(t*c+F,o+v/2);let i=null;if(this.series.chart.isAnimationChangingValues)if(r.valueType==te.d.StiSeriesLabelsValueType.Value&&Z.isNullOrEmpty(r.format)&&null!==(S=r.formatService)&&void 0!==S&&S.is(X)){var B=new ee(-(n*c)+F,o+v/2);let e=null,t=null;null!=n&&(e=p.reverseHor?n:-n),null!=L&&(t=p.reverseHor?L:-L),i=new yt(e,t,new ee(B.x,B.y),new ee(k.x,k.y),A,U.zero)}else i=new xt(te.d.StiChartHelper.globalBeginTimeElement,U.zero);if(0==r.step||h%r.step==0){var B=p.yAxis.startFromZero?h+1:h;let e=r.core.renderLabel(a,u,this.correctPoint(k,d),this.correctPoint(new ee(f,k.y),d),h,L,p.reverseHor?-t:t,p.axisCore.getArgumentLabel(p.yAxis.info.stripLines.getByIndex(B),a),a.core.getTag(h),C,x,d,i);null!=e&&(g.push(e),e.clientRectangle=this.checkLabelsRect2(r,l,e.clientRectangle))}}}}o+=v,C=p.reverseVert?C-1:C+1,p.reverseVert?t--:t++}}for(let i=0;i<r.length;i++)r.stimulsoft().getByIndex(i,s).trendLines.list.forEach(t=>{if(!t.is2(te.d.IStiTrendLineNone)){let e=b[i];null!=t&&t.core.renderTrendLine(m,e.stimulsoft().toArray(),p.axisCore.getDividerY())}});for(t of g)m.createChildGeoms(),m.childGeoms.push(t)}getBarRect(e,t,i,r,s){let n=t.chart.area;var l=n.axisCore.getDividerX(),a=n.axisCore.getDividerTopX(),l=t.yAxis==te.d.StiSeriesYAxis.RightYAxis?a:l,o;let h=i*(t.yAxis==te.d.StiSeriesYAxis.RightYAxis?n.xTopAxis:n.xAxis).info.dpi,u=-h+l;return!this.series.showZeros||0!=i&&null!=i||(h=Math.max(e.options.zoom,2)),i<0&&(u=l,h=-h),new mt(u,r,h,s)}correctPoint(e,t){if(e.x<0)return new ee(0,e.y);if(e.x>t.width)return new ee(t.width,e.y);return e}get localizedName(){return N.get("Chart","ClusteredBar")}};te.d.StiClusteredBarSeriesCoreXF=e}te.d.StiLineSeriesCoreXF=class extends te.d.StiBaseLineSeriesCoreXF{renderLines(t,i,r){if(null!=r.points&&1<r.points.length){let e=new te.d.StiLineSeriesGeom(i,r,this.series);i.createChildGeoms(),i.childGeoms.push(e),null!=this.interaction&&(e.interactions=this.getInteractions(t,i,r.points))}this.renderMarkers(t,i,r.points)}get localizedName(){return N.get("Chart","Line")}constructor(e){super(e)}},te.d.StiAreaSeriesCoreXF=class extends te.d.StiLineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t))}renderAreas(e,t,i){if(null==i.points||i.points.length<=1)return;var i=new te.d.StiAreaSeriesGeom(t,i,this.series);null!=i&&(t.createChildGeoms(),t.childGeoms.push(i))}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t);if(null==t)return i.brush;return t}get localizedName(){return N.get("Chart","Area")}constructor(e){super(e)}},te.d.StiHistogramSeriesCoreXF=class extends te.d.StiClusteredColumnSeriesCoreXF{get localizedName(){return N.get("Chart","Histogram")}constructor(e){super(e)}},te.d.StiParetoSeriesCoreXF=class extends te.d.StiClusteredColumnSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;this.series.allowApplyStyle&&(i.brush=e.core.getColumnBrush(t),i.borderColor=e.core.getColumnBorder(t),i.lighting=e.core.seriesLighting,i.marker.visible=e.core.markerVisible,i.borderThickness=e.core.seriesBorderThickness,null!=i.marker&&(i.marker.brush=new se(qe.light(t,100)),i.marker.borderColor=qe.dark(t,100)),null!=i.lineMarker&&(i.lineMarker.brush=new se(qe.light(t,50)),i.lineMarker.borderColor=qe.dark(t,150))),i.allowApplyLineColor||(i.lineColor=qe.light(t,50))}renderSeries(e,t,i,r){if(null==r||0==r.length||null==this.series.chart)return;super.renderSeries(e,t,i,r),this.renderLinePareto(e,t,i,r)}renderLinePareto(e,t,i,l){var r;let a=i.area;var o=a.xAxis.core.getStartFromZero();t.width+=.001;let h=[],u=[],d=[];for(let e=0;e<l.length;e++){var m=l[e],c=this.getParetoValues(m.values),S=m.values.length;let r=ie.create(ee,S,!0),s=ie.create(ee,S,!0),n=ie.create(String,S,!0);for(let i=0;i<S;i++){var g=o?i+1:i;if(g>=a.xAxis.info.stripPositions.length)break;var p=a.xAxis.info.stripPositions[g],f=a.reverseHor?c[c.length-i-1]:c[i];r[i]=this.getPointValue(f,m,a,p);var f=this.getParetoValues(m.valuesStart);let e=0;f.length>i&&(e=a.reverseHor?f[f.length-i-1]:f[i]),s[i]=this.getPointValue(e,m,a,p);let t=a.xAxis.info.stripLines.getByIndex(g).valueObject;n[i]=null==t?"":t.stimulsoft().toString()}if(0<r.length){r=te.d.StiPointHelper.optimizePoints(r);let e=new te.d.StiSeriesPointsInfo;e.pointsFrom=s,e.points=r,e.pointsIds=n,this.renderLines(i,e,m)}h.push(r),this.series.chart.isAnimationChangingValues&&(u.push(s),d.push(n))}}renderLines(e,t,i){var i;null!=t.points&&1<t.points.length&&(i=new te.d.StiLineSeriesGeom(e,t,i),e.createChildGeoms(),e.childGeoms.push(i))}getParetoValues(e){let t=new P,i=new P,r=0;for(var s of e)r+=s,t.push(r);for(var n of t){var n=n/r*100;i.push(n)}return i}getPointValue(e,t,i,r){var i=-(e=i.reverseVert&&null!=e?-e:e)*i.yRightAxis.info.dpi+i.axisCore.getDividerRightY();return new ee(r,i)}get localizedName(){return N.get("Chart","ClusteredColumn")}constructor(e){super(e)}},te.d.StiSplineSeriesCoreXF=class extends te.d.StiBaseLineSeriesCoreXF{renderLines(e,t,i){if(null==i.points||i.points.length<=1)return;let r=new te.d.StiSplineSeriesGeom(t,i,this.series);null!=r&&(t.createChildGeoms(),t.childGeoms.push(r)),null!=this.interaction&&(r.interactions=this.getInteractions(e,t,i.points)),this.renderMarkers(e,t,i.points)}get localizedName(){return N.get("Chart","Spline")}constructor(e){super(e)}},te.d.StiSplineAreaSeriesCoreXF=class extends te.d.StiSplineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t))}renderAreas(e,t,i){if(null==i.points||i.points.length<=1)return;var i=new te.d.StiSplineAreaSeriesGeom(t,i,this.series);null!=i&&(t.createChildGeoms(),t.childGeoms.push(i))}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t);if(null==t)return i.brush;return t}get localizedName(){return N.get("Chart","SplineArea")}constructor(e){super(e)}},te.d.StiSteppedLineSeriesCoreXF=class extends te.d.StiBaseLineSeriesCoreXF{renderLines(t,i,r){var e=this.series;if(1<r.points.length||e.pointAtCenter&&0<r.points.length){let e=new te.d.StiSteppedLineSeriesGeom(i,r,this.series);null!=e&&(i.createChildGeoms(),i.childGeoms.push(e)),null!=this.interaction&&(e.interactions=this.getInteractions(t,i,r.points))}this.renderMarkers(t,i,r.points)}get localizedName(){return N.get("Chart","SteppedLine")}constructor(e){super(e)}},te.d.StiSteppedAreaSeriesCoreXF=class extends te.d.StiSteppedLineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t))}renderAreas(e,t,i){var r=this.series;if(null==i.points||0==i.points.length||1==i.points.length&&!r.pointAtCenter)return;var i=new te.d.StiSteppedAreaSeriesGeom(t,i,this.series);null!=i&&(t.createChildGeoms(),t.childGeoms.push(i))}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t);if(null==t)return i.brush;return t}get localizedName(){return N.get("Chart","SteppedArea")}constructor(e){super(e)}};let bt=te.e.StiChart;te.d.StiWaterfallSeriesCoreXF=class extends te.d.StiClusteredColumnSeriesCoreXF{renderSeries(e,t,i,r){if(null==r||0==r.length||null==this.series.chart)return;this.renderColumns(e,t,i,r)}getSumSeriesWidth(e,t){let i=0;for(var r of t)i+=e.xAxis.info.step/t.length*r.width;return i}getDividerYSeries(e,t){var i=e.axisCore.getDividerY();let r=[];for(let e=0;e<t.length;e++)r[e]=i;return r}renderColumns(d,m,c,e){var S=c.area;let g=new P,p=S,i=this.getDividerYSeries(p,e),f=0;var w=p.axisCore.valuesCount*e.length,t=this.getSumSeriesWidth(p,e),r;for(let u=0;u<p.axisCore.valuesCount;u++){var s=p.xAxis.core.getStartFromZero()?p.xAxis.info.stripPositions[u+1]:p.xAxis.info.stripPositions[u];let o=(s-=p.xAxis.info.step/2)+(p.xAxis.info.step-t)/2,h=p.reverseHor?e.length-1:0;while(h<e.length&&!p.reverseHor||0<=h&&p.reverseHor){let l=e[h],a=p.xAxis.info.step/e.length*l.width;if(u<l.values.length){let s=p.reverseHor?l.values[l.values.length-u-1]:l.values[u];null==s&&(a=0),p.reverseVert&&null!=s&&(s=-s);var x=u==l.values.length-1,C,y={ref:C=x&&l.total.visible?p.axisCore.getDividerY():i[h]},b={ref:i[h]},A=x&&l.total.visible?this.getColumnRect(d,l,s,o,a,y):this.getColumnRect(d,l,s,o,a,b),C=y.ref;i[h]=b.ref;let n;n=s<0?mt.fromLTRB(A.left,A.top,A.right,A.top):mt.fromLTRB(A.left,A.bottom,A.right,A.bottom);let e=c.as(te.d.StiAxisAreaGeom).view.clientRectangle.clone();e.x=0,e.y=0;let t=A;if(t.x+=c.clientRectangle.x,t.y+=c.clientRectangle.y,t.right>e.x&&t.x<e.right||this.series.chart.area.stimulsoft().as(te.d.IStiAxisArea).xAxis.range.auto){let t,i;if(i=S.colorEach?(t=l.core.getSeriesBrush(f,w),l.allowApplyBrushNegative&&s<0&&(t=l.brushNegative),t=l.processSeriesBrushes(u,t),l.core.getSeriesBorderColor(f,w)):(t=!l.connectorLine.visible||x&&l.total.visible?l.core.getSeriesBrush(2,3):l.core.getSeriesBrush(0,3),s<0&&(t=l.allowApplyBrushNegative?l.brushNegative:l.core.getSeriesBrush(1,3)),t=l.processSeriesBrushes(u,t),t=Ze.light(t,10*h),l.core.getSeriesBorderColor(0,3)),null!=this.series.chart&&null!=this.series.chart.style&&0<A.height){let e=null;if(0<A.height&&(e=new te.d.StiClusteredColumnSeriesElementGeom(c,s,u,t,i,l,A,n)),l.connectorLine.visible&&!x){let e=new ut(l.connectorLine.lineColor,l.connectorLine.lineWidth);e.penStyle=l.connectorLine.lineStyle;var v=0<s?A.top:A.bottom,L=A.right+p.xAxis.info.step-a,L=new te.d.StiWaterfallLineGeom(new wt(A.right,v),new wt(L,v),e,new mt(A.right,v,L-A.right,v),l.chart.stimulsoft().as(bt).isAnimation);c.createChildGeoms(),c.childGeoms.push(L)}null!=e&&(c.createChildGeoms(),c.childGeoms.push(e))}let r=l.core.getSeriesLabels();if(null!=r&&r.visible&&null!=s){var A=x&&l.total.visible?p.axisCore.getDividerY():C,v=this.getPointEnd(l,s,o,a,A),L=p.reverseVert?-s:s,x=null;if(0==r.step||u%r.step==0){var C=p.xAxis.startFromZero?u+1:u;let e=r.core.stimulsoft().as(te.d.StiAxisSeriesLabelsCoreXF).renderLabel(l,d,this.correctPoint(v,m),this.correctPoint(new wt(v.x,A),m),u,s,L,p.axisCore.getArgumentLabel(p.xAxis.info.stripLines.getByIndex(C),l),l.core.getTag(u),f,w,m,x);null!=e&&(g.push(e),e.clientRectangle=this.checkLabelsRect(r,c,e.clientRectangle))}}}}o+=a,f++,p.reverseHor?h--:h++}}for(r of g)c.createChildGeoms(),c.childGeoms.push(r);c.area.chart.seriesLabels.preventIntersection&&this.checkIntersectionLabels(c)}getPointEnd(e,t,i,r,s=null){let n,l=e.chart.area.stimulsoft().as(te.d.IStiAxisArea);var a=l.axisCore.getDividerRightY();return n=e.yAxis==te.d.StiSeriesYAxis.LeftYAxis?new wt(i+r/2,-(t*l.yAxis.info.dpi)+s):new wt(i+r/2,-(t*l.yRightAxis.info.dpi)+a),n}getColumnRect(e,t,i,r,s,n=null){let l=t.chart.area.stimulsoft().as(te.d.IStiAxisArea),a=0,o=0;var h=l.axisCore.getDividerRightY();return o=t.yAxis==te.d.StiSeriesYAxis.LeftYAxis?(l.reverseVert,a=i*l.yAxis.info.dpi,-a+n.ref):(a=i*l.yRightAxis.info.dpi,-a+h),!t.showZeros||0!=i&&null!=i||(a=Math.max(e.options.zoom,2),l.reverseVert||(o-=a)),i<0&&(o=t.yAxis==te.d.StiSeriesYAxis.LeftYAxis?n.ref:h,a=-a),n.ref=0<i?o:o+a,new mt(r,o,s,a)}get localizedName(){return N.get("Chart","Waterfall")}constructor(e){super(e)}};let At=J.Base.Context.StiPieSegmentGeom
  ;te.d.StiPieSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.lighting=e.core.seriesLighting,i.borderThickness=e.core.seriesBorderThickness,i.allowApplyBrush&&(i.brush=e.core.getColumnBrush(t)),i.allowApplyBorderColor&&(i.borderColor=e.core.getColumnBorder(t)))}correctBrush(e){return e.is(de)&&((e=e.clone()).angle=-45),e.is(me)&&((e=e.clone()).angle=-45),e}renderPieElement(e,t,i,r,s,n,l,a,o,h,u,d,m){var c,S,g=ne.empty;s=this.correctBrush(s);var p={ref:c},f={ref:S},w={ref:g},x,c,S,g;if(this.measurePieElementCore(e,t,i,n,l,h,u,p,f,w).isEmpty)return null;return new te.d.StiPieSeriesElementGeom(d,a,o,h,g=w.ref,c=p.ref,S=f.ref,r,s,n,n+l,i)}renderPieElementShadow(e,t,i,r,s,n,l,a){if(this.series.chart.isAnimation)return;var o,h,u=ne.empty;r=this.correctBrush(r);var d={ref:o},m={ref:h},c={ref:u},a=this.measurePieElementCore(e,t,i,s,n,l,a,d,m,c),o=d.ref,h=m.ref,u=c.ref,o;if(a.isEmpty)return;e.pushSmoothingModeToAntiAlias(),e.fillPath(r,o,u,null),null!=h&&(o=new de(re.fromArgb(100,re.white),re.fromArgb(50,re.black),45),e.fillPath(o,h,u,null)),e.popSmoothingMode()}measurePieElement(e,t,i,r,s,n,l){var a,o,h,u={ref:a},d={ref:o},m={ref:ne.empty},l=this.measurePieElementCore(e,t,i,r,s,n,l,u,d,m),a=u.ref,o=d.ref,h=m.ref;return l}measurePieElementCore(e,t,i,r,s,n,l,a,o,h){let u=[],d=null;var m=ne.empty,n;if(0==s||isNaN(s))return ne.empty;if(0<l&&(t=this.getPoint(t,l*e.options.zoom,r+s/2)),(m=new ne(t.x-i,t.y-i,2*i,2*i)).width<=0&&m.height<=0)return ne.empty;return u.push(new At(new ne(m.x,m.y,m.width,m.height),r,s,null,null,null)),n.lighting&&!re.transparent.equals(n.borderColor)&&(n=0,d=[],n=.02*i,d.push(new gt(m,r,s)),d.push(new pt(this.getPoint(t,i-n,r+s),this.getPoint(t,i-n,r+s))),d.push(new gt(new ne(m.x+n,m.y+n,m.width-2*n,m.height-2*n),r+s,-s)),d.push(new pt(this.getPoint(t,i-n,r),this.getPoint(t,i-n,r)))),a.ref=u,o.ref=d,h.ref=m,e.getPathBounds(u)}checkNonZerovalue(e,t,i,r,s=!1){let n=0,l=0,a=0,o=0,h=null;for(var u of e){var d,m;for(m of s?u.valuesStart:u.values)0==m||null==m||isNaN(m)||(n++,o=m,h=u,1==n&&(a=l)),l++}return i.ref=a,t.ref=n,r.ref=h,o}isNotNullValues(e){for(var t of e)for(var i of t.values)if(null!=i)return!0;return!1}renderSeries(s,i,r,e){let n=this.getRadius(s,i);var l=this.getPointCenter(i);if(null==e||0==e.length||null==this.series.chart||null!=e&&!this.isNotNullValues(e))return r.createChildGeoms(),void r.childGeoms.push(new te.d.StiPieEmptySeriesElementGeom(new mt(l.x-n,l.y-n,2*n,2*n)));var a=te.d.StiChartHelper.globalDurationElement,o=te.d.StiChartHelper.globalBeginTimeElement,h=this.series.chart,u=this.getColorCount(e),t={ref:0};this.checkNonZerovalue(e,t,{ref:-1},{ref:null});var d=t.ref,m=this.getGradPerValue(e),c=this.getPercentPerValue(e);let S=e[0];var g=S.core.getPieSeriesLabels(),p;let f=S.startAngle,w=new ne(0,0,i.width,i.height);for(p of e)if(1<d){var x=p,C;let e=0;for(C of p.values){var y=m*Math.abs(C),b=this.measurePieElement(s,l,n,f,y,x,this.getPieDistance(e));0!=C&&(w=ne.union(w,b)),f+=y,e++}}var A=Math.max(-w.left,w.right-i.width),t=Math.max(-w.top,w.bottom-i.height),t=Math.max(A,t);n-=1.2*t;let v=ie.create(ne,u),L=ie.create(Number,u),T=ie.create(Number,4);ie.clear(T,0,T.length),f=S.startAngle,w=new ne(10*s.options.zoom,10*s.options.zoom,i.width-20*s.options.zoom,i.height-20*s.options.zoom);var t=w.clone(),I,k,k,F;let B=0;for(I of e){let i=I,r=0;for(var R of I.values){var P=m*Math.abs(R);let t=i.core.getPieSeriesLabels();if(null!=t&&t.visible){let e=n;0<this.getPieDistance(r)&&(e+=i.distance*s.options.zoom);var D=f+P/2,M={ref:null};t.core.renderLabel(i,s,l,e,0,D,r,Math.abs(R),R,this.getArgumentText(I,r),i.core.getTag(r),!0,r,u,c,M,!1,0);var M=M.ref;M.isEmpty||(w=ne.union(w,M)),0==R&&!t.showZeros||(v[B]=M,L[B]=M.y,0<=D&&D<=90&&T[0]++,90<D&&D<=180&&T[1]++,180<D&&D<=270&&T[2]++,270<D&&D<=360&&T[3]++)}f+=P,r++,0==R&&!this.series.chart.seriesLabels.showZeros||B++}}0==S.diameter&&(k=0,k=Math.min(k,w.left-t.left),k=Math.min(k,t.right-w.right),k=Math.min(k,w.top-t.top),k=Math.min(k,t.bottom-w.bottom),n+=k),B=0;for(F of e){let i=F,r=0;for(var N of F.values){var E=m*N;let t=i.core.getPieSeriesLabels();if(null!=t&&t.visible){let e=n;0<this.getPieDistance(r)&&(e+=i.distance*s.options.zoom);var O=f+E/2,G={ref:null};t.core.renderLabel(this.series,s,l,e,0,O,r,N,N,this.getArgumentText(F,r),i.core.getTag(r),!0,r,u,c,G,!1,0);var G=G.ref;0==N&&!t.showZeros||(v[B]=G,L[B]=G.y)}f+=E,r++,0==N&&!this.series.chart.seriesLabels.showZeros||B++}}if(null!=this.series.chart&&null!=this.series.chart.seriesLabels){var k=this.series.chart.seriesLabels.as(te.d.IStiTwoColumnsPieLabels);if(null!=k&&k.preventIntersection){let t=0;if(0<T[0]){var V=ie.create(ne,T[0],!0);if(ie.copy(v,0,V,T[0]),this.isIntersectionLabels(V)){t=w.height/2/T[0],v[0].y=w.y+w.height/2+t/2-v[0].height/2;for(let e=1;e<T[0];e++)v[e].y=v[e-1].y+t}}let i=T[0];if(0<T[1]){var V=ie.create(ne,T[1],!0);if(ie.copy(v,0,V,T[1]),this.isIntersectionLabels(V)){t=w.height/2/T[1],v[i].y=w.y+w.height-t/2-v[i].height/2;for(let e=i+1;e<i+T[1];e++)v[e].y=v[e-1].y-t}}if(i+=T[1],0<T[2]){var X=ie.create(ne,T[2],!0);if(ie.copy(v,0,X,T[2]),this.isIntersectionLabels(X)){t=w.height/2/T[2],v[i].y=w.y+w.height/2-t/2-v[i].height/2;for(let e=i+1;e<i+T[2];e++)v[e].y=v[e-1].y-t}}if(i+=T[2],0<T[3]){var X=ie.create(ne,T[3],!0);if(ie.copy(v,0,X,T[3]),this.isIntersectionLabels(X)){t=w.height/2/T[3],v[i].y=w.y+t/2-v[i].height/2;for(let e=i+1;e<i+T[3];e++)v[e].y=v[e-1].y+t}}for(let e=0;e<B;e++)L[e]=v[e].y-L[e]}}if(n<=5)return;if(S.showShadow){f=S.startAngle;for(var _ of e){if(1==d){var H=new ne(l.x-n,l.y-n,2*n,2*n),z=new ne(0,0,2*n,2*n);let e=s.createShadowGraphics();null!=e&&e.fillEllipse2(re.fromArgb(100,re.black),z,null);var H=new te.d.StiPieSeriesShadowElementGeom(S,H,.01*n+2*s.options.zoom,e,a,o);r.createChildGeoms(),r.childGeoms.push(H);break}{var j=_,Y;let t=0;for(Y of _.values){var W=m*Math.abs(Y),J=l,Z=new se(re.fromArgb(100,re.black)),q=s.createShadowGraphics();let e=i.clone();e.x=0,e.y=0,h.isAnimation&&(e.x=l.x-n,e.y=l.y-n,e.height=2*n,e.width=2*n),this.renderPieElementShadow(q,J,n,Z,f,W,j,this.getPieDistance(t));var q=new te.d.StiPieSeriesShadowElementGeom(S,e,.01*n+2*s.options.zoom,q,a,o);r.createChildGeoms(),r.childGeoms.push(q),f+=W,t++}}}}var $=this.getPieElementGeoms(s,r,n,i,e);if($.length<1)return r.createChildGeoms(),void r.childGeoms.push(new te.d.StiPieEmptySeriesElementGeom(new ne(l.x-n,l.y-n,2*n,2*n)));for(let t=0;t<$.length;t++){let e=$[t];e.is(te.d.StiPieSeriesFullElementGeom)?(null!=e.series.core.interaction&&(e.interaction=new Ct(r.area,e.series,e.index)),r.createChildGeoms(),r.childGeoms.push(e)):e.is(te.d.StiPieSeriesElementGeom)&&(e.count=$.length,null!=e.series.core.interaction&&(e.interaction=new Ct(r.area,e.series,e.index)),r.createChildGeoms(),r.childGeoms.push(e))}f=S.startAngle;var K=this.getPieLabelGeoms(s,n,i,e,L);if(this.series.chart.isAnimationChangingValues&&null!=g&&g.valueType==te.d.StiSeriesLabelsValueType.Value){var g=n/1.75;let e=new ne;e.x=l.x-g,e.y=l.y-g,e.width=2*g,e.height=2*g;for(let e=0;e<$.length;e++){var Q=K.length>e?K[e]:null;null!=Q&&(r.createChildGeoms(),r.childGeoms.push(Q))}}else for(var U of K)this.series.chart.isAnimationChangingValues&&U.is(te.d.StiCenterPieLabelsGeom)&&(U.animation=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalBeginTimeElement)),r.createChildGeoms(),r.childGeoms.push(U);let ee=this.getPieSeriesLabels();null!=ee&&ee.preventIntersection&&(ee.is(te.d.IStiTwoColumnsPieLabels)?this.checkIntersectionTwoColumnsLabels(r,t):ee.is(te.d.IStiOutsidePieLabels)?this.checkIntersectionOutLabels(r):this.checkIntersectionLabels(r))}getColorCount(e,t=!1){let i=0;for(var r of e)t&&null!=r.valuesStart&&(i+=r.valuesStart.length),t||null==r.values||(i+=r.values.length);return i}isIntersectionLabels(i){for(let t=0;t<i.length;t++)for(let e=0;e<i.length;e++){if(t==e)continue;if(i[t].intersectsWith(i[e]))return!0}return!1}getPieLabelGeoms(l,e,t,i,a,r=!1){let o=[],h=0,u=0;var s=i[0],d=this.getGradPerValue(i,r),m=this.getPercentPerValue(i,r),c=this.getPointCenter(t);let S=s.startAngle;var g=this.getColorCount(i,r),p,n,f;for(p of i){let s=p,n=0;for(f of r?p.valuesStart:p.values){var w=d*Math.abs(f),x=s.core.getPieSeriesLabels();if(null!=x&&x.visible){let r=x;var C=x;if(null!=r){let t=e;0<this.getPieDistance2(s,n)&&(t+=s.distance*l.options.zoom);var y=S+w/2;let i=0;if(null!=C&&C.preventIntersection&&(i+=a[u]),0==r.step||n%r.step==0){var C={ref:null};let e=r.core.renderLabel(s,l,c,t,0,y,n,Math.abs(f),f,this.getArgumentText(p,n),s.core.getTag(n),!1,h,g,m,C,!1,i);null!=e&&o.push(e),r.is(te.d.IStiOutsidePieLabels)&&r.showValue&&(e=r.core.renderLabel(s,l,c,t,0,y,n,Math.abs(f),f,this.getArgumentText(p,n),s.core.getTag(n),!1,h,g,m,C,!0,0),null!=e&&o.push(e))}}}h++,S+=w,n++,(0!=f||null!=x&&x.showZeros)&&u++}}return o}getPieSeriesLabels(){var e,e;if(this.series.showSeriesLabels==te.d.StiShowSeriesLabels.FromChart)return null===(e=this.series.chart.seriesLabels)||void 0===e?void 0:e.as(te.d.IStiPieSeriesLabels);if(this.series.showSeriesLabels==te.d.StiShowSeriesLabels.FromSeries)return null===(e=this.series.seriesLabels)||void 0===e?void 0:e.as(te.d.IStiPieSeriesLabels);return null}getPieElementGeoms(r,s,n,e,t,i=!1){let l=[];var a=t[0],o=this.getGradPerValue(t,i),h=this.getPointCenter(e);let u=a.startAngle;var d=this.getColorCount(t,i),m={ref:0},e={ref:-1},a={ref:te.d.IStiSeries=null};this.checkNonZerovalue(t,m,e,a,i);var c=m.ref,S;let g=0;for(S of t){if(0==c)break;var p=i?S.valuesStart:S.values;for(let i=0;i<p.length;i++){var f=p[i];if(0!=f){var w=o*Math.abs(f);let e=S.brush;S.allowApplyBrush&&(e=S.core.getSeriesBrush(g,d),e=S.processSeriesBrushes(i,e));let t=S.borderColor;S.allowApplyBorderColor&&(t=S.core.getSeriesBorderColor(g,d));var x=0==S.values.length?0:te.d.StiChartHelper.globalBeginTimeElement.ticks/S.values.length*i,x=new U(x),x=this.renderPieElement(r,h,n,t,e,u,w,Math.abs(f),i,S,this.getPieDistance2(S,i),s,x);null!=x&&l.push(x),u+=w}g++}}return l}checkIntersectionOutLabels(s){var e=s.childGeoms;let n=[];if(null!=e)for(var t of e)t.is(te.d.StiOutsidePieLabelsGeom)&&n.push(t);var l=n.length,i=!0,a;let r=0;while(i&&r<29){r++;for(let r=0;r<l;r++)for(let i=0;i<l;i++){if(i==r)continue;if(n[r].labelRect.intersectsWith(n[i].labelRect)){let e=n[r].labelRect,t=n[i].labelRect;e.intersectsWith(t)&&(a=e.height-Math.abs(n[i].labelRect.y-n[r].labelRect.y)+2,e.y>t.y?(e.y+=a/2,t.y-=a/2):(e.y-=a/2,t.y+=a/2),e.y<0&&(e.y=0),t.y<0&&(t.y=0),e.y+e.height>s.clientRectangle.height&&(e.y=s.clientRectangle.height-e.height),t.y+a/2+t.height>s.clientRectangle.height&&(t.y=s.clientRectangle.height-t.height),n[r].labelRect=e,n[i].labelRect=t)}}}}checkIntersectionTwoColumnsLabels(e,t){var e=e.childGeoms;if(null==e)return;var i=this.getPointCenter(t),r;let s=[],n=[];for(r of e)r.is(te.d.StiTwoColumnsPieLabelsGeom)&&(r.clientRectangle.x<i.x?s:n).push(r);this.isIntersectionLabels(s.map(e=>e.clientRectangle))&&this.checkLabelPosition(s,t),this.isIntersectionLabels(n.map(e=>e.clientRectangle))&&this.checkLabelPosition(n,t)}checkIntersectionLabels(s){var e=s.childGeoms;let n=[];if(null!=e)for(var t of e)t.is(te.d.StiCenterPieLabelsGeom)&&n.push(t);var l=n.length,i=!0,a;let r=0;while(i&&r<29){r++;for(let r=0;r<l;r++)for(let i=0;i<l;i++){if(i==r)continue;if(n[r].clientRectangle.intersectsWith(n[i].clientRectangle)){let e=n[r].labelRect,t=n[i].labelRect;e.intersectsWith(t)&&(a=e.height-Math.abs(n[i].clientRectangle.y-n[r].clientRectangle.y)+2,e.y>t.y?(e.y+=a/2,t.y-=a/2):(e.y-=a/2,t.y+=a/2),e.y<0&&(e.y=0),t.y<0&&(t.y=0),e.y+e.height>s.clientRectangle.height&&(e.y=s.clientRectangle.height-e.height),t.y+a/2+t.height>s.clientRectangle.height&&(t.y=s.clientRectangle.height-t.height),n[r].labelRect=e,n[i].labelRect=t)}}}}checkLabelPosition(e,t){let i=t.height;for(var r of e=e.stimulsoft().toList().orderBy(e=>e.clientRectangle.y))i-=r.clientRectangle.height;var s=i/(e.length+1),n;let l=t.y;for(n of e)n.clientRectangle=new ne(n.clientRectangle.x,l+s,n.clientRectangle.width,n.clientRectangle.height),n.endPoint=new ee(n.endPoint.x,n.clientRectangle.y+n.clientRectangle.height/2),l=n.clientRectangle.y+n.clientRectangle.height}getGradPerValue(e,t=!1){let i=0,r=0;for(var s of e){var n,l;for(l of t?s.valuesStart:s.values)i+=Math.abs(l),r++}return 0==r&&(r=1),0<i?360/i:360/r}getPercentPerValue(e,t=!1){let i=0;for(var r of e){var s,n;for(n of t?r.valuesStart:r.values)i+=Math.abs(n)}return 1/i*100}getPointCenter(e){return new ee(e.width/2,e.height/2)}getRadius(e,t){var i=this.series;if(0<i.diameter)return i.diameter/2*e.options.zoom;return.95*Math.min(t.width/2,t.height/2)}getPoint(e,t,i){var i=Math.PI*i/180;return new ee(e.x+Math.cos(i)*t,e.y+Math.sin(i)*t)}getArgumentText(e,t){var i=e.arguments.stimulsoft().getKeys();if(e.arguments.length>t&&null!=e.arguments.stimulsoft().getByIndex(t,i))return e.arguments.stimulsoft().getByIndex(t,i).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return""}getPieDistance(e){return this.getPieDistance2(this.series,e)}getPieDistance2(e,t){if(0==e.distance)return 0;if(0==e.cutPieListValues.length)return e.distance;for(var i of e.cutPieListValues)if(i==t+1)return e.distance;return 0}getSeriesBrush(e,t){var t=super.getSeriesBrush(e,t);if(null==t)return this.series.brush;return t}getSeriesBorderColor(e,t){var t=super.getSeriesBorderColor(e,t);if(null==t)return this.series.borderColor;return t}get localizedName(){return N.get("Chart","Pie")}constructor(e){super(e)}},te.d.StiDoughnutSeriesCoreXF=class extends te.d.StiPieSeriesCoreXF{renderDoughnutElement(e,t,i,r,s,n,l,a,o,h,u,d,m,c){if(r<0&&(r=1),0==a||isNaN(a))return null;var S=new ne(t.x-i,t.y-i,2*i,2*i),g=new ne(t.x-r,t.y-r,2*r,2*r);if(S.width<=0&&S.height<=0)return null;d||(n.is(de)&&((n=n.clone()).angle=-45),n.is(me)&&((n=n.clone()).angle=-45));let p=[],f=null,w=null,x=null,C=null,y=0;u.lighting&&!d&&(x=[],C=[],y=.02*i,f=new de(re.fromArgb(100,re.white),re.fromArgb(50,re.black),45),w=new de(re.fromArgb(50,re.black),re.fromArgb(100,re.white),45));var b=this.series.chart,b,A;if(p.push(new gt(S,l,a)),a-l!=360&&p.push(new pt(this.getPoint(t,i,l+a),this.getPoint(t,r,l+a))),p.push(new gt(g,l+a,-a)),a-l!=360&&p.push(new pt(this.getPoint(t,r,l),this.getPoint(t,i,l))),d&&(b.isAnimation?(b=new xt(U.fromSeconds(1),c),e.fillDrawAnimationPath(n,null,p,S,null,b,null)):e.fillPath(n,p,S,null)),null==f||d||(x.push(new pt(this.getPoint(t,i-y,l),this.getPoint(t,i,l))),x.push(new gt(S,l,a)),x.push(new pt(this.getPoint(t,i,l+a),this.getPoint(t,i-y,l+a))),x.push(new gt(new ne(S.x+y,S.y+y,S.width-2*y,S.height-2*y),l+a,-a)),C.push(new pt(this.getPoint(t,r+y,l),this.getPoint(t,r,l))),C.push(new gt(g,l,a)),C.push(new pt(this.getPoint(t,r,l+a),this.getPoint(t,r+y,l+a))),C.push(new gt(new ne(g.x-y,g.y-y,g.width+2*y,g.height+2*y),l+a,-a))),!d)return new te.d.StiDoughnutSeriesElementGeom(m,o,h,u,S,g,p,x,C,s,n,f,w,l,l+a,i,r,c);return null}isNotNullValues(e){for(var t of e)for(var i of t.values)if(null!=i)return!0;return!1}renderSeries(n,e,l,t){let i=this.getRadius(n,e);var a=this.getPointCenter(e);if(null==t||0==t.length||null==this.series.chart||null!=t&&!this.isNotNullValues(t))return l.createChildGeoms(),void l.childGeoms.push(new te.d.StiDoughnutEmptySeriesElementGeom(new mt(a.x-i,a.y-i,2*i,2*i)));var r=te.d.StiChartHelper.globalDurationElement,o=te.d.StiChartHelper.globalBeginTimeElement,s;let h=i/(t.length+1),u=h,d=0;for(s of t)null!=s.values&&(d+=s.values.length),u+=0!=s.width?s.width:h;if(u<i&&(i=u),0==d)return;let m=t[0],c=0,S=new ne(10*n.options.zoom,10*n.options.zoom,e.width-20*n.options.zoom,e.height-20*n.options.zoom);var g=S.clone(),p;let f=0,w=i;for(p of t){let i=0;f=p.startAngle;var x=this.getGradPerValue([p]),C;for(C of p.values){var y=this.getPercentPerValue([p]),b=x*Math.abs(C),A,v,L;let t=null;if(p.showSeriesLabels==te.d.StiShowSeriesLabels.FromChart&&(t=this.series.chart.seriesLabels),p.showSeriesLabels==te.d.StiShowSeriesLabels.FromSeries&&(t=m.seriesLabels),null!=this.series.chart&&null!=t&&t.visible){let e=t.stimulsoft().as(te.d.IStiPieSeriesLabels);null!=e&&e.visible&&(A=0!=p.width?w-p.width:w-h,L={ref:v},e.core.renderLabel(p,n,a,w,A,f+b/2,i,Math.abs(C),C,this.getArgumentText(p,i),m.core.getTag(i),!0,c,d,y,L,!1,0),(v=L.ref).isEmpty||(S=ne.union(S,v)))}c++,f+=b,i++}w-=0!=p.width?p.width+.2*h:1.2*h}var e=0,e=Math.min(e,S.left-g.left);e=Math.min(e,g.right-S.right),e=Math.min(e,S.top-g.top),e=Math.min(e,g.bottom-S.bottom),i+=e;var e=this.series.chart,T,I;if(m.showShadow&&!e.isAnimation){var k=new ne(a.x-i,a.y-i,2*i,2*i),F=n.createShadowGraphics(),B=new se(re.fromArgb(100,re.black)),R;h=i/(t.length+1),w=i;for(R of t){f=R.startAngle;var P=this.getGradPerValue([R]),D;let e=0;for(D of R.values){var M=P*Math.abs(D),N=0!=R.width?w-R.width:w-h;this.renderDoughnutElement(F,new ee(k.width/2,k.height/2),w,N,re.black,B,f,M,Math.abs(D),e,R,!0,l,new U(o.ticks)),f+=M,e++}w-=0!=R.width?R.width+.2*h:1.2*h}var e=new te.d.StiPieSeriesShadowElementGeom(m,k,.01*i+2*n.options.zoom,F,r,o);l.createChildGeoms(),l.childGeoms.push(e)}h=i/(t.length+1),c=0,w=i;for(T of t){let s=0;T.chart.area.colorEach||(c=0),f=T.startAngle;var E=this.getGradPerValue([T]),O={ref:null},G={ref:null},V;this.checkNonZerovalue(t,O,G,{ref:null});var X=O.ref,O=G.ref;if(0!=X){if(1==X){let e=T.brush;T.allowApplyStyle&&(e=T.core.getSeriesBrush(O,d),e=T.processSeriesBrushes(O,e));var G=m.core.getSeriesBorderColor(c,d);if(O>=T.values.length)continue;var X=0!=T.width?w-T.width:w-h;let t=this.renderDoughnutElement(n,a,w,X,G,e,0,360,T.values[O],O,T,!1,l,new U(o.ticks));null!=t&&(null!=T.core.interaction&&(t.interaction=new Ct,t.interaction.fill(l.area,T,0)),l.createChildGeoms(),l.childGeoms.push(t)),w-=1.2*h,s++,c++;continue}{let r=0;for(var _ of T.values){var H=E*Math.abs(_);if(0!=_){let e=T.brush;T.allowApplyStyle&&(e=T.core.getSeriesBrush(c,d),e=T.processSeriesBrushes(s,e));let t=T.borderColor;T.allowApplyBorderColor&&(t=T.core.getSeriesBorderColor(c,d));var z=0!=T.width?w-T.width:w-h;let i=this.renderDoughnutElement(n,a,w,z,t,e,f,H,Math.abs(_),r,T,!1,l,new U(o.ticks/T.values.length*c));if(null!=i){if(null!=T.core.interaction){let e=new Ct;e.fill(l.area,T,r),i.interaction=e}l.createChildGeoms(),l.childGeoms.push(i)}f+=H}s++,c++,r++}}}w-=0!=T.width?T.width+.2*h:1.2*h}c=0,w=i;for(I of t){let i=0;f=I.startAngle;var j=this.getGradPerValue([I]),Y;for(Y of I.values){var W=this.getPercentPerValue([I]),J=j*Math.abs(Y);let e=null;if(I.showSeriesLabels==te.d.StiShowSeriesLabels.FromChart&&(e=this.series.chart.seriesLabels),I.showSeriesLabels==te.d.StiShowSeriesLabels.FromSeries&&(e=m.seriesLabels),null!=this.series.chart&&null!=e&&e.visible){let t=e.stimulsoft().as(te.d.IStiPieSeriesLabels);if(null!=t&&t.visible&&(0==t.step||i%t.step==0)){var Z,q=0!=I.width?w-I.width:w-h,$={ref:Z};let e=t.core.renderLabel(I,n,a,w,q,f+J/2,i,Math.abs(Y),Y,this.getArgumentText(I,i),this.getTag(i),!1,c,d,W,$,!1,0);Z=$.ref,null!=e&&(e.duration=r,e.beginTime=new U(o.ticks/I.values.length*c),l.createChildGeoms(),l.childGeoms.push(e))}}c++,f+=J,i++}w-=0!=I.width?I.width+.2*h:1.2*h}}checkNonZerovalue(e,t,i,r,s=!1){let n=0,l=0,a=0,o=0,h=null;for(var u of e){var d,m;for(m of s?u.valuesStart:u.values)0==m||null==m||isNaN(m)||(n++,o=m,h=u,1==n&&(a=l)),l++}return t.ref=n,i.ref=a,r.ref=h,o}getGradPerValue(e){let t=0;for(var i of e[0].values)t+=Math.abs(i);return 360/t}getPercentPerValue(e){let t=0;for(var i of e[0].values)t+=Math.abs(i);return 1/t*100}getArgumentText(e,t){if(e.arguments.length>t)return e.arguments[t].toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return""}get localizedName(){return N.get("Chart","Doughnut")}constructor(e){super(e)}},te.d.StiCandlestickSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(t,i){if(super.applyStyle(t,i),this.series.allowApplyStyle){var r=t.core.getColumnBrush(i);this.series.brush=r;let e=t.core.getColumnBorder(i);re.transparent.equals(e)&&(e=Ze.toColor(r)),this.series.borderColor=e}}renderSeries(e,t,h,i){var u,d;if(null==i||0==i.length||null==this.series.chart)return;let m=h.area;var c=m.axisCore.getDividerY(),S=te.d.StiChartHelper.globalBeginTimeElement,g;for(g of i){var p=g.valuesOpen,f=g.valuesClose,w=g.valuesHigh,x=g.valuesLow,C=Math.min(Math.min(p.length,f.length),Math.min(w.length,x.length)),r=g.arguments.length,s=Math.min(C,r),y=g.arguments.stimulsoft().getKeys();for(let o=0;o<s;o++){let e=p[o],t=f[o],i=w[o],r=x[o];if(null==e||null==t||null==i||null==r)continue;let s=0;for(var d of m.xAxis.info.stripLines.list){if((null===(u=g.arguments.stimulsoft().getByIndex(o,y))||void 0===u?void 0:u.toString())==(null===(d=d.valueObject)||void 0===d?void 0:d.toString()))break;s++}var b=m.xAxis.info.dpi,A;let n=new se,l;e>t?(n=g.brush,l=g.borderColor,i<e&&(i=e),t<r&&(r=t)):(n=g.brushNegative,l=g.borderColorNegative,r>e&&(r=e),t>i&&(i=t),e=f[o],t=p[o]),m.reverseVert&&e>t&&(A=e,e=t,t=A,A=r,r=i,i=A);var v=m.yAxis.info.dpi,L=Math.abs(c-e*v),T=Math.abs(c-t*v),I=Math.abs(c-i*v),A=Math.abs(c-r*v),v=s*b,b=new ne(v-b/4,L,b/2,T-L);n=g.processSeriesBrushes(o,n);let a=new te.d.StiCandlestickSeriesElementGeom(h,g,b,L,T,I,A,v,s-1,n,l,new U(S.ticks/C*o));if(null!=a&&null!=g.core.interaction){let e=new Ct;e.fill(h.area,g,o),a.interaction=e}h.createChildGeoms(),h.childGeoms.push(a)}}}get localizedName(){return N.get("Chart","Candlestick")}constructor(e){super(e)}},te.d.StiStockSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t),this.series.allowApplyStyle&&(this.series.lineColor=t)}renderSeries(e,t,l,i){var a,a;if(null==i||0==i.length||null==this.series.chart)return;let o=l.area;var h=o.axisCore.getDividerY(),u=te.d.StiChartHelper.globalBeginTimeElement,d;for(d of i){var m=d.valuesOpen,c=d.valuesClose,S=d.valuesHigh,g=d.valuesLow,p=Math.min(Math.min(m.length,c.length),Math.min(S.length,g.length)),r=d.arguments.length,s=Math.min(p,r);for(let n=0;n<s;n++){var f=m[n],w=c[n],x=S[n],C=g[n];let e=0;var y=d.arguments.stimulsoft().getKeys(),b;for(b of o.xAxis.info.stripLines.list){if((null===(a=d.arguments.stimulsoft().getByIndex(n,y))||void 0===a?void 0:a.toString())==(null===(a=b.valueObject)||void 0===a?void 0:a.toString()))break;e++}var A=o.xAxis.info.dpi;let t=d.lineColor;if(!d.allowApplyColorNegative&&f<w&&(t=d.lineColorNegative),null==f||null==w||null==x||null==C)continue;var v=o.yAxis.info.dpi;let i=Math.abs(h-f*v),r=Math.abs(h-w*v);var w=Math.abs(h-x*v),x=Math.abs(h-C*v),C=e*A,v;o.reverseHor&&(v=i,i=r,r=v);var A=new ne(C-A/3,Math.min(w,x),2*A/3,Math.abs(x-w));t=d.processSeriesColors(n,t);let s=new te.d.StiStockSeriesElementGeom(l,d,A,i,r,w,x,C,e-1,t,new U(u.ticks/p*n));if(null!=s&&null!=d.core.interaction){let e=new Ct;e.fill(l.area,d,n),s.interaction=e}l.createChildGeoms(),l.childGeoms.push(s)}}}get localizedName(){return N.get("Chart","Stock")}constructor(e){super(e)}},te.d.StiStackedBarSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getColumnBrush(t),i.brush.is(de)&&(i.brush.angle+=90),i.brush.is(me)&&(i.brush.angle+=90),i.borderColor=e.core.getColumnBorder(t),i.borderThickness=e.core.seriesBorderThickness)}renderSeries(S,g,p,f){if(null==f||0==f.length||null==this.series.chart)return;let w=[],x=[];var e;let C=p.area;var t=this.series,y=C.axisCore.getDividerX();let b=C.xAxis.info.dpi;var A=C.axisCore.valuesCount;let v=[],r=0;for(let i=0;i<f.length;i++){let t=[];for(let e=0;e<f[i].values.length;e++)t.push(r),r++;v.push(t)}var L=r,i;for(let c=0;c<A;c++){var T,I,s={ref:T=0},n={ref:I=0};this.calculateTotalWidth(f,c,s,n);var T=s.ref,I=n.ref,l=C.yAxis.info.stripPositions[C.yAxis.startFromZero?c+1:c]-C.yAxis.info.step/2,k=C.yAxis.info.step-C.yAxis.info.step*(1-t.width),F=l+(C.yAxis.info.step-k)/2,a,o,o;let d=0,m=0;if(0==f.length)return;if(f[0].showShadow){for(let t=0;t<f.length;t++)if(c<f[t].values.length){var h=f[t];let e=C.reverseVert?h.values[c]:h.values[h.values.length-c-1];C.reverseHor&&null!=e&&(e=-e),0<e?d+=e:m+=e}if(this.series.is(te.d.IStiFullStackedBarSeries)){var s=C.reverseHor?I:T,n=C.reverseHor?T:I;if(0<s&&0<n){var l=new ne(-8,F,g.width+8,k),l=new te.d.StiStackedBarSeriesShadowElementGeom(f[0],l,!1,!1);p.createChildGeoms(),p.childGeoms.push(l)}else if(0<s){let e=new ne(C.axisCore.getDividerX()-8,F,g.width-C.axisCore.getDividerX()+8,k);var s=new te.d.StiStackedBarSeriesShadowElementGeom(f[0],e.clone(),!1,!1);p.createChildGeoms(),p.childGeoms.push(s)}else if(0<n){let e=new ne(-8,F,C.axisCore.getDividerX()+8,k);var n=new te.d.StiStackedBarSeriesShadowElementGeom(f[0],e.clone(),!1,!1);p.createChildGeoms(),p.childGeoms.push(n)}}else{if(0<d){let e=new ne(y,F,d*b,k);e.x-=7,e.width+=7;var o=new te.d.StiStackedBarSeriesShadowElementGeom(f[0],e,!1,!0);p.createChildGeoms(),p.childGeoms.push(o)}m<0&&(o=new ne(y+m*b,F,-m*b,k),o=new te.d.StiStackedBarSeriesShadowElementGeom(f[0],o,!0,!1),p.createChildGeoms(),p.childGeoms.push(o))}}d=0;for(let u=m=0;u<f.length;u++){let h=f[u];if(c<h.values.length){let s=v[u][c],n=C.reverseVert?h.values[c]:h.values[h.values.length-c-1],l=null!=n?-n:n;var B=C.reverseHor?f.stimulsoft().toList().cast().sum(e=>e.values[c]):f.stimulsoft().toList().cast().sum(e=>e.values[h.values.length-c-1]);this.series.is(te.d.IStiFullStackedBarSeries)&&(0==T&&0==I||null==l||(b=0<l?C.axisCore.getDividerX()/I:(g.width-C.axisCore.getDividerX())/T)),C.reverseHor&&null!=l&&(l=-l);let e=l*b,t=-e+y;0<l?t-=d:(t=m+y,e=-e),!h.showZeros||0!=l&&null!=l||(e=Math.max(S.options.zoom,1),C.reverseHor||(t-=e));let a=new ne(t,F,e,k);a=this.correctRect(a,g.clone());let i;i=l<0?ne.fromLTRB(a.left,a.top,a.left,a.bottom):ne.fromLTRB(a.right,a.top,a.right,a.bottom);let r=p.view.clientRectangle.clone();r.x=0,r.y=0;let o=a.clone();if(o.x+=p.clientRectangle.x,o.y+=p.clientRectangle.y,o.bottom>r.y&&o.y<r.bottom||this.series.chart.area.yAxis.range.auto){let e=h.core.getSeriesBrush(s,L);if(h.allowApplyBrushNegative&&0<l&&(e=h.brushNegative),e=h.processSeriesBrushes(A-1-c,e),0!=a.height&&0<M.round2(a.width,2)&&null!=e){var R=h.core.getSeriesBorderColor(s,L);let t=new te.d.StiStackedBarSeriesElementGeom(p,l,c,e,R,h,a,i);if(null!=h.core.interaction){let e=new Ct;e.fill(C,h,A-1-c),t.interaction=e}x.push(t)}let r=h.core.getSeriesLabels();if(null!=r&&r.visible&&0<M.round2(a.width,2)){let t=new ee(a.x,a.y+a.height/2),i=new ee(a.right,a.y+a.height/2);if(l<0&&(i.x=a.x,t.x=a.right),l<0&&(i.x=a.x,t.x=a.right),0==r.step||c%r.step==0){let e=l;h.stimulsoft().as(te.d.StiSeries).isTotalLabel&&(e=n=B);var B=C.yAxis.startFromZero?c+1:c,B=C.yAxis.info.stripLines.count>c?C.yAxis.info.stripLines.getByIndex(B):null,B=r.core.renderLabel(h,S,t,i,c,e,n,C.axisCore.getArgumentLabel(B,h),h.core.getTag(c),s,L,g);null!=B&&w.push(B)}}}0<l?d+=e:m+=e,s++}}}for(let e=x.length-1;0<=e;e--){var u=x[e];p.createChildGeoms(),p.childGeoms.push(u)}for(i of w)p.createChildGeoms(),p.childGeoms.push(i),i.clientRectangle=this.checkLabelsRect(i.seriesLabels,p,i.clientRectangle.clone())}calculateTotalWidth(e,t,i,r){let s=0,n=0;if(this.series.is(te.d.IStiFullStackedBarSeries))for(var l of e){var l;t<l.values.length&&(0<(l=this.series.chart.area.reverseVert?l.values[t]:l.values[l.values.length-t-1])?s+=l:n+=Math.abs(l))}i.ref=s,r.ref=n}correctRect(e,t){if(e.x>t.width||e.right<0)return e.width=0,e;var i,t;return e.x<0&&(i=-e.x,e.x+=i,e.width-=i),e.right>t.width&&(t=e.right-t.width,e.width-=t),e}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t);if(null==t)return i.brush;return t}getSeriesBorderColor(e,t){var i=this.series,t=super.getSeriesBorderColor(e,t);if(null==t)return i.borderColor;return t}get localizedName(){return N.get("Chart","StackedBar")}constructor(e){super(e)}},te.d.StiFullStackedBarSeriesCoreXF=class extends te.d.StiStackedBarSeriesCoreXF{get localizedName(){return N.get("Chart","FullStackedBar")}constructor(e){super(e)}},te.d.StiStackedBaseLineSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.lineColor=t,i.lighting=e.core.seriesLighting,i.marker.visible=e.core.markerVisible,null!=i.marker&&(i.marker.brush=new se(qe.light(t,100)),i.marker.borderColor=qe.dark(t,100)),null!=i.lineMarker&&(i.lineMarker.brush=new se(qe.light(t,50)),i.lineMarker.borderColor=qe.dark(t,150)))}clipLinePoints(e,t,i,r,s,n,l,a){let o=s.ref,h=n.ref,u=l.ref,d=a.ref;if(this.series.chart.area.xAxis.range.auto)return u=0,d=i.length,o=i,h=r,s.ref=o,n.ref=h,l.ref=u,void(a.ref=d);u=-1,d=-1;let m=t.view.clientRectangle.clone();m.x=0,m.y=0;let c=0;for(var S of i){let e=new ee(S.x,S.y);if(e.x+=t.clientRectangle.x,e.y+=t.clientRectangle.y,m.x<=e.x&&e.x<m.right&&-1==u&&(u=c),!(m.x<=e.x&&e.x<m.right)&&-1!=u){d=c;break}c++}-1==d&&(d=i.length-1),u--,d++,u<0&&(u=0),d>=i.length&&(d=i.length-1);var g=d-u+1;if(g==i.length)return o=i,h=r,s.ref=o,n.ref=h,l.ref=u,void(a.ref=d);o=ie.create(ee,g,!0),ie.copy(i,u,o,g),null!=r?(h=ie.create(ee,g,!0),ie.copy(r,u,h,g)):h=null,s.ref=o,n.ref=h,l.ref=u,a.ref=d}renderMarkers(s,n,e){var l=n.area,a=this.series;if(0==e.length)return;var o=!a.marker.visible&&0<a.toolTips.length;if(null!=a.marker&&(a.marker.visible||o)){let r=0;for(var h of e){if(null!=h){let e=l.reverseHor?this.series.values[this.series.values.length-r-1]:this.series.values[r];null==e&&a.showNulls&&(e=0);let t=n.view.clientRectangle.clone();t.x=0,t.y=0,t.inflate(10,10);let i=new ee(h.x,h.y);if(i.x+=n.clientRectangle.x,i.y+=n.clientRectangle.y,t.contains(i.x,i.y)){let t=new te.d.StiMarkerGeom(this.series,r,e,h,a.marker,this.series.showShadow,s.options.zoom,o);if(null!=t){if(null!=a.core.interaction){let e=new Ct;e.fill(l,a,r),t.interaction=e}n.createChildGeoms(),n.childGeoms.push(t)}}}r++}}}renderLines(e,t,i){}renderAreas(e,t,i){}renderSeries(o,h,t,u){var d=this.series;let l=[];var e=t.area;if(null==u||0==u.length||null==this.series.chart)return;let m=e;var c=this.series.yAxis==te.d.StiSeriesYAxis.LeftYAxis?m.axisCore.getDividerY():m.axisCore.getDividerRightY(),S=m.xAxis.core.getStartFromZero(),a,i;let g=new Q,p=new Q,r=[],f=[],w=[],x=m.yAxis.info.dpi;this.series.yAxis==te.d.StiSeriesYAxis.RightYAxis&&(x=m.yRightAxis.info.dpi);for(let e=0;e<u.length;e++){let s=u[e];var C=s.values.length;let n=ie.create(ee,C,!0),l=ie.create(ee,C,!0),a=ie.create(String,C,!0);for(let r=0;r<C;r++){var y=S?m.xAxis.info.stripPositions[r+1]:m.xAxis.info.stripPositions[r];let i=m.reverseHor?s.values[s.values.length-r-1]:s.values[r];if(null!=i||s.showNulls){null==i&&s.showNulls&&(i=0);var b=0,A=0,v={ref:b},L={ref:A};this.calculateTotalHeight(u,r,v,L),b=v.ref,A=L.ref,d.core.isFullStacked&&(0==b&&0==A||null==i||(x=0<=i?c/b:(h.height-c)/A)),m.reverseVert&&null!=i&&(i=-i);var A=-i*x;let e=0;0<=i?null!=g.get(r)&&(e=g.get(r)):null!=p.get(r)&&(e=p.get(r)),A+=e,(0<=i?g:p).set(r,A),l[r]=new ee(y,e+c),n[r]=new ee(y,A+c);let t=(S?m.xAxis.info.stripLines.getByIndex(r+1):m.xAxis.info.stripLines.getByIndex(r)).valueObject;a[r]=null==t?"":t.stimulsoft().toString()}else l[r]=null,n[r]=null,a[r]=null}if(0<n.length&&0<l.length){var T,I,k=null,F=null,B={ref:k},R={ref:F},P={ref:T},D={ref:I};this.clipLinePoints(o,t,l,n,B,R,P,D),k=B.ref,F=R.ref,T=P.ref,I=D.ref;let e=new te.d.StiSeriesPointsInfo;e.pointsStart=k,e.pointsEnd=F,e.pointsIds=a,s.core.renderAreas(o,t,e)}r.push(n),f.push(l),w.push(a)}let M=0,N=ie.create(Number,m.axisCore.valuesCount),E=ie.create(Number,m.axisCore.valuesCount);for(let e=0;e<m.axisCore.valuesCount;e++)N[e]=c,E[e]=c;for(a of r){var O,G,V=null,X,_={ref:V},H={ref:X=null},z={ref:O},j={ref:G};this.clipLinePoints(o,t,a,null,_,H,z,j),V=_.ref,X=H.ref,O=z.ref,G=j.ref;let s=u[M],e=new te.d.StiSeriesPointsInfo;e.points=V,e.pointsFrom=f[M],e.pointsIds=w[M],s.core.renderLines(o,t,e);let n=s.core.getSeriesLabels();if(null!=n&&n.visible)for(let r=O;r<=G;r++)if(r<s.values.length){let e=s.values[r];null==e&&d.showNulls&&(e=0);let t=c;0<e?(t=N[r],null!=a[r]&&(N[r]=a[r].y)):(t=E[r],null!=a[r]&&(E[r]=a[r].y));let i=e;m.reverseVert&&null!=e&&(i=-i);var Y=a[r],W,W;null!=Y&&(W=new ee(Y.x,t),0!=n.step&&r%n.step!=0||null!=(W=n.core.renderLabel(s,o,Y,W,r,i,e,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(r),s),s.core.getTag(r),0,1,h))&&l.push(W))}M++}for(i of l)t.createChildGeoms(),t.childGeoms.push(i),i.clientRectangle=this.checkLabelsRect(i.seriesLabels,t,i.clientRectangle.clone())}calculateTotalHeight(e,t,i,r){var s=this.series;let n=0,l=0;if(s.core.isFullStacked)for(var a of e)if(t<a.values.length){let e=this.series.chart.area.reverseHor?a.values[a.values.length-t-1]:a.values[t];null==e&&s.showNulls&&(e=0),0<e?n+=e:l+=Math.abs(e)}i.ref=n,r.ref=l}correctPoint(e,t){if(e.y<0)return new ee(e.x,0);if(e.y>t.height)return new ee(e.x,t.height);return e}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t);if(null==t)return new se(qe.dark(i.lineColor,20));return t}getSeriesBorderColor(e,t){var i=this.series,t=super.getSeriesBorderColor(e,t);if(null==t)return i.lineColor;return t}get isFullStacked(){return this.is2(te.d.StiFullStackedAreaSeriesCoreXF)||this.is2(te.d.StiFullStackedLineSeriesCoreXF)||this.is2(te.d.StiFullStackedSplineSeriesCoreXF)||this.is2(te.d.StiFullStackedSplineAreaSeriesCoreXF)}constructor(e){super(e)}},te.d.StiStackedLineSeriesCoreXF=class extends te.d.StiStackedBaseLineSeriesCoreXF{renderLines(e,t,i){if(null==i.points||i.points.length<=1)return;var r=new te.d.StiStackedLineSeriesGeom(t,i,this.series);null!=r&&(t.createChildGeoms(),t.childGeoms.push(r)),this.renderMarkers(e,t,i.points)}get localizedName(){return N.get("Chart","StackedLine")}constructor(e){super(e)}},te.d.StiStackedAreaSeriesCoreXF=class extends te.d.StiStackedLineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t))}renderAreas(e,t,i){if(null==i.pointsStart||i.pointsStart.length<=1)return;if(null==i.pointsEnd||i.pointsEnd.length<=1)return;var i=new te.d.StiStackedAreaSeriesGeom(t,i,this.series);null!=i&&(t.createChildGeoms(),t.childGeoms.push(i))}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t);if(null==t)return i.brush;return t}get localizedName(){return N.get("Chart","StackedArea")}constructor(e){super(e)}},te.d.StiFullStackedAreaSeriesCoreXF=class extends te.d.StiStackedAreaSeriesCoreXF{get localizedName(){return N.get("Chart","FullStackedArea")}constructor(e){super(e)}},te.d.StiStackedColumnSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getColumnBrush(t),i.borderColor=e.core.getColumnBorder(t),i.borderThickness=e.core.seriesBorderThickness)}renderSeries(c,S,g,p){if(null==p||0==p.length||null==this.series.chart)return;let f=[],w=[];var e;let x=g.area;var C=this.series,t=x.xAxis.core.getStartFromZero(),y=x.axisCore.getDividerY();let b=x.yAxis.info.dpi;this.series.yAxis==te.d.StiSeriesYAxis.RightYAxis&&(b=x.yRightAxis.info.dpi);let A=[],r=0;for(let i=0;i<p.length;i++){let t=[];for(let e=0;e<p[i].values.length;e++)t.push(r),r++;A.push(t)}var v=r,i;for(let m=0;m<x.axisCore.valuesCount;m++){var L,T,s={ref:L=0},n={ref:T=0};this.calculateTotalHeight(p,m,s,n);var L=s.ref,T=n.ref,l=t?x.xAxis.info.stripPositions[m+1]:x.xAxis.info.stripPositions[m];l-=x.xAxis.info.step/2;var I=x.xAxis.info.step-x.xAxis.info.step*(1-C.width),k=l+(x.xAxis.info.step-I)/2,a,o,o;let u=0,d=0;if(0==p.length)return;if(p[0].showShadow){for(let t=0;t<p.length;t++)if(m<p[t].values.length){var h=p[t];let e=x.reverseHor?h.values[h.values.length-m-1]:h.values[m];null!=e&&(x.reverseVert&&(e=-e),0<e?u+=e:d+=e)}if(this.is(te.d.StiFullStackedColumnSeriesCoreXF)){var s=x.reverseVert?T:L,n=x.reverseVert?L:T,l,l,s,s,n,n;0<s&&0<n?(l=new ne(k,-8,I,S.height+8),l=new te.d.StiStackedColumnSeriesShadowElementGeom(p[0],l,!1,!1),g.createChildGeoms(),g.childGeoms.push(l)):0<s?(s=new ne(k,-8,I,x.axisCore.getDividerY()+8),s=new te.d.StiStackedColumnSeriesShadowElementGeom(p[0],s,!1,!1),g.createChildGeoms(),g.childGeoms.push(s)):0<n&&(n=new ne(k,x.axisCore.getDividerY()-8,I,S.height-x.axisCore.getDividerY()+8),n=new te.d.StiStackedColumnSeriesShadowElementGeom(p[0],n,!1,!1),g.createChildGeoms(),g.childGeoms.push(n))}else{if(0<u&&(o=new ne(k,-u*b+y,I,u*b),o=new te.d.StiStackedColumnSeriesShadowElementGeom(p[0],o,!0,!1),g.createChildGeoms(),g.childGeoms.push(o)),d<0){let e=new ne(k,y,I,-d*b);e.y-=7,e.height+=7;var o=new te.d.StiStackedColumnSeriesShadowElementGeom(p[0],e,!1,!0);g.createChildGeoms(),g.childGeoms.push(o)}}}u=0;for(let h=d=0;h<p.length;h++){let o=p[h];if(m<o.values.length){let n=A[h][m],l=x.reverseHor?o.values[o.values.length-m-1]:o.values[m];var F=x.reverseHor?p.stimulsoft().toList().cast().sum(e=>e.values[o.values.length-m-1]):p.stimulsoft().toList().cast().sum(e=>e.values[m]);this.series.is(te.d.IStiFullStackedColumnSeries)&&(0==L&&0==T||null==l||(b=0<=l?x.axisCore.getDividerY()/L:(S.height-x.axisCore.getDividerY())/T)),x.reverseVert&&null!=l&&(l=-l);let e=l*b,t=-e+y;0<l?t-=u:(t=d+y,e=-e),!C.showZeros||0!=l&&null!=l||(e=Math.max(c.options.zoom,1),x.reverseVert||(t-=e));let a=new ne(k,t,I,e);a=this.correctRect(a,S);let i;i=l<0?ne.fromLTRB(a.left,a.top,a.right,a.top):ne.fromLTRB(a.left,a.bottom,a.right,a.bottom);let r=g.view.clientRectangle.clone();r.x=0,r.y=0;let s=a.clone();if(s.x+=g.clientRectangle.x,s.y+=g.clientRectangle.y,s.right>r.x&&s.x<r.right||this.series.chart.area.xAxis.range.auto){let e=o.core.getSeriesBrush(n,v);if(o.allowApplyBrushNegative&&l<0&&(e=o.brushNegative),e=o.processSeriesBrushes(m,e),0!=a.width&&0<M.round2(a.height,2)&&null!=e){var B=o.core.getSeriesBorderColor(n,v);let t=new te.d.StiStackedColumnSeriesElementGeom(g,l,m,e,B,o,a,i);if(null!=o.core.interaction){let e=new Ct;e.fill(x,o,m),t.interaction=e}w.push(t)}let s=o.core.getSeriesLabels();if(null!=s&&s.visible&&0<M.round2(a.height,2)){let t=new ee(a.x+a.width/2,a.y),i=new ee(a.x+a.width/2,a.bottom),r=o.values[m];if(x.reverseVert&&null!=r&&(r=-l),l<0&&(i.y=a.y,t.y=a.bottom),0==s.step||m%s.step==0){let e=l;o.stimulsoft().as(te.d.StiSeries).isTotalLabel&&(e=r=F);var F=x.xAxis.startFromZero?m+1:m,F=s.core.renderLabel(o,c,t,i,m,e,r,x.axisCore.getArgumentLabel(x.xAxis.info.stripLines.getByIndex(F),o),o.core.getTag(m),n,v,S);null!=F&&f.push(F)}}}0<l?u+=e:d+=e,n++}}}for(let e=w.length-1;0<=e;e--){var u=w[e];g.createChildGeoms(),g.childGeoms.push(u)}for(i of f)g.createChildGeoms(),g.childGeoms.push(i),i.clientRectangle=this.checkLabelsRect(i.seriesLabels,g,i.clientRectangle.clone())}calculateTotalHeight(e,t,i,r){let s=0,n=0;if(this.series.is(te.d.IStiFullStackedColumnSeries))for(var l of e){var l;t<l.values.length&&(0<(l=this.series.chart.area.reverseHor?l.values[l.values.length-t-1]:l.values[t])?s+=l:n+=Math.abs(l))}i.ref=s,r.ref=n}correctRect(e,t){if(e.y>t.height||e.bottom<0)return e.height=0,e;var i,t;return e.top<0&&(i=-e.top,e.y+=i,e.height-=i),e.bottom>t.height&&(t=e.bottom-t.height,e.height-=t),e}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t);if(null==t)return i.brush;return t}getSeriesBorderColor(e,t){var i=this.series,t=super.getSeriesBorderColor(e,t);if(null==t)return i.borderColor;return t}get localizedName(){return N.get("Chart","StackedColumn")}constructor(e){super(e)}},te.d.StiFullStackedColumnSeriesCoreXF=class extends te.d.StiStackedColumnSeriesCoreXF{get localizedName(){return N.get("Chart","FullStackedColumn")}constructor(e){super(e)}},te.d.StiFullStackedLineSeriesCoreXF=class extends te.d.StiStackedLineSeriesCoreXF{get localizedName(){return N.get("Chart","FullStackedLine")}constructor(e){super(e)}},te.d.StiStackedSplineSeriesCoreXF=class extends te.d.StiStackedBaseLineSeriesCoreXF{renderLines(e,t,i){if(null==i.points||i.points.length<=1)return;var r=new te.d.StiStackedSplineSeriesGeom(t,i,this.series);t.createChildGeoms(),t.childGeoms.push(r),this.renderMarkers(e,t,i.points)}get localizedName(){return N.get("Chart","StackedSpline")}constructor(e){super(e)}},te.d.StiStackedSplineAreaSeriesCoreXF=class extends te.d.StiStackedSplineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t))}renderAreas(e,t,i){if(null==i.pointsStart||i.pointsStart.length<=1)return;if(null==i.pointsEnd||i.pointsEnd.length<=1)return;var i=new te.d.StiStackedSplineAreaSeriesGeom(t,i,this.series);null!=i&&(t.createChildGeoms(),t.childGeoms.push(i))}getSeriesBrush(e,t){var i=this.series,t=super.getSeriesBrush(e,t);if(null==t)return i.brush;return t}get localizedName(){return N.get("Chart","StackedSplineArea")}constructor(e){super(e)}},te.d.StiFullStackedSplineAreaSeriesCoreXF=class extends te.d.StiStackedSplineAreaSeriesCoreXF{get localizedName(){return N.get("Chart","FullStackedSplineArea")}constructor(e){super(e)}},te.d.StiFullStackedSplineSeriesCoreXF=class extends te.d.StiStackedSplineSeriesCoreXF{get localizedName(){return N.get("Chart","FullStackedSpline")}constructor(e){super(e)}};let vt=J.Base.Context.StiCloseFigureSegmentGeom;te.d.StiFunnelSeriesCoreXF=class extends te.d.StiSeriesCoreXF{constructor(e){super(e)}applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getColumnBrush(t),i.borderColor=e.core.getColumnBorder(t),i.borderThickness=e.core.seriesBorderThickness)}isNotNullValues(e){for(var t of e)for(var i of t.values)if(null!=i)return!0;return!1}renderSeries(a,o,h,e){if(null==e||0==e.length||null==this.series.chart||null!=e&&!this.isNotNullValues(e))return void this.renderFunnelEmpty(h,o);var t=e.stimulsoft().toList().cast().stimulsoft().toArray(),u=this.getAllValues(t),d=this.getAllTrueValues(t),i,m;let c=0;for(i of e)null!=i.values&&(c+=i.values.length);if(0==c)return void this.renderFunnelEmpty(h,o);let S=this.getSingleValueHeight(c,o),g=this.getSingleValueWidth(u,o);this.labels=this.series.chart.seriesLabels.stimulsoft().as(te.d.IStiFunnelSeriesLabels);let p=o.clone(),r=o.clone();for(m of e){var f=m,w,x,C;if(null!=this.labels&&this.labels.visible){for(let e=0;e<f.values.length;e++){m.values.length>e&&(w=f.values[e],x=e==f.values.length-1?w:f.values[e+1],0!=this.labels.step&&e%this.labels.step!=0||(C={ref:p},this.labels.core.renderLabel(m,a,e,w,x,this.getArgumentText(m,e),m.core.getTag(e),0,c,o,S,g,1,C),p=C.ref,r=p.width<r.width?p:r))}p=r.clone()}S=this.getSingleValueHeight(c,p),g=this.getSingleValueWidth(u,p);let s=0,n=0,l;l=null!=this.labels&&this.labels.is(te.d.StiOutsideLeftFunnelLabels)?p.width/2+p.x:p.width/2;var y=te.d.StiChartHelper.globalBeginTimeElement,b;for(b of t){var A={ref:null},v={ref:null},L;this.checkNonZerovalue(e,A,v,{ref:null});var A=A.ref,v=v.ref;if(0!=A)if(1==A){let e=b.brush;b.allowApplyBrush&&(e=b.core.getSeriesBrush(v,b.values.length),e=b.processSeriesBrushes(v,e));let t=b.borderColor;b.allowApplyBorderColor&&(t=b.core.getSeriesBorderColor(n,c));let i=this.renderFunnelElement(t,e,b.values[v],0,n,v,b,h,p,S,g,new U(te.d.StiChartHelper.globalBeginTimeElement.ticks));if(null!=i){if(null!=b.core.interaction){let e=new Ct;e.fill(h.area,b,v),i.interaction=e}h.createChildGeoms(),h.childGeoms.push(i)}}else for(let r=0;r<b.values.length;r++){var T=this.getCurrentValue(b,s,d);if(0==T&&!b.showZeros){s++;continue}var I=this.getNextCurrentValue(b,s,d);let e=b.brush;b.allowApplyBrush&&(e=b.core.getSeriesBrush(s,c),e=b.processSeriesBrushes(s,e));let t=b.borderColor;b.allowApplyBorderColor&&(t=b.core.getSeriesBorderColor(n,c));let i=this.renderFunnelElement(t,e,T,I,n,r,b,h,p,S,g,new U(y.ticks/u.length*r));if(null!=i){if(null!=m.core.interaction){let e=new Ct;e.fill(h.area,m,r),i.interaction=e}h.createChildGeoms(),h.childGeoms.push(i)}if(null!=this.labels&&this.labels.visible&&(0==this.labels.step||r%this.labels.step==0)){var k={ref:p};let e=this.labels.core.renderLabel(b,a,n,T,I,this.getArgumentText(b,r),b.core.getTag(r),n,c,o,S,g,l,k);p=k.ref,null!=e&&(h.createChildGeoms(),h.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(this.labels,h,e.clientRectangle))}n++,s++}}}}checkNonZerovalue(e,t,i,r,s=!1){let n=0,l=0,a=0,o=0,h=null;for(var u of e){var d,m;for(m of s?u.valuesStart:u.values)0==m||null==m||isNaN(m)||(n++,o=m,h=u,1==n&&(a=l)),l++}return t.ref=n,i.ref=a,r.ref=h,o}getSeriesBorderColor(e,t){if(null==this.series.chart||null==this.series.chart.area)return null;let i=null!=this.series.chart.style?this.series.chart.style.core:new te.d.StiStyleCoreXF29;var t=i.getColorByIndex(e,t,this.seriesColors);return i.getColumnBorder(t)}getSeriesBrush(e,t){if(null==this.series.chart||null==this.series.chart.area)return null;let i=null!=this.series.chart.style?this.series.chart.style.core:new te.d.StiStyleCoreXF29;var t=i.getColorByIndex(e,t,this.seriesColors),r;return i.getColumnBrush(t)}getCurrentValue(e,t,i){return i[t]}getNextCurrentValue(t,i,r){if(i!=r.length-1){let e=r[i+1];if(0==e&&!t.showZeros)while(0==e&&i<r.length-2)i++,e=r[i+1];return e}return r[i]}getAllValues(e){let t=new P;for(var i of e)for(var r of i.values){if(0==r&&!i.showZeros)continue;t.push(r)}return t.stimulsoft().toArray()}getAllTrueValues(e){let t=new P;for(var i of e)for(var r of i.values)t.push(r);return t.stimulsoft().toArray()}getValues(e){let t=[];for(var i of e.values){if(!e.showZeros&&0==i)continue;t.push(i)}return t.stimulsoft().toArray()}getArgumentText(e,t){var i=e.arguments.stimulsoft().getKeys();if(e.arguments.length>t&&null!=e.arguments.stimulsoft().getByIndex(t,i))return e.arguments.stimulsoft().getByIndex(t,i).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return""}renderFunnelEmpty(t,i){var r=[3,2,1],s=.9*i.height/r.length,n=.9*i.width/r.length;for(let e=0;e<r.length;e++){var l=r[e],a=e!=r.length-1?r[e+1]:r[e],a=this.measureFunnelElementCore(l,a,e,i,s,n);t.createChildGeoms(),t.childGeoms.push(new te.d.StiFunnelEmptySeriesElementGeom(i,a))}}renderFunnelElement(e,t,i,r,s,n,l,a,o,h,u,d){var u=this.measureFunnelElementCore(i,r,s,o,h,u);return new te.d.StiFunnelSeriesElementGeom(a,i,n,l,o,t,e,u,d)}getSingleValueHeight(e,t){return.9*t.height/e}getSingleValueWidth(e,t){let i=Number.MIN_VALUE;for(var r of e)i=i>r?i:r;return.9*t.width/i}measureFunnelElementCore(e,t,i,r,s,n){let l=new P;var a=.05*r.height;let o;o=null!=this.labels&&this.labels.is(te.d.StiOutsideLeftFunnelLabels)?r.width/2+r.x:r.width/2;var r=new ee(o-e/2*n,s*i+a),h,u,d,r=[r,new ee(o+e/2*n,s*i+a),new ee(o+t/2*n,s*(i+1)+a),new ee(o-t/2*n,s*(i+1)+a),r];return l.push(new dt(r)),l.push(new vt),l}get localizedName(){return N.get("Chart","Funnel")}},te.d.StiFunnelWeightedSlicesSeriesCoreXF=class extends te.d.StiSeriesCoreXF{constructor(e){super(e)}applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getColumnBrush(t),i.borderColor=e.core.getColumnBorder(t),i.borderThickness=e.core.seriesBorderThickness)}isNotNullValues(e){for(var t of e)for(var i of t.values)if(null!=i)return!0;return!1}renderSeries(n,l,a,e){if(null==e||0==e.length||null==this.series.chart||null!=e&&!this.isNotNullValues(e))return void this.renderFunnelEmpty(a,l);var t=e.stimulsoft().toList().cast().stimulsoft().toArray(),i;let o=0;for(i of e)null!=i.values&&(o+=i.values.length);if(0==o)return void this.renderFunnelEmpty(a,l);let h=new P;var u=this.getAllValues(t),d=this.getAllTrueValues(t),m=.9*l.height/this.getSumValues(d);let c=0,S=0,g;g=null!=this.labels&&this.labels.is(te.d.StiOutsideLeftFunnelLabels)?l.width/2+l.x:l.width/2;var p=te.d.StiChartHelper.globalBeginTimeElement,f,r;for(f of e){let s=f;var w=this.getValues(s);this.labels=this.series.chart.seriesLabels.stimulsoft().as(te.d.StiFunnelSeriesLabels);var x={ref:null},C={ref:null},y;this.checkNonZerovalue(e,x,C,{ref:null});var x=x.ref,C=C.ref;if(0!=x)if(1==x){let e=s.brush;s.allowApplyBrush&&(e=s.core.getSeriesBrush(C,s.values.length),e=s.processSeriesBrushes(C,e));let t=s.borderColor;s.allowApplyBorderColor&&(t=s.core.getSeriesBorderColor(c,o));let i=this.renderFunnelElement(t,e,s.values[C],u,c,C,s,a,l,m,new U(te.d.StiChartHelper.globalBeginTimeElement.ticks));if(null!=i){if(null!=s.core.interaction){let e=new Ct;e.fill(a.area,s,C),i.interaction=e}a.createChildGeoms(),a.childGeoms.push(i)}}else for(let r=0;r<w.length;r++){var b=w[r],A,v,A;if(!s.showZeros&&0==b){c++;continue}let e=s.brush;s.allowApplyBrush&&(e=s.core.getSeriesBrush(c,o),e=s.processSeriesBrushes(c,e));let t=s.borderColor;s.allowApplyBorderColor&&(t=s.core.getSeriesBorderColor(c,o));let i=this.renderFunnelElement(t,e,b,u,S,r,f,a,l,m,new U(p.ticks/f.values.length*r));if(null!=i){if(null!=f.core.interaction){let e=new Ct;e.fill(a.area,f,r),i.interaction=e}a.createChildGeoms(),a.childGeoms.push(i)}null!=this.labels&&this.labels.visible&&(A=c==d.length-1?b:d[r+1],0!=this.labels.step&&r%this.labels.step!=0||(v={ref:l},A=this.labels.core.renderLabel(s,n,c,b,A,this.getArgumentText(s,r),s.core.getTag(r),c,o,l,m,0,g,v),l=v.ref,null!=A&&h.push(A))),S++,c++}}for(r of h)a.createChildGeoms(),a.childGeoms.push(r),r.clientRectangle=this.checkLabelsRect(this.labels,a,r.clientRectangle)}checkNonZerovalue(e,t,i,r,s=!1){let n=0,l=0,a=0,o=0,h=null;for(var u of e){var d,m;for(m of s?u.valuesStart:u.values)0==m||null==m||isNaN(m)||(n++,o=m,h=u,1==n&&(a=l)),l++}return t.ref=n,i.ref=a,r.ref=h,o}getSeriesBorderColor(e,t){if(null==this.series.chart||null==this.series.chart.area)return null;let i=null!=this.series.chart.style?this.series.chart.style.core:new te.d.StiStyleCoreXF29;var t=i.getColorByIndex(e,t,this.seriesColors);return i.getColumnBorder(t)}getSeriesBrush(e,t){if(null==this.series.chart||null==this.series.chart.area)return null;let i=null!=this.series.chart.style?this.series.chart.style.core:new te.d.StiStyleCoreXF29;var t=i.getColorByIndex(e,t,this.seriesColors),r;return i.getColumnBrush(t)}getAllValues(e){let t=new P;for(var i of e)for(var r of i.values){if(0==r&&!i.showZeros)continue;t.push(r)}return t.stimulsoft().toArray()}getAllTrueValues(e){let t=new P;for(var i of e)for(var r of i.values)t.push(r);return t.stimulsoft().toArray()}getValues(e){let t=[];for(var i of e.values){if(!e.showZeros&&0==i)continue;t.push(i)}return t.stimulsoft().toArray()}getArgumentText(e,t){var i=e.arguments.stimulsoft().getKeys();if(e.arguments.length>t&&null!=e.arguments.stimulsoft().getByIndex(t,i))return e.arguments.stimulsoft().getByIndex(t,i).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return""}renderFunnelEmpty(i,r){var s=[3,2,1],n=.9*r.height/this.getSumValues(s);for(let t=0;t<s.length;t++){let e=this.measureFunnelElementCore(t,r,n,s);i.createChildGeoms(),i.childGeoms.push(new te.d.StiFunnelEmptySeriesElementGeom(r,e.stimulsoft().toList()))}}getPathFunnelEmpty(e){let t=new P;var i=.05*e.height,r=e.width/2,s=new ee(r-.9*e.width/2,i),n=new ee(r+.9*e.width/2,i),l=new ee(r-.1*e.width/2,e.height+i-e.height/5),a,o,h,l=[s,n,new ee(r+.1*e.width/2,e.height+i-e.height/5),new ee(r+.1*e.width/2,e.height+i),new ee(r-.1*e.width/2,e.height+i),l];return t.push(new dt(l)),t.push(new vt),t}renderFunnelElement(e,t,i,r,s,n,l,a,o,h,u){var r=this.measureFunnelElementCore(s,o,h,r);return new te.d.StiFunnelSeriesElementGeom(a,i,n,l,o,t,e,r,u)}getSumValues(e){let t=0;for(var i of e)t+=Math.abs(i);return t}getSumLastValues(t,i){let r=0;for(let e=0;e<t;e++){if(e>=i.length)break;r+=Math.abs(i[e])}return r}measureFunnelElementCore(e,t,i,r){let s=[];var n=.05*t.height,l,a,t,n;let o;o=null!=this.labels&&this.labels.is(te.d.StiOutsideLeftFunnelLabels)?t.width/2+t.x:t.width/2;let h=new ee,u=new ee,d=!1;var m=this.getSumLastValues(e,r);let c=!1,S=t.height-i*m;S<t.height/5&&(S=t.height/5,c=!0);let g=.9*t.width*S/t.height;l=new ee(o-g/2,i*m+n),a=new ee(o+g/2,i*m+n),m=this.getSumLastValues(e+1,r),S=t.height-i*m,S<t.height/5&&(S=t.height/5,c||(g=.9*t.width*S/t.height,h=new ee(o-g/2,t.height+n-S),u=new ee(o+g/2,t.height+n-S),d=!0)),g=.9*t.width*S/t.height,t=new ee(o+g/2,i*m+n),n=new ee(o-g/2,i*m+n);let p;return p=d?[l,a,u,t,n,h,l]:[l,a,t,n,l],s.push(new dt(p)),s.push(new vt),s}get localizedName(){return N.get("Chart","FunnelWeightedSlices")}},te.d.StiGanttSeriesCoreXF=class extends te.d.StiClusteredBarSeriesCoreXF{renderSeries(h,u,d,e){let m=[];if(null==e||0==e.length||null==this.series.chart)return;let c=d.area;var S=c.axisCore.getDividerX(),g=c.axisCore.getDividerY(),p,t;for(p of e){let e=p.values.length;p.valuesEnd.length<e&&(e=p.valuesEnd.length);var i=p.arguments.length,f=Math.min(e,i);let a=i-1,o=0;var w=p.arguments.stimulsoft().getKeys();while(o<f){let i=p.values[o],r=p.valuesEnd[o];null==i&&(i=0),null==r&&(r=0);var x=Math.abs(i-r)*c.xAxis.info.dpi;let e=S;var C=Math.min(i,r),y;c.reverseHor?e-=C*c.xAxis.info.dpi+x:e+=C*c.xAxis.info.dpi;let t=c.yAxis.info.stripLines.count-1;for(y of c.yAxis.info.stripLines.list){let e=p.arguments.stimulsoft().getByIndex(o,w);if(null==e&&null==y.valueObject||null!=e&&null!=y.valueObject&&e.toString()==y.valueObject.toString())break;t--}c.reverseVert&&(t=c.yAxis.info.stripLines.count-1-t);var b=c.yAxis.info.step/2;let s=g-b/2;c.reverseVert?s+=c.yAxis.info.step*t:s-=c.yAxis.info.step*t;var A=new ne(e,s,x,b),v=ne.fromLTRB(A.left,A.top,A.left,A.bottom),L=p.core.getSeriesBrush(a,f),L=p.processSeriesBrushes(a,L),T;let n=new te.d.StiGanttSeriesElementGeom(d,C,o,p,A,v,L);if(null!=p.core.interaction){let e=new Ct;e.fill(c,p,o),n.interaction=e}d.createChildGeoms(),d.childGeoms.push(n);let l=p.core.getSeriesLabels();if(null!=l&&l.visible)if(l.is(te.d.StiValueAxisLabels)){var A=new ee(e,s+b/2),v=new ee(e+x,s+b/2),L;if(0==l.step||o%l.step==0){r<i&&(L=i,i=r,r=L);let e=l.core.renderLabel(p,h,v,v,o,r,r,p.arguments.stimulsoft().getByIndex(o,w).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),p.core.getTag(o),0,1,u),t=l.core.renderLabel(p,h,A,A,o,i,i,p.arguments.stimulsoft().getByIndex(o,w).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),p.core.getTag(o),0,1,u);null!=t&&(m.push(t),t.clientRectangle=this.checkLabelsRect(l,d,t.clientRectangle.clone())),null!=e&&(m.push(e),e.clientRectangle=this.checkLabelsRect(l,d,e.clientRectangle.clone()))}}else if(!l.is(te.d.StiNoneLabels)){let t,i;if(i=l.is(te.d.StiCenterAxisLabels)?(t=new ee(e,s+b/2),new ee(e+x,s+b/2)):(t=new ee(e+x/2,s),new ee(e+x/2,s)),0==l.step||o%l.step==0){let e=l.core.renderLabel(p,h,i,t,o,C,C,p.arguments.stimulsoft().getByIndex(o,w).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),p.core.getTag(o),0,1,u);null!=e&&(m.push(e),e.clientRectangle=this.checkLabelsRect(l,d,e.clientRectangle.clone()))}}a-=1,o++}}for(t of m)d.createChildGeoms(),d.childGeoms.push(t)}get localizedName(){return N.get("Chart","Gantt")}constructor(e){super(e)}};{let F=class{constructor(e,t,i){this.value=e,this.series=t,this.index=i}};te.d.DataPictorial=F,te.d.StiPictorialSeriesCoreXF=class extends te.d.StiSeriesCoreXF{constructor(e){super(e),this.singleSizeConst=new G(25,25)}applyStyle(e,t){super.applyStyle(e,t),this.series.allowApplyStyle&&(this.series.brush=e.core.getColumnBrush(t))}get localizedName(){return N.get("Chart","Pictorial")}getSingleSize(e){return new G(this.singleSizeConst.width*e.options.zoom,this.singleSizeConst.height*e.options.zoom)}renderSeries(e,s,n,t){var l=this.getSingleSize(e),i=Math.floor(s.width/l.width),r=Math.floor(s.height/l.height),a=i*l.width,o=r*l.height,h=s.x+(s.width-a)/2,e=s.y+(s.height-o)/2,u=new ne(h,e,a,o),r=i*r,d=this.series.chart.area,m,c;let S=[];for(m of t){var g=m.stimulsoft().as(te.d.StiPictorialSeries),p;let e=0;for(p of m.values){var f=null==p?0:d.roundValues?Math.round(p):p;S.push(new F(Math.abs(f),g,e)),e++}}let w=0;for(c of S)w+=c.value;let x=r/w;1<x&&d.actual&&(x=1);let C=new ee(u.x,u.y),y=0;for(let e=0;e<S.length;e++){var b=Math.abs(S[e].value);if(0==b)continue;var A=x*b,v=d.roundValues?this.roundPictirialValue(A,y):A,L,T;y+=A-v;let t=v*l.width*l.height/l.height,i=[],r=[];do{let e=0;var I=C,k=u.right-C.x;C=k>t?(e=t,new ee(C.x+t,C.y)):(e=k,new ee(u.x,C.y+l.height)),t-=e;var k=(I.x-u.x)/l.width,k=(k-Math.floor(k))*l.width,k=new ne(I.x-k,I.y,e+k,l.height),I=new ne(I.x,I.y,e,l.height);i.push(k),r.push(I)}while(0<t&&C.y<u.bottom);var b=new te.d.StiPictorialSeriesElementGeom(n,b,S[e].index,this.getSeriesBrush(e,S.length),S[e].series,S[e].series.icon,i,r,s,null);n.createChildGeoms(),n.childGeoms.push(b)}}roundPictirialValue(e,t){return 0<t?Math.ceil(e):t<0?Math.floor(e):Math.round(e)}getSeriesBrush(e,t){var t=super.getSeriesBrush(e,t);if(null==t)return this.series.brush;return t}}}te.d.StiPie3dSlice=class{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m,c){this.textPosition=new wt(0,0),this.value=t,this.argumentText=i,this.tag=r,this.index=s,this.colorIndex=m,this.colorCount=c,this.series=n,this.rectPieSlilce=l,this.pieHeight=a,this.startAngle=o,this.sweepAngle=h,this.seriesBrush=u,this.borderColor=d,null!=n.core.interaction&&(this.interaction=new Ct(e,n,m))}get endAngle(){return(this.startAngle+this.sweepAngle)%360}drawLabels(t,i){let r=this.series.core.getPieSeriesLabels();if(null!=r&&!r.is(te.d.StiNoneLabels)&&r.visible){let e=r.core;var i;null!=e&&(i=e.renderLabel2(this.series,i,this),t.createChildGeoms(),t.childGeoms.push(i))}}drawTopPieSliceGeom(e){var t=new te.d.StiPie3dMainSideSeriesElementGeom(this,e,this.value,this.colorIndex,this.colorCount,this.series,this.rectPieSlilce,this.borderColor,this.seriesBrush,this.startAngle,this.sweepAngle);e.createChildGeoms(),e.childGeoms.push(t)}drawBottomPieSliceGeom(e){var t=new mt(this.rectPieSlilce.x,this.rectPieSlilce.y+this.pieHeight,this.rectPieSlilce.width,this.rectPieSlilce.height),t=new te.d.StiPie3dMainSideSeriesElementGeom(this,e,this.value,this.colorIndex,this.colorCount,this.series,t,this.borderColor,this.seriesBrush,this.startAngle,this.sweepAngle);e.createChildGeoms(),e.childGeoms.push(t)}drawSides(e){let t=new te.d.StiPie3dSidesSeriesElementGeom(this,e,this.value,this.colorIndex,this.colorCount,this.series,this.rectPieSlilce,this.borderColor,this.seriesBrush,this.startAngle,this.sweepAngle,this.pieHeight);this.textPosition=t.getTextPosition(),e.createChildGeoms(),e.childGeoms.push(t)}};let Lt=te.d.StiPie3dSlice,Tt=J.System.Drawing.Size;te.d.StiPie3dSeriesCoreXF=class extends te.d.StiPieSeriesCoreXF{constructor(e){super(e)}renderSeries(e,t,i,r){this.initializePieSlices(i.area,t,r,e.options.zoom),this.drawBottoms(i),0<this.pieHeight&&this.drawSliceSides(i),this.drawTops(i),this.drawLabels(i,e)}drawLabels(i,r){if(null==this.mPieSlices)return;for(let t=0;t<this.mPieSlices.length;t++){let e=this.mPieSlices[t];e.drawLabels(i,r)}}drawTops(i){if(null==this.mPieSlices)return;for(let t=0;t<this.mPieSlices.length;t++){let e=this.mPieSlices[t];e.drawTopPieSliceGeom(i)}}drawSliceSides(s){if(null==this.mPieSlices)return;var n=this.mPieSlices.stimulsoft().toList();if(0==n.length)return;let e=null;e=n[0],e.drawSides(s);let l=1,a=n.length-1;while(l<a){let e=n[a],t=e.startAngle-90;(180<t||t<0)&&(t=0);let i=n[l],r=(450-i.endAngle)%360;(180<r||r<0)&&(r=0),r>=t?(i.drawSides(s),++l):r<t&&(e.drawSides(s),--a)}e=n[a],e.drawSides(s)}drawBottoms(i){if(null==this.mPieSlices)return;for(let t=0;t<this.mPieSlices.length;t++){let e=this.mPieSlices[t];e.drawBottomPieSliceGeom(i)}}initializePieSlices(n,e,t,l){var i=1.61,r,s;let a=mt.empty;a=e.width/e.height>i?(r=e.height*i,new mt((e.width-r)/2,0,r,e.height)):(s=e.width/i,new mt(0,(e.height-s)/2,e.width,s)),a=new mt(a.x+.025*a.width,a.y+.025*a.height,.95*a.width,.95*a.height);let o=new P;var h=this.getGradPerValue(t),s=t[0];let u=s.startAngle%360;var d=this.getColorCount(t);this.pieHeight=s.options3D.height*l;var m=this.getLargestDisplacement(l),c=this.getTopEllipseSize(a,l),S;let g=0,p=-1;for(S of t.stimulsoft().toList())for(let s=0;s<S.values.length;s++){var f=S.values[s];if(0!=f&&null!=f){var w=h*Math.abs(f),x,x,C;let e=S.brush;S.allowApplyBrush&&(e=S.core.getSeriesBrush(g,d),e=S.processSeriesBrushes(s,e)),0<=S.options3D.opacity&&S.options3D.opacity<1&&(x=Ze.toColor(e),x=re.fromArgb(255*S.options3D.opacity,x.r,x.g,x.b),e=new se(x));let t=S.borderColor;S.allowApplyBorderColor&&(t=S.core.getSeriesBorderColor(g,d));let i=this.getLargestDisplacement(l),r=this.getLargestDisplacement(l);0<i&&(C=this.getSliceDisplacement(u+w/2,i,r),i=C.width,r=C.height);var C=new mt(a.x+2*m+i,a.y+2*m+r,c.width,c.height),C=new Lt(n,f,this.getArgumentText(S,s),S.core.getTag(s),s,S,C,this.pieHeight,u%360,w,e,t,g,d);-1<p||u<=270&&270<u+w||270<=u&&630<u+w?(++p,o.insert(p,C)):o.add(C),u+=w}g++,360<u&&(u-=360)}this.mPieSlices=o}getTopEllipseSize(e,t){var t=this.getLargestDisplacement(t);let i=e.width-4*t,r=e.height-4*t-this.pieHeight;return i<1&&(i=1),r<1&&(r=1),new Tt(i,r)}getSliceDisplacement(e,t,i){if(0==t)return Tt.empty;var t=t*Math.cos(e*Math.PI/180),e=i*Math.sin(e*Math.PI/180);return new Tt(t,e)}getLargestDisplacement(e){return this.series.options3D.distance*e}get localizedName(){return"3D "+N.get("Chart","Pie")}},te.d.StiRadarSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&null!=i.marker&&(i.marker.brush=new se(qe.light(t,100)),i.marker.borderColor=qe.dark(t,100))}getPointsList(e,r,t){let s=[];var n=r.area,l=n.core,a;for(a of t){let i=[];s.push(i);let e=0;for(var o of l.points){let t=e<a.values.length?a.values[e]:null;if(null==t&&a.showNulls&&(t=0),null==t)i.push(null);else{null!=t&&(t=(t-n.yAxis.info.minimum)*n.yAxis.info.dpi);let e=new ee(l.centerPoint.x+t*o.x,l.centerPoint.y+t*o.y);e.x-=r.clientRectangle.x,e.y-=r.clientRectangle.y,i.push(e)}e++}}return s}renderSeries(n,e,l,t){if(null==t||0==t.length||null==this.series.chart)return;var a=this.getPointsList(this.series.values,l,t),o=this.getPointsList(this.series.valuesStart,l,t),h;let u=0;for(h of t){let e=a[u];e.push(e[0]);let t=h.arguments.map(e=>e);t.length<e.length-1&&(t=e.map((e,t)=>t.toString())),t.push(t[0]+"_e");let i=o[u];i.push(i[0]);let r=new ee(l.clientRectangle.width/2,l.clientRectangle.height/2),s=new te.d.StiSeriesPointsInfo;s.pointsFrom=i.map(e=>null!=e?e:r),s.points=e.map(e=>null!=e?e:r),s.pointsIds=t.map(e=>e),this.renderAreas(n,h,s,l),this.renderLines(n,h,s,l),e.splice(e.length-1,1),this.renderPoints(n,h,e,l),e.splice(e.length-1,1),u++}}renderAreas(e,t,i,r){}renderLines(e,t,i,r){}renderPoints(i,r,e,s){let n=0;for(var l of e){if(null!=l){var a=n<r.values.length?r.values[n]:null,o=new te.d.StiRadarPointSeriesElementGeom(s,a,n,r.marker.brush,r,l,i.options.zoom);null!=s&&(s.createChildGeoms(),s.childGeoms.push(o));let t=r.core.getSeriesLabels();if(null!=t&&t.visible&&null!=a){var l=l;if(0==t.step||n%t.step==0){let e=t.core.renderLabel(r,i,l,l,n,a,a,this.getArgument(r,n),r.core.getTag(n),0,1,s.clientRectangle);null!=e&&(s.createChildGeoms(),s.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(t,s,e.clientRectangle.clone()))}}}n++}}getArgument(e,t){var i=e.arguments.stimulsoft().getKeys();return e.arguments.length>t?e.arguments.stimulsoft().getByIndex(t,i).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator):""}getSeriesBrush(e,t){var t=super.getSeriesBrush(e,t);if(null==t)return new se(qe.dark(re.white,20));return t}getSeriesBorderColor(e,t){var t=super.getSeriesBorderColor(e,t);if(null==t)return re.black;return t}constructor(e){super(e)}},te.d.StiRadarAreaSeriesCoreXF=class extends te.d.StiRadarSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t),i.lineColor=t)}get localizedName(){return N.get("Chart","RadarArea")}renderLines(e,t,i,r){var t=new te.d.StiLineSeriesGeom(r,i,t);null!=r&&(r.createChildGeoms(),r.childGeoms.push(t))}renderAreas(e,t,i,r){var i=new te.d.StiRadarAreaSeriesGeom(t,i);null!=r&&(r.createChildGeoms(),r.childGeoms.push(i))}constructor(e){super(e)}},te.d.StiRadarLineSeriesCoreXF=class extends te.d.StiRadarSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.lineColor=t)}get localizedName(){return N.get("Chart","RadarLine")}renderLines(e,t,i,r){var t=new te.d.StiLineSeriesGeom(r,i,t);null!=r&&(r.createChildGeoms(),r.childGeoms.push(t))}constructor(e){super(e)}},te.d.StiRadarPointSeriesCoreXF=class extends te.d.StiRadarSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series.stimulsoft().as(te.d.StiRadarPointSeries);i.allowApplyStyle&&(e.core.markerVisible||(i.marker.visible=!0))}get localizedName(){return N.get("Chart","RadarPoint")}constructor(e){super(e)}},te.d.StiRangeBarSeriesCoreXF=class extends te.d.StiClusteredColumnSeriesCoreXF{renderSeries(o,h,u,d){var m,m;let c=[];if(null==d||0==d.length||null==this.series.chart)return;let S=u.area;var g=S.axisCore.getDividerX(),p=S.axisCore.getDividerY(),f,e;for(f of d){let e=f.values.length;f.valuesEnd.length<e&&(e=f.valuesEnd.length);var t=f.arguments.length,w=Math.min(e,t);let l=S.reverseHor?w-1:0,a=0;var x=f.arguments.stimulsoft().getKeys();while(a<w){let i=f.values[a],r=f.valuesEnd[a];null==i&&(i=0),null==r&&(r=0);var C=Math.abs(i-r)*S.yAxis.info.dpi;let e=p;var y=Math.max(i,r),b;S.reverseVert?e+=Math.min(i,r)*S.yAxis.info.dpi:e-=y*S.yAxis.info.dpi;let t=S.xAxis.info.stripLines.count-1;for(b of S.xAxis.info.stripLines.list){if((null===(m=f.arguments.stimulsoft().getByIndex(a,x))||void 0===m?void 0:m.toString())==(null===(m=b.valueObject)||void 0===m?void 0:m.toString()))break;t--}t=S.xAxis.info.stripLines.count-1-t;var A=(S.xAxis.info.step-S.xAxis.info.step*(1-f.width))/d.length,v=g-A/2;v+=S.xAxis.info.step*t;var L=new ne(v,e,A,C),T=ne.fromLTRB(L.left,L.bottom,L.right,L.bottom),I=f.core.getSeriesBrush(l,w),I=f.processSeriesBrushes(l,I);let s=new te.d.StiRangeBarElementGeom(u,y,a,f,I,L,T);if(null!=f.core.interaction){let e=new Ct;e.fill(S,f,a),s.interaction=e}u.createChildGeoms(),u.childGeoms.push(s);let n=f.core.getSeriesLabels();if(null!=n&&n.visible){var T=new ee(v+A/2,e),A=new ee(v+A/2,e+C),C;if(0==n.step||a%n.step==0){r<i&&(C=i,i=r,r=C);let e=n.core.renderLabel(f,o,A,A,a,i,i,f.arguments.stimulsoft().getByIndex(a,x).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),f.core.getTag(a),0,1,h),t=n.core.renderLabel(f,o,T,T,a,r,r,f.arguments.stimulsoft().getByIndex(a,x).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator),f.core.getTag(a),0,1,h);null!=t&&(c.push(t),t.clientRectangle=this.checkLabelsRect(n,u,t.clientRectangle.clone())),null!=e&&(c.push(e),e.clientRectangle=this.checkLabelsRect(n,u,e.clientRectangle.clone()))}}l=S.reverseHor?l-1:l+1,a++}}for(e of c)u.createChildGeoms(),u.childGeoms.push(e)}get localizedName(){return N.get("Chart","RangeBar")}constructor(e){super(e)}},te.d.StiRangeSeriesCoreXF=class extends te.d.StiLineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t))}renderSeries(h,u,d,e){if(null==e||0==e.length||null==this.series.chart)return;let m=d.area,c=d.area;var s=c.xAxis.core.getStartFromZero(),S;for(S of e){let i=Math.min(S.values.length,S.valuesEnd.length),n=ie.create(ee,i,!0),l=ie.create(ee,i,!0),r=ie.create(String,i,!0);S.valuesEnd.length<i&&(i=S.valuesEnd.length);for(let t=0;t<i;t++){var g=m.reverseHor?S.values[i-t-1]:S.values[t],p=m.reverseHor?S.valuesEnd[i-t-1]:S.valuesEnd[t];g==p?n[t]=l[t]=this.getYPoint(g,S,m,t):(n[t]=this.getYPoint(g,S,m,t),l[t]=this.getYPoint(p,S,m,t));let e=(s?c.xAxis.info.stripLines.getByIndex(t+1):c.xAxis.info.stripLines.getByIndex(t)).valueObject;r[t]=null==e?"":e.stimulsoft().toString()}let e=new te.d.StiSeriesPointsInfo;e.points=n,e.pointsEnd=l,e.pointsIds=r;let t=new te.d.StiSeriesPointsInfo;t.points=l,t.pointsIds=r,t.additionalSeriesId="_e",this.renderAreas2(d,e,S),this.renderLines2(h,d,e,S.values,S),this.renderLines2(h,d,t,S.valuesEnd,S);let a=0,o=S.core.getSeriesLabels();if(null!=o&&o.visible)for(let s=0;s<i;s++){let t=c.reverseHor?S.values[S.values.length-s-1]:S.values[s];var f=c.reverseHor?S.valuesEnd[S.valuesEnd.length-s-1]:S.valuesEnd[s];null==t&&S.showNulls&&(t=0),null==f&&S.showNulls&&(t=0);let i=t;m.reverseVert&&null!=t&&(i=-i);let r=f;m.reverseVert&&null!=f&&(r=-r),a=S.yAxis==te.d.StiSeriesYAxis.LeftYAxis?m.axisCore.getDividerY():m.axisCore.getDividerRightY();var w=n[s],x=l[s];if(null!=w){var C=new ee(w.x,a);if(0==o.step||s%o.step==0){let e=o.core.renderLabel(S,h,this.correctPoint(w,u,S.labelsOffset*h.options.zoom),this.correctPoint(C,u,S.labelsOffset*h.options.zoom),s,i,t,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(s),S),S.core.getTag(s),0,1,u);null!=e&&(d.createChildGeoms(),d.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(o,d,e.clientRectangle.clone()))}}if(null!=x){var C=new ee(x.x,a);if(0==o.step||s%o.step==0){let e=o.core.renderLabel(S,h,this.correctPoint(x,u,S.labelsOffset*h.options.zoom),this.correctPoint(C,u,S.labelsOffset*h.options.zoom),s,r,f,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(s),S),S.core.getTag(s),0,1,u);null!=e&&(d.createChildGeoms(),d.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(o,d,e.clientRectangle.clone()))}}}}}renderLines2(t,i,r,e,s){if(null!=r.points&&1<r.points.length){let e=new te.d.StiLineSeriesGeom(i,r,s);i.createChildGeoms(),i.childGeoms.push(e),null!=this.interaction&&(e.interactions=this.getInteractions(t,i,r.points))}this.renderMarkers2(t,i,r.points,e,s)}renderMarkers2(s,n,e,l,a){var o=n.area,h=a;if(0==e.length)return;var u=!h.marker.visible&&0<h.toolTips.length;if(null!=h.marker&&(h.marker.visible||u)){let r=0;var d=Math.min(h.values.length,h.valuesEnd.length),m;for(m of e){if(null!=m){let e=o.reverseHor?l[d-r-1]:l[r];null==e&&h.showNulls&&(e=0);let t=n.view.clientRectangle.clone();t.x=0,t.y=0,t.inflate(10,10);let i=m;if(i.x+=n.clientRectangle.x,i.y+=n.clientRectangle.y,t.contains(i.x,i.y)){let t=new te.d.StiMarkerGeom(a,r,e,m,h.marker,h.showShadow,s.options.zoom,u);if(null!=t){if(null!=h.core.interaction){let e=new Ct;e.fill(o,h,r),t.interaction=e}n.createChildGeoms(),n.childGeoms.push(t)}}}r++}}}getYPoint(t,i,r,s){let n;var s=r.xAxis.core.getStartFromZero()?r.xAxis.info.stripPositions[s+1]:r.xAxis.info.stripPositions[s];if(null!=t||i.showNulls){null==t&&i.showNulls&&(t=0),r.reverseVert&&null!=t&&(t=-t);let e=0;e=i.yAxis==te.d.StiSeriesYAxis.LeftYAxis?-t*r.yAxis.info.dpi+r.axisCore.getDividerY():-t*r.yRightAxis.info.dpi+r.axisCore.getDividerRightY(),n=new ee(s,e)}else n=null;return n}renderAreas2(e,t,i){if(null==t.points||t.points.length<=1)return;var i=new te.d.StiRangeSeriesGeom(e,t,i);null!=i&&(e.createChildGeoms(),e.childGeoms.push(i))}get localizedName(){return N.get("Chart","Range")}constructor(e){super(e)}},te.d.StiSplineRangeSeriesCoreXF=class extends te.d.StiSplineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t))}renderSeries(h,u,d,e){if(null==e||0==e.length||null==this.series.chart)return;let m=d.area,c=d.area;var s=c.xAxis.core.getStartFromZero(),S;for(S of e){let e=S.values.length;S.valuesEnd.length<e&&(e=S.valuesEnd.length);let n=ie.create(ee,e,!0),l=ie.create(ee,e,!0),i=ie.create(String,e,!0);for(let t=0;t<e;t++){var g=m.reverseHor?S.values[S.values.length-t-1]:S.values[t],p=m.reverseHor?S.valuesEnd[S.values.length-t-1]:S.valuesEnd[t];n[t]=this.getYPoint(g,S,m,t),l[t]=this.getYPoint(p,S,m,t);let e=(s?c.xAxis.info.stripLines.getByIndex(t+1):c.xAxis.info.stripLines.getByIndex(t)).valueObject;i[t]=null==e?"":e.stimulsoft().toString()}let t=new te.d.StiSeriesPointsInfo;t.points=n,t.pointsEnd=l,t.pointsIds=i;let r=new te.d.StiSeriesPointsInfo;r.points=l,r.pointsIds=i,r.additionalSeriesId="_e",this.renderAreas2(h,d,t,S),this.renderLines(h,d,t),this.renderLines(h,d,r);let a=0,o=S.core.getSeriesLabels();if(null!=o&&o.visible)for(let s=0;s<e;s++){let t=c.reverseHor?S.values[S.values.length-s-1]:S.values[s];var f=c.reverseHor?S.valuesEnd[S.valuesEnd.length-s-1]:S.valuesEnd[s];null==t&&S.showNulls&&(t=0),null==f&&S.showNulls&&(t=0);let i=t;m.reverseVert&&null!=t&&(i=-i);let r=f;m.reverseVert&&null!=f&&(r=-r),a=S.yAxis==te.d.StiSeriesYAxis.LeftYAxis?m.axisCore.getDividerY():m.axisCore.getDividerRightY();var w=n[s],x=l[s];if(null!=w){var C=new ee(w.x,a);if(0==o.step||s%o.step==0){let e=o.core.renderLabel(S,h,this.correctPoint(w,u,S.labelsOffset*h.options.zoom),this.correctPoint(C,u,S.labelsOffset*h.options.zoom),s,i,t,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(s),S),S.core.getTag(s),0,1,u);null!=e&&(d.createChildGeoms(),d.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(o,d,e.clientRectangle.clone()))}}if(null!=x){var C=new ee(x.x,a);if(0==o.step||s%o.step==0){let e=o.core.renderLabel(S,h,this.correctPoint(x,u,S.labelsOffset*h.options.zoom),this.correctPoint(C,u,S.labelsOffset*h.options.zoom),s,r,f,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(s),S),S.core.getTag(s),0,1,u);null!=e&&(d.createChildGeoms(),d.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(o,d,e.clientRectangle.clone()))}}}}}getYPoint(t,i,r,s){let n;var s=r.xAxis.core.getStartFromZero()?r.xAxis.info.stripPositions[s+1]:r.xAxis.info.stripPositions[s];if(null!=t||i.showNulls){null==t&&i.showNulls&&(t=0),r.reverseVert&&null!=t&&(t=-t);let e=0;e=i.yAxis==te.d.StiSeriesYAxis.LeftYAxis?-t*r.yAxis.info.dpi+r.axisCore.getDividerY():-t*r.yRightAxis.info.dpi+r.axisCore.getDividerRightY(),n=new ee(s,e)}else n=null;return n}renderAreas2(e,t,i,r){if(null==i.points||i.points.length<=1)return;var r=new te.d.StiSplineRangeSeriesGeom(t,i,r);null!=r&&(t.createChildGeoms(),t.childGeoms.push(r))}get localizedName(){return N.get("Chart","SplineRange")}constructor(e){super(e)}},te.d.StiSteppedRangeSeriesCoreXF=class extends te.d.StiSteppedLineSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getAreaBrush(t))}renderSeries(h,u,d,e){if(null==e||0==e.length||null==this.series.chart)return;let m=d.area,c=d.area;var s=c.xAxis.core.getStartFromZero(),S;for(S of e){let i=Math.min(S.values.length,S.valuesEnd.length),n=ie.create(ee,i,!0),l=ie.create(ee,i,!0),r=ie.create(String,i,!0);S.valuesEnd.length<i&&(i=S.valuesEnd.length);for(let t=0;t<i;t++){var g=m.reverseHor?S.values[i-t-1]:S.values[t],p=m.reverseHor?S.valuesEnd[i-t-1]:S.valuesEnd[t];n[t]=this.getYPoint(g,S,m,t),l[t]=this.getYPoint(p,S,m,t);let e=(s?c.xAxis.info.stripLines.getByIndex(t+1):c.xAxis.info.stripLines.getByIndex(t)).valueObject;r[t]=null==e?"":e.stimulsoft().toString()}let e=new te.d.StiSeriesPointsInfo;e.points=n,e.pointsIds=r,e.pointsEnd=l;let t=new te.d.StiSeriesPointsInfo;t.points=l,t.pointsIds=r,t.additionalSeriesId="_e",this.renderAreas2(h,d,e,S),this.renderLines2(h,d,e,S.values,S),this.renderLines2(h,d,t,S.valuesEnd,S);let a=0,o=S.core.getSeriesLabels();if(null!=o&&o.visible)for(let s=0;s<i;s++){let t=c.reverseHor?S.values[S.values.length-s-1]:S.values[s];var f=c.reverseHor?S.valuesEnd[S.valuesEnd.length-s-1]:S.valuesEnd[s];null==t&&S.showNulls&&(t=0),null==f&&S.showNulls&&(t=0);let i=t;m.reverseVert&&null!=t&&(i=-i);let r=f;m.reverseVert&&null!=f&&(r=-r),a=S.yAxis==te.d.StiSeriesYAxis.LeftYAxis?m.axisCore.getDividerY():m.axisCore.getDividerRightY();var w=n[s],x=l[s];if(null!=w){var C=new ee(w.x,a);if(0==o.step||s%o.step==0){let e=o.core.renderLabel(S,h,this.correctPoint(w,u,S.labelsOffset*h.options.zoom),this.correctPoint(C,u,S.labelsOffset*h.options.zoom),s,i,t,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(s),S),this.getTag(s),0,1,u);null!=e&&(d.createChildGeoms(),d.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(o,d,e.clientRectangle.clone()))}}if(null!=x){var C=new ee(x.x,a);if(0==o.step||s%o.step==0){let e=o.core.renderLabel(S,h,this.correctPoint(x,u,S.labelsOffset*h.options.zoom),this.correctPoint(C,u,S.labelsOffset*h.options.zoom),s,r,f,m.axisCore.getArgumentLabel(m.xAxis.info.stripLines.getByIndex(s),S),this.getTag(s),0,1,u);null!=e&&(d.createChildGeoms(),d.childGeoms.push(e),e.clientRectangle=this.checkLabelsRect(o,d,e.clientRectangle.clone()))}}}}}renderAreas2(e,t,i,r){if(null==i.points||i.points.length<=1)return;if(null==i.pointsEnd||i.pointsEnd.length<=1)return;var r=new te.d.StiSteppedRangeSeriesGeom(t,i,r);null!=r&&(t.createChildGeoms(),t.childGeoms.push(r))}renderLines2(t,i,r,e,s){var n;if(1<r.points.length||s.pointAtCenter&&0<r.points.length){let e=new te.d.StiSteppedLineSeriesGeom(i,r,s);null!=e&&(i.createChildGeoms(),i.childGeoms.push(e)),null!=this.interaction&&(e.interactions=this.getInteractions(t,i,r.points))}this.renderMarkers2(t,i,r.points,e,s)}renderMarkers2(s,n,e,l,a){var o=n.area,h=a;if(0==e.length)return;var u=!h.marker.visible&&0<h.toolTips.length;if(null!=h.marker&&(h.marker.visible||u)){let r=0;for(var d of e){if(null!=d){let e=o.reverseHor?l[h.values.length-r-1]:l[r];null==e&&h.showNulls&&(e=0);let t=n.view.clientRectangle.clone();t.x=0,t.y=0,t.inflate(10,10);let i=new ee(d.x,d.y);if(i.x+=n.clientRectangle.x,i.y+=n.clientRectangle.y,t.contains(i.x,i.y)){let t=new te.d.StiMarkerGeom(a,r,e,d,h.marker,h.showShadow,s.options.zoom,u);if(null!=t){if(null!=h.core.interaction){let e=new Ct;e.fill(o,h,r),t.interaction=e}n.createChildGeoms(),n.childGeoms.push(t)}}}r++}}}getYPoint(t,i,r,e){let s;var n=r.xAxis.info.stripPositions.stimulsoft().getKeys(),n=r.xAxis.core.getStartFromZero()?r.xAxis.info.stripPositions.stimulsoft().getByIndex(e+1,n):r.xAxis.info.stripPositions.stimulsoft().getByIndex(e,n);if(null!=t||i.showNulls){null==t&&i.showNulls&&(t=0),r.reverseVert&&null!=t&&(t=-t);let e=0;e=i.yAxis==te.d.StiSeriesYAxis.LeftYAxis?-t*r.yAxis.info.dpi+r.axisCore.getDividerY():-t*r.yRightAxis.info.dpi+r.axisCore.getDividerRightY(),s=new ee(n,e)}else s=null;return s}get localizedName(){return N.get("Chart","SteppedRange")}constructor(e){super(e)}},te.d.StiScatterLineSeriesCoreXF=class extends te.d.StiScatterSeriesCoreXF{renderLines(e,t,i){if(null==i.points||i.points.length<=1)return;var r=new te.d.StiLineSeriesGeom(t,i,this.series);null!=r&&(t.createChildGeoms(),t.childGeoms.push(r)),this.renderMarkers(e,t,i.points)}get localizedName(){return N.get("Chart","ScatterLine")}constructor(e){super(e)}},te.d.StiScatterSplineSeriesCoreXF=class extends te.d.StiScatterSeriesCoreXF{renderLines(e,t,i){if(null==i.points||i.points.length<=1)return;var r=new te.d.StiScatterSplineSeriesGeom(t,i,this.series);null!=r&&(t.createChildGeoms(),t.childGeoms.push(r)),this.renderMarkers(e,t,i.points)}get localizedName(){return N.get("Chart","ScatterSpline")}constructor(e){super(e)}};let It=J.System.Collections.Dictionary,kt=J.System.Data.DataTable,Ft=J.System.Data.DataColumn;te.d.StiSunburstSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t),this.series.allowApplyStyle&&(this.series.borderThickness=e.core.seriesBorderThickness)}renderSeries(e,t,i,r){let s=this.getDataTable(r);if(s.rows.count<1)return;var n=s.columns.count-1,l;for(let t=0;t<s.rows.count;t++){for(let e=0;e<r.length;e++)0<r.length&&r[e].arguments.length>t?s.rows.getByIndex(t).setValue(e+1,r[e].arguments[t]):s.rows.getByIndex(t).setValue(e+1,null);0<r.length&&r[0].values.length>t?s.rows.getByIndex(t).setValue(n,r[0].values[t]):s.rows.getByIndex(t).setValue(n,null)}let a=new It;for(l of s.rows.list){var o=l.gett(1);if(null==o)continue;if(a.contains(o)){let e=a.get(o);e.loadDataRow(l.itemArray)}else{let e=s.clone();e.loadDataRow(l.itemArray),a.add(o,e)}}var h=this.getRadius(e,t),u=this.getPointCenter(t),d=this.getGradPerValue(s),m,c;if(Number.POSITIVE_INFINITY==d||Number.NEGATIVE_INFINITY==d)return;let S=0,g=0,p=new P;for(m of a.values){var f,w=d*this.getSumColumn(m,"Value"),x={ref:p};this.renderComputeSeries(e,i,m,u,h,S,d,g,a.values.length,x),p=x.ref,S+=w,g++}for(c of p)null!=c&&(i.createChildGeoms(),i.childGeoms.push(c))}renderComputeSeries(i,r,s,n,e,l,a,o,h,u){let d=1;var m=e/(s.columns.count-1);for(let t=1;t<s.columns.count-1;t++){let e=new It;for(var c of s.rows.list){var S=c.gett(t);if(null==S)continue;var g=Ue.tryToNullableNumber(c.gett(s.columns.count-1)),c;e.contains(S)&&null!=g?(c=Ue.tryToNullableNumber(e.get(S)),e.set(S,Math.abs(c)+Math.abs(g))):e.set(S,g)}var p=ie.create(Object,e.keys.length);e.keys.copyTo(p);var f=ie.create(Number,e.values.length);e.values.copyTo(f,0),this.renderLevelSeries(i,r,p,f,n,m*d,m*(d+1),l,a,o,h,d);var f=this.renderLevelSeriesLebels(i,p,f,n,m*d,m*(d+1),l,a);u.ref.addRange(f),d++}}renderLevelSeries(e,i,r,t,s,n,l,a,o,h,u,d){let m=this.series.core.getSeriesBorderColor(h,u);var c=this.series.core.getSeriesBrush(h,u),S=t;0==m.a&&(m=re.white);var g=te.d.StiChartHelper.globalBeginTimeElement;for(let t=0;t<S.length;t++){var p=S[t];let e=r[t];var f=o*Math.abs(p),p;Z.isNullOrEmpty(e.toString())||null!=(p=this.renderSunburstElement(s,n,l,m,c,a,f,p,d,h,t,i,new U(g.ticks/(u+S.length)*(t+h))))&&(i.createChildGeoms(),i.childGeoms.push(p)),a+=f}}renderLevelSeriesLebels(s,e,t,n,l,a,o,h){let u=new P;for(let r=0;r<t.length;r++){var d=t[r];let i=e[r];var m=h*Math.abs(d),c,S,d,c;if(!Z.isNullOrEmpty(i.toString())){let t=this.series.chart.seriesLabels;if(null!=this.series.chart&&null!=t&&t.visible){let e=t.as(te.d.IStiPieSeriesLabels);null==e||!e.visible||0!=e.step&&r%e.step!=0||(S={ref:c},d=e.core.renderLabel(this.series,s,n,l,a,o+m/2,r,Math.abs(d),d,i,this.getTag(r),!1,0,1,h,S,!1,0),c=S.ref,u.push(d))}}o+=m}return u}renderSunburstElement(e,t,i,r,s,n,l,a,o,h,u,d,m){if(0==l||null==l)return null;var c=new mt(e.x-t,e.y-t,2*t,2*t),S=new mt(e.x-i,e.y-i,2*i,2*i),g;if(c.width<=0&&c.height<=0)return null;let p=new P;return p.push(new gt(c,n,l)),p.push(new pt(this.getPoint(e,t,n+l),this.getPoint(e,i,n+l))),p.push(new gt(S,n+l,-l)),p.push(new pt(this.getPoint(e,i,n),this.getPoint(e,t,n))),new te.d.StiSunburstSeriesElementGeom(d,a,o,h,u,this.series,c,S,p,r,s,n,n+l,t,i,m)}getPoint(e,t,i){var i=Math.PI*i/180;return new wt(e.x+Math.cos(i)*t,e.y+Math.sin(i)*t)}getDataTable(t){let i=new kt;var e=new Ft("Id",Number);i.columns.add(e);for(let e=0;e<t.length;e++){var r=new Ft("Argument-"+e.toString(),String);i.columns.add(r)}var e=new Ft("Value",Number);i.columns.add(e);var s=this.getCountRow(t);for(let e=0;e<s;e++){var n=i.newRow();i.rows.add(n)}return i}getCountRow(e){let t=0;for(var i of e)t=Math.max(t,i.arguments.length);return t}getGradPerValue(e){var t;return 360/this.getSumColumn(e,"Value")}getRadius(e,t){return.95*Math.min(t.width/2,t.height/2)}getPointCenter(e){return new wt(e.width/2,e.height/2)}getSumColumn(e,t){let i=0;for(var r of e.rows.toList()){var r=r.gett(t);i+=Math.abs(r)}return i}get localizedName(){return N.get("Chart","Sunburst")}constructor(e){super(e)}},te.d.StiTreemapSeriesCoreXF=class extends te.d.StiSeriesCoreXF{applyStyle(e,t){super.applyStyle(e,t);let i=this.series;i.allowApplyStyle&&(i.brush=e.core.getColumnBrush(t),i.borderColor=e.core.getColumnBorder(t),i.borderThickness=e.core.seriesBorderThickness)}renderSeries(s,e,n,t){var l=te.d.StiChartHelper.globalDurationElement,a=te.d.StiChartHelper.globalBeginTimeElement,i;let o=[];for(i of this.series.values)o.push(Ue.tryToNumber(i));var r=this.series.chart.area.core.normalizeDataForArea(o,e.width*e.height),h=this.series.chart.area.core.squarify(r,[],e,[]),u,d;let m=0;for(u of t){if(u==this.series)break;m+=u.values.length}let c=0;for(d of t)c+=d.values.length;for(let r=0;r<h.length;r++){if(0==o[r]||null==o[r])continue;var S=this.series.core.getSeriesBrush(m,c),S=this.series.processSeriesBrushes(m,S);let e=this.series.core.getSeriesBorderColor(m,c);0!=e.a||this.series.chart.area.colorEach||(e=re.white);var g=new U(a.ticks/h.length*(r+2)),g=new xt(l,g),g;let t=new te.d.StiTreemapSeriesElementGeom(n,Ue.tryToNumber(this.series.values[r]),r,S,e,this.series,h[r],g);if(null!=this.series.core.interaction){let e=new Ct;e.fill(n.area,this.series,r),t.interaction=e}n.createChildGeoms(),n.childGeoms.push(t);let i=this.series.chart.seriesLabels.stimulsoft().as(te.d.StiCenterTreemapLabels);null==i||!i.visible||null!=(g=i.core.renderLabel(this.series,s,r,Ue.tryToNumber(this.series.values[r]),this.getArgumentText(this.series,r),this.series.core.getTag(r),m,c,h[r],null))&&(n.createChildGeoms(),n.childGeoms.push(g)),m++}}getArgumentText(e,t){if(e.arguments.length>t&&null!=e.arguments[t])return e.arguments[t].toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return""}getSeriesBrush(e,t){var t=super.getSeriesBrush(e,t);if(null==t)return this.series.brush;return t}getSeriesBorderColor(e,t){var t=super.getSeriesBorderColor(e,t);if(null==t)return this.series.borderColor;return t}get localizedName(){return N.get("Chart","Treemap")}constructor(e){super(e)}};{let e=class{constructor(e){this.seriesLabels=e}implements(){return e.implementsStiSeriesLabelsCoreXF||(e.implementsStiSeriesLabelsCoreXF=[p,te.d.IStiApplyStyle,te.d.IStiSeriesLabelsCoreXF]),e.implementsStiSeriesLabelsCoreXF}is(e){if(e instanceof J.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.seriesLabels.allowApplyStyle&&(this.seriesLabels.labelColor=e.core.seriesLabelsColor,this.seriesLabels.borderColor=e.core.seriesLabelsBorderColor,this.seriesLabels.brush=e.core.seriesLabelsBrush,this.seriesLabels.font=e.core.seriesLabelsFont)}get position(){return null}get seriesLabelsType(){return null}get localizedName(){return null}processSeriesColors(l,e,a){let o=e;if(null==this.seriesLabels)return o;for(var h of this.seriesLabels.chart.seriesLabelsConditions.list){if(null==a.values||a.values.length<=l)continue;var u=a.values[l];let e=null;a.is(te.d.IStiRangeSeries)&&l<a.valuesEnd.length&&(e=a.valuesEnd[l]);let t=null;null!=a.arguments&&l<a.arguments.length&&(t=a.arguments[l]);let i=null,r=null,s=null,n=null;a.is(te.d.IStiFinancialSeries)&&(l<a.valuesOpen.length&&(i=a.valuesOpen[l]),l<a.valuesClose.length&&(r=a.valuesClose[l]),l<a.valuesLow.length&&(s=a.valuesLow[l]),l<a.valuesHigh.length&&(n=a.valuesHigh[l]));var d=te.d.StiChartHelper.getFilterData(null,h,null);if(te.d.StiChartHelper.getFilterResult(h,t,u,e,i,r,s,n,d))return o=this.seriesLabels.chart.style.core.getColumnBrush(h.color),this.seriesLabels.chart.area.is(te.d.IStiClusteredBarArea)&&(o.is(de)&&(o.angle+=90),o.is(me)&&(o.angle+=90)),o}return o}getSeriesLabelColor(e,t,i){let r=e.core.getSeriesBorderColor(t,i);return r.equals(re.transparent)&&(r=Ze.toColor(e.core.getSeriesBrush(t,i))),r}getBorderColor(e,t,i){if(this.seriesLabels.useSeriesColor)return this.getSeriesLabelColor(e,t,i);return this.seriesLabels.borderColor}getLabelColor(e,t,i){if(this.seriesLabels.useSeriesColor)return this.getSeriesLabelColor(e,t,i);return this.seriesLabels.labelColor}recalcValue(e,t){return e}getLabelText(e,t,i,r,s,n=!1){return this.getLabelText2(e,t,i,r,s,0,n)}getLabelText2(e,t,i,r,s,n,l){let a="",o=this.seriesLabels.valueType;switch(l&&(o=this.seriesLabels.legendValueType),o){case te.d.StiSeriesLabelsValueType.Argument:a=this.getArgument(e,i);break;case te.d.StiSeriesLabelsValueType.Value:a=this.getFormattedValue(e,t);break;case te.d.StiSeriesLabelsValueType.SeriesTitle:a=s;break;case te.d.StiSeriesLabelsValueType.Tag:a=r;break;case te.d.StiSeriesLabelsValueType.Weight:a=n.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);break;case te.d.StiSeriesLabelsValueType.ValueArgument:var h=this.getArgument(e,i);a=Z.isNullOrEmpty(h)?this.getFormattedValue(e,t):Z.format("{0} {1} {2}",this.getFormattedValue(e,t),this.seriesLabels.valueTypeSeparator,h);break;case te.d.StiSeriesLabelsValueType.ArgumentValue:var h=this.getFormattedValue(e,t);a=Z.isNullOrEmpty(h)?this.getArgument(e,i):Z.format("{0} {1} {2}",this.getArgument(e,i),this.seriesLabels.valueTypeSeparator,h);break;case te.d.StiSeriesLabelsValueType.SeriesTitleArgument:var u=this.getArgument(e,i);a=Z.isNullOrEmpty(u)?s:Z.format("{0} {1} {2}",s,this.seriesLabels.valueTypeSeparator,u);break;case te.d.StiSeriesLabelsValueType.SeriesTitleValue:var u=this.getFormattedValue(e,t);a=Z.isNullOrEmpty(u)?s:Z.format("{0} {1} {2}",s,this.seriesLabels.valueTypeSeparator,u);break}if(l)return a;return Z.format("{0}{1}{2}",this.seriesLabels.textBefore,a,this.seriesLabels.textAfter)}getArgument(t,i){let r=i;if(t.core.isDateTimeArguments){let e=v.fromString(i,!1);null!=e&&(r=this.getFormatted(t,e.toOADate(),!0))}return r}getFormatted(t,r,s){var n,l,a,o;try{this.storedCulture=le.currentCulture;var h=null===(l=null===(n=this.seriesLabels.chart)||void 0===n?void 0:n.report)||void 0===l?void 0:l.culture;Z.isNullOrEmpty(null===(o=null===(a=this.seriesLabels.chart)||void 0===a?void 0:a.report)||void 0===o?void 0:o.culture)||(le.currentCulture=new le(h));let e=r;s&&(e=v.fromOADate(r));var u=this.seriesLabels.stimulsoft().as(te.d.StiPieSeriesLabels),d=this.seriesLabels.stimulsoft().as(te.d.StiAxisSeriesLabels);if(!(null==this.seriesLabels.formatService||null!=u&&u.showInPercent||null!=d&&d.showInPercent))return this.seriesLabels.formatService.format(e);let i=null;if(null!=t&&(i=t.format),null!=i&&0!=i.trim().length||(i=this.seriesLabels.format),null!=i&&0!=i.trim().length){if(i.stimulsoft().startsWith("P")&&null!=this.seriesLabels.chart&&!te.d.StiChartOptions.oldChartPercentMode){let e=0,t;try{1<i.length&&(e=i.stimulsoft().remove(0,1).stimulsoft().toNumber()),t=this.recalcValue(r,e)}catch(e){J.System.StiError.showError(e,!1),t=this.recalcValue(r,2)}return Z.format("{0:N"+e.toString()+"}{1}",t,"%")}var m=Z.format("{0:"+i+"}",e);if(!s&&m==i)return e.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);return m}Z.isNullOrEmpty(h)||(le.currentCulture=this.storedCulture)}catch(e){J.System.StiError.showError(e,!1)}return this.recalcValue(r,2).toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)}getFormattedValue(e,t){if(null==t)return"";return this.getFormatted(e,t,e.core.isDateTimeValues)}getStringFormatGeom(e){let t=e.getGenericStringFormat();return t.trimming=et.None,this.seriesLabels.wordWrap||(t.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap),t}};te.d.StiSeriesLabelsCoreXF=e}te.d.StiNoneLabelsCoreXF=class extends te.d.StiSeriesLabelsCoreXF{get seriesLabelsType(){return te.d.StiSeriesLabelsType.All}get position(){return te.d.StiSeriesLabelsPosition.None}get localizedName(){return N.get("Chart","LabelsNone")}constructor(e){super(e)}},te.d.StiAxisSeriesLabelsCoreXF=class extends te.d.StiSeriesLabelsCoreXF{constructor(e){super(e),this.currentIndex=null}renderLabel(e,t,i,r,s,n,l,a,o,h,u,d,m=null){return null}renderLabel2(e,t,i,r,s,n,l,a,o,h,u,d,m,c=null){return null}recalcValue(t,i){if(this.seriesLabels.showInPercent&&this.seriesLabels.chart.area.is(te.d.StiFullStackedColumnArea)&&null!=this.currentIndex){var r=this.seriesLabels.chart.area.core.getSeries(),s;let e=0;for(s of r)this.currentIndex<s.values.length&&(e+=s.values[this.currentIndex]);if(0!=e)return M.round2(100*t/e,i)}return t}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Axis}},te.d.StiCenterAxisLabelsCoreXF=class extends te.d.StiAxisSeriesLabelsCoreXF{renderLabel(e,t,i,r,s,n,l,a,o,h,u,d,m=null){return this.currentIndex=s,this.renderLabel2(e,t,i,r,s,n,l,a,o,0,h,u,d,m)}renderLabel2(e,t,i,r,s,n,l,a,o,h,u,d,m,c=null){if(null==n&&!this.seriesLabels.showNulls)return null;if(0==n&&!this.seriesLabels.showZeros)return null;null==n&&(n=0);var S=this.getLabelText2(e,l=null==l?0:l,a,o,e.coreTitle,h,!1),g=this.getLabelColor(e,u,d),l=this.getBorderColor(e,u,d),a=this.getStringFormatGeom(t),o=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*t.options.zoom),h=e.core.getSeriesBorderColor(u,d),u=e.core.getSeriesBrush(u,d),d=this.processSeriesColors(s,this.seriesLabels.brush,e),i=this.getLabelRect(t,i,r,n,S,!0,o,a);let p=null!=c?c.stimulsoft().as(yt):null;return null!=p&&(p.labelRect=this.getLabelRect(t,p.pointFrom,r,p.valueFrom,p.valueFrom.toString(),!0,o,a)),new te.d.StiCenterAxisLabelsGeom(this.seriesLabels,e,s,n,i,S,g,l,u,d,h,o,c)}getLabelRect(e,t,i,r,s,n,l,a){return this.seriesLabels.chart.area.core.seriesOrientation==te.d.StiChartSeriesOrientation.Vertical?e.measureRotatedString3(s,l,new ee(t.x,(t.y+i.y)/2),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee((t.x+i.x)/2,t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom))}get position(){return te.d.StiSeriesLabelsPosition.CenterAxis}get localizedName(){return N.get("Chart","LabelsCenter")}constructor(e){super(e)}},te.d.StiInsideBaseAxisLabelsCoreXF=class extends te.d.StiCenterAxisLabelsCoreXF{get localizedName(){return N.get("Chart","LabelsInsideBase")}get position(){return te.d.StiSeriesLabelsPosition.InsideBaseAxis}getLabelRect(e,t,i,r,s,n,l,a){var o=e.measureString(s,l),h=2;return this.seriesLabels.chart.area.core.seriesOrientation==te.d.StiChartSeriesOrientation.Vertical?0<r?e.measureRotatedString3(s,l,new ee(t.x,i.y-(Math.abs(o.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(t.x,i.y+(Math.abs(o.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):0<r?e.measureRotatedString3(s,l,new ee(i.x-(Math.abs(o.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.cos(this.seriesLabels.angle*Math.PI/180))),t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(i.x+(Math.abs(o.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.cos(this.seriesLabels.angle*Math.PI/180))),t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom))}constructor(e){super(e)}},te.d.StiInsideEndAxisLabelsCoreXF=class extends te.d.StiCenterAxisLabelsCoreXF{get position(){return te.d.StiSeriesLabelsPosition.InsideEndAxis}get localizedName(){return N.get("Chart","LabelsInsideEnd")}getLabelRect(e,t,i,r,s,n,l,a){var o=e.measureString(s,l),h=2;return this.seriesLabels.chart.area.core.seriesOrientation==te.d.StiChartSeriesOrientation.Vertical?0<r?e.measureRotatedString3(s,l,new ee(t.x,t.y+(Math.abs(o.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(t.x,t.y-(Math.abs(o.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):0<r?e.measureRotatedString3(s,l,new ee(t.x+(Math.abs(o.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.cos(this.seriesLabels.angle*Math.PI/180))),t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(t.x-(Math.abs(o.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.cos(this.seriesLabels.angle*Math.PI/180))),t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom))}constructor(e){super(e)}},te.d.StiLeftAxisLabelsCoreXF=class extends te.d.StiCenterAxisLabelsCoreXF{get localizedName(){return N.get("PropertyMain","Left")}get position(){return te.d.StiSeriesLabelsPosition.Left}getLabelRect(e,t,i,r,s,n,l,a){let o=e.measureString(s,l);return 0<this.seriesLabels.width?o.width=this.seriesLabels.width*e.options.zoom:o.width+=2*e.options.zoom,this.seriesLabels.chart.area.reverseHor?e.measureRotatedString3(s,l,new ee(t.x+o.width,t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(t.x-o.width,t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom))}constructor(e){super(e)}},te.d.StiOutsideAxisLabelsCoreXF=class extends te.d.StiAxisSeriesLabelsCoreXF{renderLabel(e,t,i,r,s,n,l,a,o,h,u,d){var m=this.seriesLabels;if(null==n&&!m.showNulls)return null;if(0==n&&!m.showZeros)return null;null==n&&(n=0);var c=this.getLabelText(e,l=null==l?0:l,a,o,e.coreTitle);let S=90;this.seriesLabels.chart.area.is(te.d.IStiStackedBarArea)?(n<=0&&(S=-S),S+=90):n<0&&(S=-S),S*=Math.PI/180;var g=new ee(i.x+m.lineLength*Math.cos(S)*t.options.zoom,i.y-m.lineLength*Math.sin(S)*t.options.zoom),l=it.changeFontSize(m.font,m.font.size*t.options.zoom),a=this.getStringFormatGeom(t),o=t.measureString2(c,l,this.seriesLabels.width*t.options.zoom,a),m=new ne(g.x-o.width/2,g.y-o.height/2,o.width+1,o.height+1),t=this.getLabelColor(e,h,u),a=this.getBorderColor(e,h,u),o=e.core.getSeriesBorderColor(h,u),u=e.core.getSeriesBrush(h,u),u=this.processSeriesColors(s,u,e);return new te.d.StiOutsideAxisLabelsGeom(this.seriesLabels,e,s,n,m,c,t,a,u,o,l,g,i,null)}get position(){return te.d.StiSeriesLabelsPosition.OutsideAxis}get localizedName(){return N.get("Chart","LabelsOutside")}constructor(e){super(e)}},te.d.StiOutsideBaseAxisLabelsCoreXF=class extends te.d.StiCenterAxisLabelsCoreXF{get localizedName(){return N.get("Chart","LabelsOutsideBase")}get position(){return te.d.StiSeriesLabelsPosition.OutsideBaseAxis}getLabelRect(e,t,i,r,s,n,l,a){var o=e.measureString(s,l),h=2;return this.seriesLabels.chart.area.core.seriesOrientation==te.d.StiChartSeriesOrientation.Vertical?0<r?e.measureRotatedString3(s,l,new ee(t.x,i.y+(Math.abs(o.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(t.x,i.y-(Math.abs(o.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):0<r?e.measureRotatedString3(s,l,new ee(i.x+(Math.abs(o.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.cos(this.seriesLabels.angle*Math.PI/180))),t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(i.x-(Math.abs(o.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.cos(this.seriesLabels.angle*Math.PI/180))),t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom))}constructor(e){super(e)}},te.d.StiOutsideEndAxisLabelsCoreXF=class extends te.d.StiCenterAxisLabelsCoreXF{get localizedName(){return N.get("Chart","LabelsOutsideEnd")}get position(){return te.d.StiSeriesLabelsPosition.OutsideEndAxis}getLabelRect(e,t,i,r,s,n,l,a){var o=e.measureString(s,l),h=2;return this.seriesLabels.chart.area.core.seriesOrientation==te.d.StiChartSeriesOrientation.Vertical?0<=r?e.measureRotatedString3(s,l,new ee(t.x,t.y-(Math.abs(o.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(t.x,t.y+(Math.abs(o.height*Math.cos(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.sin(this.seriesLabels.angle*Math.PI/180)))),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):0<r?e.measureRotatedString3(s,l,new ee(t.x-(Math.abs(o.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.cos(this.seriesLabels.angle*Math.PI/180))),t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(t.x+(Math.abs(o.height*Math.sin(this.seriesLabels.angle*Math.PI/180))+Math.abs((o.width/2+h)*Math.cos(this.seriesLabels.angle*Math.PI/180))),t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom))}constructor(e){super(e)}},te.d.StiRightAxisLabelsCoreXF=class extends te.d.StiCenterAxisLabelsCoreXF{get localizedName(){return N.get("PropertyMain","Right")}get position(){return te.d.StiSeriesLabelsPosition.Right}getLabelRect(e,t,i,r,s,n,l,a){let o=e.measureString(s,l);return 0<this.seriesLabels.width?o.width=this.seriesLabels.width*e.options.zoom:o.width+=2*e.options.zoom,this.seriesLabels.chart.area.reverseHor?e.measureRotatedString3(s,l,new ee(t.x-o.width,t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom)):e.measureRotatedString3(s,l,new ee(t.x+o.width,t.y),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom))}constructor(e){super(e)}},te.d.StiValueAxisLabelsCoreXF=class extends te.d.StiCenterAxisLabelsCoreXF{get localizedName(){return N.get("PropertyMain","Value")}get position(){return te.d.StiSeriesLabelsPosition.Value}getLabelRect(e,t,i,r,s,n,l,a){var e=e.measureRotatedString3(s,l,new ee(0,0),a,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom));return new ne(t.x-e.width/2,t.y-e.height/2,e.width,e.height)}constructor(e){super(e)}},te.d.StiFunnelSeriesLabelsCoreXF=class extends te.d.StiSeriesLabelsCoreXF{renderLabel(e,t,i,r,s,n,l,a,o,h,u,d,m,c){return null}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Funnel}constructor(e){super(e)}},te.d.StiCenterFunnelLabelsCoreXF=class extends te.d.StiFunnelSeriesLabelsCoreXF{renderLabel(e,t,i,r,s,n,l,a,o,h,u,d,m,c){var S=h.clone(),g=this.getLabelText(e,r,n,l,e.coreTitle),p=new se(this.getLabelColor(e,a,o)),f=this.getBorderColor(e,a,o),w=this.getStringFormatGeom(t),n=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*t.options.zoom),l=e.core.getSeriesBorderColor(a,o),o=e.core.getSeriesBrush(a,o);let x;x=e.is(te.d.StiFunnelWeightedSlicesSeries)?new ee(h.width/2,.05*h.height+u*this.getSumLastValues(e,i)+u*r/2):new ee(h.width/2,u*i+u/2+.05*h.height);var t=t.measureRotatedString3(g,n,x,w,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*t.options.zoom));return c.ref=S,new te.d.StiCenterFunnelLabelsGeom(this.seriesLabels,e,i,r,t,g,o,p,f,l,t,null)}getSumLastValues(e,t){let i=new P;for(var r of e.chart.series.list){var s=r.stimulsoft().as(te.d.IStiFunnelSeries),n;for(n of s.values){if(!s.showZeros&&0==n)continue;i.push(n)}}let l=0;for(let e=0;e<t;e++){if(e>=i.length)break;l+=Math.abs(i[e])}return l}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Funnel}get position(){return te.d.StiSeriesLabelsPosition.CenterFunnel}get localizedName(){return N.get("Chart","LabelsCenter")}constructor(e){super(e)}},te.d.StiOutsideLeftFunnelLabelsCoreXF=class extends te.d.StiFunnelSeriesLabelsCoreXF{renderLabel(e,t,i,r,s,n,l,a,o,h,u,d,m,c){let S=h.clone();var g=this.getLabelText(e,r,n,l,e.coreTitle),p=new se(this.getLabelColor(e,a,o)),f=this.getBorderColor(e,a,o),w=this.getStringFormatGeom(t),n=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*t.options.zoom),l=e.core.getSeriesBorderColor(a,o),a=e.core.getSeriesBrush(a,o),o=t.measureRotatedString3(g,n,new ee(0,0),w,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*t.options.zoom));S.width-=o.width,S.x+=o.width;var d=new ee(m-(r+s)*d/4,u*i+u/2+.05*h.height),h=new ee(.05*h.width+o.width,u*i+u/2+.05*h.height),t=t.measureRotatedString3(g,n,h,w,rt.RightCenter,0,M.trunc(this.seriesLabels.width*t.options.zoom));return c.ref=S,new te.d.StiOutsideFunnelLabelsGeom(this.seriesLabels,e,i,r,t,g,a,p,f,l,t,d,h)}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Funnel}get position(){return te.d.StiSeriesLabelsPosition.OutsideLeftFunnel}get localizedName(){return N.get("PropertyMain","Left")}constructor(e){super(e)}},te.d.StiOutsideRightFunnelLabelsCoreXF=class extends te.d.StiFunnelSeriesLabelsCoreXF{renderLabel(e,t,i,r,s,n,l,a,o,h,u,d,m,c){let S=h.clone();var g=this.getLabelText(e,r,n,l,e.coreTitle),p=new se(this.getLabelColor(e,a,o)),f=this.getBorderColor(e,a,o),w=this.getStringFormatGeom(t),n=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*t.options.zoom),l=e.core.getSeriesBorderColor(a,o),a=e.core.getSeriesBrush(a,o),o=t.measureRotatedString3(g,n,new ee(0,0),w,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*t.options.zoom));S.width-=o.width+5;var d=new ee(m+(r+s)*d/4,u*i+u/2+.05*h.height),h=new ee(.95*h.width-o.width,u*i+u/2+.05*h.height),t=t.measureRotatedString3(g,n,h,w,rt.LeftCenter,0,M.trunc(this.seriesLabels.width*t.options.zoom));return c.ref=S,new te.d.StiOutsideFunnelLabelsGeom(this.seriesLabels,e,i,r,t,g,a,p,f,l,t,d,h)}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Funnel}get position(){return te.d.StiSeriesLabelsPosition.OutsideRightFunnel}get localizedName(){return N.get("PropertyMain","Right")}constructor(e){super(e)}},te.d.StiCenterPie3dLabelsCoreXF=class extends te.d.StiSeriesLabelsCoreXF{constructor(e){super(e),this.percentPerValue=0}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Pie}get position(){return te.d.StiSeriesLabelsPosition.CenterPie3d}get localizedName(){return"3D "+N.get("Chart","LabelsCenter")}renderLabel2(e,t,i){var r=this.getLabelText(e,i.value,i.argumentText,i.tag,e.coreTitle),s=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*t.options.zoom),n=this.getStringFormatGeom(t);let l=this.getLabelRect(t,i.textPosition,r,s,n),a=l.clone();a.x=-a.width/2,a.y=-a.height/2;var o=this.getBorderColor(e,i.colorIndex,i.colorCount),h=e.core.getSeriesBorderColor(i.colorIndex,i.colorCount),t=e.core.getSeriesBrush(i.colorIndex,i.colorCount),s=new se(this.getLabelColor(e,i.colorIndex,i.colorCount)),t=this.processSeriesColors(i.index,t,e),n=this.processSeriesColors(i.index,this.seriesLabels.brush,e);return new te.d.StiCenterPieLabelsGeom(this.seriesLabels,e,i.index,i.value,a,r,t,s,n,o,h,rt.CenterCenter,l,this.seriesLabels.angle,null)}getLabelRect(e,t,i,r,s){return e.measureRotatedString3(i,r,t,s,rt.CenterCenter,0,this.seriesLabels.width*e.options.zoom)}recalcValue(e,i){if(this.seriesLabels.showInPercent){let t=this.seriesLabels.chart.area.core.getSeries();if(0<t.length){let e=[];t.stimulsoft().copyTo(e),0<e.length&&e[0].is(te.d.StiPieSeries)&&(this.percentPerValue=e[0].core.getPercentPerValue(e))}return M.round2(e*this.percentPerValue,i)}return e}},te.d.StiPieSeriesLabelsCoreXF=class extends te.d.StiSeriesLabelsCoreXF{constructor(e){super(e),this.percentPerValue=0}renderLabel(e,t,i,r,s,n,l,a,o,h,u,d,m,c,S,g,p,f){return null}recalcValue(e,i){if(this.seriesLabels.showInPercent){let t=this.seriesLabels.chart.area.core.getSeries();if(0<t.length){let e=[];t.stimulsoft().copyTo(e),0<e.length&&e[0].is(te.d.StiPieSeries)&&(this.percentPerValue=e[0].core.getPercentPerValue(e))}return M.round2(e*this.percentPerValue,i)}return e}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Pie}},te.d.StiCenterPieLabelsCoreXF=class extends te.d.StiPieSeriesLabelsCoreXF{renderLabel(t,i,r,s,n,l,a,o,e,h,u,d,m,c,S,g,p,f){let w=ne.empty;if(g.ref=w,this.percentPerValue=S,null==e&&!this.seriesLabels.showNulls)return null;if(0==e&&!this.seriesLabels.showZeros)return null;if(null==o&&(o=0),null==e&&(e=0),isNaN(s)||isNaN(n))return null;let x="";x=p?this.getFormattedValue(t,e):this.getLabelText(t,e,h,u,t.coreTitle);var h=Math.PI*l/180;let C=this.getLabelPoint(r,(s-n)/1.75+n,h);p||(this.is(te.d.StiOutsidePieLabelsCoreXF)&&(C=this.getLabelPoint(r,s+this.seriesLabels.lineLength*i.options.zoom,h)),this.is(te.d.StiInsideEndPieLabelsCoreXF)&&(C=this.getLabelPoint(r,(s-n)/1.2+n,h)));var u=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*i.options.zoom),p=this.getStringFormatGeom(i);let y=this.getLabelRect(i,C,x,u,p),b=this.seriesLabels.angle,A=rt.CenterCenter,v=y.clone();if(v.x=-v.width/2,v.y=-v.height/2,this.seriesLabels.autoRotate&&(b=l,0<b&&b<90||270<b?(this.seriesLabels.is(te.d.IStiOutsidePieLabels)&&(A=rt.LeftCenter),v.x=0):(this.seriesLabels.is(te.d.IStiOutsidePieLabels)&&(A=rt.RightCenter),b+=180,v.x=-v.width)),this.is(te.d.StiOutsidePieLabelsCoreXF)?this.seriesLabels.autoRotate||(337.5<l||l<22.5?(v.x=0,v.y=-v.height/2,A=rt.LeftCenter):22.5<=l&&l<67.5?(v.x=0,v.y=0,A=rt.LeftTop):67.5<=l&&l<112.5?(v.x=-v.width/2,v.y=0,A=rt.CenterTop):112.5<=l&&l<157.5?(v.x=-v.width,v.y=0,A=rt.RightTop):157.5<=l&&l<202.5?(v.x=-v.width,v.y=-v.height/2,A=rt.RightCenter):202.5<=l&&l<247.5?(v.x=-v.width,v.y=-v.height,A=rt.RightBottom):247.5<=l&&l<292.5?(v.x=-v.width/2,v.y=-v.height,A=rt.CenterBottom):292.5<=l&&(v.x=0,v.y=-v.height,A=rt.LeftBottom)):(v.x=-v.width/2,v.y=-v.height/2),d)return w=i.measureRotatedString2(x,u,y,p,A,b),g.ref=w,null;var n=this.getBorderColor(t,m,c),l=t.core.getSeriesBorderColor(m,c),d=t.core.getSeriesBrush(m,c),u=new se(this.getLabelColor(t,m,c)),d=this.processSeriesColors(a,d,t),p=this.processSeriesColors(a,this.seriesLabels.brush,t);if(w=ne.empty,this.seriesLabels.is(te.d.IStiOutsidePieLabels)){let e=this.as(te.d.StiOutsidePieLabelsCoreXF);var c=e.getLineColor(t,m,c);C=this.getLabelPoint(r,s+e.seriesLabels.lineLength*i.options.zoom,h);var h=this.getLabelPoint(r,s,h);return g.ref=w,new te.d.StiOutsidePieLabelsGeom(this.seriesLabels,t,a,o,v,x,d,u,p,n,l,A,y,b,c,C,h)}return g.ref=w,new te.d.StiCenterPieLabelsGeom(this.seriesLabels,t,a,o,v,x,d,u,p,n,l,A,y,b,null)}getLabelPoint(e,t,i){return new ee(e.x+Math.cos(i)*t,e.y+Math.sin(i)*t)}getLabelRect(e,t,i,r,s){return e.measureRotatedString3(i,r,t,s,rt.CenterCenter,0,M.trunc(this.seriesLabels.width*e.options.zoom))}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Pie}get position(){return te.d.StiSeriesLabelsPosition.CenterPie}get localizedName(){return N.get("Chart","LabelsCenter")}constructor(e){super(e)}},te.d.StiInsideEndPieLabelsCoreXF=class extends te.d.StiCenterPieLabelsCoreXF{get localizedName(){return N.get("Chart","LabelsInsideEnd")}get position(){return te.d.StiSeriesLabelsPosition.InsideEndPie}constructor(e){super(e)}},te.d.StiOutsidePieLabelsCoreXF=class extends te.d.StiCenterPieLabelsCoreXF{applyStyle(e){super.applyStyle(e),this.seriesLabels.allowApplyStyle&&(this.seriesLabels.lineColor=e.core.seriesLabelsLineColor)}get position(){return te.d.StiSeriesLabelsPosition.OutsidePie}get localizedName(){return N.get("Chart","LabelsOutside")}getLineColor(e,t,i){if(this.seriesLabels.useSeriesColor)return this.getSeriesLabelColor(e,t,i);return this.seriesLabels.lineColor}constructor(e){super(e)}},te.d.StiTwoColumnsPieLabelsCoreXF=class extends te.d.StiOutsidePieLabelsCoreXF{renderLabel(e,t,i,r,s,n,l,a,o,h,u,d,m,c,S,g,p,f){this.percentPerValue=S;let w=ne.empty;if(null==o&&!this.seriesLabels.showNulls)return null;if(0==o&&!this.seriesLabels.showZeros)return null;if(null==a&&(a=0),null==o&&(o=0),isNaN(r)||isNaN(s))return null;if(p)return g.ref=w,super.renderLabel(e,t,i,r,s,n,l,a,o,this.getFormattedValue(e,o),u,d,m,c,S,g,p,f);var h=this.getLabelText(e,o,h,u,e.coreTitle),u=Math.PI*n/180,n=this.getLabelPoint(i,r,u),u=this.getLabelPoint(i,r+this.seriesLabels.lineLength*t.options.zoom,u);let x=0;x=n.x>u.x?-1:1;let C=new ee(i.x+r*x+this.seriesLabels.lineLength*x+10*x,u.y);this.seriesLabels.preventIntersection&&(C.y=n.y),C.y+=f*Math.min(t.options.zoom,1);var r=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*t.options.zoom);let y=this.seriesLabels.core.getStringFormatGeom(t);y.alignment=F.Center,y.lineAlignment=F.Center;var f=this.getLabelRect(t,C,h,r,y);let b=ne.empty;if(b=x<0?new ne(C.x-f.width,C.y-f.height/2,f.width,f.height):new ne(C.x,C.y-f.height/2,f.width,f.height),d)return w=b,g.ref=w,null;w=ne.empty;var t=this.getBorderColor(e,m,c),r=e.core.getSeriesBorderColor(m,c),f=e.core.getSeriesBrush(m,c),f=this.processSeriesColors(l,f,e),d=new se(this.getLabelColor(e,m,c)),m=this.getLineColor(e,m,c),c=this.processSeriesColors(l,this.seriesLabels.brush,e);return g.ref=w,new te.d.StiTwoColumnsPieLabelsGeom(this.seriesLabels,e,l,a,b,h,f,d,c,t,r,b,m,u,C,n,i,null)}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Pie|te.d.StiSeriesLabelsType.Doughnut}get position(){return te.d.StiSeriesLabelsPosition.TwoColumnsPie}get localizedName(){return N.get("Chart","LabelsTwoColumns")}constructor(e){super(e)}},te.d.StiCenterTreemapLabelsCoreXF=class extends te.d.StiSeriesLabelsCoreXF{renderLabel(e,t,i,r,s,n,l,a,o,h=null){var u=this.getLabelText(e,r,s,n,e.coreTitle),d=this.getLabelColor(e,l,a),m=this.getBorderColor(e,l,a),c=this.getStringFormatGeom(t),s=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size*t.options.zoom),n=e.core.getSeriesBorderColor(l,a),l=e.core.getSeriesBrush(l,a),a=this.processSeriesColors(i,this.seriesLabels.brush,e),c=this.getLabelRect(t,o,r,u,!0,s,c);return new te.d.StiCenterTreemapLabelsGeom(this.seriesLabels,e,i,r,c,u,d,m,l,a,n,s,h)}getLabelRect(e,t,i,r,s,n,l){return e.measureRotatedString3(r,n,new ee(t.x+t.width/2,t.y+t.height/2),l,rt.CenterCenter,0,this.seriesLabels.width*e.options.zoom)}get position(){return te.d.StiSeriesLabelsPosition.CenterTreemap}get localizedName(){return N.get("Chart","LabelsCenter")}get seriesLabelsType(){return te.d.StiSeriesLabelsType.Treemap}constructor(e){super(e)}};{let e=class{constructor(e){this.strips=e}implements(){return e.implementsStiStripsCoreXF||(e.implementsStiStripsCoreXF=[te.d.IStiApplyStyle,p,te.d.IStiStripsCoreXF]),e.implementsStiStripsCoreXF}clone(){return this.stimulsoft().memberwiseClone()}applyStyle(e){this.strips.allowApplyStyle&&(this.strips.titleColor=e.core.styleColors[e.core.styleColors.length-1],this.strips.stripBrush=new se(re.fromArgb(150,e.core.styleColors[e.core.styleColors.length-1])))}renderXStrips(e,t,i){var r=this.strips.chart.area,r;if(null==r)return;let s=this.calculateXValue(this.strips.minValue,r,i),n=this.calculateXValue(this.strips.maxValue,r,i);s>n&&(r=s,s=n,n=r);var i=new ne(s,0,n-s,i.height),i=new te.d.StiStripsXGeom(this.strips,i);t.createChildGeoms(),t.childGeoms.push(i)}calculateXValue(e,t,i){let r;try{r=e.stimulsoft().toNumber()}catch(e){J.System.StiError.showError(e,!1),r=0}let s=0;var n,l,e,n,e,n;return s=t.xAxis.logarithmicScale&&0<t.xAxis.info.stripLines.count?(n=t.xAxis.info.stripLines.count,l=t.reverseHor?n-1:0,e=t.reverseHor?0:n-1,n=t.xAxis.info.stripLines.getByIndex(l).value,e=t.xAxis.info.stripLines.getByIndex(e).value,n=Math.abs(i.width/(M.log10(e)-M.log10(n))),Math.abs(M.log10(r)*n-M.log10(t.xAxis.info.stripLines.getByIndex(l).value)*n)):t.axisCore.getDividerX()+r*t.xAxis.info.dpi,s}renderYStrips(e,t,i){var r=this.strips.chart.area,r;if(null==r)return;let s=this.calculateYValue(this.strips.minValue,r,i),n=this.calculateYValue(this.strips.maxValue,r,i);s>n&&(r=s,s=n,n=r);var i=new ne(0,s,i.width,n-s),i=new te.d.StiStripsYGeom(this.strips,i);t.createChildGeoms(),t.childGeoms.push(i)}calculateYValue(e,t,i){let r;try{r=e.stimulsoft().toNumber()}catch(e){J.System.StiError.showError(e,!1),r=0}let s=0;var n,l,a,e,a,e;return s=t.yAxis.logarithmicScale?(a=t.yAxis.info.stripLines.count-1,e=t.yAxis.info.stripLines.getByIndex(l=0).value,a=t.yAxis.info.stripLines.getByIndex(a).value,e=Math.abs(i.height/(M.log10(a)-M.log10(e))),Math.abs(M.log10(t.yAxis.info.stripLines.getByIndex(l).value)*e-M.log10(r)*e)):this.strips.orientation==te.d.StiStrips_StiOrientation.Horizontal?t.axisCore.getDividerY()-r*t.yAxis.info.dpi:t.axisCore.getDividerRightY()-r*t.yRightAxis.info.dpi,s}render(e,t,i){if(!this.strips.visible)return;this.strips.orientation==te.d.StiStrips_StiOrientation.Vertical&&this.renderXStrips(e,t,i),this.strips.orientation!=te.d.StiStrips_StiOrientation.Horizontal&&this.strips.orientation!=te.d.StiStrips_StiOrientation.HorizontalRight||this.renderYStrips(e,t,i)}};te.d.StiStripsCoreXF=e}{let e=class{constructor(){this._markerVisible=!0}implements(){return e.implementsStiStyleCoreXF||(e.implementsStiStyleCoreXF=[te.d.IStiStyleCoreXF]),e.implementsStiStyleCoreXF}get localizedName(){return null}get styleId(){return te.d.StiChartStyleId.StiStyle01}get chartBrush(){return new se(qe.light(this.basicStyleColor,100))}get chartAreaBrush(){return new de(qe.light(this.basicStyleColor,80),qe.light(this.basicStyleColor,40),90)}get chartAreaBorderColor(){return qe.dark(this.basicStyleColor,150)}get chartAreaShowShadow(){return!1}get seriesLabelsBrush(){return new se(this.basicStyleColor)}get seriesLabelsColor(){return qe.dark(this.basicStyleColor,150)}get seriesLabelsBorderColor(){return qe.dark(this.basicStyleColor,150)}get seriesLabelsLineColor(){return qe.dark(this.basicStyleColor,150)}get seriesLabelsFont(){return new B("Arial",7)}get trendLineColor(){return qe.dark(this.basicStyleColor,150)}get trendLineShowShadow(){return!1}get legendBrush(){return new de(qe.light(this.basicStyleColor,80),qe.light(this.basicStyleColor,20),90)}get legendLabelsColor(){return qe.dark(this.basicStyleColor,150)}get legendBorderColor(){return qe.dark(this.basicStyleColor,150)}get legendTitleColor(){return qe.dark(this.basicStyleColor,150)}get legendShowShadow(){return!1}get legendFont(){return new B("Arial",8)}get axisTitleColor(){return qe.dark(this.basicStyleColor,150)}get axisLineColor(){return qe.dark(this.basicStyleColor,150)}get axisLabelsColor(){return qe.dark(this.basicStyleColor,150)}get interlacingHorBrush(){return new se(re.fromArgb(10,qe.dark(this.basicStyleColor,100)))}get interlacingVertBrush(){return new se(re.fromArgb(10,qe.dark(this.basicStyleColor,100)))}get gridLinesHorColor(){return re.fromArgb(100,qe.dark(this.basicStyleColor,150))}get gridLinesVertColor(){return re.fromArgb(100,qe.dark(this.basicStyleColor,150))}get seriesLighting(){return!0}get seriesShowShadow(){return!1}get seriesShowBorder(){return!0}get seriesBorderThickness(){return 1}get markerVisible(){return this._markerVisible}set markerVisible(e){this._markerVisible=e}get firstStyleColor(){return this.styleColors[0]}get lastStyleColor(){return this.styleColors[this.styleColors.length-1]}get styleColors(){return null}get basicStyleColor(){return null}fillColumn(e,t,i,r){e.fillRectangle2(i,t.x,t.y,t.width,t.height,r)}getAreaBrush(e){return new se(re.fromArgb(200,e))}getColumnBrush(e){return new de(e,qe.dark(e,50),0)}getColumnBorder(e){if(!this.seriesShowBorder)return re.transparent;return qe.dark(e,100)}getColors(t,e){let i=ie.create(re,t);var r=null!=e?e:this.styleColors,s,n,l,a,s;let o=0,h=0;for(let e=0;e<t;e++){0==r.length||r.length<o?i[e]=re.fromArgb(255,112,173,71):0!=h?(s=r[o],n=Math.min(s.a+h,255),l=Math.min(s.r+h,255),a=Math.min(s.g+h,255),s=Math.min(s.b+h,255),i[e]=re.fromArgb(n,l,a,s)):i[e]=r[o],o++,o==r.length&&(o=0,h=50)}return i}getColorByIndex(e,t,i){return this.getColors(t,i)[e]}getColorBySeries(e,t){return this.getColors(e.chart.series.count,t)[e.chart.series.indexOf(e)]}};te.d.StiStyleCoreXF=e}te.d.StiStyleCoreXF01=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,194,117,53),re.fromArgb(255,231,140,65),re.fromArgb(255,248,170,121),re.fromArgb(255,250,203,180),re.fromArgb(255,253,230,220)]}get localizedName(){return N.get("Chart","Style")+"01"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.wheat}get styleId(){return te.d.StiChartStyleId.StiStyle01}getColumnBrush(e){return new me(qe.dark(e,50),e,0)}},te.d.StiCustomStyleCoreXF=class extends te.d.StiStyleCoreXF01{constructor(e){super(),this._base=new te.d.StiStyleCoreXF01,this.reportChartStyle=null,this.reportStyleName=null,this._customStyle=e}get localizedName(){return"CustomStyle"}get chartBrush(){if(null!=this.reportStyle)return this.reportStyle.brush;return this._base.chartBrush}get chartAreaBrush(){if(null!=this.reportStyle)return this.reportStyle.chartAreaBrush;return this._base.chartAreaBrush}get chartAreaBorderColor(){if(null!=this.reportStyle)return this.reportStyle.chartAreaBorderColor;return this._base.chartAreaBorderColor}get chartAreaShowShadow(){if(null!=this.reportStyle)return this.reportStyle.chartAreaShowShadow;return this._base.chartAreaShowShadow}get seriesLighting(){if(null!=this.reportStyle)return this.reportStyle.seriesLighting;return this._base.seriesLighting}get seriesShowShadow(){if(null!=this.reportStyle)return this.reportStyle.seriesShowShadow;return this._base.seriesShowShadow}get seriesShowBorder(){if(null!=this.reportStyle)return this.reportStyle.seriesShowBorder;return this._base.seriesShowBorder}get seriesLabelsBrush(){if(null!=this.reportStyle)return this.reportStyle.seriesLabelsBrush;return this._base.seriesLabelsBrush}get seriesLabelsColor(){if(null!=this.reportStyle)return this.reportStyle.seriesLabelsColor;return this._base.seriesLabelsColor}get seriesLabelsBorderColor(){if(null!=this.reportStyle)return this.reportStyle.seriesLabelsBorderColor;return this._base.seriesLabelsBorderColor}get seriesLabelsLineColor(){if(null!=this.reportStyle)return this.reportStyle.seriesLabelsLineColor;return this._base.seriesLabelsLineColor}get seriesBorderThickness(){if(null!=this.reportStyle)return this.reportStyle.seriesBorderThickness;return this._base.seriesBorderThickness}get trendLineColor(){if(null!=this.reportStyle)return this.reportStyle.trendLineColor;return this._base.trendLineColor}get trendLineShowShadow(){if(null!=this.reportStyle)return this.reportStyle.trendLineShowShadow;return this._base.trendLineShowShadow}get legendBrush(){if(null!=this.reportStyle)return this.reportStyle.legendBrush;return this._base.legendBrush}get legendLabelsColor(){if(null!=this.reportStyle)return this.reportStyle.legendLabelsColor;return this._base.legendLabelsColor}get legendBorderColor(){if(null!=this.reportStyle)return this.reportStyle.legendBorderColor;return this._base.legendBorderColor}get legendTitleColor(){if(null!=this.reportStyle)return this.reportStyle.legendTitleColor;return this._base.legendTitleColor}get markerVisible(){if(null!=this.reportStyle)return this.reportStyle.markerVisible;return this._base.markerVisible}set markerVisible(e){}get axisTitleColor(){if(null!=this.reportStyle)return this.reportStyle.axisTitleColor;return this._base.axisTitleColor}get axisLineColor(){if(null!=this.reportStyle)return this.reportStyle.axisLineColor;return this._base.axisLineColor}get axisLabelsColor(){if(null!=this.reportStyle)return this.reportStyle.axisLabelsColor;return this._base.axisLabelsColor}get interlacingHorBrush(){if(null!=this.reportStyle)return this.reportStyle.interlacingHorBrush;return this._base.interlacingHorBrush}get interlacingVertBrush(){if(null!=this.reportStyle)return this.reportStyle.interlacingVertBrush;return this._base.interlacingVertBrush}get gridLinesHorColor(){if(null!=this.reportStyle)return this.reportStyle.gridLinesHorColor;return this._base.gridLinesHorColor}get gridLinesVertColor(){if(null!=this.reportStyle)return this.reportStyle.gridLinesVertColor;return this._base.gridLinesVertColor}get styleColors(){if(null!=this.reportStyle)return this.reportStyle.styleColors;return this._base.styleColors}get basicStyleColor(){if(null!=this.reportStyle)return this.reportStyle.basicStyleColor;return this._base.basicStyleColor}get reportStyle(){var e=null==this.reportStyleName?this.chart.customStyleName:this.reportStyleName,t;if(null==this.chart||null==this.chart.report||null==e||0==e.length)return null;return this.chart.report.styles.getByName(e)}get customStyle(){return this._customStyle}getColumnBrush(e){if(null!=this.reportStyle)switch(this.reportStyle.brushType){case te.a.StiBrushType.Glare:return new me(qe.dark(e,50),e,0);case te.a.StiBrushType.Gradient0:return new de(qe.dark(e,50),e,0);case te.a.StiBrushType.Gradient90:return new de(qe.dark(e,50),e,90);case te.a.StiBrushType.Gradient180:return new de(qe.dark(e,50),e,180);case te.a.StiBrushType.Gradient270:return new de(qe.dark(e,50),e,270);case te.a.StiBrushType.Gradient45:return new de(qe.dark(e,50),e,45);case te.a.StiBrushType.Solid:return new se(e)}return new se(e)}},te.d.StiStyleCoreXF02=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,128,145,165),re.fromArgb(255,171,123,122),re.fromArgb(255,155,167,129),re.fromArgb(255,144,133,157),re.fromArgb(255,121,161,173),re.fromArgb(255,189,152,122),re.fromArgb(255,139,164,194),re.fromArgb(255,202,132,130),re.fromArgb(255,179,198,141),re.fromArgb(255,162,146,182)]}get localizedName(){return N.get("Chart","Style")+"02"}get basicStyleColor(){return re.whiteSmoke}get styleColors(){return this._styleColor}get styleId(){return te.d.StiChartStyleId.StiStyle02}getColumnBrush(e){return new me(e,qe.light(e,50),0)}},te.d.StiStyleCoreXF03=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,150,61,59),re.fromArgb(255,179,74,71),re.fromArgb(255,201,126,125),re.fromArgb(255,221,182,181),re.fromArgb(255,238,221,221)]}get localizedName(){return N.get("Chart","Style")+"03"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.whiteSmoke}get styleId(){return te.d.StiChartStyleId.StiStyle03}getColumnBrush(e){return new se(e)}},te.d.StiStyleCoreXF04=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,72,57,90),re.fromArgb(255,109,87,137),re.fromArgb(255,146,123,173),re.fromArgb(255,181,166,200)]}get localizedName(){return N.get("Chart","Style")+"04"}get basicStyleColor(){return re.fromArgb(255,181,166,200)}get styleColors(){return this._styleColor}get styleId(){return te.d.StiChartStyleId.StiStyle04}},te.d.StiStyleCoreXF05=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,224,169,61),re.fromArgb(255,180,181,0),re.fromArgb(255,14,152,13),re.fromArgb(255,170,72,36),re.fromArgb(255,133,221,77),re.fromArgb(255,230,199,69),re.fromArgb(255,219,100,52),re.fromArgb(255,131,190,47)]}get localizedName(){return N.get("Chart","Style")+"05"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.lemonChiffon}get styleId(){return te.d.StiChartStyleId.StiStyle05}},te.d.StiStyleCoreXF06=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,206,185,102),re.fromArgb(255,156,176,132),re.fromArgb(255,107,177,201),re.fromArgb(255,101,133,207),re.fromArgb(255,126,107,201),re.fromArgb(255,163,121,187)]}get localizedName(){return N.get("Chart","Style")+"06"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(255,202,198,206)}get styleId(){return te.d.StiChartStyleId.StiStyle06}getColumnBrush(e){return new se(e)}},te.d.StiStyleCoreXF07=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,217,251,168),re.fromArgb(255,200,181,231),re.fromArgb(255,158,232,255),re.fromArgb(255,255,189,134),re.fromArgb(255,163,195,254)]}get localizedName(){return N.get("Chart","Style")+"07"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.white}get styleId(){return te.d.StiChartStyleId.StiStyle07}getColumnBrush(e){return new de(qe.dark(e,50),qe.light(e,50),-90)}},te.d.StiStyleCoreXF08=class extends te.d.StiStyleCoreXF03{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,60,100,148),re.fromArgb(255,73,120,177),re.fromArgb(255,126,155,200),re.fromArgb(255,182,195,220),re.fromArgb(255,221,227,238)]}get localizedName(){return N.get("Chart","Style")+"08"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(238,182,195,220)}get styleId(){return te.d.StiChartStyleId.StiStyle08}getColumnBrush(e){return new se(e)}},te.d.StiStyleCoreXF09=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,79,129,189),re.fromArgb(255,192,80,77),re.fromArgb(255,155,187,89),re.fromArgb(255,128,100,162),re.fromArgb(255,75,172,198),re.fromArgb(255,247,150,70)]}get localizedName(){return N.get("Chart","Style")+"09"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(238,238,236,225)}get styleId(){return te.d.StiChartStyleId.StiStyle09}},te.d.StiStyleCoreXF10=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,121,181,176),re.fromArgb(255,180,188,76),re.fromArgb(255,183,120,81),re.fromArgb(255,119,106,91),re.fromArgb(255,182,173,118),re.fromArgb(255,149,174,177)]}get localizedName(){return N.get("Chart","Style")+"10"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(255,209,225,227)}get styleId(){return te.d.StiChartStyleId.StiStyle10}},te.d.StiStyleCoreXF11=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,204,77,92),re.fromArgb(255,255,111,97),re.fromArgb(255,255,149,62),re.fromArgb(255,248,189,82)]}get localizedName(){return N.get("Chart","Style")+"11"}get styleColors(){return this._styleColor}get basicStyleColor(){return qe.dark(re.navajoWhite,30)}get styleId(){return te.d.StiChartStyleId.StiStyle11}},te.d.StiStyleCoreXF12=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.goldenrod,re.khaki]}get localizedName(){return N.get("Chart","Style")+"12"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.moccasin}get styleId(){return te.d.StiChartStyleId.StiStyle12}},te.d.StiStyleCoreXF13=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,151,158,168),re.fromArgb(255,189,174,137),re.fromArgb(255,205,176,5),re.fromArgb(255,170,166,194),re.fromArgb(255,132,191,210),re.fromArgb(255,139,159,115)]}get localizedName(){return N.get("Chart","Style")+"13"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(255,212,210,208)}get styleId(){return te.d.StiChartStyleId.StiStyle13}},te.d.StiStyleCoreXF14=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,240,162,46),re.fromArgb(255,165,100,78),re.fromArgb(255,181,139,128),re.fromArgb(255,195,152,109),re.fromArgb(255,161,149,116),re.fromArgb(255,193,117,41)]}get localizedName(){return N.get("Chart","Style")+"14"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(255,251,238,201)}get styleId(){return te.d.StiChartStyleId.StiStyle14}},te.d.StiStyleCoreXF15=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,15,111,198),re.fromArgb(255,0,157,217),re.fromArgb(255,11,208,217),re.fromArgb(255,16,207,155),re.fromArgb(255,124,202,98),re.fromArgb(255,165,194,73)]}get localizedName(){return N.get("Chart","Style")+"15"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(255,219,245,249)}get styleId(){return te.d.StiChartStyleId.StiStyle15}},te.d.StiStyleCoreXF16=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,255,128,0),re.black,re.silver,re.red]}get localizedName(){return N.get("Chart","Style")+"16"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.white}get styleId(){return te.d.StiChartStyleId.StiStyle16}},te.d.StiStyleCoreXF17=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.white,re.black]}get localizedName(){return N.get("Chart","Style")+"17"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.white}get styleId(){return te.d.StiChartStyleId.StiStyle17}};let Bt=J.Base.Drawing.StiHatchBrush,Rt=J.System.Drawing.Drawing2D.HatchStyle;te.d.StiStyleCoreXF18=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.white,re.black,re.silver,re.red,re.green,re.blue]}get localizedName(){return N.get("Chart","Style")+"18"}fillColumn(e,t,i,r){let s=Rt.Cross;var i=i;re.white.equals(i.color)?s=Rt.BackwardDiagonal:re.black.equals(i.color)?s=Rt.DottedGrid:re.silver.equals(i.color)?s=Rt.Horizontal:re.red.equals(i.color)?s=Rt.Percent25:re.green.equals(i.color)?s=Rt.OutlinedDiamond:re.blue.equals(i.color)&&(s=Rt.ForwardDiagonal);var i=new Bt(s,re.black,re.white);e.fillRectangle2(i,t.x,t.y,t.width,t.height,r)}getColumnBrush(e){return new se(e)}get styleColors(){return this._styleColor}get basicStyleColor(){return re.white}get styleId(){return te.d.StiChartStyleId.StiStyle18}},te.d.StiStyleCoreXF19=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,242,234,221),re.fromArgb(255,240,237,232),re.fromArgb(255,232,221,203),re.fromArgb(255,225,201,173),re.fromArgb(255,216,180,140)]}get localizedName(){return N.get("Chart","Style")+"19"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(255,242,234,221)}get interlacingHorBrush(){return new se(re.fromArgb(128,240,237,232))}get interlacingVertBrush(){return new se(re.fromArgb(128,240,237,232))}get chartAreaBrush(){return new se(re.fromArgb(128,240,237,232))}get chartBrush(){return new se(re.white)}get styleId(){return te.d.StiChartStyleId.StiStyle19}getColumnBrush(e){return new se(e)}},te.d.StiStyleCoreXF20=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(255,217,187,148),re.fromArgb(255,245,190,119),re.fromArgb(255,230,189,127),re.fromArgb(255,220,217,212),re.fromArgb(255,237,229,216),re.fromArgb(255,246,233,212)]}get localizedName(){return N.get("Chart","Style")+"20"}get styleColors(){return this._styleColor}get basicStyleColor(){return re.bisque}get axisLineColor(){return qe.dark(this.basicStyleColor,50)}get chartAreaBorderColor(){return qe.dark(this.basicStyleColor,50)}get styleId(){return te.d.StiChartStyleId.StiStyle20}getColumnBrush(e){return new se(e)}},te.d.StiStyleCoreXF21=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(35,159,217),re.fromArgb(178,178,178)]}get localizedName(){return N.get("Chart","Style")+"21"}get chartBrush(){return new se(qe.light(this.basicStyleColor,100))}get chartAreaBrush(){return new se(this.basicStyleColor)}get chartAreaBorderColor(){return re.fromArgb(106,106,106)}get seriesLabelsBrush(){return new se(qe.light(this.basicStyleColor,100))}get seriesLabelsColor(){return re.fromArgb(106,106,106)}get seriesLabelsBorderColor(){return re.fromArgb(255,255,255)}get legendBrush(){return new se(qe.light(this.basicStyleColor,100))}get legendLabelsColor(){return re.fromArgb(106,106,106)}get axisTitleColor(){return re.fromArgb(106,106,106)}get axisLineColor(){return re.fromArgb(106,106,106)}get axisLabelsColor(){return re.fromArgb(106,106,106)}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(102,102,102)}get styleId(){return te.d.StiChartStyleId.StiStyle21}getColumnBrush(e){return new se(e)}getColumnBorder(e){return qe.light(e,255)}},te.d.StiStyleCoreXF22=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[re.fromArgb(91,155,213),re.fromArgb(237,125,49),re.fromArgb(159,159,159),re.fromArgb(255,192,0),re.fromArgb(68,114,196),re.fromArgb(112,173,71)]}get localizedName(){return N.get("Chart","Style")+"22"}get chartBrush(){return new se(qe.light(this.basicStyleColor,100))}get chartAreaBrush(){return new se(this.basicStyleColor)}get chartAreaBorderColor(){return re.fromArgb(171,172,173)}get seriesLabelsBrush(){return new se(qe.light(this.basicStyleColor,100))}get seriesLabelsColor(){return re.fromArgb(90,90,90)}get seriesLabelsBorderColor(){return re.fromArgb(140,140,140)}get legendBrush(){return new se(qe.light(this.basicStyleColor,100))}get legendLabelsColor(){return re.fromArgb(140,140,140)}get axisTitleColor(){return re.fromArgb(140,140,140)}get axisLineColor(){return re.fromArgb(140,140,140)}get axisLabelsColor(){return re.fromArgb(140,140,140)}get styleColors(){return this._styleColor}get basicStyleColor(){return re.fromArgb(255,255,255)}get styleId(){return te.d.StiChartStyleId.StiStyle22}getColumnBrush(e){return new se(e)}getColumnBorder(e){return qe.light(e,255)}},te.d.StiStyleCoreXF23=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[re.fromArgb(91,155,213),re.fromArgb(159,159,159),re.fromArgb(68,114,196),re.fromArgb(37,94,145),re.fromArgb(99,99,99),re.fromArgb(38,68,120)]}get localizedName(){return N.get("Chart","Style")+"23"}get styleColors(){return this._styleColor}get styleId(){return te.d.StiChartStyleId.StiStyle23}},te.d.StiStyleCoreXF24=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[re.fromArgb(237,125,49),re.fromArgb(255,192,0),re.fromArgb(112,173,71),re.fromArgb(158,72,14),re.fromArgb(153,115,0),re.fromArgb(67,104,43)]}get localizedName(){return N.get("Chart","Style")+"24"}get styleColors(){return this._styleColor}get styleId(){return te.d.StiChartStyleId.StiStyle24}get chartAreaBorderColor(){return re.transparent}get legendBorderColor(){return re.transparent}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}};let Pt=J.System.Drawing.ColorTranslator;te.d.StiStyleCoreXF25=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[Pt.fromHtml("#70ad47"),Pt.fromHtml("#4472c4"),Pt.fromHtml("#ffc000"),Pt.fromHtml("#43682b"),Pt.fromHtml("#fd6a37"),Pt.fromHtml("#997300")]}get localizedName(){return N.get("Chart","Style")+"25"}get styleColors(){return this._styleColor}get styleId(){return te.d.StiChartStyleId.StiStyle25}get chartAreaBorderColor(){return re.transparent}get legendShowShadow(){return!1}get legendBorderColor(){return re.transparent}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get seriesLabelsColor(){return Pt.fromHtml("#33475b")}get seriesLabelsFont(){return new B("Arial",10)}get seriesLighting(){return!1}get seriesShowShadow(){return!1}},te.d.StiStyleCoreXF26=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[Pt.fromHtml("#2ec6c8"),Pt.fromHtml("#b5a1dd"),Pt.fromHtml("#5ab0ee"),Pt.fromHtml("#f4984e"),Pt.fromHtml("#d77a80"),Pt.fromHtml("#d04456")]}get localizedName(){return N.get("Chart","Style")+"26"}get styleColors(){return this._styleColor}get chartAreaBorderColor(){return re.transparent}get chartAreaBrush(){return new se(Pt.fromHtml("#ffffff"))}get legendShowShadow(){return!1}get legendBorderColor(){return re.transparent}get seriesLabelsColor(){return Pt.fromHtml("#33475B")}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get seriesLabelsFont(){return new B("Arial",10)}get seriesLighting(){return!1}get seriesShowShadow(){return!1}get markerVisible(){return!1}set markerVisible(e){}get styleId(){return te.d.StiChartStyleId.StiStyle26}getColumnBorder(e){return re.transparent}},te.d.StiStyleCoreXF27=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[Pt.fromHtml("#0bac45"),Pt.fromHtml("#585257"),Pt.fromHtml("#ec334d"),Pt.fromHtml("#a1ae94"),Pt.fromHtml("#ed7d31"),Pt.fromHtml("#5ab0ee")]}get localizedName(){return N.get("Chart","Style")+"27"}get styleColors(){return this._styleColor}get chartBrush(){return new se(Pt.fromHtml("#33475b"))}get chartAreaBrush(){return new se(Pt.fromHtml("#33475b"))}get chartAreaBorderColor(){return re.transparent}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get seriesLabelsColor(){return re.white}get seriesLabelsFont(){return new B("Arial",10)}get legendBrush(){return new se(re.transparent)}get legendLabelsColor(){return re.white}get legendBorderColor(){return re.transparent}get legendTitleColor(){return re.white}get legendShowShadow(){return!1}get legendFont(){return new B("Arial",9)}get seriesLighting(){return!1}getColumnBorder(e){return re.transparent}get styleId(){return te.d.StiChartStyleId.StiStyle27}},te.d.StiStyleCoreXF28=class extends te.d.StiStyleCoreXF26{constructor(){super(...arguments),this._styleColor=[Pt.fromHtml("#165d9e"),Pt.fromHtml("#577eb6"),Pt.fromHtml("#569436"),Pt.fromHtml("#225056"),Pt.fromHtml("#d4dae0")]}get localizedName(){return N.get("Chart","Style")+"28"}get chartBrush(){return new se(Pt.fromHtml("#0a325a"))}get chartAreaBrush(){return new se(Pt.fromHtml("#0a325a"))}get chartAreaBorderColor(){return re.transparent}get axisTitleColor(){return qe.dark(this.basicStyleColor,50)}get axisLineColor(){return qe.dark(this.basicStyleColor,50)}get axisLabelsColor(){return qe.dark(this.basicStyleColor,50)}get legendBrush(){return new se(re.transparent)}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get legendBorderColor(){return re.transparent}get legendTitleColor(){return re.white}get legendShowShadow(){return!1}get legendFont(){return new B("Arial",9)}get styleId(){return te.d.StiChartStyleId.StiStyle28}},te.d.StiStyleCoreXF29=class extends te.d.StiStyleCoreXF26{constructor(){super(...arguments),this._styleColor=[Pt.fromHtml("#3498db"),Pt.fromHtml("#ef717a"),Pt.fromHtml("#6dcbb3"),Pt.fromHtml("#f28161"),Pt.fromHtml("#fccd1b")]}get localizedName(){return N.get("Chart","Style")+"29"}get styleColors(){return this._styleColor}get styleId(){return te.d.StiChartStyleId.StiStyle29}get chartAreaBorderColor(){return re.transparent}get legendShowShadow(){return!1}get legendBorderColor(){return re.transparent}get seriesLabelsColor(){return Pt.fromHtml("#323a45")}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}},te.d.StiStyleCoreXF30=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[Pt.fromHtml("#db7b46"),Pt.fromHtml("#d3d3d5"),Pt.fromHtml("#6b6e75"),Pt.fromHtml("#4a4c55")]}get localizedName(){return N.get("Chart","Style")+"30"}get styleColors(){return this._styleColor}get chartBrush(){return new se(Pt.fromHtml("#595b65"))}get chartAreaBrush(){return new se(Pt.fromHtml("#595b65"))}get chartAreaBorderColor(){return re.transparent}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get seriesLabelsColor(){return re.white}get seriesLabelsFont(){return new B("Arial",10)}get legendBrush(){return new se(re.transparent)}get legendLabelsColor(){return re.white}get legendTitleColor(){return re.white}get legendShowShadow(){return!1}get legendBorderColor(){return re.transparent}get legendFont(){return new B("Arial",8)}get seriesLighting(){return!1}getColumnBorder(e){return re.transparent}get styleId(){return te.d.StiChartStyleId.StiStyle30}},te.d.StiStyleCoreXF31=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[Pt.fromHtml("#fefef9"),Pt.fromHtml("#a8d7e2"),Pt.fromHtml("#5ea8bf"),Pt.fromHtml("#2b7f9e"),Pt.fromHtml("#1c4458")]}get localizedName(){return N.get("Chart","Style")+"31"}get styleColors(){return this._styleColor}get chartBrush(){return new se(Pt.fromHtml("#235e6d"))}get chartAreaBrush(){return new se(Pt.fromHtml("#235e6d"))}get chartAreaBorderColor(){return re.transparent}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get seriesLabelsColor(){return re.white}get seriesLabelsFont(){return new B("Arial",10)}get legendBrush(){return new se(re.transparent)}get legendLabelsColor(){return re.white}get legendTitleColor(){return re.white}get legendShowShadow(){return!1}get legendBorderColor(){return re.transparent}get legendFont(){return new B("Arial",9)}get seriesLighting(){return!1}getColumnBorder(e){return re.transparent}get styleId(){return te.d.StiChartStyleId.StiStyle31}};let Dt=J.Base.Drawing.StiColor;te.d.StiStyleCoreXF32=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[Dt.get("3a5263"),Dt.get("90a1ab"),Dt.get("c9d5dc")]}get localizedName(){return N.get("Chart","Style")+"32"}get styleColors(){return this._styleColor}get basicStyleColor(){return Dt.get("e9f4fc")}get chartBrush(){return new se(Dt.get("6d7e8b"))}get chartAreaBrush(){return new se(Dt.get("6d7e8b"))}get legendBrush(){return new se(re.transparent)}get legendLabelsColor(){return Dt.get("e9f4fc")}get legendBorderColor(){return re.transparent}get legendTitleColor(){return Dt.get("e9f4fc")}get legendShowShadow(){return!1}get legendFont(){return new B("Arial",9)}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get seriesLabelsColor(){return Dt.get("e9f4fc")}get seriesLabelsLineColor(){return Dt.get("e9f4fc")}get seriesLabelsFont(){return new B("Arial",10)}get axisTitleColor(){return Dt.get("e9f4fc")}get axisLineColor(){return Dt.get("e9f4fc")}get axisLabelsColor(){return Dt.get("e9f4fc")}get gridLinesHorColor(){return Dt.get("e9f4fc")}get gridLinesVertColor(){return Dt.get("e9f4fc")}get seriesLighting(){return!1}get styleId(){return te.d.StiChartStyleId.StiStyle32}getColumnBorder(e){return re.transparent}getColumnBrush(e){return new se(e)}},te.d.StiStyleCoreXF33=class extends te.d.StiStyleCoreXF{constructor(){super(...arguments),this._styleColor=[Dt.get("40568d"),Dt.get("4569bb"),Dt.get("e47334"),Dt.get("9d9c9c"),Dt.get("f8b92d"),Dt.get("5e93cc"),Dt.get("6ea548")]}get localizedName(){return N.get("Chart","Style")+"33"}get styleColors(){return this._styleColor}get basicStyleColor(){return Dt.get("e9f4fc")}get chartBrush(){return new se(Dt.get("f2f5fc"))}get chartAreaBrush(){return new se(Dt.get("f2f5fc"))}get legendBrush(){return new se(re.transparent)}get legendLabelsColor(){return Dt.get("e9f4fc")}get legendBorderColor(){return re.transparent}get legendTitleColor(){return Dt.get("e9f4fc")}get legendShowShadow(){return!1}get legendFont(){return new B("Arial",9)}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get seriesLabelsColor(){return Dt.get("e9f4fc")}get seriesLabelsLineColor(){return Dt.get("e9f4fc")}get seriesLabelsFont(){return new B("Arial",10)}get axisTitleColor(){return Dt.get("e9f4fc")}get axisLineColor(){return Dt.get("e9f4fc")}get axisLabelsColor(){return Dt.get("e9f4fc")}get gridLinesHorColor(){return Dt.get("e9f4fc")}get gridLinesVertColor(){return Dt.get("e9f4fc")}get seriesLighting(){return!1}get styleId(){return te.d.StiChartStyleId.StiStyle33}getColumnBorder(e){return re.transparent}getColumnBrush(e){return new se(e)}},te.d.StiStyleCoreXF34=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[Dt.get("144b45"),Dt.get("ecb92f"),Dt.get("d66153"),Dt.get("25775b"),Dt.get("319491"),Dt.get("f7f7f7"),Dt.get("dd7c21")]}get localizedName(){return N.get("Chart","Style")+"34"}get styleColors(){return this._styleColor}get chartBrush(){return new se(Dt.get("3f745e"))}get chartAreaBrush(){return new se(Dt.get("3f745e"))}get chartAreaBorderColor(){return re.transparent}get legendBrush(){return new se(re.transparent)}get legendLabelsColor(){return re.white}get legendBorderColor(){return re.transparent}get legendTitleColor(){return re.white}get legendShowShadow(){return!1}get legendFont(){return new B("Arial",9)}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(re.fromArgb(119,255,255,255))}get seriesLabelsColor(){return re.white}get seriesLabelsFont(){return new B("Arial",10)}get seriesLighting(){return!1}get styleId(){return te.d.StiChartStyleId.StiStyle34}getColumnBorder(e){return re.transparent}},te.d.StiStyleCoreXF35=class extends te.d.StiStyleCoreXF22{constructor(){super(...arguments),this._styleColor=[Dt.get("#794d26"),Dt.get("#c7986a"),Dt.get("#c4b49a"),Dt.get("#894d29"),Dt.get("#422515"),Dt.get("#564438"),Dt.get("#876c57"),Dt.get("#d8814b"),Dt.get("#532525"),Dt.get("#59413f")]}get localizedName(){return N.get("Chart","Style")+"35"}get styleColors(){return this._styleColor}get chartBrush(){return new se(Dt.get("#fefefe"))}get chartAreaBrush(){return new se(Dt.get("#fefefe"))}get chartAreaBorderColor(){return re.transparent}get legendBrush(){return new se(re.transparent)}get legendLabelsColor(){return Dt.get("#222222")}get legendBorderColor(){return re.transparent}get legendTitleColor(){return re.white}get legendShowShadow(){return!1}get legendFont(){return new B("Arial",9)}get seriesLabelsBorderColor(){return re.transparent}get seriesLabelsBrush(){return new se(Dt.get("#5a4941"))}get seriesLabelsColor(){return Dt.get("#fefefe")}get seriesLabelsFont(){return new B("Arial",10)}get seriesLighting(){return!1}get styleId(){return te.d.StiChartStyleId.StiStyle35}getColumnBorder(e){return re.transparent}};{let e=class{constructor(e){this.chartTable=e}implements(){return e.implementsStiChartTableCoreXF||(e.implementsStiChartTableCoreXF=[p,te.d.IStiApplyStyle,te.d.IStiChartTableCoreXF]),e.implementsStiChartTableCoreXF}applyStyle(e){this.chartTable.allowApplyStyle&&(this.chartTable.gridLineColor=e.core.legendBorderColor,this.chartTable.textColor=e.core.legendLabelsColor)}clone(){return this.stimulsoft().memberwiseClone()}showTable(){if((this.chartTable.chart.area.is2(te.d.IStiClusteredColumnArea)||this.chartTable.chart.area.is2(te.d.IStiStackedColumnArea))&&!this.chartTable.chart.area.is2(te.d.IStiCandlestickArea)&&!this.chartTable.chart.area.is2(te.d.IStiRangeArea)&&!this.chartTable.chart.area.is2(te.d.IStiScatterArea)&&!this.chartTable.chart.area.is2(te.d.IStiStockArea)&&this.chartTable.visible)return!0;return!1}getHeightTable(e,t){var i=it.changeFontSize(this.chartTable.dataCells.font,this.chartTable.dataCells.font.size*e.options.zoom),r;return e.measureString("HeightText",i).height*this.chartTable.chart.series.count+this.getHeightHeaderTable(e,t)}getHeightHeaderTable(i,e){let r=0;var t=this.chartTable.chart.area,s=t.xAxis.startFromZero,n=this.getArguments(),l=it.changeFontSize(this.chartTable.header.font,this.chartTable.header.font.size*i.options.zoom);let a=i.getGenericStringFormat();a.trimming=et.None,this.chartTable.header.wordWrap||(a.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap),a.alignment=F.Center,a.lineAlignment=F.Center;var t=t.xAxis.startFromZero?n.length+1:n.length-1,o=(e-this.getWidthCellLegend(i))/t;for(let t=0;t<n.length;t++){let e=0;0!=t&&t!=n.length-1||(e=s?o/2:-o/2);var h=this.chartTable.header.wordWrap?M.trunc(o+e):0,h=i.measureRotatedString3(n[t],l,new ee(0,0),a,rt.CenterCenter,0,h).height;r=Math.max(r,h)}return r}getWidthCellLegend(e){var t=it.changeFontSize(this.chartTable.dataCells.font,this.chartTable.dataCells.font.size*e.options.zoom),i;let r=e.getGenericStringFormat();r.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap,r.alignment=F.Center,r.lineAlignment=F.Center;let s=0,n=new ne;for(i of this.chartTable.chart.series.list)n=e.measureRotatedString4(i.coreTitle,t,new ee(0,0),r,rt.CenterCenter,0),s=Math.max(n.width,s);return this.chartTable.markerVisible&&(s+=n.height),Math.ceil(s)}render(e,t){return new te.d.StiChartTableGeom(t,this.getTableValues(),this.getWidthCellLegend(e),this.getHeightHeaderTable(e,t.width),this.chartTable)}getMaxCountValues(e){let t=0;for(var i of e.list)t=Math.max(t,i.values.length);return t}getArguments(){let t=this.chartTable.chart.series,i=[];var r=this.getMaxCountValues(t);for(let e=0;e<r;e++){var s=t.getByIndex(0).arguments.length>e?t.getByIndex(0).arguments[e]:(e+1).toString(),s=this.getLabelText(s,t.getByIndex(0));i.push(s)}return i}getLabelText(i,e){null==i&&(i=""),this.storedCulture=le.currentCulture;var r=this.chartTable.chart.report.culture;try{Z.isNullOrEmpty(this.chartTable.chart.report.culture)||(le.currentCulture=le.cultures[r]);let t="";if(null!=e&&(t=e.format),null!=t&&0!=t.trim().length||(t=this.chartTable.header.format),null!=t&&0!=t.trim().length){if("string"==typeof i){let e=i.toString();var s=e.stimulsoft().toNumber(),n;0<e.length&&!isNaN(s)?i=s:null!=(n=v.fromString(i.toString(),!1))&&(i=n)}else if(null==i)return"";if(!te.d.StiChartOptions.oldChartPercentMode&&t.stimulsoft().startsWith("P")){let e=0;return 1<t.length&&(e=t.stimulsoft().remove(0,1).stimulsoft().toNumber()),Z.format("{0:N"+e.toString()+"}{1}{2}",i,"%",this.chartTable.header.textAfter)}return Z.format("{0:"+t+"}{1}",i,this.chartTable.header.textAfter)}return Z.format("{0}{1}",i,this.chartTable.header.textAfter)}catch(e){J.System.StiError.showError(e,!1)}finally{Z.isNullOrEmpty(r)||(le.currentCulture=this.storedCulture)}return i.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator)}getTableValues(){var e=this.chartTable.chart.series,t=this.getArguments();let n=ie.create2(String,e.count+1,t.length+1);for(let e=0;e<t.length;e++)n[0][e+1]=t[e];var l=this.chartTable.chart.area,a;let o=1;for(a of e.list){n[o][0]=a.coreTitle;let s=1;for(let e=0;e<a.values.length;e++){let i=l.reverseHor?a.values[a.values.length-e-1]:a.values[e],r=this.chartTable.chart.table.format;if(null==r&&0==r.trim().length||null==i)n[o][s]=i.toString().replace(".",",").replace(",",J.System.Globalization.CultureInfo.currentCulture.numberFormat.numberDecimalSeparator);else if(r.stimulsoft().startsWith("P")&&!te.d.StiChartOptions.oldChartPercentMode){let e=0,t;try{1<r.length&&(e=r.stimulsoft().remove(0,1).stimulsoft().toNumber()),t=a.seriesLabels.core.recalcValue(i,e)}catch(e){J.System.StiError.showError(e,!1),t=a.seriesLabels.core.recalcValue(i,2)}n[o][s]=Z.format("{0:N"+e.toString()+"}{1}",t,"%")}else{let e=i;a.core.isDateTimeValues&&(e=v.fromOADate(i)),n[o][s]=Z.format("{0:"+r+"}",e)}s++}o++}return n}};te.d.StiChartTableCoreXF=e}{let e=class{constructor(e){this.trendLine=e}implements(){return e.implementsStiTrendLineCoreXF||(e.implementsStiTrendLineCoreXF=[p,te.d.IStiTrendLineCoreXF]),e.implementsStiTrendLineCoreXF}clone(){return this.stimulsoft().memberwiseClone()}get localizedName(){return null}renderTrendLine(e,t,i){}sum(e){let t=0;for(var i of e)t+=i;return t}sumSqr(e){let t=0;for(var i of e)t+=i*i;return t}sumProductions(t,i){let r=0;for(let e=0;e<t.length;e++)r+=t[e]*i[e];return r}sumProductionsXLogY(t,i){let r=0;for(let e=0;e<t.length;e++)r+=t[e]*Math.log(i[e]);return r}sumLn(e){let t=0;for(var i of e)t+=Math.log(i);return t}};te.d.StiTrendLineCoreXF=e}te.d.StiTrendLineExponentialCoreXF=class extends te.d.StiTrendLineCoreXF{get localizedName(){return N.get("PropertyMain","Exponential")}renderTrendLine(e,l,a){if(0<l.length){let t=ie.create(Number,l.length),i=ie.create(Number,l.length),r=l[0].x,s=l[0].x;for(let e=0;e<l.length;e++)t[e]=l[e].x,i[e]=a-l[e].y,r<l[e].x&&(r=l[e].x),s>l[e].x&&(s=l[e].x);var o=l.length,h=this.sum(t),u=this.sumSqr(t),d=this.sumProductionsXLogY(t,i),m=this.sumLn(i),c=(o*d-h*m)/(o*u-h*h),S,g=Math.exp((u*m-h*d)/(o*u-h*h));let n=ie.create(ee,31,!0);for(let e=0;e<31;e++){var p=s+(r-s)/30*e,f=g*Math.exp(c*p);n[e]=new ee(p,a-f)}var h=new te.d.StiTrendCurveGeom(n,this.trendLine);e.createChildGeoms(),e.childGeoms.push(h)}}constructor(e){super(e)}},te.d.StiTrendLineLinearCoreXF=class extends te.d.StiTrendLineCoreXF{get localizedName(){return N.get("PropertyMain","Linear")}renderTrendLine(e,n,t){if(0<n.length){let t=ie.create(Number,n.length),i=ie.create(Number,n.length),r=n[0].x,s=n[0].x;for(let e=0;e<n.length;e++)t[e]=n[e].x,i[e]=n[e].y,r<t[e]&&(r=t[e]),s>t[e]&&(s=t[e]);var l=n.length,a=this.sum(t),o=this.sum(i),h=this.sumSqr(t),u=this.sumProductions(t,i),d=a*a-h*l,l=(o*a-u*l)/d,d=(a*u-h*o)/d,d=new te.d.StiTrendLineGeom(new ee(s,l*s+d),new ee(r,l*r+d),this.trendLine);e.createChildGeoms(),e.childGeoms.push(d)}}constructor(e){super(e)}},te.d.StiTrendLineLogarithmicCoreXF=class extends te.d.StiTrendLineCoreXF{get localizedName(){return N.get("PropertyMain","Logarithmic")}renderTrendLine(e,l,t){if(0<l.length){let t=ie.create(Number,l.length),i=ie.create(Number,l.length),r=l[0].x,s=l[0].x;for(let e=0;e<l.length;e++)t[e]=Math.log(l[e].x),i[e]=l[e].y,r<l[e].x&&(r=l[e].x),s>l[e].x&&(s=l[e].x);var a=l.length,o=this.sum(t),h=this.sum(i),u=this.sumSqr(t),d=this.sumProductions(t,i),m=o*o-u*a,c=(h*o-d*a)/m,S=(o*d-u*h)/m;let n=ie.create(ee,31,!0);for(let e=0;e<31;e++){var g=s+(r-s)/30*e,p=c*Math.log(g)+S;n[e]=new ee(g,p)}var m=new te.d.StiTrendCurveGeom(n,this.trendLine);e.createChildGeoms(),e.childGeoms.push(m)}}constructor(e){super(e)}},te.d.StiTrendLineNoneCoreXF=class extends te.d.StiTrendLineCoreXF{get localizedName(){return N.get("Chart","LabelsNone")}constructor(e){super(e)}};var ce=J.Base.Context.StiGeom;let Mt=J.Base.Context.StiGeomType;{let e=class extends ce{constructor(e){super(),this.type=Mt.None,this.childGeoms=null,this.clientRectangle=ne.empty,this.clientRectangle=e.clone()}implements(){return e.implementsStiCellGeom||(e.implementsStiCellGeom=super.implements().concat([te.d.IStiCellGeom])),e.implementsStiCellGeom}get invisible(){return!1}dispose(){null!=this.childGeoms&&(this.childGeoms.stimulsoft().clear(),this.childGeoms=null)}contains(e,t){if(this.invisible)return!1;return this.clientRectangle.contains(e,t)}getGeomAt(i,r,s){var n=r-i.clientRectangle.x,l=s-i.clientRectangle.y;if(null!=i.childGeoms){let e=i,t=null;for(var a of i.childGeoms)if(null!=e&&e.isChildVisibleInView(a)||null==e)if(a.is(te.d.StiAxisAreaGeom)){if(!a.view.contains(r,s))continue;var o=this.getGeomAt(a,n,l);null!=o&&(t=o)}else{var a=this.getGeomAt(a,n,l);if(null!=a&&(t=a,t.is(te.d.StiMarkerGeom)))return t}if(null!=t)return t}if(i.contains(r,s))return i;return null}getSeriesGeoms(){let e=[];if(null==this.childGeoms)return e;for(var t of this.childGeoms){var i,r;(t.is(te.d.StiSeriesGeom)||t.is(te.d.StiSeriesElementGeom))&&e.push(t);for(r of t.getSeriesGeoms())e.push(r)}return e}getSeriesElementGeoms(){let e=[];if(null==this.childGeoms)return e;for(var t of this.childGeoms){var i,r;t.is(L)&&e.push(t);for(r of t.getSeriesElementGeoms())e.push(r)}return e}getRect(e){let t=ne.empty;if(null==this.childGeoms)return t;for(var i of this.childGeoms){if(i==e)return t.x+=i.clientRectangle.x,t.y+=i.clientRectangle.y,t.size=i.clientRectangle.size,t;var r=i.getRect(e);if(!r.isEmpty)return t.x+=i.clientRectangle.x,t.y+=i.clientRectangle.y,t.x+=r.x,t.y+=r.y,t.size=r.size,t}return t}createChildGeoms(){null==this.childGeoms&&(this.childGeoms=[])}draw(e){}drawGeom(e){this.draw(e),this.drawChildGeoms(e)}drawChildGeoms(e){if(null!=this.childGeoms){e.pushTranslateTransform(this.clientRectangle.x,this.clientRectangle.y);for(var t of this.childGeoms)this.allowChildDrawing(t)&&t.drawGeom(e);e.popTransform()}}allowChildDrawing(e){return null!=e}};te.d.StiCellGeom=e}te.d.StiChartGeom=class extends te.d.StiCellGeom{draw(e){}constructor(e){super(e)}},te.d.StiNullableDrawing=class{static drawLines(e,t,i,r=null){this.drawLines2(e,t,null,i,r)}static drawLines2(e,t,i,r,s=null){let n=[];for(var l of r)null!=l?n.push(l):(1<n.length&&(null!=s?e.drawAnimationLines(t,n.stimulsoft().toArray(),s):e.drawLines(t,n.stimulsoft().toArray())),n.stimulsoft().clear());1<n.length&&(null!=s?e.drawAnimationLines(t,n.stimulsoft().toArray(),s):e.drawLines(t,n.stimulsoft().toArray()))}static drawCurve(e,t,i,r,s=null){let n=[];for(var l of i)null!=l?n.push(l):(1<n.length&&(null!=s?e.drawAnimationCurve(t,n.stimulsoft().toArray(),r,s):e.drawCurve(t,n.stimulsoft().toArray(),r)),n.stimulsoft().clear());1<n.length&&(null!=s?e.drawAnimationCurve(t,n.stimulsoft().toArray(),r,s):e.drawCurve(t,n.stimulsoft().toArray(),r))}static getPointsList(e){let t=[],i=[];for(var r of e)null!=r?i.push(r):(1<i.length&&t.push(i.stimulsoft().toArray()),i.stimulsoft().clear());return 1<i.length&&t.push(i.stimulsoft().toArray()),t}static getNullablePointsList(e){let t=[],i=[];for(var r of e)null!=r?i.push(r):(1<i.length&&t.push(i.stimulsoft().toArray()),i.stimulsoft().clear());return 1<=i.length&&t.push(i.stimulsoft().toArray()),t}static getPointsList2(e,t,i,r){let s=[],n=[],l=[],a=[],o=0;for(var h of e){var u=t[o];null!=h&&null!=u?(l.push(h),a.push(u)):(1<l.length&&(s.push(l.stimulsoft().toArray()),n.push(a.stimulsoft().toArray())),l.stimulsoft().clear(),a.stimulsoft().clear()),o++}1<l.length&&(s.push(l.stimulsoft().toArray()),n.push(a.stimulsoft().toArray())),i.ref=s,r.ref=n}},te.d.StiAreaGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.area=e}draw(e){var t=this.clientRectangle.clone();if(t.isEmpty)return;0<t.width&&0<t.height&&e.fillRectangle(this.area.brush,t,null)}};{let p=class{constructor(e,t,i,r){this.x1=e,this.y1=t,this.x2=i,this.y2=r}};te.d.StiLineF=p,te.d.StiAxisAreaGeom=class extends te.d.StiAreaGeom{constructor(e,t,i){super(t,i),this.minWidth=6,this.view=e}drawInterlacingHor(e,t){t.x=0,t.width=this.view.clientRectangle.width;var i=this.area;if(!i.interlacingHor.visible)return;let r=[];var s=i.yAxis.info.stripPositions.length,n,l;let a=ie.create(Number,s);for(let e=0;e<s;e++)a[s-1-e]=i.yAxis.info.stripPositions[e];let o=0,h=!0,u=0;for(n of a){if(u++,h){o=n,r.push(n),h=!1;continue}if(o-n<this.minWidth&&u!=a.length)continue;o=n,r.push(n)}var d=ie.create(Number,r.length),m;r.stimulsoft().copyTo(d);let c=0,S=!0;for(m of d){var g=d[c+1],g;if(!S||0<=(g=new ne(t.x,t.y+g,t.width,m-g)).bottom&&g.y<this.view.clientRectangle.height&&e.fillRectangle(i.interlacingHor.interlacedBrush,g,null),S=!S,c++,c==d.length-1)break}}drawInterlacingVer(e,t){t.y=0,t.height=this.view.clientRectangle.height;var i=this.area;if(!i.interlacingVert.visible)return;let r=0,s=0;i.reverseHor&&(s=1);let n=[];var l=i.xAxis.info.stripPositions,a,o;let h=0,u=!0,d=0;for(a of l){if(d++,u){h=a,n.push(a),u=!1;continue}if(a-h<this.minWidth&&d!=l.length)continue;h=a,n.push(a)}var m=ie.create(Number,n.length),c;n.stimulsoft().copyTo(m);for(c of m){var S=m[r+1],S;if(0<(1&s)&&(0<=(S=new ne(c+t.x,t.y,S-c,t.height)).right&&S.x<this.view.clientRectangle.width&&e.fillRectangle(i.interlacingVert.interlacedBrush,S,null)),s++,r++,r==m.length-1)break}}getGridLinesHorMajor(e,t,i){let r=new P;e.x=0,e.width=this.view.clientRectangle.width;var s=this.area;let n=(i?s.yAxis:s.yRightAxis).info.stripPositions;var l=n.length,a;let o=ie.create(Number,l);for(let e=0;e<l;e++)o[l-e-1]=n[e];n=o;let h=n[0];for(a of n){var u=h-a,u;if(u<this.minWidth&&0<u)continue;h=a,!t.visible||t.style==_.None||0<=(u=a+e.y)&&u<=this.clientRectangle.height&&r.add(new p(e.x,u,e.right,u))}return r}getGridLinesHorMinor(t,e,i){let r=new P;t.x=0,t.width=this.view.clientRectangle.width;var s=this.area;let n=(i?s.yAxis:s.yRightAxis).info.stripPositions;var l=n.length,a;let o=ie.create(Number,l);for(let e=0;e<l;e++)o[l-e-1]=n[e];n=o;let h=n[0],u=0;for(a of n){var d=h-a;if(d<this.minWidth&&0<d)continue;if(h=a,e.minorVisible&&e.minorStyle!=_.None&&u!=n.length-1){var d=n[u+1];if(a-d<this.minWidth)continue;var m=(0==e.minorCount?s.yAxis.ticks:e).minorCount,c=a,S=(d-a)/(m+1);for(let e=1;e<=m;e++){var c,g=a+S*e+t.y;0<=g&&g<=this.clientRectangle.height&&r.add(new p(t.x,g,t.right,g))}}u++}return r}getGridLinesVerMajor(e,t,i){let r=new P;e.y=0,e.height=this.view.clientRectangle.height;var s=this.area,n,l;let a=0;for(l of(i?s.xAxis:s.xTopAxis).info.stripPositions){var o=l-a,o;if(o<this.minWidth&&0<o)continue;a=l,!t.visible||t.style==_.None||0<=(o=l+e.x)&&o<=this.clientRectangle.width&&r.add(new p(o,e.y,o,e.bottom))}return r}getGridLinesVerMinor(t,e,i){let r=new P;t.y=0,t.height=this.view.clientRectangle.height;var s=this.area,n=(i?s.xAxis:s.xTopAxis).info.stripPositions,l;let a=0,o=0;for(l of n){var h=l-a;if(h<this.minWidth&&0<h)continue;if(a=l,e.minorVisible&&e.minorStyle!=_.None&&o!=n.length-1){var h=n[o+1];if(h-l<this.minWidth)continue;var u=(0==e.minorCount?s.yAxis.ticks:e).minorCount,d=l,m=(h-l)/(u+1);for(let e=1;e<=u;e++){var d,c=l+m*e+t.x;0<=c&&c<=this.clientRectangle.width&&r.add(new p(c,t.y,c,t.bottom))}}o++}return r}allowChildDrawing(e){return null!=e&&this.isChildVisibleInView(e)}isChildVisibleInView(e){let t=this.view.clientRectangle.clone();t.x=0,t.y=0;let i=e.clientRectangle.clone();return i.x-=this.area.core.scrollDistanceX,i.y-=this.area.core.scrollDistanceY,null!=e&&t.intersectsWith(i)}draw(t){super.draw(t);let i=this.area;var r=this.clientRectangle.clone();if(r.isEmpty)return;var s=i.axisCore.getSeries();if(0<s.length&&(this.drawInterlacingHor(t,r),this.drawInterlacingVer(t,r)),0<s.length){var n=this.getGridLinesHorMajor(r,i.gridLinesHor,!0),l=this.getGridLinesHorMinor(r,i.gridLinesHor,!0),a=this.getGridLinesHorMajor(r,i.gridLinesHorRight,!0),o=this.getGridLinesHorMinor(r,i.gridLinesHorRight,!0),s=this.getGridLinesVerMajor(r,i.gridLinesVert,!0),r=this.getGridLinesVerMinor(r,i.gridLinesVert,!0);let e=new ut(i.gridLinesHor.minorColor,1);e.penStyle=i.gridLinesHor.minorStyle,this.drawLines(t,l,e),e=new ut(i.gridLinesHorRight.minorColor,1),e.penStyle=i.gridLinesHorRight.minorStyle,this.drawLines(t,o,e),e=new ut(i.gridLinesVert.minorColor,1),e.penStyle=i.gridLinesVert.minorStyle,this.drawLines(t,r,e),e=new ut(i.gridLinesHor.color,1),e.penStyle=i.gridLinesHor.style,this.drawLines(t,n,e),e=new ut(i.gridLinesHorRight.color,1),e.penStyle=i.gridLinesHorRight.style,this.drawLines(t,a,e),e=new ut(i.gridLinesVert.color,1),e.penStyle=i.gridLinesVert.style,this.drawLines(t,s,e)}}drawLines(e,t,i){for(var r of t)e.drawLine(i,r.x1,r.y1,r.x2,r.y2)}}}let Nt=J.Base.Drawing.StiShadowSides;te.d.StiAxisAreaViewGeom=class extends te.d.StiAreaGeom{draw(e){var t=this.clientRectangle.clone();if(t.isEmpty)return;0<t.width&&0<t.height&&this.area.showShadow&&e.drawCachedShadow(t,Nt.All,e.options.isPrinting),super.draw(e)}drawGeom(e){super.drawGeom(e),this.drawBorder(e)}drawChildGeoms(t){if(null!=this.childGeoms){let e=this.clientRectangle.clone();e.x=0,e.y=0,t.pushTranslateTransform(this.clientRectangle.x,this.clientRectangle.y);for(var i of this.childGeoms){var r=i.is(te.d.StiAxisAreaGeom)||i.is(te.d.StiXAxisGeom)&&i.isCenterAxis||i.is(te.d.StiYAxisGeom)&&i.isCenterAxis;r&&t.pushClip(e),this.allowChildDrawing(i)&&i.drawGeom(t),r&&t.popClip()}t.popTransform()}}drawBorder(e){var t=this.clientRectangle.clone();if(t.isEmpty)return;var i=new ut(this.area.borderColor);e.drawRectangle2(i,t.x,t.y,t.width,t.height)}constructor(e,t){super(e,t)}},te.d.StiPieAreaGeom=class extends te.d.StiAreaGeom{draw(e){var t=this.clientRectangle.clone(),i;0<t.width&&0<t.height&&(this.area.showShadow&&e.drawCachedShadow(t,Nt.All,e.options.isPrinting),e.fillRectangle2(this.area.brush,t.x,t.y,t.width,t.height,null),i=new ut(this.area.borderColor),e.drawRectangle2(i,t.x,t.y,t.width,t.height))}constructor(e,t){super(e,t)}},te.d.StiDoughnutAreaGeom=class extends te.d.StiPieAreaGeom{constructor(e,t){super(e,t)}},te.d.StiPictorialAreaGeom=class extends te.d.StiAreaGeom{draw(e){var t=this.clientRectangle.clone();if(t.isEmpty)return;0<t.width&&0<t.height&&this.area.showShadow&&e.drawCachedShadow(t,Nt.All,e.options.isPrinting),super.draw(e)}drawGeom(e){super.drawGeom(e),this.drawBorder(e)}drawBorder(e){var t=this.clientRectangle.clone();if(t.isEmpty)return;var i=new ut(this.area.borderColor);e.drawRectangle2(i,t.x,t.y,t.width,t.height)}constructor(e,t){super(e,t)}},te.d.StiRadarAreaGeom=class extends te.d.StiAreaGeom{constructor(e,t,i){super(e,t),this.valuesCount=i}drawHor(r,e,t){var s=this.clientRectangle.clone(),n=this.area;if(null==n.yAxis.info.stripPositions)return;var l=n.core,a;let o=0;for(a of n.yAxis.info.stripPositions){if(0!=a){var i=new ne(l.centerPoint.x-a,l.centerPoint.y-a,2*a,2*a);if(n.radarStyle==te.d.StiRadarStyle.Circle){if(e&&n.interlacingHor.visible&&o!=n.yAxis.info.stripPositions.length-1&&0==(1&o)){let e=[];var h=n.yAxis.info.stripPositions[o+1],h=new ne(l.centerPoint.x-h,l.centerPoint.y-h,2*h,2*h);e.push(new gt(i,0,360)),e.push(new gt(h,0,360)),r.fillPath(n.interlacingHor.interlacedBrush,e,s,null)}if(t&&n.gridLinesHor.visible){let e;o==n.yAxis.info.stripPositions.length-1?e=new ut(n.borderColor):(e=new ut(n.gridLinesHor.color),e.penStyle=n.gridLinesHor.style),r.drawEllipse2(e,i)}}else{if(e&&n.interlacingHor.visible&&o!=n.yAxis.info.stripPositions.length-1&&1==(1&o)){let t=[],i=0;for(var u of l.points){let e;e=i==l.points.length-1?l.points[0]:l.points[i+1];var d=new ee(l.centerPoint.x+a*u.x,l.centerPoint.y+a*u.y),u=new ee(l.centerPoint.x+a*e.x,l.centerPoint.y+a*e.y);t.push(new pt(d.x,d.y,u.x,u.y)),i++}var m=n.yAxis.info.stripPositions[o+1],c;i=0;for(c of l.points){let e;e=i==l.points.length-1?l.points[0]:l.points[i+1];var S=new ee(l.centerPoint.x+m*c.x,l.centerPoint.y+m*c.y),g=new ee(l.centerPoint.x+m*e.x,l.centerPoint.y+m*e.y);t.push(new pt(S.x,S.y,g.x,g.y)),i++}r.fillPath(n.interlacingHor.interlacedBrush,t,s,null)}if(t&&n.gridLinesHor.visible){let i=0;for(var p of l.points){let e;e=i==l.points.length-1?l.points[0]:l.points[i+1];let t;o==n.yAxis.info.stripPositions.length-1?t=new ut(n.borderColor):(t=new ut(n.gridLinesHor.color),t.penStyle=n.gridLinesHor.style),r.drawLine(t,l.centerPoint.x+a*p.x,l.centerPoint.y+a*p.y,l.centerPoint.x+a*e.x,l.centerPoint.y+a*e.y),i++}}}}o++}}drawVert(t,e,i){var r=this.clientRectangle.clone(),s=this.area,n=s.core;let l=0;var a=360/n.points.length,o;let h=0;for(o of n.points){var u=n.centerPoint,d=new ee(u.x+r.width/2*o.x,u.y+r.width/2*o.y);if(e&&s.interlacingVert.visible){var m=l<n.points.length-1?new ee(u.x+r.width/2*n.points[l+1].x,u.y+r.height/2*n.points[l+1].y):new ee(u.x+r.width/2*n.points[0].x,u.y+r.height/2*n.points[0].y);if(1==(1&l)){let e=[];s.radarStyle==te.d.StiRadarStyle.Circle?(e.push(new pt(u.x,u.y,d.x,d.y)),e.push(new gt(r,h-90,a))):(e.push(new pt(u.x,u.y,d.x,d.y)),e.push(new pt(d.x,d.y,m.x,m.y))),e.push(new pt(m.x,m.y,u.x,u.y)),t.fillPath(s.interlacingVert.interlacedBrush,e,r,null)}}if(i&&s.gridLinesVert.visible){let e=new ut(s.gridLinesVert.color);e.penStyle=s.gridLinesVert.style,t.drawLine(e,u.x,u.y,d.x,d.y)}h+=a,l++}}drawBackground(i){var r=this.clientRectangle.clone();let s=this.area;if(null==s.yAxis.info.stripPositions)return;var n=s.core,l=3,a=new se(re.fromArgb(50,0,0,0));if(s.radarStyle==te.d.StiRadarStyle.Circle)!this.area.showShadow||s.brush.is(Qe)||Ze.isTransparent(s.brush)||(i.pushTranslateTransform(l,l),i.fillEllipse2(a,r,null),i.popTransform()),i.fillEllipse2(s.brush,r,null);else{var o=s.yAxis.info.stripPositions[s.yAxis.info.stripPositions.length-1],h;let e=[],t=0;for(h of n.points){var u=t==n.points.length-1?n.points[0]:n.points[t+1];e.push(new pt(n.centerPoint.x+o*h.x,n.centerPoint.y+o*h.y,n.centerPoint.x+o*u.x,n.centerPoint.y+o*u.y)),t++}!this.area.showShadow||s.brush.is(Qe)||Ze.isTransparent(s.brush)||(i.pushTranslateTransform(l,l),i.fillPath(a,e,r,null),i.popTransform()),i.fillPath(s.brush,e,r,null)}}draw(e){var t=this.clientRectangle.clone();0<t.width&&0<t.height&&(e.pushSmoothingModeToAntiAlias(),this.drawBackground(e),this.drawVert(e,!0,!1),this.drawHor(e,!0,!1),this.drawVert(e,!1,!0),this.drawHor(e,!1,!0),e.popSmoothingMode())}},te.d.StiSunburstAreaGeom=class extends te.d.StiPieAreaGeom{constructor(e,t){super(e,t)}},te.d.StiTreemapAreaGeom=class extends te.d.StiAreaGeom{draw(e){var t=this.clientRectangle.clone(),i;0<t.width&&0<t.height&&(this.area.showShadow&&e.drawCachedShadow(t,Nt.All,e.options.isPrinting),e.fillRectangle2(this.area.brush,t.x,t.y,t.width,t.height,null),i=new ut(this.area.borderColor),e.drawRectangle2(i,t.x,t.y,t.width,t.height))}constructor(e,t){super(e,t)}},te.d.StiAxisLabelGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n,l){super(t),this.axis=e,this.text=r,this.stripLine=s,this.textPoint=i,this.angle=n,this.rotationMode=l}draw(e){var t=this.axis.core.getStringFormatGeom(e),i=this.axis.core.getFontGeom(e),r=new se(this.axis.labels.color);e.drawRotatedString9(this.text,i,r,this.textPoint,t,this.rotationMode,this.angle,this.axis.labels.antialiasing,M.trunc(this.axis.labels.width*e.options.zoom))}},te.d.StiAxisTitleGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s){super(t),this.angle=0,this.axis=e,this.angle=i,this.font=s}draw(e){var t=new se(this.axis.title.color),i=e.getDefaultStringFormat();e.drawRotatedString5(this.axis.title.text,this.font,t,this.clientRectangle,i,rt.CenterCenter,this.angle,this.axis.title.antialiasing)}},te.d.StiXAxisGeom=class extends te.d.StiCellGeom{constructor(e,t,i){super(t),this.isCenterAxis=!1,this.axis=e,this.isCenterAxis=i}drawArrow(i,t){var r=i.options.zoom,s=new ut(this.axis.lineColor,this.axis.lineWidth),e=new ut(this.axis.lineColor),n=new se(this.axis.lineColor);let l=0;this.axis.core.isBottomSide&&(l=t.y),this.axis.core.isTopSide&&(l=t.bottom);let a=ee.empty;switch(a=this.axis.area.reverseHor?new ee(t.x,l):new ee(t.right,l),this.axis.arrowStyle){case te.d.StiArrowStyle.Triangle:{i.drawLine(s,a.x,a.y,a.x+this.axis.core.arrowHeight*r,a.y),i.pushSmoothingModeToAntiAlias();let e=[];e.push(new pt(a.x+this.axis.core.arrowHeight*r,a.y-this.axis.core.arrowWidth*r,a.x+4*this.axis.core.arrowHeight*r,a.y)),e.push(new pt(a.x+4*this.axis.core.arrowHeight*r,a.y,a.x+this.axis.core.arrowHeight*r,a.y+this.axis.core.arrowWidth*r)),i.fillPath(n,e,t,null),i.popSmoothingMode();break}case te.d.StiArrowStyle.Lines:i.drawLine(s,a.x,a.y,a.x+4*this.axis.core.arrowHeight*r,a.y),i.pushSmoothingModeToAntiAlias(),i.drawLine(e,a.x+this.axis.core.arrowHeight*r,a.y-this.axis.core.arrowWidth*r,a.x+4*this.axis.core.arrowHeight*r,a.y),i.drawLine(e,a.x+4*this.axis.core.arrowHeight*r,a.y,a.x+this.axis.core.arrowHeight*r,a.y+this.axis.core.arrowWidth*r),i.popSmoothingMode();break;case te.d.StiArrowStyle.Circle:var o=this.axis.core.arrowHeight*r;i.drawLine(s,a.x,a.y,a.x+2*o,a.y);var h=new ee(a.x+2*o,a.y-o/2);i.pushSmoothingModeToAntiAlias();var h=new ne(h.x,h.y,o,o);i.drawEllipse2(s,h),i.popSmoothingMode();break;case te.d.StiArrowStyle.Arc:case te.d.StiArrowStyle.ArcAndCircle:{var o=this.axis.core.arrowHeight*r;i.drawLine(s,a.x,a.y,a.x+2*o,a.y),i.pushSmoothingModeToAntiAlias();let t=[];if(this.axis.area.reverseHor){var h=new ee(a.x+3*o,a.y+o/2);let e=new ne(h.x,h.y,Math.abs(o),Math.abs(o));this.axis.arrowStyle==te.d.StiArrowStyle.ArcAndCircle&&(e.x-=r,e.inflate(1,1)),t.push(new gt(e,270,180))}else{var u=new ee(a.x+2*o,a.y-o/2);let e=new ne(u.x,u.y,Math.abs(o),Math.abs(o));this.axis.arrowStyle==te.d.StiArrowStyle.ArcAndCircle&&(e.x+=r,e.inflate(1,1)),t.push(new gt(e,90,180))}if(i.drawPath(s,t,ht.getBoundsState),this.axis.arrowStyle==te.d.StiArrowStyle.ArcAndCircle){var u=this.axis.core.arrowHeight*r,o=new ee(a.x+2*u+r,a.y-u/2);let e=new ne(o.x,o.y,u,u);this.axis.area.reverseHor?(e.inflate(.5*r,.5*r),e.x-=3*r):(e.inflate(-.5*r,-.5*r),e.x+=r),i.fillEllipse2(n,e,null)}i.popSmoothingMode();break}}}drawAxisLine(e,t){let i=0;this.axis.core.isTopSide&&(i=t.bottom),this.axis.core.isBottomSide&&(i=t.top);let r=new ut(this.axis.lineColor,this.axis.lineWidth);r.penStyle=this.axis.lineStyle,!this.isCenterAxis||this.axis.showXAxis!=te.d.StiShowXAxis.Both&&this.axis.showXAxis!=te.d.StiShowXAxis.Center?this.isCenterAxis||this.axis.showXAxis!=te.d.StiShowXAxis.Both&&this.axis.showXAxis!=te.d.StiShowXAxis.Bottom||e.drawLine(r,t.x,i,t.right,i):this.axis.area.reverseVert?e.drawLine(r,t.x,i,t.right,i):e.drawLine(r,t.x,i+t.height,t.right,i+t.height)}drawMinorTicks(i,r,s,e,n,l){var t,a=(e-s)/(l.minorCount+1),o=l.minorLength*i.options.zoom;for(let t=1;t<=l.minorCount;t++){var h=s+a*t;let e=this.axis.core.isTopSide||this.isCenterAxis?n-o:n+o;this.axis.area.reverseVert&&this.isCenterAxis&&(e=n+o),i.drawLine(r,h,n,h,e)}}drawTicks(l,e,t,a){if(!t.visible)return;var i=t.length*l.options.zoom,o=this.axis.core.isTopSide||this.isCenterAxis?e.bottom:e.top;let h=this.axis.core.isTopSide||this.isCenterAxis?o-i:o+i;this.isCenterAxis&&this.axis.area.reverseVert&&(h=o+i);var u=this.axis.info.ticksCollection;if(this.isArgumentDateTime(u)&&this.axis.area.xAxis.dateTimeStep.step!=te.d.StiTimeDateStep.None){let e,i,r=!0,s="",n=0;for(let t=0;t<u.length;t++){if(r&&(n=u[t].position,r=!1),!(null!=u[t].stripLine.valueObject&&u[t].stripLine.valueObject instanceof v))continue;switch(e=u[t].stripLine.valueObject,i=t<u.length-2?u[t+1].stripLine.valueObject:e,this.axis.area.xAxis.dateTimeStep.step){case te.d.StiTimeDateStep.Day:e.toString("yyyyMMMMdd")==i.toString("yyyyMMMMdd")&&t!=u.length-2||(s=e.toString("dd"));break;case te.d.StiTimeDateStep.Hour:e.toString("yyyyMMMMddHH")==i.toString("yyyyMMMMddHH")&&t!=u.length-2||(s=e.toString("HH"));break;case te.d.StiTimeDateStep.Minute:e.toString("yyyyMMMMddhhmm")==i.toString("yyyyMMMMddhhmm")&&t!=u.length-2||(s=e.toString("mm"));break;case te.d.StiTimeDateStep.Month:e.toString("yyyyMMMM")==i.toString("yyyyMMMM")&&t!=u.length-2||(s=e.toString("MMMM"));break;case te.d.StiTimeDateStep.Second:e.toString("yyyyMMMMddHHmmss")==i.toString("yyyyMMMMddHHmmss")&&t!=u.length-2||(s=e.toString("ss"));break;case te.d.StiTimeDateStep.Year:e.toString("yyyy")==i.toString("yyyy")&&t!=u.length-2||(s=e.toString("yyyy"));break}if(""!=s){let e=0;e=t==u.length-2?u[t+1].position:u[t].position+(u[t+1].position-u[t].position)/2,l.drawRectangle2(a,n,o,e-n,h),s="",n=e}}}else{let e=0;for(var r of this.axis.info.ticksCollection){var s=r.position,r;l.drawLine(a,s,o,s,h),t.minorVisible&&e!=this.axis.info.ticksCollection.length-1&&(r=this.axis.info.ticksCollection[e+1].position,this.drawMinorTicks(l,a,s,r,o,t)),e++}}}isArgumentDateTime(e){for(var t of e)if(null!=t.stripLine.valueObject&&t.stripLine.valueObject instanceof v)return!0;return!1}drawAxis(e,t){let i=new ut(this.axis.lineColor,this.axis.lineWidth);i.penStyle=this.axis.lineStyle,!this.isCenterAxis||this.axis.showXAxis!=te.d.StiShowXAxis.Both&&this.axis.showXAxis!=te.d.StiShowXAxis.Center?this.isCenterAxis||(this.axis.core.isTopSide&&this.drawTicks(e,t,this.axis.ticks,i),!this.axis.core.isBottomSide||this.axis.showXAxis!=te.d.StiShowXAxis.Both&&this.axis.showXAxis!=te.d.StiShowXAxis.Bottom||this.drawTicks(e,t,this.axis.ticks,i)):this.drawTicks(e,t,this.axis.ticks,i),this.drawAxisLine(e,t)}getViewclipRect(){let e=this.view.clientRectangle.clone();return e.x=this.axis.area.core.scrollDistanceX,e.y=0,e.inflate(1,1),this.isCenterAxis&&e.inflate(0,2),e}allowChildDrawing(e){var t=e;if(null==t)return!0;if(null==this.view)return!0;var e=this.getViewclipRect(),t=t.clientRectangle;return!(t.right<e.x||t.x>e.right)}draw(e){var t=this.clientRectangle.clone(),i;if(t.width<=0||t.height<=0)return;null!=this.view&&(i=this.getViewclipRect(),e.pushClip(i)),this.drawAxis(e,t),null!=this.view&&e.popClip()}},te.d.StiXAxisViewGeom=class extends te.d.StiXAxisGeom{drawChildGeoms(e){let t=this.clientRectangle.clone();if(this.isCenterAxis&&(t.y+=this.axis.area.core.getDividerY()-this.axis.area.core.scrollDistanceY),null!=this.childGeoms)for(var i of this.childGeoms)this.allowChildDrawing(i)&&(i.is(te.d.StiHorzScrollBarGeom)||e.pushTranslateTransform(-this.axis.area.core.scrollDistanceX,0),e.pushTranslateTransform(t.x,t.y),i.drawGeom(e),e.popTransform(),i.is(te.d.StiHorzScrollBarGeom)||e.popTransform());this.draw(e)}draw(e){let t=this.clientRectangle.clone();if(this.isCenterAxis&&(t.y+=this.axis.area.core.getDividerY()-this.axis.area.core.scrollDistanceY),t.width<=0||t.height<=0)return;this.axis.arrowStyle==te.d.StiArrowStyle.None||this.isCenterAxis||this.drawArrow(e,t)}constructor(e,t,i){super(e,t,i)}},te.d.StiYAxisGeom=class extends te.d.StiCellGeom{constructor(e,t,i){super(t),this.isCenterAxis=!1,this.axis=e,this.isCenterAxis=i}drawArrow(i,e){var r=i.options.zoom,s=new ut(this.axis.lineColor),n=new se(this.axis.lineColor),t=new ut(this.axis.lineColor);this.axis.visible||this.drawAxisLine(i,e);let l=ee.empty;switch(l=this.axis.area.reverseVert?new ee(e.right,e.bottom):new ee(e.right,e.y),this.axis.core.isRightSide&&(l.x=e.x),this.axis.arrowStyle){case te.d.StiArrowStyle.Triangle:{i.drawLine(s,l.x,l.y,l.x,l.y-this.axis.core.arrowHeight*r),i.pushSmoothingModeToAntiAlias();let e=[];e.push(new pt(l.x-this.axis.core.arrowWidth*r,l.y-this.axis.core.arrowHeight*r,l.x+this.axis.core.arrowWidth*r,l.y-this.axis.core.arrowHeight*r)),e.push(new pt(l.x+this.axis.core.arrowWidth*r,l.y-this.axis.core.arrowHeight*r,l.x,l.y-4*this.axis.core.arrowHeight*r)),i.fillPath(n,e,ht.getBoundsState,null),i.popSmoothingMode();break}case te.d.StiArrowStyle.Lines:i.drawLine(s,l.x,l.y,l.x,l.y-4*this.axis.core.arrowHeight*r),i.pushSmoothingModeToAntiAlias(),i.drawLine(t,l.x-this.axis.core.arrowWidth*r,l.y-this.axis.core.arrowHeight*r,l.x,l.y-4*this.axis.core.arrowHeight*r),i.drawLine(t,l.x+this.axis.core.arrowWidth*r,l.y-this.axis.core.arrowHeight*r,l.x,l.y-4*this.axis.core.arrowHeight*r),i.popSmoothingMode();break;case te.d.StiArrowStyle.Circle:i.drawLine(s,l.x,l.y,l.x,l.y-this.axis.core.arrowHeight*r*2);var a=this.axis.core.arrowHeight*r,o=new ee(l.x-a/2,l.y-3*a);i.pushSmoothingModeToAntiAlias();var a=new ne(o.x,o.y,this.axis.core.arrowHeight*r,this.axis.core.arrowHeight*r);i.drawEllipse2(s,a),i.popSmoothingMode();break;case te.d.StiArrowStyle.Arc:case te.d.StiArrowStyle.ArcAndCircle:{var o=this.axis.core.arrowHeight*r;i.drawLine(s,l.x,l.y,l.x,l.y-2*o),i.pushSmoothingModeToAntiAlias();let t=[];if(this.axis.area.reverseVert){var a=new ee(l.x+o/2,l.y-2*o);let e=new ne(a.x,a.y,Math.abs(o),Math.abs(o));this.axis.arrowStyle==te.d.StiArrowStyle.ArcAndCircle&&(e.y+=r,e.inflate(1,1)),t.push(new gt(e,180,180))}else{var h=new ee(l.x-o/2,l.y-3*o);let e=new ne(h.x,h.y,o,o);this.axis.arrowStyle==te.d.StiArrowStyle.ArcAndCircle&&(e.y-=r,e.inflate(1,1)),t.push(new gt(e,0,180))}if(i.drawPath(s,t,ht.getBoundsState),this.axis.arrowStyle==te.d.StiArrowStyle.ArcAndCircle){var h=this.axis.core.arrowHeight*r,o=new ee(l.x-h/2,l.y-3*h-r);let e=new ne(o.x,o.y,h,h);this.axis.area.reverseVert?(e.inflate(.5*r,.5*r),e.y+=3*r):(e.inflate(-.5*r,-.5*r),e.y-=r),i.fillEllipse2(n,e,null)}i.popSmoothingMode();break}}}drawAxisLine(e,t){let i=t.right;this.axis.core.isRightSide&&(i=t.left),this.isCenterAxis&&this.axis.area.reverseHor&&(i=t.right);let r=new ut(this.axis.lineColor,this.axis.lineWidth);r.penStyle=this.axis.lineStyle,(!this.isCenterAxis||this.axis.showYAxis!=te.d.StiShowYAxis.Both&&this.axis.showYAxis!=te.d.StiShowYAxis.Center)&&(this.isCenterAxis||this.axis.showYAxis!=te.d.StiShowYAxis.Both&&this.axis.showYAxis!=te.d.StiShowYAxis.Left)||e.drawLine(r,i,t.y,i,t.bottom)}drawMinorTicks(i,r,s,n,e,l){var t,a=(e-n)/(l.minorCount+1),o=l.minorLength*i.options.zoom;for(let t=1;t<=l.minorCount;t++){var h=n+a*t;let e=this.axis.core.isLeftSide||this.isCenterAxis?s-o:s+o;this.axis.area.reverseHor&&this.isCenterAxis&&(e=s+o),i.drawLine(r,s,h,e,h)}}drawTicks(e,t,i,r){if(!i.visible)return;var s=i.length*e.options.zoom,n;let l=this.axis.core.isLeftSide?t.right:t.left,a=this.axis.core.isLeftSide?l-s:l+s;this.isCenterAxis&&this.axis.area.reverseHor&&(l=t.right,a=t.right+s);let o=0;for(n of this.axis.info.ticksCollection){var h=n.position,u;e.drawLine(r,l,h,a,h),i.minorVisible&&o!=this.axis.info.ticksCollection.length-1&&(u=this.axis.info.ticksCollection[o+1].position,this.drawMinorTicks(e,r,l,h,u,i)),o++}}drawAxis(e,t){let i=new ut(this.axis.lineColor,this.axis.lineWidth);i.penStyle=this.axis.lineStyle,!this.isCenterAxis||this.axis.showYAxis!=te.d.StiShowYAxis.Both&&this.axis.showYAxis!=te.d.StiShowYAxis.Center?this.isCenterAxis||(!this.axis.core.isLeftSide||this.axis.showYAxis!=te.d.StiShowYAxis.Both&&this.axis.showYAxis!=te.d.StiShowYAxis.Left||this.drawTicks(e,t,this.axis.area.yAxis.ticks,i),this.axis.core.isRightSide&&this.drawTicks(e,t,this.axis.area.yRightAxis.ticks,i)):this.drawTicks(e,t,this.axis.ticks,i),this.drawAxisLine(e,t)}getViewclipRect(){let e=this.view.clientRectangle.clone();return e.x=0,e.y=this.axis.area.core.scrollDistanceY,e.inflate(1,1),this.isCenterAxis&&e.inflate(2,0),e}allowChildDrawing(e){var t=e;if(null==t)return!0;if(null==this.view)return!0;var e=this.getViewclipRect(),t=t.clientRectangle;return!(t.bottom<e.y||t.y>e.bottom)}draw(e){var t=this.clientRectangle.clone(),i;if(t.width<=0||t.height<=0)return;null!=this.view&&(i=this.getViewclipRect(),e.pushClip(i)),this.drawAxis(e,t),null!=this.view&&e.popClip()}},te.d.StiYAxisViewGeom=class extends te.d.StiYAxisGeom{drawChildGeoms(e){let t=this.clientRectangle.clone();if(this.isCenterAxis&&(t.x+=this.axis.area.core.getDividerX()-this.axis.area.core.scrollDistanceX),null!=this.childGeoms)for(var i of this.childGeoms)this.allowChildDrawing(i)&&(i.is(te.d.StiVertScrollBarGeom)||e.pushTranslateTransform(0,-this.axis.area.core.scrollDistanceY),e.pushTranslateTransform(t.x,t.y),i.drawGeom(e),e.popTransform(),i.is(te.d.StiVertScrollBarGeom)||e.popTransform())}draw(e){let t=this.clientRectangle.clone();if(this.isCenterAxis&&(t.x+=this.axis.area.core.getDividerX()-this.axis.area.core.scrollDistanceX),t.width<=0||t.height<=0)return;this.axis.arrowStyle==te.d.StiArrowStyle.None||this.isCenterAxis||this.drawArrow(e,t)}constructor(e,t,i){super(e,t,i)}},te.d.StiDownButtonGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.axis=e}draw(e){var t=this.clientRectangle.clone(),i=re.white,i=this.axis.lineColor,r=t.width/3,s=t.height/4,n=new ee(t.x+t.width/2,t.y+t.height/2);e.pushSmoothingModeToAntiAlias();let l=[];l.push(new pt(n.x-r,n.y-s,n.x,n.y+s)),l.push(new pt(n.x,n.y+s,n.x+r,n.y-s)),e.fillPath(i,l,t,null),e.popSmoothingMode()}},te.d.StiHorzScrollBarGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.axis=e}draw(e){var t=this.clientRectangle.clone(),i=new ut(this.axis.lineColor);e.drawRectangle2(i,t.x,t.y,t.width,t.height)}},te.d.StiHorzTrackBarGeom=class extends te.d.StiCellGeom{constructor(e,t,i){super(t),this.axis=e,this.scrollBar=i}draw(e){var t=this.clientRectangle.clone(),i=new ut(this.axis.lineColor),r=new ut(re.white),i;e.fillRectangle2(this.axis.lineColor,t.x,t.y,t.width,t.height,null),e.drawRectangle2(i,t.x,t.y,t.width,t.height),10<t.width&&4<t.height&&(i=t.x+t.width/2,e.drawLine(r,i-2,t.y+2,i-2,t.bottom-2),e.drawLine(r,i,t.y+2,i,t.bottom-2),e.drawLine(r,i+2,t.y+2,i+2,t.bottom-2))}},te.d.StiLeftButtonGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.axis=e}draw(e){var t=this.clientRectangle.clone(),i=re.white,i=this.axis.lineColor,r=t.width/4,s=t.height/3,n=new ee(t.x+t.width/2,t.y+t.height/2);e.pushSmoothingModeToAntiAlias();let l=[];l.push(new pt(n.x+r,n.y-s,n.x-r,n.y)),l.push(new pt(n.x-r,n.y,n.x+r,n.y+s)),e.fillPath(i,l,t,null),e.popSmoothingMode()}},te.d.StiRightButtonGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.axis=e}draw(e){var t=this.clientRectangle.clone(),i=re.white,i=this.axis.lineColor,r=t.width/4,s=t.height/3,n=new ee(t.x+t.width/2,t.y+t.height/2);e.pushSmoothingModeToAntiAlias();let l=[];l.push(new pt(n.x-r,n.y-s,n.x+r,n.y)),l.push(new pt(n.x+r,n.y,n.x-r,n.y+s)),e.fillPath(i,l,t,null),e.popSmoothingMode()}},te.d.StiUpButtonGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.axis=e}draw(e){var t=this.clientRectangle.clone(),i=re.white,i=this.axis.lineColor,r=t.width/3,s=t.height/4,n=new ee(t.x+t.width/2,t.y+t.height/2);e.pushSmoothingModeToAntiAlias();let l=[];l.push(new pt(n.x-r,n.y+s,n.x,n.y-s)),l.push(new pt(n.x,n.y-s,n.x+r,n.y+s)),e.fillPath(i,l,t,null),e.popSmoothingMode()}},te.d.StiVertScrollBarGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.axis=e}draw(e){var t=this.clientRectangle.clone(),i=new ut(this.axis.lineColor);e.drawRectangle2(i,t.x,t.y,t.width,t.height)}},te.d.StiVertTrackBarGeom=class extends te.d.StiCellGeom{constructor(e,t,i){super(t),this.axis=e,this.scrollBar=i}draw(e){var t=this.clientRectangle.clone(),i=new ut(this.axis.lineColor),r=new ut(re.white),i;e.fillRectangle2(this.axis.lineColor,t.x,t.y,t.width,t.height,null),e.drawRectangle2(i,t.x,t.y,t.width,t.height),10<t.height&&4<t.width&&(i=t.y+t.height/2,e.drawLine(r,t.x+2,i-2,t.right-2,i-2),e.drawLine(r,t.x+2,i,t.right-2,i),e.drawLine(r,t.x+2,i+2,t.right-2,i+2))}},te.d.StiChartTitleGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.title=e}draw(i){if(this.title.visible){let e=this.title.dock;this.title.dock==te.d.StiChartTitleDock.Bottom&&(e=0);var r=it.changeFontSize(this.title.font,this.title.font.size*i.options.zoom);let t=i.getDefaultStringFormat();t.alignment=this.title.alignment,t.trimming=et.None,t.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap|tt.NoClip,i.drawRotatedString8(this.title.text,r,this.title.brush,this.clientRectangle,t,rt.CenterCenter,e,this.title.antialiasing)}}},te.d.StiConstantLinesVerticalGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r){super(t),this.line=e,this.point=i,this.mode=r}draw(e){var t=this.clientRectangle.clone(),i,r,t;let s=new ut(this.line.lineColor,this.line.lineWidth);s.penStyle=this.line.lineStyle,e.drawLine(s,t.left,t.top,t.left,t.bottom),this.line.titleVisible&&(i=new se(this.line.lineColor),r=it.changeFontSize(this.line.font,this.line.font.size*e.options.zoom),t=e.getGenericStringFormat(),e.drawRotatedString9(this.line.text,r,i,this.point,t,this.mode,90,this.line.antialiasing,0))}},te.d.StiConstantLinesYGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r){super(t),this.line=e,this.point=i,this.mode=r}draw(e){var t=this.clientRectangle.clone(),i,r,t;let s=new ut(this.line.lineColor,this.line.lineWidth);s.penStyle=this.line.lineStyle,e.drawLine(s,t.left,t.top,t.left+t.width,t.top),this.line.titleVisible&&(i=new se(this.line.lineColor),r=it.changeFontSize(this.line.font,this.line.font.size*e.options.zoom),t=e.getGenericStringFormat(),e.drawRotatedString9(this.line.text,r,i,this.point,t,this.mode,0,this.line.antialiasing,0))}},te.d.StiLegendGeom=class extends te.d.StiCellGeom{constructor(e,t,i){super(t),this.legend=e,this.seriesItems=i}dispose(){super.dispose(),this.seriesItems.stimulsoft().clear(),this.seriesItems=null}draw(e){if(!this.legend.visible||0==this.seriesItems.length)return;let t=this.clientRectangle.clone();var i,i;null!=this.legendTitleGeom&&(t.y+=this.legendTitleGeom.clientRectangle.height,t.height-=this.legendTitleGeom.clientRectangle.height),0<t.width&&0<t.height&&(this.legend.showShadow&&(this.legend.chart.isAnimation?(i=new xt(new U(0),new U(0)),e.drawShadowRect(t,6,i)):e.drawCachedShadow(t,Nt.All,e.options.isPrinting)),e.fillRectangle2(this.legend.brush,t.x,t.y,t.width,t.height,null),i=new ut(this.legend.borderColor),e.drawRectangle2(i,t.x,t.y,t.width,t.height))}},te.d.StiLegendItemGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n){super(i),this.legend=e,this.item=t,this.colorIndex=r,this.legendItemsCount=s,this.legendItemIndex=n}draw(i){let r=this.clientRectangle.clone();if(this.legend.markerVisible){let e=new ne(this.clientRectangle.x,this.clientRectangle.y+(this.clientRectangle.height-this.legend.markerSize.height*i.options.zoom)/2,this.legend.markerSize.width*i.options.zoom,this.legend.markerSize.height*i.options.zoom);this.legend.markerAlignment==te.d.StiMarkerAlignment.Right&&(e.x=this.clientRectangle.right-e.width);let t=te.d.StiMarkerLegendFactory.createMarker(this.item.series);t.draw(i,this.item.series,e,this.colorIndex,this.legendItemsCount,this.legendItemIndex),this.legend.markerAlignment==te.d.StiMarkerAlignment.Left&&(r.x+=this.legend.markerSize.width*i.options.zoom),r.width-=this.legend.markerSize.width*i.options.zoom}this.legend.markerAlignment!=te.d.StiMarkerAlignment.Right&&(r.x+=2),r.width+=4;var e=new se(this.legend.labelsColor),t=it.changeFontSize(this.legend.font,this.legend.font.size*i.options.zoom);let s=i.getDefaultStringFormat();s.alignment=F.Near,s.lineAlignment=F.Center,s.formatFlags=0,this.legend.markerAlignment==te.d.StiMarkerAlignment.Right&&(s.formatFlags=tt.NoWrap),i.drawRotatedString6(this.item.text,t,e,r,s,rt.LeftTop,0,!0,0,!1)}},te.d.StiLegendTitleGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.legend=e}draw(e){var t=new se(this.legend.titleColor),i=it.changeFontSize(this.legend.titleFont,this.legend.titleFont.size*e.options.zoom);let r=e.getDefaultStringFormat();r.alignment=F.Center,r.lineAlignment=F.Center,r.formatFlags=0,e.drawString(this.legend.title,i,t,this.clientRectangle,r)}};{let e=class{implements(){return e.implementsStiLegendAreaMarker||(e.implementsStiLegendAreaMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendAreaMarker}draw(e,t,i,r,s,n){var l=t.stimulsoft().as(te.d.StiAreaSeries),a=l.lineColor,t=l.brush,l=te.d.StiLegendMarkerHelper.getAreaMarkerPath(i),a=new ut(a);e.pushSmoothingModeToAntiAlias(),e.fillPath(t,l,i,null);var i=te.d.StiLegendMarkerHelper.getAreaMarkerLinePoints(i);e.drawLines(a,i),e.popSmoothingMode()}};te.d.StiLegendAreaMarker=e}{let e=class{implements(){return e.implementsStiLegendCandelstickMarker||(e.implementsStiLegendCandelstickMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendCandelstickMarker}draw(e,t,i,r,s,n){var l,a=t.brush,o=t.borderColor,h=new ut(o);e.pushSmoothingModeToAntiAlias();var u=new ee(i.left+i.width/4,i.top+i.height/4),t=i.width/2,o=i.height/2;e.fillRectangle2(a,u.x,u.y,t,o,null),e.drawRectangle2(h,u.x,u.y,t,o),e.drawLine(h,i.x+i.width/2,i.y,i.x+i.width/2,i.top+i.height/4),e.drawLine(h,i.x+i.width/2,i.bottom,i.x+i.width/2,i.bottom-i.height/4),e.popSmoothingMode()}};te.d.StiLegendCandelstickMarker=e}{let e=class{implements(){return e.implementsStiLegendColumnMarker||(e.implementsStiLegendColumnMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendColumnMarker}draw(e,t,i,r,s,n){var l=t.legendColor,l=null!=l?new se(l):t.core.getSeriesBrush(r,s),s=new ut(t.core.getSeriesBorderColor(r,s));null!=t.chart&&null!=t.chart.style&&t.chart.style.core.fillColumn(e,i,l,null),e.drawRectangle2(s,i.x,i.y,i.width,i.height)}};te.d.StiLegendColumnMarker=e}{let e=class{implements(){return e.implementsStiLegendDoughnutMarker||(e.implementsStiLegendDoughnutMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendDoughnutMarker}draw(e,t,i,r,s,n){let l=t,a=l.brush;l.allowApplyBrush&&(a=l.core.getSeriesBrush(r,s),a=l.processSeriesBrushes(n,a));let o=l.borderColor;l.allowApplyBorderColor&&(o=l.core.getSeriesBorderColor(r,s));let h=[];var s=new ut(o);e.pushSmoothingModeToAntiAlias(),h.push(new gt(new ne(i.x-i.width,i.y,2*i.width,2*i.height),270,90)),h.push(new pt(i.right,i.bottom,i.x+i.width/2,i.bottom)),h.push(new gt(new ne(i.x-i.width/2,i.bottom-i.height/2,i.width,i.height),360,-90)),h.push(new pt(i.x,i.y+i.height/2,i.x,i.y)),e.fillPath(a,h,i,null),e.drawPath(s,h,i),e.popSmoothingMode()}};te.d.StiLegendDoughnutMarker=e}let Et=te.d.IStiFontIconsSeries;te.d.StiLegendFontIconMarker=class{draw(e,t,i,r,s,n){try{var l,a=t.as(Et).icon,o=t.legendColor,h=null!=o?new se(o):t.core.getSeriesBrush(r,s);te.a.StiFontIconsHelper.drawDirectionIcons(e,h,i,new ft(i.height,i.height),a,null,!0)}catch(e){}}};{let e=class{implements(){return e.implementsStiLegendFunnelMarker||(e.implementsStiLegendFunnelMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendFunnelMarker}draw(e,t,i,r,s,n){let l=t,a=l.brush;l.allowApplyBrush&&(a=l.core.getSeriesBrush(r,s),a=l.processSeriesBrushes(r,a));let o=l.borderColor;l.allowApplyBorderColor&&(o=l.core.getSeriesBorderColor(r,s));let h=[];var r=new ut(o);e.pushSmoothingModeToAntiAlias();var s=[new ee(i.x,i.y),new ee(i.right,i.y),new ee(i.x+3*i.width/4,i.top+i.height/2),new ee(i.x+3*i.width/4,i.bottom),new ee(i.x+1*i.width/4,i.bottom),new ee(i.x+1*i.width/4,i.top+i.height/2)];h.push(new dt(s)),h.push(new vt),e.fillPath(a,h,i,null),e.drawPath(r,h,null),e.popSmoothingMode()}};te.d.StiLegendFunnelMarker=e}{let e=class{implements(){return e.implementsStiLegendLineMarker||(e.implementsStiLegendLineMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendLineMarker}draw(e,t,i,r,s,n){let l=re.transparent,a=!1,o=!1,h=null;var u=t.stimulsoft().as(te.d.IStiRadarSeries);null!=u&&(l=Ze.toColor(u.marker.brush),h=u.marker.icon,o=!0);var u=t.stimulsoft().as(te.d.IStiRadarLineSeries);null!=u&&(l=u.lineColor,o=u.marker.visible,h=u.marker.icon,a=!0);var u=t.stimulsoft().as(te.d.IStiBaseLineSeries);null!=u&&(l=u.lineColor,o=u.marker.visible,h=u.marker.icon,a=!0);var u=t.stimulsoft().as(te.d.IStiStackedBaseLineSeries);null!=u&&(l=u.lineColor,o=u.marker.visible,h=u.marker.icon,a=!0);var u=t.stimulsoft().as(te.d.IStiScatterSeries);null!=u&&(l=Ze.toColor(u.marker.brush),h=u.marker.icon,o=!0,a=!1);var u=t.stimulsoft().as(te.d.IStiScatterLineSeries),r;null!=u&&(l=u.lineColor,o=u.marker.visible,h=u.marker.icon,a=!0);let d=t.stimulsoft().as(te.d.IStiBubbleSeries);if(null!=d){let e=d.brush;d.allowApplyStyle&&(e=d.core.getSeriesBrush(r,s),e=d.processSeriesBrushes(r,e)),l=Ze.toColor(e),o=!0,a=!1}null!=h?te.a.StiFontIconsHelper.drawDirectionIcons(e,new se(l),i,new ft(i.height,i.height),h,null,!1):(a&&(r=new ut(l),e.drawRectangle(r,i),e.drawLine(r,i.x,i.y+i.height/2,i.right,i.y+i.height/2)),o&&(a&&(i=new mt(i.x+i.width/4,i.y+i.height/4,i.width/2,i.height/2)),e.pushSmoothingModeToAntiAlias(),e.fillEllipse2(new se(l),i,null),e.popSmoothingMode()))}};te.d.StiLegendLineMarker=e}let Ot=J.Base.Context.StiCurveSegmentGeom;{let n=class{static getSteppedMarkerPath(e){let t=[];return t.push(new pt(e.x,e.y,e.x+e.width,e.y)),t.push(new pt(e.x+e.width,e.y,e.x+e.width,e.y+e.height)),t.push(new pt(e.x+e.width,e.y+e.height,e.x,e.y+e.height)),t.push(new pt(e.x,e.y+e.height,e.x,e.y)),t}static getAreaMarkerPath(e){var t=e.width/5,i=e.height/5;let r=[];return r.push(new pt(e.x,e.y+3.5*i,e.x,e.y+3.5*i)),r.push(new pt(e.x,e.y+3.5*i,e.x+2*t,e.y+.5*i)),r.push(new pt(e.x+2*t,e.y+.5*i,e.x+4*t,e.y+2.5*i)),r.push(new pt(e.x+4*t,e.y+2.5*i,e.x+5*t,e.y+1.5*i)),r.push(new pt(e.x+5*t,e.y+1.5*i,e.x+5*t,e.y+5*i)),r.push(new pt(e.x+5*t,e.y+5*i,e.x,e.y+5*i)),r.push(new pt(e.x,e.y+5*i,e.x,e.y+3*i)),r}static getAreaMarkerLinePoints(e){var t=e.width/5,i=e.height/5;let r=[];return r.push(new ee(e.x,e.y+3.5*i)),r.push(new ee(e.x+2*t,e.y+.5*i)),r.push(new ee(e.x+4*t,e.y+2.5*i)),r.push(new ee(e.x+5*t,e.y+1.5*i)),r}static getSplineAreaMarkerPath(e){var t=e.width/5,i=e.height/5;let r=[];r.push(new pt(e.x,e.y+5*i,e.x,e.y+3.5*i));var s=n.getSplineAreaMarkerLinePoints(e);return r.push(new Ot(s,.55)),r.push(new pt(e.x+5*t,e.y+1.5*i,e.x+5*t,e.y+5*i)),r.push(new pt(e.x+5*t,e.y+5*i,e.x,e.y+5*i)),r}static getSplineAreaMarkerLinePoints(e){var t=e.width/5,i=e.height/5;let r=[];return r.push(new ee(e.x,e.y+3.5*i)),r.push(new ee(e.x+2*t,e.y+.5*i)),r.push(new ee(e.x+4*t,e.y+2.5*i)),r.push(new ee(e.x+5*t,e.y+1.5*i)),r}};te.d.StiLegendMarkerHelper=n}{let e=class{implements(){return e.implementsStiLegendPictorialMarker||(e.implementsStiLegendPictorialMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendPictorialMarker}draw(e,t,i,r,s,n){var s=t.core.getSeriesBrush(r,s);e.pushSmoothingModeToAntiAlias(),e.fillEllipse2(s,i,null),e.popSmoothingMode()}};te.d.StiLegendPictorialMarker=e}{let e=class{implements(){return e.implementsStiLegendPieMarker||(e.implementsStiLegendPieMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendPieMarker}draw(e,t,i,r,s,n){let l=t,a=l.brush;l.allowApplyBrush&&(a=l.core.getSeriesBrush(r,s),a=l.processSeriesBrushes(r,a));let o=l.borderColor;l.allowApplyBorderColor&&(o=t.core.getSeriesBorderColor(r,s));let h=[];var s=new ut(o);e.pushSmoothingModeToAntiAlias(),h.push(new gt(new ne(i.x-i.width,i.y,2*i.width,2*i.height),270,90)),h.push(new pt(i.right,i.bottom,i.x,i.bottom)),h.push(new pt(i.x,i.bottom,i.x,i.y)),e.fillPath(a,h,i,null),e.drawPath(s,h,null),e.popSmoothingMode()}};te.d.StiLegendPieMarker=e}{let e=class{implements(){return e.implementsStiLegendRangeMarker||(e.implementsStiLegendRangeMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendRangeMarker}draw(e,t,i,r,s,n){var l=t.stimulsoft().as(te.d.StiRangeSeries),a=l.lineColor,o=l.brush;let h=[];var t=i.width/5,l=i.height/5;h.push(new pt(i.x,i.y+3*l,i.x,i.y+3*l)),h.push(new pt(i.x,i.y+3*l,i.x+2*t,i.y)),h.push(new pt(i.x+2*t,i.y,i.x+4*t,i.y+2*l)),h.push(new pt(i.x+4*t,i.y+2*l,i.x+5*t,i.y+1*l)),h.push(new pt(i.x+5*t,i.y+1*l,i.x+5*t,i.y+3*l)),h.push(new pt(i.x+5*t,i.y+3*l,i.x+4*t,i.y+4*l)),h.push(new pt(i.x+4*t,i.y+4*l,i.x+2*t,i.y+3*l)),h.push(new pt(i.x+2*t,i.y+3*l,i.x,i.y+5*l)),h.push(new pt(i.x,i.y+5*l,i.x,i.y+3*l));var a=new ut(a);e.pushSmoothingModeToAntiAlias(),e.fillPath(o,h,i,null),e.drawPath(a,h,i),e.popSmoothingMode()}};te.d.StiLegendRangeMarker=e}{let e=class{implements(){return e.implementsStiLegendSplineAreaMarker||(e.implementsStiLegendSplineAreaMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendSplineAreaMarker}draw(e,t,i,r,s,n){var l=t.stimulsoft().as(te.d.StiSplineAreaSeries),a=l.lineColor,o=l.brush,t=te.d.StiLegendMarkerHelper.getSplineAreaMarkerPath(i),l=new ut(a),a=te.d.StiLegendMarkerHelper.getSplineAreaMarkerLinePoints(i);e.pushSmoothingModeToAntiAlias(),e.fillPath(o,t,i,null),e.drawLines(l,a),e.popSmoothingMode()}};te.d.StiLegendSplineAreaMarker=e}{let e=class{implements(){return e.implementsStiLegendSplineRangeMarker||(e.implementsStiLegendSplineRangeMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendSplineRangeMarker}draw(e,t,i,r,s,n){var l=t.stimulsoft().as(te.d.StiSplineRangeSeries),a=l.lineColor,o=l.brush;let h=[];var u=i.width/5,t=i.height/5;h.push(new pt(i.x,i.y+5*t,i.x,i.y+3*t));let d=[];d.push(new ee(i.x,i.y+3*t)),d.push(new ee(i.x+2*u,i.y)),d.push(new ee(i.x+4*u,i.y+2*t)),d.push(new ee(i.x+5*u,i.y+1*t)),h.push(new Ot(d,l.tension)),h.push(new pt(i.x+5*u,i.y+1*t,i.x+5*u,i.y+3*t));let m=[];m.push(new ee(i.x+5*u,i.y+3*t)),m.push(new ee(i.x+4*u,i.y+4*t)),m.push(new ee(i.x+2*u,i.y+4*t)),m.push(new ee(i.x,i.y+5*t)),h.push(new Ot(m,l.tension));var a=new ut(a);e.pushSmoothingModeToAntiAlias(),e.fillPath(o,h,i,null),e.drawCurve(a,d,l.tension),e.drawCurve(a,m,l.tension),e.popSmoothingMode()}};te.d.StiLegendSplineRangeMarker=e}{let e=class{implements(){return e.implementsStiLegendStackedAreaMarker||(e.implementsStiLegendStackedAreaMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendStackedAreaMarker}draw(e,t,i,r,s,n){var l=t.stimulsoft().as(te.d.StiStackedAreaSeries),a=l.lineColor,t=l.brush,l=te.d.StiLegendMarkerHelper.getAreaMarkerPath(i),a=new ut(a);e.pushSmoothingModeToAntiAlias(),e.fillPath(t,l,i,null);var i=te.d.StiLegendMarkerHelper.getAreaMarkerLinePoints(i);e.drawLines(a,i),e.popSmoothingMode()}};te.d.StiLegendStackedAreaMarker=e}{let e=class{implements(){return e.implementsStiLegendStackedSplineAreaMarker||(e.implementsStiLegendStackedSplineAreaMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendStackedSplineAreaMarker}draw(e,t,i,r,s,n){var l=t.stimulsoft().as(te.d.StiStackedSplineAreaSeries),a=l.lineColor,o=l.brush,t=te.d.StiLegendMarkerHelper.getSplineAreaMarkerPath(i),l=new ut(a),a=te.d.StiLegendMarkerHelper.getSplineAreaMarkerLinePoints(i);e.pushSmoothingModeToAntiAlias(),e.fillPath(o,t,i,null),e.drawLines(l,a),e.popSmoothingMode()}};te.d.StiLegendStackedSplineAreaMarker=e}{let e=class{implements(){return e.implementsStiLegendSteppedAreaMarker||(e.implementsStiLegendSteppedAreaMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendSteppedAreaMarker}draw(e,t,i,r,s,n){var l=t.stimulsoft().as(te.d.StiSteppedAreaSeries),a=l.lineColor,t=l.brush,l=te.d.StiLegendMarkerHelper.getSteppedMarkerPath(i),a=new ut(a);e.pushSmoothingModeToAntiAlias(),e.fillPath(t,l,i,null),e.drawPath(a,l,i),e.popSmoothingMode()}};te.d.StiLegendSteppedAreaMarker=e}{let e=class{implements(){return e.implementsStiSteppedRangeSeries||(e.implementsStiSteppedRangeSeries=[te.d.IStiLegendMarker]),e.implementsStiSteppedRangeSeries}draw(e,t,i,r,s,n){var l=t.stimulsoft().as(te.d.StiSteppedRangeSeries),a=l.lineColor,t=l.brush,l=te.d.StiLegendMarkerHelper.getSteppedMarkerPath(i),a=new ut(a);e.pushSmoothingModeToAntiAlias(),e.fillPath(t,l,i,null),e.drawPath(a,l,i),e.popSmoothingMode()}};te.d.StiLegendSteppedRangeMarker=e}{let e=class{implements(){return e.implementsStiLegendStockMarker||(e.implementsStiLegendStockMarker=[te.d.IStiLegendMarker]),e.implementsStiLegendStockMarker}draw(e,t,i,r,s,n){var l,t=t.lineColor,t=new ut(t);e.pushSmoothingModeToAntiAlias(),e.drawLine(t,i.left+i.width/4,i.top+i.height/4,i.left+i.width/2,i.top+i.height/4),e.drawLine(t,i.left+i.width/2,i.top,i.left+i.width/2,i.bottom),e.drawLine(t,i.left+i.width/2,i.bottom-i.height/4,i.right-i.width/4,i.bottom-i.height/4),e.popSmoothingMode()}};te.d.StiLegendStockMarker=e}te.d.StiMarkerLegendFactory=class{static createMarker(e){if(e.is(te.d.IStiFontIconsSeries)&&null!=e.icon)return new te.d.StiLegendFontIconMarker;if(e.is(te.d.IStiDoughnutSeries))return new te.d.StiLegendDoughnutMarker;if(e.is(te.d.IStiPieSeries))return new te.d.StiLegendPieMarker;if(e.is(te.d.StiAreaSeries))return new te.d.StiLegendAreaMarker;if(e.is(te.d.StiStackedAreaSeries))return new te.d.StiLegendStackedAreaMarker;if(e.is(te.d.StiSplineAreaSeries))return new te.d.StiLegendSplineAreaMarker;if(e.is(te.d.StiStackedSplineAreaSeries))return new te.d.StiLegendStackedSplineAreaMarker;if(e.is(te.d.StiSteppedAreaSeries))return new te.d.StiLegendSteppedAreaMarker;if(e.is(te.d.StiRangeSeries))return new te.d.StiLegendRangeMarker;if(e.is(te.d.StiSplineRangeSeries))return new te.d.StiLegendSplineRangeMarker;if(e.is(te.d.StiSteppedRangeSeries))return new te.d.StiLegendSteppedRangeMarker;if(e.is(te.d.IStiBaseLineSeries)||e.is(te.d.IStiStackedBaseLineSeries)||e.is(te.d.IStiRadarSeries))return new te.d.StiLegendLineMarker;if(e.is(te.d.IStiFunnelSeries))return new te.d.StiLegendFunnelMarker;if(e.is(te.d.IStiStockSeries))return new te.d.StiLegendStockMarker;if(e.is(te.d.IStiCandlestickSeries))return new te.d.StiLegendCandelstickMarker;if(e.is(te.d.IStiPictorialSeries))return new te.d.StiLegendPictorialMarker;return new te.d.StiLegendColumnMarker}};let Gt=J.Base.Context.StiInteractionDataGeom;{let e=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n,l,a){super(te.d.StiMarkerCoreXF.getMarkerRect(r,s.size,l)),this.showShadow=!1,this.isTooltipMode=!1,this.series=e,this.index=t,this.value=i,this.point=r,this.marker=s,this.showShadow=n,this.isTooltipMode=a}implements(){return e.implementsStiMarkerGeom||(e.implementsStiMarkerGeom=super.implements().concat([L])),e.implementsStiMarkerGeom}getValueIndex(){let e=this.index;return this.series.is(te.d.IStiClusteredBarSeries)||this.series.is(te.d.IStiStackedBarSeries)||this.series.is(te.d.IStiFullStackedBarSeries)?this.series.chart.area.is(te.d.IStiAxisArea)&&!this.series.chart.area.reverseVert&&(e=this.series.values.length-e-1):this.series.chart.area.is(te.d.IStiAxisArea)&&this.series.chart.area.reverseHor&&(e=this.series.values.length-e-1),e}getHyperlink(){return this.getHyperlink2(this.getValueIndex())}getHyperlink2(e){return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length?this.series.hyperlinks[e]:null}getToolTip(){return this.getToolTip2(this.getValueIndex())}getToolTip2(e){let t=null;var e;return null!=this.series.toolTips&&e<this.series.toolTips.length&&(t=this.series.toolTips[e]),!Z.isNullOrEmpty(t)&&t.stimulsoft().contains('"StiColor":"#ffffff"')&&(e=Ze.toColor(this.series.processSeriesBrushes(this.index,this.marker.brush)),t=t.replace('"StiColor":"#ffffff"',Z.format('"StiColor":"{0}"',J.System.Drawing.ColorTranslator.toHtml2(e,!1)))),t}contains(e,t){if(this.invisible)return!1;return this.getMouseOverRect().contains(e,t)}getMouseOverRect(){let e=this.clientRectangle.clone();return e.inflate(e.width/2,e.height/2),e}draw(e){e.pushSmoothingModeToAntiAlias();var t=e.options.zoom;let i=this.series.chart,r=this.marker.clone();var s=this.series.processSeriesMarkerVisible(this.index)||this.marker.visible;this.isTooltipMode&&!s||(r.brush=this.series.processSeriesBrushes(this.index,this.marker.brush),r.angle=this.series.processSeriesMarkerAngle(this.index,this.marker.angle),r.type=this.series.processSeriesMarkerType(this.index,this.marker.type),r.visible=s),this.isTooltipMode&&!s&&(r.brush=null,r.borderColor=re.transparent);let n=null;i.isAnimation&&(n=new Gt,n.componentName=i.name,n.componentIndex=i.page.components.indexOf(i).toString(),n.pageGuid=this.series.stimulsoft().as(te.d.StiSeries).drillDownPageGuid,n.pageIndex=i.page.report.renderedPages.indexOf(i.page).toString(),n.elementIndex=this.elementIndex.toString(),n.interactionData=this.interaction),this.marker.core.draw(e,r,this.point,t,this.showShadow,!1,this.isTooltipMode,i.isAnimation,this.getToolTip(),this,n),e.popSmoothingMode()}};te.d.StiMarkerGeom=e}te.d.StiRadarAxisGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.axis=e}drawAxisLine(e,t){var i=t.right;let r=new ut(this.axis.lineColor,this.axis.lineWidth);r.penStyle=this.axis.lineStyle,e.drawLine(r,i,t.y,i,t.bottom)}drawMinorTicks(t,i,r,s,e,n){var l,a=(e-s)/(n.minorCount+1),o=n.minorLength*t.options.zoom;for(let e=1;e<=n.minorCount;e++){var h=s+a*e,u;t.drawLine(i,r,h,r-o,h)}}drawTicks(e,t,i,r){if(!i.visible)return;var s=i.length*e.options.zoom,n=t.right,l=n-s,a;let o=0;for(a of this.axis.info.ticksCollection){var h=a.position,u;e.drawLine(r,n,h,l,h),i.minorVisible&&o!=this.axis.info.ticksCollection.length-1&&(u=this.axis.info.ticksCollection[o+1].position,this.drawMinorTicks(e,r,n,h,u,i)),o++}}drawAxis(e,t){let i=new ut(this.axis.lineColor,this.axis.lineWidth);i.penStyle=this.axis.lineStyle,this.drawTicks(e,t,this.axis.area.yAxis.ticks,i),this.drawAxisLine(e,t)}draw(e){var t=this.clientRectangle.clone();if(t.width<=0||t.height<=0)return;this.drawAxis(e,t)}},te.d.StiXRadarAxisLabelGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n,l,a){super(n),this.axis=e,this.labelRect=l,this.text=t,this.angle=s,this.point=a,this.labelBrush=i,this.borderColor=r}draw(e){var t=this.clientRectangle.clone(),i=new ut(this.borderColor),r=it.changeFontSize(this.axis.labels.font,this.axis.labels.font.size*e.options.zoom);let s=e.getGenericStringFormat();s.trimming=et.None,this.axis.labels.wordWrap||(s.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap),this.axis.labels.antialiasing&&e.pushSmoothingModeToAntiAlias();var n=M.round2(this.labelRect.x+this.labelRect.width/2,0),l=M.round2(this.labelRect.y+this.labelRect.height/2,0);e.pushTranslateTransform(n,l),e.pushRotateTransform(this.angle),t.isEmpty||(e.fillRectangle(this.axis.labels.brush,t,null),this.axis.labels.drawBorder&&e.drawRectangle2(i,t.x,t.y,t.width,t.height)),e.popTransform(),e.popTransform(),this.axis.labels.antialiasing&&e.popSmoothingMode();let a=rt.CenterBottom,o=this.angle;90<=this.angle&&this.angle<=270&&(o=this.angle+180,a=rt.CenterTop),this.axis.labels.rotationLabels||(0<this.angle&&this.angle<180?a=rt.LeftCenter:this.angle<360&&180<this.angle?a=rt.RightCenter:0==this.angle?a=rt.CenterBottom:180==this.angle&&(a=rt.CenterTop),o=0),e.drawRotatedString9(this.text,r,this.labelBrush,this.point,s,a,o,this.axis.labels.antialiasing,M.trunc(this.axis.labels.width*e.options.zoom))}},te.d.StiYRadarAxisLabelGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n,l){super(t),this.axis=e,this.text=r,this.stripLine=s,this.textPoint=i,this.angle=n,this.rotationMode=l}draw(e){var t=this.axis.yCore.getStringFormatGeom(e),i=this.axis.yCore.getFontGeom(e),r=new se(this.axis.labels.color);e.drawRotatedString9(this.text,i,r,this.textPoint,t,this.rotationMode,this.angle,this.axis.labels.antialiasing,M.trunc(this.axis.labels.width*e.options.zoom))}};var ce=class{static getMouseOverColor(){return re.fromArgb(100,re.white)}static getLineMouseOverColor(){return re.fromArgb(100,re.red)}};ce.mouseOverLineDistance=8,ce.mouseOverSplineDistance=15,te.d.StiMouseOverHelper=ce;let Vt=te.d.IStiSeriesBorderThickness;{let e=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n){super(s),this.seriesBrush=n,this.areaGeom=e,this.series=r,this.value=t,this.index=i}implements(){return e.implementsStiSeriesElementGeom||(e.implementsStiSeriesElementGeom=super.implements().concat([L])),e.implementsStiSeriesElementGeom}getValueIndex(){let e=this.index;return this.series.is(te.d.IStiClusteredBarSeries)||this.series.is(te.d.IStiStackedBarSeries)||this.series.is(te.d.IStiFullStackedBarSeries)?this.series.chart.area.is(te.d.IStiAxisArea)&&!this.series.chart.area.reverseVert&&(e=this.series.values.length-e-1):this.series.chart.area.is(te.d.IStiAxisArea)&&this.series.chart.area.reverseHor&&(e=this.series.values.length-e-1),e}getHyperlink(){return this.getHyperlink2(this.getValueIndex())}getHyperlink2(e){return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length?this.series.hyperlinks[e]:null}getToolTip(){var e=this.getValueIndex();return this.getToolTip2(e)}getToolTip2(e){let t=null;var e,e;return null!=this.series.toolTips&&e<this.series.toolTips.length&&(t=this.series.toolTips[e]),Z.isNullOrEmpty(t)||!t.stimulsoft().contains('"StiColor":"#ffffff"')||null!=(e=this.seriesBrush||(null!=this.series?this.series["brush"]:null))&&(e=J.Base.Drawing.StiBrush.toColor(e),t=t.replace('"StiColor":"#ffffff"',Z.format('"StiColor":"{0}"',J.System.Drawing.ColorTranslator.toHtml2(e,!1)))),t}get interaction(){return this._interaction}set interaction(e){this._interaction=e}draw(e){}getInteractionData(){let e=this.series.chart,t=new Gt;return t.componentName=e.name,t.componentIndex=e.page.components.indexOf(e).toString(),t.pageGuid=this.series.stimulsoft().as(te.d.StiSeries).drillDownPageGuid,t.pageIndex=e.page.report.renderedPages.indexOf(e.page).toString(),t.elementIndex=this.elementIndex.toString(),t.interactionData=this.interaction,t}getSeriesBorderThickness(e){var t=this.series.as(Vt);if(null!=t)return t.borderThickness;return 1}};te.d.StiSeriesElementGeom=e}te.d.StiSeriesGeom=class extends te.d.StiCellGeom{constructor(e,t,i){super(i),this.areaGeom=e,this.series=t}draw(e){}},te.d.StiBoxAndWhiskerSeriesElementGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m,c){super(u),this.series=t,this.areaGeom=e,this.positionX=i,this.minimum=r,this.maximum=s,this.firstQuartile=n,this.thirdQuartile=l,this.median=a,this.mean=h,this.values=o,this.brush=d,this.borderColor=m,this.beginTime=c}draw(t){var e=this.series.chart,i=this.areaGeom.area,r=new ut(this.borderColor,this.getSeriesBorderThickness(t.options.zoom)),s=i.xAxis.info.dpi/2,n=s/3,l=n/6,s;if(t.pushSmoothingModeToAntiAlias(),e.isAnimation){var i=new xt(te.d.StiChartHelper.globalBeginTimeElement,this.beginTime),e;if(t.drawAnimationLines(r,[new wt(this.positionX-n/2,this.maximum),new wt(this.positionX+n/2,this.maximum)],i),t.drawAnimationLines(r,[new wt(this.positionX-n/2,this.minimum),new wt(this.positionX+n/2,this.minimum)],i),t.drawAnimationLines(r,[new wt(this.positionX,this.maximum),new wt(this.positionX,this.thirdQuartile)],i),t.drawAnimationLines(r,[new wt(this.positionX,this.firstQuartile),new wt(this.positionX,this.minimum)],i),t.drawAnimationRectangle(this.brush,r,new mt(this.positionX-s/2,this.thirdQuartile,s,this.firstQuartile-this.thirdQuartile),null,i,null,null),t.drawAnimationLines(r,[new wt(this.positionX-s/2,this.median),new wt(this.positionX+s/2,this.median)],i),null!=this.values){let e=1;for(var a of this.values){var o=new xt(te.d.StiChartHelper.globalBeginTimeElement,new U(this.beginTime.ticks+te.d.StiChartHelper.globalBeginTimeElement.ticks/this.values.length*e));t.fillDrawAnimationEllipse(null,r,this.positionX-l/2,a-l/2,l,l,null,null,o,null),e++}}null!=this.mean&&(e=this.mean,t.drawAnimationLines(r,[new wt(this.positionX-l,e-l),new wt(this.positionX+l,e+l)],i),t.drawAnimationLines(r,[new wt(this.positionX+l,e-l),new wt(this.positionX-l,e+l)],i))}else{if(t.drawLine(r,this.positionX-n/2,this.maximum,this.positionX+n/2,this.maximum),t.drawLine(r,this.positionX-n/2,this.minimum,this.positionX+n/2,this.minimum),t.drawLine(r,this.positionX,this.maximum,this.positionX,this.thirdQuartile),t.drawLine(r,this.positionX,this.firstQuartile,this.positionX,this.minimum),t.fillRectangle2(this.brush,this.positionX-s/2,this.thirdQuartile,s,this.firstQuartile-this.thirdQuartile,null),t.drawRectangle2(r,this.positionX-s/2,this.thirdQuartile,s,this.firstQuartile-this.thirdQuartile),t.drawLine(r,this.positionX-s/2,this.median,this.positionX+s/2,this.median),null!=this.values)for(var h of this.values)t.drawEllipse2(r,new mt(this.positionX-l/2,h-l/2,l,l));null!=this.mean&&(s=this.mean,t.drawLine(r,this.positionX-l,s-l,this.positionX+l,s+l),t.drawLine(r,this.positionX+l,s-l,this.positionX-l,s+l))}t.popSmoothingMode()}getSeriesBorderThickness(e){var t=this.series.as(Vt);if(null!=t)return t.borderThickness*e;return 1}},te.d.StiBubbleSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a){super(e,t,i,n,l,r),this.seriesBrush=r,this.seriesBorderColor=s,this.beginTime=a}contains(e,t){if(this.invisible)return!1;var i=new ee(this.clientRectangle.x+this.clientRectangle.width/2,this.clientRectangle.y+this.clientRectangle.height/2),e=Math.abs(i.x-e),t=Math.abs(i.y-t),r;return Math.sqrt(e*e+t*t)<=this.clientRectangle.width/2}draw(i){let r=this.clientRectangle.clone();var e=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(i.options.zoom)),t=this.series.chart,s=this.series.as(te.d.IStiFontIconsSeries);if(null!=s&&null!=s.icon)return void te.a.StiFontIconsHelper.drawDirectionIcons(i,this.seriesBrush,r,new Tt(r.height,r.height),s.icon,this.getToolTip(),!1);if(t.isAnimation){var n=new ct(0,0,0,0,0,0,te.d.StiChartHelper.globalDurationElement,this.beginTime);i.fillDrawAnimationEllipse(this.seriesBrush,e,r.x,r.y,r.width,r.height,this.getToolTip(),this,n,this.getInteractionData())}else{if(this.series.showShadow){var n=new se(re.fromArgb(100,re.black));let e=i.createShadowGraphics(),t=r.clone();t.x=0,t.y=0,t.x+=4*i.options.zoom,t.y+=4*i.options.zoom,e.fillEllipse2(n,t,this.getInteractionData()),i.drawShadow(e,r,0)}i.fillEllipse2(this.seriesBrush,r,this.getInteractionData()),i.pushSmoothingModeToAntiAlias(),i.drawEllipse2(e,r),i.popSmoothingMode()}}};let Xt=J.Base.Context.Animation.StiColumnAnimation;te.d.StiClusteredBarSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o){super(e,i,r,l,o,s),this.seriesBorderColor=n,this.valueStart=t,this.columnRectStart=a}draw(i){let e=this.series.chart;var t=this.clientRectangle.clone(),r=this.series.as(te.d.IStiFontIconsSeries);if(null!=r&&null!=r.icon){var s=e.area.as(te.d.IStiRoundValuesArea),n=null==s?void 0:s.roundValues;return void te.a.StiFontIconsHelper.drawDirectionIcons(i,this.seriesBrush,t,new Tt(t.height,t.height),r.icon,this.getToolTip(),!1,n)}var l=this.getAnimation();if(null!=l){var s=this.clientRectangle.clone(),r=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(i.options.zoom)),n,n,n;this.series.showShadow&&(n=this.areaGeom.area,n=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/n.core.valuesCount*this.index),n=new xt(te.d.StiChartHelper.globalDurationElement,new U(n.ticks+te.d.StiChartHelper.globalDurationElement.ticks)),i.drawShadowRect(s,5,n)),i.drawAnimationBar(this.seriesBrush,r,t,this.value,this.getToolTip(),this,l,this.getInteractionData())}else{let t=this.clientRectangle.clone();if(this.series.showShadow&&4<t.width&&4<t.height){let e=t.clone();this.value<0?(e.y--,i.drawCachedShadow(e,Nt.Left|Nt.Bottom,i.options.isPrinting)):0<this.value&&i.drawCachedShadow(new ne(e.x-8,e.y,e.width+8,e.height),Nt.Top|Nt.Right|Nt.Edge|Nt.Bottom,i.options.isPrinting,e)}var l=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(i.options.zoom));this.series.chart.style.core.fillColumn(i,t,this.seriesBrush,this.getInteractionData());let e=null;e=0<this.value?[new ee(t.right,t.y),new ee(t.x,t.y),new ee(t.x,t.bottom),new ee(t.right,t.bottom)]:[new ee(t.x,t.y),new ee(t.right,t.y),new ee(t.right,t.bottom),new ee(t.x,t.bottom)],i.drawLines(l,e)}}getAnimation(){if(!this.series.chart.isAnimation)return null;let e=this.areaGeom.area;var t=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/e.core.valuesCount*this.index),i;let r=new Xt(this.columnRectStart,this.clientRectangle,te.d.StiChartHelper.globalDurationElement,t),s=(e.yAxis.core.getStartFromZero()?e.yAxis.info.stripLines.getByIndex(this.index+1):e.yAxis.info.stripLines.getByIndex(this.index)).valueObject;return s=null==s?"":s.stimulsoft().toString(),r.id=`series_${this.series.chart.series.indexOf(this.series)}_${s}`,Xt.isAnimationChangingValues(this.series,r.id)&&r.applyPreviousAnimation(this.series.chart.previousAnimations),r}};let _t=J.Base.Context.Animation.StiTranslationAnimation,Ht=J.Base.Context.Animation.StiPointsAnimation;{let r=class extends te.d.StiSeriesGeom{constructor(e,t,i){super(e,i,r.getClientRectangle(t.points,i.is(te.d.StiBaseLineSeries)?i.lineWidth:0)),this.points=t.points.map(e=>e),null!=t.pointsFrom&&null!=t.pointsFrom[0]||(t.pointsFrom=t.points.map(e=>e)),this.pointsFrom=t.pointsFrom.map(e=>e),this.pointsIds=t.pointsIds.map(e=>e),this.additionalSeriesId=t.additionalSeriesId}get allowMouseOver(){return this.series.interaction.drillDownEnabled&&this.series.interaction.allowSeries}static getClientRectangle(e,t){if(null==e||0==e.length)return ne.empty;let i=ee.empty,r=ee.empty;for(var s of e){if(null==s)continue;i==ee.empty?(i=s,r=s):(i.x=Math.min(i.x,s.x),i.y=Math.min(i.y,s.y),r.x=Math.max(r.x,s.x),r.y=Math.max(r.y,s.y))}return new ne(i.x-t/2,i.y-t/2,r.x-i.x+t,r.y-i.y+t)}draw(e){}getAnimation(e=this.points){if(!this.series.chart.isAnimation)return null;if(null==this.pointsFrom||null==this.pointsIds)return null;let t=[],i=[],r=[];for(let e=0;e<this.pointsFrom.length;e++)null!=this.pointsFrom[e]&&null!=this.points[e]&&null!=this.pointsIds[e]&&(t.push(this.pointsFrom[e]),i.push(this.points[e]),r.push(this.pointsIds[e]));return this.getAnimation2(t,i,r)}getAnimationConnect(e=this.points){if(!this.series.chart.isAnimation)return null;if(null==this.pointsFrom||null==this.pointsIds)return null;let r=[],s=[],n=[],l=0;for(let i of e)if(null!=i&&!s.stimulsoft().toList().exists(e=>e.equals(i))){let e=this.pointsFrom[l];null==e&&(e=i);let t=this.pointsIds[l];Z.isNullOrEmpty(t)&&(t=l.toString()+"_"),r.push(e),s.push(i),n.push(t),l++}return this.getAnimation2(r,s,n)}getAnimation2(e,t,i){if(!this.series.chart.isAnimation)return null;if(0==e.length)return null;let r=null,s=null;if(this.series.chart.isAnimationChangingValues&&null!=e&&null!=e[0]&&null!=i&&(s=new Ht(e,t,i,te.d.StiChartHelper.globalDurationElement,U.zero),s.id=`series_${this.series.chart.series.indexOf(this.series)}`+this.additionalSeriesId,Ht.isAnimationChangingValues(this.series,i,s.id)&&(s.applyPreviousAnimation(this.series.chart.previousAnimations),r=s)),null==r){let e=new _t(ee.empty,ee.empty,te.d.StiChartHelper.globalDurationElement,U.zero);e.anotherAnimation=s,e.id=`series_${this.series.chart.series.indexOf(this.series)}`+this.additionalSeriesId,r=e}return r}};te.d.StiBaseLineSeriesGeom=r}te.d.StiLineSeriesGeom=class extends te.d.StiBaseLineSeriesGeom{constructor(e,t,i){super(e,t,i),this.pointsNullConnect=t.pointsNullConnect,this.pointsZeroConnect=t.pointsZeroConnect}contains(t,i){if(this.invisible)return!1;for(let e=0;e<this.points.length-1;e++){var r=this.points[e],s=this.points[e+1],n;if(null==r||null==s)continue;if(te.d.StiPointHelper.isLineContainsPoint(r,s,te.d.StiMouseOverHelper.mouseOverLineDistance,new ee(t,i)))return!0}return!1}draw(s){let e=_.Solid,t=1,n=re.black,i=!0,r=null,l=!0;var a=this.getAnimation(),o=this.series.stimulsoft().as(te.d.IStiBaseLineSeries);null!=o&&(e=o.lineStyle,t=o.lineWidth,n=o.lineColor,i=o.showShadow,r=o.lineMarker,l=o.lighting);var o=this.series.stimulsoft().as(te.d.IStiRadarLineSeries);null!=o&&(e=o.lineStyle,t=o.lineWidth,n=o.lineColor,i=o.showShadow,l=o.lighting);var o=this.series.stimulsoft().as(te.d.IStiRadarAreaSeries);null!=o&&(e=o.lineStyle,t=o.lineWidth,n=o.lineColor,i=o.showShadow,l=o.lighting),s.pushSmoothingModeToAntiAlias();var h=e,u=t*s.options.zoom,o,d;let m=new ut(n,u);if(m.penStyle=h,i){let e=new ut(re.fromArgb(50,0,0,0),u+.5*s.options.zoom);e.penStyle=h,s.pushTranslateTransform(u,u),te.d.StiNullableDrawing.drawLines(s,e,this.points,a),null!=r&&r.visible&&(o=new se(re.fromArgb(50,0,0,0)),r.core.drawLines(s,this.points,s.options.zoom,o,null,r.type,r.step,r.size,r.angle)),s.popTransform()}if(null!=this.pointsZeroConnect){let e=new ut(n,u);e.penStyle=_.Dash;var c=this.getAnimationConnect(this.pointsZeroConnect);te.d.StiNullableDrawing.drawLines(s,e,this.pointsZeroConnect,c)}if(null!=this.pointsNullConnect){let e=new ut(n,u);e.penStyle=_.Dash;var c=this.getAnimationConnect(this.pointsNullConnect);te.d.StiNullableDrawing.drawLines(s,e,this.pointsNullConnect,c)}if(this.series.is(te.d.StiLineSeries)&&this.series.allowApplyColorNegative){var S=this.series.lineColorNegative;let t=new ut(S,u);t.penStyle=h;let e=this.series.chart.area;var g=e.axisCore.getDividerY();let i=[],r=[];for(let e=0;e<this.points.length;e++){var p=this.points[e],f=e!=this.points.length-1?this.points[e+1]:null,w,p;if(p.y>g){if(i.push(p),null==f||f.y<g||f.y==g&&e+2<this.points.length&&this.points[e+2].y<=g){if(null!=f&&(w=this.getPointCross(p,this.points[e+1],g),i.push(w),f.y==g&&e+2<this.points.length&&this.points[e+2].y<=g&&i.push(this.points[e+2]),r.push(w)),te.d.StiNullableDrawing.drawLines(s,t,i,a),u>=2*s.options.zoom&&l){var w=.5*s.options.zoom;s.pushTranslateTransform(-w,-w);let e=new ut(qe.light(S,70),u);e.penStyle=h,te.d.StiNullableDrawing.drawLines(s,e,i,a),s.popTransform()}i.stimulsoft().clear()}}else if(r.push(p),null==f||f.y>g){if(null!=f&&(p=this.getPointCross(p,this.points[e+1],g),i.push(p),r.push(p),r.push(f)),te.d.StiNullableDrawing.drawLines(s,m,r,a),u>=2*s.options.zoom&&l){var f=.5*s.options.zoom;s.pushTranslateTransform(-f,-f);let e=new ut(qe.light(n,70),u);e.penStyle=h,te.d.StiNullableDrawing.drawLines(s,e,r,a),s.popTransform()}r.stimulsoft().clear()}}}else if(te.d.StiNullableDrawing.drawLines(s,m,this.points,a),u>=2*s.options.zoom&&l){var d=.5*s.options.zoom;s.pushTranslateTransform(-d,-d);let e=new ut(qe.light(n,70),u);e.penStyle=h,te.d.StiNullableDrawing.drawLines(s,e,this.points,a),s.popTransform()}null!=r&&r.visible&&(d=new ut(r.borderColor),r.core.drawLines(s,this.points,s.options.zoom,r.brush,d,r.type,r.step,r.size,r.angle)),s.popSmoothingMode()}getPointCross(e,t,i){var r=e.y,s=e.x,e=t.y,t=t.x,s=Math.tan(Math.atan((t-s)/(r-e)))*(r-i)+s;return new ee(s,i)}},te.d.StiAreaSeriesGeom=class extends te.d.StiLineSeriesGeom{contains(t,i){let e=this.series.chart.area;var r=e.axisCore.getDividerY();if(this.invisible)return!1;for(let e=0;e<this.points.length-1;e++){var s=this.points[e],n=this.points[e+1];if(null==s||null==n)continue;var l=new ee(n.x,r),a=new ee(s.x,r),o;if(te.d.StiPointHelper.isPointInPolygon(new ee(t,i),[s,a,l,n]))return!0}return!1}draw(l){var a=this.series;let o=this.series.chart.area;var h=o.axisCore.getDividerY(),e=te.d.StiNullableDrawing.getPointsList(this.points),u=null!=this.pointsFrom?te.d.StiNullableDrawing.getPointsList(this.pointsFrom):null,t,i,r,r;if(this.series.chart.isAnimation)for(let n=0;n<e.length;n++){var d=e[n],m;let t=[],i=new pt(d[0].x,h,d[0].x,d[0].y),r=new dt(d),s=new pt(d[d.length-1].x,d[d.length-1].y,d[d.length-1].x,h);if(t.push(i),t.push(r),t.push(s),Ht.isAnimationChangingValues(this.series,this.pointsIds)){var c=u[n],d,m,m;let e=new Ht(c,d,this.pointsIds,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);e.id=`series_${this.series.chart.series.indexOf(this.series)}`,e.applyPreviousAnimation(this.series.chart.previousAnimations),i.animation=new Ht([new ee(e.pointsFrom[0].x,h),e.pointsFrom[0]],null,null,e.duration,e.beginTime),r.animation=e,s.animation=new Ht([e.pointsFrom[e.pointsFrom.length-1],new ee(e.pointsFrom[e.pointsFrom.length-1].x,h)],null,null,e.duration,e.beginTime),i.animation.beginTimeCorrect=e.beginTimeCorrect,s.animation.beginTimeCorrect=e.beginTimeCorrect,l.animations.push(e),l.fillDrawAnimationPath(a.brush,null,t,ht.getBoundsState,null,null,null),a.allowApplyBrushNegative&&null!=a.brushNegative&&(d=o.axisCore.scrollRangeX*o.axisCore.scrollDpiX,m=o.axisCore.scrollRangeY*o.axisCore.scrollDpiY-h,m=new ne(0,h,d,m),l.pushClip(m),l.fillDrawAnimationPath(a.brushNegative,null,t,ht.getBoundsState,null,null,null),l.popClip())}else{null!=a.brush&&(m=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement),l.fillDrawAnimationPath(a.brush,null,t,ht.getBoundsState,null,m,null))}}else for(var r of e){let e=[];e.push(new pt(r[0].x,h,r[0].x,r[0].y)),e.push(new dt(r)),e.push(new pt(r[r.length-1].x,r[r.length-1].y,r[r.length-1].x,h)),null!=a.brush&&l.fillPath(a.brush,e,ht.getBoundsState,null),a.allowApplyBrushNegative&&null!=a.brushNegative&&(i=o.axisCore.scrollRangeX*o.axisCore.scrollDpiX,r=o.axisCore.scrollRangeY*o.axisCore.scrollDpiY-h,r=new ne(0,h,i,r),l.pushClip(r),l.fillPath(a.brushNegative,e,ht.getBoundsState,null),l.popClip())}}constructor(e,t,i){super(e,t,i)}};let zt=te.d.IStiRoundValuesArea;te.d.StiClusteredColumnSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a){super(e,t,i,n,l,r),this.seriesBrush=r,this.seriesBorderColor=s,this.columnRectStart=a}draw(t){let e=this.series.chart;var i=this.clientRectangle.clone(),r=this.series.as(te.d.IStiFontIconsSeries);if(null!=r&&null!=r.icon){var s=e.area.as(zt),n=null==s?void 0:s.roundValues;return void te.a.StiFontIconsHelper.drawDirectionIcons(t,this.seriesBrush,i,new Tt(i.width,i.width),r.icon,this.getToolTip(),!0,n)}var s=this.getAnimation();if(null!=s){var r=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(t.options.zoom)),n,n,n;this.series.showShadow&&1<i.width&&(n=this.areaGeom.area,n=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/n.core.valuesCount*this.index),n=new xt(te.d.StiChartHelper.globalDurationElement,new U(n.ticks+te.d.StiChartHelper.globalDurationElement.ticks)),t.drawShadowRect(i,5,n)),t.drawAnimationColumn(this.seriesBrush,r,i,this.value,this.getToolTip(),this,s,this.getInteractionData())}else{var i=this.clientRectangle.clone();this.series.showShadow&&4<i.width&&4<i.height&&(0<this.value?t.drawCachedShadow(i,Nt.Top|Nt.Right,t.options.isPrinting):this.value<0&&t.drawCachedShadow(new ne(i.x,i.y-8,i.width,i.height+8),Nt.Right|Nt.Edge|Nt.Bottom|Nt.Left,t.options.isPrinting,i));var s=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(t.options.zoom));this.series.chart.style.core.fillColumn(t,i,this.seriesBrush,this.getInteractionData());let e=null;e=0<this.value?[new ee(i.x,i.bottom),new ee(i.x,i.y),new ee(i.right,i.y),new ee(i.right,i.bottom)]:[new ee(i.x,i.y),new ee(i.x,i.bottom),new ee(i.right,i.bottom),new ee(i.right,i.y)],t.drawLines(s,e)}}getAnimation(){if(!this.series.chart.isAnimation)return null;let e=this.areaGeom.area;var t=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/e.core.valuesCount*this.index),i;let r=new Xt(this.columnRectStart,this.clientRectangle,te.d.StiChartHelper.globalDurationElement,t),s=(e.xAxis.core.getStartFromZero()?e.xAxis.info.stripLines.getByIndex(this.index+1):e.xAxis.info.stripLines.getByIndex(this.index)).valueObject;return s=null==s?"":s.stimulsoft().toString(),r.id=`series_${this.series.chart.series.indexOf(this.series)}_${s}`,Xt.isAnimationChangingValues(this.series,r.id)&&r.applyPreviousAnimation(this.series.chart.previousAnimations),r}},te.d.StiSplineSeriesGeom=class extends te.d.StiBaseLineSeriesGeom{constructor(e,t,i){super(e,t,i),this.pointsNullConnect=t.pointsNullConnect,this.pointsZeroConnect=t.pointsZeroConnect}contains(t,i){if(this.invisible)return!1;for(let e=0;e<this.points.length-1;e++){var r=this.points[e],s=this.points[e+1],n;if(null==r||null==s)continue;if(te.d.StiPointHelper.isLineContainsPoint(r,s,te.d.StiMouseOverHelper.mouseOverSplineDistance,new ee(t,i)))return!0}return!1}draw(i){let e=_.Solid,t=1,r=re.black,s=!0,n=!0,l=1;var a=this.getAnimation(),o=this.series.stimulsoft().as(te.d.IStiSplineSeries);null!=o&&(e=o.lineStyle,t=o.lineWidth,r=o.lineColor,s=o.showShadow,n=o.lighting,l=o.tension);var h=this.series.stimulsoft().as(te.d.IStiRadarLineSeries);null!=h&&(e=h.lineStyle,t=h.lineWidth,r=h.lineColor,s=h.showShadow,n=h.lighting);var u=this.series.stimulsoft().as(te.d.IStiRadarAreaSeries);null!=u&&(e=u.lineStyle,t=u.lineWidth,r=u.lineColor,s=u.showShadow,n=u.lighting),i.pushSmoothingModeToAntiAlias();var h=e,u=t*i.options.zoom;let d=new ut(r,u);if(d.penStyle=h,s){let e=new ut(re.fromArgb(50,0,0,0),u+.5*i.options.zoom);e.penStyle=h,i.pushTranslateTransform(u,u),te.d.StiNullableDrawing.drawCurve(i,e,this.points,l,a),i.popTransform()}if(null!=this.pointsZeroConnect){let e=new ut(r,u);e.penStyle=_.Dash;var m=this.getAnimationConnect(this.pointsZeroConnect);te.d.StiNullableDrawing.drawCurve(i,e,this.pointsZeroConnect,l,m)}if(null!=this.pointsNullConnect){let e=new ut(r,u);e.penStyle=_.Dash;var c=this.getAnimationConnect(this.pointsNullConnect);te.d.StiNullableDrawing.drawCurve(i,e,this.pointsNullConnect,l,c)}if(te.d.StiNullableDrawing.drawCurve(i,d,this.points,l,a),2<=u&&n){var S=.5*i.options.zoom;i.pushTranslateTransform(-S,-S);let e=new ut(qe.light(r,70),u);e.penStyle=h,te.d.StiNullableDrawing.drawCurve(i,e,this.points,l,a),i.popTransform()}if(null!=o&&o.allowApplyColorNegative){let e=new ut(o.lineColorNegative,u);e.penStyle=h;let t=this.series.chart.area;var m=t.axisCore.getDividerY(),c=t.axisCore.scrollRangeX*t.axisCore.scrollDpiX,S=t.axisCore.scrollRangeY*t.axisCore.scrollDpiY-m,S=new ne(0,m,c,S);if(i.pushClip(S),te.d.StiNullableDrawing.drawCurve(i,e,this.points,l,a),2<=u&&n){var S=.5*i.options.zoom;i.pushTranslateTransform(-S,-S);let e=new ut(qe.light(o.lineColorNegative,70),u);e.penStyle=h,te.d.StiNullableDrawing.drawCurve(i,e,this.points,l,a),i.popTransform()}i.popClip()}i.popSmoothingMode()}},te.d.StiSplineAreaSeriesGeom=class extends te.d.StiSplineSeriesGeom{contains(t,i){let e=this.series.chart.area;var r=e.axisCore.getDividerY();if(this.invisible)return!1;for(let e=0;e<this.points.length-1;e++){var s=this.points[e],n=this.points[e+1];if(null==s||null==n)continue;var l=new ee(n.x,r),a=new ee(s.x,r),o;if(te.d.StiPointHelper.isPointInPolygon(new ee(t,i),[s,a,l,n]))return!0}return!1}draw(l){var a=this.series,t=this.series.chart;let o=this.series.chart.area;var h=o.axisCore.getDividerY(),e=te.d.StiNullableDrawing.getPointsList(this.points),u=null!=this.pointsFrom?te.d.StiNullableDrawing.getPointsList(this.pointsFrom):null,i,r,i,i,i;if(t.isAnimation)for(let n=0;n<e.length;n++){var d=e[n];let t=[],i=new pt(new ee(d[0].x,h),d[0]),r=new Ot(d,a.tension),s=new pt(d[d.length-1],new ee(d[d.length-1].x,h));if(t.push(i),t.push(r),t.push(s),Ht.isAnimationChangingValues(this.series,this.pointsIds)){var m=u[n],d,c,c;let e=new Ht(m,d,this.pointsIds,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);e.id=`series_${this.series.chart.series.indexOf(this.series)}`,e.applyPreviousAnimation(this.series.chart.previousAnimations),i.animation=new Ht([new ee(e.pointsFrom[0].x,h),e.pointsFrom[0]],null,null,e.duration,e.beginTime),r.animation=e,s.animation=new Ht([e.pointsFrom[e.pointsFrom.length-1],new ee(e.pointsFrom[e.pointsFrom.length-1].x,h)],null,null,e.duration,e.beginTime),i.animation.beginTimeCorrect=e.beginTimeCorrect,s.animation.beginTimeCorrect=e.beginTimeCorrect,l.animations.push(e),l.fillDrawAnimationPath(a.brush,null,t,ht.getBoundsState,null,null,null),a.allowApplyBrushNegative&&null!=a.brushNegative&&(d=o.axisCore.scrollRangeX*o.axisCore.scrollDpiX,c=o.axisCore.scrollRangeY*o.axisCore.scrollDpiY-h,c=new ne(0,h,d,c),l.pushClip(c),l.fillDrawAnimationPath(a.brushNegative,null,t,ht.getBoundsState,null,null,null),l.popClip())}else{var c=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);l.fillDrawAnimationPath(a.brush,null,t,ht.getBoundsState,null,c,null)}n++}else for(var r of e){let e=[];e.push(new pt(r[0].x,h,r[0].x,r[0].y)),e.push(new Ot(r,a.tension)),e.push(new pt(r[r.length-1].x,r[r.length-1].y,r[r.length-1].x,h)),null!=a.brush&&(t.isAnimation?(i=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement),l.fillDrawAnimationPath(a.brush,null,e,ht.getBoundsState,null,i,null)):l.fillPath(a.brush,e,ht.getBoundsState,null)),a.allowApplyBrushNegative&&null!=a.brushNegative&&(r=o.axisCore.scrollRangeX*o.axisCore.scrollDpiX,i=o.axisCore.scrollRangeY*o.axisCore.scrollDpiY-h,i=new ne(0,h,r,i),l.pushClip(i),t.isAnimation?(i=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement),l.fillDrawAnimationPath(a.brush,null,e,ht.getBoundsState,null,i,null)):l.fillPath(a.brushNegative,e,ht.getBoundsState,null),l.popClip())}}constructor(e,t,i){super(e,t,i)}},te.d.StiSteppedLineSeriesGeom=class extends te.d.StiBaseLineSeriesGeom{getSteppedPoints(r){var s=this.series;let n=[];var l=s.chart.area.xAxis.info.dpi/2;for(let i=0;i<r.length-1;i++){let e=r[i],t=r[i+1];null!=e&&null!=t?(s.pointAtCenter&&(e=new ee(e.x-l,e.y),t=new ee(t.x-l,t.y)),n.push(e),n.push(new ee(t.x,e.y))):(n.push(null),n.push(null))}let e=r[r.length-1];return null!=e?(s.pointAtCenter&&(e=new ee(e.x-l,e.y),n.push(e),e=new ee(e.x+2*l,e.y)),n.push(e)):n.push(null),n.stimulsoft().toArray()}getSteppedPointsIds(t){let i=[];for(let e=0;e<t.length-1;e++){var r=t[e]+"_l",s=t[e+1]+"_h";i.push(r),i.push(s)}var e=t[t.length-1]+"_l";return i.push(e),i}contains(t,i){if(this.invisible)return!1;var r=this.getSteppedPoints(this.points),s;let n=0;for(s of r){if(this.points.length<=n+1)continue;var l=r[n+1];if(null==s||null==l)continue;let e=ne.empty;if(l.x>s.x?(e=new ne(s.x,s.y,l.x-s.x,1),e.inflate(0,5)):(e=l.y>s.y?new ne(s.x,s.y,1,l.y-s.y):new ne(l.x,l.y,1,s.y-l.y),e.inflate(5,0)),e.contains(t,i))return!0;if(n++,n==r.length-1)break}return!1}draw(s){let n=this.series;s.pushSmoothingModeToAntiAlias();var l=n.lineStyle,a=n.lineWidth*s.options.zoom;let o=new ut(n.lineColor,a);o.penStyle=l;var t=te.d.StiNullableDrawing.getNullablePointsList(this.points),i;for(i of t){var h=this.getSteppedPoints(i),r=this.getSteppedPoints(this.pointsFrom),u=this.getSteppedPointsIds(this.pointsIds),d=this.getAnimation2(r,h,u),m;if(n.showShadow){let e=new ut(re.fromArgb(50,0,0,0),a+.5*s.options.zoom);e.penStyle=l,s.pushTranslateTransform(a,a),te.d.StiNullableDrawing.drawLines(s,e,h,d),n.lineMarker.visible&&(m=new se(re.fromArgb(50,0,0,0)),n.lineMarker.core.drawLines(s,h,s.options.zoom,m,null,n.lineMarker.type,n.lineMarker.step,n.lineMarker.size,n.lineMarker.angle)),s.popTransform()}let e=this.series.chart.area;var c=e.axisCore.getDividerY(),m,S;if(n.allowApplyColorNegative){let t=new ut(n.lineColorNegative,a);t.penStyle=l;let i=[],r=[];for(let e=0;e<h.length;e++){var g=h[e],p=e!=h.length-1?h[e+1]:null;if(g.y>c){if(i.push(g),null==p||p.y<=c){this.intersectionAxis(g,p,i,r,c);var f=ie.create(ee,i.length,!0);if(i.stimulsoft().copyTo(f),te.d.StiNullableDrawing.drawLines(s,t,f,d),2<=a&&n.lighting){var w=.5*s.options.zoom;s.pushTranslateTransform(-w,-w);let e=new ut(qe.light(n.lineColorNegative,70),a);e.penStyle=l,te.d.StiNullableDrawing.drawLines(s,e,f,d),s.popTransform()}i.stimulsoft().clear()}}else if(r.push(g),null==p||p.y>c){this.intersectionAxis(g,p,r,i,c);var g=ie.create(ee,r.length,!0);if(r.stimulsoft().copyTo(g),te.d.StiNullableDrawing.drawLines(s,o,g,d),2<=a&&n.lighting){var p=.5*s.options.zoom;s.pushTranslateTransform(-p,-p);let e=new ut(qe.light(n.lineColor,70),a);e.penStyle=l,te.d.StiNullableDrawing.drawLines(s,e,g,d),s.popTransform()}r.stimulsoft().clear()}}}else{if(1==t.length?(m=null!=this.pointsFrom?this.getSteppedPoints(this.pointsFrom):null,te.d.StiNullableDrawing.drawLines2(s,o,m,h,d)):te.d.StiNullableDrawing.drawLines(s,o,h,d),2<=a&&n.lighting){var S=.5*s.options.zoom;s.pushTranslateTransform(-S,-S);let e=new ut(qe.light(n.lineColor,70),1);e.penStyle=l,te.d.StiNullableDrawing.drawLines(s,e,h,d),s.popTransform()}}n.lineMarker.visible&&(S=new ut(n.lineMarker.borderColor),n.lineMarker.core.drawLines(s,h,s.options.zoom,n.lineMarker.brush,S,n.lineMarker.type,n.lineMarker.step,n.lineMarker.size,n.lineMarker.angle))}s.popSmoothingMode()}intersectionAxis(e,t,i,r,s){var s;null!=t&&(s=new ee(e.x,s),i.push(s),r.push(s))}constructor(e,t,i){super(e,t,i)}},te.d.StiSteppedAreaSeriesGeom=class extends te.d.StiSteppedLineSeriesGeom{draw(n){var l=this.series;let a=this.series.chart.area;var o=a.axisCore.getDividerY(),h=te.d.StiNullableDrawing.getNullablePointsList(this.points),u=null!=this.pointsFrom?te.d.StiNullableDrawing.getNullablePointsList(this.pointsFrom):null;if(this.series.chart.isAnimation)for(let e=0;e<h.length;e++){var d=this.getSteppedPoints(h[e]);let t=[],i=new pt(new ee(d[0].x,o),d[0]),r=new dt(d),s=new pt(d[d.length-1],new ee(d[d.length-1].x,o));t.push(i),t.push(r),t.push(s);var m=this.getSteppedPoints(u[e]),c=this.getSteppedPointsIds(this.pointsIds),c,S,S,S;if(Ht.isAnimationChangingValues(this.series,c)){let e=new Ht(m,d,c,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);e.id=`series_${this.series.chart.series.indexOf(this.series)}`,e.applyPreviousAnimation(this.series.chart.previousAnimations),i.animation=new Ht([new ee(e.pointsFrom[0].x,o),e.pointsFrom[0]],null,null,e.duration,e.beginTime),r.animation=e,s.animation=new Ht([e.pointsFrom[e.pointsFrom.length-1],new ee(e.pointsFrom[e.pointsFrom.length-1].x,o)],null,null,e.duration,e.beginTime),i.animation.beginTimeCorrect=e.beginTimeCorrect,s.animation.beginTimeCorrect=e.beginTimeCorrect,n.animations.add(e),n.fillDrawAnimationPath(l.brush,null,t,ht.getBoundsState,null,null,null),l.allowApplyBrushNegative&&null!=l.brushNegative&&(c=a.axisCore.scrollRangeX*a.axisCore.scrollDpiX,S=a.axisCore.scrollRangeY*a.axisCore.scrollDpiY-o,S=new ne(0,o,c,S),n.pushClip(S),n.fillDrawAnimationPath(l.brushNegative,null,t,ht.getBoundsState,null,null,null),n.popClip())}else{null!=l.brush&&(S=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement),n.fillDrawAnimationPath(l.brush,null,t,ht.getBoundsState,null,S,null))}e++}else for(var t of h){var i=this.getSteppedPoints(t),t,i,i;let e=[];e.push(new pt(i[0].x,o,i[0].x,i[0].y)),e.push(new dt(i)),e.push(new pt(i[i.length-1].x,i[i.length-1].y,i[i.length-1].x,o)),null!=l.brush&&n.fillPath(l.brush,e,ht.getBoundsState,null),l.allowApplyBrushNegative&&null!=l.brushNegative&&(t=a.axisCore.scrollRangeX*a.axisCore.scrollDpiX,i=a.axisCore.scrollRangeY*a.axisCore.scrollDpiY-o,i=new ne(0,o,t,i),n.pushClip(i),n.fillPath(l.brushNegative,e,ht.getBoundsState,null),n.popClip())}}constructor(e,t,i){super(e,t,i)}},te.d.StiWaterfallLineGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s){super(r),this.pen=i,this.pointStart=e,this.pointEnd=t,this.animation=s}draw(e){var t;this.animation?(t=new _t(wt.empty,wt.empty,Xe.globalDurationElement,U.zero),e.drawAnimationLines(this.pen,[this.pointStart,this.pointEnd],t)):e.drawLine(this.pen,this.pointStart.x,this.pointStart.y,this.pointEnd.x,this.pointEnd.y)}},te.d.StiDoughnutEmptySeriesElementGeom=class extends te.d.StiCellGeom{draw(e){var t=this.clientRectangle,i=new ut(re.lightGray);let r=new P;r.add(new gt(t,0,360)),r.add(new pt(t.right,t.y+t.height/2,t.x+3*t.width/4,t.y+t.height/2)),r.add(new gt(new mt(t.x+t.width/4,t.y+t.height/4,t.width/2,t.height/2),0,360)),r.add(new pt(t.x+3*t.width/4,t.y+t.height/2,t.right,t.y+t.height/2)),e.pushSmoothingModeToAntiAlias(),e.fillPath(re.fromArgb(50,re.lightGray.r,re.lightGray.g,re.lightGray.b),r,t,null),e.drawPath(i,r,t),e.drawLine(i,t.x+t.width/2,t.y+3*t.height/4,t.x+t.width/2,t.bottom),e.popSmoothingMode()}constructor(e){super(e)}};let jt=J.Base.Context.StiPenAlignment,Yt=J.Base.Context.Animation.StiPieSegmentAnimation;te.d.StiDoughnutSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m,c,S,g,p,f){super(e,t,i,r,s,u),this.clientRectangleDt=n,this.path=l,this.pathLight=a,this.pathDark=o,this.borderColor=h,this.brush=u,this.brushLight=d,this.brushDark=m,this.startAngle=c,this.endAngle=S,this.radiusFrom=g,this.radiusTo=p,this.beginTime=f}contains(e,t){if(this.invisible)return!1;var i=new ee(this.clientRectangle.x+this.clientRectangle.width/2,this.clientRectangle.y+this.clientRectangle.height/2),e=e-i.x,t=t-i.y,i=Math.sqrt(e*e+t*t);if(i<this.radiusTo||i>this.radiusFrom)return!1;let r=180*Math.atan2(t,e)/Math.PI;return r<0&&(r+=360),r>=this.startAngle&&r<=this.endAngle}draw(e){var t=this.clientRectangle.clone();let i=new ut(this.borderColor,this.getSeriesBorderThickness(e.options.zoom));i.alignment=jt.Inset;var r=this.series.as(te.d.IStiFontIconsSeries);if(null!=r&&null!=r.icon){var s=30;return e.pushClipPath(this.path),te.a.StiFontIconsHelper.drawFillIcons(e,this.seriesBrush,t,new Tt(s,s),r.icon,this.getToolTip()),void e.popClip()}var r=this.getAnimation();null!=r?(e.drawAnimationPathElement(this.brush,i,this.path,t,this.getToolTip(),this,r,this.getInteractionData()),null!=this.pathLight&&e.drawAnimationPathElement(this.brushLight,null,this.pathLight,t,this.getToolTip(),null,r,this.getInteractionData()),null!=this.pathDark&&e.drawAnimationPathElement(this.brushDark,null,this.pathDark,t,this.getToolTip(),null,r,this.getInteractionData())):(e.pushSmoothingModeToAntiAlias(),null!=this.path&&e.fillPath(this.brush,this.path,t,this.getInteractionData()),null!=this.pathLight&&e.fillPath(this.brushLight,this.pathLight,t,null),null!=this.pathDark&&e.fillPath(this.brushDark,this.pathDark,t,null),e.drawPath(i,this.path,ht.getBoundsState),e.popSmoothingMode())}getAnimation(){if(!this.series.chart.isAnimation)return null;var s=te.d.StiChartHelper.globalDurationElement,i=te.d.StiChartHelper.globalBeginTimeElement,n,l;let a=null,o=null;if(this.series.chart.isAnimationChangingValues){let e=this.startAngle,t=this.endAngle,i=this.clientRectangle,r=this.clientRectangle;4==this.path.length&&this.path[0].is(gt)&&this.path[2].is(gt)&&(n=this.path[0],l=this.path[2],e=n.startAngle,t=n.startAngle+n.sweepAngle,i=n.rect,r=l.rect),o=new Yt(this.clientRectangle,i,this.clientRectangleDt,r,this.startAngle,this.endAngle,e,t,s,U.zero),o.id=`series_${this.series.chart.series.indexOf(this.series)}_${this.index}`,Yt.isAnimationChangingValues(this.series,o.id)&&(o.applyPreviousAnimation(this.series.chart.previousAnimations),a=o)}if(null==a){let e=new U(i.ticks/this.series.values.length*this.index);0<this.series.chart.previousAnimations.length&&(e=U.fromMilliseconds(300));let t=new xt(s,e);t.anotherAnimation=o,t.id=`series_${this.series.chart.series.indexOf(this.series)}_${this.index}`,a=t}return a}},te.d.StiFinancialSeriesElementGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n,l,a,o){super(i),this.areaGeom=e,this.series=t,this.open=r,this.close=s,this.high=n,this.low=l,this.positionX=a,this.index=o}draw(e){}},te.d.StiCandlestickSeriesElementGeom=class extends te.d.StiFinancialSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d){super(e,t,i,r,s,n,l,a,o),this.brush=h,this.borderColor=u,this.beginTime=d}draw(t){var i=this.areaGeom.area,r=this.series,s=r.borderWidth*t.options.zoom,n=i.xAxis.info.dpi/2;let l=this.open;var a=this.close,o=this.high,h=this.low,u=this.positionX,d=new ut(this.borderColor,s),e,m,r;if(a==l&&--l,this.series.chart.isAnimation){var c=te.d.StiChartHelper.globalDurationElement,S=[new ee(u,o),new ee(u,l)],g=[new ee(u,a),new ee(u,h)];let e=[];var p=u-n/2,f=l,w=p+n,x=f+a-l;e.push(new pt(p,f,w,f)),e.push(new pt(w,f,w,x)),e.push(new pt(w,x,p,x)),e.push(new pt(p,x,p,f)),e.push(new vt);var m=new xt(c,this.beginTime);if(r.showShadow){var C=s+.5*t.options.zoom,y=new ut(re.fromArgb(50,0,0,0),C),i=[new ee(u+C/2,o+C/2),new ee(u+C/2,l+C/2)],c=[new ee(u+C/2,a+C/2),new ee(u+C/2,h+C/2)];t.drawAnimationLines(y,i,m),t.drawAnimationLines(y,c,m);let e=[];e.push(new pt(p+C/2,f+C/2,w+C/2,f+C/2)),e.push(new pt(w+C/2,f+C/2,w+C/2,x+C/2)),e.push(new pt(w+C/2,x+C/2,p+C/2,x+C/2)),e.push(new pt(p+C/2,x+C/2,p+C/2,f+C/2)),e.push(new vt),t.fillDrawAnimationPath(null,y,e,new ne(p+C/2,f+C/2,n,a-l),null,m,null)}t.drawAnimationLines(d,S,m),t.drawAnimationLines(d,g,m),t.fillDrawAnimationPath(this.brush,d,e,new ne(p,f,n,a-l),this,m,null)}else{r.showShadow&&(m=s+.5*t.options.zoom,r=new ut(re.fromArgb(50,0,0,0),m),t.pushTranslateTransform(s,s),t.drawLine(r,u,a+m/2,u,h+m/2),t.drawLine(r,u,o,u,l-m/2),t.drawRectangle2(r,u-n/2,l,n,a-l),t.popTransform()),t.drawLine(d,u,o,u,l),t.drawLine(d,u,a,u,h),t.fillRectangle2(this.brush,u-n/2,l,n,a-l,null),t.drawRectangle2(d,u-n/2,l,n,a-l)}}},te.d.StiStockSeriesElementGeom=class extends te.d.StiFinancialSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o,h,u){super(e,t,i,r,s,n,l,a,o),this.color=h,this.beginTime=u}draw(t){var i=this.areaGeom.area,r=this.series,s=r.lineWidth*t.options.zoom,i=i.xAxis.info.dpi/3,e;let n=new ut(this.color,s);if(n.penStyle=r.lineStyle,this.series.chart.isAnimation){var l=new xt(te.d.StiChartHelper.globalDurationElement,this.beginTime);if(r.showShadow){var a=s+.5*t.options.zoom;let e=new ut(re.fromArgb(50,0,0,0),a);e.penStyle=r.lineStyle;var o=[new ee(this.positionX,this.high),new ee(this.positionX,this.low)],h=[new ee(this.positionX-i,this.open),new ee(this.positionX-a/2,this.open)],a=[new ee(this.positionX+i,this.close),new ee(this.positionX+a/2,this.close)];t.drawAnimationLines(e,o,l),t.drawAnimationLines(e,h,l),t.drawAnimationLines(e,a,l)}var o=[new ee(this.positionX,this.high),new ee(this.positionX,this.low)],h=[new ee(this.positionX-i,this.open),new ee(this.positionX,this.open)],a=[new ee(this.positionX+i,this.close),new ee(this.positionX,this.close)];t.drawAnimationLines(n,o,l),t.drawAnimationLines(n,h,l),t.drawAnimationLines(n,a,l)}else{if(r.showShadow){var l=s+.5*t.options.zoom;let e=new ut(re.fromArgb(50,0,0,0),l);e.penStyle=r.lineStyle,t.pushTranslateTransform(s,s),t.drawLine(e,this.positionX,this.high,this.positionX,this.low),t.drawLine(e,this.positionX-i,this.open,this.positionX-l/2,this.open),t.drawLine(e,this.positionX+i,this.close,this.positionX+l/2,this.close),t.popTransform()}t.drawLine(n,this.positionX,this.high,this.positionX,this.low),t.drawLine(n,this.positionX-i,this.open,this.positionX,this.open),t.drawLine(n,this.positionX+i,this.close,this.positionX,this.close)}}},te.d.StiFunnelEmptySeriesElementGeom=class extends te.d.StiCellGeom{constructor(e,t){super(e),this.path=t}draw(e){e.pushSmoothingModeToAntiAlias(),e.fillPath(re.fromArgb(50,re.lightGray),this.path,this.clientRectangle,null),e.drawPath(new ut(re.gray),this.path,this.clientRectangle),e.popSmoothingMode()}},te.d.StiFunnelSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o){super(e,t,i,r,s,n),this.path=a,this.borderColor=l,this.brush=n,this.beginTime=o}draw(e){var t=this.clientRectangle.clone();let i=new ut(qe.dark(this.borderColor,10),this.getSeriesBorderThickness(e.options.zoom));i.alignment=jt.Inset;var r=this.series.chart,s=this.series.as(te.d.IStiFontIconsSeries),r;if(null!=s&&null!=s.icon){var n=30;return e.pushClipPath(this.path),te.a.StiFontIconsHelper.drawFillIcons(e,this.seriesBrush,t,new Tt(n,n),s.icon,this.getToolTip()),void e.popClip()}r.isAnimation?(r=new xt(U.fromSeconds(1),this.beginTime),this.series.showShadow&&(e.pushTranslateTransform(4,4),e.drawAnimationPathElement(new se(re.fromArgb(50,100,100,100)),null,this.path,t,null,this,r,null),e.popTransform()),e.drawAnimationPathElement(this.brush,null,this.path,t,this.getToolTip(),this,r,this.getInteractionData()),re.transparent.equals(this.borderColor)||e.drawAnimationPathElement(null,i,this.path,t,null,this,r,null)):(e.pushSmoothingModeToAntiAlias(),this.series.showShadow&&(e.pushTranslateTransform(4,4),e.fillPath(re.fromArgb(50,100,100,100),this.path,t,null),e.popTransform()),e.fillPath(this.brush,this.path,t,this.getInteractionData()),re.transparent.equals(this.borderColor)||e.drawPath(i,this.path,null),e.popSmoothingMode())}},te.d.StiGanttSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l){super(e,t,i,r,s,l),this.rectFrom=n}draw(e){var t=this.series,i=this.clientRectangle.clone();let r=this.series.chart;var s=this.series.as(te.d.IStiFontIconsSeries);if(null!=s&&null!=s.icon){var n=r.area.as(te.d.IStiRoundValuesArea),n=null==n?void 0:n.roundValues;return void te.a.StiFontIconsHelper.drawDirectionIcons(e,this.seriesBrush,i,new Tt(i.height,i.height),s.icon,this.getToolTip(),!1,n)}var n=this.getAnimation(),l,l,l,l,t;null!=n?(this.series.showShadow&&(l=this.areaGeom.area,l=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/l.core.valuesCount*this.index),l=new xt(te.d.StiChartHelper.globalDurationElement,new U(l.ticks+te.d.StiChartHelper.globalDurationElement.ticks)),e.drawShadowRect(i,5,l)),l=new ut(t.borderColor,this.getSeriesBorderThickness(e.options.zoom)),e.drawAnimationBar(this.seriesBrush,l,i,this.value,this.getToolTip(),this,n,this.getInteractionData())):(t.showShadow&&4<i.width&&4<i.height&&e.drawCachedShadow(i,Nt.All,e.options.isPrinting),t=new ut(t.borderColor,this.getSeriesBorderThickness(e.options.zoom)),e.fillRectangle2(this.seriesBrush,i.x,i.y,i.width,i.height,this.getInteractionData()),e.drawRectangle2(t,i.x,i.y,i.width,i.height))}getAnimation(){if(!this.series.chart.isAnimation)return null;let e=this.areaGeom.area;var t=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/e.core.valuesCount*this.index),i;let r=new Xt(this.rectFrom,this.clientRectangle,te.d.StiChartHelper.globalDurationElement,t),s=(e.yAxis.core.getStartFromZero()?e.yAxis.info.stripLines.getByIndex(this.index+1):e.yAxis.info.stripLines.getByIndex(this.index)).valueObject;return s=null==s?"":s.stimulsoft().toString(),r.id=`series_${this.series.chart.series.indexOf(this.series)}_${s}`,Xt.isAnimationChangingValues(this.series,r.id)&&r.applyPreviousAnimation(this.series.chart.previousAnimations),r}};let Wt=te.a.StiFontIconsHelper;te.d.StiPictorialSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o,h){super(e,t,i,s,o,r),this.icon=n,this.drawRectangles=l,this.clipRectangles=a,this.seriesBrush=r,this.animation=h}contains(i,r){if(this.invisible)return!1;for(let t=0;t<this.drawRectangles.length;t++){let e=this.drawRectangles[t];if(e.contains(i,r))return!0}return!1}draw(s){var n=this.series.core.getSingleSize(s);super.draw(s);var l=new it("Stimulsoft",15*s.options.zoom,J.System.Drawing.FontStyle.Regular,J.System.Drawing.GraphicsUnit.Pixel),a=s.options.zoom;for(let r=0;r<this.drawRectangles.length;r++){var o=this.drawRectangles[r];let e=this.clipRectangles[r],t=!0,i=new ee(o.x,o.y);this.series.showShadow&&(e.width+=a,e.height+=a),s.pushClip(e);while(t){let e=new ne(i.x+s.options.zoom,i.y+s.options.zoom,n.width,n.height);var h=Wt.getContent(this.icon),u=this.getStringFormatGeom(s),d=this.getToolTip(),m,c;this.series.showShadow&&(m=new se(re.fromArgb(50,0,0,0)),c=e.clone().offset(a,a),s.drawString3(h,l,m,c,u,d)),s.drawString3(h,l,this.seriesBrush,e,u,d),i=new ee(i.x+n.width,i.y),i.x>=o.right&&(t=!1)}s.popClip()}}getStringFormatGeom(e){let t=e.getGenericStringFormat();return t.trimming=et.None,t.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap,t.alignment=F.Center,t.lineAlignment=F.Center,t}},te.d.StiPie3dMainSideSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o,h,u){super(t,i,r,n,l,o),this.pie3DSlice=e,this.count=s,this.borderColor=a,this.realStartAngle=h,this.realSweepAngle=u,this.startAngle=te.d.StiPie3dHelper.transformAngle(this.clientRectangle,h),this.sweepAngle=u,this.sweepAngle=u,this.sweepAngle%180!=0&&(this.sweepAngle=te.d.StiPie3dHelper.transformAngle(this.clientRectangle,h+u)-this.startAngle),this.sweepAngle<0&&(this.sweepAngle+=360)}get interaction(){return this.pie3DSlice.interaction}draw(e){let t=new P;t.add(new At(new mt(this.clientRectangle.x,this.clientRectangle.y,this.clientRectangle.width,this.clientRectangle.height),this.startAngle,this.sweepAngle,this.realStartAngle,this.realSweepAngle,null)),e.pushSmoothingModeToAntiAlias();var i=this.getAnimation();null!=i?e.drawAnimationPathElement(this.seriesBrush,new ut(this.borderColor,1),t,this.clientRectangle,this.getToolTip(),this,i,this.getInteractionData()):(e.fillPath(this.seriesBrush,t,this.clientRectangle,null),e.drawPath(new ut(this.borderColor,1),t,this.clientRectangle)),e.popSmoothingMode()}getAnimation(){if(!this.series.chart.isAnimation)return null;var i=te.d.StiChartHelper.globalDurationElement,r=te.d.StiChartHelper.globalBeginTimeElement;let s=null;var n=null;if(null==s){let e=new U(r.ticks/this.count*this.index);0<this.series.chart.previousAnimations.length&&(e=U.fromMilliseconds(300));let t=new xt(i,e);t.anotherAnimation=n,t.id="series_"+this.series.chart.series.indexOf(this.series)+"_"+this.index,s=t}return s}},te.d.StiPie3dSidesSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d){super(t,i,r,n,l,o),this.s_shadowAngle=20,this.pie3DSlice=e,this.count=s,this.startnAngle=h,this.pen=new ut(a),this.sweepAngle=u,this.initializePieSlice(l.x,l.y,l.width,l.height,d,n.options3D.lighting)}get StartAngle(){return this.m_startAngle}get EndAngle(){return(this.m_startAngle+this.m_sweepAngle)%360}get Interaction(){return this.pie3DSlice.interaction}draw(e){e.pushSmoothingModeToAntiAlias(),this.drawHiddenPeriphery(e),90<this.StartAngle&&this.StartAngle<270?(this.drawEndSide(e),this.drawStartSide(e)):(this.drawStartSide(e),this.drawEndSide(e)),this.drawVisiblePeriphery(e),e.popSmoothingMode()}drawStartSide(e){null!=this.m_startSide&&(90<this.StartAngle&&this.StartAngle<270?this.m_startSide.draw(e,this.pen,this.m_brushStartSide):this.m_startSide.draw(e,this.pen,this.m_brushSurface))}drawEndSide(e){null!=this.m_endSide&&(90<this.EndAngle&&this.EndAngle<270?this.m_endSide.draw(e,this.pen,this.m_brushSurface):this.m_endSide.draw(e,this.pen,this.m_brushEndSide))}drawVisiblePeriphery(e){var t,i;for(i of this.getVisiblePeripherySurfaceBounds())this.drawCylinderSurfaceSection(e,this.pen,this.m_brushPeripherySurface,i)}drawHiddenPeriphery(e){var t,i;for(i of this.getHiddenPeripherySurfaceBounds())this.drawCylinderSurfaceSection(e,this.pen,this.m_brushSurface,i)}getHiddenPeripherySurfaceBounds(){let l=new P;if(!(0==this.m_sweepAngle||0<=this.m_startAngle&&this.m_startAngle+this.m_sweepAngle<=180)&&180<this.m_startAngle+this.m_sweepAngle){let e=this.m_startAngle,t=new St(this.m_pointStart.x,this.m_pointStart.y),i=this.m_startAngle+this.m_sweepAngle,r=new St(this.m_pointEnd.x,this.m_pointEnd.y),s=this.startnAngle,n=this.startnAngle+this.sweepAngle;e<180&&(e=s=180,t.x=this.m_boundingRectangle.left,t.y=this.m_center.y),360<i&&(i=n=360,r.x=this.m_boundingRectangle.right,r.y=this.m_center.y),l.add(new te.d.StiPie3dPeripherySurfaceBounds(e,i,t,r,s,n)),this.m_startAngle<360&&540<this.m_startAngle+this.m_sweepAngle&&(e=180,t=new St(this.m_boundingRectangle.left,this.m_center.y),i=this.EndAngle,r=new St(this.m_pointEnd.x,this.m_pointEnd.y),l.add(new te.d.StiPie3dPeripherySurfaceBounds(e,i,t,r,s,n)))}return l}getVisiblePeripherySurfaceBounds(){let r=new P;if(!(0==this.m_sweepAngle||180<=this.m_startAngle&&this.m_startAngle+this.m_sweepAngle<=360)){if(this.StartAngle<180){var s=this.m_startAngle,n=new St(this.m_pointStart.x,this.m_pointStart.y);let e=this.EndAngle,t=new St(this.m_pointEnd.x,this.m_pointEnd.y);var l=this.startnAngle;let i=this.startnAngle+this.sweepAngle;180<this.m_startAngle+this.m_sweepAngle&&(e=i=180,t.x=this.m_boundingRectangle.x,t.y=this.m_center.y),r.add(new te.d.StiPie3dPeripherySurfaceBounds(s,e,n,t,l,i))}if(360<this.m_startAngle+this.m_sweepAngle){var s=0,n=new St(this.m_boundingRectangle.right,this.m_center.y);let e=this.EndAngle,t=new St(this.m_pointEnd.x,this.m_pointEnd.y);var l=this.startnAngle;let i=this.startnAngle+this.sweepAngle;180<e&&(e=i=180,t.x=this.m_boundingRectangle.left,t.y=this.m_center.y),r.add(new te.d.StiPie3dPeripherySurfaceBounds(s,e,n,t,l,i))}}return r}drawCylinderSurfaceSection(e,t,i,r){var s=this.createPathForCylinderSurfaceSection(r),n=e.getPathBounds(s),r=this.getAnimation();null!=r?e.drawAnimationPathElement(i,t,s,n,this.getToolTip(),this,r,this.getInteractionData()):(e.fillPath(i,s,n,null),e.drawPath(t,s,n))}getTextPosition(){if(180<=this.sweepAngle)return this.peripheralPoint(this.m_center.x,this.m_center.y,this.m_boundingRectangle.width/3,this.m_boundingRectangle.height/3,this.getActualAngle(this.StartAngle)+this.sweepAngle/2);var e=(this.m_pointStart.x+this.m_pointEnd.x)/2,t=(this.m_pointStart.y+this.m_pointEnd.y)/2,e=180*Math.atan2(t-this.m_center.y,e-this.m_center.x)/Math.PI;return this.peripheralPoint(this.m_center.x,this.m_center.y,this.m_boundingRectangle.width/3,this.m_boundingRectangle.height/3,this.getActualAngle(e))}getActualAngle(e){var t=this.m_boundingRectangle.height*Math.cos(e*Math.PI/180),e=this.m_boundingRectangle.width*Math.sin(e*Math.PI/180),t=180*Math.atan2(e,t)/Math.PI;if(t<0)return t+360;return t}createPathForCylinderSurfaceSection(e){var t=e.startAngle,i=e.endAngle,r=e.startPoint,s=e.endPoint,n=e.realStartAngle,l=e.realEndAngle,e=e.realEndAngle-e.realStartAngle;let a=new P;a.add(new gt(this.m_boundingRectangle,t,i-t,n,e)),a.add(new pt(s.x,s.y,s.x,s.y+this.m_sliceHeight));var s=new mt(this.m_boundingRectangle.x,this.m_boundingRectangle.y+this.m_sliceHeight,this.m_boundingRectangle.width,this.m_boundingRectangle.height);return a.add(new gt(s,i,t-i,l,n-l)),a.add(new pt(r.x,r.y+this.m_sliceHeight,r.x,r.y)),a}initializePieSlice(e,t,i,r,s,n){this.m_boundingRectangle=new mt(e,t,i,r),this.m_sliceHeight=s;var l=this.startnAngle;this.m_startAngle=this.transformAngle(this.startnAngle),this.m_sweepAngle=this.sweepAngle,this.m_sweepAngle%180!=0&&(this.m_sweepAngle=this.transformAngle(l+this.sweepAngle)-this.m_startAngle),this.m_sweepAngle<0&&(this.m_sweepAngle+=360),this.createSurfaceBrushes(n);var e=e+i/2,t=t+r/2;this.m_center=new St(e,t),this.m_centerBelow=new St(e,t+s),this.m_pointStart=this.peripheralPoint(e,t,i/2,r/2,l),this.m_pointStartBelow=new St(this.m_pointStart.x,this.m_pointStart.y+s),this.m_pointEnd=this.peripheralPoint(e,t,i/2,r/2,l+this.sweepAngle),this.m_pointEndBelow=new St(this.m_pointEnd.x,this.m_pointEnd.y+s),this.initializeSides(!0,!0)}initializeSides(e,t){var i=this.getAnimation();this.m_startSide=e?new te.d.StiPie3dQuadrilateral(this.m_boundingRectangle,this.m_center,this.m_pointStart,this.m_pointStartBelow,this.m_centerBelow,180!=this.m_sweepAngle,i):te.d.StiPie3dQuadrilateral.empty(),this.m_endSide=t?new te.d.StiPie3dQuadrilateral(this.m_boundingRectangle,this.m_center,this.m_pointEnd,this.m_pointEndBelow,this.m_centerBelow,180!=this.m_sweepAngle,i):te.d.StiPie3dQuadrilateral.empty()}createSurfaceBrushes(e){var t=Ze.toColor(this.seriesBrush);switch(this.m_brushSurface=new se(t),e){case te.d.StiPie3dLightingStyle.No:this.m_brushStartSide=this.m_brushEndSide=this.m_brushPeripherySurface=new se(t);break;case te.d.StiPie3dLightingStyle.Solid:this.m_brushStartSide=this.m_brushEndSide=this.m_brushPeripherySurface=Ze.light(this.seriesBrush,30);break;case te.d.StiPie3dLightingStyle.Gradient:{let e=this.m_startAngle-180-this.s_shadowAngle;e<0&&(e+=360),this.m_brushStartSide=this.createBrushForSide(t,e),e=this.m_startAngle+this.m_sweepAngle-this.s_shadowAngle,e<0&&(e+=360),this.m_brushEndSide=this.createBrushForSide(t,e),this.m_brushPeripherySurface=this.createBrushForPeriphery(t);break}}}createBrushForSide(e,t){return new se(te.d.StiPie3dHelper.createColorWithCorrectedLightness(e,-te.d.StiPie3dHelper.brightnessEnhancementFactor1*(1-.8*Math.cos(t*Math.PI/180))))}createBrushForPeriphery(e){return new me(e,te.d.StiPie3dHelper.createColorWithCorrectedLightness(e,-te.d.StiPie3dHelper.brightnessEnhancementFactor1),90,.1,1)}static createColorWithCorrectedLightness(e,t){if(0==t)return e;let i=e.r,r=e.g,s=e.b;return t<0?(t=1+t,i*=t,r*=t,s*=t):(i=(255-i)*t+i,r=(255-r)*t+r,s=(255-s)*t+s),re.fromArgb(e.a,i,r,s)}peripheralPoint(e,t,i,r,s){var s=s*Math.PI/180;return new St(e+i*Math.cos(s),t+r*Math.sin(s))}transformAngle(e){var t=this.m_boundingRectangle.width*Math.cos(e*Math.PI/180),e=this.m_boundingRectangle.height*Math.sin(e*Math.PI/180),t=180*Math.atan2(e,t)/Math.PI;if(t<0)return t+360;return t}getAnimation(){if(!this.series.chart.isAnimation)return null;var i=te.d.StiChartHelper.globalDurationElement,r=te.d.StiChartHelper.globalBeginTimeElement;let s=null;var n=null;if(null==s){let e=new U(r.ticks/this.count*this.index);0<this.series.chart.previousAnimations.length&&(e=U.fromMilliseconds(300));let t=new xt(i,e);t.anotherAnimation=n,t.id="series_"+this.series.chart.series.indexOf(this.series)+"_"+this.index,s=t}return s}},te.d.StiPieEmptySeriesElementGeom=class extends te.d.StiCellGeom{draw(e){var t=this.clientRectangle,i=new ut(re.lightGray);e.pushSmoothingModeToAntiAlias(),e.fillEllipse2(re.fromArgb(50,re.lightGray),t,null),e.drawEllipse2(i,t),e.drawLine(i,t.x+t.width/2,t.y+t.height/2,t.right,t.y+t.height/2),e.drawLine(i,t.x+t.width/2,t.y+t.height/2,t.x+t.width/2,t.bottom),e.popSmoothingMode()}constructor(e){super(e)}},te.d.StiPieSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d){super(e,t,i,r,s,o),this.path=n,this.pathLight=l,this.borderColor=a,this.brush=o,this.startAngle=h,this.endAngle=u,this.radius=d}contains(e,t){if(this.invisible)return!1;var i=new ee(this.clientRectangle.x+this.clientRectangle.width/2,this.clientRectangle.y+this.clientRectangle.height/2),e=e-i.x,i=t-i.y,r;if(Math.sqrt(e*e+i*i)>=this.radius)return!1;let s=180*Math.atan2(i,e)/Math.PI;return s<0&&(s+=360),s>=this.startAngle&&s<=this.endAngle}draw(e){var t=this.clientRectangle.clone(),i=re.transparent.equals(this.borderColor)?this.borderColor:qe.dark(this.borderColor,10);let r=new ut(i,this.getSeriesBorderThickness(e.options.zoom));r.alignment=jt.Inset;var i=this.series.as(te.d.IStiFontIconsSeries);if(null!=i&&null!=i.icon){var s=30;return e.pushClipPath(this.path),te.a.StiFontIconsHelper.drawFillIcons(e,this.seriesBrush,t,new Tt(s,s),i.icon,this.getToolTip()),void e.popClip()}e.pushSmoothingModeToAntiAlias();var s=this.getAnimation(),i,s;null!=s?(e.drawAnimationPathElement(this.brush,r,this.path,t,this.getToolTip(),this,s,this.getInteractionData()),null!=this.pathLight&&(i=new se(re.fromArgb(30,re.black)),e.drawAnimationPathElement(i,null,this.pathLight,t,this.getToolTip(),null,s,this.getInteractionData()))):(e.fillPath(this.brush,this.path,t,this.getInteractionData()),null!=this.pathLight&&(s=new se(re.fromArgb(30,re.black)),e.fillPath(s,this.pathLight,t,this.getInteractionData())),re.transparent.equals(this.borderColor)||e.drawPath(r,this.path,null)),e.popSmoothingMode()}getAnimation(){if(!this.series.chart.isAnimation)return null;var r=te.d.StiChartHelper.globalDurationElement,i=te.d.StiChartHelper.globalBeginTimeElement,s;let n=null,l=null;if(this.series.chart.isAnimationChangingValues){let e=this.startAngle,t=this.endAngle,i=this.clientRectangle;this.path[0].is(At)&&(s=this.path[0],e=s.startAngle,t=s.startAngle+s.sweepAngle,i=s.rect),l=new Yt(this.clientRectangle,i,ne.empty,ne.empty,this.startAngle,this.endAngle,e,t,r,U.zero),l.id=`series_${this.series.chart.series.indexOf(this.series)}_${this.index}`,Yt.isAnimationChangingValues(this.series,l.id)&&(l.applyPreviousAnimation(this.series.chart.previousAnimations),n=l)}if(null==n){let e=new U(i.ticks/this.count*this.index);0<this.series.chart.previousAnimations.length&&(e=U.fromMilliseconds(300));let t=new xt(r,e);t.anotherAnimation=l,t.id=`series_${this.series.chart.series.indexOf(this.series)}_${this.index}`,n=t}return n}},te.d.StiPieSeriesFullElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l){super(e,t,i,r,s,n),this.brush=n,this.borderColor=l}draw(e){var t=this.series.chart,i=this.clientRectangle.clone(),r=new ut(this.borderColor,this.getSeriesBorderThickness(e.options.zoom)),s,t,t;t.isAnimation?(s=te.d.StiChartHelper.globalDurationElement,t=te.d.StiChartHelper.globalBeginTimeElement,t=new xt(s,t),e.fillDrawAnimationEllipse(this.brush,r,i.x,i.y,i.width,i.height,this.getToolTip(),this,t,this.getInteractionData())):(e.fillEllipse2(this.brush,i,null),e.drawEllipse2(r,i))}},te.d.StiPieSeriesShadowElementGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s,n){super(t),this.series=e,this.shadowContext=r,this.radius=i,this.duration=s,this.beginTime=n,this.isAnimation=e.chart.isAnimation}get invisible(){return!0}draw(e){var t=this.clientRectangle.clone(),i;this.isAnimation?(i=new xt(this.duration,this.beginTime),e.drawShadowRect2(t,t.height/2,t.width/2,M.trunc(this.radius),i)):e.drawShadow(this.shadowContext,t,this.radius)}},te.d.StiRadarAreaSeriesGeom=class extends te.d.StiCellGeom{constructor(e,t){super(ne.empty),this.series=e,this.pointsFrom=t.pointsFrom,this.points=t.points,this.pointsIds=t.pointsIds}contains(t,i){if(this.invisible)return!1;var e,r=this.series.chart.area.core;for(let e=0;e<this.points.length;e++){var s=this.points[e],n=e==this.points.length-1?this.points[0]:this.points[e+1],l=r.centerPoint,a;if(null==s||null==n)continue;if(te.d.StiPointHelper.isPointInTriangle(new ee(t,i),s,l,n))return!0}return!1}draw(i){var r=this.series;if(null==r.brush)return;let s=[];if(this.series.chart.isAnimation){let e=null,t=null;Ht.isAnimationChangingValues(this.series,this.pointsIds)?(t=new Ht(this.pointsFrom,this.points,this.pointsIds,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement),t.id=`series_${this.series.chart.series.indexOf(this.series)}`,t.applyPreviousAnimation(this.series.chart.previousAnimations),i.animations.push(t)):e=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement),s.push(new dt(this.points,t)),i.fillDrawAnimationPath(r.brush,null,s,ht.getBoundsState,null,e,null)}else{let e=0;for(var t of this.points){var n=t,t=e<this.points.length-1?this.points[e+1]:this.points[0];s.push(new pt(n.x,n.y,t.x,t.y)),e++}i.pushSmoothingModeToAntiAlias(),i.fillPath(r.brush,s,ne.empty,null),i.popSmoothingMode()}}},te.d.StiRadarPointSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l){super(e,t,i,s,te.d.StiMarkerCoreXF.getMarkerRect(n,s.marker.size,l),r),this.point=n}getValueIndex(){let e=this.index;return this.series.is(te.d.IStiClusteredBarSeries)||this.series.is(te.d.IStiStackedBarSeries)||this.series.is(te.d.IStiFullStackedBarSeries)?this.series.chart.area.is(te.d.IStiAxisArea)&&!this.series.chart.area.reverseVert&&(e=this.series.values.length-e-1):this.series.chart.area.is(te.d.IStiAxisArea)&&this.series.chart.area.reverseHor&&(e=this.series.values.length-e-1),e}contains(e,t){if(this.invisible)return!1;return this.getMouseOverRect().contains(e,t)}getMouseOverRect(){let e=this.clientRectangle.clone();return e.inflate(e.width/2,e.height/2),e}draw(i){let r=this.series;var s=!r.marker.visible&&0<r.toolTips.length;if(null!=r.marker&&r.marker.visible){i.pushSmoothingModeToAntiAlias();var n=i.options.zoom;let e=this.series.chart,t=null;e.isAnimation&&(t=new Gt,t.componentName=e.name,t.componentIndex=e.page.components.indexOf(e).toString(),t.pageGuid=this.series.stimulsoft().as(te.d.StiSeries).drillDownPageGuid,t.pageIndex=e.page.report.renderedPages.indexOf(e.page).toString(),t.elementIndex=this.elementIndex.toString(),t.interactionData=this.interaction),r.marker.core.draw(i,r.marker,this.point,n,r.showShadow,!1,s,e.isAnimation,this.getToolTip(),this,t),i.popSmoothingMode()}}},te.d.StiRangeBarElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l){super(e,t,i,r,n,s),this.rectFrom=l}draw(e){var t=this.series,i=this.clientRectangle.clone(),r=this.getAnimation(),s,n,n,n,t;null!=r?(s=new ut(t.borderColor,this.getSeriesBorderThickness(e.options.zoom)),this.series.showShadow&&(n=this.areaGeom.area,n=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/n.core.valuesCount*this.index),n=new xt(te.d.StiChartHelper.globalDurationElement,new U(n.ticks+te.d.StiChartHelper.globalDurationElement.ticks)),e.drawShadowRect(i,5,n)),e.drawAnimationColumn(this.seriesBrush,s,i,this.value,this.getToolTip(),this,r,this.getInteractionData())):(t.showShadow&&4<i.width&&4<i.height&&e.drawCachedShadow(i,Nt.All,e.options.isPrinting),t=new ut(t.borderColor,this.getSeriesBorderThickness(e.options.zoom)),e.fillRectangle2(this.seriesBrush,i.x,i.y,i.width,i.height,this.getInteractionData()),e.drawRectangle2(t,i.x,i.y,i.width,i.height))}getAnimation(){var e;if(!this.series.chart.isAnimation)return null;var t=this.series;let i=this.areaGeom.area,r=this.series.values.length;t.valuesEnd.length<r&&(r=t.valuesEnd.length);var t=t.arguments.length,t=Math.min(r,t),t=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/t*this.index),s;let n=i.xAxis.info.stripLines.length-1;for(s of i.xAxis.info.stripLines.list){if(this.series.arguments[this.index].stimulsoft().toString()==(null===(e=s.valueObject)||void 0===e?void 0:e.toString()))break;n--}n=i.xAxis.info.stripLines.length-1-n;let l=new Xt(this.rectFrom,this.clientRectangle,te.d.StiChartHelper.globalDurationElement,t),a=i.xAxis.info.stripLines.getByIndex(i.reverseVert?i.xAxis.info.stripLines.length-1-n:n).valueObject;return a=null==a?"":a.stimulsoft().toString(),l.id=`series_${this.series.chart.series.indexOf(this.series)}_${a}`,Xt.isAnimationChangingValues(this.series,l.id)&&l.applyPreviousAnimation(this.series.chart.previousAnimations),l}},te.d.StiRangeSeriesGeom=class extends te.d.StiLineSeriesGeom{constructor(e,t,i){super(e,t,i),this.pointsEnd=t.pointsEnd}draw(s){var n=this.series,e=te.d.StiNullableDrawing.getPointsList(this.points),t=te.d.StiNullableDrawing.getPointsList(this.pointsEnd);if(e.length<1||t.length<1)return;var l=e[0],a=t[0],o=Math.min(l.length,a.length);let h=[],u=[],d=[],m=[];for(let r=0;r<o;r++){var c=l[r],S=a[r],g=this.pointsIds[r],p=this.pointsIds[r]+"_e";let e=null,t=null;r!=o-1&&(e=l[r+1],t=a[r+1]);let i=null;null==e&&!this.intersection(c,S,e,t)||(i=this.getPointCross2(c,S,e,t)),h.push(c),u.push(S),d.push(g),m.push(p),null!=i?(h.push(i),u.push(i),d.push(g+"_c"),m.push(g+"_c_e"),this.fillPath(s,this.getBrush(n,c,S),h.map(e=>e),u.map(e=>e),d.map(e=>e),m.map(e=>e)),h.stimulsoft().clear(),u.stimulsoft().clear(),d.stimulsoft().clear(),m.stimulsoft().clear(),h.push(i),u.push(i),d.push(g+"_c"),m.push(g+"_c_e")):null==e&&this.fillPath(s,this.getBrush(n,c,S),h.map(e=>e),u.map(e=>e),d.map(e=>e),m.map(e=>e))}}isPointsEqual(t,i){if(t.length==i.length){for(let e=0;e<t.length;e++)if(!t[e].equals(i[e]))return!1;return!0}return!1}getBrush(e,t,i){let r=e.brush;return e.allowApplyBrushNegative&&(r=t.y<i.y?e.brushNegative:e.brush),r}fillPath(r,e,s,n,l,a){if(this.isPointsEqual(s.stimulsoft().toList(),n.stimulsoft().toList()))return;let t=[];var i=n.map(e=>e).reverse();let o=new pt(i[i.length-1],s[0]),h=new dt(s),u=new pt(s[s.length-1],i[0]),d=new dt(i);if(t.push(o),t.push(h),t.push(u),t.push(d),this.series.chart.isAnimation){let i=null;if(this.series.chart.isAnimationChangingValues){let e=new Ht(s,s,l,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);e.id=`series_${this.series.chart.series.indexOf(this.series)}_a`;let t=new Ht(n,n,a,e.duration,e.beginTime);t.id=`series_${this.series.chart.series.indexOf(this.series)}_a_e`,r.animations.push(e),r.animations.push(t),Ht.isAnimationChangingValues(this.series,l,e.id)?(e.applyPreviousAnimation(this.series.chart.previousAnimations),t.applyPreviousAnimation(this.series.chart.previousAnimations),t.reverse(),o.animation=new Ht([t.pointsFrom[t.pointsFrom.length-1],e.pointsFrom[0]],null,null,e.duration,e.beginTime),u.animation=new Ht([e.pointsFrom[e.pointsFrom.length-1],t.pointsFrom[0]],null,null,e.duration,e.beginTime),o.animation.beginTimeCorrect=e.beginTimeCorrect,u.animation.beginTimeCorrect=e.beginTimeCorrect,h.animation=e,d.animation=t):i=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement)}r.fillDrawAnimationPath(e,null,t,ht.getBoundsState,null,i,null)}else r.fillPath(e,t,ht.getBoundsState,null)}intersection(e,t,i,r){if(null==i)return!1;return e.y>t.y&&i.y<r.y||e.y<t.y&&i.y>r.y||i.y==r.y}getPointCross2(e,t,i,r){if(i==r)return i;var s=e.x,n=e.y,l=i.x,a=i.y,e=t.x,i=t.y,t=r.x,r=r.y,a=-((s*a-l*n)*(t-e)-(e*r-t*i)*(l-s))/((n-a)*(t-e)-(i-r)*(l-s)),e=((i-r)*-a-(e*r-t*i))/(t-e);return s<a&&a<l?new ee(a,e):null}},te.d.StiSplineRangeSeriesGeom=class extends te.d.StiSplineSeriesGeom{constructor(e,t,i){super(e,t,i),this.pointsEnd=t.pointsEnd}draw(e){var t=te.d.StiNullableDrawing.getPointsList(this.points),i=te.d.StiNullableDrawing.getPointsList(this.pointsEnd);if(t.length<1||i.length<1)return;var r=t[0],t=i[0],i=this.pointsIds.map(e=>e+"_e");this.fillPath(e,r,t,this.pointsIds,i)}fillPath(r,s,n,l,a){var e=this.series,t=e.brush;let o=[];var i=n.map(e=>e).reverse();let h=new pt(i[i.length-1],s[0]),u=new Ot(s,e.tension),d=new pt(s[s.length-1],i[0]),m=new Ot(i,e.tension);if(o.push(h),o.push(u),o.push(d),o.push(m),this.series.chart.isAnimation){let i=null;if(this.series.chart.isAnimationChangingValues){let e=new Ht(s,s,l,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);e.id=`series_${this.series.chart.series.indexOf(this.series)}_a`;let t=new Ht(n,n,a,e.duration,e.beginTime);t.id=`series_${this.series.chart.series.indexOf(this.series)}_a_e`,r.animations.push(e),r.animations.push(t),Ht.isAnimationChangingValues(this.series,l,e.id)?(e.applyPreviousAnimation(this.series.chart.previousAnimations),t.applyPreviousAnimation(this.series.chart.previousAnimations),t.reverse(),h.animation=new Ht([t.pointsFrom[t.pointsFrom.length-1],e.pointsFrom[0]],null,null,e.duration,e.beginTime),d.animation=new Ht([e.pointsFrom[e.pointsFrom.length-1],t.pointsFrom[0]],null,null,e.duration,e.beginTime),h.animation.beginTimeCorrect=e.beginTimeCorrect,d.animation.beginTimeCorrect=e.beginTimeCorrect,u.animation=e,m.animation=t):i=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement)}r.fillDrawAnimationPath(t,null,o,ht.getBoundsState,null,i,null)}else r.fillPath(t,o,ht.getBoundsState,null)}},te.d.StiSteppedRangeSeriesGeom=class extends te.d.StiSteppedLineSeriesGeom{constructor(e,t,i){super(e,t,i),this.pointsEnd=t.pointsEnd}draw(r){var s=this.series,e=te.d.StiNullableDrawing.getPointsList(this.getSteppedPoints(this.points)),t=te.d.StiNullableDrawing.getPointsList(this.getSteppedPoints(this.pointsEnd)),n=this.getSteppedPointsIds(this.pointsIds);if(e.length<1||t.length<1)return;var l=e[0],a=t[0],o=Math.min(l.length,a.length);let h=[],u=[],d=[],m=[];for(let i=0;i<o;i++){var c=l[i],S=a[i],g=n[i],p=n[i]+"_e";let e=null,t=null;i!=o-1&&(e=l[i+1],t=a[i+1]),d.push(c),m.push(S),h.push(g),u.push(p),this.intersection(c,S,e,t)?(d.push(e),m.push(t),h.push(g+"_c"),u.push(g+"_c_e"),this.fillPath(r,this.getBrush(s,c,S),d.map(e=>e),m.map(e=>e),h.map(e=>e),u.map(e=>e)),d.stimulsoft().clear(),m.stimulsoft().clear(),h.stimulsoft().clear(),u.stimulsoft().clear(),d.push(e),m.push(t),h.push(g+"_c"),u.push(g+"_c_e")):null==e&&this.fillPath(r,this.getBrush(s,c,S),d.map(e=>e),m.map(e=>e),h.map(e=>e),u.map(e=>e))}}getBrush(e,t,i){let r=e.brush;return e.allowApplyBrushNegative&&(r=t.y<i.y?e.brushNegative:e.brush),r}fillPath(r,e,s,n,l,a){let t=[];var i=n.map(e=>e).reverse();let o=new pt(i[i.length-1],s[0]),h=new dt(s),u=new pt(s[s.length-1],i[0]),d=new dt(i);if(t.push(o),t.push(h),t.push(u),t.push(d),this.series.chart.isAnimation){let i=null;if(this.series.chart.isAnimationChangingValues){let e=new Ht(s,s,l,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);e.id=`series_${this.series.chart.series.indexOf(this.series)}_a`;let t=new Ht(n,n,a,e.duration,e.beginTime);t.id=`series_${this.series.chart.series.indexOf(this.series)}_a_e`,r.animations.push(e),r.animations.push(t),Ht.isAnimationChangingValues(this.series,l,e.id)?(e.applyPreviousAnimation(this.series.chart.previousAnimations),t.applyPreviousAnimation(this.series.chart.previousAnimations),t.reverse(),o.animation=new Ht([t.pointsFrom[t.pointsFrom.length-1],e.pointsFrom[0]],null,null,e.duration,e.beginTime),u.animation=new Ht([e.pointsFrom[e.pointsFrom.length-1],t.pointsFrom[0]],null,null,e.duration,e.beginTime),o.animation.beginTimeCorrect=e.beginTimeCorrect,u.animation.beginTimeCorrect=e.beginTimeCorrect,h.animation=e,d.animation=t):i=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement)}r.fillDrawAnimationPath(e,null,t,ht.getBoundsState,null,i,null)}else r.fillPath(e,t,ht.getBoundsState,null)}intersection(e,t,i,r){if(null==i)return!1;return e.y>t.y&&i.y<r.y||e.y<t.y&&i.y>r.y||i.y==r.y}},te.d.StiScatterSplineSeriesGeom=class extends te.d.StiBaseLineSeriesGeom{contains(t,i){if(this.invisible)return!1;for(let e=0;e<this.points.length-1;e++){var r=this.points[e],s=this.points[e+1],n;if(null==r||null==s)continue;if(te.d.StiPointHelper.isLineContainsPoint(r,s,te.d.StiMouseOverHelper.mouseOverLineDistance,new ee(t,i)))return!0}return!1}draw(t){var i=this.series;t.pushSmoothingModeToAntiAlias();var r=i.lineStyle,s=i.lineWidth*t.options.zoom,n=this.getAnimation();let e=new ut(i.lineColor,i.lineWidth);if(e.penStyle=r,i.showShadow){let e=new ut(re.fromArgb(50,0,0,0),s+.5*t.options.zoom);e.penStyle=r,t.pushTranslateTransform(s,s),te.d.StiNullableDrawing.drawCurve(t,e,this.points,i.tension,n),t.popTransform()}if(te.d.StiNullableDrawing.drawCurve(t,e,this.points,i.tension,n),2<=s&&i.lighting){var s=.5*t.options.zoom;t.pushTranslateTransform(-s,-s);let e=new ut(qe.light(i.lineColor,70),1);e.penStyle=r,te.d.StiNullableDrawing.drawCurve(t,e,this.points,i.tension,n),t.popTransform()}t.popSmoothingMode()}constructor(e,t,i){super(e,t,i)}},te.d.StiStackedBarSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a){super(e,t,i,n,l,r),this.seriesBorderColor=s,this.columnRectStart=a}draw(t){var i=this.clientRectangle.clone(),r=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(t.options.zoom));let e=this.series.chart;var s=this.series.as(te.d.IStiFontIconsSeries);if(null!=s&&null!=s.icon){var n=e.area.as(te.d.IStiRoundValuesArea),n=null==n?void 0:n.roundValues;return void te.a.StiFontIconsHelper.drawDirectionIcons(t,this.seriesBrush,i,new Tt(i.height,i.height),s.icon,this.getToolTip(),!1,n)}var s=this.getAnimation(),n,n,n;if(null!=s){this.series.showShadow&&(n=this.areaGeom.area,n=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/n.core.valuesCount*this.index),n=new xt(te.d.StiChartHelper.globalDurationElement,new U(n.ticks+te.d.StiChartHelper.globalDurationElement.ticks)),t.drawShadowRect(this.clientRectangle,5,n)),t.drawAnimationBar(this.seriesBrush,r,i,this.value,this.getToolTip(),this,s,this.getInteractionData())}else{this.series.chart.style.core.fillColumn(t,i,this.seriesBrush,this.getInteractionData());let e=null;e=0<this.value?[new ee(i.right,i.y),new ee(i.x,i.y),new ee(i.x,i.bottom),new ee(i.right,i.bottom)]:[new ee(i.x,i.y),new ee(i.right,i.y),new ee(i.right,i.bottom),new ee(i.x,i.bottom)],t.drawLines(r,e)}}getAnimation(){if(!this.series.chart.isAnimation)return null;let e=this.areaGeom.area;var t=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/e.core.valuesCount*this.index),i;let r=new Xt(this.columnRectStart,this.clientRectangle,te.d.StiChartHelper.globalDurationElement,t),s=(e.yAxis.core.getStartFromZero()?e.yAxis.info.stripLines.getByIndex(this.index+1):e.yAxis.info.stripLines.getByIndex(this.index)).valueObject;return s=null==s?"":s.stimulsoft().toString(),r.id=`series_${this.series.chart.series.indexOf(this.series)}_${s}`,Xt.isAnimationChangingValues(this.series,r.id)&&r.applyPreviousAnimation(this.series.chart.previousAnimations),r}},te.d.StiStackedBarSeriesShadowElementGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r){super(t),this.isLeftShadow=!1,this.isRightShadow=!1,this.series=e,this.isLeftShadow=i,this.isRightShadow=r}get invisible(){return!0}draw(e){var t=this.clientRectangle.clone();this.series.is(te.d.IStiFullStackedBarSeries)?e.drawCachedShadow(t,Nt.Bottom,e.options.isPrinting):(this.isLeftShadow&&e.drawCachedShadow(t,Nt.Bottom|Nt.Left,e.options.isPrinting),this.isRightShadow&&e.drawCachedShadow(t,Nt.Top|Nt.Right|Nt.Edge|Nt.Bottom,e.options.isPrinting))}};{let r=class extends te.d.StiSeriesGeom{constructor(e,t,i){super(e,i,r.getClientRectangle(t.pointsStart,t.pointsEnd)),this.startPoints=t.pointsStart,this.endPoints=t.pointsEnd,this.pointsIds=t.pointsIds}contains(t,i){if(this.invisible)return!1;for(let e=0;e<this.startPoints.length-1;e++){var r=this.startPoints[e],s=this.startPoints[e+1],n=this.endPoints[e],l=this.endPoints[e+1],a;if(null==r||null==n||null==l||null==s)continue;if(te.d.StiPointHelper.isPointInPolygon(new ee(t,i),[r,s,l,n]))return!0}return!1}static getClientRectangle(e,t){if(null==e||0==e.length||null==t||0==t.length)return ne.empty;let i=ee.empty,r=ee.empty;for(var s of e){if(null==s)continue;i==ee.empty?(i=s,r=s):(i.x=Math.min(i.x,s.x),i.y=Math.min(i.y,s.y),r.x=Math.max(r.x,s.x),r.y=Math.max(r.y,s.y))}for(var n of t){if(null==n)continue;i==ee.empty?(i=n,r=n):(i.x=Math.min(i.x,n.x),i.y=Math.min(i.y,n.y),r.x=Math.max(r.x,n.x),r.y=Math.max(r.y,n.y))}return new ne(i.x,i.y,r.x-i.x,r.y-i.y)}draw(a){var o=this.series,h=o.chart.isAnimation,e,u,t={ref:e},i={ref:u},d;te.d.StiNullableDrawing.getPointsList2(this.startPoints,this.endPoints,t,i),u=i.ref;let m=0;for(d of e=t.ref){var c=u[m],S=d.map(e=>e).reverse();let t=[],i=new pt(d[0],c[0]),r=new dt(c),s=new pt(c[c.length-1],d[d.length-1]),n=new dt(S);t.push(i),t.push(r),t.push(s),t.push(n);let l=null;if(h&&o.chart.isAnimationChangingValues){let e=new Ht(c,c,this.pointsIds,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);e.id=`series_${this.series.chart.series.indexOf(this.series)}_a`;let t=new Ht(d,d,this.pointsIds,e.duration,e.beginTime);t.id=`series_${this.series.chart.series.indexOf(this.series)}_a_r`,a.animations.push(e),a.animations.push(t),Ht.isAnimationChangingValues(this.series,this.pointsIds,e.id)?(e.applyPreviousAnimation(this.series.chart.previousAnimations),t.applyPreviousAnimation(this.series.chart.previousAnimations),t.reverse(),i.animation=new Ht([t.pointsFrom[t.pointsFrom.length-1],e.pointsFrom[0]],null,null,e.duration,e.beginTime),r.animation=e,s.animation=new Ht([e.pointsFrom[e.pointsFrom.length-1],t.pointsFrom[0]],null,null,e.duration,e.beginTime),i.animation.beginTimeCorrect=e.beginTimeCorrect,s.animation.beginTimeCorrect=e.beginTimeCorrect,n.animation=t):l=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement)}if(null!=o.brush&&(h?a.fillDrawAnimationPath(o.brush,null,t,ht.getBoundsState,null,l,null):a.fillPath(o.brush,t,ht.getBoundsState,null)),o.allowApplyBrushNegative&&null!=o.brushNegative){let e=this.series.chart.area;var g=e.axisCore.getDividerY(),S=e.axisCore.scrollRangeX*e.axisCore.scrollDpiX,c=e.axisCore.scrollRangeY*e.axisCore.scrollDpiY-g,c=new ne(0,g,S,c);a.pushClip(c),h?a.fillDrawAnimationPath(o.brushNegative,null,t,ht.getBoundsState,null,l,null):a.fillPath(o.brushNegative,t,ht.getBoundsState,null),a.popClip()}m++}}};te.d.StiStackedAreaSeriesGeom=r}{let r=class extends te.d.StiSeriesGeom{constructor(e,t,i){super(e,i,r.getClientRectangle(t)),this.points=t}static getClientRectangle(e){if(null==e||0==e.length)return ne.empty;let t=ee.empty,i=ee.empty;for(var r of e){if(null==r)continue;t==ee.empty?(t=r,i=r):(t.x=Math.min(t.x,r.x),t.y=Math.min(t.y,r.y),i.x=Math.max(i.x,r.x),i.y=Math.max(i.y,r.y))}return new ne(t.x,t.y,i.x-t.x,i.y-t.y)}draw(e){}};te.d.StiStackedBaseLineSeriesGeom=r}te.d.StiStackedColumnSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a){super(e,t,i,n,l,r),this.seriesBorderColor=s,this.columnRectStart=a}draw(t){var i=this.clientRectangle.clone(),r=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(t.options.zoom));let e=this.series.chart;var s=this.series.as(te.d.IStiFontIconsSeries);if(null!=s&&null!=s.icon){var n=e.area.as(te.d.IStiRoundValuesArea),n=null==n?void 0:n.roundValues;return void te.a.StiFontIconsHelper.drawDirectionIcons(t,this.seriesBrush,i,new Tt(i.width,i.width),s.icon,this.getToolTip(),!0,n)}var s=this.getAnimation(),n,n,n;if(null!=s){this.series.showShadow&&(n=this.areaGeom.area,n=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/n.core.valuesCount*this.index),n=new xt(te.d.StiChartHelper.globalDurationElement,new U(n.ticks+te.d.StiChartHelper.globalDurationElement.ticks)),t.drawShadowRect(i,5,n)),t.drawAnimationColumn(this.seriesBrush,r,i,this.value,this.getToolTip(),this,s,this.getInteractionData())}else{this.series.chart.style.core.fillColumn(t,i,this.seriesBrush,this.getInteractionData());let e=null;e=0<this.value?[new ee(i.x,i.bottom),new ee(i.x,i.y),new ee(i.right,i.y),new ee(i.right,i.bottom)]:[new ee(i.x,i.y),new ee(i.x,i.bottom),new ee(i.right,i.bottom),new ee(i.right,i.y)],t.drawLines(r,e)}}getAnimation(){if(!this.series.chart.isAnimation)return null;let e=this.areaGeom.area;var t=new U(te.d.StiChartHelper.globalBeginTimeElement.ticks/e.core.valuesCount*this.index),i;let r=new Xt(this.columnRectStart,this.clientRectangle,te.d.StiChartHelper.globalDurationElement,t),s=(e.xAxis.core.getStartFromZero()?e.xAxis.info.stripLines.getByIndex(this.index+1):e.xAxis.info.stripLines.getByIndex(this.index)).valueObject;return s=null==s?"":s.stimulsoft().toString(),r.id=`series_${this.series.chart.series.indexOf(this.series)}_${s}`,Xt.isAnimationChangingValues(this.series,r.id)&&r.applyPreviousAnimation(this.series.chart.previousAnimations),r}},te.d.StiStackedColumnSeriesShadowElementGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r){super(t),this.series=e,this.isTopShadow=i,this.isBottomShadow=r}get invisible(){return!0}draw(e){var t=this.clientRectangle.clone();this.series.is(te.d.IStiFullStackedColumnSeries)?e.drawCachedShadow(t,Nt.Right,e.options.isPrinting):(this.isTopShadow&&e.drawCachedShadow(t,Nt.Top|Nt.Right,e.options.isPrinting),this.isBottomShadow&&e.drawCachedShadow(t,Nt.Right|Nt.Edge|Nt.Bottom|Nt.Left,e.options.isPrinting))}},te.d.StiStackedLineSeriesGeom=class extends te.d.StiBaseLineSeriesGeom{contains(t,i){if(this.invisible)return!1;for(let e=0;e<this.points.length-1;e++){var r=this.points[e],s=this.points[e+1],n;if(null==r||null==s)continue;if(te.d.StiPointHelper.isLineContainsPoint(r,s,te.d.StiMouseOverHelper.mouseOverLineDistance,new ee(t,i)))return!0}return!1}draw(n){var t=this.series;if(0==this.points.length)return;if(1<this.points.length){var l=this.getAnimation();n.pushSmoothingModeToAntiAlias();var a=t.lineStyle,o=t.lineWidth*n.options.zoom;let s=new ut(t.lineColor,o);s.penStyle=a;var h=t.lighting;if(t.showShadow){let e=new ut(re.fromArgb(50,0,0,0),o+.5*n.options.zoom);e.penStyle=a,n.pushTranslateTransform(o,o),te.d.StiNullableDrawing.drawLines(n,e,this.points,l),n.popTransform()}var u=this.series.lineColor;if(this.series.allowApplyColorNegative){var d=this.series.lineColorNegative;let t=new ut(d,o);t.penStyle=a;let e=this.series.chart.area;var m=e.axisCore.getDividerY();let i=[],r=[];for(let e=0;e<this.points.length;e++){var c=this.points[e],S=e!=this.points.length-1?this.points[e+1]:null,g,c;if(c.y>m){if(i.push(c),null==S||S.y<m||S.y==m&&e+2<this.points.length&&this.points[e+2].y<=m){if(null!=S&&(g=this.getPointCross(c,this.points[e+1],m),i.push(g),S.y==m&&e+2<this.points.length&&this.points[e+2].y<=m&&i.push(this.points[e+2]),r.push(g)),te.d.StiNullableDrawing.drawLines(n,t,i,l),o>=2*n.options.zoom&&h){var g=.5*n.options.zoom;n.pushTranslateTransform(-g,-g);let e=new ut(qe.light(d,70),o);e.penStyle=a,te.d.StiNullableDrawing.drawLines(n,e,i,l),n.popTransform()}i.stimulsoft().clear()}}else if(r.push(c),null==S||S.y>m){if(null!=S&&(c=this.getPointCross(c,this.points[e+1],m),i.push(c),r.push(c),r.push(S)),te.d.StiNullableDrawing.drawLines(n,s,r,l),o>=2*n.options.zoom&&h){var S=.5*n.options.zoom;n.pushTranslateTransform(-S,-S);let e=new ut(qe.light(u,70),o);e.penStyle=a,te.d.StiNullableDrawing.drawLines(n,e,r,l),n.popTransform()}r.stimulsoft().clear()}}}else if(te.d.StiNullableDrawing.drawLines(n,s,this.points,l),o>=2*n.options.zoom&&t.lighting){var t=.5*n.options.zoom;n.pushTranslateTransform(-t,-t);let e=new ut(qe.light(u,70),o);e.penStyle=a,te.d.StiNullableDrawing.drawLines(n,e,this.points,l),n.popTransform()}n.popSmoothingMode()}}getPointCross(e,t,i){var r=e.y,s=e.x,e=t.y,t=t.x,s=Math.tan(Math.atan((t-s)/(r-e)))*(r-i)+s;return new ee(s,i)}constructor(e,t,i){super(e,t,i)}};{let r=class extends te.d.StiSeriesGeom{constructor(e,t,i){super(e,i,r.getClientRectangle(t.pointsStart,t.pointsEnd)),this.startPoints=t.pointsStart,this.endPoints=t.pointsEnd,this.pointsIds=t.pointsIds}contains(t,i){if(this.invisible)return!1;for(let e=0;e<this.startPoints.length-1;e++){var r=this.startPoints[e],s=this.startPoints[e+1],n=this.endPoints[e],l=this.endPoints[e+1],a;if(null==r||null==n||null==l||null==s)continue;if(te.d.StiPointHelper.isPointInPolygon(new ee(t,i),[r,s,l,n]))return!0}return!1}static getClientRectangle(e,t){if(null==e||0==e.length||null==t||0==t.length)return ne.empty;let i=ee.empty,r=ee.empty;for(var s of e){if(null==s)continue;i==ee.empty?(i=s,r=s):(i.x=Math.min(i.x,s.x),i.y=Math.min(i.y,s.y),r.x=Math.max(r.x,s.x),r.y=Math.max(r.y,s.y))}for(var n of t){if(null==n)continue;i==ee.empty?(i=n,r=n):(i.x=Math.min(i.x,n.x),i.y=Math.min(i.y,n.y),r.x=Math.max(r.x,n.x),r.y=Math.max(r.y,n.y))}return new ne(i.x,i.y,r.x-i.x,r.y-i.y)}draw(a){var t=this.series,e,o;let h=this.series.chart.area;var i={ref:e},r={ref:o};te.d.StiNullableDrawing.getPointsList2(this.startPoints,this.endPoints,i,r);var e,o=r.ref,u=this.series.chart,d;let m=0;for(d of e=i.ref){var c=o[m],S=d.map(e=>e).reverse(),g,S,c,c;let e=[],i=new pt(d[0],c[0]),r=new Ot(c,t.tension),s=new pt(c[c.length-1],d[d.length-1]),n=new Ot(S,t.tension);e.push(i),e.push(r),e.push(s),e.push(n);let l=null;if(this.series.chart.isAnimation&&t.chart.isAnimationChangingValues){let e=new Ht(c,c,this.pointsIds,te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement);e.id=`series_${this.series.chart.series.indexOf(this.series)}_a`;let t=new Ht(d,d,this.pointsIds,e.duration,e.beginTime);t.id=`series_${this.series.chart.series.indexOf(this.series)}_a_r`,a.animations.push(e),a.animations.push(t),Ht.isAnimationChangingValues(this.series,this.pointsIds,e.id)?(e.applyPreviousAnimation(this.series.chart.previousAnimations),t.applyPreviousAnimation(this.series.chart.previousAnimations),t.reverse(),i.animation=new Ht([t.pointsFrom[t.pointsFrom.length-1],e.pointsFrom[0]],null,null,e.duration,e.beginTime),r.animation=e,s.animation=new Ht([e.pointsFrom[e.pointsFrom.length-1],t.pointsFrom[0]],null,null,e.duration,e.beginTime),i.animation.beginTimeCorrect=e.beginTimeCorrect,s.animation.beginTimeCorrect=e.beginTimeCorrect,n.animation=t):l=new xt(te.d.StiChartHelper.globalDurationElement,te.d.StiChartHelper.globalBeginTimeElement)}null!=t.brush&&(u.isAnimation?a.fillDrawAnimationPath(t.brush,null,e,ht.getBoundsState,null,l,null):a.fillPath(t.brush,e,ht.getBoundsState,null)),t.allowApplyBrushNegative&&null!=t.brushNegative&&(g=h.axisCore.getDividerY(),S=h.axisCore.scrollRangeX*h.axisCore.scrollDpiX,c=h.axisCore.scrollRangeY*h.axisCore.scrollDpiY-g,c=new ne(0,g,S,c),a.pushClip(c),u.isAnimation?a.fillDrawAnimationPath(t.brushNegative,null,e,ht.getBoundsState,null,l,null):a.fillPath(t.brushNegative,e,ht.getBoundsState,null),a.popClip()),m++}}};te.d.StiStackedSplineAreaSeriesGeom=r}te.d.StiStackedSplineSeriesGeom=class extends te.d.StiBaseLineSeriesGeom{contains(t,i){if(this.invisible)return!1;for(let e=0;e<this.points.length-1;e++){var r=this.points[e],s=this.points[e+1],n;if(null==r||null==s)continue;if(te.d.StiPointHelper.isLineContainsPoint(r,s,te.d.StiMouseOverHelper.mouseOverSplineDistance,new ee(t,i)))return!0}return!1}draw(i){if(0==this.points.length)return;var r=this.series,s=this.getAnimation();i.pushSmoothingModeToAntiAlias();var n=r.lineStyle,l=r.lineWidth*i.options.zoom;let e=new ut(r.lineColor,l);if(e.penStyle=n,null!=this.points&&1<this.points.length){if(r.showShadow){let e=new ut(re.fromArgb(50,0,0,0),l+.5*i.options.zoom);e.penStyle=n,i.pushTranslateTransform(l,l),te.d.StiNullableDrawing.drawCurve(i,e,this.points,r.tension,s),i.popTransform()}if(te.d.StiNullableDrawing.drawCurve(i,e,this.points,r.tension,s),2<=l&&r.lighting){var a=.5*i.options.zoom;i.pushTranslateTransform(-a,-a);let e=new ut(qe.light(r.lineColor,70),l);e.penStyle=n,te.d.StiNullableDrawing.drawCurve(i,e,this.points,r.tension,s),i.popTransform()}if(r.allowApplyColorNegative){let e=new ut(r.lineColorNegative,l);e.penStyle=n;let t=this.series.chart.area;var o=t.axisCore.getDividerY(),h=t.axisCore.scrollRangeX*t.axisCore.scrollDpiX,a=t.axisCore.scrollRangeY*t.axisCore.scrollDpiY-o,a=new ne(0,o,h,a);if(i.pushClip(a),te.d.StiNullableDrawing.drawCurve(i,e,this.points,r.tension,s),2<=l&&r.lighting){var a=.5*i.options.zoom;i.pushTranslateTransform(-a,-a);let e=new ut(qe.light(r.lineColorNegative,70),l);e.penStyle=n,te.d.StiNullableDrawing.drawCurve(i,e,this.points,r.tension,s),i.popTransform()}i.popClip()}}i.popSmoothingMode()}constructor(e,t,i){super(e,t,i)}},te.d.StiSunburstSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m,c,S,g){super(e,t,i,n,l,u),this.index2=0,this.index3=0,this.index2=r,this.index3=s,this.clientRectangleDt=a,this.path=o,this.borderColor=h,this.brush=u,this.startAngle=d,this.endAngle=m,this.radiusFrom=c,this.radiusTo=S,this.beginTime=g}contains(e,t){if(this.invisible)return!1;var i=new ee(this.clientRectangle.x+this.clientRectangle.width/2,this.clientRectangle.y+this.clientRectangle.height/2),e=e-i.x,t=t-i.y,i=Math.sqrt(e*e+t*t);if(i<this.radiusTo||i>this.radiusFrom)return!1;let r=180*Math.atan2(t,e)/Math.PI;return r<0&&(r+=360),r>=this.startAngle&&r<=this.endAngle}draw(e){var t=this.clientRectangle.clone();let i=new ut(this.borderColor,this.getSeriesBorderThickness(e.options.zoom));i.alignment=jt.Inset;var r=this.getAnimation();null!=r?e.drawAnimationPathElement(this.brush,i,this.path,t,this.getToolTip(),this,r,this.getInteractionData()):(e.pushSmoothingModeToAntiAlias(),null!=this.path&&e.fillPath(this.brush,this.path,t,this.getInteractionData()),e.drawPath(i,this.path,ht.getBoundsState),e.popSmoothingMode())}getAnimation(){if(!this.series.chart.isAnimation)return null;var s=te.d.StiChartHelper.globalDurationElement,n,l;let a=null,o=null;if(this.series.chart.isAnimationChangingValues){let e=this.startAngle,t=this.endAngle,i=this.clientRectangle.clone(),r=this.clientRectangle.clone();4==this.path.length&&this.path[0].is(gt)&&this.path[2].is(gt)&&(n=this.path[0],l=this.path[2],e=n.startAngle,t=n.startAngle+n.sweepAngle,i=n.rect,r=l.rect),o=new Yt(this.clientRectangle,i,this.clientRectangleDt,r,this.startAngle,this.endAngle,e,t,s,U.zero),o.id=`series_${this.series.chart.series.indexOf(this.series)}_${this.index}_${this.index2}_${this.index3}`,Yt.isAnimationChangingValues(this.series,o.id)&&(o.applyPreviousAnimation(this.series.chart.previousAnimations),a=o)}if(null==a){let e=this.beginTime;0<this.series.chart.previousAnimations.length&&(e=U.fromMilliseconds(300));let t=new xt(s,e);t.anotherAnimation=o,t.id=`series_${this.series.chart.series.indexOf(this.series)}_${this.index}_${this.index2}_${this.index3}`,a=t}return a}},te.d.StiTreemapSeriesElementGeom=class extends te.d.StiSeriesElementGeom{constructor(e,t,i,r,s,n,l,a){super(e,t,i,n,l,r),this.seriesBrush=r,this.seriesBorderColor=s,this.animation=a}draw(e){var t=this.series.chart,i=this.clientRectangle.clone(),r=this.series.as(te.d.IStiFontIconsSeries),s,s,i;if(null!=r&&null!=r.icon){var n=30;return e.pushClip(i),te.a.StiFontIconsHelper.drawFillIcons(e,this.seriesBrush,i,new Tt(n,n),r.icon,this.getToolTip()),void e.popClip()}t.isAnimation?(s=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(e.options.zoom)),e.drawAnimationRectangle(this.seriesBrush,s,new mt(i.x,i.y,i.width,i.height),this,this.animation,this.getInteractionData(),this.getToolTip())):(super.draw(e),this.series.chart.style.core.fillColumn(e,i,this.seriesBrush,this.getInteractionData()),s=new ut(this.seriesBorderColor,this.getSeriesBorderThickness(e.options.zoom)),i=[new ee(i.x,i.bottom),new ee(i.x,i.y),new ee(i.right,i.y),new ee(i.right,i.bottom),new ee(i.x,i.bottom)],e.drawLines(s,i))}},te.d.StiSeriesLabelsGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s){super(s),this.beginTime=new U(0),this.duration=new U(0),this.seriesLabels=e,this.series=t,this.index=i,this.value=r}getValueIndex(){let e=this.index;return this.series.is(te.d.IStiClusteredBarSeries)||this.series.is(te.d.IStiStackedBarSeries)||this.series.is(te.d.IStiFullStackedBarSeries)?this.series.chart.area.is(te.d.IStiAxisArea)&&!this.series.chart.area.reverseVert&&(e=this.series.values.length-e-1):this.series.chart.area.is(te.d.IStiAxisArea)&&this.series.chart.area.reverseHor&&(e=this.series.values.length-e-1),e}getHyperlink(e){return null!=this.series.hyperlinks&&e<this.series.hyperlinks.length?this.series.hyperlinks[e]:null}getToolTip(e){return null!=this.series.toolTips&&e<this.series.toolTips.length?this.series.hyperlinks[e]:null}drawMarker(t,i,r,s){if(this.seriesLabels.markerVisible){var n=this.series.chart;let e=mt.empty;switch(this.seriesLabels.markerAlignment==te.d.StiMarkerAlignment.Right?e.x=M.trunc(i.right+2*t.options.zoom):e.x=M.trunc(i.left-(2+this.seriesLabels.markerSize.width)*t.options.zoom),this.seriesLabels.markerAlignment){case te.d.StiMarkerAlignment.Right:e.x=M.trunc(i.right+2*t.options.zoom);break;case te.d.StiMarkerAlignment.Left:e.x=M.trunc(i.left-(2+this.seriesLabels.markerSize.width)*t.options.zoom);break;case te.d.StiMarkerAlignment.Center:e.x=M.trunc(i.left+ +i.width/2-(2+this.seriesLabels.markerSize.width)/2*t.options.zoom);break}e.y=M.trunc(i.y+(
  i.height-this.seriesLabels.markerSize.height*t.options.zoom)/2),e.width=M.trunc(this.seriesLabels.markerSize.width*t.options.zoom),e.height=M.trunc(this.seriesLabels.markerSize.height*t.options.zoom);var r=r instanceof re?r:re.black,r=new ut(r,1),n;n.isAnimation?(n=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalBeginTimeElement),t.drawAnimationRectangle(s,r,e,null,n,null,this.getToolTip(this.getValueIndex()))):(t.fillRectangle2(s,e.x,e.y,e.width,e.height,null),t.drawRectangle2(r,e.x,e.y,e.width,e.height))}}draw(e){}},te.d.StiCenterAxisLabelsGeom=class extends te.d.StiSeriesLabelsGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m){super(e,t,i,r,s),this.text=n,this.labelColor=l,this.labelBorderColor=a,this.seriesBrush=o,this.seriesLabelsBrush=h,this.seriesBorderColor=u,this.font=d,this.animation=m}draw(e){let t=this.clientRectangle.clone(),i=this.seriesLabels.core.getStringFormatGeom(e);var r;i.alignment=F.Center,i.lineAlignment=F.Center,this.series.chart.isAnimation&&null==this.animation&&(this.animation=new xt(this.duration,this.beginTime)),this.drawMarker(e,t,this.seriesBorderColor,this.seriesBrush);var s=t.x+t.width/2,n=t.y+t.height/2;e.pushTranslateTransform(s,n),e.pushRotateTransform(this.seriesLabels.angle);let l=t.clone();l.x=-l.width/2-1,l.y=-l.height/2-1,l.width+=2,l.height+=2,this.drawLabelArea(e,l),this.drawLabelText(e,l),e.popTransform(),e.popTransform()}drawLabelArea(e,t){if(t.isEmpty)return;var i=this.series.chart,r=this.seriesLabels.drawBorder?new ut(this.labelBorderColor,1):null;i.isAnimation?e.drawAnimationRectangle(this.seriesLabelsBrush,r,t,null,this.animation,null,null):(e.fillRectangle(this.seriesLabelsBrush,t,null),this.seriesLabels.drawBorder&&e.drawRectangle(r,t))}drawLabelText(e,t){var i=new se(this.labelColor),r=this.series.chart,s=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size);let n=this.seriesLabels.core.getStringFormatGeom(e);n.alignment=F.Center,n.lineAlignment=F.Center,r.isAnimation?e.drawAnimationText(this.text,s,i,t,n,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width,this.animation):e.drawRotatedString6(this.text,s,i,t,n,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width)}},te.d.StiOutsideAxisLabelsGeom=class extends te.d.StiSeriesLabelsGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m,c){super(e,t,i,r,s),this.text=n,this.labelColor=l,this.labelBorderColor=a,this.seriesBrush=o,this.seriesBorderColor=h,this.font=u,this.startPoint=d,this.endPoint=m,this.animation=c}draw(e){let t=this.clientRectangle.clone();var i;this.series.chart.isAnimation&&null==this.animation&&(this.animation=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalDurationElement)),this.drawMarker(e,t,this.seriesBorderColor,this.seriesBrush),this.drawLines(e,t),e.pushTranslateTransform(t.x+t.width/2,t.y+t.height/2),e.pushRotateTransform(this.seriesLabels.angle);let r=t.clone();r.x=-r.width/2,r.y=-r.height/2,this.drawLabelArea(e,r),this.drawLabelText(e,r),e.popTransform(),e.popTransform()}drawLabelArea(e,t){if(t.isEmpty)return;var i=this.series.chart,r=this.seriesLabels.drawBorder?new ut(this.labelBorderColor,1):null;i.isAnimation?e.drawAnimationRectangle(this.seriesLabels.brush,r,t,null,this.animation,null,null):(e.fillRectangle(this.seriesLabels.brush,t,null),this.seriesLabels.drawBorder&&e.drawRectangle(r,t))}drawLines(e,t){var i=this.series.chart,r=new ut(this.labelBorderColor);i.isAnimation?e.drawAnimationLines(r,[this.endPoint,this.startPoint],this.animation):e.drawLine(r,this.endPoint.x,this.endPoint.y,this.startPoint.x,this.startPoint.y)}drawLabelText(e,t){var i=new se(this.labelColor),r=this.series.chart,s=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size);let n=this.seriesLabels.core.getStringFormatGeom(e);n.alignment=F.Center,n.lineAlignment=F.Center,r.isAnimation?e.drawAnimationText(this.text,s,i,t,n,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width,this.animation):e.drawRotatedString6(this.text,s,i,t,n,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width)}},te.d.StiCenterFunnelLabelsGeom=class extends te.d.StiSeriesLabelsGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d){super(e,t,i,r,s),this.text=n,this.labelBrush=a,this.borderColor=o,this.seriesBorderColor=h,this.seriesBrush=l,this.labelRect=u,this.animation=d}draw(e){var t=this.clientRectangle.clone(),i;this.series.chart.isAnimation&&null==this.animation&&(this.animation=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalDurationElement)),this.drawMarker(e,this.labelRect,this.seriesBorderColor,this.seriesBrush);var r=t.x+t.width/2,s=t.y+t.height/2;e.pushTranslateTransform(r,s),e.pushRotateTransform(this.seriesLabels.angle);let n=t;n.x=-n.width/2,n.y=-n.height/2,this.drawLabelArea(e,n),this.drawLabelText(e,n),e.popTransform(),e.popTransform()}drawLabelArea(e,t){if(t.isEmpty)return;var i=this.series.chart,r=this.seriesLabels.drawBorder?new ut(this.borderColor,1):null;i.isAnimation?e.drawAnimationRectangle(this.seriesLabels.brush,r,t,null,this.animation,null,null):(e.fillRectangle(this.seriesLabels.brush,t,null),this.seriesLabels.drawBorder&&e.drawRectangle(r,t))}drawLabelText(e,t){var i=this.series.chart,r=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size);let s=this.seriesLabels.core.getStringFormatGeom(e);s.alignment=F.Center,s.lineAlignment=F.Center,i.isAnimation?e.drawAnimationText(this.text,r,this.labelBrush,t,s,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width,this.animation):e.drawRotatedString6(this.text,r,this.labelBrush,t,s,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width)}},te.d.StiOutsideFunnelLabelsGeom=class extends te.d.StiCenterFunnelLabelsGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m){super(e,t,i,r,s,n,l,a,o,h,u,null),this.startPointLine=d,this.endPointLine=m}draw(e){var t=this.series.chart,i=new ut(this.borderColor),t;t.isAnimation?(t=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalDurationElement),e.drawAnimationLines(i,[this.startPointLine,this.endPointLine],t)):e.drawLine(i,this.startPointLine.x,this.startPointLine.y,this.endPointLine.x,this.endPointLine.y),super.draw(e)}},te.d.StiCenterPieLabelsGeom=class extends te.d.StiSeriesLabelsGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m,c,S){super(e,t,i,r,s),this.text=n,this.labelBrush=a,this.borderColor=h,this.seriesBorderColor=u,this.seriesLabelsBrush=o,this.seriesBrush=l,this.rotationMode=d,this.labelRect=m,this.angleToUse=c,this.animation=S}draw(e){var t=this.clientRectangle.clone(),i;this.series.chart.isAnimation&&null==this.animation&&(this.animation=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalDurationElement)),this.drawMarker(e,this.labelRect,this.seriesBorderColor,this.seriesBrush);var r=M.round2(this.labelRect.x+this.labelRect.width/2,0),s=M.round2(this.labelRect.y+this.labelRect.height/2,0);e.pushTranslateTransform(r,s),e.pushRotateTransform(this.angleToUse),this.drawLabelArea(e,t),this.drawLabelText(e,t),e.popTransform(),e.popTransform()}drawLabelArea(e,t){if(t.isEmpty)return;var i=this.series.chart,r=this.seriesLabels.drawBorder?new ut(this.borderColor,1):null;i.isAnimation?e.drawAnimationRectangle(this.seriesLabelsBrush,r,t,null,this.animation,null,null):(e.fillRectangle(this.seriesLabelsBrush,t,null),this.seriesLabels.drawBorder&&e.drawRectangle(r,t))}drawLabelText(e,t){var i=this.series.chart,r=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size);let s=this.seriesLabels.core.getStringFormatGeom(e);s.alignment=F.Center,s.lineAlignment=F.Center,i.isAnimation?e.drawAnimationText(this.text,r,this.labelBrush,t,s,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width,this.animation):e.drawRotatedString6(this.text,r,this.labelBrush,t,s,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width)}},te.d.StiOutsidePieLabelsGeom=class extends te.d.StiCenterPieLabelsGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m,c,S,g,p){super(e,t,i,r,s,n,l,a,o,h,u,d,m,c,null),this.lineColor=S,this.labelPoint=g,this.startPoint=p}draw(e){var t=this.seriesLabels,i,r,t;super.draw(e),t.drawBorder&&(i=new ut(this.lineColor),this.series.chart.isAnimation?(t=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalBeginTimeElement),e.drawAnimationLines(i,[this.labelPoint,this.startPoint],t)):e.drawLine(i,this.labelPoint.x,this.labelPoint.y,this.startPoint.x,this.startPoint.y))}},te.d.StiTwoColumnsPieLabelsGeom=class extends te.d.StiSeriesLabelsGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m,c,S,g,p,f){super(e,t,i,r,s),this.text=n,this.seriesLabelsBrush=o,this.labelBrush=a,this.lineColor=m,this.borderColor=h,this.seriesBorderColor=u,this.seriesBrush=l,this.labelRect=d,this.startPoint=c,this.endPoint=S,this.arcPoint=g,this.centerPie=p,this.animation=f}draw(e){var t=this.clientRectangle.clone(),i;this.series.chart.isAnimation&&null==this.animation&&(this.animation=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalDurationElement)),this.drawLines(e),this.drawMarker(e,t,this.seriesBorderColor,this.seriesBrush),this.drawLabelArea(e,t),this.drawLabelText(e,t)}drawLines(t){if(this.seriesLabels.drawBorder){let e=null;var i=new ut(this.lineColor,1);(this.centerPie.y>this.startPoint.y&&this.endPoint.y>this.startPoint.y||this.centerPie.y<this.startPoint.y&&this.endPoint.y<this.startPoint.y)&&(e=this.centerPie.x>this.endPoint.x?new ee(this.endPoint.x+13,this.startPoint.y):new ee(this.endPoint.x-13,this.startPoint.y));var r=null!=e?[this.endPoint,e,this.startPoint,this.arcPoint]:[this.endPoint,this.startPoint,this.arcPoint],s;this.series.chart.isAnimation?t.drawAnimationLines(i,r,this.animation):t.drawLines(i,r)}}drawMarker(t,i,r,s){if(this.seriesLabels.markerVisible){let e=mt.empty;var n=M.trunc(i.right+2*t.options.zoom),l=M.trunc(i.left-(2+this.seriesLabels.markerSize.width)*t.options.zoom);J["StiOptions"].Engine.allowFixPieChartMarkerAlignment?this.seriesLabels.markerAlignment==te.d.StiMarkerAlignment.Right?e.x=this.clientRectangle.x<this.centerPie.x?n:l:e.x=this.clientRectangle.x>this.centerPie.x?n:l:e.x=this.seriesLabels.markerAlignment==te.d.StiMarkerAlignment.Right?n:l,e.y=M.trunc(i.y+(i.height-this.seriesLabels.markerSize.height*t.options.zoom)/2),e.width=M.trunc(this.seriesLabels.markerSize.width*t.options.zoom),e.height=M.trunc(this.seriesLabels.markerSize.height*t.options.zoom);var r=r instanceof re?r:re.black,r=new ut(r,1);t.fillRectangle2(s,e.x,e.y,e.width,e.height,null),t.drawRectangle2(r,e.x,e.y,e.width,e.height)}}drawLabelArea(e,t){if(t.isEmpty)return;var i=this.series.chart,r=this.seriesLabels.drawBorder?new ut(this.borderColor,1):null;i.isAnimation?e.drawAnimationRectangle(this.seriesLabelsBrush,r,t,null,this.animation,null,null):(e.fillRectangle(this.seriesLabelsBrush,t,null),this.seriesLabels.drawBorder&&e.drawRectangle(r,t))}drawLabelText(e,t){var i=this.series.chart,r=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size);let s=this.seriesLabels.core.getStringFormatGeom(e);s.alignment=F.Center,s.lineAlignment=F.Center,i.isAnimation?e.drawAnimationText(this.text,r,this.labelBrush,t,s,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width,this.animation):e.drawRotatedString6(this.text,r,this.labelBrush,t,s,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width)}},te.d.StiCenterTreemapLabelsGeom=class extends te.d.StiSeriesLabelsGeom{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m){super(e,t,i,r,s),this.text=n,this.labelColor=l,this.labelBorderColor=a,this.seriesBrush=o,this.seriesLabelsBrush=h,this.seriesBorderColor=u,this.font=d,this.animation=m}draw(e){super.draw(e);let t=this.clientRectangle.clone();var i;this.series.chart.isAnimation&&null==this.animation&&(this.animation=new xt(te.d.StiChartHelper.globalBeginTimeElement,te.d.StiChartHelper.globalDurationElement)),this.drawMarker(e,t,this.seriesBorderColor,this.seriesBrush),this.drawMarker(e,t,this.seriesBorderColor,this.seriesBrush);var r=t.x+t.width/2,s=t.y+t.height/2;this.drawLabelArea(e,t),this.drawLabelText(e,t),e.pushTranslateTransform(r,s),e.pushRotateTransform(this.seriesLabels.angle);let n=t.clone();n.x=-n.width/2,n.y=-n.height/2,e.popTransform(),e.popTransform()}drawLabelArea(e,t){if(t.isEmpty)return;var i=this.series.chart,r=this.seriesLabels.drawBorder?new ut(this.labelBorderColor,1):null;i.isAnimation?e.drawAnimationRectangle(this.seriesLabelsBrush,r,t,null,this.animation,null,null):(e.fillRectangle(this.seriesLabelsBrush,t,null),this.seriesLabels.drawBorder&&e.drawRectangle(r,t))}drawLabelText(e,t){var i=new se(this.labelColor),r=this.series.chart,s=it.changeFontSize(this.seriesLabels.font,this.seriesLabels.font.size);let n=this.seriesLabels.core.getStringFormatGeom(e);n.alignment=F.Center,n.lineAlignment=F.Center,r.isAnimation?e.drawAnimationText(this.text,s,i,t,n,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width,this.animation):e.drawRotatedString6(this.text,s,i,t,n,rt.CenterCenter,0,this.seriesLabels.antialiasing,t.width)}},te.d.StiStripsXGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.strip=e}draw(e){var t=this.clientRectangle.clone(),i,r,s;e.fillRectangle2(this.strip.stripBrush,t.x,t.y,t.width,t.height,null),this.strip.titleVisible&&(i=new se(this.strip.titleColor),r=it.changeFontSize(this.strip.font,this.strip.font.size*e.options.zoom),s=e.getGenericStringFormat(),e.drawRotatedString6(this.strip.text,r,i,t,s,rt.CenterCenter,90,this.strip.antialiasing,0))}},te.d.StiStripsYGeom=class extends te.d.StiCellGeom{constructor(e,t){super(t),this.strip=e}draw(e){var t=this.clientRectangle.clone(),i,r,s;e.fillRectangle2(this.strip.stripBrush,t.x,t.y,t.width,t.height,null),this.strip.titleVisible&&(i=new se(this.strip.titleColor),r=it.changeFontSize(this.strip.font,this.strip.font.size*e.options.zoom),s=e.getGenericStringFormat(),e.drawRotatedString5(this.strip.text,r,i,t,s,rt.CenterCenter,0,this.strip.antialiasing))}},te.d.StiChartTableGeom=class extends te.d.StiCellGeom{constructor(e,t,i,r,s){super(e),this.widthCellLegendTableChart=i,this.heightCellHeader=r,this.table=t,this.chartTable=s,this.pen=new ut(s.gridLineColor),this.labelBrush=new se(s.textColor),this.labelHeaderBrush=new se(s.header.textColor)}draw(e){this.font=it.changeFontSize(this.chartTable.dataCells.font,this.chartTable.dataCells.font.size*e.options.zoom),this.sf=e.getGenericStringFormat(),this.sf.trimming=et.None,this.sf.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap,this.sf.alignment=F.Center,this.sf.lineAlignment=F.Center,this.fontHeader=it.changeFontSize(this.chartTable.header.font,this.chartTable.header.font.size*e.options.zoom),this.sfHeader=e.getGenericStringFormat(),this.sf.trimming=et.None,this.chartTable.header.wordWrap||(this.sf.formatFlags=tt.MeasureTrailingSpaces|tt.NoWrap),this.sfHeader.alignment=F.Center,this.sfHeader.lineAlignment=F.Center;var t=this.clientRectangle.clone(),i=this.chartTable.chart.area,r=i.reverseHor?t.x:t.x+this.widthCellLegendTableChart,s=t.y,n=t.width-this.widthCellLegendTableChart,l=this.heightCellHeader,r=new ne(r,s,n,l);let a=[];for(let e=1;e<this.table.stimulsoft().getLength(1);e++)a.push(this.table[0][e]);this.drawHeaderArgument(e,r,a,i.xAxis.startFromZero);var s=i.reverseHor?t.right-this.widthCellLegendTableChart:t.x,n=t.y+this.heightCellHeader,l=this.widthCellLegendTableChart,r=t.height-this.heightCellHeader,n=new ne(s,n,l,r);let o=[];for(let e=1;e<this.table.stimulsoft().getLength(0);e++)o.push(this.table[e][0]);this.drawTitleLegend(e,n,o);var l=i.reverseHor?t.x:t.x+this.widthCellLegendTableChart,r=t.y+this.heightCellHeader,n=t.width-this.widthCellLegendTableChart,t=t.height-this.heightCellHeader,t=new ne(l,r,n,t);this.drawRootTable(e,t,i.xAxis.startFromZero)}drawHeaderArgument(r,s,n,l){r.fillRectangle(this.chartTable.header.brush,new ne(s.x,s.y,s.width,s.height),null),this.chartTable.gridOutline&&r.drawRectangle(this.pen,s);var e=l?n.length+1:n.length-1,a=s.width/e;for(let i=0;i<n.length;i++){let e=0;0!=i&&i!=n.length-1||(e=l?a/2:-a/2);let t=l?a/2:-a/2;0==i&&(t=0);var o=new ne(s.x+i*a+t,s.y,a+e,s.height),o;this.chartTable.header.wordWrap?r.drawRotatedString6(n[i],this.fontHeader,this.labelHeaderBrush,o,this.sfHeader,rt.CenterCenter,0,!0,M.trunc(a+e)):r.drawRotatedString5(n[i],this.fontHeader,this.labelHeaderBrush,o,this.sfHeader,rt.CenterCenter,0,!0),this.chartTable.gridLinesVert&&i!=n.length-1&&(o=l?s.x+(i+1)*a+a/2:s.x+(i+1)*a-a/2,r.drawLine(this.pen,o,s.y,o,s.bottom))}}drawTitleLegend(s,e,n){this.chartTable.gridOutline&&s.drawRectangle2(this.pen,e.x,e.y,e.width,e.height);var l=e.height/n.length;for(let r=0;r<n.length;r++){let t=e.x;var a=e.y;let i=e.width;if(this.chartTable.gridLinesHor&&0!=r&&s.drawLine(this.pen,t,a+l*r,t+i,a+l*r),this.chartTable.markerVisible){var o=new ne(t+2,a+2+l*r,l-4,l-4);let e=te.d.StiMarkerLegendFactory.createMarker(this.chartTable.chart.series.getByIndex(r));e.draw(s,this.chartTable.chart.series.getByIndex(r),o,r,n.length,-1),t+=l,i-=l}var a=new ne(t,a+l*r,i,l);s.drawString(n[r],this.font,this.labelBrush,a,this.sf)}}drawRootTable(n,l,a){this.chartTable.gridOutline&&n.drawRectangle2(this.pen,l.x,l.y,l.width,l.height);var e=this.table.stimulsoft().getLength(0),o=this.table.stimulsoft().getLength(1),t=a?this.table.stimulsoft().getLength(1):this.table.stimulsoft().getLength(1)-2,h=l.width/t,u=l.height/(e-1);let d=this.font;if(this.chartTable.dataCells.shrinkFontToFit)for(let s=1;s<e;s++){this.chartTable.gridLinesHor&&s!=e-1&&n.drawLine(this.pen,l.x,l.y+s*u,l.right,l.y+s*u);for(let r=1;r<o;r++){let e=0;1!=r&&r!=o-1||(e=a?h/2:-h/2);let t=a?h/2:-h/2;1==r&&(t=0);var m=new ne(l.x+(r-1)*h+t,l.y+(s-1)*u,h+e,u);let i=this.checkFontSize(n,this.table[s][r],d,m);while(!i){if(d.fontSize-=.5,d.fontSize<=this.chartTable.dataCells.shrinkFontToFitMinimumSize){d.fontSize=this.chartTable.dataCells.shrinkFontToFitMinimumSize;break}i=this.checkFontSize(n,this.table[s][r],d,m)}}}for(let r=1;r<e;r++){this.chartTable.gridLinesHor&&r!=e-1&&n.drawLine(this.pen,l.x,l.y+r*u,l.right,l.y+r*u);for(let i=1;i<o;i++){let e=0;1!=i&&i!=o-1||(e=a?h/2:-h/2);let t=a?h/2:-h/2;1==i&&(t=0);var s=new ne(l.x+(i-1)*h+t,l.y+(r-1)*u,h+e,u),s;n.drawRotatedString5(this.table[r][i],d,this.labelBrush,s,this.sf,rt.CenterCenter,0,!0),this.chartTable.gridLinesVert&&i<o-1&&(s=a?l.x+i*h+h/2:l.x+i*h-h/2,n.drawLine(this.pen,s,l.y,s,l.bottom))}}}checkFontSize(e,t,i,r){var s;return e.measureRotatedString(t,i,r,this.sf,0).width<r.width}},te.d.StiTrendCurveGeom=class extends te.d.StiCellGeom{constructor(e,t){super(te.d.StiBaseLineSeriesGeom.getClientRectangle(e,t.lineWidth)),this.points=e,this.trendLine=t}draw(i){let r=ie.create(ee,this.points.length,!0);for(let e=0;e<this.points.length;e++)r[e]=this.points[e];var s=this.trendLine.lineColor,n=this.trendLine.lineWidth,l=this.trendLine.lineStyle,e=this.trendLine.showShadow,t=n*i.options.zoom;if(i.pushSmoothingModeToAntiAlias(),e){let e=new ut(re.fromArgb(50,0,0,0),t+.5*i.options.zoom);e.penStyle=l,i.pushTranslateTransform(t,t),te.d.StiNullableDrawing.drawCurve(i,e,this.points,0),i.popTransform()}let a=new ut(s,n*i.options.zoom);if(a.penStyle=l,i.drawCurve(a,r,0),this.trendLine.titleVisible&&0<r.length){var s=new se(this.trendLine.lineColor),n=it.changeFontSize(this.trendLine.font,this.trendLine.font.size*i.options.zoom),l=i.getGenericStringFormat();let e=St.empty;var o=r[0],h=r[r.length-1];let t=rt.CenterCenter;switch(this.trendLine.position){case te.d.StiTrendLine_StiTextPosition.LeftBottom:e=o,t=rt.LeftTop;break;case te.d.StiTrendLine_StiTextPosition.LeftTop:e=o,t=rt.LeftBottom;break;case te.d.StiTrendLine_StiTextPosition.RightBottom:e=h,t=rt.RightTop;break;case te.d.StiTrendLine_StiTextPosition.RightTop:e=h,t=rt.RightBottom;break}i.drawRotatedString9(this.trendLine.text,n,s,e,l,t,0,!0,0)}i.popSmoothingMode()}};{let a=class extends te.d.StiCellGeom{constructor(e,t,i){super(te.d.StiBaseLineSeriesGeom.getClientRectangle(a.getArray(e,t),i.lineWidth)),this.pointStart=e,this.pointEnd=t,this.trendLine=i}draw(i){var r=this.trendLine.lineColor,s=this.trendLine.lineWidth,n=this.trendLine.lineStyle,e=this.trendLine.showShadow,t=s*i.options.zoom;if(i.pushSmoothingModeToAntiAlias(),e){let e=new ut(re.fromArgb(50,0,0,0),t+.5*i.options.zoom);e.penStyle=n,i.pushTranslateTransform(t,t),te.d.StiNullableDrawing.drawLines(i,e,a.getArray(this.pointStart,this.pointEnd)),i.popTransform()}let l=new ut(r,s*i.options.zoom);if(l.penStyle=n,i.drawLine(l,this.pointStart.x,this.pointStart.y,this.pointEnd.x,this.pointEnd.y),this.trendLine.titleVisible){var r=new se(this.trendLine.lineColor),s=it.changeFontSize(this.trendLine.font,this.trendLine.font.size*i.options.zoom),n=i.getGenericStringFormat();let e=ee.empty,t=rt.CenterCenter;switch(this.trendLine.position){case te.d.StiTrendLine_StiTextPosition.LeftBottom:e=this.pointStart,t=rt.LeftTop;break;case te.d.StiTrendLine_StiTextPosition.LeftTop:e=this.pointStart,t=rt.LeftBottom;break;case te.d.StiTrendLine_StiTextPosition.RightBottom:e=this.pointEnd,t=rt.RightTop;break;case te.d.StiTrendLine_StiTextPosition.RightTop:e=this.pointEnd,t=rt.RightBottom;break}i.drawRotatedString9(this.trendLine.text,s,r,e,n,t,0,!0,0)}i.popSmoothingMode()}static getArray(e,t){var i;return[e,t]}};te.d.StiTrendLineGeom=a}te.d.StiBoxAndWhiskerHelper=class{static checkArgument(e){let t=[];for(var i of e.series.toCast()){var i=i.as(te.d.StiBoxAndWhiskerSeries);null!=i&&t.push(i.coreTitle)}for(var r of e.series.toCast()){let e=r.as(te.d.StiBoxAndWhiskerSeries);null!=e&&(e.arguments=t,e.originalArguments=t)}}},te.d.StiHistogramHelper=class{static checkValuesAndArguments(e,t){if(!e.is(te.d.StiHistogramSeries))return;let i=e.values;var r;let s=3.5*this.getStandardDeviation(i)/Math.pow(i.length,1/3);s=s||1,s=this.roundToSignificantDigits(s,6);var n=i.stimulsoft().toList().min(),l,a,o,o;let h=n-s/2;n<0&&h<0?h=i.stimulsoft().toList().min():h<0&&(h=0);let u=new P,d=new P,m=0,c=0,S=0,g=h+s,p=e.chart.area.as(te.d.StiAxisArea);for(l of i.stimulsoft().toList().orderBy(e=>e)){(l>g||c==i.length-1)&&(u.add(m),a=null!=t?t.format(h):p.xAxis.core.getLabelText2(h,h,e),o=null!=t?t.format(g):p.xAxis.core.getLabelText2(g,g,e),o=0==S?"["+a+", "+o+"]":"("+a+", "+o+"]",d.add(o),m=0,S++,h+=s*S,g=h+s),c++,m++}e.values=u.stimulsoft().toArray(),e.arguments=d.stimulsoft().toArray(),e.originalArguments=d.stimulsoft().toArray(),e.valuesStart=[]}static roundToSignificantDigits(e,t){if(0==e)return 0;var i=Math.pow(10,Math.floor(M.log10(Math.abs(e)))+1);return i*M.round2(e/i,t)}static getStandardDeviation(e){let t=e.stimulsoft().toList().sum()/e.length;var i=e.stimulsoft().toList().sum(e=>Math.pow(e-t,2));return Math.sqrt(i/(e.length-1))}};var ce=class{static createColorWithCorrectedLightness(e,t){if(0==t)return e;let i=e.r,r=e.g,s=e.b;return t<0?(t=1+t,i*=t,r*=t,s*=t):(i=(255-i)*t+i,r=(255-r)*t+r,s=(255-s)*t+s),re.fromArgb(e.a,i,r,s)}static getActualAngle(e,t){var i=e.height*Math.cos(t*Math.PI/180),t=e.width*Math.sin(t*Math.PI/180),i=180*Math.atan2(t,i)/Math.PI;if(i<0)return i+360;return i}static transformAngle(e,t){var i=e.width*Math.cos(t*Math.PI/180),t=e.height*Math.sin(t*Math.PI/180),i=180*Math.atan2(t,i)/Math.PI;if(i<0)return i+360;return i}},Jt;ce.brightnessEnhancementFactor1=.3,te.d.StiPie3dHelper=ce,te.d.Sti3dOptions=class{constructor(){this.opacity_=1}meta(){return null==this._hash&&(this._hash=[new I("Opacity")]),this._hash}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}isDefault(){return 1==this.opacity}get componentId(){return te.a.StiComponentId.Sti3dOptions}get propName(){return""}get opacity(){return this.opacity_}set opacity(e){0<=e&&e<=1&&(this.opacity_=e)}},te.d.StiPie3dOptions=class extends te.d.Sti3dOptions{constructor(){super(...arguments),this.lighting=te.d.StiPie3dLightingStyle.Gradient,this.height_=25,this.distance_=4}meta(){return null==this._hash&&(this._hash=super.meta().concat([new I("Height","",25),new I("Distance","",4),new b("Lighting","",te.d.StiPie3dLightingStyle)])),this._hash}get height(){return this.height_}set height(e){0<e&&(this.height_=e)}get distance(){return this.distance_}set distance(e){0<e&&(this.distance_=e)}};{let e=class extends te.d.StiAxisArea{constructor(){super(),this.core=new te.d.StiBoxAndWhiskerAreaCoreXF(this)}implements(){return e.implementsStiBoxAndWhiskerArea||(e.implementsStiBoxAndWhiskerArea=super.implements().concat([te.d.IStiBoxAndWhiskerArea])),e.implementsStiBoxAndWhiskerArea}getDefaultSeriesType(){return te.d.StiBoxAndWhiskerSeries}getSeriesTypes(){return[te.d.StiBoxAndWhiskerSeries]}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiCenterAxisLabels,te.d.StiLeftAxisLabels,te.d.StiRightAxisLabels]}get componentId(){return te.a.StiComponentId.StiBoxAndWhiskerArea}createNew(){return new e}};te.d.StiBoxAndWhiskerArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiScatterAreaCoreXF(this)}implements(){return e.implementsStiScatterArea||(e.implementsStiScatterArea=super.implements().concat([te.d.IStiScatterArea,te.d.IStiArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiScatterArea}getDefaultSeriesType(){return te.d.StiScatterLineSeries}getSeriesTypes(){return[te.d.StiScatterSeries,te.d.StiScatterLineSeries,te.d.StiScatterSplineSeries]}get componentId(){return te.a.StiComponentId.StiScatterArea}createNew(){return new e}};te.d.StiScatterArea=e}{let e=class extends te.d.StiScatterArea{constructor(){super(),this.core=new te.d.StiBubbleAreaCoreXF(this),this.interlacingHor=new te.d.StiInterlacingHor,this.interlacingVert=new te.d.StiInterlacingVert}implements(){return e.implementsStiBubbleArea||(e.implementsStiBubbleArea=super.implements().concat([te.d.IStiScatterArea,te.d.IStiClusteredColumnArea,te.d.IStiArea,te.d.IStiAxisArea,g,p,te.d.IStiBubbleArea])),e.implementsStiBubbleArea}getDefaultSeriesType(){return te.d.StiBubbleSeries}getSeriesTypes(){return[te.d.StiBubbleSeries]}get componentId(){return te.a.StiComponentId.StiBubbleArea}createNew(){return new e}};te.d.StiBubbleArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiCandlestickAreaCoreXF(this)}implements(){return e.implementsStiCandlestickArea||(e.implementsStiCandlestickArea=super.implements().concat([te.d.IStiCandlestickArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,te.d.IStiArea,p])),e.implementsStiCandlestickArea}getDefaultSeriesType(){return te.d.StiCandlestickSeries}getSeriesTypes(){return[te.d.StiCandlestickSeries]}getSeriesLabelsTypes(){return[te.d.StiNoneLabels]}get componentId(){return te.a.StiComponentId.StiCandlestickArea}createNew(){return new e}};te.d.StiCandlestickArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiClusteredBarAreaCoreXF(this)}implements(){return e.implementsStiClusteredBarArea||(e.implementsStiClusteredBarArea=super.implements().concat([te.d.IStiArea,te.d.IStiClusteredBarArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiClusteredBarArea}getDefaultSeriesType(){return te.d.StiClusteredBarSeries}getSeriesTypes(){return[te.d.StiClusteredBarSeries]}get componentId(){return te.a.StiComponentId.StiClusteredBarArea}createNew(){return new e}};te.d.StiClusteredBarArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiAreaAreaCoreXF(this)}implements(){return e.implementsStiAreaArea||(e.implementsStiAreaArea=super.implements().concat([te.d.IStiArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,te.d.IStiAreaArea,g,p])),e.implementsStiAreaArea}getDefaultSeriesType(){return te.d.StiAreaSeries}get componentId(){return te.a.StiComponentId.StiAreaArea}createNew(){return new e}};te.d.StiAreaArea=e}{let e=class extends te.d.StiAxisArea{get componentId(){return te.a.StiComponentId.StiHistorgamArea}getDefaultSeriesType(){return te.d.StiHistogramSeries}getSeriesTypes(){return[te.d.StiHistogramSeries]}createNew(){return new e}constructor(){super(),this.core=new te.d.StiHistogramAreaCoreXF(this)}};te.d.StiHistogramArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiLineAreaCoreXF(this)}implements(){return e.implementsStiLineArea||(e.implementsStiLineArea=super.implements().concat([te.d.IStiArea,te.d.IStiLineArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiLineArea}getDefaultSeriesType(){return te.d.StiLineSeries}get componentId(){return te.a.StiComponentId.StiLineArea}createNew(){return new e}};te.d.StiLineArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.yRightAxis.visible=!0,this.yRightAxis.range.auto=!1,this.yRightAxis.range.maximum=100,this.yRightAxis.labels.textAfter="%",this.core=new te.d.StiParetoAreaCoreXF(this)}implements(){return e.implementsStiParetoArea||(e.implementsStiParetoArea=super.implements().concat([te.d.IStiArea,te.d.IStiParetoArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiParetoArea}getDefaultSeriesType(){return te.d.StiParetoSeries}getSeriesTypes(){return[te.d.StiParetoSeries]}get componentId(){return te.a.StiComponentId.StiParetoArea}createNew(){return new e}};te.d.StiParetoArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiSplineAreaCoreXF(this)}implements(){return e.implementsStiSplineArea||(e.implementsStiSplineArea=super.implements().concat([te.d.IStiArea,te.d.IStiSplineArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiSplineArea}getDefaultSeriesType(){return te.d.StiSplineSeries}get componentId(){return te.a.StiComponentId.StiSplineArea}createNew(){return new e}};te.d.StiSplineArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiSplineAreaAreaCoreXF(this)}implements(){return e.implementsStiSplineAreaArea||(e.implementsStiSplineAreaArea=super.implements().concat([te.d.IStiArea,te.d.IStiSplineAreaArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiSplineAreaArea}getDefaultSeriesType(){return te.d.StiSplineAreaSeries}get componentId(){return te.a.StiComponentId.StiSplineAreaArea}createNew(){return new e}};te.d.StiSplineAreaArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiSteppedAreaAreaCoreXF(this)}implements(){return e.implementsStiSteppedAreaArea||(e.implementsStiSteppedAreaArea=super.implements().concat([te.d.IStiArea,te.d.IStiSteppedAreaArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiSteppedAreaArea}getDefaultSeriesType(){return te.d.StiSteppedAreaSeries}get componentId(){return te.a.StiComponentId.StiSteppedAreaArea}createNew(){return new e}};te.d.StiSteppedAreaArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiSteppedLineAreaCoreXF(this)}implements(){return e.implementsStiSteppedLineArea||(e.implementsStiSteppedLineArea=super.implements().concat([te.d.IStiArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,te.d.IStiSteppedLineArea,g,p])),e.implementsStiSteppedLineArea}getDefaultSeriesType(){return te.d.StiSteppedLineSeries}get componentId(){return te.a.StiComponentId.StiSteppedLineArea}createNew(){return new e}};te.d.StiSteppedLineArea=e}{let e=class extends te.d.StiAxisArea{constructor(){super(),this.roundValues=!1,this.core=new te.d.StiWaterfallAreaCoreXF(this)}implements(){return e.implementsStiWaterfallArea||(e.implementsStiWaterfallArea=super.implements().concat([te.d.IStiWaterfallArea,te.d.IStiRoundValuesArea])),e.implementsStiWaterfallArea}meta(){return this._hash||(this._hash=[...super.meta(),new S("RoundValues")])}get componentId(){return te.a.StiComponentId.StiWaterfallArea}getDefaultSeriesType(){return te.d.StiWaterfallSeries}getSeriesTypes(){return[te.d.StiWaterfallSeries]}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiInsideBaseAxisLabels,te.d.StiInsideEndAxisLabels,te.d.StiCenterAxisLabels,te.d.StiOutsideBaseAxisLabels,te.d.StiOutsideEndAxisLabels,te.d.StiOutsideAxisLabels,te.d.StiValueAxisLabels]}createNew(){return new e}};te.d.StiWaterfallArea=e}{let e=class extends te.d.StiArea{constructor(){super(),this.core=new te.d.StiPieAreaCoreXF(this),this.colorEach=!0}implements(){return e.implementsStiPieArea||(e.implementsStiPieArea=super.implements().concat([g,te.d.IStiPieArea,te.d.IStiArea,p])),e.implementsStiPieArea}meta(){return this._hash||(this._hash=[...super.meta(),new H("ColorEach")])}get componentId(){return te.a.StiComponentId.StiPieArea}getDefaultSeriesLabelsType(){return te.d.StiCenterPieLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiInsideEndPieLabels,te.d.StiCenterPieLabels,te.d.StiOutsidePieLabels,te.d.StiTwoColumnsPieLabels]}getDefaultSeriesType(){return te.d.StiPieSeries}getSeriesTypes(){return[te.d.StiPieSeries]}createNew(){return new e}};te.d.StiPieArea=e}{let e=class extends te.d.StiPieArea{constructor(){super(),this.core=new te.d.StiDoughnutAreaCoreXF(this),this.colorEach=!0}implements(){return e.implementsStiDoughnutArea||(e.implementsStiDoughnutArea=super.implements().concat([g,te.d.IStiPieArea,te.d.IStiArea,p,te.d.IStiDoughnutArea])),e.implementsStiDoughnutArea}meta(){return this._hash||(this._hash=[...super.meta(),new H("ColorEach")])}getDefaultSeriesLabelsType(){return te.d.StiCenterPieLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiCenterPieLabels]}getDefaultSeriesType(){return te.d.StiDoughnutSeries}getSeriesTypes(){return[te.d.StiDoughnutSeries]}get componentId(){return te.a.StiComponentId.StiDoughnutArea}createNew(){return new e}};te.d.StiDoughnutArea=e}{let e=class extends te.d.StiClusteredBarArea{constructor(){super(),this.core=new te.d.StiStackedBarAreaCoreXF(this)}implements(){return e.implementsStiStackedBarArea||(e.implementsStiStackedBarArea=super.implements().concat([te.d.IStiClusteredBarArea,te.d.IStiClusteredColumnArea,te.d.IStiArea,te.d.IStiAxisArea,g,te.d.IStiStackedBarArea,p])),e.implementsStiStackedBarArea}getDefaultSeriesType(){return te.d.StiStackedBarSeries}getSeriesTypes(){return[te.d.StiStackedBarSeries]}get componentId(){return te.a.StiComponentId.StiStackedBarArea}createNew(){return new e}};te.d.StiStackedBarArea=e}{let e=class extends te.d.StiStackedBarArea{constructor(){super(),this.core=new te.d.StiFullStackedBarAreaCoreXF(this)}implements(){return e.implementsStiFullStackedBarArea||(e.implementsStiFullStackedBarArea=super.implements().concat([te.d.IStiClusteredBarArea,te.d.IStiClusteredColumnArea,te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiFullStackedBarArea,te.d.IStiStackedBarArea,g,p])),e.implementsStiFullStackedBarArea}getDefaultSeriesType(){return te.d.StiFullStackedBarSeries}getSeriesTypes(){return[te.d.StiFullStackedBarSeries]}get componentId(){return te.a.StiComponentId.StiFullStackedBarArea}createNew(){return new e}};te.d.StiFullStackedBarArea=e}{let e=class extends te.d.StiAxisArea{constructor(){super(),this.core=new te.d.StiStackedColumnAreaCoreXF(this)}implements(){return e.implementsStiStackedColumnArea||(e.implementsStiStackedColumnArea=super.implements().concat([g,te.d.IStiStackedColumnArea,te.d.IStiAxisArea,p,te.d.IStiArea])),e.implementsStiStackedColumnArea}get componentId(){return te.a.StiComponentId.StiStackedColumnArea}getDefaultSeriesType(){return te.d.StiStackedColumnSeries}getSeriesTypes(){return[te.d.StiStackedColumnSeries,te.d.StiStackedLineSeries,te.d.StiStackedSplineSeries,te.d.StiStackedAreaSeries,te.d.StiStackedSplineAreaSeries]}createNew(){return new e}};te.d.StiStackedColumnArea=e}{let e=class extends te.d.StiStackedColumnArea{constructor(){super(),this.core=new te.d.StiFullStackedColumnAreaCoreXF(this)}implements(){return e.implementsStiFullStackedColumnArea||(e.implementsStiFullStackedColumnArea=super.implements().concat([te.d.IStiStackedColumnArea,te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiFullStackedColumnArea,g,p])),e.implementsStiFullStackedColumnArea}getDefaultSeriesType(){return te.d.StiFullStackedColumnSeries}getSeriesTypes(){return[te.d.StiFullStackedColumnSeries,te.d.StiFullStackedLineSeries,te.d.StiFullStackedAreaSeries,te.d.StiFullStackedSplineSeries,te.d.StiFullStackedSplineAreaSeries]}get componentId(){return te.a.StiComponentId.StiFullStackedColumnArea}createNew(){return new e}};te.d.StiFullStackedColumnArea=e}{let e=class extends te.d.StiFullStackedColumnArea{constructor(){super(),this.core=new te.d.StiFullStackedAreaAreaCoreXF(this)}implements(){return e.implementsStiFullStackedAreaArea||(e.implementsStiFullStackedAreaArea=super.implements().concat([te.d.IStiStackedColumnArea,te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiFullStackedColumnArea,g,p,te.d.IStiFullStackedAreaArea])),e.implementsStiFullStackedAreaArea}getDefaultSeriesType(){return te.d.StiFullStackedAreaSeries}get componentId(){return te.a.StiComponentId.StiFullStackedAreaArea}createNew(){return new e}};te.d.StiFullStackedAreaArea=e}{let e=class extends te.d.StiFullStackedColumnArea{constructor(){super(),this.core=new te.d.StiFullStackedLineAreaCoreXF(this)}implements(){return e.implementsStiFullStackedLineArea||(e.implementsStiFullStackedLineArea=super.implements().concat([te.d.IStiStackedColumnArea,te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiFullStackedColumnArea,g,p,te.d.IStiFullStackedLineArea])),e.implementsStiFullStackedLineArea}getDefaultSeriesType(){return te.d.StiFullStackedLineSeries}get componentId(){return te.a.StiComponentId.StiFullStackedLineArea}createNew(){return new e}};te.d.StiFullStackedLineArea=e}{let e=class extends te.d.StiFullStackedColumnArea{constructor(){super(),this.core=new te.d.StiFullStackedSplineAreaCoreXF(this)}implements(){return e.implementsStiFullStackedSplineArea||(e.implementsStiFullStackedSplineArea=super.implements().concat([te.d.IStiFullStackedSplineArea,te.d.IStiStackedColumnArea,te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiFullStackedColumnArea,g,p])),e.implementsStiFullStackedSplineArea}getDefaultSeriesType(){return te.d.StiFullStackedSplineAreaSeries}get componentId(){return te.a.StiComponentId.StiFullStackedSplineArea}createNew(){return new e}};te.d.StiFullStackedSplineArea=e}{let e=class extends te.d.StiFullStackedColumnArea{constructor(){super(),this.core=new te.d.StiFullStackedSplineAreaAreaCoreXF(this)}implements(){return e.implementsStiFullStackedSplineAreaArea||(e.implementsStiFullStackedSplineAreaArea=super.implements().concat([te.d.IStiStackedColumnArea,te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiFullStackedColumnArea,te.d.IStiFullStackedSplineAreaArea,g,p])),e.implementsStiFullStackedSplineAreaArea}getDefaultSeriesType(){return te.d.StiFullStackedSplineSeries}get componentId(){return te.a.StiComponentId.StiFullStackedSplineAreaArea}createNew(){return new e}};te.d.StiFullStackedSplineAreaArea=e}{let e=class extends te.d.StiArea{constructor(){super(),this.core=new te.d.StiFunnelAreaCoreXF(this),this.colorEach=!0}implements(){return e.implementsStiFunnelArea||(e.implementsStiFunnelArea=super.implements().concat([g,te.d.IStiArea,p,te.d.IStiFunnelArea])),e.implementsStiFunnelArea}meta(){return this._hash||(this._hash=[...super.meta(),new H("ColorEach")])}get componentId(){return te.a.StiComponentId.StiFunnelArea}getDefaultSeriesType(){return te.d.StiFunnelSeries}getSeriesTypes(){return[te.d.StiFunnelSeries]}getDefaultSeriesLabelsType(){return te.d.StiNoneLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiCenterFunnelLabels,te.d.StiOutsideRightFunnelLabels,te.d.StiOutsideLeftFunnelLabels]}createNew(){return new e}};te.d.StiFunnelArea=e}{let e=class extends te.d.StiFunnelArea{get componentId(){return te.a.StiComponentId.StiFunnelWeightedSlicesArea}getDefaultSeriesType(){return te.d.StiFunnelWeightedSlicesSeries}getSeriesTypes(){return[te.d.StiFunnelWeightedSlicesSeries]}getDefaultSeriesLabelsType(){return te.d.StiNoneLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiCenterFunnelLabels]}createNew(){return new e}constructor(){super(),this.core=new te.d.StiFunnelAreaCoreXF(this),this.colorEach=!0}};te.d.StiFunnelWeightedSlicesArea=e}{let e=class extends te.d.StiClusteredBarArea{constructor(){super(),this.core=new te.d.StiGanttAreaCoreXF(this)}implements(){return e.implementsStiGanttArea||(e.implementsStiGanttArea=super.implements().concat([te.d.IStiClusteredBarArea,te.d.IStiClusteredColumnArea,te.d.IStiArea,te.d.IStiAxisArea,g,te.d.IStiGanttArea,p])),e.implementsStiGanttArea}getDefaultSeriesType(){return te.d.StiGanttSeries}getSeriesTypes(){return[te.d.StiGanttSeries]}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiValueAxisLabels,te.d.StiCenterAxisLabels,te.d.StiOutsideAxisLabels]}get componentId(){return te.a.StiComponentId.StiGanttArea}createNew(){return new e}};te.d.StiGanttArea=e}{let e=class extends te.d.StiArea{constructor(){super(),this.roundValues=!0,this.actual=!1,this.core=new te.d.StiPictorialAreaCoreXF(this),this.colorEach=!0,this.roundValues=!0}implements(){return e.implementsStiPictorialArea||(e.implementsStiPictorialArea=super.implements().concat([g,te.d.IStiPictorialArea,te.d.IStiRoundValuesArea,te.d.IStiArea,p])),e.implementsStiPictorialArea}meta(){return this._hash||(this._hash=[...super.meta(),new S("RoundValues","",!0),new S("Actual","",!0)])}get componentId(){return te.a.StiComponentId.StiPictorialArea}getDefaultSeriesLabelsType(){return te.d.StiNoneLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels]}getDefaultSeriesType(){return te.d.StiPictorialSeries}getSeriesTypes(){return[te.d.StiPictorialSeries]}createNew(){return new e}};te.d.StiPictorialArea=e}{let e=class extends te.d.StiPieArea{meta(){return this._hash||(this._hash=[...super.meta(),new H("ColorEach")])}getDefaultSeriesLabelsType(){return te.d.StiCenterPie3dLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiCenterPie3dLabels]}getDefaultSeriesType(){return te.d.StiPie3dSeries}getSeriesTypes(){return[te.d.StiPie3dSeries]}get componentId(){return te.a.StiComponentId.StiPie3dArea}createNew(){return new e}constructor(){super(),this.core=new te.d.StiPie3dAreaCoreXF(this),this.colorEach=!0}};te.d.StiPie3dArea=e}{let e=class extends te.d.StiRadarArea{constructor(){super(),this.core=new te.d.StiRadarAreaAreaCoreXF(this)}implements(){return e.implementsStiRadarAreaArea||(e.implementsStiRadarAreaArea=super.implements().concat([g,te.d.IStiRadarArea,te.d.IStiArea,te.d.IStiRadarAreaArea,p])),e.implementsStiRadarAreaArea}get componentId(){return te.a.StiComponentId.StiRadarAreaArea}getDefaultSeriesType(){return te.d.StiRadarAreaSeries}getSeriesTypes(){return[te.d.StiRadarPointSeries,te.d.StiRadarLineSeries,te.d.StiRadarAreaSeries]}createNew(){return new e}};te.d.StiRadarAreaArea=e}{let e=class extends te.d.StiRadarArea{constructor(){super(),this.core=new te.d.StiRadarLineAreaCoreXF(this)}implements(){return e.implementsStiRadarLineArea||(e.implementsStiRadarLineArea=super.implements().concat([g,te.d.IStiRadarArea,te.d.IStiArea,p,te.d.IStiRadarLineArea])),e.implementsStiRadarLineArea}get componentId(){return te.a.StiComponentId.StiRadarLineArea}getDefaultSeriesType(){return te.d.StiRadarLineSeries}getSeriesTypes(){return[te.d.StiRadarPointSeries,te.d.StiRadarLineSeries,te.d.StiRadarAreaSeries]}createNew(){return new e}};te.d.StiRadarLineArea=e}{let e=class extends te.d.StiRadarArea{constructor(){super(),this.core=new te.d.StiRadarPointAreaCoreXF(this)}implements(){return e.implementsStiRadarPointArea||(e.implementsStiRadarPointArea=super.implements().concat([g,te.d.IStiRadarPointArea,te.d.IStiRadarArea,te.d.IStiArea,p])),e.implementsStiRadarPointArea}get componentId(){return te.a.StiComponentId.StiRadarPointArea}getDefaultSeriesType(){return te.d.StiRadarPointSeries}getSeriesTypes(){return[te.d.StiRadarPointSeries,te.d.StiRadarLineSeries,te.d.StiRadarAreaSeries]}createNew(){return new e}};te.d.StiRadarPointArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiRangeAreaCoreXF(this)}implements(){return e.implementsStiRangeArea||(e.implementsStiRangeArea=super.implements().concat([te.d.IStiArea,te.d.IStiRangeArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiRangeArea}getDefaultSeriesType(){return te.d.StiRangeSeries}getSeriesTypes(){return[te.d.StiRangeSeries]}get componentId(){return te.a.StiComponentId.StiRangeArea}createNew(){return new e}};te.d.StiRangeArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiRangeBarAreaCoreXF(this)}implements(){return e.implementsStiRangeBarArea||(e.implementsStiRangeBarArea=super.implements().concat([te.d.IStiArea,te.d.IStiRangeBarArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiRangeBarArea}getDefaultSeriesType(){return te.d.StiRangeBarSeries}getSeriesTypes(){return[te.d.StiRangeBarSeries]}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiInsideBaseAxisLabels,te.d.StiOutsideBaseAxisLabels,te.d.StiOutsideAxisLabels,te.d.StiLeftAxisLabels,te.d.StiValueAxisLabels,te.d.StiRightAxisLabels]}get componentId(){return te.a.StiComponentId.StiRangeBarArea}createNew(){return new e}};te.d.StiRangeBarArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiSplineRangeAreaCoreXF(this)}implements(){return e.implementsStiSplineRangeArea||(e.implementsStiSplineRangeArea=super.implements().concat([te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiClusteredColumnArea,te.d.IStiSplineRangeArea,g,p])),e.implementsStiSplineRangeArea}getDefaultSeriesType(){return te.d.StiSplineRangeSeries}getSeriesTypes(){return[te.d.StiSplineRangeSeries]}get componentId(){return te.a.StiComponentId.StiSplineRangeArea}createNew(){return new e}};te.d.StiSplineRangeArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiSteppedRangeAreaCoreXF(this)}implements(){return e.implementsStiSteppedRangeArea||(e.implementsStiSteppedRangeArea=super.implements().concat([te.d.IStiArea,te.d.IStiClusteredColumnArea,te.d.IStiSteppedRangeArea,te.d.IStiAxisArea,g,p])),e.implementsStiSteppedRangeArea}getDefaultSeriesType(){return te.d.StiSteppedRangeSeries}getSeriesTypes(){return[te.d.StiSteppedRangeSeries]}get componentId(){return te.a.StiComponentId.StiSteppedRangeArea}createNew(){return new e}};te.d.StiSteppedRangeArea=e}{let e=class extends te.d.StiStackedColumnArea{constructor(){super(),this.core=new te.d.StiStackedAreaAreaCoreXF(this)}implements(){return e.implementsStiStackedAreaArea||(e.implementsStiStackedAreaArea=super.implements().concat([te.d.IStiStackedColumnArea,te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiStackedAreaArea,g,p])),e.implementsStiStackedAreaArea}getDefaultSeriesType(){return te.d.StiStackedAreaSeries}get componentId(){return te.a.StiComponentId.StiStackedAreaArea}createNew(){return new e}};te.d.StiStackedAreaArea=e}{let e=class extends te.d.StiStackedColumnArea{constructor(){super(),this.core=new te.d.StiStackedLineAreaCoreXF(this)}implements(){return e.implementsStiStackedLineArea||(e.implementsStiStackedLineArea=super.implements().concat([te.d.IStiStackedLineArea,te.d.IStiArea,te.d.IStiAxisArea,te.d.IStiStackedColumnArea,g,p])),e.implementsStiStackedLineArea}getDefaultSeriesType(){return te.d.StiStackedLineSeries}get componentId(){return te.a.StiComponentId.StiStackedLineArea}createNew(){return new e}};te.d.StiStackedLineArea=e}{let e=class extends te.d.StiStackedColumnArea{constructor(){super(),this.core=new te.d.StiStackedSplineAreaCoreXF(this)}implements(){return e.implementsStiStackedSplineArea||(e.implementsStiStackedSplineArea=super.implements().concat([te.d.IStiStackedSplineArea,te.d.IStiStackedColumnArea,te.d.IStiArea,te.d.IStiAxisArea,g,p])),e.implementsStiStackedSplineArea}getDefaultSeriesType(){return te.d.StiStackedSplineAreaSeries}get componentId(){return te.a.StiComponentId.StiStackedSplineArea}createNew(){return new e}};te.d.StiStackedSplineArea=e}{let e=class extends te.d.StiStackedColumnArea{constructor(){super(),this.core=new te.d.StiStackedSplineAreaAreaCoreXF(this)}implements(){return e.implementsStiStackedSplineAreaArea||(e.implementsStiStackedSplineAreaArea=super.implements().concat([te.d.IStiAxisArea,te.d.IStiStackedColumnArea,te.d.IStiArea,te.d.IStiStackedSplineAreaArea,g,p])),e.implementsStiStackedSplineAreaArea}getDefaultSeriesType(){return te.d.StiStackedSplineSeries}get componentId(){return te.a.StiComponentId.StiStackedSplineAreaArea}createNew(){return new e}};te.d.StiStackedSplineAreaArea=e}{let e=class extends te.d.StiClusteredColumnArea{constructor(){super(),this.core=new te.d.StiStockAreaCoreXF(this)}implements(){return e.implementsStiStockArea||(e.implementsStiStockArea=super.implements().concat([te.d.IStiArea,te.d.IStiStockArea,te.d.IStiClusteredColumnArea,te.d.IStiAxisArea,g,p])),e.implementsStiStockArea}getDefaultSeriesType(){return te.d.StiStockSeries}getSeriesTypes(){return[te.d.StiStockSeries]}getSeriesLabelsTypes(){return[te.d.StiNoneLabels]}get componentId(){return te.a.StiComponentId.StiStockArea}createNew(){return new e}};te.d.StiStockArea=e}{let e=class extends te.d.StiArea{constructor(){super(),this.core=new te.d.StiSunburstAreaCoreXF(this)}implements(){return e.implementsStiSunburstArea||(e.implementsStiSunburstArea=super.implements().concat([g,te.d.IStiSunburstArea,p])),e.implementsStiSunburstArea}get componentId(){return te.a.StiComponentId.StiSunburstArea}getDefaultSeriesLabelsType(){return te.d.StiCenterPieLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiCenterPieLabels]}getDefaultSeriesType(){return te.d.StiSunburstSeries}getSeriesTypes(){return[te.d.StiSunburstSeries]}createNew(){return new e}};te.d.StiSunburstArea=e}{let e=class extends te.d.StiArea{constructor(){super(),this.core=new te.d.StiTreemapAreaCoreXF(this)}implements(){return e.implementsStiTreemapArea||(e.implementsStiTreemapArea=super.implements().concat([g,te.d.IStiTreemapArea,p])),e.implementsStiTreemapArea}get componentId(){return te.a.StiComponentId.StiTreemapArea}getDefaultSeriesLabelsType(){return te.d.StiNoneLabels}getSeriesLabelsTypes(){return[te.d.StiNoneLabels,te.d.StiCenterTreemapLabels]}getDefaultSeriesType(){return te.d.StiTreemapSeries}getSeriesTypes(){return[te.d.StiTreemapSeries]}createNew(){return new e}};te.d.StiTreemapArea=e}{let e=class{constructor(e=new B("Tahoma",12,R.Bold),t="",i=re.black,r=!0,s=F.Center,n=te.d.StiDirection.LeftToRight,l=!0,a=te.d.StiTitlePosition.Outside){this.allowApplyStyle=!0,this.font=new B("Tahoma",12,R.Bold),this.text="",this.color=re.black,this.antialiasing=!0,this.alignment=F.Center,this.position=te.d.StiTitlePosition.Outside,this.direction=te.d.StiDirection.LeftToRight,this.font=e,this.text=t,this.color=i,this.antialiasing=r,this.alignment=s,this.direction=n,this.allowApplyStyle=l,this.position=a,this.core=new te.d.StiAxisTitleCoreXF(this)}implements(){return e.implementsStiAxisTitle||(e.implementsStiAxisTitle=[te.d.IStiAxisTitle,p,g]),e.implementsStiAxisTitle}meta(){return this._hash||(this._hash=[new S("AllowApplyStyle","",!0),new k("Font","","Tahoma",12,R.Bold),new T("Text"),new c("Color","",re.black),new S("Antialiasing","",!0),new b("Alignment","",F,F.Center),new b("Position","",te.d.StiTitlePosition,te.d.StiTitlePosition.Outside),new b("Direction","",te.d.StiDirection,te.d.StiDirection.LeftToRight)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){let e=this.stimulsoft().memberwiseClone();return e.alignment=this.alignment,e.direction=this.direction,e.font=this.font.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.title=e),e}};te.d.StiAxisTitle=e}{let e=class extends y{constructor(){super(),this._allowApplyStyle=!0,this.antialiasing=!0,this.position=te.d.StiConstantLines_StiTextPosition.LeftTop,this.font=new B("Arial",7),this.text="",this.titleVisible=!0,this.orientation=te.d.StiConstantLines_StiOrientation.Horizontal,this.lineWidth=1,this.lineStyle=_.Solid,this.lineColor=re.black,this.showInLegend=!0,this.showBehind=!1,this.axisValue="1",this.visible=!0,this.core=new te.d.StiConstantLinesCoreXF(this)}implements(){return e.implementsStiConstantLines||(e.implementsStiConstantLines=super.implements().concat([te.d.IStiConstantLines,p,g])),e.implementsStiConstantLines}meta(){return this._hash||(this._hash=[...super.meta(),new S("AllowApplyStyle","",!0),new S("Antialiasing","",!0),new b("Position","",te.d.StiConstantLines_StiTextPosition,te.d.StiConstantLines_StiTextPosition.LeftTop),new k(["Font","fn"],"","Arial",7),new T("Text"),new S("TitleVisible","",!0),new b("Orientation","",te.d.StiConstantLines_StiOrientation,te.d.StiConstantLines_StiOrientation.Horizontal),new I("LineWidth","",1),new b("LineStyle","",_,_.Solid),new c("LineColor","",re.black),new S("ShowInLegend","",!0),new S("ShowBehind"),new i("AxisValue","","1"),new S("Visible","",!0)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiConstantLines}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return null!=this.core&&(e.core=this.core.clone(),e.core.constantLines=e),e}get serviceCategory(){return"Chart"}get ServiceType(){return e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.chart&&this.core.applyStyle(this.chart.style)}toString(){return this.serviceName}};te.d.StiConstantLines=e}{let i=class extends E{implements(){return i.implementsStiChartFiltersCollection||(i.implementsStiChartFiltersCollection=[g,p]),i.implementsStiChartFiltersCollection}saveToJsonObject(e){if(0==this.list.length)return null;let t=new D,i=0;for(var r of this.list)t.addPropertyJObject(i.toString(),r.saveToJsonObject(e)),i++;return t}loadFromJsonObject(e){for(var t of e.properties()){let e=new te.d.StiChartFilter;this.add(e),e.loadFromJsonObject(t.value)}}loadFromXml(i){for(let e=0;e<i.childNodes.length;e++){let t=i.childNodes[e];if("value"==t.nodeName){var r=t.textContent.split(",");let e=r[2];"GreaterThen"==e&&(e="GreaterThan"),"GreaterThenOrEqualTo"==e&&(e="GreaterThanOrEqualTo"),"LessThen"==e&&(e="LessThan"),"LessThenOrEqualTo"==e&&(e="LessThanOrEqualTo");var r=new te.d.StiChartFilter(j.parse(K,r[0]),j.parse(C,r[1]),j.parse(w,e),Y.decodeName(r[3]));this.add(r)}}}clone(){let e=new i;for(var t of this.list)e.add(t.clone());return e}add(e){this.list.push(e),null==e.filters&&(e.filters=this)}};te.d.StiChartFiltersCollection=i}te.d.StiDataItem=class{constructor(e,t,i,r,s,n,l,a,o,h,u,d,m){this.argument=e,this.value=t,this.valueEnd=i,this.weight=r,this.valueOpen=s,this.valueClose=n,this.valueLow=l,this.valueHigh=a,this.title=o,this.key=h,this.color=u,this.toolTip=d,this.tag=m}},te.d.StiDataItemComparer=class{constructor(e,t){this.directionFactor=1,this.sortType=te.d.StiSeriesSortType.None,this.directionFactor=1,t==te.d.StiSeriesSortDirection.Descending&&(this.directionFactor=-1),this.sortType=e}compare(e,t){let i=null,r=null;if(r=this.sortType==te.d.StiSeriesSortType.Value?(i=e.value,t.value):(i=e.argument,t.argument),null==i&&null==r)return 0;if(null==i)return 1;if(null==r)return-1;return i.stimulsoft().compareTo(r)*this.directionFactor}};{let e=class{constructor(e=re.silver,t=_.Solid,i=!0,r=!0){this.needSetAreaJsonPropertyInternal=!1,this._allowApplyStyle=!0,this.color=re.silver,this.style=_.Solid,this.visible=!0,this.color=e,this.style=t,this.visible=i,this._allowApplyStyle=r,this.core=new te.d.StiRadarGridLinesCoreXF(this)}implements(){return e.implementsStiRadarGridLines||(e.implementsStiRadarGridLines=[g,te.d.IStiRadarGridLines,p]),e.implementsStiRadarGridLines}meta(){return this._hash||(this._hash=[new S("AllowApplyStyle","_",!0),new c("Color","",re.silver),new b("Style","",_,_.Dot),new S("Visible","",!0),new S("Area","needSetAreaJsonPropertyInternal").get(()=>null!=this.area)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiRadarGridLines}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return e.style=this.style,null!=this.core&&(e.core=this.core.clone(),e.core.gridLines=e),e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style)}};te.d.StiRadarGridLines=e}{let e=class extends te.d.StiRadarGridLines{constructor(e=re.silver,t=_.Solid,i=!0,r=!0){super(e,t,i,r)}implements(){return e.implementsStiRadarGridLinesHor||(e.implementsStiRadarGridLinesHor=super.implements().concat([g,te.d.IStiRadarGridLines,te.d.IStiRadarGridLinesHor,p])),e.implementsStiRadarGridLinesHor}};te.d.StiRadarGridLinesHor=e}{let e=class extends te.d.StiRadarGridLines{constructor(e=re.silver,t=_.Solid,i=!0,r=!0){super(e,t,i,r)}implements(){return e.implementsStiRadarGridLinesVert||(e.implementsStiRadarGridLinesVert=super.implements().concat([g,te.d.IStiRadarGridLines,te.d.IStiRadarGridLinesVert,p])),e.implementsStiRadarGridLinesVert}};te.d.StiRadarGridLinesVert=e}let Zt=te.a.Helpers.StiFontIcons;te.d.StiMarker=class{constructor(){this.showInLegend=!0,this.visible=!0,this.extendedVisible=te.d.StiExtendedStyleBool.FromStyle,this.brush=new se(re.white),this.borderColor=re.black,this.size=7,this.angle=0,this.type=te.d.StiMarkerType.Circle,this.icon=null,this.core=new te.d.StiMarkerCoreXF(this)}implements(){return te.d.StiLineMarker.implementsStiMarker||(te.d.StiLineMarker.implementsStiMarker=[g,te.d.IStiMarker,p]),te.d.StiLineMarker.implementsStiMarker}is(e){if(e instanceof J.System.Interface)return-1!=this.implements().indexOf(e);if("function"==typeof e)return this instanceof e;if(null==e)throw new Error("Type for comparison is 'undefined'");return!1}is2(e){return this.is(e)}as(e){if(this.is(e))return this;return null}meta(){return this._hash||(this._hash=[new S("ShowInLegend","",!0),new S("Visible","",!0),new m(["Brush","br"]),new c("BorderColor","",re.black),new I("Size","",7),new I("Angle"),new b("Type","",te.d.StiMarkerType,te.d.StiMarkerType.Circle),new b("Icon","",Zt)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiMarker}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return null!=this.core&&(e.core=this.core.clone(),e.core.marker=e),e}};{let e=class extends te.d.StiMarker{constructor(){super(),this.step=15,this.visible=!1,this.borderColor=re.transparent,this.size=5}implements(){return e.implementsStiLineMarker||(e.implementsStiLineMarker=super.implements().concat([g,te.d.IStiLineMarker,te.d.IStiMarker,p])),e.implementsStiLineMarker}meta(){return this._hash||(this._hash=[...super.meta(),new I("Step","",15),new I("Size","",5),new S("Visible","",!1),new c("BorderColor","",re.transparent)])}get componentId(){return te.a.StiComponentId.StiLineMarker}};te.d.StiLineMarker=e}{let e=class{constructor(e=new te.d.StiAxisRange,t=!0,i=!0){this.jsonLoadFromJsonObjectArea=!1,this._allowApplyStyle=!0,this.visible=!0,this.range=e,this.visible=t,this._allowApplyStyle=i}implements(){return e.implementsStiRadarAxis||(e.implementsStiRadarAxis=[g,te.d.IStiRadarAxis,p]),e.implementsStiRadarAxis}meta(){return this._hash||(this._hash=[new S("AllowApplyStyle","_",!0),new S("Visible","",!0),new A("Range"),new S("Area","jsonLoadFromJsonObjectArea").get(()=>null!=this.area)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){let e=this.stimulsoft().memberwiseClone();return null!=this.core&&(e.core=this.core.clone(),e.core.axis=e),e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.area&&null!=this.area.chart&&this.core.applyStyle(this.area.chart.style)}};te.d.StiRadarAxis=e}{let e=class{constructor(e="",t=new B("Tahoma",8),i=!0,r=!1,s=re.black,n=re.black,l=new se(re.gainsboro),a=!0,o=!0,h=0,u=!1){this.allowApplyStyle=!0,this.rotationLabels=!0,this.textBefore="",this.textAfter="",this.drawBorder=!1,this.format="",this.font=new B("Tahoma",8),this.antialiasing=!0,this.color=re.black,this.borderColor=re.black,this.brush=new se(re.gainsboro),this.width=0,this.wordWrap=!1,this.format=e,this.font=t,this.antialiasing=i,this.drawBorder=r,this.color=s,this.borderColor=n,this.allowApplyStyle=a,this.brush=l,this.rotationLabels=o,this.width=h,this.wordWrap=u,this.core=new te.d.StiRadarAxisLabelsCoreXF(this)}implements(){return e.implementsStiRadarAxisLabels||(e.implementsStiRadarAxisLabels=[g,te.d.IStiRadarAxisLabels,p]),e.implementsStiRadarAxisLabels}meta(){return this._hash||(this._hash=[new S("RotationLabels","",!0),new T("TextBefore"),new T("TextAfter"),new S("AllowApplyStyle","",!0),new S("DrawBorder"),new T("Format"),new k(["Font","fn"],"","Tahoma",8),new S("Antialiasing","",!0),new c("Color","",re.black),new c("BorderColor","",re.black),new m(["Brush","bh"]),new I("Width","",0),new S("WordWrap")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){let e=this.stimulsoft().memberwiseClone();return e.font=this.font.clone(),e.brush=this.brush.clone(),null!=this.core&&(e.core=this.core.clone(),e.core.labels=e),e}};te.d.StiRadarAxisLabels=e}{let e=class extends te.d.StiRadarAxis{constructor(e=new te.d.StiRadarAxisLabels,t=new te.d.StiAxisRange,i=!0,r=!0){super(t,i,r),this.labels=new te.d.StiRadarAxisLabels,this.core=new te.d.StiXRadarAxisCoreXF(this),this.labels=e}implements(){return e.implementsStiXRadarAxis||(e.implementsStiXRadarAxis=super.implements().concat([te.d.IStiXRadarAxis,te.d.IStiRadarAxis,p,g])),e.implementsStiXRadarAxis}meta(){return this._hash||(this._hash=[...super.meta(),new A("Labels")])}get componentId(){return te.a.StiComponentId.StiXRadarAxis}get propName(){return""}clone(){let e=super.clone();return e.labels=this.labels.clone(),e}get xCore(){return this.core}};te.d.StiXRadarAxis=e}{let e=class extends te.d.StiRadarAxis{constructor(e=new te.d.StiAxisLabels,t=new te.d.StiAxisRange,i=new te.d.StiAxisTicks,r=_.Solid,s=re.gray,n=1,l=!0,a=!0){super(t,l,a),this.labels=new te.d.StiAxisLabels,this.ticks=new te.d.StiAxisTicks,this.lineStyle=_.Solid,this.lineColor=re.gray,this.lineWidth=1,this.info=new te.d.StiAxisInfoXF,this.core=new te.d.StiYRadarAxisCoreXF(this),this.labels=e,this.ticks=i,this.lineStyle=r,this.lineColor=s,this.lineWidth=n}implements(){return e.implementsStiYRadarAxis||(e.implementsStiYRadarAxis=super.implements().concat([te.d.IStiYRadarAxis,te.d.IStiRadarAxis,p,g])),e.implementsStiYRadarAxis}meta(){return this._hash||(this._hash=[...super.meta(),new A("Labels"),new A("Ticks"),new b("LineStyle","",_,_.Solid),new c("LineColor","",re.gray),new I("LineWidth","",1)])}get componentId(){return te.a.StiComponentId.StiYRadarAxis}get propName(){return""}clone(){let e=super.clone();return e.lineStyle=this.lineStyle,e.labels=this.labels.clone(),e.ticks=this.ticks.clone(),e}get yCore(){return this.core}};te.d.StiYRadarAxis=e}{let e=class{constructor(){this.parentSeries=null}implements(){return e.implementsStiSeriesInteraction||(e.implementsStiSeriesInteraction=[te.d.IStiSeriesInteraction,g,p]),e.implementsStiSeriesInteraction}meta(){return this._hash||(this._hash=[new T("DrillDownPageGuid")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiSeriesInteraction}get propName(){return""}getReport(){if(null==this.parentSeries)return null;if(null==this.parentSeries.chart)return null;return this.parentSeries.chart.report}clone(){var e;return this.stimulsoft().memberwiseClone()}isDefault(){return Z.isNullOrEmpty(this.hyperlinkDataColumn)&&Z.isNullOrEmpty(this.tagDataColumn)&&Z.isNullOrEmpty(this.toolTipDataColumn)&&Z.isNullOrEmpty(this.hyperlink)&&Z.isNullOrEmpty(this.tag)&&Z.isNullOrEmpty(this.toolTip)&&Z.isNullOrEmpty(this.listOfHyperlinks)&&Z.isNullOrEmpty(this.listOfTags)&&Z.isNullOrEmpty(this.listOfToolTips)}get hyperlink(){return this.parentSeries.hyperlink}set hyperlink(e){this.parentSeries.hyperlink=e}get tag(){return this.parentSeries.tag}set tag(e){this.parentSeries.tag=e}get toolTip(){return this.parentSeries.toolTip}set toolTip(e){this.parentSeries.toolTip=e}get hyperlinkDataColumn(){return this.parentSeries.hyperlinkDataColumn}set hyperlinkDataColumn(e){this.parentSeries.hyperlinkDataColumn=e}get tagDataColumn(){return this.parentSeries.tagDataColumn}set tagDataColumn(e){this.parentSeries.tagDataColumn=e}get toolTipDataColumn(){return this.parentSeries.toolTipDataColumn}set toolTipDataColumn(e){this.parentSeries.toolTipDataColumn=e}get listOfHyperlinks(){return this.parentSeries.listOfHyperlinks}set listOfHyperlinks(e){this.parentSeries.listOfHyperlinks=e}get listOfTags(){return this.parentSeries.listOfTags}set listOfTags(e){this.parentSeries.listOfTags=e}get listOfToolTips(){return this.parentSeries.listOfToolTips}set listOfToolTips(e){this.parentSeries.listOfToolTips=e}get allowSeries(){return this.parentSeries.allowSeries}set allowSeries(e){this.parentSeries.allowSeries=e}get allowSeriesElements(){return this.parentSeries.allowSeriesElements}set allowSeriesElements(e){this.parentSeries.allowSeriesElements=e}get drillDownEnabled(){return this.parentSeries.drillDownEnabled}set drillDownEnabled(e){this.parentSeries.drillDownEnabled=e}get drillDownReport(){return this.parentSeries.drillDownReport}set drillDownReport(e){this.parentSeries.drillDownReport=e}get drillDownPage(){return this.parentSeries.drillDownPage}set drillDownPage(e){this.parentSeries.drillDownPage=e}get drillDownPageGuid(){return this.parentSeries.drillDownPageGuid}set drillDownPageGuid(e){this.parentSeries.drillDownPageGuid=e}get parentComponent(){if(null==this.parentSeries||null==this.parentSeries.chart)return null;return this.parentSeries.chart}};te.d.StiSeriesInteraction=e}te.d.StiSeriesPointsInfo=class{constructor(){this.additionalSeriesId=""}};{let e=class extends te.d.StiSeries{constructor(){super(),this.allowApplyBrush=!1,this.showInnerPoints=!1,this.showMeanMarkers=!0,this.borderThickness=1,this.seriesLabels=new te.d.StiNoneLabels,this.core=new te.d.StiBoxAndWhiskerSeriesCoreXF(this)}implements(){return e.implementsStiBoxAndWhiskerSeries||(e.implementsStiBoxAndWhiskerSeries=super.implements().concat([te.d.IStiBoxAndWhiskerSeries,te.d.IStiSeriesBorderThickness])),e.implementsStiBoxAndWhiskerSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H(["TopN","TrendLine"]),new S("ShowInnerPoints"),new S("ShowMeanMarkers","",!0),new I("BorderThickness","",1),new m("Brush")])}get componentId(){return te.a.StiComponentId.StiBoxAndWhiskerSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiBoxAndWhiskerArea}createNew(){return new e}};te.d.StiBoxAndWhiskerSeries=e}{let e=class extends te.d.StiScatterSeries{constructor(){super(),this.borderColor=re.gray,this.brush=new se(re.gainsboro),this._weights=[1,3,2],this.weightDataColumn="",this.weight="",this.listOfWeights="",this.borderThickness=1,this.core=new te.d.StiBubbleSeriesCoreXF(this)}implements(){return e.implementsStiBubbleSeries||(e.implementsStiBubbleSeries=super.implements().concat([te.d.IStiBaseLineSeries,te.d.IStiBubbleSeries,te.d.IStiFontIconsSeries,te.d.IStiScatterSeries,te.d.IStiSeriesBorderThickness,g,te.d.IStiSeries,p])),e.implementsStiBubbleSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H(["LineMarker","Marker"]),new c("BorderColor","",re.gray),new I("BorderThickness","",1),new m("Brush"),new T("WeightDataColumn"),new W("Weight"),new W("ListOfWeights"),new b("Icon","",Zt)])}get componentId(){return te.a.StiComponentId.StiBubbleSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiBubbleArea}get weights(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfWeights))return te.d.StiSeries.getValuesFromString(this.listOfWeights);var e=this.chart.series.indexOf(this);if(0==e)return this._weights;return[3+3*e,5+4*e,9+3*e]}return this._weights}set weights(e){this._weights=e}get weightsString(){let e=new he,t=!0;for(var i of this.weights)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set weightsString(t){if(null==t||0==t.trim().length)this._weights=[];else{var t=t.split(";"),i;this._weights=ie.create(Number,t.length);let e=0;for(i of t)this._weights[e++]=i.stimulsoft().toNumber()}}onGetWeight(e){}invokeGetWeight(e,t){try{this.onGetWeight(t),null!=this.getWeight&&this.getWeight(e,t)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetWeight...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfWeights(e){}invokeGetListOfWeights(t,i,r){try{if(this.onGetListOfWeights(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSeriesListOfWeights**",e.page=t.report.pages.getByIndex(0);var s=te.a.Engine.StiParser.StiParser.parseTextValue(r.listOfWeights,e);i.value=t.report.toString2(s)}null!=this.getListOfWeights&&this.getListOfWeights(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfWeights...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}createNew(){return new e}};te.d.StiBubbleSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this.showZeros=!1,this._width=.9,this.borderColor=re.gray,this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.borderThickness=1,this.core=new te.d.StiClusteredColumnSeriesCoreXF(this)}implements(){return e.implementsStiClusteredColumnSeries||(e.implementsStiClusteredColumnSeries=super.implements().concat([g,te.d.IStiClusteredColumnSeries,te.d.IStiFontIconsSeries,te.d.IStiSeriesBorderThickness,p,te.d.IStiSeries,te.d.IStiAllowApplyBrushNegative,te.d.IStiShowZerosSeries])),e.implementsStiClusteredColumnSeries}meta(){return this._hash||(this._hash=[...super.meta(),new S("ShowZeros"),new I("Width","_",.9),new c("BorderColor","",re.gray),new I("BorderThickness","",1),new m("Brush"),new m("BrushNegative"),new S("AllowApplyBrushNegative"),new b("Icon","",Zt)])}get componentId(){return te.a.StiComponentId.StiClusteredColumnSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiClusteredColumnArea}createNew(){return new e}get width(){return this._width}set width(e){.01<=e&&e<=1&&(this._width=e)}};te.d.StiClusteredColumnSeries=e}{let e=class extends te.d.StiClusteredColumnSeries{constructor(){super(),this.core=new te.d.StiClusteredBarSeriesCoreXF(this)}implements(){return e.implementsStiClusteredBarSeries||(e.implementsStiClusteredBarSeries=super.implements().concat([g,te.d.IStiClusteredColumnSeries,te.d.IStiSeries,p,te.d.IStiClusteredBarSeries,te.d.IStiAllowApplyBrushNegative])),e.implementsStiClusteredBarSeries}get componentId(){return te.a.StiComponentId.StiClusteredBarSeries}get xAxis(){if(this.yAxis==te.d.StiSeriesYAxis.LeftYAxis)return te.d.StiSeriesXAxis.BottomXAxis;return te.d.StiSeriesXAxis.TopXAxis}set xAxis(e){this.yAxis=e==te.d.StiSeriesXAxis.BottomXAxis?te.d.StiSeriesYAxis.LeftYAxis:te.d.StiSeriesYAxis.RightYAxis}getDefaultAreaType(){return te.d.StiClusteredBarArea}createNew(){return new e}};te.d.StiClusteredBarSeries=e}{let e=class extends te.d.StiBaseLineSeries{constructor(){super(),this.core=new te.d.StiLineSeriesCoreXF(this)}implements(){return e.implementsStiLineSeries||(e.implementsStiLineSeries=super.implements().concat([g,te.d.IStiBaseLineSeries,te.d.IStiLineSeries,p,te.d.IStiSeries,te.d.IStiAllowApplyColorNegative])),e.implementsStiLineSeries}get componentId(){return te.a.StiComponentId.StiLineSeries}getDefaultAreaType(){return te.d.StiClusteredColumnArea}createNew(){return new e}};te.d.StiLineSeries=e}{let e=class extends te.d.StiLineSeries{constructor(){super(),this.topmostLine=!0,this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.core=new te.d.StiAreaSeriesCoreXF(this)}implements(){return e.implementsStiAreaSeries||(e.implementsStiAreaSeries=super.implements().concat([te.d.IStiLineSeries,te.d.IStiBaseLineSeries,te.d.IStiAreaSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyBrushNegative])),e.implementsStiAreaSeries}meta(){return this._hash||(this._hash=[...super.meta(),new S("TopmostLine","",!0),new m("Brush"),new m("BrushNegative"),new S("AllowApplyBrushNegative")])}get componentId(){return te.a.StiComponentId.StiAreaSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiClusteredColumnArea}createNew(){return new e}};te.d.StiAreaSeries=e}{let e=class extends te.d.StiClusteredColumnSeries{constructor(){super(),this._width1=.98,this.core=new te.d.StiHistogramSeriesCoreXF(this)}implements(){return e.implementsStiHistogramSeries||(e.implementsStiHistogramSeries=super.implements().concat([g,te.d.IStiHistogramSeries,p,te.d.IStiSeries])),e.implementsStiHistogramSeries}get componentId(){return te.a.StiComponentId.StiHistogramSeries}getDefaultAreaType(){return te.d.StiHistogramArea}createNew(){return new e}get width(){return this._width1}set width(e){.01<=e&&e<=1&&(this._width1=e)}};te.d.StiHistogramSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this.showZeros=!1,this._width=.9,this.borderColor=re.gray,this.borderThickness=1,this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.showNulls=!0,this.marker=new te.d.StiMarker,this.lineMarker=new te.d.StiLineMarker,this._lineColor=re.black,this.lineStyle=_.Solid,this.lighting=!0,this._lineWidth=2,this.labelsOffset=0,this.lineColorNegative=re.firebrick,this.allowApplyColorNegative=!1,this.allowApplyLineColor=!1,this.showNullsAs=te.d.StiShowEmptyCellsAs.Gap,this.showZerosAs=te.d.StiShowEmptyCellsAs.Gap,this.core=new te.d.StiParetoSeriesCoreXF(this)}implements(){return e.implementsStiParetoSeries||(e.implementsStiParetoSeries=super.implements().concat([g,te.d.IStiParetoSeries,te.d.IStiSeriesBorderThickness,te.d.IStiBaseLineSeries,te.d.IStiClusteredColumnSeries,p,te.d.IStiSeries,te.d.IStiAllowApplyBrushNegative,te.d.IStiShowNullsSeries,te.d.IStiShowZerosSeries])),e.implementsStiParetoSeries}meta(){return this._hash||(this._hash=[...super.meta(),new I("Width","_",.9),new c("BorderColor","",re.gray),new I("BorderThickness","",1),new m(["Brush","bh"]),new H("Conditions"),new A("Marker"),new A("LineMarker"),new c("LineColor","",re.black),new b("LineStyle","",_,_.Solid),new S("Lighting","",!0),new I("LineWidth","",2),new S("AllowApplyLineColor","",!1),new b("Icon","",Zt)])}get componentId(){return te.a.StiComponentId.StiParetoSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e.marker=this.marker.clone(),e.lineStyle=this.lineStyle,e}getDefaultAreaType(){return te.d.StiParetoArea}createNew(){return new e}get width(){return this._width}set width(e){.01<=e&&e<=1&&(this._width=e)}get showMarker(){return this.marker.visible}set showMarker(e){this.marker.visible=e}get markerColor(){return Ze.toColor(this.marker.brush)}set markerColor(e){this.marker.brush=new se(e),this.marker.borderColor=qe.dark(e,50)}get markerSize(){return this.marker.size}set markerSize(e){this.marker.size=e}get markerType(){return this.marker.type}set markerType(e){this.marker.type=e}get lineColor(){return this.getLineColor()}set lineColor(e){this.setLineColor(e)}getLineColor(){return this._lineColor}setLineColor(e){this._lineColor=e}get lineWidth(){return this._lineWidth}set lineWidth(e){0<e&&(this._lineWidth=e)}};te.d.StiParetoSeries=e}{let e=class extends te.d.StiBaseLineSeries{constructor(){super(),this.tension=.55,this.core=new te.d.StiSplineSeriesCoreXF(this)}implements(){return e.implementsStiSplineSeries||(e.implementsStiSplineSeries=super.implements().concat([g,te.d.IStiBaseLineSeries,p,te.d.IStiSeries,te.d.IStiSplineSeries,te.d.IStiAllowApplyColorNegative])),e.implementsStiSplineSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("LineMarker"),new I("Tension","",.55)])}get componentId(){return te.a.StiComponentId.StiSplineSeries}getDefaultAreaType(){return te.d.StiClusteredColumnArea}createNew(){return new e}};te.d.StiSplineSeries=e}{let e=class extends te.d.StiSplineSeries{constructor(){super(),this.topmostLine=!0,this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.core=new te.d.StiSplineAreaSeriesCoreXF(this)}implements(){return e.implementsStiSplineAreaSeries||(e.implementsStiSplineAreaSeries=super.implements().concat([te.d.IStiSplineSeries,te.d.IStiBaseLineSeries,g,te.d.IStiSeries,p,te.d.IStiSplineAreaSeries,te.d.IStiAllowApplyColorNegative])),e.implementsStiSplineAreaSeries}meta(){return this._hash||(this._hash=[...super.meta(),new S("TopmostLine","",!0),new m("Brush"),new m("BrushNegative"),new S("AllowApplyBrushNegative")])}get componentId(){return te.a.StiComponentId.StiSplineAreaSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiClusteredColumnArea}createNew(){return new e}};te.d.StiSplineAreaSeries=e}{let e=class extends te.d.StiBaseLineSeries{constructor(){super(),this.pointAtCenter=!1,this.core=new te.d.StiSteppedLineSeriesCoreXF(this)}implements(){return e.implementsStiSteppedLineSeries||(e.implementsStiSteppedLineSeries=super.implements().concat([g,te.d.IStiBaseLineSeries,te.d.IStiSeries,p,te.d.IStiSteppedLineSeries,te.d.IStiAllowApplyColorNegative])),e.implementsStiSteppedLineSeries}meta(){return this._hash||(this._hash=[...super.meta(),new S("PointAtCenter")])}get componentId(){return te.a.StiComponentId.StiSteppedLineSeries}getDefaultAreaType(){return te.d.StiClusteredColumnArea}createNew(){return new e}};te.d.StiSteppedLineSeries=e}{let e=class extends te.d.StiSteppedLineSeries{constructor(){super(),this.topmostLine=!0,this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.core=new te.d.StiSteppedAreaSeriesCoreXF(this)}implements(){return e.implementsStiSteppedAreaSeries||(e.implementsStiSteppedAreaSeries=super.implements().concat([te.d.IStiSteppedLineSeries,te.d.IStiBaseLineSeries,g,te.d.IStiSteppedAreaSeries,te.d.IStiSeries,p,te.d.IStiAllowApplyColorNegative])),e.implementsStiSteppedAreaSeries}meta(){return this._hash||(this._hash=[...super.meta(),new S("TopmostLine","",!0),new m(["Brush","bh"]),new m("BrushNegative"),new S("AllowApplyBrushNegative")])}get componentId(){return te.a.StiComponentId.StiSteppedAreaSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiClusteredColumnArea}createNew(){return new e}};te.d.StiSteppedAreaSeries=e}{let e=class extends te.d.StiClusteredColumnSeries{constructor(){super(),this.core=new te.d.StiWaterfallSeriesCoreXF(this),this.connectorLine=new te.d.StiWaterfallConnectorLine,this.total=new te.d.StiWaterfallTotal}implements(){return e.implementsStiWaterfallSeries||(e.implementsStiWaterfallSeries=super.implements().concat([g,te.d.IStiSunburstSeries,p,te.d.IStiSeries])),e.implementsStiWaterfallSeries}meta(){return this._hash||(this._hash=[...super.meta(),new A("ConnectorLine"),new A("Total")])}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiWaterfallArea}get componentId(){return te.a.StiComponentId.StiWaterfallSeries}createNew(){return new e}};te.d.StiWaterfallSeries=e}te.f.StiSeriesInteractionConverter=class{};{let e=class extends te.d.StiSeries{constructor(){super(),this.showZeros=!1,this.allowApplyBrush=!0,this.allowApplyBorderColor=!0,this.startAngle=0,this.borderColor=re.gray,this.borderThickness=1,this.brush=new se(re.gainsboro),this.lighting=!0,this._diameter=0,this._distance=0,this._cutPieListValues=[],this.cutPieList="",this.core=new te.d.StiPieSeriesCoreXF(this)}implements(){return e.implementsStiPieSeries||(e.implementsStiPieSeries=super.implements().concat([te.d.IStiPieSeries,te.d.IStiFontIconsSeries,p,te.d.IStiSeries,g,te.d.IStiAllowApplyBorderColor,te.d.IStiSeriesBorderThickness,te.d.IStiAllowApplyBrush])),e.implementsStiPieSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("TrendLine"),new S("ShowZeros"),new S("AllowApplyBrush","",!0),new S("AllowApplyBorderColor","",!0),new I("StartAngle","",0),new c("BorderColor","",re.gray),new I("BorderThickness","",1),new m(["Brush","bh"]),new S("Lighting","",!0),new I("Diameter","",0),new I("Distance","",0),new W("CutPieList"),new b("Icon","",Zt)])}get componentId(){return te.a.StiComponentId.StiPieSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiPieArea}getArguments(){var e=super.getArguments();if(0==e.length&&null!=this.chart&&null!=this.chart.report&&this.chart.report.isDesigning&&!this.isDashboard)return["Arg1","Arg2","Arg3"];return e}setArguments(e){super.setArguments(e)}get diameter(){return this._diameter}set diameter(e){(this._diameter=e)<5&&(this._diameter=0)}get distance(){return this._distance}set distance(e){this._distance=Math.max(0,e)}get cutPieListValues(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.cutPieList))return te.d.StiSeries.getValuesFromString(this.cutPieList);return[]}return this._cutPieListValues}set cutPieListValues(e){this._cutPieListValues=e}get cuttedPieList(){return this.cutPieList}set cuttedPieList(e){this.cutPieList=e}onGetCutPieList(e){}invokeGetCutPieList(t,i){try{if(this.onGetCutPieList(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartPieSeriesCutPieList**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.cutPieList,e);i.value=t.report.toString2(r)}null!=this.getCutPieList&&this.getCutPieList(t,i)}catch(e){J.System.StiError.showError(e.message,!1);var i=Z.format("Expression in GetCutPieList property of '{0}' series from '{1}' chart can't be evaluated!",this.serviceName,this.chart.name);te.a.StiLogService.write(this.stimulsoft().getType(),i),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}createNew(){return new e}};te.d.StiPieSeries=e}{let e=class extends te.d.StiPieSeries{constructor(){super(),this.width=0,this.core=new te.d.StiDoughnutSeriesCoreXF(this)}implements(){return e.implementsStiDoughnutSeries||(e.implementsStiDoughnutSeries=super.implements().concat([te.d.IStiPieSeries,te.d.IStiSeries,p,te.d.IStiDoughnutSeries,g,te.d.IStiAllowApplyBorderColor,te.d.IStiAllowApplyBrush])),e.implementsStiDoughnutSeries}meta(){return this._hash||(this._hash=[...super.meta(),new I("Width")])}get componentId(){return te.a.StiComponentId.StiDoughnutSeries}getDefaultAreaType(){return te.d.StiDoughnutArea}createNew(){return new e}};te.d.StiDoughnutSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this._valuesOpen=[4,7,5],this._valuesClose=[2,3,5],this._valuesHigh=[6,9,7],this._valuesLow=[1,3,4],this.valueDataColumnOpen="",this.valueDataColumnClose="",this.valueDataColumnHigh="",this.valueDataColumnLow="",this.borderColor=re.gray,this.borderColorNegative=re.gray,this._borderWidth=2,this.brush=new se(re.gainsboro),this.brushNegative=new se(re.transparent),this.valueObjOpen="",this.listOfValuesOpen="",this.valueObjClose="",this.listOfValuesClose="",this.valueObjHigh="",this.listOfValuesHigh="",this.valueObjLow="",this.listOfValuesLow="",this.core=new te.d.StiCandlestickSeriesCoreXF(this)}implements(){return e.implementsStiCandlestickSeries||(e.implementsStiCandlestickSeries=super.implements().concat([g,te.d.IStiSeries,te.d.IStiFinancialSeries,p,te.d.IStiCandlestickSeries])),e.implementsStiCandlestickSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H(["TopN","TrendLine","ValueDataColumn","Value","ListOfValues"]),new T("ValueDataColumnOpen"),new T("ValueDataColumnClose"),new T("ValueDataColumnHigh"),new T("ValueDataColumnLow"),new c("BorderColor","",re.gray),new c("BorderColorNegative","",re.gray),new I("BorderWidth","",2),new m(["Brush","bh"]),new m("BrushNegative"),new W("ValueOpen"),new W("ListOfValuesOpen"),new W("ValueClose"),new W("ListOfValuesClose"),new W("ValueHigh"),new W("ListOfValuesHigh"),new W("ValueLow"),new W("ListOfValuesLow")])}get componentId(){return te.a.StiComponentId.StiCandlestickSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiCandlestickArea}get valuesOpen(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesOpen))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesOpen);var e=this.chart.series.indexOf(this),t=this.getOffsetForValues();return[t+4+7*e,t+7+7*e,t+5+7*e]}return this._valuesOpen}set valuesOpen(e){this._valuesOpen=e}get valuesClose(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesClose))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesClose);var e=this.chart.series.indexOf(this),t=this.getOffsetForValues();return[t+2+7*e,t+3+7*e,t+5+7*e]}return this._valuesClose}set valuesClose(e){this._valuesClose=e}get valuesStringOpen(){let e=new he,t=!0;for(var i of this.valuesOpen)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringOpen(t){if(null==t||0==t.trim().length)this.valuesOpen=[];else{var t=t.split(";"),i;this.valuesOpen=ie.create(Number,t.length);let e=0;for(i of t)this.valuesOpen[e++]=i.stimulsoft().toNumber()}}get valuesStringClose(){let e=new he,t=!0;for(var i of this.valuesClose)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringClose(t){if(null==t||0==t.trim().length)this.valuesClose=[];else{var t=t.split(";"),i;this.valuesClose=ie.create(Number,t.length);let e=0;for(i of t)this.valuesClose[e++]=i.stimulsoft().toNumber()}}get valuesStringHigh(){let e=new he,t=!0;for(var i of this.valuesHigh)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringHigh(t){if(null==t||0==t.trim().length)this.valuesHigh=[];else{var t=t.split(";"),i;this.valuesHigh=ie.create(Number,t.length);let e=0;for(i of t)this.valuesHigh[e++]=i.stimulsoft().toNumber()}}get valuesStringLow(){let e=new he,t=!0;for(var i of this.valuesLow)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringLow(t){if(null==t||0==t.trim().length)this.valuesLow=[];else{var t=t.split(";"),i;this.valuesLow=ie.create(Number,t.length);let e=0;for(i of t)this.valuesLow[e++]=i.stimulsoft().toNumber()}}get valuesHigh(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesHigh))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesHigh);var e=this.chart.series.indexOf(this),t=this.getOffsetForValues();return[t+6+7*e,t+9+7*e,t+7+7*e]}return this._valuesHigh}set valuesHigh(e){this._valuesHigh=e}get valuesLow(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesLow))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesLow);var e=this.chart.series.indexOf(this),t=this.getOffsetForValues();return[t+1+7*e,t+3+7*e,t+4+7*e]}return this._valuesLow}set valuesLow(e){this._valuesLow=e}get borderWidth(){return this._borderWidth}set borderWidth(e){0<e&&(this._borderWidth=e)}onGetValueOpen(e){}invokeGetValueOpen(t,i){try{if(this.onGetValueOpen(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesValueOpen**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueOpen,e);i.value=t.report.toString2(r)}null!=this.getValueOpen&&this.getValueOpen(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueOpen...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesOpen(e){}invokeGetListOfValuesOpen(t,i){try{if(this.onGetListOfValuesOpen(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesListOfValuesOpen**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.listOfValuesOpen,e);i.value=t.report.toString2(r)}null!=this.getListOfValuesOpen&&this.getListOfValuesOpen(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesOpen...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetValueClose(e){}invokeGetValueClose(t,i){try{if(this.onGetValueClose(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesValueClose**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueClose,e);i.value=t.report.toString2(r)}null!=this.getValueClose&&this.getValueClose(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueClose...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesClose(e){}invokeGetListOfValuesClose(t,i){try{if(this.onGetListOfValuesClose(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesListOfValuesClose**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.listOfValuesClose,e);i.value=t.report.toString2(r)}null!=this.getListOfValuesClose&&this.getListOfValuesClose(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesClose...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetValueHigh(e){}invokeGetValueHigh(t,i){try{if(this.onGetValueHigh(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesValueHigh**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueHigh,e);i.value=t.report.toString2(r)}null!=this.getValueHigh&&this.getValueHigh(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueHigh...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesHigh(e){}invokeGetListOfValuesHigh(t,i){try{if(this.onGetListOfValuesHigh(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesListOfValuesHigh**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.listOfValuesHigh,e);i.value=t.report.toString2(r)}null!=this.getListOfValuesHigh&&this.getListOfValuesHigh(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesHigh...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}onGetValueLow(e){}invokeGetValueLow(t,i){try{if(this.onGetValueLow(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesValueLow**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueLow,e);i.value=t.report.toString2(r)}null!=this.getValueLow&&this.getValueLow(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueLow...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesLow(e){}invokeGetListOfValuesLow(t,i){try{if(this.onGetListOfValuesLow(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesListOfValuesLow**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.listOfValuesLow,e);i.value=t.report.toString2(r)}null!=this.getListOfValuesLow&&this.getListOfValuesLow(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesLow...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}get valueOpen(){return this.valueObjOpen}set valueOpen(e){this.valueObjOpen=e}get valueClose(){return this.valueObjClose}set valueClose(e){this.valueObjClose=e}get valueHigh(){return this.valueObjHigh}set valueHigh(e){this.valueObjHigh=e}get valueLow(){return this.valueObjLow}set valueLow(e){this.valueObjLow=e}createNew(){return new e}};te.d.StiCandlestickSeries=e}{let e=class extends te.d.StiCandlestickSeries{constructor(){super(),this.lineColor=re.black,this.lineStyle=_.Solid,this._lineWidth=2,this.lineColorNegative=re.firebrick,this.allowApplyColorNegative=!1,this.core=new te.d.StiStockSeriesCoreXF(this)}implements(){return e.implementsStiStockSeries||(e.implementsStiStockSeries=super.implements().concat([g,te.d.IStiStockSeries,te.d.IStiFinancialSeries,p,te.d.IStiSeries,te.d.IStiAllowApplyColorNegative])),e.implementsStiStockSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H(["BorderColor","BorderWidth","Brush","BrushNegative"]),new c("LineColor","",re.black),new b("LineStyle","",_,_.Solid),new I("LineWidth","",2),new c("LineColorNegative","",re.firebrick),new S("AllowApplyColorNegative")])}get componentId(){return te.a.StiComponentId.StiStockSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiStockArea}get lineWidth(){return this._lineWidth}set lineWidth(e){0<e&&(this._lineWidth=e)}createNew(){return new e}};te.d.StiStockSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this.showZeros=!1,this._width=.8,this.borderColor=re.black,this.borderThickness=1,this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.core=new te.d.StiStackedBarSeriesCoreXF(this)}implements(){return e.implementsStiStackedBarSeries||(e.implementsStiStackedBarSeries=super.implements().concat([g,te.d.IStiStackedBarSeries,te.d.IStiSeriesBorderThickness,p,te.d.IStiSeries,te.d.IStiAllowApplyBrushNegative,te.d.IStiShowZerosSeries])),e.implementsStiStackedBarSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("TrendLine"),new S("ShowZeros"),new I("Width","_",.8),new c("BorderColor","",re.black),new I("BorderThickness","",1),new m(["Brush","bh"]),new m("BrushNegative"),new S("AllowApplyBrushNegative"),new b("Icon","",Zt)])}get componentId(){return te.a.StiComponentId.StiStackedBarSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiStackedBarArea}get width(){return this._width}set width(e){.01<=e&&e<=1&&(this._width=e)}get xAxis(){if(this.yAxis==te.d.StiSeriesYAxis.LeftYAxis)return te.d.StiSeriesXAxis.BottomXAxis;return te.d.StiSeriesXAxis.TopXAxis}set xAxis(e){this.yAxis=e==te.d.StiSeriesXAxis.BottomXAxis?te.d.StiSeriesYAxis.LeftYAxis:te.d.StiSeriesYAxis.RightYAxis}createNew(){return new e}};te.d.StiStackedBarSeries=e}{let e=class extends te.d.StiStackedBarSeries{constructor(){super(),this.core=new te.d.StiFullStackedBarSeriesCoreXF(this)}implements(){return e.implementsStiFullStackedBarSeries||(e.implementsStiFullStackedBarSeries=super.implements().concat([g,te.d.IStiStackedBarSeries,p,te.d.IStiSeries,te.d.IStiFullStackedBarSeries])),e.implementsStiFullStackedBarSeries}get componentId(){return te.a.StiComponentId.StiFullStackedBarSeries}getDefaultAreaType(){return te.d.StiFullStackedBarArea}createNew(){return new e}};te.d.StiFullStackedBarSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(...arguments),this.showNulls=!0,this.marker=new te.d.StiMarker,this.lineMarker=new te.d.StiLineMarker,this.lighting=!0,this.lineColor=re.mediumBlue,this._lineWidth=2,this.lineStyle=_.Solid,this.lineColorNegative=re.firebrick,this.allowApplyColorNegative=!1}implements(){return e.implementsStiStackedBaseLineSeries||(e.implementsStiStackedBaseLineSeries=super.implements().concat([g,te.d.IStiStackedBaseLineSeries,p,te.d.IStiSeries])),e.implementsStiStackedBaseLineSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H(["TrendLine","Conditions"]),new S("ShowNulls","",!0),new A("Marker"),new A("LineMarker"),new S("Lighting","",!0),new c("LineColor","",re.mediumBlue),new I("LineWidth","_",2),new b("LineStyle","",_,_.Solid),new c("LineColorNegative","",re.firebrick),new S("AllowApplyColorNegative")])}clone(){let e=super.clone();return e.lineStyle=this.lineStyle,e}get showMarker(){return this.marker.visible}set showMarker(e){this.marker.visible=e}get markerColor(){return Ze.toColor(this.marker.brush)}set markerColor(e){this.marker.brush=new se(e),this.marker.borderColor=qe.dark(e,50)}get markerSize(){return this.marker.size}set markerSize(e){this.marker.size=e}get markerType(){return this.marker.type}set markerType(e){this.marker.type=e}get lineWidth(){return this._lineWidth}set lineWidth(e){0<e&&(this._lineWidth=e)}getDefaultAreaType(){return te.d.StiStackedColumnArea}};te.d.StiStackedBaseLineSeries=e}{let e=class extends te.d.StiStackedBaseLineSeries{constructor(){super(),this.core=new te.d.StiStackedLineSeriesCoreXF(this)}implements(){return e.implementsStiStackedLineSeries||(e.implementsStiStackedLineSeries=super.implements().concat([g,te.d.IStiStackedBaseLineSeries,te.d.IStiStackedLineSeries,te.d.IStiSeries,p,te.d.IStiShowNullsSeries])),e.implementsStiStackedLineSeries}get componentId(){return te.a.StiComponentId.StiStackedLineSeries}getDefaultAreaType(){return te.d.StiStackedColumnArea}createNew(){return new e}};te.d.StiStackedLineSeries=e}{let e=class extends te.d.StiStackedLineSeries{constructor(){super(),this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.core=new te.d.StiStackedAreaSeriesCoreXF(this)}implements(){return e.implementsStiStackedAreaSeries||(e.implementsStiStackedAreaSeries=super.implements().concat([p,te.d.IStiStackedBaseLineSeries,te.d.IStiStackedLineSeries,g,te.d.IStiSeries,te.d.IStiStackedAreaSeries,te.d.IStiAllowApplyBrushNegative])),e.implementsStiStackedAreaSeries}meta(){return this._hash||(this._hash=[...super.meta(),new m(["Brush","bh"]),new m("BrushNegative"),new S("AllowApplyBrushNegative")])}get componentId(){return te.a.StiComponentId.StiStackedAreaSeries}clone(){let e=super.clone();return e.brush=this.coreBrush.clone(),e}getDefaultAreaType(){return te.d.StiStackedColumnArea}get coreBrush(){return this.brush}set coreBrush(e){this.brush=e}createNew(){return new e}};te.d.StiStackedAreaSeries=e}{let e=class extends te.d.StiStackedAreaSeries{constructor(){super(),this.core=new te.d.StiFullStackedAreaSeriesCoreXF(this)}implements(){return e.implementsStiFullStackedAreaSeries||(e.implementsStiFullStackedAreaSeries=super.implements().concat([te.d.IStiStackedAreaSeries,te.d.IStiStackedBaseLineSeries,te.d.IStiSeries,g,te.d.IStiFullStackedAreaSeries,te.d.IStiStackedLineSeries,p,te.d.IStiAllowApplyBrushNegative])),e.implementsStiFullStackedAreaSeries}get componentId(){return te.a.StiComponentId.StiFullStackedAreaSeries}getDefaultAreaType(){return te.d.StiFullStackedColumnArea}createNew(){return new e}};te.d.StiFullStackedAreaSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this.showZeros=!1,this._width=.8,this.borderColor=re.black,this.borderThickness=1,this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.core=new te.d.StiStackedColumnSeriesCoreXF(this)}implements(){return e.implementsStiStackedColumnSeries||(e.implementsStiStackedColumnSeries=super.implements().concat([g,te.d.IStiStackedColumnSeries,te.d.IStiFontIconsSeries,p,te.d.IStiSeries,te.d.IStiAllowApplyBrushNegative,te.d.IStiSeriesBorderThickness,te.d.IStiShowZerosSeries])),e.implementsStiStackedColumnSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("TrendLine"),new S("ShowZeros"),new I("Width","_",.8),new c("BorderColor","",re.black),new I("BorderThickness","",1),new m("Brush"),new m("BrushNegative"),new S("AllowApplyBrushNegative"),new b("Icon","",Zt)])}get componentId(){return te.a.StiComponentId.StiStackedColumnSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}get width(){return this._width}set width(e){.01<=e&&e<=1&&(this._width=e)}getDefaultAreaType(){return te.d.StiStackedColumnArea}createNew(){return new e}};te.d.StiStackedColumnSeries=e}{let e=class extends te.d.StiStackedColumnSeries{constructor(){super(),this.core=new te.d.StiFullStackedColumnSeriesCoreXF(this)}implements(){return e.implementsStiFullStackedColumnSeries||(e.implementsStiFullStackedColumnSeries=super.implements().concat([te.d.IStiFullStackedColumnSeries,te.d.IStiStackedColumnSeries,p,te.d.IStiSeries,g,te.d.IStiAllowApplyBrushNegative])),e.implementsStiFullStackedColumnSeries}get componentId(){return te.a.StiComponentId.StiFullStackedColumnSeries}getDefaultAreaType(){return te.d.StiFullStackedColumnArea}createNew(){return new e}};te.d.StiFullStackedColumnSeries=e}{let e=class extends te.d.StiStackedLineSeries{constructor(){super(),this.core=new te.d.StiFullStackedLineSeriesCoreXF(this)}implements(){return e.implementsStiFullStackedLineSeries||(e.implementsStiFullStackedLineSeries=super.implements().concat([g,te.d.IStiStackedBaseLineSeries,te.d.IStiStackedLineSeries,te.d.IStiSeries,p])),e.implementsStiFullStackedLineSeries}get componentId(){return te.a.StiComponentId.StiFullStackedLineSeries}getDefaultAreaType(){return te.d.StiFullStackedColumnArea}createNew(){return new e}};te.d.StiFullStackedLineSeries=e}{let e=class extends te.d.StiStackedBaseLineSeries{constructor(){super(),this.tension=.55,this.core=new te.d.StiStackedSplineSeriesCoreXF(this)}implements(){return e.implementsStiStackedSplineSeries||(e.implementsStiStackedSplineSeries=super.implements().concat([g,te.d.IStiStackedBaseLineSeries,p,te.d.IStiSeries,te.d.IStiStackedSplineSeries,te.d.IStiAllowApplyColorNegative])),e.implementsStiStackedSplineSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("LineMarker"),new I("Tension","",.55)])}get componentId(){return te.a.StiComponentId.StiStackedSplineSeries}getDefaultAreaType(){return te.d.StiStackedColumnArea}createNew(){return new e}};te.d.StiStackedSplineSeries=e}{let e=class extends te.d.StiStackedSplineSeries{constructor(){super(),this.brush=new se(re.gainsboro),this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.core=new te.d.StiStackedSplineAreaSeriesCoreXF(this)}implements(){return e.implementsStiStackedSplineAreaSeries||(e.implementsStiStackedSplineAreaSeries=super.implements().concat([te.d.IStiStackedSplineSeries,te.d.IStiStackedBaseLineSeries,te.d.IStiStackedSplineAreaSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyBrushNegative])),e.implementsStiStackedSplineAreaSeries}meta(){return this._hash||(this._hash=[...super.meta(),new m("Brush"),new m("BrushNegative"),new S("AllowApplyBrushNegative")])}get componentId(){return te.a.StiComponentId.StiStackedSplineAreaSeries}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiStackedColumnArea}createNew(){return new e}};te.d.StiStackedSplineAreaSeries=e}{let e=class extends te.d.StiStackedSplineAreaSeries{constructor(){super(),this.core=new te.d.StiFullStackedSplineAreaSeriesCoreXF(this)}implements(){return e.implementsStiFullStackedSplineAreaSeries||(e.implementsStiFullStackedSplineAreaSeries=super.implements().concat([te.d.IStiStackedSplineSeries,te.d.IStiFullStackedSplineAreaSeries,te.d.IStiStackedBaseLineSeries,te.d.IStiStackedSplineAreaSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyBrushNegative])),e.implementsStiFullStackedSplineAreaSeries}get componentId(){return te.a.StiComponentId.StiFullStackedSplineAreaSeries}getDefaultAreaType(){return te.d.StiFullStackedColumnArea}createNew(){return new e}};te.d.StiFullStackedSplineAreaSeries=e}{let e=class extends te.d.StiStackedSplineSeries{constructor(){super(),this.core=new te.d.StiFullStackedSplineSeriesCoreXF(this)}implements(){return e.implementsStiFullStackedSplineSeries||(e.implementsStiFullStackedSplineSeries=super.implements().concat([te.d.IStiStackedSplineSeries,te.d.IStiStackedBaseLineSeries,te.d.IStiFullStackedSplineSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyColorNegative])),e.implementsStiFullStackedSplineSeries}get componentId(){return te.a.StiComponentId.StiFullStackedSplineSeries}getDefaultAreaType(){return te.d.StiFullStackedColumnArea}createNew(){return new e}};te.d.StiFullStackedSplineSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this.showZeros=!1,this.allowApplyBrush=!0,this.allowApplyBorderColor=!0,this.brush=new se(re.gainsboro),this.borderColor=re.gray,this.borderThickness=1,this.core=new te.d.StiFunnelSeriesCoreXF(this)}implements(){return e.implementsStiFunnelSeries||(e.implementsStiFunnelSeries=super.implements().concat([g,te.d.IStiFunnelSeries,te.d.IStiFontIconsSeries,te.d.IStiSeriesBorderThickness,te.d.IStiSeries,p,te.d.IStiShowZerosSeries])),e.implementsStiFunnelSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("TrendLine"),new S("ShowZeros"),new S("AllowApplyBrush","",!0),new S("AllowApplyBorderColor","",!0),new m(["Brush","bh"]),new c("BorderColor","",re.gray),new I("BorderThickness","",1),new b("Icon","",Zt)])}get componentId(){return te.a.StiComponentId.StiFunnelSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiFunnelArea}createNew(){return new e}};te.d.StiFunnelSeries=e}{let e=class extends te.d.StiFunnelSeries{constructor(){super(),this.core=new te.d.StiFunnelWeightedSlicesSeriesCoreXF(this)}implements(){return e.implementsStiFunnelWeightedSlicesSeries||(e.implementsStiFunnelWeightedSlicesSeries=super.implements().concat([g,te.d.IStiFunnelSeries,te.d.IStiFunnelWeightedSlicesSeries,te.d.IStiSeries,p])),e.implementsStiFunnelWeightedSlicesSeries}get componentId(){return te.a.StiComponentId.StiFunnelWeightedSlicesSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiFunnelWeightedSlicesArea}createNew(){return new e}};te.d.StiFunnelWeightedSlicesSeries=e}{let e=class extends te.d.StiClusteredBarSeries{constructor(){super(),this._valuesEnd=[3,5,9],this.valueDataColumnEnd="",this.valueObjEnd="",this.listOfValuesEnd="",this.core=new te.d.StiGanttSeriesCoreXF(this)}implements(){return e.implementsStiGanttSeries||(e.implementsStiGanttSeries=super.implements().concat([te.d.IStiClusteredColumnSeries,te.d.IStiClusteredBarSeries,te.d.IStiRangeSeries,g,te.d.IStiSeries,te.d.IStiGanttSeries,p,te.d.IStiAllowApplyBrushNegative])),e.implementsStiGanttSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("TopN"),new H("TrendLine"),new i("ValueDataColumnEnd"),new W("ValueEnd"),new W("ListOfValuesEnd")])}get componentId(){return te.a.StiComponentId.StiGanttSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiGanttArea}get valuesEnd(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesEnd))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,9+3*e]}return this._valuesEnd}set valuesEnd(e){this._valuesEnd=e}get valuesStringEnd(){let e=new he,t=!0;for(var i of this.valuesEnd)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringEnd(t){if(null==t||0==t.trim().length)this._valuesEnd=[];else{var t=t.split(";"),i;this._valuesEnd=ie.create(Number,t.length);let e=0;for(i of t)this._valuesEnd[e++]=i.stimulsoft().toNumber()}}onGetValueEnd(e){}invokeGetValueEnd(t,i){try{if(this.onGetValueEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesValueEnd**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,e);i.value=t.report.toString2(r)}null!=this.getValueEnd&&this.getValueEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueEnd...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesEnd(e){}invokeGetListOfValuesEnd(t,i,r){try{if(r.onGetListOfValuesEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesListOfValuesEnd**",e.page=t.report.pages.getByIndex(0);var s=te.a.Engine.StiParser.StiParser.parseTextValue(r.listOfValuesEnd,e);i.value=t.report.toString2(s)}null!=r.getListOfValuesEnd&&r.getListOfValuesEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesEnd...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}get valueEnd(){return this.valueObjEnd}set valueEnd(e){this.valueObjEnd=e}createNew(){return new e}};te.d.StiGanttSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this.icon=Zt.QuarterFull,this.core=new te.d.StiPictorialSeriesCoreXF(this)}implements(){return e.implementsStiPictorialSeries||(e.implementsStiPictorialSeries=super.implements().concat([te.d.IStiPictorialSeries,te.d.IStiFontIconsSeries,p,te.d.IStiSeries,g])),e.implementsStiPictorialSeries}meta(){return this._hash||(this._hash=[...super.meta(),new b("Icon","",Zt,Zt.QuarterFull)])}get componentId(){return te.a.StiComponentId.StiPictorialSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiPictorialArea}createNew(){return new e}};te.d.StiPictorialSeries=e}te.d.StiPie3dPeripherySurfaceBounds=class{constructor(e,t,i,r,s,n){this.startAngle=e,this.endAngle=t,this.startPoint=i,this.endPoint=r,this.realStartAngle=s,this.realEndAngle=n}};{let e=class{constructor(e,t,i,r,s,n,l){this.rectangle=e,this.point1=t,this.point2=i,this.point3=r,this.point4=s,this.toClose=n,this.animation=l}draw(e,t,i){let r=new P;r.add(new pt(this.point1,this.point2)),r.add(new pt(this.point2,this.point3)),r.add(new pt(this.point3,this.point4)),this.toClose&&r.add(new vt);var s=e.getPathBounds(r);null!=this.animation?e.drawAnimationPathElement(i,t,r,this.rectangle,null,this,this.animation,null):(e.fillPath(i,r,s,null),e.drawPath(t,r,s))}static empty(){return new e(null,null,null,null,null,null,null)}};te.d.StiPie3dQuadrilateral=e}{let e=class extends te.d.StiPieSeries{constructor(){super(),this.options3D=new te.d.StiPie3dOptions,this.core=new te.d.StiPie3dSeriesCoreXF(this)}implements(){return e.implementsStiPie3dSeries||(e.implementsStiPie3dSeries=super.implements().concat([te.d.IStiPie3dSeries])),e.implementsStiPie3dSeries}meta(){return null==this._hash&&(this._hash=super.meta().concat([new A("Options3D")])),this._hash}get componentId(){return te.a.StiComponentId.StiPie3dSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiPie3dArea}createNew(){return new e}};te.d.StiPie3dSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(...arguments),this.showNulls=!0,this.marker=new te.d.StiMarker}implements(){return e.implementsStiRadarSeries||(e.implementsStiRadarSeries=super.implements().concat([g,p,te.d.IStiSeries,te.d.IStiRadarSeries,te.d.IStiShowNullsSeries])),e.implementsStiRadarSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("TrendLine"),new S("ShowNulls","",!0),new A("Marker")])}clone(){let e=super.clone();return null!=this.marker&&(e.marker=this.marker.clone()),e}};te.d.StiRadarSeries=e}{let e=class extends te.d.StiRadarSeries{constructor(){super(),this.lineColor=re.black,this.lineStyle=_.Solid,this.lighting=!0,this._lineWidth=2,this.brush=new se(re.gainsboro),this.core=new te.d.StiRadarAreaSeriesCoreXF(this)}implements(){return e.implementsStiRadarAreaSeries||(e.implementsStiRadarAreaSeries=super.implements().concat([te.d.IStiRadarSeries,te.d.IStiRadarLineSeries,g,te.d.IStiSeries,te.d.IStiRadarAreaSeries,p])),e.implementsStiRadarAreaSeries}meta(){return this._hash||(this._hash=[...super.meta(),new c("LineColor","",re.black),new b("LineStyle","",_,_.Solid),new S("Lighting","",!0),new I("LineWidth","",2),new m("Brush")])}get componentId(){return te.a.StiComponentId.StiRadarAreaSeries}get lineWidth(){return this._lineWidth}set lineWidth(e){0<e&&(this._lineWidth=e)}getDefaultAreaType(){return te.d.StiRadarAreaArea}createNew(){return new e}};te.d.StiRadarAreaSeries=e}{let e=class extends te.d.StiRadarSeries{constructor(){super(),this.lineColor=re.black,this.lineStyle=_.Solid,this.lighting=!0,this._lineWidth=2,this.core=new te.d.StiRadarLineSeriesCoreXF(this)}implements(){return e.implementsStiRadarLineSeries||(e.implementsStiRadarLineSeries=super.implements().concat([g,te.d.IStiRadarLineSeries,p,te.d.IStiSeries,te.d.IStiRadarSeries])),e.implementsStiRadarLineSeries}meta(){return this._hash||(this._hash=[...super.meta(),new c("LineColor","",re.black),new b("LineStyle","",_,_.Solid),new S("Lighting","",!0),new I("LineWidth","",2)])}get componentId(){return te.a.StiComponentId.StiRadarLineSeries}get lineWidth(){return this._lineWidth}set lineWidth(e){0<e&&(this._lineWidth=e)}getDefaultAreaType(){return te.d.StiRadarLineArea}createNew(){return new e}};te.d.StiRadarLineSeries=e}{let e=class extends te.d.StiRadarSeries{constructor(){super(),this.core=new te.d.StiRadarPointSeriesCoreXF(this)}implements(){return e.implementsStiRadarPointSeries||(e.implementsStiRadarPointSeries=super.implements().concat([g,te.d.IStiRadarPointSeries,p,te.d.IStiSeries,te.d.IStiRadarSeries])),e.implementsStiRadarPointSeries}get componentId(){return te.a.StiComponentId.StiRadarPointSeries}getDefaultAreaType(){return te.d.StiRadarPointArea}createNew(){return new e}};te.d.StiRadarPointSeries=e}{let e=class extends te.d.StiClusteredColumnSeries{constructor(){super(),this._valuesEnd=[3,5,9],this.valueDataColumnEnd="",this.valueObjEnd="",this.listOfValuesEnd="",this.core=new te.d.StiRangeBarSeriesCoreXF(this)}implements(){return e.implementsStiRangeBarSeries||(e.implementsStiRangeBarSeries=super.implements().concat([te.d.IStiRangeBarSeries,te.d.IStiClusteredColumnSeries,te.d.IStiRangeSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyBrushNegative])),e.implementsStiRangeBarSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H(["TopN","TrendLine"]),new T("ValueDataColumnEnd"),new W("Value"),new W("ValueEnd"),new W("ListOfValues"),new W("ListOfValuesEnd")])}get componentId(){return te.a.StiComponentId.StiRangeBarSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiRangeBarArea}get valuesEnd(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesEnd))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,9+3*e]}return this._valuesEnd}set valuesEnd(e){this._valuesEnd=e}get valuesStringEnd(){let e=new he,t=!0;for(var i of this.valuesEnd)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringEnd(t){if(null==t||0==t.trim().length)this._valuesEnd=[];else{var t=t.split(";"),i;this._valuesEnd=ie.create(Number,t.length);let e=0;for(i of t)this._valuesEnd[e++]=i.stimulsoft().toNumber()}}onGetValueEnd(e){}invokeGetValueEnd(t,i){try{if(this.onGetValueEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesValueEnd**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,e);i.value=t.report.toString2(r)}null!=this.getValueEnd&&this.getValueEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueEnd...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesEnd(e){}invokeGetListOfValuesEnd(t,i,r){try{if(r.onGetListOfValuesEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartGanttSeriesListOfValuesEnd**",e.page=t.report.pages.getByIndex(0);var s=te.a.Engine.StiParser.StiParser.parseTextValue(r.listOfValuesEnd,e);i.value=t.report.toString2(s)}null!=r.getListOfValuesEnd&&r.getListOfValuesEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesEnd...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}get valueEnd(){return this.valueObjEnd}set valueEnd(e){this.valueObjEnd=e}createNew(){return new e}};te.d.StiRangeBarSeries=e}{let e=class extends te.d.StiLineSeries{constructor(){super(),this.brush=new se(re.gainsboro),this._valuesEnd=[3,5,9],this.valueDataColumnEnd="",this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.valueObjEnd="",this.listOfValuesEnd="",this.core=new te.d.StiRangeSeriesCoreXF(this)}implements(){return e.implementsStiRangeSeries||(e.implementsStiRangeSeries=super.implements().concat([te.d.IStiLineSeries,te.d.IStiLineRangeSeries,te.d.IStiBaseLineSeries,te.d.IStiRangeSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyColorNegative])),e.implementsStiRangeSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H(["TopN","TrendLine"]),new m(["Brush","bh"]),new T("ValueDataColumnEnd"),new m("BrushNegative"),new S("AllowApplyBrushNegative"),new W("ValueEnd"),new W("ListOfValuesEnd")])}get componentId(){return te.a.StiComponentId.StiRangeSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiRangeArea}get valuesEnd(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesEnd))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this),t=this.getOffsetForValues();return[t+3+3*e,t+5+4*e,t+9+3*e]}return this._valuesEnd}set valuesEnd(e){this._valuesEnd=e}get valuesStringEnd(){let e=new he,t=!0;for(var i of this.valuesEnd)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringEnd(t){if(null==t||0==t.trim().length)this.valuesEnd=[];else{var t=t.split(";"),i;this.valuesEnd=ie.create(Number,t.length);let e=0;for(i of t)this.valuesEnd[e++]=i.stimulsoft().toNumber()}}onGetValueEnd(e){}invokeGetValueEnd(t,i){try{if(this.onGetValueEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartRangeSeriesValueEnd**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,e);i.value=t.report.toString2(r)}null!=this.getValueEnd&&this.getValueEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueEnd...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesEnd(e){}invokeGetListOfValuesEnd(t,i,r){try{if(r.onGetListOfValuesEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartRangeSeriesListOfValuesEnd**",e.page=t.report.pages.getByIndex(0);var s=te.a.Engine.StiParser.StiParser.parseTextValue(r.listOfValuesEnd,e);i.value=t.report.toString2(s)}null!=r.getListOfValuesEnd&&r.getListOfValuesEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesEnd...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}get valueEnd(){return this.valueObjEnd}set valueEnd(e){this.valueObjEnd=e}createNew(){return new e}};te.d.StiRangeSeries=e}{let e=class extends te.d.StiSplineSeries{constructor(){super(),this.brush=new se(re.gainsboro),this._valuesEnd=[4,5,9],this.valueDataColumnEnd="",this.valueObjEnd="",this.listOfValuesEnd="",this.core=new te.d.StiSplineRangeSeriesCoreXF(this)}implements(){return e.implementsStiSplineRangeSeries||(e.implementsStiSplineRangeSeries=super.implements().concat([te.d.IStiSplineSeries,te.d.IStiSplineRangeSeries,te.d.IStiBaseLineSeries,te.d.IStiRangeSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyColorNegative])),e.implementsStiSplineRangeSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("TopN"),new H("TrendLine"),new m(["Brush","bh"]),new T("ValueDataColumnEnd"),new W("ValueEnd"),new W("ListOfValuesEnd")])}get componentId(){return te.a.StiComponentId.StiSplineRangeSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiSplineRangeArea}get valuesEnd(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesEnd))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,9+3*e]}return this._valuesEnd}set valuesEnd(e){this._valuesEnd=e}get valuesStringEnd(){let e=new he,t=!0;for(var i of this._valuesEnd)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringEnd(t){if(null==t||0==t.trim().length)this._valuesEnd=[];else{var t=t.split(";"),i;this._valuesEnd=ie.create(Number,t.length);let e=0;for(i of t)this._valuesEnd[e++]=i.stimulsoft().toNumber()}}onGetValueEnd(e){}invokeGetValueEnd(t,i){try{if(this.onGetValueEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSteppedRangeSeriesValueEnd**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,e);i.value=t.report.toString2(r)}null!=this.getValueEnd&&this.getValueEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueEnd...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesEnd(e){}invokeGetListOfValuesEnd(t,i,r){try{if(r.onGetListOfValuesEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSteppedRangeSeriesListOfValuesEnd**",e.page=t.report.pages.getByIndex(0);var s=te.a.Engine.StiParser.StiParser.parseTextValue(r.listOfValuesEnd,e);i.value=t.report.toString2(s)}null!=r.getListOfValuesEnd&&r.getListOfValuesEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesEnd...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}get valueEnd(){return this.valueObjEnd}set valueEnd(e){this.valueObjEnd=e}createNew(){return new e}};te.d.StiSplineRangeSeries=e}{let e=class extends te.d.StiSteppedLineSeries{constructor(){super(),this.brush=new se(re.gainsboro),this._valuesEnd=[4,5,7,6,6],this.valueDataColumnEnd="",this.brushNegative=new se(re.firebrick),this.allowApplyBrushNegative=!1,this.valueObjEnd="",this.listOfValuesEnd="",this.core=new te.d.StiSteppedRangeSeriesCoreXF(this)}implements(){return e.implementsStiSteppedRangeSeries||(e.implementsStiSteppedRangeSeries=super.implements().concat([te.d.IStiSteppedLineSeries,te.d.IStiBaseLineSeries,te.d.IStiRangeSeries,te.d.IStiSteppedRangeSeries,g,te.d.IStiSeries,p,te.d.IStiAllowApplyColorNegative])),e.implementsStiSteppedRangeSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H(["TopN","TrendLine"]),new m(["Brush","bh"]),new T("ValueDataColumnEnd"),new m("BrushNegative"),new S("AllowApplyBrushNegative"),new W("ValueEnd","valueObjEnd"),new W("ListOfValuesEnd")])}get componentId(){return te.a.StiComponentId.StiSteppedRangeSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiSteppedRangeArea}get valuesEnd(){if(null!=this.chart&&null!=this.chart.report&&this.chart.isDesigning&&!this.isDashboard){if(!Z.isNullOrEmpty(this.listOfValuesEnd))return te.d.StiSeries.getNullableValuesFromString(this,this.listOfValuesEnd);var e=this.chart.series.indexOf(this);if(0==e)return this._valuesEnd;return[3+3*e,5+4*e,7+3*e,6+3*e,6+3*e]}return this._valuesEnd}set valuesEnd(e){this._valuesEnd=e}get valuesStringEnd(){let e=new he,t=!0;for(var i of this.valuesEnd)t?e.appendFormat("{0}",i):e.appendFormat(";{0}",i),t=!1;return e.toString()}set valuesStringEnd(t){if(null==t||0==t.trim().length)this.valuesEnd=[];else{var t=t.split(";"),i;this._valuesEnd=ie.create(Number,t.length);let e=0;for(i of t)this._valuesEnd[e++]=i.stimulsoft().toNumber()}}onGetValueEnd(e){}invokeGetValueEnd(t,i){try{if(this.onGetValueEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSteppedRangeSeriesValueEnd**",e.page=t.report.pages.getByIndex(0);var r=te.a.Engine.StiParser.StiParser.parseTextValue(this.valueEnd,e);i.value=t.report.toString2(r)}null!=this.getValueEnd&&this.getValueEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series InvokeGetValueEnd...ERROR"),te.a.StiLogService.write(this.stimulsoft().getType(),this.chart.name+"Series "+e)}}onGetListOfValuesEnd(e){}invokeGetListOfValuesEnd(t,i,r){try{if(r.onGetListOfValuesEnd(i),t.report.calculationMode==te.a.StiCalculationMode.Interpretation){let e=new h;e.name="**ChartSteppedRangeSeriesListOfValuesEnd**",e.page=t.report.pages.getByIndex(0);var s=te.a.Engine.StiParser.StiParser.parseTextValue(r.listOfValuesEnd,e);i.value=t.report.toString2(s)}null!=r.getListOfValuesEnd&&r.getListOfValuesEnd(t,i)}catch(e){J.System.StiError.showError(e.message,!1),te.a.StiLogService.write(this.stimulsoft().getType(),"InvokeGetListOfValuesEnd...Warning"),te.a.StiLogService.write(this.stimulsoft().getType(),e)}}get valueEnd(){return this.valueObjEnd}set valueEnd(e){this.valueObjEnd=e}createNew(){return new e}};te.d.StiSteppedRangeSeries=e}{let e=class extends te.d.StiScatterSeries{constructor(){super(),this.tension=.55,this.core=new te.d.StiScatterSplineSeriesCoreXF(this)}implements(){return e.implementsStiScatterSplineSeries||(e.implementsStiScatterSplineSeries=super.implements().concat([p,te.d.IStiScatterLineSeries,te.d.IStiBaseLineSeries,te.d.IStiScatterSplineSeries,g,te.d.IStiSeries,te.d.IStiScatterSeries,te.d.IStiAllowApplyColorNegative])),e.implementsStiScatterSplineSeries}meta(){return this._hash||(this._hash=[...super.meta(),new H("LineMarker"),new I("Tension","",.55)])}get componentId(){return te.a.StiComponentId.StiScatterSplineSeries}clone(){var e;return super.clone()}getDefaultAreaType(){return te.d.StiScatterArea}createNew(){return new e}};te.d.StiScatterSplineSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this.borderColor=re.gray,this.borderThickness=1,this.brush=new se(re.gainsboro),this.core=new te.d.StiSunburstSeriesCoreXF(this)}implements(){return e.implementsStiSunburstSeries||(e.implementsStiSunburstSeries=super.implements().concat([g,te.d.IStiSunburstSeries,te.d.IStiSeriesBorderThickness,p,te.d.IStiSeries])),e.implementsStiSunburstSeries}meta(){return this._hash||(this._hash=[...super.meta(),new I("BorderThickness","",1)])}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiSunburstArea}get componentId(){return te.a.StiComponentId.StiSunburstSeries}createNew(){return new e}};te.d.StiSunburstSeries=e}{let e=class extends te.d.StiSeries{constructor(){super(),this.borderColor=re.gray,this.borderThickness=1,this.brush=new se(re.gainsboro),this.core=new te.d.StiTreemapSeriesCoreXF(this)}implements(){return e.implementsStiTreemapSeries||(e.implementsStiTreemapSeries=super.implements().concat([g,te.d.IStiTreemapSeries,te.d.IStiSeriesBorderThickness,te.d.IStiFontIconsSeries,p,te.d.IStiSeries])),e.implementsStiTreemapSeries}meta(){return this._hash||(this._hash=[...super.meta(),new c("BorderColor","",re.gray),new I("BorderThickness","",1),new m("Brush"),new b("Icon","",Zt)])}clone(){let e=super.clone();return e.brush=this.brush.clone(),e}getDefaultAreaType(){return te.d.StiTreemapArea}get componentId(){return te.a.StiComponentId.StiTreemapSeries}createNew(){return new e}};te.d.StiTreemapSeries=e}{let e=class extends te.d.StiSeriesLabels{constructor(){super(),this.core=new te.d.StiNoneLabelsCoreXF(this)}implements(){return e.implementsStiNoneLabels||(e.implementsStiNoneLabels=super.implements().concat([te.d.IStiNoneLabels,te.d.IStiSeriesLabels,p,g])),e.implementsStiNoneLabels}meta(){return this._hash||(this._hash=[...super.meta(),new H(["Antialiasing","Visible","LabelColor","BorderColor","Brush","Font"])])}get componentId(){return te.a.StiComponentId.StiNoneLabels}createNew(){return new e}};te.d.StiNoneLabels=e}{let e=class extends te.d.StiCenterAxisLabels{constructor(){super(),this.core=new te.d.StiInsideBaseAxisLabelsCoreXF(this)}implements(){return e.implementsStiInsideBaseAxisLabels||(e.implementsStiInsideBaseAxisLabels=super.implements().concat([te.d.IStiInsideBaseAxisLabels,te.d.IStiSeriesLabels,p,te.d.IStiAxisSeriesLabels,g])),e.implementsStiInsideBaseAxisLabels}get componentId(){return te.a.StiComponentId.StiInsideBaseAxisLabels}createNew(){return new e}};te.d.StiInsideBaseAxisLabels=e}{let e=class extends te.d.StiCenterAxisLabels{constructor(){super(),this.core=new te.d.StiInsideEndAxisLabelsCoreXF(this)}implements(){return e.implementsStiInsideEndAxisLabels||(e.implementsStiInsideEndAxisLabels=super.implements().concat([te.d.IStiCenterAxisLabels,te.d.IStiAxisSeriesLabels,te.d.IStiSeriesLabels,g,te.d.IStiInsideEndAxisLabels,p])),e.implementsStiInsideEndAxisLabels}get componentId(){return te.a.StiComponentId.StiInsideEndAxisLabels}createNew(){return new e}};te.d.StiInsideEndAxisLabels=e}{let e=class extends te.d.StiCenterAxisLabels{constructor(){super(),this.core=new te.d.StiLeftAxisLabelsCoreXF(this)}implements(){return e.implementsStiLeftAxisLabels||(e.implementsStiLeftAxisLabels=super.implements().concat([te.d.IStiCenterAxisLabels,te.d.IStiLeftAxisLabels,te.d.IStiAxisSeriesLabels,g,te.d.IStiSeriesLabels,p])),e.implementsStiLeftAxisLabels}get componentId(){return te.a.StiComponentId.StiLeftAxisLabels}createNew(){return new e}};te.d.StiLeftAxisLabels=e}{let e=class extends te.d.StiAxisSeriesLabels{constructor(){super(),this.lineLength=15,this.core=new te.d.StiOutsideAxisLabelsCoreXF(this)}implements(){return e.implementsStiOutsideAxisLabels||(e.implementsStiOutsideAxisLabels=super.implements().concat([te.d.IStiOutsideAxisLabels,te.d.IStiSeriesLabels,p,te.d.IStiAxisSeriesLabels,g])),e.implementsStiOutsideAxisLabels}meta(){return this._hash||(this._hash=[...super.meta(),new I("LineLength","",15)])}get componentId(){return te.a.StiComponentId.StiOutsideAxisLabels}createNew(){return new e}};te.d.StiOutsideAxisLabels=e}{let e=class extends te.d.StiCenterAxisLabels{constructor(){super(),this.core=new te.d.StiOutsideBaseAxisLabelsCoreXF(this)}implements(){return e.implementsStiOutsideBaseAxisLabels||(e.implementsStiOutsideBaseAxisLabels=super.implements().concat([te.d.IStiCenterAxisLabels,te.d.IStiAxisSeriesLabels,g,te.d.IStiOutsideBaseAxisLabels,te.d.IStiSeriesLabels,p])),e.implementsStiOutsideBaseAxisLabels}get componentId(){return te.a.StiComponentId.StiOutsideBaseAxisLabels}createNew(){return new e}};te.d.StiOutsideBaseAxisLabels=e}{let e=class extends te.d.StiCenterAxisLabels{constructor(){super(),this.core=new te.d.StiOutsideEndAxisLabelsCoreXF(this)}implements(){return e.implementsStiOutsideEndAxisLabels||(e.implementsStiOutsideEndAxisLabels=super.implements().concat([te.d.IStiOutsideEndAxisLabels,te.d.IStiCenterAxisLabels,te.d.IStiAxisSeriesLabels,g,te.d.IStiSeriesLabels,p])),e.implementsStiOutsideEndAxisLabels}get componentId(){return te.a.StiComponentId.StiOutsideEndAxisLabels}createNew(){return new e}};te.d.StiOutsideEndAxisLabels=e}{let e=class extends te.d.StiCenterAxisLabels{constructor(){super(),this.core=new te.d.StiRightAxisLabelsCoreXF(this)}implements(){return e.implementsStiRightAxisLabels||(e.implementsStiRightAxisLabels=super.implements().concat([te.d.IStiCenterAxisLabels,te.d.IStiAxisSeriesLabels,te.d.IStiRightAxisLabels,g,te.d.IStiSeriesLabels,p])),e.implementsStiRightAxisLabels}get componentId(){return te.a.StiComponentId.StiRightAxisLabels}createNew(){return new e}};te.d.StiRightAxisLabels=e}{let e=class extends te.d.StiCenterAxisLabels{constructor(){super(),this.core=new te.d.StiValueAxisLabelsCoreXF(this)}implements(){return e.implementsStiValueAxisLabels||(e.implementsStiValueAxisLabels=super.implements().concat([te.d.IStiValueAxisLabels,te.d.IStiCenterAxisLabels,te.d.IStiAxisSeriesLabels,g,te.d.IStiSeriesLabels,p])),e.implementsStiValueAxisLabels}get componentId(){return te.a.StiComponentId.StiValueAxisLabels}createNew(){return new e}};te.d.StiValueAxisLabels=e}{let e=class extends te.d.StiSeriesLabels{implements(){return e.implementsStiFunnelSeriesLabels||(e.implementsStiFunnelSeriesLabels=super.implements().concat([g,te.d.IStiFunnelSeriesLabels,p,te.d.IStiSeriesLabels])),e.implementsStiFunnelSeriesLabels}};te.d.StiFunnelSeriesLabels=e}{let e=class extends te.d.StiFunnelSeriesLabels{constructor(){super(),this.core=new te.d.StiCenterFunnelLabelsCoreXF(this)}implements(){return e.implementsStiCenterFunnelLabels||(e.implementsStiCenterFunnelLabels=super.implements().concat([g,te.d.IStiSeriesLabels,te.d.IStiFunnelSeriesLabels,p,te.d.IStiCenterFunnelLabels])),e.implementsStiCenterFunnelLabels}get componentId(){return te.a.StiComponentId.StiCenterFunnelLabels}createNew(){return new e}};te.d.StiCenterFunnelLabels=e}{let e=class extends te.d.StiFunnelSeriesLabels{constructor(){super(),this.core=new te.d.StiOutsideLeftFunnelLabelsCoreXF(this)}implements(){return e.implementsStiOutsideLeftFunnelLabels||(e.implementsStiOutsideLeftFunnelLabels=super.implements().concat([te.d.IStiCenterFunnelLabels,te.d.IStiOutsideLeftFunnelLabels,g,te.d.IStiSeriesLabels,te.d.IStiFunnelSeriesLabels,p])),e.implementsStiOutsideLeftFunnelLabels}get componentId(){return te.a.StiComponentId.StiOutsideLeftFunnelLabels}createNew(){return new e}};te.d.StiOutsideLeftFunnelLabels=e}{let e=class extends te.d.StiFunnelSeriesLabels{constructor(){super(),this.core=new te.d.StiOutsideRightFunnelLabelsCoreXF(this)}implements(){return e.implementsStiOutsideRightFunnelLabels||(e.implementsStiOutsideRightFunnelLabels=super.implements().concat([te.d.IStiOutsideRightFunnelLabels,te.d.IStiCenterFunnelLabels,g,te.d.IStiSeriesLabels,te.d.IStiFunnelSeriesLabels,p])),e.implementsStiOutsideRightFunnelLabels}get componentId(){return te.a.StiComponentId.StiOutsideRightFunnelLabels}createNew(){return new e}};te.d.StiOutsideRightFunnelLabels=e}{let e=class extends te.d.StiSeriesLabels{constructor(){super(...arguments),this._showInPercent=!1}implements(){return e.implementsStiPieSeriesLabels||(e.implementsStiPieSeriesLabels=super.implements().concat([g,te.d.IStiPieSeriesLabels,te.d.IStiSeriesLabels,p])),e.implementsStiPieSeriesLabels}meta(){return this._hash||(this._hash=[...super.meta(),new S("ShowInPercent","_")])}get showInPercent(){return this._showInPercent}set showInPercent(e){this._showInPercent=e,this._showInPercent&&!this.format.stimulsoft().startsWith("P")&&(this.format="P2"),this._showInPercent||(this.format="")}};te.d.StiPieSeriesLabels=e}{let e=class extends te.d.StiPieSeriesLabels{get componentId(){return te.a.StiComponentId.StiCenterPieLabels}createNew(){return new e}constructor(){super(),this.core=new te.d.StiCenterPie3dLabelsCoreXF(this)}};te.d.StiCenterPie3dLabels=e}{let e=class extends te.d.StiPieSeriesLabels{constructor(){super(),this.autoRotate=!1,this.core=new te.d.StiCenterPieLabelsCoreXF(this)}implements(){return e.implementsStiCenterPieLabels||(e.implementsStiCenterPieLabels=super.implements().concat([g,te.d.IStiPieSeriesLabels,te.d.IStiSeriesLabels,te.d.IStiCenterPieLabels,p])),e.implementsStiCenterPieLabels}meta(){return this._hash||(this._hash=[...super.meta(),new S("AutoRotate")])}get componentId(){return te.a.StiComponentId.StiCenterPieLabels}createNew(){return new e}};te.d.StiCenterPieLabels=e}{let e=class extends te.d.StiCenterPieLabels{constructor(){super(),this.core=new te.d.StiInsideEndPieLabelsCoreXF(this)}implements(){return e.implementsStiInsideEndPieLabels||(e.implementsStiInsideEndPieLabels=super.implements().concat([te.d.IStiCenterPieLabels,te.d.IStiSeriesLabels,te.d.IStiPieSeriesLabels,te.d.IStiInsideEndPieLabels,g,p])),e.implementsStiInsideEndPieLabels}get componentId(){return te.a.StiComponentId.StiInsideEndPieLabels}createNew(){return new e}};te.d.StiInsideEndPieLabels=e}{let e=class extends te.d.StiCenterPieLabels{constructor(){super(),this.showValue=!1,this.lineLength=20,this.lineColor=re.black,this.core=new te.d.StiOutsidePieLabelsCoreXF(this)}implements(){return e.implementsStiOutsidePieLabels||(e.implementsStiOutsidePieLabels=super.implements().concat([te.d.IStiOutsidePieLabels,te.d.IStiCenterPieLabels,te.d.IStiPieSeriesLabels,te.d.IStiSeriesLabels,g,p])),e.implementsStiOutsidePieLabels}meta(){return this._hash||(this._hash=[...super.meta(),new H("Angle"),new S("ShowValue"),new I("LineLength","",20),new c("LineColor","",re.black)])}get componentId(){return te.a.StiComponentId.StiOutsidePieLabels}createNew(){return new e}};te.d.StiOutsidePieLabels=e}{let e=class extends te.d.StiOutsidePieLabels{constructor(){super(),this.core=new te.d.StiTwoColumnsPieLabelsCoreXF(this)}implements(){return e.implementsStiTwoColumnsPieLabels||(e.implementsStiTwoColumnsPieLabels=super.implements().concat([te.d.IStiTwoColumnsPieLabels,te.d.IStiOutsidePieLabels,te.d.IStiCenterPieLabels,te.d.IStiPieSeriesLabels,te.d.IStiSeriesLabels,g,p])),e.implementsStiTwoColumnsPieLabels}meta(){return this._hash||(this._hash=[...super.meta(),new H("AutoRotate")])}get componentId(){return te.a.StiComponentId.StiTwoColumnsPieLabels}createNew(){return new e}};te.d.StiTwoColumnsPieLabels=e}{let e=class extends te.d.StiAxisSeriesLabels{get componentId(){return te.a.StiComponentId.StiCenterTreemapLabels}createNew(){return new e}constructor(){super(),this.core=new te.d.StiCenterTreemapLabelsCoreXF(this)}};te.d.StiCenterTreemapLabels=e}{let e=class extends y{constructor(){super(),this._allowApplyStyle=!0,this.showBehind=!0,this.stripBrush=new se(re.transparent),this.antialiasing=!0,this.font=new B("Arial",7),this.text="",this.titleVisible=!0,this.titleColor=re.green,this.orientation=te.d.StiStrips_StiOrientation.Horizontal,this.showInLegend=!0,this.maxValue="1",this.minValue="0",this.visible=!0,this.core=new te.d.StiStripsCoreXF(this)}implements(){return e.implementsStiStrips||(e.implementsStiStrips=super.implements().concat([g,te.d.IStiStrips,p])),e.implementsStiStrips}meta(){return this._hash||(this._hash=[...super.meta(),new S("AllowApplyStyle","",!0),new S("ShowBehind","",!0),new m("StripBrush"),new S("Antialiasing","",!0),new k("Font","","Arial",7),new T("Text"),new S("TitleVisible","",!0),new c("TitleColor","",re.green),new b("Orientation","",te.d.StiStrips_StiOrientation,te.d.StiStrips_StiOrientation.Horizontal),new S("ShowInLegend","",!0),new i("MaxValue","","1"),new i("MinValue","","0"),new S("Visible","",!0)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiStrips}get propName(){return""}clone(){let e=this.stimulsoft().memberwiseClone();return null!=this.core&&(e.core=this.core.clone(),e.core.strips=e),e}get serviceCategory(){return"Chart"}get serviceType(){return e}get allowApplyStyle(){return this._allowApplyStyle}set allowApplyStyle(e){this._allowApplyStyle!=e&&(this._allowApplyStyle=e)&&null!=this.chart&&this.core.applyStyle(this.chart.style)}};te.d.StiStrips=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF01}};te.d.StiStyle01=e}{let e=class extends te.d.StiStyle01{constructor(e=null){super(),this.core=new te.d.StiCustomStyleCoreXF(this),this.core.reportStyleName=e}implements(){return e.implementsStiCustomStyle||(e.implementsStiCustomStyle=super.implements().concat([te.d.IStiCustomStyle])),e.implementsStiCustomStyle}get serviceName(){return"CustomStyle"}get customCore(){return this.core}};te.d.StiCustomStyle=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF02}};te.d.StiStyle02=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF03}};te.d.StiStyle03=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF04}};te.d.StiStyle04=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF05}};te.d.StiStyle05=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF06}};te.d.StiStyle06=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF07}};te.d.StiStyle07=e}{let e=class extends te.d.StiStyle03{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF08}};te.d.StiStyle08=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF09}};te.d.StiStyle09=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF10}};te.d.StiStyle10=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF11}};te.d.StiStyle11=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF12}};te.d.StiStyle12=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF13}};te.d.StiStyle13=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF14}};te.d.StiStyle14=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF15}};te.d.StiStyle15=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF16}};te.d.StiStyle16=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF17}};te.d.StiStyle17=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF18}};te.d.StiStyle18=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF19}};te.d.StiStyle19=e}{let e=class extends te.d.StiChartStyle{createNew(){return new e}constructor(){super(),this.core=new te.d.StiStyleCoreXF20}};te.d.StiStyle20=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF21}createNew(){return new e}};te.d.StiStyle21=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF22}createNew(){return new e}};te.d.StiStyle22=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF23}createNew(){return new e}};te.d.StiStyle23=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.Orange,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF24}get dashboardName(){return N.get("PropertyColor","Orange")}createNew(){return new e}};te.d.StiStyle24=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.Turquoise,this.core=new te.d.StiStyleCoreXF26}get dashboardName(){return N.get("PropertyColor","Turquoise")}createNew(){return new e}};te.d.StiStyle26=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.SlateGray,this.core=new te.d.StiStyleCoreXF27}get dashboardName(){return N.get("PropertyColor","SlateGray")}createNew(){return new e}};te.d.StiStyle27=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.DarkBlue,this.core=new te.d.StiStyleCoreXF28}get dashboardName(){return N.get("PropertyColor","DarkBlue")}createNew(){return new e}};te.d.StiStyle28=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.DarkGray,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF30}get dashboardName(){return N.get("PropertyColor","DarkGray")}createNew(){return new e}};te.d.StiStyle30=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.DarkTurquoise,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF31}get dashboardName(){return N.get("PropertyColor","DarkTurquoise")}createNew(){return new e}};te.d.StiStyle31=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.Silver,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF32}get dashboardName(){return N.get("PropertyColor","Silver")}createNew(){return new e}};te.d.StiStyle32=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.AliceBlue,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF33}get dashboardName(){return N.get("PropertyColor","AliceBlue")}createNew(){return new e}};te.d.StiStyle33=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.DarkGreen,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF34}get dashboardName(){return N.get("PropertyColor","DarkGreen")}createNew(){return new e}};te.d.StiStyle34=e}{let e=class extends te.d.StiChartStyle{constructor(){super(),this.allowDashboard=!0,this.styleIdent=Se.Sienna,this.isOffice2015Style=!0,this.core=new te.d.StiStyleCoreXF35}get dashboardName(){return N.get("PropertyColor","Sienna")}createNew(){return new e}};te.d.StiStyle35=e}te.d.StiChartTableDataCells=class{constructor(e=!1,t=1,i=new B("Arial",8),r=re.darkGray){this.font=new B("Arial",8),this.textColor=re.darkGray,this.shrinkFontToFit=!1,this.shrinkFontToFitMinimumSize=1,this.font=i,this.textColor=r,this.shrinkFontToFit=e,this.shrinkFontToFitMinimumSize=t}meta(){return this._hash||(this._hash=[new k("Font","","Arial",8),new c("TextColor","",re.darkGray),new I("ShrinkFontToFitMinimumSize","",1),new S("ShrinkFontToFit")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){let e=this.stimulsoft().memberwiseClone();return e.font=this.font.clone(),e}};{let e=class{constructor(e="",t=new se(re.white),i=new B("Arial",8),r=re.darkGray,s=!1,n=""){this.brush=new se(re.white),this.font=new B("Arial",8),this.textColor=re.darkGray,this.wordWrap=!1,this.textAfter="",this.textAfter=e,this.brush=t,this.font=i,this.textColor=r,this.wordWrap=s,this.format=n}implements(){return e.implementsStiChartTableHeader||(e.implementsStiChartTableHeader=[g,te.d.IStiChartTableHeader,p]),e.implementsStiChartTableHeader}meta(){return this._hash||(this._hash=[new T("TextAfter"),new m("Brush"),new k("Font","","Arial",8),new c("TextColor","",re.darkGray),new S("WordWrap"),new T("Format")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}clone(){let e=this.stimulsoft().memberwiseClone();return e.brush=this.brush.clone(),e.font=this.font.clone(),e}};te.d.StiChartTableHeader=e}{let e=class{constructor(){this.mode=te.d.StiTopNMode.None,this.count=5,this.showOthers=!0,this.othersText="Others"}implements(){return e.implementsStiSeriesTopN||(e.implementsStiSeriesTopN=[g,te.d.IStiSeriesTopN,p]),e.implementsStiSeriesTopN}meta(){return this._hash||(this._hash=[new b("Mode","",te.d.StiTopNMode,te.d.StiTopNMode.None),new I("Count","",5),new S("ShowOthers","",!0),new i("OthersText","","Others")])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiSeriesTopN}get propName(){return""}clone(){var e;return this.stimulsoft().memberwiseClone()}};te.d.StiSeriesTopN=e}{let e=class extends y{constructor(){super(...arguments),this.lineColor=re.black,this.lineWidth=1,this.lineStyle=_.Solid,this.showShadow=!0,this.allowApplyStyle=!0,this.position=te.d.StiTrendLine_StiTextPosition.LeftBottom,this.font=new B("Arial",7),this.text="",this.titleVisible=!0}implements(){return e.implementsStiTrendLine||(e.implementsStiTrendLine=super.implements().concat([te.d.IStiTrendLine,p,g])),e.implementsStiTrendLine}meta(){return this._hash||(this._hash=[...super.meta(),new i("Ident").get(()=>this.stimulsoft().getType().stimulsoft().getTypeName()),new c("LineColor","",re.black),new I("LineWidth","",1),new b("LineStyle","",_,_.Solid),new S("ShowShadow","",!0),new b("Position","",te.d.StiTrendLine_StiTextPosition,te.d.StiConstantLines_StiTextPosition.LeftBottom),new k("Font","","Arial",7),new T("Text"),new S("TitleVisible","",!0),new S("AllowApplyStyle","",!0)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}static loadFromJsonObjectInternal(e){let t=e.properties().firstOrDefault(e=>"Ident"==e.name).value.toString(),i=J["StiOptions"].Services.chartTrendLines.firstOrDefault(e=>e.stimulsoft().getType().stimulsoft().getTypeName()==t);if(null==i)throw Z.format("Type {0} is not found!",t);let r=i.createNew();return r.loadFromJsonObject(e),r}loadFromXml(e){d.loadFromXml(e,this)}static loadTrendLineFromXml(t){switch(t.attributes.getNamedItem("type").value){case"Stimulsoft.Report.Chart.StiTrendLineNone":{let e=new te.d.StiTrendLineNone;return e.loadFromXml(t),e}case"Stimulsoft.Report.Chart.StiTrendLineLinear":{let e=new te.d.StiTrendLineLinear;return e.loadFromXml(t),e}case"Stimulsoft.Report.Chart.StiTrendLineExponential":{let e=new te.d.StiTrendLineExponential;return e.loadFromXml(t),e}case"Stimulsoft.Report.Chart.StiTrendLineLogarithmic":{let e=new te.d.StiTrendLineLogarithmic;return e.loadFromXml(t),e}}return new te.d.StiTrendLineNone}get componentId(){return te.a.StiComponentId.StiTrendLine}get propName(){return""}clone(){let e=super.clone();return null!=this.core&&(e.core=this.core.clone(),e.core.trendLine=e),e}get serviceName(){return this.core.localizedName}get serviceCategory(){return"Chart"}get serviceType(){return e}createNew(){return null}toString(){return this.serviceName}};te.d.StiTrendLine=e}{let e=class extends te.d.StiTrendLine{constructor(){super(),this.core=new te.d.StiTrendLineExponentialCoreXF(this)}implements(){return e.implementsStiTrendLineExponential||(e.implementsStiTrendLineExponential=super.implements().concat([te.d.IStiTrendLine,p,g,te.d.IStiTrendLineExponential])),e.implementsStiTrendLineExponential}get componentId(){return te.a.StiComponentId.StiTrendLineExponential}createNew(){return new e}};te.d.StiTrendLineExponential=e}{let e=class extends te.d.StiTrendLine{constructor(){super(),this.core=new te.d.StiTrendLineLinearCoreXF(this)}implements(){return e.implementsStiTrendLineLinear||(e.implementsStiTrendLineLinear=super.implements().concat([te.d.IStiTrendLine,te.d.IStiTrendLineLinear,p,g])),e.implementsStiTrendLineLinear}get componentId(){return te.a.StiComponentId.StiTrendLineLinear}createNew(){return new e}};te.d.StiTrendLineLinear=e}{let e=class extends te.d.StiTrendLine{constructor(){super(),this.core=new te.d.StiTrendLineLogarithmicCoreXF(this)}implements(){return e.implementsStiTrendLineLogarithmic||(e.implementsStiTrendLineLogarithmic=super.implements().concat([te.d.IStiTrendLine,te.d.IStiTrendLineLogarithmic,p,g])),e.implementsStiTrendLineLogarithmic}get componentId(){return te.a.StiComponentId.StiTrendLineLogarithmic}createNew(){return new e}};te.d.StiTrendLineLogarithmic=e}{let e=class extends te.d.StiTrendLine{constructor(){super(),this.core=new te.d.StiTrendLineNoneCoreXF(this)}implements(){return e.implementsStiTrendLineNone||(e.implementsStiTrendLineNone=super.implements().concat([te.d.IStiTrendLine,te.d.IStiTrendLineNone,g,p])),e.implementsStiTrendLineNone}get componentId(){return te.a.StiComponentId.StiTrendLineNone}createNew(){return new e}};te.d.StiTrendLineNone=e}{let i=class extends E{implements(){return[te.d.IStiTrendLinesCollection,p,g]}saveToJsonObject(e){if(0==this.list.length)return null;let t=new D,i=0;for(var r of this.list)t.addPropertyJObject(i.toString(),r.saveToJsonObject(e)),i++;return t}loadFromJsonObject(e){for(var s of e.properties()){let e=s.value,t=e.properties().firstOrDefault(e=>"Ident"==e.name).value.toString(),i=J["StiOptions"].Services.chartTrendLines.firstOrDefault(e=>e.stimulsoft().getType().stimulsoft().getTypeName()==t);if(null==i)throw Z.format("Type {0} is not found!",t);let r=i.createNew();this.list.push(r),r.loadFromJsonObject(s.value)}}loadFromXml(t){for(let e=0;e<t.childNodes.length;e++){let i=t.childNodes[e];if(null==i.attributes)continue;var r;if(null!=i.attributes.getNamedItem("type")){let e=i.attributes.getNamedItem("type").value;var s=e.split(".").pop();let t=new te.d[s];this.list.push(t),t.loadFromXml(i)}}}clone(){let e=new i;for(var t of this.list)e.add(t.clone());return e}add(e){this.list.push(e)}};te.d.StiTrendLinesCollection=i}{let e=class{constructor(){this.lineColor=re.lightGray,this.lineWidth=1,this.visible=!0}implements(){return e.implementsStiWaterfallConnectorLine||(e.implementsStiWaterfallConnectorLine=[te.d.IStiTrendLine,p,g]),e.implementsStiWaterfallConnectorLine}clone(){return this.stimulsoft().memberwiseClone()}meta(){return this._hash||(this._hash=[new c("LineColor","",re.lightGray),new I("LineWidth","",1),new b("LineStyle","",_,_.Solid),new S("TitleVisible","visible",!0)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiTrendLine}};te.d.StiWaterfallConnectorLine=e}{let e=class{constructor(){this.text="Total",this.visible=!0}implements(){return e.implementsStiWaterfallTotal||(e.implementsStiWaterfallTotal=[te.d.IStiTrendLine,p,g]),e.implementsStiWaterfallTotal}clone(){return this.stimulsoft().memberwiseClone()}meta(){return this._hash||(this._hash=[new T("Text"),new S("Visible","",!0)])}saveToJsonObject(e){return d.saveToJsonObject(e,this)}loadFromJsonObject(e){d.loadFromJsonObject(e,this)}loadFromXml(e){d.loadFromXml(e,this)}get componentId(){return te.a.StiComponentId.StiTrendLine}};te.d.StiWaterfallTotal=e}{let r=class{static run(e,t){if(void 0===e)return void r.run(J,"Stimulsoft");for(var i in t=t.stimulsoft().replaceAll("Stimulsoft.System","System"),e)"function"==typeof e[i]?(e[i].ssTypeName=i,e[i].ssNamespace=t):"object"==typeof e[i]&&r.run(e[i],t+"."+i)}};te.b.StiTypesHelper=r}return te.b.StiTypesHelper.run(),{Stimulsoft:J}});