const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./BEXY9h4z.js","./Dx30TqaJ.js"])))=>i.map(i=>d[i]);
import{x as Gt,n as Bt,r as Dt,f as ht,o as ft,g as gt,k as Pt,h as bt,C as mt,F as Ut,B as Lt,i as jt,H as Vt,a2 as Kt,S as Yt,_ as Xt,N as qt,ae as $t,s as Jt,z as vt,af as Qt,m as St,ag as te,G as ee,ah as re,M as Tt,a3 as Et,ai as At}from"./B7moA0Zy.js";const ne={class:"list"},ie={class:"swatches"},ae={__name:"Finishings",props:{data:{type:Object},modelValue:{type:String}},emits:["update:modelValue"],setup(st){const yt=st,p=Bt(()=>yt.data.variants.find(w=>w.finishing===yt.modelValue)),P=Bt(()=>{var i,n;let w="";const u=(n=(i=p.value)==null?void 0:i.parts.find(l=>l.partName==="Primaria"))==null?void 0:n.finishing[0];return u&&(w=`${u.code&&!u.hideCode?`${u.code} `:""}${u.title}`),w});return(w,u)=>{const i=Yt,n=Xt,l=qt,v=Dt("lay");return ht((ft(),gt("div",null,[ht((ft(),gt("div",null,[Pt(i,{data:{heading:w.$t("finishing"),typo:4,color:"grey"}},null,8,["data"]),Pt(i,{data:{heading:bt(P),typo:4}},null,8,["data"])])),[[v,{dir:"v",gap:"xxs",align:"start",fluid:!0}]]),mt("div",ne,[(ft(!0),gt(Ut,null,Lt(st.data.variants,y=>(ft(),jt(l,{onClick:m=>w.$emit("update:modelValue",y.finishing),data:{active:st.modelValue===y.finishing,themes:["button","white-button","rounded","icon"]}},{default:Vt(()=>[ht((ft(),gt("div",ie,[(ft(!0),gt(Ut,null,Lt(y.parts.filter(m=>m.swatch),(m,b)=>{var a;return ft(),jt(n,{style:Kt({marginLeft:`calc(${b} * var(--swatch-size) / 2`}),data:{image:((a=m.finishing[0])==null?void 0:a.swatch)||[],ratio:[1,1],theme:"swatch",active:st.modelValue===y.finishing}},null,8,["style","data"])}),256))])),[[v,"o"]])]),_:2},1032,["onClick","data"]))),256))])])),[[v,{gap:"xs"}]])}}},fe=Gt(ae,[["__scopeId","data-v-d28c2e01"]]);var Ot=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function se(st){return st&&st.__esModule&&Object.prototype.hasOwnProperty.call(st,"default")?st.default:st}function It(st){throw new Error('Could not dynamically require "'+st+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Zt={exports:{}};/*!

JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>

(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.

JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/(function(st,yt){(function(p){st.exports=p()})(function(){return function p(P,w,u){function i(v,y){if(!w[v]){if(!P[v]){var m=typeof It=="function"&&It;if(!y&&m)return m(v,!0);if(n)return n(v,!0);var b=new Error("Cannot find module '"+v+"'");throw b.code="MODULE_NOT_FOUND",b}var a=w[v]={exports:{}};P[v][0].call(a.exports,function(c){var r=P[v][1][c];return i(r||c)},a,a.exports,p,P,w,u)}return w[v].exports}for(var n=typeof It=="function"&&It,l=0;l<u.length;l++)i(u[l]);return i}({1:[function(p,P,w){var u=p("./utils"),i=p("./support"),n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";w.encode=function(l){for(var v,y,m,b,a,c,r,h=[],s=0,d=l.length,_=d,S=u.getTypeOf(l)!=="string";s<l.length;)_=d-s,m=S?(v=l[s++],y=s<d?l[s++]:0,s<d?l[s++]:0):(v=l.charCodeAt(s++),y=s<d?l.charCodeAt(s++):0,s<d?l.charCodeAt(s++):0),b=v>>2,a=(3&v)<<4|y>>4,c=1<_?(15&y)<<2|m>>6:64,r=2<_?63&m:64,h.push(n.charAt(b)+n.charAt(a)+n.charAt(c)+n.charAt(r));return h.join("")},w.decode=function(l){var v,y,m,b,a,c,r=0,h=0,s="data:";if(l.substr(0,s.length)===s)throw new Error("Invalid base64 input, it looks like a data url.");var d,_=3*(l=l.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(l.charAt(l.length-1)===n.charAt(64)&&_--,l.charAt(l.length-2)===n.charAt(64)&&_--,_%1!=0)throw new Error("Invalid base64 input, bad content length.");for(d=i.uint8array?new Uint8Array(0|_):new Array(0|_);r<l.length;)v=n.indexOf(l.charAt(r++))<<2|(b=n.indexOf(l.charAt(r++)))>>4,y=(15&b)<<4|(a=n.indexOf(l.charAt(r++)))>>2,m=(3&a)<<6|(c=n.indexOf(l.charAt(r++))),d[h++]=v,a!==64&&(d[h++]=y),c!==64&&(d[h++]=m);return d}},{"./support":30,"./utils":32}],2:[function(p,P,w){var u=p("./external"),i=p("./stream/DataWorker"),n=p("./stream/Crc32Probe"),l=p("./stream/DataLengthProbe");function v(y,m,b,a,c){this.compressedSize=y,this.uncompressedSize=m,this.crc32=b,this.compression=a,this.compressedContent=c}v.prototype={getContentWorker:function(){var y=new i(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new l("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 i(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function(y,m,b){return y.pipe(new n).pipe(new l("uncompressedSize")).pipe(m.compressWorker(b)).pipe(new l("compressedSize")).withStreamInfo("compression",m)},P.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(p,P,w){var u=p("./stream/GenericWorker");w.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},w.DEFLATE=p("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(p,P,w){var u=p("./utils"),i=function(){for(var n,l=[],v=0;v<256;v++){n=v;for(var y=0;y<8;y++)n=1&n?3988292384^n>>>1:n>>>1;l[v]=n}return l}();P.exports=function(n,l){return n!==void 0&&n.length?u.getTypeOf(n)!=="string"?function(v,y,m,b){var a=i,c=b+m;v^=-1;for(var r=b;r<c;r++)v=v>>>8^a[255&(v^y[r])];return-1^v}(0|l,n,n.length,0):function(v,y,m,b){var a=i,c=b+m;v^=-1;for(var r=b;r<c;r++)v=v>>>8^a[255&(v^y.charCodeAt(r))];return-1^v}(0|l,n,n.length,0):0}},{"./utils":32}],5:[function(p,P,w){w.base64=!1,w.binary=!1,w.dir=!1,w.createFolders=!0,w.date=null,w.compression=null,w.compressionOptions=null,w.comment=null,w.unixPermissions=null,w.dosPermissions=null},{}],6:[function(p,P,w){var u=null;u=typeof Promise<"u"?Promise:p("lie"),P.exports={Promise:u}},{lie:37}],7:[function(p,P,w){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",i=p("pako"),n=p("./utils"),l=p("./stream/GenericWorker"),v=u?"uint8array":"array";function y(m,b){l.call(this,"FlateWorker/"+m),this._pako=null,this._pakoAction=m,this._pakoOptions=b,this.meta={}}w.magic="\b\0",n.inherits(y,l),y.prototype.processChunk=function(m){this.meta=m.meta,this._pako===null&&this._createPako(),this._pako.push(n.transformTo(v,m.data),!1)},y.prototype.flush=function(){l.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},y.prototype.cleanUp=function(){l.prototype.cleanUp.call(this),this._pako=null},y.prototype._createPako=function(){this._pako=new i[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var m=this;this._pako.onData=function(b){m.push({data:b,meta:m.meta})}},w.compressWorker=function(m){return new y("Deflate",m)},w.uncompressWorker=function(){return new y("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(p,P,w){function u(a,c){var r,h="";for(r=0;r<c;r++)h+=String.fromCharCode(255&a),a>>>=8;return h}function i(a,c,r,h,s,d){var _,S,x=a.file,B=a.compression,O=d!==v.utf8encode,N=n.transformTo("string",d(x.name)),I=n.transformTo("string",v.utf8encode(x.name)),Z=x.comment,K=n.transformTo("string",d(Z)),g=n.transformTo("string",v.utf8encode(Z)),R=I.length!==x.name.length,e=g.length!==Z.length,D="",$="",L="",J=x.dir,j=x.date,q={crc32:0,compressedSize:0,uncompressedSize:0};c&&!r||(q.crc32=a.crc32,q.compressedSize=a.compressedSize,q.uncompressedSize=a.uncompressedSize);var E=0;c&&(E|=8),O||!R&&!e||(E|=2048);var C=0,X=0;J&&(C|=16),s==="UNIX"?(X=798,C|=function(H,nt){var lt=H;return H||(lt=nt?16893:33204),(65535&lt)<<16}(x.unixPermissions,J)):(X=20,C|=function(H){return 63&(H||0)}(x.dosPermissions)),_=j.getUTCHours(),_<<=6,_|=j.getUTCMinutes(),_<<=5,_|=j.getUTCSeconds()/2,S=j.getUTCFullYear()-1980,S<<=4,S|=j.getUTCMonth()+1,S<<=5,S|=j.getUTCDate(),R&&($=u(1,1)+u(y(N),4)+I,D+="up"+u($.length,2)+$),e&&(L=u(1,1)+u(y(K),4)+g,D+="uc"+u(L.length,2)+L);var G="";return G+=`
\0`,G+=u(E,2),G+=B.magic,G+=u(_,2),G+=u(S,2),G+=u(q.crc32,4),G+=u(q.compressedSize,4),G+=u(q.uncompressedSize,4),G+=u(N.length,2),G+=u(D.length,2),{fileRecord:m.LOCAL_FILE_HEADER+G+N+D,dirRecord:m.CENTRAL_FILE_HEADER+u(X,2)+G+u(K.length,2)+"\0\0\0\0"+u(C,4)+u(h,4)+N+D+K}}var n=p("../utils"),l=p("../stream/GenericWorker"),v=p("../utf8"),y=p("../crc32"),m=p("../signature");function b(a,c,r,h){l.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=c,this.zipPlatform=r,this.encodeFileName=h,this.streamFiles=a,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}n.inherits(b,l),b.prototype.push=function(a){var c=a.meta.percent||0,r=this.entriesCount,h=this._sources.length;this.accumulate?this.contentBuffer.push(a):(this.bytesWritten+=a.data.length,l.prototype.push.call(this,{data:a.data,meta:{currentFile:this.currentFile,percent:r?(c+100*(r-h-1))/r:100}}))},b.prototype.openedSource=function(a){this.currentSourceOffset=this.bytesWritten,this.currentFile=a.file.name;var c=this.streamFiles&&!a.file.dir;if(c){var r=i(a,c,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:r.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(a){this.accumulate=!1;var c=this.streamFiles&&!a.file.dir,r=i(a,c,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(r.dirRecord),c)this.push({data:function(h){return m.DATA_DESCRIPTOR+u(h.crc32,4)+u(h.compressedSize,4)+u(h.uncompressedSize,4)}(a),meta:{percent:100}});else for(this.push({data:r.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var a=this.bytesWritten,c=0;c<this.dirRecords.length;c++)this.push({data:this.dirRecords[c],meta:{percent:100}});var r=this.bytesWritten-a,h=function(s,d,_,S,x){var B=n.transformTo("string",x(S));return m.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(s,2)+u(s,2)+u(d,4)+u(_,4)+u(B.length,2)+B}(this.dirRecords.length,r,a,this.zipComment,this.encodeFileName);this.push({data:h,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(a){this._sources.push(a);var c=this;return a.on("data",function(r){c.processChunk(r)}),a.on("end",function(){c.closedSource(c.previous.streamInfo),c._sources.length?c.prepareNextSource():c.end()}),a.on("error",function(r){c.error(r)}),this},b.prototype.resume=function(){return!!l.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(a){var c=this._sources;if(!l.prototype.error.call(this,a))return!1;for(var r=0;r<c.length;r++)try{c[r].error(a)}catch{}return!0},b.prototype.lock=function(){l.prototype.lock.call(this);for(var a=this._sources,c=0;c<a.length;c++)a[c].lock()},P.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(p,P,w){var u=p("../compressions"),i=p("./ZipFileWorker");w.generateWorker=function(n,l,v){var y=new i(l.streamFiles,v,l.platform,l.encodeFileName),m=0;try{n.forEach(function(b,a){m++;var c=function(d,_){var S=d||_,x=u[S];if(!x)throw new Error(S+" is not a valid compression method !");return x}(a.options.compression,l.compression),r=a.options.compressionOptions||l.compressionOptions||{},h=a.dir,s=a.date;a._compressWorker(c,r).withStreamInfo("file",{name:b,dir:h,date:s,comment:a.comment||"",unixPermissions:a.unixPermissions,dosPermissions:a.dosPermissions}).pipe(y)}),y.entriesCount=m}catch(b){y.error(b)}return y}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(p,P,w){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 i=new u;for(var n in this)typeof this[n]!="function"&&(i[n]=this[n]);return i}}(u.prototype=p("./object")).loadAsync=p("./load"),u.support=p("./support"),u.defaults=p("./defaults"),u.version="3.10.1",u.loadAsync=function(i,n){return new u().loadAsync(i,n)},u.external=p("./external"),P.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(p,P,w){var u=p("./utils"),i=p("./external"),n=p("./utf8"),l=p("./zipEntries"),v=p("./stream/Crc32Probe"),y=p("./nodejsUtils");function m(b){return new i.Promise(function(a,c){var r=b.decompressed.getContentWorker().pipe(new v);r.on("error",function(h){c(h)}).on("end",function(){r.streamInfo.crc32!==b.decompressed.crc32?c(new Error("Corrupted zip : CRC32 mismatch")):a()}).resume()})}P.exports=function(b,a){var c=this;return a=u.extend(a||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:n.utf8decode}),y.isNode&&y.isStream(b)?i.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",b,!0,a.optimizedBinaryString,a.base64).then(function(r){var h=new l(a);return h.load(r),h}).then(function(r){var h=[i.Promise.resolve(r)],s=r.files;if(a.checkCRC32)for(var d=0;d<s.length;d++)h.push(m(s[d]));return i.Promise.all(h)}).then(function(r){for(var h=r.shift(),s=h.files,d=0;d<s.length;d++){var _=s[d],S=_.fileNameStr,x=u.resolve(_.fileNameStr);c.file(x,_.decompressed,{binary:!0,optimizedBinaryString:!0,date:_.date,dir:_.dir,comment:_.fileCommentStr.length?_.fileCommentStr:null,unixPermissions:_.unixPermissions,dosPermissions:_.dosPermissions,createFolders:a.createFolders}),_.dir||(c.file(x).unsafeOriginalName=S)}return h.zipComment.length&&(c.comment=h.zipComment),c})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(p,P,w){var u=p("../utils"),i=p("../stream/GenericWorker");function n(l,v){i.call(this,"Nodejs stream input adapter for "+l),this._upstreamEnded=!1,this._bindStream(v)}u.inherits(n,i),n.prototype._bindStream=function(l){var v=this;(this._stream=l).pause(),l.on("data",function(y){v.push({data:y,meta:{percent:0}})}).on("error",function(y){v.isPaused?this.generatedError=y:v.error(y)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},n.prototype.pause=function(){return!!i.prototype.pause.call(this)&&(this._stream.pause(),!0)},n.prototype.resume=function(){return!!i.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},P.exports=n},{"../stream/GenericWorker":28,"../utils":32}],13:[function(p,P,w){var u=p("readable-stream").Readable;function i(n,l,v){u.call(this,l),this._helper=n;var y=this;n.on("data",function(m,b){y.push(m)||y._helper.pause(),v&&v(b)}).on("error",function(m){y.emit("error",m)}).on("end",function(){y.push(null)})}p("../utils").inherits(i,u),i.prototype._read=function(){this._helper.resume()},P.exports=i},{"../utils":32,"readable-stream":16}],14:[function(p,P,w){P.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,i){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,i);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,i)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var i=new Buffer(u);return i.fill(0),i},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(p,P,w){function u(x,B,O){var N,I=n.getTypeOf(B),Z=n.extend(O||{},y);Z.date=Z.date||new Date,Z.compression!==null&&(Z.compression=Z.compression.toUpperCase()),typeof Z.unixPermissions=="string"&&(Z.unixPermissions=parseInt(Z.unixPermissions,8)),Z.unixPermissions&&16384&Z.unixPermissions&&(Z.dir=!0),Z.dosPermissions&&16&Z.dosPermissions&&(Z.dir=!0),Z.dir&&(x=s(x)),Z.createFolders&&(N=h(x))&&d.call(this,N,!0);var K=I==="string"&&Z.binary===!1&&Z.base64===!1;O&&O.binary!==void 0||(Z.binary=!K),(B instanceof m&&B.uncompressedSize===0||Z.dir||!B||B.length===0)&&(Z.base64=!1,Z.binary=!0,B="",Z.compression="STORE",I="string");var g=null;g=B instanceof m||B instanceof l?B:c.isNode&&c.isStream(B)?new r(x,B):n.prepareContent(x,B,Z.binary,Z.optimizedBinaryString,Z.base64);var R=new b(x,g,Z);this.files[x]=R}var i=p("./utf8"),n=p("./utils"),l=p("./stream/GenericWorker"),v=p("./stream/StreamHelper"),y=p("./defaults"),m=p("./compressedObject"),b=p("./zipObject"),a=p("./generate"),c=p("./nodejsUtils"),r=p("./nodejs/NodejsStreamInputAdapter"),h=function(x){x.slice(-1)==="/"&&(x=x.substring(0,x.length-1));var B=x.lastIndexOf("/");return 0<B?x.substring(0,B):""},s=function(x){return x.slice(-1)!=="/"&&(x+="/"),x},d=function(x,B){return B=B!==void 0?B:y.createFolders,x=s(x),this.files[x]||u.call(this,x,null,{dir:!0,createFolders:B}),this.files[x]};function _(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 B,O,N;for(B in this.files)N=this.files[B],(O=B.slice(this.root.length,B.length))&&B.slice(0,this.root.length)===this.root&&x(O,N)},filter:function(x){var B=[];return this.forEach(function(O,N){x(O,N)&&B.push(N)}),B},file:function(x,B,O){if(arguments.length!==1)return x=this.root+x,u.call(this,x,B,O),this;if(_(x)){var N=x;return this.filter(function(Z,K){return!K.dir&&N.test(Z)})}var I=this.files[this.root+x];return I&&!I.dir?I:null},folder:function(x){if(!x)return this;if(_(x))return this.filter(function(I,Z){return Z.dir&&x.test(I)});var B=this.root+x,O=d.call(this,B),N=this.clone();return N.root=O.name,N},remove:function(x){x=this.root+x;var B=this.files[x];if(B||(x.slice(-1)!=="/"&&(x+="/"),B=this.files[x]),B&&!B.dir)delete this.files[x];else for(var O=this.filter(function(I,Z){return Z.name.slice(0,x.length)===x}),N=0;N<O.length;N++)delete this.files[O[N].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(x){var B,O={};try{if((O=n.extend(x||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:i.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 N=O.comment||this.comment||"";B=a.generateWorker(this,O,N)}catch(I){(B=new l("error")).error(I)}return new v(B,O.type||"string",O.mimeType)},generateAsync:function(x,B){return this.generateInternalStream(x).accumulate(B)},generateNodeStream:function(x,B){return(x=x||{}).type||(x.type="nodebuffer"),this.generateInternalStream(x).toNodejsStream(B)}};P.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(p,P,w){P.exports=p("stream")},{stream:void 0}],17:[function(p,P,w){var u=p("./DataReader");function i(n){u.call(this,n);for(var l=0;l<this.data.length;l++)n[l]=255&n[l]}p("../utils").inherits(i,u),i.prototype.byteAt=function(n){return this.data[this.zero+n]},i.prototype.lastIndexOfSignature=function(n){for(var l=n.charCodeAt(0),v=n.charCodeAt(1),y=n.charCodeAt(2),m=n.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===l&&this.data[b+1]===v&&this.data[b+2]===y&&this.data[b+3]===m)return b-this.zero;return-1},i.prototype.readAndCheckSignature=function(n){var l=n.charCodeAt(0),v=n.charCodeAt(1),y=n.charCodeAt(2),m=n.charCodeAt(3),b=this.readData(4);return l===b[0]&&v===b[1]&&y===b[2]&&m===b[3]},i.prototype.readData=function(n){if(this.checkOffset(n),n===0)return[];var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},P.exports=i},{"../utils":32,"./DataReader":18}],18:[function(p,P,w){var u=p("../utils");function i(n){this.data=n,this.length=n.length,this.index=0,this.zero=0}i.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 l,v=0;for(this.checkOffset(n),l=this.index+n-1;l>=this.index;l--)v=(v<<8)+this.byteAt(l);return this.index+=n,v},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))}},P.exports=i},{"../utils":32}],19:[function(p,P,w){var u=p("./Uint8ArrayReader");function i(n){u.call(this,n)}p("../utils").inherits(i,u),i.prototype.readData=function(n){this.checkOffset(n);var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},P.exports=i},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(p,P,w){var u=p("./DataReader");function i(n){u.call(this,n)}p("../utils").inherits(i,u),i.prototype.byteAt=function(n){return this.data.charCodeAt(this.zero+n)},i.prototype.lastIndexOfSignature=function(n){return this.data.lastIndexOf(n)-this.zero},i.prototype.readAndCheckSignature=function(n){return n===this.readData(4)},i.prototype.readData=function(n){this.checkOffset(n);var l=this.data.slice(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},P.exports=i},{"../utils":32,"./DataReader":18}],21:[function(p,P,w){var u=p("./ArrayReader");function i(n){u.call(this,n)}p("../utils").inherits(i,u),i.prototype.readData=function(n){if(this.checkOffset(n),n===0)return new Uint8Array(0);var l=this.data.subarray(this.zero+this.index,this.zero+this.index+n);return this.index+=n,l},P.exports=i},{"../utils":32,"./ArrayReader":17}],22:[function(p,P,w){var u=p("../utils"),i=p("../support"),n=p("./ArrayReader"),l=p("./StringReader"),v=p("./NodeBufferReader"),y=p("./Uint8ArrayReader");P.exports=function(m){var b=u.getTypeOf(m);return u.checkSupport(b),b!=="string"||i.uint8array?b==="nodebuffer"?new v(m):i.uint8array?new y(u.transformTo("uint8array",m)):new n(u.transformTo("array",m)):new l(m)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(p,P,w){w.LOCAL_FILE_HEADER="PK",w.CENTRAL_FILE_HEADER="PK",w.CENTRAL_DIRECTORY_END="PK",w.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",w.ZIP64_CENTRAL_DIRECTORY_END="PK",w.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(p,P,w){var u=p("./GenericWorker"),i=p("../utils");function n(l){u.call(this,"ConvertWorker to "+l),this.destType=l}i.inherits(n,u),n.prototype.processChunk=function(l){this.push({data:i.transformTo(this.destType,l.data),meta:l.meta})},P.exports=n},{"../utils":32,"./GenericWorker":28}],25:[function(p,P,w){var u=p("./GenericWorker"),i=p("../crc32");function n(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}p("../utils").inherits(n,u),n.prototype.processChunk=function(l){this.streamInfo.crc32=i(l.data,this.streamInfo.crc32||0),this.push(l)},P.exports=n},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(p,P,w){var u=p("../utils"),i=p("./GenericWorker");function n(l){i.call(this,"DataLengthProbe for "+l),this.propName=l,this.withStreamInfo(l,0)}u.inherits(n,i),n.prototype.processChunk=function(l){if(l){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+l.data.length}i.prototype.processChunk.call(this,l)},P.exports=n},{"../utils":32,"./GenericWorker":28}],27:[function(p,P,w){var u=p("../utils"),i=p("./GenericWorker");function n(l){i.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,l.then(function(y){v.dataIsReady=!0,v.data=y,v.max=y&&y.length||0,v.type=u.getTypeOf(y),v.isPaused||v._tickAndRepeat()},function(y){v.error(y)})}u.inherits(n,i),n.prototype.cleanUp=function(){i.prototype.cleanUp.call(this),this.data=null},n.prototype.resume=function(){return!!i.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 l=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":l=this.data.substring(this.index,v);break;case"uint8array":l=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":l=this.data.slice(this.index,v)}return this.index=v,this.push({data:l,meta:{percent:this.max?this.index/this.max*100:0}})},P.exports=n},{"../utils":32,"./GenericWorker":28}],28:[function(p,P,w){function u(i){this.name=i||"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(i){this.emit("data",i)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(i){this.emit("error",i)}return!0},error:function(i){return!this.isFinished&&(this.isPaused?this.generatedError=i:(this.isFinished=!0,this.emit("error",i),this.previous&&this.previous.error(i),this.cleanUp()),!0)},on:function(i,n){return this._listeners[i].push(n),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(i,n){if(this._listeners[i])for(var l=0;l<this._listeners[i].length;l++)this._listeners[i][l].call(this,n)},pipe:function(i){return i.registerPrevious(this)},registerPrevious:function(i){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=i.streamInfo,this.mergeStreamInfo(),this.previous=i;var n=this;return i.on("data",function(l){n.processChunk(l)}),i.on("end",function(){n.end()}),i.on("error",function(l){n.error(l)}),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 i=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),i=!0),this.previous&&this.previous.resume(),!i},flush:function(){},processChunk:function(i){this.push(i)},withStreamInfo:function(i,n){return this.extraStreamInfo[i]=n,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var i in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,i)&&(this.streamInfo[i]=this.extraStreamInfo[i])},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 i="Worker "+this.name;return this.previous?this.previous+" -> "+i:i}},P.exports=u},{}],29:[function(p,P,w){var u=p("../utils"),i=p("./ConvertWorker"),n=p("./GenericWorker"),l=p("../base64"),v=p("../support"),y=p("../external"),m=null;if(v.nodestream)try{m=p("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(c,r){return new y.Promise(function(h,s){var d=[],_=c._internalType,S=c._outputType,x=c._mimeType;c.on("data",function(B,O){d.push(B),r&&r(O)}).on("error",function(B){d=[],s(B)}).on("end",function(){try{var B=function(O,N,I){switch(O){case"blob":return u.newBlob(u.transformTo("arraybuffer",N),I);case"base64":return l.encode(N);default:return u.transformTo(O,N)}}(S,function(O,N){var I,Z=0,K=null,g=0;for(I=0;I<N.length;I++)g+=N[I].length;switch(O){case"string":return N.join("");case"array":return Array.prototype.concat.apply([],N);case"uint8array":for(K=new Uint8Array(g),I=0;I<N.length;I++)K.set(N[I],Z),Z+=N[I].length;return K;case"nodebuffer":return Buffer.concat(N);default:throw new Error("concat : unsupported type '"+O+"'")}}(_,d),x);h(B)}catch(O){s(O)}d=[]}).resume()})}function a(c,r,h){var s=r;switch(r){case"blob":case"arraybuffer":s="uint8array";break;case"base64":s="string"}try{this._internalType=s,this._outputType=r,this._mimeType=h,u.checkSupport(s),this._worker=c.pipe(new i(s)),c.lock()}catch(d){this._worker=new n("error"),this._worker.error(d)}}a.prototype={accumulate:function(c){return b(this,c)},on:function(c,r){var h=this;return c==="data"?this._worker.on(c,function(s){r.call(h,s.data,s.meta)}):this._worker.on(c,function(){u.delay(r,arguments,h)}),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)}},P.exports=a},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(p,P,w){if(w.base64=!0,w.array=!0,w.string=!0,w.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",w.nodebuffer=typeof Buffer<"u",w.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")w.blob=!1;else{var u=new ArrayBuffer(0);try{w.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var i=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);i.append(u),w.blob=i.getBlob("application/zip").size===0}catch{w.blob=!1}}}try{w.nodestream=!!p("readable-stream").Readable}catch{w.nodestream=!1}},{"readable-stream":16}],31:[function(p,P,w){for(var u=p("./utils"),i=p("./support"),n=p("./nodejsUtils"),l=p("./stream/GenericWorker"),v=new Array(256),y=0;y<256;y++)v[y]=252<=y?6:248<=y?5:240<=y?4:224<=y?3:192<=y?2:1;v[254]=v[254]=1;function m(){l.call(this,"utf-8 decode"),this.leftOver=null}function b(){l.call(this,"utf-8 encode")}w.utf8encode=function(a){return i.nodebuffer?n.newBufferFrom(a,"utf-8"):function(c){var r,h,s,d,_,S=c.length,x=0;for(d=0;d<S;d++)(64512&(h=c.charCodeAt(d)))==55296&&d+1<S&&(64512&(s=c.charCodeAt(d+1)))==56320&&(h=65536+(h-55296<<10)+(s-56320),d++),x+=h<128?1:h<2048?2:h<65536?3:4;for(r=i.uint8array?new Uint8Array(x):new Array(x),d=_=0;_<x;d++)(64512&(h=c.charCodeAt(d)))==55296&&d+1<S&&(64512&(s=c.charCodeAt(d+1)))==56320&&(h=65536+(h-55296<<10)+(s-56320),d++),h<128?r[_++]=h:(h<2048?r[_++]=192|h>>>6:(h<65536?r[_++]=224|h>>>12:(r[_++]=240|h>>>18,r[_++]=128|h>>>12&63),r[_++]=128|h>>>6&63),r[_++]=128|63&h);return r}(a)},w.utf8decode=function(a){return i.nodebuffer?u.transformTo("nodebuffer",a).toString("utf-8"):function(c){var r,h,s,d,_=c.length,S=new Array(2*_);for(r=h=0;r<_;)if((s=c[r++])<128)S[h++]=s;else if(4<(d=v[s]))S[h++]=65533,r+=d-1;else{for(s&=d===2?31:d===3?15:7;1<d&&r<_;)s=s<<6|63&c[r++],d--;1<d?S[h++]=65533:s<65536?S[h++]=s:(s-=65536,S[h++]=55296|s>>10&1023,S[h++]=56320|1023&s)}return S.length!==h&&(S.subarray?S=S.subarray(0,h):S.length=h),u.applyFromCharCode(S)}(a=u.transformTo(i.uint8array?"uint8array":"array",a))},u.inherits(m,l),m.prototype.processChunk=function(a){var c=u.transformTo(i.uint8array?"uint8array":"array",a.data);if(this.leftOver&&this.leftOver.length){if(i.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 h=function(d,_){var S;for((_=_||d.length)>d.length&&(_=d.length),S=_-1;0<=S&&(192&d[S])==128;)S--;return S<0||S===0?_:S+v[d[S]]>_?S:_}(c),s=c;h!==c.length&&(i.uint8array?(s=c.subarray(0,h),this.leftOver=c.subarray(h,c.length)):(s=c.slice(0,h),this.leftOver=c.slice(h,c.length))),this.push({data:w.utf8decode(s),meta:a.meta})},m.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:w.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},w.Utf8DecodeWorker=m,u.inherits(b,l),b.prototype.processChunk=function(a){this.push({data:w.utf8encode(a.data),meta:a.meta})},w.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(p,P,w){var u=p("./support"),i=p("./base64"),n=p("./nodejsUtils"),l=p("./external");function v(r){return r}function y(r,h){for(var s=0;s<r.length;++s)h[s]=255&r.charCodeAt(s);return h}p("setimmediate"),w.newBlob=function(r,h){w.checkSupport("blob");try{return new Blob([r],{type:h})}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return s.append(r),s.getBlob(h)}catch{throw new Error("Bug : can't construct the Blob.")}}};var m={stringifyByChunk:function(r,h,s){var d=[],_=0,S=r.length;if(S<=s)return String.fromCharCode.apply(null,r);for(;_<S;)h==="array"||h==="nodebuffer"?d.push(String.fromCharCode.apply(null,r.slice(_,Math.min(_+s,S)))):d.push(String.fromCharCode.apply(null,r.subarray(_,Math.min(_+s,S)))),_+=s;return d.join("")},stringifyByChar:function(r){for(var h="",s=0;s<r.length;s++)h+=String.fromCharCode(r[s]);return h},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 b(r){var h=65536,s=w.getTypeOf(r),d=!0;if(s==="uint8array"?d=m.applyCanBeUsed.uint8array:s==="nodebuffer"&&(d=m.applyCanBeUsed.nodebuffer),d)for(;1<h;)try{return m.stringifyByChunk(r,s,h)}catch{h=Math.floor(h/2)}return m.stringifyByChar(r)}function a(r,h){for(var s=0;s<r.length;s++)h[s]=r[s];return h}w.applyFromCharCode=b;var c={};c.string={string:v,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:b,array:v,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 b(new Uint8Array(r))},array:function(r){return a(new Uint8Array(r),new Array(r.byteLength))},arraybuffer:v,uint8array:function(r){return new Uint8Array(r)},nodebuffer:function(r){return n.newBufferFrom(new Uint8Array(r))}},c.uint8array={string:b,array:function(r){return a(r,new Array(r.length))},arraybuffer:function(r){return r.buffer},uint8array:v,nodebuffer:function(r){return n.newBufferFrom(r)}},c.nodebuffer={string:b,array:function(r){return a(r,new Array(r.length))},arraybuffer:function(r){return c.nodebuffer.uint8array(r).buffer},uint8array:function(r){return a(r,new Uint8Array(r.length))},nodebuffer:v},w.transformTo=function(r,h){if(h=h||"",!r)return h;w.checkSupport(r);var s=w.getTypeOf(h);return c[s][r](h)},w.resolve=function(r){for(var h=r.split("/"),s=[],d=0;d<h.length;d++){var _=h[d];_==="."||_===""&&d!==0&&d!==h.length-1||(_===".."?s.pop():s.push(_))}return s.join("/")},w.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},w.checkSupport=function(r){if(!u[r.toLowerCase()])throw new Error(r+" is not supported by this platform")},w.MAX_VALUE_16BITS=65535,w.MAX_VALUE_32BITS=-1,w.pretty=function(r){var h,s,d="";for(s=0;s<(r||"").length;s++)d+="\\x"+((h=r.charCodeAt(s))<16?"0":"")+h.toString(16).toUpperCase();return d},w.delay=function(r,h,s){setImmediate(function(){r.apply(s||null,h||[])})},w.inherits=function(r,h){function s(){}s.prototype=h.prototype,r.prototype=new s},w.extend=function(){var r,h,s={};for(r=0;r<arguments.length;r++)for(h in arguments[r])Object.prototype.hasOwnProperty.call(arguments[r],h)&&s[h]===void 0&&(s[h]=arguments[r][h]);return s},w.prepareContent=function(r,h,s,d,_){return l.Promise.resolve(h).then(function(S){return u.blob&&(S instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(S))!==-1)&&typeof FileReader<"u"?new l.Promise(function(x,B){var O=new FileReader;O.onload=function(N){x(N.target.result)},O.onerror=function(N){B(N.target.error)},O.readAsArrayBuffer(S)}):S}).then(function(S){var x=w.getTypeOf(S);return x?(x==="arraybuffer"?S=w.transformTo("uint8array",S):x==="string"&&(_?S=i.decode(S):s&&d!==!0&&(S=function(B){return y(B,u.uint8array?new Uint8Array(B.length):new Array(B.length))}(S))),S):l.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(p,P,w){var u=p("./reader/readerFor"),i=p("./utils"),n=p("./signature"),l=p("./zipEntry"),v=p("./support");function y(m){this.files=[],this.loadOptions=m}y.prototype={checkSignature:function(m){if(!this.reader.readAndCheckSignature(m)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+i.pretty(b)+", expected "+i.pretty(m)+")")}},isSignature:function(m,b){var a=this.reader.index;this.reader.setIndex(m);var c=this.reader.readString(4)===b;return this.reader.setIndex(a),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),b=v.uint8array?"uint8array":"array",a=i.transformTo(b,m);this.zipComment=this.loadOptions.decodeFileName(a)},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,b,a,c=this.zip64EndOfCentralSize-44;0<c;)m=this.reader.readInt(2),b=this.reader.readInt(4),a=this.reader.readData(b),this.zip64ExtensibleData[m]={id:m,length:b,value:a}},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,b;for(m=0;m<this.files.length;m++)b=this.files[m],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(n.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var m;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(n.CENTRAL_FILE_HEADER);)(m=new l({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 b=m;if(this.checkSignature(n.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===i.MAX_VALUE_16BITS||this.diskWithCentralDirStart===i.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===i.MAX_VALUE_16BITS||this.centralDirRecords===i.MAX_VALUE_16BITS||this.centralDirSize===i.MAX_VALUE_32BITS||this.centralDirOffset===i.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 a=this.centralDirOffset+this.centralDirSize;this.zip64&&(a+=20,a+=12+this.zip64EndOfCentralSize);var c=b-a;if(0<c)this.isSignature(b,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()}},P.exports=y},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(p,P,w){var u=p("./reader/readerFor"),i=p("./utils"),n=p("./compressedObject"),l=p("./crc32"),v=p("./utf8"),y=p("./compressions"),m=p("./support");function b(a,c){this.options=a,this.loadOptions=c}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(a){var c,r;if(a.skip(22),this.fileNameLength=a.readInt(2),r=a.readInt(2),this.fileName=a.readData(this.fileNameLength),a.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(h){for(var s in y)if(Object.prototype.hasOwnProperty.call(y,s)&&y[s].magic===h)return y[s];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+i.pretty(this.compressionMethod)+" unknown (inner file : "+i.transformTo("string",this.fileName)+")");this.decompressed=new n(this.compressedSize,this.uncompressedSize,this.crc32,c,a.readData(this.compressedSize))},readCentralPart:function(a){this.versionMadeBy=a.readInt(2),a.skip(2),this.bitFlag=a.readInt(2),this.compressionMethod=a.readString(2),this.date=a.readDate(),this.crc32=a.readInt(4),this.compressedSize=a.readInt(4),this.uncompressedSize=a.readInt(4);var c=a.readInt(2);if(this.extraFieldsLength=a.readInt(2),this.fileCommentLength=a.readInt(2),this.diskNumberStart=a.readInt(2),this.internalFileAttributes=a.readInt(2),this.externalFileAttributes=a.readInt(4),this.localHeaderOffset=a.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");a.skip(c),this.readExtraFields(a),this.parseZIP64ExtraField(a),this.fileComment=a.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var a=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),a==0&&(this.dosPermissions=63&this.externalFileAttributes),a==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var a=u(this.extraFields[1].value);this.uncompressedSize===i.MAX_VALUE_32BITS&&(this.uncompressedSize=a.readInt(8)),this.compressedSize===i.MAX_VALUE_32BITS&&(this.compressedSize=a.readInt(8)),this.localHeaderOffset===i.MAX_VALUE_32BITS&&(this.localHeaderOffset=a.readInt(8)),this.diskNumberStart===i.MAX_VALUE_32BITS&&(this.diskNumberStart=a.readInt(4))}},readExtraFields:function(a){var c,r,h,s=a.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});a.index+4<s;)c=a.readInt(2),r=a.readInt(2),h=a.readData(r),this.extraFields[c]={id:c,length:r,value:h};a.setIndex(s)},handleUTF8:function(){var a=m.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var c=this.findExtraFieldUnicodePath();if(c!==null)this.fileNameStr=c;else{var r=i.transformTo(a,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(r)}var h=this.findExtraFieldUnicodeComment();if(h!==null)this.fileCommentStr=h;else{var s=i.transformTo(a,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(s)}}},findExtraFieldUnicodePath:function(){var a=this.extraFields[28789];if(a){var c=u(a.value);return c.readInt(1)!==1||l(this.fileName)!==c.readInt(4)?null:v.utf8decode(c.readData(a.length-5))}return null},findExtraFieldUnicodeComment:function(){var a=this.extraFields[25461];if(a){var c=u(a.value);return c.readInt(1)!==1||l(this.fileComment)!==c.readInt(4)?null:v.utf8decode(c.readData(a.length-5))}return null}},P.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(p,P,w){function u(c,r,h){this.name=c,this.dir=h.dir,this.date=h.date,this.comment=h.comment,this.unixPermissions=h.unixPermissions,this.dosPermissions=h.dosPermissions,this._data=r,this._dataBinary=h.binary,this.options={compression:h.compression,compressionOptions:h.compressionOptions}}var i=p("./stream/StreamHelper"),n=p("./stream/DataWorker"),l=p("./utf8"),v=p("./compressedObject"),y=p("./stream/GenericWorker");u.prototype={internalStream:function(c){var r=null,h="string";try{if(!c)throw new Error("No output type specified.");var s=(h=c.toLowerCase())==="string"||h==="text";h!=="binarystring"&&h!=="text"||(h="string"),r=this._decompressWorker();var d=!this._dataBinary;d&&!s&&(r=r.pipe(new l.Utf8EncodeWorker)),!d&&s&&(r=r.pipe(new l.Utf8DecodeWorker))}catch(_){(r=new y("error")).error(_)}return new i(r,h,"")},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 v&&this._data.compression.magic===c.magic)return this._data.getCompressedWorker();var h=this._decompressWorker();return this._dataBinary||(h=h.pipe(new l.Utf8EncodeWorker)),v.createWorkerFrom(h,c,r)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof y?this._data:new n(this._data)}};for(var m=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},a=0;a<m.length;a++)u.prototype[m[a]]=b;P.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(p,P,w){(function(u){var i,n,l=u.MutationObserver||u.WebKitMutationObserver;if(l){var v=0,y=new l(c),m=u.document.createTextNode("");y.observe(m,{characterData:!0}),i=function(){m.data=v=++v%2}}else if(u.setImmediate||u.MessageChannel===void 0)i="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 b=new u.MessageChannel;b.port1.onmessage=c,i=function(){b.port2.postMessage(0)}}var a=[];function c(){var r,h;n=!0;for(var s=a.length;s;){for(h=a,a=[],r=-1;++r<s;)h[r]();s=a.length}n=!1}P.exports=function(r){a.push(r)!==1||n||i()}}).call(this,typeof Ot<"u"?Ot:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(p,P,w){var u=p("immediate");function i(){}var n={},l=["REJECTED"],v=["FULFILLED"],y=["PENDING"];function m(s){if(typeof s!="function")throw new TypeError("resolver must be a function");this.state=y,this.queue=[],this.outcome=void 0,s!==i&&r(this,s)}function b(s,d,_){this.promise=s,typeof d=="function"&&(this.onFulfilled=d,this.callFulfilled=this.otherCallFulfilled),typeof _=="function"&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}function a(s,d,_){u(function(){var S;try{S=d(_)}catch(x){return n.reject(s,x)}S===s?n.reject(s,new TypeError("Cannot resolve promise with itself")):n.resolve(s,S)})}function c(s){var d=s&&s.then;if(s&&(typeof s=="object"||typeof s=="function")&&typeof d=="function")return function(){d.apply(s,arguments)}}function r(s,d){var _=!1;function S(O){_||(_=!0,n.reject(s,O))}function x(O){_||(_=!0,n.resolve(s,O))}var B=h(function(){d(x,S)});B.status==="error"&&S(B.value)}function h(s,d){var _={};try{_.value=s(d),_.status="success"}catch(S){_.status="error",_.value=S}return _}(P.exports=m).prototype.finally=function(s){if(typeof s!="function")return this;var d=this.constructor;return this.then(function(_){return d.resolve(s()).then(function(){return _})},function(_){return d.resolve(s()).then(function(){throw _})})},m.prototype.catch=function(s){return this.then(null,s)},m.prototype.then=function(s,d){if(typeof s!="function"&&this.state===v||typeof d!="function"&&this.state===l)return this;var _=new this.constructor(i);return this.state!==y?a(_,this.state===v?s:d,this.outcome):this.queue.push(new b(_,s,d)),_},b.prototype.callFulfilled=function(s){n.resolve(this.promise,s)},b.prototype.otherCallFulfilled=function(s){a(this.promise,this.onFulfilled,s)},b.prototype.callRejected=function(s){n.reject(this.promise,s)},b.prototype.otherCallRejected=function(s){a(this.promise,this.onRejected,s)},n.resolve=function(s,d){var _=h(c,d);if(_.status==="error")return n.reject(s,_.value);var S=_.value;if(S)r(s,S);else{s.state=v,s.outcome=d;for(var x=-1,B=s.queue.length;++x<B;)s.queue[x].callFulfilled(d)}return s},n.reject=function(s,d){s.state=l,s.outcome=d;for(var _=-1,S=s.queue.length;++_<S;)s.queue[_].callRejected(d);return s},m.resolve=function(s){return s instanceof this?s:n.resolve(new this(i),s)},m.reject=function(s){var d=new this(i);return n.reject(d,s)},m.all=function(s){var d=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=s.length,S=!1;if(!_)return this.resolve([]);for(var x=new Array(_),B=0,O=-1,N=new this(i);++O<_;)I(s[O],O);return N;function I(Z,K){d.resolve(Z).then(function(g){x[K]=g,++B!==_||S||(S=!0,n.resolve(N,x))},function(g){S||(S=!0,n.reject(N,g))})}},m.race=function(s){var d=this;if(Object.prototype.toString.call(s)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=s.length,S=!1;if(!_)return this.resolve([]);for(var x=-1,B=new this(i);++x<_;)O=s[x],d.resolve(O).then(function(N){S||(S=!0,n.resolve(B,N))},function(N){S||(S=!0,n.reject(B,N))});var O;return B}},{immediate:36}],38:[function(p,P,w){var u={};(0,p("./lib/utils/common").assign)(u,p("./lib/deflate"),p("./lib/inflate"),p("./lib/zlib/constants")),P.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(p,P,w){var u=p("./zlib/deflate"),i=p("./utils/common"),n=p("./utils/strings"),l=p("./zlib/messages"),v=p("./zlib/zstream"),y=Object.prototype.toString,m=0,b=-1,a=0,c=8;function r(s){if(!(this instanceof r))return new r(s);this.options=i.assign({level:b,method:c,chunkSize:16384,windowBits:15,memLevel:8,strategy:a,to:""},s||{});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 v,this.strm.avail_out=0;var _=u.deflateInit2(this.strm,d.level,d.method,d.windowBits,d.memLevel,d.strategy);if(_!==m)throw new Error(l[_]);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,(_=u.deflateSetDictionary(this.strm,S))!==m)throw new Error(l[_]);this._dict_set=!0}}function h(s,d){var _=new r(d);if(_.push(s,!0),_.err)throw _.msg||l[_.err];return _.result}r.prototype.push=function(s,d){var _,S,x=this.strm,B=this.options.chunkSize;if(this.ended)return!1;S=d===~~d?d:d===!0?4:0,typeof s=="string"?x.input=n.string2buf(s):y.call(s)==="[object ArrayBuffer]"?x.input=new Uint8Array(s):x.input=s,x.next_in=0,x.avail_in=x.input.length;do{if(x.avail_out===0&&(x.output=new i.Buf8(B),x.next_out=0,x.avail_out=B),(_=u.deflate(x,S))!==1&&_!==m)return this.onEnd(_),!(this.ended=!0);x.avail_out!==0&&(x.avail_in!==0||S!==4&&S!==2)||(this.options.to==="string"?this.onData(n.buf2binstring(i.shrinkBuf(x.output,x.next_out))):this.onData(i.shrinkBuf(x.output,x.next_out)))}while((0<x.avail_in||x.avail_out===0)&&_!==1);return S===4?(_=u.deflateEnd(this.strm),this.onEnd(_),this.ended=!0,_===m):S!==2||(this.onEnd(m),!(x.avail_out=0))},r.prototype.onData=function(s){this.chunks.push(s)},r.prototype.onEnd=function(s){s===m&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=s,this.msg=this.strm.msg},w.Deflate=r,w.deflate=h,w.deflateRaw=function(s,d){return(d=d||{}).raw=!0,h(s,d)},w.gzip=function(s,d){return(d=d||{}).gzip=!0,h(s,d)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(p,P,w){var u=p("./zlib/inflate"),i=p("./utils/common"),n=p("./utils/strings"),l=p("./zlib/constants"),v=p("./zlib/messages"),y=p("./zlib/zstream"),m=p("./zlib/gzheader"),b=Object.prototype.toString;function a(r){if(!(this instanceof a))return new a(r);this.options=i.assign({chunkSize:16384,windowBits:0,to:""},r||{});var h=this.options;h.raw&&0<=h.windowBits&&h.windowBits<16&&(h.windowBits=-h.windowBits,h.windowBits===0&&(h.windowBits=-15)),!(0<=h.windowBits&&h.windowBits<16)||r&&r.windowBits||(h.windowBits+=32),15<h.windowBits&&h.windowBits<48&&!(15&h.windowBits)&&(h.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new y,this.strm.avail_out=0;var s=u.inflateInit2(this.strm,h.windowBits);if(s!==l.Z_OK)throw new Error(v[s]);this.header=new m,u.inflateGetHeader(this.strm,this.header)}function c(r,h){var s=new a(h);if(s.push(r,!0),s.err)throw s.msg||v[s.err];return s.result}a.prototype.push=function(r,h){var s,d,_,S,x,B,O=this.strm,N=this.options.chunkSize,I=this.options.dictionary,Z=!1;if(this.ended)return!1;d=h===~~h?h:h===!0?l.Z_FINISH:l.Z_NO_FLUSH,typeof r=="string"?O.input=n.binstring2buf(r):b.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 i.Buf8(N),O.next_out=0,O.avail_out=N),(s=u.inflate(O,l.Z_NO_FLUSH))===l.Z_NEED_DICT&&I&&(B=typeof I=="string"?n.string2buf(I):b.call(I)==="[object ArrayBuffer]"?new Uint8Array(I):I,s=u.inflateSetDictionary(this.strm,B)),s===l.Z_BUF_ERROR&&Z===!0&&(s=l.Z_OK,Z=!1),s!==l.Z_STREAM_END&&s!==l.Z_OK)return this.onEnd(s),!(this.ended=!0);O.next_out&&(O.avail_out!==0&&s!==l.Z_STREAM_END&&(O.avail_in!==0||d!==l.Z_FINISH&&d!==l.Z_SYNC_FLUSH)||(this.options.to==="string"?(_=n.utf8border(O.output,O.next_out),S=O.next_out-_,x=n.buf2string(O.output,_),O.next_out=S,O.avail_out=N-S,S&&i.arraySet(O.output,O.output,_,S,0),this.onData(x)):this.onData(i.shrinkBuf(O.output,O.next_out)))),O.avail_in===0&&O.avail_out===0&&(Z=!0)}while((0<O.avail_in||O.avail_out===0)&&s!==l.Z_STREAM_END);return s===l.Z_STREAM_END&&(d=l.Z_FINISH),d===l.Z_FINISH?(s=u.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,s===l.Z_OK):d!==l.Z_SYNC_FLUSH||(this.onEnd(l.Z_OK),!(O.avail_out=0))},a.prototype.onData=function(r){this.chunks.push(r)},a.prototype.onEnd=function(r){r===l.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=i.flattenChunks(this.chunks)),this.chunks=[],this.err=r,this.msg=this.strm.msg},w.Inflate=a,w.inflate=c,w.inflateRaw=function(r,h){return(h=h||{}).raw=!0,c(r,h)},w.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(p,P,w){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";w.assign=function(l){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var y=v.shift();if(y){if(typeof y!="object")throw new TypeError(y+"must be non-object");for(var m in y)y.hasOwnProperty(m)&&(l[m]=y[m])}}return l},w.shrinkBuf=function(l,v){return l.length===v?l:l.subarray?l.subarray(0,v):(l.length=v,l)};var i={arraySet:function(l,v,y,m,b){if(v.subarray&&l.subarray)l.set(v.subarray(y,y+m),b);else for(var a=0;a<m;a++)l[b+a]=v[y+a]},flattenChunks:function(l){var v,y,m,b,a,c;for(v=m=0,y=l.length;v<y;v++)m+=l[v].length;for(c=new Uint8Array(m),v=b=0,y=l.length;v<y;v++)a=l[v],c.set(a,b),b+=a.length;return c}},n={arraySet:function(l,v,y,m,b){for(var a=0;a<m;a++)l[b+a]=v[y+a]},flattenChunks:function(l){return[].concat.apply([],l)}};w.setTyped=function(l){l?(w.Buf8=Uint8Array,w.Buf16=Uint16Array,w.Buf32=Int32Array,w.assign(w,i)):(w.Buf8=Array,w.Buf16=Array,w.Buf32=Array,w.assign(w,n))},w.setTyped(u)},{}],42:[function(p,P,w){var u=p("./common"),i=!0,n=!0;try{String.fromCharCode.apply(null,[0])}catch{i=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{n=!1}for(var l=new u.Buf8(256),v=0;v<256;v++)l[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function y(m,b){if(b<65537&&(m.subarray&&n||!m.subarray&&i))return String.fromCharCode.apply(null,u.shrinkBuf(m,b));for(var a="",c=0;c<b;c++)a+=String.fromCharCode(m[c]);return a}l[254]=l[254]=1,w.string2buf=function(m){var b,a,c,r,h,s=m.length,d=0;for(r=0;r<s;r++)(64512&(a=m.charCodeAt(r)))==55296&&r+1<s&&(64512&(c=m.charCodeAt(r+1)))==56320&&(a=65536+(a-55296<<10)+(c-56320),r++),d+=a<128?1:a<2048?2:a<65536?3:4;for(b=new u.Buf8(d),r=h=0;h<d;r++)(64512&(a=m.charCodeAt(r)))==55296&&r+1<s&&(64512&(c=m.charCodeAt(r+1)))==56320&&(a=65536+(a-55296<<10)+(c-56320),r++),a<128?b[h++]=a:(a<2048?b[h++]=192|a>>>6:(a<65536?b[h++]=224|a>>>12:(b[h++]=240|a>>>18,b[h++]=128|a>>>12&63),b[h++]=128|a>>>6&63),b[h++]=128|63&a);return b},w.buf2binstring=function(m){return y(m,m.length)},w.binstring2buf=function(m){for(var b=new u.Buf8(m.length),a=0,c=b.length;a<c;a++)b[a]=m.charCodeAt(a);return b},w.buf2string=function(m,b){var a,c,r,h,s=b||m.length,d=new Array(2*s);for(a=c=0;a<s;)if((r=m[a++])<128)d[c++]=r;else if(4<(h=l[r]))d[c++]=65533,a+=h-1;else{for(r&=h===2?31:h===3?15:7;1<h&&a<s;)r=r<<6|63&m[a++],h--;1<h?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)},w.utf8border=function(m,b){var a;for((b=b||m.length)>m.length&&(b=m.length),a=b-1;0<=a&&(192&m[a])==128;)a--;return a<0||a===0?b:a+l[m[a]]>b?a:b}},{"./common":41}],43:[function(p,P,w){P.exports=function(u,i,n,l){for(var v=65535&u|0,y=u>>>16&65535|0,m=0;n!==0;){for(n-=m=2e3<n?2e3:n;y=y+(v=v+i[l++]|0)|0,--m;);v%=65521,y%=65521}return v|y<<16|0}},{}],44:[function(p,P,w){P.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(p,P,w){var u=function(){for(var i,n=[],l=0;l<256;l++){i=l;for(var v=0;v<8;v++)i=1&i?3988292384^i>>>1:i>>>1;n[l]=i}return n}();P.exports=function(i,n,l,v){var y=u,m=v+l;i^=-1;for(var b=v;b<m;b++)i=i>>>8^y[255&(i^n[b])];return-1^i}},{}],46:[function(p,P,w){var u,i=p("../utils/common"),n=p("./trees"),l=p("./adler32"),v=p("./crc32"),y=p("./messages"),m=0,b=4,a=0,c=-2,r=-1,h=4,s=2,d=8,_=9,S=286,x=30,B=19,O=2*S+1,N=15,I=3,Z=258,K=Z+I+1,g=42,R=113,e=1,D=2,$=3,L=4;function J(t,T){return t.msg=y[T],T}function j(t){return(t<<1)-(4<t?9:0)}function q(t){for(var T=t.length;0<=--T;)t[T]=0}function E(t){var T=t.state,A=T.pending;A>t.avail_out&&(A=t.avail_out),A!==0&&(i.arraySet(t.output,T.pending_buf,T.pending_out,A,t.next_out),t.next_out+=A,T.pending_out+=A,t.total_out+=A,t.avail_out-=A,T.pending-=A,T.pending===0&&(T.pending_out=0))}function C(t,T){n._tr_flush_block(t,0<=t.block_start?t.block_start:-1,t.strstart-t.block_start,T),t.block_start=t.strstart,E(t.strm)}function X(t,T){t.pending_buf[t.pending++]=T}function G(t,T){t.pending_buf[t.pending++]=T>>>8&255,t.pending_buf[t.pending++]=255&T}function H(t,T){var A,f,o=t.max_chain_length,k=t.strstart,F=t.prev_length,U=t.nice_match,z=t.strstart>t.w_size-K?t.strstart-(t.w_size-K):0,W=t.window,V=t.w_mask,M=t.prev,Y=t.strstart+Z,rt=W[k+F-1],tt=W[k+F];t.prev_length>=t.good_match&&(o>>=2),U>t.lookahead&&(U=t.lookahead);do if(W[(A=T)+F]===tt&&W[A+F-1]===rt&&W[A]===W[k]&&W[++A]===W[k+1]){k+=2,A++;do;while(W[++k]===W[++A]&&W[++k]===W[++A]&&W[++k]===W[++A]&&W[++k]===W[++A]&&W[++k]===W[++A]&&W[++k]===W[++A]&&W[++k]===W[++A]&&W[++k]===W[++A]&&k<Y);if(f=Z-(Y-k),k=Y-Z,F<f){if(t.match_start=T,U<=(F=f))break;rt=W[k+F-1],tt=W[k+F]}}while((T=M[T&V])>z&&--o!=0);return F<=t.lookahead?F:t.lookahead}function nt(t){var T,A,f,o,k,F,U,z,W,V,M=t.w_size;do{if(o=t.window_size-t.lookahead-t.strstart,t.strstart>=M+(M-K)){for(i.arraySet(t.window,t.window,M,M,0),t.match_start-=M,t.strstart-=M,t.block_start-=M,T=A=t.hash_size;f=t.head[--T],t.head[T]=M<=f?f-M:0,--A;);for(T=A=M;f=t.prev[--T],t.prev[T]=M<=f?f-M:0,--A;);o+=M}if(t.strm.avail_in===0)break;if(F=t.strm,U=t.window,z=t.strstart+t.lookahead,W=o,V=void 0,V=F.avail_in,W<V&&(V=W),A=V===0?0:(F.avail_in-=V,i.arraySet(U,F.input,F.next_in,V,z),F.state.wrap===1?F.adler=l(F.adler,U,V,z):F.state.wrap===2&&(F.adler=v(F.adler,U,V,z)),F.next_in+=V,F.total_in+=V,V),t.lookahead+=A,t.lookahead+t.insert>=I)for(k=t.strstart-t.insert,t.ins_h=t.window[k],t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[k+I-1])&t.hash_mask,t.prev[k&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=k,k++,t.insert--,!(t.lookahead+t.insert<I)););}while(t.lookahead<K&&t.strm.avail_in!==0)}function lt(t,T){for(var A,f;;){if(t.lookahead<K){if(nt(t),t.lookahead<K&&T===m)return e;if(t.lookahead===0)break}if(A=0,t.lookahead>=I&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),A!==0&&t.strstart-A<=t.w_size-K&&(t.match_length=H(t,A)),t.match_length>=I)if(f=n._tr_tally(t,t.strstart-t.match_start,t.match_length-I),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=I){for(t.match_length--;t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart,--t.match_length!=0;);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else f=n._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(f&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=t.strstart<I-1?t.strstart:I-1,T===b?(C(t,!0),t.strm.avail_out===0?$:L):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:D}function Q(t,T){for(var A,f,o;;){if(t.lookahead<K){if(nt(t),t.lookahead<K&&T===m)return e;if(t.lookahead===0)break}if(A=0,t.lookahead>=I&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=I-1,A!==0&&t.prev_length<t.max_lazy_match&&t.strstart-A<=t.w_size-K&&(t.match_length=H(t,A),t.match_length<=5&&(t.strategy===1||t.match_length===I&&4096<t.strstart-t.match_start)&&(t.match_length=I-1)),t.prev_length>=I&&t.match_length<=t.prev_length){for(o=t.strstart+t.lookahead-I,f=n._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-I),t.lookahead-=t.prev_length-1,t.prev_length-=2;++t.strstart<=o&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+I-1])&t.hash_mask,A=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),--t.prev_length!=0;);if(t.match_available=0,t.match_length=I-1,t.strstart++,f&&(C(t,!1),t.strm.avail_out===0))return e}else if(t.match_available){if((f=n._tr_tally(t,0,t.window[t.strstart-1]))&&C(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return e}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(f=n._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<I-1?t.strstart:I-1,T===b?(C(t,!0),t.strm.avail_out===0?$:L):t.last_lit&&(C(t,!1),t.strm.avail_out===0)?e:D}function et(t,T,A,f,o){this.good_length=t,this.max_lazy=T,this.nice_length=A,this.max_chain=f,this.func=o}function ot(){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 i.Buf16(2*O),this.dyn_dtree=new i.Buf16(2*(2*x+1)),this.bl_tree=new i.Buf16(2*(2*B+1)),q(this.dyn_ltree),q(this.dyn_dtree),q(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new i.Buf16(N+1),this.heap=new i.Buf16(2*S+1),q(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new i.Buf16(2*S+1),q(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 it(t){var T;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=s,(T=t.state).pending=0,T.pending_out=0,T.wrap<0&&(T.wrap=-T.wrap),T.status=T.wrap?g:R,t.adler=T.wrap===2?0:1,T.last_flush=m,n._tr_init(T),a):J(t,c)}function ct(t){var T=it(t);return T===a&&function(A){A.window_size=2*A.w_size,q(A.head),A.max_lazy_match=u[A.level].max_lazy,A.good_match=u[A.level].good_length,A.nice_match=u[A.level].nice_length,A.max_chain_length=u[A.level].max_chain,A.strstart=0,A.block_start=0,A.lookahead=0,A.insert=0,A.match_length=A.prev_length=I-1,A.match_available=0,A.ins_h=0}(t.state),T}function dt(t,T,A,f,o,k){if(!t)return c;var F=1;if(T===r&&(T=6),f<0?(F=0,f=-f):15<f&&(F=2,f-=16),o<1||_<o||A!==d||f<8||15<f||T<0||9<T||k<0||h<k)return J(t,c);f===8&&(f=9);var U=new ot;return(t.state=U).strm=t,U.wrap=F,U.gzhead=null,U.w_bits=f,U.w_size=1<<U.w_bits,U.w_mask=U.w_size-1,U.hash_bits=o+7,U.hash_size=1<<U.hash_bits,U.hash_mask=U.hash_size-1,U.hash_shift=~~((U.hash_bits+I-1)/I),U.window=new i.Buf8(2*U.w_size),U.head=new i.Buf16(U.hash_size),U.prev=new i.Buf16(U.w_size),U.lit_bufsize=1<<o+6,U.pending_buf_size=4*U.lit_bufsize,U.pending_buf=new i.Buf8(U.pending_buf_size),U.d_buf=1*U.lit_bufsize,U.l_buf=3*U.lit_bufsize,U.level=T,U.strategy=k,U.method=A,ct(t)}u=[new et(0,0,0,0,function(t,T){var A=65535;for(A>t.pending_buf_size-5&&(A=t.pending_buf_size-5);;){if(t.lookahead<=1){if(nt(t),t.lookahead===0&&T===m)return e;if(t.lookahead===0)break}t.strstart+=t.lookahead,t.lookahead=0;var f=t.block_start+A;if((t.strstart===0||t.strstart>=f)&&(t.lookahead=t.strstart-f,t.strstart=f,C(t,!1),t.strm.avail_out===0)||t.strstart-t.block_start>=t.w_size-K&&(C(t,!1),t.strm.avail_out===0))return e}return t.insert=0,T===b?(C(t,!0),t.strm.avail_out===0?$:L):(t.strstart>t.block_start&&(C(t,!1),t.strm.avail_out),e)}),new et(4,4,8,4,lt),new et(4,5,16,8,lt),new et(4,6,32,32,lt),new et(4,4,16,16,Q),new et(8,16,32,32,Q),new et(8,16,128,128,Q),new et(8,32,128,256,Q),new et(32,128,258,1024,Q),new et(32,258,258,4096,Q)],w.deflateInit=function(t,T){return dt(t,T,d,15,8,0)},w.deflateInit2=dt,w.deflateReset=ct,w.deflateResetKeep=it,w.deflateSetHeader=function(t,T){return t&&t.state?t.state.wrap!==2?c:(t.state.gzhead=T,a):c},w.deflate=function(t,T){var A,f,o,k;if(!t||!t.state||5<T||T<0)return t?J(t,c):c;if(f=t.state,!t.output||!t.input&&t.avail_in!==0||f.status===666&&T!==b)return J(t,t.avail_out===0?-5:c);if(f.strm=t,A=f.last_flush,f.last_flush=T,f.status===g)if(f.wrap===2)t.adler=0,X(f,31),X(f,139),X(f,8),f.gzhead?(X(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)),X(f,255&f.gzhead.time),X(f,f.gzhead.time>>8&255),X(f,f.gzhead.time>>16&255),X(f,f.gzhead.time>>24&255),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,255&f.gzhead.os),f.gzhead.extra&&f.gzhead.extra.length&&(X(f,255&f.gzhead.extra.length),X(f,f.gzhead.extra.length>>8&255)),f.gzhead.hcrc&&(t.adler=v(t.adler,f.pending_buf,f.pending,0)),f.gzindex=0,f.status=69):(X(f,0),X(f,0),X(f,0),X(f,0),X(f,0),X(f,f.level===9?2:2<=f.strategy||f.level<2?4:0),X(f,3),f.status=R);else{var F=d+(f.w_bits-8<<4)<<8;F|=(2<=f.strategy||f.level<2?0:f.level<6?1:f.level===6?2:3)<<6,f.strstart!==0&&(F|=32),F+=31-F%31,f.status=R,G(f,F),f.strstart!==0&&(G(f,t.adler>>>16),G(f,65535&t.adler)),t.adler=1}if(f.status===69)if(f.gzhead.extra){for(o=f.pending;f.gzindex<(65535&f.gzhead.extra.length)&&(f.pending!==f.pending_buf_size||(f.gzhead.hcrc&&f.pending>o&&(t.adler=v(t.adler,f.pending_buf,f.pending-o,o)),E(t),o=f.pending,f.pending!==f.pending_buf_size));)X(f,255&f.gzhead.extra[f.gzindex]),f.gzindex++;f.gzhead.hcrc&&f.pending>o&&(t.adler=v(t.adler,f.pending_buf,f.pending-o,o)),f.gzindex===f.gzhead.extra.length&&(f.gzindex=0,f.status=73)}else f.status=73;if(f.status===73)if(f.gzhead.name){o=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>o&&(t.adler=v(t.adler,f.pending_buf,f.pending-o,o)),E(t),o=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.name.length?255&f.gzhead.name.charCodeAt(f.gzindex++):0,X(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>o&&(t.adler=v(t.adler,f.pending_buf,f.pending-o,o)),k===0&&(f.gzindex=0,f.status=91)}else f.status=91;if(f.status===91)if(f.gzhead.comment){o=f.pending;do{if(f.pending===f.pending_buf_size&&(f.gzhead.hcrc&&f.pending>o&&(t.adler=v(t.adler,f.pending_buf,f.pending-o,o)),E(t),o=f.pending,f.pending===f.pending_buf_size)){k=1;break}k=f.gzindex<f.gzhead.comment.length?255&f.gzhead.comment.charCodeAt(f.gzindex++):0,X(f,k)}while(k!==0);f.gzhead.hcrc&&f.pending>o&&(t.adler=v(t.adler,f.pending_buf,f.pending-o,o)),k===0&&(f.status=103)}else f.status=103;if(f.status===103&&(f.gzhead.hcrc?(f.pending+2>f.pending_buf_size&&E(t),f.pending+2<=f.pending_buf_size&&(X(f,255&t.adler),X(f,t.adler>>8&255),t.adler=0,f.status=R)):f.status=R),f.pending!==0){if(E(t),t.avail_out===0)return f.last_flush=-1,a}else if(t.avail_in===0&&j(T)<=j(A)&&T!==b)return J(t,-5);if(f.status===666&&t.avail_in!==0)return J(t,-5);if(t.avail_in!==0||f.lookahead!==0||T!==m&&f.status!==666){var U=f.strategy===2?function(z,W){for(var V;;){if(z.lookahead===0&&(nt(z),z.lookahead===0)){if(W===m)return e;break}if(z.match_length=0,V=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++,V&&(C(z,!1),z.strm.avail_out===0))return e}return z.insert=0,W===b?(C(z,!0),z.strm.avail_out===0?$:L):z.last_lit&&(C(z,!1),z.strm.avail_out===0)?e:D}(f,T):f.strategy===3?function(z,W){for(var V,M,Y,rt,tt=z.window;;){if(z.lookahead<=Z){if(nt(z),z.lookahead<=Z&&W===m)return e;if(z.lookahead===0)break}if(z.match_length=0,z.lookahead>=I&&0<z.strstart&&(M=tt[Y=z.strstart-1])===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]){rt=z.strstart+Z;do;while(M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&M===tt[++Y]&&Y<rt);z.match_length=Z-(rt-Y),z.match_length>z.lookahead&&(z.match_length=z.lookahead)}if(z.match_length>=I?(V=n._tr_tally(z,1,z.match_length-I),z.lookahead-=z.match_length,z.strstart+=z.match_length,z.match_length=0):(V=n._tr_tally(z,0,z.window[z.strstart]),z.lookahead--,z.strstart++),V&&(C(z,!1),z.strm.avail_out===0))return e}return z.insert=0,W===b?(C(z,!0),z.strm.avail_out===0?$:L):z.last_lit&&(C(z,!1),z.strm.avail_out===0)?e:D}(f,T):u[f.level].func(f,T);if(U!==$&&U!==L||(f.status=666),U===e||U===$)return t.avail_out===0&&(f.last_flush=-1),a;if(U===D&&(T===1?n._tr_align(f):T!==5&&(n._tr_stored_block(f,0,0,!1),T===3&&(q(f.head),f.lookahead===0&&(f.strstart=0,f.block_start=0,f.insert=0))),E(t),t.avail_out===0))return f.last_flush=-1,a}return T!==b?a:f.wrap<=0?1:(f.wrap===2?(X(f,255&t.adler),X(f,t.adler>>8&255),X(f,t.adler>>16&255),X(f,t.adler>>24&255),X(f,255&t.total_in),X(f,t.total_in>>8&255),X(f,t.total_in>>16&255),X(f,t.total_in>>24&255)):(G(f,t.adler>>>16),G(f,65535&t.adler)),E(t),0<f.wrap&&(f.wrap=-f.wrap),f.pending!==0?a:1)},w.deflateEnd=function(t){var T;return t&&t.state?(T=t.state.status)!==g&&T!==69&&T!==73&&T!==91&&T!==103&&T!==R&&T!==666?J(t,c):(t.state=null,T===R?J(t,-3):a):c},w.deflateSetDictionary=function(t,T){var A,f,o,k,F,U,z,W,V=T.length;if(!t||!t.state||(k=(A=t.state).wrap)===2||k===1&&A.status!==g||A.lookahead)return c;for(k===1&&(t.adler=l(t.adler,T,V,0)),A.wrap=0,V>=A.w_size&&(k===0&&(q(A.head),A.strstart=0,A.block_start=0,A.insert=0),W=new i.Buf8(A.w_size),i.arraySet(W,T,V-A.w_size,A.w_size,0),T=W,V=A.w_size),F=t.avail_in,U=t.next_in,z=t.input,t.avail_in=V,t.next_in=0,t.input=T,nt(A);A.lookahead>=I;){for(f=A.strstart,o=A.lookahead-(I-1);A.ins_h=(A.ins_h<<A.hash_shift^A.window[f+I-1])&A.hash_mask,A.prev[f&A.w_mask]=A.head[A.ins_h],A.head[A.ins_h]=f,f++,--o;);A.strstart=f,A.lookahead=I-1,nt(A)}return A.strstart+=A.lookahead,A.block_start=A.strstart,A.insert=A.lookahead,A.lookahead=0,A.match_length=A.prev_length=I-1,A.match_available=0,t.next_in=U,t.input=z,t.avail_in=F,A.wrap=k,a},w.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(p,P,w){P.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(p,P,w){P.exports=function(u,i){var n,l,v,y,m,b,a,c,r,h,s,d,_,S,x,B,O,N,I,Z,K,g,R,e,D;n=u.state,l=u.next_in,e=u.input,v=l+(u.avail_in-5),y=u.next_out,D=u.output,m=y-(i-u.avail_out),b=y+(u.avail_out-257),a=n.dmax,c=n.wsize,r=n.whave,h=n.wnext,s=n.window,d=n.hold,_=n.bits,S=n.lencode,x=n.distcode,B=(1<<n.lenbits)-1,O=(1<<n.distbits)-1;t:do{_<15&&(d+=e[l++]<<_,_+=8,d+=e[l++]<<_,_+=8),N=S[d&B];e:for(;;){if(d>>>=I=N>>>24,_-=I,(I=N>>>16&255)===0)D[y++]=65535&N;else{if(!(16&I)){if(!(64&I)){N=S[(65535&N)+(d&(1<<I)-1)];continue e}if(32&I){n.mode=12;break t}u.msg="invalid literal/length code",n.mode=30;break t}Z=65535&N,(I&=15)&&(_<I&&(d+=e[l++]<<_,_+=8),Z+=d&(1<<I)-1,d>>>=I,_-=I),_<15&&(d+=e[l++]<<_,_+=8,d+=e[l++]<<_,_+=8),N=x[d&O];r:for(;;){if(d>>>=I=N>>>24,_-=I,!(16&(I=N>>>16&255))){if(!(64&I)){N=x[(65535&N)+(d&(1<<I)-1)];continue r}u.msg="invalid distance code",n.mode=30;break t}if(K=65535&N,_<(I&=15)&&(d+=e[l++]<<_,(_+=8)<I&&(d+=e[l++]<<_,_+=8)),a<(K+=d&(1<<I)-1)){u.msg="invalid distance too far back",n.mode=30;break t}if(d>>>=I,_-=I,(I=y-m)<K){if(r<(I=K-I)&&n.sane){u.msg="invalid distance too far back",n.mode=30;break t}if(R=s,(g=0)===h){if(g+=c-I,I<Z){for(Z-=I;D[y++]=s[g++],--I;);g=y-K,R=D}}else if(h<I){if(g+=c+h-I,(I-=h)<Z){for(Z-=I;D[y++]=s[g++],--I;);if(g=0,h<Z){for(Z-=I=h;D[y++]=s[g++],--I;);g=y-K,R=D}}}else if(g+=h-I,I<Z){for(Z-=I;D[y++]=s[g++],--I;);g=y-K,R=D}for(;2<Z;)D[y++]=R[g++],D[y++]=R[g++],D[y++]=R[g++],Z-=3;Z&&(D[y++]=R[g++],1<Z&&(D[y++]=R[g++]))}else{for(g=y-K;D[y++]=D[g++],D[y++]=D[g++],D[y++]=D[g++],2<(Z-=3););Z&&(D[y++]=D[g++],1<Z&&(D[y++]=D[g++]))}break}}break}}while(l<v&&y<b);l-=Z=_>>3,d&=(1<<(_-=Z<<3))-1,u.next_in=l,u.next_out=y,u.avail_in=l<v?v-l+5:5-(l-v),u.avail_out=y<b?b-y+257:257-(y-b),n.hold=d,n.bits=_}},{}],49:[function(p,P,w){var u=p("../utils/common"),i=p("./adler32"),n=p("./crc32"),l=p("./inffast"),v=p("./inftrees"),y=1,m=2,b=0,a=-2,c=1,r=852,h=592;function s(g){return(g>>>24&255)+(g>>>8&65280)+((65280&g)<<8)+((255&g)<<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 _(g){var R;return g&&g.state?(R=g.state,g.total_in=g.total_out=R.total=0,g.msg="",R.wrap&&(g.adler=1&R.wrap),R.mode=c,R.last=0,R.havedict=0,R.dmax=32768,R.head=null,R.hold=0,R.bits=0,R.lencode=R.lendyn=new u.Buf32(r),R.distcode=R.distdyn=new u.Buf32(h),R.sane=1,R.back=-1,b):a}function S(g){var R;return g&&g.state?((R=g.state).wsize=0,R.whave=0,R.wnext=0,_(g)):a}function x(g,R){var e,D;return g&&g.state?(D=g.state,R<0?(e=0,R=-R):(e=1+(R>>4),R<48&&(R&=15)),R&&(R<8||15<R)?a:(D.window!==null&&D.wbits!==R&&(D.window=null),D.wrap=e,D.wbits=R,S(g))):a}function B(g,R){var e,D;return g?(D=new d,(g.state=D).window=null,(e=x(g,R))!==b&&(g.state=null),e):a}var O,N,I=!0;function Z(g){if(I){var R;for(O=new u.Buf32(512),N=new u.Buf32(32),R=0;R<144;)g.lens[R++]=8;for(;R<256;)g.lens[R++]=9;for(;R<280;)g.lens[R++]=7;for(;R<288;)g.lens[R++]=8;for(v(y,g.lens,0,288,O,0,g.work,{bits:9}),R=0;R<32;)g.lens[R++]=5;v(m,g.lens,0,32,N,0,g.work,{bits:5}),I=!1}g.lencode=O,g.lenbits=9,g.distcode=N,g.distbits=5}function K(g,R,e,D){var $,L=g.state;return L.window===null&&(L.wsize=1<<L.wbits,L.wnext=0,L.whave=0,L.window=new u.Buf8(L.wsize)),D>=L.wsize?(u.arraySet(L.window,R,e-L.wsize,L.wsize,0),L.wnext=0,L.whave=L.wsize):(D<($=L.wsize-L.wnext)&&($=D),u.arraySet(L.window,R,e-D,$,L.wnext),(D-=$)?(u.arraySet(L.window,R,e-D,D,0),L.wnext=D,L.whave=L.wsize):(L.wnext+=$,L.wnext===L.wsize&&(L.wnext=0),L.whave<L.wsize&&(L.whave+=$))),0}w.inflateReset=S,w.inflateReset2=x,w.inflateResetKeep=_,w.inflateInit=function(g){return B(g,15)},w.inflateInit2=B,w.inflate=function(g,R){var e,D,$,L,J,j,q,E,C,X,G,H,nt,lt,Q,et,ot,it,ct,dt,t,T,A,f,o=0,k=new u.Buf8(4),F=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!g||!g.state||!g.output||!g.input&&g.avail_in!==0)return a;(e=g.state).mode===12&&(e.mode=13),J=g.next_out,$=g.output,q=g.avail_out,L=g.next_in,D=g.input,j=g.avail_in,E=e.hold,C=e.bits,X=j,G=q,T=b;t:for(;;)switch(e.mode){case c:if(e.wrap===0){e.mode=13;break}for(;C<16;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(2&e.wrap&&E===35615){k[e.check=0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0),C=E=0,e.mode=2;break}if(e.flags=0,e.head&&(e.head.done=!1),!(1&e.wrap)||(((255&E)<<8)+(E>>8))%31){g.msg="incorrect header check",e.mode=30;break}if((15&E)!=8){g.msg="unknown compression method",e.mode=30;break}if(C-=4,t=8+(15&(E>>>=4)),e.wbits===0)e.wbits=t;else if(t>e.wbits){g.msg="invalid window size",e.mode=30;break}e.dmax=1<<t,g.adler=e.check=1,e.mode=512&E?10:12,C=E=0;break;case 2:for(;C<16;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(e.flags=E,(255&e.flags)!=8){g.msg="unknown compression method",e.mode=30;break}if(57344&e.flags){g.msg="unknown header flags set",e.mode=30;break}e.head&&(e.head.text=E>>8&1),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=0,e.mode=3;case 3:for(;C<32;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}e.head&&(e.head.time=E),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,k[2]=E>>>16&255,k[3]=E>>>24&255,e.check=n(e.check,k,4,0)),C=E=0,e.mode=4;case 4:for(;C<16;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}e.head&&(e.head.xflags=255&E,e.head.os=E>>8),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=0,e.mode=5;case 5:if(1024&e.flags){for(;C<16;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}e.length=E,e.head&&(e.head.extra_len=E),512&e.flags&&(k[0]=255&E,k[1]=E>>>8&255,e.check=n(e.check,k,2,0)),C=E=0}else e.head&&(e.head.extra=null);e.mode=6;case 6:if(1024&e.flags&&(j<(H=e.length)&&(H=j),H&&(e.head&&(t=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Array(e.head.extra_len)),u.arraySet(e.head.extra,D,L,H,t)),512&e.flags&&(e.check=n(e.check,D,H,L)),j-=H,L+=H,e.length-=H),e.length))break t;e.length=0,e.mode=7;case 7:if(2048&e.flags){if(j===0)break t;for(H=0;t=D[L+H++],e.head&&t&&e.length<65536&&(e.head.name+=String.fromCharCode(t)),t&&H<j;);if(512&e.flags&&(e.check=n(e.check,D,H,L)),j-=H,L+=H,t)break t}else e.head&&(e.head.name=null);e.length=0,e.mode=8;case 8:if(4096&e.flags){if(j===0)break t;for(H=0;t=D[L+H++],e.head&&t&&e.length<65536&&(e.head.comment+=String.fromCharCode(t)),t&&H<j;);if(512&e.flags&&(e.check=n(e.check,D,H,L)),j-=H,L+=H,t)break t}else e.head&&(e.head.comment=null);e.mode=9;case 9:if(512&e.flags){for(;C<16;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(E!==(65535&e.check)){g.msg="header crc mismatch",e.mode=30;break}C=E=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),g.adler=e.check=0,e.mode=12;break;case 10:for(;C<32;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}g.adler=e.check=s(E),C=E=0,e.mode=11;case 11:if(e.havedict===0)return g.next_out=J,g.avail_out=q,g.next_in=L,g.avail_in=j,e.hold=E,e.bits=C,2;g.adler=e.check=1,e.mode=12;case 12:if(R===5||R===6)break t;case 13:if(e.last){E>>>=7&C,C-=7&C,e.mode=27;break}for(;C<3;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}switch(e.last=1&E,C-=1,3&(E>>>=1)){case 0:e.mode=14;break;case 1:if(Z(e),e.mode=20,R!==6)break;E>>>=2,C-=2;break t;case 2:e.mode=17;break;case 3:g.msg="invalid block type",e.mode=30}E>>>=2,C-=2;break;case 14:for(E>>>=7&C,C-=7&C;C<32;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if((65535&E)!=(E>>>16^65535)){g.msg="invalid stored block lengths",e.mode=30;break}if(e.length=65535&E,C=E=0,e.mode=15,R===6)break t;case 15:e.mode=16;case 16:if(H=e.length){if(j<H&&(H=j),q<H&&(H=q),H===0)break t;u.arraySet($,D,L,H,J),j-=H,L+=H,q-=H,J+=H,e.length-=H;break}e.mode=12;break;case 17:for(;C<14;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(e.nlen=257+(31&E),E>>>=5,C-=5,e.ndist=1+(31&E),E>>>=5,C-=5,e.ncode=4+(15&E),E>>>=4,C-=4,286<e.nlen||30<e.ndist){g.msg="too many length or distance symbols",e.mode=30;break}e.have=0,e.mode=18;case 18:for(;e.have<e.ncode;){for(;C<3;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}e.lens[F[e.have++]]=7&E,E>>>=3,C-=3}for(;e.have<19;)e.lens[F[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,A={bits:e.lenbits},T=v(0,e.lens,0,19,e.lencode,0,e.work,A),e.lenbits=A.bits,T){g.msg="invalid code lengths set",e.mode=30;break}e.have=0,e.mode=19;case 19:for(;e.have<e.nlen+e.ndist;){for(;et=(o=e.lencode[E&(1<<e.lenbits)-1])>>>16&255,ot=65535&o,!((Q=o>>>24)<=C);){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(ot<16)E>>>=Q,C-=Q,e.lens[e.have++]=ot;else{if(ot===16){for(f=Q+2;C<f;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(E>>>=Q,C-=Q,e.have===0){g.msg="invalid bit length repeat",e.mode=30;break}t=e.lens[e.have-1],H=3+(3&E),E>>>=2,C-=2}else if(ot===17){for(f=Q+3;C<f;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}C-=Q,t=0,H=3+(7&(E>>>=Q)),E>>>=3,C-=3}else{for(f=Q+7;C<f;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}C-=Q,t=0,H=11+(127&(E>>>=Q)),E>>>=7,C-=7}if(e.have+H>e.nlen+e.ndist){g.msg="invalid bit length repeat",e.mode=30;break}for(;H--;)e.lens[e.have++]=t}}if(e.mode===30)break;if(e.lens[256]===0){g.msg="invalid code -- missing end-of-block",e.mode=30;break}if(e.lenbits=9,A={bits:e.lenbits},T=v(y,e.lens,0,e.nlen,e.lencode,0,e.work,A),e.lenbits=A.bits,T){g.msg="invalid literal/lengths set",e.mode=30;break}if(e.distbits=6,e.distcode=e.distdyn,A={bits:e.distbits},T=v(m,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,A),e.distbits=A.bits,T){g.msg="invalid distances set",e.mode=30;break}if(e.mode=20,R===6)break t;case 20:e.mode=21;case 21:if(6<=j&&258<=q){g.next_out=J,g.avail_out=q,g.next_in=L,g.avail_in=j,e.hold=E,e.bits=C,l(g,G),J=g.next_out,$=g.output,q=g.avail_out,L=g.next_in,D=g.input,j=g.avail_in,E=e.hold,C=e.bits,e.mode===12&&(e.back=-1);break}for(e.back=0;et=(o=e.lencode[E&(1<<e.lenbits)-1])>>>16&255,ot=65535&o,!((Q=o>>>24)<=C);){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(et&&!(240&et)){for(it=Q,ct=et,dt=ot;et=(o=e.lencode[dt+((E&(1<<it+ct)-1)>>it)])>>>16&255,ot=65535&o,!(it+(Q=o>>>24)<=C);){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}E>>>=it,C-=it,e.back+=it}if(E>>>=Q,C-=Q,e.back+=Q,e.length=ot,et===0){e.mode=26;break}if(32&et){e.back=-1,e.mode=12;break}if(64&et){g.msg="invalid literal/length code",e.mode=30;break}e.extra=15&et,e.mode=22;case 22:if(e.extra){for(f=e.extra;C<f;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}e.length+=E&(1<<e.extra)-1,E>>>=e.extra,C-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=23;case 23:for(;et=(o=e.distcode[E&(1<<e.distbits)-1])>>>16&255,ot=65535&o,!((Q=o>>>24)<=C);){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(!(240&et)){for(it=Q,ct=et,dt=ot;et=(o=e.distcode[dt+((E&(1<<it+ct)-1)>>it)])>>>16&255,ot=65535&o,!(it+(Q=o>>>24)<=C);){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}E>>>=it,C-=it,e.back+=it}if(E>>>=Q,C-=Q,e.back+=Q,64&et){g.msg="invalid distance code",e.mode=30;break}e.offset=ot,e.extra=15&et,e.mode=24;case 24:if(e.extra){for(f=e.extra;C<f;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}e.offset+=E&(1<<e.extra)-1,E>>>=e.extra,C-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){g.msg="invalid distance too far back",e.mode=30;break}e.mode=25;case 25:if(q===0)break t;if(H=G-q,e.offset>H){if((H=e.offset-H)>e.whave&&e.sane){g.msg="invalid distance too far back",e.mode=30;break}nt=H>e.wnext?(H-=e.wnext,e.wsize-H):e.wnext-H,H>e.length&&(H=e.length),lt=e.window}else lt=$,nt=J-e.offset,H=e.length;for(q<H&&(H=q),q-=H,e.length-=H;$[J++]=lt[nt++],--H;);e.length===0&&(e.mode=21);break;case 26:if(q===0)break t;$[J++]=e.length,q--,e.mode=21;break;case 27:if(e.wrap){for(;C<32;){if(j===0)break t;j--,E|=D[L++]<<C,C+=8}if(G-=q,g.total_out+=G,e.total+=G,G&&(g.adler=e.check=e.flags?n(e.check,$,G,J-G):i(e.check,$,G,J-G)),G=q,(e.flags?E:s(E))!==e.check){g.msg="incorrect data check",e.mode=30;break}C=E=0}e.mode=28;case 28:if(e.wrap&&e.flags){for(;C<32;){if(j===0)break t;j--,E+=D[L++]<<C,C+=8}if(E!==(4294967295&e.total)){g.msg="incorrect length check",e.mode=30;break}C=E=0}e.mode=29;case 29:T=1;break t;case 30:T=-3;break t;case 31:return-4;case 32:default:return a}return g.next_out=J,g.avail_out=q,g.next_in=L,g.avail_in=j,e.hold=E,e.bits=C,(e.wsize||G!==g.avail_out&&e.mode<30&&(e.mode<27||R!==4))&&K(g,g.output,g.next_out,G-g.avail_out)?(e.mode=31,-4):(X-=g.avail_in,G-=g.avail_out,g.total_in+=X,g.total_out+=G,e.total+=G,e.wrap&&G&&(g.adler=e.check=e.flags?n(e.check,$,G,g.next_out-G):i(e.check,$,G,g.next_out-G)),g.data_type=e.bits+(e.last?64:0)+(e.mode===12?128:0)+(e.mode===20||e.mode===15?256:0),(X==0&&G===0||R===4)&&T===b&&(T=-5),T)},w.inflateEnd=function(g){if(!g||!g.state)return a;var R=g.state;return R.window&&(R.window=null),g.state=null,b},w.inflateGetHeader=function(g,R){var e;return g&&g.state&&2&(e=g.state).wrap?((e.head=R).done=!1,b):a},w.inflateSetDictionary=function(g,R){var e,D=R.length;return g&&g.state?(e=g.state).wrap!==0&&e.mode!==11?a:e.mode===11&&i(1,R,D,0)!==e.check?-3:K(g,R,D,D)?(e.mode=31,-4):(e.havedict=1,b):a},w.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(p,P,w){var u=p("../utils/common"),i=[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],l=[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],v=[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];P.exports=function(y,m,b,a,c,r,h,s){var d,_,S,x,B,O,N,I,Z,K=s.bits,g=0,R=0,e=0,D=0,$=0,L=0,J=0,j=0,q=0,E=0,C=null,X=0,G=new u.Buf16(16),H=new u.Buf16(16),nt=null,lt=0;for(g=0;g<=15;g++)G[g]=0;for(R=0;R<a;R++)G[m[b+R]]++;for($=K,D=15;1<=D&&G[D]===0;D--);if(D<$&&($=D),D===0)return c[r++]=20971520,c[r++]=20971520,s.bits=1,0;for(e=1;e<D&&G[e]===0;e++);for($<e&&($=e),g=j=1;g<=15;g++)if(j<<=1,(j-=G[g])<0)return-1;if(0<j&&(y===0||D!==1))return-1;for(H[1]=0,g=1;g<15;g++)H[g+1]=H[g]+G[g];for(R=0;R<a;R++)m[b+R]!==0&&(h[H[m[b+R]]++]=R);if(O=y===0?(C=nt=h,19):y===1?(C=i,X-=257,nt=n,lt-=257,256):(C=l,nt=v,-1),g=e,B=r,J=R=E=0,S=-1,x=(q=1<<(L=$))-1,y===1&&852<q||y===2&&592<q)return 1;for(;;){for(N=g-J,Z=h[R]<O?(I=0,h[R]):h[R]>O?(I=nt[lt+h[R]],C[X+h[R]]):(I=96,0),d=1<<g-J,e=_=1<<L;c[B+(E>>J)+(_-=d)]=N<<24|I<<16|Z|0,_!==0;);for(d=1<<g-1;E&d;)d>>=1;if(d!==0?(E&=d-1,E+=d):E=0,R++,--G[g]==0){if(g===D)break;g=m[b+h[R]]}if($<g&&(E&x)!==S){for(J===0&&(J=$),B+=e,j=1<<(L=g-J);L+J<D&&!((j-=G[L+J])<=0);)L++,j<<=1;if(q+=1<<L,y===1&&852<q||y===2&&592<q)return 1;c[S=E&x]=$<<24|L<<16|B-r|0}}return E!==0&&(c[B+E]=g-J<<24|64<<16|0),s.bits=$,0}},{"../utils/common":41}],51:[function(p,P,w){P.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(p,P,w){var u=p("../utils/common"),i=0,n=1;function l(o){for(var k=o.length;0<=--k;)o[k]=0}var v=0,y=29,m=256,b=m+1+y,a=30,c=19,r=2*b+1,h=15,s=16,d=7,_=256,S=16,x=17,B=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],N=[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],I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Z=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=new Array(2*(b+2));l(K);var g=new Array(2*a);l(g);var R=new Array(512);l(R);var e=new Array(256);l(e);var D=new Array(y);l(D);var $,L,J,j=new Array(a);function q(o,k,F,U,z){this.static_tree=o,this.extra_bits=k,this.extra_base=F,this.elems=U,this.max_length=z,this.has_stree=o&&o.length}function E(o,k){this.dyn_tree=o,this.max_code=0,this.stat_desc=k}function C(o){return o<256?R[o]:R[256+(o>>>7)]}function X(o,k){o.pending_buf[o.pending++]=255&k,o.pending_buf[o.pending++]=k>>>8&255}function G(o,k,F){o.bi_valid>s-F?(o.bi_buf|=k<<o.bi_valid&65535,X(o,o.bi_buf),o.bi_buf=k>>s-o.bi_valid,o.bi_valid+=F-s):(o.bi_buf|=k<<o.bi_valid&65535,o.bi_valid+=F)}function H(o,k,F){G(o,F[2*k],F[2*k+1])}function nt(o,k){for(var F=0;F|=1&o,o>>>=1,F<<=1,0<--k;);return F>>>1}function lt(o,k,F){var U,z,W=new Array(h+1),V=0;for(U=1;U<=h;U++)W[U]=V=V+F[U-1]<<1;for(z=0;z<=k;z++){var M=o[2*z+1];M!==0&&(o[2*z]=nt(W[M]++,M))}}function Q(o){var k;for(k=0;k<b;k++)o.dyn_ltree[2*k]=0;for(k=0;k<a;k++)o.dyn_dtree[2*k]=0;for(k=0;k<c;k++)o.bl_tree[2*k]=0;o.dyn_ltree[2*_]=1,o.opt_len=o.static_len=0,o.last_lit=o.matches=0}function et(o){8<o.bi_valid?X(o,o.bi_buf):0<o.bi_valid&&(o.pending_buf[o.pending++]=o.bi_buf),o.bi_buf=0,o.bi_valid=0}function ot(o,k,F,U){var z=2*k,W=2*F;return o[z]<o[W]||o[z]===o[W]&&U[k]<=U[F]}function it(o,k,F){for(var U=o.heap[F],z=F<<1;z<=o.heap_len&&(z<o.heap_len&&ot(k,o.heap[z+1],o.heap[z],o.depth)&&z++,!ot(k,U,o.heap[z],o.depth));)o.heap[F]=o.heap[z],F=z,z<<=1;o.heap[F]=U}function ct(o,k,F){var U,z,W,V,M=0;if(o.last_lit!==0)for(;U=o.pending_buf[o.d_buf+2*M]<<8|o.pending_buf[o.d_buf+2*M+1],z=o.pending_buf[o.l_buf+M],M++,U===0?H(o,z,k):(H(o,(W=e[z])+m+1,k),(V=O[W])!==0&&G(o,z-=D[W],V),H(o,W=C(--U),F),(V=N[W])!==0&&G(o,U-=j[W],V)),M<o.last_lit;);H(o,_,k)}function dt(o,k){var F,U,z,W=k.dyn_tree,V=k.stat_desc.static_tree,M=k.stat_desc.has_stree,Y=k.stat_desc.elems,rt=-1;for(o.heap_len=0,o.heap_max=r,F=0;F<Y;F++)W[2*F]!==0?(o.heap[++o.heap_len]=rt=F,o.depth[F]=0):W[2*F+1]=0;for(;o.heap_len<2;)W[2*(z=o.heap[++o.heap_len]=rt<2?++rt:0)]=1,o.depth[z]=0,o.opt_len--,M&&(o.static_len-=V[2*z+1]);for(k.max_code=rt,F=o.heap_len>>1;1<=F;F--)it(o,W,F);for(z=Y;F=o.heap[1],o.heap[1]=o.heap[o.heap_len--],it(o,W,1),U=o.heap[1],o.heap[--o.heap_max]=F,o.heap[--o.heap_max]=U,W[2*z]=W[2*F]+W[2*U],o.depth[z]=(o.depth[F]>=o.depth[U]?o.depth[F]:o.depth[U])+1,W[2*F+1]=W[2*U+1]=z,o.heap[1]=z++,it(o,W,1),2<=o.heap_len;);o.heap[--o.heap_max]=o.heap[1],function(tt,ut){var wt,pt,kt,at,zt,Rt,_t=ut.dyn_tree,Ft=ut.max_code,Wt=ut.stat_desc.static_tree,Mt=ut.stat_desc.has_stree,Ht=ut.stat_desc.extra_bits,Nt=ut.stat_desc.extra_base,xt=ut.stat_desc.max_length,Ct=0;for(at=0;at<=h;at++)tt.bl_count[at]=0;for(_t[2*tt.heap[tt.heap_max]+1]=0,wt=tt.heap_max+1;wt<r;wt++)xt<(at=_t[2*_t[2*(pt=tt.heap[wt])+1]+1]+1)&&(at=xt,Ct++),_t[2*pt+1]=at,Ft<pt||(tt.bl_count[at]++,zt=0,Nt<=pt&&(zt=Ht[pt-Nt]),Rt=_t[2*pt],tt.opt_len+=Rt*(at+zt),Mt&&(tt.static_len+=Rt*(Wt[2*pt+1]+zt)));if(Ct!==0){do{for(at=xt-1;tt.bl_count[at]===0;)at--;tt.bl_count[at]--,tt.bl_count[at+1]+=2,tt.bl_count[xt]--,Ct-=2}while(0<Ct);for(at=xt;at!==0;at--)for(pt=tt.bl_count[at];pt!==0;)Ft<(kt=tt.heap[--wt])||(_t[2*kt+1]!==at&&(tt.opt_len+=(at-_t[2*kt+1])*_t[2*kt],_t[2*kt+1]=at),pt--)}}(o,k),lt(W,rt,o.bl_count)}function t(o,k,F){var U,z,W=-1,V=k[1],M=0,Y=7,rt=4;for(V===0&&(Y=138,rt=3),k[2*(F+1)+1]=65535,U=0;U<=F;U++)z=V,V=k[2*(U+1)+1],++M<Y&&z===V||(M<rt?o.bl_tree[2*z]+=M:z!==0?(z!==W&&o.bl_tree[2*z]++,o.bl_tree[2*S]++):M<=10?o.bl_tree[2*x]++:o.bl_tree[2*B]++,W=z,rt=(M=0)===V?(Y=138,3):z===V?(Y=6,3):(Y=7,4))}function T(o,k,F){var U,z,W=-1,V=k[1],M=0,Y=7,rt=4;for(V===0&&(Y=138,rt=3),U=0;U<=F;U++)if(z=V,V=k[2*(U+1)+1],!(++M<Y&&z===V)){if(M<rt)for(;H(o,z,o.bl_tree),--M!=0;);else z!==0?(z!==W&&(H(o,z,o.bl_tree),M--),H(o,S,o.bl_tree),G(o,M-3,2)):M<=10?(H(o,x,o.bl_tree),G(o,M-3,3)):(H(o,B,o.bl_tree),G(o,M-11,7));W=z,rt=(M=0)===V?(Y=138,3):z===V?(Y=6,3):(Y=7,4)}}l(j);var A=!1;function f(o,k,F,U){G(o,(v<<1)+(U?1:0),3),function(z,W,V,M){et(z),X(z,V),X(z,~V),u.arraySet(z.pending_buf,z.window,W,V,z.pending),z.pending+=V}(o,k,F)}w._tr_init=function(o){A||(function(){var k,F,U,z,W,V=new Array(h+1);for(z=U=0;z<y-1;z++)for(D[z]=U,k=0;k<1<<O[z];k++)e[U++]=z;for(e[U-1]=z,z=W=0;z<16;z++)for(j[z]=W,k=0;k<1<<N[z];k++)R[W++]=z;for(W>>=7;z<a;z++)for(j[z]=W<<7,k=0;k<1<<N[z]-7;k++)R[256+W++]=z;for(F=0;F<=h;F++)V[F]=0;for(k=0;k<=143;)K[2*k+1]=8,k++,V[8]++;for(;k<=255;)K[2*k+1]=9,k++,V[9]++;for(;k<=279;)K[2*k+1]=7,k++,V[7]++;for(;k<=287;)K[2*k+1]=8,k++,V[8]++;for(lt(K,b+1,V),k=0;k<a;k++)g[2*k+1]=5,g[2*k]=nt(k,5);$=new q(K,O,m+1,b,h),L=new q(g,N,0,a,h),J=new q(new Array(0),I,0,c,d)}(),A=!0),o.l_desc=new E(o.dyn_ltree,$),o.d_desc=new E(o.dyn_dtree,L),o.bl_desc=new E(o.bl_tree,J),o.bi_buf=0,o.bi_valid=0,Q(o)},w._tr_stored_block=f,w._tr_flush_block=function(o,k,F,U){var z,W,V=0;0<o.level?(o.strm.data_type===2&&(o.strm.data_type=function(M){var Y,rt=4093624447;for(Y=0;Y<=31;Y++,rt>>>=1)if(1&rt&&M.dyn_ltree[2*Y]!==0)return i;if(M.dyn_ltree[18]!==0||M.dyn_ltree[20]!==0||M.dyn_ltree[26]!==0)return n;for(Y=32;Y<m;Y++)if(M.dyn_ltree[2*Y]!==0)return n;return i}(o)),dt(o,o.l_desc),dt(o,o.d_desc),V=function(M){var Y;for(t(M,M.dyn_ltree,M.l_desc.max_code),t(M,M.dyn_dtree,M.d_desc.max_code),dt(M,M.bl_desc),Y=c-1;3<=Y&&M.bl_tree[2*Z[Y]+1]===0;Y--);return M.opt_len+=3*(Y+1)+5+5+4,Y}(o),z=o.opt_len+3+7>>>3,(W=o.static_len+3+7>>>3)<=z&&(z=W)):z=W=F+5,F+4<=z&&k!==-1?f(o,k,F,U):o.strategy===4||W===z?(G(o,2+(U?1:0),3),ct(o,K,g)):(G(o,4+(U?1:0),3),function(M,Y,rt,tt){var ut;for(G(M,Y-257,5),G(M,rt-1,5),G(M,tt-4,4),ut=0;ut<tt;ut++)G(M,M.bl_tree[2*Z[ut]+1],3);T(M,M.dyn_ltree,Y-1),T(M,M.dyn_dtree,rt-1)}(o,o.l_desc.max_code+1,o.d_desc.max_code+1,V+1),ct(o,o.dyn_ltree,o.dyn_dtree)),Q(o),U&&et(o)},w._tr_tally=function(o,k,F){return o.pending_buf[o.d_buf+2*o.last_lit]=k>>>8&255,o.pending_buf[o.d_buf+2*o.last_lit+1]=255&k,o.pending_buf[o.l_buf+o.last_lit]=255&F,o.last_lit++,k===0?o.dyn_ltree[2*F]++:(o.matches++,k--,o.dyn_ltree[2*(e[F]+m+1)]++,o.dyn_dtree[2*C(k)]++),o.last_lit===o.lit_bufsize-1},w._tr_align=function(o){G(o,2,3),H(o,_,K),function(k){k.bi_valid===16?(X(k,k.bi_buf),k.bi_buf=0,k.bi_valid=0):8<=k.bi_valid&&(k.pending_buf[k.pending++]=255&k.bi_buf,k.bi_buf>>=8,k.bi_valid-=8)}(o)}},{"../utils/common":41}],53:[function(p,P,w){P.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(p,P,w){(function(u){(function(i,n){if(!i.setImmediate){var l,v,y,m,b=1,a={},c=!1,r=i.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(i);h=h&&h.setTimeout?h:i,l={}.toString.call(i.process)==="[object process]"?function(S){process.nextTick(function(){d(S)})}:function(){if(i.postMessage&&!i.importScripts){var S=!0,x=i.onmessage;return i.onmessage=function(){S=!1},i.postMessage("","*"),i.onmessage=x,S}}()?(m="setImmediate$"+Math.random()+"$",i.addEventListener?i.addEventListener("message",_,!1):i.attachEvent("onmessage",_),function(S){i.postMessage(m+S,"*")}):i.MessageChannel?((y=new MessageChannel).port1.onmessage=function(S){d(S.data)},function(S){y.port2.postMessage(S)}):r&&"onreadystatechange"in r.createElement("script")?(v=r.documentElement,function(S){var x=r.createElement("script");x.onreadystatechange=function(){d(S),x.onreadystatechange=null,v.removeChild(x),x=null},v.appendChild(x)}):function(S){setTimeout(d,0,S)},h.setImmediate=function(S){typeof S!="function"&&(S=new Function(""+S));for(var x=new Array(arguments.length-1),B=0;B<x.length;B++)x[B]=arguments[B+1];var O={callback:S,args:x};return a[b]=O,l(b),b++},h.clearImmediate=s}function s(S){delete a[S]}function d(S){if(c)setTimeout(d,0,S);else{var x=a[S];if(x){c=!0;try{(function(B){var O=B.callback,N=B.args;switch(N.length){case 0:O();break;case 1:O(N[0]);break;case 2:O(N[0],N[1]);break;case 3:O(N[0],N[1],N[2]);break;default:O.apply(n,N)}})(x)}finally{s(S),c=!1}}}}function _(S){S.source===i&&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 Ot<"u"?Ot:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})})(Zt);var oe=Zt.exports;const ce=se(oe),le={class:"model"},ue={class:"ranges"},he={class:"camera-angles"},pe={__name:"Model",props:{model:{type:String,required:!0},modelOptions:{type:Array},current:{type:Object,required:!0},variants:{type:Array,required:!0},printable:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},setup(st,{expose:yt}){const p=st,P=$t(),{materials:w,materialsReady:u}=Jt(P);let i=null;const n=vt(),{$loader:l}=Qt(),v=Bt(()=>p.modelOptions&&p.modelOptions[0]&&p.modelOptions[0].rotation?p.modelOptions[0].rotation:120),y=Bt(()=>p.modelOptions&&p.modelOptions[0]&&p.modelOptions[0].plane!==""?p.modelOptions[0].plane.toUpperCase():"Z"),m=async(d,_)=>{var x,B,O,N,I,Z,K,g;i==null||i.setVariation(p.current);const S=!_||_&&((B=(x=d.modelOptions)==null?void 0:x[0])==null?void 0:B.rotation)!==((N=(O=_.modelOptions)==null?void 0:O[0])==null?void 0:N.rotation)||((Z=(I=d.modelOptions)==null?void 0:I[0])==null?void 0:Z.plane)!==((g=(K=_.modelOptions)==null?void 0:K[0])==null?void 0:g.plane);d.model.length===0?(i==null||i.setRotationRange(v.value),i==null||i.setPlaneInfo(y.value),i==null||i.changeCurrentModel(i.mainModel,S),i==null||i.updateVariation()):(i==null||i.setCurrentModel(d.model[0].url,d,S),d.modelOptions&&d.modelOptions[0]&&d.modelOptions[0].rotation?i==null||i.setRotationRange(d.modelOptions[0].rotation):i==null||i.setRotationRange(v.value),d.modelOptions&&d.modelOptions[0]&&d.modelOptions[0].plane!==""?i==null||i.setPlaneInfo(d.modelOptions[0].plane):i==null||i.setPlaneInfo(y.value))};St(()=>p.current,(d,_)=>{p.variants.length>1&&m(d,_)});const b=vt(!1);St(u,d=>{d&&p.model&&te(()=>import("./BEXY9h4z.js"),__vite__mapDeps([0,1]),import.meta.url).then(async _=>{if(i=new _.default(n.value,l,p.interactive),window.autoRotate=i.autoRotate.bind(i),await i.init(p.model,p.current,w.value,p.variants,v.value,y.value),b.value=!0,p.interactive&&(window.debugThree=i),p.printable){const S=p.variants.filter(B=>{var O,N;return((O=B.model[0])==null?void 0:O.url)&&((N=B.model[0])==null?void 0:N.url)!==p.model}).map(B=>new Promise(O=>{var N;return l.loadModel((N=B.model[0])==null?void 0:N.url,I=>O({model:I,sku:B.sku}))})),x=await Promise.all(S);i.models=x.reduce((B,{sku:O,model:N})=>({...B,[O]:N}),{})}ee(()=>{m(p.current)})})},{immediate:!0}),re(()=>{i==null||i.unmount()}),yt({print:async()=>await i.print()});const c=vt(0),r=vt(0),h=vt(0),s=vt(0);return St([r,c],([d,_])=>{i.updateUniforms(d,_)}),St([h],([d])=>{i.setPolarAngle(d)}),St([s],([d])=>{i.setAzimuthAngle(d)}),(d,_)=>{const S=Dt("lay"),x=Dt("ratio");return ht((ft(),gt("div",le,[ht((ft(),gt("div",null,_[4]||(_[4]=[mt("div",{class:"loader"},null,-1)]))),[[S,{align:"center"}],[Tt,!bt(b)]]),ht(mt("div",{class:"canvas-container",ref_key:"canvas",ref:n},null,512),[[x,[1,1]]]),ht((ft(),gt("div",ue,[ht(mt("input",{"onUpdate:modelValue":_[0]||(_[0]=B=>Et(r)?r.value=B:null),min:"0",max:"360",type:"range",name:"envmap-rotation-x",id:"x"},null,512),[[At,bt(r)]]),_[5]||(_[5]=mt("label",{for:"cowbell"},"Rot X",-1)),ht(mt("input",{"onUpdate:modelValue":_[1]||(_[1]=B=>Et(c)?c.value=B:null),min:"0",max:"360",type:"range",name:"envmap-rotation-y",id:"y"},null,512),[[At,bt(c)]]),_[6]||(_[6]=mt("label",{for:"cowbell"},"Rot Y",-1))])),[[Tt,st.interactive],[S,{dir:"v"}]]),ht((ft(),gt("div",he,[_[7]||(_[7]=mt("label",{for:"cowbell"},"Set camera angles",-1)),ht(mt("input",{"onUpdate:modelValue":_[2]||(_[2]=B=>Et(h)?h.value=B:null),min:"-360",max:"360",type:"input",name:"camera-angles-polar",id:"p"},null,512),[[At,bt(h)]]),ht(mt("input",{"onUpdate:modelValue":_[3]||(_[3]=B=>Et(s)?s.value=B:null),min:"-360",max:"360",type:"input",name:"camera-angles-azimuth",id:"a"},null,512),[[At,bt(s)]])])),[[Tt,st.interactive],[S,{dir:"v"}]])])),[[S,{dir:"o"}]])}}};export{ce as J,fe as _,pe as a};