text: !function(e){var t={};function o(n){if(t[n])return t[n].exports;var a=t[n]={i:n,l:!1,exports:{}};return e[n].call(a.exports,a,a.exports,o),a.l=!0,a.exports}o.m=e,o.c=t,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)o.d(n,a,function(t){return e[t]}.bind(null,a));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="",o(o.s=310)}({122:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sleep=t.hiddenSheet=t.mapTargetRangeValue=t.calculateIncrease=t.getLinePartialRange=t.getPartialRange=t.formatInput=void 0;var n=o(48);t.formatInput=function(e,t){var o=Number(e);return(isNaN(o)||o<=0||o>t||String(e).indexOf(".")>=0)&&(console.log("please input a integer"),o=t-1),o},t.getPartialRange=function(e,t,o){return 1===o?e.getCell(n.CommonField.totalRowCount-t-1,0).getAbsoluteResizedRange(t,1):e.getCell(0,0).getAbsoluteResizedRange(t,1)},t.getLinePartialRange=function(e,t,o){return e.getAbsoluteResizedRange(t+1,o)},t.calculateIncrease=function(e,t,o){e.length!=t.length&&console.error("Error! current data length:"+e.length+", next data length"+t.length+".");for(var n=[],a=0;a<e.length;a++){var r=(t[a][0]-e[a][0])/o;n[a]=r}return n},t.mapTargetRangeValue=function(e,t){for(var o=[],n=e.values,a=0;a<n.length;++a){var r=n[a][0],l=t.values[r][0];o.push([l])}return o},t.hiddenSheet=function(e){e.set({visibility:"Hidden"})},t.sleep=function(e){for(var t=(new Date).getTime(),o=0;o<1e7&&!((new Date).getTime()-t>e);o++);}},123:function(e,t,o){"use strict";var n=this&&this.__awaiter||function(e,t,o,n){return new(o||(o=Promise))((function(a,r){function l(e){try{s(n.next(e))}catch(e){r(e)}}function i(e){try{s(n.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(l,i)}s((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var o,n,a,r,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(r){return function(i){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&r[0]?n.return:r[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,r[1])).done)return a;switch(n=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,n=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(a=l.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){l=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){l.label=r[1];break}if(6===r[0]&&l.label<a[1]){l.label=a[1],a=r;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(r);break}a[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],n=0}finally{o=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayBarOrColumnChart=t.CreateBarOrColumnChart=void 0;var r=o(48),l=o(312),i=o(122);t.CreateBarOrColumnChart=function(e){return n(this,void 0,void 0,(function(){var t,o=this;return a(this,(function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,Excel.run((function(t){return n(o,void 0,void 0,(function(){var o,n,l,s,u,c,m,d,h,C,f,g,b,y,p,v,F,T,w,I,R,x,N,k,S,B,O,_;return a(this,(function(a){switch(a.label){case 0:return o=t.workbook.getSelectedRange(),(n=o.getTables(!1)).load("items"),[4,t.sync()];case 1:return a.sent(),l=n.items[0],s=t.workbook.worksheets.getActiveWorksheet(),r.CommonField.activeTableId=l.id,u=s.tables.getItem(r.CommonField.activeTableId),[4,t.sync()];case 2:return a.sent(),(c=u.getRange()).load("rowCount"),c.load("columnCount"),[4,t.sync()];case 3:return a.sent(),r.CommonField.totalColumnCount=c.columnCount,r.CommonField.totalRowCount=c.rowCount,(m=t.workbook.worksheets.getItemOrNullObject(r.CommonField.toolSheetName)).load(),[4,t.sync()];case 4:return a.sent(),"{}"===JSON.stringify(m)?[3,6]:(d=s.charts.getItemOrNullObject(r.BarChartField.barChartName),h=s.charts.getItemOrNullObject(r.ColumnChartField.columnChartName),d.load(),h.load(),[4,t.sync()]);case 5:a.sent(),"{}"!==JSON.stringify(d)&&d.delete(),"{}"!==JSON.stringify(h)&&h.delete(),m.delete(),a.label=6;case 6:return m=t.workbook.worksheets.add(r.CommonField.toolSheetName),i.hiddenSheet(m),[4,t.sync()];case 7:return a.sent(),C=m.getCell(0,0).getAbsoluteResizedRange(r.CommonField.totalRowCount,4),(f=m.tables.add(C,!0)).set({name:r.CommonField.toolTableName}),f.columns.getItemAt(r.ToolTableField.ToolTableColumnIndex.category).set({name:r.ToolTableField.ToolTableColumnName.category}),f.columns.getItemAt(r.ToolTableField.ToolTableColumnIndex.color).set({name:r.ToolTableField.ToolTableColumnName.color}),f.columns.getItemAt(r.ToolTableField.ToolTableColumnIndex.map).set({name:r.ToolTableField.ToolTableColumnName.map}),g=f.columns.getItem(r.ToolTableField.ToolTableColumnName.category).getDataBodyRange(),b=f.columns.getItemAt(r.ToolTableField.ToolTableColumnIndex.value).getRange(),y=f.columns.getItemAt(r.ToolTableField.ToolTableColumnIndex.value).getDataBodyRange(),p=f.columns.getItem(r.ToolTableField.ToolTableColumnName.color).getDataBodyRange(),v=f.columns.getItem(r.ToolTableField.ToolTableColumnName.map).getDataBodyRange(),g.copyFrom(u.columns.getItemAt(0).getDataBodyRange()),b.copyFrom(u.columns.getItemAt(1).getRange()),p.load("values"),[4,t.sync()];case 8:for(a.sent(),F=[],_=0;_<r.CommonField.totalRowCount-1;++_)F.push([r.CommonField.colorList[_%r.CommonField.colorList.length]]);return p.values=F,v.load("values"),[4,t.sync()];case 9:for(a.sent(),T=[],_=1;_<r.CommonField.totalRowCount;++_)T.push([_]);return v.values=T,w=document.getElementById("PointItems"),r.CommonField.inputPointItems=w.value,I=document.getElementById("orientation"),r.CommonField.orientation=Number(I.value),r.CommonField.pointItemsCount=i.formatInput(r.CommonField.inputPointItems,r.CommonField.totalRowCount),R=i.getPartialRange(y,r.CommonField.pointItemsCount,r.CommonField.orientation),x=i.getPartialRange(g,r.CommonField.pointItemsCount,r.CommonField.orientation),f.sort.apply([{key:1,ascending:!0}],!0),e===r.BarChartField.barChartFlag?(N=s.charts.add(Excel.ChartType.barClustered,R)).set({name:r.BarChartField.barChartName,height:r.CommonField.chartHeight,width:r.CommonField.chartWidth,left:r.CommonField.chartLeft,top:r.CommonField.chartTop}):(N=s.charts.add(Excel.ChartType.columnClustered,R)).set({name:r.ColumnChartField.columnChartName,height:r.CommonField.chartHeight,width:r.CommonField.chartWidth,left:r.CommonField.chartLeft,top:r.CommonField.chartTop}),(k=b.getCell(0,0)).load("text"),[4,t.sync()];case 10:return a.sent(),N.title.text=k.text[0][0],N.title.format.font.set({size:r.CommonField.fontSize_Title}),N.legend.set({visible:!1}),(S=N.axes.getItem(Excel.ChartAxisType.category)).setCategoryNames(x),S.set({visible:!0}),S.format.font.set({size:r.CommonField.fontSize_CategoryName}),N.axes.getItem(Excel.ChartAxisType.value).format.font.set({size:r.CommonField.fontSize_AxisValue}),(B=N.series.getItemAt(0)).set({hasDataLabels:!0,gapWidth:30}),B.dataLabels.set({showCategoryName:!1,numberFormat:"#,##0"}),B.dataLabels.format.font.set({size:r.CommonField.fontSize_DataLabel}),B.points.load(),[4,t.sync()];case 11:return a.sent(),p.load("values"),[4,t.sync()];case 12:for(a.sent(),O=p.values,_=0;_<B.points.count;_++)1===r.CommonField.orientation?B.points.getItemAt(_).format.fill.setSolidColor(O[r.CommonField.totalRowCount-r.CommonField.pointItemsCount-1+_][0]):B.points.getItemAt(_).format.fill.setSolidColor(O[_][0]);return B.points.load(),[4,t.sync()];case 13:return a.sent(),[2]}}))}))}))];case 1:return l.sent(),[3,3];case 2:return t=l.sent(),console.error(t),[3,3];case 3:return[2]}}))}))},t.PlayBarOrColumnChart=function(e){return n(this,void 0,void 0,(function(){var t,o=this;return a(this,(function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,Excel.run((function(t){return n(o,void 0,void 0,(function(){var o,n,s,u,c,m,d,h,C,f,g,b,y,p,v,F,T,w,I,R,x,N,k,S,B,O,_,P,A,L;return a(this,(function(a){switch(a.label){case 0:return console.log(r.CommonField.inputPointItems),console.log(r.CommonField.orientation),console.log(r.CommonField.pointItemsCount),o=t.workbook.worksheets.getActiveWorksheet(),n=o.tables.getItem(r.CommonField.activeTableId),s=t.workbook.worksheets.getItem(r.CommonField.toolSheetName),u=s.tables.getItem(r.CommonField.toolTableName),c=u.columns.getItemAt(r.ToolTableField.ToolTableColumnIndex.category).getDataBodyRange(),m=u.columns.getItemAt(r.ToolTableField.ToolTableColumnIndex.value).getHeaderRowRange(),d=u.columns.getItemAt(r.ToolTableField.ToolTableColumnIndex.value).getDataBodyRange(),h=u.columns.getItem(r.ToolTableField.ToolTableColumnName.map).getDataBodyRange(),C=u.columns.getItem(r.ToolTableField.ToolTableColumnName.color).getDataBodyRange(),f=e==r.BarChartField.barChartFlag?o.charts.getItem(r.BarChartField.barChartName):o.charts.getItem(r.ColumnChartField.columnChartName),c.load("values"),d.load("values"),h.load("values"),C.load("values"),[4,t.sync()];case 1:for(a.sent(),g=[],T=0;T<r.CommonField.totalRowCount-1;++T)b=c.values[T][0],y=d.values[T][0],p=h.values[T][0],v=C.values[T][0],F=new l.Country(b,y,p,0,v),g.push(F);T=2,a.label=2;case 2:return T<r.CommonField.totalColumnCount?(w=n.columns.getItemAt(T).getHeaderRowRange(),(I=n.columns.getItemAt(T).getRange()).load("values"),d.load("values"),m.load("text"),h.load("values"),[4,t.sync()]):[3,16];case 3:for(a.sent(),R=i.mapTargetRangeValue(h,I),x=i.calculateIncrease(d.values,R,r.CommonField.splitIncreasement),_=0;_<r.CommonField.totalRowCount-1;++_)g[_].setIncreasement(x[_]);N=1,a.label=4;case 4:return N<=r.CommonField.splitIncreasement?N!==r.CommonField.splitIncreasement?[3,6]:(h.load("values"),[4,t.sync()]):[3,12];case 5:for(a.sent(),R=i.mapTargetRangeValue(h,I),_=0;_<r.CommonField.totalRowCount-1;++_)g[_].setValue(R[_][0]);return m.copyFrom(w),[3,7];case 6:for(_=0;_<r.CommonField.totalRowCount-1;++_)g[_].updateIncrease();a.label=7;case 7:for(g.sort((function(e,t){return e.value-t.value})),k=[],S=[],B=[],O=[],_=0;_<r.CommonField.totalRowCount-1;++_)k.push([g[_].name]),S.push([g[_].value]),B.push([g[_].mapColumn]),O.push([g[_].color]);return c.values=k,d.values=S,h.values=B,C.values=O,[4,t.sync()];case 8:return a.sent(),(P=f.series.getItemAt(0)).load("points"),C.load("values"),[4,t.sync()];case 9:for(a.sent(),A=C.values,L=0;L<P.points.count;L++)1===r.CommonField.orientation?P.points.getItemAt(L).format.fill.setSolidColor(A[r.CommonField.totalRowCount-r.CommonField.pointItemsCount-1+L][0]):P.points.getItemAt(L).format.fill.setSolidColor(A[L][0]);return P.points.load(),[4,t.sync()];case 10:a.sent(),a.label=11;case 11:return N++,[3,4];case 12:return m.load("text"),[4,t.sync()];case 13:return a.sent(),f.title.text=m.text[0][0],[4,t.sync()];case 14:a.sent(),a.label=15;case 15:return++T,[3,2];case 16:return[4,t.sync()];case 17:return a.sent(),[2]}}))}))}))];case 1:return s.sent(),[3,3];case 2:return t=s.sent(),console.error(t),[3,3];case 3:return[2]}}))}))}},310:function(e,t,o){"use strict";var n=this&&this.__awaiter||function(e,t,o,n){return new(o||(o=Promise))((function(a,r){function l(e){try{s(n.next(e))}catch(e){r(e)}}function i(e){try{s(n.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(l,i)}s((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var o,n,a,r,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(r){return function(i){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&r[0]?n.return:r[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,r[1])).done)return a;switch(n=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,n=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(a=l.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){l=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){l.label=r[1];break}if(6===r[0]&&l.label<a[1]){l.label=a[1],a=r;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(r);break}a[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],n=0}finally{o=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.test2=t.test1=void 0;var r=o(48),l=o(122),i=o(311),s=o(313);Office.onReady((function(e){e.host===Office.HostType.Excel&&(document.getElementById("sideload-msg").style.display="none",document.getElementById("app-body").style.display="flex",document.getElementById("createBarChart").onclick=i.CreateBarChart,document.getElementById("playBarChart").onclick=i.PlayBarChart,document.getElementById("createColumnChart").onclick=s.CreateColumnChart,document.getElementById("playColumnChart").onclick=s.PlayColumnChart)})),t.test1=function(){return n(this,void 0,void 0,(function(){var e,t=this;return a(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,Excel.run((function(e){return n(t,void 0,void 0,(function(){var t,o,n,i,s,u,c,m,d,h,C,f,g,b,y,p,v,F,T,w,I,R;return a(this,(function(a){switch(a.label){case 0:return t=e.workbook.getSelectedRange(),(o=t.getTables(!1)).load("items"),[4,e.sync()];case 1:return a.sent(),n=o.items[0],i=e.workbook.worksheets.getActiveWorksheet(),r.CommonField.activeTableId=n.id,s=i.tables.getItem(r.CommonField.activeTableId),[4,e.sync()];case 2:return a.sent(),(u=s.getRange()).load("rowCount"),u.load("columnCount"),[4,e.sync()];case 3:return a.sent(),r.CommonField.totalColumnCount=u.columnCount,r.CommonField.totalRowCount=u.rowCount,(c=e.workbook.worksheets.getItemOrNullObject(r.CommonField.toolSheetName)).load(),[4,e.sync()];case 4:return a.sent(),"{}"===JSON.stringify(c)?[3,6]:(m=i.charts.getItemOrNullObject(r.LineChartField.lineChartName),d=i.charts.getItemOrNullObject(r.BarChartField.barChartName),h=i.charts.getItemOrNullObject(r.ColumnChartField.columnChartName),m.load(),d.load(),h.load(),[4,e.sync()]);case 5:a.sent(),"{}"!==JSON.stringify(m)&&m.delete(),"{}"!==JSON.stringify(d)&&d.delete(),"{}"!==JSON.stringify(h)&&h.delete(),c.delete(),a.label=6;case 6:return c=e.workbook.worksheets.add(r.CommonField.toolSheetName),C=c.getCell(0,0).getAbsoluteResizedRange(r.CommonField.totalRowCount,r.CommonField.totalColumnCount),(f=c.tables.add(C,!0)).set({name:r.CommonField.toolTableName}),f.columns.getItemAt(0).getRange().copyFrom(s.columns.getItemAt(0).getRange()),f.columns.load("count"),[4,e.sync()];case 7:for(a.sent(),g=1;g<f.columns.count;++g)f.columns.getItemAt(g).getRange().copyFrom(s.columns.getItemAt(g).getRange());return b=document.getElementById("PointItems"),r.CommonField.inputPointItems=b.value,y=document.getElementById("orientation"),r.CommonField.orientation=Number(y.value),r.CommonField.pointItemsCount=l.formatInput(r.CommonField.inputPointItems,r.CommonField.totalRowCount),p=l.getLinePartialRange(f.getRange(),r.CommonField.pointItemsCount,4),v=f.getRange().getCell(0,1).getAbsoluteResizedRange(1,3),1==r.CommonField.orientation?f.sort.apply([{key:1,ascending:!1}],!0):f.sort.apply([{key:1,ascending:!0}],!0),F=i.charts.add(Excel.ChartType.line,p,"Rows"),T=r.CommonField.chartHeight-50,F.set({name:r.LineChartField.lineChartName,height:T,width:r.CommonField.chartWidth,left:r.CommonField.chartLeft,top:r.CommonField.chartTop}),F.axes.getItem(Excel.ChartAxisType.category).setCategoryNames(v),w={showSeriesName:!0,showValue:!0,numberFormat:"#,##0"},I={showSeriesName:!1,showValue:!1},r.LineChartField.linePointSetLabel={dataLabel:w},r.LineChartField.linePointUnsetLabel={dataLabel:I},p.load("rowCount"),[4,e.sync()];case 8:return a.sent(),R=p.rowCount,console.log(R),F.title.text="LineChart",[4,e.sync()];case 9:return a.sent(),[2]}}))}))}))];case 1:return o.sent(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},t.test2=function(){return n(this,void 0,void 0,(function(){var e,t=this;return a(this,(function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,Excel.run((function(e){return n(t,void 0,void 0,(function(){var t,o,n,i,s,u,c,m,d;return a(this,(function(a){switch(a.label){case 0:return t=e.workbook.worksheets.getActiveWorksheet(),o=e.workbook.worksheets.getItem(r.CommonField.toolSheetName),n=o.tables.getItem(r.CommonField.toolTableName),i=t.charts.getItem(r.LineChartField.lineChartName),s=i.axes.getItem(Excel.ChartAxisType.category),(u=n.getRange().getCell(0,0)).load(),[4,e.sync()];case 1:a.sent(),c=4,a.label=2;case 2:return c<r.CommonField.totalColumnCount?(u=n.getRange().getCell(0,c-3),(m=l.getLinePartialRange(u,r.CommonField.pointItemsCount,3)).load("address"),[4,e.sync()]):[3,6];case 3:return a.sent(),console.log(m.address),1===r.CommonField.orientation?n.sort.apply([{key:c,ascending:!1}],!0):n.sort.apply([{key:c,ascending:!0}],!0),i.setData(m,"Rows"),d=m.getCell(0,1).getAbsoluteResizedRange(1,3),s.setCategoryNames(d),[4,e.sync()];case 4:a.sent(),a.label=5;case 5:return++c,[3,2];case 6:return[2]}}))}))}))];case 1:return o.sent(),[3,3];case 2:return e=o.sent(),console.error(e),[3,3];case 3:return[2]}}))}))}},311:function(e,t,o){"use strict";var n=this&&this.__awaiter||function(e,t,o,n){return new(o||(o=Promise))((function(a,r){function l(e){try{s(n.next(e))}catch(e){r(e)}}function i(e){try{s(n.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(l,i)}s((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var o,n,a,r,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(r){return function(i){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&r[0]?n.return:r[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,r[1])).done)return a;switch(n=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,n=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(a=l.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){l=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){l.label=r[1];break}if(6===r[0]&&l.label<a[1]){l.label=a[1],a=r;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(r);break}a[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],n=0}finally{o=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayBarChart=t.CreateBarChart=void 0;var r=o(48),l=o(123);t.CreateBarChart=function(){return n(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,l.CreateBarOrColumnChart(r.BarChartField.barChartFlag)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},t.PlayBarChart=function(){return n(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,l.PlayBarOrColumnChart(r.BarChartField.barChartFlag)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error(e),[3,3];case 3:return[2]}}))}))}},312:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Country=void 0;var n=function(){function e(e,t,o,n,a){this.name=e,this.value=t,this.mapColumn=o,this.increasement=n,this.color=a}return e.prototype.setValue=function(e){this.value=e},e.prototype.setIncreasement=function(e){this.increasement=e},e.prototype.setColor=function(e){this.color=e},e.prototype.updateIncrease=function(){this.value=this.value+this.increasement},e}();t.Country=n},313:function(e,t,o){"use strict";var n=this&&this.__awaiter||function(e,t,o,n){return new(o||(o=Promise))((function(a,r){function l(e){try{s(n.next(e))}catch(e){r(e)}}function i(e){try{s(n.throw(e))}catch(e){r(e)}}function s(e){var t;e.done?a(e.value):(t=e.value,t instanceof o?t:new o((function(e){e(t)}))).then(l,i)}s((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var o,n,a,r,l={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return r={next:i(0),throw:i(1),return:i(2)},"function"==typeof Symbol&&(r[Symbol.iterator]=function(){return this}),r;function i(r){return function(i){return function(r){if(o)throw new TypeError("Generator is already executing.");for(;l;)try{if(o=1,n&&(a=2&r[0]?n.return:r[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,r[1])).done)return a;switch(n=0,a&&(r=[2&r[0],a.value]),r[0]){case 0:case 1:a=r;break;case 4:return l.label++,{value:r[1],done:!1};case 5:l.label++,n=r[1],r=[0];continue;case 7:r=l.ops.pop(),l.trys.pop();continue;default:if(!(a=l.trys,(a=a.length>0&&a[a.length-1])||6!==r[0]&&2!==r[0])){l=0;continue}if(3===r[0]&&(!a||r[1]>a[0]&&r[1]<a[3])){l.label=r[1];break}if(6===r[0]&&l.label<a[1]){l.label=a[1],a=r;break}if(a&&l.label<a[2]){l.label=a[2],l.ops.push(r);break}a[2]&&l.ops.pop(),l.trys.pop();continue}r=t.call(e,l)}catch(e){r=[6,e],n=0}finally{o=a=0}if(5&r[0])throw r[1];return{value:r[0]?r[1]:void 0,done:!0}}([r,i])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.PlayColumnChart=t.CreateColumnChart=void 0;var r=o(48),l=o(123);t.CreateColumnChart=function(){return n(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,l.CreateBarOrColumnChart(r.ColumnChartField.columnChartFlag)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error(e),[3,3];case 3:return[2]}}))}))},t.PlayColumnChart=function(){return n(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,l.PlayBarOrColumnChart(r.ColumnChartField.columnChartFlag)];case 1:return t.sent(),[3,3];case 2:return e=t.sent(),console.error(e),[3,3];case 3:return[2]}}))}))}},48:function(e,t,o){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ToolTableField=t.ColumnChartField=t.BarChartField=t.LineChartField=t.CommonField=void 0,function(e){e.chartWidth=750,e.chartHeight=550,e.chartLeft=150,e.chartTop=50,e.splitIncreasement=2,e.colorList=["#afc97a","#cd7371","#729aca","#b65708","#276a7c","#4d3b62","#5f7530","#772c2a","#2c4d75","#f79646","#4bacc6","#8064a2","#9bbb59","#c0504d","#4f81bd"],e.fontSize_Title=28,e.fontSize_CategoryName=13,e.fontSize_AxisValue=11,e.fontSize_DataLabel=13,e.toolSheetName="toolSheet9527",e.toolTableName="toolTable9527"}(t.CommonField||(t.CommonField={})),function(e){e.lineChartName="LineChartName9527"}(t.LineChartField||(t.LineChartField={})),function(e){e.barChartName="BarChartName9527",e.barChartFlag=1}(t.BarChartField||(t.BarChartField={})),function(e){e.columnChartName="ColumnChartName9527",e.columnChartFlag=2}(t.ColumnChartField||(t.ColumnChartField={})),function(e){!function(e){e[e.category=0]="category",e[e.value=1]="value",e[e.color=2]="color",e[e.map=3]="map"}(e.ToolTableColumnIndex||(e.ToolTableColumnIndex={})),function(e){e.category="categoryColumn",e.color="colorColumn",e.map="mapColumn"}(e.ToolTableColumnName||(e.ToolTableColumnName={}))}(t.ToolTableField||(t.ToolTableField={}))}});
  //# sourceMappingURL=taskpane.js.map