UNPKG

@mescius/spread-sheets-charts

Version:

SpreadJS Chart plugin

12 lines 3.34 MB
/*! * * SpreadJS Library 19.1.0 * * Copyright(c) MESCIUS inc. All rights reserved. * * Licensed under the SpreadJS Commercial License. * us.sales@mescius.com * https://developer.mescius.com/spreadjs * */ !function(n){"object"==typeof module&&"object"==typeof module.exports?(require("@mescius/spread-sheets-shapes"),module.exports=n(require("@mescius/spread-sheets"))):"function"==typeof define&&define.amd?define(["@mescius/spread-sheets","@mescius/spread-sheets-shapes"],n):"object"==typeof exports?(require("@mescius/spread-sheets-shapes"),exports.Spread=n(require("@mescius/spread-sheets"))):n(GC)}((function(n){!function(){var t,i={209:function(n,t,i){"use strict";var u,r,e,l,s,o=this&&this.vJr||(f=function(n,t){return f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},f(n,t)},function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=n}f(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),f;Object.defineProperty(t,"__esModule",{value:!0}),t.StatefulChartElementBase=void 0,r=(u=i(8724)).Drawing.StatefulBase,e=u.Drawing.UnitHelper,l=null,s=function(n){function t(t){return n.call(this,t)||this}return o(t,n),Object.defineProperty(t.prototype,"Format",{get:function(){var n=this;return e.isNullOrUndefined(n.I5)&&(n.I5=n.CreateFormat()),n.I5},set:function(n){var t,i=this;e.isNullOrUndefined(i.I5)||i.I5.SetParentForChildren(n),t=i.I5,i.I5=n,e.isNullOrUndefined(t)||(i.I5.ParentStateful=t.ParentStateful)},enumerable:!1,configurable:!0}),t.prototype.CreateFormat=function(){return l},t.prototype.GetFormatInternal=function(){return this.I5},t.prototype.FromShapeProperties=function(n){var t=this;e.isNullOrUndefined(n)?t.Format.c5():t.Format.FromOOModel(n)},t.prototype.FromSJSShapeProperties=function(n){var t=this;e.isNullOrUndefined(n)?t.Format.c5():t.Format.FromSJSOOModel(n)},t.prototype.ToShapeProperties=function(){return e.isNullOrUndefined(this.I5)?l:this.I5.ToOOModel()},t.prototype.ToSJSShapeProperties=function(){return e.isNullOrUndefined(this.I5)?l:this.I5.ToSJSOOModel()},t.prototype.Delete=function(){e.isNullOrUndefined(this.I5)||(this.I5.ParentStateful=l)},t.prototype.ClearFormat=function(){var n=this;e.isNullOrUndefined(n.I5)||(n.I5.SetParentForChildren(l),n.I5.ParentStateful=l,n.I5=l)},t}(r),t.StatefulChartElementBase=s},575:function(n,t){"use strict";var i,u,r,e,l,s,o,f,h,c,a,v;Object.defineProperty(t,"__esModule",{value:!0}),t.AxisCrosses=t.ST_FormulaDirection=t.ST_StringDimensionType=t.ST_NumericDimensionType=t.ReferType=t.ElementType=t.BarType=t.ChartLinesType=t.ST_PictureFormat=t.ST_SizeRepresents=t.PointStates=t.DisplayUnitInternal=void 0,function(n){n[n.hundreds=0]="hundreds",n[n.thousands=1]="thousands",n[n.tenThousands=2]="tenThousands",n[n.hundredThousands=3]="hundredThousands",n[n.millions=4]="millions",n[n.tenMillions=5]="tenMillions",n[n.hundredMillions=6]="hundredMillions",n[n.billions=7]="billions",n[n.trillions=8]="trillions",n[n.none=9]="none",n[n.custom=10]="custom"}(i=t.DisplayUnitInternal||(t.DisplayUnitInternal={})),function(n){n[n.Explosion=1]="Explosion",n[n.Format=2]="Format",n[n.Has3DEffect=4]="Has3DEffect",n[n.InvertIfNegative=8]="InvertIfNegative",n[n.MarkerFormat=16]="MarkerFormat",n[n.MarkerSize=32]="MarkerSize",n[n.MarkerStyle=64]="MarkerStyle",n[n.PictureType=128]="PictureType",n[n.PictureUnit=256]="PictureUnit"}(u=t.PointStates||(t.PointStates={})),function(n){n[n.area=0]="area",n[n.w=1]="w"}(r=t.ST_SizeRepresents||(t.ST_SizeRepresents={})),function(n){n[n.stretch=0]="stretch",n[n.stack=1]="stack",n[n.stackScale=2]="stackScale"}(e=t.ST_PictureFormat||(t.ST_PictureFormat={})),function(n){n[n.DropLines=0]="DropLines",n[n.HiLoLines=1]="HiLoLines",n[n.SeriesLines=2]="SeriesLines",n[n.DlblsLeaderLines=3]="DlblsLeaderLines"}(l=t.ChartLinesType||(t.ChartLinesType={})),function(n){n[n.Up=0]="Up",n[n.Down=1]="Down"}(s=t.BarType||(t.BarType={})),function(n){n[n.series=0]="series",n[n.axis=1]="axis",n[n.dataPoint=2]="dataPoint",n[n.legend=3]="legend",n[n.label=4]="label",n[n.chartTitle=5]="chartTitle",n[n.plotArea=7]="plotArea",n[n.chartArea=8]="chartArea",n[n.errorBar=9]="errorBar",n[n.trendline=10]="trendline",n[n.displayUnitLabel=11]="displayUnitLabel"}(o=t.ElementType||(t.ElementType={})),function(n){n[n.Name=0]="Name",n[n.Values=1]="Values",n[n.XValues=2]="XValues",n[n.BubbleSzies=3]="BubbleSzies"}(f=t.ReferType||(t.ReferType={})),function(n){n[n.val=0]="val",n[n.x=1]="x",n[n.y=2]="y",n[n.size=3]="size",n[n.colorVal=4]="colorVal"}(h=t.ST_NumericDimensionType||(t.ST_NumericDimensionType={})),function(n){n[n.cat=0]="cat",n[n.colorStr=1]="colorStr"}(c=t.ST_StringDimensionType||(t.ST_StringDimensionType={})),function(n){n[n.col=0]="col",n[n.row=1]="row"}(a=t.ST_FormulaDirection||(t.ST_FormulaDirection={})),function(n){n[n.axisCrossesCustom=0]="axisCrossesCustom",n[n.axisCrossesAutomatic=1]="axisCrossesAutomatic",n[n.axisCrossesMaximum=2]="axisCrossesMaximum",n[n.axisCrossesMinimum=3]="axisCrossesMinimum"}(v=t.AxisCrosses||(t.AxisCrosses={}))},1376:function(t){"use strict";t.exports=n.Spread.Sheets},1455:function(n,t,i){"use strict";var u,r,e,l,s=this&&this.vJr||(o=function(n,t){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},o(n,t)},function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=n}o(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o;function f(n){var t,i;if(n&&(t=n.lastIndexOf(","),i=n.lastIndexOf("-"),t>0&&i>0))return{index:+n.substring(t+1,i),name:n.substr(0,t)}}function h(n,t,i){var u,r,e,l,s={};for(r in n)(u=n[r]).formula&&t&&r&&(e=f(r))&&(l=i[e.name])&&(s[l]||(s[l]=[]),s[l].push({info:e,changeInfo:u}));return s}function c(n,t,i,u,r,e){var l=n.utn.SeriesCollection,s=l.AllSers[t],o=n.sheet().Ut;s&&(o&&o.G8&&!r.series&&(r.series=l.get()),r.series&&r.series[t]&&(r.series[t].dataLabels=s.Fen(u)),e?r.indexes.push(t):s.UpdateFormula(i,u))}function a(n,t,i,u,r){var e,l,s,o,f,h,a;if(n&&i){if(!(e=t.get(n)))return;if((l=r[n])||(l=r[n]={indexes:[],chart:e}),i.length<1)return;for(e.utn.men=!0,s=0;s<i.length;s++)o=i[s].info,(h=(f=i[s].changeInfo).formulaAdjusted)&&(e.gen=!0),c(e,o.index,f.formula,u,l,2===h);delete e.utn.men,i.length>0&&(a=e.series()).UpdateMaxMin()}}function v(n,t,i,u){var r,e,l;n&&i&&u&&(r=f(i))&&(e=t[r.name])&&(l=n.get(e))&&l.Fnn(!u.formula||u.formulaAdjusted)}function b(n,t,i,u,r,e){var l,s,o=t.getFormulas();if(n.den[u]=r,o)for(s in l=function(n){var t;Object.prototype.hasOwnProperty.call(o,n)&&o[n].forEach((function(t,r){i.setFormulaByName(u+","+n+"-"+r,t,!0,e)}))},o)l(s)}function w(n,t,i,u){var r,e,l=n.getFormulas();if(l)for(e in r=function(n){var r;Object.prototype.hasOwnProperty.call(l,n)&&l[n].forEach((function(r,e){var l=i+","+n+"-"+e;t.$yt(l)&&t.setFormulaByName(l,null,!0,u)}))},l)r(e)}function d(n,t){if(t){if(t.startsWith("SERIES(")&&-1!==t.indexOf("#REF!")){var i=(t=t.replace(/#REF!/g,"")).split(",");n.formulaAdjusted=i[2].length?1:2}t.startsWith("SERIESDATALABELSRANGE(")&&-1!==t.indexOf("#REF!")&&(n.formulaAdjusted=1)}n.formula=t}Object.defineProperty(t,"__esModule",{value:!0}),t.ChartSource=void 0,u=i(5035),r=i(7199),function(n){n[n.add=0]="add",n[n.remove=1]="remove",n[n.update=2]="update"}(e||(e={})),l=function(n){function t(t){var i=n.call(this,null)||this;return i.Mf=t,i.den={},i.ben={},i}return s(t,n),t.prototype.createSourceModel=function(n){return new u.CalcSourceModel(n,this)},t.prototype.getValueByName=function(n){},t.prototype.setFormulaByName=function(n,t){var i=this.ben,u=i[n];u||(u=i[n]={}),d(u,t)},t.prototype.getSheet=function(){return this.Mf},t.prototype.setValueByName=function(n,t){var i=this.ben,u=i[n];u||(u=i[n]={}),u.dataChanged=!0},t.prototype.znn=function(n){this.yen(n,0),(0,r.setReferenceTable)(n)},t.prototype.jen=function(n){this.yen(n,1);var t=n.Oen;t&&(n.Oen=void 0,t.bTt(n,!1))},t.prototype.Ann=function(n,t){this.yen(n,2,t)},t.prototype.yen=function(n,t,i){var u,r,e,l,s,o,f,h=this,c=h.Mf;c&&c.qgt&&(e=(r=c.getCalcService()).getSourceModel(this),n&&(null==(l=null===(u=c.parent)||void 0===u?void 0:u.collaboration)||l.startBatchOp(),r.suspend(!0),o=(s=n.name()).toUpperCase(),0===t?b(h,n,e,o,s):1===t?w(n,e,o):i&&"rename"===i.action?(w(n,e,i.oldName.toUpperCase()),b(h,n,e,i.newName.toUpperCase(),s)):(w(n,e,o,f=i&&i.syncOnly),b(h,n,e,o,s,f)),r.resume(!1),null==l||l.endBatchOp()))},t.prototype.startCalculation=function(){},t.prototype.ggr=function(n,t,i){n||this.endCalculation(null,i)},t.prototype.endCalculation=function(n,t){var i,u,e,l,s,o,c,b,w,d,g,m,p,M,y,O,j,N,L,x,I,P,S,C,k,A,T,D,R,_=this,B=_.Mf;if((!t||t===B)&&(s=B.charts,c=(o=_.getCalcService()).useR1C1,s)){if(w=o.Ui&&(null===(i=o.df)||void 0===i?void 0:i.step)>=2,d=void 0,o.calcOnDemand||w)for(p in m=(g=_.Mbt).dataTableByName)M=m[p].calc.k1,d=d||M,(o.calcOnDemand||M)&&g.recalculateNameID(m[p].calc.name);if(w&&!d)return;for(N in y=_.den,j={},L=h(O=this.ben,s,y),x=[],I=function(){var n,t,i,u,r=O[N];(r.dataChanged||r.formula)&&(n=f(N))&&n.name&&(t=y[n.name],(i=s.get(t))&&!x.find((function(n){return n.chart===i}))&&(u=i.utn.Vzr(),x.push({chart:i,changingContext:u})))},O)I();for(N in null===(e=null==(P=null===(u=this.Mf)||void 0===u?void 0:u.getParent())?void 0:P.suspendOp)||void 0===e||e.call(P),L)a(N,s,L[N],c,j);for(N in j)j.hasOwnProperty(N)&&(b=j[N],(0,r._en)(b.chart,b));for(N in S={},O)O[N].dataChanged&&(C=f(N))&&(S[k=y[C.name]]||(v(s,y,N,O[N]),S[k]=!0));for(N in this.ben={},j)j.hasOwnProperty(N)&&(A=(b=j[N]).chart)&&A.gen&&(delete A.gen,B.Cnn(A,{syncOnly:!0}));for(null===(l=null==P?void 0:P.resumeOp)||void 0===l||l.call(P),T=0,D=x;T<D.length;T++)(R=D[T]).chart.utn.zzr(R.changingContext)}},t.prototype.$nn=function(){this.endCalculation()},t}(u.CalcSource),t.ChartSource=l},2161:function(n,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AxisTitle=t.Branch=t.ChartTitle=t.TOTAL=t.DECREASE=t.INCREASE=t.SIZE=t.POINT=t.VALUE=t.SERIES=t.unsupportedChartType=t.power=t.polynomial=t.logarithmic=t.linear=t.exponential=t.movingAverage=t.period=void 0,t.period="period",t.movingAverage="MovingAverage",t.exponential="Exponential",t.linear="Linear",t.logarithmic="Logarithmic",t.polynomial="Polynomial",t.power="Power",t.unsupportedChartType="Unsupported Chart Type",t.SERIES="Series",t.VALUE="Value: ",t.POINT="Point ",t.SIZE="Size: ",t.INCREASE="Increase",t.DECREASE="Decrease",t.TOTAL="Total",t.ChartTitle="Chart Title",t.Branch="Branch",t.AxisTitle="Axis Title"},2552:function(n,t,i){var u=i(7579);u=i(9050),u=i(3099),u=i(3345),u=i(4893),n.exports=u},2648:function(t){"use strict";t.exports=n.Spread.Sheets.FormulaTextBox},2720:function(n,t,i){"use strict";var u,r,e,l,s,o,f,h,c,a,v,b,w,d,g,m,p,M,y,O,j,N,L,x,I,P,S,C,k,A,T,D,R,_,B,F,E,Z,V,z,H,G,W,U,q,X,$,Y,J,K,Q,nn,tn=this&&this.vJr||(un=function(n,t){return un=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])},un(n,t)},function(n,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=n}un(n,t),n.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),un;Object.defineProperty(t,"__esModule",{value:!0}),t.DataLabel=t.DataLabels=t.DataLabelBase=t.DataLabelLeaderLines=t.DataLabelsLeaderLines=t.DblsLeaderLinesBase=t.DataLabelStates=t.Points=t.Point=void 0,u=i(1376),r=i(7234),e=i(8724),l=i(6149),s=i(575),o=i(5685),f=i(9617),h=i(209),c=i(9437),a=e.Drawing.LineFormat,v=e.Drawing.ChartConstants,b=e.Drawing.UnitHelper,w=e.Drawing.DrawingText,d=b.isNullOrUndefined,g=o.ChartUtility.colorFormatToString,m=o.ChartUtility.isMarkerScatterChart,p=o.ChartUtility.getFillFormatResult,M=o.ChartUtility.IsLineChart,y=o.ChartUtility.getTransparencyFromColorFormat,O=o.ChartUtility.IsSunburstOrTreemapChart,j=o.ChartUtility.IsFunnelChart,N=o.ChartUtility.IsWaterfallChart,L=o.ChartUtility.Is2016ChartType,x=r.Formatter.GeneralFormatter,I=null,P=void 0,S=u.NodeHelper.ur,C=u.NodeHelper.ar,k=u.NodeHelper.sr,A=u.ExcelHelper.pointToPixel,T=u.mt.vo,D=u.mt.n1,R="{CE6537A1-D6FC-4f65-9D91-7224C49458BB}",_="General",B=u.NodeHelper.ur,F=r.Common.lt.tv,E=function(n){function t(t,i,u,r,e){var l=n.call(this,i,u,r,e)||this;return l.qrn=t,l}return tn(t,n),t.prototype.rNl=function(){var t,i,u,r,e,l,s,o;n.prototype.rNl.call(this),u=(i=(t=this.qrn).$tn).ChartType,O(u)&&!i.Format.Fill.Color.IsDirtyIncludingParent()&&(r=i.Ktn.Jtn,e=t.Index,(l=r.findIndex((function(n){return n.idx===e})))>=0&&(o=(s=i.GetSunburstSeriesColor())[l],t.setFillColor(i.Worksheet,o)))},t}(l.ChartFormat),Z=function(n){function t(t,i,u,r,e){var l=n.call(this,i,u,r,e)||this;return l.qrn=t,l}return tn(t,n),t.prototype.rNl=function(){var t,i,u,r,e,l,s,o;n.prototype.rNl.call(this),u=(i=(t=this.qrn).$tn).ChartType,O(u)&&m(u)&&!i.MarkerFormat.Fill.Color.IsDirtyIncludingParent()&&(r=i.Ktn.Jtn,e=t.Index,(l=r.findIndex((function(n){return n.idx===e})))>=0&&(o=(s=i.GetSunburstSeriesColor())[l],t.setMarkerFillColor(i.Worksheet,o)))},t}(l.ChartFormat),V=function(n){function t(t,i){var u,r=n.call(this,t)||this;return r.FromCT_PictureOptions=function(n){var t,i=n.pictureFormat;d(i)||(this.PictureType=i),t=n.pictureStackUnit,d(t)||(this.PictureUnit=t)},r.FromSJSCT_PictureOptions=function(n){var t,i=n.pictureFormat;d(i)||(this.PictureType=s.ST_PictureFormat[i.val]),t=n.pictureStackUnit,d(t)||(this.PictureUnit=C(t.val))},r.FromCT_Marker=function(n){var t,i,u=this,r=n.spPr;d(r)?u.ClearMarkerFormat():(d(u.tun)&&(u.tun=u.CreateMarkerFormat()),u.tun.FromOOModel(r)),t=n.size,d(t)||(u.MarkerSize=t),i=n.symbol,d(i)||(u.MarkerStyle=i)},r.FromSJSCT_Marker=function(n){var t,i,u=this,r=n.spPr;d(r)?u.ClearMarkerFormat():(d(u.tun)&&(u.tun=u.CreateMarkerFormat()),u.tun.FromSJSOOModel(r)),t=n.size,d(t)||(u.MarkerSize=A(C(t.val))),i=n.symbol,d(i)||(u.MarkerStyle=c.ST_MarkerStyle[i.val])},(u=r).nun=I,u.iun=I,u.$tn=t,u.lp=i,u.eun=1,u.uun=5,u.sun=c.MarkerStyle.MarkerStyleNone,r}return tn(t,n),Object.defineProperty(t.prototype,"DataLabel",{get:function(){return this.$tn.DataLabels.Get(this.lp)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Explosion",{get:function(){return this.GetState(1)?this.mun:this.$tn.Explosion},set:function(n){n!==this.mun&&n>=0&&n<=400&&(this.mun=n,this.Dirty(1))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Has3DEffect",{get:function(){return this.GetState(4)?this.Mun:this.$tn.Has3DEffect},set:function(n){this.Mun=n,this.Dirty(4)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasDataLabel",{get:function(){return!this.$tn.DataLabels.Get(this.lp).Deleted},set:function(n){this.$tn.DataLabels.Get(this.lp).Deleted=!n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"InvertIfNegative",{get:function(){return this.pun},set:function(n){this.pun=n,this.Dirty(8)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MarkerFormat",{get:function(){var n=this;return d(n.tun)&&(n.tun=n.CreateMarkerFormat()),n.tun},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MarkerSize",{get:function(){return this.GetState(32)?this.uun:this.$tn.MarkerSize},set:function(n){this.uun=n,this.Dirty(32)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MarkerStyle",{get:function(){return this.GetState(64)?this.sun:this.$tn.MarkerStyle},set:function(n){this.sun=n,this.Dirty(64)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Parent",{get:function(){return this.$tn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PictureType",{get:function(){return this.GetState(128)?this.Oun:this.$tn.PictureType},set:function(n){this.Oun=n,this.Dirty(128)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PictureUnit",{get:function(){return this.GetState(256)?this.eun:this.$tn.PictureUnit},set:function(n){this.eun=n,this.Dirty(256)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SecondaryPlot",{get:function(){return this.yun},set:function(n){n!==this.yun&&(this.yun=n,this.Chart.HandleElementChanged(5,this,v.SecondaryPlot))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Chart",{get:function(){return this.$tn.SeriesCollection.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Index",{get:function(){return this.lp},enumerable:!1,configurable:!0}),t.prototype.setFillColor=function(n,t){var i=this.Format.Fill;t instanceof Object?(i.Type=1,i.Color.setColor(n,t.backgroundColor),i.Pattern=t.type,i.PatternColor.setColor(n,t.foregroundColor)):(i.Type=0,i.Color.setColor(n,t))},t.prototype.getFillColor=function(n,t,i,u,r){return p(this.Format.Fill,n,t,i,u,P,r)},t.prototype.setFillColorTransparency=function(n){this.Format.Fill.Color.Transparency=n},t.prototype.getFillColorTransparency=function(){return y(this.Format.Fill)},t.prototype.setLineColor=function(n,t){this.Format.Line.Color.setColor(n,t)},t.prototype.getLineColor=function(n,t,i,u){return g(this.Format.Line,n,t,i,u)},t.prototype.setLineColorTransparency=function(n){this.Format.Line.Color.Transparency=n},t.prototype.getLineColorTransparency=function(){return y(this.Format.Line)},t.prototype.setLineWidth=function(n){this.Format.Line.Weight=n},t.prototype.getLineWidth=function(){return this.Format.Line.Weight},t.prototype.setLineDashStyle=function(n){this.Format.Line.DashStyle=n},t.prototype.getLineDashStyle=function(){return this.Format.Line&&this.Format.Line.DashStyle},t.prototype.setMarkerFillColor=function(n,t){this.MarkerFormat.Fill.Color.setColor(n,t)},t.prototype.getMarkerFillColor=function(n,t,i,u){var r=this.MarkerStyle,e=this.MarkerFormat,l=6===r||8===r||10===r,s=e.Fill&&e.Fill.Color,o=s&&1===s.ColorType,f=1===this.Parent.ChartType;return l&&o&&!f?null:p(e.Fill,n,t,i,u)},t.prototype.setMarkerColorTransparency=function(n){this.MarkerFormat.Fill.Color.Transparency=n},t.prototype.getMarkerColorTransparency=function(){return y(this.MarkerFormat.Fill)},t.prototype.setMarkerBorderColor=function(n,t){this.MarkerFormat.Line.Color.setColor(n,t)},t.prototype.getMarkerBorderColor=function(n,t,i){return g(this.MarkerFormat.Line,n,t,i)},t.prototype.setMarkerBorderColorTransparency=function(n){this.MarkerFormat.Line.Color.Transparency=n},t.prototype.getMarkerBorderColorTransparency=function(){return y(this.MarkerFormat.Line)},t.prototype.setMarkerBorderLineWidth=function(n){d(n)||(this.MarkerFormat.Line.Weight=n)},t.prototype.getMarkerBorderLineWidth=function(){var n=this.MarkerFormat.Line&&this.MarkerFormat.Line.Weight;return d(n)?0:n>=0?n:1},t.prototype.setMarkerBorderLineDashStyle=function(n){d(n)||(this.MarkerFormat.Line.DashStyle=n)},t.prototype.getMarkerBorderLineDashStyle=function(){return this.MarkerFormat.Line&&this.MarkerFormat.Line.DashStyle},t.prototype.setDataPointProperties=function(n){var t,i,u,r=this.$tn.Worksheet,e=m(this.Parent.ChartType),l=n.backColor;l?e?this.setMarkerFillColor(r,l):this.setFillColor(r,l):null!==l&&""!==l||(e?this.MarkerFormat.lNl():this.Format.lNl()),t=n.backColorTransparency,d(t)||(e?this.setMarkerColorTransparency(t):this.setFillColorTransparency(t)),i=n.border,d(i)||(i.color?this.setLineColor(r,i.color):null!==i.color&&""!==i.color||(this.Format.Line.Color.ColorType=0),d(i.transparency)||this.setLineColorTransparency(i.transparency),d(i.lineType)||this.setLineDashStyle(i.lineType),d(i.width)||this.setLineWidth(i.width)),this.InvertIfNegative=!!n.invertIfNegative,d(n.symbolSize)||(this.MarkerSize=n.symbolSize),d(n.symbolShape)||(this.MarkerStyle=n.symbolShape),(u=n.symbolBorder)&&(u.color?this.setMarkerBorderColor(r,u.color):null!==u.color&&""!==u.color||(this.MarkerFormat.Line.Color.ColorType=0),d(u.colorTransparency)||this.setMarkerBorderColorTransparency(u.colorTransparency),d(u.width)||this.setMarkerBorderLineWidth(u.width),d(u.lineType)||this.setMarkerBorderLineDashStyle(u.lineType))},t.prototype.getDataPointProperties=function(n,t,i,u,r){var e,l,s,o,f,h,c,a,v,b,w,g,p,y,O,j,N={},L=this.Parent.ChartType;return m(L)&&(e={},null!==(l=this.getMarkerFillColor(n,t,i,u))&&(N.backColor=l),s=this.getMarkerColorTransparency(),d(s)||(N.backColorTransparency=s),o=this.MarkerSize,d(o)||(N.symbolSize=o),f=this.MarkerStyle,d(f)||(N.symbolShape=f),h=this.getMarkerBorderColor(n,t,i),d(h)||(e.color=h),c=this.getMarkerBorderColorTransparency(),d(c)||(e.transparency=c),a=this.getMarkerBorderLineWidth(),d(a)||(e.width=a),v=this.getMarkerBorderLineDashStyle(),d(v)||(e.lineType=v),N.symbolBorder=e),M(L)||m(L)||(b=this.getFillColor(n,t,i,u,r),d(b)||(N.backColor=b),w=this.getFillColorTransparency(),d(w)||(N.backColorTransparency=w)),N.border={},g=this.getLineColor(n,t,i,r),d(g)||(N.border.color=g),p=this.getLineColorTransparency(),d(p)||(N.border.transparency=p),y=this.getLineWidth(),d(y)||(N.border.width=y),O=this.getLineDashStyle(),d(O)||(N.border.lineType=O),j=this.InvertIfNegative,d(j)||(N.invertIfNegative=j),N},t.prototype.setSecondaryPlotInternal=function(n){this.yun=n},t.prototype.GetValueText=function(n){return n===P&&(n=I),this.$tn.GetPointValueText(this.lp,n)},t.prototype.GetCatText=function(){return this.$tn.GetCatText(this.lp)},t.prototype.GetPercentageValue=function(){return this.$tn.GetPercentageValue(this.lp)},t.prototype.CreateFormat=function(){var n=this;return new E(n,n.$tn.SeriesCollection.Parent,n.$tn.GetFormatInternal(),n.AutoFillColorFormat.bind(n),n.AutoLineColorFormat.bind(n))},t.prototype.CreateMarkerFormat=function(){var n=this;return new Z(n,n.Chart,n.$tn.MarkerFormat,n.AutoMarkerColorFormat.bind(n),n.AutoMarkerColorFormat.bind(n))},t.prototype.AutoFillColorFormat=function(){return o.ChartUtility.IsFillSeries(this.$tn.InnerChartType)?this.GenerateAutoColor():I},t.prototype.AutoLineColorFormat=function(){return o.ChartUtility.IsLineSeries(this.$tn.InnerChartType)?this.GenerateAutoColor():I},t.prototype.AutoMarkerColorFormat=function(){return o.ChartUtility.IsMarkerSeries(this.$tn.InnerChartType)?this.GenerateAutoColor():I},t.prototype.GenerateAutoColor=function(){var n;return n=this.IsRenderVaryColors()?this.lp:this.$tn.AutoColorIndex,this.$tn.GenerateAutoPointColor(n)},t.prototype.IsRenderVaryColors=function(){var n=this.$tn&&this.$tn.Parent&&this.$tn.Parent.VaryByCategories;return 1===this.$tn.SeriesCollection.Count&&n||o.ChartUtility.IsAnyPieChart(this.$tn.InnerChartType)&&n},t.prototype.IsDirtyIncludingParent=function(t){t===P&&(t=!1);var i=this;return!(d(i.I5)||!i.I5.IsDirtyIncludingParent(t))||(!(d(i.tun)||!i.tun.IsDirtyIncludingParent(t))||n.prototype.IsDirtyIncludingParent.call(this,t))},t.prototype.OnParentChanged=function(n){var t,i,u=this;u.$tn=n,d(u.I5)||(u.I5.ParentStateful=null===(t=u.$tn)||void 0===t?void 0:t.Format),d(u.tun)||(u.tun.ParentStateful=null===(i=u.$tn)||void 0===i?void 0:i.MarkerFormat)},t.prototype.IsNegative=function(){var n=this.$tn.Values;return!d(n)&&n[this.lp]<0},t.prototype.MapToSourceIndex=function(n){var t,i,u,r,e,l,s,o,f=this;if(!f.$tn.PlotVisibleOnly||!f.$tn.HasRefers(1)||!f.$tn.HasHiddenValues())return n;for(t=0,i=0,u=0,r=f.$tn.ValuesRefers;u<r.length;u++)if(e=r[u],l=f.$tn.Worksheet.Mnn(e.WorksheetName),1===e.RowCount)for(s=e.Column;s<e.Column+e.ColumnCount;s++){if(!l.Snn(e.Row,s).EntireColumn.Hidden){if(i===n)return t;i++}t++}else if(1===e.ColumnCount)for(o=e.Row;o<e.Row+e.RowCount;o++){if(!l.Snn(o,e.Column).EntireRow.Hidden){if(i===n)return t;i++}t++}return n},t.prototype.From2016ChartOOModel=function(n){var t=this;d(n.idx)||(t.lp=n.idx),d(n.spPr)||t.FromShapeProperties(n.spPr)},t.prototype.From2016ChartSJSOOModel=function(n){var t=this;d(n.idx)||(t.lp=k(n.idx)),d(n.spPr)||t.FromSJSShapeProperties(n.spPr)},t.prototype.FromOOModel=function(t){var i,u,r,e,l,s=this;s.nun=t,s.lp=t.idx,i=t.bubble3D,d(i)||(s.Has3DEffect=i),u=t.pictureOptions,d(u)||s.FromCT_PictureOptions(u),r=t.explosion,d(r)||(s.Explosion=r),e=t.invertIfNegative,d(e)||(s.InvertIfNegative=e),n.prototype.FromShapeProperties.call(this,t.spPr),l=t.marker,d(l)||s.FromCT_Marker(l)},t.prototype.FromSJSOOModel=function(t){var i,u,r,e,l,s=this;s.iun=t,s.lp=t.idx&&k(t.idx.val),i=t.bubble3D&&t.bubble3D.val,d(i)||(s.Has3DEffect=S(i)),u=t.pictureOptions,d(u)||s.FromSJSCT_PictureOptions(u),r=t.explosion,d(r)||(s.Explosion=k(r.val)),e=t.invertIfNegative,d(e)||(s.InvertIfNegative=S(e.val)),n.prototype.FromSJSShapeProperties.call(this,t.spPr),l=t.marker,d(l)||s.FromSJSCT_Marker(l)},t.prototype.To2016ChartOOModel=function(){var n=this,t={};return d(n.lp)||(t.idx=n.lp),d(n.I5)||(t.spPr=n.ToShapeProperties()),t},t.prototype.To2016ChartSJSOOModel=function(){var n=this,t={};return d(n.lp)||(t.idx=n.lp),d(n.I5)||(t.spPr=n.ToSJSShapeProperties()),t},t.prototype.ToOOModel=function(){var t=this,i=d(t.nun)?{}:F(t.nun);return i.idx=t.lp,t.GetState(4)&&(i.bubble3D=t.Has3DEffect),i.pictureOptions=t.ToCT_PictureOptions(),o.ChartUtility.IsPieOrDoughnutChart(t.$tn.InnerChartType)&&t.GetState(1)&&(i.explosion=t.Explosion),i.invertIfNegative=t.InvertIfNegative,i.spPr=n.prototype.ToShapeProperties.call(this),i.marker=t.ToCT_Marker(),i},t.prototype.ToSJSOOModel=function(){var t,i=this,u=d(i.iun)?{}:i.iun;return u.idx={val:""+i.lp},i.GetState(4)&&(u.bubble3D={val:i.Has3DEffect?1:0}),u.pictureOptions=i.ToSJSCT_PictureOptions(),o.ChartUtility.IsPieOrDoughnutChart(i.$tn.InnerChartType)&&i.GetState(1)&&(u.explosion={val:i.Explosion}),u.invertIfNegative={val:i.InvertIfNegative?"1":"0"},u.spPr=n.prototype.ToSJSShapeProperties.call(this),(t=i.ToSJSCT_Marker())!==I&&(u.marker=t),u},t.prototype.ToCT_PictureOptions=function(){var n=this,t={},i=!1;return n.GetState(128)&&(t.pictureFormat=n.PictureType,i=!0),n.GetState(256)&&(t.pictureStackUnit=n.PictureUnit,i=!0),i?t:I},t.prototype.ToSJSCT_PictureOptions=function(){var n=this,t={},i=!1;return n.GetState(128)&&(t.pictureFormat={val:s.ST_PictureFormat[n.PictureType]},i=!0),n.GetState(256)&&(t.pictureStackUnit={val:n.PictureUnit},i=!0),i?t:I},t.prototype.ToCT_Marker=function(){var n=this,t={},i=!1;return(!d(n.tun)&&n.tun.IsDirtyIncludingParent()||n.IsRenderVaryColors())&&(d(n.tun)&&(n.tun=n.CreateMarkerFormat()),t.spPr=n.tun.ToOOModel(),i=!0),(n.GetState(32)||n.IsRenderVaryColors())&&(t.size=n.MarkerSize,i=!0),(n.GetState(64)||n.IsRenderVaryColors())&&(t.symbol=n.MarkerStyle,i=!0),i?t:I},t.prototype.ToSJSCT_Marker=function(){var n,t,i=this,r={},e=!1;return(!d(i.tun)&&i.tun.IsDirtyIncludingParent()||i.IsRenderVaryColors())&&(d(i.tun)&&(i.tun=i.CreateMarkerFormat()),r.spPr=i.tun.ToSJSOOModel(),e=!0),(i.GetState(32)||i.IsRenderVaryColors())&&(n=i.Chart.Parent.fileType,t=u.ExcelHelper.pixelToPoint(i.MarkerSize),n===u.OpenSaveFileType.excel&&(t=Math.round(t)),r.size={val:t},e=!0),(i.GetState(64)||i.IsRenderVaryColors())&&(r.symbol={val:c.ST_MarkerStyle[i.MarkerStyle]},e=!0),e?r:I},t.prototype.ClearMarkerFormat=function(){var n=this;d(n.tun)||(n.tun.SetParentForChildren(I),n.tun.ParentStateful=I,n.tun=I)},t}(h.StatefulChartElementBase),t.Point=V,z=function(){function n(n){this.Btn={},this.$tn=n,this.utn=n.Chart}return Object.defineProperty(n.prototype,"Count",{get:function(){return this.$tn.PointsCount},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"Parent",{get:function(){return this.$tn},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"ChartView",{get:function(){return this.utn.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"HasDataLabel",{get:function(){var n,t,i=this.Btn;for(n in i)if(t=i[n],!d(t)&&t.HasDataLabel)return!0;return!1},enumerable:!1,configurable:!0}),n.prototype.ItemInternal=function(n){return this.Btn[n]||I},n.prototype.GetPoint=function(n){var t,i=this;return n<0?I:((t=i.Btn[n])||(t=new V(i.$tn,n),i.Btn[n]=t),t)},n.prototype.GetPoints=function(){return this.Btn},n.prototype.getImp=function(n){var t,i,u,r,e=this;if(0===arguments.length){for(u in i=[],e.Btn)e.Btn.hasOwnProperty(u)&&(r=(t=e.Btn[u])&&t.getDataPointProperties(!0,!1,!0),i[u]=t?r:t);return i}if(t=e.Btn[n])return t.getDataPointProperties(!0,!1,!0)},n.prototype.setImp=function(n,t,i){var u=this,r=u.GetPoint(n);r&&t&&(u.DT({index:n,dataPoint:u.getImp(n)}),r.setDataPointProperties(t),i&&u.ChartView.Fnn(!1))},n.prototype.get=function(n){var t,i,u,r,e=this;if(0===arguments.length){if(t=e.getImp(n))for(i=0;i<t.length;i++)u=t[i],d(u)||(d(u.backColor)||(u.fillColor=u.backColor),d(u.backColorTransparency)||(u.transparency=u.backColorTransparency))}else n=(r=this.$tn.Ktn&&this.$tn.Ktn.Jtn)&&r[n]&&r[n].idx||n,t=e.getImp(n),d(t)||(d(t.backColor)||(t.fillColor=t.backColor),d(t.backColorTransparency)||(t.transparency=t.backColorTransparency));return t},n.prototype.set=function(n,t){var i=this,u=this.$tn.Gzr("dataPoints"),r=this.$tn.Ktn&&this.$tn.Ktn.Jtn,e=r&&r[n]&&r[n].idx||n;d(t.fillColor)||(t.backColor=t.fillColor),d(t.transparency)||(t.backColorTransparency=t.transparency),i.setImp(e,t,!0),this.$tn.rPr("dataPoints",{changingContext:u})},n.prototype.DT=function(n){this.ChartView.DT("dataPoint",n)},n.prototype.AP=function(n){n&&this.set(n.index,n.dataPoint)},n.prototype.NeedRenderPoint=function(n){return n.IsDirtyIncludingParent()},n.prototype.getChildPointIndxes=function(n){var t,i,u=this,r=u.$tn,e=[];return O(r.ChartType)&&(i=(t=r.Ktn).getPointNodeByIndex(t.Jtn,n))&&i.children&&u.jun(i,e),e},n.prototype.jun=function(n,t){var i,u=n.children;if(Array.isArray(u)&&u.length>0)for(i=0;i<u.length;i++)d(u[i].idx)||(t.push(+u[i].idx),this.jun(u[i],t))},n.prototype.get2016ChartPointPropertyValue=function(n,t){var i,u,r=this,e=r.$tn;if(O(e.ChartType)&&!d(n)&&(i=r.Btn[n],!d(i)))return u=i.getDataPointProperties(!0,!1,!0),void 0===t?u:u[t]},n.prototype.ClearPoints=function(){var n,t;for(n in this.Btn)t=this.Btn[n],d(t)||(t.ParentStateful=I);this.Btn={}},n.prototype.FromChartOOModel=function(n){var t,i,u,r;if(this.ClearPoints(),!d(n))for(t=0,i=n;t<i.length;t++)u=i[t],r=this.GetPoint(u.idx),d(r)||r.FromOOModel(u)},n.prototype.FromChartSJSOOModel=function(n){var t,i,u,r;if(this.ClearPoints(),n)for(t=0,i=n=[].concat(n);t<i.length;t++)r=(u=i[t]).idx&&this.GetPoint(k(u.idx.val)),d(r)||r.FromSJSOOModel(u)},n.prototype.ToChartOOModel=function(){var n,t,i=[],u=this.GetPoints();for(n in u)t=u[n],this.NeedRenderPoint(t)&&i.push(t.ToOOModel());return i},n.prototype.ToChartSJSOOModel=function(){var n,t,i=[],u=this.GetPoints();for(n in u)t=u[n],this.NeedRenderPoint(t)&&i.push(t.ToSJSOOModel());return i},n.prototype.From2016ChartOOModel=function(n){var t=this;n.forEach((function(n){var i=t.GetPoint(n.idx);d(i)||i.From2016ChartOOModel(n)}))},n.prototype.From2016ChartSJSOOModel=function(n){var t=this;n&&(n=[].concat(n)),n.forEach((function(n){var i=t.GetPoint(k(n.idx));d(i)||i.From2016ChartSJSOOModel(n)}))},n.prototype.To2016ChartOOModel=function(){var n,t,i=this,u=i.Btn,r=[];for(n in u)u.hasOwnProperty(n)&&(t=u[n])&&r.push(u[n].To2016ChartOOModel());if(r.length>0)return r},n.prototype.To2016ChartSJSOOModel=function(){var n,t,i=this,u=i.Btn,r=[];for(n in u)u.hasOwnProperty(n)&&(t=u[n])&&r.push(u[n].To2016ChartSJSOOModel());if(r.length>0)return r},n}(),t.Points=z,function(n){n[n.Font=1]="Font",n[n.Format=2]="Format",n[n.NumberFormat=4]="NumberFormat",n[n.NumberFormatLinked=8]="NumberFormatLinked",n[n.Position=16]="Position",n[n.Separator=32]="Separator",n[n.ShowBubbleSize=64]="ShowBubbleSize",n[n.ShowCategoryName=128]="ShowCategoryName",n[n.ShowLegendKey=256]="ShowLegendKey",n[n.ShowPercentage=512]="ShowPercentage",n[n.ShowSeriesName=1024]="ShowSeriesName",n[n.ShowValue=2048]="ShowValue",n[n.ShowLeaderLines=4096]="ShowLeaderLines",n[n.Text=8192]="Text",n[n.AutoText=16384]="AutoText",n[n.ShowDataLabelsRange=32768]="ShowDataLabelsRange"}(H=t.DataLabelStates||(t.DataLabelStates={})),G=function(n){function t(t,i){var u=n.call(this,t,i)||this;return u.Weight=1,u}return tn(t,n),t.prototype.Rwo=function(){var t=n.prototype.Rwo.call(this);return t.Color.ObjectThemeColor=1,t.Color.Brightness=.65,t},t}(a),W=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return tn(t,n),t.prototype.tNl=function(){var n=this;return new G(n.utn,d(n.Nin)?I:n.Nin.LineInternal)},t}(l.ChartFormat),U=function(n){function t(t){var i=n.call(this)||this,u=i;return u.Ein=I,u.Zin=I,u.hun=t,i}return tn(t,n),t.prototype.Delete=function(){this.hun.ShowLeaderLines=!1},t.prototype.FromOOModel=function(t){this.Ein=t,n.prototype.FromShapeProperties.call(this,t.spPr)},t.prototype.FromSJSOOModel=function(t){this.Zin=t,n.prototype.FromSJSShapeProperties.call(this,t.spPr)},t.prototype.ToOOModel=function(){var t=this.Ein||{};return t.spPr=n.prototype.ToShapeProperties.call(this),t},t.prototype.ToSJSOOModel=function(){var t=this.Zin||{};return t.spPr=n.prototype.ToSJSShapeProperties.call(this),t},t}(o.ChartElementBase),t.DblsLeaderLinesBase=U,q=function(n){function t(t){return n.call(this,t)||this}return tn(t,n),t.prototype.CreateFormat=function(){return new W(this.hun.Chart)},t}(U),t.DataLabelsLeaderLines=q,X=function(n){function t(t){return n.call(this,t)||this}return tn(t,n),t.prototype.CreateFormat=function(){return new W(this.hun.Chart,this.hun.Series.DataLabels.LeaderLines.Format)},t}(U),t.DataLabelLeaderLines=X,$=function(n){function t(t,i){var u=n.call(this,i)||this,r=u;return r.E9t=_,r.$=!0,r.HEt=", ",r.oun=!1,r.cun=!1,r.fun=!1,r.lun=!1,r.jFe=!1,r.aun=!1,r.vun=!1,r.dun=!1,r.bun=!0,r.Ttn=I,r.cft=I,r.Xnn=I,r.$tn=t,r.gun=i,r.UpdatePosition(),u}return tn(t,n),Object.defineProperty(t.prototype,"AutoText",{get:function(){var n=this;return n.GetState(H.AutoText)||d(n.gun)?n.bun:n.gun.AutoText},set:function(n){this.bun=n,this.Dirty(H.AutoText)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Font",{get:function(){return this.ChartTextInternal.Font},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NumberFormat",{get:function(){var n=this;return n.GetState(4)||d(n.gun)?n.E9t?n.E9t:_:n.gun.NumberFormat},set:function(n){this.setNumberFormat(n)},enumerable:!1,configurable:!0}),t.prototype.setNumberFormat=function(n){var t=this;t.E9t=n,n?t.Dirty(4):t.UnDirty(4),t.$=!1,t.Dirty(8)},Object.defineProperty(t.prototype,"NumberFormatLinked",{get:function(){return this.getNumberFormatLinked()},set:function(n){this.setNumberFormatLinked(n)},enumerable:!1,configurable:!0}),t.prototype.getNumberFormatLinked=function(){var n=this;return n.GetState(8)||d(n.gun)?n.$:n.gun.NumberFormatLinked},t.prototype.setNumberFormatLinked=function(n){var t=this;t.$=n,t.Dirty(8),n&&(t.E9t=_,t.UnDirty(4))},Object.defineProperty(t.prototype,"Position",{get:function(){var n=this;return n.GetState(16)||d(n.gun)?n.u_:n.gun.Position},set:function(n){this.IsPositionValid(n)&&(this.u_=n,this.Dirty(16))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasCustomLayout",{get:function(){var n;return this._un},set:function(n){this._un=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Separator",{get:function(){var n=this;return n.GetState(32)||d(n.gun)?n.HEt:n.gun.Separator},set:function(n){this.HEt=n,this.Dirty(32)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowBubbleSize",{get:function(){var n=this;return n.GetState(64)||d(n.gun)?n.oun:n.gun.ShowBubbleSize},set:function(n){this.oun=n,this.Dirty(64)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowCategoryName",{get:function(){var n=this;return n.GetState(128)||d(n.gun)?n.cun:n.gun.ShowCategoryName},set:function(n){this.cun=n,this.Dirty(128)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowLegendKey",{get:function(){var n=this;return n.GetState(256)||d(n.gun)?n.fun:n.gun.ShowLegendKey},set:function(n){this.fun=n,this.Dirty(256)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowPercentage",{get:function(){var n=this;return n.GetState(512)||d(n.gun)?n.lun:n.gun.ShowPercentage},set:function(n){this.lun=n,this.Dirty(512)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowDataLabelsRange",{get:function(){var n=this;return n.GetState(32768)||d(n.gun)?n.jFe:n.gun.ShowDataLabelsRange},set:function(n){this.jFe=n,this.Dirty(32768)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowSeriesName",{get:function(){var n=this;return n.GetState(1024)||d(n.gun)?n.aun:n.gun.ShowSeriesName},set:function(n){this.aun=n,this.Dirty(1024)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowValue",{get:function(){var n=this;return n.GetState(2048)||d(n.gun)?n.vun:n.gun.ShowValue},set:function(n){this.vun=n,this.Dirty(2048)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowLeaderLines",{get:function(){var n=this;return n.GetState(4096)||d(n.gun)?n.dun:n.gun.ShowLeaderLines},set:function(n){this.dun=n,this.Dirty(4096)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LeaderLines",{get:function(){var n=this;return d(n.xun)&&(n.xun=n.CreateLeaderLines()),n.xun},enumerable:!1,configurable:!0}),t.prototype.IsDirtyIncludingParent=function(t){t===P&&(t=!1);var i=this;return!(d(i.c)||!i.c.Font.IsDirtyIncludingParent(t))||(!(d(i.I5)||!i.I5.IsDirtyIncludingParent(t))||n.prototype.IsDirtyIncludingParent.call(this,t))},t.prototype.OnParentChanged=function(n){var t=this;t.gun=n,d(t.gun)||(d(t.I5)||(t.I5.ParentStateful=t.gun.Format),d(t.xun)||(t.xun.Format.ParentStateful=t.gun.LeaderLines.Format))},t.prototype.GetDefaultPosition=function(){var n=this.$tn.InnerChartType;return o.ChartUtility.IsColumnChart(n)||o.ChartUtility.IsBarChart(n)||o.ChartUtility.IsWaterfallChart(n)?o.ChartUtility.IsStackedChart(n)?2:6:o.ChartUtility.IsLineChart(n)||o.ChartUtility.IsScatterChartOrBubbleChart(n)?7:o.ChartUtility.IsPieChart(n)||o.ChartUtility.IsOfPieChart(n)?0:2},t.prototype.IsNoPosition=function(){var n=this.$tn.InnerChartType;return o.ChartUtility.IsAreaChart(n)||o.ChartUtility.IsRadarChart(n)||o.ChartUtility.Is3DChart(n)||o.ChartUtility.IsDoughnutChart(n)},t.prototype.FromOOModel=function(t){var i,u,r,e,l,s,f,h,c,a,v,b,w,g,m,p,M,y=this;y.cft=t,i=t.numFmt,d(i)||(y.E9t=i.formatCode,y.Dirty(4),y.$=!1!==i.sourceLinked,y.Dirty(8)),u=t.spPr,d(u)&&d(this.I5)||n.prototype.FromShapeProperties.call(this,u),r=t.txPr,d(r)?L(y.$tn.InnerChartType)&&(l={solidFill:{srgbClr:{val:[255,255,255]}}},y.ChartTextInternal.v0t._font.TextCharacterProperties_FromOOModel(l)):((e={}).rich=r,y.ChartTextInternal.FromOOModel(e)),s=t.layout&&t.layout.manualLayout,d(s)||(y.HasCustomLayout=s.x>0||s.y>0),f=t.dLblPos,d(f)||(y.Position=f),h=t.showBubbleSize,!d(h)&&o.ChartUtility.IsBubbleChart(y.$tn.InnerChartType)&&(y.ShowBubbleSize=h),c=t.visibility,v=(a=L(y.$tn.InnerChartType)&&c)?c.categoryName:t.showCatName,y.ShowCategoryName=!d(v)&&v,b=t.showLegendKey,y.ShowLegendKey=!d(b)&&b,w=t.showPercent,!d(w)&&o.ChartUtility.IsPieOrDoughnutChart(y.$tn.InnerChartType)&&(y.ShowPercentage=w),g=a?c.seriesName:t.showSerName,y.ShowSeriesName=!d(g)&&g,m=a?c.value:t.showVal,y.ShowValue=!d(m)&&m,y.dun=t.showLeaderLines,p=t.separator,d(p)||(y.Separator=p),M=t.delete,y.Ttn=d(M)?I:M},t.prototype.FromSJSOOModel=function(t,i){var u,r,e,l,s,f,h,a,v,b,w,g,m,p,M,y=this;y.Xnn=t,u=t.numFmt,d(u)||(y.E9t=D(u.formatCode),y.Dirty(4),y.$=S(u.sourceLinked),y.Dirty(8)),r=t.spPr,d(r)&&d(this.I5)||n.prototype.FromSJSShapeProperties.call(this,r),e=t.txPr,d(e)?O(y.$tn.InnerChartType)||j(y.$tn.InnerChartType)?(f={solidFill:{srgbClr:{val:[255,255,255]}}},y.ChartTextInternal.v0t._font.TextCharacterProperties_FromOOModel(f)):N(y.$tn.InnerChartType)&&(f={solidFill:{srgbClr:{val:[89,89,89]}}},y.ChartTextInternal.v0t._font.TextCharacterProperties_FromOOModel(f)):((s={}).rich=e,y.ChartTextInternal.FromSJSOOModel(s)),h=t.layout&&t.layout.manualLayout,d(h)||(y.HasCustomLayout=h.x&&C(h.x.val)>0||h.y&&C(h.y.val)>0),l=i?t.pos&&c.ST_DLblPos[t.pos]:t.dLblPos&&c.ST_DLblPos[t.dLblPos.val],d(l)||(y.Position=l),a=S(t.showBubbleSize&&t.showBubbleSize.val),!d(a)&&o.ChartUtility.IsBubbleChart(y.$tn.InnerChartType)&&(y.ShowBubbleSize=a),v=t.visibility,w=(b=L(y.$tn.InnerChartType)&&v)?v&&v.categoryName:t.showCatName&&t.showCatName.val,y.ShowCategoryName=S(w),y.ShowLegendKey=S(t.showLegendKey&&t.showLegendKey.val),g=t.showPercent,!d(g)&&o.ChartUtility.IsPieOrDoughnutChart(y.$tn.InnerChartType)&&(y.ShowPercentage=S(g.val)),m=b?v&&v.seriesName:t.showSerName&&t.showSerName.val,y.ShowSeriesName=S(m),p=b?v&&v.value:t.showVal&&t.showVal.val,y.ShowValue=S(p),y.dun=S(t.showLeaderLines&&t.showLeaderLines.val),M=t.separator,d(M)||(y.Separator=M.v_),y.Ttn=S(t.delete&&t.delete.val)},t.prototype.ToOOModel=function(){var t,i=this,u=i.cft||i.CreateCT_Dlbl();return(i.GetState(4)||i.GetState(8))&&(t={formatCode:i.NumberFormat},!1===i.NumberFormatLinked&&(t.sourceLinked=!1),u.numFmt=t),u.spPr=n.prototype.ToShapeProperties.call(this),i.c&&i.c.Font.IsDirtyIncludingParent()&&(u.txPr=i.c.ToOOModel().rich),i.IsNoPosition()||(u.dLblPos=i.Position),d(i.dun)||(u.showLeaderLines=i.dun),i.Ttn||(u.showBubbleSize=i.ShowBubbleSize,u.showLegendKey=i.ShowLegendKey,u.showPercent=i.ShowPercentage,L(i.$tn.InnerChartType)?u.visibility={seriesName:i.ShowSeriesName,categoryName:i.ShowCategoryName,value:i.ShowValue}:(u.showCatName=i.ShowCategoryName,u.showSerName=i.ShowSeriesName,u.showVal=i.ShowValue)),u.separator=i.Separator,u},t.prototype.ToSJSOOModel=function(){var t,i=this,u=L(i.$tn.InnerChartType),r=i.Xnn||i.CreateCT_Dlbl();return r.dLbl&&(r.dLbl=[].concat(r.dLbl)),(i.GetState(4)||i.GetState(8))&&(t={formatCode:T(i.NumberFormat)},!1===i.NumberFormatLinked&&(t.sourceLinked="0",r.numFmt=t)),r.spPr=n.prototype.ToSJSShapeProperties.call(this),i.c&&i.c.Font.IsDirtyIncludingParent(u)&&(r.txPr=i.c.ToSJSOOModel(u).rich),u||(i.IsNoPosition()||(r.dLblPos={val:c.ST_DLblPos[i.Position]}),d(i.dun)||(r.showLeaderLines={val:i.dun?"1":"0"})),i.Ttn||(u?r.visibility={seriesName:i.ShowSeriesName?"1":"0",categoryName:i.ShowCategoryName?"1":"0",value:i.ShowValue?"1":"0"}:(r.showBubbleSize={val:i.ShowBubbleSize?"1":"0"},r.showLegendKey={val:i.ShowLegendKey?"1":"0"},r.showPercent={val:i.ShowPercentage?"1":"0"},r.showCatName={val:i.ShowCategoryName?"1":"0"},r.showSerName={val:i.ShowSeriesName?"1":"0"},r.showVal={val:i.ShowValue?"1":"0"})),r.separator={v_:i.Separator},delete r.extLst,i.Xnn&&i.Xnn.extLst&&(r.extLst=i.Xnn.extLst),r},t.prototype.CreateCT_Dlbl=function(){return I},t.prototype.CreateChartText=function(){return I},t.prototype.IsPositionValid=function(n){var t=!1,i=this.$tn.InnerChartType;return o.ChartUtility.IsColumnChart(i)||o.ChartUtility.IsBarChart(i)||o.ChartUtility.IsWaterfallChart(i)?t=o.ChartUtility.IsStackedChart(i)?2===n||3===n||4===n:2===n||3===n||4===n||6===n:o.ChartUtility.IsLineChart(i)||o.ChartUtility.IsScatterChartOrBubbleChart(i)?t=2===n||5===n||7===n||8===n||1===n:o.ChartUtility.IsPieChart(i)&&(t=2===n||4===n||6===n||0===n),t},t.prototype.UpdatePosition=function(){this.u_=this.GetDefaultPosition()},t.prototype.ResetByChartType=function(){this.UpdatePosition()},Object.defineProperty(t.prototype,"Chart",{get:function(){return this.$tn.SeriesCollection.Parent},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChartText",{get:function(){return this.c},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChartTextInternal",{get:function(){var n=this;return d(n.c)&&(n.c=n.CreateChartText()),n.c},enumerable:!1,configurable:!0}),t.prototype.CreateLeaderLines=function(){return I},Object.defineProperty(t.prototype,"HasDataLabelsRange",{get:function(){var n=this.c;return!d(n)&&(!d(n.TextRefer)&&n.TextRefer.length>0||!d(n.GBe)&&n.GBe.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Series",{get:function(){return this.$tn},enumerable:!1,configurable:!0}),t}(h.StatefulChartElementBase),t.DataLabelBase=$,Y=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return tn(t,n),t.prototype.Rwo=function(){var t=n.prototype.Rwo.call(this);return t.Color.ColorType=0,t},t}(a),J=function(n){function t(){return null!==n&&n.apply(this,arguments)||this}return tn(t,n),t.prototype.Rwo=function(){var t=n.prototype.Rwo.call(this);return t.Color.ColorType=0,t},t.prototype.tNl=function(){var n=this;return new Y(n.utn,d(n.Nin)?I:n.Nin.LineInternal)},t.prototype.rNl=function(){n.prototype.rNl.call(this),this.Fill.Color.ColorType=0},t}(l.ChartFormat),K=function(n){function t(t,i){var u=n.call(this,t.Chart.Parent,i)||this;return L(t.$tn.InnerChartType)&&u.Font.Color.setColor(t.$tn.Worksheet,"rgb(255,255,255)"),u}return tn(t,n),t}(w),Q=function(n){function t(t){var i=n.call(this,t,I)||this,u=i;return u.wun={},u.$tn=t,u.c=u.CreateChartText(),u.vun=!1,u.dun=!1,i}return tn(t,n),t.prototype.CreateFormat=function(){return new J(this.Chart)},t.prototype.CreateChartText=function(){return new K(this,this.Chart.ChartArea.Font)},Object.defineProperty(t.prototype,"Parent",{get:function(){return this.$tn},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AutoText",{get:function(){return this.bun},set:function(n){var t,i,u;for(t=0,i=this.Count;t<i;t++)(u=this.GetLabel(t)).AutoText=n;this.bun=n},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.$tn.PointsCount},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NumberFormat",{get:function(){return this.GetNumberFormat()},set:function(t){n.prototype.setNumberFormat.call(this,t)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NumberFormatLinked",{get:function(){return n.prototype.getNumberFormatLinked.call(this)},set:function(t){t||this.E9t!==_||(this.E9t=this.GetFirstNumberFormat(),this.Dirty(4)),n.prototype.setNumberFormatLinked.call(this,t)},enumerable:!1,configurable:!0}),t.prototype.Get=function(n){return this.GetLabel(n)},t.prototype.IsDirtyIncludingParent=function(t){return t===P&&(t=!1),!(d(this.xun)||!this.xun.Format.IsDirtyIncludingParent(t))||n.prototype.IsDirtyIncludingParent.call(this,t)},t.prototype.CreateLeaderLines=function(){return new q(this)},t.prototype.GetLabel=function(n){var t,i=this;return n<0?I:((t=i.wun[n])||(t=new nn(i.$tn,n),i.wun[n]=t),t)},t.prototype.UpdateDeleted=function(n){var t,i,u=this.wun;for(t in u)i=u[t],d(i)||(i.Deleted=n)},t.prototype.ResetByChartType=function(){var t,i,u;for(n.prototype.ResetByChartType.call(this),t=0,i=this.Count;t<i;t++)(u=this.GetLabel(t)).IsDirtyIncludingParent()&&u.ResetByChartType()},t.prototype.IsShow=function(){return this.ShowValue||this.ShowDataLabelsRange||this.ShowCategoryName||this.ShowSeriesName||this.ShowPercentage||this.ShowBubbleSize},t.prototype.GetNumberFormat=function(){var n=this,t=n.E9t;return n.GetState(4)||(n.NumberFormatLinked?t=L(n.$tn.InnerChartType)&&!d(n.$tn.ValuesRefers)&&n.$tn.ValuesRefers.length>0?n.GetFirstNumberFormat():_:d(n.gun)||(t=n.gun.NumberFormat)),t||_},t.prototype.GetFirstNumberFormat=function(n){var t,i,u,r,e=n?this.$tn.XValuesRefers:this.$tn.ValuesRefers;return e&&0!==e.length?(t=e[0],i=this.$tn.Worksheet.Mnn(t.WorksheetName),u=I,d(i)||(r=i.htn(t.Row,t.Column),d(r)||(u=r.FormatCode)),u||_):_},t.prototype.ToOOModel=function(){var t,i,u,r,e=this,l=n.prototype.ToOOModel.call(this);for(u in e.ShowLeaderLines&&(l.extLst={ext:[]},t={uri:R},l.extLst.ext.push(t),t.showLeaderLines=!0,l.showLeaderLines=!0,d(e.xun)?delete l.leaderLines:l.leaderLines=e.xun.ToOOModel()),i=[],e.wun)r=e.wun[u],!d(r)&&(e.HasDataLabelsRange||r.Deleted||r.IsDirtyIncludingParent())&&i.push(r.ToOOModel());return i.length>0&&(l.dLbl=i),l},t.prototype.ToSJSOOModel=function(){var t,i,u,r,e=this,l=n.prototype.ToSJSOOModel.call(this);for(u in L(e.$tn.InnerChartType)||(l.extLst={ext:[]},t={uri:R,r_:[68]},l.extLst.ext.push(t),e.ShowDataLabelsRange&&(t.showDataLabelsRange={val:"1"}),t.showLeaderLines={val:e.ShowLeaderLines?"1":"0"},d(e.xun)?delete l.leaderLines:l.leaderLines=e.xun.ToSJSOOModel()),i=[],e.wun)r=e.wun[u],!d(r)&&(e.HasDataLabelsRange||r.Deleted||r.IsDirtyIncludingParent())&&i.push(r.ToSJSOOModel());return i.length>0&&(l.dLbl=i),l},t.prototype.FromOOModel=function(t){var i,u,r,e,l,s,o,f,h,c=this;if(n.prototype.FromOOModel.call(this,t),c.wun={},i=t.dLbl,u=t.showLeaderLines,r=t.extLst&&t.extLst.ext&&t.extLst.ext[0],d(u)||(c.ShowLeaderLines=u),!d(i))for(e=0,l=i;e<l.length;e++)(s=l[e]).layout&&s.layout.manualLayout&&r&&r.showLeaderLines&&(c.ShowLeaderLines=!0),o=c.GetLabel(s.idx),d(o)||o.FromOOModel(s);f=t.leaderLines||r&&r.leaderLines,c.ShowLeaderLines&&!d(f)?(d(c.xun)&&(c.xun=c.CreateLeaderLines()),c.xun.FromOOModel(f)):c.xun=I,(h=t.numFmt)?(h.formatCode&&(c.E9t=h.formatCode),c.$=!!d(h.sourceLinked)||h.sourceLinked):(c.E9t=_,c.$=!0)},t.prototype.FromSJSOOModel=function(t,i){var u,r,e,l,s,o,f,h,c,a,v,b,w=this;if(n.prototype.FromSJSOOModel.call(this,t,i),w.wun={},u=[].concat(t.dLbl),r=t.showLeaderLines,d(r)||(w.ShowLeaderLines=S(r.val)),(s=[].concat(t.extLst&&t.extLst.ext)).forEach((function(n){n&&(d(n.showLeaderLines)||(l=S(n.showLeaderLines.val)),d(n.leaderLines)||(e=n.leaderLines))})),!d(u))for(o=0,f=u;o<f.length;o++)h=f[o],d(h)||(h.layout&&h.layout.manualLayout&&l&&(w.ShowLeaderLines=!0),c=h.idx&&k(h.idx.val),d(c)||(a=w.GetLabel(c),d(a)||a.FromSJSOOModel(h)));v=t.leaderLines||e,w.ShowLeaderLines&&!d(v)?(d(w.xun)&&(w.xun=w.CreateLeaderLines()),w.xun.FromSJSOOModel(v)):w.xun=I,(b=t.numFmt)?(b.formatCode&&(w.E9t=D(b.formatCode)),w.$=S(b.sourceLinked,!0)):(w.E9t=_,w.$=!0)},t.prototype.CreateCT_Dlbl=function(){return{dLbl:[]}},t.prototype.Nun=function(n){var t=this;t.Separator=n.Separator,t.ShowBubbleSize=n.ShowBubbleSize,t.ShowCategoryName=n.ShowCategoryName,t.ShowLegendKey=n.ShowLegendKey,t.ShowPercentage=n.ShowPercentage,t.ShowSeriesName=n.ShowSeriesName,t.ShowDataLabelsRange=n.ShowDataLabelsRange,t.ChartText.Formula=n.ChartText.Formula,t.ShowValue=n.ShowValue,t.ShowLeaderLines=n.ShowLeaderLines,t.Position=n.Positio