選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

13 行
196KB

  1. !function(){function e(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var t,r={},n=Object.prototype,a=n.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",l=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(t){c=function(e,t,r){return e[t]=r}}function h(e,t,r,n){var a=t&&t.prototype instanceof b?t:b,o=Object.create(a.prototype),s=new O(n||[]);return i(o,"_invoke",{value:T(e,r,s)}),o}function d(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=h;var f="suspendedStart",p="suspendedYield",m="executing",v="completed",g={};function b(){}function k(){}function _(){}var w={};c(w,s,(function(){return this}));var x=Object.getPrototypeOf,S=x&&x(x(B([])));S&&S!==n&&a.call(S,s)&&(w=S);var A=_.prototype=b.prototype=Object.create(w);function P(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(n,i,o,s){var l=d(e[n],e,i);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==y(c)&&a.call(c,"__await")?t.resolve(c.__await).then((function(e){r("next",e,o,s)}),(function(e){r("throw",e,o,s)})):t.resolve(c).then((function(e){u.value=e,o(u)}),(function(e){return r("throw",e,o,s)}))}s(l.arg)}var n;i(this,"_invoke",{value:function(e,a){function i(){return new t((function(t,n){r(e,a,t,n)}))}return n=n?n.then(i,i):i()}})}function T(e,r,n){var a=f;return function(i,o){if(a===m)throw Error("Generator is already running");if(a===v){if("throw"===i)throw o;return{value:t,done:!0}}for(n.method=i,n.arg=o;;){var s=n.delegate;if(s){var l=E(s,n);if(l){if(l===g)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(a===f)throw a=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);a=m;var u=d(e,r,n);if("normal"===u.type){if(a=n.done?v:p,u.arg===g)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(a=v,n.method="throw",n.arg=u.arg)}}}function E(e,r){var n=r.method,a=e.iterator[n];if(a===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,E(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=d(a,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var o=i.arg;return o?o.done?(r[e.resultName]=o.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function D(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(D,this),this.reset(!0)}function B(e){if(e||""===e){var r=e[s];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function r(){for(;++n<e.length;)if(a.call(e,n))return r.value=e[n],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(y(e)+" is not iterable")}return k.prototype=_,i(A,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:k,configurable:!0}),k.displayName=c(_,u,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===k||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,c(e,u,"GeneratorFunction")),e.prototype=Object.create(A),e},r.awrap=function(e){return{__await:e}},P(C.prototype),c(C.prototype,l,(function(){return this})),r.AsyncIterator=C,r.async=function(e,t,n,a,i){void 0===i&&(i=Promise);var o=new C(h(e,t,n,a),i);return r.isGeneratorFunction(t)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},P(A),c(A,u,"Generator"),c(A,s,(function(){return this})),c(A,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=B,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&a.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,a){return s.type="throw",s.arg=e,r.next=n,a&&(r.method="next",r.arg=t),!!a}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&a.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var a=n.arg;N(r)}return a}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:B(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}function t(e,t,r,n,a,i,o){try{var s=e[i](o),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,a)}function r(e){return function(){var r=this,n=arguments;return new Promise((function(a,i){var o=e.apply(r,n);function s(e){t(o,a,i,s,l,"next",e)}function l(e){t(o,a,i,s,l,"throw",e)}s(void 0)}))}}function n(e,t,r){return t=i(t),function(e,t){if(t&&("object"==y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,a()?Reflect.construct(t,r||[],i(e).constructor):t.apply(e,r))}function a(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(a=function(){return!!e})()}function i(e){return i=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i(e)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function l(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=h(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,o=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return o=e.done,e},e:function(e){s=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(s)throw i}}}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,a,i,o,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,a=e}finally{try{if(!l&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return s}}(e,t)||h(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){if(e){if("string"==typeof e)return d(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,v(n.key),n)}}function m(e,t,r){return t&&p(e.prototype,t),r&&p(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e){var t=function(e,t){if("object"!=y(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=y(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==y(t)?t:t+""}function y(e){return y="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},y(e)}System.register(["./uploadAction-legacy.08b88785.js","./index-legacy.a71edc95.js"],(function(t,a){"use strict";var i,s,h,d,p,v,g;return{setters:[function(e){i=e.d},function(e){s=e.d,h=e.r,d=e.l,p=e.c,v=e.u,g=e.o}],execute:function(){var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},b={exports:{}};function k(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 _,w={exports:{}};
  2. /*!
  3. JSZip v3.10.1 - A JavaScript class for generating and reading zip files
  4. <http://stuartk.com/jszip>
  5. (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
  6. Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
  7. JSZip uses the library pako released under the MIT license :
  8. https://github.com/nodeca/pako/blob/main/LICENSE
  9. */function x(){return _||(_=1,function(e,t){e.exports=function e(t,r,n){function a(o,s){if(!r[o]){if(!t[o]){if(!s&&k)return k(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=k,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=[],h=0,d=e.length,f=d,p="string"!==n.getTypeOf(e);h<e.length;)f=d-h,a=p?(t=e[h++],r=h<d?e[h++]:0,h<d?e[h++]:0):(t=e.charCodeAt(h++),r=h<d?e.charCodeAt(h++):0,h<d?e.charCodeAt(h++):0),o=t>>2,s=(3&t)<<4|r>>4,l=1<f?(15&r)<<2|a>>6:64,u=2<f?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,h="data:";if(e.substr(0,h.length)===h)throw new Error("Invalid base64 input, it looks like a data url.");var d,f=3*(e=e.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(e.charAt(e.length-1)===i.charAt(64)&&f--,e.charAt(e.length-2)===i.charAt(64)&&f--,f%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=a.uint8array?new Uint8Array(0|f):new Array(0|f);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(){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~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~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(e,t,r){var n=null;n="undefined"!=typeof Promise?Promise:e("lie"),t.exports={Promise:n}},{lie:37}],7:[function(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Uint32Array,a=e("pako"),i=e("./utils"),o=e("./stream/GenericWorker"),s=n?"uint8array":"array";function l(e,t){o.call(this,"FlateWorker/"+e),this._pako=null,this._pakoAction=e,this._pakoOptions=t,this.meta={}}r.magic="\b\0",i.inherits(l,o),l.prototype.processChunk=function(e){this.meta=e.meta,null===this._pako&&this._createPako(),this._pako.push(i.transformTo(s,e.data),!1)},l.prototype.flush=function(){o.prototype.flush.call(this),null===this._pako&&this._createPako(),this._pako.push([],!0)},l.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this._pako=null},l.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var e=this;this._pako.onData=function(t){e.push({data:t,meta:e.meta})}},r.compressWorker=function(e){return new l("Deflate",e)},r.uncompressWorker=function(){return new l("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 h,d,f=e.file,p=e.compression,m=c!==s.utf8encode,v=i.transformTo("string",c(f.name)),y=i.transformTo("string",s.utf8encode(f.name)),g=f.comment,b=i.transformTo("string",c(g)),k=i.transformTo("string",s.utf8encode(g)),_=y.length!==f.name.length,w=k.length!==g.length,x="",S="",A="",P=f.dir,C=f.date,T={crc32:0,compressedSize:0,uncompressedSize:0};t&&!r||(T.crc32=e.crc32,T.compressedSize=e.compressedSize,T.uncompressedSize=e.uncompressedSize);var E=0;t&&(E|=8),m||!_&&!w||(E|=2048);var D=0,N=0;P&&(D|=16),"UNIX"===o?(N=798,D|=function(e,t){var r=e;return e||(r=t?16893:33204),(65535&r)<<16}(f.unixPermissions,P)):(N=20,D|=function(e){return 63&(e||0)}(f.dosPermissions)),h=C.getUTCHours(),h<<=6,h|=C.getUTCMinutes(),h<<=5,h|=C.getUTCSeconds()/2,d=C.getUTCFullYear()-1980,d<<=4,d|=C.getUTCMonth()+1,d<<=5,d|=C.getUTCDate(),_&&(S=n(1,1)+n(l(v),4)+y,x+="up"+n(S.length,2)+S),w&&(A=n(1,1)+n(l(b),4)+k,x+="uc"+n(A.length,2)+A);var O="";return O+="\n\0",O+=n(E,2),O+=p.magic,O+=n(h,2),O+=n(d,2),O+=n(T.crc32,4),O+=n(T.compressedSize,4),O+=n(T.uncompressedSize,4),O+=n(v.length,2),O+=n(x.length,2),{fileRecord:u.LOCAL_FILE_HEADER+O+v+x,dirRecord:u.CENTRAL_FILE_HEADER+n(N,2)+O+n(b.length,2)+"\0\0\0\0"+n(D,4)+n(a,4)+v+x+b}}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=this.streamFiles&&!e.file.dir,r=a(e,t,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),t)this.push({data:function(e){return u.DATA_DESCRIPTOR+n(e.crc32,4)+n(e.compressedSize,4)+n(e.uncompressedSize,4)}(e),meta:{percent:100}});else for(this.push({data:r.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=this.bytesWritten-e,a=function(e,t,r,a,o){var s=i.transformTo("string",o(a));return u.CENTRAL_DIRECTORY_END+"\0\0\0\0"+n(e,2)+n(e,2)+n(t,4)+n(r,4)+n(s.length,2)+s}(this.dirRecords.length,r,e,this.zipComment,this.encodeFileName);this.push({data:a,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(e){}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(e){i.error(e)}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.10.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(e,t,r){t.exports={isNode:"undefined"!=typeof Buffer,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=m(e)),s.createFolders&&(n=p(e))&&v.call(this,n,!0);var h="string"===a&&!1===s.binary&&!1===s.base64;r&&void 0!==r.binary||(s.binary=!h),(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 y=null;y=t instanceof u||t instanceof o?t:d.isNode&&d.isStream(t)?new f(e,t):i.prepareContent(e,t,s.binary,s.optimizedBinaryString,s.base64);var g=new c(e,y,s);this.files[e]=g}var a=e("./utf8"),i=e("./utils"),o=e("./stream/GenericWorker"),s=e("./stream/StreamHelper"),l=e("./defaults"),u=e("./compressedObject"),c=e("./zipObject"),h=e("./generate"),d=e("./nodejsUtils"),f=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):""},m=function(e){return"/"!==e.slice(-1)&&(e+="/"),e},v=function(e,t){return t=void 0!==t?t:l.createFolders,e=m(e),this.files[e]||n.call(this,e,null,{dir:!0,createFolders:t}),this.files[e]};function y(e){return"[object RegExp]"===Object.prototype.toString.call(e)}var g={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(y(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(y(e))return this.filter((function(t,r){return r.dir&&e.test(t)}));var t=this.root+e,r=v.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(){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=h.generateWorker(this,r,n)}catch(e){(t=new o("error")).error(e)}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=g},{"./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(){},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(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var e=this.readInt(4);return new Date(Date.UTC(1980+(e>>25&127),(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(31&e)<<1))}},t.exports=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)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,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(e){}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(e){a(e)}i=[]})).resume()}))}function h(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(e){this._worker=new i("error"),this._worker.error(e)}}h.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=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(e,t,r){if(r.base64=!0,r.array=!0,r.string=!0,r.arraybuffer="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array,r.nodebuffer="undefined"!=typeof Buffer,r.uint8array="undefined"!=typeof Uint8Array,"undefined"==typeof ArrayBuffer)r.blob=!1;else{var n=new ArrayBuffer(0);try{r.blob=0===new Blob([n],{type:"application/zip"}).size}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(n),r.blob=0===a.getBlob("application/zip").size}catch(e){r.blob=!1}}}try{r.nodestream=!!e("readable-stream").Readable}catch(e){r.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(e,t,r){var n=e("./support"),a=e("./base64"),i=e("./nodejsUtils"),o=e("./external");function s(e){return e}function l(e,t){for(var r=0;r<e.length;++r)t[r]=255&e.charCodeAt(r);return t}e("setimmediate"),r.newBlob=function(t,n){r.checkSupport("blob");try{return new Blob([t],{type:n})}catch(e){try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(t),a.getBlob(n)}catch(e){throw new Error("Bug : can't construct the Blob.")}}};var u={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 n.uint8array&&1===String.fromCharCode.apply(null,new Uint8Array(1)).length}catch(e){return!1}}(),nodebuffer:function(){try{return n.nodebuffer&&1===String.fromCharCode.apply(null,i.allocBuffer(1)).length}catch(e){return!1}}()}};function c(e){var t=65536,n=r.getTypeOf(e),a=!0;if("uint8array"===n?a=u.applyCanBeUsed.uint8array:"nodebuffer"===n&&(a=u.applyCanBeUsed.nodebuffer),a)for(;1<t;)try{return u.stringifyByChunk(e,n,t)}catch(e){t=Math.floor(t/2)}return u.stringifyByChar(e)}function h(e,t){for(var r=0;r<e.length;r++)t[r]=e[r];return t}r.applyFromCharCode=c;var d={};d.string={string:s,array:function(e){return l(e,new Array(e.length))},arraybuffer:function(e){return d.string.uint8array(e).buffer},uint8array:function(e){return l(e,new Uint8Array(e.length))},nodebuffer:function(e){return l(e,i.allocBuffer(e.length))}},d.array={string:c,array:s,arraybuffer:function(e){return new Uint8Array(e).buffer},uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(e)}},d.arraybuffer={string:function(e){return c(new Uint8Array(e))},array:function(e){return h(new Uint8Array(e),new Array(e.byteLength))},arraybuffer:s,uint8array:function(e){return new Uint8Array(e)},nodebuffer:function(e){return i.newBufferFrom(new Uint8Array(e))}},d.uint8array={string:c,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return e.buffer},uint8array:s,nodebuffer:function(e){return i.newBufferFrom(e)}},d.nodebuffer={string:c,array:function(e){return h(e,new Array(e.length))},arraybuffer:function(e){return d.nodebuffer.uint8array(e).buffer},uint8array:function(e){return h(e,new Uint8Array(e.length))},nodebuffer:s},r.transformTo=function(e,t){if(t=t||"",!e)return t;r.checkSupport(e);var n=r.getTypeOf(t);return d[n][e](t)},r.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("/")},r.getTypeOf=function(e){return"string"==typeof e?"string":"[object Array]"===Object.prototype.toString.call(e)?"array":n.nodebuffer&&i.isBuffer(e)?"nodebuffer":n.uint8array&&e instanceof Uint8Array?"uint8array":n.arraybuffer&&e instanceof ArrayBuffer?"arraybuffer":void 0},r.checkSupport=function(e){if(!n[e.toLowerCase()])throw new Error(e+" is not supported by this platform")},r.MAX_VALUE_16BITS=65535,r.MAX_VALUE_32BITS=-1,r.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},r.delay=function(e,t,r){setImmediate((function(){e.apply(r||null,t||[])}))},r.inherits=function(e,t){function r(){}r.prototype=t.prototype,e.prototype=new r},r.extend=function(){var e,t,r={};for(e=0;e<arguments.length;e++)for(t in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],t)&&void 0===r[t]&&(r[t]=arguments[e][t]);return r},r.prepareContent=function(e,t,i,s,u){return o.Promise.resolve(t).then((function(e){return n.blob&&(e instanceof Blob||-1!==["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(e)))&&"undefined"!=typeof FileReader?new o.Promise((function(t,r){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.onerror=function(e){r(e.target.error)},n.readAsArrayBuffer(e)})):e})).then((function(t){var c=r.getTypeOf(t);return c?("arraybuffer"===c?t=r.transformTo("uint8array",t):"string"===c&&(u?t=a.decode(t):i&&!0!==s&&(t=function(e){return l(e,n.uint8array?new Uint8Array(e.length):new Array(e.length))}(t))),t):o.Promise.reject(new Error("Can't read the data of '"+e+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))}))}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(e,t,r){var n=e("./reader/readerFor"),a=e("./utils"),i=e("./signature"),o=e("./zipEntry"),s=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,"./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&~this.bitFlag)},useUTF8:function(){return!(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(Object.prototype.hasOwnProperty.call(l,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(){if(this.extraFields[1]){var e=n(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=e.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=e.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=e.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=e.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(e){(t=new l("error")).error(e)}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.")},h=0;h<u.length;h++)n.prototype[u[h]]=c;t.exports=n},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(e,t,r){(function(e){var r,n,a=e.MutationObserver||e.WebKitMutationObserver;if(a){var i=0,o=new a(c),s=e.document.createTextNode("");o.observe(s,{characterData:!0}),r=function(){s.data=i=++i%2}}else if(e.setImmediate||void 0===e.MessageChannel)r="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,r=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}t.exports=function(e){1!==u.push(e)||n||r()}}).call(this,void 0!==a?a:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],37:[function(e,t,r){var n=e("immediate");function a(){}var i={},o=["REJECTED"],s=["FULFILLED"],l=["PENDING"];function u(e){if("function"!=typeof e)throw new TypeError("resolver must be a function");this.state=l,this.queue=[],this.outcome=void 0,e!==a&&f(this,e)}function c(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 h(e,t,r){n((function(){var n;try{n=t(r)}catch(n){return i.reject(e,n)}n===e?i.reject(e,new TypeError("Cannot resolve promise with itself")):i.resolve(e,n)}))}function d(e){var t=e&&e.then;if(e&&("object"==y(e)||"function"==typeof e)&&"function"==typeof t)return function(){t.apply(e,arguments)}}function f(e,t){var r=!1;function n(t){r||(r=!0,i.reject(e,t))}function a(t){r||(r=!0,i.resolve(e,t))}var o=p((function(){t(a,n)}));"error"===o.status&&n(o.value)}function p(e,t){var r={};try{r.value=e(t),r.status="success"}catch(e){r.status="error",r.value=e}return r}(t.exports=u).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}))}))},u.prototype.catch=function(e){return this.then(null,e)},u.prototype.then=function(e,t){if("function"!=typeof e&&this.state===s||"function"!=typeof t&&this.state===o)return this;var r=new this.constructor(a);return this.state!==l?h(r,this.state===s?e:t,this.outcome):this.queue.push(new c(r,e,t)),r},c.prototype.callFulfilled=function(e){i.resolve(this.promise,e)},c.prototype.otherCallFulfilled=function(e){h(this.promise,this.onFulfilled,e)},c.prototype.callRejected=function(e){i.reject(this.promise,e)},c.prototype.otherCallRejected=function(e){h(this.promise,this.onRejected,e)},i.resolve=function(e,t){var r=p(d,t);if("error"===r.status)return i.reject(e,r.value);var n=r.value;if(n)f(e,n);else{e.state=s,e.outcome=t;for(var a=-1,o=e.queue.length;++a<o;)e.queue[a].callFulfilled(t)}return e},i.reject=function(e,t){e.state=o,e.outcome=t;for(var r=-1,n=e.queue.length;++r<n;)e.queue[r].callRejected(t);return e},u.resolve=function(e){return e instanceof this?e:i.resolve(new this(a),e)},u.reject=function(e){var t=new this(a);return i.reject(t,e)},u.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 o=new Array(r),s=0,l=-1,u=new this(a);++l<r;)c(e[l],l);return u;function c(e,a){t.resolve(e).then((function(e){o[a]=e,++s!==r||n||(n=!0,i.resolve(u,o))}),(function(e){n||(n=!0,i.reject(u,e))}))}},u.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=e.length,n=!1;if(!r)return this.resolve([]);for(var o,s=-1,l=new this(a);++s<r;)o=e[s],t.resolve(o).then((function(e){n||(n=!0,i.resolve(l,e))}),(function(e){n||(n=!0,i.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,h=0,d=8;function f(e){if(!(this instanceof f))return new f(e);this.options=a.assign({level:c,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,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 f(t);if(r.push(e,!0),r.err)throw r.msg||o[r.err];return r.result}f.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))},f.prototype.onData=function(e){this.chunks.push(e)},f.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=f,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 h(e){if(!(this instanceof h))return new h(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&&!(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 h(t);if(r.push(e,!0),r.err)throw r.msg||s[r.err];return r.result}h.prototype.push=function(e,t){var r,s,l,u,h,d,f=this.strm,p=this.options.chunkSize,m=this.options.dictionary,v=!1;if(this.ended)return!1;s=t===~~t?t:!0===t?o.Z_FINISH:o.Z_NO_FLUSH,"string"==typeof e?f.input=i.binstring2buf(e):"[object ArrayBuffer]"===c.call(e)?f.input=new Uint8Array(e):f.input=e,f.next_in=0,f.avail_in=f.input.length;do{if(0===f.avail_out&&(f.output=new a.Buf8(p),f.next_out=0,f.avail_out=p),(r=n.inflate(f,o.Z_NO_FLUSH))===o.Z_NEED_DICT&&m&&(d="string"==typeof m?i.string2buf(m):"[object ArrayBuffer]"===c.call(m)?new Uint8Array(m):m,r=n.inflateSetDictionary(this.strm,d)),r===o.Z_BUF_ERROR&&!0===v&&(r=o.Z_OK,v=!1),r!==o.Z_STREAM_END&&r!==o.Z_OK)return this.onEnd(r),!(this.ended=!0);f.next_out&&(0!==f.avail_out&&r!==o.Z_STREAM_END&&(0!==f.avail_in||s!==o.Z_FINISH&&s!==o.Z_SYNC_FLUSH)||("string"===this.options.to?(l=i.utf8border(f.output,f.next_out),u=f.next_out-l,h=i.buf2string(f.output,l),f.next_out=u,f.avail_out=p-u,u&&a.arraySet(f.output,f.output,l,u,0),this.onData(h)):this.onData(a.shrinkBuf(f.output,f.next_out)))),0===f.avail_in&&0===f.avail_out&&(v=!0)}while((0<f.avail_in||0===f.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),!(f.avail_out=0))},h.prototype.onData=function(e){this.chunks.push(e)},h.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=h,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(e,t,r){var n="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;r.assign=function(e){for(var t=Array.prototype.slice.call(arguments,1);t.length;){var r=t.shift();if(r){if("object"!=y(r))throw new TypeError(r+"must be non-object");for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])}}return e},r.shrinkBuf=function(e,t){return e.length===t?e:e.subarray?e.subarray(0,t):(e.length=t,e)};var a={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}},i={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)}};r.setTyped=function(e){e?(r.Buf8=Uint8Array,r.Buf16=Uint16Array,r.Buf32=Int32Array,r.assign(r,a)):(r.Buf8=Array,r.Buf16=Array,r.Buf32=Array,r.assign(r,i))},r.setTyped(n)},{}],42:[function(e,t,r){var n=e("./common"),a=!0,i=!0;try{String.fromCharCode.apply(null,[0])}catch(e){a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(e){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,i=e>>>16&65535,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}},{}],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~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,h=0,d=-2,f=-1,p=4,m=2,v=8,y=9,g=286,b=30,k=19,_=2*g+1,w=15,x=3,S=258,A=S+x+1,P=42,C=113,T=1,E=2,D=3,N=4;function O(e,t){return e.msg=l[t],t}function B(e){return(e<<1)-(4<e?9:0)}function R(e){for(var t=e.length;0<=--t;)e[t]=0}function z(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 I(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,z(e.strm)}function F(e,t){e.pending_buf[e.pending++]=t}function M(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function j(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-A?e.strstart-(e.w_size-A):0,u=e.window,c=e.w_mask,h=e.prev,d=e.strstart+S,f=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]===f&&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=S-(d-i),i=d-S,o<n){if(e.match_start=t,s<=(o=n))break;f=u[i+o-1],p=u[i+o]}}}while((t=h[t&c])>l&&0!=--a);return o<=e.lookahead?o:e.lookahead}function L(e){var t,r,n,i,l,u,c,h,d,f,p=e.w_size;do{if(i=e.window_size-e.lookahead-e.strstart,e.strstart>=p+(p-A)){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,h=e.strstart+e.lookahead,f=void 0,(d=i)<(f=u.avail_in)&&(f=d),r=0===f?0:(u.avail_in-=f,a.arraySet(c,u.input,u.next_in,f,h),1===u.state.wrap?u.adler=o(u.adler,c,f,h):2===u.state.wrap&&(u.adler=s(u.adler,c,f,h)),u.next_in+=f,u.total_in+=f,f),e.lookahead+=r,e.lookahead+e.insert>=x)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+x-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<x)););}while(e.lookahead<A&&0!==e.strm.avail_in)}function U(e,t){for(var r,n;;){if(e.lookahead<A){if(L(e),e.lookahead<A&&t===u)return T;if(0===e.lookahead)break}if(r=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-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-A&&(e.match_length=j(e,r)),e.match_length>=x)if(n=i._tr_tally(e,e.strstart-e.match_start,e.match_length-x),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=x){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-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&&(I(e,!1),0===e.strm.avail_out))return T}return e.insert=e.strstart<x-1?e.strstart:x-1,t===c?(I(e,!0),0===e.strm.avail_out?D:N):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?T:E}function W(e,t){for(var r,n,a;;){if(e.lookahead<A){if(L(e),e.lookahead<A&&t===u)return T;if(0===e.lookahead)break}if(r=0,e.lookahead>=x&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+x-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=x-1,0!==r&&e.prev_length<e.max_lazy_match&&e.strstart-r<=e.w_size-A&&(e.match_length=j(e,r),e.match_length<=5&&(1===e.strategy||e.match_length===x&&4096<e.strstart-e.match_start)&&(e.match_length=x-1)),e.prev_length>=x&&e.match_length<=e.prev_length){for(a=e.strstart+e.lookahead-x,n=i._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-x),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+x-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=x-1,e.strstart++,n&&(I(e,!1),0===e.strm.avail_out))return T}else if(e.match_available){if((n=i._tr_tally(e,0,e.window[e.strstart-1]))&&I(e,!1),e.strstart++,e.lookahead--,0===e.strm.avail_out)return T}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<x-1?e.strstart:x-1,t===c?(I(e,!0),0===e.strm.avail_out?D:N):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?T: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=v,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*b+1)),this.bl_tree=new a.Buf16(2*(2*k+1)),R(this.dyn_ltree),R(this.dyn_dtree),R(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(w+1),this.heap=new a.Buf16(2*g+1),R(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*g+1),R(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=m,(t=e.state).pending=0,t.pending_out=0,t.wrap<0&&(t.wrap=-t.wrap),t.status=t.wrap?P:C,e.adler=2===t.wrap?0:1,t.last_flush=u,i._tr_init(t),h):O(e,d)}function X(e){var t=V(e);return t===h&&function(e){e.window_size=2*e.w_size,R(e.head),e.max_lazy_match=n[e.level].max_lazy,e.good_match=n[e.level].good_length,e.nice_match=n[e.level].nice_length,e.max_chain_length=n[e.level].max_chain,e.strstart=0,e.block_start=0,e.lookahead=0,e.insert=0,e.match_length=e.prev_length=x-1,e.match_available=0,e.ins_h=0}(e.state),t}function G(e,t,r,n,i,o){if(!e)return d;var s=1;if(t===f&&(t=6),n<0?(s=0,n=-n):15<n&&(s=2,n-=16),i<1||y<i||r!==v||n<8||15<n||t<0||9<t||o<0||p<o)return O(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+x-1)/x),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(L(e),0===e.lookahead&&t===u)return T;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,I(e,!1),0===e.strm.avail_out))return T;if(e.strstart-e.block_start>=e.w_size-A&&(I(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(I(e,!0),0===e.strm.avail_out?D:N):(e.strstart>e.block_start&&(I(e,!1),e.strm.avail_out),T)})),new H(4,4,8,4,U),new H(4,5,16,8,U),new H(4,6,32,32,U),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,v,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,h):d},r.deflate=function(e,t){var r,a,o,l;if(!e||!e.state||5<t||t<0)return e?O(e,d):d;if(a=e.state,!e.output||!e.input&&0!==e.avail_in||666===a.status&&t!==c)return O(e,0===e.avail_out?-5:d);if(a.strm=e,r=a.last_flush,a.last_flush=t,a.status===P)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=C);else{var f=v+(a.w_bits-8<<4)<<8;f|=(2<=a.strategy||a.level<2?0:a.level<6?1:6===a.level?2:3)<<6,0!==a.strstart&&(f|=32),f+=31-f%31,a.status=C,M(a,f),0!==a.strstart&&(M(a,e.adler>>>16),M(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)),z(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)),z(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)),z(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&&z(e),a.pending+2<=a.pending_buf_size&&(F(a,255&e.adler),F(a,e.adler>>8&255),e.adler=0,a.status=C)):a.status=C),0!==a.pending){if(z(e),0===e.avail_out)return a.last_flush=-1,h}else if(0===e.avail_in&&B(t)<=B(r)&&t!==c)return O(e,-5);if(666===a.status&&0!==e.avail_in)return O(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&&(L(e),0===e.lookahead)){if(t===u)return T;break}if(e.match_length=0,r=i._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(I(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(I(e,!0),0===e.strm.avail_out?D:N):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?T:E}(a,t):3===a.strategy?function(e,t){for(var r,n,a,o,s=e.window;;){if(e.lookahead<=S){if(L(e),e.lookahead<=S&&t===u)return T;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=x&&0<e.strstart&&(n=s[a=e.strstart-1])===s[++a]&&n===s[++a]&&n===s[++a]){o=e.strstart+S;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=S-(o-a),e.match_length>e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=x?(r=i._tr_tally(e,1,e.match_length-x),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&&(I(e,!1),0===e.strm.avail_out))return T}return e.insert=0,t===c?(I(e,!0),0===e.strm.avail_out?D:N):e.last_lit&&(I(e,!1),0===e.strm.avail_out)?T:E}(a,t):n[a.level].func(a,t);if(p!==D&&p!==N||(a.status=666),p===T||p===D)return 0===e.avail_out&&(a.last_flush=-1),h;if(p===E&&(1===t?i._tr_align(a):5!==t&&(i._tr_stored_block(a,0,0,!1),3===t&&(R(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),z(e),0===e.avail_out))return a.last_flush=-1,h}return t!==c?h: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)):(M(a,e.adler>>>16),M(a,65535&e.adler)),z(e),0<a.wrap&&(a.wrap=-a.wrap),0!==a.pending?h:1)},r.deflateEnd=function(e){var t;return e&&e.state?(t=e.state.status)!==P&&69!==t&&73!==t&&91!==t&&103!==t&&t!==C&&666!==t?O(e,d):(e.state=null,t===C?O(e,-3):h):d},r.deflateSetDictionary=function(e,t){var r,n,i,s,l,u,c,f,p=t.length;if(!e||!e.state)return d;if(2===(s=(r=e.state).wrap)||1===s&&r.status!==P||r.lookahead)return d;for(1===s&&(e.adler=o(e.adler,t,p,0)),r.wrap=0,p>=r.w_size&&(0===s&&(R(r.head),r.strstart=0,r.block_start=0,r.insert=0),f=new a.Buf8(r.w_size),a.arraySet(f,t,p-r.w_size,r.w_size,0),t=f,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,L(r);r.lookahead>=x;){for(n=r.strstart,i=r.lookahead-(x-1);r.ins_h=(r.ins_h<<r.hash_shift^r.window[n+x-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=x-1,L(r)}return r.strstart+=r.lookahead,r.block_start=r.strstart,r.insert=r.lookahead,r.lookahead=0,r.match_length=r.prev_length=x-1,r.match_available=0,e.next_in=u,e.input=c,e.avail_in=l,r.wrap=s,h},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,h,d,f,p,m,v,y,g,b,k,_,w,x,S,A,P;r=e.state,n=e.next_in,A=e.input,a=n+(e.avail_in-5),i=e.next_out,P=e.output,o=i-(t-e.avail_out),s=i+(e.avail_out-257),l=r.dmax,u=r.wsize,c=r.whave,h=r.wnext,d=r.window,f=r.hold,p=r.bits,m=r.lencode,v=r.distcode,y=(1<<r.lenbits)-1,g=(1<<r.distbits)-1;e:do{p<15&&(f+=A[n++]<<p,p+=8,f+=A[n++]<<p,p+=8),b=m[f&y];t:for(;;){if(f>>>=k=b>>>24,p-=k,0==(k=b>>>16&255))P[i++]=65535&b;else{if(!(16&k)){if(!(64&k)){b=m[(65535&b)+(f&(1<<k)-1)];continue t}if(32&k){r.mode=12;break e}e.msg="invalid literal/length code",r.mode=30;break e}_=65535&b,(k&=15)&&(p<k&&(f+=A[n++]<<p,p+=8),_+=f&(1<<k)-1,f>>>=k,p-=k),p<15&&(f+=A[n++]<<p,p+=8,f+=A[n++]<<p,p+=8),b=v[f&g];r:for(;;){if(f>>>=k=b>>>24,p-=k,!(16&(k=b>>>16&255))){if(!(64&k)){b=v[(65535&b)+(f&(1<<k)-1)];continue r}e.msg="invalid distance code",r.mode=30;break e}if(w=65535&b,p<(k&=15)&&(f+=A[n++]<<p,(p+=8)<k&&(f+=A[n++]<<p,p+=8)),l<(w+=f&(1<<k)-1)){e.msg="invalid distance too far back",r.mode=30;break e}if(f>>>=k,p-=k,(k=i-o)<w){if(c<(k=w-k)&&r.sane){e.msg="invalid distance too far back",r.mode=30;break e}if(S=d,(x=0)===h){if(x+=u-k,k<_){for(_-=k;P[i++]=d[x++],--k;);x=i-w,S=P}}else if(h<k){if(x+=u+h-k,(k-=h)<_){for(_-=k;P[i++]=d[x++],--k;);if(x=0,h<_){for(_-=k=h;P[i++]=d[x++],--k;);x=i-w,S=P}}}else if(x+=h-k,k<_){for(_-=k;P[i++]=d[x++],--k;);x=i-w,S=P}for(;2<_;)P[i++]=S[x++],P[i++]=S[x++],P[i++]=S[x++],_-=3;_&&(P[i++]=S[x++],1<_&&(P[i++]=S[x++]))}else{for(x=i-w;P[i++]=P[x++],P[i++]=P[x++],P[i++]=P[x++],2<(_-=3););_&&(P[i++]=P[x++],1<_&&(P[i++]=P[x++]))}break}}break}}while(n<a&&i<s);n-=_=p>>3,f&=(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=f,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,h=-2,d=1,f=852,p=592;function m(e){return(e>>>24&255)+(e>>>8&65280)+((65280&e)<<8)+((255&e)<<24)}function v(){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 y(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(f),t.distcode=t.distdyn=new n.Buf32(p),t.sane=1,t.back=-1,c):h}function g(e){var t;return e&&e.state?((t=e.state).wsize=0,t.whave=0,t.wnext=0,y(e)):h}function b(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)?h:(null!==n.window&&n.wbits!==t&&(n.window=null),n.wrap=r,n.wbits=t,g(e))):h}function k(e,t){var r,n;return e?(n=new v,(e.state=n).window=null,(r=b(e,t))!==c&&(e.state=null),r):h}var _,w,x=!0;function S(e){if(x){var t;for(_=new n.Buf32(512),w=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,w,0,e.work,{bits:5}),x=!1}e.lencode=_,e.lenbits=9,e.distcode=w,e.distbits=5}function A(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=g,r.inflateReset2=b,r.inflateResetKeep=y,r.inflateInit=function(e){return k(e,15)},r.inflateInit2=k,r.inflate=function(e,t){var r,f,p,v,y,g,b,k,_,w,x,P,C,T,E,D,N,O,B,R,z,I,F,M,j=0,L=new n.Buf8(4),U=[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 h;12===(r=e.state).mode&&(r.mode=13),y=e.next_out,p=e.output,b=e.avail_out,v=e.next_in,f=e.input,g=e.avail_in,k=r.hold,_=r.bits,w=g,x=b,I=c;e:for(;;)switch(r.mode){case d:if(0===r.wrap){r.mode=13;break}for(;_<16;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(2&r.wrap&&35615===k){L[r.check=0]=255&k,L[1]=k>>>8&255,r.check=i(r.check,L,2,0),_=k=0,r.mode=2;break}if(r.flags=0,r.head&&(r.head.done=!1),!(1&r.wrap)||(((255&k)<<8)+(k>>8))%31){e.msg="incorrect header check",r.mode=30;break}if(8!=(15&k)){e.msg="unknown compression method",r.mode=30;break}if(_-=4,z=8+(15&(k>>>=4)),0===r.wbits)r.wbits=z;else if(z>r.wbits){e.msg="invalid window size",r.mode=30;break}r.dmax=1<<z,e.adler=r.check=1,r.mode=512&k?10:12,_=k=0;break;case 2:for(;_<16;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(r.flags=k,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=k>>8&1),512&r.flags&&(L[0]=255&k,L[1]=k>>>8&255,r.check=i(r.check,L,2,0)),_=k=0,r.mode=3;case 3:for(;_<32;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}r.head&&(r.head.time=k),512&r.flags&&(L[0]=255&k,L[1]=k>>>8&255,L[2]=k>>>16&255,L[3]=k>>>24&255,r.check=i(r.check,L,4,0)),_=k=0,r.mode=4;case 4:for(;_<16;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}r.head&&(r.head.xflags=255&k,r.head.os=k>>8),512&r.flags&&(L[0]=255&k,L[1]=k>>>8&255,r.check=i(r.check,L,2,0)),_=k=0,r.mode=5;case 5:if(1024&r.flags){for(;_<16;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}r.length=k,r.head&&(r.head.extra_len=k),512&r.flags&&(L[0]=255&k,L[1]=k>>>8&255,r.check=i(r.check,L,2,0)),_=k=0}else r.head&&(r.head.extra=null);r.mode=6;case 6:if(1024&r.flags&&(g<(P=r.length)&&(P=g),P&&(r.head&&(z=r.head.extra_len-r.length,r.head.extra||(r.head.extra=new Array(r.head.extra_len)),n.arraySet(r.head.extra,f,v,P,z)),512&r.flags&&(r.check=i(r.check,f,P,v)),g-=P,v+=P,r.length-=P),r.length))break e;r.length=0,r.mode=7;case 7:if(2048&r.flags){if(0===g)break e;for(P=0;z=f[v+P++],r.head&&z&&r.length<65536&&(r.head.name+=String.fromCharCode(z)),z&&P<g;);if(512&r.flags&&(r.check=i(r.check,f,P,v)),g-=P,v+=P,z)break e}else r.head&&(r.head.name=null);r.length=0,r.mode=8;case 8:if(4096&r.flags){if(0===g)break e;for(P=0;z=f[v+P++],r.head&&z&&r.length<65536&&(r.head.comment+=String.fromCharCode(z)),z&&P<g;);if(512&r.flags&&(r.check=i(r.check,f,P,v)),g-=P,v+=P,z)break e}else r.head&&(r.head.comment=null);r.mode=9;case 9:if(512&r.flags){for(;_<16;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(k!==(65535&r.check)){e.msg="header crc mismatch",r.mode=30;break}_=k=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===g)break e;g--,k+=f[v++]<<_,_+=8}e.adler=r.check=m(k),_=k=0,r.mode=11;case 11:if(0===r.havedict)return e.next_out=y,e.avail_out=b,e.next_in=v,e.avail_in=g,r.hold=k,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){k>>>=7&_,_-=7&_,r.mode=27;break}for(;_<3;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}switch(r.last=1&k,_-=1,3&(k>>>=1)){case 0:r.mode=14;break;case 1:if(S(r),r.mode=20,6!==t)break;k>>>=2,_-=2;break e;case 2:r.mode=17;break;case 3:e.msg="invalid block type",r.mode=30}k>>>=2,_-=2;break;case 14:for(k>>>=7&_,_-=7&_;_<32;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if((65535&k)!=(k>>>16^65535)){e.msg="invalid stored block lengths",r.mode=30;break}if(r.length=65535&k,_=k=0,r.mode=15,6===t)break e;case 15:r.mode=16;case 16:if(P=r.length){if(g<P&&(P=g),b<P&&(P=b),0===P)break e;n.arraySet(p,f,v,P,y),g-=P,v+=P,b-=P,y+=P,r.length-=P;break}r.mode=12;break;case 17:for(;_<14;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(r.nlen=257+(31&k),k>>>=5,_-=5,r.ndist=1+(31&k),k>>>=5,_-=5,r.ncode=4+(15&k),k>>>=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===g)break e;g--,k+=f[v++]<<_,_+=8}r.lens[U[r.have++]]=7&k,k>>>=3,_-=3}for(;r.have<19;)r.lens[U[r.have++]]=0;if(r.lencode=r.lendyn,r.lenbits=7,F={bits:r.lenbits},I=s(0,r.lens,0,19,r.lencode,0,r.work,F),r.lenbits=F.bits,I){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(;D=(j=r.lencode[k&(1<<r.lenbits)-1])>>>16&255,N=65535&j,!((E=j>>>24)<=_);){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(N<16)k>>>=E,_-=E,r.lens[r.have++]=N;else{if(16===N){for(M=E+2;_<M;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(k>>>=E,_-=E,0===r.have){e.msg="invalid bit length repeat",r.mode=30;break}z=r.lens[r.have-1],P=3+(3&k),k>>>=2,_-=2}else if(17===N){for(M=E+3;_<M;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}_-=E,z=0,P=3+(7&(k>>>=E)),k>>>=3,_-=3}else{for(M=E+7;_<M;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}_-=E,z=0,P=11+(127&(k>>>=E)),k>>>=7,_-=7}if(r.have+P>r.nlen+r.ndist){e.msg="invalid bit length repeat",r.mode=30;break}for(;P--;)r.lens[r.have++]=z}}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},I=s(l,r.lens,0,r.nlen,r.lencode,0,r.work,F),r.lenbits=F.bits,I){e.msg="invalid literal/lengths set",r.mode=30;break}if(r.distbits=6,r.distcode=r.distdyn,F={bits:r.distbits},I=s(u,r.lens,r.nlen,r.ndist,r.distcode,0,r.work,F),r.distbits=F.bits,I){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<=g&&258<=b){e.next_out=y,e.avail_out=b,e.next_in=v,e.avail_in=g,r.hold=k,r.bits=_,o(e,x),y=e.next_out,p=e.output,b=e.avail_out,v=e.next_in,f=e.input,g=e.avail_in,k=r.hold,_=r.bits,12===r.mode&&(r.back=-1);break}for(r.back=0;D=(j=r.lencode[k&(1<<r.lenbits)-1])>>>16&255,N=65535&j,!((E=j>>>24)<=_);){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(D&&!(240&D)){for(O=E,B=D,R=N;D=(j=r.lencode[R+((k&(1<<O+B)-1)>>O)])>>>16&255,N=65535&j,!(O+(E=j>>>24)<=_);){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}k>>>=O,_-=O,r.back+=O}if(k>>>=E,_-=E,r.back+=E,r.length=N,0===D){r.mode=26;break}if(32&D){r.back=-1,r.mode=12;break}if(64&D){e.msg="invalid literal/length code",r.mode=30;break}r.extra=15&D,r.mode=22;case 22:if(r.extra){for(M=r.extra;_<M;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}r.length+=k&(1<<r.extra)-1,k>>>=r.extra,_-=r.extra,r.back+=r.extra}r.was=r.length,r.mode=23;case 23:for(;D=(j=r.distcode[k&(1<<r.distbits)-1])>>>16&255,N=65535&j,!((E=j>>>24)<=_);){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(!(240&D)){for(O=E,B=D,R=N;D=(j=r.distcode[R+((k&(1<<O+B)-1)>>O)])>>>16&255,N=65535&j,!(O+(E=j>>>24)<=_);){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}k>>>=O,_-=O,r.back+=O}if(k>>>=E,_-=E,r.back+=E,64&D){e.msg="invalid distance code",r.mode=30;break}r.offset=N,r.extra=15&D,r.mode=24;case 24:if(r.extra){for(M=r.extra;_<M;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}r.offset+=k&(1<<r.extra)-1,k>>>=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===b)break e;if(P=x-b,r.offset>P){if((P=r.offset-P)>r.whave&&r.sane){e.msg="invalid distance too far back",r.mode=30;break}C=P>r.wnext?(P-=r.wnext,r.wsize-P):r.wnext-P,P>r.length&&(P=r.length),T=r.window}else T=p,C=y-r.offset,P=r.length;for(b<P&&(P=b),b-=P,r.length-=P;p[y++]=T[C++],--P;);0===r.length&&(r.mode=21);break;case 26:if(0===b)break e;p[y++]=r.length,b--,r.mode=21;break;case 27:if(r.wrap){for(;_<32;){if(0===g)break e;g--,k|=f[v++]<<_,_+=8}if(x-=b,e.total_out+=x,r.total+=x,x&&(e.adler=r.check=r.flags?i(r.check,p,x,y-x):a(r.check,p,x,y-x)),x=b,(r.flags?k:m(k))!==r.check){e.msg="incorrect data check",r.mode=30;break}_=k=0}r.mode=28;case 28:if(r.wrap&&r.flags){for(;_<32;){if(0===g)break e;g--,k+=f[v++]<<_,_+=8}if(k!==(4294967295&r.total)){e.msg="incorrect length check",r.mode=30;break}_=k=0}r.mode=29;case 29:I=1;break e;case 30:I=-3;break e;case 31:return-4;default:return h}return e.next_out=y,e.avail_out=b,e.next_in=v,e.avail_in=g,r.hold=k,r.bits=_,(r.wsize||x!==e.avail_out&&r.mode<30&&(r.mode<27||4!==t))&&A(e,e.output,e.next_out,x-e.avail_out)?(r.mode=31,-4):(w-=e.avail_in,x-=e.avail_out,e.total_in+=w,e.total_out+=x,r.total+=x,r.wrap&&x&&(e.adler=r.check=r.flags?i(r.check,p,x,e.next_out-x):a(r.check,p,x,e.next_out-x)),e.data_type=r.bits+(r.last?64:0)+(12===r.mode?128:0)+(20===r.mode||15===r.mode?256:0),(0==w&&0===x||4===t)&&I===c&&(I=-5),I)},r.inflateEnd=function(e){if(!e||!e.state)return h;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&&2&(r=e.state).wrap?((r.head=t).done=!1,c):h},r.inflateSetDictionary=function(e,t){var r,n=t.length;return e&&e.state?0!==(r=e.state).wrap&&11!==r.mode?h:11===r.mode&&a(1,t,n,0)!==r.check?-3:A(e,t,n,n)?(r.mode=31,-4):(r.havedict=1,c):h},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,h,d){var f,p,m,v,y,g,b,k,_,w=d.bits,x=0,S=0,A=0,P=0,C=0,T=0,E=0,D=0,N=0,O=0,B=null,R=0,z=new n.Buf16(16),I=new n.Buf16(16),F=null,M=0;for(x=0;x<=15;x++)z[x]=0;for(S=0;S<l;S++)z[t[r+S]]++;for(C=w,P=15;1<=P&&0===z[P];P--);if(P<C&&(C=P),0===P)return u[c++]=20971520,u[c++]=20971520,d.bits=1,0;for(A=1;A<P&&0===z[A];A++);for(C<A&&(C=A),x=D=1;x<=15;x++)if(D<<=1,(D-=z[x])<0)return-1;if(0<D&&(0===e||1!==P))return-1;for(I[1]=0,x=1;x<15;x++)I[x+1]=I[x]+z[x];for(S=0;S<l;S++)0!==t[r+S]&&(h[I[t[r+S]]++]=S);if(g=0===e?(B=F=h,19):1===e?(B=a,R-=257,F=i,M-=257,256):(B=o,F=s,-1),x=A,y=c,E=S=O=0,m=-1,v=(N=1<<(T=C))-1,1===e&&852<N||2===e&&592<N)return 1;for(;;){for(b=x-E,_=h[S]<g?(k=0,h[S]):h[S]>g?(k=F[M+h[S]],B[R+h[S]]):(k=96,0),f=1<<x-E,A=p=1<<T;u[y+(O>>E)+(p-=f)]=b<<24|k<<16|_,0!==p;);for(f=1<<x-1;O&f;)f>>=1;if(0!==f?(O&=f-1,O+=f):O=0,S++,0==--z[x]){if(x===P)break;x=t[r+h[S]]}if(C<x&&(O&v)!==m){for(0===E&&(E=C),y+=A,D=1<<(T=x-E);T+E<P&&!((D-=z[T+E])<=0);)T++,D<<=1;if(N+=1<<T,1===e&&852<N||2===e&&592<N)return 1;u[m=O&v]=C<<24|T<<16|y-c}}return 0!==O&&(u[y+O]=x-E<<24|64<<16),d.bits=C,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,h=30,d=19,f=2*c+1,p=15,m=16,v=7,y=256,g=16,b=17,k=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],w=[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],x=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],S=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],A=new Array(2*(c+2));o(A);var P=new Array(2*h);o(P);var C=new Array(512);o(C);var T=new Array(256);o(T);var E=new Array(l);o(E);var D,N,O,B=new Array(h);function R(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 z(e,t){this.dyn_tree=e,this.max_code=0,this.stat_desc=t}function I(e){return e<256?C[e]:C[256+(e>>>7)]}function F(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function M(e,t,r){e.bi_valid>m-r?(e.bi_buf|=t<<e.bi_valid&65535,F(e,e.bi_buf),e.bi_buf=t>>m-e.bi_valid,e.bi_valid+=r-m):(e.bi_buf|=t<<e.bi_valid&65535,e.bi_valid+=r)}function j(e,t,r){M(e,r[2*t],r[2*t+1])}function L(e,t){for(var r=0;r|=1&e,e>>>=1,r<<=1,0<--t;);return r>>>1}function U(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]=L(i[s]++,s))}}function W(e){var t;for(t=0;t<c;t++)e.dyn_ltree[2*t]=0;for(t=0;t<h;t++)e.dyn_dtree[2*t]=0;for(t=0;t<d;t++)e.bl_tree[2*t]=0;e.dyn_ltree[2*y]=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?j(e,a,t):(j(e,(i=T[a])+u+1,t),0!==(o=_[i])&&M(e,a-=E[i],o),j(e,i=I(--n),r),0!==(o=w[i])&&M(e,n-=B[i],o)),s<e.last_lit;);j(e,y,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=f,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,h=t.stat_desc.has_stree,d=t.stat_desc.extra_bits,m=t.stat_desc.extra_base,v=t.stat_desc.max_length,y=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<f;r++)v<(i=l[2*l[2*(n=e.heap[r])+1]+1]+1)&&(i=v,y++),l[2*n+1]=i,u<n||(e.bl_count[i]++,o=0,m<=n&&(o=d[n-m]),s=l[2*n],e.opt_len+=s*(i+o),h&&(e.static_len+=s*(c[2*n+1]+o)));if(0!==y){do{for(i=v-1;0===e.bl_count[i];)i--;e.bl_count[i]--,e.bl_count[i+1]+=2,e.bl_count[v]--,y-=2}while(0<y);for(i=v;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),U(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*g]++):s<=10?e.bl_tree[2*b]++:e.bl_tree[2*k]++,i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4))}function q(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(;j(e,a,e.bl_tree),0!=--s;);else 0!==a?(a!==i&&(j(e,a,e.bl_tree),s--),j(e,g,e.bl_tree),M(e,s-3,2)):s<=10?(j(e,b,e.bl_tree),M(e,s-3,3)):(j(e,k,e.bl_tree),M(e,s-11,7));i=a,u=(s=0)===o?(l=138,3):a===o?(l=6,3):(l=7,4)}}o(B);var Y=!1;function J(e,t,r,a){M(e,(s<<1)+(a?1:0),3),function(e,t,r,a){H(e),a&&(F(e,r),F(e,~r)),n.arraySet(e.pending_buf,e.window,t,r,e.pending),e.pending+=r}(e,t,r,!0)}r._tr_init=function(e){Y||(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++)T[r++]=n;for(T[r-1]=n,n=a=0;n<16;n++)for(B[n]=a,e=0;e<1<<w[n];e++)C[a++]=n;for(a>>=7;n<h;n++)for(B[n]=a<<7,e=0;e<1<<w[n]-7;e++)C[256+a++]=n;for(t=0;t<=p;t++)i[t]=0;for(e=0;e<=143;)A[2*e+1]=8,e++,i[8]++;for(;e<=255;)A[2*e+1]=9,e++,i[9]++;for(;e<=279;)A[2*e+1]=7,e++,i[7]++;for(;e<=287;)A[2*e+1]=8,e++,i[8]++;for(U(A,c+1,i),e=0;e<h;e++)P[2*e+1]=5,P[2*e]=L(e,5);D=new R(A,_,u+1,c,p),N=new R(P,w,0,h,p),O=new R(new Array(0),x,0,d,v)}(),Y=!0),e.l_desc=new z(e.dyn_ltree,D),e.d_desc=new z(e.dyn_dtree,N),e.bl_desc=new z(e.bl_tree,O),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*S[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?(M(e,2+(n?1:0),3),X(e,A,P)):(M(e,4+(n?1:0),3),function(e,t,r,n){var a;for(M(e,t-257,5),M(e,r-1,5),M(e,n-4,4),a=0;a<n;a++)M(e,e.bl_tree[2*S[a]+1],3);q(e,e.dyn_ltree,t-1),q(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*(T[r]+u+1)]++,e.dyn_dtree[2*I(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){M(e,2,3),j(e,y,A),function(e){16===e.bi_valid?(F(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}(e)}},{"../utils/common":41}],53:[function(e,t,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){(function(e){!function(e,t){if(!e.setImmediate){var r,n,a,i,o=1,s={},l=!1,u=e.document,c=Object.getPrototypeOf&&Object.getPrototypeOf(e);c=c&&c.setTimeout?c:e,r="[object process]"==={}.toString.call(e.process)?function(e){process.nextTick((function(){d(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?(i="setImmediate$"+Math.random()+"$",e.addEventListener?e.addEventListener("message",f,!1):e.attachEvent("onmessage",f),function(t){e.postMessage(i+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){d(e.data)},function(e){a.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(n=u.documentElement,function(e){var t=u.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):function(e){setTimeout(d,0,e)},c.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var a={callback:e,args:t};return s[o]=a,r(o),o++},c.clearImmediate=h}function h(e){delete s[e]}function d(e){if(l)setTimeout(d,0,e);else{var r=s[e];if(r){l=!0;try{!function(e){var r=e.callback,n=e.args;switch(n.length){case 0:r();break;case 1:r(n[0]);break;case 2:r(n[0],n[1]);break;case 3:r(n[0],n[1],n[2]);break;default:r.apply(t,n)}}(r)}finally{h(e),l=!1}}}}function f(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(i)&&d(+t.data.slice(i.length))}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,void 0!==a?a:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}]},{},[10])(10)}(w)),w.exports}!function(e,t){var r;globalThis,e.exports=(r=x(),function(){var e={438:function(e,t,r){r.r(t),r.d(t,{default:function(){return d}});var n=r(537),a=r.n(n),i=r(645),o=r.n(i),s=r(806),l=r.n(s),u=new URL(r(583),r.b),c=o()(a()),h=l()(u);c.push([e.id,'@namespace "http://www.w3.org/1998/Math/MathML";math{display:inline-block;line-height:initial}mfrac{display:inline-block;vertical-align:-50%;text-align:center}mfrac>:first-child{border-bottom:solid thin currentColor}mfrac>*{display:block}msub>:nth-child(2){font-size:smaller;vertical-align:sub}msup>:nth-child(2){font-size:smaller;vertical-align:super}munder,mover,munderover{display:inline-flex;flex-flow:column nowrap;vertical-align:middle;text-align:center}munder>:not(:first-child),mover>:not(:first-child),munderover>:not(:first-child){font-size:smaller}munderover>:last-child{order:-1}mroot,msqrt{position:relative;display:inline-block;border-top:solid thin currentColor;margin-top:.5px;vertical-align:middle;margin-left:1ch}mroot:before,msqrt:before{content:"";display:inline-block;position:absolute;width:1ch;left:-1ch;top:-1px;bottom:0;background-image:url('+h+")}","",{version:3,sources:["webpack://./src/mathml.scss"],names:[],mappings:"AAAA,+CAAA,CAEA,KACI,oBAAA,CACA,mBAAA,CAGJ,MACI,oBAAA,CACA,mBAAA,CACA,iBAAA,CAEA,mBACI,qCAAA,CAGJ,QACI,aAAA,CAKJ,mBACI,iBAAA,CACA,kBAAA,CAKJ,mBACI,iBAAA,CACA,oBAAA,CAIR,wBACI,mBAAA,CACA,uBAAA,CACA,qBAAA,CACA,iBAAA,CAEA,iFACI,iBAAA,CAKJ,uBAAA,QAAA,CAGJ,YACI,iBAAA,CACA,oBAAA,CACA,kCAAA,CACA,eAAA,CACA,qBAAA,CACA,eAAA,CAEA,0BACI,UAAA,CACA,oBAAA,CACA,iBAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,wDAAA",sourcesContent:["@namespace \"http://www.w3.org/1998/Math/MathML\";\r\n\r\nmath {\r\n display: inline-block;\r\n line-height: initial;\r\n}\r\n\r\nmfrac {\r\n display: inline-block;\r\n vertical-align: -50%;\r\n text-align: center;\r\n\r\n &>:first-child {\r\n border-bottom: solid thin currentColor;\r\n }\r\n\r\n &>* {\r\n display: block;\r\n }\r\n}\r\n\r\nmsub {\r\n &>:nth-child(2) {\r\n font-size: smaller;\r\n vertical-align: sub;\r\n }\r\n}\r\n\r\nmsup {\r\n &>:nth-child(2) {\r\n font-size: smaller;\r\n vertical-align: super;\r\n }\r\n}\r\n\r\nmunder, mover, munderover {\r\n display: inline-flex;\r\n flex-flow: column nowrap;\r\n vertical-align: middle;\r\n text-align: center;\r\n\r\n &>:not(:first-child) {\r\n font-size: smaller;\r\n }\r\n}\r\n\r\nmunderover {\r\n &>:last-child { order: -1; }\r\n}\r\n\r\nmroot, msqrt {\r\n position: relative;\r\n display: inline-block;\r\n border-top: solid thin currentColor; \r\n margin-top: 0.5px;\r\n vertical-align: middle; \r\n margin-left: 1ch; \r\n\r\n &:before {\r\n content: \"\";\r\n display: inline-block;\r\n position: absolute;\r\n width: 1ch;\r\n left: -1ch;\r\n top: -1px;\r\n bottom: 0;\r\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 100' preserveAspectRatio='none'%3E%3Cpath d='m0,75 l5,0 l5,25 l10,-100' stroke='black' fill='none' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E\");\r\n }\r\n}"],sourceRoot:""}]);var d=c.toString()},645:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,a,i){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(o[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);n&&o[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),a&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=a):c[4]="".concat(a)),t.push(c))}},t}},806:function(e){e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},537:function(e){e.exports=function(e){var t=e[1],r=e[3];if(!r)return t;if("function"==typeof btoa){var n=btoa(unescape(encodeURIComponent(JSON.stringify(r)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),i="/*# ".concat(a," */"),o=r.sources.map((function(e){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(e," */")}));return[t].concat(o).concat([i]).join("\n")}return[t].join("\n")}},522:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.OpenXmlPackage=void 0;var n=r(626),a=r(472),i=r(593),o=r(461),s=function(){function e(t,r){f(this,e),this._zip=t,this.options=r,this.xmlParser=new a.XmlParser}return m(e,[{key:"get",value:function(e){return this._zip.files[function(e){return e.startsWith("/")?e.substr(1):e}(e)]}},{key:"update",value:function(e,t){this._zip.file(e,t)}},{key:"save",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"blob";return this._zip.generateAsync({type:e})}},{key:"load",value:function(e){var t,r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"string";return null!==(r=null===(t=this.get(e))||void 0===t?void 0:t.async(n))&&void 0!==r?r:Promise.resolve(null)}},{key:"loadRelationships",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r="_rels/.rels";if(null!=t){var n=c((0,i.splitPath)(t),2),a=n[0],s=n[1];r="".concat(a,"_rels/").concat(s,".rels")}return this.load(r).then((function(t){return t?(0,o.parseRelationships)(e.parseXmlDocument(t).firstElementChild,e.xmlParser):null}))}},{key:"parseXmlDocument",value:function(e){return(0,a.parseXmlString)(e,this.options.trimXmlDeclaration)}}],[{key:"load",value:function(t,r){return n.loadAsync(t).then((function(t){return new e(t,r)}))}}])}();t.OpenXmlPackage=s},530:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.Part=void 0;var n=r(472);t.Part=function(){function e(t,r){f(this,e),this._package=t,this.path=r}return m(e,[{key:"load",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)}))])}},{key:"save",value:function(){this._package.update(this.path,(0,n.serializeXmlString)(this._xmlDocument))}},{key:"parseXml",value:function(e){}}])}()},461:function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.parseRelationships=t.RelationshipTypes=void 0,(r=t.RelationshipTypes||(t.RelationshipTypes={})).OfficeDocument="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",r.FontTable="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable",r.Image="http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",r.Numbering="http://schemas.openxmlformats.org/officeDocument/2006/relationships/numbering",r.Styles="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",r.StylesWithEffects="http://schemas.microsoft.com/office/2007/relationships/stylesWithEffects",r.Theme="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",r.Settings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings",r.WebSettings="http://schemas.openxmlformats.org/officeDocument/2006/relationships/webSettings",r.Hyperlink="http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",r.Footnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footnotes",r.Endnotes="http://schemas.openxmlformats.org/officeDocument/2006/relationships/endnotes",r.Footer="http://schemas.openxmlformats.org/officeDocument/2006/relationships/footer",r.Header="http://schemas.openxmlformats.org/officeDocument/2006/relationships/header",r.ExtendedProperties="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",r.CoreProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",r.CustomProperties="http://schemas.openxmlformats.org/package/2006/relationships/metadata/custom-properties",t.parseRelationships=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")}}))}},168:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentParser=t.autos=void 0;var n=r(120),a=r(109),i=r(59),o=r(472),s=r(488),c=r(172),h=r(149),d=r(320);t.autos={shd:"inherit",color:"black",borderColor:"black",highlight:"transparent"};var p=[],v={oMath:n.DomType.MmlMath,oMathPara:n.DomType.MmlMathParagraph,f:n.DomType.MmlFraction,num:n.DomType.MmlNumerator,den:n.DomType.MmlDenominator,rad:n.DomType.MmlRadical,deg:n.DomType.MmlDegree,e:n.DomType.MmlBase,sSup:n.DomType.MmlSuperscript,sSub:n.DomType.MmlSubscript,sup:n.DomType.MmlSuperArgument,sub:n.DomType.MmlSubArgument,d:n.DomType.MmlDelimiter,nary:n.DomType.MmlNary};t.DocumentParser=function(){function e(t){f(this,e),this.options=Object.assign({ignoreWidth:!1,debug:!1},t)}return m(e,[{key:"parseNotes",value:function(e,t,r){var n,a=[],i=u(o.default.elements(e,t));try{for(i.s();!(n=i.n()).done;){var s=n.value,l=new r;l.id=o.default.attr(s,"id"),l.noteType=o.default.attr(s,"type"),l.children=this.parseBodyElements(s),a.push(l)}}catch(c){i.e(c)}finally{i.f()}return a}},{key:"parseDocumentFile",value:function(e){var t=o.default.element(e,"body"),r=o.default.element(e,"background"),a=o.default.element(t,"sectPr");return{type:n.DomType.Document,children:this.parseBodyElements(t),props:a?(0,i.parseSectionProperties)(a,o.default):null,cssStyle:r?this.parseBackground(r):{}}}},{key:"parseBackground",value:function(e){var t={},r=g.colorAttr(e,"color");return r&&(t["background-color"]=r),t}},{key:"parseBodyElements",value:function(e){var t,r=this,n=[],a=u(o.default.elements(e));try{for(a.s();!(t=a.n()).done;){var i=t.value;switch(i.localName){case"p":n.push(this.parseParagraph(i));break;case"tbl":n.push(this.parseTable(i));break;case"sdt":n.push.apply(n,l(this.parseSdt(i,(function(e){return r.parseBodyElements(e)}))))}}}catch(s){a.e(s)}finally{a.f()}return n}},{key:"parseStylesFile",value:function(e){var t=this,r=[];return g.foreach(e,(function(e){switch(e.localName){case"style":r.push(t.parseStyle(e));break;case"docDefaults":r.push(t.parseDefaultStyles(e))}})),r}},{key:"parseDefaultStyles",value:function(e){var t=this,r={id:null,name:null,target:null,basedOn:null,styles:[]};return g.foreach(e,(function(e){switch(e.localName){case"rPrDefault":var n=o.default.element(e,"rPr");n&&r.styles.push({target:"span",values:t.parseDefaultProperties(n,{})});break;case"pPrDefault":var a=o.default.element(e,"pPr");a&&r.styles.push({target:"p",values:t.parseDefaultProperties(a,{})})}})),r}},{key:"parseStyle",value:function(e){var t=this,r={id:o.default.attr(e,"styleId"),isDefault:o.default.boolAttr(e,"default"),name:null,target:null,basedOn:null,styles:[],linked:null};switch(o.default.attr(e,"type")){case"paragraph":r.target="p";break;case"table":r.target="table";break;case"character":r.target="span"}return g.foreach(e,(function(e){switch(e.localName){case"basedOn":r.basedOn=o.default.attr(e,"val");break;case"name":r.name=o.default.attr(e,"val");break;case"link":r.linked=o.default.attr(e,"val");break;case"next":r.next=o.default.attr(e,"val");break;case"aliases":r.aliases=o.default.attr(e,"val").split(",");break;case"pPr":r.styles.push({target:"p",values:t.parseDefaultProperties(e,{})}),r.paragraphProps=(0,a.parseParagraphProperties)(e,o.default);break;case"rPr":r.styles.push({target:"span",values:t.parseDefaultProperties(e,{})}),r.runProps=(0,s.parseRunProperties)(e,o.default);break;case"tblPr":case"tcPr":r.styles.push({target:"td",values:t.parseDefaultProperties(e,{})});break;case"tblStylePr":var n,i=u(t.parseTableStyle(e));try{for(i.s();!(n=i.n()).done;){var l=n.value;r.styles.push(l)}}catch(c){i.e(c)}finally{i.f()}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}},{key:"parseTableStyle",value:function(e){var t=this,r=[],n=o.default.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 g.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}},{key:"parseNumberingFile",value:function(e){var t=this,r=[],n={},a=[];return g.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=o.default.attr(e,"numId"),s=o.default.elementAttr(e,"abstractNumId","val");n[s]=i}})),r.forEach((function(e){return e.id=n[e.id]})),r}},{key:"parseNumberingPicBullet",value:function(e){var t=o.default.element(e,"pict"),r=t&&o.default.element(t,"shape"),n=r&&o.default.element(r,"imagedata");return n?{id:o.default.intAttr(e,"numPicBulletId"),src:o.default.attr(n,"id"),style:o.default.attr(r,"style")}:null}},{key:"parseAbstractNumbering",value:function(e,t){var r=this,n=[],a=o.default.attr(e,"abstractNumId");return g.foreach(e,(function(e){"lvl"===e.localName&&n.push(r.parseNumberingLevel(a,e,t))})),n}},{key:"parseNumberingLevel",value:function(e,t,r){var n=this,a={id:e,level:o.default.intAttr(t,"ilvl"),pStyleName:void 0,pStyle:{},rStyle:{},suff:"tab"};return g.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=o.default.intAttr(e,"val");a.bullet=r.find((function(e){return e.id==t}));break;case"lvlText":a.levelText=o.default.attr(e,"val");break;case"pStyle":a.pStyleName=o.default.attr(e,"val");break;case"numFmt":a.format=o.default.attr(e,"val");break;case"suff":a.suff=o.default.attr(e,"val")}})),a}},{key:"parseSdt",value:function(e,t){var r=o.default.element(e,"sdtContent");return r?t(r):[]}},{key:"parseInserted",value:function(e,t){var r,a;return{type:n.DomType.Inserted,children:null!==(a=null===(r=t(e))||void 0===r?void 0:r.children)&&void 0!==a?a:[]}}},{key:"parseDeleted",value:function(e,t){var r,a;return{type:n.DomType.Deleted,children:null!==(a=null===(r=t(e))||void 0===r?void 0:r.children)&&void 0!==a?a:[]}}},{key:"parseParagraph",value:function(e){var t,r,a=this,i={type:n.DomType.Paragraph,children:[]},s=u(o.default.elements(e));try{for(s.s();!(r=s.n()).done;){var h=r.value;switch(h.localName){case"pPr":this.parseParagraphProperties(h,i);break;case"r":i.children.push(this.parseRun(h,i));break;case"hyperlink":i.children.push(this.parseHyperlink(h,i));break;case"bookmarkStart":i.children.push((0,c.parseBookmarkStart)(h,o.default));break;case"bookmarkEnd":i.children.push((0,c.parseBookmarkEnd)(h,o.default));break;case"oMath":case"oMathPara":i.children.push(this.parseMathElement(h));break;case"sdt":(t=i.children).push.apply(t,l(this.parseSdt(h,(function(e){return a.parseParagraph(e).children}))));break;case"ins":i.children.push(this.parseInserted(h,(function(e){return a.parseParagraph(e)})));break;case"del":i.children.push(this.parseDeleted(h,(function(e){return a.parseParagraph(e)})))}}}catch(d){s.e(d)}finally{s.f()}return i}},{key:"parseParagraphProperties",value:function(e,t){var r=this;this.parseDefaultProperties(e,t.cssStyle={},null,(function(e){if((0,a.parseParagraphProperty)(e,t,o.default))return!0;switch(e.localName){case"pStyle":t.styleName=o.default.attr(e,"val");break;case"cnfStyle":t.className=b.classNameOfCnfStyle(e);break;case"framePr":r.parseFrame(e,t);break;case"rPr":break;default:return!1}return!0}))}},{key:"parseFrame",value:function(e,t){"drop"==o.default.attr(e,"dropCap")&&(t.cssStyle.float="left")}},{key:"parseHyperlink",value:function(e,t){var r=this,a={type:n.DomType.Hyperlink,parent:t,children:[]},i=o.default.attr(e,"anchor"),s=o.default.attr(e,"id");return i&&(a.href="#"+i),s&&(a.id=s),g.foreach(e,(function(e){"r"===e.localName&&a.children.push(r.parseRun(e,a))})),a}},{key:"parseRun",value:function(e,t){var r=this,a={type:n.DomType.Run,parent:t,children:[]};return g.foreach(e,(function(e){switch((e=r.checkAlternateContent(e)).localName){case"t":a.children.push({type:n.DomType.Text,text:e.textContent});break;case"delText":a.children.push({type:n.DomType.DeletedText,text:e.textContent});break;case"fldSimple":a.children.push({type:n.DomType.SimpleField,instruction:o.default.attr(e,"instr"),lock:o.default.boolAttr(e,"lock",!1),dirty:o.default.boolAttr(e,"dirty",!1)});break;case"instrText":a.fieldRun=!0,a.children.push({type:n.DomType.Instruction,text:e.textContent});break;case"fldChar":a.fieldRun=!0,a.children.push({type:n.DomType.ComplexField,charType:o.default.attr(e,"fldCharType"),lock:o.default.boolAttr(e,"lock",!1),dirty:o.default.boolAttr(e,"dirty",!1)});break;case"noBreakHyphen":a.children.push({type:n.DomType.NoBreakHyphen});break;case"br":a.children.push({type:n.DomType.Break,break:o.default.attr(e,"type")||"textWrapping"});break;case"lastRenderedPageBreak":a.children.push({type:n.DomType.Break,break:"lastRenderedPageBreak"});break;case"sym":a.children.push({type:n.DomType.Symbol,font:o.default.attr(e,"font"),char:o.default.attr(e,"char")});break;case"tab":a.children.push({type:n.DomType.Tab});break;case"footnoteReference":a.children.push({type:n.DomType.FootnoteReference,id:o.default.attr(e,"id")});break;case"endnoteReference":a.children.push({type:n.DomType.EndnoteReference,id:o.default.attr(e,"id")});break;case"drawing":var t=r.parseDrawing(e);t&&(a.children=[t]);break;case"pict":a.children.push(r.parseVmlPicture(e));break;case"rPr":r.parseRunProperties(e,a)}})),a}},{key:"parseMathElement",value:function(e){var t,r="".concat(e.localName,"Pr"),n={type:v[e.localName],children:[]},a=u(o.default.elements(e));try{for(a.s();!(t=a.n()).done;){var i=t.value;v[i.localName]?n.children.push(this.parseMathElement(i)):"r"==i.localName?n.children.push(this.parseRun(i)):i.localName==r&&(n.props=this.parseMathProperies(i))}}catch(s){a.e(s)}finally{a.f()}return n}},{key:"parseMathProperies",value:function(e){var t,r={},n=u(o.default.elements(e));try{for(n.s();!(t=n.n()).done;){var a=t.value;switch(a.localName){case"chr":r.char=o.default.attr(a,"val");break;case"degHide":r.hideDegree=o.default.boolAttr(a,"val");break;case"begChr":r.beginChar=o.default.attr(a,"val");break;case"endChr":r.endChar=o.default.attr(a,"val")}}}catch(i){n.e(i)}finally{n.f()}return r}},{key:"parseRunProperties",value:function(e,t){this.parseDefaultProperties(e,t.cssStyle={},null,(function(e){switch(e.localName){case"rStyle":t.styleName=o.default.attr(e,"val");break;case"vertAlign":t.verticalAlign=b.valueOfVertAlign(e,!0);break;default:return!1}return!0}))}},{key:"parseVmlPicture",value:function(e){var t,r={type:n.DomType.VmlPicture,children:[]},a=u(o.default.elements(e));try{for(a.s();!(t=a.n()).done;){var i=t.value,s=(0,d.parseVmlElement)(i);s&&r.children.push(s)}}catch(l){a.e(l)}finally{a.f()}return r}},{key:"checkAlternateContent",value:function(e){var t;if("AlternateContent"!=e.localName)return e;var r=o.default.element(e,"Choice");if(r){var n=o.default.attr(r,"Requires"),a=e.lookupNamespaceURI(n);if(p.includes(a))return r.firstElementChild}return null===(t=o.default.element(e,"Fallback"))||void 0===t?void 0:t.firstElementChild}},{key:"parseDrawing",value:function(e){var t,r=u(o.default.elements(e));try{for(r.s();!(t=r.n()).done;){var n=t.value;switch(n.localName){case"inline":case"anchor":return this.parseDrawingWrapper(n)}}}catch(a){r.e(a)}finally{r.f()}}},{key:"parseDrawingWrapper",value:function(e){var t,r,a={type:n.DomType.Drawing,children:[],cssStyle:{}},i="anchor"==e.localName,s=null,l=o.default.boolAttr(e,"simplePos"),c={relative:"page",align:"left",offset:"0"},d={relative:"page",align:"top",offset:"0"},f=u(o.default.elements(e));try{for(f.s();!(r=f.n()).done;){var p=r.value;switch(p.localName){case"simplePos":l&&(c.offset=o.default.lengthAttr(p,"x",h.LengthUsage.Emu),d.offset=o.default.lengthAttr(p,"y",h.LengthUsage.Emu));break;case"extent":a.cssStyle.width=o.default.lengthAttr(p,"cx",h.LengthUsage.Emu),a.cssStyle.height=o.default.lengthAttr(p,"cy",h.LengthUsage.Emu);break;case"positionH":case"positionV":if(!l){var m="positionH"==p.localName?c:d,v=o.default.element(p,"align"),y=o.default.element(p,"posOffset");m.relative=null!==(t=o.default.attr(p,"relativeFrom"))&&void 0!==t?t:m.relative,v&&(m.align=v.textContent),y&&(m.offset=g.sizeValue(y,h.LengthUsage.Emu))}break;case"wrapTopAndBottom":s="wrapTopAndBottom";break;case"wrapNone":s="wrapNone";break;case"graphic":var b=this.parseGraphic(p);b&&a.children.push(b)}}}catch(k){f.e(k)}finally{f.f()}return"wrapTopAndBottom"==s?(a.cssStyle.display="block",c.align&&(a.cssStyle["text-align"]=c.align,a.cssStyle.width="100%")):"wrapNone"==s?(a.cssStyle.display="block",a.cssStyle.position="relative",a.cssStyle.width="0px",a.cssStyle.height="0px",c.offset&&(a.cssStyle.left=c.offset),d.offset&&(a.cssStyle.top=d.offset)):!i||"left"!=c.align&&"right"!=c.align||(a.cssStyle.float=c.align),a}},{key:"parseGraphic",value:function(e){var t,r=o.default.element(e,"graphicData"),n=u(o.default.elements(r));try{for(n.s();!(t=n.n()).done;){var a=t.value;if("pic"===a.localName)return this.parsePicture(a)}}catch(i){n.e(i)}finally{n.f()}return null}},{key:"parsePicture",value:function(e){var t={type:n.DomType.Image,src:"",cssStyle:{}},r=o.default.element(e,"blipFill"),a=o.default.element(r,"blip");t.src=o.default.attr(a,"embed");var i,s=o.default.element(e,"spPr"),l=o.default.element(s,"xfrm"),c=u((t.cssStyle.position="relative",o.default.elements(l)));try{for(c.s();!(i=c.n()).done;){var d=i.value;switch(d.localName){case"ext":t.cssStyle.width=o.default.lengthAttr(d,"cx",h.LengthUsage.Emu),t.cssStyle.height=o.default.lengthAttr(d,"cy",h.LengthUsage.Emu);break;case"off":t.cssStyle.left=o.default.lengthAttr(d,"x",h.LengthUsage.Emu),t.cssStyle.top=o.default.lengthAttr(d,"y",h.LengthUsage.Emu)}}}catch(f){c.e(f)}finally{c.f()}return t}},{key:"parseTable",value:function(e){var t=this,r={type:n.DomType.Table,children:[]};return g.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}},{key:"parseTableColumns",value:function(e){var t=[];return g.foreach(e,(function(e){"gridCol"===e.localName&&t.push({width:o.default.lengthAttr(e,"w")})})),t}},{key:"parseTableProperties",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=o.default.attr(e,"val");break;case"tblLook":t.className=b.classNameOftblLook(e);break;case"tblpPr":r.parseTablePosition(e,t);break;case"tblStyleColBandSize":t.colBandSize=o.default.intAttr(e,"val");break;case"tblStyleRowBandSize":t.rowBandSize=o.default.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"}}},{key:"parseTablePosition",value:function(e,t){var r=o.default.lengthAttr(e,"topFromText"),n=o.default.lengthAttr(e,"bottomFromText"),a=o.default.lengthAttr(e,"rightFromText"),i=o.default.lengthAttr(e,"leftFromText");t.cssStyle.float="left",t.cssStyle["margin-bottom"]=b.addSize(t.cssStyle["margin-bottom"],n),t.cssStyle["margin-left"]=b.addSize(t.cssStyle["margin-left"],i),t.cssStyle["margin-right"]=b.addSize(t.cssStyle["margin-right"],a),t.cssStyle["margin-top"]=b.addSize(t.cssStyle["margin-top"],r)}},{key:"parseTableRow",value:function(e){var t=this,r={type:n.DomType.Row,children:[]};return g.foreach(e,(function(e){switch(e.localName){case"tc":r.children.push(t.parseTableCell(e));break;case"trPr":t.parseTableRowProperties(e,r)}})),r}},{key:"parseTableRowProperties",value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,(function(e){switch(e.localName){case"cnfStyle":t.className=b.classNameOfCnfStyle(e);break;case"tblHeader":t.isHeader=o.default.boolAttr(e,"val");break;default:return!1}return!0}))}},{key:"parseTableCell",value:function(e){var t=this,r={type:n.DomType.Cell,children:[]};return g.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}},{key:"parseTableCellProperties",value:function(e,t){t.cssStyle=this.parseDefaultProperties(e,{},null,(function(e){var r;switch(e.localName){case"gridSpan":t.span=o.default.intAttr(e,"val",null);break;case"vMerge":t.verticalMerge=null!==(r=o.default.attr(e,"val"))&&void 0!==r?r:"continue";break;case"cnfStyle":t.className=b.classNameOfCnfStyle(e);break;default:return!1}return!0}))}},{key:"parseDefaultProperties",value:function(e){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return n=n||{},g.foreach(e,(function(s){if(!(null==i?void 0:i(s)))switch(s.localName){case"jc":n["text-align"]=b.valueOfJc(s);break;case"textAlignment":n["vertical-align"]=b.valueOfTextAlignment(s);break;case"color":n.color=g.colorAttr(s,"val",null,t.autos.color);break;case"sz":n["font-size"]=n["min-height"]=o.default.lengthAttr(s,"val",h.LengthUsage.FontSize);break;case"shd":n["background-color"]=g.colorAttr(s,"fill",null,t.autos.shd);break;case"highlight":n["background-color"]=g.colorAttr(s,"val",null,t.autos.highlight);break;case"vertAlign":break;case"position":n.verticalAlign=o.default.lengthAttr(s,"val",h.LengthUsage.FontSize);break;case"tcW":if(r.options.ignoreWidth)break;case"tblW":n.width=b.valueOfSize(s,"w");break;case"trHeight":r.parseTrHeight(s,n);break;case"strike":n["text-decoration"]=o.default.boolAttr(s,"val",!0)?"line-through":"none";break;case"b":n["font-weight"]=o.default.boolAttr(s,"val",!0)?"bold":"normal";break;case"i":n["font-style"]=o.default.boolAttr(s,"val",!0)?"italic":"normal";break;case"caps":n["text-transform"]=o.default.boolAttr(s,"val",!0)?"uppercase":"none";break;case"smallCaps":n["text-transform"]=o.default.boolAttr(s,"val",!0)?"lowercase":"none";break;case"u":r.parseUnderline(s,n);break;case"ind":case"tblInd":r.parseIndentation(s,n);break;case"rFonts":r.parseFont(s,n);break;case"tblBorders":r.parseBorderProperties(s,a||n);break;case"tblCellSpacing":n["border-spacing"]=b.valueOfMargin(s),n["border-collapse"]="separate";break;case"pBdr":r.parseBorderProperties(s,n);break;case"bdr":n.border=b.valueOfBorder(s);break;case"tcBorders":r.parseBorderProperties(s,n);break;case"vanish":o.default.boolAttr(s,"val",!0)&&(n.display="none");break;case"kern":case"noWrap":break;case"tblCellMar":case"tcMar":r.parseMarginProperties(s,a||n);break;case"tblLayout":n["table-layout"]=b.valueOfTblLayout(s);break;case"vAlign":n["vertical-align"]=b.valueOfTextAlignment(s);break;case"spacing":"pPr"==e.localName&&r.parseSpacing(s,n);break;case"wordWrap":o.default.boolAttr(s,"val")&&(n["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:r.options.debug&&console.warn("DOCX: Unknown document element: ".concat(e.localName,".").concat(s.localName))}})),n}},{key:"parseUnderline",value:function(e,t){var r=o.default.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=g.colorAttr(e,"color");n&&(t["text-decoration-color"]=n)}}},{key:"parseFont",value:function(e,t){var r=[o.default.attr(e,"ascii"),b.themeValue(e,"asciiTheme")].filter((function(e){return e})).join(", ");r.length>0&&(t["font-family"]=r)}},{key:"parseIndentation",value:function(e,t){var r=o.default.lengthAttr(e,"firstLine"),n=o.default.lengthAttr(e,"hanging"),a=o.default.lengthAttr(e,"left"),i=o.default.lengthAttr(e,"start"),s=o.default.lengthAttr(e,"right"),l=o.default.lengthAttr(e,"end");r&&(t["text-indent"]=r),n&&(t["text-indent"]="-".concat(n)),(a||i)&&(t["margin-left"]=a||i),(s||l)&&(t["margin-right"]=s||l)}},{key:"parseSpacing",value:function(e,t){var r=o.default.lengthAttr(e,"before"),n=o.default.lengthAttr(e,"after"),a=o.default.intAttr(e,"line",null),i=o.default.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(a/20,"pt)");break;default:t["line-height"]=t["min-height"]=a/20+"pt"}}},{key:"parseMarginProperties",value:function(e,t){g.foreach(e,(function(e){switch(e.localName){case"left":t["padding-left"]=b.valueOfMargin(e);break;case"right":t["padding-right"]=b.valueOfMargin(e);break;case"top":t["padding-top"]=b.valueOfMargin(e);break;case"bottom":t["padding-bottom"]=b.valueOfMargin(e)}}))}},{key:"parseTrHeight",value:function(e,t){o.default.attr(e,"hRule"),t.height=o.default.lengthAttr(e,"val")}},{key:"parseBorderProperties",value:function(e,t){g.foreach(e,(function(e){switch(e.localName){case"start":case"left":t["border-left"]=b.valueOfBorder(e);break;case"end":case"right":t["border-right"]=b.valueOfBorder(e);break;case"top":t["border-top"]=b.valueOfBorder(e);break;case"bottom":t["border-bottom"]=b.valueOfBorder(e)}}))}}])}();var y=["black","blue","cyan","darkBlue","darkCyan","darkGray","darkGreen","darkMagenta","darkRed","darkYellow","green","lightGray","magenta","none","red","white","yellow"],g=function(){function e(){f(this,e)}return m(e,null,[{key:"foreach",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)}}},{key:"colorAttr",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"black",a=o.default.attr(e,t);if(a)return"auto"==a?n:y.includes(a)?a:"#".concat(a);var i=o.default.attr(e,"themeColor");return i?"var(--docx-".concat(i,"-color)"):r}},{key:"sizeValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.LengthUsage.Dxa;return(0,h.convertLength)(e.textContent,t)}}])}(),b=function(){function e(){f(this,e)}return m(e,null,[{key:"themeValue",value:function(e,t){var r=o.default.attr(e,t);return r?"var(--docx-".concat(r,"-font)"):null}},{key:"valueOfSize",value:function(e,t){var r=h.LengthUsage.Dxa;switch(o.default.attr(e,"type")){case"dxa":break;case"pct":r=h.LengthUsage.Percent;break;case"auto":return"auto"}return o.default.lengthAttr(e,t,r)}},{key:"valueOfMargin",value:function(e){return o.default.lengthAttr(e,"w")}},{key:"valueOfBorder",value:function(e){if("nil"==o.default.attr(e,"val"))return"none";var r=g.colorAttr(e,"color");return"".concat(o.default.lengthAttr(e,"sz",h.LengthUsage.Border)," solid ").concat("auto"==r?t.autos.borderColor:r)}},{key:"valueOfTblLayout",value:function(e){return"fixed"==o.default.attr(e,"val")?"fixed":"auto"}},{key:"classNameOfCnfStyle",value:function(e){var t=o.default.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(" ")}},{key:"valueOfJc",value:function(e){var t=o.default.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}},{key:"valueOfVertAlign",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=o.default.attr(e,"val");switch(r){case"subscript":return"sub";case"superscript":return t?"sup":"super"}return t?null:r}},{key:"valueOfTextAlignment",value:function(e){var t=o.default.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}},{key:"addSize",value:function(e,t){return null==e?t:null==t?e:"calc(".concat(e," + ").concat(t,")")}},{key:"classNameOftblLook",value:function(e){var t=o.default.hexAttr(e,"val",0),r="";return(o.default.boolAttr(e,"firstRow")||32&t)&&(r+=" first-row"),(o.default.boolAttr(e,"lastRow")||64&t)&&(r+=" last-row"),(o.default.boolAttr(e,"firstColumn")||128&t)&&(r+=" first-col"),(o.default.boolAttr(e,"lastColumn")||256&t)&&(r+=" last-col"),(o.default.boolAttr(e,"noHBand")||512&t)&&(r+=" no-hband"),(o.default.boolAttr(e,"noVBand")||1024&t)&&(r+=" no-vband"),r.trim()}}])}()},162:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CorePropsPart=void 0;var a=r(530),i=r(614),s=function(e){function t(){return f(this,t),n(this,t,arguments)}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.props=(0,i.parseCoreProps)(e,this._package.xmlParser)}}])}(a.Part);t.CorePropsPart=s},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCoreProps=void 0,t.parseCoreProps=function(e,t){var r,n={},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"title":n.title=i.textContent;break;case"description":n.description=i.textContent;break;case"subject":n.subject=i.textContent;break;case"creator":n.creator=i.textContent;break;case"keywords":n.keywords=i.textContent;break;case"language":n.language=i.textContent;break;case"lastModifiedBy":n.lastModifiedBy=i.textContent;break;case"revision":i.textContent&&(n.revision=parseInt(i.textContent))}}}catch(o){a.e(o)}finally{a.f()}return n}},177:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.CustomPropsPart=void 0;var a=r(530),i=r(821),s=function(e){function t(){return f(this,t),n(this,t,arguments)}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.props=(0,i.parseCustomProps)(e,this._package.xmlParser)}}])}(a.Part);t.CustomPropsPart=s},821:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCustomProps=void 0,t.parseCustomProps=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}}))}},665:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedPropsPart=void 0;var a=r(530),i=r(668),s=function(e){function t(){return f(this,t),n(this,t,arguments)}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.props=(0,i.parseExtendedProps)(e,this._package.xmlParser)}}])}(a.Part);t.ExtendedPropsPart=s},668:function(e,t){function r(e){if(void 0!==e)return parseInt(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.parseExtendedProps=void 0,t.parseExtendedProps=function(e,t){var n,a={},i=u(t.elements(e));try{for(i.s();!(n=i.n()).done;){var o=n.value;switch(o.localName){case"Template":a.template=o.textContent;break;case"Pages":a.pages=r(o.textContent);break;case"Words":a.words=r(o.textContent);break;case"Characters":a.characters=r(o.textContent);break;case"Application":a.application=o.textContent;break;case"Lines":a.lines=r(o.textContent);break;case"Paragraphs":a.paragraphs=r(o.textContent);break;case"Company":a.company=o.textContent;break;case"AppVersion":a.appVersion=o.textContent}}}catch(s){i.e(s)}finally{i.f()}return a}},172:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseBookmarkEnd=t.parseBookmarkStart=void 0;var n=r(120);t.parseBookmarkStart=function(e,t){return{type:n.DomType.BookmarkStart,id:t.attr(e,"id"),name:t.attr(e,"name"),colFirst:t.intAttr(e,"colFirst"),colLast:t.intAttr(e,"colLast")}},t.parseBookmarkEnd=function(e,t){return{type:n.DomType.BookmarkEnd,id:t.attr(e,"id")}}},191:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseBorders=t.parseBorder=void 0;var n=r(149);function a(e,t){return{type:t.attr(e,"val"),color:t.attr(e,"color"),size:t.lengthAttr(e,"sz",n.LengthUsage.Border),offset:t.lengthAttr(e,"space",n.LengthUsage.Point),frame:t.boolAttr(e,"frame"),shadow:t.boolAttr(e,"shadow")}}t.parseBorder=a,t.parseBorders=function(e,t){var r,n={},i=u(t.elements(e));try{for(i.s();!(r=i.n()).done;){var o=r.value;switch(o.localName){case"left":n.left=a(o,t);break;case"top":n.top=a(o,t);break;case"right":n.right=a(o,t);break;case"bottom":n.bottom=a(o,t)}}}catch(s){i.e(s)}finally{i.f()}return n}},149:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseCommonProperty=t.convertPercentage=t.convertBoolean=t.convertLength=t.LengthUsage=t.ns=void 0,t.ns={wordml:"http://schemas.openxmlformats.org/wordprocessingml/2006/main",drawingml:"http://schemas.openxmlformats.org/drawingml/2006/main",picture:"http://schemas.openxmlformats.org/drawingml/2006/picture",compatibility:"http://schemas.openxmlformats.org/markup-compatibility/2006",math:"http://schemas.openxmlformats.org/officeDocument/2006/math"},t.LengthUsage={Dxa:{mul:.05,unit:"pt"},Emu:{mul:1/12700,unit:"pt"},FontSize:{mul:.5,unit:"pt"},Border:{mul:.125,unit:"pt"},Point:{mul:1,unit:"pt"},Percent:{mul:.02,unit:"%"},LineHeight:{mul:1/240,unit:""},VmlEmu:{mul:1/12700,unit:""}},t.convertLength=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.LengthUsage.Dxa;return null==e||/.+(p[xt]|[%])$/.test(e)?e:"".concat((parseInt(e)*r.mul).toFixed(2)).concat(r.unit)},t.convertBoolean=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];switch(e){case"1":case"on":case"true":return!0;case"0":case"off":case"false":return!1;default:return t}},t.convertPercentage=function(e){return e?parseInt(e)/100:null},t.parseCommonProperty=function(e,r,n){if(e.namespaceURI!=t.ns.wordml)return!1;switch(e.localName){case"color":r.color=n.attr(e,"val");break;case"sz":r.fontSize=n.lengthAttr(e,"val",t.LengthUsage.FontSize);break;default:return!1}return!0}},448:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.DocumentPart=void 0;var a=function(e){function t(e,r,a){var i;return f(this,t),(i=n(this,t,[e,r]))._documentParser=a,i}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.body=this._documentParser.parseDocumentFile(e)}}])}(r(530).Part);t.DocumentPart=a},120:function(e,t){var r;Object.defineProperty(t,"__esModule",{value:!0}),t.DomType=void 0,(r=t.DomType||(t.DomType={})).Document="document",r.Paragraph="paragraph",r.Run="run",r.Break="break",r.NoBreakHyphen="noBreakHyphen",r.Table="table",r.Row="row",r.Cell="cell",r.Hyperlink="hyperlink",r.Drawing="drawing",r.Image="image",r.Text="text",r.Tab="tab",r.Symbol="symbol",r.BookmarkStart="bookmarkStart",r.BookmarkEnd="bookmarkEnd",r.Footer="footer",r.Header="header",r.FootnoteReference="footnoteReference",r.EndnoteReference="endnoteReference",r.Footnote="footnote",r.Endnote="endnote",r.SimpleField="simpleField",r.ComplexField="complexField",r.Instruction="instruction",r.VmlPicture="vmlPicture",r.MmlMath="mmlMath",r.MmlMathParagraph="mmlMathParagraph",r.MmlFraction="mmlFraction",r.MmlNumerator="mmlNumerator",r.MmlDenominator="mmlDenominator",r.MmlRadical="mmlRadical",r.MmlBase="mmlBase",r.MmlDegree="mmlDegree",r.MmlSuperscript="mmlSuperscript",r.MmlSubscript="mmlSubscript",r.MmlSubArgument="mmlSubArgument",r.MmlSuperArgument="mmlSuperArgument",r.MmlNary="mmlNary",r.MmlDelimiter="mmlDelimiter",r.VmlElement="vmlElement",r.Inserted="inserted",r.Deleted="deleted",r.DeletedText="deletedText"},931:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseLineSpacing=void 0,t.parseLineSpacing=function(e,t){return{before:t.lengthAttr(e,"before"),after:t.lengthAttr(e,"after"),line:t.intAttr(e,"line"),lineRule:t.attr(e,"lineRule")}}},109:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumbering=t.parseTabs=t.parseParagraphProperty=t.parseParagraphProperties=void 0;var n=r(149),a=r(59),i=r(931),o=r(488);function s(e,t,r){if(e.namespaceURI!=n.ns.wordml)return!1;if((0,n.parseCommonProperty)(e,t,r))return!0;switch(e.localName){case"tabs":t.tabs=l(e,r);break;case"sectPr":t.sectionProps=(0,a.parseSectionProperties)(e,r);break;case"numPr":t.numbering=c(e,r);break;case"spacing":return t.lineSpacing=(0,i.parseLineSpacing)(e,r),!1;case"textAlignment":return t.textAlignment=r.attr(e,"val"),!1;case"keepNext":t.keepLines=r.boolAttr(e,"val",!0);break;case"keepNext":t.keepNext=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=(0,o.parseRunProperties)(e,r);break;default:return!1}return!0}function l(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")}}))}function c(e,t){var r,n={},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"numId":n.id=t.attr(i,"val");break;case"ilvl":n.level=t.intAttr(i,"val")}}}catch(o){a.e(o)}finally{a.f()}return n}t.parseParagraphProperties=function(e,t){var r,n={},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;)s(r.value,n,t)}catch(i){a.e(i)}finally{a.f()}return n},t.parseParagraphProperty=s,t.parseTabs=l,t.parseNumbering=c},488:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseRunProperty=t.parseRunProperties=void 0;var n=r(149);function a(e,t,r){return!!(0,n.parseCommonProperty)(e,t,r)}t.parseRunProperties=function(e,t){var r,n={},i=u(t.elements(e));try{for(i.s();!(r=i.n()).done;)a(r.value,n,t)}catch(o){i.e(o)}finally{i.f()}return n},t.parseRunProperty=a},59:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseSectionProperties=t.SectionType=void 0;var n,a=r(472),i=r(191);function o(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 s(e,t){return{chapSep:t.attr(e,"chapSep"),chapStyle:t.attr(e,"chapStyle"),format:t.attr(e,"fmt"),start:t.intAttr(e,"start")}}function l(e,t){return{id:t.attr(e,"id"),type:t.attr(e,"type")}}(n=t.SectionType||(t.SectionType={})).Continuous="continuous",n.NextPage="nextPage",n.NextColumn="nextColumn",n.EvenPage="evenPage",n.OddPage="oddPage",t.parseSectionProperties=function(e){var t,r,n,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default,h={},d=u(c.elements(e));try{for(d.s();!(n=d.n()).done;){var f=n.value;switch(f.localName){case"pgSz":h.pageSize={width:c.lengthAttr(f,"w"),height:c.lengthAttr(f,"h"),orientation:c.attr(f,"orient")};break;case"type":h.type=c.attr(f,"val");break;case"pgMar":h.pageMargins={left:c.lengthAttr(f,"left"),right:c.lengthAttr(f,"right"),top:c.lengthAttr(f,"top"),bottom:c.lengthAttr(f,"bottom"),header:c.lengthAttr(f,"header"),footer:c.lengthAttr(f,"footer"),gutter:c.lengthAttr(f,"gutter")};break;case"cols":h.columns=o(f,c);break;case"headerReference":(null!==(t=h.headerRefs)&&void 0!==t?t:h.headerRefs=[]).push(l(f,c));break;case"footerReference":(null!==(r=h.footerRefs)&&void 0!==r?r:h.footerRefs=[]).push(l(f,c));break;case"titlePg":h.titlePage=c.boolAttr(f,"val",!0);break;case"pgBorders":h.pageBorders=(0,i.parseBorders)(f,c);break;case"pgNumType":h.pageNumber=s(f,c)}}}catch(p){d.e(p)}finally{d.f()}return h}},667:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.renderAsync=t.praseAsync=t.defaultOptions=void 0;var n=r(213),a=r(168),i=r(932);t.defaultOptions={ignoreHeight:!1,ignoreWidth:!1,ignoreFonts:!1,breakPages:!0,debug:!1,experimental:!1,className:"docx",inWrapper:!0,trimXmlDeclaration:!0,ignoreLastRenderedPageBreak:!0,renderHeaders:!0,renderFooters:!0,renderFootnotes:!0,renderEndnotes:!0,useBase64URL:!1,useMathMLPolyfill:!1,renderChanges:!1},t.praseAsync=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=Object.assign(Object.assign({},t.defaultOptions),r);return n.WordDocument.load(e,new a.DocumentParser(i),i)},t.renderAsync=function(e,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=Object.assign(Object.assign({},t.defaultOptions),s),u=new i.HtmlRenderer(window.document);return n.WordDocument.load(e,new a.DocumentParser(l),l).then((function(e){return u.render(e,r,o,l),e}))}},380:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FontTablePart=void 0;var a=r(530),i=r(512),s=function(e){function t(){return f(this,t),n(this,t,arguments)}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.fonts=(0,i.parseFonts)(e,this._package.xmlParser)}}])}(a.Part);t.FontTablePart=s},512:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseEmbedFontRef=t.parseFont=t.parseFonts=void 0;var r={embedRegular:"regular",embedBold:"bold",embedItalic:"italic",embedBoldItalic:"boldItalic"};function n(e,t){var r,n={name:t.attr(e,"name"),embedFontRefs:[]},i=u(t.elements(e));try{for(i.s();!(r=i.n()).done;){var o=r.value;switch(o.localName){case"family":n.family=t.attr(o,"val");break;case"altName":n.altName=t.attr(o,"val");break;case"embedRegular":case"embedBold":case"embedItalic":case"embedBoldItalic":n.embedFontRefs.push(a(o,t))}}}catch(s){i.e(s)}finally{i.f()}return n}function a(e,t){return{id:t.attr(e,"id"),key:t.attr(e,"fontKey"),type:r[e.localName]}}t.parseFonts=function(e,t){return t.elements(e).map((function(e){return n(e,t)}))},t.parseFont=n,t.parseEmbedFontRef=a},984:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.WmlFooter=t.WmlHeader=void 0;var n=r(120);t.WmlHeader=function(){function e(){f(this,e),this.type=n.DomType.Header,this.children=[],this.cssStyle={}}return m(e)}(),t.WmlFooter=function(){function e(){f(this,e),this.type=n.DomType.Footer,this.children=[],this.cssStyle={}}return m(e)}()},985:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.FooterPart=t.HeaderPart=t.BaseHeaderFooterPart=void 0;var a=r(530),i=r(984),s=function(e){function t(e,r,a){var i;return f(this,t),(i=n(this,t,[e,r]))._documentParser=a,i}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.rootElement=this.createRootElement(),this.rootElement.children=this._documentParser.parseBodyElements(e)}}])}(a.Part);t.BaseHeaderFooterPart=s,t.HeaderPart=function(e){function t(){return f(this,t),n(this,t,arguments)}return o(t,e),m(t,[{key:"createRootElement",value:function(){return new i.WmlHeader}}])}(s),t.FooterPart=function(e){function t(){return f(this,t),n(this,t,arguments)}return o(t,e),m(t,[{key:"createRootElement",value:function(){return new i.WmlFooter}}])}(s)},932:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.HtmlRenderer=void 0;var n=r(120),a=r(593),i=r(630),o=r(438),s="http://www.w3.org/1998/Math/MathML";function h(e,t,r){return p(void 0,e,t,r)}function d(e,t,r){return p("http://www.w3.org/2000/svg",e,t,r)}function p(e,t,r,n){var a=e?document.createElementNS(e,t):document.createElement(t);return Object.assign(a,r),n&&y(a,n),a}function v(e){e.innerHTML=""}function y(e,t){t.forEach((function(t){return e.appendChild((0,a.isString)(t)?document.createTextNode(t):t)}))}function g(e){return h("style",{innerHTML:e})}function b(e,t){e.appendChild(document.createComment(t))}t.HtmlRenderer=function(){function e(t){f(this,e),this.htmlDocument=t,this.className="docx",this.styleMap={},this.currentPart=null,this.tableVerticalMerges=[],this.currentVerticalMerge=null,this.tableCellPositions=[],this.currentCellPosition=null,this.footnoteMap={},this.endnoteMap={},this.currentEndnoteIds=[],this.usedHederFooterParts=[],this.currentTabs=[],this.tabsTimeout=0,this.createElement=h}return m(e,[{key:"render",value:function(e,t){var r,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;this.document=e,this.options=i,this.className=i.className,this.rootSelector=i.inWrapper?".".concat(this.className,"-wrapper"):":root",this.styleMap=null,v(n=n||t),v(t),b(n,"docxjs library predefined styles"),n.appendChild(this.renderDefaultStyle()),!window.MathMLElement&&i.useMathMLPolyfill&&(b(n,"docxjs mathml polyfill styles"),n.appendChild(g(o.default))),e.themePart&&(b(n,"docxjs document theme values"),this.renderTheme(e.themePart,n)),null!=e.stylesPart&&(this.styleMap=this.processStyles(e.stylesPart.styles),b(n,"docxjs document styles"),n.appendChild(this.renderStyles(e.stylesPart.styles))),e.numberingPart&&(this.prodessNumberings(e.numberingPart.domNumberings),b(n,"docxjs document numbering styles"),n.appendChild(this.renderNumbering(e.numberingPart.domNumberings,n))),e.footnotesPart&&(this.footnoteMap=(0,a.keyBy)(e.footnotesPart.notes,(function(e){return e.id}))),e.endnotesPart&&(this.endnoteMap=(0,a.keyBy)(e.endnotesPart.notes,(function(e){return e.id}))),e.settingsPart&&(this.defaultTabSize=null===(r=e.settingsPart.settings)||void 0===r?void 0:r.defaultTabStop),!i.ignoreFonts&&e.fontTablePart&&this.renderFontTable(e.fontTablePart,n);var s=this.renderSections(e.documentPart.body);this.options.inWrapper?t.appendChild(this.renderWrapper(s)):y(t,s),this.refreshTabStops()}},{key:"renderTheme",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=c(l[s],2),h=u[0],d=u[1];a["--docx-".concat(h,"-color")]="#".concat(d)}var f=this.styleToString(".".concat(this.className),a);t.appendChild(g(f))}},{key:"renderFontTable",value:function(e,t){var r,n=this,a=u(e.fonts);try{var i=function(){var e,a=r.value,i=u(a.embedFontRefs);try{var o=function(){var r=e.value;n.document.loadFont(r.id,r.key).then((function(e){var i={"font-family":a.name,src:"url(".concat(e,")")};"bold"!=r.type&&"boldItalic"!=r.type||(i["font-weight"]="bold"),"italic"!=r.type&&"boldItalic"!=r.type||(i["font-style"]="italic"),b(t,"docxjs ".concat(a.name," font"));var o=n.styleToString("@font-face",i);t.appendChild(g(o)),n.refreshTabStops()}))};for(i.s();!(e=i.n()).done;)o()}catch(s){i.e(s)}finally{i.f()}};for(a.s();!(r=a.n()).done;)i()}catch(o){a.e(o)}finally{a.f()}}},{key:"processStyleName",value:function(e){return e?"".concat(this.className,"_").concat((0,a.escapeClassName)(e)):this.className}},{key:"processStyles",value:function(e){var t,r=this,n=(0,a.keyBy)(e.filter((function(e){return null!=e.id})),(function(e){return e.id})),i=u(e.filter((function(e){return e.basedOn})));try{for(i.s();!(t=i.n()).done;){var o=t.value,s=n[o.basedOn];if(s){o.paragraphProps=(0,a.mergeDeep)(o.paragraphProps,s.paragraphProps),o.runProps=(0,a.mergeDeep)(o.runProps,s.runProps);var l,c=u(s.styles);try{var h=function(){var e=l.value,t=o.styles.find((function(t){return t.target==e.target}));t?r.copyStyleProperties(e.values,t.values):o.styles.push(Object.assign(Object.assign({},e),{values:Object.assign({},e.values)}))};for(c.s();!(l=c.n()).done;)h()}catch(m){c.e(m)}finally{c.f()}}else this.options.debug&&console.warn("Can't find base style ".concat(o.basedOn))}}catch(m){i.e(m)}finally{i.f()}var d,f=u(e);try{for(f.s();!(d=f.n()).done;){var p=d.value;p.cssName=this.processStyleName(p.id)}}catch(m){f.e(m)}finally{f.f()}return n}},{key:"prodessNumberings",value:function(e){var t,r,n=u(e.filter((function(e){return e.pStyleName})));try{for(n.s();!(r=n.n()).done;){var a=r.value,i=this.findStyle(a.pStyleName);(null===(t=null==i?void 0:i.paragraphProps)||void 0===t?void 0:t.numbering)&&(i.paragraphProps.numbering.level=a.level)}}catch(o){n.e(o)}finally{n.f()}}},{key:"processElement",value:function(e){if(e.children){var t,r=u(e.children);try{for(r.s();!(t=r.n()).done;){var a=t.value;a.parent=e,a.type==n.DomType.Table?this.processTable(a):this.processElement(a)}}catch(i){r.e(i)}finally{r.f()}}}},{key:"processTable",value:function(e){var t,r=u(e.children);try{for(r.s();!(t=r.n()).done;){var n,a=u(t.value.children);try{for(a.s();!(n=a.n()).done;){var i=n.value;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)}}catch(o){a.e(o)}finally{a.f()}}}catch(o){r.e(o)}finally{r.f()}}},{key:"copyStyleProperties",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e)return t;var n,a=u((null==t&&(t={}),null==r&&(r=Object.getOwnPropertyNames(e)),r));try{for(a.s();!(n=a.n()).done;){var i=n.value;e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}}catch(o){a.e(o)}finally{a.f()}return t}},{key:"createSection",value:function(e,t){var r=this.createElement("section",{className:e});return t&&(t.pageMargins&&(r.style.paddingLeft=t.pageMargins.left,r.style.paddingRight=t.pageMargins.right,r.style.paddingTop=t.pageMargins.top,r.style.paddingBottom=t.pageMargins.bottom),t.pageSize&&(this.options.ignoreWidth||(r.style.width=t.pageSize.width),this.options.ignoreHeight||(r.style.minHeight=t.pageSize.height)),t.columns&&t.columns.numberOfColumns&&(r.style.columnCount="".concat(t.columns.numberOfColumns),r.style.columnGap=t.columns.space,t.columns.separator&&(r.style.columnRule="1px solid black"))),r}},{key:"renderSections",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,s);this.renderStyleValues(e.cssStyle,l),this.options.renderHeaders&&this.renderHeaderFooter(s.headerRefs,s,t.length,n!=s,l);var u=this.createElement("article");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}},{key:"renderHeaderFooter",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)}}},{key:"isPageBreakElement",value:function(e){return e.type==n.DomType.Break&&("lastRenderedPageBreak"==e.break?!this.options.ignoreLastRenderedPageBreak:"page"==e.break)}},{key:"splitBySection",value:function(e){var t,r,a=this,i={sectProps:null,elements:[]},o=[i],s=u(e);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(l.type==n.DomType.Paragraph){var c=this.findStyle(l.styleName);(null===(t=null==c?void 0:c.paragraphProps)||void 0===t?void 0:t.pageBreakBefore)&&(i.sectProps=d,i={sectProps:null,elements:[]},o.push(i))}if(i.elements.push(l),l.type==n.DomType.Paragraph){var h=l,d=h.sectionProps,f=-1,p=-1;if(this.options.breakPages&&h.children&&(f=h.children.findIndex((function(e){var t,r;return-1!=(p=null!==(r=null===(t=e.children)||void 0===t?void 0:t.findIndex(a.isPageBreakElement.bind(a)))&&void 0!==r?r:-1)}))),(d||-1!=f)&&(i.sectProps=d,i={sectProps:null,elements:[]},o.push(i)),-1!=f){var m=h.children[f],v=p<m.children.length-1;if(f<h.children.length-1||v){var y=l.children,g=Object.assign(Object.assign({},l),{children:y.slice(f)});if(l.children=y.slice(0,f),i.elements.push(g),v){var b=m.children,k=Object.assign(Object.assign({},m),{children:b.slice(0,p)});l.children.push(k),m.children=b.slice(p)}}}}}}catch(x){s.e(x)}finally{s.f()}for(var _=null,w=o.length-1;w>=0;w--)null==o[w].sectProps?o[w].sectProps=_:_=o[w].sectProps;return o}},{key:"renderWrapper",value:function(e){return this.createElement("div",{className:"".concat(this.className,"-wrapper")},e)}},{key:"renderDefaultStyle",value:function(){var e=this.className;return g("\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"))}},{key:"renderNumbering",value:function(e,t){var r,n=this,a="",i=[],o=u(e);try{var s,l,c,h=function(){if(s=r.value,l="p.".concat(n.numberingClass(s.id,s.level)),c="none",s.bullet){var e="--".concat(n.className,"-").concat(s.bullet.src).toLowerCase();a+=n.styleToString("".concat(l,":before"),{content:"' '",display:"inline-block",background:"var(".concat(e,")")},s.bullet.style),n.document.loadNumberingImage(s.bullet.src).then((function(r){var a="".concat(n.rootSelector," { ").concat(e,": url(").concat(r,") }");t.appendChild(g(a))}))}else if(s.levelText){var o=n.numberingCounter(s.id,s.level);s.level>0?a+=n.styleToString("p.".concat(n.numberingClass(s.id,s.level-1)),{"counter-reset":o}):i.push(o),a+=n.styleToString("".concat(l,":before"),Object.assign({content:n.levelTextToContent(s.levelText,s.suff,s.id,n.numFormatToCssValue(s.format)),"counter-increment":o},s.rStyle))}else c=n.numFormatToCssValue(s.format);a+=n.styleToString(l,Object.assign({display:"list-item","list-style-position":"inside","list-style-type":c},s.pStyle))};for(o.s();!(r=o.n()).done;)h()}catch(d){o.e(d)}finally{o.f()}return i.length>0&&(a+=this.styleToString(this.rootSelector,{"counter-reset":i.join(" ")})),g(a)}},{key:"renderStyles",value:function(e){var t,r,n="",i=this.styleMap,o=(0,a.keyBy)(e.filter((function(e){return e.isDefault})),(function(e){return e.target})),s=u(e);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=l.styles;if(l.linked){var h=l.linked&&i[l.linked];h?c=c.concat(h.styles):this.options.debug&&console.warn("Can't find linked style ".concat(l.linked))}var d,f=u(c);try{for(f.s();!(d=f.n()).done;){var p=d.value,m="".concat(null!==(t=l.target)&&void 0!==t?t:"",".").concat(l.cssName);l.target!=p.target&&(m+=" ".concat(p.target)),o[l.target]==l&&(m=".".concat(this.className," ").concat(l.target,", ")+m),n+=this.styleToString(m,p.values)}}catch(v){f.e(v)}finally{f.f()}}}catch(v){s.e(v)}finally{s.f()}return g(n)}},{key:"renderNotes",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)}}},{key:"renderElement",value:function(e){switch(e.type){case n.DomType.Paragraph:return this.renderParagraph(e);case n.DomType.BookmarkStart:return this.renderBookmarkStart(e);case n.DomType.BookmarkEnd:return null;case n.DomType.Run:return this.renderRun(e);case n.DomType.Table:return this.renderTable(e);case n.DomType.Row:return this.renderTableRow(e);case n.DomType.Cell:return this.renderTableCell(e);case n.DomType.Hyperlink:return this.renderHyperlink(e);case n.DomType.Drawing:return this.renderDrawing(e);case n.DomType.Image:return this.renderImage(e);case n.DomType.Text:case n.DomType.Text:return this.renderText(e);case n.DomType.DeletedText:return this.renderDeletedText(e);case n.DomType.Tab:return this.renderTab(e);case n.DomType.Symbol:return this.renderSymbol(e);case n.DomType.Break:return this.renderBreak(e);case n.DomType.Footer:return this.renderContainer(e,"footer");case n.DomType.Header:return this.renderContainer(e,"header");case n.DomType.Footnote:case n.DomType.Endnote:return this.renderContainer(e,"li");case n.DomType.FootnoteReference:return this.renderFootnoteReference(e);case n.DomType.EndnoteReference:return this.renderEndnoteReference(e);case n.DomType.NoBreakHyphen:return this.createElement("wbr");case n.DomType.VmlPicture:return this.renderVmlPicture(e);case n.DomType.VmlElement:return this.renderVmlElement(e);case n.DomType.MmlMath:return this.renderContainerNS(e,s,"math",{xmlns:s});case n.DomType.MmlMathParagraph:return this.renderContainer(e,"span");case n.DomType.MmlFraction:return this.renderContainerNS(e,s,"mfrac");case n.DomType.MmlNumerator:case n.DomType.MmlDenominator:return this.renderContainerNS(e,s,"mrow");case n.DomType.MmlRadical:return this.renderMmlRadical(e);case n.DomType.MmlDegree:return this.renderContainerNS(e,s,"mn");case n.DomType.MmlSuperscript:return this.renderContainerNS(e,s,"msup");case n.DomType.MmlSubscript:return this.renderContainerNS(e,s,"msub");case n.DomType.MmlBase:return this.renderContainerNS(e,s,"mrow");case n.DomType.MmlSuperArgument:case n.DomType.MmlSubArgument:return this.renderContainerNS(e,s,"mn");case n.DomType.MmlDelimiter:return this.renderMmlDelimiter(e);case n.DomType.MmlNary:return this.renderMmlNary(e);case n.DomType.Inserted:return this.renderInserted(e);case n.DomType.Deleted:return this.renderDeleted(e)}return null}},{key:"renderChildren",value:function(e,t){return this.renderElements(e.children,t)}},{key:"renderElements",value:function(e,t){var r=this;if(null==e)return null;var n=e.flatMap((function(e){return r.renderElement(e)})).filter((function(e){return null!=e}));return t&&y(t,n),n}},{key:"renderContainer",value:function(e,t,r){return this.createElement(t,r,this.renderChildren(e))}},{key:"renderContainerNS",value:function(e,t,r,n){return p(t,r,n,this.renderChildren(e))}},{key:"renderParagraph",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;return s&&i.classList.add(this.numberingClass(s.id,s.level)),i}},{key:"renderRunProperties",value:function(e,t){this.renderCommonProperties(e,t)}},{key:"renderCommonProperties",value:function(e,t){null!=t&&(t.color&&(e.color=t.color),t.fontSize&&(e["font-size"]=t.fontSize))}},{key:"renderHyperlink",value:function(e){var t=this.createElement("a");if(this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.href)t.href=e.href;else if(e.id){var r=this.document.documentPart.rels.find((function(t){return t.id==e.id&&"External"===t.targetMode}));t.href=null==r?void 0:r.target}return t}},{key:"renderDrawing",value:function(e){var t=this.createElement("div");return t.style.display="inline-block",t.style.position="relative",t.style.textIndent="0px",this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),t}},{key:"renderImage",value:function(e){var t=this.createElement("img");return this.renderStyleValues(e.cssStyle,t),this.document&&this.document.loadDocumentImage(e.src,this.currentPart).then((function(e){t.src=e})),t}},{key:"renderText",value:function(e){return this.htmlDocument.createTextNode(e.text)}},{key:"renderDeletedText",value:function(e){return this.options.renderEndnotes?this.htmlDocument.createTextNode(e.text):null}},{key:"renderBreak",value:function(e){return"textWrapping"==e.break?this.createElement("br"):null}},{key:"renderInserted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"ins"):this.renderChildren(e)}},{key:"renderDeleted",value:function(e){return this.options.renderChanges?this.renderContainer(e,"del"):null}},{key:"renderSymbol",value:function(e){var t=this.createElement("span");return t.style.fontFamily=e.font,t.innerHTML="&#x".concat(e.char,";"),t}},{key:"renderFootnoteReference",value:function(e){var t=this.createElement("sup");return this.currentFootnoteIds.push(e.id),t.textContent="".concat(this.currentFootnoteIds.length),t}},{key:"renderEndnoteReference",value:function(e){var t=this.createElement("sup");return this.currentEndnoteIds.push(e.id),t.textContent="".concat(this.currentEndnoteIds.length),t}},{key:"renderTab",value:function(e){var t,r=this.createElement("span");if(r.innerHTML="&emsp;",this.options.experimental){r.className=this.tabStopClass();var a=null===(t=function(e,t){for(var r=e.parent;null!=r&&r.type!=t;)r=r.parent;return r}(e,n.DomType.Paragraph))||void 0===t?void 0:t.tabs;this.currentTabs.push({stops:a,span:r})}return r}},{key:"renderBookmarkStart",value:function(e){var t=this.createElement("span");return t.id=e.name,t}},{key:"renderRun",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}},{key:"renderTable",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)),this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),this.currentVerticalMerge=this.tableVerticalMerges.pop(),this.currentCellPosition=this.tableCellPositions.pop(),t}},{key:"renderTableColumns",value:function(e){var t,r=this.createElement("colgroup"),n=u(e);try{for(n.s();!(t=n.n()).done;){var a=t.value,i=this.createElement("col");a.width&&(i.style.width=a.width),r.appendChild(i)}}catch(o){n.e(o)}finally{n.f()}return r}},{key:"renderTableRow",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}},{key:"renderTableCell",value:function(e){var t=this.createElement("td"),r=this.currentCellPosition.col;return e.verticalMerge?"restart"==e.verticalMerge?(this.currentVerticalMerge[r]=t,t.rowSpan=1):this.currentVerticalMerge[r]&&(this.currentVerticalMerge[r].rowSpan+=1,t.style.display="none"):this.currentVerticalMerge[r]=null,this.renderClass(e,t),this.renderChildren(e,t),this.renderStyleValues(e.cssStyle,t),e.span&&(t.colSpan=e.span),this.currentCellPosition.col+=t.colSpan,t}},{key:"renderVmlPicture",value:function(e){var t=h("div");return this.renderChildren(e,t),t}},{key:"renderVmlElement",value:function(e){var t,r,n=d("svg");n.setAttribute("style",e.cssStyleText);var a=d(e.tagName);return Object.entries(e.attrs).forEach((function(e){var t=c(e,2),r=t[0],n=t[1];return a.setAttribute(r,n)})),(null===(t=e.imageHref)||void 0===t?void 0:t.id)&&(null===(r=this.document)||void 0===r||r.loadDocumentImage(e.imageHref.id,this.currentPart).then((function(e){return a.setAttribute("href",e)}))),n.appendChild(a),setTimeout((function(){var e=n.firstElementChild.getBBox();n.setAttribute("width","".concat(Math.ceil(e.x+e.width))),n.setAttribute("height","".concat(Math.ceil(e.y+e.height)))}),0),n}},{key:"renderMmlRadical",value:function(e){var t,r=e.children.find((function(e){return e.type==n.DomType.MmlBase}));if(null===(t=e.props)||void 0===t?void 0:t.hideDegree)return p(s,"msqrt",null,this.renderElements([r]));var a=e.children.find((function(e){return e.type==n.DomType.MmlDegree}));return p(s,"mroot",null,this.renderElements([r,a]))}},{key:"renderMmlDelimiter",value:function(e){var t,r,n=[];return n.push(p(s,"mo",null,[null!==(t=e.props.beginChar)&&void 0!==t?t:"("])),n.push.apply(n,l(this.renderElements(e.children))),n.push(p(s,"mo",null,[null!==(r=e.props.endChar)&&void 0!==r?r:")"])),p(s,"mrow",null,n)}},{key:"renderMmlNary",value:function(e){var t,r=[],i=(0,a.keyBy)(e.children,(function(e){return e.type})),o=i[n.DomType.MmlSuperArgument],u=i[n.DomType.MmlSubArgument],c=o?p(s,"mo",null,(0,a.asArray)(this.renderElement(o))):null,h=u?p(s,"mo",null,(0,a.asArray)(this.renderElement(u))):null;if(null===(t=e.props)||void 0===t?void 0:t.char){var d=p(s,"mo",null,[e.props.char]);c||h?r.push(p(s,"munderover",null,[d,h,c])):c?r.push(p(s,"mover",null,[d,c])):h?r.push(p(s,"munder",null,[d,h])):r.push(d)}return r.push.apply(r,l(this.renderElements(i[n.DomType.MmlBase].children))),p(s,"mrow",null,r)}},{key:"renderStyleValues",value:function(e,t){Object.assign(t.style,e)}},{key:"renderClass",value:function(e,t){e.className&&(t.className=e.className),e.styleName&&t.classList.add(this.processStyleName(e.styleName))}},{key:"findStyle",value:function(e){var t;return e&&(null===(t=this.styleMap)||void 0===t?void 0:t[e])}},{key:"numberingClass",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"tabStopClass",value:function(){return"".concat(this.className,"-tab-stop")}},{key:"styleToString",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,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"}},{key:"numberingCounter",value:function(e,t){return"".concat(this.className,"-num-").concat(e,"-").concat(t)}},{key:"levelTextToContent",value:function(e,t,r,n){var a,i=this;return'"'.concat(e.replace(/%\d*/g,(function(e){var t=parseInt(e.substring(1),10)-1;return'"counter('.concat(i.numberingCounter(r,t),", ").concat(n,')"')}))).concat(null!==(a={tab:"\\9",space:"\\a0"}[t])&&void 0!==a?a:"",'"')}},{key:"numFormatToCssValue",value:function(e){return{none:"none",bullet:"disc",decimal:"decimal",lowerLetter:"lower-alpha",upperLetter:"upper-alpha",lowerRoman:"lower-roman",upperRoman:"upper-roman"}[e]||e}},{key:"refreshTabStops",value:function(){var e=this;this.options.experimental&&(clearTimeout(this.tabsTimeout),this.tabsTimeout=setTimeout((function(){var t,r=(0,i.computePixelToPoint)(),n=u(e.currentTabs);try{for(n.s();!(t=n.n()).done;){var a=t.value;(0,i.updateTabStop)(a.span,a.stops,e.defaultTabSize,r)}}catch(o){n.e(o)}finally{n.f()}}),500))}}])}()},630:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.updateTabStop=t.computePixelToPoint=void 0;var r={pos:0,leader:"none",style:"left"};function n(e){return parseFloat(e)}t.computePixelToPoint=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,t=document.createElement("div");t.style.width="100pt",e.appendChild(t);var r=100/t.offsetWidth;return e.removeChild(t),r},t.updateTabStop=function(e,t,a){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.75,o=e.closest("p"),s=e.getBoundingClientRect(),l=o.getBoundingClientRect(),u=getComputedStyle(o),c=(null==t?void 0:t.length)>0?t.map((function(e){return{pos:n(e.position),leader:e.leader,style:e.style}})).sort((function(e,t){return e.pos-t.pos})):[r],h=c[c.length-1],d=l.width*i,f=n(a),p=h.pos+f;if(p<d)for(;p<d&&c.length<50;p+=f)c.push(Object.assign(Object.assign({},r),{pos:p}));var m=parseFloat(u.marginLeft),v=l.left+m,y=(s.left-v)*i,g=c.find((function(e){return"clear"!=e.style&&e.pos>y}));if(null!=g){var b=1;if("right"==g.style||"center"==g.style){var k=Array.from(o.querySelectorAll(".".concat(e.className))),_=k.indexOf(e)+1,w=document.createRange();w.setStart(e,1),_<k.length?w.setEndBefore(k[_]):w.setEndAfter(o);var x="center"==g.style?.5:1,S=w.getBoundingClientRect(),A=S.left+x*S.width-(l.left-m);b=g.pos-A*i}else b=g.pos-y;switch(e.innerHTML="&nbsp;",e.style.textDecoration="inherit",e.style.wordSpacing="".concat(b.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"}}}},881:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.WmlEndnote=t.WmlFootnote=t.WmlBaseNote=void 0;var a=r(120),i=m((function e(){f(this,e),this.children=[],this.cssStyle={}}));t.WmlBaseNote=i,t.WmlFootnote=function(e){function t(){var e;return f(this,t),(e=n(this,t,arguments)).type=a.DomType.Footnote,e}return o(t,e),m(t)}(i),t.WmlEndnote=function(e){function t(){var e;return f(this,t),(e=n(this,t,arguments)).type=a.DomType.Endnote,e}return o(t,e),m(t)}(i)},735:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.EndnotesPart=t.FootnotesPart=t.BaseNotePart=void 0;var a=r(530),i=r(881),s=function(e){function t(e,r,a){var i;return f(this,t),(i=n(this,t,[e,r]))._documentParser=a,i}return o(t,e),m(t)}(a.Part);t.BaseNotePart=s,t.FootnotesPart=function(e){function t(e,r,a){return f(this,t),n(this,t,[e,r,a])}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"footnote",i.WmlFootnote)}}])}(s),t.EndnotesPart=function(e){function t(e,r,a){return f(this,t),n(this,t,[e,r,a])}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.notes=this._documentParser.parseNotes(e,"endnote",i.WmlEndnote)}}])}(s)},527:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.NumberingPart=void 0;var a=r(530),i=r(682),s=function(e){function t(e,r,a){var i;return f(this,t),(i=n(this,t,[e,r]))._documentParser=a,i}return o(t,e),m(t,[{key:"parseXml",value:function(e){Object.assign(this,(0,i.parseNumberingPart)(e,this._package.xmlParser)),this.domNumberings=this._documentParser.parseNumberingFile(e)}}])}(a.Part);t.NumberingPart=s},682:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseNumberingBulletPicture=t.parseNumberingLevelOverrride=t.parseNumberingLevel=t.parseAbstractNumbering=t.parseNumbering=t.parseNumberingPart=void 0;var n=r(109),a=r(488);function i(e,t){var r,n={id:t.attr(e,"numId"),overrides:[]},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"abstractNumId":n.abstractId=t.attr(i,"val");break;case"lvlOverride":n.overrides.push(l(i,t))}}}catch(o){a.e(o)}finally{a.f()}return n}function o(e,t){var r,n={id:t.attr(e,"abstractNumId"),levels:[]},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"name":n.name=t.attr(i,"val");break;case"multiLevelType":n.multiLevelType=t.attr(i,"val");break;case"numStyleLink":n.numberingStyleLink=t.attr(i,"val");break;case"styleLink":n.styleLink=t.attr(i,"val");break;case"lvl":n.levels.push(s(i,t))}}}catch(o){a.e(o)}finally{a.f()}return n}function s(e,t){var r,i={level:t.intAttr(e,"ilvl")},o=u(t.elements(e));try{for(o.s();!(r=o.n()).done;){var s=r.value;switch(s.localName){case"start":i.start=t.attr(s,"val");break;case"lvlRestart":i.restart=t.intAttr(s,"val");break;case"numFmt":i.format=t.attr(s,"val");break;case"lvlText":i.text=t.attr(s,"val");break;case"lvlJc":i.justification=t.attr(s,"val");break;case"lvlPicBulletId":i.bulletPictureId=t.attr(s,"val");break;case"pStyle":i.paragraphStyle=t.attr(s,"val");break;case"pPr":i.paragraphProps=(0,n.parseParagraphProperties)(s,t);break;case"rPr":i.runProps=(0,a.parseRunProperties)(s,t)}}}catch(l){o.e(l)}finally{o.f()}return i}function l(e,t){var r,n={level:t.intAttr(e,"ilvl")},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"startOverride":n.start=t.intAttr(i,"val");break;case"lvl":n.numberingLevel=s(i,t)}}}catch(o){a.e(o)}finally{a.f()}return n}function c(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}t.parseNumberingPart=function(e,t){var r,n={numberings:[],abstractNumberings:[],bulletPictures:[]},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var s=r.value;switch(s.localName){case"num":n.numberings.push(i(s,t));break;case"abstractNum":n.abstractNumberings.push(o(s,t));break;case"numPicBullet":n.bulletPictures.push(c(s,t))}}}catch(l){a.e(l)}finally{a.f()}return n},t.parseNumbering=i,t.parseAbstractNumbering=o,t.parseNumberingLevel=s,t.parseNumberingLevelOverrride=l,t.parseNumberingBulletPicture=c},472:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.XmlParser=t.serializeXmlString=t.parseXmlString=void 0;var n=r(149);t.parseXmlString=function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(e=e.replace(/<[?].*[?]>/,""));var t,r=(new DOMParser).parseFromString(e,"application/xml"),n=null===(t=r.getElementsByTagName("parsererror")[0])||void 0===t?void 0:t.textContent;if(n)throw new Error(n);return r},t.serializeXmlString=function(e){return(new XMLSerializer).serializeToString(e)};var a=function(){function e(){f(this,e)}return m(e,[{key:"elements",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,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}},{key:"element",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}},{key:"elementAttr",value:function(e,t,r){var n=this.element(e,t);return n?this.attr(n,r):void 0}},{key:"attrs",value:function(e){return Array.from(e.attributes)}},{key:"attr",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}},{key:"intAttr",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.attr(e,t);return n?parseInt(n):r}},{key:"hexAttr",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.attr(e,t);return n?parseInt(n,16):r}},{key:"floatAttr",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=this.attr(e,t);return n?parseFloat(n):r}},{key:"boolAttr",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return(0,n.convertBoolean)(this.attr(e,t),r)}},{key:"lengthAttr",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.LengthUsage.Dxa;return(0,n.convertLength)(this.attr(e,t),r)}}])}();t.XmlParser=a;var i=new a;t.default=i},287:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.SettingsPart=void 0;var a=r(530),i=r(846),s=function(e){function t(e,r){return f(this,t),n(this,t,[e,r])}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.settings=(0,i.parseSettings)(e,this._package.xmlParser)}}])}(a.Part);t.SettingsPart=s},846:function(e,t){function r(e,t){var r,n={defaultNoteIds:[]},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value;switch(i.localName){case"numFmt":n.nummeringFormat=t.attr(i,"val");break;case"footnote":case"endnote":n.defaultNoteIds.push(t.attr(i,"id"))}}}catch(o){a.e(o)}finally{a.f()}return n}Object.defineProperty(t,"__esModule",{value:!0}),t.parseNoteProperties=t.parseSettings=void 0,t.parseSettings=function(e,t){var n,a={},i=u(t.elements(e));try{for(i.s();!(n=i.n()).done;){var o=n.value;switch(o.localName){case"defaultTabStop":a.defaultTabStop=t.lengthAttr(o,"val");break;case"footnotePr":a.footnoteProps=r(o,t);break;case"endnotePr":a.endnoteProps=r(o,t);break;case"autoHyphenation":a.autoHyphenation=t.boolAttr(o,"val")}}}catch(s){i.e(s)}finally{i.f()}return a},t.parseNoteProperties=r},240:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.StylesPart=void 0;var a=function(e){function t(e,r,a){var i;return f(this,t),(i=n(this,t,[e,r]))._documentParser=a,i}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.styles=this._documentParser.parseStylesFile(e)}}])}(r(530).Part);t.StylesPart=a},893:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.ThemePart=void 0;var a=r(530),i=r(55),s=function(e){function t(e,r){return f(this,t),n(this,t,[e,r])}return o(t,e),m(t,[{key:"parseXml",value:function(e){this.theme=(0,i.parseTheme)(e,this._package.xmlParser)}}])}(a.Part);t.ThemePart=s},55:function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.parseFontInfo=t.parseFontScheme=t.parseColorScheme=t.parseTheme=t.DmlTheme=void 0;var r=m((function e(){f(this,e)}));function n(e,t){var r,n={name:t.attr(e,"name"),colors:{}},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var i=r.value,o=t.element(i,"srgbClr"),s=t.element(i,"sysClr");o?n.colors[i.localName]=t.attr(o,"val"):s&&(n.colors[i.localName]=t.attr(s,"lastClr"))}}catch(l){a.e(l)}finally{a.f()}return n}function a(e,t){var r,n={name:t.attr(e,"name")},a=u(t.elements(e));try{for(a.s();!(r=a.n()).done;){var o=r.value;switch(o.localName){case"majorFont":n.majorFont=i(o,t);break;case"minorFont":n.minorFont=i(o,t)}}}catch(s){a.e(s)}finally{a.f()}return n}function i(e,t){return{latinTypeface:t.elementAttr(e,"latin","typeface"),eaTypeface:t.elementAttr(e,"ea","typeface"),csTypeface:t.elementAttr(e,"cs","typeface")}}t.DmlTheme=r,t.parseTheme=function(e,t){var i,o=new r,s=t.element(e,"themeElements"),l=u(t.elements(s));try{for(l.s();!(i=l.n()).done;){var c=i.value;switch(c.localName){case"clrScheme":o.colorScheme=n(c,t);break;case"fontScheme":o.fontScheme=a(c,t)}}}catch(h){l.e(h)}finally{l.f()}return o},t.parseColorScheme=n,t.parseFontScheme=a,t.parseFontInfo=i},593:function(e,t){function r(e){return e&&"object"==y(e)&&!Array.isArray(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.asArray=t.formatCssRules=t.parseCssRules=t.mergeDeep=t.isString=t.isObject=t.blobToBase64=t.keyBy=t.resolvePath=t.splitPath=t.escapeClassName=void 0,t.escapeClassName=function(e){return null==e?void 0:e.replace(/[ .]+/g,"-").replace(/[&]+/g,"and").toLowerCase()},t.splitPath=function(e){var t=e.lastIndexOf("/")+1;return[0==t?"":e.substring(0,t),0==t?e:e.substring(t)]},t.resolvePath=function(e,t){try{var n="http://docx/";return new URL(e,n+t).toString().substring(n.length)}catch(r){return"".concat(t).concat(e)}},t.keyBy=function(e,t){return e.reduce((function(e,r){return e[t(r)]=r,e}),{})},t.blobToBase64=function(e){return new Promise((function(t,r){var n=new FileReader;n.onloadend=function(){return t(n.result)},n.readAsDataURL(e)}))},t.isObject=r,t.isString=function(e){return e&&"string"==typeof e||e instanceof String},t.mergeDeep=function e(t){for(var n,a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];if(!i.length)return t;var s=i.shift();if(r(t)&&r(s))for(var l in s)r(s[l])?e(null!==(n=t[l])&&void 0!==n?n:t[l]={},s[l]):t[l]=s[l];return e.apply(void 0,[t].concat(i))},t.parseCssRules=function(e){var t,r={},n=u(e.split(";"));try{for(n.s();!(t=n.n()).done;){var a=c(t.value.split(":"),2),i=a[0],o=a[1];r[i]=o}}catch(s){n.e(s)}finally{n.f()}return r},t.formatCssRules=function(e){return Object.entries(e).map((function(e,t){return"".concat(e,": ").concat(t)})).join(";")},t.asArray=function(e){return Array.isArray(e)?e:[e]}},320:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.parseVmlElement=t.VmlElement=void 0;var n=r(149),a=r(120),i=r(472),o=m((function e(){f(this,e),this.type=a.DomType.VmlElement,this.attrs={},this.chidren=[]}));function s(e){var t;return{stroke:i.default.attr(e,"color"),"stroke-width":null!==(t=i.default.lengthAttr(e,"weight",n.LengthUsage.Emu))&&void 0!==t?t:"1px"}}function l(e){return e.split(",")}t.VmlElement=o,t.parseVmlElement=function e(t){var r=new o;switch(t.localName){case"rect":r.tagName="rect",Object.assign(r.attrs,{width:"100%",height:"100%"});break;case"oval":r.tagName="ellipse",Object.assign(r.attrs,{cx:"50%",cy:"50%",rx:"50%",ry:"50%"});break;case"line":r.tagName="line";break;case"shape":r.tagName="g";break;default:return null}var n,a=u(i.default.attrs(t));try{for(a.s();!(n=a.n()).done;){var h=n.value;switch(h.localName){case"style":r.cssStyleText=h.value;break;case"fillcolor":r.attrs.fill=h.value;break;case"from":var d=c(l(h.value),2),f=d[0],p=d[1];Object.assign(r.attrs,{x1:f,y1:p});break;case"to":var m=c(l(h.value),2),v=m[0],y=m[1];Object.assign(r.attrs,{x2:v,y2:y})}}}catch(w){a.e(w)}finally{a.f()}var g,b=u(i.default.elements(t));try{for(b.s();!(g=b.n()).done;){var k=g.value;switch(k.localName){case"stroke":Object.assign(r.attrs,s(k));break;case"fill":Object.assign(r.attrs,{});break;case"imagedata":r.tagName="image",Object.assign(r.attrs,{width:"100%",height:"100%"}),r.imageHref={id:i.default.attr(k,"id"),title:i.default.attr(k,"title")};break;default:var _=e(k);_&&r.chidren.push(_)}}}catch(w){b.e(w)}finally{b.f()}return r}},213:function(e,t,r){Object.defineProperty(t,"__esModule",{value:!0}),t.deobfuscate=t.WordDocument=void 0;var n=r(461),a=r(380),i=r(522),o=r(448),s=r(593),l=r(527),u=r(240),h=r(985),d=r(665),p=r(162),v=r(893),y=r(735),g=r(287),b=r(177),k=[{type:n.RelationshipTypes.OfficeDocument,target:"word/document.xml"},{type:n.RelationshipTypes.ExtendedProperties,target:"docProps/app.xml"},{type:n.RelationshipTypes.CoreProperties,target:"docProps/core.xml"},{type:n.RelationshipTypes.CustomProperties,target:"docProps/custom.xml"}],_=function(){function e(){f(this,e),this.parts=[],this.partsMap={}}return m(e,[{key:"save",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"blob";return this._package.save(e)}},{key:"loadRelationshipPart",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 i=null;switch(t){case n.RelationshipTypes.OfficeDocument:this.documentPart=i=new o.DocumentPart(this._package,e,this._parser);break;case n.RelationshipTypes.FontTable:this.fontTablePart=i=new a.FontTablePart(this._package,e);break;case n.RelationshipTypes.Numbering:this.numberingPart=i=new l.NumberingPart(this._package,e,this._parser);break;case n.RelationshipTypes.Styles:this.stylesPart=i=new u.StylesPart(this._package,e,this._parser);break;case n.RelationshipTypes.Theme:this.themePart=i=new v.ThemePart(this._package,e);break;case n.RelationshipTypes.Footnotes:this.footnotesPart=i=new y.FootnotesPart(this._package,e,this._parser);break;case n.RelationshipTypes.Endnotes:this.endnotesPart=i=new y.EndnotesPart(this._package,e,this._parser);break;case n.RelationshipTypes.Footer:i=new h.FooterPart(this._package,e,this._parser);break;case n.RelationshipTypes.Header:i=new h.HeaderPart(this._package,e,this._parser);break;case n.RelationshipTypes.CoreProperties:this.corePropsPart=i=new p.CorePropsPart(this._package,e);break;case n.RelationshipTypes.ExtendedProperties:this.extendedPropsPart=i=new d.ExtendedPropsPart(this._package,e);break;case n.RelationshipTypes.CustomProperties:i=new b.CustomPropsPart(this._package,e);break;case n.RelationshipTypes.Settings:this.settingsPart=i=new g.SettingsPart(this._package,e)}return null==i?Promise.resolve(null):(this.partsMap[e]=i,this.parts.push(i),i.load().then((function(){if(null==i.rels||0==i.rels.length)return i;var e=c((0,s.splitPath)(i.path),1)[0],t=i.rels.map((function(t){return r.loadRelationshipPart((0,s.resolvePath)(t.target,e),t.type)}));return Promise.all(t).then((function(){return i}))})))}},{key:"loadDocumentImage",value:function(e,t){var r=this;return this.loadResource(null!=t?t:this.documentPart,e,"blob").then((function(e){return r.blobToURL(e)}))}},{key:"loadNumberingImage",value:function(e){var t=this;return this.loadResource(this.numberingPart,e,"blob").then((function(e){return t.blobToURL(e)}))}},{key:"loadFont",value:function(e,t){var r=this;return this.loadResource(this.fontTablePart,e,"uint8array").then((function(e){return e?r.blobToURL(new Blob([w(e,t)])):e}))}},{key:"blobToURL",value:function(e){return e?this._options.useBase64URL?(0,s.blobToBase64)(e):URL.createObjectURL(e):null}},{key:"findPartByRelId",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=(null!==(t=r.rels)&&void 0!==t?t:this.rels).find((function(t){return t.id==e})),a=r?(0,s.splitPath)(r.path)[0]:"";return n?this.partsMap[(0,s.resolvePath)(n.target,a)]:null}},{key:"getPathById",value:function(e,t){var r=e.rels.find((function(e){return e.id==t})),n=c((0,s.splitPath)(e.path),1)[0];return r?(0,s.resolvePath)(r.target,n):null}},{key:"loadResource",value:function(e,t,r){var n=this.getPathById(e,t);return n?this._package.load(n,r):Promise.resolve(null)}}],[{key:"load",value:function(t,r,n){var a=new e;return a._options=n,a._parser=r,i.OpenXmlPackage.load(t,n).then((function(e){return a._package=e,a._package.loadRelationships()})).then((function(e){a.rels=e;var t=k.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}))}}])}();function w(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(var i=0;i<32;i++)e[i]=e[i]^n[i%16];return e}t.WordDocument=_,t.deobfuscate=w},583:function(e){e.exports="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 100%27 preserveAspectRatio=%27none%27%3E%3Cpath d=%27m0,75 l5,0 l5,25 l10,-100%27 stroke=%27black%27 fill=%27none%27 vector-effect=%27non-scaling-stroke%27/%3E%3C/svg%3E"},626:function(e){e.exports=r}},t={};function a(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={id:r,exports:{}};return e[r](i,i.exports,a),i.exports}return a.m=e,a.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return a.d(t,{a:t}),t},a.d=function(e,t){for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.b=document.baseURI||self.location.href,a(667)}())}(b);var S=s({name:"fileView"});t("default",Object.assign(S,{setup:function(t){var n=v(),a=h();return d(r(e().mark((function t(){var r;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i(n.query.id,!0);case 2:if("application/vnd.openxmlformats-officedocument.wordprocessingml.document"!==(r=e.sent).type&&"application/msword"!==r.type){e.next=7;break}b.exports.renderAsync(r,a.value),e.next=12;break;case 7:return e.t0=window.location,e.next=10,i(n.query.id);case 10:e.t1=e.sent,e.t0.replace.call(e.t0,e.t1);case 12:case"end":return e.stop()}}),t)})))),function(e,t){return g(),p("div",{ref_key:"fileRef",ref:a},null,512)}}}))}}}))}();