revise 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/CHANGELOG.md +962 -0
  2. package/FONT-LICENSE-HAN-EXT-B.txt +91 -0
  3. package/FONT-LICENSE-KATEX.txt +95 -0
  4. package/FONT-LICENSE-LIBERATION.txt +102 -0
  5. package/FONT-LICENSE-NOTO-MULTILINGUAL.txt +93 -0
  6. package/FONT-LICENSE-NOTO-SANS-SC.txt +93 -0
  7. package/FONT-LICENSE-NOTO.txt +94 -0
  8. package/FONT-LICENSE-SOURCE-CODE-PRO.txt +94 -0
  9. package/FONT-LICENSE-SOURCE-SERIF-4.txt +93 -0
  10. package/LICENSE +41 -21
  11. package/README.md +39 -1
  12. package/THIRD-PARTY-NOTICES.md +3376 -0
  13. package/assets/historyMaterializeWorker-CoAX9ZAi.js +3 -0
  14. package/backend.d.ts +133 -0
  15. package/backend.js +1 -0
  16. package/chunks/AgentPageRenderer-C0n4EnuW.js +1 -0
  17. package/chunks/AgentPageRenderer-DURfmiu0.js +1 -0
  18. package/chunks/AttachmentDocumentImporter-DSic_6At.js +1 -0
  19. package/chunks/AttachmentDocumentImporter-dNMtkxrv.js +1 -0
  20. package/chunks/BidiText-B4Hzrjg9.js +1 -0
  21. package/chunks/ColorParserFull-BKH72fK8.js +1 -0
  22. package/chunks/DocumentStylesheet-byN5dtC6.js +1 -0
  23. package/chunks/DocxConverter-B7P52lw7.js +11 -0
  24. package/chunks/DocxConverter-COV6CjUM.js +11 -0
  25. package/chunks/DocxConverter-Cq_zCEJC.js +11 -0
  26. package/chunks/DocxGraft-CJ12C9WP.js +1 -0
  27. package/chunks/DocxGraft-CQpvFcYb.js +1 -0
  28. package/chunks/DocxGraft-DcmFuUkd.js +1 -0
  29. package/chunks/FileImporter-DVnYOJHp.js +1 -0
  30. package/chunks/FileImporter-q9mCch0J.js +1 -0
  31. package/chunks/HorizontalRuleOrnaments-gmUZ3R7Q.js +1 -0
  32. package/chunks/HtmlConverter-JvRlkQM3.js +61 -0
  33. package/chunks/ListNumbering-Qlu6AuRZ.js +1 -0
  34. package/chunks/MarkdownConverter-B-tPY7X3.js +17 -0
  35. package/chunks/MathRenderer-B0Y1h1JU.js +33 -0
  36. package/chunks/OdtConverter-Br81BSoJ.js +1 -0
  37. package/chunks/OdtConverter-CQjh0vlo.js +1 -0
  38. package/chunks/OdtConverter-DYHnR4E8.js +1 -0
  39. package/chunks/PdfConverter-D26rXumc.js +21 -0
  40. package/chunks/PdfConverter-DGZpUSVf.js +21 -0
  41. package/chunks/PdfConverter-DZzVP0-B.js +21 -0
  42. package/chunks/PdfImportService-CBD8TL1k.js +2 -0
  43. package/chunks/PdfImportService-D6uUKGMf.js +2 -0
  44. package/chunks/RtfConverter-BQGge3K-.js +14 -0
  45. package/chunks/RtfConverter-CMfZ4olw.js +14 -0
  46. package/chunks/RtfConverter-oIwzoqCD.js +14 -0
  47. package/chunks/TableBorders-BLkZYt1k.js +1 -0
  48. package/chunks/TableGrid-DVWaRZv0.js +1 -0
  49. package/chunks/TextFileDecoder--rsVs3NR.js +2 -0
  50. package/chunks/TxtConverter-C1lp6dBS.js +11 -0
  51. package/chunks/__vite-browser-external-l0sNRNKZ.js +0 -0
  52. package/chunks/_commonjsHelpers-DaMA6jEr.js +1 -0
  53. package/chunks/_revise-sdk-lazy-harfbuzz-CDWdjF9f.js +1 -0
  54. package/chunks/_revise-sdk-lazy-harfbuzz-X8gnYTZL.js +1 -0
  55. package/chunks/ar-kgSWdrXF.js +8 -0
  56. package/chunks/backend-Cq-khfdG.js +1 -0
  57. package/chunks/base64-CfDUyGi8.js +36 -0
  58. package/chunks/browser-module-6b2Fq-5C.js +3 -0
  59. package/chunks/browser-module-CFmqfGkE.js +3 -0
  60. package/chunks/browser-module-CkO57IPL.js +3 -0
  61. package/chunks/bundle.min-DRpfgV69.js +8 -0
  62. package/chunks/capture-DU3MC7tb.js +1 -0
  63. package/chunks/carrier-WgcRSu7a.js +1 -0
  64. package/chunks/de-C2QTHrqo.js +8 -0
  65. package/chunks/es-BKboUn4q.js +8 -0
  66. package/chunks/footnoteFlatten-CW-DUcgK.js +1 -0
  67. package/chunks/graftExport-CVg7PO2A.js +2 -0
  68. package/chunks/html2canvas.esm-CntiHiYW.js +5 -0
  69. package/chunks/index-BWdRWxoH.js +24 -0
  70. package/chunks/index-CLw_BlSL.js +353 -0
  71. package/chunks/index-F-kHIwWT.js +353 -0
  72. package/chunks/index.es-CI0QPo8w.js +5 -0
  73. package/chunks/index.es-DOqegDGr.js +5 -0
  74. package/chunks/index.es-tXDO0RMv.js +5 -0
  75. package/chunks/jspdf.es.min-CzYti8jo.js +77 -0
  76. package/chunks/jspdf.es.min-DU74zN8b.js +77 -0
  77. package/chunks/jspdf.es.min-ejWOGhkJ.js +77 -0
  78. package/chunks/jszip.min-CPW0h1Kx.js +2 -0
  79. package/chunks/katex-DWj8TvwO.js +261 -0
  80. package/chunks/pdf-BLWDCiFF.js +12 -0
  81. package/chunks/persistInlineDocumentImages-DQj2iaqg.js +1 -0
  82. package/chunks/pseudoLocale-CdBtPHRi.js +1 -0
  83. package/chunks/pseudoLocale-DEVWLkGC.js +1 -0
  84. package/chunks/purify.es-BwLardii.js +2 -0
  85. package/chunks/serverDocumentSession-DZrYbdpk.js +42 -0
  86. package/chunks/tree-sitter-D6zWWUMP.js +4 -0
  87. package/chunks/wasmInline.generated-CBYFkdSM.js +1 -0
  88. package/chunks/web-tree-sitter-BXGZGnNj.js +1 -0
  89. package/full.js +1 -0
  90. package/index.d.ts +929 -0
  91. package/index.js +1 -0
  92. package/package.json +93 -26
  93. package/root.d.ts +5 -0
  94. package/root.js +2 -0
  95. package/serverToolContract.d.ts +373 -0
  96. package/serverToolInputs.generated.d.ts +229 -0
  97. package/style.css +1 -0
  98. package/.npmignore +0 -4
  99. package/.travis.yml +0 -16
  100. package/revise.js +0 -16
  101. package/t/cover +0 -18
  102. package/t/revise/comparator.t.js +0 -31
  103. package/t/revise/extractor.t.js +0 -29
  104. package/t/test +0 -20
