plugin-legacy2.js 188.2 KB
Newer Older
Five-菜鸟级's avatar
init  
Five-菜鸟级 已提交
1 2 3 4 5 6 7 8
!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}System.register([],(function(){"use strict";return{execute:function(){
/*! 
			*  @plugin @tinymce-plugin/tp-importword
			*  @version 0.0.3-beta.6 (2022-7-29)
			*  @description 导入word文档
			*  @copyright (2022) Li Hailong . All rights reserved. https://github.com/tinymce-plugin/tp-importword
			*/
!function(){var t=function(e,r){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,r)};function r(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=e}t(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}var n,a,i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var a in t=arguments[r])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e},i.apply(this,arguments)};function o(e,t,r){if(r||2===arguments.length)for(var n,a=0,i=t.length;a<i;a++)(n||!(a in t))&&(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))}(a=n||(n={})).OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",a.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",a.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",a.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",a.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",a.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",a.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",a.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",a.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",a.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",a.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",a.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",a.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",a.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",a.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",a.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",a.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties";var s="http://schemas.openxmlformats.org/wordprocessingml/2006/main",l={mul:.05,unit:"pt"},u={mul:1/12700,unit:"pt"},c={mul:.5,unit:"pt"},f={mul:.125,unit:"pt"},d={mul:1,unit:"pt"},h={mul:.02,unit:"%"};function p(e,t){var r;return void 0===t&&(t=l),null==e||/.+(p[xt]|[%])$/.test(e)?e:"".concat((parseInt(e)*t.mul).toFixed(2)).concat(null!==(r=t.unit)&&void 0!==r?r:"")}function b(e,t,r){if(e.namespaceURI!=s)return!1;switch(e.localName){case"color":t.color=r.attr(e,"val");break;case"sz":t.fontSize=r.lengthAttr(e,"val",c);break;default:return!1}return!0}var m=function(){function e(){}return Object.defineProperty(e.prototype,"elements",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=null);for(var r=[],n=0,a=e.childNodes.length;n<a;n++){var i=e.childNodes.item(n);1==i.nodeType&&(null==t||i.localName==t)&&r.push(i)}return r}}),Object.defineProperty(e.prototype,"element",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(var r=0,n=e.childNodes.length;r<n;r++){var a=e.childNodes.item(r);if(1==a.nodeType&&a.localName==t)return a}return null}}),Object.defineProperty(e.prototype,"elementAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this.element(e,t);return n?this.attr(n,r):void 0}}),Object.defineProperty(e.prototype,"attr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(var r=0,n=e.attributes.length;r<n;r++){var a=e.attributes.item(r);if(a.localName==t)return a.value}return null}}),Object.defineProperty(e.prototype,"intAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){void 0===r&&(r=null);var n=this.attr(e,t);return n?parseInt(n):r}}),Object.defineProperty(e.prototype,"hexAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){void 0===r&&(r=null);var n=this.attr(e,t);return n?parseInt(n,16):r}}),Object.defineProperty(e.prototype,"floatAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){void 0===r&&(r=null);var n=this.attr(e,t);return n?parseFloat(n):r}}),Object.defineProperty(e.prototype,"boolAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return void 0===r&&(r=null),function(e,t){switch(void 0===t&&(t=!1),e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return t}}(this.attr(e,t),r)}}),Object.defineProperty(e.prototype,"lengthAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){return void 0===r&&(r=l),p(this.attr(e,t),r)}}),e}(),g=new m,v=function(){function e(e,t){Object.defineProperty(this,"_package",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"path",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"_xmlDocument",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rels",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Object.defineProperty(e.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;return Promise.all([this._package.loadRelationships(this.path).then((function(t){e.rels=t})),this._package.load(this.path).then((function(t){var r=e._package.parseXmlDocument(t);e._package.options.keepOrigin&&(e._xmlDocument=r),e.parseXml(r.firstElementChild)}))])}}),Object.defineProperty(e.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(){this._package.update(this.path,function(e){return(new XMLSerializer).serializeToString(e)}(this._xmlDocument))}}),Object.defineProperty(e.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){}}),e}(),y={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function w(e,t){return t.elements(e).map((function(e){return function(e,t){for(var r={name:t.attr(e,"name"),embedFontRefs:[]},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"family":r.family=t.attr(i,"val");break;case"altName":r.altName=t.attr(i,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":r.embedFontRefs.push(_(i,t))}}return r}(e,t)}))}function _(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:y[e.localName]}}var k=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"fonts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.fonts=w(e,this._package.xmlParser)}}),t}(v),P=("undefined"==typeof globalThis?"undefined":e(globalThis))<"u"?globalThis:("undefined"==typeof window?"undefined":e(window))<"u"?window:("undefined"==typeof global?"undefined":e(global))<"u"?global:("undefined"==typeof self?"undefined":e(self))<"u"?self:{};function x(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var S={exports:{}};function O(e){var t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]}function A(e,t){try{var r="http://docx/";return new URL(e,r+t).toString().substring(r.length)}catch(n){return"".concat(t).concat(e)}}function C(t){return t&&"object"==e(t)&&!Array.isArray(t)}function E(e){for(var t,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];if(!r.length)return e;var a=r.shift();if(C(e)&&C(a))for(var i in a)if(C(a[i])){var s=null!==(t=e[i])&&void 0!==t?t:e[i]={};E(s,a[i])}else e[i]=a[i];return E.apply(void 0,o([e],r,!1))}!function(t,r){t.exports=function e(t,r,n){function a(o,s){if(!r[o]){if(!t[o]){if(!s&&x)return x(o);if(i)return i(o,!0);var l=new Error("Cannot find module '"+o+"'");throw l.code="MODULE_NOT_FOUND",l}var u=r[o]={exports:{}};t[o][0].call(u.exports,(function(e){return a(t[o][1][e]||e)}),u,u.exports,e,t,r,n)}return r[o].exports}for(var i=x,o=0;o<n.length;o++)a(n[o]);return a}({1:[function(e,t,r){var n=e("./utils"),a=e("./support"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.encode=function(e){for(var t,r,a,o,s,l,u,c=[],f=0,d=e.length,h=d,p="string"!==n.getTypeOf(e);f<e.length;)h=d-f,a=p?(t=e[f++],r=f<d?e[f++]:0,f<d?e[f++]:0):(t=e.charCodeAt(f++),r=f<d?e.charCodeAt(f++):0,f<d?e.charCodeAt(f++):0),o=t>>2,s=(3&t)<<4|r>>4,l=1<h?(15&r)<<2|a>>6:64,u=2<h?63&a:64,c.push(i.charAt(o)+i.charAt(s)+i.charAt(l)+i.charAt(u));return c.join("")},r.decode=function(e){var t,r,n,o,s,l,u=0,c=0,f="data:";if(e.substr(0,f.length)===f)throw new Error("Invalid base64 input, it looks like a data url.");var d,h=3*(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&h--,e.charAt(e.length-2)===i.charAt(64)&&h--,h%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=a.uint8array?new Uint8Array(0|h):new Array(0|h);u<e.length;)t=i.indexOf(e.charAt(u++))<<2|(o=i.indexOf(e.charAt(u++)))>>4,r=(15&o)<<4|(s=i.indexOf(e.charAt(u++)))>>2,n=(3&s)<<6|(l=i.indexOf(e.charAt(u++))),d[c++]=t,64!==s&&(d[c++]=r),64!==l&&(d[c++]=n);return d}},{"./support":30,"./utils":32}],2:[function(e,t,r){var n=e("./external"),a=e("./stream/DataWorker"),i=e("./stream/Crc32Probe"),o=e("./stream/DataLengthProbe");function s(e,t,r,n,a){this.compressedSize=e,this.uncompressedSize=t,this.crc32=r,this.compression=n,this.compressedContent=a}s.prototype={getContentWorker:function(){var e=new a(n.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new o("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 a(n.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,r){return e.pipe(new i).pipe(new o("uncompressedSize")).pipe(t.compressWorker(r)).pipe(new o("compressedSize")).withStreamInfo("compression",t)},t.exports=s},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(e,t,r){var n=e("./stream/GenericWorker");r.STORE={magic:"\0\0",compressWorker:function(e){return new n("STORE compression")},uncompressWorker:function(){return new n("STORE decompression")}},r.DEFLATE=e("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(e,t,r){var n=e("./utils"),a=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t){return void 0!==e&&e.length?"string"!==n.getTypeOf(e)?function(e,t,r,n){var i=a,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}(0|t,e,e.length,0):function(e,t,r,n){var i=a,o=n+r;e^=-1;for(var s=n;s<o;s++)e=e>>>8^i[255&(e^t.charCodeAt(s))];return-1^e}(0|t,e,e.length,0):0}},{"./utils":32}],5:[function(e,t,r){r.base64=!1,r.binary=!1,r.dir=!1,r.createFolders=!0,r.date=null,r.compression=null,r.compressionOptions=null,r.comment=null,r.unixPermissions=null,r.dosPermissions=null},{}],6:[function(t,r,n){var a=null;a=("undefined"==typeof Promise?"undefined":e(Promise))<"u"?Promise:t("lie"),r.exports={Promise:a}},{lie:37}],7:[function(t,r,n){var a=("undefined"==typeof Uint8Array?"undefined":e(Uint8Array))<"u"&&("undefined"==typeof Uint16Array?"undefined":e(Uint16Array))<"u"&&("undefined"==typeof Uint32Array?"undefined":e(Uint32Array))<"u",i=t("pako"),o=t("./utils"),s=t("./stream/GenericWorker"),l=a?"uint8array":"array";function u(e,t){s.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}n.magic="\b\0",o.inherits(u,s),u.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(o.transformTo(l,e.data),!1)},u.prototype.flush=function(){s.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},u.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this._pako=null},u.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},n.compressWorker=function(e){return new u("Deflate",e)},n.uncompressWorker=function(){return new u("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(e,t,r){function n(e,t){var r,n="";for(r=0;r<t;r++)n+=String.fromCharCode(255&e),e>>>=8;return n}function a(e,t,r,a,o,c){var f,d,h=e.file,p=e.compression,b=c!==s.utf8encode,m=i.transformTo("string",c(h.name)),g=i.transformTo("string",s.utf8encode(h.name)),v=h.comment,y=i.transformTo("string",c(v)),w=i.transformTo("string",s.utf8encode(v)),_=g.length!==h.name.length,k=w.length!==v.length,P="",x="",S="",O=h.dir,A=h.date,C={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(C.crc32=e.crc32,C.compressedSize=e.compressedSize,C.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),b||!_&&!k||(E|=2048);var j,N,z,T=0,I=0;O&&(T|=16),"UNIX"===o?(I=798,T|=(j=h.unixPermissions,N=O,z=j,j||(z=N?16893:33204),(65535&z)<<16)):(I=20,T|=function(e){return 63&(e||0)}(h.dosPermissions)),f=A.getUTCHours(),f<<=6,f|=A.getUTCMinutes(),f<<=5,f|=A.getUTCSeconds()/2,d=A.getUTCFullYear()-1980,d<<=4,d|=A.getUTCMonth()+1,d<<=5,d|=A.getUTCDate(),_&&(x=n(1,1)+n(l(m),4)+g,P+="up"+n(x.length,2)+x),k&&(S=n(1,1)+n(l(y),4)+w,P+="uc"+n(S.length,2)+S);var B="";return B+="\n\0",B+=n(E,2),B+=p.magic,B+=n(f,2),B+=n(d,2),B+=n(C.crc32,4),B+=n(C.compressedSize,4),B+=n(C.uncompressedSize,4),B+=n(m.length,2),B+=n(P.length,2),{fileRecord:u.LOCAL_FILE_HEADER+B+m+P,dirRecord:u.CENTRAL_FILE_HEADER+n(I,2)+B+n(y.length,2)+"\0\0\0\0"+n(T,4)+n(a,4)+m+P+y}}var i=e("../utils"),o=e("../stream/GenericWorker"),s=e("../utf8"),l=e("../crc32"),u=e("../signature");function c(e,t,r,n){o.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=t,this.zipPlatform=r,this.encodeFileName=n,this.streamFiles=e,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}i.inherits(c,o),c.prototype.push=function(e){var t=e.meta.percent||0,r=this.entriesCount,n=this._sources.length;this.accumulate?this.contentBuffer.push(e):(this.bytesWritten+=e.data.length,o.prototype.push.call(this,{data:e.data,meta:{currentFile:this.currentFile,percent:r?(t+100*(r-n-1))/r:100}}))},c.prototype.openedSource=function(e){this.currentSourceOffset=this.bytesWritten,this.currentFile=e.file.name;var t=this.streamFiles&&!e.file.dir;if(t){var r=a(e,t,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},c.prototype.closedSource=function(e){this.accumulate=!1;var t,r=this.streamFiles&&!e.file.dir,i=a(e,r,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(i.dirRecord),r)this.push({data:(t=e,u.DATA_DESCRIPTOR+n(t.crc32,4)+n(t.compressedSize,4)+n(t.uncompressedSize,4)),meta:{percent:100}});else for(this.push({data:i.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},c.prototype.flush=function(){for(var e=this.bytesWritten,t=0;t<this.dirRecords.length;t++)this.push({data:this.dirRecords[t],meta:{percent:100}});var r,a,o,s,l,c,f=this.bytesWritten-e,d=(r=this.dirRecords.length,a=f,o=e,s=this.zipComment,l=this.encodeFileName,c=i.transformTo("string",l(s)),u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(r,2)+n(r,2)+n(a,4)+n(o,4)+n(c.length,2)+c);this.push({data:d,meta:{percent:100}})},c.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},c.prototype.registerPrevious=function(e){this._sources.push(e);var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.closedSource(t.previous.streamInfo),t._sources.length?t.prepareNextSource():t.end()})),e.on("error",(function(e){t.error(e)})),this},c.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},c.prototype.error=function(e){var t=this._sources;if(!o.prototype.error.call(this,e))return!1;for(var r=0;r<t.length;r++)try{t[r].error(e)}catch(n){}return!0},c.prototype.lock=function(){o.prototype.lock.call(this);for(var e=this._sources,t=0;t<e.length;t++)e[t].lock()},t.exports=c},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(e,t,r){var n=e("../compressions"),a=e("./ZipFileWorker");r.generateWorker=function(e,t,r){var i=new a(t.streamFiles,r,t.platform,t.encodeFileName),o=0;try{e.forEach((function(e,r){o++;var a=function(e,t){var r=e||t,a=n[r];if(!a)throw new Error(r+" is not a valid compression method !");return a}(r.options.compression,t.compression),s=r.options.compressionOptions||t.compressionOptions||{},l=r.dir,u=r.date;r._compressWorker(a,s).withStreamInfo("file",{name:e,dir:l,date:u,comment:r.comment||"",unixPermissions:r.unixPermissions,dosPermissions:r.dosPermissions}).pipe(i)})),i.entriesCount=o}catch(s){i.error(s)}return i}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(e,t,r){function n(){if(!(this instanceof n))return new n;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var e=new n;for(var t in this)"function"!=typeof this[t]&&(e[t]=this[t]);return e}}(n.prototype=e("./object")).loadAsync=e("./load"),n.support=e("./support"),n.defaults=e("./defaults"),n.version="3.9.1",n.loadAsync=function(e,t){return(new n).loadAsync(e,t)},n.external=e("./external"),t.exports=n},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(e,t,r){var n=e("./utils"),a=e("./external"),i=e("./utf8"),o=e("./zipEntries"),s=e("./stream/Crc32Probe"),l=e("./nodejsUtils");function u(e){return new a.Promise((function(t,r){var n=e.decompressed.getContentWorker().pipe(new s);n.on("error",(function(e){r(e)})).on("end",(function(){n.streamInfo.crc32!==e.decompressed.crc32?r(new Error("Corrupted zip : CRC32 mismatch")):t()})).resume()}))}t.exports=function(e,t){var r=this;return t=n.extend(t||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:i.utf8decode}),l.isNode&&l.isStream(e)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):n.prepareContent("the loaded zip file",e,!0,t.optimizedBinaryString,t.base64).then((function(e){var r=new o(t);return r.load(e),r})).then((function(e){var r=[a.Promise.resolve(e)],n=e.files;if(t.checkCRC32)for(var i=0;i<n.length;i++)r.push(u(n[i]));return a.Promise.all(r)})).then((function(e){for(var a=e.shift(),i=a.files,o=0;o<i.length;o++){var s=i[o],l=s.fileNameStr,u=n.resolve(s.fileNameStr);r.file(u,s.decompressed,{binary:!0,optimizedBinaryString:!0,date:s.date,dir:s.dir,comment:s.fileCommentStr.length?s.fileCommentStr:null,unixPermissions:s.unixPermissions,dosPermissions:s.dosPermissions,createFolders:t.createFolders}),s.dir||(r.file(u).unsafeOriginalName=l)}return a.zipComment.length&&(r.comment=a.zipComment),r}))}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(e,t,r){var n=e("../utils"),a=e("../stream/GenericWorker");function i(e,t){a.call(this,"Nodejs stream input adapter for "+e),this._upstreamEnded=!1,this._bindStream(t)}n.inherits(i,a),i.prototype._bindStream=function(e){var t=this;(this._stream=e).pause(),e.on("data",(function(e){t.push({data:e,meta:{percent:0}})})).on("error",(function(e){t.isPaused?this.generatedError=e:t.error(e)})).on("end",(function(){t.isPaused?t._upstreamEnded=!0:t.end()}))},i.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},t.exports=i},{"../stream/GenericWorker":28,"../utils":32}],13:[function(e,t,r){var n=e("readable-stream").Readable;function a(e,t,r){n.call(this,t),this._helper=e;var a=this;e.on("data",(function(e,t){a.push(e)||a._helper.pause(),r&&r(t)})).on("error",(function(e){a.emit("error",e)})).on("end",(function(){a.push(null)}))}e("../utils").inherits(a,n),a.prototype._read=function(){this._helper.resume()},t.exports=a},{"../utils":32,"readable-stream":16}],14:[function(t,r,n){r.exports={isNode:("undefined"==typeof Buffer?"undefined":e(Buffer))<"u",newBufferFrom:function(e,t){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(e,t);if("number"==typeof e)throw new Error('The "data" argument must not be a number');return new Buffer(e,t)},allocBuffer:function(e){if(Buffer.alloc)return Buffer.alloc(e);var t=new Buffer(e);return t.fill(0),t},isBuffer:function(e){return Buffer.isBuffer(e)},isStream:function(e){return e&&"function"==typeof e.on&&"function"==typeof e.pause&&"function"==typeof e.resume}}},{}],15:[function(e,t,r){function n(e,t,r){var n,a=i.getTypeOf(t),s=i.extend(r||{},l);s.date=s.date||new Date,null!==s.compression&&(s.compression=s.compression.toUpperCase()),"string"==typeof s.unixPermissions&&(s.unixPermissions=parseInt(s.unixPermissions,8)),s.unixPermissions&&16384&s.unixPermissions&&(s.dir=!0),s.dosPermissions&&16&s.dosPermissions&&(s.dir=!0),s.dir&&(e=b(e)),s.createFolders&&(n=p(e))&&m.call(this,n,!0);var f="string"===a&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!f),(t instanceof u&&0===t.uncompressedSize||s.dir||!t||0===t.length)&&(s.base64=!1,s.binary=!0,t="",s.compression="STORE",a="string");var g=null;g=t instanceof u||t instanceof o?t:d.isNode&&d.isStream(t)?new h(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var v=new c(e,g,s);this.files[e]=v}var a=e("./utf8"),i=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),f=e("./generate"),d=e("./nodejsUtils"),h=e("./nodejs/NodejsStreamInputAdapter"),p=function(e){"/"===e.slice(-1)&&(e=e.substring(0,e.length-1));var t=e.lastIndexOf("/");return 0<t?e.substring(0,t):""},b=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},m=function(e,t){return t=void 0!==t?t:l.createFolders,e=b(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function g(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var v={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(e){var t,r,n;for(t in this.files)n=this.files[t],(r=t.slice(this.root.length,t.length))&&t.slice(0,this.root.length)===this.root&&e(r,n)},filter:function(e){var t=[];return this.forEach((function(r,n){e(r,n)&&t.push(n)})),t},file:function(e,t,r){if(1!==arguments.length)return e=this.root+e,n.call(this,e,t,r),this;if(g(e)){var a=e;return this.filter((function(e,t){return!t.dir&&a.test(e)}))}var i=this.files[this.root+e];return i&&!i.dir?i:null},folder:function(e){if(!e)return this;if(g(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=m.call(this,t),n=this.clone();return n.root=r.name,n},remove:function(e){e=this.root+e;var t=this.files[e];if(t||("/"!==e.slice(-1)&&(e+="/"),t=this.files[e]),t&&!t.dir)delete this.files[e];else for(var r=this.filter((function(t,r){return r.name.slice(0,e.length)===e})),n=0;n<r.length;n++)delete this.files[r[n].name];return this},generate:function(e){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(e){var t,r={};try{if((r=i.extend(e||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=r.type.toLowerCase(),r.compression=r.compression.toUpperCase(),"binarystring"===r.type&&(r.type="string"),!r.type)throw new Error("No output type specified.");i.checkSupport(r.type),"darwin"!==r.platform&&"freebsd"!==r.platform&&"linux"!==r.platform&&"sunos"!==r.platform||(r.platform="UNIX"),"win32"===r.platform&&(r.platform="DOS");var n=r.comment||this.comment||"";t=f.generateWorker(this,r,n)}catch(l){(t=new o("error")).error(l)}return new s(t,r.type||"string",r.mimeType)},generateAsync:function(e,t){return this.generateInternalStream(e).accumulate(t)},generateNodeStream:function(e,t){return(e=e||{}).type||(e.type="nodebuffer"),this.generateInternalStream(e).toNodejsStream(t)}};t.exports=v},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(e,t,r){t.exports=e("stream")},{stream:void 0}],17:[function(e,t,r){var n=e("./DataReader");function a(e){n.call(this,e);for(var t=0;t<this.data.length;t++)e[t]=255&e[t]}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data[this.zero+e]},a.prototype.lastIndexOfSignature=function(e){for(var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.length-4;0<=i;--i)if(this.data[i]===t&&this.data[i+1]===r&&this.data[i+2]===n&&this.data[i+3]===a)return i-this.zero;return-1},a.prototype.readAndCheckSignature=function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1),n=e.charCodeAt(2),a=e.charCodeAt(3),i=this.readData(4);return t===i[0]&&r===i[1]&&n===i[2]&&a===i[3]},a.prototype.readData=function(e){if(this.checkOffset(e),0===e)return[];var t=this.data.slice(this.zero+this.index,this.zero+this.index+e);return this.index+=e,t},t.exports=a},{"../utils":32,"./DataReader":18}],18:[function(e,t,r){var n=e("../utils");function a(e){this.data=e,this.length=e.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(e){this.checkIndex(this.index+e)},checkIndex:function(e){if(this.length<this.zero+e||e<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+e+"). Corrupted zip ?")},setIndex:function(e){this.checkIndex(e),this.index=e},skip:function(e){this.setIndex(this.index+e)},byteAt:function(e){},readInt:function(e){var t,r=0;for(this.checkOffset(e),t=this.index+e-1;t>=this.index;t--)r=(r<<8)+this.byteAt(t);return this.index+=e,r},readString:function(e){return n.transformTo("string",this.readData(e))},readData:function(e){},lastIndexOfSignature:function(e){},readAndCheckSignature:function(e){},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=a},{"../utils":32}],19:[function(e,t,r){var n=e("./Uint8ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.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=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(e,t,r){var n=e("./DataReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.prototype.byteAt=function(e){return this.data.charCodeAt(this.zero+e)},a.prototype.lastIndexOfSignature=function(e){return this.data.lastIndexOf(e)-this.zero},a.prototype.readAndCheckSignature=function(e){return e===this.readData(4)},a.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=a},{"../utils":32,"./DataReader":18}],21:[function(e,t,r){var n=e("./ArrayReader");function a(e){n.call(this,e)}e("../utils").inherits(a,n),a.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=a},{"../utils":32,"./ArrayReader":17}],22:[function(e,t,r){var n=e("../utils"),a=e("../support"),i=e("./ArrayReader"),o=e("./StringReader"),s=e("./NodeBufferReader"),l=e("./Uint8ArrayReader");t.exports=function(e){var t=n.getTypeOf(e);return n.checkSupport(t),"string"!==t||a.uint8array?"nodebuffer"===t?new s(e):a.uint8array?new l(n.transformTo("uint8array",e)):new i(n.transformTo("array",e)):new o(e)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(e,t,r){r.LOCAL_FILE_HEADER="PK",r.CENTRAL_FILE_HEADER="PK",r.CENTRAL_DIRECTORY_END="PK",r.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK",r.ZIP64_CENTRAL_DIRECTORY_END="PK",r.DATA_DESCRIPTOR="PK\b"},{}],24:[function(e,t,r){var n=e("./GenericWorker"),a=e("../utils");function i(e){n.call(this,"ConvertWorker to "+e),this.destType=e}a.inherits(i,n),i.prototype.processChunk=function(e){this.push({data:a.transformTo(this.destType,e.data),meta:e.meta})},t.exports=i},{"../utils":32,"./GenericWorker":28}],25:[function(e,t,r){var n=e("./GenericWorker"),a=e("../crc32");function i(){n.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}e("../utils").inherits(i,n),i.prototype.processChunk=function(e){this.streamInfo.crc32=a(e.data,this.streamInfo.crc32||0),this.push(e)},t.exports=i},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(e,t,r){var n=e("../utils"),a=e("./GenericWorker");function i(e){a.call(this,"DataLengthProbe for "+e),this.propName=e,this.withStreamInfo(e,0)}n.inherits(i,a),i.prototype.processChunk=function(e){if(e){var t=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=t+e.data.length}a.prototype.processChunk.call(this,e)},t.exports=i},{"../utils":32,"./GenericWorker":28}],27:[function(e,t,r){var n=e("../utils"),a=e("./GenericWorker");function i(e){a.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=n.getTypeOf(e),t.isPaused||t._tickAndRepeat()}),(function(e){t.error(e)}))}n.inherits(i,a),i.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},i.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,n.delay(this._tickAndRepeat,[],this)),!0)},i.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(n.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},i.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=i},{"../utils":32,"./GenericWorker":28}],28:[function(e,t,r){function n(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}n.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 r=0;r<this._listeners[e].length;r++)this._listeners[e][r].call(this,t)},pipe:function(e){return e.registerPrevious(this)},registerPrevious:function(e){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=e.streamInfo,this.mergeStreamInfo(),this.previous=e;var t=this;return e.on("data",(function(e){t.processChunk(e)})),e.on("end",(function(){t.end()})),e.on("error",(function(e){t.error(e)})),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var e=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),e=!0),this.previous&&this.previous.resume(),!e},flush:function(){},processChunk:function(e){this.push(e)},withStreamInfo:function(e,t){return this.extraStreamInfo[e]=t,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var e in this.extraStreamInfo)this.extraStreamInfo.hasOwnProperty(e)&&(this.streamInfo[e]=this.extraStreamInfo[e])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var e="Worker "+this.name;return this.previous?this.previous+" -> "+e:e}},t.exports=n},{}],29:[function(e,t,r){var n=e("../utils"),a=e("./ConvertWorker"),i=e("./GenericWorker"),o=e("../base64"),s=e("../support"),l=e("../external"),u=null;if(s.nodestream)try{u=e("../nodejs/NodejsStreamOutputAdapter")}catch(d){}function c(e,t){return new l.Promise((function(r,a){var i=[],s=e._internalType,l=e._outputType,u=e._mimeType;e.on("data",(function(e,r){i.push(e),t&&t(r)})).on("error",(function(e){i=[],a(e)})).on("end",(function(){try{var e=function(e,t,r){switch(e){case"blob":return n.newBlob(n.transformTo("arraybuffer",t),r);case"base64":return o.encode(t);default:return n.transformTo(e,t)}}(l,function(e,t){var r,n=0,a=null,i=0;for(r=0;r<t.length;r++)i+=t[r].length;switch(e){case"string":return t.join("");case"array":return Array.prototype.concat.apply([],t);case"uint8array":for(a=new Uint8Array(i),r=0;r<t.length;r++)a.set(t[r],n),n+=t[r].length;return a;case"nodebuffer":return Buffer.concat(t);default:throw new Error("concat : unsupported type '"+e+"'")}}(s,i),u);r(e)}catch(t){a(t)}i=[]})).resume()}))}function f(e,t,r){var o=t;switch(t){case"blob":case"arraybuffer":o="uint8array";break;case"base64":o="string"}try{this._internalType=o,this._outputType=t,this._mimeType=r,n.checkSupport(o),this._worker=e.pipe(new a(o)),e.lock()}catch(s){this._worker=new i("error"),this._worker.error(s)}}f.prototype={accumulate:function(e){return c(this,e)},on:function(e,t){var r=this;return"data"===e?this._worker.on(e,(function(e){t.call(r,e.data,e.meta)})):this._worker.on(e,(function(){n.delay(t,arguments,r)})),this},resume:function(){return n.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(e){if(n.checkSupport("nodestream"),"nodebuffer"!==this._outputType)throw new Error(this._outputType+" is not supported by this method");return new u(this,{objectMode:"nodebuffer"!==this._outputType},e)}},t.exports=f},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(t,r,n){if(n.base64=!0,n.array=!0,n.string=!0,n.arraybuffer=("undefined"==typeof ArrayBuffer?"undefined":e(ArrayBuffer))<"u"&&("undefined"==typeof Uint8Array?"undefined":e(Uint8Array))<"u",n.nodebuffer=("undefined"==typeof Buffer?"undefined":e(Buffer))<"u",n.uint8array=("undefined"==typeof Uint8Array?"undefined":e(Uint8Array))<"u",("undefined"==typeof ArrayBuffer?"undefined":e(ArrayBuffer))>"u")n.blob=!1;else{var a=new ArrayBuffer(0);try{n.blob=0===new Blob([a],{type:"application/zip"}).size}catch(o){try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(a),n.blob=0===i.getBlob("application/zip").size}catch(s){n.blob=!1}}}try{n.nodestream=!!t("readable-stream").Readable}catch(l){n.nodestream=!1}},{"readable-stream":16}],31:[function(e,t,r){for(var n=e("./utils"),a=e("./support"),i=e("./nodejsUtils"),o=e("./stream/GenericWorker"),s=new Array(256),l=0;l<256;l++)s[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function u(){o.call(this,"utf-8 decode"),this.leftOver=null}function c(){o.call(this,"utf-8 encode")}s[254]=s[254]=1,r.utf8encode=function(e){return a.nodebuffer?i.newBufferFrom(e,"utf-8"):function(e){var t,r,n,i,o,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=a.uint8array?new Uint8Array(l):new Array(l),i=o=0;o<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(n=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(n-56320),i++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t}(e)},r.utf8decode=function(e){return a.nodebuffer?n.transformTo("nodebuffer",e).toString("utf-8"):function(e){var t,r,a,i,o=e.length,l=new Array(2*o);for(t=r=0;t<o;)if((a=e[t++])<128)l[r++]=a;else if(4<(i=s[a]))l[r++]=65533,t+=i-1;else{for(a&=2===i?31:3===i?15:7;1<i&&t<o;)a=a<<6|63&e[t++],i--;1<i?l[r++]=65533:a<65536?l[r++]=a:(a-=65536,l[r++]=55296|a>>10&1023,l[r++]=56320|1023&a)}return l.length!==r&&(l.subarray?l=l.subarray(0,r):l.length=r),n.applyFromCharCode(l)}(e=n.transformTo(a.uint8array?"uint8array":"array",e))},n.inherits(u,o),u.prototype.processChunk=function(e){var t=n.transformTo(a.uint8array?"uint8array":"array",e.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var i=t;(t=new Uint8Array(i.length+this.leftOver.length)).set(this.leftOver,0),t.set(i,this.leftOver.length)}else t=this.leftOver.concat(t);this.leftOver=null}var o=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+s[e[r]]>t?r:t}(t),l=t;o!==t.length&&(a.uint8array?(l=t.subarray(0,o),this.leftOver=t.subarray(o,t.length)):(l=t.slice(0,o),this.leftOver=t.slice(o,t.length))),this.push({data:r.utf8decode(l),meta:e.meta})},u.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:r.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},r.Utf8DecodeWorker=u,n.inherits(c,o),c.prototype.processChunk=function(e){this.push({data:r.utf8encode(e.data),meta:e.meta})},r.Utf8EncodeWorker=c},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(t,r,n){var a=t("./support"),i=t("./base64"),o=t("./nodejsUtils"),s=t("set-immediate-shim"),l=t("./external");function u(e){return e}function c(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}n.newBlob=function(e,t){n.checkSupport("blob");try{return new Blob([e],{type:t})}catch(a){try{var r=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return r.append(e),r.getBlob(t)}catch(i){throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(e,t,r){var n=[],a=0,i=e.length;if(i<=r)return String.fromCharCode.apply(null,e);for(;a<i;)"array"===t||"nodebuffer"===t?n.push(String.fromCharCode.apply(null,e.slice(a,Math.min(a+r,i)))):n.push(String.fromCharCode.apply(null,e.subarray(a,Math.min(a+r,i)))),a+=r;return n.join("")},stringifyByChar:function(e){for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},applyCanBeUsed:{uint8array:function(){try{return a.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return a.nodebuffer&&1===String.fromCharCode.apply(null,o.allocBuffer(1)).length}catch(e){return!1}}()}};function d(e){var t=65536,r=n.getTypeOf(e),a=!0;if("uint8array"===r?a=f.applyCanBeUsed.uint8array:"nodebuffer"===r&&(a=f.applyCanBeUsed.nodebuffer),a)for(;1<t;)try{return f.stringifyByChunk(e,r,t)}catch(i){t=Math.floor(t/2)}return f.stringifyByChar(e)}function h(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}n.applyFromCharCode=d;var p={};p.string={string:u,array:function(e){return c(e,new Array(e.length))},arraybuffer:function(e){return p.string.uint8array(e).buffer},uint8array:function(e){return c(e,new Uint8Array(e.length))},nodebuffer:function(e){return c(e,o.allocBuffer(e.length))}},p.array={string:d,array:u,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(e)}},p.arraybuffer={string:function(e){return d(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:u,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return o.newBufferFrom(new Uint8Array(e))}},p.uint8array={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:u,nodebuffer:function(e){return o.newBufferFrom(e)}},p.nodebuffer={string:d,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return p.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:u},n.transformTo=function(e,t){if(t=t||"",!e)return t;n.checkSupport(e);var r=n.getTypeOf(t);return p[r][e](t)},n.resolve=function(e){for(var t=e.split("/"),r=[],n=0;n<t.length;n++){var a=t[n];"."===a||""===a&&0!==n&&n!==t.length-1||(".."===a?r.pop():r.push(a))}return r.join("/")},n.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":a.nodebuffer&&o.isBuffer(e)?"nodebuffer":a.uint8array&&e instanceof Uint8Array?"uint8array":a.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},n.checkSupport=function(e){if(!a[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},n.MAX_VALUE_16BITS=65535,n.MAX_VALUE_32BITS=-1,n.pretty=function(e){var t,r,n="";for(r=0;r<(e||"").length;r++)n+="\\x"+((t=e.charCodeAt(r))<16?"0":"")+t.toString(16).toUpperCase();return n},n.delay=function(e,t,r){s((function(){e.apply(r||null,t||[])}))},n.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},n.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])arguments[e].hasOwnProperty(t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},n.prepareContent=function(t,r,o,s,u){return l.Promise.resolve(r).then((function(t){return a.blob&&(t instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(t)))&&("undefined"==typeof FileReader?"undefined":e(FileReader))<"u"?new l.Promise((function(e,r){var n=new FileReader;n.onload=function(t){e(t.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(t)})):t})).then((function(e){var r,f=n.getTypeOf(e);return f?("arraybuffer"===f?e=n.transformTo("uint8array",e):"string"===f&&(u?e=i.decode(e):o&&!0!==s&&(e=c(r=e,a.uint8array?new Uint8Array(r.length):new Array(r.length)))),e):l.Promise.reject(new Error("Can't read the data of '"+t+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,"set-immediate-shim":54}],33:[function(e,t,r){var n=e("./reader/readerFor"),a=e("./utils"),i=e("./signature"),o=e("./zipEntry"),s=(e("./utf8"),e("./support"));function l(e){this.files=[],this.loadOptions=e}l.prototype={checkSignature:function(e){if(!this.reader.readAndCheckSignature(e)){this.reader.index-=4;var t=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(t)+", expected "+a.pretty(e)+")")}},isSignature:function(e,t){var r=this.reader.index;this.reader.setIndex(e);var n=this.reader.readString(4)===t;return this.reader.setIndex(r),n},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var e=this.reader.readData(this.zipCommentLength),t=s.uint8array?"uint8array":"array",r=a.transformTo(t,e);this.zipComment=this.loadOptions.decodeFileName(r)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var e,t,r,n=this.zip64EndOfCentralSize-44;0<n;)e=this.reader.readInt(2),t=this.reader.readInt(4),r=this.reader.readData(t),this.zip64ExtensibleData[e]={id:e,length:t,value:r}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var e,t;for(e=0;e<this.files.length;e++)t=this.files[e],this.reader.setIndex(t.localHeaderOffset),this.checkSignature(i.LOCAL_FILE_HEADER),t.readLocalPart(this.reader),t.handleUTF8(),t.processAttributes()},readCentralDir:function(){var e;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(i.CENTRAL_FILE_HEADER);)(e=new o({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(e);if(this.centralDirRecords!==this.files.length&&0!==this.centralDirRecords&&0===this.files.length)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var e=this.reader.lastIndexOfSignature(i.CENTRAL_DIRECTORY_END);if(e<0)throw this.isSignature(0,i.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(e);var t=e;if(this.checkSignature(i.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(e=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(e),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,i.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(i.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var r=this.centralDirOffset+this.centralDirSize;this.zip64&&(r+=20,r+=12+this.zip64EndOfCentralSize);var n=t-r;if(0<n)this.isSignature(t,i.CENTRAL_FILE_HEADER)||(this.reader.zero=n);else if(n<0)throw new Error("Corrupted zip: missing "+Math.abs(n)+" bytes.")},prepareReader:function(e){this.reader=n(e)},load:function(e){this.prepareReader(e),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},t.exports=l},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utf8":31,"./utils":32,"./zipEntry":34}],34:[function(e,t,r){var n=e("./reader/readerFor"),a=e("./utils"),i=e("./compressedObject"),o=e("./crc32"),s=e("./utf8"),l=e("./compressions"),u=e("./support");function c(e,t){this.options=e,this.loadOptions=t}c.prototype={isEncrypted:function(){return 1==(1&this.bitFlag)},useUTF8:function(){return 2048==(2048&this.bitFlag)},readLocalPart:function(e){var t,r;if(e.skip(22),this.fileNameLength=e.readInt(2),r=e.readInt(2),this.fileName=e.readData(this.fileNameLength),e.skip(r),-1===this.compressedSize||-1===this.uncompressedSize)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if(null===(t=function(e){for(var t in l)if(l.hasOwnProperty(t)&&l[t].magic===e)return l[t];return null}(this.compressionMethod)))throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new i(this.compressedSize,this.uncompressedSize,this.crc32,t,e.readData(this.compressedSize))},readCentralPart:function(e){this.versionMadeBy=e.readInt(2),e.skip(2),this.bitFlag=e.readInt(2),this.compressionMethod=e.readString(2),this.date=e.readDate(),this.crc32=e.readInt(4),this.compressedSize=e.readInt(4),this.uncompressedSize=e.readInt(4);var t=e.readInt(2);if(this.extraFieldsLength=e.readInt(2),this.fileCommentLength=e.readInt(2),this.diskNumberStart=e.readInt(2),this.internalFileAttributes=e.readInt(2),this.externalFileAttributes=e.readInt(4),this.localHeaderOffset=e.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");e.skip(t),this.readExtraFields(e),this.parseZIP64ExtraField(e),this.fileComment=e.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var e=this.versionMadeBy>>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(e){if(this.extraFields[1]){var t=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=t.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=t.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=t.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=t.readInt(4))}},readExtraFields:function(e){var t,r,n,a=e.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});e.index+4<a;)t=e.readInt(2),r=e.readInt(2),n=e.readData(r),this.extraFields[t]={id:t,length:r,value:n};e.setIndex(a)},handleUTF8:function(){var e=u.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=s.utf8decode(this.fileName),this.fileCommentStr=s.utf8decode(this.fileComment);else{var t=this.findExtraFieldUnicodePath();if(null!==t)this.fileNameStr=t;else{var r=a.transformTo(e,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var n=this.findExtraFieldUnicodeComment();if(null!==n)this.fileCommentStr=n;else{var i=a.transformTo(e,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(i)}}},findExtraFieldUnicodePath:function(){var e=this.extraFields[28789];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileName)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null},findExtraFieldUnicodeComment:function(){var e=this.extraFields[25461];if(e){var t=n(e.value);return 1!==t.readInt(1)||o(this.fileComment)!==t.readInt(4)?null:s.utf8decode(t.readData(e.length-5))}return null}},t.exports=c},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(e,t,r){function n(e,t,r){this.name=e,this.dir=r.dir,this.date=r.date,this.comment=r.comment,this.unixPermissions=r.unixPermissions,this.dosPermissions=r.dosPermissions,this._data=t,this._dataBinary=r.binary,this.options={compression:r.compression,compressionOptions:r.compressionOptions}}var a=e("./stream/StreamHelper"),i=e("./stream/DataWorker"),o=e("./utf8"),s=e("./compressedObject"),l=e("./stream/GenericWorker");n.prototype={internalStream:function(e){var t=null,r="string";try{if(!e)throw new Error("No output type specified.");var n="string"===(r=e.toLowerCase())||"text"===r;"binarystring"!==r&&"text"!==r||(r="string"),t=this._decompressWorker();var i=!this._dataBinary;i&&!n&&(t=t.pipe(new o.Utf8EncodeWorker)),!i&&n&&(t=t.pipe(new o.Utf8DecodeWorker))}catch(s){(t=new l("error")).error(s)}return new a(t,r,"")},async:function(e,t){return this.internalStream(e).accumulate(t)},nodeStream:function(e,t){return this.internalStream(e||"nodebuffer").toNodejsStream(t)},_compressWorker:function(e,t){if(this._data instanceof s&&this._data.compression.magic===e.magic)return this._data.getCompressedWorker();var r=this._decompressWorker();return this._dataBinary||(r=r.pipe(new o.Utf8EncodeWorker)),s.createWorkerFrom(r,e,t)},_decompressWorker:function(){return this._data instanceof s?this._data.getContentWorker():this._data instanceof l?this._data:new i(this._data)}};for(var u=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],c=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},f=0;f<u.length;f++)n.prototype[u[f]]=c;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(t,r,n){(function(e){var t,n,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var i=0,o=new a(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),t=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)t="document"in e&&"onreadystatechange"in e.document.createElement("script")?function(){var t=e.document.createElement("script");t.onreadystatechange=function(){c(),t.onreadystatechange=null,t.parentNode.removeChild(t),t=null},e.document.documentElement.appendChild(t)}:function(){setTimeout(c,0)};else{var l=new e.MessageChannel;l.port1.onmessage=c,t=function(){l.port2.postMessage(0)}}var u=[];function c(){var e,t;n=!0;for(var r=u.length;r;){for(t=u,u=[],e=-1;++e<r;)t[e]();r=u.length}n=!1}r.exports=function(e){1!==u.push(e)||n||t()}}).call(this,e(P)<"u"?P:("undefined"==typeof self?"undefined":e(self))<"u"?self:("undefined"==typeof window?"undefined":e(window))<"u"?window:{})},{}],37:[function(t,r,n){var a=t("immediate");function i(){}var o={},s=["REJECTED"],l=["FULFILLED"],u=["PENDING"];function c(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=u,this.queue=[],this.outcome=void 0,e!==i&&p(this,e)}function f(e,t,r){this.promise=e,"function"==typeof t&&(this.onFulfilled=t,this.callFulfilled=this.otherCallFulfilled),"function"==typeof r&&(this.onRejected=r,this.callRejected=this.otherCallRejected)}function d(e,t,r){a((function(){var n;try{n=t(r)}catch(a){return o.reject(e,a)}n===e?o.reject(e,new TypeError("Cannot resolve promise with itself")):o.resolve(e,n)}))}function h(t){var r=t&&t.then;if(t&&("object"==e(t)||"function"==typeof t)&&"function"==typeof r)return function(){r.apply(t,arguments)}}function p(e,t){var r=!1;function n(t){r||(r=!0,o.reject(e,t))}function a(t){r||(r=!0,o.resolve(e,t))}var i=b((function(){t(a,n)}));"error"===i.status&&n(i.value)}function b(e,t){var r={};try{r.value=e(t),r.status="success"}catch(n){r.status="error",r.value=n}return r}(r.exports=c).prototype.finally=function(e){if("function"!=typeof e)return this;var t=this.constructor;return this.then((function(r){return t.resolve(e()).then((function(){return r}))}),(function(r){return t.resolve(e()).then((function(){throw r}))}))},c.prototype.catch=function(e){return this.then(null,e)},c.prototype.then=function(e,t){if("function"!=typeof e&&this.state===l||"function"!=typeof t&&this.state===s)return this;var r=new this.constructor(i);return this.state!==u?d(r,this.state===l?e:t,this.outcome):this.queue.push(new f(r,e,t)),r},f.prototype.callFulfilled=function(e){o.resolve(this.promise,e)},f.prototype.otherCallFulfilled=function(e){d(this.promise,this.onFulfilled,e)},f.prototype.callRejected=function(e){o.reject(this.promise,e)},f.prototype.otherCallRejected=function(e){d(this.promise,this.onRejected,e)},o.resolve=function(e,t){var r=b(h,t);if("error"===r.status)return o.reject(e,r.value);var n=r.value;if(n)p(e,n);else{e.state=l,e.outcome=t;for(var a=-1,i=e.queue.length;++a<i;)e.queue[a].callFulfilled(t)}return e},o.reject=function(e,t){e.state=s,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},c.resolve=function(e){return e instanceof this?e:o.resolve(new this(i),e)},c.reject=function(e){var t=new this(i);return o.reject(t,e)},c.all=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r=e.length,n=!1;if(!r)return this.resolve([]);for(var a=new Array(r),s=0,l=-1,u=new this(i);++l<r;)c(e[l],l);return u;function c(e,i){t.resolve(e).then((function(e){a[i]=e,++s!==r||n||(n=!0,o.resolve(u,a))}),(function(e){n||(n=!0,o.reject(u,e))}))}},c.race=function(e){var t=this;if("[object Array]"!==Object.prototype.toString.call(e))return this.reject(new TypeError("must be an array"));var r,n=e.length,a=!1;if(!n)return this.resolve([]);for(var s=-1,l=new this(i);++s<n;)r=e[s],t.resolve(r).then((function(e){a||(a=!0,o.resolve(l,e))}),(function(e){a||(a=!0,o.reject(l,e))}));return l}},{immediate:36}],38:[function(e,t,r){var n={};(0,e("./lib/utils/common").assign)(n,e("./lib/deflate"),e("./lib/inflate"),e("./lib/zlib/constants")),t.exports=n},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(e,t,r){var n=e("./zlib/deflate"),a=e("./utils/common"),i=e("./utils/strings"),o=e("./zlib/messages"),s=e("./zlib/zstream"),l=Object.prototype.toString,u=0,c=-1,f=0,d=8;function h(e){if(!(this instanceof h))return new h(e);this.options=a.assign({level:c,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:f,to:""},e||{});var t=this.options;t.raw&&0<t.windowBits?t.windowBits=-t.windowBits:t.gzip&&0<t.windowBits&&t.windowBits<16&&(t.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new s,this.strm.avail_out=0;var r=n.deflateInit2(this.strm,t.level,t.method,t.windowBits,t.memLevel,t.strategy);if(r!==u)throw new Error(o[r]);if(t.header&&n.deflateSetHeader(this.strm,t.header),t.dictionary){var p;if(p="string"==typeof t.dictionary?i.string2buf(t.dictionary):"[object ArrayBuffer]"===l.call(t.dictionary)?new Uint8Array(t.dictionary):t.dictionary,(r=n.deflateSetDictionary(this.strm,p))!==u)throw new Error(o[r]);this._dict_set=!0}}function p(e,t){var r=new h(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}h.prototype.push=function(e,t){var r,o,s=this.strm,c=this.options.chunkSize;if(this.ended)return!1;o=t===~~t?t:!0===t?4:0,"string"==typeof e?s.input=i.string2buf(e):"[object ArrayBuffer]"===l.call(e)?s.input=new Uint8Array(e):s.input=e,s.next_in=0,s.avail_in=s.input.length;do{if(0===s.avail_out&&(s.output=new a.Buf8(c),s.next_out=0,s.avail_out=c),1!==(r=n.deflate(s,o))&&r!==u)return this.onEnd(r),!(this.ended=!0);0!==s.avail_out&&(0!==s.avail_in||4!==o&&2!==o)||("string"===this.options.to?this.onData(i.buf2binstring(a.shrinkBuf(s.output,s.next_out))):this.onData(a.shrinkBuf(s.output,s.next_out)))}while((0<s.avail_in||0===s.avail_out)&&1!==r);return 4===o?(r=n.deflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===u):2!==o||(this.onEnd(u),!(s.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.prototype.onEnd=function(e){e===u&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Deflate=h,r.deflate=p,r.deflateRaw=function(e,t){return(t=t||{}).raw=!0,p(e,t)},r.gzip=function(e,t){return(t=t||{}).gzip=!0,p(e,t)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(e,t,r){var n=e("./zlib/inflate"),a=e("./utils/common"),i=e("./utils/strings"),o=e("./zlib/constants"),s=e("./zlib/messages"),l=e("./zlib/zstream"),u=e("./zlib/gzheader"),c=Object.prototype.toString;function f(e){if(!(this instanceof f))return new f(e);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},e||{});var t=this.options;t.raw&&0<=t.windowBits&&t.windowBits<16&&(t.windowBits=-t.windowBits,0===t.windowBits&&(t.windowBits=-15)),!(0<=t.windowBits&&t.windowBits<16)||e&&e.windowBits||(t.windowBits+=32),15<t.windowBits&&t.windowBits<48&&0==(15&t.windowBits)&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var r=n.inflateInit2(this.strm,t.windowBits);if(r!==o.Z_OK)throw new Error(s[r]);this.header=new u,n.inflateGetHeader(this.strm,this.header)}function d(e,t){var r=new f(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}f.prototype.push=function(e,t){var r,s,l,u,f,d,h=this.strm,p=this.options.chunkSize,b=this.options.dictionary,m=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?h.input=i.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?h.input=new Uint8Array(e):h.input=e,h.next_in=0,h.avail_in=h.input.length;do{if(0===h.avail_out&&(h.output=new a.Buf8(p),h.next_out=0,h.avail_out=p),(r=n.inflate(h,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&b&&(d="string"==typeof b?i.string2buf(b):"[object ArrayBuffer]"===c.call(b)?new Uint8Array(b):b,r=n.inflateSetDictionary(this.strm,d)),r===o.Z_BUF_ERROR&&!0===m&&(r=o.Z_OK,m=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),!(this.ended=!0);h.next_out&&(0!==h.avail_out&&r!==o.Z_STREAM_END&&(0!==h.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(h.output,h.next_out),u=h.next_out-l,f=i.buf2string(h.output,l),h.next_out=u,h.avail_out=p-u,u&&a.arraySet(h.output,h.output,l,u,0),this.onData(f)):this.onData(a.shrinkBuf(h.output,h.next_out)))),0===h.avail_in&&0===h.avail_out&&(m=!0)}while((0<h.avail_in||0===h.avail_out)&&r!==o.Z_STREAM_END);return r===o.Z_STREAM_END&&(s=o.Z_FINISH),s===o.Z_FINISH?(r=n.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,r===o.Z_OK):s!==o.Z_SYNC_FLUSH||(this.onEnd(o.Z_OK),!(h.avail_out=0))},f.prototype.onData=function(e){this.chunks.push(e)},f.prototype.onEnd=function(e){e===o.Z_OK&&("string"===this.options.to?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=e,this.msg=this.strm.msg},r.Inflate=f,r.inflate=d,r.inflateRaw=function(e,t){return(t=t||{}).raw=!0,d(e,t)},r.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(t,r,n){var a=("undefined"==typeof Uint8Array?"undefined":e(Uint8Array))<"u"&&("undefined"==typeof Uint16Array?"undefined":e(Uint16Array))<"u"&&("undefined"==typeof Int32Array?"undefined":e(Int32Array))<"u";n.assign=function(t){for(var r=Array.prototype.slice.call(arguments,1);r.length;){var n=r.shift();if(n){if("object"!=e(n))throw new TypeError(n+"must be non-object");for(var a in n)n.hasOwnProperty(a)&&(t[a]=n[a])}}return t},n.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var i={arraySet:function(e,t,r,n,a){if(t.subarray&&e.subarray)e.set(t.subarray(r,r+n),a);else for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){var t,r,n,a,i,o;for(t=n=0,r=e.length;t<r;t++)n+=e[t].length;for(o=new Uint8Array(n),t=a=0,r=e.length;t<r;t++)i=e[t],o.set(i,a),a+=i.length;return o}},o={arraySet:function(e,t,r,n,a){for(var i=0;i<n;i++)e[a+i]=t[r+i]},flattenChunks:function(e){return[].concat.apply([],e)}};n.setTyped=function(e){e?(n.Buf8=Uint8Array,n.Buf16=Uint16Array,n.Buf32=Int32Array,n.assign(n,i)):(n.Buf8=Array,n.Buf16=Array,n.Buf32=Array,n.assign(n,o))},n.setTyped(a)},{}],42:[function(e,t,r){var n=e("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(u){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(c){i=!1}for(var o=new n.Buf8(256),s=0;s<256;s++)o[s]=252<=s?6:248<=s?5:240<=s?4:224<=s?3:192<=s?2:1;function l(e,t){if(t<65537&&(e.subarray&&i||!e.subarray&&a))return String.fromCharCode.apply(null,n.shrinkBuf(e,t));for(var r="",o=0;o<t;o++)r+=String.fromCharCode(e[o]);return r}o[254]=o[254]=1,r.string2buf=function(e){var t,r,a,i,o,s=e.length,l=0;for(i=0;i<s;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(a-56320),i++),l+=r<128?1:r<2048?2:r<65536?3:4;for(t=new n.Buf8(l),i=o=0;o<l;i++)55296==(64512&(r=e.charCodeAt(i)))&&i+1<s&&56320==(64512&(a=e.charCodeAt(i+1)))&&(r=65536+(r-55296<<10)+(a-56320),i++),r<128?t[o++]=r:(r<2048?t[o++]=192|r>>>6:(r<65536?t[o++]=224|r>>>12:(t[o++]=240|r>>>18,t[o++]=128|r>>>12&63),t[o++]=128|r>>>6&63),t[o++]=128|63&r);return t},r.buf2binstring=function(e){return l(e,e.length)},r.binstring2buf=function(e){for(var t=new n.Buf8(e.length),r=0,a=t.length;r<a;r++)t[r]=e.charCodeAt(r);return t},r.buf2string=function(e,t){var r,n,a,i,s=t||e.length,u=new Array(2*s);for(r=n=0;r<s;)if((a=e[r++])<128)u[n++]=a;else if(4<(i=o[a]))u[n++]=65533,r+=i-1;else{for(a&=2===i?31:3===i?15:7;1<i&&r<s;)a=a<<6|63&e[r++],i--;1<i?u[n++]=65533:a<65536?u[n++]=a:(a-=65536,u[n++]=55296|a>>10&1023,u[n++]=56320|1023&a)}return l(u,n)},r.utf8border=function(e,t){var r;for((t=t||e.length)>e.length&&(t=e.length),r=t-1;0<=r&&128==(192&e[r]);)r--;return r<0||0===r?t:r+o[e[r]]>t?r:t}},{"./common":41}],43:[function(e,t,r){t.exports=function(e,t,r,n){for(var a=65535&e|0,i=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3<r?2e3:r;i=i+(a=a+t[n++]|0)|0,--o;);a%=65521,i%=65521}return a|i<<16|0}},{}],44:[function(e,t,r){t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(e,t,r){var n=function(){for(var e,t=[],r=0;r<256;r++){e=r;for(var n=0;n<8;n++)e=1&e?3988292384^e>>>1:e>>>1;t[r]=e}return t}();t.exports=function(e,t,r,a){var i=n,o=a+r;e^=-1;for(var s=a;s<o;s++)e=e>>>8^i[255&(e^t[s])];return-1^e}},{}],46:[function(e,t,r){var n,a=e("../utils/common"),i=e("./trees"),o=e("./adler32"),s=e("./crc32"),l=e("./messages"),u=0,c=4,f=0,d=-2,h=-1,p=4,b=2,m=8,g=9,v=286,y=30,w=19,_=2*v+1,k=15,P=3,x=258,S=x+P+1,O=42,A=113,C=1,E=2,j=3,N=4;function z(e,t){return e.msg=l[t],t}function T(e){return(e<<1)-(4<e?9:0)}function I(e){for(var t=e.length;0<=--t;)e[t]=0}function B(e){var t=e.state,r=t.pending;r>e.avail_out&&(r=e.avail_out),0!==r&&(a.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function R(e,t){i._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,B(e.strm)}function F(e,t){e.pending_buf[e.pending++]=t}function D(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function L(e,t){var r,n,a=e.max_chain_length,i=e.strstart,o=e.prev_length,s=e.nice_match,l=e.strstart>e.w_size-S?e.strstart-(e.w_size-S):0,u=e.window,c=e.w_mask,f=e.prev,d=e.strstart+x,h=u[i+o-1],p=u[i+o];e.prev_length>=e.good_match&&(a>>=2),s>e.lookahead&&(s=e.lookahead);do{if(u[(r=t)+o]===p&&u[r+o-1]===h&&u[r]===u[i]&&u[++r]===u[i+1]){i+=2,r++;do{}while(u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&u[++i]===u[++r]&&i<d);if(n=x-(d-i),i=d-x,o<n){if(e.match_start=t,s<=(o=n))break;h=u[i+o-1],p=u[i+o]}}}while((t=f[t&c])>l&&0!=--a);return o<=e.lookahead?o:e.lookahead}function U(e){var t,r,n,i,l,u,c,f,d,h,p=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-S)){for(a.arraySet(e.window,e.window,p,p,0),e.match_start-=p,e.strstart-=p,e.block_start-=p,t=r=e.hash_size;n=e.head[--t],e.head[t]=p<=n?n-p:0,--r;);for(t=r=p;n=e.prev[--t],e.prev[t]=p<=n?n-p:0,--r;);i+=p}if(0===e.strm.avail_in)break;if(u=e.strm,c=e.window,f=e.strstart+e.lookahead,h=void 0,(d=i)<(h=u.avail_in)&&(h=d),r=0===h?0:(u.avail_in-=h,a.arraySet(c,u.input,u.next_in,h,f),1===u.state.wrap?u.adler=o(u.adler,c,h,f):2===u.state.wrap&&(u.adler=s(u.adler,c,h,f)),u.next_in+=h,u.total_in+=h,h),e.lookahead+=r,e.lookahead+e.insert>=P)for(l=e.strstart-e.insert,e.ins_h=e.window[l],e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[l+P-1])&e.hash_mask,e.prev[l&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=l,l++,e.insert--,!(e.lookahead+e.insert<P)););}while(e.lookahead<S&&0!==e.strm.avail_in)}function M(e,t){for(var r,n;;){if(e.lookahead<S){if(U(e),e.lookahead<S&&t===u)return C;if(0===e.lookahead)break}if(r=0,e.lookahead>=P&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+P-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!==r&&e.strstart-r<=e.w_size-S&&(e.match_length=L(e,r)),e.match_length>=P)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-P),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=P){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+P-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,0!=--e.match_length;);e.strstart++}else e.strstart+=e.match_length,e.match_length=0,e.ins_h=e.window[e.strstart],e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+1])&e.hash_mask;else n=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(n&&(R(e,!1),0===e.strm.avail_out))return C}return e.insert=e.strstart<P-1?e.strstart:P-1,t===c?(R(e,!0),0===e.strm.avail_out?j:N):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:E}function W(e,t){for(var r,n,a;;){if(e.lookahead<S){if(U(e),e.lookahead<S&&t===u)return C;if(0===e.lookahead)break}if(r=0,e.lookahead>=P&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+P-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),e.prev_length=e.match_length,e.prev_match=e.match_start,e.match_length=P-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-S&&(e.match_length=L(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===P&&4096<e.strstart-e.match_start)&&(e.match_length=P-1)),e.prev_length>=P&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-P,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-P),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=a&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+P-1])&e.hash_mask,r=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),0!=--e.prev_length;);if(e.match_available=0,e.match_length=P-1,e.strstart++,n&&(R(e,!1),0===e.strm.avail_out))return C}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&R(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return C}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(n=i._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<P-1?e.strstart:P-1,t===c?(R(e,!0),0===e.strm.avail_out?j:N):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:E}function H(e,t,r,n,a){this.good_length=e,this.max_lazy=t,this.nice_length=r,this.max_chain=n,this.func=a}function Z(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=m,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*_),this.dyn_dtree=new a.Buf16(2*(2*y+1)),this.bl_tree=new a.Buf16(2*(2*w+1)),I(this.dyn_ltree),I(this.dyn_dtree),I(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(k+1),this.heap=new a.Buf16(2*v+1),I(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*v+1),I(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function V(e){var t;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=b,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?O:A,e.adler=2===t.wrap?0:1,t.last_flush=u,i._tr_init(t),f):z(e,d)}function X(e){var t,r=V(e);return r===f&&((t=e.state).window_size=2*t.w_size,I(t.head),t.max_lazy_match=n[t.level].max_lazy,t.good_match=n[t.level].good_length,t.nice_match=n[t.level].nice_length,t.max_chain_length=n[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=P-1,t.match_available=0,t.ins_h=0),r}function G(e,t,r,n,i,o){if(!e)return d;var s=1;if(t===h&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),i<1||g<i||r!==m||n<8||15<n||t<0||9<t||o<0||p<o)return z(e,d);8===n&&(n=9);var l=new Z;return(e.state=l).strm=e,l.wrap=s,l.gzhead=null,l.w_bits=n,l.w_size=1<<l.w_bits,l.w_mask=l.w_size-1,l.hash_bits=i+7,l.hash_size=1<<l.hash_bits,l.hash_mask=l.hash_size-1,l.hash_shift=~~((l.hash_bits+P-1)/P),l.window=new a.Buf8(2*l.w_size),l.head=new a.Buf16(l.hash_size),l.prev=new a.Buf16(l.w_size),l.lit_bufsize=1<<i+6,l.pending_buf_size=4*l.lit_bufsize,l.pending_buf=new a.Buf8(l.pending_buf_size),l.d_buf=1*l.lit_bufsize,l.l_buf=3*l.lit_bufsize,l.level=t,l.strategy=o,l.method=r,X(e)}n=[new H(0,0,0,0,(function(e,t){var r=65535;for(r>e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(U(e),0===e.lookahead&&t===u)return C;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,R(e,!1),0===e.strm.avail_out)||e.strstart-e.block_start>=e.w_size-S&&(R(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?j:N):(e.strstart>e.block_start&&(R(e,!1),e.strm.avail_out),C)})),new H(4,4,8,4,M),new H(4,5,16,8,M),new H(4,6,32,32,M),new H(4,4,16,16,W),new H(8,16,32,32,W),new H(8,16,128,128,W),new H(8,32,128,256,W),new H(32,128,258,1024,W),new H(32,258,258,4096,W)],r.deflateInit=function(e,t){return G(e,t,m,15,8,0)},r.deflateInit2=G,r.deflateReset=X,r.deflateResetKeep=V,r.deflateSetHeader=function(e,t){return e&&e.state?2!==e.state.wrap?d:(e.state.gzhead=t,f):d},r.deflate=function(e,t){var r,a,o,l;if(!e||!e.state||5<t||t<0)return e?z(e,d):d;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||666===a.status&&t!==c)return z(e,0===e.avail_out?-5:d);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===O)if(2===a.wrap)e.adler=0,F(a,31),F(a,139),F(a,8),a.gzhead?(F(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),F(a,255&a.gzhead.time),F(a,a.gzhead.time>>8&255),F(a,a.gzhead.time>>16&255),F(a,a.gzhead.time>>24&255),F(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),F(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(F(a,255&a.gzhead.extra.length),F(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(e.adler=s(e.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=69):(F(a,0),F(a,0),F(a,0),F(a,0),F(a,0),F(a,9===a.level?2:2<=a.strategy||a.level<2?4:0),F(a,3),a.status=A);else{var h=m+(a.w_bits-8<<4)<<8;h|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(h|=32),h+=31-h%31,a.status=A,D(a,h),0!==a.strstart&&(D(a,e.adler>>>16),D(a,65535&e.adler)),e.adler=1}if(69===a.status)if(a.gzhead.extra){for(o=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),B(e),o=a.pending,a.pending!==a.pending_buf_size));)F(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=73)}else a.status=73;if(73===a.status)if(a.gzhead.name){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),B(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,F(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.gzindex=0,a.status=91)}else a.status=91;if(91===a.status)if(a.gzhead.comment){o=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),B(e),o=a.pending,a.pending===a.pending_buf_size)){l=1;break}l=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,F(a,l)}while(0!==l);a.gzhead.hcrc&&a.pending>o&&(e.adler=s(e.adler,a.pending_buf,a.pending-o,o)),0===l&&(a.status=103)}else a.status=103;if(103===a.status&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&B(e),a.pending+2<=a.pending_buf_size&&(F(a,255&e.adler),F(a,e.adler>>8&255),e.adler=0,a.status=A)):a.status=A),0!==a.pending){if(B(e),0===e.avail_out)return a.last_flush=-1,f}else if(0===e.avail_in&&T(t)<=T(r)&&t!==c)return z(e,-5);if(666===a.status&&0!==e.avail_in)return z(e,-5);if(0!==e.avail_in||0!==a.lookahead||t!==u&&666!==a.status){var p=2===a.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(U(e),0===e.lookahead)){if(t===u)return C;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(R(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?j:N):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:E}(a,t):3===a.strategy?function(e,t){for(var r,n,a,o,s=e.window;;){if(e.lookahead<=x){if(U(e),e.lookahead<=x&&t===u)return C;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=P&&0<e.strstart&&(n=s[a=e.strstart-1])===s[++a]&&n===s[++a]&&n===s[++a]){o=e.strstart+x;do{}while(n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&n===s[++a]&&a<o);e.match_length=x-(o-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=P?(r=i._tr_tally(e,1,e.match_length-P),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(R(e,!1),0===e.strm.avail_out))return C}return e.insert=0,t===c?(R(e,!0),0===e.strm.avail_out?j:N):e.last_lit&&(R(e,!1),0===e.strm.avail_out)?C:E}(a,t):n[a.level].func(a,t);if(p!==j&&p!==N||(a.status=666),p===C||p===j)return 0===e.avail_out&&(a.last_flush=-1),f;if(p===E&&(1===t?i._tr_align(a):5!==t&&(i._tr_stored_block(a,0,0,!1),3===t&&(I(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),B(e),0===e.avail_out))return a.last_flush=-1,f}return t!==c?f:a.wrap<=0?1:(2===a.wrap?(F(a,255&e.adler),F(a,e.adler>>8&255),F(a,e.adler>>16&255),F(a,e.adler>>24&255),F(a,255&e.total_in),F(a,e.total_in>>8&255),F(a,e.total_in>>16&255),F(a,e.total_in>>24&255)):(D(a,e.adler>>>16),D(a,65535&e.adler)),B(e),0<a.wrap&&(a.wrap=-a.wrap),0!==a.pending?f:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==O&&69!==t&&73!==t&&91!==t&&103!==t&&t!==A&&666!==t?z(e,d):(e.state=null,t===A?z(e,-3):f):d},r.deflateSetDictionary=function(e,t){var r,n,i,s,l,u,c,h,p=t.length;if(!e||!e.state||2===(s=(r=e.state).wrap)||1===s&&r.status!==O||r.lookahead)return d;for(1===s&&(e.adler=o(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(I(r.head),r.strstart=0,r.block_start=0,r.insert=0),h=new a.Buf8(r.w_size),a.arraySet(h,t,p-r.w_size,r.w_size,0),t=h,p=r.w_size),l=e.avail_in,u=e.next_in,c=e.input,e.avail_in=p,e.next_in=0,e.input=t,U(r);r.lookahead>=P;){for(n=r.strstart,i=r.lookahead-(P-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+P-1])&r.hash_mask,r.prev[n&r.w_mask]=r.head[r.ins_h],r.head[r.ins_h]=n,n++,--i;);r.strstart=n,r.lookahead=P-1,U(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=P-1,r.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,r.wrap=s,f},r.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(e,t,r){t.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(e,t,r){t.exports=function(e,t){var r,n,a,i,o,s,l,u,c,f,d,h,p,b,m,g,v,y,w,_,k,P,x,S,O;r=e.state,n=e.next_in,S=e.input,a=n+(e.avail_in-5),i=e.next_out,O=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),l=r.dmax,u=r.wsize,c=r.whave,f=r.wnext,d=r.window,h=r.hold,p=r.bits,b=r.lencode,m=r.distcode,g=(1<<r.lenbits)-1,v=(1<<r.distbits)-1;e:do{p<15&&(h+=S[n++]<<p,p+=8,h+=S[n++]<<p,p+=8),y=b[h&g];t:for(;;){if(h>>>=w=y>>>24,p-=w,0==(w=y>>>16&255))O[i++]=65535&y;else{if(!(16&w)){if(0==(64&w)){y=b[(65535&y)+(h&(1<<w)-1)];continue t}if(32&w){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}_=65535&y,(w&=15)&&(p<w&&(h+=S[n++]<<p,p+=8),_+=h&(1<<w)-1,h>>>=w,p-=w),p<15&&(h+=S[n++]<<p,p+=8,h+=S[n++]<<p,p+=8),y=m[h&v];r:for(;;){if(h>>>=w=y>>>24,p-=w,!(16&(w=y>>>16&255))){if(0==(64&w)){y=m[(65535&y)+(h&(1<<w)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(k=65535&y,p<(w&=15)&&(h+=S[n++]<<p,(p+=8)<w&&(h+=S[n++]<<p,p+=8)),l<(k+=h&(1<<w)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(h>>>=w,p-=w,(w=i-o)<k){if(c<(w=k-w)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(x=d,(P=0)===f){if(P+=u-w,w<_){for(_-=w;O[i++]=d[P++],--w;);P=i-k,x=O}}else if(f<w){if(P+=u+f-w,(w-=f)<_){for(_-=w;O[i++]=d[P++],--w;);if(P=0,f<_){for(_-=w=f;O[i++]=d[P++],--w;);P=i-k,x=O}}}else if(P+=f-w,w<_){for(_-=w;O[i++]=d[P++],--w;);P=i-k,x=O}for(;2<_;)O[i++]=x[P++],O[i++]=x[P++],O[i++]=x[P++],_-=3;_&&(O[i++]=x[P++],1<_&&(O[i++]=x[P++]))}else{for(P=i-k;O[i++]=O[P++],O[i++]=O[P++],O[i++]=O[P++],2<(_-=3););_&&(O[i++]=O[P++],1<_&&(O[i++]=O[P++]))}break}}break}}while(n<a&&i<s);n-=_=p>>3,h&=(1<<(p-=_<<3))-1,e.next_in=n,e.next_out=i,e.avail_in=n<a?a-n+5:5-(n-a),e.avail_out=i<s?s-i+257:257-(i-s),r.hold=h,r.bits=p}},{}],49:[function(e,t,r){var n=e("../utils/common"),a=e("./adler32"),i=e("./crc32"),o=e("./inffast"),s=e("./inftrees"),l=1,u=2,c=0,f=-2,d=1,h=852,p=592;function b(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function m(){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 n.Buf16(320),this.work=new n.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function g(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=d,t.last=0,t.havedict=0,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new n.Buf32(h),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,c):f}function v(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,g(e)):f}function y(e,t){var r,n;return e&&e.state?(n=e.state,t<0?(r=0,t=-t):(r=1+(t>>4),t<48&&(t&=15)),t&&(t<8||15<t)?f:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,v(e))):f}function w(e,t){var r,n;return e?(n=new m,(e.state=n).window=null,(r=y(e,t))!==c&&(e.state=null),r):f}var _,k,P=!0;function x(e){if(P){var t;for(_=new n.Buf32(512),k=new n.Buf32(32),t=0;t<144;)e.lens[t++]=8;for(;t<256;)e.lens[t++]=9;for(;t<280;)e.lens[t++]=7;for(;t<288;)e.lens[t++]=8;for(s(l,e.lens,0,288,_,0,e.work,{bits:9}),t=0;t<32;)e.lens[t++]=5;s(u,e.lens,0,32,k,0,e.work,{bits:5}),P=!1}e.lencode=_,e.lenbits=9,e.distcode=k,e.distbits=5}function S(e,t,r,a){var i,o=e.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new n.Buf8(o.wsize)),a>=o.wsize?(n.arraySet(o.window,t,r-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(a<(i=o.wsize-o.wnext)&&(i=a),n.arraySet(o.window,t,r-a,i,o.wnext),(a-=i)?(n.arraySet(o.window,t,r-a,a,0),o.wnext=a,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}r.inflateReset=v,r.inflateReset2=y,r.inflateResetKeep=g,r.inflateInit=function(e){return w(e,15)},r.inflateInit2=w,r.inflate=function(e,t){var r,h,p,m,g,v,y,w,_,k,P,O,A,C,E,j,N,z,T,I,B,R,F,D,L=0,U=new n.Buf8(4),M=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!e||!e.state||!e.output||!e.input&&0!==e.avail_in)return f;12===(r=e.state).mode&&(r.mode=13),g=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,v=e.avail_in,w=r.hold,_=r.bits,k=v,P=y,R=c;e:for(;;)switch(r.mode){case d:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(2&r.wrap&&35615===w){U[r.check=0]=255&w,U[1]=w>>>8&255,r.check=i(r.check,U,2,0),_=w=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&w)<<8)+(w>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&w)){e.msg="unknown compression method",r.mode=30;break}if(_-=4,B=8+(15&(w>>>=4)),0===r.wbits)r.wbits=B;else if(B>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<B,e.adler=r.check=1,r.mode=512&w?10:12,_=w=0;break;case 2:for(;_<16;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(r.flags=w,8!=(255&r.flags)){e.msg="unknown compression method",r.mode=30;break}if(57344&r.flags){e.msg="unknown header flags set",r.mode=30;break}r.head&&(r.head.text=w>>8&1),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=i(r.check,U,2,0)),_=w=0,r.mode=3;case 3:for(;_<32;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}r.head&&(r.head.time=w),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,U[2]=w>>>16&255,U[3]=w>>>24&255,r.check=i(r.check,U,4,0)),_=w=0,r.mode=4;case 4:for(;_<16;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}r.head&&(r.head.xflags=255&w,r.head.os=w>>8),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=i(r.check,U,2,0)),_=w=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}r.length=w,r.head&&(r.head.extra_len=w),512&r.flags&&(U[0]=255&w,U[1]=w>>>8&255,r.check=i(r.check,U,2,0)),_=w=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(v<(O=r.length)&&(O=v),O&&(r.head&&(B=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,h,m,O,B)),512&r.flags&&(r.check=i(r.check,h,O,m)),v-=O,m+=O,r.length-=O),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===v)break e;for(O=0;B=h[m+O++],r.head&&B&&r.length<65536&&(r.head.name+=String.fromCharCode(B)),B&&O<v;);if(512&r.flags&&(r.check=i(r.check,h,O,m)),v-=O,m+=O,B)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===v)break e;for(O=0;B=h[m+O++],r.head&&B&&r.length<65536&&(r.head.comment+=String.fromCharCode(B)),B&&O<v;);if(512&r.flags&&(r.check=i(r.check,h,O,m)),v-=O,m+=O,B)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(w!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}_=w=0}r.head&&(r.head.hcrc=r.flags>>9&1,r.head.done=!0),e.adler=r.check=0,r.mode=12;break;case 10:for(;_<32;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}e.adler=r.check=b(w),_=w=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=g,e.avail_out=y,e.next_in=m,e.avail_in=v,r.hold=w,r.bits=_,2;e.adler=r.check=1,r.mode=12;case 12:if(5===t||6===t)break e;case 13:if(r.last){w>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}switch(r.last=1&w,_-=1,3&(w>>>=1)){case 0:r.mode=14;break;case 1:if(x(r),r.mode=20,6!==t)break;w>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}w>>>=2,_-=2;break;case 14:for(w>>>=7&_,_-=7&_;_<32;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if((65535&w)!=(w>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&w,_=w=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(O=r.length){if(v<O&&(O=v),y<O&&(O=y),0===O)break e;n.arraySet(p,h,m,O,g),v-=O,m+=O,y-=O,g+=O,r.length-=O;break}r.mode=12;break;case 17:for(;_<14;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(r.nlen=257+(31&w),w>>>=5,_-=5,r.ndist=1+(31&w),w>>>=5,_-=5,r.ncode=4+(15&w),w>>>=4,_-=4,286<r.nlen||30<r.ndist){e.msg="too many length or distance symbols",r.mode=30;break}r.have=0,r.mode=18;case 18:for(;r.have<r.ncode;){for(;_<3;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}r.lens[M[r.have++]]=7&w,w>>>=3,_-=3}for(;r.have<19;)r.lens[M[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},R=s(0,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,R){e.msg="invalid code lengths set",r.mode=30;break}r.have=0,r.mode=19;case 19:for(;r.have<r.nlen+r.ndist;){for(;j=(L=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,N=65535&L,!((E=L>>>24)<=_);){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(N<16)w>>>=E,_-=E,r.lens[r.have++]=N;else{if(16===N){for(D=E+2;_<D;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(w>>>=E,_-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}B=r.lens[r.have-1],O=3+(3&w),w>>>=2,_-=2}else if(17===N){for(D=E+3;_<D;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}_-=E,B=0,O=3+(7&(w>>>=E)),w>>>=3,_-=3}else{for(D=E+7;_<D;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}_-=E,B=0,O=11+(127&(w>>>=E)),w>>>=7,_-=7}if(r.have+O>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;O--;)r.lens[r.have++]=B}}if(30===r.mode)break;if(0===r.lens[256]){e.msg="invalid code -- missing end-of-block",r.mode=30;break}if(r.lenbits=9,F={bits:r.lenbits},R=s(l,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,R){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},R=s(u,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,R){e.msg="invalid distances set",r.mode=30;break}if(r.mode=20,6===t)break e;case 20:r.mode=21;case 21:if(6<=v&&258<=y){e.next_out=g,e.avail_out=y,e.next_in=m,e.avail_in=v,r.hold=w,r.bits=_,o(e,P),g=e.next_out,p=e.output,y=e.avail_out,m=e.next_in,h=e.input,v=e.avail_in,w=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;j=(L=r.lencode[w&(1<<r.lenbits)-1])>>>16&255,N=65535&L,!((E=L>>>24)<=_);){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(j&&0==(240&j)){for(z=E,T=j,I=N;j=(L=r.lencode[I+((w&(1<<z+T)-1)>>z)])>>>16&255,N=65535&L,!(z+(E=L>>>24)<=_);){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}w>>>=z,_-=z,r.back+=z}if(w>>>=E,_-=E,r.back+=E,r.length=N,0===j){r.mode=26;break}if(32&j){r.back=-1,r.mode=12;break}if(64&j){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&j,r.mode=22;case 22:if(r.extra){for(D=r.extra;_<D;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}r.length+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;j=(L=r.distcode[w&(1<<r.distbits)-1])>>>16&255,N=65535&L,!((E=L>>>24)<=_);){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(0==(240&j)){for(z=E,T=j,I=N;j=(L=r.distcode[I+((w&(1<<z+T)-1)>>z)])>>>16&255,N=65535&L,!(z+(E=L>>>24)<=_);){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}w>>>=z,_-=z,r.back+=z}if(w>>>=E,_-=E,r.back+=E,64&j){e.msg="invalid distance code",r.mode=30;break}r.offset=N,r.extra=15&j,r.mode=24;case 24:if(r.extra){for(D=r.extra;_<D;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}r.offset+=w&(1<<r.extra)-1,w>>>=r.extra,_-=r.extra,r.back+=r.extra}if(r.offset>r.dmax){e.msg="invalid distance too far back",r.mode=30;break}r.mode=25;case 25:if(0===y)break e;if(O=P-y,r.offset>O){if((O=r.offset-O)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}A=O>r.wnext?(O-=r.wnext,r.wsize-O):r.wnext-O,O>r.length&&(O=r.length),C=r.window}else C=p,A=g-r.offset,O=r.length;for(y<O&&(O=y),y-=O,r.length-=O;p[g++]=C[A++],--O;);0===r.length&&(r.mode=21);break;case 26:if(0===y)break e;p[g++]=r.length,y--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===v)break e;v--,w|=h[m++]<<_,_+=8}if(P-=y,e.total_out+=P,r.total+=P,P&&(e.adler=r.check=r.flags?i(r.check,p,P,g-P):a(r.check,p,P,g-P)),P=y,(r.flags?w:b(w))!==r.check){e.msg="incorrect data check",r.mode=30;break}_=w=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===v)break e;v--,w+=h[m++]<<_,_+=8}if(w!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}_=w=0}r.mode=29;case 29:R=1;break e;case 30:R=-3;break e;case 31:return-4;default:return f}return e.next_out=g,e.avail_out=y,e.next_in=m,e.avail_in=v,r.hold=w,r.bits=_,(r.wsize||P!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&S(e,e.output,e.next_out,P-e.avail_out)?(r.mode=31,-4):(k-=e.avail_in,P-=e.avail_out,e.total_in+=k,e.total_out+=P,r.total+=P,r.wrap&&P&&(e.adler=r.check=r.flags?i(r.check,p,P,e.next_out-P):a(r.check,p,P,e.next_out-P)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==k&&0===P||4===t)&&R===c&&(R=-5),R)},r.inflateEnd=function(e){if(!e||!e.state)return f;var t=e.state;return t.window&&(t.window=null),e.state=null,c},r.inflateGetHeader=function(e,t){var r;return e&&e.state?0==(2&(r=e.state).wrap)?f:((r.head=t).done=!1,c):f},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?f:11===r.mode&&a(1,t,n,0)!==r.check?-3:S(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,c):f},r.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(e,t,r){var n=e("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],i=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],o=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],s=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(e,t,r,l,u,c,f,d){var h,p,b,m,g,v,y,w,_,k=d.bits,P=0,x=0,S=0,O=0,A=0,C=0,E=0,j=0,N=0,z=0,T=null,I=0,B=new n.Buf16(16),R=new n.Buf16(16),F=null,D=0;for(P=0;P<=15;P++)B[P]=0;for(x=0;x<l;x++)B[t[r+x]]++;for(A=k,O=15;1<=O&&0===B[O];O--);if(O<A&&(A=O),0===O)return u[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(S=1;S<O&&0===B[S];S++);for(A<S&&(A=S),P=j=1;P<=15;P++)if(j<<=1,(j-=B[P])<0)return-1;if(0<j&&(0===e||1!==O))return-1;for(R[1]=0,P=1;P<15;P++)R[P+1]=R[P]+B[P];for(x=0;x<l;x++)0!==t[r+x]&&(f[R[t[r+x]]++]=x);if(v=0===e?(T=F=f,19):1===e?(T=a,I-=257,F=i,D-=257,256):(T=o,F=s,-1),P=S,g=c,E=x=z=0,b=-1,m=(N=1<<(C=A))-1,1===e&&852<N||2===e&&592<N)return 1;for(;;){for(y=P-E,_=f[x]<v?(w=0,f[x]):f[x]>v?(w=F[D+f[x]],T[I+f[x]]):(w=96,0),h=1<<P-E,S=p=1<<C;u[g+(z>>E)+(p-=h)]=y<<24|w<<16|_|0,0!==p;);for(h=1<<P-1;z&h;)h>>=1;if(0!==h?(z&=h-1,z+=h):z=0,x++,0==--B[P]){if(P===O)break;P=t[r+f[x]]}if(A<P&&(z&m)!==b){for(0===E&&(E=A),g+=S,j=1<<(C=P-E);C+E<O&&!((j-=B[C+E])<=0);)C++,j<<=1;if(N+=1<<C,1===e&&852<N||2===e&&592<N)return 1;u[b=z&m]=A<<24|C<<16|g-c|0}}return 0!==z&&(u[g+z]=P-E<<24|64<<16|0),d.bits=A,0}},{"../utils/common":41}],51:[function(e,t,r){t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(e,t,r){var n=e("../utils/common"),a=0,i=1;function o(e){for(var t=e.length;0<=--t;)e[t]=0}var s=0,l=29,u=256,c=u+1+l,f=30,d=19,h=2*c+1,p=15,b=16,m=7,g=256,v=16,y=17,w=18,_=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],P=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],x=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],S=new Array(2*(c+2));o(S);var O=new Array(2*f);o(O);var A=new Array(512);o(A);var C=new Array(256);o(C);var E=new Array(l);o(E);var j,N,z,T=new Array(f);function I(e,t,r,n,a){this.static_tree=e,this.extra_bits=t,this.extra_base=r,this.elems=n,this.max_length=a,this.has_stree=e&&e.length}function B(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function R(e){return e<256?A[e]:A[256+(e>>>7)]}function F(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function D(e,t,r){e.bi_valid>b-r?(e.bi_buf|=t<<e.bi_valid&65535,F(e,e.bi_buf),e.bi_buf=t>>b-e.bi_valid,e.bi_valid+=r-b):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function L(e,t,r){D(e,r[2*t],r[2*t+1])}function U(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function M(e,t,r){var n,a,i=new Array(p+1),o=0;for(n=1;n<=p;n++)i[n]=o=o+r[n-1]<<1;for(a=0;a<=t;a++){var s=e[2*a+1];0!==s&&(e[2*a]=U(i[s]++,s))}}function W(e){var t;for(t=0;t<c;t++)e.dyn_ltree[2*t]=0;for(t=0;t<f;t++)e.dyn_dtree[2*t]=0;for(t=0;t<d;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*g]=1,e.opt_len=e.static_len=0,e.last_lit=e.matches=0}function H(e){8<e.bi_valid?F(e,e.bi_buf):0<e.bi_valid&&(e.pending_buf[e.pending++]=e.bi_buf),e.bi_buf=0,e.bi_valid=0}function Z(e,t,r,n){var a=2*t,i=2*r;return e[a]<e[i]||e[a]===e[i]&&n[t]<=n[r]}function V(e,t,r){for(var n=e.heap[r],a=r<<1;a<=e.heap_len&&(a<e.heap_len&&Z(t,e.heap[a+1],e.heap[a],e.depth)&&a++,!Z(t,n,e.heap[a],e.depth));)e.heap[r]=e.heap[a],r=a,a<<=1;e.heap[r]=n}function X(e,t,r){var n,a,i,o,s=0;if(0!==e.last_lit)for(;n=e.pending_buf[e.d_buf+2*s]<<8|e.pending_buf[e.d_buf+2*s+1],a=e.pending_buf[e.l_buf+s],s++,0===n?L(e,a,t):(L(e,(i=C[a])+u+1,t),0!==(o=_[i])&&D(e,a-=E[i],o),L(e,i=R(--n),r),0!==(o=k[i])&&D(e,n-=T[i],o)),s<e.last_lit;);L(e,g,t)}function G(e,t){var r,n,a,i=t.dyn_tree,o=t.stat_desc.static_tree,s=t.stat_desc.has_stree,l=t.stat_desc.elems,u=-1;for(e.heap_len=0,e.heap_max=h,r=0;r<l;r++)0!==i[2*r]?(e.heap[++e.heap_len]=u=r,e.depth[r]=0):i[2*r+1]=0;for(;e.heap_len<2;)i[2*(a=e.heap[++e.heap_len]=u<2?++u:0)]=1,e.depth[a]=0,e.opt_len--,s&&(e.static_len-=o[2*a+1]);for(t.max_code=u,r=e.heap_len>>1;1<=r;r--)V(e,i,r);for(a=l;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],V(e,i,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,i[2*a]=i[2*r]+i[2*n],e.depth[a]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,i[2*r+1]=i[2*n+1]=a,e.heap[1]=a++,V(e,i,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){var r,n,a,i,o,s,l=t.dyn_tree,u=t.max_code,c=t.stat_desc.static_tree,f=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,b=t.stat_desc.extra_base,m=t.stat_desc.max_length,g=0;for(i=0;i<=p;i++)e.bl_count[i]=0;for(l[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<h;r++)m<(i=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(i=m,g++),l[2*n+1]=i,u<n||(e.bl_count[i]++,o=0,b<=n&&(o=d[n-b]),s=l[2*n],e.opt_len+=s*(i+o),f&&(e.static_len+=s*(c[2*n+1]+o)));if(0!==g){do{for(i=m-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[m]--,g-=2}while(0<g);for(i=m;0!==i;i--)for(n=e.bl_count[i];0!==n;)u<(a=e.heap[--r])||(l[2*a+1]!==i&&(e.opt_len+=(i-l[2*a+1])*l[2*a],l[2*a+1]=i),n--)}}(e,t),M(i,u,e.bl_count)}function K(e,t,r){var n,a,i=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),t[2*(r+1)+1]=65535,n=0;n<=r;n++)a=o,o=t[2*(n+1)+1],++s<l&&a===o||(s<u?e.bl_tree[2*a]+=s:0!==a?(a!==i&&e.bl_tree[2*a]++,e.bl_tree[2*v]++):s<=10?e.bl_tree[2*y]++:e.bl_tree[2*w]++,i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4))}function Y(e,t,r){var n,a,i=-1,o=t[1],s=0,l=7,u=4;for(0===o&&(l=138,u=3),n=0;n<=r;n++)if(a=o,o=t[2*(n+1)+1],!(++s<l&&a===o)){if(s<u)for(;L(e,a,e.bl_tree),0!=--s;);else 0!==a?(a!==i&&(L(e,a,e.bl_tree),s--),L(e,v,e.bl_tree),D(e,s-3,2)):s<=10?(L(e,y,e.bl_tree),D(e,s-3,3)):(L(e,w,e.bl_tree),D(e,s-11,7));i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4)}}o(T);var q=!1;function J(e,t,r,a){var i,o,l,u;D(e,(s<<1)+(a?1:0),3),o=t,l=r,u=!0,H(i=e),u&&(F(i,l),F(i,~l)),n.arraySet(i.pending_buf,i.window,o,l,i.pending),i.pending+=l}r._tr_init=function(e){q||(function(){var e,t,r,n,a,i=new Array(p+1);for(n=r=0;n<l-1;n++)for(E[n]=r,e=0;e<1<<_[n];e++)C[r++]=n;for(C[r-1]=n,n=a=0;n<16;n++)for(T[n]=a,e=0;e<1<<k[n];e++)A[a++]=n;for(a>>=7;n<f;n++)for(T[n]=a<<7,e=0;e<1<<k[n]-7;e++)A[256+a++]=n;for(t=0;t<=p;t++)i[t]=0;for(e=0;e<=143;)S[2*e+1]=8,e++,i[8]++;for(;e<=255;)S[2*e+1]=9,e++,i[9]++;for(;e<=279;)S[2*e+1]=7,e++,i[7]++;for(;e<=287;)S[2*e+1]=8,e++,i[8]++;for(M(S,c+1,i),e=0;e<f;e++)O[2*e+1]=5,O[2*e]=U(e,5);j=new I(S,_,u+1,c,p),N=new I(O,k,0,f,p),z=new I(new Array(0),P,0,d,m)}(),q=!0),e.l_desc=new B(e.dyn_ltree,j),e.d_desc=new B(e.dyn_dtree,N),e.bl_desc=new B(e.bl_tree,z),e.bi_buf=0,e.bi_valid=0,W(e)},r._tr_stored_block=J,r._tr_flush_block=function(e,t,r,n){var o,s,l=0;0<e.level?(2===e.strm.data_type&&(e.strm.data_type=function(e){var t,r=4093624447;for(t=0;t<=31;t++,r>>>=1)if(1&r&&0!==e.dyn_ltree[2*t])return a;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return i;for(t=32;t<u;t++)if(0!==e.dyn_ltree[2*t])return i;return a}(e)),G(e,e.l_desc),G(e,e.d_desc),l=function(e){var t;for(K(e,e.dyn_ltree,e.l_desc.max_code),K(e,e.dyn_dtree,e.d_desc.max_code),G(e,e.bl_desc),t=d-1;3<=t&&0===e.bl_tree[2*x[t]+1];t--);return e.opt_len+=3*(t+1)+5+5+4,t}(e),o=e.opt_len+3+7>>>3,(s=e.static_len+3+7>>>3)<=o&&(o=s)):o=s=r+5,r+4<=o&&-1!==t?J(e,t,r,n):4===e.strategy||s===o?(D(e,2+(n?1:0),3),X(e,S,O)):(D(e,4+(n?1:0),3),function(e,t,r,n){var a;for(D(e,t-257,5),D(e,r-1,5),D(e,n-4,4),a=0;a<n;a++)D(e,e.bl_tree[2*x[a]+1],3);Y(e,e.dyn_ltree,t-1),Y(e,e.dyn_dtree,r-1)}(e,e.l_desc.max_code+1,e.d_desc.max_code+1,l+1),X(e,e.dyn_ltree,e.dyn_dtree)),W(e),n&&H(e)},r._tr_tally=function(e,t,r){return e.pending_buf[e.d_buf+2*e.last_lit]=t>>>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&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(C[r]+u+1)]++,e.dyn_dtree[2*R(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){var t;D(e,2,3),L(e,g,S),16===(t=e).bi_valid?(F(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):8<=t.bi_valid&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}},{"../utils/common":41}],53:[function(e,t,r){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(e,t,r){t.exports="function"==typeof setImmediate?setImmediate:function(){var e=[].slice.apply(arguments);e.splice(1,0,0),setTimeout.apply(null,e)}},{}]},{},[10])(10)}(S);var j=function(){function e(e,t){Object.defineProperty(this,"_zip",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"xmlParser",{enumerable:!0,configurable:!0,writable:!0,value:new m})}return Object.defineProperty(e.prototype,"get",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this._zip.files[function(e){return e.startsWith("/")?e.substr(1):e}(e)]}}),Object.defineProperty(e.prototype,"update",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this._zip.file(e,t)}}),Object.defineProperty(e,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r){return S.exports.loadAsync(t).then((function(t){return new e(t,r)}))}}),Object.defineProperty(e.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return void 0===e&&(e="blob"),this._zip.generateAsync({type:e})}}),Object.defineProperty(e.prototype,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n;return void 0===t&&(t="string"),null!==(n=null===(r=this.get(e))||void 0===r?void 0:r.async(t))&&void 0!==n?n:Promise.resolve(null)}}),Object.defineProperty(e.prototype,"loadRelationships",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;void 0===e&&(e=null);var r="_rels/.rels";if(null!=e){var n=O(e),a=n[0],i=n[1];r="".concat(a,"_rels/").concat(i,".rels")}return this.load(r).then((function(e){return e?function(e,t){return t.elements(e).map((function(e){return{id:t.attr(e,"Id"),type:t.attr(e,"Type"),target:t.attr(e,"Target"),targetMode:t.attr(e,"TargetMode")}}))}(t.parseXmlDocument(e).firstElementChild,t.xmlParser):null}))}}),Object.defineProperty(e.prototype,"parseXmlDocument",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return function(e,t){void 0===t&&(t=!1),t&&(e=e.replace(/<[?].*[?]>/,""));var r=(new DOMParser).parseFromString(e,"application/xml"),n=function(e){var t;return null===(t=e.getElementsByTagName("parsererror")[0])||void 0===t?void 0:t.textContent}(r);if(n)throw new Error(n);return r}(e,this.options.trimXmlDeclaration)}}),e}();var N,z=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return Object.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._documentParser=n,a}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.body=this._documentParser.parseDocumentFile(e)}}),t}(v);function T(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",f),offset:t.lengthAttr(e,"space",d),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}function I(e,t){for(var r={},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"left":r.left=T(i,t);break;case"top":r.top=T(i,t);break;case"right":r.right=T(i,t);break;case"bottom":r.bottom=T(i,t)}}return r}function B(e,t){var r,n;void 0===t&&(t=g);for(var a={},i=0,o=t.elements(e);i<o.length;i++){var s=o[i];switch(s.localName){case"pgSz":a.pageSize={width:t.lengthAttr(s,"w"),height:t.lengthAttr(s,"h"),orientation:t.attr(s,"orient")};break;case"type":a.type=t.attr(s,"val");break;case"pgMar":a.pageMargins={left:t.lengthAttr(s,"left"),right:t.lengthAttr(s,"right"),top:t.lengthAttr(s,"top"),bottom:t.lengthAttr(s,"bottom"),header:t.lengthAttr(s,"header"),footer:t.lengthAttr(s,"footer"),gutter:t.lengthAttr(s,"gutter")};break;case"cols":a.columns=R(s,t);break;case"headerReference":(null!==(r=a.headerRefs)&&void 0!==r?r:a.headerRefs=[]).push(D(s,t));break;case"footerReference":(null!==(n=a.footerRefs)&&void 0!==n?n:a.footerRefs=[]).push(D(s,t));break;case"titlePg":a.titlePage=t.boolAttr(s,"val",!0);break;case"pgBorders":a.pageBorders=I(s,t);break;case"pgNumType":a.pageNumber=F(s,t)}}return a}function R(e,t){return{numberOfColumns:t.intAttr(e,"num"),space:t.lengthAttr(e,"space"),separator:t.boolAttr(e,"sep"),equalWidth:t.boolAttr(e,"equalWidth",!0),columns:t.elements(e,"col").map((function(e){return{width:t.lengthAttr(e,"w"),space:t.lengthAttr(e,"space")}}))}}function F(e,t){return{chapSep:t.attr(e,"chapSep"),chapStyle:t.attr(e,"chapStyle"),format:t.attr(e,"fmt"),start:t.intAttr(e,"start")}}function D(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}function L(e,t){for(var r={},n=0,a=t.elements(e);n<a.length;n++){U(a[n],r,t)}return r}function U(e,t,r){return!!b(e,t,r)}function M(e,t){for(var r={},n=0,a=t.elements(e);n<a.length;n++){W(a[n],r,t)}return r}function W(e,t,r){if(e.namespaceURI!=s)return!1;if(b(e,t,r))return!0;switch(e.localName){case"tabs":t.tabs=function(e,t){return t.elements(e,"tab").map((function(e){return{position:t.lengthAttr(e,"pos"),leader:t.attr(e,"leader"),style:t.attr(e,"val")}}))}(e,r);break;case"sectPr":t.sectionProps=B(e,r);break;case"numPr":t.numbering=function(e,t){for(var r={},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"numId":r.id=t.attr(i,"val");break;case"ilvl":r.level=t.intAttr(i,"val")}}return r}(e,r);break;case"spacing":return t.lineSpacing=function(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}(e,r),!1;case"textAlignment":return t.textAlignment=r.attr(e,"val"),!1;case"keepNext":t.keepLines=r.boolAttr(e,"val",!0);break;case"pageBreakBefore":t.pageBreakBefore=r.boolAttr(e,"val",!0);break;case"outlineLvl":t.outlineLevel=r.intAttr(e,"val");break;case"pStyle":t.styleName=r.attr(e,"val");break;case"rPr":t.runProps=L(e,r);break;default:return!1}return!0}function H(e,t){for(var r={id:t.attr(e,"numId"),overrides:[]},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"abstractNumId":r.abstractId=t.attr(i,"val");break;case"lvlOverride":r.overrides.push(X(i,t))}}return r}function Z(e,t){for(var r={id:t.attr(e,"abstractNumId"),levels:[]},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"name":r.name=t.attr(i,"val");break;case"multiLevelType":r.multiLevelType=t.attr(i,"val");break;case"numStyleLink":r.numberingStyleLink=t.attr(i,"val");break;case"styleLink":r.styleLink=t.attr(i,"val");break;case"lvl":r.levels.push(V(i,t))}}return r}function V(e,t){for(var r={level:t.intAttr(e,"ilvl")},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"start":r.start=t.attr(i,"val");break;case"lvlRestart":r.restart=t.intAttr(i,"val");break;case"numFmt":r.format=t.attr(i,"val");break;case"lvlText":r.text=t.attr(i,"val");break;case"lvlJc":r.justification=t.attr(i,"val");break;case"lvlPicBulletId":r.bulletPictureId=t.attr(i,"val");break;case"pStyle":r.paragraphStyle=t.attr(i,"val");break;case"pPr":r.paragraphProps=M(i,t);break;case"rPr":r.runProps=L(i,t)}}return r}function X(e,t){for(var r={level:t.intAttr(e,"ilvl")},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"startOverride":r.start=t.intAttr(i,"val");break;case"lvl":r.numberingLevel=V(i,t)}}return r}function G(e,t){var r=t.element(e,"pict"),n=r&&t.element(r,"shape"),a=n&&t.element(n,"imagedata");return a?{id:t.attr(e,"numPicBulletId"),referenceId:t.attr(a,"id"),style:t.attr(n,"style")}:null}!function(e){e.Continuous="continuous",e.NextPage="nextPage",e.NextColumn="nextColumn",e.EvenPage="evenPage",e.OddPage="oddPage"}(N||(N={}));var K,Y=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return Object.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"numberings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"abstractNumberings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"bulletPictures",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"domNumberings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._documentParser=n,a}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){Object.assign(this,function(e,t){for(var r={numberings:[],abstractNumberings:[],bulletPictures:[]},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"num":r.numberings.push(H(i,t));break;case"abstractNum":r.abstractNumberings.push(Z(i,t));break;case"numPicBullet":r.bulletPictures.push(G(i,t))}}return r}(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}),t}(v),q=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return Object.defineProperty(a,"styles",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._documentParser=n,a}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.styles=this._documentParser.parseStylesFile(e)}}),t}(v);!function(e){e.Document="document",e.Paragraph="paragraph",e.Run="run",e.Break="break",e.NoBreakHyphen="noBreakHyphen",e.Table="table",e.Row="row",e.Cell="cell",e.Hyperlink="hyperlink",e.Drawing="drawing",e.Image="image",e.Text="text",e.Tab="tab",e.Symbol="symbol",e.BookmarkStart="bookmarkStart",e.BookmarkEnd="bookmarkEnd",e.Footer="footer",e.Header="header",e.FootnoteReference="footnoteReference",e.EndnoteReference="endnoteReference",e.Footnote="footnote",e.Endnote="endnote",e.SimpleField="simpleField",e.ComplexField="complexField",e.Instruction="instruction"}(K||(K={}));var J=function(){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:K.Header}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})},$=function(){Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:K.Footer}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})},Q=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return Object.defineProperty(a,"rootElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._documentParser=n,a}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}),t}(v),ee=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"createRootElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){return new J}}),t}(Q),te=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),Object.defineProperty(t.prototype,"createRootElement",{enumerable:!1,configurable:!0,writable:!0,value:function(){return new $}}),t}(Q);function re(t){if(!(e(t)>"u"))return parseInt(t)}var ne=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"props",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=function(e,t){for(var r={},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"Template":r.template=i.textContent;break;case"Pages":r.pages=re(i.textContent);break;case"Words":r.words=re(i.textContent);break;case"Characters":r.characters=re(i.textContent);break;case"Application":r.application=i.textContent;break;case"Lines":r.lines=re(i.textContent);break;case"Paragraphs":r.paragraphs=re(i.textContent);break;case"Company":r.company=i.textContent;break;case"AppVersion":r.appVersion=i.textContent}}return r}(e,this._package.xmlParser)}}),t}(v);var ae=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"props",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=function(e,t){for(var r={},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"title":r.title=i.textContent;break;case"description":r.description=i.textContent;break;case"subject":r.subject=i.textContent;break;case"creator":r.creator=i.textContent;break;case"keywords":r.keywords=i.textContent;break;case"language":r.language=i.textContent;break;case"lastModifiedBy":r.lastModifiedBy=i.textContent;break;case"revision":i.textContent&&(r.revision=parseInt(i.textContent))}}return r}(e,this._package.xmlParser)}}),t}(v),ie=function(){Object.defineProperty(this,"colorScheme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontScheme",{enumerable:!0,configurable:!0,writable:!0,value:void 0})};function oe(e,t){for(var r={name:t.attr(e,"name"),colors:{}},n=0,a=t.elements(e);n<a.length;n++){var i=a[n],o=t.element(i,"srgbClr"),s=t.element(i,"sysClr");o?r.colors[i.localName]=t.attr(o,"val"):s&&(r.colors[i.localName]=t.attr(s,"lastClr"))}return r}function se(e,t){for(var r={name:t.attr(e,"name")},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"majorFont":r.majorFont=le(i,t);break;case"minorFont":r.minorFont=le(i,t)}}return r}function le(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}var ue=function(e){function t(t,r){var n=e.call(this,t,r)||this;return Object.defineProperty(n,"theme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.theme=function(e,t){for(var r=new ie,n=t.element(e,"themeElements"),a=0,i=t.elements(n);a<i.length;a++){var o=i[a];switch(o.localName){case"clrScheme":r.colorScheme=oe(o,t);break;case"fontScheme":r.fontScheme=se(o,t)}}return r}(e,this._package.xmlParser)}}),t}(v),ce=function(){Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"noteType",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"cssStyle",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})},fe=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"type",{enumerable:!0,configurable:!0,writable:!0,value:K.Footnote}),t}return r(t,e),t}(ce),de=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"type",{enumerable:!0,configurable:!0,writable:!0,value:K.Endnote}),t}return r(t,e),t}(ce),he=function(e){function t(t,r,n){var a=e.call(this,t,r)||this;return Object.defineProperty(a,"_documentParser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(a,"notes",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),a._documentParser=n,a}return r(t,e),t}(v),pe=function(e){function t(t,r,n){return e.call(this,t,r,n)||this}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.notes=this._documentParser.parseNotes(e,"footnote",fe)}}),t}(he),be=function(e){function t(t,r,n){return e.call(this,t,r,n)||this}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.notes=this._documentParser.parseNotes(e,"endnote",de)}}),t}(he);function me(e,t){for(var r={defaultNoteIds:[]},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"numFmt":r.nummeringFormat=t.attr(i,"val");break;case"footnote":case"endnote":r.defaultNoteIds.push(t.attr(i,"id"))}}return r}var ge=function(e){function t(t,r){var n=e.call(this,t,r)||this;return Object.defineProperty(n,"settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),n}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.settings=function(e,t){for(var r={},n=0,a=t.elements(e);n<a.length;n++){var i=a[n];switch(i.localName){case"defaultTabStop":r.defaultTabStop=t.lengthAttr(i,"val");break;case"footnotePr":r.footnoteProps=me(i,t);break;case"endnotePr":r.endnoteProps=me(i,t);break;case"autoHyphenation":r.autoHyphenation=t.boolAttr(i,"val")}}return r}(e,this._package.xmlParser)}}),t}(v);var ve=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return Object.defineProperty(t,"props",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t}return r(t,e),Object.defineProperty(t.prototype,"parseXml",{enumerable:!1,configurable:!0,writable:!0,value:function(e){this.props=function(e,t){return t.elements(e,"property").map((function(e){var r=e.firstChild;return{formatId:t.attr(e,"fmtid"),name:t.attr(e,"name"),type:r.nodeName,value:r.textContent}}))}(e,this._package.xmlParser)}}),t}(v),ye=[{type:n.OfficeDocument,target:"word/document.xml"},{type:n.ExtendedProperties,target:"docProps/app.xml"},{type:n.CoreProperties,target:"docProps/core.xml"},{type:n.CustomProperties,target:"docProps/custom.xml"}],we=function(){function e(){Object.defineProperty(this,"_package",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parser",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"rels",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"parts",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"partsMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"documentPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontTablePart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"numberingPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"stylesPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"footnotesPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endnotesPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"themePart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"corePropsPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"extendedPropsPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"settingsPart",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}return Object.defineProperty(e,"load",{enumerable:!1,configurable:!0,writable:!0,value:function(t,r,n){var a=new e;return a._options=n,a._parser=r,j.load(t,n).then((function(e){return a._package=e,a._package.loadRelationships()})).then((function(e){a.rels=e;var t=ye.map((function(t){var r,n=null!==(r=e.find((function(e){return e.type===t.type})))&&void 0!==r?r:t;return a.loadRelationshipPart(n.target,n.type)}));return Promise.all(t)})).then((function(){return a}))}}),Object.defineProperty(e.prototype,"save",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return void 0===e&&(e="blob"),this._package.save(e)}}),Object.defineProperty(e.prototype,"loadRelationshipPart",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;if(this.partsMap[e])return Promise.resolve(this.partsMap[e]);if(!this._package.get(e))return Promise.resolve(null);var a=null;switch(t){case n.OfficeDocument:this.documentPart=a=new z(this._package,e,this._parser);break;case n.FontTable:this.fontTablePart=a=new k(this._package,e);break;case n.Numbering:this.numberingPart=a=new Y(this._package,e,this._parser);break;case n.Styles:this.stylesPart=a=new q(this._package,e,this._parser);break;case n.Theme:this.themePart=a=new ue(this._package,e);break;case n.Footnotes:this.footnotesPart=a=new pe(this._package,e,this._parser);break;case n.Endnotes:this.endnotesPart=a=new be(this._package,e,this._parser);break;case n.Footer:a=new te(this._package,e,this._parser);break;case n.Header:a=new ee(this._package,e,this._parser);break;case n.CoreProperties:this.corePropsPart=a=new ae(this._package,e);break;case n.ExtendedProperties:this.extendedPropsPart=a=new ne(this._package,e);break;case n.CustomProperties:a=new ve(this._package,e);break;case n.Settings:this.settingsPart=a=new ge(this._package,e)}return null==a?Promise.resolve(null):(this.partsMap[e]=a,this.parts.push(a),a.load().then((function(){if(null==a.rels||0==a.rels.length)return a;var e=O(a.path)[0],t=a.rels.map((function(t){return r.loadRelationshipPart(A(t.target,e),t.type)}));return Promise.all(t).then((function(){return a}))})))}}),Object.defineProperty(e.prototype,"loadDocumentImage",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;return this.loadResource(null!=t?t:this.documentPart,e,"blob").then((function(e){return r.blobToURL(e)}))}}),Object.defineProperty(e.prototype,"loadNumberingImage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this;return this.loadResource(this.numberingPart,e,"blob").then((function(e){return t.blobToURL(e)}))}}),Object.defineProperty(e.prototype,"loadFont",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;return this.loadResource(this.fontTablePart,e,"uint8array").then((function(e){return e&&r.blobToURL(new Blob([_e(e,t)]))}))}}),Object.defineProperty(e.prototype,"blobToURL",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e?this._options.useBase64URL?function(e){return new Promise((function(t,r){var n=new FileReader;n.onloadend=function(){return t(n.result.replace(/application\/octet\-stream;/,"image/png;"))},n.readAsDataURL(e)}))}(e):URL.createObjectURL(e):null}}),Object.defineProperty(e.prototype,"findPartByRelId",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r;void 0===t&&(t=null);var n=(null!==(r=t.rels)&&void 0!==r?r:this.rels).find((function(t){return t.id==e})),a=t?O(t.path)[0]:"";return n?this.partsMap[A(n.target,a)]:null}}),Object.defineProperty(e.prototype,"getPathById",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=e.rels.find((function(e){return e.id==t})),n=O(e.path)[0];return r?A(r.target,n):null}}),Object.defineProperty(e.prototype,"loadResource",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this.getPathById(e,t);return n?this._package.load(n,r):Promise.resolve(null)}}),e}();function _e(e,t){for(var r=t.replace(/{|}|-/g,""),n=new Array(16),a=0;a<16;a++)n[16-a-1]=parseInt(r.substr(2*a,2),16);for(a=0;a<32;a++)e[a]=e[a]^n[a%16];return e}var ke="inherit",Pe="black",xe="black",Se="transparent",Oe=function(){function e(e){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.options=i({ignoreWidth:!1,debug:!1},e)}return Object.defineProperty(e.prototype,"parseNotes",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){for(var n=[],a=0,i=g.elements(e,t);a<i.length;a++){var o=i[a],s=new r;s.id=g.attr(o,"id"),s.noteType=g.attr(o,"type"),s.children=this.parseBodyElements(o),n.push(s)}return n}}),Object.defineProperty(e.prototype,"parseDocumentFile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=g.element(e,"body"),r=g.element(e,"background"),n=g.element(t,"sectPr");return{type:K.Document,children:this.parseBodyElements(t),props:n?B(n,g):null,cssStyle:r?this.parseBackground(r):{}}}}),Object.defineProperty(e.prototype,"parseBackground",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t={},r=Ce.colorAttr(e,"color");return r&&(t["background-color"]=r),t}}),Object.defineProperty(e.prototype,"parseBodyElements",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r=[];return Ce.foreach(e,(function(e){switch(e.localName){case"p":r.push(t.parseParagraph(e));break;case"tbl":r.push(t.parseTable(e));break;case"sdt":t.parseSdt(e).forEach((function(e){return r.push(e)}))}})),r}}),Object.defineProperty(e.prototype,"parseStylesFile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r=[];return Ce.foreach(e,(function(e){switch(e.localName){case"style":r.push(t.parseStyle(e));break;case"docDefaults":r.push(t.parseDefaultStyles(e))}})),r}}),Object.defineProperty(e.prototype,"parseDefaultStyles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r={id:null,name:null,target:null,basedOn:null,styles:[]};return Ce.foreach(e,(function(e){switch(e.localName){case"rPrDefault":var n=g.element(e,"rPr");n&&r.styles.push({target:"span",values:t.parseDefaultProperties(n,{})});break;case"pPrDefault":var a=g.element(e,"pPr");a&&r.styles.push({target:"p",values:t.parseDefaultProperties(a,{})})}})),r}}),Object.defineProperty(e.prototype,"parseStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r={id:g.attr(e,"styleId"),isDefault:g.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(g.attr(e,"type")){case"paragraph":r.target="p";break;case"table":r.target="table";break;case"character":r.target="span"}return Ce.foreach(e,(function(e){switch(e.localName){case"basedOn":r.basedOn=g.attr(e,"val");break;case"name":r.name=g.attr(e,"val");break;case"link":r.linked=g.attr(e,"val");break;case"next":r.next=g.attr(e,"val");break;case"aliases":r.aliases=g.attr(e,"val").split(",");break;case"pPr":r.styles.push({target:"p",values:t.parseDefaultProperties(e,{})}),r.paragraphProps=M(e,g);break;case"rPr":r.styles.push({target:"span",values:t.parseDefaultProperties(e,{})}),r.runProps=L(e,g);break;case"tblPr":case"tcPr":r.styles.push({target:"td",values:t.parseDefaultProperties(e,{})});break;case"tblStylePr":for(var n=0,a=t.parseTableStyle(e);n<a.length;n++){var i=a[n];r.styles.push(i)}break;case"rsid":case"qFormat":case"hidden":case"semiHidden":case"unhideWhenUsed":case"autoRedefine":case"uiPriority":break;default:t.options.debug&&console.warn("DOCX: Unknown style element: ".concat(e.localName))}})),r}}),Object.defineProperty(e.prototype,"parseTableStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r=[],n=g.attr(e,"type"),a="",i="";switch(n){case"firstRow":i=".first-row",a="tr.first-row td";break;case"lastRow":i=".last-row",a="tr.last-row td";break;case"firstCol":i=".first-col",a="td.first-col";break;case"lastCol":i=".last-col",a="td.last-col";break;case"band1Vert":i=":not(.no-vband)",a="td.odd-col";break;case"band2Vert":i=":not(.no-vband)",a="td.even-col";break;case"band1Horz":i=":not(.no-hband)",a="tr.odd-row";break;case"band2Horz":i=":not(.no-hband)",a="tr.even-row";break;default:return[]}return Ce.foreach(e,(function(e){switch(e.localName){case"pPr":r.push({target:"".concat(a," p"),mod:i,values:t.parseDefaultProperties(e,{})});break;case"rPr":r.push({target:"".concat(a," span"),mod:i,values:t.parseDefaultProperties(e,{})});break;case"tblPr":case"tcPr":r.push({target:a,mod:i,values:t.parseDefaultProperties(e,{})})}})),r}}),Object.defineProperty(e.prototype,"parseNumberingFile",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r=[],n={},a=[];return Ce.foreach(e,(function(e){switch(e.localName){case"abstractNum":t.parseAbstractNumbering(e,a).forEach((function(e){return r.push(e)}));break;case"numPicBullet":a.push(t.parseNumberingPicBullet(e));break;case"num":var i=g.attr(e,"numId"),o=g.elementAttr(e,"abstractNumId","val");n[o]=i}})),r.forEach((function(e){return e.id=n[e.id]})),r}}),Object.defineProperty(e.prototype,"parseNumberingPicBullet",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=g.element(e,"pict"),r=t&&g.element(t,"shape"),n=r&&g.element(r,"imagedata");return n?{id:g.intAttr(e,"numPicBulletId"),src:g.attr(n,"id"),style:g.attr(r,"style")}:null}}),Object.defineProperty(e.prototype,"parseAbstractNumbering",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this,n=[],a=g.attr(e,"abstractNumId");return Ce.foreach(e,(function(e){if("lvl"===e.localName)n.push(r.parseNumberingLevel(a,e,t))})),n}}),Object.defineProperty(e.prototype,"parseNumberingLevel",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=this,a={id:e,level:g.intAttr(t,"ilvl"),pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return Ce.foreach(t,(function(e){switch(e.localName){case"pPr":n.parseDefaultProperties(e,a.pStyle);break;case"rPr":n.parseDefaultProperties(e,a.rStyle);break;case"lvlPicBulletId":var t=g.intAttr(e,"val");a.bullet=r.find((function(e){return e.id==t}));break;case"lvlText":a.levelText=g.attr(e,"val");break;case"pStyle":a.pStyleName=g.attr(e,"val");break;case"numFmt":a.format=g.attr(e,"val");break;case"suff":a.suff=g.attr(e,"val")}})),a}}),Object.defineProperty(e.prototype,"parseSdt",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=g.element(e,"sdtContent");return t?this.parseBodyElements(t):[]}}),Object.defineProperty(e.prototype,"parseParagraph",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r={type:K.Paragraph,children:[]};return Ce.foreach(e,(function(e){switch(e.localName){case"r":r.children.push(t.parseRun(e,r));break;case"hyperlink":r.children.push(t.parseHyperlink(e,r));break;case"bookmarkStart":r.children.push(function(e,t){return{type:K.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}}(e,g));break;case"bookmarkEnd":r.children.push(function(e,t){return{type:K.BookmarkEnd,id:t.attr(e,"id")}}(e,g));break;case"pPr":t.parseParagraphProperties(e,r)}})),r}}),Object.defineProperty(e.prototype,"parseParagraphProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;this.parseDefaultProperties(e,t.cssStyle={},null,(function(e){if(W(e,t,g))return!0;switch(e.localName){case"pStyle":t.styleName=g.attr(e,"val");break;case"cnfStyle":t.className=Ee.classNameOfCnfStyle(e);break;case"framePr":r.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0}))}}),Object.defineProperty(e.prototype,"parseFrame",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){"drop"==g.attr(e,"dropCap")&&(t.cssStyle.float="left")}}),Object.defineProperty(e.prototype,"parseHyperlink",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this,n={type:K.Hyperlink,parent:t,children:[]},a=g.attr(e,"anchor");return a&&(n.href="#"+a),Ce.foreach(e,(function(e){if("r"===e.localName)n.children.push(r.parseRun(e,n))})),n}}),Object.defineProperty(e.prototype,"parseRun",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this,n={type:K.Run,parent:t,children:[]};return Ce.foreach(e,(function(e){switch(e.localName){case"t":n.children.push({type:K.Text,text:e.textContent});break;case"fldSimple":n.children.push({type:K.SimpleField,instruction:g.attr(e,"instr"),lock:g.boolAttr(e,"lock",!1),dirty:g.boolAttr(e,"dirty",!1)});break;case"instrText":n.fieldRun=!0,n.children.push({type:K.Instruction,text:e.textContent});break;case"fldChar":n.fieldRun=!0,n.children.push({type:K.ComplexField,charType:g.attr(e,"fldCharType"),lock:g.boolAttr(e,"lock",!1),dirty:g.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":n.children.push({type:K.NoBreakHyphen});break;case"br":n.children.push({type:K.Break,break:g.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":n.children.push({type:K.Break,break:"lastRenderedPageBreak"});break;case"sym":n.children.push({type:K.Symbol,font:Math.ceil(4*parseInt(g.attr(e,"font"))/3)+"px",char:g.attr(e,"char")});break;case"tab":n.children.push({type:K.Tab});break;case"footnoteReference":n.children.push({type:K.FootnoteReference,id:g.attr(e,"id")});break;case"endnoteReference":n.children.push({type:K.EndnoteReference,id:g.attr(e,"id")});break;case"drawing":var t=r.parseDrawing(e);t&&(n.children=[t]);break;case"rPr":r.parseRunProperties(e,n)}})),n}}),Object.defineProperty(e.prototype,"parseRunProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,(function(e){switch(e.localName){case"rStyle":t.styleName=g.attr(e,"val");break;case"vertAlign":t.verticalAlign=Ee.valueOfVertAlign(e,!0);break;default:return!1}return!0}))}}),Object.defineProperty(e.prototype,"parseDrawing",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=0,r=g.elements(e);t<r.length;t++){var n=r[t];switch(n.localName){case"inline":case"anchor":return this.parseDrawingWrapper(n)}}}}),Object.defineProperty(e.prototype,"parseDrawingWrapper",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r={type:K.Drawing,children:[],cssStyle:{}},n="anchor"==e.localName,a=null,i=g.boolAttr(e,"simplePos"),o={relative:"page",align:"left",offset:"0"},s={relative:"page",align:"top",offset:"0"},l=0,c=g.elements(e);l<c.length;l++){var f=c[l];switch(f.localName){case"simplePos":i&&(o.offset=g.lengthAttr(f,"x",u),s.offset=g.lengthAttr(f,"y",u));break;case"extent":r.cssStyle.width=g.lengthAttr(f,"cx",u),r.cssStyle.height=g.lengthAttr(f,"cy",u);break;case"positionH":case"positionV":if(!i){var d="positionH"==f.localName?o:s,h=g.element(f,"align"),p=g.element(f,"posOffset");d.relative=null!==(t=g.attr(f,"relativeFrom"))&&void 0!==t?t:d.relative,h&&(d.align=h.textContent),p&&(d.offset=Ce.sizeValue(p,u))}break;case"wrapTopAndBottom":a="wrapTopAndBottom";break;case"wrapNone":a="wrapNone";break;case"graphic":var b=this.parseGraphic(f);b&&r.children.push(b)}}return"wrapTopAndBottom"==a?(r.cssStyle.display="block",o.align&&(r.cssStyle["text-align"]=o.align,r.cssStyle.width="100%")):"wrapNone"==a?(r.cssStyle.display="block",r.cssStyle.position="relative",r.cssStyle.width="0px",r.cssStyle.height="0px",o.offset&&(r.cssStyle.left=o.offset),s.offset&&(r.cssStyle.top=s.offset)):n&&("left"==o.align||"right"==o.align)&&(r.cssStyle.float=o.align),r}}),Object.defineProperty(e.prototype,"parseGraphic",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=g.element(e,"graphicData"),r=0,n=g.elements(t);r<n.length;r++){var a=n[r];if("pic"===a.localName)return this.parsePicture(a)}return null}}),Object.defineProperty(e.prototype,"parsePicture",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t={type:K.Image,src:"",cssStyle:{}},r=g.element(e,"blipFill"),n=g.element(r,"blip");t.src=g.attr(n,"embed");var a=g.element(e,"spPr"),i=g.element(a,"xfrm");t.cssStyle.position="relative";for(var o=0,s=g.elements(i);o<s.length;o++){var l=s[o];switch(l.localName){case"ext":t.cssStyle.width=g.lengthAttr(l,"cx",u),t.cssStyle.height=g.lengthAttr(l,"cy",u);break;case"off":t.cssStyle.left=g.lengthAttr(l,"x",u),t.cssStyle.top=g.lengthAttr(l,"y",u)}}return t}}),Object.defineProperty(e.prototype,"parseTable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r={type:K.Table,children:[]};return Ce.foreach(e,(function(e){switch(e.localName){case"tr":r.children.push(t.parseTableRow(e));break;case"tblGrid":r.columns=t.parseTableColumns(e);break;case"tblPr":t.parseTableProperties(e,r)}})),r}}),Object.defineProperty(e.prototype,"parseTableColumns",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=[];return Ce.foreach(e,(function(e){if("gridCol"===e.localName)t.push({width:g.lengthAttr(e,"w")})})),t}}),Object.defineProperty(e.prototype,"parseTableProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;switch(t.cssStyle={},t.cellStyle={},this.parseDefaultProperties(e,t.cssStyle,t.cellStyle,(function(e){switch(e.localName){case"tblStyle":t.styleName=g.attr(e,"val");break;case"tblLook":t.className=Ee.classNameOftblLook(e);break;case"tblpPr":r.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=g.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=g.intAttr(e,"val");break;default:return!1}return!0})),t.cssStyle["text-align"]){case"center":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto",t.cssStyle["margin-right"]="auto";break;case"right":delete t.cssStyle["text-align"],t.cssStyle["margin-left"]="auto"}}}),Object.defineProperty(e.prototype,"parseTablePosition",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=g.lengthAttr(e,"topFromText"),n=g.lengthAttr(e,"bottomFromText"),a=g.lengthAttr(e,"rightFromText"),i=g.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=Ee.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=Ee.addSize(t.cssStyle["margin-left"],i),t.cssStyle["margin-right"]=Ee.addSize(t.cssStyle["margin-right"],a),t.cssStyle["margin-top"]=Ee.addSize(t.cssStyle["margin-top"],r)}}),Object.defineProperty(e.prototype,"parseTableRow",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r={type:K.Row,children:[]};return Ce.foreach(e,(function(e){switch(e.localName){case"tc":r.children.push(t.parseTableCell(e));break;case"trPr":t.parseTableRowProperties(e,r)}})),r}}),Object.defineProperty(e.prototype,"parseTableRowProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,(function(e){switch(e.localName){case"cnfStyle":t.className=Ee.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=g.boolAttr(e,"val");break;default:return!1}return!0}))}}),Object.defineProperty(e.prototype,"parseTableCell",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this,r={type:K.Cell,children:[]};return Ce.foreach(e,(function(e){switch(e.localName){case"tbl":r.children.push(t.parseTable(e));break;case"p":r.children.push(t.parseParagraph(e));break;case"tcPr":t.parseTableCellProperties(e,r)}})),r}}),Object.defineProperty(e.prototype,"parseTableCellProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,(function(e){var r;switch(e.localName){case"gridSpan":t.span=g.intAttr(e,"val",null);break;case"vMerge":t.verticalMerge=null!==(r=g.attr(e,"val"))&&void 0!==r?r:"continue";break;case"cnfStyle":t.className=Ee.classNameOfCnfStyle(e);break;default:return!1}return!0}))}}),Object.defineProperty(e.prototype,"parseDefaultProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){var a=this;return void 0===t&&(t=null),void 0===r&&(r=null),void 0===n&&(n=null),t=t||{},Ce.foreach(e,(function(i){var o;if(null===(o=n)||void 0===o||!o(i))switch(i.localName){case"jc":t["text-align"]=Ee.valueOfJc(i);break;case"textAlignment":t["vertical-align"]=Ee.valueOfTextAlignment(i);break;case"color":t.color=Ce.colorAttr(i,"val",null,Pe);break;case"sz":t["font-size"]=t["min-height"]=Math.ceil(4*parseInt(g.lengthAttr(i,"val",c))/3)+"px";break;case"shd":t["background-color"]=Ce.colorAttr(i,"fill",null,ke);break;case"highlight":t["background-color"]=Ce.colorAttr(i,"val",null,Se);break;case"vertAlign":break;case"position":t.verticalAlign=g.lengthAttr(i,"val",c);break;case"tcW":if(a.options.ignoreWidth)break;case"tblW":t.width=Ee.valueOfSize(i,"w");break;case"trHeight":a.parseTrHeight(i,t);break;case"strike":t["text-decoration"]=g.boolAttr(i,"val",!0)?"line-through":"none";break;case"b":t["font-weight"]=g.boolAttr(i,"val",!0)?"bold":"normal";break;case"i":t["font-style"]=g.boolAttr(i,"val",!0)?"italic":"normal";break;case"caps":t["text-transform"]=g.boolAttr(i,"val",!0)?"uppercase":"none";break;case"smallCaps":t["text-transform"]=g.boolAttr(i,"val",!0)?"lowercase":"none";break;case"u":a.parseUnderline(i,t);break;case"ind":case"tblInd":a.parseIndentation(i,t);break;case"rFonts":a.parseFont(i,t);break;case"tblBorders":a.parseBorderProperties(i,r||t);break;case"tblCellSpacing":t["border-spacing"]=Ee.valueOfMargin(i),t["border-collapse"]="separate";break;case"pBdr":a.parseBorderProperties(i,t);break;case"bdr":t.border=Ee.valueOfBorder(i);break;case"tcBorders":a.parseBorderProperties(i,t);break;case"vanish":g.boolAttr(i,"val",!0)&&(t.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":a.parseMarginProperties(i,r||t);break;case"tblLayout":t["table-layout"]=Ee.valueOfTblLayout(i);break;case"vAlign":t["vertical-align"]=Ee.valueOfTextAlignment(i);break;case"spacing":"pPr"==e.localName&&a.parseSpacing(i,t);break;case"wordWrap":g.boolAttr(i,"val")&&(t["overflow-wrap"]="break-word");break;case"bCs":case"iCs":case"szCs":case"tabs":case"outlineLvl":case"contextualSpacing":case"tblStyleColBandSize":case"tblStyleRowBandSize":case"webHidden":case"pageBreakBefore":case"suppressLineNumbers":case"keepLines":case"keepNext":case"lang":case"widowControl":case"bidi":case"rtl":case"noProof":break;default:a.options.debug&&console.warn("DOCX: Unknown document element: ".concat(e.localName,".").concat(i.localName))}})),t}}),Object.defineProperty(e.prototype,"parseUnderline",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=g.attr(e,"val");if(null!=r){switch(r){case"dash":case"dashDotDotHeavy":case"dashDotHeavy":case"dashedHeavy":case"dashLong":case"dashLongHeavy":case"dotDash":case"dotDotDash":t["text-decoration-style"]="dashed";break;case"dotted":case"dottedHeavy":t["text-decoration-style"]="dotted";break;case"double":t["text-decoration-style"]="double";break;case"single":case"thick":case"words":t["text-decoration"]="underline";break;case"wave":case"wavyDouble":case"wavyHeavy":t["text-decoration-style"]="wavy";break;case"none":t["text-decoration"]="none"}var n=Ce.colorAttr(e,"color");n&&(t["text-decoration-color"]=n)}}}),Object.defineProperty(e.prototype,"parseFont",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=[g.attr(e,"ascii"),Ee.themeValue(e,"asciiTheme")].filter((function(e){return e})).join(", ");r.length>0&&(t["font-family"]=r)}}),Object.defineProperty(e.prototype,"parseIndentation",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=g.lengthAttr(e,"firstLine"),n=g.lengthAttr(e,"hanging"),a=g.lengthAttr(e,"left"),i=g.lengthAttr(e,"start"),o=g.lengthAttr(e,"right"),s=g.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]="-".concat(n)),(a||i)&&(t["margin-left"]=a||i),(o||s)&&(t["margin-right"]=o||s)}}),Object.defineProperty(e.prototype,"parseSpacing",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=g.lengthAttr(e,"before"),n=g.lengthAttr(e,"after"),a=g.intAttr(e,"line",null),i=g.attr(e,"lineRule");if(r&&(t["margin-top"]=r),n&&(t["margin-bottom"]=n),null!==a)switch(i){case"auto":t["line-height"]="".concat((a/240).toFixed(2));break;case"atLeast":t["line-height"]="calc(100% + ".concat(Math.ceil(a/15),"px)");break;default:t["line-height"]=t["min-height"]="".concat(Math.ceil(a/15),"px")}}}),Object.defineProperty(e.prototype,"parseMarginProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){Ce.foreach(e,(function(e){switch(e.localName){case"left":t["padding-left"]=Ee.valueOfMargin(e);break;case"right":t["padding-right"]=Ee.valueOfMargin(e);break;case"top":t["padding-top"]=Ee.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=Ee.valueOfMargin(e)}}))}}),Object.defineProperty(e.prototype,"parseTrHeight",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){g.attr(e,"hRule"),t.height=g.lengthAttr(e,"val")}}),Object.defineProperty(e.prototype,"parseBorderProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){Ce.foreach(e,(function(e){switch(e.localName){case"start":case"left":t["border-left"]=Ee.valueOfBorder(e);break;case"end":case"right":t["border-right"]=Ee.valueOfBorder(e);break;case"top":t["border-top"]=Ee.valueOfBorder(e);break;case"bottom":t["border-bottom"]=Ee.valueOfBorder(e)}}))}}),e}(),Ae=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],Ce=function(){function e(){}return Object.defineProperty(e,"foreach",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(var r=0;r<e.childNodes.length;r++){var n=e.childNodes[r];n.nodeType==Node.ELEMENT_NODE&&t(n)}}}),Object.defineProperty(e,"colorAttr",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){void 0===r&&(r=null),void 0===n&&(n="black");var a=g.attr(e,t);if(a)return"auto"==a?n:Ae.includes(a)?a:"#".concat(a);var i=g.attr(e,"themeColor");return i?"var(--docx-".concat(i,"-color)"):r}}),Object.defineProperty(e,"sizeValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return void 0===t&&(t=l),p(e.textContent,t)}}),e}(),Ee=function(){function e(){}return Object.defineProperty(e,"themeValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=g.attr(e,t);return r?"var(--docx-".concat(r,"-font)"):null}}),Object.defineProperty(e,"valueOfSize",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=l;switch(g.attr(e,"type")){case"dxa":break;case"pct":r=h;break;case"auto":return"auto"}return g.lengthAttr(e,t,r)}}),Object.defineProperty(e,"valueOfMargin",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return g.lengthAttr(e,"w")}}),Object.defineProperty(e,"valueOfBorder",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if("nil"==g.attr(e,"val"))return"none";var t=Ce.colorAttr(e,"color"),r=g.lengthAttr(e,"sz",f);return"".concat(r," solid ").concat("auto"==t?xe:t)}}),Object.defineProperty(e,"valueOfTblLayout",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return"fixed"==g.attr(e,"val")?"fixed":"auto"}}),Object.defineProperty(e,"classNameOfCnfStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=g.attr(e,"val");return["first-row","last-row","first-col","last-col","odd-col","even-col","odd-row","even-row","ne-cell","nw-cell","se-cell","sw-cell"].filter((function(e,r){return"1"==t[r]})).join(" ")}}),Object.defineProperty(e,"valueOfJc",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=g.attr(e,"val");switch(t){case"start":case"left":return"left";case"center":return"center";case"end":case"right":return"right";case"both":return"justify"}return t}}),Object.defineProperty(e,"valueOfVertAlign",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=!1);var r=g.attr(e,"val");switch(r){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:r}}),Object.defineProperty(e,"valueOfTextAlignment",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=g.attr(e,"val");switch(t){case"auto":case"baseline":return"baseline";case"top":return"top";case"center":return"middle";case"bottom":return"bottom"}return t}}),Object.defineProperty(e,"addSize",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return null==e?t:null==t?e:"calc(".concat(e," + ").concat(t,")")}}),Object.defineProperty(e,"classNameOftblLook",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=g.hexAttr(e,"val",0),r="";return(g.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(g.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(g.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(g.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(g.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(g.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}),e}(),je={pos:0,leader:"none",style:"left"};function Ne(e,t,r,n){void 0===n&&(n=.75);var a=e.closest("p"),o=e.getBoundingClientRect(),s=a.getBoundingClientRect(),l=getComputedStyle(a),u=(null==t?void 0:t.length)>0?t.map((function(e){return{pos:ze(e.position),leader:e.leader,style:e.style}})).sort((function(e,t){return e.pos-t.pos})):[je],c=u[u.length-1],f=s.width*n,d=ze(r),h=c.pos+d;if(h<f)for(;h<f&&u.length<50;h+=d)u.push(i(i({},je),{pos:h}));var p=parseFloat(l.marginLeft),b=s.left+p,m=(o.left-b)*n,g=u.find((function(e){return"clear"!=e.style&&e.pos>m}));if(null!=g){var v=1;if("right"==g.style||"center"==g.style){var y=Array.from(a.querySelectorAll(".".concat(e.className))),w=y.indexOf(e)+1,_=document.createRange();_.setStart(e,1),w<y.length?_.setEndBefore(y[w]):_.setEndAfter(a);var k="center"==g.style?.5:1,P=_.getBoundingClientRect(),x=P.left+k*P.width-(s.left-p);v=g.pos-x*n}else v=g.pos-m;switch(e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing="".concat(v.toFixed(0),"pt"),g.leader){case"dot":case"middleDot":e.style.textDecoration="underline",e.style.textDecorationStyle="dotted";break;case"hyphen":case"heavy":case"underscore":e.style.textDecoration="underline"}}}function ze(e){return parseFloat(e)}var Te={exports:{}},Ie={exports:{}},Be={exports:{}},Re=1e3,Fe=6e4,De=60*Fe,Le=24*De,Ue=365.25*Le,Me=function(t,r){r=r||{};var n=e(t);if("string"===n&&t.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(e);if(t){var r=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return r*Ue;case"days":case"day":case"d":return r*Le;case"hours":case"hour":case"hrs":case"hr":case"h":return r*De;case"minutes":case"minute":case"mins":case"min":case"m":return r*Fe;case"seconds":case"second":case"secs":case"sec":case"s":return r*Re;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}(t);if("number"===n&&!1===isNaN(t))return r.long?function(e){return We(e,Le,"day")||We(e,De,"hour")||We(e,Fe,"minute")||We(e,Re,"second")||e+" ms"}(t):function(e){return e>=Le?Math.round(e/Le)+"d":e>=De?Math.round(e/De)+"h":e>=Fe?Math.round(e/Fe)+"m":e>=Re?Math.round(e/Re)+"s":e+"ms"}(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function We(e,t,r){if(!(e<t))return e<1.5*t?Math.floor(e/t)+" "+r:Math.ceil(e/t)+" "+r+"s"}(function(e,t){var r;function n(e){function n(){if(n.enabled){var e=n,a=+new Date,i=a-(r||a);e.diff=i,e.prev=r,e.curr=a,r=a;for(var o=new Array(arguments.length),s=0;s<o.length;s++)o[s]=arguments[s];o[0]=t.coerce(o[0]),"string"!=typeof o[0]&&o.unshift("%O");var l=0;o[0]=o[0].replace(/%([a-zA-Z%])/g,(function(r,n){if("%%"===r)return r;l++;var a=t.formatters[n];if("function"==typeof a){var i=o[l];r=a.call(e,i),o.splice(l,1),l--}return r})),t.formatArgs.call(e,o);var u=n.log||t.log||console.log.bind(console);u.apply(e,o)}}return n.namespace=e,n.enabled=t.enabled(e),n.useColors=t.useColors(),n.color=function(e){var r,n=0;for(r in e)n=(n<<5)-n+e.charCodeAt(r),n|=0;return t.colors[Math.abs(n)%t.colors.length]}(e),"function"==typeof t.init&&t.init(n),n}(t=e.exports=n.debug=n.default=n).coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){t.enable("")},t.enable=function(e){t.save(e),t.names=[],t.skips=[];for(var r=("string"==typeof e?e:"").split(/[\s,]+/),n=r.length,a=0;a<n;a++)!r[a]||("-"===(e=r[a].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.substr(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){var r,n;for(r=0,n=t.skips.length;r<n;r++)if(t.skips[r].test(e))return!1;for(r=0,n=t.names.length;r<n;r++)if(t.names[r].test(e))return!0;return!1},t.humanize=Me,t.names=[],t.skips=[],t.formatters={}})(Be,Be.exports),function(t,r){function n(){var t;try{t=r.storage.debug}catch(n){}return!t&&("undefined"==typeof process?"undefined":e(process))<"u"&&"env"in process&&(t={}.DEBUG),t}(r=t.exports=Be.exports).log=function(){return"object"==("undefined"==typeof console?"undefined":e(console))&&console.log&&Function.prototype.apply.call(console.log,console,arguments)},r.formatArgs=function(e){var t=this.useColors;if(e[0]=(t?"%c":"")+this.namespace+(t?" %c":" ")+e[0]+(t?"%c ":" ")+"+"+r.humanize(this.diff),t){var n="color: "+this.color;e.splice(1,0,n,"color: inherit");var a=0,i=0;e[0].replace(/%[a-zA-Z%]/g,(function(e){"%%"!==e&&(a++,"%c"===e&&(i=a))})),e.splice(i,0,n)}},r.save=function(e){try{null==e?r.storage.removeItem("debug"):r.storage.debug=e}catch(t){}},r.load=n,r.useColors=function(){return!!(("undefined"==typeof window?"undefined":e(window))<"u"&&window.process&&"renderer"===window.process.type)||(("undefined"==typeof document?"undefined":e(document))<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||("undefined"==typeof window?"undefined":e(window))<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||("undefined"==typeof navigator?"undefined":e(navigator))<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||("undefined"==typeof navigator?"undefined":e(navigator))<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},r.storage=("undefined"==typeof chrome?"undefined":e(chrome))<"u"&&e(chrome.storage)<"u"?chrome.storage.local:function(){try{return window.localStorage}catch(e){}}(),r.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],r.formatters.j=function(e){try{return JSON.stringify(e)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},r.enable(n())}(Ie,Ie.exports),function(t){!function(e,r){t.exports?t.exports=r(Ie.exports("eventproxy")):this.EventProxy=r()}(0,(function(t){t=t||function(){};var r=Array.prototype.slice,n=Array.prototype.concat,a="__all__",i=function e(){if(!(this instanceof e))return new e;this._callbacks={},this._fired={}};i.prototype.addListener=function(e,r){return t("Add listener for %s",e),this._callbacks[e]=this._callbacks[e]||[],this._callbacks[e].push(r),this},i.prototype.bind=i.prototype.addListener,i.prototype.on=i.prototype.addListener,i.prototype.subscribe=i.prototype.addListener,i.prototype.headbind=function(e,r){return t("Add listener for %s",e),this._callbacks[e]=this._callbacks[e]||[],this._callbacks[e].unshift(r),this},i.prototype.removeListener=function(e,r){var n=this._callbacks;if(e)if(r){var a=n[e];if(a)for(var i=a.length,o=0;o<i;o++)r===a[o]&&(t("Remove a listener of %s",e),a[o]=null)}else t("Remove all listeners of %s",e),n[e]=[];else t("Remove all listeners"),this._callbacks={};return this},i.prototype.unbind=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){return this.unbind(e)},i.prototype.bindForAll=function(e){this.bind(a,e)},i.prototype.unbindForAll=function(e){this.unbind(a,e)},i.prototype.trigger=function(e,r){var n,i,o,s,l=2,u=this._callbacks;for(t("Emit event %s with data %j",e,r);l--;)if(n=u[l?e:a])for(o=0,s=n.length;o<s;o++)if(i=n[o]){for(var c=[],f=l?1:0,d=f;d<arguments.length;d++)c.push(arguments[d]);i.apply(this,c)}else n.splice(o,1),o--,s--;return this},i.prototype.emit=i.prototype.trigger,i.prototype.fire=i.prototype.trigger,i.prototype.once=function(e,t){var r=this;return this.bind(e,(function n(){t.apply(r,arguments),r.unbind(e,n)})),this};var o=("undefined"==typeof setImmediate?"undefined":e(setImmediate))<"u"&&setImmediate||("undefined"==typeof process?"undefined":e(process))<"u"&&process.nextTick||function(e){setTimeout(e,0)};i.prototype.emitLater=function(){var e=this,t=arguments;o((function(){e.trigger.apply(e,t)}))},i.prototype.immediate=function(e,t,r){return this.bind(e,t),this.trigger(e,r),this},i.prototype.asap=i.prototype.immediate;var s=function(e,n,a,i){var o=this,s=arguments.length,l=0,u={};if(s<3)return this;var c=r.call(arguments,0,-2),f=arguments[s-2],d=arguments[s-1];if("function"!=typeof f)return this;t("Assign listener for events %j, once is %s",c,!!d);for(var h=function(e){o[d?"once":"bind"](e,(function(t){o._fired[e]=o._fired[e]||{},o._fired[e].data=t,u[e]||(u[e]=!0,l++)}))},p=c.length,b=0;b<p;b++)h(c[b]);var m=function e(r){if(!(l<p)&&u[r]){for(var n=[],a=0;a<p;a++)n.push(o._fired[c[a]].data);d&&o.unbindForAll(e),t("Events %j all emited with data %j",c,n),f.apply(null,n)}};o.bindForAll(m)};return i.prototype.all=function(e,t,r){var a=n.apply([],arguments);return a.push(!0),s.apply(this,a),this},i.prototype.assign=i.prototype.all,i.prototype.fail=function(e){var t=this;return t.once("error",(function(){t.unbind(),e.apply(null,arguments)})),this},i.prototype.throw=function(){var e=this;e.emit.apply(e,["error"].concat(r.call(arguments)))},i.prototype.tail=function(){var e=n.apply([],arguments);return e.push(!1),s.apply(this,e),this},i.prototype.assignAll=i.prototype.tail,i.prototype.assignAlways=i.prototype.tail,i.prototype.after=function(e,r,n){if(0===r)return n.call(null,[]),this;var a=this,i=[];this._after=this._after||{};var o=e+"_group";this._after[o]={index:0,results:[]},t("After emit %s times, event %s's listenner will execute",r,e);return a.bindForAll((function s(l,u){l===e&&(r--,i.push(u),r<1&&(t("Event %s was emit %s, and execute the listenner",e,r),a.unbindForAll(s),n.apply(null,[i]))),l===o&&(r--,a._after[o].results[u.index]=u.result,r<1&&(t("Event %s was emit %s, and execute the listenner",e,r),a.unbindForAll(s),n.call(null,a._after[o].results)))})),this},i.prototype.group=function(e,t){var n=this,a=e+"_group",i=n._after[a].index;return n._after[a].index++,function(e,o){if(e)return n.emit.apply(n,["error"].concat(r.call(arguments)));n.emit(a,{index:i,result:t?t.apply(null,r.call(arguments,1)):o})}},i.prototype.any=function(){var e=this,n=arguments[arguments.length-1],a=r.call(arguments,0,-1),i=a.join("_");t("Add listenner for Any of events %j emit",a),e.once(i,n);for(var o=function(r){e.bind(r,(function(n){t("One of events %j emited, execute the listenner"),e.trigger(i,{data:n,eventName:r})}))},s=0;s<a.length;s++)o(a[s])},i.prototype.not=function(e,r){t("Add listenner for not event %s",e),this.bindForAll((function(n,a){n!==e&&(t("listenner execute of event %s emit, but not event %s.",n,e),r(a))}))},i.prototype.done=function(e,t){var n=this;return function(a,i){if(a)return n.emit.apply(n,["error"].concat(r.call(arguments)));var o=r.call(arguments,1);return"string"==typeof e?t?n.emit(e,t.apply(null,o)):n.emit.apply(n,[e].concat(o)):arguments.length<=2?e(i):void e.apply(null,o)}},i.prototype.doneLater=function(e,t){var r=this.done(e,t);return function(e,t){var n=arguments;o((function(){r.apply(null,n)}))}},i.create=function(){var e=new i,t=n.apply([],arguments);if(t.length){var r=t[t.length-1],a=t[t.length-2];"function"==typeof r&&"function"==typeof a&&(t.pop(),e.fail(r)),e.assign.apply(e,t)}return e},i.EventProxy=i,i}))}(Te);var He=Te.exports,Ze=function(){function e(e){Object.defineProperty(this,"htmlDocument",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"className",{enumerable:!0,configurable:!0,writable:!0,value:"docx"}),Object.defineProperty(this,"document",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"styleMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"currentPart",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tableVerticalMerges",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentVerticalMerge",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tableCellPositions",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"currentCellPosition",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footnoteMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"endnoteMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"currentFootnoteIds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentEndnoteIds",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"usedHederFooterParts",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"renderImageCount",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"defaultTabSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"domNumberings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"ep2",{enumerable:!0,configurable:!0,writable:!0,value:new He}),Object.defineProperty(this,"currentTabs",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"tabsTimeout",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"createElement",{enumerable:!0,configurable:!0,writable:!0,value:Ve})}return Object.defineProperty(e.prototype,"render",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){var a=this;return void 0===r&&(r=null),new Promise((function(o){var s;a.document=e,a.options=n,a.className=n.className,a.styleMap=null,a.renderImageCount=0,r=r||t,function(e){e.innerHTML=""}(t),e.numberingPart&&(a.prodessNumberings(e.numberingPart.domNumberings),e.numberingPart.domNumberings.forEach((function(e){!a.domNumberings[e.id]&&(a.domNumberings[e.id]={}),a.domNumberings[e.id][e.level]=i(i({},e),{count:1,pCount:1})}))),e.settingsPart&&(a.defaultTabSize=null===(s=e.settingsPart.settings)||void 0===s?void 0:s.defaultTabStop),!n.ignoreFonts&&e.fontTablePart&&a.renderFontTable(e.fontTablePart,r),a.countNum=100;var l=a.renderSections(e.documentPart.body);Xe(t,l),a.refreshTabStops(),a.ep2.after("renderImage",a.renderImageCount,(function(e){setTimeout((function(){o("ok")}),200)}))}))}}),Object.defineProperty(e.prototype,"renderTheme",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r,n,a={},i=null===(r=e.theme)||void 0===r?void 0:r.fontScheme;i&&(i.majorFont&&(a["--docx-majorHAnsi-font"]=i.majorFont.latinTypeface),i.minorFont&&(a["--docx-minorHAnsi-font"]=i.minorFont.latinTypeface));var o=null===(n=e.theme)||void 0===n?void 0:n.colorScheme;if(o)for(var s=0,l=Object.entries(o.colors);s<l.length;s++){var u=l[s],c=u[0],f=u[1];a["--docx-".concat(c,"-color")]="#".concat(f)}var d=this.styleToString(".".concat(this.className),a);t.appendChild(Ge(d))}}),Object.defineProperty(e.prototype,"renderFontTable",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){for(var r=this,n=function(e){for(var n=function(n){a.document.loadFont(n.id,n.key).then((function(a){var i={"font-family":e.name,src:"url(".concat(a,")")};("bold"==n.type||"boldItalic"==n.type)&&(i["font-weight"]="bold"),("italic"==n.type||"boldItalic"==n.type)&&(i["font-style"]="italic"),function(e,t){e.appendChild(document.createComment(t))}(t,"docxjs ".concat(e.name," font"));var o=r.styleToString("@font-face",i);t.appendChild(Ge(o)),r.refreshTabStops()}))},i=0,o=e.embedFontRefs;i<o.length;i++){n(o[i])}},a=this,i=0,o=e.fonts;i<o.length;i++){n(o[i])}}}),Object.defineProperty(e.prototype,"processStyleName",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e?"".concat(this.className,"_").concat(function(e){return null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()}(e)):this.className}}),Object.defineProperty(e.prototype,"processStyles",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=function(e,t){return e.reduce((function(e,r){return e[t(r)]=r,e}),{})}(e.filter((function(e){return null!=e.id})),(function(e){return e.id})),r=0,n=e.filter((function(e){return e.basedOn}));r<n.length;r++){var a=t[(d=n[r]).basedOn];if(a){d.paragraphProps=E(d.paragraphProps,a.paragraphProps),d.runProps=E(d.runProps,a.runProps);for(var o=function(e){var t=d.styles.find((function(t){return t.target==e.target}));t?s.copyStyleProperties(e.values,t.values):d.styles.push(i(i({},e),{values:i({},e.values)}))},s=this,l=0,u=a.styles;l<u.length;l++){o(u[l])}}else this.options.debug&&console.warn("Can't find base style ".concat(d.basedOn))}for(var c=0,f=e;c<f.length;c++){var d;(d=f[c]).cssName=this.processStyleName(d.id)}return t}}),Object.defineProperty(e.prototype,"prodessNumberings",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=0,n=e.filter((function(e){return e.pStyleName}));r<n.length;r++){var a=n[r],i=this.findStyle(a.pStyleName);null!==(t=null==i?void 0:i.paragraphProps)&&void 0!==t&&t.numbering&&(i.paragraphProps.numbering.level=a.level)}}}),Object.defineProperty(e.prototype,"processElement",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.children)for(var t=0,r=e.children;t<r.length;t++){var n=r[t];n.parent=e,n.type==K.Table?this.processTable(n):this.processElement(n)}}}),Object.defineProperty(e.prototype,"processTable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=0,r=e.children;t<r.length;t++)for(var n=0,a=r[t].children;n<a.length;n++){var i=a[n];i.cssStyle=this.copyStyleProperties(e.cellStyle,i.cssStyle,["border-left","border-right","border-top","border-bottom","padding-left","padding-right","padding-top","padding-bottom"]),this.processElement(i)}}}),Object.defineProperty(e.prototype,"copyStyleProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){if(void 0===r&&(r=null),!e)return t;null==t&&(t={}),null==r&&(r=Object.getOwnPropertyNames(e));for(var n=0,a=r;n<a.length;n++){var i=a[n];e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}return t}}),Object.defineProperty(e.prototype,"createSection",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.createElement("div",{className:e})}}),Object.defineProperty(e.prototype,"renderSections",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=[];this.processElement(e);for(var r=this.splitBySection(e.children),n=null,a=0,i=r.length;a<i;a++){this.currentFootnoteIds=[];var o=r[a],s=o.sectProps||e.props,l=this.createSection(this.className+"-centent-body",s);this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,n!=s,l);var u=this.createElement("div");this.renderElements(o.elements,u),l.appendChild(u),this.options.renderFootnotes&&this.renderNotes(this.currentFootnoteIds,this.footnoteMap,l),this.options.renderEndnotes&&a==i-1&&this.renderNotes(this.currentEndnoteIds,this.endnoteMap,l),this.options.renderFooters&&this.renderHeaderFooter(s.footerRefs,s,t.length,n!=s,l),t.push(l),n=s}return t}}),Object.defineProperty(e.prototype,"renderHeaderFooter",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n,a){var i,o;if(e){var s=null!==(o=null!==(i=t.titlePage&&n?e.find((function(e){return"first"==e.type})):null)&&void 0!==i?i:r%2==1?e.find((function(e){return"even"==e.type})):null)&&void 0!==o?o:e.find((function(e){return"default"==e.type})),l=s&&this.document.findPartByRelId(s.id,this.document.documentPart);l&&(this.currentPart=l,this.usedHederFooterParts.includes(l.path)||(this.processElement(l.rootElement),this.usedHederFooterParts.push(l.path)),this.renderElements([l.rootElement],a),this.currentPart=null)}}}),Object.defineProperty(e.prototype,"isPageBreakElement",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return e.type==K.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}}),Object.defineProperty(e.prototype,"splitBySection",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t,r=this,n={sectProps:null,elements:[]},a=[n],o=0,s=e;o<s.length;o++){var l=s[o];if(l.type==K.Paragraph){var u=this.findStyle(l.styleName);null!==(t=null==u?void 0:u.paragraphProps)&&void 0!==t&&t.pageBreakBefore&&(n.sectProps=f,n={sectProps:null,elements:[]},a.push(n))}if(n.elements.push(l),l.type==K.Paragraph){var c=l,f=c.sectionProps,d=-1,h=-1;if(this.options.breakPages&&c.children&&(d=c.children.findIndex((function(e){var t,n;return-1!=(h=null!==(n=null===(t=e.children)||void 0===t?void 0:t.findIndex(r.isPageBreakElement.bind(r)))&&void 0!==n?n:-1)}))),(f||-1!=d)&&(n.sectProps=f,n={sectProps:null,elements:[]},a.push(n)),-1!=d){var p=c.children[d],b=h<p.children.length-1;if(d<c.children.length-1||b){var m=l.children,g=i(i({},l),{children:m.slice(d)});if(l.children=m.slice(0,d),n.elements.push(g),b){var v=p.children,y=i(i({},p),{children:v.slice(0,h)});l.children.push(y),p.children=v.slice(h)}}}}}for(var w=null,_=a.length-1;_>=0;_--)null==a[_].sectProps?a[_].sectProps=w:w=a[_].sectProps;return a}}),Object.defineProperty(e.prototype,"renderWrapper",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.createElement("div",{className:"".concat(this.className,"-wrapper")},e)}}),Object.defineProperty(e.prototype,"renderDefaultStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this.className;return Ge("\n.".concat(e,"-wrapper { background: gray; padding: 30px; padding-bottom: 0px; display: flex; flex-flow: column; align-items: center; } \n.").concat(e,"-wrapper>section.").concat(e," { background: white; box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); margin-bottom: 30px; }\n.").concat(e," { color: black; }\nsection.").concat(e," { box-sizing: border-box; display: flex; flex-flow: column nowrap; position: relative; overflow: hidden; }\nsection.").concat(e,">article { margin-bottom: auto; }\n.").concat(e," table { border-collapse: collapse; }\n.").concat(e," table td, .").concat(e," table th { vertical-align: top; }\n.").concat(e," p { margin: 0pt; min-height: 1em; }\n.").concat(e," span { white-space: pre-wrap; overflow-wrap: break-word; }\n.").concat(e," a { color: inherit; text-decoration: inherit; }\n"))}}),Object.defineProperty(e.prototype,"renderNotes",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){var n=e.map((function(e){return t[e]})).filter((function(e){return e}));if(n.length>0){var a=this.createElement("ol",null,this.renderElements(n));r.appendChild(a)}}}),Object.defineProperty(e.prototype,"renderElement",{enumerable:!1,configurable:!0,writable:!0,value:function(e){switch(e.type){case K.Paragraph:return this.renderParagraph(e);case K.BookmarkStart:return this.renderBookmarkStart(e);case K.BookmarkEnd:return null;case K.Run:return this.renderRun(e);case K.Table:return this.renderTable(e);case K.Row:return this.renderTableRow(e);case K.Cell:return this.renderTableCell(e);case K.Hyperlink:return this.renderHyperlink(e);case K.Drawing:return this.renderDrawing(e);case K.Image:return this.renderImage(e);case K.Text:return this.renderText(e);case K.Tab:return this.renderTab(e);case K.Symbol:return this.renderSymbol(e);case K.Break:return this.renderBreak(e);case K.Footer:return this.renderContainer(e,"footer");case K.Header:return this.renderContainer(e,"header");case K.Footnote:case K.Endnote:return this.renderContainer(e,"li");case K.FootnoteReference:return this.renderFootnoteReference(e);case K.EndnoteReference:return this.renderEndnoteReference(e);case K.NoBreakHyphen:return this.createElement("wbr")}return null}}),Object.defineProperty(e.prototype,"renderChildren",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.renderElements(e.children,t)}}),Object.defineProperty(e.prototype,"renderElements",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){var r=this;if(null==e)return null;var n=e.map((function(e){return r.renderElement(e)})).filter((function(e){return null!=e}));return t&&Xe(t,n),n}}),Object.defineProperty(e.prototype,"renderContainer",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return this.createElement(t,null,this.renderChildren(e))}}),Object.defineProperty(e.prototype,"renderParagraph",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n,a,i=this.createElement("p"),o=this.findStyle(e.styleName);null!==(t=e.tabs)&&void 0!==t||(e.tabs=null===(r=null==o?void 0:o.paragraphProps)||void 0===r?void 0:r.tabs),this.renderClass(e,i),this.renderChildren(e,i),this.renderStyleValues(e.cssStyle,i),this.renderCommonProperties(i.style,e);var s=null!==(n=e.numbering)&&void 0!==n?n:null===(a=null==o?void 0:o.paragraphProps)||void 0===a?void 0:a.numbering;if(s){if(this.domNumberings[s.id]&&this.domNumberings[s.id][s.level]){var l=this.domNumberings[s.id][s.level];if(i.firstChild&&i.firstChild.innerHTML)i.firstChild.innerHTML=this.numLevelTextToContent(l)+i.firstChild.innerHTML;else{var u=this.createElement("span");u.innerHTML=this.numLevelTextToContent(l),i.appendChild(u)}}i.classList.add(this.numberingClass(s.id,s.level))}return i}}),Object.defineProperty(e.prototype,"renderRunProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){this.renderCommonProperties(e,t)}}),Object.defineProperty(e.prototype,"renderCommonProperties",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}}),Object.defineProperty(e.prototype,"renderHyperlink",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.createElement("a");return this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.href&&(t.href=e.href),t}}),Object.defineProperty(e.prototype,"renderDrawing",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this.createElement("p");return r.style.display="inline-block",e.children&&"image"!==(null===(t=e.children[0])||void 0===t?void 0:t.type)&&(r.style.position="relative",r.style.textIndent="0px"),this.renderChildren(e,r),this.renderStyleValues(e.cssStyle,r),r}}),Object.defineProperty(e.prototype,"renderImage",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r,n=this.createElement("img");!e.cssStyle["max-width"]&&(e.cssStyle["max-width"]="100%"),e.cssStyle.width&&(e.cssStyle.width=2*parseFloat(e.cssStyle.width)+"pt"),e.cssStyle.height&&(e.cssStyle.height=2*parseFloat(e.cssStyle.height)+"pt");var a="";(null===(r=null===(t=e.parent)||void 0===t?void 0:t.parent)||void 0===r?void 0:r.parent)&&e.parent.parent.parent.cssStyle&&(a=e.parent.parent.parent.cssStyle["text-align"]),"right"==a&&(e.cssStyle.float="right",e.cssStyle.height.replace(/pt$/,"px")),"center"==a&&(e.cssStyle.display="block",e.cssStyle["margin-left"]="auto",e.cssStyle["margin-right"]="auto"),this.renderStyleValues(e.cssStyle,n);var i=this;return i.renderImageCount++,n.setAttribute("data-tp-src",e.src),this.document&&this.document.loadDocumentImage(e.src,this.currentPart).then((function(t){i.ep2.emit("renderImage",{status:"ok",src:t,rId:e.src}),n.parentNode.style.width="100%",n.parentNode.style.height=null,n.parentNode.style.display="inline-block",n.src=t})),n}}),Object.defineProperty(e.prototype,"renderText",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return this.htmlDocument.createTextNode(e.text)}}),Object.defineProperty(e.prototype,"renderBreak",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return"textWrapping"==e.break?this.createElement("br"):null}}),Object.defineProperty(e.prototype,"renderSymbol",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML="&#x".concat(e.char,";"),t}}),Object.defineProperty(e.prototype,"renderFootnoteReference",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent="".concat(this.currentFootnoteIds.length),t}}),Object.defineProperty(e.prototype,"renderEndnoteReference",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent="".concat(this.currentEndnoteIds.length),t}}),Object.defineProperty(e.prototype,"renderTab",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this.createElement("span");if(r.innerHTML="&emsp;",this.options.experimental){r.className=this.tabStopClass();var n=null===(t=function(e,t){for(var r=e.parent;null!=r&&r.type!=t;)r=r.parent;return r}(e,K.Paragraph))||void 0===t?void 0:t.tabs;this.currentTabs.push({stops:n,span:r})}return r}}),Object.defineProperty(e.prototype,"renderBookmarkStart",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.createElement("span");return t.id=e.name,t}}),Object.defineProperty(e.prototype,"renderRun",{enumerable:!1,configurable:!0,writable:!0,value:function(e){if(e.fieldRun)return null;var t=this.createElement("span");if(e.id&&(t.id=e.id),this.renderClass(e,t),this.renderStyleValues(e.cssStyle,t),e.verticalAlign){var r=this.createElement(e.verticalAlign);this.renderChildren(e,r),t.appendChild(r)}else this.renderChildren(e,t);return t}}),Object.defineProperty(e.prototype,"renderTable",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.createElement("table");return this.tableCellPositions.push(this.currentCellPosition),this.tableVerticalMerges.push(this.currentVerticalMerge),this.currentVerticalMerge={},this.currentCellPosition={col:0,row:0},e.columns&&t.appendChild(this.renderTableColumns(e.columns)),!e.cssStyle["border-collapse"]&&(e.cssStyle["border-collapse"]="collapse"),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}}),Object.defineProperty(e.prototype,"renderTableColumns",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=this.createElement("colgroup"),r=0,n=e;r<n.length;r++){var a=n[r],i=this.createElement("col");a.width&&(i.style.width=a.width),t.appendChild(i)}return t}}),Object.defineProperty(e.prototype,"renderTableRow",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.createElement("tr");return this.currentCellPosition.col=0,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentCellPosition.row++,t}}),Object.defineProperty(e.prototype,"renderTableCell",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t=this.createElement("td");if(e.verticalMerge){var r=this.currentCellPosition.col;"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t,t.rowSpan=1):this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none")}return this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col++,t}}),Object.defineProperty(e.prototype,"renderStyleValues",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e&&Object.keys(e).forEach((function(r){t.style[r]="string"==typeof e[r]?e[r].replace(/pt/g,"px"):e[r]}))}}),Object.defineProperty(e.prototype,"renderClass",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}}),Object.defineProperty(e.prototype,"findStyle",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t;return e&&(null===(t=this.styleMap)||void 0===t?void 0:t[e])}}),Object.defineProperty(e.prototype,"numberingClass",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}}),Object.defineProperty(e.prototype,"tabStopClass",{enumerable:!1,configurable:!0,writable:!0,value:function(){return"".concat(this.className,"-tab-stop")}}),Object.defineProperty(e.prototype,"styleToString",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r){void 0===r&&(r=null);var n="".concat(e," {\r\n");for(var a in t)n+="  ".concat(a,": ").concat(t[a],";\r\n");return r&&(n+=r),n+"}\r\n"}}),Object.defineProperty(e.prototype,"styleInlineToString",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){void 0===t&&(t=null);var r='style="';for(var n in!e["font-style"]&&(e["font-style"]="normal"),e)r+="".concat(n,": ").concat(e[n],"; ");return t&&(r+=t),r+'"'}}),Object.defineProperty(e.prototype,"numberingCounter",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}}),Object.defineProperty(e.prototype,"levelTextToContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e,t,r,n){var a,i=this,o=e.replace(/%\d*/g,(function(e){var t=parseInt(e.substring(1),10)-1;return'"counter('.concat(i.numberingCounter(r,t),", ").concat(n,')"')}));return'"'.concat(o).concat(null!==(a={tab:"\\9",space:"\\a0"}[numberingData.suff])&&void 0!==a?a:"",'"')}}),Object.defineProperty(e.prototype,"numLevelTextToContent",{enumerable:!1,configurable:!0,writable:!0,value:function(e){var t,r=this,n={chineseCounting:["","","","","","","","","","",""],decimalEnclosedCircleChinese:["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],upperLetter:["","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],lowerLetter:["","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],test1:[" ","","","","","","","","","","","","","","","","","","","","","","","","","",""],test2:[" ","","","","","","","","","","","","","","","","","","","","","","","","","",""],test3:[" ","","","","","","","","","","","","","","","","","","","",""],test4:[" ","","","","","","","","","",""],test5:[" ","","","","","","","","","",""],upperRoman:[" ","","","","","","","","","","","",""],lowerRoman:["","","","","","","","","","","","",""]},a=e.levelText.replace(/%\d*/g,(function(t){var a=parseInt(t.substring(1),10)-1,i=1;return a==e.level?(i=e.count,r.domNumberings[e.id][a].pCount=i,r.domNumberings[e.id][a+1]&&(r.domNumberings[e.id][a+1].count=1),e.count++):r.domNumberings[e.id]&&r.domNumberings[e.id][a]&&(0==(i=r.domNumberings[e.id][a].count-1)&&(i=1)),n[e.format]&&(i=n[e.format][i]),"".concat(i)}));return"bullet"==e.format&&(a="<em "+this.styleInlineToString(e.rStyle)+'">'+e.levelText+"</em>"),"".concat(a).concat(null!==(t={tab:"&emsp;",space:"&nbsp;"}[e.suff])&&void 0!==t?t:"")}}),Object.defineProperty(e.prototype,"numFormatToCssValue",{enumerable:!1,configurable:!0,writable:!0,value:function(e){return{none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman"}[e]||e}}),Object.defineProperty(e.prototype,"refreshTabStops",{enumerable:!1,configurable:!0,writable:!0,value:function(){var e=this;!this.options.experimental||(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout((function(){for(var t=function(e){void 0===e&&(e=document.body);var t=document.createElement("div");t.style.width="100pt",e.appendChild(t);var r=100/t.offsetWidth;return e.removeChild(t),r}(),r=0,n=e.currentTabs;r<n.length;r++){var a=n[r];Ne(a.span,a.stops,e.defaultTabSize,t)}}),500))}}),e}();function Ve(e,t,r){void 0===t&&(t=void 0),void 0===r&&(r=void 0);var n=Object.assign(document.createElement(e),t);return r&&Xe(n,r),n}function Xe(e,t){t.forEach((function(t){return e.appendChild(t)}))}function Ge(e){return Ve("style",{innerHTML:e})}var Ke={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!0,className:"tp-importword",inWrapper:!1,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!1,renderFooters:!1,renderFootnotes:!1,renderEndnotes:!1,useBase64URL:!1};var Ye=Promise,qe=tinymce.util.Tools.resolve("tinymce.Env"),Je=tinymce.util.Tools.resolve("tinymce.util.Delay"),$e=null,Qe=null;function et(e,t){!function(e,t){var r=e[0],n=new FileReader;n.onload=function(e){var r=e.target.result;t(r)},n.readAsArrayBuffer(r)}(t,(function(t){(function(e,t){void 0===t&&(t=null);var r=i(i({},Ke),t),n=window.document.createElement("div"),a=new Ze(window.document);return new Promise((function(t){we.load(e,new Oe(r),r).then((function(e){a.render(e,n,null,r).then((function(){t({html:n.innerHTML})}))}))}))})(t).then((function(t){!function(e,t){var r=t.html;if("function"!=typeof $e){e.insertContent(r.replace(/\s\s\s/gi,"&nbsp; "));try{top.tinymce.activeEditor.notificationManager.close()}catch(n){try{e.notificationManager.close()}catch(a){}}e.notificationManager.open({text:"Import to Word succeeded",type:"success",timeout:2e3})}}(e,t)}))}))}var tt=function(e,t){(function(e){$e=e.getParam("tp_importword_filter",void 0,"function"),Qe=e.getParam("tp_importword_handler",void 0,"function")})(e),function(e){return new Ye((function(t){var r=document.createElement("input");r.type="file",r.style.position="fixed",r.style.left="0",r.style.top="0",r.style.opacity="0.001",document.body.appendChild(r),r.addEventListener("change",(function(e){t(Array.prototype.slice.call(e.target.files))})),e.on("focusin remove",(function n(a){var i=function(e){try{t(Array.prototype.slice.call(e.target?e.target.files:[]))}catch(n){}r.parentNode.removeChild(r)};qe.os.isAndroid()&&"remove"!==a.type?Je.setEditorTimeout(e,i,0):i(),e.off("focusin remove",n)})),r.click()}))}(e).then((function(t){if("function"==typeof Qe){Qe(e,t,(function(t){et(e,t)}))}else{var r=t[0].name||"defule.docx";"docx"==r.substr(r.lastIndexOf(".")+1)?(e.notificationManager.open({text:"Converting...",type:"info",closeButton:!1}),et(e,t)):e.notificationManager.open({text:"Currently only supports docx file format, if it is doc format, please convert it to docx",type:"warning"})}}))},rt={name:"Importword",registryName:"tpImportword",title:"import word document",repo:"https://github.com/Five-great/tinymce-plugin/tp-importword",icon:'<svg t="1604625110140" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="14669" width="24" height="24"><path d="M546.21184 76.9024a30.72 30.72 0 0 1 21.70368 8.9856l248.22784 247.75168a30.72 30.72 0 0 1 9.0112 21.74464v163.3792a10.24 10.24 0 0 1-10.24 10.24h-51.712a10.24 10.24 0 0 1-10.24-10.24v-109.568h-232.448a30.72 30.72 0 0 1-30.72-30.72v-229.888h-330.752v726.016h438.272a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-478.72a30.72 30.72 0 0 1-30.72-30.72V107.6224a30.72 30.72 0 0 1 30.72-30.72h427.61728z m197.84192 531.712l-171.40736 141.43488a30.72 30.72 0 0 0 0 47.39072l171.40736 141.43488a10.24 10.24 0 0 0 14.2848-1.2288l36.01408-41.95328a10.24 10.24 0 0 0-1.6128-14.848l-94.68416-71.26016h232.43264a10.24 10.24 0 0 0 10.24-10.24v-51.2a10.24 10.24 0 0 0-10.24-10.24h-232.448l94.69952-71.26016a10.24 10.24 0 0 0 1.6128-14.848l-36.01408-41.95328a10.24 10.24 0 0 0-14.2848-1.2288z m-323.8912-224.512a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-190.464a10.24 10.24 0 0 1-10.24-10.24v-51.2a10.24 10.24 0 0 1 10.24-10.24h190.464z m141.312-207.36v155.648a5.12 5.12 0 0 0 5.12 5.12h155.648l-160.768-160.768zM276.48 542.72l37.888 171.008 45.056-171.008h59.904l43.52 173.568 38.4-173.568h50.688l-60.928 248.832H437.76l-49.664-185.856-49.664 185.856H284.16L225.28 542.72h51.2z m143.68768-292.2496a10.24 10.24 0 0 1 10.24 10.24v51.2a10.24 10.24 0 0 1-10.24 10.24h-190.464a10.24 10.24 0 0 1-10.24-10.24v-51.2a10.24 10.24 0 0 1 10.24-10.24h190.464z" ></path></svg>'};(function(e){tinymce.PluginManager.add(e.registryName,(function(t,r){return function(e,t){tinymce.util.XHR.send({url:e.editorManager.PluginManager.urls[t.registryName]+"/langs/"+(e.settings.language||"en")+".json",async:!1,dataType:"json",success:function(t){try{e.tp$.I18n.add(e.settings.language,JSON.parse(t))}catch(r){}}})}(t,e),function(e,t){e.ui.registry.getAll().icons[t.registryName]||e.ui.registry.addIcon(t.registryName,t.icon),e.ui.registry.addButton(t.registryName,{icon:t.registryName,tooltip:t.title,onAction:function(){return tt(e)}}),e.ui.registry.addMenuItem(t.registryName,{icon:t.registryName,text:t.title,onAction:function(){return tt(e)}})}(t,e),function(e,t){e.addCommand("mce".concat(t.registryName.substring(0,1).toUpperCase()+t.registryName.substring(1)),(function(){tt(e)}))}(t,e),{getMetadata:function(){return{name:e.name,url:e.repo}}}}))})(rt)}()}}}))}();