/* PptxGenJS 3.12.0 @ 2023-03-20T03:12:27.629Z */ var PptxGenJS=function(){"use strict";function T(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var D=T(JSZip),y=function(){return(y=Object.assign||function(e){for(var t,a=1,A=arguments.length;al[0]&&t[1]/g,">").replace(/"/g,""").replace(/'/g,"'")}function M(e){return"number"==typeof e&&100").concat(t,""):"")}function U(e){var t="solid",a="",A="",o="";return e&&("string"==typeof e?a=e:(e.type&&(t=e.type),e.color&&(a=e.color),e.alpha&&(A+='')),e.transparency&&(A+=''))),o+="solid"===t?"".concat(z(a,A),""):""),o}function g(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function be(e){if(e&&"object"==typeof e)return"outer"!==e.type&&"inner"!==e.type&&"none"!==e.type&&(console.warn("Warning: shadow.type options are `outer`, `inner` or `none`."),e.type="outer"),e.angle&&((isNaN(Number(e.angle))||e.angle<0||359 ".concat(JSON.stringify(i))),l.push(i),i=[]),0n&&(r.push(t),t=[],a=""),t.push(e),a+=e.text.toString()}),0=r&&(r=e._lineHeight)}),s maxH) => ".concat((p/F).toFixed(2)," + ").concat((c._lineHeight/F).toFixed(2)," > ").concat(s/F)),console.log("|-----------------------------------------------------------------------|\n\n")),0a&&(a=e._lineHeight)}),b.rows.push(t),p+=a}),i=o[n]),c._lines.shift());Array.isArray(i.text)&&(c?i.text=i.text.concat(c):0===i.text.length&&(i.text=i.text.concat({_type:N.tablecell,text:""}))),n===d.length-1&&(p+=r),n=n \n'),r.file("_rels/.rels",'\n'),r.file("docProps/app.xml",'Microsoft Macintosh Excel0falseWorksheets1Sheet1falsefalsefalse16.0300\n'),r.file("docProps/core.xml",'PptxGenJSPptxGenJS'+(new Date).toISOString()+''+(new Date).toISOString()+""),r.file("xl/_rels/workbook.xml.rels",''),r.file("xl/styles.xml",'\n'),r.file("xl/theme/theme1.xml",''),r.file("xl/workbook.xml",'\n'),r.file("xl/worksheets/_rels/sheet1.xml.rels",'\n'),''),s=(m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D?i+=''):m.opts._type===v.SCATTER?i+=''):i=c?(A=g.length,g[0].labels.forEach(function(e){return A+=e.filter(function(e){return e&&""!==e}).length}),i+'')+""):(e=g.length+g[0].labels.length*g[0].labels[0].length+g[0].labels.length,o=g.length+g[0].labels.length*g[0].labels[0].length+1,i+'')+''),m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D?g.forEach(function(e,t){0===t?i+="X-Axis":i=(i+="".concat(I(e.name||"Y-Axis".concat(t)),""))+"".concat(I("Size".concat(t)),"")}):g.forEach(function(e){i+="".concat(I((e.name||" ").replace("X-Axis","X-Values")),"")}),m.opts._type!==v.BUBBLE&&m.opts._type!==v.BUBBLE3D&&m.opts._type!==v.SCATTER&&g[0].labels.slice().reverse().forEach(function(e){e.filter(function(e){return e&&""!==e}).forEach(function(e){i+="".concat(I(e),"")})}),i+="\n",r.file("xl/sharedStrings.xml",i),''),p=(m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D?(s=(s+=''))+''),n=1,g.forEach(function(e,t){0===t?s+=''):(s+=''),n++,s+=''))})):m.opts._type===v.SCATTER?(s=(s+='
'))+''),g.forEach(function(e,t){s+='')})):(s=(s+='
'))+''),g[0].labels.forEach(function(e,t){s+='')}),g.forEach(function(e,t){s+='')})),s=(s+="")+''+"
",r.file("xl/tables/table1.xml",s),'');if(p+='',m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D?p+=''):m.opts._type===v.SCATTER?p+=''):p+=''),p=p+''+'',m.opts._type===v.BUBBLE||m.opts._type===v.BUBBLE3D){for(var p=(p+="")+'')+'0',d=1;d').concat(d,"");p+="",g[0].values.forEach(function(e,t){p=(p+=''))+'').concat(e,"");for(var a=2,A=1;A').concat(g[A].values[t]||"",""))+'').concat(g[A].sizes[t]||"",""),a++;p+=""})}else if(m.opts._type===v.SCATTER){p=(p+="")+'');for(d=0;d').concat(d,"");p+="",g[0].values.forEach(function(e,t){p=(p+=''))+'').concat(e,"");for(var a=1;a').concat(g[a].values[t]||0===g[a].values[t]?g[a].values[t]:"","");p+=""})}else if(p+="",c){p+='');for(d=0;d0');for(d=g[0].labels.length-1;d').concat(d,"");p+="";for(var f=g.length,u=g[0].labels[0].length,h=g[0].labels.length,d=0;d');var A=f,o=g[0].labels.slice().reverse();o.forEach(function(e,t){e[a]&&(e=0===t?1:o[t-1].filter(function(e){return e&&""!==e}).length,A+=e,p+='').concat(A,""))});for(var e=0;e').concat(g[e].values[a]||0,"");p+=""}(d)}else{p+=''),g[0].labels.forEach(function(e,t){p+='0')});for(var d=0;d').concat(d+1,"");p+="",g[0].labels[0].forEach(function(e,t){p+='');for(var a=g[0].labels.length-1;0<=a;a--)p=(p+=''))+"".concat(g.length+t+1,"")+"";for(var A=0;A').concat(g[A].values[t]||"","");p+=""})}p+='\n',r.file("xl/worksheets/sheet1.xml",p),r.generateAsync({type:"base64"}).then(function(e){b.file("ppt/embeddings/Microsoft_Excel_Worksheet".concat(m.globalId,".xlsx"),e,{base64:!0}),b.file("ppt/charts/_rels/"+m.fileName+".rels",''+'')+""),b.file("ppt/charts/".concat(m.fileName),function(o){var e,n='',r=!1;n=(n+='')+'')+"",o.opts.showTitle?n=n+Ne({title:o.opts.title||"Chart Title",color:o.opts.titleColor,fontFace:o.opts.titleFontFace,fontSize:o.opts.titleFontSize||te,titleAlign:o.opts.titleAlign,titleBold:o.opts.titleBold,titlePos:o.opts.titlePos,titleRotate:o.opts.titleRotate},o.opts.x,o.opts.y)+'':n+='';o.opts._type===v.BAR3D&&(n+=''));n+="",o.opts.layout?n=(n=(n=(n=(n=(n=(n=(n+="")+' ')+' ')+' ')+' ')+' ')+' ')+" ":n+="";Array.isArray(o.opts._type)?o.opts._type.forEach(function(e){var t=y(y({},o.opts),e.options),a=t.secondaryValAxis?le:L,A=t.secondaryCatAxis?ie:ce;r=r||t.secondaryValAxis,n+=De(e.type,e.data,t,a,A)}):n+=De(o.opts._type,o.data,o.opts,L,ce);if(o.opts._type!==v.PIE&&o.opts._type!==v.DOUGHNUT){if(o.opts.valAxes&&1 ')+' ')+' ')+' ')+("none"!==t.serGridLine.style?Fe(t.serGridLine):""),t.showSerAxisTitle&&(A+=Ne({color:t.serAxisTitleColor,fontFace:t.serAxisTitleFontFace,fontSize:t.serAxisTitleFontSize,titleRotate:t.serAxisTitleRotate,title:t.serAxisTitle||"Axis Title"}));A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=' '))+' ')+' '))+' ')+(t.serAxisLineShow?"".concat(z(t.serAxisLineColor||C.color),""):"")+' ')+" ")+" ")+" ")+" ")+' '))+" ".concat(z(t.serAxisLabelColor||w),""))+' '))+" ")+' ')+" ")+' ',t.serAxisLabelFrequency&&(A+=' ');t.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach(function(e){!t[e]||"string"==typeof t[e]&&["days","months","years"].includes(e.toLowerCase())||(console.warn('"'.concat(e,"\" must be one of: 'days','months','years' !")),t[e]=null)}),t.serAxisBaseTimeUnit&&(A+=' ')),t.serAxisMajorTimeUnit&&(A+=' ')),t.serAxisMinorTimeUnit&&(A+=' ')),t.serAxisMajorUnit&&(A+=' ')),t.serAxisMinorUnit)&&(A+=' '));return A+=""}(o.opts,se,L))),null!=(e=o.opts)&&e.catAxes&&null!=(e=o.opts)&&e.catAxes[1]&&(n+=Se(y(y({},o.opts),o.opts.catAxes[1]),ie,le))}o.opts.showDataTable&&(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n=(n+="")+' '))+' '))+' '))+' '))+" ")+' ')+" ")+' ')+' ')+' '))+' ')+' ')+" ")+' ')+" ");n=(n=(n=(n+=" ")+(null!=(e=o.opts.plotArea.fill)&&e.color?U(o.opts.plotArea.fill):""))+(o.opts.plotArea.border?'').concat(U(o.opts.plotArea.border.color),""):"")+" ")+" ",o.opts.showLegend&&(n=(n+="")+'',(o.opts.legendFontFace||o.opts.legendFontSize||o.opts.legendColor)&&(n=(n=(n=(n+="")+" ")+" ")+(o.opts.legendFontSize?''):""),o.opts.legendColor&&(n+=U(o.opts.legendColor)),o.opts.legendFontFace&&(n+=''),o.opts.legendFontFace&&(n+=''),n=(n=(n+=" ")+' ')+" "),n+="");n=(n+=' ')+' ',o.opts._type===v.SCATTER&&(n+='');return n=(n=(n=(n=(n+="")+(null!=(e=o.opts.chartArea.fill)&&e.color?U(o.opts.chartArea.fill):""))+(o.opts.chartArea.border?'').concat(U(o.opts.chartArea.border.color),""):""))+" ")+''}(m)),t("")}).catch(function(e){a(e)})})];case 1:return[2,e.sent()]}})})}function De(A,o,n,e,t){var r=-1,l=1,a=null,c="";switch(A){case v.AREA:case v.BAR:case v.BAR3D:case v.LINE:case v.RADAR:c+=""),A===v.AREA&&"stacked"===n.barGrouping&&(c+=''),A!==v.BAR&&A!==v.BAR3D||(c=(c+='')+''),A===v.RADAR&&(c+=''),c+='',o.forEach(function(e){r++,c=(c=(c=(c+="")+' ')+" ")+" Sheet1!$"+B(e._dataIndex+e.labels.length+1)+"$1")+' '+I(e.name)+" ";var t=n.chartColors?n.chartColors[r%n.chartColors.length]:null;c+=" ","transparent"===t?c+="":n.chartColorsOpacity?c+=""+z(t,''))+"":c+=""+z(t)+"",A===v.LINE||A===v.RADAR?0===n.lineSize?c+="":c=(c+='').concat(z(t),""))+('':n.dataBorder&&(c+='').concat(z(n.dataBorder.color),'')),c=c+b(n.shadow,s)+' ',A!==v.RADAR&&(c=(c+="")+''),n.dataLabelBkgrdColors&&(c+="".concat(z(t),"")),c=(c=(c=(c+="")+''))+"".concat(z(n.dataLabelColor||w),""))+'')+"",n.dataLabelPosition&&(c+='')),c=(c=(c=(c+='')+''))+''))+'')+""),A!==v.LINE&&A!==v.RADAR||(c=(c+="")+' ',n.lineDataSymbolSize&&(c+='')),c=(c=(c+=" ")+" ".concat(z(n.chartColors[e._dataIndex+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):e._dataIndex]),""))+' ').concat(z(n.lineDataSymbolLineColor||t),'')+" "),A!==v.BAR&&A!==v.BAR3D||1!==o.length||!(n.chartColors&&n.chartColors!==de&&1")+' ')+' ',0===n.lineSize?c+="":c=A===v.BAR?(c+="")+' ':(c+=" ")+' ',c=c+b(n.shadow,s)+" "}),c+="",n.catLabelFormatCode?(c=(c=(c=(c+=" ")+" Sheet1!$A$2:$A$".concat(e.labels[0].length+1,"")+" ")+" "+(n.catLabelFormatCode||"General")+"")+' '),e.labels[0].forEach(function(e,t){return c+='').concat(I(e),"")}),c+=" "):(c=(c=(c+=" ")+" Sheet1!$A$2:$".concat(B(e.labels.length),"$").concat(e.labels[0].length+1,"")+" ")+' '),e.labels.forEach(function(e){c+="",e.forEach(function(e,t){return c+='').concat(I(e),"")}),c+=""}),c+=" "),c=(c=(c=(c=c+""+" ")+"Sheet1!$".concat(B(e._dataIndex+e.labels.length+1),"$2:$").concat(B(e._dataIndex+e.labels.length+1),"$").concat(e.labels[0].length+1,"")+" ")+" "+(n.valLabelFormatCode||n.dataTableFormatCode||"General")+"")+' '),e.values.forEach(function(e,t){return c+='').concat(e||0===e?e:"","")}),c+=" ",A===v.LINE&&(c+=''),c+=""}),c=(c=(c=(c=(c+=" ")+' ')+" ")+' '))+" "+z(n.dataLabelColor||w)+"")+' ',n.dataLabelPosition&&(c+=' '),c=(c=(c=(c+=' ')+' ')+' ')+' ')+" ",A===v.BAR?c=(c+=' '))+' '):A===v.BAR3D?c=(c=(c+=' '))+' '))+(' ':A===v.LINE&&(c+=' '),c=(c+=''))+"");break;case v.SCATTER:c=(c+="")+''+'',r=-1,o.filter(function(e,t){return 0")+' '))+' ')+" ")+" Sheet1!$".concat(B(e+2),"$1"))+' '+I(a.name)+" ";var A,t=n.chartColors[r%n.chartColors.length];"transparent"===t?c+="":n.chartColorsOpacity?c+=""+z(t,'')+"":c+=""+z(t)+"",0===n.lineSize?c+="":c=(c+='').concat(z(t),""))+''),c=(c=(c+=b(n.shadow,s))+" "+"")+' ',n.lineDataSymbolSize&&(c+='')),c=(c=(c+="")+"".concat(z(n.chartColors[e+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):e]),""))+'').concat(z(n.lineDataSymbolLineColor||n.chartColors[r%n.chartColors.length]),'')+"",n.showLabel&&(A=he("-xxxx-xxxx-xxxx-xxxxxxxxxxxx"),!a.labels[0]||"custom"!==n.dataLabelFormatScatter&&"customXY"!==n.dataLabelFormatScatter||(c+="",a.labels[0].forEach(function(e,t){"custom"!==n.dataLabelFormatScatter&&"customXY"!==n.dataLabelFormatScatter||(c=(c=(c=(c+=" ")+' ')+" ")+' ')+" "+I(e)+" ",c=("customXY"!==n.dataLabelFormatScatter||/^ *$/.test(e)?c:(c=(c=(c=(c=(c=(c=(c=(c=(c=(c+=" ")+' ( ')+' ')+' ')+" ["+I(a.name)+" ")+' , ')+' ')+' ')+" ["+I(a.name)+"] ")+' ) ')+' ')+" ",n.dataLabelPosition&&(c+=' '),c=(c+=' ')+' ')+" ")}),c+=""),"XY"===n.dataLabelFormatScatter)&&(c+=' ',n.dataLabelPosition&&(c+=' '),c=(c=(c=(c+=' ')+' '))+' '))+' ')+' '),1===o.length&&n.chartColors!==de&&a.values.forEach(function(e,t){e=e<0?n.invertedColors||n.chartColors||de:n.chartColors||[];c=(c+=" ")+' ')+' ',0===n.lineSize?c+="":c=(c+="")+' ',c=c+b(n.shadow,s)+" "}),c=(c=(c+=" ")+" Sheet1!$A$2:$A$".concat(o[0].values.length+1,"")+" General")+' '),o[0].values.forEach(function(e,t){c+='').concat(e||0===e?e:"","")}),c=(c=(c+=" ")+" Sheet1!$".concat(B(e+2),"$2:$").concat(B(e+2),"$").concat(o[0].values.length+1,"")+" General")+' '),o[0].values.forEach(function(e,t){c+='').concat(a.values[t]||0===a.values[t]?a.values[t]:"","")}),c=(c+=" ")+''}),c=(c=(c=(c=(c+=" ")+' ')+" ")+' '))+" "+z(n.dataLabelColor||w)+"")+' ',n.dataLabelPosition&&(c+=' '),c=(c=(c+=' ')+' ')+' ',c=(c+=''))+("");break;case v.BUBBLE:case v.BUBBLE3D:c=c+""+'',r=-1,o.filter(function(e,t){return 0")+' '))+' ')+" ")+" Sheet1!$"+B(l+1)+"$1")+' '+I(a.name)+" ";e=n.chartColors[r%n.chartColors.length];"transparent"===e?c+="":n.chartColorsOpacity?c+="".concat(z(e,''),""):c+=""+z(e)+"",0===n.lineSize?c+="":n.dataBorder?c+='').concat(z(n.dataBorder.color),''):c=(c+='').concat(z(e),""))+''),c=c+b(n.shadow,s)+"",c=(c=(c+=" ")+" Sheet1!$A$2:$A$".concat(o[0].values.length+1,"")+" General")+' '),o[0].values.forEach(function(e,t){c+='').concat(e||0===e?e:"","")}),c=(c+=" ")+"Sheet1!$".concat(B(l+1),"$2:$").concat(B(l+1),"$").concat(o[0].values.length+1,""),l++,c=(c+=" General")+' '),o[0].values.forEach(function(e,t){c+='').concat(a.values[t]||0===a.values[t]?a.values[t]:"","")}),c=(c+=" ")+"Sheet1!$".concat(B(l+1),"$2:$").concat(B(l+1),"$").concat(a.sizes.length+1,""),l++,c=(c+=" General")+' '),a.sizes.forEach(function(e,t){c+='').concat(e||"","")}),c=(c+=" ")+' '}),c=(c=(c=(c=(c+="")+'')+"")+''))+"".concat(z(n.dataLabelColor||w),""))+'')+"",n.dataLabelPosition&&(c+='')),c=(c=(c=(c=(c+='')+''))+'')+' ')+' ')+'')+"";break;case v.DOUGHNUT:case v.PIE:a=o[0],c=(c=(c=(c=(c=(c=(c=(c=(c=c+("")+' ')+""+' ')+' '+" ")+" "+" Sheet1!$B$1")+" "+' ')+(' '+I(a.name)+""))+" "+" ")+" "+" ")+' '+' ',n.dataNoEffects?c+="":c+=b(n.shadow,s),c+=" ",a.labels[0].forEach(function(e,t){c=(c=(c+="")+' ')+' ')+"".concat(z(n.chartColors[t+1>n.chartColors.length?Math.floor(Math.random()*n.chartColors.length):t]),""),n.dataBorder&&(c+='').concat(z(n.dataBorder.color),'')),c=c+b(n.shadow,s)+" "}),c+="",a.labels[0].forEach(function(e,t){c=(c=(c=(c=(c=(c+="")+' '))+' ')+" ")+' '))+" "+z(n.dataLabelColor||w)+"")+' ')+" ",A===v.PIE&&n.dataLabelPosition&&(c+='')),c=(c=(c=(c=(c+=' ')+' ')+' ')+' ')+' '}),c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c=(c=c+' ')+" ")+" "+" ")+" "+" ")+' ')+' ')+" "+" ")+" "+" ")+(A===v.PIE?'':""))+' '+' ')+' '+' ')+' '+' ')+' ')+"")+""+" ")+" Sheet1!$A$2:$A$".concat(a.labels[0].length+1,"")+" ")+' '),a.labels[0].forEach(function(e,t){c+='').concat(I(e),"")}),c=(c=(c=(c=(c+=" ")+" "+"")+" "+" ")+" Sheet1!$B$2:$B$".concat(a.labels[0].length+1,"")+" ")+' '),a.values.forEach(function(e,t){c+='').concat(e||0===e?e:"","")}),c=(c=(c=c+" "+" ")+" "+" ")+' '),A===v.DOUGHNUT&&(c+='')),c+="";break;default:c+=""}return c}function Se(t,e,a){var A="";return t._type===v.SCATTER||t._type===v.BUBBLE||t._type===v.BUBBLE3D?A+="":A+="",A=(A+=' ')+" "+(''),!t.catAxisMaxVal&&0!==t.catAxisMaxVal||(A+='')),!t.catAxisMinVal&&0!==t.catAxisMinVal||(A+='')),A=(A=(A=A+""+(' '))+(' '))+("none"!==t.catGridLine.style?Fe(t.catGridLine):""),t.showCatAxisTitle&&(A+=Ne({color:t.catAxisTitleColor,fontFace:t.catAxisTitleFontFace,fontSize:t.catAxisTitleFontSize,titleRotate:t.catAxisTitleRotate,title:t.catAxisTitle||"Axis Title"})),t._type===v.SCATTER||t._type===v.BUBBLE||t._type===v.BUBBLE3D?A+=' ':A+=' ',t._type===v.SCATTER?A+=' ':A=(A=(A+=' ')+' ')+' ',A=(A=(A=(A=(A=(A+=" ")+' '))+(t.catAxisLineShow?""+z(t.catAxisLineColor||C.color)+"":""))+(' '))+" "+" ")+" "+" ",t.catAxisLabelRotate?A+=''):A+="",A=(A=(A=(A=(A=(A=(A=(A=(A=(A=(A+=" ")+" "+" ")+' '))+(" "+z(t.catAxisLabelColor||w)+""))+(' '))+" "+" ")+(' ')+" ")+" "+(' '))+" '))+' '+' ')+' '),t.catAxisLabelFrequency&&(A+=' '),(t.catLabelFormatCode||t._type===v.SCATTER||t._type===v.BUBBLE||t._type===v.BUBBLE3D)&&(t.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach(function(e){!t[e]||"string"==typeof t[e]&&["days","months","years"].includes(t[e].toLowerCase())||(console.warn('"'.concat(e,"\" must be one of: 'days','months','years' !")),t[e]=null)}),t.catAxisBaseTimeUnit&&(A+=''),t.catAxisMajorTimeUnit&&(A+=''),t.catAxisMinorTimeUnit)&&(A+=''),t.catAxisMajorUnit&&(A+='')),t.catAxisMinorUnit)&&(A+='')),t._type===v.SCATTER||t._type===v.BUBBLE||t._type===v.BUBBLE3D?A+="":A+="",A}function Ee(e,t){var a=t===L?"col"===e.barDir?"l":"b":"col"!==e.barDir?"r":"t",A=(t===le&&(a="r"),t===L?ce:ie),o="",o=(o+="")+(' ')+" ";return e.valAxisLogScaleBase&&(o+='')),o+='',!e.valAxisMaxVal&&0!==e.valAxisMaxVal||(o+='')),!e.valAxisMinVal&&0!==e.valAxisMinVal||(o+='')),o=(o+=" ")+' ')+(' '),"none"!==e.valGridLine.style&&(o+=Fe(e.valGridLine)),e.showValAxisTitle&&(o+=Ne({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||"Axis Title"})),o+=''),e._type===v.SCATTER?o+=' ':o=(o=(o+=' ')+' ')+' ',o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o=(o+=" ")+' '))+(e.valAxisLineShow?""+z(e.valAxisLineColor||C.color)+"":""))+(' '))+" "+" ")+" "+" ")+" ")+" ")+" "+" ")+' '))+(" "+z(e.valAxisLabelColor||w)+""))+(' '))+" "+" ")+(' ')+" ")+" "+(' '),"number"==typeof e.catAxisCrossesAt?o+=' '):"string"==typeof e.catAxisCrossesAt?o+=' ':o+=' ',o+=' ',e.valAxisMajorUnit&&(o+=' ')),e.valAxisDisplayUnit&&(o+='').concat(e.valAxisDisplayUnitLabel?"":"","")),o+=""}function Ne(e,t,a){var A="left"===e.titleAlign||"right"===e.titleAlign?''):"",o=e.titleRotate?''):"",n=e.fontSize?'sz="'.concat(Math.round(100*e.fontSize),'"'):"",r=e.titleBold?1:0,l="";return e.titlePos&&"number"==typeof e.titlePos.x&&"number"==typeof e.titlePos.y&&(1<=(t=0===(t=e.titlePos.x+t)?0:t*(t/5)/10)&&(t/=10),.1<=t&&(t/=10),1<=(a=0===(a=e.titlePos.y+a)?0:a*(a/5)/10)&&(a/=10),.1<=a&&(a/=10),l='')),"\n \n \n ".concat(o,"\n \n \n ").concat(A,"\n \n ').concat(z(e.color||w),'\n \n \n \n \n \n ').concat(z(e.color||w),'\n \n \n ').concat(I(e.title)||"","\n \n \n \n \n ").concat(l,'\n \n ')}function B(e){e-=1;return e<=25?pe[e]:"".concat(pe[Math.floor(e/pe.length-1)]).concat(pe[e%pe.length])}function b(e,t){var a,A,o,n,r,l;return e?"object"!=typeof e?(console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),""):(a="",e=(t=y(y({},t),e)).type||"outer",A=O(t.blur),o=O(t.offset),n=Math.round(6e4*t.angle),r=t.color,l=Math.round(1e5*t.opacity),t=t.rotateWithShape?1:0,(a=(a=(a+="'))+''))+''))+"")+""):""}function Fe(e){var t="";return(t+=" ")+' ')+(' ')+(' ')+" "+" "+""}function Re(e){if(e&&"flat"!==e){if("square"===e)return"sq";if("round"===e)return"rnd";throw new Error("Invalid chart line cap: ".concat(e))}return"flat"}function Ie(e){var n="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,r="undefined"!=typeof require&&"undefined"==typeof window?require("https"):null,t=[],l=e._relsMedia.filter(function(e){return"online"!==e.type&&!e.data&&(!e.path||e.path&&!e.path.includes("preencoded"))}),a=[];return l.forEach(function(e){a.includes(e.path)?e.isDuplicate=!0:(e.isDuplicate=!1,a.push(e.path))}),l.filter(function(e){return!e.isDuplicate}).forEach(function(o){t.push(new Promise(function(a,A){var t;if(n&&0!==o.path.indexOf("http"))try{var e=n.readFileSync(o.path);o.data=Buffer.from(e).toString("base64"),l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),a("done")}catch(e){o.data=h,l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),A(new Error('ERROR: Unable to read media: "'.concat(o.path,'"\n').concat(String(e))))}else n&&r&&0===o.path.indexOf("http")?r.get(o.path,function(e){var t="";e.setEncoding("binary"),e.on("data",function(e){return t+=e}),e.on("end",function(){o.data=Buffer.from(t,"binary").toString("base64"),l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),a("done")}),e.on("error",function(e){o.data=h,l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),A(new Error("ERROR! Unable to load image (https.get): ".concat(o.path)))})}):((t=new XMLHttpRequest).onload=function(){var e=new FileReader;e.onloadend=function(){o.data=e.result,l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),o.isSvgPng?Me(o).then(function(){a("done")}).catch(function(e){A(e)}):a("done")},e.readAsDataURL(t.response)},t.onerror=function(e){o.data=h,l.filter(function(e){return e.isDuplicate&&e.path===o.path}).forEach(function(e){return e.data=o.data}),A(new Error("ERROR! Unable to load image (xhr.onerror): ".concat(o.path)))},t.open("GET",o.path),t.responseType="blob",t.send())}))}),e._relsMedia.filter(function(e){return e.isSvgPng&&e.data}).forEach(function(e){n?(e.data=h,t.push(Promise.resolve().then(function(){return"done"}))):t.push(Me(e))}),t}function Me(o){return p(this,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return[4,new Promise(function(a,t){var A=new Image;A.onload=function(){A.width+A.height===0&&A.onerror("h/w=0");var e=document.createElement("CANVAS"),t=e.getContext("2d");e.width=A.width,e.height=A.height,t.drawImage(A,0,0);try{o.data=e.toDataURL(o.type),a("done")}catch(e){A.onerror(e)}},A.onerror=function(e){o.data=h,t(new Error("ERROR! Unable to load image (image.onerror): ".concat(o.path)))},A.src="string"==typeof o.data?o.data:h})];case 1:return[2,e.sent()]}})})}var Oe={cover:function(e,t){var e=e.h/e.w,a=e')},contain:function(e,t){var e=e.h/e.w,a=e')},crop:function(e,t){var a=t.x,A=e.w-(t.x+t.w),o=t.y,t=e.h-(t.y+t.h),a=Math.round(a/e.w*1e5),A=Math.round(A/e.w*1e5),o=Math.round(o/e.h*1e5),t=Math.round(t/e.h*1e5);return'')}};function ke(D){var e,S=D._name?'':"",E=1;return D._bkgdImgRid?S+=''):null!=(e=D.background)&&e.color?S+="".concat(U(D.background),""):!D.bkgd&&D._name&&D._name===ae&&(S+=''),S=(S=S+""+'')+''+'',D._slideObjects.forEach(function(A,e){var t,a,c,o,n,r,l,i,s=0,p=0,d=R("75%","X",D._presLayout),f=0,u="",h=null,g=0,m=0,b=null,y=null==(t=A.options)?void 0:t.sizing,v=null==(t=A.options)?void 0:t.rounding,x=(void 0!==D._slideLayout&&void 0!==D._slideLayout._slideObjects&&A.options&&A.options.placeholder&&(a=D._slideLayout._slideObjects.filter(function(e){return e.options.placeholder===A.options.placeholder})[0]),A.options=A.options||{},void 0!==A.options.x&&(s=R(A.options.x,"X",D._presLayout)),void 0!==A.options.y&&(p=R(A.options.y,"Y",D._presLayout)),d=void 0!==A.options.w?R(A.options.w,"X",D._presLayout):d),C=f=void 0!==A.options.h?R(A.options.h,"Y",D._presLayout):f;switch(a&&(!a.options.x&&0!==a.options.x||(s=R(a.options.x,"X",D._presLayout)),!a.options.y&&0!==a.options.y||(p=R(a.options.y,"Y",D._presLayout)),!a.options.w&&0!==a.options.w||(d=R(a.options.w,"X",D._presLayout)),!a.options.h&&0!==a.options.h||(f=R(a.options.h,"Y",D._presLayout))),A.options.flipH&&(u+=' flipH="1"'),A.options.flipV&&(u+=' flipV="1"'),A.options.rotate&&(u+=' rot="'.concat(k(A.options.rotate),'"')),A._type){case N.table:if(h=A.arrTabRows,c=A.options,h[m=g=0].forEach(function(e){o=e.options||null,g+=null!==o&&o.colspan?Number(o.colspan):1}),b=''),b=(b+=' ')+'')+'',Array.isArray(c.colW)){b+="";for(var w=0;w')}}else{m=c.colW||F,A.options.w&&!c.colW&&(m=Math.round(("number"==typeof A.options.w?A.options.w:1)/g)),b+="";for(var L=0;L')}b+="",h.forEach(function(o){for(var n,r,e=0;e'),e.forEach(function(e){var t,a,A,o,n,r={rowSpan:1<(null==(l=e.options)?void 0:l.rowspan)?e.options.rowspan:void 0,gridSpan:1<(null==(l=e.options)?void 0:l.colspan)?e.options.colspan:void 0,vMerge:e._vmerge?1:void 0,hMerge:e._hmerge?1:void 0},l=(l=Object.keys(r).map(function(e){return[e,r[e]]}).filter(function(e){return e[0],!!e[1]}).map(function(e){var t=e[0],e=e[1];return"".concat(String(t),'="').concat(String(e),'"')}).join(" "))&&" "+l;e._hmerge||e._vmerge?b+=""):(t=e.options||{},e.options=t,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach(function(e){c[e]&&!t[e]&&0!==t[e]&&(t[e]=c[e])}),a=t.valign?' anchor="'.concat(t.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b"),'"'):"",A=(A=(null!=(A=null==(A=e._optImp)?void 0:A.fill)&&A.color?e._optImp.fill.color:null!=(A=e._optImp)&&A.fill&&"string"==typeof e._optImp.fill?e._optImp.fill:"")||t.fill?t.fill:"")?U(A):"",o=0===t.margin||t.margin?t.margin:_,n="",n=1<=(o=Array.isArray(o)||"number"!=typeof o?o:[o,o,o,o])[0]?' marL="'.concat(O(o[3]),'" marR="').concat(O(o[1]),'" marT="').concat(O(o[0]),'" marB="').concat(O(o[2]),'"'):' marL="'.concat(M(o[3]),'" marR="').concat(M(o[1]),'" marT="').concat(M(o[0]),'" marB="').concat(M(o[2]),'"'),b+="").concat(Ge(e),""),t.border&&Array.isArray(t.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach(function(e){"none"!==t.border[e.idx].type?b=(b=(b=(b+="'))+"".concat(z(t.border[e.idx].color),""))+''))+""):b+="")}),b=b+A+" ")}),b+=""}),S+=b=(b=b+" "+" ")+" "+"",E++;break;case N.text:case N.placeholder:if(A.options.line||0!==f||(f=.3*F),A.options._bodyProp||(A.options._bodyProp={}),A.options.margin&&Array.isArray(A.options.margin)?(A.options._bodyProp.lIns=O(A.options.margin[0]||0),A.options._bodyProp.rIns=O(A.options.margin[1]||0),A.options._bodyProp.bIns=O(A.options.margin[2]||0),A.options._bodyProp.tIns=O(A.options.margin[3]||0)):"number"==typeof A.options.margin&&(A.options._bodyProp.lIns=O(A.options.margin),A.options._bodyProp.rIns=O(A.options.margin),A.options._bodyProp.bIns=O(A.options.margin),A.options._bodyProp.tIns=O(A.options.margin)),S=(S+="")+''),null!=(n=A.options.hyperlink)&&n.url&&(S+='')),null!=(n=A.options.hyperlink)&&n.slide&&(S+='')),S=(S=(S=(S=(S=(S+="")+("':"/>")))+"".concat("placeholder"===A._type?je(A):je(a),"")+"")+""))+''))+''),"custGeom"===A.shape)S=(S+='')+''),null!=(n=A.options.points)&&n.forEach(function(e,t){if("curve"in e)switch(e.curve.type){case"arc":S+='');break;case"cubic":S+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t');break;case"quadratic":S+='\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t')}else"close"in e?S+="":e.moveTo||0===t?S+=''):S+='')}),S+="";else{if(S+='',A.options.rectRadius)S+='');else if(A.options.angleRange){for(var B=0;B<2;B++){var T=A.options.angleRange[B];S+='')}A.options.arcThicknessRatio&&(S+=''))}S+=""}S+=A.options.fill?U(A.options.fill):"",A.options.line&&(S+=A.options.line.width?''):"",A.options.line.color&&(S+=U(A.options.line)),A.options.line.dashType&&(S+='')),A.options.line.beginArrowType&&(S+='')),A.options.line.endArrowType&&(S+='')),S+=""),A.options.shadow&&"none"!==A.options.shadow.type&&(A.options.shadow.type=A.options.shadow.type||"outer",A.options.shadow.blur=O(A.options.shadow.blur||8),A.options.shadow.offset=O(A.options.shadow.offset||4),A.options.shadow.angle=Math.round(6e4*(A.options.shadow.angle||270)),A.options.shadow.opacity=Math.round(1e5*(A.options.shadow.opacity||.75)),A.options.shadow.color=A.options.shadow.color||ne.color,S=(S=(S=(S+="")+" '))+' '))+' ')+" "),S=(S+="")+Ge(A)+"";break;case N.image:S=(S=S+""+" ")+''),null!=(n=A.hyperlink)&&n.url&&(S+='')),null!=(n=A.hyperlink)&&n.slide&&(S+='')),S=(S=(S=S+" "+' ')+(" "+je(a)+""))+" "+"",S=(D._relsMedia||[]).filter(function(e){return e.rId===A.imageRid})[0]&&"svg"===(D._relsMedia||[]).filter(function(e){return e.rId===A.imageRid})[0].extn?(S=(S+=''))+(A.options.transparency?' '):"")+' ')+' ')+" ":(S+=''))+(A.options.transparency?''):"")+"",null!=y&&y.type?(n=y.w?R(y.w,"X",D._presLayout):d,r=y.h?R(y.h,"Y",D._presLayout):f,l=R(y.x||0,"X",D._presLayout),i=R(y.y||0,"Y",D._presLayout),S+=Oe[y.type]({w:x,h:C},{w:n,h:r,x:l,y:i}),x=n,C=r):S+=" ",S=(S=(S=(S=(S+="")+""+(" "))+' '))+' ')+" ")+' '),A.options.shadow&&"none"!==A.options.shadow.type&&(A.options.shadow.type=A.options.shadow.type||"outer",A.options.shadow.blur=O(A.options.shadow.blur||8),A.options.shadow.offset=O(A.options.shadow.offset||4),A.options.shadow.angle=Math.round(6e4*(A.options.shadow.angle||270)),A.options.shadow.opacity=Math.round(1e5*(A.options.shadow.opacity||.75)),A.options.shadow.color=A.options.shadow.color||ne.color,S=(S=(S=(S=(S+="")+"'))+''))+''))+"")+""),S=S+""+"";break;case N.media:S="online"===A.mtype?(S=(S=(S=(S+=" ")+'')+" ")+' ')+" ")+' ')+" ")+" ')+' ':(S=(S=(S=(S=(S+=" ")+'')+' ')+' ')+' ')+' ')+" ")+' ')+" ")+" ')+' ';break;case N.chart:S=(S=(S=(S=(S=(S=(S=S+""+" ")+' ')+" ")+" ".concat(je(a),"")+" ")+' '))+' '+' ')+' ')+" ")+" "+"";break;default:S+=""}}),D._slideNumberProps&&(D._slideNumberProps.align||(D._slideNumberProps.align="left"),S=(S+=' ')+""+'')+'')+' '),D._slideNumberProps.color&&(S+=U(D._slideNumberProps.color)),D._slideNumberProps.fontFace&&(S+='')),S+=""),S+="",D._slideNumberProps.align.startsWith("l")?S+='':D._slideNumberProps.align.startsWith("c")?S+='':D._slideNumberProps.align.startsWith("r")?S+='':S+='',S=(S+=''))+"".concat(D._slideNum,'')+""),S=S+""+""}function ze(e,t){var a=0,A=''+u+'';return e._rels.forEach(function(e){a=Math.max(a,e.rId),e.type.toLowerCase().includes("hyperlink")?"slide"===e.data?A+=''):A+=''):e.type.toLowerCase().includes("notesSlide")&&(A+=''))}),(e._relsChart||[]).forEach(function(e){a=Math.max(a,e.rId),A+='')}),(e._relsMedia||[]).forEach(function(e){var t=e.rId.toString();a=Math.max(a,e.rId),e.type.toLowerCase().includes("image")?A+='':e.type.toLowerCase().includes("audio")?A.includes(' Target="'+e.Target+'"')?A+='':A+='':e.type.toLowerCase().includes("video")?A.includes(' Target="'+e.Target+'"')?A+='':A+='':e.type.toLowerCase().includes("online")&&(A.includes(' Target="'+e.Target+'"')?A+='':A+='')}),t.forEach(function(e,t){A+='')}),A+=""}function Ue(e,t){var a,A,o="",n="",r="",l="",c=t?"a:lvl1pPr":"a:pPr",i=O(q),s="<".concat(c).concat(e.options.rtlMode?' rtl="1" ':"");if(e.options.align)switch(e.options.align){case"left":s+=' algn="l"';break;case"right":s+=' algn="r"';break;case"center":s+=' algn="ctr"';break;case"justify":s+=' algn="just"';break;default:s+=""}return e.options.lineSpacing?n=''):e.options.lineSpacingMultiple&&(n='')),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&0')),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&0')),"object"==typeof e.options.bullet?(null!=(A=null==(A=null==e?void 0:e.options)?void 0:A.bullet)&&A.indent&&(i=O(e.options.bullet.indent)),e.options.bullet.type?"number"===e.options.bullet.type.toString().toLowerCase()&&(s+=' marL="'.concat(e.options.indentLevel&&0')):o=e.options.bullet.characterCode?(a="&#x".concat(e.options.bullet.characterCode,";"),/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)||(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),a=f.DEFAULT),s+=' marL="'.concat(e.options.indentLevel&&0'):e.options.bullet.code?(a="&#x".concat(e.options.bullet.code,";"),/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)||(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),a=f.DEFAULT),s+=' marL="'.concat(e.options.indentLevel&&0'):(s+=' marL="'.concat(e.options.indentLevel&&0'))):e.options.bullet?(s+=' marL="'.concat(e.options.indentLevel&&0')):e.options.bullet||(s+=' indent="0" marL="0"',o=""),e.options.tabStops&&Array.isArray(e.options.tabStops)&&(A=e.options.tabStops.map(function(e){return'')}).join(""),l="".concat(A,"")),s+=">"+n+r+o+l,t&&(s+=Qe(e.options,!0)),s+=""}function Qe(e,t){var a,A,o,n,r="",t=t?"a:defRPr":"a:rPr",r=(r=(r=(r=(r+="<"+t+' lang="'+(e.lang||"en-US")+'"'+(e.lang?' altLang="en-US"':""))+(e.fontSize?' sz="'.concat(Math.round(100*e.fontSize),'"'):""))+(null!=e&&e.bold?' b="'.concat(e.bold?"1":"0",'"'):""))+(null!=e&&e.italic?' i="'.concat(e.italic?"1":"0",'"'):""))+(null!=e&&e.strike?' strike="'.concat("string"==typeof e.strike?e.strike:"sngStrike",'"'):"");if("object"==typeof e.underline&&null!=(a=e.underline)&&a.style?r+=' u="'.concat(e.underline.style,'"'):"string"==typeof e.underline?r+=' u="'.concat(String(e.underline),'"'):e.hyperlink&&(r+=' u="sng"'),e.baseline?r+=' baseline="'.concat(Math.round(50*e.baseline),'"'):e.subscript?r+=' baseline="-40000"':e.superscript&&(r+=' baseline="30000"'),r=r+(e.charSpacing?' spc="'.concat(Math.round(100*e.charSpacing),'" kern="0"'):"")+' dirty="0">',(e.color||e.fontFace||e.outline||"object"==typeof e.underline&&e.underline.color)&&(e.outline&&"object"==typeof e.outline&&(r+='').concat(U(e.outline.color||"FFFFFF"),"")),e.color&&(r+=U({color:e.color,transparency:e.transparency})),e.highlight&&(r+="".concat(z(e.highlight),"")),"object"==typeof e.underline&&e.underline.color&&(r+="".concat(U(e.underline.color),"")),e.glow&&(r+="".concat((a=e.glow,o="",A=y(y({},A=re),a),a=Math.round(A.size*x),n=A.color,A=Math.round(1e5*A.opacity),(o+=''))+z(n,''))+""),"")),e.fontFace)&&(r+='')),e.hyperlink){if("object"!=typeof e.hyperlink)throw new Error("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink:{url:'https://github.com'}` ");if(!e.hyperlink.url&&!e.hyperlink.slide)throw new Error("ERROR: 'hyperlink requires either `url` or `slide`'");e.hyperlink.url?r+='":"/>"):e.hyperlink.slide&&(r+='":"/>")),e.color&&(r+=' ')}return r+="")}function Ge(a){var n,e,t,A,o,r=a.options||{},l=[],c=[];return!r||a._type===N.tablecell||void 0!==a.text&&null!==a.text?(n=a._type===N.tablecell?"":"",n+=(t="":"resize"===e.options.fit&&(t+="")),e.options.shrinkText&&(t+=""),t=t+(e.options._bodyProp.autoFit?"":"")+""):t+=' wrap="square" rtlCol="0">',e._type===N.tablecell?"":t),0===r.h&&r.line&&r.align?n+='':"placeholder"===a._type?n+="".concat(Ue(a,!0),""):n+="","string"==typeof a.text||"number"==typeof a.text?l.push({text:a.text.toString(),options:r||{}}):a.text&&!Array.isArray(a.text)&&"object"==typeof a.text&&Object.keys(a.text).includes("text")?l.push({text:a.text||"",options:a.options||{}}):Array.isArray(a.text)&&(l=a.text.map(function(e){return{text:e.text,options:e.options}})),l.forEach(function(t,e){t.text||(t.text=""),t.options=t.options||r||{},0===e&&t.options&&!t.options.bullet&&r.bullet&&(t.options.bullet=r.bullet),"string"!=typeof t.text&&"number"!=typeof t.text||(t.text=t.text.toString().replace(/\r*\n/g,u)),t.text.includes(u)&&null===t.text.match(/\n$/g)?t.text.split(u).forEach(function(e){t.options.breakLine=!0,c.push({text:e,options:t.options})}):c.push(t)}),A=[],o=[],c.forEach(function(e,t){0",""),a.options.align=a.options.align||r.align,a.options.lineSpacing=a.options.lineSpacing||r.lineSpacing,a.options.lineSpacingMultiple=a.options.lineSpacingMultiple||r.lineSpacingMultiple,a.options.indentLevel=a.options.indentLevel||r.indentLevel,a.options.paraSpaceBefore=a.options.paraSpaceBefore||r.paraSpaceBefore,a.options.paraSpaceAfter=a.options.paraSpaceAfter||r.paraSpaceAfter,o=Ue(a,!1),n+=o.replace("",""),Object.entries(r).filter(function(e){var t=e[0];return e[1],!(a.options.hyperlink&&"color"===t)}).forEach(function(e){var t=e[0],e=e[1];"bullet"===t||a.options[t]||(a.options[t]=e)}),n+=(e=a).text?"".concat(Qe(e.options,!1),"").concat(I(e.text),""):"",(!a.text&&r.fontSize||a.options.fontSize)&&(A=!0,r.fontSize=r.fontSize||a.options.fontSize)}),a._type===N.tablecell&&(r.fontSize||r.fontFace)?r.fontFace?n=(n=(n=(n+='')+''))+''))+'')+"":n+='':n+=A?'':''),n+=""}),n+=a._type===N.tablecell?"":""):""}function je(e){var t,a;return e?(t=null!=(t=e.options)&&t._placeholderIdx?e.options._placeholderIdx:"",a=(a=null!=(a=e.options)&&a._placeholderType?e.options._placeholderType:"")&&o[a]?o[a].toString():"","")):""}function Ye(e){return''.concat(u,'').concat(I((t="",e._slideObjects.forEach(function(e){e._type===N.notes&&(t+=null!=e&&e.text&&e.text[0]?e.text[0].text:"")}),t.replace(/\r*\n/g,u))),'').concat(e._slideNum,'');var t}function Xe(e,t,a){return ze(e[a-1],[{target:"../slideLayouts/slideLayout".concat(function(e,t,a){for(var A=0;A'+u)+'')+'')+'')+'')+'',A.forEach(function(e){(e._relsMedia||[]).forEach(function(e){"image"===e.type||"online"===e.type||"chart"===e.type||"m4v"===e.extn||r.includes(e.type)||(r+='')})}),r=(r+='')+'',A.forEach(function(e,t){r=(r+=''))+''),e._relsChart.forEach(function(e){r+='')})}),r=(r+='')+'',o.forEach(function(e,t){r+=''),(e._relsChart||[]).forEach(function(e){r+=' '})}),A.forEach(function(e,t){r+='')}),n._relsChart.forEach(function(e){r+=' '}),n._relsMedia.forEach(function(e){"image"===e.type||"online"===e.type||"chart"===e.type||"m4v"===e.extn||r.includes(e.type)||(r+=' ')}),r=(r+=' ')+' ')),i.file("_rels/.rels",''.concat(u,'\n\t\t\n\t\t\n\t\t\n\t\t')),i.file("docProps/app.xml",(o=this.slides,A=this.company,''.concat(u,'\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t').concat(o.length,"\n\t").concat(o.length,'\n\t0\n\t0\n\tfalse\n\t\n\t\t\n\t\t\tFonts Used\n\t\t\t2\n\t\t\tTheme\n\t\t\t1\n\t\t\tSlide Titles\n\t\t\t').concat(o.length,'\n\t\t\n\t\n\t\n\t\t\n\t\t\tArial\n\t\t\tCalibri\n\t\t\tOffice Theme\n\t\t\t').concat(o.map(function(e,t){return"Slide ".concat(t+1,"")}).join(""),"\n\t\t\n\t\n\t").concat(A,"\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t"))),i.file("docProps/core.xml",(n=this.title,o=this.subject,A=this.author,t=this.revision,'\n\t\n\t\t'.concat(I(n),"\n\t\t").concat(I(o),"\n\t\t").concat(I(A),"\n\t\t").concat(I(A),"\n\t\t").concat(t,'\n\t\t').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),'\n\t\t').concat((new Date).toISOString().replace(/\.\d\d\dZ/,"Z"),"\n\t"))),i.file("ppt/_rels/presentation.xml.rels",function(e){for(var t=1,a=(a=''+u)+''+'',A=1;A<=e.length;A++)a+='');return a+='')+'')+'')+'')+'')+""}(this.slides)),i.file("ppt/theme/theme1.xml",(o=null!=(o=(n=this).theme)&&o.headFontFace?''):'',n=null!=(A=n.theme)&&A.bodyFontFace?''):'',''.concat(o,'').concat(n,''))),i.file("ppt/presentation.xml",function(e){var t=(t=''.concat(u)+''))+''+"";e.slides.forEach(function(e){return t+='')}),t=(t=(t=(t+="")+''))+''))+'')+"";for(var a=1;a<10;a++)t+="')+''+"");return t+="",e.sections&&0',e.sections.forEach(function(e){t+=''),e._slides.forEach(function(e){return t+='')}),t+=""}),t+=''),t+=""}(this)),i.file("ppt/presProps.xml",''.concat(u,'')),i.file("ppt/tableStyles.xml",''.concat(u,'')),i.file("ppt/viewProps.xml",''.concat(u,'')),this.slideLayouts.forEach(function(e,t){i.file("ppt/slideLayouts/slideLayout".concat(t+1,".xml"),'\n\t\t\n\t\t'.concat(ke(e),"\n\t\t")),i.file("ppt/slideLayouts/_rels/slideLayout".concat(t+1,".xml.rels"),(e=t+1,ze(l.slideLayouts[e-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])))}),this.slides.forEach(function(e,t){var a;i.file("ppt/slides/slide".concat(t+1,".xml"),(a=e,''.concat(u)+'")+"".concat(ke(a))+"")),i.file("ppt/slides/_rels/slide".concat(t+1,".xml.rels"),Xe(l.slides,l.slideLayouts,t+1)),i.file("ppt/notesSlides/notesSlide".concat(t+1,".xml"),Ye(e)),i.file("ppt/notesSlides/_rels/notesSlide".concat(t+1,".xml.rels"),'\n\t\t\n\t\t\t\n\t\t\t\n\t\t'))}),i.file("ppt/slideMasters/slideMaster1.xml",(a=this.masterSlide,t=(t=this.slideLayouts).map(function(e,t){return'')}),A=''+u,(A+='')+ke(a)+''+t.join("")+' ')),i.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",(o=this.masterSlide,(n=(n=this.slideLayouts).map(function(e,t){return{target:"../slideLayouts/slideLayout".concat(t+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}})).push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),ze(o,n))),i.file("ppt/notesMasters/notesMaster1.xml",''.concat(u,'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›')),i.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",''.concat(u,'\n\t\t\n\t\t')),this.slideLayouts.forEach(function(e){l.createChartMediaRels(e,i,c)}),this.slides.forEach(function(e){l.createChartMediaRels(e,i,c)}),this.createChartMediaRels(this.masterSlide,i,c),[4,Promise.all(c).then(function(){return p(l,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return"STREAM"!==s.outputType?[3,2]:[4,i.generateAsync({type:"nodebuffer",compression:s.compression?"DEFLATE":"STORE"})];case 1:return[2,e.sent()];case 2:return s.outputType?[4,i.generateAsync({type:s.outputType})]:[3,4];case 3:return[2,e.sent()];case 4:return[4,i.generateAsync({type:"blob",compression:s.compression?"DEFLATE":"STORE"})];case 5:return[2,e.sent()]}})})})];case 1:return[2,e.sent()]}var a,t,A,o,n,r})})})];case 1:return[2,e.sent()]}})})};this.LAYOUTS={LAYOUT_4x3:{name:"screen4x3",width:9144e3,height:6858e3},LAYOUT_16x9:{name:"screen16x9",width:9144e3,height:5143500},LAYOUT_16x10:{name:"screen16x10",width:9144e3,height:5715e3},LAYOUT_WIDE:{name:"custom",width:12192e3,height:6858e3}},this._author="PptxGenJS",this._company="PptxGenJS",this._revision="1",this._subject="PptxGenJS Presentation",this._title="PptxGenJS Presentation",this._presLayout={name:this.LAYOUTS[i].name,_sizeW:this.LAYOUTS[i].width,_sizeH:this.LAYOUTS[i].height,width:this.LAYOUTS[i].width,height:this.LAYOUTS[i].height},this._rtlMode=!1,this._slideLayouts=[{_margin:oe,_name:ae,_presLayout:this._presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3,_slideNumberProps:null,_slideObjects:[]}],this._slides=[],this._sections=[],this._masterSlide={addChart:null,addImage:null,addMedia:null,addNotes:null,addShape:null,addTable:null,addText:null,_name:null,_presLayout:this._presLayout,_rId:null,_rels:[],_relsChart:[],_relsMedia:[],_slideId:null,_slideLayout:null,_slideNum:null,_slideNumberProps:null,_slideObjects:[]}}return Object.defineProperty(a.prototype,"layout",{get:function(){return this._layout},set:function(e){var t=this.LAYOUTS[e];if(!t)throw new Error("UNKNOWN-LAYOUT");this._layout=e,this._presLayout=t},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"subject",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"theme",{get:function(){return this._theme},set:function(e){this._theme=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),a.prototype.stream=function(t){return p(this,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return[4,this.exportPresentation({compression:null==t?void 0:t.compression,outputType:"STREAM"})];case 1:return[2,e.sent()]}})})},a.prototype.write=function(A){return p(this,void 0,void 0,function(){var t,a;return d(this,function(e){switch(e.label){case 0:return t="object"==typeof A&&null!=A&&A.outputType?A.outputType:A||null,a=!("object"!=typeof A||null==A||!A.compression)&&A.compression,[4,this.exportPresentation({compression:a,outputType:t})];case 1:return[2,e.sent()]}})})},a.prototype.writeFile=function(A){return p(this,void 0,void 0,function(){var o,t,a,n,r=this;return d(this,function(e){switch(e.label){case 0:return o="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,"string"==typeof A&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)"),t="object"==typeof A&&null!=A&&A.fileName?A.fileName:"string"==typeof A?A:"",a=!("object"!=typeof A||null==A||!A.compression)&&A.compression,n=t?t.toString().toLowerCase().endsWith(".pptx")?t:t+".pptx":"Presentation.pptx",[4,this.exportPresentation({compression:a,outputType:o?"nodebuffer":null}).then(function(A){return p(r,void 0,void 0,function(){return d(this,function(e){switch(e.label){case 0:return o?[4,new Promise(function(t,a){o.writeFile(n,A,function(e){e?a(e):t(n)})})]:[3,2];case 1:return[2,e.sent()];case 2:return[4,this.writeFileToBrowser(n,A)];case 3:return[2,e.sent()]}})})})];case 1:return[2,e.sent()]}})})},a.prototype.addSection=function(e){e?e.title||console.warn("addSection requires a title"):console.warn("addSection requires an argument");var t={_type:"user",_slides:[],title:e.title};e.order?this.sections.splice(e.order,0,t):this._sections.push(t)},a.prototype.addSlide=function(t){var a="string"==typeof t?t:null!=t&&t.masterName?t.masterName:"",e={_name:this.LAYOUTS[i].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1},A=(a&&(A=this.slideLayouts.filter(function(e){return e._name===a})[0])&&(e=A),new Be({addSlide:this.addNewSlide,getSlide:this.getSlide,presLayout:this.presLayout,setSlideNum:this.setSlideNumber,slideId:this.slides.length+256,slideRId:this.slides.length+2,slideNumber:this.slides.length+1,slideLayout:e}));return this._slides.push(A),null!=t&&t.sectionTitle?(e=this.sections.filter(function(e){return e.title===t.sectionTitle})[0])?e._slides.push(A):console.warn('addSlide: unable to find section with title: "'.concat(t.sectionTitle,'"')):this.sections&&0 opts.y = ").concat(r.y)),a.addTable(e.rows,{x:r.x||d[3],y:r.y,w:Number(o)/F,colW:s,autoPage:!1}),r.addImage&&(r.addImage.options=r.addImage.options||{},r.addImage.image&&(r.addImage.image.path||r.addImage.image.data)?a.addImage({path:r.addImage.image.path,data:r.addImage.image.data,x:r.addImage.options.x,y:r.addImage.options.y,w:r.addImage.options.w,h:r.addImage.options.h}):console.warn("Warning: tableToSlides.addImage requires either `path` or `data`")),r.addShape&&a.addShape(r.addShape.shapeName,r.addShape.options||{}),r.addTable&&a.addTable(r.addTable.rows,r.addTable.options||{}),r.addText&&a.addText(r.addText.text,r.addText.options||{})})},a}(); //# sourceMappingURL=pptxgen.min.js.map