"use strict";var e=require("./marp-cli-b9daa9b1.js"),t=require("./_commonjs-dynamic-modules-21d62193.js");require("process"),require("os"),require("tty"),require("yargs/yargs"),require("yargs"),require("fs"),require("path"),require("cosmiconfig"),require("util"),require("child_process"),require("url"),require("import-from"),require("stream"),require("events"),require("tmp"),require("@marp-team/marpit"),require("puppeteer-core"),require("net"),require("is-wsl"),require("crypto"),require("chokidar"),require("ws"),require("querystring"),require("serve-index"),require("@marp-team/marp-core/package.json");var a={};({get exports(){return a},set exports(e){a=e}}).exports=function e(a,r,n){function o(s,l){if(!r[s]){if(!a[s]){var c="function"==typeof t.c&&t.c;if(!l&&c)return c(s,!0);if(i)return i(s,!0);var p=new Error("Cannot find module '"+s+"'");throw p.code="MODULE_NOT_FOUND",p}var d=r[s]={exports:{}};a[s][0].call(d.exports,(function(e){return o(a[s][1][e]||e)}),d,d.exports,e,a,r,n)}return r[s].exports}for(var i="function"==typeof t.c&&t.c,s=0;s>2,s=(3&t)<<4|a>>4,l=1>6:64,c=2>4,a=(15&i)<<4|(s=o.indexOf(e.charAt(c++)))>>2,r=(3&s)<<6|(l=o.indexOf(e.charAt(c++))),h[p++]=t,64!==s&&(h[p++]=a),64!==l&&(h[p++]=r);return h}},{"./support":30,"./utils":32}],2:[function(e,t,a){var r=e("./external"),n=e("./stream/DataWorker"),o=e("./stream/Crc32Probe"),i=e("./stream/DataLengthProbe");function s(e,t,a,r,n){this.compressedSize=e,this.uncompressedSize=t,this.crc32=a,this.compression=r,this.compressedContent=n}s.prototype={getContentWorker:function(){var e=new n(r.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new i("data_length")),t=this;return e.on("end",(function(){if(this.streamInfo.data_length!==t.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")})),e},getCompressedWorker:function(){return new n(r.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},s.createWorkerFrom=function(e,t,a){return e.pipe(new o).pipe(new i("uncompressedSize")).pipe(t.compressWorker(a)).pipe(new i("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,a){var r=e("./stream/GenericWorker");a.STORE={magic:"\0\0",compressWorker:function(){return new r("STORE compression")},uncompressWorker:function(){return new r("STORE decompression")}},a.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,a){var r=e("./utils"),n=function(){for(var e,t=[],a=0;a<256;a++){e=a;for(var r=0;r<8;r++)e=1&e?3988292384^e>>>1:e>>>1;t[a]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==r.getTypeOf(e)?function(e,t,a,r){var o=n,i=0+a;e^=-1;for(var s=0;s>>8^o[255&(e^t[s])];return-1^e}(0|t,e,e.length):function(e,t,a,r){var o=n,i=0+a;e^=-1;for(var s=0;s>>8^o[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length):0}},{"./utils":32}],5:[function(e,t,a){a.base64=!1,a.binary=!1,a.dir=!1,a.createFolders=!0,a.date=null,a.compression=null,a.compressionOptions=null,a.comment=null,a.unixPermissions=null,a.dosPermissions=null},{}],6:[function(e,t,a){var r;r="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:r}},{lie:37}],7:[function(e,t,a){var r="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,n=e("pako"),o=e("./utils"),i=e("./stream/GenericWorker"),s=r?"uint8array":"array";function l(e,t){i.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}a.magic="\b\0",o.inherits(l,i),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(s,e.data),!1)},l.prototype.flush=function(){i.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new n[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},a.compressWorker=function(e){return new l("Deflate",e)},a.uncompressWorker=function(){return new l("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,a){function r(e,t){var a,r="";for(a=0;a>>=8;return r}function n(e,t,a,n,i,p){var d,h,f=e.file,u=e.compression,m=p!==s.utf8encode,g=o.transformTo("string",p(f.name)),A=o.transformTo("string",s.utf8encode(f.name)),y=f.comment,b=o.transformTo("string",p(y)),v=o.transformTo("string",s.utf8encode(y)),x=A.length!==f.name.length,_=v.length!==y.length,w="",C="",P="",S=f.dir,L=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!a||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),m||!x&&!_||(E|=2048);var k=0,R=0;S&&(k|=16),"UNIX"===i?(R=798,k|=function(e,t){var a=e;return e||(a=t?16893:33204),(65535&a)<<16}(f.unixPermissions,S)):(R=20,k|=function(e){return 63&(e||0)}(f.dosPermissions)),d=L.getUTCHours(),d<<=6,d|=L.getUTCMinutes(),d<<=5,d|=L.getUTCSeconds()/2,h=L.getUTCFullYear()-1980,h<<=4,h|=L.getUTCMonth()+1,h<<=5,h|=L.getUTCDate(),x&&(C=r(1,1)+r(l(g),4)+A,w+="up"+r(C.length,2)+C),_&&(P=r(1,1)+r(l(b),4)+v,w+="uc"+r(P.length,2)+P);var B="";return B+="\n\0",B+=r(E,2),B+=u.magic,B+=r(d,2),B+=r(h,2),B+=r(T.crc32,4),B+=r(T.compressedSize,4),B+=r(T.uncompressedSize,4),B+=r(g.length,2),B+=r(w.length,2),{fileRecord:c.LOCAL_FILE_HEADER+B+g+w,dirRecord:c.CENTRAL_FILE_HEADER+r(R,2)+B+r(b.length,2)+"\0\0\0\0"+r(k,4)+r(n,4)+g+w+b}}var o=e("../utils"),i=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),c=e("../signature");function p(e,t,a,r){i.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=a,this.encodeFileName=r,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(p,i),p.prototype.push=function(e){var t=e.meta.percent||0,a=this.entriesCount,r=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,i.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:a?(t+100*(a-r-1))/a:100}}))},p.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var a=n(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:a.fileRecord,meta:{percent:0}})}else this.accumulate=!0},p.prototype.closedSource=function(e){this.accumulate=!1;var t=this.streamFiles&&!e.file.dir,a=n(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(a.dirRecord),t)this.push({data:function(e){return c.DATA_DESCRIPTOR+r(e.crc32,4)+r(e.compressedSize,4)+r(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:a.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},p.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t=this.index;t--)a=(a<<8)+this.byteAt(t);return this.index+=e,a},readString:function(e){return r.transformTo("string",this.readData(e))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=n},{"../utils":32}],19:[function(e,t,a){var r=e("./Uint8ArrayReader");function n(e){r.call(this,e)}e("../utils").inherits(n,r),n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,a){var r=e("./DataReader");function n(e){r.call(this,e)}e("../utils").inherits(n,r),n.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},n.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},n.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},n.prototype.readData=function(e){this.checkOffset(e);var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./DataReader":18}],21:[function(e,t,a){var r=e("./ArrayReader");function n(e){r.call(this,e)}e("../utils").inherits(n,r),n.prototype.readData=function(e){if(this.checkOffset(e),0===e)return new Uint8Array(0);var t=this.data.subarray(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=n},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,a){var r=e("../utils"),n=e("../support"),o=e("./ArrayReader"),i=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=r.getTypeOf(e);return r.checkSupport(t),"string"!==t||n.uint8array?"nodebuffer"===t?new s(e):n.uint8array?new l(r.transformTo("uint8array",e)):new o(r.transformTo("array",e)):new i(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,a){a.LOCAL_FILE_HEADER="PK",a.CENTRAL_FILE_HEADER="PK",a.CENTRAL_DIRECTORY_END="PK",a.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",a.ZIP64_CENTRAL_DIRECTORY_END="PK",a.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,a){var r=e("./GenericWorker"),n=e("../utils");function o(e){r.call(this,"ConvertWorker to "+e),this.destType=e}n.inherits(o,r),o.prototype.processChunk=function(e){this.push({data:n.transformTo(this.destType,e.data),meta:e.meta})},t.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,a){var r=e("./GenericWorker"),n=e("../crc32");function o(){r.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(o,r),o.prototype.processChunk=function(e){this.streamInfo.crc32=n(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,a){var r=e("../utils"),n=e("./GenericWorker");function o(e){n.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}r.inherits(o,n),o.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}n.prototype.processChunk.call(this,e)},t.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,a){var r=e("../utils"),n=e("./GenericWorker");function o(e){n.call(this,"DataWorker");var t=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,e.then((function(e){t.dataIsReady=!0,t.data=e,t.max=e&&e.length||0,t.type=r.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}r.inherits(o,n),o.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,r.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(r.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var e=null,t=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":e=this.data.substring(this.index,t);break;case"uint8array":e=this.data.subarray(this.index,t);break;case"array":case"nodebuffer":e=this.data.slice(this.index,t)}return this.index=t,this.push({data:e,meta:{percent:this.max?this.index/this.max*100:0}})},t.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,a){function r(e){this.name=e||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}r.prototype={push:function(e){this.emit("data",e)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(e){this.emit("error",e)}return!0},error:function(e){return!this.isFinished&&(this.isPaused?this.generatedError=e:(this.isFinished=!0,this.emit("error",e),this.previous&&this.previous.error(e),this.cleanUp()),!0)},on:function(e,t){return this._listeners[e].push(t),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(e,t){if(this._listeners[e])for(var a=0;a "+e:e}},t.exports=r},{}],29:[function(e,t,a){var r=e("../utils"),n=e("./ConvertWorker"),o=e("./GenericWorker"),i=e("../base64"),s=e("../support"),l=e("../external"),c=null;if(s.nodestream)try{c=e("../nodejs/NodejsStreamOutputAdapter")}catch(e){}function p(e,t,a){var i=t;switch(t){case"blob":case"arraybuffer":i="uint8array";break;case"base64":i="string"}try{this._internalType=i,this._outputType=t,this._mimeType=a,r.checkSupport(i),this._worker=e.pipe(new n(i)),e.lock()}catch(e){this._worker=new o("error"),this._worker.error(e)}}p.prototype={accumulate:function(e){return function(e,t){return new l.Promise((function(a,n){var o=[],s=e._internalType,l=e._outputType,c=e._mimeType;e.on("data",(function(e,a){o.push(e),t&&t(a)})).on("error",(function(e){o=[],n(e)})).on("end",(function(){try{var e=function(e,t,a){switch(e){case"blob":return r.newBlob(r.transformTo("arraybuffer",t),a);case"base64":return i.encode(t);default:return r.transformTo(e,t)}}(l,function(e,t){var a,r=0,n=null,o=0;for(a=0;a>>6:(a<65536?t[i++]=224|a>>>12:(t[i++]=240|a>>>18,t[i++]=128|a>>>12&63),t[i++]=128|a>>>6&63),t[i++]=128|63&a);return t}(e)},a.utf8decode=function(e){return n.nodebuffer?r.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,a,n,o,i=e.length,l=new Array(2*i);for(t=a=0;t>10&1023,l[a++]=56320|1023&n)}return l.length!==a&&(l.subarray?l=l.subarray(0,a):l.length=a),r.applyFromCharCode(l)}(e=r.transformTo(n.uint8array?"uint8array":"array",e))},r.inherits(c,i),c.prototype.processChunk=function(e){var t=r.transformTo(n.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(n.uint8array){var o=t;(t=new Uint8Array(o.length+this.leftOver.length)).set(this.leftOver,0),t.set(o,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var i=function(e,t){var a;for((t=t||e.length)>e.length&&(t=e.length),a=t-1;0<=a&&128==(192&e[a]);)a--;return a<0||0===a?t:a+s[e[a]]>t?a:t}(t),l=t;i!==t.length&&(n.uint8array?(l=t.subarray(0,i),this.leftOver=t.subarray(i,t.length)):(l=t.slice(0,i),this.leftOver=t.slice(i,t.length))),this.push({data:a.utf8decode(l),meta:e.meta})},c.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:a.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},a.Utf8DecodeWorker=c,r.inherits(p,i),p.prototype.processChunk=function(e){this.push({data:a.utf8encode(e.data),meta:e.meta})},a.Utf8EncodeWorker=p},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(e,t,a){var r=e("./support"),n=e("./base64"),o=e("./nodejsUtils"),i=e("./external");function s(e){return e}function l(e,t){for(var a=0;a>8;this.dir=!!(16&this.externalFileAttributes),0==e&&(this.dosPermissions=63&this.externalFileAttributes),3==e&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||"/"!==this.fileNameStr.slice(-1)||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var e=r(this.extraFields[1].value);this.uncompressedSize===n.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===n.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===n.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===n.MAX_VALUE_32BITS&&(this.diskNumberStart=e.readInt(4))}},readExtraFields:function(e){var t,a,r,n=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4>>6:(a<65536?t[i++]=224|a>>>12:(t[i++]=240|a>>>18,t[i++]=128|a>>>12&63),t[i++]=128|a>>>6&63),t[i++]=128|63&a);return t},a.buf2binstring=function(e){return l(e,e.length)},a.binstring2buf=function(e){for(var t=new r.Buf8(e.length),a=0,n=t.length;a>10&1023,c[r++]=56320|1023&n)}return l(c,r)},a.utf8border=function(e,t){var a;for((t=t||e.length)>e.length&&(t=e.length),a=t-1;0<=a&&128==(192&e[a]);)a--;return a<0||0===a?t:a+i[e[a]]>t?a:t}},{"./common":41}],43:[function(e,t,a){t.exports=function(e,t,a,r){for(var n=65535&e|0,o=e>>>16&65535|0,i=0;0!==a;){for(a-=i=2e3>>1:e>>>1;t[a]=e}return t}();t.exports=function(e,t,a,n){var o=r,i=n+a;e^=-1;for(var s=n;s>>8^o[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,a){var r,n=e("../utils/common"),o=e("./trees"),i=e("./adler32"),s=e("./crc32"),l=e("./messages"),c=0,p=4,d=0,h=-2,f=-1,u=4,m=2,g=8,A=9,y=286,b=30,v=19,x=2*y+1,_=15,w=3,C=258,P=C+w+1,S=42,L=113,T=1,E=2,k=3,R=4;function B(e,t){return e.msg=l[t],t}function I(e){return(e<<1)-(4e.avail_out&&(a=e.avail_out),0!==a&&(n.arraySet(e.output,t.pending_buf,t.pending_out,a,e.next_out),e.next_out+=a,t.pending_out+=a,e.total_out+=a,e.avail_out-=a,t.pending-=a,0===t.pending&&(t.pending_out=0))}function O(e,t){o._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function D(e,t){e.pending_buf[e.pending++]=t}function M(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function z(e,t){var a,r,n=e.max_chain_length,o=e.strstart,i=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-P?e.strstart-(e.w_size-P):0,c=e.window,p=e.w_mask,d=e.prev,h=e.strstart+C,f=c[o+i-1],u=c[o+i];e.prev_length>=e.good_match&&(n>>=2),s>e.lookahead&&(s=e.lookahead);do{if(c[(a=t)+i]===u&&c[a+i-1]===f&&c[a]===c[o]&&c[++a]===c[o+1]){o+=2,a++;do{}while(c[++o]===c[++a]&&c[++o]===c[++a]&&c[++o]===c[++a]&&c[++o]===c[++a]&&c[++o]===c[++a]&&c[++o]===c[++a]&&c[++o]===c[++a]&&c[++o]===c[++a]&&ol&&0!=--n);return i<=e.lookahead?i:e.lookahead}function U(e){var t,a,r,o,l,c,p,d,h,f,u=e.w_size;do{if(o=e.window_size-e.lookahead-e.strstart,e.strstart>=u+(u-P)){for(n.arraySet(e.window,e.window,u,u,0),e.match_start-=u,e.strstart-=u,e.block_start-=u,t=a=e.hash_size;r=e.head[--t],e.head[t]=u<=r?r-u:0,--a;);for(t=a=u;r=e.prev[--t],e.prev[t]=u<=r?r-u:0,--a;);o+=u}if(0===e.strm.avail_in)break;if(c=e.strm,p=e.window,d=e.strstart+e.lookahead,f=void 0,(h=o)<(f=c.avail_in)&&(f=h),a=0===f?0:(c.avail_in-=f,n.arraySet(p,c.input,c.next_in,f,d),1===c.state.wrap?c.adler=i(c.adler,p,f,d):2===c.state.wrap&&(c.adler=s(c.adler,p,f,d)),c.next_in+=f,c.total_in+=f,f),e.lookahead+=a,e.lookahead+e.insert>=w)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<=w&&(e.ins_h=(e.ins_h<=w)if(r=o._tr_tally(e,e.strstart-e.match_start,e.match_length-w),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=w){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=w&&(e.ins_h=(e.ins_h<=w&&e.match_length<=e.prev_length){for(n=e.strstart+e.lookahead-w,r=o._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-w),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=n&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(a=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===c)return T;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var r=e.block_start+a;if((0===e.strstart||e.strstart>=r)&&(e.lookahead=e.strstart-r,e.strstart=r,O(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-P&&(O(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===p?(O(e,!0),0===e.strm.avail_out?k:R):(e.strstart>e.block_start&&(O(e,!1),e.strm.avail_out),T)})),new W(4,4,8,4,j),new W(4,5,16,8,j),new W(4,6,32,32,j),new W(4,4,16,16,G),new W(8,16,32,32,G),new W(8,16,128,128,G),new W(8,32,128,256,G),new W(32,128,258,1024,G),new W(32,258,258,4096,G)],a.deflateInit=function(e,t){return Y(e,t,g,15,8,0)},a.deflateInit2=Y,a.deflateReset=Q,a.deflateResetKeep=V,a.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?h:(e.state.gzhead=t,d):h},a.deflate=function(e,t){var a,n,i,l;if(!e||!e.state||5>8&255),D(n,n.gzhead.time>>16&255),D(n,n.gzhead.time>>24&255),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,255&n.gzhead.os),n.gzhead.extra&&n.gzhead.extra.length&&(D(n,255&n.gzhead.extra.length),D(n,n.gzhead.extra.length>>8&255)),n.gzhead.hcrc&&(e.adler=s(e.adler,n.pending_buf,n.pending,0)),n.gzindex=0,n.status=69):(D(n,0),D(n,0),D(n,0),D(n,0),D(n,0),D(n,9===n.level?2:2<=n.strategy||n.level<2?4:0),D(n,3),n.status=L);else{var f=g+(n.w_bits-8<<4)<<8;f|=(2<=n.strategy||n.level<2?0:n.level<6?1:6===n.level?2:3)<<6,0!==n.strstart&&(f|=32),f+=31-f%31,n.status=L,M(n,f),0!==n.strstart&&(M(n,e.adler>>>16),M(n,65535&e.adler)),e.adler=1}if(69===n.status)if(n.gzhead.extra){for(i=n.pending;n.gzindex<(65535&n.gzhead.extra.length)&&(n.pending!==n.pending_buf_size||(n.gzhead.hcrc&&n.pending>i&&(e.adler=s(e.adler,n.pending_buf,n.pending-i,i)),N(e),i=n.pending,n.pending!==n.pending_buf_size));)D(n,255&n.gzhead.extra[n.gzindex]),n.gzindex++;n.gzhead.hcrc&&n.pending>i&&(e.adler=s(e.adler,n.pending_buf,n.pending-i,i)),n.gzindex===n.gzhead.extra.length&&(n.gzindex=0,n.status=73)}else n.status=73;if(73===n.status)if(n.gzhead.name){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=s(e.adler,n.pending_buf,n.pending-i,i)),N(e),i=n.pending,n.pending===n.pending_buf_size)){l=1;break}l=n.gzindexi&&(e.adler=s(e.adler,n.pending_buf,n.pending-i,i)),0===l&&(n.gzindex=0,n.status=91)}else n.status=91;if(91===n.status)if(n.gzhead.comment){i=n.pending;do{if(n.pending===n.pending_buf_size&&(n.gzhead.hcrc&&n.pending>i&&(e.adler=s(e.adler,n.pending_buf,n.pending-i,i)),N(e),i=n.pending,n.pending===n.pending_buf_size)){l=1;break}l=n.gzindexi&&(e.adler=s(e.adler,n.pending_buf,n.pending-i,i)),0===l&&(n.status=103)}else n.status=103;if(103===n.status&&(n.gzhead.hcrc?(n.pending+2>n.pending_buf_size&&N(e),n.pending+2<=n.pending_buf_size&&(D(n,255&e.adler),D(n,e.adler>>8&255),e.adler=0,n.status=L)):n.status=L),0!==n.pending){if(N(e),0===e.avail_out)return n.last_flush=-1,d}else if(0===e.avail_in&&I(t)<=I(a)&&t!==p)return B(e,-5);if(666===n.status&&0!==e.avail_in)return B(e,-5);if(0!==e.avail_in||0!==n.lookahead||t!==c&&666!==n.status){var u=2===n.strategy?function(e,t){for(var a;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===c)return T;break}if(e.match_length=0,a=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,a&&(O(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===p?(O(e,!0),0===e.strm.avail_out?k:R):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?T:E}(n,t):3===n.strategy?function(e,t){for(var a,r,n,i,s=e.window;;){if(e.lookahead<=C){if(U(e),e.lookahead<=C&&t===c)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=w&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=w?(a=o._tr_tally(e,1,e.match_length-w),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(a=o._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),a&&(O(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===p?(O(e,!0),0===e.strm.avail_out?k:R):e.last_lit&&(O(e,!1),0===e.strm.avail_out)?T:E}(n,t):r[n.level].func(n,t);if(u!==k&&u!==R||(n.status=666),u===T||u===k)return 0===e.avail_out&&(n.last_flush=-1),d;if(u===E&&(1===t?o._tr_align(n):5!==t&&(o._tr_stored_block(n,0,0,!1),3===t&&(F(n.head),0===n.lookahead&&(n.strstart=0,n.block_start=0,n.insert=0))),N(e),0===e.avail_out))return n.last_flush=-1,d}return t!==p?d:n.wrap<=0?1:(2===n.wrap?(D(n,255&e.adler),D(n,e.adler>>8&255),D(n,e.adler>>16&255),D(n,e.adler>>24&255),D(n,255&e.total_in),D(n,e.total_in>>8&255),D(n,e.total_in>>16&255),D(n,e.total_in>>24&255)):(M(n,e.adler>>>16),M(n,65535&e.adler)),N(e),0=a.w_size&&(0===s&&(F(a.head),a.strstart=0,a.block_start=0,a.insert=0),f=new n.Buf8(a.w_size),n.arraySet(f,t,u-a.w_size,a.w_size,0),t=f,u=a.w_size),l=e.avail_in,c=e.next_in,p=e.input,e.avail_in=u,e.next_in=0,e.input=t,U(a);a.lookahead>=w;){for(r=a.strstart,o=a.lookahead-(w-1);a.ins_h=(a.ins_h<>>=v=b>>>24,u-=v,0==(v=b>>>16&255))S[o++]=65535&b;else{if(!(16&v)){if(0==(64&v)){b=m[(65535&b)+(f&(1<>>=v,u-=v),u<15&&(f+=P[r++]<>>=v=b>>>24,u-=v,!(16&(v=b>>>16&255))){if(0==(64&v)){b=g[(65535&b)+(f&(1<>>=v,u-=v,(v=o-i)<_){if(p<(v=_-v)&&a.sane){e.msg="invalid distance too far back",a.mode=30;break e}if(C=h,(w=0)===d){if(w+=c-v,v>3,f&=(1<<(u-=x<<3))-1,e.next_in=r,e.next_out=o,e.avail_in=r>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new r.Buf16(320),this.work=new r.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function A(e){var t;return e&&e.state?(t=e.state,e.total_in=e.total_out=t.total=0,e.msg="",t.wrap&&(e.adler=1&t.wrap),t.mode=h,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new r.Buf32(f),t.distcode=t.distdyn=new r.Buf32(u),t.sane=1,t.back=-1,p):d}function y(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,A(e)):d}function b(e,t){var a,r;return e&&e.state?(r=e.state,t<0?(a=0,t=-t):(a=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15=i.wsize?(r.arraySet(i.window,t,a-i.wsize,i.wsize,0),i.wnext=0,i.whave=i.wsize):(n<(o=i.wsize-i.wnext)&&(o=n),r.arraySet(i.window,t,a-n,o,i.wnext),(n-=o)?(r.arraySet(i.window,t,a-n,n,0),i.wnext=n,i.whave=i.wsize):(i.wnext+=o,i.wnext===i.wsize&&(i.wnext=0),i.whave>>8&255,a.check=o(a.check,U,2,0),x=v=0,a.mode=2;break}if(a.flags=0,a.head&&(a.head.done=!1),!(1&a.wrap)||(((255&v)<<8)+(v>>8))%31){e.msg="incorrect header check",a.mode=30;break}if(8!=(15&v)){e.msg="unknown compression method",a.mode=30;break}if(x-=4,N=8+(15&(v>>>=4)),0===a.wbits)a.wbits=N;else if(N>a.wbits){e.msg="invalid window size",a.mode=30;break}a.dmax=1<>8&1),512&a.flags&&(U[0]=255&v,U[1]=v>>>8&255,a.check=o(a.check,U,2,0)),x=v=0,a.mode=3;case 3:for(;x<32;){if(0===y)break e;y--,v+=f[g++]<>>8&255,U[2]=v>>>16&255,U[3]=v>>>24&255,a.check=o(a.check,U,4,0)),x=v=0,a.mode=4;case 4:for(;x<16;){if(0===y)break e;y--,v+=f[g++]<>8),512&a.flags&&(U[0]=255&v,U[1]=v>>>8&255,a.check=o(a.check,U,2,0)),x=v=0,a.mode=5;case 5:if(1024&a.flags){for(;x<16;){if(0===y)break e;y--,v+=f[g++]<>>8&255,a.check=o(a.check,U,2,0)),x=v=0}else a.head&&(a.head.extra=null);a.mode=6;case 6:if(1024&a.flags&&(y<(S=a.length)&&(S=y),S&&(a.head&&(N=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Array(a.head.extra_len)),r.arraySet(a.head.extra,f,g,S,N)),512&a.flags&&(a.check=o(a.check,f,S,g)),y-=S,g+=S,a.length-=S),a.length))break e;a.length=0,a.mode=7;case 7:if(2048&a.flags){if(0===y)break e;for(S=0;N=f[g+S++],a.head&&N&&a.length<65536&&(a.head.name+=String.fromCharCode(N)),N&&S>9&1,a.head.done=!0),e.adler=a.check=0,a.mode=12;break;case 10:for(;x<32;){if(0===y)break e;y--,v+=f[g++]<>>=7&x,x-=7&x,a.mode=27;break}for(;x<3;){if(0===y)break e;y--,v+=f[g++]<>>=1)){case 0:a.mode=14;break;case 1:if(C(a),a.mode=20,6!==t)break;v>>>=2,x-=2;break e;case 2:a.mode=17;break;case 3:e.msg="invalid block type",a.mode=30}v>>>=2,x-=2;break;case 14:for(v>>>=7&x,x-=7&x;x<32;){if(0===y)break e;y--,v+=f[g++]<>>16^65535)){e.msg="invalid stored block lengths",a.mode=30;break}if(a.length=65535&v,x=v=0,a.mode=15,6===t)break e;case 15:a.mode=16;case 16:if(S=a.length){if(y>>=5,x-=5,a.ndist=1+(31&v),v>>>=5,x-=5,a.ncode=4+(15&v),v>>>=4,x-=4,286>>=3,x-=3}for(;a.have<19;)a.lens[j[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,D={bits:a.lenbits},O=s(0,a.lens,0,19,a.lencode,0,a.work,D),a.lenbits=D.bits,O){e.msg="invalid code lengths set",a.mode=30;break}a.have=0,a.mode=19;case 19:for(;a.have>>16&255,R=65535&z,!((E=z>>>24)<=x);){if(0===y)break e;y--,v+=f[g++]<>>=E,x-=E,a.lens[a.have++]=R;else{if(16===R){for(M=E+2;x>>=E,x-=E,0===a.have){e.msg="invalid bit length repeat",a.mode=30;break}N=a.lens[a.have-1],S=3+(3&v),v>>>=2,x-=2}else if(17===R){for(M=E+3;x>>=E)),v>>>=3,x-=3}else{for(M=E+7;x>>=E)),v>>>=7,x-=7}if(a.have+S>a.nlen+a.ndist){e.msg="invalid bit length repeat",a.mode=30;break}for(;S--;)a.lens[a.have++]=N}}if(30===a.mode)break;if(0===a.lens[256]){e.msg="invalid code -- missing end-of-block",a.mode=30;break}if(a.lenbits=9,D={bits:a.lenbits},O=s(l,a.lens,0,a.nlen,a.lencode,0,a.work,D),a.lenbits=D.bits,O){e.msg="invalid literal/lengths set",a.mode=30;break}if(a.distbits=6,a.distcode=a.distdyn,D={bits:a.distbits},O=s(c,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,D),a.distbits=D.bits,O){e.msg="invalid distances set",a.mode=30;break}if(a.mode=20,6===t)break e;case 20:a.mode=21;case 21:if(6<=y&&258<=b){e.next_out=A,e.avail_out=b,e.next_in=g,e.avail_in=y,a.hold=v,a.bits=x,i(e,w),A=e.next_out,u=e.output,b=e.avail_out,g=e.next_in,f=e.input,y=e.avail_in,v=a.hold,x=a.bits,12===a.mode&&(a.back=-1);break}for(a.back=0;k=(z=a.lencode[v&(1<>>16&255,R=65535&z,!((E=z>>>24)<=x);){if(0===y)break e;y--,v+=f[g++]<>B)])>>>16&255,R=65535&z,!(B+(E=z>>>24)<=x);){if(0===y)break e;y--,v+=f[g++]<>>=B,x-=B,a.back+=B}if(v>>>=E,x-=E,a.back+=E,a.length=R,0===k){a.mode=26;break}if(32&k){a.back=-1,a.mode=12;break}if(64&k){e.msg="invalid literal/length code",a.mode=30;break}a.extra=15&k,a.mode=22;case 22:if(a.extra){for(M=a.extra;x>>=a.extra,x-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=23;case 23:for(;k=(z=a.distcode[v&(1<>>16&255,R=65535&z,!((E=z>>>24)<=x);){if(0===y)break e;y--,v+=f[g++]<>B)])>>>16&255,R=65535&z,!(B+(E=z>>>24)<=x);){if(0===y)break e;y--,v+=f[g++]<>>=B,x-=B,a.back+=B}if(v>>>=E,x-=E,a.back+=E,64&k){e.msg="invalid distance code",a.mode=30;break}a.offset=R,a.extra=15&k,a.mode=24;case 24:if(a.extra){for(M=a.extra;x>>=a.extra,x-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){e.msg="invalid distance too far back",a.mode=30;break}a.mode=25;case 25:if(0===b)break e;if(S=w-b,a.offset>S){if((S=a.offset-S)>a.whave&&a.sane){e.msg="invalid distance too far back",a.mode=30;break}L=S>a.wnext?(S-=a.wnext,a.wsize-S):a.wnext-S,S>a.length&&(S=a.length),T=a.window}else T=u,L=A-a.offset,S=a.length;for(by?(v=D[M+d[C]],I[F+d[C]]):(v=96,0),f=1<>E)+(u-=f)]=b<<24|v<<16|x|0,0!==u;);for(f=1<>=1;if(0!==f?(B&=f-1,B+=f):B=0,C++,0==--N[w]){if(w===S)break;w=t[a+d[C]]}if(L>>7)]}function I(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function F(e,t,a){e.bi_valid>h-a?(e.bi_buf|=t<>h-e.bi_valid,e.bi_valid+=a-h):(e.bi_buf|=t<>>=1,a<<=1,0<--t;);return a>>>1}function D(e,t,a){var r,n,o=new Array(d+1),i=0;for(r=1;r<=d;r++)o[r]=i=i+a[r-1]<<1;for(n=0;n<=t;n++){var s=e[2*n+1];0!==s&&(e[2*n]=O(o[s]++,s))}}function M(e){var t;for(t=0;t>1;1<=a;a--)j(e,o,a);for(n=l;a=e.heap[1],e.heap[1]=e.heap[e.heap_len--],j(e,o,1),r=e.heap[1],e.heap[--e.heap_max]=a,e.heap[--e.heap_max]=r,o[2*n]=o[2*a]+o[2*r],e.depth[n]=(e.depth[a]>=e.depth[r]?e.depth[a]:e.depth[r])+1,o[2*a+1]=o[2*r+1]=n,e.heap[1]=n++,j(e,o,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var a,r,n,o,i,s,l=t.dyn_tree,c=t.max_code,h=t.stat_desc.static_tree,f=t.stat_desc.has_stree,u=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,g=t.stat_desc.max_length,A=0;for(o=0;o<=d;o++)e.bl_count[o]=0;for(l[2*e.heap[e.heap_max]+1]=0,a=e.heap_max+1;a>=7;r>>=1)if(1&a&&0!==e.dyn_ltree[2*t])return 0;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return 1;for(t=32;t>>3,(o=e.static_len+3+7>>>3)<=n&&(n=o)):n=o=a+5,a+4<=n&&-1!==t?Y(e,t,a,r):4===e.strategy||o===n?(F(e,2+(r?1:0),3),G(e,x,_)):(F(e,4+(r?1:0),3),function(e,t,a,r){var n;for(F(e,t-257,5),F(e,a-1,5),F(e,r-4,4),n=0;n>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&a,e.last_lit++,0===t?e.dyn_ltree[2*a]++:(e.matches++,t--,e.dyn_ltree[2*(C[a]+i+1)]++,e.dyn_dtree[2*B(t)]++),e.last_lit===e.lit_bufsize-1},a._tr_align=function(e){F(e,2,3),N(e,f,x),function(e){16===e.bi_valid?(I(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,a){t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(t,a,r){(function(e){!function(e,t){if(!e.setImmediate){var a,r,n,o,i=1,s={},l=!1,c=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,a="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){h(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,a=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=a,t}}()?(o="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((n=new MessageChannel).port1.onmessage=function(e){h(e.data)},function(e){n.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(r=c.documentElement,function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,r.removeChild(t),t=null},r.appendChild(t)}):function(e){setTimeout(h,0,e)},p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r=100?e:"string"==typeof e&&e.indexOf("%")>-1?t&&"X"===t?Math.round(parseFloat(e)/100*a.width):t&&"Y"===t?Math.round(parseFloat(e)/100*a.height):Math.round(parseFloat(e)/100*a.width):0}function te(e){return e.replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}function ae(e,t,a){for(var r={},n=function(e){var t=o[e];t&&Object.keys(t).forEach((function(e){r[e]=t[e]}))},o=arguments,i=0;i<=arguments.length;i++)n(i);return r}function re(e){return void 0===e||null==e?"":e.toString().replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function ne(e){return"number"==typeof e&&e>100?e:("string"==typeof e&&(e=Number(e.replace(/in*/gi,""))),Math.round(l*e))}function oe(e){var t=Number(e)||0;return isNaN(t)?0:Math.round(t*c)}function ie(e){return e=e||0,Math.round(6e4*(e>360?e-360:e))}function se(e){var t=e.toString(16);return 1===t.length?"0"+t:t}function le(e,t,a){return(se(e)+se(t)+se(a)).toUpperCase()}function ce(e,t){var a=(e||"").replace("#","");h.test(a)||a===G.background1||a===G.background2||a===G.text1||a===G.text2||a===G.accent1||a===G.accent2||a===G.accent3||a===G.accent4||a===G.accent5||a===G.accent6||(console.warn('"'.concat(a,'" is not a valid scheme color or hex RGB! "').concat(x,"\" used instead. Only provide 6-digit RGB or 'pptx.SchemeColor' values!")),a=x);var r=h.test(a)?"srgbClr":"schemeClr",n='val="'+(h.test(a)?a.toUpperCase():a)+'"';return t?"").concat(t,""):"")}function pe(e){var t="solid",a="",r="",n="";return e&&("string"==typeof e?a=e:(e.type&&(t=e.type),e.color&&(a=e.color),e.alpha&&(r+='')),e.transparency&&(r+=''))),n+="solid"===t?"".concat(ce(a,r),""):""),n}function de(e){return e._rels.length+e._relsChart.length+e._relsMedia.length+1}function he(e,t,a,r){void 0===e&&(e=[]),void 0===t&&(t={});var o,i=T,s=1*l,p=0,d=0,h=[],u=ee(t.x,"X",a),m=ee(t.y,"Y",a),g=ee(t.w,"X",a),A=ee(t.h,"Y",a),y=g;function b(){var e=0;0===h.length&&(e=m||ne(i[0])),h.length>0&&(e=ne(t.autoPageSlideStartY||t.newSlideStartY||i[0])),s=(A||a.height)-e-ne(i[2]),h.length>1&&("number"==typeof t.autoPageSlideStartY?s=(A||a.height)-ne(t.autoPageSlideStartY+i[2]):"number"==typeof t.newSlideStartY?s=(A||a.height)-ne(t.newSlideStartY+i[2]):m&&(s=(A||a.height)-ne((m/l=a&&r1?e.text.split("\n").forEach((function(t){h.push({_type:Z.tablecell,text:t,options:n(n({},e.options),{breakLine:!0})})})):h.push({_type:Z.tablecell,text:e.text.trim(),options:e.options}),e.options&&e.options.breakLine&&(p.push(h),h=[])),h.length>0&&p.push(h)})),p.forEach((function(e){e.forEach((function(e){var t=[],a=(e.text+"").split(" ");a.forEach((function(r,o){var i=n({},e.options);i&&i.breakLine&&(i.breakLine=o+1===a.length),t.push({_type:Z.tablecell,text:r+(o+1o&&(i.push(t),t=[],a=""),t.push(e),a+=e.text.toString()})),t.length>0&&i.push(t)})),i}(e,i),r.push(o)})),t.verbose&&console.log("\n| SLIDE [".concat(h.length,"]: ROW [").concat(a,"]: START..."));for(var u=0,m=0,g=!1;!g;){var A=r[u],y=d[u];r.forEach((function(e){e._lineHeight>=m&&(m=e._lineHeight)})),p+m>s&&(t.verbose&&(console.log("\n|-----------------------------------------------------------------------|"),console.log("|-- NEW SLIDE CREATED (currTabH+currLineH > maxH) => ".concat((p/l).toFixed(2)," + ").concat((A._lineHeight/l).toFixed(2)," > ").concat(s/l)),console.log("|-----------------------------------------------------------------------|\n\n")),d.length>0&&d.map((function(e){return e.text.length})).reduce((function(e,t){return e+t}))>0&&w.rows.push(d),h.push(w),w={rows:[]},d=[],e.forEach((function(e){return d.push({_type:Z.tablecell,text:[],options:e.options})})),b(),p+=o+i,t.verbose&&console.log("| SLIDE [".concat(h.length,"]: emuSlideTabH ...... = ").concat((s/l).toFixed(1)," ")),p=0,(t.addHeaderToEach||t.autoPageRepeatHeader)&&t._arrObjTabHeadRows&&t._arrObjTabHeadRows.forEach((function(e){var t=[],a=0;e.forEach((function(e){t.push(e),e._lineHeight>a&&(a=e._lineHeight)})),w.rows.push(t),p+=a})),y=d[u]);var v=A._lines.shift();Array.isArray(y.text)&&(v?y.text=y.text.concat(v):0===y.text.length&&(y.text=y.text.concat({_type:Z.tablecell,text:""}))),u===r.length-1&&(p+=m),u=u0&&w.rows.push(d),t.verbose&&console.log("- SLIDE [".concat(h.length,"]: ROW [").concat(a,"]: ...COMPLETE ...... emuTabCurrH = ").concat((p/l).toFixed(2)," ( emuSlideTabH = ").concat((s/l).toFixed(2)," )"))})),h.push(w),t.verbose&&(console.log("\n|================================================|"),console.log("| FINAL: tableRowSlides.length = ".concat(h.length)),h.forEach((function(e){return console.log(e)})),console.log("|================================================|\n\n")),h}var fe={cover:function(e,t){var a=e.h/e.w,r=t.h/t.w>a,n=r?t.h/a:t.w,o=r?t.h:t.w*a,i=Math.round(5e4*(1-t.w/n)),s=Math.round(5e4*(1-t.h/o));return''},contain:function(e,t){var a=e.h/e.w,r=t.h/t.w>a,n=r?t.w:t.h/a,o=r?t.w*a:t.h,i=Math.round(5e4*(1-t.w/n)),s=Math.round(5e4*(1-t.h/o));return''},crop:function(e,t){var a=t.x,r=e.w-(t.x+t.w),n=t.y,o=e.h-(t.y+t.h);return''}};function ue(e){var t=e._name?'':"",a=1;return e._bkgdImgRid?t+=''):e.background&&e.background.color?t+="".concat(pe(e.background),""):!e.bkgd&&e._name&&e._name===P&&(t+=''),t+="",t+='',t+='',t+='',e._slideObjects.forEach((function(r,n){var i,s,c=0,p=0,d=ee("75%","X",e._presLayout),h=0,f="";switch(void 0!==e._slideLayout&&void 0!==e._slideLayout._slideObjects&&r.options&&r.options.placeholder&&(s=e._slideLayout._slideObjects.filter((function(e){return e.options.placeholder===r.options.placeholder}))[0]),r.options=r.options||{},void 0!==r.options.x&&(c=ee(r.options.x,"X",e._presLayout)),void 0!==r.options.y&&(p=ee(r.options.y,"Y",e._presLayout)),void 0!==r.options.w&&(d=ee(r.options.w,"X",e._presLayout)),void 0!==r.options.h&&(h=ee(r.options.h,"Y",e._presLayout)),s&&((s.options.x||0===s.options.x)&&(c=ee(s.options.x,"X",e._presLayout)),(s.options.y||0===s.options.y)&&(p=ee(s.options.y,"Y",e._presLayout)),(s.options.w||0===s.options.w)&&(d=ee(s.options.w,"X",e._presLayout)),(s.options.h||0===s.options.h)&&(h=ee(s.options.h,"Y",e._presLayout))),r.options.flipH&&(f+=' flipH="1"'),r.options.flipV&&(f+=' flipV="1"'),r.options.rotate&&(f+=' rot="'+ie(r.options.rotate)+'"'),r._type){case Z.table:var u,m=r.arrTabRows,g=r.options,A=0,b=0;m[0].forEach((function(e){u=e.options||null,A+=u&&u.colspan?Number(u.colspan):1}));var v='');if(v+=' ',v+=''),v+='',Array.isArray(g.colW)){v+="";for(var x=0;x'}v+=""}else{b=g.colW?g.colW:l,r.options.w&&!g.colW&&(b=Math.round(("number"==typeof r.options.w?r.options.w:1)/A)),v+="";for(var w=0;w';v+=""}m.forEach((function(e){for(var t,a,r,n=function(n){var i=e[n],s=null===(t=i.options)||void 0===t?void 0:t.colspan,l=null===(a=i.options)||void 0===a?void 0:a.rowspan;if(s&&s>1){var c=new Array(s-1).fill(void 0).map((function(e){return{_type:Z.tablecell,options:{rowspan:l},_hmerge:!0}}));e.splice.apply(e,o([n+1,0],c,!1)),n+=s}else n+=1;r=n},i=0;i1){var l={_type:Z.tablecell,options:{colspan:i},_rowContinue:o-1,_vmerge:!0,_hmerge:s};a.splice(t,0,l)}}))})),m.forEach((function(e,t){var a=0;Array.isArray(g.rowH)&&g.rowH[t]?a=ne(Number(g.rowH[t])):g.rowH&&!isNaN(Number(g.rowH))?a=ne(Number(g.rowH)):(r.options.cy||r.options.h)&&(a=Math.round((r.options.h?ne(r.options.h):"number"==typeof r.options.cy?r.options.cy:1)/m.length)),v+=''),e.forEach((function(e){var t,a,r=e,n={rowSpan:(null===(t=r.options)||void 0===t?void 0:t.rowspan)>1?r.options.rowspan:void 0,gridSpan:(null===(a=r.options)||void 0===a?void 0:a.colspan)>1?r.options.colspan:void 0,vMerge:r._vmerge?1:void 0,hMerge:r._hmerge?1:void 0},o=Object.keys(n).map((function(e){return[e,n[e]]})).filter((function(e){return e[0],!!e[1]})).map((function(e){var t=e[0],a=e[1];return"".concat(t,'="').concat(a,'"')})).join(" ");if(o&&(o=" "+o),r._hmerge||r._vmerge)v+="");else{var i=r.options||{};r.options=i,["align","bold","border","color","fill","fontFace","fontSize","margin","underline","valign"].forEach((function(e){g[e]&&!i[e]&&0!==i[e]&&(i[e]=g[e])}));var s=i.valign?' anchor="'+i.valign.replace(/^c$/i,"ctr").replace(/^m$/i,"ctr").replace("center","ctr").replace("middle","ctr").replace("top","t").replace("btm","b").replace("bottom","b")+'"':"",l=r._optImp&&r._optImp.fill&&r._optImp.fill.color?r._optImp.fill.color:r._optImp&&r._optImp.fill&&"string"==typeof r._optImp.fill?r._optImp.fill:"",c=(l=l||i.fill?i.fill:"")?pe(l):"",p=0===i.margin||i.margin?i.margin:y;Array.isArray(p)||"number"!=typeof p||(p=[p,p,p,p]);var d;d=p[0]>=1?' marL="'.concat(oe(p[3]),'" marR="').concat(oe(p[1]),'" marT="').concat(oe(p[0]),'" marB="').concat(oe(p[2]),'"'):' marL="'.concat(ne(p[3]),'" marR="').concat(ne(p[1]),'" marT="').concat(ne(p[0]),'" marB="').concat(ne(p[2]),'"'),v+="").concat(ye(r),""),i.border&&Array.isArray(i.border)&&[{idx:3,name:"lnL"},{idx:1,name:"lnR"},{idx:0,name:"lnT"},{idx:2,name:"lnB"}].forEach((function(e){"none"!==i.border[e.idx].type?(v+="'),v+="".concat(ce(i.border[e.idx].color),""),v+=''),v+="")):v+="")})),v+=c,v+=" ",v+=" "}})),v+=""})),v+=" ",v+=" ",v+=" ",t+=v+="",a++;break;case Z.text:case Z.placeholder:if(r.options.line||0!==h||(h=.3*l),r.options._bodyProp||(r.options._bodyProp={}),r.options.margin&&Array.isArray(r.options.margin)?(r.options._bodyProp.lIns=oe(r.options.margin[0]||0),r.options._bodyProp.rIns=oe(r.options.margin[1]||0),r.options._bodyProp.bIns=oe(r.options.margin[2]||0),r.options._bodyProp.tIns=oe(r.options.margin[3]||0)):"number"==typeof r.options.margin&&(r.options._bodyProp.lIns=oe(r.options.margin),r.options._bodyProp.rIns=oe(r.options.margin),r.options._bodyProp.bIns=oe(r.options.margin),r.options._bodyProp.tIns=oe(r.options.margin)),t+="",t+=''),r.options.hyperlink&&r.options.hyperlink.url&&(t+=''),r.options.hyperlink&&r.options.hyperlink.slide&&(t+=''),t+="",t+="':"/>"),t+="".concat("placeholder"===r._type?be(r):be(s),""),t+="",t+=""),t+=''),t+=''),"custGeom"===r.shape)t+="",t+="",t+="",t+="",t+="",t+="",t+='',t+="",t+=''),null===(i=r.options.points)||void 0===i||i.map((function(a,r){if("curve"in a)switch(a.curve.type){case"arc":t+='');break;case"cubic":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\n\t\t\t\t\t\t\t\t\t');break;case"quadratic":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')}else"close"in a?t+="":a.moveTo||0===r?t+=''):t+='')})),t+="",t+="",t+="";else{if(t+='',r.options.rectRadius)t+='');else if(r.options.angleRange){for(var C=0;C<2;C++){var P=r.options.angleRange[C];t+='')}r.options.arcThicknessRatio&&(t+=''))}t+=""}t+=r.options.fill?pe(r.options.fill):"",r.options.line&&(t+=r.options.line.width?''):"",r.options.line.color&&(t+=pe(r.options.line)),r.options.line.dashType&&(t+='')),r.options.line.beginArrowType&&(t+='')),r.options.line.endArrowType&&(t+='')),t+=""),r.options.shadow&&(r.options.shadow.type=r.options.shadow.type||"outer",r.options.shadow.blur=oe(r.options.shadow.blur||8),r.options.shadow.offset=oe(r.options.shadow.offset||4),r.options.shadow.angle=Math.round(6e4*(r.options.shadow.angle||270)),r.options.shadow.opacity=Math.round(1e5*(r.options.shadow.opacity||.75)),r.options.shadow.color=r.options.shadow.color||E.color,t+="",t+="',t+='',t+='',t+="",t+=""),t+="",t+=ye(r),t+="";break;case Z.image:var S=r.options.sizing,L=r.options.rounding,T=d,k=h;if(t+="",t+=" ",t+=''),r.hyperlink&&r.hyperlink.url&&(t+='')),r.hyperlink&&r.hyperlink.slide&&(t+='')),t+=" ",t+=' ',t+=" "+be(s)+"",t+=" ",t+="",(e._relsMedia||[]).filter((function(e){return e.rId===r.imageRid}))[0]&&"svg"===(e._relsMedia||[]).filter((function(e){return e.rId===r.imageRid}))[0].extn?(t+='',t+=r.options.transparency?' '):"",t+=" ",t+=' ',t+=' ',t+=" ",t+=" ",t+=""):(t+='',t+=r.options.transparency?' '):"",t+=""),S&&S.type){var R=S.w?ee(S.w,"X",e._presLayout):d,B=S.h?ee(S.h,"Y",e._presLayout):h,I=ee(S.x||0,"X",e._presLayout),F=ee(S.y||0,"Y",e._presLayout);t+=fe[S.type]({w:T,h:k},{w:R,h:B,x:I,y:F}),T=R,k=B}else t+=" ";t+="",t+="",t+=" ",t+=' ',t+=' ',t+=" ",t+=' ',t+="",t+="";break;case Z.media:"online"===r.mtype?(t+="",t+=" ",t+=''),t+=" ",t+=" ",t+=' ',t+=" ",t+=" ",t+=' ',t+=" ",t+=" ",t+=' ',t+=' ',t+=" ",t+=' ',t+=" ",t+=""):(t+="",t+=" ",t+=''),t+=' ',t+=" ",t+=' ',t+=" ",t+=' ',t+=' ',t+=" ",t+=" ",t+=" ",t+=" ",t+=' ',t+=" ",t+=" ",t+=' ',t+=' ',t+=" ",t+=' ',t+=" ",t+="");break;case Z.chart:t+="",t+=" ",t+=' '),t+=" ",t+=" ".concat(be(s),""),t+=" ",t+=' '),t+=' ',t+=' ',t+=' '),t+=" ",t+=" ",t+="";break;default:t+=""}})),e._slideNumberProps&&(e._slideNumberProps.align||(e._slideNumberProps.align="left"),t+=' ',t+="",t+="'),e._slideNumberProps.color&&(t+=pe(e._slideNumberProps.color)),e._slideNumberProps.fontFace&&(t+='')),t+=""),t+="",t+="",e._slideNumberProps.align.startsWith("l")?t+='':e._slideNumberProps.align.startsWith("c")?t+='':e._slideNumberProps.align.startsWith("r")?t+='':t+='',t+=''),t+="".concat(e._slideNum,''),t+=""),t+="",t+=""}function me(e,t){var a=0,r=''+p+'';return e._rels.forEach((function(e){a=Math.max(a,e.rId),e.type.toLowerCase().indexOf("hyperlink")>-1?"slide"===e.data?r+='':r+='':e.type.toLowerCase().indexOf("notesSlide")>-1&&(r+='')})),(e._relsChart||[]).forEach((function(e){a=Math.max(a,e.rId),r+=''})),(e._relsMedia||[]).forEach((function(e){a=Math.max(a,e.rId),e.type.toLowerCase().indexOf("image")>-1?r+='':e.type.toLowerCase().indexOf("audio")>-1?r.indexOf(' Target="'+e.Target+'"')>-1?r+='':r+='':e.type.toLowerCase().indexOf("video")>-1?r.indexOf(' Target="'+e.Target+'"')>-1?r+='':r+='':e.type.toLowerCase().indexOf("online")>-1&&(r.indexOf(' Target="'+e.Target+'"')>-1?r+='':r+='')})),t.forEach((function(e,t){r+=''})),r+=""}function ge(e,t){var a="",r="",n="",o="",i=t?"a:lvl1pPr":"a:pPr",s=oe(u),l="<".concat(i).concat(e.options.rtlMode?' rtl="1" ':"");if(e.options.align)switch(e.options.align){case"left":l+=' algn="l"';break;case"right":l+=' algn="r"';break;case"center":l+=' algn="ctr"';break;case"justify":l+=' algn="just"';break;default:l+=""}if(e.options.lineSpacing?r=''):e.options.lineSpacingMultiple&&(r='')),e.options.indentLevel&&!isNaN(Number(e.options.indentLevel))&&e.options.indentLevel>0&&(l+=' lvl="'.concat(e.options.indentLevel,'"')),e.options.paraSpaceBefore&&!isNaN(Number(e.options.paraSpaceBefore))&&e.options.paraSpaceBefore>0&&(n+='')),e.options.paraSpaceAfter&&!isNaN(Number(e.options.paraSpaceAfter))&&e.options.paraSpaceAfter>0&&(n+='')),"object"==typeof e.options.bullet)if(e&&e.options&&e.options.bullet&&e.options.bullet.indent&&(s=oe(e.options.bullet.indent)),e.options.bullet.type)"number"===e.options.bullet.type.toString().toLowerCase()&&(l+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?s+s*e.options.indentLevel:s,'" indent="-').concat(s,'"'),a=''));else if(e.options.bullet.characterCode){var c="&#x".concat(e.options.bullet.characterCode,";");!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.characterCode)&&(console.warn("Warning: `bullet.characterCode should be a 4-digit unicode charatcer (ex: 22AB)`!"),c=K.DEFAULT),l+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?s+s*e.options.indentLevel:s,'" indent="-').concat(s,'"'),a=''}else e.options.bullet.code?(c="&#x".concat(e.options.bullet.code,";"),!1===/^[0-9A-Fa-f]{4}$/.test(e.options.bullet.code)&&(console.warn("Warning: `bullet.code should be a 4-digit hex code (ex: 22AB)`!"),c=K.DEFAULT),l+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?s+s*e.options.indentLevel:s,'" indent="-').concat(s,'"'),a=''):(l+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?s+s*e.options.indentLevel:s,'" indent="-').concat(s,'"'),a=''));else!0===e.options.bullet?(l+=' marL="'.concat(e.options.indentLevel&&e.options.indentLevel>0?s+s*e.options.indentLevel:s,'" indent="-').concat(s,'"'),a='')):!1===e.options.bullet&&(l+=' indent="0" marL="0"',a="");if(e.options.tabStops&&Array.isArray(e.options.tabStops)){var p=e.options.tabStops.map((function(e){return'')})).join("");o="".concat(p,"")}return l+=">"+r+n+a+o,t&&(l+=Ae(e.options,!0)),l+""}function Ae(e,t){var a,r="",n=t?"a:defRPr":"a:rPr";if(r+="<"+n+' lang="'+(e.lang?e.lang:"en-US")+'"'+(e.lang?' altLang="en-US"':""),r+=e.fontSize?' sz="'+Math.round(e.fontSize)+'00"':"",r+=e.hasOwnProperty("bold")?' b="'.concat(e.bold?1:0,'"'):"",r+=e.hasOwnProperty("italic")?' i="'.concat(e.italic?1:0,'"'):"",r+=e.hasOwnProperty("strike")?' strike="'.concat("string"==typeof e.strike?e.strike:"sngStrike",'"'):"","object"==typeof e.underline&&(null===(a=e.underline)||void 0===a?void 0:a.style)?r+=' u="'.concat(e.underline.style,'"'):"string"==typeof e.underline?r+=' u="'.concat(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+=e.charSpacing?' spc="'.concat(Math.round(100*e.charSpacing),'" kern="0"'):"",r+=' dirty="0">',(e.color||e.fontFace||e.outline||"object"==typeof e.underline&&e.underline.color)&&(e.outline&&"object"==typeof e.outline&&(r+='').concat(pe(e.outline.color||"FFFFFF"),"")),e.color&&(r+=pe({color:e.color,transparency:e.transparency})),e.highlight&&(r+="".concat(ce(e.highlight),"")),"object"==typeof e.underline&&e.underline.color&&(r+="".concat(pe(e.underline.color),"")),e.glow&&(r+="".concat(function(e,t){var a="",r=ae(k,e),n=Math.round(r.size*c),o=r.color,i=Math.round(1e5*r.opacity);return a+=''),(a+=ce(o,'')))+""}(e.glow),"")),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+="\t",r+='\t\t',r+='\t\t\t',r+="\t\t",r+="\t",r+="")}return r+"")}function ye(e){var t=e.options||{},a=[],r=[];if(t&&e._type!==Z.tablecell&&(void 0===e.text||null===e.text))return"";var n,o,i=e._type===Z.tablecell?"":"";i+=(o="":"resize"===n.options.fit&&(o+="")),n.options.shrinkText&&(o+=""),o+=!1!==n.options._bodyProp.autoFit?"":"",o+=""):(o+=' wrap="square" rtlCol="0">',o+=""),n._type===Z.tablecell?"":o),0===t.h&&t.line&&t.align?i+='':"placeholder"===e._type?i+="".concat(ge(e,!0),""):i+="","string"==typeof e.text||"number"==typeof e.text?a.push({text:e.text.toString(),options:t||{}}):e.text&&!Array.isArray(e.text)&&"object"==typeof e.text&&Object.keys(e.text).indexOf("text")>-1?a.push({text:e.text||"",options:e.options||{}}):Array.isArray(e.text)&&(a=e.text.map((function(e){return{text:e.text,options:e.options}}))),a.forEach((function(e,a){e.text||(e.text=""),e.options=e.options||t||{},0===a&&e.options&&!e.options.bullet&&t.bullet&&(e.options.bullet=t.bullet),"string"!=typeof e.text&&"number"!=typeof e.text||(e.text=e.text.toString().replace(/\r*\n/g,p)),e.text.indexOf(p)>-1&&null===e.text.match(/\n$/g)?e.text.split(p).forEach((function(t){e.options.breakLine=!0,r.push({text:t,options:e.options})})):r.push(e)}));var s=[],l=[];return r.forEach((function(e,a){l.length>0&&(e.options.align||t.align)?e.options.align!=r[a-1].options.align&&(s.push(l),l=[]):l.length>0&&e.options.bullet&&l.length>0&&(s.push(l),l=[],e.options.breakLine=!1),l.push(e),l.length>0&&e.options.breakLine&&a+1";var n="0&&e.options.softBreakBefore&&(i+=""),e.options.align=e.options.align||t.align,e.options.lineSpacing=e.options.lineSpacing||t.lineSpacing,e.options.lineSpacingMultiple=e.options.lineSpacingMultiple||t.lineSpacingMultiple,e.options.indentLevel=e.options.indentLevel||t.indentLevel,e.options.paraSpaceBefore=e.options.paraSpaceBefore||t.paraSpaceBefore,e.options.paraSpaceAfter=e.options.paraSpaceAfter||t.paraSpaceAfter,n=ge(e,!1),i+=n.replace("",""),Object.entries(t).forEach((function(t){var a=t[0],r=t[1];e.options.hyperlink&&"color"===a||"bullet"===a||e.options[a]||(e.options[a]=r)})),i+=function(e){return e.text?"".concat(Ae(e.options,!1),"").concat(re(e.text),""):""}(e),(!e.text&&t.fontSize||e.options.fontSize)&&(r=!0,t.fontSize=t.fontSize||e.options.fontSize)})),e._type===Z.tablecell&&(t.fontSize||t.fontFace)?t.fontFace?(i+='',i+=''),i+=''),i+=''),i+=""):i+='':i+=r?'':''),i+=""})),i+=e._type===Z.tablecell?"":""}function be(e){if(!e)return"";var t=e.options&&e.options._placeholderIdx?e.options._placeholderIdx:"",a=e.options&&e.options._placeholderType?e.options._placeholderType:"";return"0?' hasCustomPrompt="1"':"","\n\t\t/>")}function ve(e,t,a){for(var r=0;r359)&&(console.warn("Warning: shadow.angle can only be 0-359"),e.angle=270),e.angle=Math.round(Number(e.angle))),e.opacity&&((isNaN(Number(e.opacity))||e.opacity<0||e.opacity>1)&&(console.warn("Warning: shadow.opacity can only be 0-1"),e.opacity=.75),e.opacity=Number(e.opacity)))}var _e=0;function we(e,t,a,r){function n(e){e&&"none"!==e.style&&(void 0!==e.size&&(isNaN(Number(e.size))||e.size<=0)&&(console.warn("Warning: chart.gridLine.size must be greater than 0."),delete e.size),e.style&&["solid","dash","dot"].indexOf(e.style)<0&&(console.warn("Warning: chart.gridLine.style options: `solid`, `dash`, `dot`."),delete e.style))}var o,i,s=++_e,l={_type:null,text:null,options:null,chartRid:null},c=[];return Array.isArray(t)?(t.forEach((function(e){c=c.concat(e.data)})),o=a||r):(c=a,o=r),c.forEach((function(e,t){e._dataIndex=t,void 0===e.labels||Array.isArray(e.labels[0])||(e.labels=[e.labels])})),(i=o&&"object"==typeof o?o:{})._type=t,i.x=void 0===i.x||null==i.x||isNaN(Number(i.x))?1:i.x,i.y=void 0===i.y||null==i.y||isNaN(Number(i.y))?1:i.y,i.w=i.w||"50%",i.h=i.h||"50%",i.objectName=i.objectName?re(i.objectName):"Chart ".concat(e._slideObjects.filter((function(e){return e._type===Z.chart})).length),["bar","col"].indexOf(i.barDir||"")<0&&(i.barDir="col"),i._type===Q.AREA&&["stacked","standard","percentStacked"].indexOf(i.barGrouping||"")<0&&(i.barGrouping="standard"),i._type===Q.BAR&&["clustered","stacked","percentStacked"].indexOf(i.barGrouping||"")<0&&(i.barGrouping="clustered"),i._type===Q.BAR3D&&["clustered","stacked","standard","percentStacked"].indexOf(i.barGrouping||"")<0&&(i.barGrouping="standard"),i.barGrouping&&i.barGrouping.indexOf("tacked")>-1&&(i.barGapWidthPct||(i.barGapWidthPct=50)),i.dataLabelPosition&&(i._type!==Q.AREA&&i._type!==Q.BAR3D&&i._type!==Q.DOUGHNUT&&i._type!==Q.RADAR||delete i.dataLabelPosition,i._type===Q.PIE&&["bestFit","ctr","inEnd","outEnd"].indexOf(i.dataLabelPosition)<0&&delete i.dataLabelPosition,i._type!==Q.BUBBLE&&i._type!==Q.BUBBLE3D&&i._type!==Q.LINE&&i._type!==Q.SCATTER||["b","ctr","l","r","t"].indexOf(i.dataLabelPosition)<0&&delete i.dataLabelPosition,i._type===Q.BAR&&(["stacked","percentStacked"].indexOf(i.barGrouping||"")<0&&["ctr","inBase","inEnd"].indexOf(i.dataLabelPosition)<0&&delete i.dataLabelPosition,["clustered"].indexOf(i.barGrouping||"")<0&&["ctr","inBase","inEnd","outEnd"].indexOf(i.dataLabelPosition)<0&&delete i.dataLabelPosition)),i.dataLabelBkgrdColors=(!0===i.dataLabelBkgrdColors||!1===i.dataLabelBkgrdColors)&&i.dataLabelBkgrdColors,["b","l","r","t","tr"].indexOf(i.legendPos||"")<0&&(i.legendPos="r"),["cone","coneToMax","box","cylinder","pyramid","pyramidToMax"].indexOf(i.bar3DShape||"")<0&&(i.bar3DShape="box"),["circle","dash","diamond","dot","none","square","triangle"].indexOf(i.lineDataSymbol||"")<0&&(i.lineDataSymbol="circle"),["gap","span"].indexOf(i.displayBlanksAs||"")<0&&(i.displayBlanksAs="span"),["standard","marker","filled"].indexOf(i.radarStyle||"")<0&&(i.radarStyle="standard"),i.lineDataSymbolSize=i.lineDataSymbolSize&&!isNaN(i.lineDataSymbolSize)?i.lineDataSymbolSize:6,i.lineDataSymbolLineSize=i.lineDataSymbolLineSize&&!isNaN(i.lineDataSymbolLineSize)?oe(i.lineDataSymbolLineSize):oe(.75),i.layout&&["x","y","w","h"].forEach((function(e){var t=i.layout[e];(isNaN(Number(t))||t<0||t>1)&&(console.warn("Warning: chart.layout."+e+" can only be 0-1"),delete i.layout[e])})),i.catGridLine=i.catGridLine||(i._type===Q.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),i.valGridLine=i.valGridLine||(i._type===Q.SCATTER?{color:"D9D9D9",size:1}:{}),i.serGridLine=i.serGridLine||(i._type===Q.SCATTER?{color:"D9D9D9",size:1}:{style:"none"}),n(i.catGridLine),n(i.valGridLine),n(i.serGridLine),xe(i.shadow),i.showDataTable=(!0===i.showDataTable||!1===i.showDataTable)&&i.showDataTable,i.showDataTableHorzBorder=!0!==i.showDataTableHorzBorder&&!1!==i.showDataTableHorzBorder||i.showDataTableHorzBorder,i.showDataTableVertBorder=!0!==i.showDataTableVertBorder&&!1!==i.showDataTableVertBorder||i.showDataTableVertBorder,i.showDataTableOutline=!0!==i.showDataTableOutline&&!1!==i.showDataTableOutline||i.showDataTableOutline,i.showDataTableKeys=!0!==i.showDataTableKeys&&!1!==i.showDataTableKeys||i.showDataTableKeys,i.showLabel=(!0===i.showLabel||!1===i.showLabel)&&i.showLabel,i.showLegend=(!0===i.showLegend||!1===i.showLegend)&&i.showLegend,i.showPercent=!0!==i.showPercent&&!1!==i.showPercent||i.showPercent,i.showTitle=(!0===i.showTitle||!1===i.showTitle)&&i.showTitle,i.showValue=(!0===i.showValue||!1===i.showValue)&&i.showValue,i.showLeaderLines=(!0===i.showLeaderLines||!1===i.showLeaderLines)&&i.showLeaderLines,i.catAxisLineShow=void 0===i.catAxisLineShow||i.catAxisLineShow,i.valAxisLineShow=void 0===i.valAxisLineShow||i.valAxisLineShow,i.serAxisLineShow=void 0===i.serAxisLineShow||i.serAxisLineShow,i.v3DRotX=!isNaN(i.v3DRotX)&&i.v3DRotX>=-90&&i.v3DRotX<=90?i.v3DRotX:30,i.v3DRotY=!isNaN(i.v3DRotY)&&i.v3DRotY>=0&&i.v3DRotY<=360?i.v3DRotY:30,i.v3DRAngAx=!0!==i.v3DRAngAx&&!1!==i.v3DRAngAx||i.v3DRAngAx,i.v3DPerspective=!isNaN(i.v3DPerspective)&&i.v3DPerspective>=0&&i.v3DPerspective<=240?i.v3DPerspective:30,i.barGapWidthPct=!isNaN(i.barGapWidthPct)&&i.barGapWidthPct>=0&&i.barGapWidthPct<=1e3?i.barGapWidthPct:150,i.barGapDepthPct=!isNaN(i.barGapDepthPct)&&i.barGapDepthPct>=0&&i.barGapDepthPct<=1e3?i.barGapDepthPct:150,i.chartColors=Array.isArray(i.chartColors)?i.chartColors:i._type===Q.PIE||i._type===Q.DOUGHNUT?M:D,i.chartColorsOpacity=i.chartColorsOpacity&&!isNaN(i.chartColorsOpacity)?i.chartColorsOpacity:null,i.border=i.border&&"object"==typeof i.border?i.border:null,!i.border||i.border.pt&&!isNaN(i.border.pt)||(i.border.pt=b.pt),!i.border||i.border.color&&"string"==typeof i.border.color||(i.border.color=b.color),i.plotArea=i.plotArea||{},i.plotArea.border=i.plotArea.border&&"object"==typeof i.plotArea.border?i.plotArea.border:null,!i.plotArea.border||i.plotArea.border.pt&&!isNaN(i.plotArea.border.pt)||(i.plotArea.border.pt=b.pt),!i.plotArea.border||i.plotArea.border.color&&"string"==typeof i.plotArea.border.color||(i.plotArea.border.color=b.color),i.border&&(i.plotArea.border=i.border),i.plotArea.fill=i.plotArea.fill||{color:null,transparency:null},i.fill&&(i.plotArea.fill.color=i.fill),i.chartArea=i.chartArea||{},i.chartArea.border=i.chartArea.border&&"object"==typeof i.chartArea.border?i.chartArea.border:null,i.chartArea.border&&(i.chartArea.border={color:i.chartArea.border.color||b.color,pt:i.chartArea.border.pt||b.pt}),i.chartArea.roundedCorners="boolean"!=typeof i.chartArea.roundedCorners||i.chartArea.roundedCorners,i.dataBorder=i.dataBorder&&"object"==typeof i.dataBorder?i.dataBorder:null,!i.dataBorder||i.dataBorder.pt&&!isNaN(i.dataBorder.pt)||(i.dataBorder.pt=.75),!i.dataBorder||i.dataBorder.color&&"string"==typeof i.dataBorder.color&&6===i.dataBorder.color.length||(i.dataBorder.color="F9F9F9"),i.dataLabelFormatCode||i._type!==Q.SCATTER||(i.dataLabelFormatCode="General"),i.dataLabelFormatCode||i._type!==Q.PIE&&i._type!==Q.DOUGHNUT||(i.dataLabelFormatCode=i.showPercent?"0%":"General"),i.dataLabelFormatCode=i.dataLabelFormatCode&&"string"==typeof i.dataLabelFormatCode?i.dataLabelFormatCode:"#,##0",i.dataLabelFormatScatter||i._type!==Q.SCATTER||(i.dataLabelFormatScatter="custom"),i.lineSize="number"==typeof i.lineSize?i.lineSize:2,i.valAxisMajorUnit="number"==typeof i.valAxisMajorUnit?i.valAxisMajorUnit:null,i._type===Q.AREA||i._type===Q.BAR||i._type===Q.BAR3D||i._type===Q.LINE?i.catAxisMultiLevelLabels=!!i.catAxisMultiLevelLabels:delete i.catAxisMultiLevelLabels,l._type="chart",l.options=i,l.chartRid=de(e),e._relsChart.push({rId:de(e),data:c,opts:i,type:i._type,globalId:s,fileName:"chart"+s+".xml",Target:"/ppt/charts/chart"+s+".xml"}),e._slideObjects.push(l),l}function Ce(e,t){var a={_type:null,text:null,options:null,image:null,imageRid:null,hyperlink:null},r=t.x||0,n=t.y||0,o=t.w||0,i=t.h||0,s=t.sizing||null,l=t.hyperlink||"",c=t.data||"",p=t.path||"",d=de(e),h=t.objectName?re(t.objectName):"Image ".concat(e._slideObjects.filter((function(e){return e._type===Z.image})).length);if(!p&&!c)return console.error("ERROR: addImage() requires either 'data' or 'path' parameter!"),null;if(p&&"string"!=typeof p)return console.error("ERROR: addImage() 'path' should be a string, ex: {path:'/img/sample.png'} - you sent ".concat(p)),null;if(c&&"string"!=typeof c)return console.error("ERROR: addImage() 'data' should be a string, ex: {data:'image/png;base64,NMP[...]'} - you sent ".concat(c)),null;if(c&&"string"==typeof c&&-1===c.toLowerCase().indexOf("base64,"))return console.error("ERROR: Image `data` value lacks a base64 header! Ex: 'image/png;base64,NMP[...]')"),null;var f=(p.substring(p.lastIndexOf("/")+1).split("?")[0].split(".").pop().split("#")[0]||"png").toLowerCase();if(c&&/image\/(\w+);/.exec(c)&&/image\/(\w+);/.exec(c).length>0?f=/image\/(\w+);/.exec(c)[1]:c&&c.toLowerCase().indexOf("image/svg+xml")>-1&&(f="svg"),a._type=Z.image,a.image=p||"preencoded.png",a.options={x:r||0,y:n||0,w:o||1,h:i||1,altText:t.altText||"",rounding:"boolean"==typeof t.rounding&&t.rounding,sizing:s,placeholder:t.placeholder,rotate:t.rotate||0,flipV:t.flipV||!1,flipH:t.flipH||!1,transparency:t.transparency||0,objectName:h},"svg"===f)e._relsMedia.push({path:p||c+"png",type:"image/png",extn:"png",data:c||"",rId:d,Target:"../media/image-"+e._slideNum+"-"+(e._relsMedia.length+1)+".png",isSvgPng:!0,svgSize:{w:ee(a.options.w,"X",e._presLayout),h:ee(a.options.h,"Y",e._presLayout)}}),a.imageRid=d,e._relsMedia.push({path:p||c,type:"image/svg+xml",extn:f,data:c||"",rId:d+1,Target:"../media/image-"+e._slideNum+"-"+(e._relsMedia.length+1)+"."+f}),a.imageRid=d+1;else{var u=e._relsMedia.filter((function(e){return e.path&&e.path===p&&e.type==="image/"+f&&!1===e.isDuplicate}))[0];e._relsMedia.push({path:p||"preencoded."+f,type:"image/"+f,extn:f,data:c||"",rId:d,isDuplicate:!(!u||!u.Target),Target:u&&u.Target?u.Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".").concat(f)}),a.imageRid=d}if("object"==typeof l){if(!l.url&&!l.slide)throw new Error("ERROR: `hyperlink` option requires either: `url` or `slide`");d++,e._rels.push({type:Z.hyperlink,data:l.slide?"slide":"dummy",rId:d,Target:l.url||l.slide.toString()}),l._rId=d,a.hyperlink=l}e._slideObjects.push(a)}function Pe(e,t,a){var r="object"==typeof a?a:{};r.line=r.line||{type:"none"};var n={_type:Z.text,shape:t||V.RECTANGLE,options:r,text:null};if(!t)throw new Error("Missing/Invalid shape parameter! Example: `addShape(pptxgen.shapes.LINE, {x:1, y:1, w:1, h:1});`");var o={type:r.line.type||"solid",color:r.line.color||S,transparency:r.line.transparency||0,width:r.line.width||1,dashType:r.line.dashType||"solid",beginArrowType:r.line.beginArrowType||null,endArrowType:r.line.endArrowType||null};if("object"==typeof r.line&&"none"!==r.line.type&&(r.line=o),r.x=r.x||(0===r.x?0:1),r.y=r.y||(0===r.y?0:1),r.w=r.w||(0===r.w?0:1),r.h=r.h||(0===r.h?0:1),r.objectName=r.objectName?re(r.objectName):"Shape ".concat(e._slideObjects.filter((function(e){return e._type===Z.text})).length),"string"==typeof r.line){var i=o;i.color=r.line+"",r.line=i}"number"==typeof r.lineSize&&(r.line.width=r.lineSize),"string"==typeof r.lineDash&&(r.line.dashType=r.lineDash),"string"==typeof r.lineHead&&(r.line.beginArrowType=r.lineHead),"string"==typeof r.lineTail&&(r.line.endArrowType=r.lineTail),Te(e,n),e._slideObjects.push(n)}function Se(e,t,a,r){var o={_type:r?Z.placeholder:Z.text,shape:a&&a.shape||V.RECTANGLE,text:t&&0!==t.length?t:[{text:"",options:null}],options:a||{}};function l(t){if(t.placeholder||(t.color=t.color||o.options.color||e.color||x),(t.placeholder||r)&&(t.bullet=t.bullet||!1),t.placeholder&&e._slideLayout&&e._slideLayout._slideObjects){var a=e._slideLayout._slideObjects.filter((function(e){return"placeholder"===e._type&&e.options&&e.options.placeholder&&e.options.placeholder===t.placeholder}))[0];a&&a.options&&(t=n(n({},t),a.options))}if(t.objectName=t.objectName?re(t.objectName):"Text ".concat(e._slideObjects.filter((function(e){return e._type===Z.text})).length),t.shape===V.LINE){var l={type:t.line.type||"solid",color:t.line.color||S,transparency:t.line.transparency||0,width:t.line.width||1,dashType:t.line.dashType||"solid",beginArrowType:t.line.beginArrowType||null,endArrowType:t.line.endArrowType||null};if("object"==typeof t.line&&(t.line=l),"string"==typeof t.line){var c=l;"string"==typeof t.line&&(c.color=t.line),t.line=c}"number"==typeof t.lineSize&&(t.line.width=t.lineSize),"string"==typeof t.lineDash&&(t.line.dashType=t.lineDash),"string"==typeof t.lineHead&&(t.line.beginArrowType=t.lineHead),"string"==typeof t.lineTail&&(t.line.endArrowType=t.lineTail)}return t.line=t.line||{},t.lineSpacing=t.lineSpacing&&!isNaN(t.lineSpacing)?t.lineSpacing:null,t.lineSpacingMultiple=t.lineSpacingMultiple&&!isNaN(t.lineSpacingMultiple)?t.lineSpacingMultiple:null,t._bodyProp=t._bodyProp||{},t._bodyProp.autoFit=t.autoFit||!1,t._bodyProp.anchor=t.placeholder?null:s.ctr,t._bodyProp.vert=t.vert||null,t._bodyProp.wrap="boolean"!=typeof t.wrap||t.wrap,(t.inset&&!isNaN(Number(t.inset))||0===t.inset)&&(t._bodyProp.lIns=ne(t.inset),t._bodyProp.rIns=ne(t.inset),t._bodyProp.tIns=ne(t.inset),t._bodyProp.bIns=ne(t.inset)),"boolean"==typeof t.underline&&!0===t.underline&&(t.underline={style:"sng"}),0===(t.align||"").toLowerCase().indexOf("c")?t._bodyProp.align=i.center:0===(t.align||"").toLowerCase().indexOf("l")?t._bodyProp.align=i.left:0===(t.align||"").toLowerCase().indexOf("r")?t._bodyProp.align=i.right:0===(t.align||"").toLowerCase().indexOf("j")&&(t._bodyProp.align=i.justify),0===(t.valign||"").toLowerCase().indexOf("b")?t._bodyProp.anchor=s.b:0===(t.valign||"").toLowerCase().indexOf("m")?t._bodyProp.anchor=s.ctr:0===(t.valign||"").toLowerCase().indexOf("t")&&(t._bodyProp.anchor=s.t),xe(t.shadow),t}o.options=l(o.options),o.text.forEach((function(e){return e.options=l(e.options||{})})),Te(e,o.text||""),e._slideObjects.push(o)}function Le(e,t){if(t.bkgd&&(t.background||(t.background={}),"string"==typeof t.bkgd?t.background.color=t.bkgd:(t.bkgd.data&&(t.background.data=t.bkgd.data),t.bkgd.path&&(t.background.path=t.bkgd.path),t.bkgd.src&&(t.background.path=t.bkgd.src))),t.background&&t.background.fill&&(t.background.color=t.background.fill),e&&(e.path||e.data)){e.path=e.path||"preencoded.png";var a=(e.path.split(".").pop()||"png").split("?")[0];"jpg"===a&&(a="jpeg"),t._relsMedia=t._relsMedia||[];var r=t._relsMedia.length+1;t._relsMedia.push({path:e.path,type:Z.image,extn:a,data:e.data||null,rId:r,Target:"../media/".concat((t._name||"").replace(/\s+/gi,"-"),"-image-").concat(t._relsMedia.length+1,".").concat(a)}),t._bkgdImgRid=r}}function Te(e,t){var a=[];"string"!=typeof t&&"number"!=typeof t&&(Array.isArray(t)?a=t:"object"==typeof t&&(a=[t]),a.forEach((function(t){if(Array.isArray(t))Te(e,t);else if(Array.isArray(t.text))Te(e,t.text);else if(t&&"object"==typeof t&&t.options&&t.options.hyperlink&&!t.options.hyperlink._rId)if("object"!=typeof t.options.hyperlink)console.log("ERROR: text `hyperlink` option should be an object. Ex: `hyperlink: {url:'https://github.com'}` ");else if(t.options.hyperlink.url||t.options.hyperlink.slide){var a=de(e);e._rels.push({type:Z.hyperlink,data:t.options.hyperlink.slide?"slide":"dummy",rId:a,Target:re(t.options.hyperlink.url)||t.options.hyperlink.slide.toString()}),t.options.hyperlink._rId=a}else console.log("ERROR: 'hyperlink requires either: `url` or `slide`'")})))}var Ee=function(){function e(e){this.addSlide=e.addSlide,this.getSlide=e.getSlide,this._name="Slide "+e.slideNumber,this._presLayout=e.presLayout,this._rId=e.slideRId,this._rels=[],this._relsChart=[],this._relsMedia=[],this._setSlideNum=e.setSlideNum,this._slideId=e.slideId,this._slideLayout=e.slideLayout||null,this._slideNum=e.slideNumber,this._slideObjects=[],this._slideNumberProps=this._slideLayout&&this._slideLayout._slideNumberProps?this._slideLayout._slideNumberProps:null}return Object.defineProperty(e.prototype,"bkgd",{get:function(){return this._bkgd},set:function(e){this._bkgd=e,this._background&&this._background.color||(this._background||(this._background={}),"string"==typeof e&&(this._background.color=e))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"background",{get:function(){return this._background},set:function(e){this._background=e,e&&Le(e,this)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(e){this._color=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hidden",{get:function(){return this._hidden},set:function(e){this._hidden=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideNumber",{get:function(){return this._slideNumberProps},set:function(e){this._slideNumberProps=e,this._setSlideNum(e)},enumerable:!1,configurable:!0}),e.prototype.addChart=function(e,t,a){return(a||{})._type=e,we(this,e,t,a),this},e.prototype.addImage=function(e){return Ce(this,e),this},e.prototype.addMedia=function(e){return function(e,t){var a,r=t.x||0,n=t.y||0,o=t.w||2,i=t.h||2,s=t.data||"",l=t.link||"",c=t.path||"",p=t.type||"audio",d=t.cover||"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAHCCAYAAAAXY63IAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHg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AABAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAAIEAAAAABAgAACBAAAAABAgAACBAAAAABAgAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAAAgQAAECAAAAAAgQAAECAAAAAAgQAABAgAAAAAgQAABAgAAAAAgQAABAgAACAAAEAABAgAACAAAEAABAgAACAAAEAAASIIQAAAAQIAAAgQAAAAAQIAAAgQAAAAAQIAAAgQAAAAAECAAAgQAAAAAECAAAgQAAAAAECAAAIEAAAAAECAAAIEAAAAAECAAAIEAAAQIAAAAAIEAAAQIAAAAAIEAAAQIAAAAACBAAAQIAAAAACBAAAQIAAAAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAAACBAAAECAAAIAAAQAAECAAAIAAAQAAECAAAIAAAQAABAgAAIAAAQAABAgAAIAAAQAABAgAACBAAAAAdu0iIqKqKiMBAADs3f8NAFFjCf5mB+leAAAAAElFTkSuQmCC",h=t.objectName?re(t.objectName):"Media ".concat(e._slideObjects.filter((function(e){return e._type===Z.media})).length),f={_type:Z.media};if(!c&&!s&&"online"!==p)throw new Error("addMedia() error: either 'data' or 'path' are required!");if(s&&-1===s.toLowerCase().indexOf("base64,"))throw new Error("addMedia() error: `data` value lacks a base64 header! Ex: 'video/mpeg;base64,NMP[...]')");if("online"===p&&!l)throw new Error("addMedia() error: online videos require `link` value");if(a=t.extn||(s?s.split(";")[0].split("/")[1]:c.split(".").pop())||"mp3",f.mtype=p,f.media=c||"preencoded.mov",f.options={},f.options.x=r,f.options.y=n,f.options.w=o,f.options.h=i,f.options.objectName=h,"online"===p){var u=de(e);e._relsMedia.push({path:c||"preencoded"+a,data:"dummy",type:"online",extn:a,rId:u,Target:l}),f.mediaRid=u,e._relsMedia.push({path:"preencoded.png",data:d,type:"image/png",extn:"png",rId:de(e),Target:"../media/image-"+e._slideNum+"-"+(e._relsMedia.length+1)+".png"})}else{var m=e._relsMedia.filter((function(e){return e.path&&e.path===c&&e.type===p+"/"+a&&!1===e.isDuplicate}))[0];u=de(e),e._relsMedia.push({path:c||"preencoded"+a,type:p+"/"+a,extn:a,data:s||"",rId:u,isDuplicate:!(!m||!m.Target),Target:m&&m.Target?m.Target:"../media/media-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".").concat(a)}),f.mediaRid=u,e._relsMedia.push({path:c||"preencoded"+a,type:p+"/"+a,extn:a,data:s||"",rId:de(e),isDuplicate:!(!m||!m.Target),Target:m&&m.Target?m.Target:"../media/media-".concat(e._slideNum,"-").concat(e._relsMedia.length+0,".").concat(a)}),e._relsMedia.push({path:"preencoded.png",type:"image/png",extn:"png",data:d,rId:de(e),Target:"../media/image-".concat(e._slideNum,"-").concat(e._relsMedia.length+1,".png")})}e._slideObjects.push(f)}(this,e),this},e.prototype.addNotes=function(e){return function(e,t){e._slideObjects.push({_type:Z.notes,text:[{text:t}]})}(this,e),this},e.prototype.addShape=function(e,t){return Pe(this,e,t),this},e.prototype.addTable=function(e,t){return function(e,t,a,r,n,o,i){var s=[e],c=a&&"object"==typeof a?a:{};if(c.objectName=c.objectName?re(c.objectName):"Table ".concat(e._slideObjects.filter((function(e){return e._type===Z.table})).length),null===t||0===t.length||!Array.isArray(t))throw new Error("addTable: Array expected! EX: 'slide.addTable( [rows], {options} );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");if(!t[0]||!Array.isArray(t[0]))throw new Error("addTable: 'rows' should be an array of cells! EX: 'slide.addTable( [ ['A'], ['B'], {text:'C',options:{align:'center'}} ] );' (https://gitbrent.github.io/PptxGenJS/docs/api-tables.html)");var p=[];t.forEach((function(e){var t=[];Array.isArray(e)?e.forEach((function(e){var a={_type:Z.tablecell,text:"",options:"object"==typeof e&&e.options?e.options:{}};"string"==typeof e||"number"==typeof e?a.text=e.toString():e.text&&("string"==typeof e.text||"number"==typeof e.text?a.text=e.text.toString():e.text&&(a.text=e.text),e.options&&"object"==typeof e.options&&(a.options=e.options)),a.options.border=a.options.border||c.border||[{type:"none"},{type:"none"},{type:"none"},{type:"none"}];var r=a.options.border;Array.isArray(r)||"object"!=typeof r||(a.options.border=[r,r,r,r]),a.options.border[0]||(a.options.border[0]={type:"none"}),a.options.border[1]||(a.options.border[1]={type:"none"}),a.options.border[2]||(a.options.border[2]={type:"none"}),a.options.border[3]||(a.options.border[3]={type:"none"}),[0,1,2,3].forEach((function(e){a.options.border[e]={type:a.options.border[e].type||m,color:a.options.border[e].color||g,pt:"number"==typeof a.options.border[e].pt?a.options.border[e].pt:A}})),t.push(a)})):(console.log("addTable: tableRows has a bad row. A row should be an array of cells. You provided:"),console.log(e)),p.push(t)})),c.x=ee(c.x||(0===c.x?0:l/2),"X",n),c.y=ee(c.y||(0===c.y?0:l/2),"Y",n),c.h&&(c.h=ee(c.h,"Y",n)),c.fontSize=c.fontSize||_,c.margin=0===c.margin||c.margin?c.margin:y,"number"==typeof c.margin&&(c.margin=[Number(c.margin),Number(c.margin),Number(c.margin),Number(c.margin)]),c.color||(c.color=c.color||x),"string"==typeof c.border?(console.warn("addTable `border` option must be an object. Ex: `{border: {type:'none'}}`"),c.border=null):Array.isArray(c.border)&&[0,1,2,3].forEach((function(e){c.border[e]=c.border[e]?{type:c.border[e].type||m,color:c.border[e].color||g,pt:c.border[e].pt||A}:{type:"none"}})),c.autoPage="boolean"==typeof c.autoPage&&c.autoPage,c.autoPageRepeatHeader="boolean"==typeof c.autoPageRepeatHeader&&c.autoPageRepeatHeader,c.autoPageHeaderRows=void 0===c.autoPageHeaderRows||isNaN(Number(c.autoPageHeaderRows))?1:Number(c.autoPageHeaderRows),c.autoPageLineWeight=void 0===c.autoPageLineWeight||isNaN(Number(c.autoPageLineWeight))?0:Number(c.autoPageLineWeight),c.autoPageLineWeight&&(c.autoPageLineWeight>1?c.autoPageLineWeight=1:c.autoPageLineWeight<-1&&(c.autoPageLineWeight=-1));var d=T;if(r&&void 0!==r._margin&&(Array.isArray(r._margin)?d=r._margin:isNaN(Number(r._margin))||(d=[Number(r._margin),Number(r._margin),Number(r._margin),Number(r._margin)])),c.colW){var h=p[0].reduce((function(e,t){return t&&t.options&&t.options.colspan&&"number"==typeof t.options.colspan?e+=t.options.colspan:e+=1,e}),0);"string"==typeof c.colW||"number"==typeof c.colW||c.colW&&Array.isArray(c.colW)&&1===c.colW.length&&h>1?(c.w=Math.floor(Number(c.colW)*h),c.colW=null):c.colW&&Array.isArray(c.colW)&&c.colW.length!==h&&(console.warn("addTable: mismatch: (colW.length != data.length) Therefore, defaulting to evenly distributed col widths."),c.colW=null)}else c.w?c.w=ee(c.w,"X",n):c.w=Math.floor(n._sizeW/l-d[1]-d[3]);c.x&&c.x<20&&(c.x=ne(c.x)),c.y&&c.y<20&&(c.y=ne(c.y)),c.w&&c.w<20&&(c.w=ne(c.w)),c.h&&c.h<20&&(c.h=ne(c.h)),p.forEach((function(e){e.forEach((function(t,a){"number"==typeof t||"string"==typeof t?e[a]={_type:Z.tablecell,text:e[a].toString(),options:c}:"object"==typeof t&&("number"==typeof t.text?e[a].text=e[a].text.toString():void 0!==t.text&&null!==t.text||(e[a].text=""),e[a].options=t.options||{},e[a]._type=Z.tablecell)}))})),c&&!1===c.autoPage?(Te(e,p),e._slideObjects.push({_type:Z.table,arrTabRows:p,options:Object.assign({},c)})):(c.autoPageRepeatHeader&&(c._arrObjTabHeadRows=p.filter((function(e,t){return t0&&(c.y=ne(c.autoPageSlideStartY||c.newSlideStartY||d[0]));var n=i(e._slideNum+a);c.autoPage=!1,Te(n,t.rows),n.addTable(t.rows,Object.assign({},c))})))}(this,e,t,this._slideLayout,this._presLayout,this.addSlide,this.getSlide),this},e.prototype.addText=function(e,t){return Se(this,"string"==typeof e||"number"==typeof e?[{text:e,options:t}]:e,t,!1),this},e}();function ke(e,t,a,r,n,o){var i="";switch(e){case Q.AREA:case Q.BAR:case Q.BAR3D:case Q.LINE:case Q.RADAR:i+=""),e===Q.AREA&&"stacked"===a.barGrouping&&(i+=''),e!==Q.BAR&&e!==Q.BAR3D||(i+='',i+=''),e===Q.RADAR&&(i+=''),i+='';var s=-1;t.forEach((function(r){s++,i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+Fe(r._dataIndex+r.labels.length+1)+"$1",i+=' '+re(r.name)+"",i+=" ",i+=" ";var n=a.chartColors?a.chartColors[s%a.chartColors.length]:null;i+=" ","transparent"===n?i+="":a.chartColorsOpacity?i+=""+ce(n,''))+"":i+=""+ce(n)+"",e===Q.LINE||e===Q.RADAR?0===a.lineSize?i+="":(i+=''+ce(n)+"",i+=''):a.dataBorder&&(i+=''+ce(a.dataBorder.color)+''),i+=Ne(a.shadow,L),i+=" ",i+=' ',e!==Q.RADAR&&(i+="",i+=''),a.dataLabelBkgrdColors&&(i+="".concat(ce(n),"")),i+="",i+=''),i+="".concat(ce(a.dataLabelColor||x),""),i+=''),i+="",a.dataLabelPosition&&(i+='')),i+='',i+=''),i+=''),i+=''),i+=""),e!==Q.LINE&&e!==Q.RADAR||(i+="",i+=' ',a.lineDataSymbolSize&&(i+=' '),i+=" ",i+=" "+ce(a.chartColors[r._dataIndex+1>a.chartColors.length?Math.floor(Math.random()*a.chartColors.length):r._dataIndex])+"",i+=' '+ce(a.lineDataSymbolLineColor||n)+'',i+=" ",i+=" ",i+=""),e!==Q.BAR&&e!==Q.BAR3D||1!==t.length||!(a.chartColors&&a.chartColors!==D&&a.chartColors.length>1||a.invertedColors&&a.invertedColors.length)||r.values.forEach((function(t,r){var n=t<0?a.invertedColors||a.chartColors||D:a.chartColors||[];i+=" ",i+=' ',i+=' ',i+=' ',i+=" ",0===a.lineSize?i+="":e===Q.BAR?(i+="",i+=' ',i+=""):(i+="",i+=" ",i+=' ',i+=" ",i+=""),i+=Ne(a.shadow,L),i+=" ",i+=" "})),i+="",a.catLabelFormatCode?(i+=" ",i+=" Sheet1!$A$2:$A$"+(r.labels[0].length+1)+"",i+=" ",i+=" "+(a.catLabelFormatCode||"General")+"",i+=' ',r.labels[0].forEach((function(e,t){i+=''+re(e)+""})),i+=" ",i+=" "):(i+=" ",i+=" Sheet1!$A$2:$"+Fe(r.labels.length)+"$"+(r.labels[0].length+1)+"",i+=" ",i+='\t ',r.labels.forEach((function(e){i+=" ",e.forEach((function(e,t){i+=''+re(e)+""})),i+=" "})),i+=" ",i+=" "),i+="",i+="",i+=" ",i+="Sheet1!$".concat(Fe(r._dataIndex+r.labels.length+1),"$2:$").concat(Fe(r._dataIndex+r.labels.length+1),"$").concat(r.labels[0].length+1,""),i+=" ",i+=" "+(a.valLabelFormatCode||a.dataTableFormatCode||"General")+"",i+=' ',r.values.forEach((function(e,t){return i+='').concat(e||0===e?e:"","")})),i+=" ",i+=" ",i+="",e===Q.LINE&&(i+=''),i+=""})),i+=" ",i+=' '),i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+ce(a.dataLabelColor||x)+"",i+=' ',i+=" ",i+=" ",i+=" ",a.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' '),i+=" ",e===Q.BAR?(i+=' ',i+=' -1?100:a.barOverlapPct?a.barOverlapPct:0)+'"/>'):e===Q.BAR3D?(i+=' ',i+=' ',i+=' '):e===Q.LINE&&(i+=' '),i+=''),i+="");break;case Q.SCATTER:i+="",i+='',i+='',s=-1,t.filter((function(e,t){return t>0})).forEach((function(e,r){s++,i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+Fe(r+2)+"$1",i+=' '+re(e.name)+"",i+=" ",i+=" ",i+=" ";var n=a.chartColors[s%a.chartColors.length];if("transparent"===n?i+="":a.chartColorsOpacity?i+=""+ce(n,'')+"":i+=""+ce(n)+"",0===a.lineSize?i+="":(i+=''+ce(n)+"",i+=''),i+=Ne(a.shadow,L),i+=" ",i+="",i+=' ',a.lineDataSymbolSize&&(i+=' '),i+=" ",i+=" "+ce(a.chartColors[r+1>a.chartColors.length?Math.floor(Math.random()*a.chartColors.length):r])+"",i+=' '+ce(a.lineDataSymbolLineColor||a.chartColors[s%a.chartColors.length])+'',i+=" ",i+=" ",i+="",a.showLabel){var o=te("-xxxx-xxxx-xxxx-xxxxxxxxxxxx");!e.labels[0]||"custom"!==a.dataLabelFormatScatter&&"customXY"!==a.dataLabelFormatScatter||(i+="",e.labels[0].forEach((function(t,r){"custom"!==a.dataLabelFormatScatter&&"customXY"!==a.dataLabelFormatScatter||(i+=" ",i+=' ',i+=" ",i+=" ",i+="\t\t\t",i+="\t\t\t\t",i+="\t\t\t",i+=" \t",i+=" \t",i+="\t\t\t\t",i+="\t\t\t\t\t",i+="\t\t\t\t",i+=" \t",i+=' \t\t',i+=" \t\t"+re(t)+"",i+=" \t","customXY"!==a.dataLabelFormatScatter||/^ *$/.test(t)||(i+=" \t",i+=' \t\t',i+=" \t\t (",i+=" \t",i+=' \t',i+=' \t\t',i+=" \t\t",i+=" \t\t\t",i+=" \t\t",i+=" \t\t["+re(e.name)+"",i+=" \t",i+=" \t",i+=' \t\t',i+=" \t\t, ",i+=" \t",i+=' \t',i+=' \t\t',i+=" \t\t",i+=" \t\t\t",i+=" \t\t",i+=" \t\t["+re(e.name)+"]",i+=" \t",i+=" \t",i+=' \t\t',i+=" \t\t)",i+=" \t",i+=' \t'),i+=" \t",i+=" ",i+=" ",i+=" ",i+=" \t",i+=" \t",i+=" \t\t",i+=" \t",i+=" \t",i+=" ",a.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+='\t ',i+=" ",i+=' ',i+=' ',i+='\t\t\t',i+=" ",i+="\t\t",i+="")})),i+=""),"XY"===a.dataLabelFormatScatter&&(i+="",i+="\t",i+="\t\t",i+="\t\t",i+="\t\t\t",i+="\t\t",i+="\t \t",i+="\t",i+="\t",i+="\t\t",i+="\t\t\t",i+="\t\t",i+="\t\t",i+="\t\t",i+="\t \t",i+=" \t\t",i+="\t \t",i+='\t \t',i+="\t\t",i+="\t",a.dataLabelPosition&&(i+=' '),i+='\t',i+=' '),i+=' '),i+=' '),i+='\t',i+='\t',i+="\t",i+='\t\t',i+='\t\t\t',i+="\t\t",i+="\t",i+="")}1===t.length&&a.chartColors!==D&&e.values.forEach((function(e,t){var r=e<0?a.invertedColors||a.chartColors||D:a.chartColors||[];i+=" ",i+=' ',i+=' ',i+=' ',i+=" ",0===a.lineSize?i+="":(i+="",i+=' ',i+=""),i+=Ne(a.shadow,L),i+=" ",i+=" "})),i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(t[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',t[0].values.forEach((function(e,t){i+=''+(e||0===e?e:"")+""})),i+=" ",i+=" ",i+="",i+="",i+=" ",i+=" Sheet1!$"+Fe(r+2)+"$2:$"+Fe(r+2)+"$"+(t[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',t[0].values.forEach((function(t,a){i+=''+(e.values[a]||0===e.values[a]?e.values[a]:"")+""})),i+=" ",i+=" ",i+="",i+='',i+=""})),i+=" ",i+=' '),i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=" "+ce(a.dataLabelColor||x)+"",i+=' ',i+=" ",i+=" ",i+=" ",a.dataLabelPosition&&(i+=' '),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" ",i+=''),i+="";break;case Q.BUBBLE:case Q.BUBBLE3D:i+="",i+='',s=-1;var l=1;t.filter((function(e,t){return t>0})).forEach((function(r,n){s++,i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$"+Fe(l+1)+"$1",i+=' '+re(r.name)+"",i+=" ",i+=" ",i+="";var o=a.chartColors[s%a.chartColors.length];"transparent"===o?i+="":a.chartColorsOpacity?i+=""+ce(o,'')+"":i+=""+ce(o)+"",0===a.lineSize?i+="":a.dataBorder?i+=''+ce(a.dataBorder.color)+'':(i+=''+ce(o)+"",i+=''),i+=Ne(a.shadow,L),i+="",i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(t[0].values.length+1)+"",i+=" ",i+=" General",i+=' ',t[0].values.forEach((function(e,t){i+=''+(e||0===e?e:"")+""})),i+=" ",i+=" ",i+="",i+="",i+=" ",i+=" Sheet1!$"+Fe(l+1)+"$2:$"+Fe(l+1)+"$"+(t[0].values.length+1)+"",l++,i+=" ",i+=" General",i+=' ',t[0].values.forEach((function(e,t){i+=''+(r.values[t]||0===r.values[t]?r.values[t]:"")+""})),i+=" ",i+=" ",i+="",i+=" ",i+=" ",i+=" Sheet1!$"+Fe(l+1)+"$2:$"+Fe(l+1)+"$"+(r.sizes.length+1)+"",l++,i+=" ",i+=" General",i+='\t ',r.sizes.forEach((function(e,t){i+=''+(e||"")+""})),i+=" ",i+=" ",i+=" ",i+=' ',i+=""})),i+="",i+=''),i+="",i+=''),i+="".concat(ce(a.dataLabelColor||x),""),i+=''),i+="",a.dataLabelPosition&&(i+='')),i+='',i+=''),i+=''),i+="",i+=' ',i+=' ',i+=" ",i+="",i+="",i+=''),i+="";break;case Q.DOUGHNUT:case Q.PIE:var c=t[0];i+="",i+=' ',i+="",i+=' ',i+=' ',i+=" ",i+=" ",i+=" Sheet1!$B$1",i+=" ",i+=' ',i+=' '+re(c.name)+"",i+=" ",i+=" ",i+=" ",i+=" ",i+=' ',i+=' ',a.dataNoEffects?i+="":i+=Ne(a.shadow,L),i+=" ",c.labels[0].forEach((function(e,t){i+="",i+=' '),i+=' ',i+=" ",i+="".concat(ce(a.chartColors[t+1>a.chartColors.length?Math.floor(Math.random()*a.chartColors.length):t]),""),a.dataBorder&&(i+='').concat(ce(a.dataBorder.color),'')),i+=Ne(a.shadow,L),i+=" ",i+=""})),i+="",c.labels[0].forEach((function(t,r){i+="",i+=' '),i+=' '),i+=" ",i+=" ",i+=" ",i+=' '),i+=" "+ce(a.dataLabelColor||x)+"",i+=' '),i+=" ",i+=" ",i+=" ",e===Q.PIE&&a.dataLabelPosition&&(i+=' ')),i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=' ',i+=" "})),i+=' '),i+="\t",i+="\t ",i+="\t ",i+="\t ",i+="\t\t",i+='\t\t ',i+='\t\t\t',i+="\t\t ",i+="\t\t",i+="\t ",i+="\t",i+=e===Q.PIE?'':"",i+='\t',i+='\t',i+='\t',i+='\t',i+='\t',i+='\t',i+=' '),i+="",i+="",i+=" ",i+=" Sheet1!$A$2:$A$"+(c.labels[0].length+1)+"",i+=" ",i+='\t ',c.labels[0].forEach((function(e,t){i+=''+re(e)+""})),i+=" ",i+=" ",i+="",i+=" ",i+=" ",i+=" Sheet1!$B$2:$B$"+(c.labels[0].length+1)+"",i+=" ",i+='\t ',c.values.forEach((function(e,t){i+=''+(e||0===e?e:"")+""})),i+=" ",i+=" ",i+=" ",i+=" ",i+=' '),e===Q.DOUGHNUT&&(i+=' '),i+="";break;default:i+=""}return i}function Re(e,t,a){var r="";return e._type===Q.SCATTER||e._type===Q.BUBBLE||e._type===Q.BUBBLE3D?r+="":r+="",r+=' ',r+=" ",r+='',(e.catAxisMaxVal||0===e.catAxisMaxVal)&&(r+=''),(e.catAxisMinVal||0===e.catAxisMinVal)&&(r+=''),r+="",r+=' ',r+=' ',r+="none"!==e.catGridLine.style?Oe(e.catGridLine):"",e.showCatAxisTitle&&(r+=Ie({color:e.catAxisTitleColor,fontFace:e.catAxisTitleFontFace,fontSize:e.catAxisTitleFontSize,titleRotate:e.catAxisTitleRotate,title:e.catAxisTitle||"Axis Title"})),e._type===Q.SCATTER||e._type===Q.BUBBLE||e._type===Q.BUBBLE3D?r+=' ':r+=' ',e._type===Q.SCATTER?(r+=' ',r+=' ',r+=' '):(r+=' ',r+=' ',r+=' '),r+=" ",r+=' ',r+=!1===e.catAxisLineShow?"":""+ce(e.catAxisLineColor||v.color)+"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' ',r+=" "+ce(e.catAxisLabelColor||x)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=" '),r+=' ',r+=' ',r+=' ',e.catAxisLabelFrequency&&(r+=' '),(e.catLabelFormatCode||e._type===Q.SCATTER||e._type===Q.BUBBLE||e._type===Q.BUBBLE3D)&&(e.catLabelFormatCode&&(["catAxisBaseTimeUnit","catAxisMajorTimeUnit","catAxisMinorTimeUnit"].forEach((function(t){!e[t]||"string"==typeof e[t]&&-1!==["days","months","years"].indexOf(e[t].toLowerCase())||(console.warn("`"+t+"` must be one of: 'days','months','years' !"),e[t]=null)})),e.catAxisBaseTimeUnit&&(r+=''),e.catAxisMajorTimeUnit&&(r+=''),e.catAxisMinorTimeUnit&&(r+='')),e.catAxisMajorUnit&&(r+=''),e.catAxisMinorUnit&&(r+='')),e._type===Q.SCATTER||e._type===Q.BUBBLE||e._type===Q.BUBBLE3D?r+="":r+="",r}function Be(e,t){var a=t===R?"col"===e.barDir?"l":"b":"col"!==e.barDir?"r":"t";t===B&&(a="r");var r=t===R?I:F,n="";return n+="",n+=' ',n+=" ",e.valAxisLogScaleBase&&(n+='')),n+='',(e.valAxisMaxVal||0===e.valAxisMaxVal)&&(n+=''),(e.valAxisMinVal||0===e.valAxisMinVal)&&(n+=''),n+=" ",n+=' ',n+=' ',"none"!==e.valGridLine.style&&(n+=Oe(e.valGridLine)),e.showValAxisTitle&&(n+=Ie({color:e.valAxisTitleColor,fontFace:e.valAxisTitleFontFace,fontSize:e.valAxisTitleFontSize,titleRotate:e.valAxisTitleRotate,title:e.valAxisTitle||"Axis Title"})),n+=''),e._type===Q.SCATTER?(n+=' ',n+=' ',n+=' '):(n+=' ',n+=' ',n+=' '),n+=" ",n+=' ',n+=!1===e.valAxisLineShow?"":""+ce(e.valAxisLineColor||v.color)+"",n+=' ',n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=" ",n+=' ',n+=" "+ce(e.valAxisLabelColor||x)+"",n+=' ',n+=" ",n+=" ",n+=' ',n+=" ",n+=" ",n+=' ',"number"==typeof e.catAxisCrossesAt?n+=' ':"string"==typeof e.catAxisCrossesAt?n+=' ':n+=' ',n+=' ',e.valAxisMajorUnit&&(n+=' '),e.valAxisDisplayUnit&&(n+='').concat(e.valAxisDisplayUnitLabel?"":"","")),n+""}function Ie(e,t,a){var r="left"===e.titleAlign||"right"===e.titleAlign?''):"",n=e.titleRotate?''):"",o=e.fontSize?'sz="'+Math.round(100*e.fontSize)+'"':"",i=!0===e.titleBold?1:0,s="";if(e.titlePos&&"number"==typeof e.titlePos.x&&"number"==typeof e.titlePos.y){var l=e.titlePos.x+t,c=e.titlePos.y+a,p=0===l?0:l*(l/5)/10;p>=1&&(p/=10),p>=.1&&(p/=10);var d=0===c?0:c*(c/5)/10;d>=1&&(d/=10),d>=.1&&(d/=10),s='')}return"\n\t \n\t \n\t ".concat(n,"\n\t \n\t \n\t ").concat(r,"\n\t \n\t ').concat(ce(e.color||x),'\n\t \n\t \n\t \n\t \n\t \n\t ').concat(ce(e.color||x),'\n\t \n\t \n\t ').concat(re(e.title)||"","\n\t \n\t \n\t \n\t \n\t ").concat(s,'\n\t \n\t')}function Fe(e){var t=e-1;return t<=25?O[t]:"".concat(O[Math.floor(t/O.length-1)]).concat(O[t%O.length])}function Ne(e,t){if(!e)return"";if("object"!=typeof e)return console.warn("`shadow` options must be an object. Ex: `{shadow: {type:'none'}}`"),"";var a="",r=ae(t,e),n=r.type||"outer",o=oe(r.blur),i=oe(r.offset),s=Math.round(6e4*r.angle),l=r.color,c=Math.round(1e5*r.opacity);return a+="',a+='',a+='',(a+="")+""}function Oe(e){var t="";return t+=" ",t+=' ',t+=' ',t+=' ',t+=" ",(t+=" ")+""}function De(e){var t="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null,a="undefined"!=typeof require&&"undefined"==typeof window?require("https"):null,r=[],n=e._relsMedia.filter((function(e){return"online"!==e.type&&!e.data&&(!e.path||e.path&&-1===e.path.indexOf("preencoded"))})),o=[];return n.forEach((function(e){-1===o.indexOf(e.path)?(e.isDuplicate=!1,o.push(e.path)):e.isDuplicate=!0})),n.filter((function(e){return!e.isDuplicate})).forEach((function(e){r.push(new Promise((function(r,o){if(t&&0!==e.path.indexOf("http"))try{var i=t.readFileSync(e.path);e.data=Buffer.from(i).toString("base64"),n.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),r("done")}catch(t){e.data=$,n.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),o('ERROR: Unable to read media: "'+e.path+'"\n'+t.toString())}else if(t&&a&&0===e.path.indexOf("http"))a.get(e.path,(function(t){var a="";t.setEncoding("binary"),t.on("data",(function(e){return a+=e})),t.on("end",(function(){e.data=Buffer.from(a,"binary").toString("base64"),n.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),r("done")})),t.on("error",(function(t){e.data=$,n.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),o("ERROR! Unable to load image (https.get): ".concat(e.path))}))}));else{var s=new XMLHttpRequest;s.onload=function(){var t=new FileReader;t.onloadend=function(){e.data=t.result,n.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),e.isSvgPng?Me(e).then((function(){r("done")})).catch((function(e){o(e)})):r("done")},t.readAsDataURL(s.response)},s.onerror=function(t){e.data=$,n.filter((function(t){return t.isDuplicate&&t.path===e.path})).forEach((function(t){return t.data=e.data})),o("ERROR! Unable to load image (xhr.onerror): ".concat(e.path))},s.open("GET",e.path),s.responseType="blob",s.send()}})))})),e._relsMedia.filter((function(e){return e.isSvgPng&&e.data})).forEach((function(e){t?(e.data=$,r.push(Promise.resolve().then((function(){return"done"})))):r.push(Me(e))})),r}function Me(e){return new Promise((function(t,a){var r=new Image;r.onload=function(){r.width+r.height===0&&r.onerror("h/w=0");var a=document.createElement("CANVAS"),n=a.getContext("2d");a.width=r.width,a.height=r.height,n.drawImage(r,0,0);try{e.data=a.toDataURL(e.type),t("done")}catch(e){r.onerror(e)}a=null},r.onerror=function(t){e.data=$,a("ERROR! Unable to load image (image.onerror): ".concat(e.path))},r.src="string"==typeof e.data?e.data:$}))}var ze="3.11.0",Ue=function(){function e(){var e=this;this._version=ze,this._alignH=W,this._alignV=H,this._chartType=U,this._outputType=z,this._schemeColor=G,this._shapeType=j,this._charts=Q,this._colors=Y,this._shapes=V,this.addNewSlide=function(t){var a=e.sections.length>0&&e.sections[e.sections.length-1]._slides.filter((function(t){return t._slideNum===e.slides[e.slides.length-1]._slideNum})).length>0;return e.addSlide({masterName:t,sectionTitle:a?e.sections[e.sections.length-1].title:null})},this.getSlide=function(t){return e.slides.filter((function(e){return e._slideNum===t}))[0]},this.setSlideNumber=function(t){e.masterSlide._slideNumberProps=t,e.slideLayouts.filter((function(e){return e._name===P}))[0]._slideNumberProps=t},this.createChartMediaRels=function(e,t,a){e._relsChart.forEach((function(e){return a.push(function(e,t){var a=e.data;return new Promise((function(n,o){var i=new r,s=2*(a.length-1)+1,l=a[0]&&a[0].labels&&a[0].labels.length>1;i.folder("_rels"),i.folder("docProps"),i.folder("xl/_rels"),i.folder("xl/tables"),i.folder("xl/theme"),i.folder("xl/worksheets"),i.folder("xl/worksheets/_rels"),i.file("[Content_Types].xml",' \n'),i.file("_rels/.rels",'\n'),i.file("docProps/app.xml",'Microsoft Macintosh Excel0falseWorksheets1Sheet1falsefalsefalse16.0300\n'),i.file("docProps/core.xml",'PptxGenJSPptxGenJS'+(new Date).toISOString()+''+(new Date).toISOString()+""),i.file("xl/_rels/workbook.xml.rels",''),i.file("xl/styles.xml",'\n'),i.file("xl/theme/theme1.xml",''),i.file("xl/workbook.xml",'\n'),i.file("xl/worksheets/_rels/sheet1.xml.rels",'\n');var c='';if(e.opts._type===Q.BUBBLE||e.opts._type===Q.BUBBLE3D)c+='');else if(e.opts._type===Q.SCATTER)c+='');else if(l){var p=a.length;a[0].labels.forEach((function(e){return p+=e.filter((function(e){return e&&""!==e})).length})),c+=''),c+=""}else{var d=a.length+a[0].labels.length*a[0].labels[0].length+a[0].labels.length,h=a.length+a[0].labels.length*a[0].labels[0].length+1;c+=''),c+=''}e.opts._type===Q.BUBBLE||e.opts._type===Q.BUBBLE3D?a.forEach((function(e,t){0===t?c+="X-Axis":(c+="".concat(re(e.name||"Y-Axis"+t),""),c+="".concat(re("Size"+t),""))})):a.forEach((function(e){c+="".concat(re((e.name||" ").replace("X-Axis","X-Values")),"")})),e.opts._type!==Q.BUBBLE&&e.opts._type!==Q.BUBBLE3D&&e.opts._type!==Q.SCATTER&&a[0].labels.slice().reverse().forEach((function(e){e.filter((function(e){return e&&""!==e})).forEach((function(e){c+="".concat(re(e),"")}))})),c+="\n",i.file("xl/sharedStrings.xml",c);var f='';if(e.opts._type===Q.BUBBLE||e.opts._type===Q.BUBBLE3D){f+=''),f+='');var u=1;a.forEach((function(e,t){0===t?f+=''):(f+=''),u++,f+=''))}))}else e.opts._type===Q.SCATTER?(f+='
',f+='',a.forEach((function(e,t){f+=''}))):(f+='
',f+='',a[0].labels.forEach((function(e,t){f+='')})),a.forEach((function(e,t){f+=''})));f+="",f+='',f+="
",i.file("xl/tables/table1.xml",f);var m='';if(m+='',e.opts._type===Q.BUBBLE||e.opts._type===Q.BUBBLE3D?m+=''):e.opts._type===Q.SCATTER?m+=''):m+=''),m+='',m+='',e.opts._type===Q.BUBBLE||e.opts._type===Q.BUBBLE3D){m+="",m+=''),m+='0';for(var g=1;g').concat(g,"");m+="",a[0].values.forEach((function(e,t){m+=''),m+='').concat(e,"");for(var r=2,n=1;n').concat(a[n].values[t]||"",""),r++,m+='').concat(a[n].sizes[t]||"",""),r++;m+=""}))}else if(e.opts._type===Q.SCATTER){for(m+="",m+=''),g=0;g').concat(g,"");m+="",a[0].values.forEach((function(e,t){m+=''),m+='').concat(e,"");for(var r=1;r').concat(a[r].values[t]||0===a[r].values[t]?a[r].values[t]:"","");m+=""}))}else if(m+="",l){for(m+=''),g=0;g0');for(g=a[0].labels.length-1;g').concat(g,"");m+="";var A=a.length,y=a[0].labels[0].length,b=a[0].labels.length,C=function(e){m+='');var t=A,r=a[0].labels.slice().reverse();r.forEach((function(a,n){if(a[e]){var o=0===n?1:r[n-1].filter((function(e){return e&&""!==e})).length;t+=o,m+='').concat(t,"")}}));for(var n=0;n').concat(a[n].values[e]||0,"");m+=""};for(g=0;g'),a[0].labels.forEach((function(e,t){m+='0')})),g=0;g').concat(g+1,"");m+="",a[0].labels[0].forEach((function(e,t){m+='');for(var r=a[0].labels.length-1;r>=0;r--)m+=''),m+="".concat(a.length+t+1,""),m+="";for(var n=0;n').concat(a[n].values[t]||"","");m+=""}))}m+="",m+='',m+="\n",i.file("xl/worksheets/sheet1.xml",m),i.generateAsync({type:"base64"}).then((function(a){t.file("ppt/embeddings/Microsoft_Excel_Worksheet"+e.globalId+".xlsx",a,{base64:!0}),t.file("ppt/charts/_rels/"+e.fileName+".rels",''+'')+""),t.file("ppt/charts/".concat(e.fileName),function(e){var t='',a=!1;if(t+='',t+='',t+=''),t+="",e.opts.showTitle?(t+=Ie({title:e.opts.title||"Chart Title",color:e.opts.titleColor,fontFace:e.opts.titleFontFace,fontSize:e.opts.titleFontSize||w,titleAlign:e.opts.titleAlign,titleBold:e.opts.titleBold,titlePos:e.opts.titlePos,titleRotate:e.opts.titleRotate},e.opts.x,e.opts.y),t+=''):t+='',e.opts._type===Q.BAR3D&&(t+="",t+=' ',t+=' ',t+=' ',t+=' ',t+=""),t+="",e.opts.layout?(t+="",t+=" ",t+=' ',t+=' ',t+=' ',t+=' ',t+=' ',t+=' ',t+=' ',t+=" ",t+=""):t+="",Array.isArray(e.opts._type)?e.opts._type.forEach((function(r){var n=ae(e.opts,r.options),o=n.secondaryValAxis?B:R,i=n.secondaryCatAxis?F:I;a=a||n.secondaryValAxis,t+=ke(r.type,r.data,n,o,i)})):t+=ke(e.opts._type,e.data,e.opts,R,I),e.opts._type!==Q.PIE&&e.opts._type!==Q.DOUGHNUT){if(e.opts.valAxes&&e.opts.valAxes.length>1&&!a)throw new Error("Secondary axis must be used by one of the multiple charts");if(e.opts.catAxes){if(!e.opts.valAxes||e.opts.valAxes.length!==e.opts.catAxes.length)throw new Error("There must be the same number of value and category axes.");t+=Re(ae(e.opts,e.opts.catAxes[0]),I,R)}else t+=Re(e.opts,I,R);e.opts.valAxes?(t+=Be(ae(e.opts,e.opts.valAxes[0]),R),e.opts.valAxes[1]&&(t+=Be(ae(e.opts,e.opts.valAxes[1]),B))):(t+=Be(e.opts,R),e.opts._type===Q.BAR3D&&(t+=function(e,t,a){var r="";return r+="",r+=' ',r+=' ',r+=' ',r+=' ',r+="none"!==e.serGridLine.style?Oe(e.serGridLine):"",e.showSerAxisTitle&&(r+=Ie({color:e.serAxisTitleColor,fontFace:e.serAxisTitleFontFace,fontSize:e.serAxisTitleFontSize,titleRotate:e.serAxisTitleRotate,title:e.serAxisTitle||"Axis Title"})),r+=' '),r+=' ',r+=' ',r+=' ',r+=" ",r+=' ',r+=!1===e.serAxisLineShow?"":""+ce(e.serAxisLineColor||v.color)+"",r+=' ',r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=" ",r+=' '),r+=" "+ce(e.serAxisLabelColor||x)+"",r+=' ',r+=" ",r+=" ",r+=' ',r+=" ",r+=" ",r+=' ',r+=' ',e.serAxisLabelFrequency&&(r+=' '),e.serLabelFormatCode&&(["serAxisBaseTimeUnit","serAxisMajorTimeUnit","serAxisMinorTimeUnit"].forEach((function(t){!e[t]||"string"==typeof e[t]&&-1!==["days","months","years"].indexOf(t.toLowerCase())||(console.warn("`"+t+"` must be one of: 'days','months','years' !"),e[t]=null)})),e.serAxisBaseTimeUnit&&(r+=' '),e.serAxisMajorTimeUnit&&(r+=' '),e.serAxisMinorTimeUnit&&(r+=' '),e.serAxisMajorUnit&&(r+=' '),e.serAxisMinorUnit&&(r+=' ')),r+""}(e.opts,0,R))),e.opts.catAxes&&e.opts.catAxes[1]&&(t+=Re(ae(e.opts,e.opts.catAxes[1]),F,B))}return e.opts.showDataTable&&(t+="",t+=' ',t+=' ',t+=' ',t+=' ',t+=" ",t+=" ",t+=' ',t+=" ",t+=" ",t+=" ",t+='\t ',t+="\t ",t+="\t ",t+='\t\t',t+=' '),t+='\t\t\t',t+='\t\t\t',t+='\t\t\t',t+='\t\t\t',t+="\t\t ",t+="\t\t",t+='\t\t',t+="\t ",t+="\t",t+=""),t+=" ",t+=e.opts.plotArea.fill&&e.opts.plotArea.fill.color?pe(e.opts.plotArea.fill):"",t+=e.opts.plotArea.border?'').concat(pe(e.opts.plotArea.border.color),""):"",t+=" ",t+=" ",t+="",e.opts.showLegend&&(t+="",t+='',t+='',(e.opts.legendFontFace||e.opts.legendFontSize||e.opts.legendColor)&&(t+="",t+=" ",t+=" ",t+=" ",t+=" ",t+=e.opts.legendFontSize?'':"",e.opts.legendColor&&(t+=pe(e.opts.legendColor)),e.opts.legendFontFace&&(t+=''),e.opts.legendFontFace&&(t+=''),t+=" ",t+=" ",t+=' ',t+=" ",t+=""),t+=""),t+=' ',t+=' ',e.opts._type===Q.SCATTER&&(t+=''),t+="",t+="",t+=e.opts.chartArea.fill&&e.opts.chartArea.fill.color?pe(e.opts.chartArea.fill):"",t+=e.opts.chartArea.border?'').concat(pe(e.opts.chartArea.border.color),""):"",t+=" ",t+="",t+='',t+=""}(e)),n(null)})).catch((function(e){o(e)}))}))}(e,t))})),e._relsMedia.forEach((function(e){if("online"!==e.type&&"hyperlink"!==e.type){var a=e.data&&"string"==typeof e.data?e.data:"";-1===a.indexOf(",")&&-1===a.indexOf(";")||-1===a.indexOf(",")?a="image/png;base64,"+a:-1===a.indexOf(";")&&(a="image/png;"+a),t.file(e.Target.replace("..","ppt"),a.split(",").pop(),{base64:!0})}}))},this.writeFileToBrowser=function(e,t){var a=document.createElement("a");if(a.setAttribute("style","display:none;"),a.dataset.interception="off",document.body.appendChild(a),window.URL.createObjectURL){var r=window.URL.createObjectURL(new Blob([t],{type:"application/vnd.openxmlformats-officedocument.presentationml.presentation"}));return a.href=r,a.download=e,a.click(),setTimeout((function(){window.URL.revokeObjectURL(r),document.body.removeChild(a)}),100),Promise.resolve(e)}},this.exportPresentation=function(t){var a=[],n=[],o=new r;return e.slides.forEach((function(e){n=n.concat(De(e))})),e.slideLayouts.forEach((function(e){n=n.concat(De(e))})),n=n.concat(De(e.masterSlide)),Promise.all(n).then((function(){var r,n,i,s,l,c,h,f;return e.slides.forEach((function(e){e._slideLayout&&function(e){(e._slideLayout._slideObjects||[]).forEach((function(t){t._type===Z.placeholder&&0===e._slideObjects.filter((function(e){return e.options&&e.options.placeholder===t.options.placeholder})).length&&Se(e,[{text:""}],t.options,!1)}))}(e)})),o.folder("_rels"),o.folder("docProps"),o.folder("ppt").folder("_rels"),o.folder("ppt/charts").folder("_rels"),o.folder("ppt/embeddings"),o.folder("ppt/media"),o.folder("ppt/slideLayouts").folder("_rels"),o.folder("ppt/slideMasters").folder("_rels"),o.folder("ppt/slides").folder("_rels"),o.folder("ppt/theme"),o.folder("ppt/notesMasters").folder("_rels"),o.folder("ppt/notesSlides").folder("_rels"),o.file("[Content_Types].xml",(r=e.slides,n=e.slideLayouts,i=e.masterSlide,s=''+p,s+='',s+='',s+='',s+='',s+='',s+='',s+='',s+='',s+='',r.forEach((function(e){(e._relsMedia||[]).forEach((function(e){"image"!==e.type&&"online"!==e.type&&"chart"!==e.type&&"m4v"!==e.extn&&-1===s.indexOf(e.type)&&(s+='')}))})),s+='',s+='',s+='',s+='',r.forEach((function(e,t){s+='',s+='',e._relsChart.forEach((function(e){s+=' '}))})),s+='',s+='',s+='',s+='',n.forEach((function(e,t){s+='',(e._relsChart||[]).forEach((function(e){s+=' '}))})),r.forEach((function(e,t){s+=' '})),i._relsChart.forEach((function(e){s+=' '})),i._relsMedia.forEach((function(e){"image"!==e.type&&"online"!==e.type&&"chart"!==e.type&&"m4v"!==e.extn&&-1===s.indexOf(e.type)&&(s+=' ')})),s+=' ',s+=' ',s+="")),o.file("_rels/.rels",''.concat(p,'\n\t\t\n\t\t\n\t\t\n\t\t')),o.file("docProps/app.xml",function(e,t){return''.concat(p,'\n\t0\n\t0\n\tMicrosoft Office PowerPoint\n\tOn-screen Show (16:9)\n\t0\n\t').concat(e.length,"\n\t").concat(e.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(e.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(e.map((function(e,t){return"Slide "+(t+1)+"\n"})).join(""),"\n\t\t\n\t\n\t").concat(t,"\n\tfalse\n\tfalse\n\tfalse\n\t16.0000\n\t")}(e.slides,e.company)),o.file("docProps/core.xml",(l=e.title,c=e.subject,h=e.author,f=e.revision,'\n\t\n\t\t'.concat(re(l),"\n\t\t").concat(re(c),"\n\t\t").concat(re(h),"\n\t\t").concat(re(h),"\n\t\t").concat(f,'\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"))),o.file("ppt/_rels/presentation.xml.rels",function(e){var t=1,a=''+p;a+='',a+='';for(var r=1;r<=e.length;r++)a+='';return a+''}(e.slides)),o.file("ppt/theme/theme1.xml",''.concat(p,'')),o.file("ppt/presentation.xml",function(e){var t=''.concat(p)+'');t+='',t+="",e.slides.forEach((function(e){return t+='')})),t+="",t+=''),t+=''),t+=''),t+="";for(var a=1;a<10;a++)t+="')+''+"");return t+="",e.sections&&e.sections.length>0&&(t+='',t+='',e.sections.forEach((function(e){t+=''),e._slides.forEach((function(e){return t+='')})),t+=""})),t+="",t+='',t+=""),t+=""}(e)),o.file("ppt/presProps.xml",''.concat(p,'')),o.file("ppt/tableStyles.xml",''.concat(p,'')),o.file("ppt/viewProps.xml",''.concat(p,'')),e.slideLayouts.forEach((function(t,a){o.file("ppt/slideLayouts/slideLayout"+(a+1)+".xml",function(e){return'\n\t\t\n\t\t'.concat(ue(e),"\n\t\t")}(t)),o.file("ppt/slideLayouts/_rels/slideLayout"+(a+1)+".xml.rels",function(e,t){return me(t[e-1],[{target:"../slideMasters/slideMaster1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideMaster"}])}(a+1,e.slideLayouts))})),e.slides.forEach((function(t,a){o.file("ppt/slides/slide"+(a+1)+".xml",function(e){return''.concat(p)+'")+"".concat(ue(e))+""}(t)),o.file("ppt/slides/_rels/slide"+(a+1)+".xml.rels",function(e,t,a){return me(e[a-1],[{target:"../slideLayouts/slideLayout"+ve(e,t,a)+".xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"},{target:"../notesSlides/notesSlide"+a+".xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/notesSlide"}])}(e.slides,e.slideLayouts,a+1)),o.file("ppt/notesSlides/notesSlide"+(a+1)+".xml",function(e){return''+p+''+re(function(e){var t="";return e._slideObjects.forEach((function(e){e._type===Z.notes&&(t+=e.text&&e.text[0]?e.text[0].text:"")})),t.replace(/\r*\n/g,p)}(e))+''+e._slideNum+''}(t)),o.file("ppt/notesSlides/_rels/notesSlide"+(a+1)+".xml.rels",'\n\t\t\n\t\t\t\n\t\t\t\n\t\t'))})),o.file("ppt/slideMasters/slideMaster1.xml",function(e,t){var a=t.map((function(t,a){return''})),r=''+p;return r+='',r+=ue(e),r+='',r+=""+a.join("")+"",r+='',(r+=' ')+""}(e.masterSlide,e.slideLayouts)),o.file("ppt/slideMasters/_rels/slideMaster1.xml.rels",function(e,t){var a=t.map((function(e,t){return{target:"../slideLayouts/slideLayout".concat(t+1,".xml"),type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/slideLayout"}}));return a.push({target:"../theme/theme1.xml",type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme"}),me(e,a)}(e.masterSlide,e.slideLayouts)),o.file("ppt/notesMasters/notesMaster1.xml",''.concat(p,'7/23/19Click to edit Master text stylesSecond levelThird levelFourth levelFifth level‹#›')),o.file("ppt/notesMasters/_rels/notesMaster1.xml.rels",''.concat(p,'\n\t\t\n\t\t')),e.slideLayouts.forEach((function(t){e.createChartMediaRels(t,o,a)})),e.slides.forEach((function(t){e.createChartMediaRels(t,o,a)})),e.createChartMediaRels(e.masterSlide,o,a),Promise.all(a).then((function(){return"STREAM"===t.outputType?o.generateAsync({type:"nodebuffer",compression:t.compression?"DEFLATE":"STORE"}):t.outputType?o.generateAsync({type:t.outputType}):o.generateAsync({type:"blob",compression:t.compression?"DEFLATE":"STORE"})}))}))},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[C].name,_sizeW:this.LAYOUTS[C].width,_sizeH:this.LAYOUTS[C].height,width:this.LAYOUTS[C].width,height:this.LAYOUTS[C].height},this._rtlMode=!1,this._slideLayouts=[{_margin:T,_name:P,_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(e.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(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"author",{get:function(){return this._author},set:function(e){this._author=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"company",{get:function(){return this._company},set:function(e){this._company=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"revision",{get:function(){return this._revision},set:function(e){this._revision=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"subject",{get:function(){return this._subject},set:function(e){this._subject=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._title},set:function(e){this._title=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"rtlMode",{get:function(){return this._rtlMode},set:function(e){this._rtlMode=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"masterSlide",{get:function(){return this._masterSlide},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slides",{get:function(){return this._slides},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"sections",{get:function(){return this._sections},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"slideLayouts",{get:function(){return this._slideLayouts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"AlignH",{get:function(){return this._alignH},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"AlignV",{get:function(){return this._alignV},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ChartType",{get:function(){return this._chartType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"OutputType",{get:function(){return this._outputType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"presLayout",{get:function(){return this._presLayout},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"SchemeColor",{get:function(){return this._schemeColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ShapeType",{get:function(){return this._shapeType},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"charts",{get:function(){return this._charts},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"colors",{get:function(){return this._colors},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"shapes",{get:function(){return this._shapes},enumerable:!1,configurable:!0}),e.prototype.stream=function(e){var t=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression;return this.exportPresentation({compression:t,outputType:"STREAM"})},e.prototype.write=function(e){var t="object"==typeof e&&e.hasOwnProperty("outputType")?e.outputType:e||null,a=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression;return this.exportPresentation({compression:a,outputType:t})},e.prototype.writeFile=function(e){var t=this,a="undefined"!=typeof require&&"undefined"==typeof window?require("fs"):null;"string"==typeof e&&console.log("Warning: `writeFile(filename)` is deprecated - please use `WriteFileProps` argument (v3.5.0)");var r="object"==typeof e&&e.hasOwnProperty("fileName")?e.fileName:"string"==typeof e?e:"",n=!("object"!=typeof e||!e.hasOwnProperty("compression"))&&e.compression,o=r?r.toString().toLowerCase().endsWith(".pptx")?r:r+".pptx":"Presentation.pptx";return this.exportPresentation({compression:n,outputType:a?"nodebuffer":null}).then((function(e){return a?new Promise((function(t,r){a.writeFile(o,e,(function(e){e?r(e):t(o)}))})):t.writeFileToBrowser(o,e)}))},e.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)},e.prototype.addSlide=function(e){var t="string"==typeof e?e:e&&e.masterName?e.masterName:"",a={_name:this.LAYOUTS[C].name,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slideNum:this.slides.length+1};if(t){var r=this.slideLayouts.filter((function(e){return e._name===t}))[0];r&&(a=r)}var n=new Ee({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:a});if(this._slides.push(n),e&&e.sectionTitle){var o=this.sections.filter((function(t){return t.title===e.sectionTitle}))[0];o?o._slides.push(n):console.warn('addSlide: unable to find section with title: "'.concat(e.sectionTitle,'"'))}else if(this.sections&&this.sections.length>0&&(!e||!e.sectionTitle)){var i=this._sections[this.sections.length-1];"default"===i._type?i._slides.push(n):this._sections.push({title:"Default-".concat(this.sections.filter((function(e){return"default"===e._type})).length+1),_type:"default",_slides:[n]})}return n},e.prototype.defineLayout=function(e){e?e.name?e.width?e.height?"number"!=typeof e.height?console.warn("defineLayout `height` should be a number (inches)"):"number"!=typeof e.width&&console.warn("defineLayout `width` should be a number (inches)"):console.warn("defineLayout requires `height`"):console.warn("defineLayout requires `width`"):console.warn("defineLayout requires `name`"):console.warn("defineLayout requires `{name, width, height}`"),this.LAYOUTS[e.name]={name:e.name,_sizeW:Math.round(Number(e.width)*l),_sizeH:Math.round(Number(e.height)*l),width:Math.round(Number(e.width)*l),height:Math.round(Number(e.height)*l)}},e.prototype.defineSlideMaster=function(e){if(!e.title)throw new Error("defineSlideMaster() object argument requires a `title` value. (https://gitbrent.github.io/PptxGenJS/docs/masters.html)");var t={_margin:e.margin||T,_name:e.title,_presLayout:this.presLayout,_rels:[],_relsChart:[],_relsMedia:[],_slide:null,_slideNum:1e3+this.slideLayouts.length+1,_slideNumberProps:e.slideNumber||null,_slideObjects:[],background:e.background||null,bkgd:e.bkgd||null};!function(e,t){e.bkgd&&(t.bkgd=e.bkgd),e.objects&&Array.isArray(e.objects)&&e.objects.length>0&&e.objects.forEach((function(e,a){var r=Object.keys(e)[0],n=t;q[r]&&"chart"===r?we(n,e[r].type,e[r].data,e[r].opts):q[r]&&"image"===r?Ce(n,e[r]):q[r]&&"line"===r?Pe(n,V.LINE,e[r]):q[r]&&"rect"===r?Pe(n,V.RECTANGLE,e[r]):q[r]&&"text"===r?Se(n,[{text:e[r].text}],e[r].options,!1):q[r]&&"placeholder"===r&&(e[r].options.placeholder=e[r].options.name,delete e[r].options.name,e[r].options._placeholderType=e[r].options.type,delete e[r].options.type,e[r].options._placeholderIdx=100+a,Se(n,[{text:e[r].text}],e[r].options,!0))})),e.slideNumber&&"object"==typeof e.slideNumber&&(t._slideNumberProps=e.slideNumber)}(e,t),this.slideLayouts.push(t),(e.background||e.bkgd)&&Le(e.background,t),t._slideNumberProps&&!this.masterSlide._slideNumberProps&&(this.masterSlide._slideNumberProps=t._slideNumberProps)},e.prototype.tableToSlides=function(e,t){void 0===t&&(t={}),function(e,t,a,r){void 0===a&&(a={});var n=a||{};n.slideMargin=n.slideMargin||0===n.slideMargin?n.slideMargin:.5;var i=n.w||e.presLayout.width,s=[],c=[],p=[],d=[],h=[],f=[.5,.5,.5,.5],u=0;if(!document.getElementById(t))throw new Error('tableToSlides: Table ID "'+t+'" does not exist!');r&&r._margin?(Array.isArray(r._margin)?f=r._margin:isNaN(r._margin)||(f=[r._margin,r._margin,r._margin,r._margin]),n.slideMargin=f):n&&n.slideMargin&&(Array.isArray(n.slideMargin)?f=n.slideMargin:isNaN(n.slideMargin)||(f=[n.slideMargin,n.slideMargin,n.slideMargin,n.slideMargin])),i=(n.w?ne(n.w):e.presLayout.width)-ne(f[1]+f[3]),n.verbose&&(console.log("[[VERBOSE MODE]]"),console.log("|-- `tableToSlides` ----------------------------------------------------|"),console.log("| tableProps.h .................................... = ".concat(n.h)),console.log("| tableProps.w .................................... = ".concat(n.w)),console.log("| pptx.presLayout.width ........................... = ".concat((e.presLayout.width/l).toFixed(1))),console.log("| pptx.presLayout.height .......................... = ".concat((e.presLayout.height/l).toFixed(1))),console.log("| emuSlideTabW .................................... = ".concat((i/l).toFixed(1))));var m=document.querySelectorAll("#".concat(t," tr:first-child th"));0===m.length&&(m=document.querySelectorAll("#".concat(t," tr:first-child td"))),m.forEach((function(e){if(e.getAttribute("colspan"))for(var t=0;tr?n:r)})),n.verbose&&console.log("| arrColW ......................................... = [".concat(d.join(", "),"]")),["thead","tbody","tfoot"].forEach((function(e){document.querySelectorAll("#".concat(t," ").concat(e," tr")).forEach((function(t){var a=[];switch(Array.from(t.cells).forEach((function(e){var t=window.getComputedStyle(e).getPropertyValue("color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(","),r=window.getComputedStyle(e).getPropertyValue("background-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");("rgba(0, 0, 0, 0)"===window.getComputedStyle(e).getPropertyValue("background-color")||window.getComputedStyle(e).getPropertyValue("transparent"))&&(r=["255","255","255"]);var n={align:null,bold:"bold"===window.getComputedStyle(e).getPropertyValue("font-weight")||Number(window.getComputedStyle(e).getPropertyValue("font-weight"))>=500,border:null,color:le(Number(t[0]),Number(t[1]),Number(t[2])),fill:{color:le(Number(r[0]),Number(r[1]),Number(r[2]))},fontFace:(window.getComputedStyle(e).getPropertyValue("font-family")||"").split(",")[0].replace(/"/g,"").replace("inherit","").replace("initial","")||null,fontSize:Number(window.getComputedStyle(e).getPropertyValue("font-size").replace(/[a-z]/gi,"")),margin:null,colspan:Number(e.getAttribute("colspan"))||null,rowspan:Number(e.getAttribute("rowspan"))||null,valign:null};if(["left","center","right","start","end"].indexOf(window.getComputedStyle(e).getPropertyValue("text-align"))>-1){var o=window.getComputedStyle(e).getPropertyValue("text-align").replace("start","left").replace("end","right");n.align="center"===o?"center":"left"===o?"left":"right"===o?"right":null}if(["top","middle","bottom"].indexOf(window.getComputedStyle(e).getPropertyValue("vertical-align"))>-1){var i=window.getComputedStyle(e).getPropertyValue("vertical-align");n.valign="top"===i?"top":"middle"===i?"middle":"bottom"===i?"bottom":null}window.getComputedStyle(e).getPropertyValue("padding-left")&&(n.margin=[0,0,0,0],["padding-top","padding-right","padding-bottom","padding-left"].forEach((function(t,a){n.margin[a]=Math.round(Number(window.getComputedStyle(e).getPropertyValue(t).replace(/\D/gi,"")))}))),(window.getComputedStyle(e).getPropertyValue("border-top-width")||window.getComputedStyle(e).getPropertyValue("border-right-width")||window.getComputedStyle(e).getPropertyValue("border-bottom-width")||window.getComputedStyle(e).getPropertyValue("border-left-width"))&&(n.border=[null,null,null,null],["top","right","bottom","left"].forEach((function(t,a){var r,o=Math.round(Number(window.getComputedStyle(e).getPropertyValue("border-"+t+"-width").replace("px","")));r=window.getComputedStyle(e).getPropertyValue("border-"+t+"-color").replace(/\s+/gi,"").replace("rgba(","").replace("rgb(","").replace(")","").split(",");var i=le(Number(r[0]),Number(r[1]),Number(r[2]));n.border[a]={pt:o,color:i}}))),a.push({_type:Z.tablecell,text:e.innerText,options:n})})),e){case"thead":s.push(a);break;case"tbody":c.push(a);break;case"tfoot":p.push(a);break;default:console.log("table parsing: unexpected table part: ".concat(e))}}))})),n._arrObjTabHeadRows=s||null,n.colW=d,he(o(o(o([],s,!0),c,!0),p,!0),n,e.presLayout,r).forEach((function(t,a){var r=e.addSlide({masterName:n.masterSlideName||null});0===a&&(n.y=n.y||f[0]),a>0&&(n.y=n.autoPageSlideStartY||n.newSlideStartY||f[0]),n.verbose&&console.log("| opts.autoPageSlideStartY: ".concat(n.autoPageSlideStartY," / arrInchMargins[0]: ").concat(f[0]," => opts.y = ").concat(n.y)),r.addTable(t.rows,{x:n.x||f[3],y:n.y,w:Number(i)/l,colW:d,autoPage:!1}),n.addImage&&(n.addImage.options=n.addImage.options||{},n.addImage.image&&(n.addImage.image.path||n.addImage.image.data)?r.addImage({path:n.addImage.image.path,data:n.addImage.image.data,x:n.addImage.options.x,y:n.addImage.options.y,w:n.addImage.options.w,h:n.addImage.options.h}):console.warn("Warning: tableToSlides.addImage requires either `path` or `data`")),n.addShape&&r.addShape(n.addShape.shape,n.addShape.options||{}),n.addTable&&r.addTable(n.addTable.rows,n.addTable.options||{}),n.addText&&r.addText(n.addText.text,n.addText.options||{})}))}(this,e,t,t&&t.masterSlideName?this.slideLayouts.filter((function(e){return e._name===t.masterSlideName}))[0]:null)},e}();exports.default=Ue;