@@ -0,0 +1,2 @@
1
+ import{c as ve,g as Oe}from"./_commonjsHelpers-DaMA6jEr.js";function ye(be){throw new Error('Could not dynamically require "'+be+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Se={exports:{}},Ce;function Te(){return Ce||(Ce=1,function(be,Re){(function(v){be.exports=v()})(function(){return function v(N,k,u){function o(_,y){if(!k[_]){if(!N[_]){var m=typeof ye=="function"&&ye;if(!y&&m)return m(_,!0);if(n)return n(_,!0);var g=new Error("Cannot find module '"+_+"'");throw g.code="MODULE_NOT_FOUND",g}var i=k[_]={exports:{}};N[_][0].call(i.exports,function(c){var r=N[_][1][c];return o(r||c)},i,i.exports,v,N,k,u)}return k[_].exports}for(var n=typeof ye=="function"&&ye,h=0;h<u.length;h++)o(u[h]);return o}({1:[function(v,N,k){var u=v("./utils"),o=v("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";k.encode=function(h){for(var _,y,m,g,i,c,r,l=[],a=0,d=h.length,b=d,S=u.getTypeOf(h)!=="string";a<h.length;)b=d-a,m=S?(_=h[a++],y=a<d?h[a++]:0,a<d?h[a++]:0):(_=h.charCodeAt(a++),y=a<d?h.charCodeAt(a++):0,a<d?h.charCodeAt(a++):0),g=_>>2,i=(3&_)<<4|y>>4,c=1<b?(15&y)<<2|m>>6:64,r=2<b?63&m:64,l.push(n.charAt(g)+n.charAt(i)+n.charAt(c)+n.charAt(r));return l.join("")},k.decode=function(h){var _,y,m,g,i,c,r=0,l=0,a="data:";if(h.substr(0,a.length)===a)throw new Error("Invalid base64 input, it looks like a data url.");var d,b=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===n.charAt(64)&&b--,h.charAt(h.length-2)===n.charAt(64)&&b--,b%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=o.uint8array?new Uint8Array(0|b):new Array(0|b);r<h.length;)_=n.indexOf(h.charAt(r++))<<2|(g=n.indexOf(h.charAt(r++)))>>4,y=(15&g)<<4|(i=n.indexOf(h.charAt(r++)))>>2,m=(3&i)<<6|(c=n.indexOf(h.charAt(r++))),d[l++]=_,i!==64&&(d[l++]=y),c!==64&&(d[l++]=m);return d}},{"./support":30,"./utils":32}],2:[function(v,N,k){var u=v("./external"),o=v("./stream/DataWorker"),n=v("./stream/Crc32Probe"),h=v("./stream/DataLengthProbe");function _(y,m,g,i,c){this.compressedSize=y,this.uncompressedSize=m,this.crc32=g,this.compression=i,this.compressedContent=c}_.prototype={getContentWorker:function(){var y=new o(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),m=this;return y.on("end",function(){if(this.streamInfo.data_length!==m.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),y},getCompressedWorker:function(){return new o(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},_.createWorkerFrom=function(y,m,g){return y.pipe(new n).pipe(new h("uncompressedSize")).pipe(m.compressWorker(g)).pipe(new h("compressedSize")).withStreamInfo("compression",m)},N.exports=_},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(v,N,k){var u=v("./stream/GenericWorker");k.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},k.DEFLATE=v("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(v,N,k){var u=v("./utils"),o=function(){for(var n,h=[],_=0;_<256;_++){n=_;for(var y=0;y<8;y++)n=1&n?3988292384^n>>>1:n>>>1;h[_]=n}return h}();N.exports=function(n,h){return n!==void 0&&n.length?u.getTypeOf(n)!=="string"?function(_,y,m,g){var i=o,c=g+m;_^=-1;for(var r=g;r<c;r++)_=_>>>8^i[255&(_^y[r])];return-1^_}(0|h,n,n.length,0):function(_,y,m,g){var i=o,c=g+m;_^=-1;for(var r=g;r<c;r++)_=_>>>8^i[255&(_^y.charCodeAt(r))];return-1^_}(0|h,n,n.length,0):0}},{"./utils":32}],5:[function(v,N,k){k.base64=!1,k.binary=!1,k.dir=!1,k.createFolders=!0,k.date=null,k.compression=null,k.compressionOptions=null,k.comment=null,k.unixPermissions=null,k.dosPermissions=null},{}],6:[function(v,N,k){var u=null;u=typeof Promise<"u"?Promise:v("lie"),N.exports={Promise:u}},{lie:37}],7:[function(v,N,k){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",o=v("pako"),n=v("./utils"),h=v("./stream/GenericWorker"),_=u?"uint8array":"array";function y(m,g){h.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=g,this.meta={}}k.magic="\b\0",n.inherits(y,h),y.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(_,m.data),!1)},y.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new o[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(g){m.push({data:g,meta:m.meta})}},k.compressWorker=function(m){return new y("Deflate",m)},k.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(v,N,k){function u(i,c){var r,l="";for(r=0;r<c;r++)l+=String.fromCharCode(255&i),i>>>=8;return l}function o(i,c,r,l,a,d){var b,S,x=i.file,R=i.compression,O=d!==_.utf8encode,L=n.transformTo("string",d(x.name)),z=n.transformTo("string",_.utf8encode(x.name)),W=x.comment,V=n.transformTo("string",d(W)),p=n.transformTo("string",_.utf8encode(W)),T=z.length!==x.name.length,t=p.length!==W.length,D="",Y="",P="",$=x.dir,j=x.date,J={crc32:0,compressedSize:0,uncompressedSize:0};c&&!r||(J.crc32=i.crc32,J.compressedSize=i.compressedSize,J.uncompressedSize=i.uncompressedSize);var A=0;c&&(A|=8),O||!T&&!t||(A|=2048);var E=0,q=0;$&&(E|=16),a==="UNIX"?(q=798,E|=function(G,ne){var oe=G;return G||(oe=ne?16893:33204),(65535&oe)<<16}(x.unixPermissions,$)):(q=20,E|=function(G){return 63&(G||0)}(x.dosPermissions)),b=j.getUTCHours(),b<<=6,b|=j.getUTCMinutes(),b<<=5,b|=j.getUTCSeconds()/2,S=j.getUTCFullYear()-1980,S<<=4,S|=j.getUTCMonth()+1,S<<=5,S|=j.getUTCDate(),T&&(Y=u(1,1)+u(y(L),4)+z,D+="up"+u(Y.length,2)+Y),t&&(P=u(1,1)+u(y(V),4)+p,D+="uc"+u(P.length,2)+P);var M="";return M+=`
2
+ \0`,M+=u(A,2),M+=R.magic,M+=u(b,2),M+=u(S,2),M+=u(J.crc32,4),M+=u(J.compressedSize,4),M+=u(J.uncompressedSize,4),M+=u(L.length,2),M+=u(D.length,2),{fileRecord:m.LOCAL_FILE_HEADER+M+L+D,dirRecord:m.CENTRAL_FILE_HEADER+u(q,2)+M+u(V.length,2)+"\0\0\0\0"+u(E,4)+u(l,4)+L+D+V}}var n=v("../utils"),h=v("../stream/GenericWorker"),_=v("../utf8"),y=v("../crc32"),m=v("../signature");function g(i,c,r,l){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=r,this.encodeFileName=l,this.streamFiles=i,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(g,h),g.prototype.push=function(i){var c=i.meta.percent||0,r=this.entriesCount,l=this._sources.length;this.accumulate?this.contentBuffer.push(i):(this.bytesWritten+=i.data.length,h.prototype.push.call(this,{data:i.data,meta:{currentFile:this.currentFile,percent:r?(c+100*(r-l-1))/r:100}}))},g.prototype.openedSource=function(i){this.currentSourceOffset=this.bytesWritten,this.currentFile=i.file.name;var c=this.streamFiles&&!i.file.dir;if(c){var r=o(i,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},g.prototype.closedSource=function(i){this.accumulate=!1;var c=this.streamFiles&&!i.file.dir,r=o(i,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),c)this.push({data:function(l){return m.DATA_DESCRIPTOR+u(l.crc32,4)+u(l.compressedSize,4)+u(l.uncompressedSize,4)}(i),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},g.prototype.flush=function(){for(var i=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var r=this.bytesWritten-i,l=function(a,d,b,S,x){var R=n.transformTo("string",x(S));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(a,2)+u(a,2)+u(d,4)+u(b,4)+u(R.length,2)+R}(this.dirRecords.length,r,i,this.zipComment,this.encodeFileName);this.push({data:l,meta:{percent:100}})},g.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},g.prototype.registerPrevious=function(i){this._sources.push(i);var c=this;return i.on("data",function(r){c.processChunk(r)}),i.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),i.on("error",function(r){c.error(r)}),this},g.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},g.prototype.error=function(i){var c=this._sources;if(!h.prototype.error.call(this,i))return!1;for(var r=0;r<c.length;r++)try{c[r].error(i)}catch{}return!0},g.prototype.lock=function(){h.prototype.lock.call(this);for(var i=this._sources,c=0;c<i.length;c++)i[c].lock()},N.exports=g},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(v,N,k){var u=v("../compressions"),o=v("./ZipFileWorker");k.generateWorker=function(n,h,_){var y=new o(h.streamFiles,_,h.platform,h.encodeFileName),m=0;try{n.forEach(function(g,i){m++;var c=function(d,b){var S=d||b,x=u[S];if(!x)throw new Error(S+" is not a valid compression method !");return x}(i.options.compression,h.compression),r=i.options.compressionOptions||h.compressionOptions||{},l=i.dir,a=i.date;i._compressWorker(c,r).withStreamInfo("file",{name:g,dir:l,date:a,comment:i.comment||"",unixPermissions:i.unixPermissions,dosPermissions:i.dosPermissions}).pipe(y)}),y.entriesCount=m}catch(g){y.error(g)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(v,N,k){function u(){if(!(this instanceof u))return new u;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 o=new u;for(var n in this)typeof this[n]!="function"&&(o[n]=this[n]);return o}}(u.prototype=v("./object")).loadAsync=v("./load"),u.support=v("./support"),u.defaults=v("./defaults"),u.version="3.10.1",u.loadAsync=function(o,n){return new u().loadAsync(o,n)},u.external=v("./external"),N.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(v,N,k){var u=v("./utils"),o=v("./external"),n=v("./utf8"),h=v("./zipEntries"),_=v("./stream/Crc32Probe"),y=v("./nodejsUtils");function m(g){return new o.Promise(function(i,c){var r=g.decompressed.getContentWorker().pipe(new _);r.on("error",function(l){c(l)}).on("end",function(){r.streamInfo.crc32!==g.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):i()}).resume()})}N.exports=function(g,i){var c=this;return i=u.extend(i||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),y.isNode&&y.isStream(g)?o.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",g,!0,i.optimizedBinaryString,i.base64).then(function(r){var l=new h(i);return l.load(r),l}).then(function(r){var l=[o.Promise.resolve(r)],a=r.files;if(i.checkCRC32)for(var d=0;d<a.length;d++)l.push(m(a[d]));return o.Promise.all(l)}).then(function(r){for(var l=r.shift(),a=l.files,d=0;d<a.length;d++){var b=a[d],S=b.fileNameStr,x=u.resolve(b.fileNameStr);c.file(x,b.decompressed,{binary:!0,optimizedBinaryString:!0,date:b.date,dir:b.dir,comment:b.fileCommentStr.length?b.fileCommentStr:null,unixPermissions:b.unixPermissions,dosPermissions:b.dosPermissions,createFolders:i.createFolders}),b.dir||(c.file(x).unsafeOriginalName=S)}return l.zipComment.length&&(c.comment=l.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(v,N,k){var u=v("../utils"),o=v("../stream/GenericWorker");function n(h,_){o.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(_)}u.inherits(n,o),n.prototype._bindStream=function(h){var _=this;(this._stream=h).pause(),h.on("data",function(y){_.push({data:y,meta:{percent:0}})}).on("error",function(y){_.isPaused?this.generatedError=y:_.error(y)}).on("end",function(){_.isPaused?_._upstreamEnded=!0:_.end()})},n.prototype.pause=function(){return!!o.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},N.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(v,N,k){var u=v("readable-stream").Readable;function o(n,h,_){u.call(this,h),this._helper=n;var y=this;n.on("data",function(m,g){y.push(m)||y._helper.pause(),_&&_(g)}).on("error",function(m){y.emit("error",m)}).on("end",function(){y.push(null)})}v("../utils").inherits(o,u),o.prototype._read=function(){this._helper.resume()},N.exports=o},{"../utils":32,"readable-stream":16}],14:[function(v,N,k){N.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,o){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,o);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,o)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var o=new Buffer(u);return o.fill(0),o},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(v,N,k){function u(x,R,O){var L,z=n.getTypeOf(R),W=n.extend(O||{},y);W.date=W.date||new Date,W.compression!==null&&(W.compression=W.compression.toUpperCase()),typeof W.unixPermissions=="string"&&(W.unixPermissions=parseInt(W.unixPermissions,8)),W.unixPermissions&&16384&W.unixPermissions&&(W.dir=!0),W.dosPermissions&&16&W.dosPermissions&&(W.dir=!0),W.dir&&(x=a(x)),W.createFolders&&(L=l(x))&&d.call(this,L,!0);var V=z==="string"&&W.binary===!1&&W.base64===!1;O&&O.binary!==void 0||(W.binary=!V),(R instanceof m&&R.uncompressedSize===0||W.dir||!R||R.length===0)&&(W.base64=!1,W.binary=!0,R="",W.compression="STORE",z="string");var p=null;p=R instanceof m||R instanceof h?R:c.isNode&&c.isStream(R)?new r(x,R):n.prepareContent(x,R,W.binary,W.optimizedBinaryString,W.base64);var T=new g(x,p,W);this.files[x]=T}var o=v("./utf8"),n=v("./utils"),h=v("./stream/GenericWorker"),_=v("./stream/StreamHelper"),y=v("./defaults"),m=v("./compressedObject"),g=v("./zipObject"),i=v("./generate"),c=v("./nodejsUtils"),r=v("./nodejs/NodejsStreamInputAdapter"),l=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var R=x.lastIndexOf("/");return 0<R?x.substring(0,R):""},a=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},d=function(x,R){return R=R!==void 0?R:y.createFolders,x=a(x),this.files[x]||u.call(this,x,null,{dir:!0,createFolders:R}),this.files[x]};function b(x){return Object.prototype.toString.call(x)==="[object RegExp]"}var S={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(x){var R,O,L;for(R in this.files)L=this.files[R],(O=R.slice(this.root.length,R.length))&&R.slice(0,this.root.length)===this.root&&x(O,L)},filter:function(x){var R=[];return this.forEach(function(O,L){x(O,L)&&R.push(L)}),R},file:function(x,R,O){if(arguments.length!==1)return x=this.root+x,u.call(this,x,R,O),this;if(b(x)){var L=x;return this.filter(function(W,V){return!V.dir&&L.test(W)})}var z=this.files[this.root+x];return z&&!z.dir?z:null},folder:function(x){if(!x)return this;if(b(x))return this.filter(function(z,W){return W.dir&&x.test(z)});var R=this.root+x,O=d.call(this,R),L=this.clone();return L.root=O.name,L},remove:function(x){x=this.root+x;var R=this.files[x];if(R||(x.slice(-1)!=="/"&&(x+="/"),R=this.files[x]),R&&!R.dir)delete this.files[x];else for(var O=this.filter(function(z,W){return W.name.slice(0,x.length)===x}),L=0;L<O.length;L++)delete this.files[O[L].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var R,O={};try{if((O=n.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:o.utf8encode})).type=O.type.toLowerCase(),O.compression=O.compression.toUpperCase(),O.type==="binarystring"&&(O.type="string"),!O.type)throw new Error("No output type specified.");n.checkSupport(O.type),O.platform!=="darwin"&&O.platform!=="freebsd"&&O.platform!=="linux"&&O.platform!=="sunos"||(O.platform="UNIX"),O.platform==="win32"&&(O.platform="DOS");var L=O.comment||this.comment||"";R=i.generateWorker(this,O,L)}catch(z){(R=new h("error")).error(z)}return new _(R,O.type||"string",O.mimeType)},generateAsync:function(x,R){return this.generateInternalStream(x).accumulate(R)},generateNodeStream:function(x,R){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(R)}};N.exports=S},{"./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(v,N,k){N.exports=v("stream")},{stream:void 0}],17:[function(v,N,k){var u=v("./DataReader");function o(n){u.call(this,n);for(var h=0;h<this.data.length;h++)n[h]=255&n[h]}v("../utils").inherits(o,u),o.prototype.byteAt=function(n){return this.data[this.zero+n]},o.prototype.lastIndexOfSignature=function(n){for(var h=n.charCodeAt(0),_=n.charCodeAt(1),y=n.charCodeAt(2),m=n.charCodeAt(3),g=this.length-4;0<=g;--g)if(this.data[g]===h&&this.data[g+1]===_&&this.data[g+2]===y&&this.data[g+3]===m)return g-this.zero;return-1},o.prototype.readAndCheckSignature=function(n){var h=n.charCodeAt(0),_=n.charCodeAt(1),y=n.charCodeAt(2),m=n.charCodeAt(3),g=this.readData(4);return h===g[0]&&_===g[1]&&y===g[2]&&m===g[3]},o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},N.exports=o},{"../utils":32,"./DataReader":18}],18:[function(v,N,k){var u=v("../utils");function o(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}o.prototype={checkOffset:function(n){this.checkIndex(this.index+n)},checkIndex:function(n){if(this.length<this.zero+n||n<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+n+"). Corrupted zip ?")},setIndex:function(n){this.checkIndex(n),this.index=n},skip:function(n){this.setIndex(this.index+n)},byteAt:function(){},readInt:function(n){var h,_=0;for(this.checkOffset(n),h=this.index+n-1;h>=this.index;h--)_=(_<<8)+this.byteAt(h);return this.index+=n,_},readString:function(n){return u.transformTo("string",this.readData(n))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var n=this.readInt(4);return new Date(Date.UTC(1980+(n>>25&127),(n>>21&15)-1,n>>16&31,n>>11&31,n>>5&63,(31&n)<<1))}},N.exports=o},{"../utils":32}],19:[function(v,N,k){var u=v("./Uint8ArrayReader");function o(n){u.call(this,n)}v("../utils").inherits(o,u),o.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},N.exports=o},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(v,N,k){var u=v("./DataReader");function o(n){u.call(this,n)}v("../utils").inherits(o,u),o.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},o.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},o.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},o.prototype.readData=function(n){this.checkOffset(n);var h=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},N.exports=o},{"../utils":32,"./DataReader":18}],21:[function(v,N,k){var u=v("./ArrayReader");function o(n){u.call(this,n)}v("../utils").inherits(o,u),o.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,h},N.exports=o},{"../utils":32,"./ArrayReader":17}],22:[function(v,N,k){var u=v("../utils"),o=v("../support"),n=v("./ArrayReader"),h=v("./StringReader"),_=v("./NodeBufferReader"),y=v("./Uint8ArrayReader");N.exports=function(m){var g=u.getTypeOf(m);return u.checkSupport(g),g!=="string"||o.uint8array?g==="nodebuffer"?new _(m):o.uint8array?new y(u.transformTo("uint8array",m)):new n(u.transformTo("array",m)):new h(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(v,N,k){k.LOCAL_FILE_HEADER="PK",k.CENTRAL_FILE_HEADER="PK",k.CENTRAL_DIRECTORY_END="PK",k.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",k.ZIP64_CENTRAL_DIRECTORY_END="PK",k.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(v,N,k){var u=v("./GenericWorker"),o=v("../utils");function n(h){u.call(this,"ConvertWorker to "+h),this.destType=h}o.inherits(n,u),n.prototype.processChunk=function(h){this.push({data:o.transformTo(this.destType,h.data),meta:h.meta})},N.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(v,N,k){var u=v("./GenericWorker"),o=v("../crc32");function n(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}v("../utils").inherits(n,u),n.prototype.processChunk=function(h){this.streamInfo.crc32=o(h.data,this.streamInfo.crc32||0),this.push(h)},N.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(v,N,k){var u=v("../utils"),o=v("./GenericWorker");function n(h){o.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}u.inherits(n,o),n.prototype.processChunk=function(h){if(h){var _=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=_+h.data.length}o.prototype.processChunk.call(this,h)},N.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(v,N,k){var u=v("../utils"),o=v("./GenericWorker");function n(h){o.call(this,"DataWorker");var _=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(y){_.dataIsReady=!0,_.data=y,_.max=y&&y.length||0,_.type=u.getTypeOf(y),_.isPaused||_._tickAndRepeat()},function(y){_.error(y)})}u.inherits(n,o),n.prototype.cleanUp=function(){o.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!o.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},n.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},n.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,_=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,_);break;case"uint8array":h=this.data.subarray(this.index,_);break;case"array":case"nodebuffer":h=this.data.slice(this.index,_)}return this.index=_,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},N.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(v,N,k){function u(o){this.name=o||"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}u.prototype={push:function(o){this.emit("data",o)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(o){this.emit("error",o)}return!0},error:function(o){return!this.isFinished&&(this.isPaused?this.generatedError=o:(this.isFinished=!0,this.emit("error",o),this.previous&&this.previous.error(o),this.cleanUp()),!0)},on:function(o,n){return this._listeners[o].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(o,n){if(this._listeners[o])for(var h=0;h<this._listeners[o].length;h++)this._listeners[o][h].call(this,n)},pipe:function(o){return o.registerPrevious(this)},registerPrevious:function(o){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=o.streamInfo,this.mergeStreamInfo(),this.previous=o;var n=this;return o.on("data",function(h){n.processChunk(h)}),o.on("end",function(){n.end()}),o.on("error",function(h){n.error(h)}),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 o=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),o=!0),this.previous&&this.previous.resume(),!o},flush:function(){},processChunk:function(o){this.push(o)},withStreamInfo:function(o,n){return this.extraStreamInfo[o]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var o in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,o)&&(this.streamInfo[o]=this.extraStreamInfo[o])},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 o="Worker "+this.name;return this.previous?this.previous+" -> "+o:o}},N.exports=u},{}],29:[function(v,N,k){var u=v("../utils"),o=v("./ConvertWorker"),n=v("./GenericWorker"),h=v("../base64"),_=v("../support"),y=v("../external"),m=null;if(_.nodestream)try{m=v("../nodejs/NodejsStreamOutputAdapter")}catch{}function g(c,r){return new y.Promise(function(l,a){var d=[],b=c._internalType,S=c._outputType,x=c._mimeType;c.on("data",function(R,O){d.push(R),r&&r(O)}).on("error",function(R){d=[],a(R)}).on("end",function(){try{var R=function(O,L,z){switch(O){case"blob":return u.newBlob(u.transformTo("arraybuffer",L),z);case"base64":return h.encode(L);default:return u.transformTo(O,L)}}(S,function(O,L){var z,W=0,V=null,p=0;for(z=0;z<L.length;z++)p+=L[z].length;switch(O){case"string":return L.join("");case"array":return Array.prototype.concat.apply([],L);case"uint8array":for(V=new Uint8Array(p),z=0;z<L.length;z++)V.set(L[z],W),W+=L[z].length;return V;case"nodebuffer":return Buffer.concat(L);default:throw new Error("concat : unsupported type '"+O+"'")}}(b,d),x);l(R)}catch(O){a(O)}d=[]}).resume()})}function i(c,r,l){var a=r;switch(r){case"blob":case"arraybuffer":a="uint8array";break;case"base64":a="string"}try{this._internalType=a,this._outputType=r,this._mimeType=l,u.checkSupport(a),this._worker=c.pipe(new o(a)),c.lock()}catch(d){this._worker=new n("error"),this._worker.error(d)}}i.prototype={accumulate:function(c){return g(this,c)},on:function(c,r){var l=this;return c==="data"?this._worker.on(c,function(a){r.call(l,a.data,a.meta)}):this._worker.on(c,function(){u.delay(r,arguments,l)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(c){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new m(this,{objectMode:this._outputType!=="nodebuffer"},c)}},N.exports=i},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(v,N,k){if(k.base64=!0,k.array=!0,k.string=!0,k.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",k.nodebuffer=typeof Buffer<"u",k.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")k.blob=!1;else{var u=new ArrayBuffer(0);try{k.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var o=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);o.append(u),k.blob=o.getBlob("application/zip").size===0}catch{k.blob=!1}}}try{k.nodestream=!!v("readable-stream").Readable}catch{k.nodestream=!1}},{"readable-stream":16}],31:[function(v,N,k){for(var u=v("./utils"),o=v("./support"),n=v("./nodejsUtils"),h=v("./stream/GenericWorker"),_=new Array(256),y=0;y<256;y++)_[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;_[254]=_[254]=1;function m(){h.call(this,"utf-8 decode"),this.leftOver=null}function g(){h.call(this,"utf-8 encode")}k.utf8encode=function(i){return o.nodebuffer?n.newBufferFrom(i,"utf-8"):function(c){var r,l,a,d,b,S=c.length,x=0;for(d=0;d<S;d++)(64512&(l=c.charCodeAt(d)))==55296&&d+1<S&&(64512&(a=c.charCodeAt(d+1)))==56320&&(l=65536+(l-55296<<10)+(a-56320),d++),x+=l<128?1:l<2048?2:l<65536?3:4;for(r=o.uint8array?new Uint8Array(x):new Array(x),d=b=0;b<x;d++)(64512&(l=c.charCodeAt(d)))==55296&&d+1<S&&(64512&(a=c.charCodeAt(d+1)))==56320&&(l=65536+(l-55296<<10)+(a-56320),d++),l<128?r[b++]=l:(l<2048?r[b++]=192|l>>>6:(l<65536?r[b++]=224|l>>>12:(r[b++]=240|l>>>18,r[b++]=128|l>>>12&63),r[b++]=128|l>>>6&63),r[b++]=128|63&l);return r}(i)},k.utf8decode=function(i){return o.nodebuffer?u.transformTo("nodebuffer",i).toString("utf-8"):function(c){var r,l,a,d,b=c.length,S=new Array(2*b);for(r=l=0;r<b;)if((a=c[r++])<128)S[l++]=a;else if(4<(d=_[a]))S[l++]=65533,r+=d-1;else{for(a&=d===2?31:d===3?15:7;1<d&&r<b;)a=a<<6|63&c[r++],d--;1<d?S[l++]=65533:a<65536?S[l++]=a:(a-=65536,S[l++]=55296|a>>10&1023,S[l++]=56320|1023&a)}return S.length!==l&&(S.subarray?S=S.subarray(0,l):S.length=l),u.applyFromCharCode(S)}(i=u.transformTo(o.uint8array?"uint8array":"array",i))},u.inherits(m,h),m.prototype.processChunk=function(i){var c=u.transformTo(o.uint8array?"uint8array":"array",i.data);if(this.leftOver&&this.leftOver.length){if(o.uint8array){var r=c;(c=new Uint8Array(r.length+this.leftOver.length)).set(this.leftOver,0),c.set(r,this.leftOver.length)}else c=this.leftOver.concat(c);this.leftOver=null}var l=function(d,b){var S;for((b=b||d.length)>d.length&&(b=d.length),S=b-1;0<=S&&(192&d[S])==128;)S--;return S<0||S===0?b:S+_[d[S]]>b?S:b}(c),a=c;l!==c.length&&(o.uint8array?(a=c.subarray(0,l),this.leftOver=c.subarray(l,c.length)):(a=c.slice(0,l),this.leftOver=c.slice(l,c.length))),this.push({data:k.utf8decode(a),meta:i.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:k.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},k.Utf8DecodeWorker=m,u.inherits(g,h),g.prototype.processChunk=function(i){this.push({data:k.utf8encode(i.data),meta:i.meta})},k.Utf8EncodeWorker=g},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(v,N,k){var u=v("./support"),o=v("./base64"),n=v("./nodejsUtils"),h=v("./external");function _(r){return r}function y(r,l){for(var a=0;a<r.length;++a)l[a]=255&r.charCodeAt(a);return l}v("setimmediate"),k.newBlob=function(r,l){k.checkSupport("blob");try{return new Blob([r],{type:l})}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return a.append(r),a.getBlob(l)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(r,l,a){var d=[],b=0,S=r.length;if(S<=a)return String.fromCharCode.apply(null,r);for(;b<S;)l==="array"||l==="nodebuffer"?d.push(String.fromCharCode.apply(null,r.slice(b,Math.min(b+a,S)))):d.push(String.fromCharCode.apply(null,r.subarray(b,Math.min(b+a,S)))),b+=a;return d.join("")},stringifyByChar:function(r){for(var l="",a=0;a<r.length;a++)l+=String.fromCharCode(r[a]);return l},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,n.allocBuffer(1)).length===1}catch{return!1}}()}};function g(r){var l=65536,a=k.getTypeOf(r),d=!0;if(a==="uint8array"?d=m.applyCanBeUsed.uint8array:a==="nodebuffer"&&(d=m.applyCanBeUsed.nodebuffer),d)for(;1<l;)try{return m.stringifyByChunk(r,a,l)}catch{l=Math.floor(l/2)}return m.stringifyByChar(r)}function i(r,l){for(var a=0;a<r.length;a++)l[a]=r[a];return l}k.applyFromCharCode=g;var c={};c.string={string:_,array:function(r){return y(r,new Array(r.length))},arraybuffer:function(r){return c.string.uint8array(r).buffer},uint8array:function(r){return y(r,new Uint8Array(r.length))},nodebuffer:function(r){return y(r,n.allocBuffer(r.length))}},c.array={string:g,array:_,arraybuffer:function(r){return new Uint8Array(r).buffer},uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(r)}},c.arraybuffer={string:function(r){return g(new Uint8Array(r))},array:function(r){return i(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:_,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(new Uint8Array(r))}},c.uint8array={string:g,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:_,nodebuffer:function(r){return n.newBufferFrom(r)}},c.nodebuffer={string:g,array:function(r){return i(r,new Array(r.length))},arraybuffer:function(r){return c.nodebuffer.uint8array(r).buffer},uint8array:function(r){return i(r,new Uint8Array(r.length))},nodebuffer:_},k.transformTo=function(r,l){if(l=l||"",!r)return l;k.checkSupport(r);var a=k.getTypeOf(l);return c[a][r](l)},k.resolve=function(r){for(var l=r.split("/"),a=[],d=0;d<l.length;d++){var b=l[d];b==="."||b===""&&d!==0&&d!==l.length-1||(b===".."?a.pop():a.push(b))}return a.join("/")},k.getTypeOf=function(r){return typeof r=="string"?"string":Object.prototype.toString.call(r)==="[object Array]"?"array":u.nodebuffer&&n.isBuffer(r)?"nodebuffer":u.uint8array&&r instanceof Uint8Array?"uint8array":u.arraybuffer&&r instanceof ArrayBuffer?"arraybuffer":void 0},k.checkSupport=function(r){if(!u[r.toLowerCase()])throw new Error(r+" is not supported by this platform")},k.MAX_VALUE_16BITS=65535,k.MAX_VALUE_32BITS=-1,k.pretty=function(r){var l,a,d="";for(a=0;a<(r||"").length;a++)d+="\\x"+((l=r.charCodeAt(a))<16?"0":"")+l.toString(16).toUpperCase();return d},k.delay=function(r,l,a){setImmediate(function(){r.apply(a||null,l||[])})},k.inherits=function(r,l){function a(){}a.prototype=l.prototype,r.prototype=new a},k.extend=function(){var r,l,a={};for(r=0;r<arguments.length;r++)for(l in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],l)&&a[l]===void 0&&(a[l]=arguments[r][l]);return a},k.prepareContent=function(r,l,a,d,b){return h.Promise.resolve(l).then(function(S){return u.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new h.Promise(function(x,R){var O=new FileReader;O.onload=function(L){x(L.target.result)},O.onerror=function(L){R(L.target.error)},O.readAsArrayBuffer(S)}):S}).then(function(S){var x=k.getTypeOf(S);return x?(x==="arraybuffer"?S=k.transformTo("uint8array",S):x==="string"&&(b?S=o.decode(S):a&&d!==!0&&(S=function(R){return y(R,u.uint8array?new Uint8Array(R.length):new Array(R.length))}(S))),S):h.Promise.reject(new Error("Can't read the data of '"+r+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(v,N,k){var u=v("./reader/readerFor"),o=v("./utils"),n=v("./signature"),h=v("./zipEntry"),_=v("./support");function y(m){this.files=[],this.loadOptions=m}y.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var g=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+o.pretty(g)+", expected "+o.pretty(m)+")")}},isSignature:function(m,g){var i=this.reader.index;this.reader.setIndex(m);var c=this.reader.readString(4)===g;return this.reader.setIndex(i),c},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 m=this.reader.readData(this.zipCommentLength),g=_.uint8array?"uint8array":"array",i=o.transformTo(g,m);this.zipComment=this.loadOptions.decodeFileName(i)},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 m,g,i,c=this.zip64EndOfCentralSize-44;0<c;)m=this.reader.readInt(2),g=this.reader.readInt(4),i=this.reader.readData(g),this.zip64ExtensibleData[m]={id:m,length:g,value:i}},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 m,g;for(m=0;m<this.files.length;m++)g=this.files[m],this.reader.setIndex(g.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),g.readLocalPart(this.reader),g.handleUTF8(),g.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(m);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var m=this.reader.lastIndexOfSignature(n.CENTRAL_DIRECTORY_END);if(m<0)throw this.isSignature(0,n.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(m);var g=m;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===o.MAX_VALUE_16BITS||this.diskWithCentralDirStart===o.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===o.MAX_VALUE_16BITS||this.centralDirRecords===o.MAX_VALUE_16BITS||this.centralDirSize===o.MAX_VALUE_32BITS||this.centralDirOffset===o.MAX_VALUE_32BITS){if(this.zip64=!0,(m=this.reader.lastIndexOfSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(m),this.checkSignature(n.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,n.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(n.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(n.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var i=this.centralDirOffset+this.centralDirSize;this.zip64&&(i+=20,i+=12+this.zip64EndOfCentralSize);var c=g-i;if(0<c)this.isSignature(g,n.CENTRAL_FILE_HEADER)||(this.reader.zero=c);else if(c<0)throw new Error("Corrupted zip: missing "+Math.abs(c)+" bytes.")},prepareReader:function(m){this.reader=u(m)},load:function(m){this.prepareReader(m),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},N.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(v,N,k){var u=v("./reader/readerFor"),o=v("./utils"),n=v("./compressedObject"),h=v("./crc32"),_=v("./utf8"),y=v("./compressions"),m=v("./support");function g(i,c){this.options=i,this.loadOptions=c}g.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(i){var c,r;if(i.skip(22),this.fileNameLength=i.readInt(2),r=i.readInt(2),this.fileName=i.readData(this.fileNameLength),i.skip(r),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((c=function(l){for(var a in y)if(Object.prototype.hasOwnProperty.call(y,a)&&y[a].magic===l)return y[a];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+o.pretty(this.compressionMethod)+" unknown (inner file : "+o.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,c,i.readData(this.compressedSize))},readCentralPart:function(i){this.versionMadeBy=i.readInt(2),i.skip(2),this.bitFlag=i.readInt(2),this.compressionMethod=i.readString(2),this.date=i.readDate(),this.crc32=i.readInt(4),this.compressedSize=i.readInt(4),this.uncompressedSize=i.readInt(4);var c=i.readInt(2);if(this.extraFieldsLength=i.readInt(2),this.fileCommentLength=i.readInt(2),this.diskNumberStart=i.readInt(2),this.internalFileAttributes=i.readInt(2),this.externalFileAttributes=i.readInt(4),this.localHeaderOffset=i.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");i.skip(c),this.readExtraFields(i),this.parseZIP64ExtraField(i),this.fileComment=i.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var i=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),i==0&&(this.dosPermissions=63&this.externalFileAttributes),i==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var i=u(this.extraFields[1].value);this.uncompressedSize===o.MAX_VALUE_32BITS&&(this.uncompressedSize=i.readInt(8)),this.compressedSize===o.MAX_VALUE_32BITS&&(this.compressedSize=i.readInt(8)),this.localHeaderOffset===o.MAX_VALUE_32BITS&&(this.localHeaderOffset=i.readInt(8)),this.diskNumberStart===o.MAX_VALUE_32BITS&&(this.diskNumberStart=i.readInt(4))}},readExtraFields:function(i){var c,r,l,a=i.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});i.index+4<a;)c=i.readInt(2),r=i.readInt(2),l=i.readData(r),this.extraFields[c]={id:c,length:r,value:l};i.setIndex(a)},handleUTF8:function(){var i=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=_.utf8decode(this.fileName),this.fileCommentStr=_.utf8decode(this.fileComment);else{var c=this.findExtraFieldUnicodePath();if(c!==null)this.fileNameStr=c;else{var r=o.transformTo(i,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var l=this.findExtraFieldUnicodeComment();if(l!==null)this.fileCommentStr=l;else{var a=o.transformTo(i,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(a)}}},findExtraFieldUnicodePath:function(){var i=this.extraFields[28789];if(i){var c=u(i.value);return c.readInt(1)!==1||h(this.fileName)!==c.readInt(4)?null:_.utf8decode(c.readData(i.length-5))}return null},findExtraFieldUnicodeComment:function(){var i=this.extraFields[25461];if(i){var c=u(i.value);return c.readInt(1)!==1||h(this.fileComment)!==c.readInt(4)?null:_.utf8decode(c.readData(i.length-5))}return null}},N.exports=g},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(v,N,k){function u(c,r,l){this.name=c,this.dir=l.dir,this.date=l.date,this.comment=l.comment,this.unixPermissions=l.unixPermissions,this.dosPermissions=l.dosPermissions,this._data=r,this._dataBinary=l.binary,this.options={compression:l.compression,compressionOptions:l.compressionOptions}}var o=v("./stream/StreamHelper"),n=v("./stream/DataWorker"),h=v("./utf8"),_=v("./compressedObject"),y=v("./stream/GenericWorker");u.prototype={internalStream:function(c){var r=null,l="string";try{if(!c)throw new Error("No output type specified.");var a=(l=c.toLowerCase())==="string"||l==="text";l!=="binarystring"&&l!=="text"||(l="string"),r=this._decompressWorker();var d=!this._dataBinary;d&&!a&&(r=r.pipe(new h.Utf8EncodeWorker)),!d&&a&&(r=r.pipe(new h.Utf8DecodeWorker))}catch(b){(r=new y("error")).error(b)}return new o(r,l,"")},async:function(c,r){return this.internalStream(c).accumulate(r)},nodeStream:function(c,r){return this.internalStream(c||"nodebuffer").toNodejsStream(r)},_compressWorker:function(c,r){if(this._data instanceof _&&this._data.compression.magic===c.magic)return this._data.getCompressedWorker();var l=this._decompressWorker();return this._dataBinary||(l=l.pipe(new h.Utf8EncodeWorker)),_.createWorkerFrom(l,c,r)},_decompressWorker:function(){return this._data instanceof _?this._data.getContentWorker():this._data instanceof y?this._data:new n(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],g=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},i=0;i<m.length;i++)u.prototype[m[i]]=g;N.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(v,N,k){(function(u){var o,n,h=u.MutationObserver||u.WebKitMutationObserver;if(h){var _=0,y=new h(c),m=u.document.createTextNode("");y.observe(m,{characterData:!0}),o=function(){m.data=_=++_%2}}else if(u.setImmediate||u.MessageChannel===void 0)o="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var r=u.document.createElement("script");r.onreadystatechange=function(){c(),r.onreadystatechange=null,r.parentNode.removeChild(r),r=null},u.document.documentElement.appendChild(r)}:function(){setTimeout(c,0)};else{var g=new u.MessageChannel;g.port1.onmessage=c,o=function(){g.port2.postMessage(0)}}var i=[];function c(){var r,l;n=!0;for(var a=i.length;a;){for(l=i,i=[],r=-1;++r<a;)l[r]();a=i.length}n=!1}N.exports=function(r){i.push(r)!==1||n||o()}}).call(this,typeof ve<"u"?ve:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(v,N,k){var u=v("immediate");function o(){}var n={},h=["REJECTED"],_=["FULFILLED"],y=["PENDING"];function m(a){if(typeof a!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,a!==o&&r(this,a)}function g(a,d,b){this.promise=a,typeof d=="function"&&(this.onFulfilled=d,this.callFulfilled=this.otherCallFulfilled),typeof b=="function"&&(this.onRejected=b,this.callRejected=this.otherCallRejected)}function i(a,d,b){u(function(){var S;try{S=d(b)}catch(x){return n.reject(a,x)}S===a?n.reject(a,new TypeError("Cannot resolve promise with itself")):n.resolve(a,S)})}function c(a){var d=a&&a.then;if(a&&(typeof a=="object"||typeof a=="function")&&typeof d=="function")return function(){d.apply(a,arguments)}}function r(a,d){var b=!1;function S(O){b||(b=!0,n.reject(a,O))}function x(O){b||(b=!0,n.resolve(a,O))}var R=l(function(){d(x,S)});R.status==="error"&&S(R.value)}function l(a,d){var b={};try{b.value=a(d),b.status="success"}catch(S){b.status="error",b.value=S}return b}(N.exports=m).prototype.finally=function(a){if(typeof a!="function")return this;var d=this.constructor;return this.then(function(b){return d.resolve(a()).then(function(){return b})},function(b){return d.resolve(a()).then(function(){throw b})})},m.prototype.catch=function(a){return this.then(null,a)},m.prototype.then=function(a,d){if(typeof a!="function"&&this.state===_||typeof d!="function"&&this.state===h)return this;var b=new this.constructor(o);return this.state!==y?i(b,this.state===_?a:d,this.outcome):this.queue.push(new g(b,a,d)),b},g.prototype.callFulfilled=function(a){n.resolve(this.promise,a)},g.prototype.otherCallFulfilled=function(a){i(this.promise,this.onFulfilled,a)},g.prototype.callRejected=function(a){n.reject(this.promise,a)},g.prototype.otherCallRejected=function(a){i(this.promise,this.onRejected,a)},n.resolve=function(a,d){var b=l(c,d);if(b.status==="error")return n.reject(a,b.value);var S=b.value;if(S)r(a,S);else{a.state=_,a.outcome=d;for(var x=-1,R=a.queue.length;++x<R;)a.queue[x].callFulfilled(d)}return a},n.reject=function(a,d){a.state=h,a.outcome=d;for(var b=-1,S=a.queue.length;++b<S;)a.queue[b].callRejected(d);return a},m.resolve=function(a){return a instanceof this?a:n.resolve(new this(o),a)},m.reject=function(a){var d=new this(o);return n.reject(d,a)},m.all=function(a){var d=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=a.length,S=!1;if(!b)return this.resolve([]);for(var x=new Array(b),R=0,O=-1,L=new this(o);++O<b;)z(a[O],O);return L;function z(W,V){d.resolve(W).then(function(p){x[V]=p,++R!==b||S||(S=!0,n.resolve(L,x))},function(p){S||(S=!0,n.reject(L,p))})}},m.race=function(a){var d=this;if(Object.prototype.toString.call(a)!=="[object Array]")return this.reject(new TypeError("must be an array"));var b=a.length,S=!1;if(!b)return this.resolve([]);for(var x=-1,R=new this(o);++x<b;)O=a[x],d.resolve(O).then(function(L){S||(S=!0,n.resolve(R,L))},function(L){S||(S=!0,n.reject(R,L))});var O;return R}},{immediate:36}],38:[function(v,N,k){var u={};(0,v("./lib/utils/common").assign)(u,v("./lib/deflate"),v("./lib/inflate"),v("./lib/zlib/constants")),N.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(v,N,k){var u=v("./zlib/deflate"),o=v("./utils/common"),n=v("./utils/strings"),h=v("./zlib/messages"),_=v("./zlib/zstream"),y=Object.prototype.toString,m=0,g=-1,i=0,c=8;function r(a){if(!(this instanceof r))return new r(a);this.options=o.assign({level:g,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:i,to:""},a||{});var d=this.options;d.raw&&0<d.windowBits?d.windowBits=-d.windowBits:d.gzip&&0<d.windowBits&&d.windowBits<16&&(d.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new _,this.strm.avail_out=0;var b=u.deflateInit2(this.strm,d.level,d.method,d.windowBits,d.memLevel,d.strategy);if(b!==m)throw new Error(h[b]);if(d.header&&u.deflateSetHeader(this.strm,d.header),d.dictionary){var S;if(S=typeof d.dictionary=="string"?n.string2buf(d.dictionary):y.call(d.dictionary)==="[object ArrayBuffer]"?new Uint8Array(d.dictionary):d.dictionary,(b=u.deflateSetDictionary(this.strm,S))!==m)throw new Error(h[b]);this._dict_set=!0}}function l(a,d){var b=new r(d);if(b.push(a,!0),b.err)throw b.msg||h[b.err];return b.result}r.prototype.push=function(a,d){var b,S,x=this.strm,R=this.options.chunkSize;if(this.ended)return!1;S=d===~~d?d:d===!0?4:0,typeof a=="string"?x.input=n.string2buf(a):y.call(a)==="[object ArrayBuffer]"?x.input=new Uint8Array(a):x.input=a,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new o.Buf8(R),x.next_out=0,x.avail_out=R),(b=u.deflate(x,S))!==1&&b!==m)return this.onEnd(b),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(o.shrinkBuf(x.output,x.next_out))):this.onData(o.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&b!==1);return S===4?(b=u.deflateEnd(this.strm),this.onEnd(b),this.ended=!0,b===m):S!==2||(this.onEnd(m),!(x.avail_out=0))},r.prototype.onData=function(a){this.chunks.push(a)},r.prototype.onEnd=function(a){a===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=a,this.msg=this.strm.msg},k.Deflate=r,k.deflate=l,k.deflateRaw=function(a,d){return(d=d||{}).raw=!0,l(a,d)},k.gzip=function(a,d){return(d=d||{}).gzip=!0,l(a,d)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(v,N,k){var u=v("./zlib/inflate"),o=v("./utils/common"),n=v("./utils/strings"),h=v("./zlib/constants"),_=v("./zlib/messages"),y=v("./zlib/zstream"),m=v("./zlib/gzheader"),g=Object.prototype.toString;function i(r){if(!(this instanceof i))return new i(r);this.options=o.assign({chunkSize:16384,windowBits:0,to:""},r||{});var l=this.options;l.raw&&0<=l.windowBits&&l.windowBits<16&&(l.windowBits=-l.windowBits,l.windowBits===0&&(l.windowBits=-15)),!(0<=l.windowBits&&l.windowBits<16)||r&&r.windowBits||(l.windowBits+=32),15<l.windowBits&&l.windowBits<48&&(15&l.windowBits)==0&&(l.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var a=u.inflateInit2(this.strm,l.windowBits);if(a!==h.Z_OK)throw new Error(_[a]);this.header=new m,u.inflateGetHeader(this.strm,this.header)}function c(r,l){var a=new i(l);if(a.push(r,!0),a.err)throw a.msg||_[a.err];return a.result}i.prototype.push=function(r,l){var a,d,b,S,x,R,O=this.strm,L=this.options.chunkSize,z=this.options.dictionary,W=!1;if(this.ended)return!1;d=l===~~l?l:l===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof r=="string"?O.input=n.binstring2buf(r):g.call(r)==="[object ArrayBuffer]"?O.input=new Uint8Array(r):O.input=r,O.next_in=0,O.avail_in=O.input.length;do{if(O.avail_out===0&&(O.output=new o.Buf8(L),O.next_out=0,O.avail_out=L),(a=u.inflate(O,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&z&&(R=typeof z=="string"?n.string2buf(z):g.call(z)==="[object ArrayBuffer]"?new Uint8Array(z):z,a=u.inflateSetDictionary(this.strm,R)),a===h.Z_BUF_ERROR&&W===!0&&(a=h.Z_OK,W=!1),a!==h.Z_STREAM_END&&a!==h.Z_OK)return this.onEnd(a),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&a!==h.Z_STREAM_END&&(O.avail_in!==0||d!==h.Z_FINISH&&d!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(b=n.utf8border(O.output,O.next_out),S=O.next_out-b,x=n.buf2string(O.output,b),O.next_out=S,O.avail_out=L-S,S&&o.arraySet(O.output,O.output,b,S,0),this.onData(x)):this.onData(o.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(W=!0)}while((0<O.avail_in||O.avail_out===0)&&a!==h.Z_STREAM_END);return a===h.Z_STREAM_END&&(d=h.Z_FINISH),d===h.Z_FINISH?(a=u.inflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===h.Z_OK):d!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(O.avail_out=0))},i.prototype.onData=function(r){this.chunks.push(r)},i.prototype.onEnd=function(r){r===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=o.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg},k.Inflate=i,k.inflate=c,k.inflateRaw=function(r,l){return(l=l||{}).raw=!0,c(r,l)},k.ungzip=c},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(v,N,k){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";k.assign=function(h){for(var _=Array.prototype.slice.call(arguments,1);_.length;){var y=_.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var m in y)y.hasOwnProperty(m)&&(h[m]=y[m])}}return h},k.shrinkBuf=function(h,_){return h.length===_?h:h.subarray?h.subarray(0,_):(h.length=_,h)};var o={arraySet:function(h,_,y,m,g){if(_.subarray&&h.subarray)h.set(_.subarray(y,y+m),g);else for(var i=0;i<m;i++)h[g+i]=_[y+i]},flattenChunks:function(h){var _,y,m,g,i,c;for(_=m=0,y=h.length;_<y;_++)m+=h[_].length;for(c=new Uint8Array(m),_=g=0,y=h.length;_<y;_++)i=h[_],c.set(i,g),g+=i.length;return c}},n={arraySet:function(h,_,y,m,g){for(var i=0;i<m;i++)h[g+i]=_[y+i]},flattenChunks:function(h){return[].concat.apply([],h)}};k.setTyped=function(h){h?(k.Buf8=Uint8Array,k.Buf16=Uint16Array,k.Buf32=Int32Array,k.assign(k,o)):(k.Buf8=Array,k.Buf16=Array,k.Buf32=Array,k.assign(k,n))},k.setTyped(u)},{}],42:[function(v,N,k){var u=v("./common"),o=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{o=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var h=new u.Buf8(256),_=0;_<256;_++)h[_]=252<=_?6:248<=_?5:240<=_?4:224<=_?3:192<=_?2:1;function y(m,g){if(g<65537&&(m.subarray&&n||!m.subarray&&o))return String.fromCharCode.apply(null,u.shrinkBuf(m,g));for(var i="",c=0;c<g;c++)i+=String.fromCharCode(m[c]);return i}h[254]=h[254]=1,k.string2buf=function(m){var g,i,c,r,l,a=m.length,d=0;for(r=0;r<a;r++)(64512&(i=m.charCodeAt(r)))==55296&&r+1<a&&(64512&(c=m.charCodeAt(r+1)))==56320&&(i=65536+(i-55296<<10)+(c-56320),r++),d+=i<128?1:i<2048?2:i<65536?3:4;for(g=new u.Buf8(d),r=l=0;l<d;r++)(64512&(i=m.charCodeAt(r)))==55296&&r+1<a&&(64512&(c=m.charCodeAt(r+1)))==56320&&(i=65536+(i-55296<<10)+(c-56320),r++),i<128?g[l++]=i:(i<2048?g[l++]=192|i>>>6:(i<65536?g[l++]=224|i>>>12:(g[l++]=240|i>>>18,g[l++]=128|i>>>12&63),g[l++]=128|i>>>6&63),g[l++]=128|63&i);return g},k.buf2binstring=function(m){return y(m,m.length)},k.binstring2buf=function(m){for(var g=new u.Buf8(m.length),i=0,c=g.length;i<c;i++)g[i]=m.charCodeAt(i);return g},k.buf2string=function(m,g){var i,c,r,l,a=g||m.length,d=new Array(2*a);for(i=c=0;i<a;)if((r=m[i++])<128)d[c++]=r;else if(4<(l=h[r]))d[c++]=65533,i+=l-1;else{for(r&=l===2?31:l===3?15:7;1<l&&i<a;)r=r<<6|63&m[i++],l--;1<l?d[c++]=65533:r<65536?d[c++]=r:(r-=65536,d[c++]=55296|r>>10&1023,d[c++]=56320|1023&r)}return y(d,c)},k.utf8border=function(m,g){var i;for((g=g||m.length)>m.length&&(g=m.length),i=g-1;0<=i&&(192&m[i])==128;)i--;return i<0||i===0?g:i+h[m[i]]>g?i:g}},{"./common":41}],43:[function(v,N,k){N.exports=function(u,o,n,h){for(var _=65535&u|0,y=u>>>16&65535|0,m=0;n!==0;){for(n-=m=2e3<n?2e3:n;y=y+(_=_+o[h++]|0)|0,--m;);_%=65521,y%=65521}return _|y<<16|0}},{}],44:[function(v,N,k){N.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(v,N,k){var u=function(){for(var o,n=[],h=0;h<256;h++){o=h;for(var _=0;_<8;_++)o=1&o?3988292384^o>>>1:o>>>1;n[h]=o}return n}();N.exports=function(o,n,h,_){var y=u,m=_+h;o^=-1;for(var g=_;g<m;g++)o=o>>>8^y[255&(o^n[g])];return-1^o}},{}],46:[function(v,N,k){var u,o=v("../utils/common"),n=v("./trees"),h=v("./adler32"),_=v("./crc32"),y=v("./messages"),m=0,g=4,i=0,c=-2,r=-1,l=4,a=2,d=8,b=9,S=286,x=30,R=19,O=2*S+1,L=15,z=3,W=258,V=W+z+1,p=42,T=113,t=1,D=2,Y=3,P=4;function $(e,B){return e.msg=y[B],B}function j(e){return(e<<1)-(4<e?9:0)}function J(e){for(var B=e.length;0<=--B;)e[B]=0}function A(e){var B=e.state,I=B.pending;I>e.avail_out&&(I=e.avail_out),I!==0&&(o.arraySet(e.output,B.pending_buf,B.pending_out,I,e.next_out),e.next_out+=I,B.pending_out+=I,e.total_out+=I,e.avail_out-=I,B.pending-=I,B.pending===0&&(B.pending_out=0))}function E(e,B){n._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,B),e.block_start=e.strstart,A(e.strm)}function q(e,B){e.pending_buf[e.pending++]=B}function M(e,B){e.pending_buf[e.pending++]=B>>>8&255,e.pending_buf[e.pending++]=255&B}function G(e,B){var I,f,s=e.max_chain_length,w=e.strstart,U=e.prev_length,F=e.nice_match,C=e.strstart>e.w_size-V?e.strstart-(e.w_size-V):0,Z=e.window,K=e.w_mask,H=e.prev,X=e.strstart+W,re=Z[w+U-1],ee=Z[w+U];e.prev_length>=e.good_match&&(s>>=2),F>e.lookahead&&(F=e.lookahead);do if(Z[(I=B)+U]===ee&&Z[I+U-1]===re&&Z[I]===Z[w]&&Z[++I]===Z[w+1]){w+=2,I++;do;while(Z[++w]===Z[++I]&&Z[++w]===Z[++I]&&Z[++w]===Z[++I]&&Z[++w]===Z[++I]&&Z[++w]===Z[++I]&&Z[++w]===Z[++I]&&Z[++w]===Z[++I]&&Z[++w]===Z[++I]&&w<X);if(f=W-(X-w),w=X-W,U<f){if(e.match_start=B,F<=(U=f))break;re=Z[w+U-1],ee=Z[w+U]}}while((B=H[B&K])>C&&--s!=0);return U<=e.lookahead?U:e.lookahead}function ne(e){var B,I,f,s,w,U,F,C,Z,K,H=e.w_size;do{if(s=e.window_size-e.lookahead-e.strstart,e.strstart>=H+(H-V)){for(o.arraySet(e.window,e.window,H,H,0),e.match_start-=H,e.strstart-=H,e.block_start-=H,B=I=e.hash_size;f=e.head[--B],e.head[B]=H<=f?f-H:0,--I;);for(B=I=H;f=e.prev[--B],e.prev[B]=H<=f?f-H:0,--I;);s+=H}if(e.strm.avail_in===0)break;if(U=e.strm,F=e.window,C=e.strstart+e.lookahead,Z=s,K=void 0,K=U.avail_in,Z<K&&(K=Z),I=K===0?0:(U.avail_in-=K,o.arraySet(F,U.input,U.next_in,K,C),U.state.wrap===1?U.adler=h(U.adler,F,K,C):U.state.wrap===2&&(U.adler=_(U.adler,F,K,C)),U.next_in+=K,U.total_in+=K,K),e.lookahead+=I,e.lookahead+e.insert>=z)for(w=e.strstart-e.insert,e.ins_h=e.window[w],e.ins_h=(e.ins_h<<e.hash_shift^e.window[w+1])&e.hash_mask;e.insert&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[w+z-1])&e.hash_mask,e.prev[w&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=w,w++,e.insert--,!(e.lookahead+e.insert<z)););}while(e.lookahead<V&&e.strm.avail_in!==0)}function oe(e,B){for(var I,f;;){if(e.lookahead<V){if(ne(e),e.lookahead<V&&B===m)return t;if(e.lookahead===0)break}if(I=0,e.lookahead>=z&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+z-1])&e.hash_mask,I=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),I!==0&&e.strstart-I<=e.w_size-V&&(e.match_length=G(e,I)),e.match_length>=z)if(f=n._tr_tally(e,e.strstart-e.match_start,e.match_length-z),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=z){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+z-1])&e.hash_mask,I=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart,--e.match_length!=0;);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 f=n._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++;if(f&&(E(e,!1),e.strm.avail_out===0))return t}return e.insert=e.strstart<z-1?e.strstart:z-1,B===g?(E(e,!0),e.strm.avail_out===0?Y:P):e.last_lit&&(E(e,!1),e.strm.avail_out===0)?t:D}function Q(e,B){for(var I,f,s;;){if(e.lookahead<V){if(ne(e),e.lookahead<V&&B===m)return t;if(e.lookahead===0)break}if(I=0,e.lookahead>=z&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+z-1])&e.hash_mask,I=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=z-1,I!==0&&e.prev_length<e.max_lazy_match&&e.strstart-I<=e.w_size-V&&(e.match_length=G(e,I),e.match_length<=5&&(e.strategy===1||e.match_length===z&&4096<e.strstart-e.match_start)&&(e.match_length=z-1)),e.prev_length>=z&&e.match_length<=e.prev_length){for(s=e.strstart+e.lookahead-z,f=n._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-z),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=s&&(e.ins_h=(e.ins_h<<e.hash_shift^e.window[e.strstart+z-1])&e.hash_mask,I=e.prev[e.strstart&e.w_mask]=e.head[e.ins_h],e.head[e.ins_h]=e.strstart),--e.prev_length!=0;);if(e.match_available=0,e.match_length=z-1,e.strstart++,f&&(E(e,!1),e.strm.avail_out===0))return t}else if(e.match_available){if((f=n._tr_tally(e,0,e.window[e.strstart-1]))&&E(e,!1),e.strstart++,e.lookahead--,e.strm.avail_out===0)return t}else e.match_available=1,e.strstart++,e.lookahead--}return e.match_available&&(f=n._tr_tally(e,0,e.window[e.strstart-1]),e.match_available=0),e.insert=e.strstart<z-1?e.strstart:z-1,B===g?(E(e,!0),e.strm.avail_out===0?Y:P):e.last_lit&&(E(e,!1),e.strm.avail_out===0)?t:D}function te(e,B,I,f,s){this.good_length=e,this.max_lazy=B,this.nice_length=I,this.max_chain=f,this.func=s}function se(){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=d,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 o.Buf16(2*O),this.dyn_dtree=new o.Buf16(2*(2*x+1)),this.bl_tree=new o.Buf16(2*(2*R+1)),J(this.dyn_ltree),J(this.dyn_dtree),J(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new o.Buf16(L+1),this.heap=new o.Buf16(2*S+1),J(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new o.Buf16(2*S+1),J(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 ie(e){var B;return e&&e.state?(e.total_in=e.total_out=0,e.data_type=a,(B=e.state).pending=0,B.pending_out=0,B.wrap<0&&(B.wrap=-B.wrap),B.status=B.wrap?p:T,e.adler=B.wrap===2?0:1,B.last_flush=m,n._tr_init(B),i):$(e,c)}function ue(e){var B=ie(e);return B===i&&function(I){I.window_size=2*I.w_size,J(I.head),I.max_lazy_match=u[I.level].max_lazy,I.good_match=u[I.level].good_length,I.nice_match=u[I.level].nice_length,I.max_chain_length=u[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=z-1,I.match_available=0,I.ins_h=0}(e.state),B}function le(e,B,I,f,s,w){if(!e)return c;var U=1;if(B===r&&(B=6),f<0?(U=0,f=-f):15<f&&(U=2,f-=16),s<1||b<s||I!==d||f<8||15<f||B<0||9<B||w<0||l<w)return $(e,c);f===8&&(f=9);var F=new se;return(e.state=F).strm=e,F.wrap=U,F.gzhead=null,F.w_bits=f,F.w_size=1<<F.w_bits,F.w_mask=F.w_size-1,F.hash_bits=s+7,F.hash_size=1<<F.hash_bits,F.hash_mask=F.hash_size-1,F.hash_shift=~~((F.hash_bits+z-1)/z),F.window=new o.Buf8(2*F.w_size),F.head=new o.Buf16(F.hash_size),F.prev=new o.Buf16(F.w_size),F.lit_bufsize=1<<s+6,F.pending_buf_size=4*F.lit_bufsize,F.pending_buf=new o.Buf8(F.pending_buf_size),F.d_buf=1*F.lit_bufsize,F.l_buf=3*F.lit_bufsize,F.level=B,F.strategy=w,F.method=I,ue(e)}u=[new te(0,0,0,0,function(e,B){var I=65535;for(I>e.pending_buf_size-5&&(I=e.pending_buf_size-5);;){if(e.lookahead<=1){if(ne(e),e.lookahead===0&&B===m)return t;if(e.lookahead===0)break}e.strstart+=e.lookahead,e.lookahead=0;var f=e.block_start+I;if((e.strstart===0||e.strstart>=f)&&(e.lookahead=e.strstart-f,e.strstart=f,E(e,!1),e.strm.avail_out===0)||e.strstart-e.block_start>=e.w_size-V&&(E(e,!1),e.strm.avail_out===0))return t}return e.insert=0,B===g?(E(e,!0),e.strm.avail_out===0?Y:P):(e.strstart>e.block_start&&(E(e,!1),e.strm.avail_out),t)}),new te(4,4,8,4,oe),new te(4,5,16,8,oe),new te(4,6,32,32,oe),new te(4,4,16,16,Q),new te(8,16,32,32,Q),new te(8,16,128,128,Q),new te(8,32,128,256,Q),new te(32,128,258,1024,Q),new te(32,258,258,4096,Q)],k.deflateInit=function(e,B){return le(e,B,d,15,8,0)},k.deflateInit2=le,k.deflateReset=ue,k.deflateResetKeep=ie,k.deflateSetHeader=function(e,B){return e&&e.state?e.state.wrap!==2?c:(e.state.gzhead=B,i):c},k.deflate=function(e,B){var I,f,s,w;if(!e||!e.state||5<B||B<0)return e?$(e,c):c;if(f=e.state,!e.output||!e.input&&e.avail_in!==0||f.status===666&&B!==g)return $(e,e.avail_out===0?-5:c);if(f.strm=e,I=f.last_flush,f.last_flush=B,f.status===p)if(f.wrap===2)e.adler=0,q(f,31),q(f,139),q(f,8),f.gzhead?(q(f,(f.gzhead.text?1:0)+(f.gzhead.hcrc?2:0)+(f.gzhead.extra?4:0)+(f.gzhead.name?8:0)+(f.gzhead.comment?16:0)),q(f,255&f.gzhead.time),q(f,f.gzhead.time>>8&255),q(f,f.gzhead.time>>16&255),q(f,f.gzhead.time>>24&255),q(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),q(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(q(f,255&f.gzhead.extra.length),q(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(e.adler=_(e.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(q(f,0),q(f,0),q(f,0),q(f,0),q(f,0),q(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),q(f,3),f.status=T);else{var U=d+(f.w_bits-8<<4)<<8;U|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(U|=32),U+=31-U%31,f.status=T,M(f,U),f.strstart!==0&&(M(f,e.adler>>>16),M(f,65535&e.adler)),e.adler=1}if(f.status===69)if(f.gzhead.extra){for(s=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>s&&(e.adler=_(e.adler,f.pending_buf,f.pending-s,s)),A(e),s=f.pending,f.pending!==f.pending_buf_size));)q(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>s&&(e.adler=_(e.adler,f.pending_buf,f.pending-s,s)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(e.adler=_(e.adler,f.pending_buf,f.pending-s,s)),A(e),s=f.pending,f.pending===f.pending_buf_size)){w=1;break}w=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,q(f,w)}while(w!==0);f.gzhead.hcrc&&f.pending>s&&(e.adler=_(e.adler,f.pending_buf,f.pending-s,s)),w===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){s=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>s&&(e.adler=_(e.adler,f.pending_buf,f.pending-s,s)),A(e),s=f.pending,f.pending===f.pending_buf_size)){w=1;break}w=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,q(f,w)}while(w!==0);f.gzhead.hcrc&&f.pending>s&&(e.adler=_(e.adler,f.pending_buf,f.pending-s,s)),w===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&A(e),f.pending+2<=f.pending_buf_size&&(q(f,255&e.adler),q(f,e.adler>>8&255),e.adler=0,f.status=T)):f.status=T),f.pending!==0){if(A(e),e.avail_out===0)return f.last_flush=-1,i}else if(e.avail_in===0&&j(B)<=j(I)&&B!==g)return $(e,-5);if(f.status===666&&e.avail_in!==0)return $(e,-5);if(e.avail_in!==0||f.lookahead!==0||B!==m&&f.status!==666){var F=f.strategy===2?function(C,Z){for(var K;;){if(C.lookahead===0&&(ne(C),C.lookahead===0)){if(Z===m)return t;break}if(C.match_length=0,K=n._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++,K&&(E(C,!1),C.strm.avail_out===0))return t}return C.insert=0,Z===g?(E(C,!0),C.strm.avail_out===0?Y:P):C.last_lit&&(E(C,!1),C.strm.avail_out===0)?t:D}(f,B):f.strategy===3?function(C,Z){for(var K,H,X,re,ee=C.window;;){if(C.lookahead<=W){if(ne(C),C.lookahead<=W&&Z===m)return t;if(C.lookahead===0)break}if(C.match_length=0,C.lookahead>=z&&0<C.strstart&&(H=ee[X=C.strstart-1])===ee[++X]&&H===ee[++X]&&H===ee[++X]){re=C.strstart+W;do;while(H===ee[++X]&&H===ee[++X]&&H===ee[++X]&&H===ee[++X]&&H===ee[++X]&&H===ee[++X]&&H===ee[++X]&&H===ee[++X]&&X<re);C.match_length=W-(re-X),C.match_length>C.lookahead&&(C.match_length=C.lookahead)}if(C.match_length>=z?(K=n._tr_tally(C,1,C.match_length-z),C.lookahead-=C.match_length,C.strstart+=C.match_length,C.match_length=0):(K=n._tr_tally(C,0,C.window[C.strstart]),C.lookahead--,C.strstart++),K&&(E(C,!1),C.strm.avail_out===0))return t}return C.insert=0,Z===g?(E(C,!0),C.strm.avail_out===0?Y:P):C.last_lit&&(E(C,!1),C.strm.avail_out===0)?t:D}(f,B):u[f.level].func(f,B);if(F!==Y&&F!==P||(f.status=666),F===t||F===Y)return e.avail_out===0&&(f.last_flush=-1),i;if(F===D&&(B===1?n._tr_align(f):B!==5&&(n._tr_stored_block(f,0,0,!1),B===3&&(J(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),A(e),e.avail_out===0))return f.last_flush=-1,i}return B!==g?i:f.wrap<=0?1:(f.wrap===2?(q(f,255&e.adler),q(f,e.adler>>8&255),q(f,e.adler>>16&255),q(f,e.adler>>24&255),q(f,255&e.total_in),q(f,e.total_in>>8&255),q(f,e.total_in>>16&255),q(f,e.total_in>>24&255)):(M(f,e.adler>>>16),M(f,65535&e.adler)),A(e),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?i:1)},k.deflateEnd=function(e){var B;return e&&e.state?(B=e.state.status)!==p&&B!==69&&B!==73&&B!==91&&B!==103&&B!==T&&B!==666?$(e,c):(e.state=null,B===T?$(e,-3):i):c},k.deflateSetDictionary=function(e,B){var I,f,s,w,U,F,C,Z,K=B.length;if(!e||!e.state||(w=(I=e.state).wrap)===2||w===1&&I.status!==p||I.lookahead)return c;for(w===1&&(e.adler=h(e.adler,B,K,0)),I.wrap=0,K>=I.w_size&&(w===0&&(J(I.head),I.strstart=0,I.block_start=0,I.insert=0),Z=new o.Buf8(I.w_size),o.arraySet(Z,B,K-I.w_size,I.w_size,0),B=Z,K=I.w_size),U=e.avail_in,F=e.next_in,C=e.input,e.avail_in=K,e.next_in=0,e.input=B,ne(I);I.lookahead>=z;){for(f=I.strstart,s=I.lookahead-(z-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[f+z-1])&I.hash_mask,I.prev[f&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=f,f++,--s;);I.strstart=f,I.lookahead=z-1,ne(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=z-1,I.match_available=0,e.next_in=F,e.input=C,e.avail_in=U,I.wrap=w,i},k.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(v,N,k){N.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(v,N,k){N.exports=function(u,o){var n,h,_,y,m,g,i,c,r,l,a,d,b,S,x,R,O,L,z,W,V,p,T,t,D;n=u.state,h=u.next_in,t=u.input,_=h+(u.avail_in-5),y=u.next_out,D=u.output,m=y-(o-u.avail_out),g=y+(u.avail_out-257),i=n.dmax,c=n.wsize,r=n.whave,l=n.wnext,a=n.window,d=n.hold,b=n.bits,S=n.lencode,x=n.distcode,R=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;e:do{b<15&&(d+=t[h++]<<b,b+=8,d+=t[h++]<<b,b+=8),L=S[d&R];t:for(;;){if(d>>>=z=L>>>24,b-=z,(z=L>>>16&255)===0)D[y++]=65535&L;else{if(!(16&z)){if((64&z)==0){L=S[(65535&L)+(d&(1<<z)-1)];continue t}if(32&z){n.mode=12;break e}u.msg="invalid literal/length code",n.mode=30;break e}W=65535&L,(z&=15)&&(b<z&&(d+=t[h++]<<b,b+=8),W+=d&(1<<z)-1,d>>>=z,b-=z),b<15&&(d+=t[h++]<<b,b+=8,d+=t[h++]<<b,b+=8),L=x[d&O];r:for(;;){if(d>>>=z=L>>>24,b-=z,!(16&(z=L>>>16&255))){if((64&z)==0){L=x[(65535&L)+(d&(1<<z)-1)];continue r}u.msg="invalid distance code",n.mode=30;break e}if(V=65535&L,b<(z&=15)&&(d+=t[h++]<<b,(b+=8)<z&&(d+=t[h++]<<b,b+=8)),i<(V+=d&(1<<z)-1)){u.msg="invalid distance too far back",n.mode=30;break e}if(d>>>=z,b-=z,(z=y-m)<V){if(r<(z=V-z)&&n.sane){u.msg="invalid distance too far back",n.mode=30;break e}if(T=a,(p=0)===l){if(p+=c-z,z<W){for(W-=z;D[y++]=a[p++],--z;);p=y-V,T=D}}else if(l<z){if(p+=c+l-z,(z-=l)<W){for(W-=z;D[y++]=a[p++],--z;);if(p=0,l<W){for(W-=z=l;D[y++]=a[p++],--z;);p=y-V,T=D}}}else if(p+=l-z,z<W){for(W-=z;D[y++]=a[p++],--z;);p=y-V,T=D}for(;2<W;)D[y++]=T[p++],D[y++]=T[p++],D[y++]=T[p++],W-=3;W&&(D[y++]=T[p++],1<W&&(D[y++]=T[p++]))}else{for(p=y-V;D[y++]=D[p++],D[y++]=D[p++],D[y++]=D[p++],2<(W-=3););W&&(D[y++]=D[p++],1<W&&(D[y++]=D[p++]))}break}}break}}while(h<_&&y<g);h-=W=b>>3,d&=(1<<(b-=W<<3))-1,u.next_in=h,u.next_out=y,u.avail_in=h<_?_-h+5:5-(h-_),u.avail_out=y<g?g-y+257:257-(y-g),n.hold=d,n.bits=b}},{}],49:[function(v,N,k){var u=v("../utils/common"),o=v("./adler32"),n=v("./crc32"),h=v("./inffast"),_=v("./inftrees"),y=1,m=2,g=0,i=-2,c=1,r=852,l=592;function a(p){return(p>>>24&255)+(p>>>8&65280)+((65280&p)<<8)+((255&p)<<24)}function d(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function b(p){var T;return p&&p.state?(T=p.state,p.total_in=p.total_out=T.total=0,p.msg="",T.wrap&&(p.adler=1&T.wrap),T.mode=c,T.last=0,T.havedict=0,T.dmax=32768,T.head=null,T.hold=0,T.bits=0,T.lencode=T.lendyn=new u.Buf32(r),T.distcode=T.distdyn=new u.Buf32(l),T.sane=1,T.back=-1,g):i}function S(p){var T;return p&&p.state?((T=p.state).wsize=0,T.whave=0,T.wnext=0,b(p)):i}function x(p,T){var t,D;return p&&p.state?(D=p.state,T<0?(t=0,T=-T):(t=1+(T>>4),T<48&&(T&=15)),T&&(T<8||15<T)?i:(D.window!==null&&D.wbits!==T&&(D.window=null),D.wrap=t,D.wbits=T,S(p))):i}function R(p,T){var t,D;return p?(D=new d,(p.state=D).window=null,(t=x(p,T))!==g&&(p.state=null),t):i}var O,L,z=!0;function W(p){if(z){var T;for(O=new u.Buf32(512),L=new u.Buf32(32),T=0;T<144;)p.lens[T++]=8;for(;T<256;)p.lens[T++]=9;for(;T<280;)p.lens[T++]=7;for(;T<288;)p.lens[T++]=8;for(_(y,p.lens,0,288,O,0,p.work,{bits:9}),T=0;T<32;)p.lens[T++]=5;_(m,p.lens,0,32,L,0,p.work,{bits:5}),z=!1}p.lencode=O,p.lenbits=9,p.distcode=L,p.distbits=5}function V(p,T,t,D){var Y,P=p.state;return P.window===null&&(P.wsize=1<<P.wbits,P.wnext=0,P.whave=0,P.window=new u.Buf8(P.wsize)),D>=P.wsize?(u.arraySet(P.window,T,t-P.wsize,P.wsize,0),P.wnext=0,P.whave=P.wsize):(D<(Y=P.wsize-P.wnext)&&(Y=D),u.arraySet(P.window,T,t-D,Y,P.wnext),(D-=Y)?(u.arraySet(P.window,T,t-D,D,0),P.wnext=D,P.whave=P.wsize):(P.wnext+=Y,P.wnext===P.wsize&&(P.wnext=0),P.whave<P.wsize&&(P.whave+=Y))),0}k.inflateReset=S,k.inflateReset2=x,k.inflateResetKeep=b,k.inflateInit=function(p){return R(p,15)},k.inflateInit2=R,k.inflate=function(p,T){var t,D,Y,P,$,j,J,A,E,q,M,G,ne,oe,Q,te,se,ie,ue,le,e,B,I,f,s=0,w=new u.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!p||!p.state||!p.output||!p.input&&p.avail_in!==0)return i;(t=p.state).mode===12&&(t.mode=13),$=p.next_out,Y=p.output,J=p.avail_out,P=p.next_in,D=p.input,j=p.avail_in,A=t.hold,E=t.bits,q=j,M=J,B=g;e:for(;;)switch(t.mode){case c:if(t.wrap===0){t.mode=13;break}for(;E<16;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if(2&t.wrap&&A===35615){w[t.check=0]=255&A,w[1]=A>>>8&255,t.check=n(t.check,w,2,0),E=A=0,t.mode=2;break}if(t.flags=0,t.head&&(t.head.done=!1),!(1&t.wrap)||(((255&A)<<8)+(A>>8))%31){p.msg="incorrect header check",t.mode=30;break}if((15&A)!=8){p.msg="unknown compression method",t.mode=30;break}if(E-=4,e=8+(15&(A>>>=4)),t.wbits===0)t.wbits=e;else if(e>t.wbits){p.msg="invalid window size",t.mode=30;break}t.dmax=1<<e,p.adler=t.check=1,t.mode=512&A?10:12,E=A=0;break;case 2:for(;E<16;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if(t.flags=A,(255&t.flags)!=8){p.msg="unknown compression method",t.mode=30;break}if(57344&t.flags){p.msg="unknown header flags set",t.mode=30;break}t.head&&(t.head.text=A>>8&1),512&t.flags&&(w[0]=255&A,w[1]=A>>>8&255,t.check=n(t.check,w,2,0)),E=A=0,t.mode=3;case 3:for(;E<32;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}t.head&&(t.head.time=A),512&t.flags&&(w[0]=255&A,w[1]=A>>>8&255,w[2]=A>>>16&255,w[3]=A>>>24&255,t.check=n(t.check,w,4,0)),E=A=0,t.mode=4;case 4:for(;E<16;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}t.head&&(t.head.xflags=255&A,t.head.os=A>>8),512&t.flags&&(w[0]=255&A,w[1]=A>>>8&255,t.check=n(t.check,w,2,0)),E=A=0,t.mode=5;case 5:if(1024&t.flags){for(;E<16;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}t.length=A,t.head&&(t.head.extra_len=A),512&t.flags&&(w[0]=255&A,w[1]=A>>>8&255,t.check=n(t.check,w,2,0)),E=A=0}else t.head&&(t.head.extra=null);t.mode=6;case 6:if(1024&t.flags&&(j<(G=t.length)&&(G=j),G&&(t.head&&(e=t.head.extra_len-t.length,t.head.extra||(t.head.extra=new Array(t.head.extra_len)),u.arraySet(t.head.extra,D,P,G,e)),512&t.flags&&(t.check=n(t.check,D,G,P)),j-=G,P+=G,t.length-=G),t.length))break e;t.length=0,t.mode=7;case 7:if(2048&t.flags){if(j===0)break e;for(G=0;e=D[P+G++],t.head&&e&&t.length<65536&&(t.head.name+=String.fromCharCode(e)),e&&G<j;);if(512&t.flags&&(t.check=n(t.check,D,G,P)),j-=G,P+=G,e)break e}else t.head&&(t.head.name=null);t.length=0,t.mode=8;case 8:if(4096&t.flags){if(j===0)break e;for(G=0;e=D[P+G++],t.head&&e&&t.length<65536&&(t.head.comment+=String.fromCharCode(e)),e&&G<j;);if(512&t.flags&&(t.check=n(t.check,D,G,P)),j-=G,P+=G,e)break e}else t.head&&(t.head.comment=null);t.mode=9;case 9:if(512&t.flags){for(;E<16;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if(A!==(65535&t.check)){p.msg="header crc mismatch",t.mode=30;break}E=A=0}t.head&&(t.head.hcrc=t.flags>>9&1,t.head.done=!0),p.adler=t.check=0,t.mode=12;break;case 10:for(;E<32;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}p.adler=t.check=a(A),E=A=0,t.mode=11;case 11:if(t.havedict===0)return p.next_out=$,p.avail_out=J,p.next_in=P,p.avail_in=j,t.hold=A,t.bits=E,2;p.adler=t.check=1,t.mode=12;case 12:if(T===5||T===6)break e;case 13:if(t.last){A>>>=7&E,E-=7&E,t.mode=27;break}for(;E<3;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}switch(t.last=1&A,E-=1,3&(A>>>=1)){case 0:t.mode=14;break;case 1:if(W(t),t.mode=20,T!==6)break;A>>>=2,E-=2;break e;case 2:t.mode=17;break;case 3:p.msg="invalid block type",t.mode=30}A>>>=2,E-=2;break;case 14:for(A>>>=7&E,E-=7&E;E<32;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if((65535&A)!=(A>>>16^65535)){p.msg="invalid stored block lengths",t.mode=30;break}if(t.length=65535&A,E=A=0,t.mode=15,T===6)break e;case 15:t.mode=16;case 16:if(G=t.length){if(j<G&&(G=j),J<G&&(G=J),G===0)break e;u.arraySet(Y,D,P,G,$),j-=G,P+=G,J-=G,$+=G,t.length-=G;break}t.mode=12;break;case 17:for(;E<14;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if(t.nlen=257+(31&A),A>>>=5,E-=5,t.ndist=1+(31&A),A>>>=5,E-=5,t.ncode=4+(15&A),A>>>=4,E-=4,286<t.nlen||30<t.ndist){p.msg="too many length or distance symbols",t.mode=30;break}t.have=0,t.mode=18;case 18:for(;t.have<t.ncode;){for(;E<3;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}t.lens[U[t.have++]]=7&A,A>>>=3,E-=3}for(;t.have<19;)t.lens[U[t.have++]]=0;if(t.lencode=t.lendyn,t.lenbits=7,I={bits:t.lenbits},B=_(0,t.lens,0,19,t.lencode,0,t.work,I),t.lenbits=I.bits,B){p.msg="invalid code lengths set",t.mode=30;break}t.have=0,t.mode=19;case 19:for(;t.have<t.nlen+t.ndist;){for(;te=(s=t.lencode[A&(1<<t.lenbits)-1])>>>16&255,se=65535&s,!((Q=s>>>24)<=E);){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if(se<16)A>>>=Q,E-=Q,t.lens[t.have++]=se;else{if(se===16){for(f=Q+2;E<f;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if(A>>>=Q,E-=Q,t.have===0){p.msg="invalid bit length repeat",t.mode=30;break}e=t.lens[t.have-1],G=3+(3&A),A>>>=2,E-=2}else if(se===17){for(f=Q+3;E<f;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}E-=Q,e=0,G=3+(7&(A>>>=Q)),A>>>=3,E-=3}else{for(f=Q+7;E<f;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}E-=Q,e=0,G=11+(127&(A>>>=Q)),A>>>=7,E-=7}if(t.have+G>t.nlen+t.ndist){p.msg="invalid bit length repeat",t.mode=30;break}for(;G--;)t.lens[t.have++]=e}}if(t.mode===30)break;if(t.lens[256]===0){p.msg="invalid code -- missing end-of-block",t.mode=30;break}if(t.lenbits=9,I={bits:t.lenbits},B=_(y,t.lens,0,t.nlen,t.lencode,0,t.work,I),t.lenbits=I.bits,B){p.msg="invalid literal/lengths set",t.mode=30;break}if(t.distbits=6,t.distcode=t.distdyn,I={bits:t.distbits},B=_(m,t.lens,t.nlen,t.ndist,t.distcode,0,t.work,I),t.distbits=I.bits,B){p.msg="invalid distances set",t.mode=30;break}if(t.mode=20,T===6)break e;case 20:t.mode=21;case 21:if(6<=j&&258<=J){p.next_out=$,p.avail_out=J,p.next_in=P,p.avail_in=j,t.hold=A,t.bits=E,h(p,M),$=p.next_out,Y=p.output,J=p.avail_out,P=p.next_in,D=p.input,j=p.avail_in,A=t.hold,E=t.bits,t.mode===12&&(t.back=-1);break}for(t.back=0;te=(s=t.lencode[A&(1<<t.lenbits)-1])>>>16&255,se=65535&s,!((Q=s>>>24)<=E);){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if(te&&(240&te)==0){for(ie=Q,ue=te,le=se;te=(s=t.lencode[le+((A&(1<<ie+ue)-1)>>ie)])>>>16&255,se=65535&s,!(ie+(Q=s>>>24)<=E);){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}A>>>=ie,E-=ie,t.back+=ie}if(A>>>=Q,E-=Q,t.back+=Q,t.length=se,te===0){t.mode=26;break}if(32&te){t.back=-1,t.mode=12;break}if(64&te){p.msg="invalid literal/length code",t.mode=30;break}t.extra=15&te,t.mode=22;case 22:if(t.extra){for(f=t.extra;E<f;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}t.length+=A&(1<<t.extra)-1,A>>>=t.extra,E-=t.extra,t.back+=t.extra}t.was=t.length,t.mode=23;case 23:for(;te=(s=t.distcode[A&(1<<t.distbits)-1])>>>16&255,se=65535&s,!((Q=s>>>24)<=E);){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if((240&te)==0){for(ie=Q,ue=te,le=se;te=(s=t.distcode[le+((A&(1<<ie+ue)-1)>>ie)])>>>16&255,se=65535&s,!(ie+(Q=s>>>24)<=E);){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}A>>>=ie,E-=ie,t.back+=ie}if(A>>>=Q,E-=Q,t.back+=Q,64&te){p.msg="invalid distance code",t.mode=30;break}t.offset=se,t.extra=15&te,t.mode=24;case 24:if(t.extra){for(f=t.extra;E<f;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}t.offset+=A&(1<<t.extra)-1,A>>>=t.extra,E-=t.extra,t.back+=t.extra}if(t.offset>t.dmax){p.msg="invalid distance too far back",t.mode=30;break}t.mode=25;case 25:if(J===0)break e;if(G=M-J,t.offset>G){if((G=t.offset-G)>t.whave&&t.sane){p.msg="invalid distance too far back",t.mode=30;break}ne=G>t.wnext?(G-=t.wnext,t.wsize-G):t.wnext-G,G>t.length&&(G=t.length),oe=t.window}else oe=Y,ne=$-t.offset,G=t.length;for(J<G&&(G=J),J-=G,t.length-=G;Y[$++]=oe[ne++],--G;);t.length===0&&(t.mode=21);break;case 26:if(J===0)break e;Y[$++]=t.length,J--,t.mode=21;break;case 27:if(t.wrap){for(;E<32;){if(j===0)break e;j--,A|=D[P++]<<E,E+=8}if(M-=J,p.total_out+=M,t.total+=M,M&&(p.adler=t.check=t.flags?n(t.check,Y,M,$-M):o(t.check,Y,M,$-M)),M=J,(t.flags?A:a(A))!==t.check){p.msg="incorrect data check",t.mode=30;break}E=A=0}t.mode=28;case 28:if(t.wrap&&t.flags){for(;E<32;){if(j===0)break e;j--,A+=D[P++]<<E,E+=8}if(A!==(4294967295&t.total)){p.msg="incorrect length check",t.mode=30;break}E=A=0}t.mode=29;case 29:B=1;break e;case 30:B=-3;break e;case 31:return-4;case 32:default:return i}return p.next_out=$,p.avail_out=J,p.next_in=P,p.avail_in=j,t.hold=A,t.bits=E,(t.wsize||M!==p.avail_out&&t.mode<30&&(t.mode<27||T!==4))&&V(p,p.output,p.next_out,M-p.avail_out)?(t.mode=31,-4):(q-=p.avail_in,M-=p.avail_out,p.total_in+=q,p.total_out+=M,t.total+=M,t.wrap&&M&&(p.adler=t.check=t.flags?n(t.check,Y,M,p.next_out-M):o(t.check,Y,M,p.next_out-M)),p.data_type=t.bits+(t.last?64:0)+(t.mode===12?128:0)+(t.mode===20||t.mode===15?256:0),(q==0&&M===0||T===4)&&B===g&&(B=-5),B)},k.inflateEnd=function(p){if(!p||!p.state)return i;var T=p.state;return T.window&&(T.window=null),p.state=null,g},k.inflateGetHeader=function(p,T){var t;return p&&p.state?(2&(t=p.state).wrap)==0?i:((t.head=T).done=!1,g):i},k.inflateSetDictionary=function(p,T){var t,D=T.length;return p&&p.state?(t=p.state).wrap!==0&&t.mode!==11?i:t.mode===11&&o(1,T,D,0)!==t.check?-3:V(p,T,D,D)?(t.mode=31,-4):(t.havedict=1,g):i},k.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(v,N,k){var u=v("../utils/common"),o=[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],n=[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],h=[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],_=[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];N.exports=function(y,m,g,i,c,r,l,a){var d,b,S,x,R,O,L,z,W,V=a.bits,p=0,T=0,t=0,D=0,Y=0,P=0,$=0,j=0,J=0,A=0,E=null,q=0,M=new u.Buf16(16),G=new u.Buf16(16),ne=null,oe=0;for(p=0;p<=15;p++)M[p]=0;for(T=0;T<i;T++)M[m[g+T]]++;for(Y=V,D=15;1<=D&&M[D]===0;D--);if(D<Y&&(Y=D),D===0)return c[r++]=20971520,c[r++]=20971520,a.bits=1,0;for(t=1;t<D&&M[t]===0;t++);for(Y<t&&(Y=t),p=j=1;p<=15;p++)if(j<<=1,(j-=M[p])<0)return-1;if(0<j&&(y===0||D!==1))return-1;for(G[1]=0,p=1;p<15;p++)G[p+1]=G[p]+M[p];for(T=0;T<i;T++)m[g+T]!==0&&(l[G[m[g+T]]++]=T);if(O=y===0?(E=ne=l,19):y===1?(E=o,q-=257,ne=n,oe-=257,256):(E=h,ne=_,-1),p=t,R=r,$=T=A=0,S=-1,x=(J=1<<(P=Y))-1,y===1&&852<J||y===2&&592<J)return 1;for(;;){for(L=p-$,W=l[T]<O?(z=0,l[T]):l[T]>O?(z=ne[oe+l[T]],E[q+l[T]]):(z=96,0),d=1<<p-$,t=b=1<<P;c[R+(A>>$)+(b-=d)]=L<<24|z<<16|W|0,b!==0;);for(d=1<<p-1;A&d;)d>>=1;if(d!==0?(A&=d-1,A+=d):A=0,T++,--M[p]==0){if(p===D)break;p=m[g+l[T]]}if(Y<p&&(A&x)!==S){for($===0&&($=Y),R+=t,j=1<<(P=p-$);P+$<D&&!((j-=M[P+$])<=0);)P++,j<<=1;if(J+=1<<P,y===1&&852<J||y===2&&592<J)return 1;c[S=A&x]=Y<<24|P<<16|R-r|0}}return A!==0&&(c[R+A]=p-$<<24|64<<16|0),a.bits=Y,0}},{"../utils/common":41}],51:[function(v,N,k){N.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(v,N,k){var u=v("../utils/common"),o=0,n=1;function h(s){for(var w=s.length;0<=--w;)s[w]=0}var _=0,y=29,m=256,g=m+1+y,i=30,c=19,r=2*g+1,l=15,a=16,d=7,b=256,S=16,x=17,R=18,O=[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],L=[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],z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],W=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],V=new Array(2*(g+2));h(V);var p=new Array(2*i);h(p);var T=new Array(512);h(T);var t=new Array(256);h(t);var D=new Array(y);h(D);var Y,P,$,j=new Array(i);function J(s,w,U,F,C){this.static_tree=s,this.extra_bits=w,this.extra_base=U,this.elems=F,this.max_length=C,this.has_stree=s&&s.length}function A(s,w){this.dyn_tree=s,this.max_code=0,this.stat_desc=w}function E(s){return s<256?T[s]:T[256+(s>>>7)]}function q(s,w){s.pending_buf[s.pending++]=255&w,s.pending_buf[s.pending++]=w>>>8&255}function M(s,w,U){s.bi_valid>a-U?(s.bi_buf|=w<<s.bi_valid&65535,q(s,s.bi_buf),s.bi_buf=w>>a-s.bi_valid,s.bi_valid+=U-a):(s.bi_buf|=w<<s.bi_valid&65535,s.bi_valid+=U)}function G(s,w,U){M(s,U[2*w],U[2*w+1])}function ne(s,w){for(var U=0;U|=1&s,s>>>=1,U<<=1,0<--w;);return U>>>1}function oe(s,w,U){var F,C,Z=new Array(l+1),K=0;for(F=1;F<=l;F++)Z[F]=K=K+U[F-1]<<1;for(C=0;C<=w;C++){var H=s[2*C+1];H!==0&&(s[2*C]=ne(Z[H]++,H))}}function Q(s){var w;for(w=0;w<g;w++)s.dyn_ltree[2*w]=0;for(w=0;w<i;w++)s.dyn_dtree[2*w]=0;for(w=0;w<c;w++)s.bl_tree[2*w]=0;s.dyn_ltree[2*b]=1,s.opt_len=s.static_len=0,s.last_lit=s.matches=0}function te(s){8<s.bi_valid?q(s,s.bi_buf):0<s.bi_valid&&(s.pending_buf[s.pending++]=s.bi_buf),s.bi_buf=0,s.bi_valid=0}function se(s,w,U,F){var C=2*w,Z=2*U;return s[C]<s[Z]||s[C]===s[Z]&&F[w]<=F[U]}function ie(s,w,U){for(var F=s.heap[U],C=U<<1;C<=s.heap_len&&(C<s.heap_len&&se(w,s.heap[C+1],s.heap[C],s.depth)&&C++,!se(w,F,s.heap[C],s.depth));)s.heap[U]=s.heap[C],U=C,C<<=1;s.heap[U]=F}function ue(s,w,U){var F,C,Z,K,H=0;if(s.last_lit!==0)for(;F=s.pending_buf[s.d_buf+2*H]<<8|s.pending_buf[s.d_buf+2*H+1],C=s.pending_buf[s.l_buf+H],H++,F===0?G(s,C,w):(G(s,(Z=t[C])+m+1,w),(K=O[Z])!==0&&M(s,C-=D[Z],K),G(s,Z=E(--F),U),(K=L[Z])!==0&&M(s,F-=j[Z],K)),H<s.last_lit;);G(s,b,w)}function le(s,w){var U,F,C,Z=w.dyn_tree,K=w.stat_desc.static_tree,H=w.stat_desc.has_stree,X=w.stat_desc.elems,re=-1;for(s.heap_len=0,s.heap_max=r,U=0;U<X;U++)Z[2*U]!==0?(s.heap[++s.heap_len]=re=U,s.depth[U]=0):Z[2*U+1]=0;for(;s.heap_len<2;)Z[2*(C=s.heap[++s.heap_len]=re<2?++re:0)]=1,s.depth[C]=0,s.opt_len--,H&&(s.static_len-=K[2*C+1]);for(w.max_code=re,U=s.heap_len>>1;1<=U;U--)ie(s,Z,U);for(C=X;U=s.heap[1],s.heap[1]=s.heap[s.heap_len--],ie(s,Z,1),F=s.heap[1],s.heap[--s.heap_max]=U,s.heap[--s.heap_max]=F,Z[2*C]=Z[2*U]+Z[2*F],s.depth[C]=(s.depth[U]>=s.depth[F]?s.depth[U]:s.depth[F])+1,Z[2*U+1]=Z[2*F+1]=C,s.heap[1]=C++,ie(s,Z,1),2<=s.heap_len;);s.heap[--s.heap_max]=s.heap[1],function(ee,he){var de,fe,pe,ae,_e,we,ce=he.dyn_tree,ke=he.max_code,Ae=he.stat_desc.static_tree,Ie=he.stat_desc.has_stree,ze=he.stat_desc.extra_bits,xe=he.stat_desc.extra_base,me=he.stat_desc.max_length,ge=0;for(ae=0;ae<=l;ae++)ee.bl_count[ae]=0;for(ce[2*ee.heap[ee.heap_max]+1]=0,de=ee.heap_max+1;de<r;de++)me<(ae=ce[2*ce[2*(fe=ee.heap[de])+1]+1]+1)&&(ae=me,ge++),ce[2*fe+1]=ae,ke<fe||(ee.bl_count[ae]++,_e=0,xe<=fe&&(_e=ze[fe-xe]),we=ce[2*fe],ee.opt_len+=we*(ae+_e),Ie&&(ee.static_len+=we*(Ae[2*fe+1]+_e)));if(ge!==0){do{for(ae=me-1;ee.bl_count[ae]===0;)ae--;ee.bl_count[ae]--,ee.bl_count[ae+1]+=2,ee.bl_count[me]--,ge-=2}while(0<ge);for(ae=me;ae!==0;ae--)for(fe=ee.bl_count[ae];fe!==0;)ke<(pe=ee.heap[--de])||(ce[2*pe+1]!==ae&&(ee.opt_len+=(ae-ce[2*pe+1])*ce[2*pe],ce[2*pe+1]=ae),fe--)}}(s,w),oe(Z,re,s.bl_count)}function e(s,w,U){var F,C,Z=-1,K=w[1],H=0,X=7,re=4;for(K===0&&(X=138,re=3),w[2*(U+1)+1]=65535,F=0;F<=U;F++)C=K,K=w[2*(F+1)+1],++H<X&&C===K||(H<re?s.bl_tree[2*C]+=H:C!==0?(C!==Z&&s.bl_tree[2*C]++,s.bl_tree[2*S]++):H<=10?s.bl_tree[2*x]++:s.bl_tree[2*R]++,Z=C,re=(H=0)===K?(X=138,3):C===K?(X=6,3):(X=7,4))}function B(s,w,U){var F,C,Z=-1,K=w[1],H=0,X=7,re=4;for(K===0&&(X=138,re=3),F=0;F<=U;F++)if(C=K,K=w[2*(F+1)+1],!(++H<X&&C===K)){if(H<re)for(;G(s,C,s.bl_tree),--H!=0;);else C!==0?(C!==Z&&(G(s,C,s.bl_tree),H--),G(s,S,s.bl_tree),M(s,H-3,2)):H<=10?(G(s,x,s.bl_tree),M(s,H-3,3)):(G(s,R,s.bl_tree),M(s,H-11,7));Z=C,re=(H=0)===K?(X=138,3):C===K?(X=6,3):(X=7,4)}}h(j);var I=!1;function f(s,w,U,F){M(s,(_<<1)+(F?1:0),3),function(C,Z,K,H){te(C),q(C,K),q(C,~K),u.arraySet(C.pending_buf,C.window,Z,K,C.pending),C.pending+=K}(s,w,U)}k._tr_init=function(s){I||(function(){var w,U,F,C,Z,K=new Array(l+1);for(C=F=0;C<y-1;C++)for(D[C]=F,w=0;w<1<<O[C];w++)t[F++]=C;for(t[F-1]=C,C=Z=0;C<16;C++)for(j[C]=Z,w=0;w<1<<L[C];w++)T[Z++]=C;for(Z>>=7;C<i;C++)for(j[C]=Z<<7,w=0;w<1<<L[C]-7;w++)T[256+Z++]=C;for(U=0;U<=l;U++)K[U]=0;for(w=0;w<=143;)V[2*w+1]=8,w++,K[8]++;for(;w<=255;)V[2*w+1]=9,w++,K[9]++;for(;w<=279;)V[2*w+1]=7,w++,K[7]++;for(;w<=287;)V[2*w+1]=8,w++,K[8]++;for(oe(V,g+1,K),w=0;w<i;w++)p[2*w+1]=5,p[2*w]=ne(w,5);Y=new J(V,O,m+1,g,l),P=new J(p,L,0,i,l),$=new J(new Array(0),z,0,c,d)}(),I=!0),s.l_desc=new A(s.dyn_ltree,Y),s.d_desc=new A(s.dyn_dtree,P),s.bl_desc=new A(s.bl_tree,$),s.bi_buf=0,s.bi_valid=0,Q(s)},k._tr_stored_block=f,k._tr_flush_block=function(s,w,U,F){var C,Z,K=0;0<s.level?(s.strm.data_type===2&&(s.strm.data_type=function(H){var X,re=4093624447;for(X=0;X<=31;X++,re>>>=1)if(1&re&&H.dyn_ltree[2*X]!==0)return o;if(H.dyn_ltree[18]!==0||H.dyn_ltree[20]!==0||H.dyn_ltree[26]!==0)return n;for(X=32;X<m;X++)if(H.dyn_ltree[2*X]!==0)return n;return o}(s)),le(s,s.l_desc),le(s,s.d_desc),K=function(H){var X;for(e(H,H.dyn_ltree,H.l_desc.max_code),e(H,H.dyn_dtree,H.d_desc.max_code),le(H,H.bl_desc),X=c-1;3<=X&&H.bl_tree[2*W[X]+1]===0;X--);return H.opt_len+=3*(X+1)+5+5+4,X}(s),C=s.opt_len+3+7>>>3,(Z=s.static_len+3+7>>>3)<=C&&(C=Z)):C=Z=U+5,U+4<=C&&w!==-1?f(s,w,U,F):s.strategy===4||Z===C?(M(s,2+(F?1:0),3),ue(s,V,p)):(M(s,4+(F?1:0),3),function(H,X,re,ee){var he;for(M(H,X-257,5),M(H,re-1,5),M(H,ee-4,4),he=0;he<ee;he++)M(H,H.bl_tree[2*W[he]+1],3);B(H,H.dyn_ltree,X-1),B(H,H.dyn_dtree,re-1)}(s,s.l_desc.max_code+1,s.d_desc.max_code+1,K+1),ue(s,s.dyn_ltree,s.dyn_dtree)),Q(s),F&&te(s)},k._tr_tally=function(s,w,U){return s.pending_buf[s.d_buf+2*s.last_lit]=w>>>8&255,s.pending_buf[s.d_buf+2*s.last_lit+1]=255&w,s.pending_buf[s.l_buf+s.last_lit]=255&U,s.last_lit++,w===0?s.dyn_ltree[2*U]++:(s.matches++,w--,s.dyn_ltree[2*(t[U]+m+1)]++,s.dyn_dtree[2*E(w)]++),s.last_lit===s.lit_bufsize-1},k._tr_align=function(s){M(s,2,3),G(s,b,V),function(w){w.bi_valid===16?(q(w,w.bi_buf),w.bi_buf=0,w.bi_valid=0):8<=w.bi_valid&&(w.pending_buf[w.pending++]=255&w.bi_buf,w.bi_buf>>=8,w.bi_valid-=8)}(s)}},{"../utils/common":41}],53:[function(v,N,k){N.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(v,N,k){(function(u){(function(o,n){if(!o.setImmediate){var h,_,y,m,g=1,i={},c=!1,r=o.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(o);l=l&&l.setTimeout?l:o,h={}.toString.call(o.process)==="[object process]"?function(S){process.nextTick(function(){d(S)})}:function(){if(o.postMessage&&!o.importScripts){var S=!0,x=o.onmessage;return o.onmessage=function(){S=!1},o.postMessage("","*"),o.onmessage=x,S}}()?(m="setImmediate$"+Math.random()+"$",o.addEventListener?o.addEventListener("message",b,!1):o.attachEvent("onmessage",b),function(S){o.postMessage(m+S,"*")}):o.MessageChannel?((y=new MessageChannel).port1.onmessage=function(S){d(S.data)},function(S){y.port2.postMessage(S)}):r&&"onreadystatechange"in r.createElement("script")?(_=r.documentElement,function(S){var x=r.createElement("script");x.onreadystatechange=function(){d(S),x.onreadystatechange=null,_.removeChild(x),x=null},_.appendChild(x)}):function(S){setTimeout(d,0,S)},l.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),R=0;R<x.length;R++)x[R]=arguments[R+1];var O={callback:S,args:x};return i[g]=O,h(g),g++},l.clearImmediate=a}function a(S){delete i[S]}function d(S){if(c)setTimeout(d,0,S);else{var x=i[S];if(x){c=!0;try{(function(R){var O=R.callback,L=R.args;switch(L.length){case 0:O();break;case 1:O(L[0]);break;case 2:O(L[0],L[1]);break;case 3:O(L[0],L[1],L[2]);break;default:O.apply(n,L)}})(x)}finally{a(S),c=!1}}}}function b(S){S.source===o&&typeof S.data=="string"&&S.data.indexOf(m)===0&&d(+S.data.slice(m.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof ve<"u"?ve:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Se)),Se.exports}var Be=Te();const Ee=Oe(Be),De=Object.freeze(Object.defineProperty({__proto__:null,default:Ee},Symbol.toStringTag,{value:"Module"}));export{Ee as J,De as j};